{"version":3,"sources":["vendor/ember-cli/vendor-prefix.js","vendor/loader/loader.js","vendor/moment/moment.js","vendor/moment-timezone/tz.js","vendor/jquery/jquery.js","license.js","loader.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/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/globals-resolver.js","@ember/application/index.js","@ember/application/instance.js","@ember/application/lib/application.js","@ember/application/lib/lazy_load.js","@ember/canary-features/index.js","@ember/component/index.js","@ember/component/template-only.js","@ember/controller/index.js","@ember/controller/lib/controller_mixin.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/engine/index.js","@ember/engine/instance.js","@ember/engine/lib/engine-parent.js","@ember/error/index.js","@ember/instrumentation/index.js","@ember/modifier/index.js","@ember/object/compat.js","@ember/object/computed.js","@ember/object/index.js","@ember/object/lib/computed/computed_macros.js","@ember/object/lib/computed/reduce_computed_macros.js","@ember/polyfills/index.js","@ember/polyfills/lib/assign.js","@ember/polyfills/lib/merge.js","@ember/polyfills/lib/weak_set.js","@ember/runloop/index.js","@ember/service/index.js","@ember/string/index.js","@ember/string/lib/string_registry.js","@glimmer/encoder.js","@glimmer/env.js","@glimmer/low-level.js","@glimmer/node.js","@glimmer/opcode-compiler.js","@glimmer/program.js","@glimmer/reference.js","@glimmer/runtime.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","node-module/index.js","route-recognizer.js","router_js.js","rsvp.js","vendor/shims/jquery.js","vendor/jquery/component.dollar.js","vendor/classic-decorator/index.js","vendor/chart.js/Chart.js","vendor/ember-debug-handlers-polyfill/debug.js","vendor/ember-cli-deprecation-workflow/deprecation-workflow.js","vendor/ember-cli-deprecation-workflow/main.js","vendor/ember-cli-postcss/register-version.js","vendor/ember-cli-shims/deprecations.js","vendor/ember-cli-shims/app-shims.js","vendor/shims/window-global.js","vendor/ember-destroyable-polyfill/index.js","vendor/ember-fetch.js","vendor/ember-simple-auth/register-version.js","vendor/base64.js","vendor/ember-tooltips--popper.js","vendor/ember-tooltips--tooltip.js","vendor/velocity/velocity.js","vendor/shims/velocity.js","vendor/match-media/matchMedia.js","node_modules/google-caja-bower/html-css-sanitizer-bundle.js","node_modules/keymaster/keymaster.js","mobiledoc-dom-renderer/cards/image.js","mobiledoc-dom-renderer/index.js","mobiledoc-dom-renderer/renderer-factory.js","mobiledoc-dom-renderer/renderers/0-2.js","mobiledoc-dom-renderer/renderers/0-3.js","mobiledoc-dom-renderer/utils/array-utils.js","mobiledoc-dom-renderer/utils/dom.js","mobiledoc-dom-renderer/utils/marker-types.js","mobiledoc-dom-renderer/utils/render-type.js","mobiledoc-dom-renderer/utils/render-utils.js","mobiledoc-dom-renderer/utils/sanitization-utils.js","mobiledoc-dom-renderer/utils/section-types.js","mobiledoc-dom-renderer/utils/tag-names.js","mobiledoc-kit/cards/image.js","mobiledoc-kit/editor/edit-history.js","mobiledoc-kit/editor/edit-state.js","mobiledoc-kit/editor/editor.js","mobiledoc-kit/editor/event-manager.js","mobiledoc-kit/editor/key-commands.js","mobiledoc-kit/editor/mutation-handler.js","mobiledoc-kit/editor/post.js","mobiledoc-kit/editor/post/post-inserter.js","mobiledoc-kit/editor/selection-change-observer.js","mobiledoc-kit/editor/selection-manager.js","mobiledoc-kit/editor/text-input-handler.js","mobiledoc-kit/editor/text-input-handlers.js","mobiledoc-kit/editor/ui.js","mobiledoc-kit/index.js","mobiledoc-kit/models/_attributable.js","mobiledoc-kit/models/_markerable.js","mobiledoc-kit/models/_section.js","mobiledoc-kit/models/atom-node.js","mobiledoc-kit/models/atom.js","mobiledoc-kit/models/card-node.js","mobiledoc-kit/models/card.js","mobiledoc-kit/models/image.js","mobiledoc-kit/models/lifecycle-callbacks.js","mobiledoc-kit/models/list-item.js","mobiledoc-kit/models/list-section.js","mobiledoc-kit/models/marker.js","mobiledoc-kit/models/markup-section.js","mobiledoc-kit/models/markup.js","mobiledoc-kit/models/post-node-builder.js","mobiledoc-kit/models/post.js","mobiledoc-kit/models/render-node.js","mobiledoc-kit/models/render-tree.js","mobiledoc-kit/models/types.js","mobiledoc-kit/parsers/dom.js","mobiledoc-kit/parsers/html.js","mobiledoc-kit/parsers/mobiledoc/0-2.js","mobiledoc-kit/parsers/mobiledoc/0-3-1.js","mobiledoc-kit/parsers/mobiledoc/0-3-2.js","mobiledoc-kit/parsers/mobiledoc/0-3.js","mobiledoc-kit/parsers/mobiledoc/index.js","mobiledoc-kit/parsers/section.js","mobiledoc-kit/parsers/text.js","mobiledoc-kit/renderers/editor-dom.js","mobiledoc-kit/renderers/mobiledoc/0-2.js","mobiledoc-kit/renderers/mobiledoc/0-3-1.js","mobiledoc-kit/renderers/mobiledoc/0-3-2.js","mobiledoc-kit/renderers/mobiledoc/0-3.js","mobiledoc-kit/renderers/mobiledoc/index.js","mobiledoc-kit/utils/array-utils.js","mobiledoc-kit/utils/assert.js","mobiledoc-kit/utils/browser.js","mobiledoc-kit/utils/characters.js","mobiledoc-kit/utils/compiler.js","mobiledoc-kit/utils/copy.js","mobiledoc-kit/utils/cursor.js","mobiledoc-kit/utils/cursor/position.js","mobiledoc-kit/utils/cursor/range.js","mobiledoc-kit/utils/deprecate.js","mobiledoc-kit/utils/dom-utils.js","mobiledoc-kit/utils/element-map.js","mobiledoc-kit/utils/element-utils.js","mobiledoc-kit/utils/environment.js","mobiledoc-kit/utils/fixed-queue.js","mobiledoc-kit/utils/key.js","mobiledoc-kit/utils/keycodes.js","mobiledoc-kit/utils/keys.js","mobiledoc-kit/utils/linked-item.js","mobiledoc-kit/utils/linked-list.js","mobiledoc-kit/utils/log-manager.js","mobiledoc-kit/utils/markuperable.js","mobiledoc-kit/utils/merge.js","mobiledoc-kit/utils/mixin.js","mobiledoc-kit/utils/mobiledoc-error.js","mobiledoc-kit/utils/object-utils.js","mobiledoc-kit/utils/parse-utils.js","mobiledoc-kit/utils/placeholder-image-src.js","mobiledoc-kit/utils/selection-utils.js","mobiledoc-kit/utils/set.js","mobiledoc-kit/utils/string-utils.js","mobiledoc-kit/utils/to-range.js","mobiledoc-kit/version.js","mobiledoc-kit/views/tooltip.js","mobiledoc-kit/views/view.js","mobiledoc-text-renderer/cards/image.js","mobiledoc-text-renderer/index.js","mobiledoc-text-renderer/renderer-factory.js","mobiledoc-text-renderer/renderers/0-2.js","mobiledoc-text-renderer/renderers/0-3.js","mobiledoc-text-renderer/utils/marker-types.js","mobiledoc-text-renderer/utils/render-type.js","mobiledoc-text-renderer/utils/section-types.js","node_modules/reframe.js/dist/noframe.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-decorators/component/index.js","addon-tree-output/@ember-decorators/object/index.js","addon-tree-output/@ember-decorators/utils/-private/class-field-descriptor.js","addon-tree-output/@ember-decorators/utils/collapse-proto.js","addon-tree-output/@ember-decorators/utils/decorator.js","addon-tree-output/@ember/ordered-set/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/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/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/-debug/edge-visualization/debug-mixin.js","addon-tree-output/@html-next/vertical-collection/-debug/edge-visualization/visualization.js","addon-tree-output/@html-next/vertical-collection/-debug/index.js","addon-tree-output/@html-next/vertical-collection/-debug/utils/validate-css.js","addon-tree-output/@html-next/vertical-collection/-debug/utils/validate-rect.js","addon-tree-output/@html-next/vertical-collection/-debug/utils/validate-style.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/@sentry/ember/ember.d.js","addon-tree-output/@sentry/ember/index.js","addon-tree-output/@sentry/ember/instance-initializers/sentry-performance.js","addon-tree-output/@sentry/ember/runloop.d.js","addon-tree-output/@sentry/ember/types.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-apollo-client/-private/apollo/query-manager.js","addon-tree-output/ember-apollo-client/-private/apollo/setup-hooks.js","addon-tree-output/ember-apollo-client/index.js","addon-tree-output/ember-apollo-client/services/apollo.js","addon-tree-output/ember-apollo-client/utils/inject.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/templates/components/basic-dropdown-content.js","addon-tree-output/ember-basic-dropdown/templates/components/basic-dropdown-trigger.js","addon-tree-output/ember-basic-dropdown/templates/components/basic-dropdown.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-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-mirage/assert.js","addon-tree-output/ember-cli-mirage/association.js","addon-tree-output/ember-cli-mirage/db-collection.js","addon-tree-output/ember-cli-mirage/db.js","addon-tree-output/ember-cli-mirage/ember-data.js","addon-tree-output/ember-cli-mirage/factory.js","addon-tree-output/ember-cli-mirage/get-rfc232-test-context.js","addon-tree-output/ember-cli-mirage/identity-manager.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/orm/associations/association.js","addon-tree-output/ember-cli-mirage/orm/associations/belongs-to.js","addon-tree-output/ember-cli-mirage/orm/associations/has-many.js","addon-tree-output/ember-cli-mirage/orm/collection.js","addon-tree-output/ember-cli-mirage/orm/model.js","addon-tree-output/ember-cli-mirage/orm/polymorphic-collection.js","addon-tree-output/ember-cli-mirage/orm/schema.js","addon-tree-output/ember-cli-mirage/response.js","addon-tree-output/ember-cli-mirage/route-handler.js","addon-tree-output/ember-cli-mirage/route-handlers/base.js","addon-tree-output/ember-cli-mirage/route-handlers/function.js","addon-tree-output/ember-cli-mirage/route-handlers/object.js","addon-tree-output/ember-cli-mirage/route-handlers/shorthands/base.js","addon-tree-output/ember-cli-mirage/route-handlers/shorthands/delete.js","addon-tree-output/ember-cli-mirage/route-handlers/shorthands/get.js","addon-tree-output/ember-cli-mirage/route-handlers/shorthands/head.js","addon-tree-output/ember-cli-mirage/route-handlers/shorthands/post.js","addon-tree-output/ember-cli-mirage/route-handlers/shorthands/put.js","addon-tree-output/ember-cli-mirage/serializer-registry.js","addon-tree-output/ember-cli-mirage/serializer.js","addon-tree-output/ember-cli-mirage/serializers/active-model-serializer.js","addon-tree-output/ember-cli-mirage/serializers/ember-data-serializer.js","addon-tree-output/ember-cli-mirage/serializers/json-api-serializer.js","addon-tree-output/ember-cli-mirage/serializers/rest-serializer.js","addon-tree-output/ember-cli-mirage/server.js","addon-tree-output/ember-cli-mirage/start-mirage.js","addon-tree-output/ember-cli-mirage/trait.js","addon-tree-output/ember-cli-mirage/utils/ember-data.js","addon-tree-output/ember-cli-mirage/utils/extend.js","addon-tree-output/ember-cli-mirage/utils/inflector.js","addon-tree-output/ember-cli-mirage/utils/is-association.js","addon-tree-output/ember-cli-mirage/utils/read-modules.js","addon-tree-output/ember-cli-mirage/utils/reference-sort.js","addon-tree-output/ember-cli-mirage/utils/uuid.js","addon-tree-output/ember-cli-string-helpers/-private/create-string-helper.js","addon-tree-output/ember-cli-string-helpers/helpers/camelize.js","addon-tree-output/ember-cli-string-helpers/helpers/capitalize.js","addon-tree-output/ember-cli-string-helpers/helpers/classify.js","addon-tree-output/ember-cli-string-helpers/helpers/dasherize.js","addon-tree-output/ember-cli-string-helpers/helpers/html-safe.js","addon-tree-output/ember-cli-string-helpers/helpers/humanize.js","addon-tree-output/ember-cli-string-helpers/helpers/lowercase.js","addon-tree-output/ember-cli-string-helpers/helpers/titleize.js","addon-tree-output/ember-cli-string-helpers/helpers/trim.js","addon-tree-output/ember-cli-string-helpers/helpers/truncate.js","addon-tree-output/ember-cli-string-helpers/helpers/underscore.js","addon-tree-output/ember-cli-string-helpers/helpers/uppercase.js","addon-tree-output/ember-cli-string-helpers/helpers/w.js","addon-tree-output/ember-cli-string-helpers/utils/lowercase.js","addon-tree-output/ember-cli-string-helpers/utils/titleize.js","addon-tree-output/ember-cli-string-helpers/utils/trim.js","addon-tree-output/ember-cli-string-helpers/utils/uppercase.js","addon-tree-output/ember-cognito/authenticators/cognito.js","addon-tree-output/ember-cognito/services/cognito.js","addon-tree-output/ember-cognito/utils/cognito-storage.js","addon-tree-output/ember-cognito/utils/cognito-user.js","addon-tree-output/ember-cognito/utils/utils.js","addon-tree-output/ember-composable-helpers/-private/closure-action.js","addon-tree-output/ember-composable-helpers/-private/get-value-array-and-use-deep-equal-from-params.js","addon-tree-output/ember-composable-helpers/helpers/optional.js","addon-tree-output/ember-composable-helpers/helpers/toggle.js","addon-tree-output/ember-composable-helpers/index.js","addon-tree-output/ember-composable-helpers/utils/as-array.js","addon-tree-output/ember-composable-helpers/utils/comparison.js","addon-tree-output/ember-composable-helpers/utils/get-index.js","addon-tree-output/ember-composable-helpers/utils/is-equal.js","addon-tree-output/ember-composable-helpers/utils/is-object.js","addon-tree-output/ember-composable-helpers/utils/is-promise.js","addon-tree-output/ember-concurrency-decorators/index.js","addon-tree-output/ember-concurrency-decorators/last-value.js","addon-tree-output/ember-concurrency/-buffer-policy.js","addon-tree-output/ember-concurrency/-cancelable-promise-helpers.js","addon-tree-output/ember-concurrency/-encapsulated-task.js","addon-tree-output/ember-concurrency/-helpers.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-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.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/-property-modifiers-mixin.js","addon-tree-output/ember-concurrency/-scheduler.js","addon-tree-output/ember-concurrency/-task-group.js","addon-tree-output/ember-concurrency/-task-instance.js","addon-tree-output/ember-concurrency/-task-property.js","addon-tree-output/ember-concurrency/-task-state-mixin.js","addon-tree-output/ember-concurrency/-wait-for.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-concurrency/initializers/ember-concurrency.js","addon-tree-output/ember-concurrency/utils.js","addon-tree-output/ember-cookies/services/cookies.js","addon-tree-output/ember-cookies/utils/serialize-cookie.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-drag-drop/components/draggable-object-target.js","addon-tree-output/ember-drag-drop/components/draggable-object.js","addon-tree-output/ember-drag-drop/components/object-bin.js","addon-tree-output/ember-drag-drop/components/sortable-objects.js","addon-tree-output/ember-drag-drop/mixins/droppable.js","addon-tree-output/ember-drag-drop/services/drag-coordinator.js","addon-tree-output/ember-drag-drop/utils/proxy-unproxy-objects.js","addon-tree-output/ember-element-helper/helpers/-element.js","addon-tree-output/ember-element-helper/helpers/element.js","addon-tree-output/ember-ella-sparse/instance-initializers/ella-sparse-array.js","addon-tree-output/ember-ella-sparse/services/ella-sparse.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-get-config/index.js","addon-tree-output/ember-in-viewport/-private/observer-admin.js","addon-tree-output/ember-in-viewport/-private/raf-admin.js","addon-tree-output/ember-in-viewport/breakpoints.js","addon-tree-output/ember-in-viewport/index.js","addon-tree-output/ember-in-viewport/initializers/viewport-config.js","addon-tree-output/ember-in-viewport/mixins/in-viewport.js","addon-tree-output/ember-in-viewport/modifiers/in-viewport.js","addon-tree-output/ember-in-viewport/services/in-viewport.js","addon-tree-output/ember-in-viewport/utils/can-use-dom.js","addon-tree-output/ember-in-viewport/utils/can-use-intersection-observer.js","addon-tree-output/ember-in-viewport/utils/can-use-raf.js","addon-tree-output/ember-in-viewport/utils/check-scroll-direction.js","addon-tree-output/ember-in-viewport/utils/find-elem.js","addon-tree-output/ember-in-viewport/utils/is-in-viewport.js","addon-tree-output/ember-infinity/-private/defaults.js","addon-tree-output/ember-infinity/-private/evented.js","addon-tree-output/ember-infinity/-private/notifier.js","addon-tree-output/ember-infinity/components/infinity-loader.js","addon-tree-output/ember-infinity/lib/infinity-model.js","addon-tree-output/ember-infinity/lib/infinity-promise-array.js","addon-tree-output/ember-infinity/services/infinity.js","addon-tree-output/ember-infinity/templates/components/infinity-loader.js","addon-tree-output/ember-infinity/utils.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-keyboard/decorators/key-responder.js","addon-tree-output/ember-keyboard/decorators/on-key.js","addon-tree-output/ember-keyboard/deprecated/components/keyboard-press.js","addon-tree-output/ember-keyboard/deprecated/modifiers/keyboard-shortcut.js","addon-tree-output/ember-keyboard/deprecated/modifiers/on-keyboard.js","addon-tree-output/ember-keyboard/fixtures/key-maps.js","addon-tree-output/ember-keyboard/fixtures/modifiers-array.js","addon-tree-output/ember-keyboard/fixtures/mouse-buttons-array.js","addon-tree-output/ember-keyboard/helpers/if-key.js","addon-tree-output/ember-keyboard/helpers/on-key.js","addon-tree-output/ember-keyboard/index.js","addon-tree-output/ember-keyboard/initializers/ember-keyboard-first-responder-inputs.js","addon-tree-output/ember-keyboard/listeners/key-events.js","addon-tree-output/ember-keyboard/listeners/mouse-events.js","addon-tree-output/ember-keyboard/listeners/touch-events.js","addon-tree-output/ember-keyboard/mixins/activate-keyboard-on-focus.js","addon-tree-output/ember-keyboard/mixins/activate-keyboard-on-init.js","addon-tree-output/ember-keyboard/mixins/activate-keyboard-on-insert.js","addon-tree-output/ember-keyboard/mixins/ember-keyboard.js","addon-tree-output/ember-keyboard/mixins/keyboard-first-responder-on-focus.js","addon-tree-output/ember-keyboard/modifiers/on-key.js","addon-tree-output/ember-keyboard/services/keyboard.js","addon-tree-output/ember-keyboard/utils/get-cmd-key.js","addon-tree-output/ember-keyboard/utils/get-mouse-code.js","addon-tree-output/ember-keyboard/utils/get-mouse-name.js","addon-tree-output/ember-keyboard/utils/handle-key-event.js","addon-tree-output/ember-keyboard/utils/is-key.js","addon-tree-output/ember-keyboard/utils/keyboard-listener.js","addon-tree-output/ember-keyboard/utils/listener-name.js","addon-tree-output/ember-keyboard/utils/platform.js","addon-tree-output/ember-keyboard/utils/sort.js","addon-tree-output/ember-keyboard/utils/trigger-event.js","addon-tree-output/ember-load-initializers/index.js","addon-tree-output/ember-load/components/ember-load-remover.js","addon-tree-output/ember-load/services/ember-load-config.js","addon-tree-output/ember-load/templates/components/ember-load-remover.js","addon-tree-output/ember-maybe-in-element/components/maybe-in-element.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/functional/modifier-manager.js","addon-tree-output/ember-modifier/-private/functional/modifier.js","addon-tree-output/ember-modifier/-private/interfaces.js","addon-tree-output/ember-modifier/index.js","addon-tree-output/ember-moment/helpers/-base.js","addon-tree-output/ember-moment/helpers/is-after.js","addon-tree-output/ember-moment/helpers/is-before.js","addon-tree-output/ember-moment/helpers/is-between.js","addon-tree-output/ember-moment/helpers/is-same-or-after.js","addon-tree-output/ember-moment/helpers/is-same-or-before.js","addon-tree-output/ember-moment/helpers/is-same.js","addon-tree-output/ember-moment/helpers/moment-add.js","addon-tree-output/ember-moment/helpers/moment-calendar.js","addon-tree-output/ember-moment/helpers/moment-diff.js","addon-tree-output/ember-moment/helpers/moment-duration.js","addon-tree-output/ember-moment/helpers/moment-format.js","addon-tree-output/ember-moment/helpers/moment-from-now.js","addon-tree-output/ember-moment/helpers/moment-from.js","addon-tree-output/ember-moment/helpers/moment-subtract.js","addon-tree-output/ember-moment/helpers/moment-to-date.js","addon-tree-output/ember-moment/helpers/moment-to-now.js","addon-tree-output/ember-moment/helpers/moment-to.js","addon-tree-output/ember-moment/helpers/moment.js","addon-tree-output/ember-moment/helpers/now.js","addon-tree-output/ember-moment/helpers/unix.js","addon-tree-output/ember-moment/helpers/utc.js","addon-tree-output/ember-moment/services/moment.js","addon-tree-output/ember-moment/utils/helper-compute.js","addon-tree-output/ember-one-way-select/components/one-way-select.js","addon-tree-output/ember-one-way-select/components/one-way-select/option.js","addon-tree-output/ember-one-way-select/helpers/one-way-select/contains.js","addon-tree-output/ember-one-way-select/index.js","addon-tree-output/ember-one-way-select/templates/components/one-way-select.js","addon-tree-output/ember-one-way-select/templates/components/one-way-select/option.js","addon-tree-output/ember-power-calendar-utils/index.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/services/power-calendar.js","addon-tree-output/ember-power-calendar/templates/components/power-calendar.js","addon-tree-output/ember-power-calendar/templates/components/power-calendar/days.js","addon-tree-output/ember-power-calendar/templates/components/power-calendar/nav.js","addon-tree-output/ember-power-calendar/utils/computed-fallback-if-undefined.js","addon-tree-output/ember-power-datepicker/components/power-datepicker.js","addon-tree-output/ember-power-datepicker/templates/components/power-datepicker.js","addon-tree-output/ember-power-datepicker/utils/computed-properties.js","addon-tree-output/ember-power-select/components/power-select-multiple.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-route-action-helper/-private/internals.js","addon-tree-output/ember-route-action-helper/helpers/route-action.js","addon-tree-output/ember-simple-auth/-internals/routing.js","addon-tree-output/ember-simple-auth/authenticators/base.js","addon-tree-output/ember-simple-auth/authenticators/devise.js","addon-tree-output/ember-simple-auth/authenticators/oauth2-implicit-grant.js","addon-tree-output/ember-simple-auth/authenticators/oauth2-password-grant.js","addon-tree-output/ember-simple-auth/authenticators/test.js","addon-tree-output/ember-simple-auth/authenticators/torii.js","addon-tree-output/ember-simple-auth/configuration.js","addon-tree-output/ember-simple-auth/initializers/setup-session-restoration.js","addon-tree-output/ember-simple-auth/initializers/setup-session-service.js","addon-tree-output/ember-simple-auth/initializers/setup-session.js","addon-tree-output/ember-simple-auth/internal-session.js","addon-tree-output/ember-simple-auth/mixins/application-route-mixin.js","addon-tree-output/ember-simple-auth/mixins/authenticated-route-mixin.js","addon-tree-output/ember-simple-auth/mixins/data-adapter-mixin.js","addon-tree-output/ember-simple-auth/mixins/oauth2-implicit-grant-callback-route-mixin.js","addon-tree-output/ember-simple-auth/mixins/unauthenticated-route-mixin.js","addon-tree-output/ember-simple-auth/services/session.js","addon-tree-output/ember-simple-auth/session-stores/adaptive.js","addon-tree-output/ember-simple-auth/session-stores/base.js","addon-tree-output/ember-simple-auth/session-stores/cookie.js","addon-tree-output/ember-simple-auth/session-stores/ephemeral.js","addon-tree-output/ember-simple-auth/session-stores/local-storage.js","addon-tree-output/ember-simple-auth/session-stores/session-storage.js","addon-tree-output/ember-simple-auth/utils/inject.js","addon-tree-output/ember-simple-auth/utils/is-fastboot.js","addon-tree-output/ember-simple-auth/utils/location.js","addon-tree-output/ember-simple-auth/utils/objects-are-equal.js","addon-tree-output/ember-style-modifier/modifiers/style.js","addon-tree-output/ember-svg-jar/inlined/account-group.js","addon-tree-output/ember-svg-jar/inlined/add-stroke.js","addon-tree-output/ember-svg-jar/inlined/add-view.js","addon-tree-output/ember-svg-jar/inlined/add.js","addon-tree-output/ember-svg-jar/inlined/align-center.js","addon-tree-output/ember-svg-jar/inlined/align-left.js","addon-tree-output/ember-svg-jar/inlined/ambulance.js","addon-tree-output/ember-svg-jar/inlined/arrow-down-small.js","addon-tree-output/ember-svg-jar/inlined/arrow-down-stroke.js","addon-tree-output/ember-svg-jar/inlined/arrow-down.js","addon-tree-output/ember-svg-jar/inlined/arrow-left-small.js","addon-tree-output/ember-svg-jar/inlined/arrow-left-stroke.js","addon-tree-output/ember-svg-jar/inlined/arrow-left-tail.js","addon-tree-output/ember-svg-jar/inlined/arrow-left.js","addon-tree-output/ember-svg-jar/inlined/arrow-right-small.js","addon-tree-output/ember-svg-jar/inlined/arrow-right-stroke.js","addon-tree-output/ember-svg-jar/inlined/arrow-right-tail.js","addon-tree-output/ember-svg-jar/inlined/arrow-right.js","addon-tree-output/ember-svg-jar/inlined/arrow-up-small.js","addon-tree-output/ember-svg-jar/inlined/arrow-up-stroke.js","addon-tree-output/ember-svg-jar/inlined/arrow-up.js","addon-tree-output/ember-svg-jar/inlined/arrow2-down.js","addon-tree-output/ember-svg-jar/inlined/arrow2-right.js","addon-tree-output/ember-svg-jar/inlined/book-open.js","addon-tree-output/ember-svg-jar/inlined/bookmark-article.js","addon-tree-output/ember-svg-jar/inlined/box-hands.js","addon-tree-output/ember-svg-jar/inlined/box.js","addon-tree-output/ember-svg-jar/inlined/boxes.js","addon-tree-output/ember-svg-jar/inlined/brackets.js","addon-tree-output/ember-svg-jar/inlined/calendar.js","addon-tree-output/ember-svg-jar/inlined/cash.js","addon-tree-output/ember-svg-jar/inlined/chat-double-bubble.js","addon-tree-output/ember-svg-jar/inlined/check-circle-stroke.js","addon-tree-output/ember-svg-jar/inlined/check-circle.js","addon-tree-output/ember-svg-jar/inlined/check.js","addon-tree-output/ember-svg-jar/inlined/cheeseburger.js","addon-tree-output/ember-svg-jar/inlined/circle-ellipsis.js","addon-tree-output/ember-svg-jar/inlined/clock.js","addon-tree-output/ember-svg-jar/inlined/clockface.js","addon-tree-output/ember-svg-jar/inlined/close-stroke.js","addon-tree-output/ember-svg-jar/inlined/close.js","addon-tree-output/ember-svg-jar/inlined/cloud.js","addon-tree-output/ember-svg-jar/inlined/compass-2.js","addon-tree-output/ember-svg-jar/inlined/compass.js","addon-tree-output/ember-svg-jar/inlined/computer.js","addon-tree-output/ember-svg-jar/inlined/confetti.js","addon-tree-output/ember-svg-jar/inlined/content-bold.js","addon-tree-output/ember-svg-jar/inlined/content.js","addon-tree-output/ember-svg-jar/inlined/copy.js","addon-tree-output/ember-svg-jar/inlined/credit-card.js","addon-tree-output/ember-svg-jar/inlined/cross-circle.js","addon-tree-output/ember-svg-jar/inlined/cycle.js","addon-tree-output/ember-svg-jar/inlined/default-favicon.js","addon-tree-output/ember-svg-jar/inlined/desert.js","addon-tree-output/ember-svg-jar/inlined/desktop.js","addon-tree-output/ember-svg-jar/inlined/diamond.js","addon-tree-output/ember-svg-jar/inlined/dotdotdot.js","addon-tree-output/ember-svg-jar/inlined/download-circle.js","addon-tree-output/ember-svg-jar/inlined/download.js","addon-tree-output/ember-svg-jar/inlined/eco-globe.js","addon-tree-output/ember-svg-jar/inlined/eco-lightbulb.js","addon-tree-output/ember-svg-jar/inlined/edit-view.js","addon-tree-output/ember-svg-jar/inlined/ellipsis.js","addon-tree-output/ember-svg-jar/inlined/email-love-letter.js","addon-tree-output/ember-svg-jar/inlined/email-send.js","addon-tree-output/ember-svg-jar/inlined/email-stroke.js","addon-tree-output/ember-svg-jar/inlined/email-unread.js","addon-tree-output/ember-svg-jar/inlined/email.js","addon-tree-output/ember-svg-jar/inlined/expand.js","addon-tree-output/ember-svg-jar/inlined/external.js","addon-tree-output/ember-svg-jar/inlined/eye.js","addon-tree-output/ember-svg-jar/inlined/facebook-heart.js","addon-tree-output/ember-svg-jar/inlined/facebook-like.js","addon-tree-output/ember-svg-jar/inlined/facebook.js","addon-tree-output/ember-svg-jar/inlined/feature-image.js","addon-tree-output/ember-svg-jar/inlined/file-tabular-data.js","addon-tree-output/ember-svg-jar/inlined/file-text-document.js","addon-tree-output/ember-svg-jar/inlined/filter.js","addon-tree-output/ember-svg-jar/inlined/folder.js","addon-tree-output/ember-svg-jar/inlined/gallery-placeholder.js","addon-tree-output/ember-svg-jar/inlined/ghost-logo-orb.js","addon-tree-output/ember-svg-jar/inlined/ghost-logo.js","addon-tree-output/ember-svg-jar/inlined/ghost-orb.js","addon-tree-output/ember-svg-jar/inlined/ghost-squircle.js","addon-tree-output/ember-svg-jar/inlined/gift.js","addon-tree-output/ember-svg-jar/inlined/github-outline.js","addon-tree-output/ember-svg-jar/inlined/github-star.js","addon-tree-output/ember-svg-jar/inlined/github.js","addon-tree-output/ember-svg-jar/inlined/globe.js","addon-tree-output/ember-svg-jar/inlined/google-favicon.js","addon-tree-output/ember-svg-jar/inlined/google-search.js","addon-tree-output/ember-svg-jar/inlined/google.js","addon-tree-output/ember-svg-jar/inlined/grab.js","addon-tree-output/ember-svg-jar/inlined/graph-line.js","addon-tree-output/ember-svg-jar/inlined/heart-beat.js","addon-tree-output/ember-svg-jar/inlined/heart-circle.js","addon-tree-output/ember-svg-jar/inlined/heart.js","addon-tree-output/ember-svg-jar/inlined/help.js","addon-tree-output/ember-svg-jar/inlined/hotspot.js","addon-tree-output/ember-svg-jar/inlined/house-bold.js","addon-tree-output/ember-svg-jar/inlined/house.js","addon-tree-output/ember-svg-jar/inlined/icon.js","addon-tree-output/ember-svg-jar/inlined/id-card.js","addon-tree-output/ember-svg-jar/inlined/idea.js","addon-tree-output/ember-svg-jar/inlined/info.js","addon-tree-output/ember-svg-jar/inlined/instagram.js","addon-tree-output/ember-svg-jar/inlined/integration.js","addon-tree-output/ember-svg-jar/inlined/koenig/card-indicator-email.js","addon-tree-output/ember-svg-jar/inlined/koenig/card-indicator-html.js","addon-tree-output/ember-svg-jar/inlined/koenig/card-indicator-markdown.js","addon-tree-output/ember-svg-jar/inlined/koenig/code-block.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-add.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-bold.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-bookmark.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-codepen.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-divider.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-email-cta.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-email.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-facebook.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-gallery.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-gen-embed.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-html.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-image.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-instagram.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-markdown.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-other.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-paywall.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-snippet-block.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-snippet-combination.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-snippet-text.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-soundcloud.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-spotify.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-twitter.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-unsplash.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-vimeo.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-card-type-youtube.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-cta-borderbottom.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-cta-bordertop.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-edit.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-heading-1.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-heading-2.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-img-full.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-img-regular.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-img-wide.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-italic.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-link.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-quote.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-replace.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-snippet.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-thin-delete.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-thin-edit.js","addon-tree-output/ember-svg-jar/inlined/koenig/kg-trash.js","addon-tree-output/ember-svg-jar/inlined/labs.js","addon-tree-output/ember-svg-jar/inlined/laptop.js","addon-tree-output/ember-svg-jar/inlined/line.js","addon-tree-output/ember-svg-jar/inlined/link.js","addon-tree-output/ember-svg-jar/inlined/list-bullet.js","addon-tree-output/ember-svg-jar/inlined/list-number.js","addon-tree-output/ember-svg-jar/inlined/lock.js","addon-tree-output/ember-svg-jar/inlined/lock2.js","addon-tree-output/ember-svg-jar/inlined/locked-email-back.js","addon-tree-output/ember-svg-jar/inlined/locked-email-front.js","addon-tree-output/ember-svg-jar/inlined/locked-email-lock.js","addon-tree-output/ember-svg-jar/inlined/loop-infinite.js","addon-tree-output/ember-svg-jar/inlined/lotus.js","addon-tree-output/ember-svg-jar/inlined/markdown.js","addon-tree-output/ember-svg-jar/inlined/members-all.js","addon-tree-output/ember-svg-jar/inlined/members-bold.js","addon-tree-output/ember-svg-jar/inlined/members-outline.js","addon-tree-output/ember-svg-jar/inlined/members-paid.js","addon-tree-output/ember-svg-jar/inlined/members-placeholder.js","addon-tree-output/ember-svg-jar/inlined/members-segment.js","addon-tree-output/ember-svg-jar/inlined/members.js","addon-tree-output/ember-svg-jar/inlined/mobile-phone-heart.js","addon-tree-output/ember-svg-jar/inlined/mobile-phone.js","addon-tree-output/ember-svg-jar/inlined/module.js","addon-tree-output/ember-svg-jar/inlined/modules.js","addon-tree-output/ember-svg-jar/inlined/monitor-labs.js","addon-tree-output/ember-svg-jar/inlined/moon.js","addon-tree-output/ember-svg-jar/inlined/mountains.js","addon-tree-output/ember-svg-jar/inlined/navigation.js","addon-tree-output/ember-svg-jar/inlined/network.js","addon-tree-output/ember-svg-jar/inlined/news-article.js","addon-tree-output/ember-svg-jar/inlined/nightshift.js","addon-tree-output/ember-svg-jar/inlined/no-data-list.js","addon-tree-output/ember-svg-jar/inlined/no-members.js","addon-tree-output/ember-svg-jar/inlined/page-bold.js","addon-tree-output/ember-svg-jar/inlined/page.js","addon-tree-output/ember-svg-jar/inlined/pages-placeholder.js","addon-tree-output/ember-svg-jar/inlined/paint-palette.js","addon-tree-output/ember-svg-jar/inlined/paintbrush.js","addon-tree-output/ember-svg-jar/inlined/pen.js","addon-tree-output/ember-svg-jar/inlined/pencil-circle.js","addon-tree-output/ember-svg-jar/inlined/pencil.js","addon-tree-output/ember-svg-jar/inlined/photos-people.js","addon-tree-output/ember-svg-jar/inlined/photos.js","addon-tree-output/ember-svg-jar/inlined/piggy-bank.js","addon-tree-output/ember-svg-jar/inlined/pin.js","addon-tree-output/ember-svg-jar/inlined/plane.js","addon-tree-output/ember-svg-jar/inlined/plus.js","addon-tree-output/ember-svg-jar/inlined/portal-icon-1.js","addon-tree-output/ember-svg-jar/inlined/portal-icon-2.js","addon-tree-output/ember-svg-jar/inlined/portal-icon-3.js","addon-tree-output/ember-svg-jar/inlined/portal-icon-4.js","addon-tree-output/ember-svg-jar/inlined/portal-icon-5.js","addon-tree-output/ember-svg-jar/inlined/portal-logo-stroke.js","addon-tree-output/ember-svg-jar/inlined/portal-logo.js","addon-tree-output/ember-svg-jar/inlined/post.js","addon-tree-output/ember-svg-jar/inlined/posts-placeholder.js","addon-tree-output/ember-svg-jar/inlined/posts.js","addon-tree-output/ember-svg-jar/inlined/powered-by-stripe.js","addon-tree-output/ember-svg-jar/inlined/presentation-code.js","addon-tree-output/ember-svg-jar/inlined/published-post.js","addon-tree-output/ember-svg-jar/inlined/recycle.js","addon-tree-output/ember-svg-jar/inlined/reload.js","addon-tree-output/ember-svg-jar/inlined/repo.js","addon-tree-output/ember-svg-jar/inlined/retry.js","addon-tree-output/ember-svg-jar/inlined/satellite.js","addon-tree-output/ember-svg-jar/inlined/search.js","addon-tree-output/ember-svg-jar/inlined/send-email.js","addon-tree-output/ember-svg-jar/inlined/server.js","addon-tree-output/ember-svg-jar/inlined/settings.js","addon-tree-output/ember-svg-jar/inlined/shield-lock.js","addon-tree-output/ember-svg-jar/inlined/shield.js","addon-tree-output/ember-svg-jar/inlined/sidemenu-open.js","addon-tree-output/ember-svg-jar/inlined/sidemenu.js","addon-tree-output/ember-svg-jar/inlined/signal-tower.js","addon-tree-output/ember-svg-jar/inlined/signout.js","addon-tree-output/ember-svg-jar/inlined/smiley.js","addon-tree-output/ember-svg-jar/inlined/social-facebook.js","addon-tree-output/ember-svg-jar/inlined/social-share.js","addon-tree-output/ember-svg-jar/inlined/social-twitter.js","addon-tree-output/ember-svg-jar/inlined/spinner.js","addon-tree-output/ember-svg-jar/inlined/staff.js","addon-tree-output/ember-svg-jar/inlined/star-filled.js","addon-tree-output/ember-svg-jar/inlined/store.js","addon-tree-output/ember-svg-jar/inlined/stripe-verified-partner-badge.js","addon-tree-output/ember-svg-jar/inlined/summer.js","addon-tree-output/ember-svg-jar/inlined/sun.js","addon-tree-output/ember-svg-jar/inlined/support.js","addon-tree-output/ember-svg-jar/inlined/sync.js","addon-tree-output/ember-svg-jar/inlined/tag.js","addon-tree-output/ember-svg-jar/inlined/tags-placeholder.js","addon-tree-output/ember-svg-jar/inlined/terminal.js","addon-tree-output/ember-svg-jar/inlined/text-vector.js","addon-tree-output/ember-svg-jar/inlined/text.js","addon-tree-output/ember-svg-jar/inlined/theme.js","addon-tree-output/ember-svg-jar/inlined/ticket.js","addon-tree-output/ember-svg-jar/inlined/trash.js","addon-tree-output/ember-svg-jar/inlined/trophy.js","addon-tree-output/ember-svg-jar/inlined/tumbleweed.js","addon-tree-output/ember-svg-jar/inlined/twitter-comment.js","addon-tree-output/ember-svg-jar/inlined/twitter-like.js","addon-tree-output/ember-svg-jar/inlined/twitter-link.js","addon-tree-output/ember-svg-jar/inlined/twitter-retweet.js","addon-tree-output/ember-svg-jar/inlined/twitter-share.js","addon-tree-output/ember-svg-jar/inlined/twitter.js","addon-tree-output/ember-svg-jar/inlined/ufo-attack.js","addon-tree-output/ember-svg-jar/inlined/unsplash-heart.js","addon-tree-output/ember-svg-jar/inlined/unsplash.js","addon-tree-output/ember-svg-jar/inlined/unsubscribed.js","addon-tree-output/ember-svg-jar/inlined/upload-fill.js","addon-tree-output/ember-svg-jar/inlined/upload.js","addon-tree-output/ember-svg-jar/inlined/user-circle.js","addon-tree-output/ember-svg-jar/inlined/user-group.js","addon-tree-output/ember-svg-jar/inlined/user-group2.js","addon-tree-output/ember-svg-jar/inlined/v-ellipsis.js","addon-tree-output/ember-svg-jar/inlined/view-site.js","addon-tree-output/ember-svg-jar/inlined/warning-stroke.js","addon-tree-output/ember-svg-jar/inlined/warning.js","addon-tree-output/ember-svg-jar/inlined/window-app.js","addon-tree-output/ember-svg-jar/inlined/window-pulse.js","addon-tree-output/ember-svg-jar/inlined/wrench-double.js","addon-tree-output/ember-svg-jar/inlined/zap.js","addon-tree-output/ember-svg-jar/utils/make-helper.js","addon-tree-output/ember-svg-jar/utils/make-svg.js","addon-tree-output/ember-test-waiters/index.js","addon-tree-output/ember-text-measurer/services/text-measurer.js","addon-tree-output/ember-tooltips/components/ember-popover.js","addon-tree-output/ember-tooltips/components/ember-tooltip-base.js","addon-tree-output/ember-tooltips/components/ember-tooltip.js","addon-tree-output/ember-tooltips/templates/components/ember-tooltip-base.js","addon-tree-output/ember-tooltips/utils/ember-popover.js","addon-tree-output/ember-truth-helpers/helpers/and.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-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-useragent/helpers/user-agent.js","addon-tree-output/ember-useragent/initializers/user-agent.js","addon-tree-output/ember-useragent/instance-initializers/user-agent.js","addon-tree-output/ember-useragent/services/user-agent.js","addon-tree-output/emberx-file-input/components/x-file-input.js","addon-tree-output/emberx-file-input/templates/components/x-file-input.js","addon-tree-output/emberx-file-input/test-helpers/select-file-async.js","addon-tree-output/emberx-file-input/test-helpers/select-file-unit.js","addon-tree-output/koenig-editor/components/kg-action-bar.js","addon-tree-output/koenig-editor/components/koenig-alt-input.js","addon-tree-output/koenig-editor/components/koenig-basic-html-input.js","addon-tree-output/koenig-editor/components/koenig-caption-input.js","addon-tree-output/koenig-editor/components/koenig-card-bookmark.js","addon-tree-output/koenig-editor/components/koenig-card-code.js","addon-tree-output/koenig-editor/components/koenig-card-email-cta.js","addon-tree-output/koenig-editor/components/koenig-card-email.js","addon-tree-output/koenig-editor/components/koenig-card-embed.js","addon-tree-output/koenig-editor/components/koenig-card-gallery.js","addon-tree-output/koenig-editor/components/koenig-card-hr.js","addon-tree-output/koenig-editor/components/koenig-card-html.js","addon-tree-output/koenig-editor/components/koenig-card-image.js","addon-tree-output/koenig-editor/components/koenig-card-markdown.js","addon-tree-output/koenig-editor/components/koenig-card-paywall.js","addon-tree-output/koenig-editor/components/koenig-card.js","addon-tree-output/koenig-editor/components/koenig-editor.js","addon-tree-output/koenig-editor/components/koenig-link-input.js","addon-tree-output/koenig-editor/components/koenig-link-toolbar.js","addon-tree-output/koenig-editor/components/koenig-menu-content.js","addon-tree-output/koenig-editor/components/koenig-plus-menu.js","addon-tree-output/koenig-editor/components/koenig-slash-menu.js","addon-tree-output/koenig-editor/components/koenig-snippet-input-labs.js","addon-tree-output/koenig-editor/components/koenig-snippet-input.js","addon-tree-output/koenig-editor/components/koenig-text-replacement-html-input.js","addon-tree-output/koenig-editor/components/koenig-toolbar.js","addon-tree-output/koenig-editor/helpers/card-is-available.js","addon-tree-output/koenig-editor/helpers/clean-basic-html.js","addon-tree-output/koenig-editor/helpers/kg-style.js","addon-tree-output/koenig-editor/helpers/sanitize-html.js","addon-tree-output/koenig-editor/lib/clean-text-replacement-html.js","addon-tree-output/koenig-editor/lib/dnd/constants.js","addon-tree-output/koenig-editor/lib/dnd/container.js","addon-tree-output/koenig-editor/lib/dnd/scroll-handler.js","addon-tree-output/koenig-editor/lib/dnd/utils.js","addon-tree-output/koenig-editor/lib/relative-to-absolute.js","addon-tree-output/koenig-editor/options/atoms.js","addon-tree-output/koenig-editor/options/basic-html-parser-plugins.js","addon-tree-output/koenig-editor/options/cards.js","addon-tree-output/koenig-editor/options/key-commands.js","addon-tree-output/koenig-editor/options/text-expansions.js","addon-tree-output/koenig-editor/services/koenig-drag-drop-handler.js","addon-tree-output/koenig-editor/services/koenig-ui.js","addon-tree-output/koenig-editor/utils/create-component-atom.js","addon-tree-output/koenig-editor/utils/create-component-card.js","addon-tree-output/koenig-editor/utils/get-scroll-parent.js","addon-tree-output/koenig-editor/utils/markup-utils.js","addon-tree-output/koenig-editor/utils/oembed.js","addon-tree-output/koenig-editor/utils/reading-time.js","addon-tree-output/koenig-editor/utils/snippet-icon.js","addon-tree-output/liquid-fire/action.js","addon-tree-output/liquid-fire/animate.js","addon-tree-output/liquid-fire/components/-lf-get-outlet-state.js","addon-tree-output/liquid-fire/components/illiquid-model.js","addon-tree-output/liquid-fire/components/liquid-bind.js","addon-tree-output/liquid-fire/components/liquid-child.js","addon-tree-output/liquid-fire/components/liquid-container.js","addon-tree-output/liquid-fire/components/liquid-if.js","addon-tree-output/liquid-fire/components/liquid-measured.js","addon-tree-output/liquid-fire/components/liquid-outlet.js","addon-tree-output/liquid-fire/components/liquid-spacer.js","addon-tree-output/liquid-fire/components/liquid-sync.js","addon-tree-output/liquid-fire/components/liquid-unless.js","addon-tree-output/liquid-fire/components/liquid-versions.js","addon-tree-output/liquid-fire/constrainables.js","addon-tree-output/liquid-fire/constraint.js","addon-tree-output/liquid-fire/constraints.js","addon-tree-output/liquid-fire/dsl.js","addon-tree-output/liquid-fire/ember-internals.js","addon-tree-output/liquid-fire/ember-internals/get-outlet-state.js","addon-tree-output/liquid-fire/growable.js","addon-tree-output/liquid-fire/helpers/lf-lock-model.js","addon-tree-output/liquid-fire/helpers/lf-or.js","addon-tree-output/liquid-fire/index.js","addon-tree-output/liquid-fire/is-browser.js","addon-tree-output/liquid-fire/mixins/pausable.js","addon-tree-output/liquid-fire/mutation-observer.js","addon-tree-output/liquid-fire/promise.js","addon-tree-output/liquid-fire/rule.js","addon-tree-output/liquid-fire/running-transition.js","addon-tree-output/liquid-fire/tabbable.js","addon-tree-output/liquid-fire/templates/components/get-outlet-state.js","addon-tree-output/liquid-fire/templates/components/illiquid-model.js","addon-tree-output/liquid-fire/templates/components/liquid-bind.js","addon-tree-output/liquid-fire/templates/components/liquid-container.js","addon-tree-output/liquid-fire/templates/components/liquid-if.js","addon-tree-output/liquid-fire/templates/components/liquid-measured.js","addon-tree-output/liquid-fire/templates/components/liquid-outlet.js","addon-tree-output/liquid-fire/templates/components/liquid-spacer.js","addon-tree-output/liquid-fire/templates/components/liquid-sync.js","addon-tree-output/liquid-fire/templates/components/liquid-versions.js","addon-tree-output/liquid-fire/transition-map.js","addon-tree-output/liquid-fire/transitions/cross-fade.js","addon-tree-output/liquid-fire/transitions/default.js","addon-tree-output/liquid-fire/transitions/explode.js","addon-tree-output/liquid-fire/transitions/fade.js","addon-tree-output/liquid-fire/transitions/flex-grow.js","addon-tree-output/liquid-fire/transitions/fly-to.js","addon-tree-output/liquid-fire/transitions/move-over.js","addon-tree-output/liquid-fire/transitions/scale.js","addon-tree-output/liquid-fire/transitions/scroll-then.js","addon-tree-output/liquid-fire/transitions/to-down.js","addon-tree-output/liquid-fire/transitions/to-left.js","addon-tree-output/liquid-fire/transitions/to-right.js","addon-tree-output/liquid-fire/transitions/to-up.js","addon-tree-output/liquid-fire/transitions/wait.js","addon-tree-output/liquid-fire/velocity-ext.js","addon-tree-output/liquid-wormhole/components/liquid-append.js","addon-tree-output/liquid-wormhole/components/liquid-destination.js","addon-tree-output/liquid-wormhole/components/liquid-wormhole.js","addon-tree-output/liquid-wormhole/index.js","addon-tree-output/liquid-wormhole/services/liquid-fire-transitions.js","addon-tree-output/liquid-wormhole/services/liquid-wormhole.js","addon-tree-output/liquid-wormhole/templates/components/liquid-destination.js","addon-tree-output/liquid-wormhole/templates/components/liquid-wormhole.js","addon-tree-output/liquid-wormhole/transitions/wormhole.js","addon-tree-output/moment/index.js","addon-tree-output/moment/lib.js","addon-tree-output/perf-primitives/-constants.js","addon-tree-output/perf-primitives/empty-object.js","addon-tree-output/perf-primitives/fast-array.js","addon-tree-output/perf-primitives/hash-map.js","addon-tree-output/tracked-built-ins/-private/array.js","addon-tree-output/tracked-built-ins/-private/decorator.js","addon-tree-output/tracked-built-ins/-private/object.js","addon-tree-output/tracked-built-ins/index.js","addon-tree-output/tracked-maps-and-sets/-private/map.js","addon-tree-output/tracked-maps-and-sets/-private/set.js","addon-tree-output/tracked-maps-and-sets/-private/util.js","addon-tree-output/tracked-maps-and-sets/index.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\":{},\"EXTEND_PROTOTYPES\":{\"Date\":false,\"Array\":true,\"String\":true,\"Function\":false},\"_APPLICATION_TEMPLATE_WRAPPER\":false,\"_JQUERY_INTEGRATION\":true,\"_TEMPLATE_ONLY_GLIMMER_COMPONENTS\":true});\n\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);","if (typeof FastBoot === 'undefined') { //! moment.js\n//! version : 2.29.1\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\n;(function (global, factory) {\n    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n    typeof define === 'function' && define.amd ? define(factory) :\n    global.moment = factory()\n}(this, (function () { 'use strict';\n\n    var hookCallback;\n\n    function hooks() {\n        return hookCallback.apply(null, arguments);\n    }\n\n    // This is done to register the method called with moment()\n    // without creating circular dependencies.\n    function setHookCallback(callback) {\n        hookCallback = callback;\n    }\n\n    function isArray(input) {\n        return (\n            input instanceof Array ||\n            Object.prototype.toString.call(input) === '[object Array]'\n        );\n    }\n\n    function isObject(input) {\n        // IE8 will treat undefined and null as object if it wasn't for\n        // input != null\n        return (\n            input != null &&\n            Object.prototype.toString.call(input) === '[object Object]'\n        );\n    }\n\n    function hasOwnProp(a, b) {\n        return Object.prototype.hasOwnProperty.call(a, b);\n    }\n\n    function isObjectEmpty(obj) {\n        if (Object.getOwnPropertyNames) {\n            return Object.getOwnPropertyNames(obj).length === 0;\n        } else {\n            var k;\n            for (k in obj) {\n                if (hasOwnProp(obj, k)) {\n                    return false;\n                }\n            }\n            return true;\n        }\n    }\n\n    function isUndefined(input) {\n        return input === void 0;\n    }\n\n    function isNumber(input) {\n        return (\n            typeof input === 'number' ||\n            Object.prototype.toString.call(input) === '[object Number]'\n        );\n    }\n\n    function isDate(input) {\n        return (\n            input instanceof Date ||\n            Object.prototype.toString.call(input) === '[object Date]'\n        );\n    }\n\n    function map(arr, fn) {\n        var res = [],\n            i;\n        for (i = 0; i < arr.length; ++i) {\n            res.push(fn(arr[i], i));\n        }\n        return res;\n    }\n\n    function extend(a, b) {\n        for (var i in b) {\n            if (hasOwnProp(b, i)) {\n                a[i] = b[i];\n            }\n        }\n\n        if (hasOwnProp(b, 'toString')) {\n            a.toString = b.toString;\n        }\n\n        if (hasOwnProp(b, 'valueOf')) {\n            a.valueOf = b.valueOf;\n        }\n\n        return a;\n    }\n\n    function createUTC(input, format, locale, strict) {\n        return createLocalOrUTC(input, format, locale, strict, true).utc();\n    }\n\n    function defaultParsingFlags() {\n        // We need to deep clone this object.\n        return {\n            empty: false,\n            unusedTokens: [],\n            unusedInput: [],\n            overflow: -2,\n            charsLeftOver: 0,\n            nullInput: false,\n            invalidEra: null,\n            invalidMonth: null,\n            invalidFormat: false,\n            userInvalidated: false,\n            iso: false,\n            parsedDateParts: [],\n            era: null,\n            meridiem: null,\n            rfc2822: false,\n            weekdayMismatch: false,\n        };\n    }\n\n    function getParsingFlags(m) {\n        if (m._pf == null) {\n            m._pf = defaultParsingFlags();\n        }\n        return m._pf;\n    }\n\n    var some;\n    if (Array.prototype.some) {\n        some = Array.prototype.some;\n    } else {\n        some = function (fun) {\n            var t = Object(this),\n                len = t.length >>> 0,\n                i;\n\n            for (i = 0; i < len; i++) {\n                if (i in t && fun.call(this, t[i], i, t)) {\n                    return true;\n                }\n            }\n\n            return false;\n        };\n    }\n\n    function isValid(m) {\n        if (m._isValid == null) {\n            var flags = getParsingFlags(m),\n                parsedParts = some.call(flags.parsedDateParts, function (i) {\n                    return i != null;\n                }),\n                isNowValid =\n                    !isNaN(m._d.getTime()) &&\n                    flags.overflow < 0 &&\n                    !flags.empty &&\n                    !flags.invalidEra &&\n                    !flags.invalidMonth &&\n                    !flags.invalidWeekday &&\n                    !flags.weekdayMismatch &&\n                    !flags.nullInput &&\n                    !flags.invalidFormat &&\n                    !flags.userInvalidated &&\n                    (!flags.meridiem || (flags.meridiem && parsedParts));\n\n            if (m._strict) {\n                isNowValid =\n                    isNowValid &&\n                    flags.charsLeftOver === 0 &&\n                    flags.unusedTokens.length === 0 &&\n                    flags.bigHour === undefined;\n            }\n\n            if (Object.isFrozen == null || !Object.isFrozen(m)) {\n                m._isValid = isNowValid;\n            } else {\n                return isNowValid;\n            }\n        }\n        return m._isValid;\n    }\n\n    function createInvalid(flags) {\n        var m = createUTC(NaN);\n        if (flags != null) {\n            extend(getParsingFlags(m), flags);\n        } else {\n            getParsingFlags(m).userInvalidated = true;\n        }\n\n        return m;\n    }\n\n    // Plugins that add properties should also add the key here (null value),\n    // so we can properly clone ourselves.\n    var momentProperties = (hooks.momentProperties = []),\n        updateInProgress = false;\n\n    function copyConfig(to, from) {\n        var i, prop, val;\n\n        if (!isUndefined(from._isAMomentObject)) {\n            to._isAMomentObject = from._isAMomentObject;\n        }\n        if (!isUndefined(from._i)) {\n            to._i = from._i;\n        }\n        if (!isUndefined(from._f)) {\n            to._f = from._f;\n        }\n        if (!isUndefined(from._l)) {\n            to._l = from._l;\n        }\n        if (!isUndefined(from._strict)) {\n            to._strict = from._strict;\n        }\n        if (!isUndefined(from._tzm)) {\n            to._tzm = from._tzm;\n        }\n        if (!isUndefined(from._isUTC)) {\n            to._isUTC = from._isUTC;\n        }\n        if (!isUndefined(from._offset)) {\n            to._offset = from._offset;\n        }\n        if (!isUndefined(from._pf)) {\n            to._pf = getParsingFlags(from);\n        }\n        if (!isUndefined(from._locale)) {\n            to._locale = from._locale;\n        }\n\n        if (momentProperties.length > 0) {\n            for (i = 0; i < momentProperties.length; i++) {\n                prop = momentProperties[i];\n                val = from[prop];\n                if (!isUndefined(val)) {\n                    to[prop] = val;\n                }\n            }\n        }\n\n        return to;\n    }\n\n    // Moment prototype object\n    function Moment(config) {\n        copyConfig(this, config);\n        this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n        if (!this.isValid()) {\n            this._d = new Date(NaN);\n        }\n        // Prevent infinite loop in case updateOffset creates new moment\n        // objects.\n        if (updateInProgress === false) {\n            updateInProgress = true;\n            hooks.updateOffset(this);\n            updateInProgress = false;\n        }\n    }\n\n    function isMoment(obj) {\n        return (\n            obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n        );\n    }\n\n    function warn(msg) {\n        if (\n            hooks.suppressDeprecationWarnings === false &&\n            typeof console !== 'undefined' &&\n            console.warn\n        ) {\n            console.warn('Deprecation warning: ' + msg);\n        }\n    }\n\n    function deprecate(msg, fn) {\n        var firstTime = true;\n\n        return extend(function () {\n            if (hooks.deprecationHandler != null) {\n                hooks.deprecationHandler(null, msg);\n            }\n            if (firstTime) {\n                var args = [],\n                    arg,\n                    i,\n                    key;\n                for (i = 0; i < arguments.length; i++) {\n                    arg = '';\n                    if (typeof arguments[i] === 'object') {\n                        arg += '\\n[' + i + '] ';\n                        for (key in arguments[0]) {\n                            if (hasOwnProp(arguments[0], key)) {\n                                arg += key + ': ' + arguments[0][key] + ', ';\n                            }\n                        }\n                        arg = arg.slice(0, -2); // Remove trailing comma and space\n                    } else {\n                        arg = arguments[i];\n                    }\n                    args.push(arg);\n                }\n                warn(\n                    msg +\n                        '\\nArguments: ' +\n                        Array.prototype.slice.call(args).join('') +\n                        '\\n' +\n                        new Error().stack\n                );\n                firstTime = false;\n            }\n            return fn.apply(this, arguments);\n        }, fn);\n    }\n\n    var deprecations = {};\n\n    function deprecateSimple(name, msg) {\n        if (hooks.deprecationHandler != null) {\n            hooks.deprecationHandler(name, msg);\n        }\n        if (!deprecations[name]) {\n            warn(msg);\n            deprecations[name] = true;\n        }\n    }\n\n    hooks.suppressDeprecationWarnings = false;\n    hooks.deprecationHandler = null;\n\n    function isFunction(input) {\n        return (\n            (typeof Function !== 'undefined' && input instanceof Function) ||\n            Object.prototype.toString.call(input) === '[object Function]'\n        );\n    }\n\n    function set(config) {\n        var prop, i;\n        for (i in config) {\n            if (hasOwnProp(config, i)) {\n                prop = config[i];\n                if (isFunction(prop)) {\n                    this[i] = prop;\n                } else {\n                    this['_' + i] = prop;\n                }\n            }\n        }\n        this._config = config;\n        // Lenient ordinal parsing accepts just a number in addition to\n        // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n        // TODO: Remove \"ordinalParse\" fallback in next major release.\n        this._dayOfMonthOrdinalParseLenient = new RegExp(\n            (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n                '|' +\n                /\\d{1,2}/.source\n        );\n    }\n\n    function mergeConfigs(parentConfig, childConfig) {\n        var res = extend({}, parentConfig),\n            prop;\n        for (prop in childConfig) {\n            if (hasOwnProp(childConfig, prop)) {\n                if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n                    res[prop] = {};\n                    extend(res[prop], parentConfig[prop]);\n                    extend(res[prop], childConfig[prop]);\n                } else if (childConfig[prop] != null) {\n                    res[prop] = childConfig[prop];\n                } else {\n                    delete res[prop];\n                }\n            }\n        }\n        for (prop in parentConfig) {\n            if (\n                hasOwnProp(parentConfig, prop) &&\n                !hasOwnProp(childConfig, prop) &&\n                isObject(parentConfig[prop])\n            ) {\n                // make sure changes to properties don't modify parent config\n                res[prop] = extend({}, res[prop]);\n            }\n        }\n        return res;\n    }\n\n    function Locale(config) {\n        if (config != null) {\n            this.set(config);\n        }\n    }\n\n    var keys;\n\n    if (Object.keys) {\n        keys = Object.keys;\n    } else {\n        keys = function (obj) {\n            var i,\n                res = [];\n            for (i in obj) {\n                if (hasOwnProp(obj, i)) {\n                    res.push(i);\n                }\n            }\n            return res;\n        };\n    }\n\n    var defaultCalendar = {\n        sameDay: '[Today at] LT',\n        nextDay: '[Tomorrow at] LT',\n        nextWeek: 'dddd [at] LT',\n        lastDay: '[Yesterday at] LT',\n        lastWeek: '[Last] dddd [at] LT',\n        sameElse: 'L',\n    };\n\n    function calendar(key, mom, now) {\n        var output = this._calendar[key] || this._calendar['sameElse'];\n        return isFunction(output) ? output.call(mom, now) : output;\n    }\n\n    function zeroFill(number, targetLength, forceSign) {\n        var absNumber = '' + Math.abs(number),\n            zerosToFill = targetLength - absNumber.length,\n            sign = number >= 0;\n        return (\n            (sign ? (forceSign ? '+' : '') : '-') +\n            Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n            absNumber\n        );\n    }\n\n    var formattingTokens = /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,\n        localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n        formatFunctions = {},\n        formatTokenFunctions = {};\n\n    // token:    'M'\n    // padded:   ['MM', 2]\n    // ordinal:  'Mo'\n    // callback: function () { this.month() + 1 }\n    function addFormatToken(token, padded, ordinal, callback) {\n        var func = callback;\n        if (typeof callback === 'string') {\n            func = function () {\n                return this[callback]();\n            };\n        }\n        if (token) {\n            formatTokenFunctions[token] = func;\n        }\n        if (padded) {\n            formatTokenFunctions[padded[0]] = function () {\n                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n            };\n        }\n        if (ordinal) {\n            formatTokenFunctions[ordinal] = function () {\n                return this.localeData().ordinal(\n                    func.apply(this, arguments),\n                    token\n                );\n            };\n        }\n    }\n\n    function removeFormattingTokens(input) {\n        if (input.match(/\\[[\\s\\S]/)) {\n            return input.replace(/^\\[|\\]$/g, '');\n        }\n        return input.replace(/\\\\/g, '');\n    }\n\n    function makeFormatFunction(format) {\n        var array = format.match(formattingTokens),\n            i,\n            length;\n\n        for (i = 0, length = array.length; i < length; i++) {\n            if (formatTokenFunctions[array[i]]) {\n                array[i] = formatTokenFunctions[array[i]];\n            } else {\n                array[i] = removeFormattingTokens(array[i]);\n            }\n        }\n\n        return function (mom) {\n            var output = '',\n                i;\n            for (i = 0; i < length; i++) {\n                output += isFunction(array[i])\n                    ? array[i].call(mom, format)\n                    : array[i];\n            }\n            return output;\n        };\n    }\n\n    // format date using native date object\n    function formatMoment(m, format) {\n        if (!m.isValid()) {\n            return m.localeData().invalidDate();\n        }\n\n        format = expandFormat(format, m.localeData());\n        formatFunctions[format] =\n            formatFunctions[format] || makeFormatFunction(format);\n\n        return formatFunctions[format](m);\n    }\n\n    function expandFormat(format, locale) {\n        var i = 5;\n\n        function replaceLongDateFormatTokens(input) {\n            return locale.longDateFormat(input) || input;\n        }\n\n        localFormattingTokens.lastIndex = 0;\n        while (i >= 0 && localFormattingTokens.test(format)) {\n            format = format.replace(\n                localFormattingTokens,\n                replaceLongDateFormatTokens\n            );\n            localFormattingTokens.lastIndex = 0;\n            i -= 1;\n        }\n\n        return format;\n    }\n\n    var defaultLongDateFormat = {\n        LTS: 'h:mm:ss A',\n        LT: 'h:mm A',\n        L: 'MM/DD/YYYY',\n        LL: 'MMMM D, YYYY',\n        LLL: 'MMMM D, YYYY h:mm A',\n        LLLL: 'dddd, MMMM D, YYYY h:mm A',\n    };\n\n    function longDateFormat(key) {\n        var format = this._longDateFormat[key],\n            formatUpper = this._longDateFormat[key.toUpperCase()];\n\n        if (format || !formatUpper) {\n            return format;\n        }\n\n        this._longDateFormat[key] = formatUpper\n            .match(formattingTokens)\n            .map(function (tok) {\n                if (\n                    tok === 'MMMM' ||\n                    tok === 'MM' ||\n                    tok === 'DD' ||\n                    tok === 'dddd'\n                ) {\n                    return tok.slice(1);\n                }\n                return tok;\n            })\n            .join('');\n\n        return this._longDateFormat[key];\n    }\n\n    var defaultInvalidDate = 'Invalid date';\n\n    function invalidDate() {\n        return this._invalidDate;\n    }\n\n    var defaultOrdinal = '%d',\n        defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n    function ordinal(number) {\n        return this._ordinal.replace('%d', number);\n    }\n\n    var defaultRelativeTime = {\n        future: 'in %s',\n        past: '%s ago',\n        s: 'a few seconds',\n        ss: '%d seconds',\n        m: 'a minute',\n        mm: '%d minutes',\n        h: 'an hour',\n        hh: '%d hours',\n        d: 'a day',\n        dd: '%d days',\n        w: 'a week',\n        ww: '%d weeks',\n        M: 'a month',\n        MM: '%d months',\n        y: 'a year',\n        yy: '%d years',\n    };\n\n    function relativeTime(number, withoutSuffix, string, isFuture) {\n        var output = this._relativeTime[string];\n        return isFunction(output)\n            ? output(number, withoutSuffix, string, isFuture)\n            : output.replace(/%d/i, number);\n    }\n\n    function pastFuture(diff, output) {\n        var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n        return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n    }\n\n    var aliases = {};\n\n    function addUnitAlias(unit, shorthand) {\n        var lowerCase = unit.toLowerCase();\n        aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n    }\n\n    function normalizeUnits(units) {\n        return typeof units === 'string'\n            ? aliases[units] || aliases[units.toLowerCase()]\n            : undefined;\n    }\n\n    function normalizeObjectUnits(inputObject) {\n        var normalizedInput = {},\n            normalizedProp,\n            prop;\n\n        for (prop in inputObject) {\n            if (hasOwnProp(inputObject, prop)) {\n                normalizedProp = normalizeUnits(prop);\n                if (normalizedProp) {\n                    normalizedInput[normalizedProp] = inputObject[prop];\n                }\n            }\n        }\n\n        return normalizedInput;\n    }\n\n    var priorities = {};\n\n    function addUnitPriority(unit, priority) {\n        priorities[unit] = priority;\n    }\n\n    function getPrioritizedUnits(unitsObj) {\n        var units = [],\n            u;\n        for (u in unitsObj) {\n            if (hasOwnProp(unitsObj, u)) {\n                units.push({ unit: u, priority: priorities[u] });\n            }\n        }\n        units.sort(function (a, b) {\n            return a.priority - b.priority;\n        });\n        return units;\n    }\n\n    function isLeapYear(year) {\n        return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n    }\n\n    function absFloor(number) {\n        if (number < 0) {\n            // -0 -> 0\n            return Math.ceil(number) || 0;\n        } else {\n            return Math.floor(number);\n        }\n    }\n\n    function toInt(argumentForCoercion) {\n        var coercedNumber = +argumentForCoercion,\n            value = 0;\n\n        if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n            value = absFloor(coercedNumber);\n        }\n\n        return value;\n    }\n\n    function makeGetSet(unit, keepTime) {\n        return function (value) {\n            if (value != null) {\n                set$1(this, unit, value);\n                hooks.updateOffset(this, keepTime);\n                return this;\n            } else {\n                return get(this, unit);\n            }\n        };\n    }\n\n    function get(mom, unit) {\n        return mom.isValid()\n            ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()\n            : NaN;\n    }\n\n    function set$1(mom, unit, value) {\n        if (mom.isValid() && !isNaN(value)) {\n            if (\n                unit === 'FullYear' &&\n                isLeapYear(mom.year()) &&\n                mom.month() === 1 &&\n                mom.date() === 29\n            ) {\n                value = toInt(value);\n                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](\n                    value,\n                    mom.month(),\n                    daysInMonth(value, mom.month())\n                );\n            } else {\n                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n            }\n        }\n    }\n\n    // MOMENTS\n\n    function stringGet(units) {\n        units = normalizeUnits(units);\n        if (isFunction(this[units])) {\n            return this[units]();\n        }\n        return this;\n    }\n\n    function stringSet(units, value) {\n        if (typeof units === 'object') {\n            units = normalizeObjectUnits(units);\n            var prioritized = getPrioritizedUnits(units),\n                i;\n            for (i = 0; i < prioritized.length; i++) {\n                this[prioritized[i].unit](units[prioritized[i].unit]);\n            }\n        } else {\n            units = normalizeUnits(units);\n            if (isFunction(this[units])) {\n                return this[units](value);\n            }\n        }\n        return this;\n    }\n\n    var match1 = /\\d/, //       0 - 9\n        match2 = /\\d\\d/, //      00 - 99\n        match3 = /\\d{3}/, //     000 - 999\n        match4 = /\\d{4}/, //    0000 - 9999\n        match6 = /[+-]?\\d{6}/, // -999999 - 999999\n        match1to2 = /\\d\\d?/, //       0 - 99\n        match3to4 = /\\d\\d\\d\\d?/, //     999 - 9999\n        match5to6 = /\\d\\d\\d\\d\\d\\d?/, //   99999 - 999999\n        match1to3 = /\\d{1,3}/, //       0 - 999\n        match1to4 = /\\d{1,4}/, //       0 - 9999\n        match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n        matchUnsigned = /\\d+/, //       0 - inf\n        matchSigned = /[+-]?\\d+/, //    -inf - inf\n        matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n        matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n        matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n        // any word (or two) characters or numbers including two/three word month in arabic.\n        // includes scottish gaelic two word and hyphenated months\n        matchWord = /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,\n        regexes;\n\n    regexes = {};\n\n    function addRegexToken(token, regex, strictRegex) {\n        regexes[token] = isFunction(regex)\n            ? regex\n            : function (isStrict, localeData) {\n                  return isStrict && strictRegex ? strictRegex : regex;\n              };\n    }\n\n    function getParseRegexForToken(token, config) {\n        if (!hasOwnProp(regexes, token)) {\n            return new RegExp(unescapeFormat(token));\n        }\n\n        return regexes[token](config._strict, config._locale);\n    }\n\n    // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n    function unescapeFormat(s) {\n        return regexEscape(\n            s\n                .replace('\\\\', '')\n                .replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function (\n                    matched,\n                    p1,\n                    p2,\n                    p3,\n                    p4\n                ) {\n                    return p1 || p2 || p3 || p4;\n                })\n        );\n    }\n\n    function regexEscape(s) {\n        return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n    }\n\n    var tokens = {};\n\n    function addParseToken(token, callback) {\n        var i,\n            func = callback;\n        if (typeof token === 'string') {\n            token = [token];\n        }\n        if (isNumber(callback)) {\n            func = function (input, array) {\n                array[callback] = toInt(input);\n            };\n        }\n        for (i = 0; i < token.length; i++) {\n            tokens[token[i]] = func;\n        }\n    }\n\n    function addWeekParseToken(token, callback) {\n        addParseToken(token, function (input, array, config, token) {\n            config._w = config._w || {};\n            callback(input, config._w, config, token);\n        });\n    }\n\n    function addTimeToArrayFromToken(token, input, config) {\n        if (input != null && hasOwnProp(tokens, token)) {\n            tokens[token](input, config._a, config, token);\n        }\n    }\n\n    var YEAR = 0,\n        MONTH = 1,\n        DATE = 2,\n        HOUR = 3,\n        MINUTE = 4,\n        SECOND = 5,\n        MILLISECOND = 6,\n        WEEK = 7,\n        WEEKDAY = 8;\n\n    function mod(n, x) {\n        return ((n % x) + x) % x;\n    }\n\n    var indexOf;\n\n    if (Array.prototype.indexOf) {\n        indexOf = Array.prototype.indexOf;\n    } else {\n        indexOf = function (o) {\n            // I know\n            var i;\n            for (i = 0; i < this.length; ++i) {\n                if (this[i] === o) {\n                    return i;\n                }\n            }\n            return -1;\n        };\n    }\n\n    function daysInMonth(year, month) {\n        if (isNaN(year) || isNaN(month)) {\n            return NaN;\n        }\n        var modMonth = mod(month, 12);\n        year += (month - modMonth) / 12;\n        return modMonth === 1\n            ? isLeapYear(year)\n                ? 29\n                : 28\n            : 31 - ((modMonth % 7) % 2);\n    }\n\n    // FORMATTING\n\n    addFormatToken('M', ['MM', 2], 'Mo', function () {\n        return this.month() + 1;\n    });\n\n    addFormatToken('MMM', 0, 0, function (format) {\n        return this.localeData().monthsShort(this, format);\n    });\n\n    addFormatToken('MMMM', 0, 0, function (format) {\n        return this.localeData().months(this, format);\n    });\n\n    // ALIASES\n\n    addUnitAlias('month', 'M');\n\n    // PRIORITY\n\n    addUnitPriority('month', 8);\n\n    // PARSING\n\n    addRegexToken('M', match1to2);\n    addRegexToken('MM', match1to2, match2);\n    addRegexToken('MMM', function (isStrict, locale) {\n        return locale.monthsShortRegex(isStrict);\n    });\n    addRegexToken('MMMM', function (isStrict, locale) {\n        return locale.monthsRegex(isStrict);\n    });\n\n    addParseToken(['M', 'MM'], function (input, array) {\n        array[MONTH] = toInt(input) - 1;\n    });\n\n    addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n        var month = config._locale.monthsParse(input, token, config._strict);\n        // if we didn't find a month name, mark the date as invalid.\n        if (month != null) {\n            array[MONTH] = month;\n        } else {\n            getParsingFlags(config).invalidMonth = input;\n        }\n    });\n\n    // LOCALES\n\n    var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(\n            '_'\n        ),\n        MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n        defaultMonthsShortRegex = matchWord,\n        defaultMonthsRegex = matchWord;\n\n    function localeMonths(m, format) {\n        if (!m) {\n            return isArray(this._months)\n                ? this._months\n                : this._months['standalone'];\n        }\n        return isArray(this._months)\n            ? this._months[m.month()]\n            : this._months[\n                  (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n                      ? 'format'\n                      : 'standalone'\n              ][m.month()];\n    }\n\n    function localeMonthsShort(m, format) {\n        if (!m) {\n            return isArray(this._monthsShort)\n                ? this._monthsShort\n                : this._monthsShort['standalone'];\n        }\n        return isArray(this._monthsShort)\n            ? this._monthsShort[m.month()]\n            : this._monthsShort[\n                  MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n              ][m.month()];\n    }\n\n    function handleStrictParse(monthName, format, strict) {\n        var i,\n            ii,\n            mom,\n            llc = monthName.toLocaleLowerCase();\n        if (!this._monthsParse) {\n            // this is not used\n            this._monthsParse = [];\n            this._longMonthsParse = [];\n            this._shortMonthsParse = [];\n            for (i = 0; i < 12; ++i) {\n                mom = createUTC([2000, i]);\n                this._shortMonthsParse[i] = this.monthsShort(\n                    mom,\n                    ''\n                ).toLocaleLowerCase();\n                this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n            }\n        }\n\n        if (strict) {\n            if (format === 'MMM') {\n                ii = indexOf.call(this._shortMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._longMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        } else {\n            if (format === 'MMM') {\n                ii = indexOf.call(this._shortMonthsParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._longMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._longMonthsParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._shortMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        }\n    }\n\n    function localeMonthsParse(monthName, format, strict) {\n        var i, mom, regex;\n\n        if (this._monthsParseExact) {\n            return handleStrictParse.call(this, monthName, format, strict);\n        }\n\n        if (!this._monthsParse) {\n            this._monthsParse = [];\n            this._longMonthsParse = [];\n            this._shortMonthsParse = [];\n        }\n\n        // TODO: add sorting\n        // Sorting makes sure if one month (or abbr) is a prefix of another\n        // see sorting in computeMonthsParse\n        for (i = 0; i < 12; i++) {\n            // make the regex if we don't have it already\n            mom = createUTC([2000, i]);\n            if (strict && !this._longMonthsParse[i]) {\n                this._longMonthsParse[i] = new RegExp(\n                    '^' + this.months(mom, '').replace('.', '') + '$',\n                    'i'\n                );\n                this._shortMonthsParse[i] = new RegExp(\n                    '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n                    'i'\n                );\n            }\n            if (!strict && !this._monthsParse[i]) {\n                regex =\n                    '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n            }\n            // test the regex\n            if (\n                strict &&\n                format === 'MMMM' &&\n                this._longMonthsParse[i].test(monthName)\n            ) {\n                return i;\n            } else if (\n                strict &&\n                format === 'MMM' &&\n                this._shortMonthsParse[i].test(monthName)\n            ) {\n                return i;\n            } else if (!strict && this._monthsParse[i].test(monthName)) {\n                return i;\n            }\n        }\n    }\n\n    // MOMENTS\n\n    function setMonth(mom, value) {\n        var dayOfMonth;\n\n        if (!mom.isValid()) {\n            // No op\n            return mom;\n        }\n\n        if (typeof value === 'string') {\n            if (/^\\d+$/.test(value)) {\n                value = toInt(value);\n            } else {\n                value = mom.localeData().monthsParse(value);\n                // TODO: Another silent failure?\n                if (!isNumber(value)) {\n                    return mom;\n                }\n            }\n        }\n\n        dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n        mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n        return mom;\n    }\n\n    function getSetMonth(value) {\n        if (value != null) {\n            setMonth(this, value);\n            hooks.updateOffset(this, true);\n            return this;\n        } else {\n            return get(this, 'Month');\n        }\n    }\n\n    function getDaysInMonth() {\n        return daysInMonth(this.year(), this.month());\n    }\n\n    function monthsShortRegex(isStrict) {\n        if (this._monthsParseExact) {\n            if (!hasOwnProp(this, '_monthsRegex')) {\n                computeMonthsParse.call(this);\n            }\n            if (isStrict) {\n                return this._monthsShortStrictRegex;\n            } else {\n                return this._monthsShortRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_monthsShortRegex')) {\n                this._monthsShortRegex = defaultMonthsShortRegex;\n            }\n            return this._monthsShortStrictRegex && isStrict\n                ? this._monthsShortStrictRegex\n                : this._monthsShortRegex;\n        }\n    }\n\n    function monthsRegex(isStrict) {\n        if (this._monthsParseExact) {\n            if (!hasOwnProp(this, '_monthsRegex')) {\n                computeMonthsParse.call(this);\n            }\n            if (isStrict) {\n                return this._monthsStrictRegex;\n            } else {\n                return this._monthsRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_monthsRegex')) {\n                this._monthsRegex = defaultMonthsRegex;\n            }\n            return this._monthsStrictRegex && isStrict\n                ? this._monthsStrictRegex\n                : this._monthsRegex;\n        }\n    }\n\n    function computeMonthsParse() {\n        function cmpLenRev(a, b) {\n            return b.length - a.length;\n        }\n\n        var shortPieces = [],\n            longPieces = [],\n            mixedPieces = [],\n            i,\n            mom;\n        for (i = 0; i < 12; i++) {\n            // make the regex if we don't have it already\n            mom = createUTC([2000, i]);\n            shortPieces.push(this.monthsShort(mom, ''));\n            longPieces.push(this.months(mom, ''));\n            mixedPieces.push(this.months(mom, ''));\n            mixedPieces.push(this.monthsShort(mom, ''));\n        }\n        // Sorting makes sure if one month (or abbr) is a prefix of another it\n        // will match the longer piece.\n        shortPieces.sort(cmpLenRev);\n        longPieces.sort(cmpLenRev);\n        mixedPieces.sort(cmpLenRev);\n        for (i = 0; i < 12; i++) {\n            shortPieces[i] = regexEscape(shortPieces[i]);\n            longPieces[i] = regexEscape(longPieces[i]);\n        }\n        for (i = 0; i < 24; i++) {\n            mixedPieces[i] = regexEscape(mixedPieces[i]);\n        }\n\n        this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n        this._monthsShortRegex = this._monthsRegex;\n        this._monthsStrictRegex = new RegExp(\n            '^(' + longPieces.join('|') + ')',\n            'i'\n        );\n        this._monthsShortStrictRegex = new RegExp(\n            '^(' + shortPieces.join('|') + ')',\n            'i'\n        );\n    }\n\n    // FORMATTING\n\n    addFormatToken('Y', 0, 0, function () {\n        var y = this.year();\n        return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n    });\n\n    addFormatToken(0, ['YY', 2], 0, function () {\n        return this.year() % 100;\n    });\n\n    addFormatToken(0, ['YYYY', 4], 0, 'year');\n    addFormatToken(0, ['YYYYY', 5], 0, 'year');\n    addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n    // ALIASES\n\n    addUnitAlias('year', 'y');\n\n    // PRIORITIES\n\n    addUnitPriority('year', 1);\n\n    // PARSING\n\n    addRegexToken('Y', matchSigned);\n    addRegexToken('YY', match1to2, match2);\n    addRegexToken('YYYY', match1to4, match4);\n    addRegexToken('YYYYY', match1to6, match6);\n    addRegexToken('YYYYYY', match1to6, match6);\n\n    addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n    addParseToken('YYYY', function (input, array) {\n        array[YEAR] =\n            input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n    });\n    addParseToken('YY', function (input, array) {\n        array[YEAR] = hooks.parseTwoDigitYear(input);\n    });\n    addParseToken('Y', function (input, array) {\n        array[YEAR] = parseInt(input, 10);\n    });\n\n    // HELPERS\n\n    function daysInYear(year) {\n        return isLeapYear(year) ? 366 : 365;\n    }\n\n    // HOOKS\n\n    hooks.parseTwoDigitYear = function (input) {\n        return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n    };\n\n    // MOMENTS\n\n    var getSetYear = makeGetSet('FullYear', true);\n\n    function getIsLeapYear() {\n        return isLeapYear(this.year());\n    }\n\n    function createDate(y, m, d, h, M, s, ms) {\n        // can't just apply() to create a date:\n        // https://stackoverflow.com/q/181348\n        var date;\n        // the date constructor remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            // preserve leap years using a full 400 year cycle, then reset\n            date = new Date(y + 400, m, d, h, M, s, ms);\n            if (isFinite(date.getFullYear())) {\n                date.setFullYear(y);\n            }\n        } else {\n            date = new Date(y, m, d, h, M, s, ms);\n        }\n\n        return date;\n    }\n\n    function createUTCDate(y) {\n        var date, args;\n        // the Date.UTC function remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            args = Array.prototype.slice.call(arguments);\n            // preserve leap years using a full 400 year cycle, then reset\n            args[0] = y + 400;\n            date = new Date(Date.UTC.apply(null, args));\n            if (isFinite(date.getUTCFullYear())) {\n                date.setUTCFullYear(y);\n            }\n        } else {\n            date = new Date(Date.UTC.apply(null, arguments));\n        }\n\n        return date;\n    }\n\n    // start-of-first-week - start-of-year\n    function firstWeekOffset(year, dow, doy) {\n        var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n            fwd = 7 + dow - doy,\n            // first-week day local weekday -- which local weekday is fwd\n            fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n        return -fwdlw + fwd - 1;\n    }\n\n    // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n    function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n        var localWeekday = (7 + weekday - dow) % 7,\n            weekOffset = firstWeekOffset(year, dow, doy),\n            dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n            resYear,\n            resDayOfYear;\n\n        if (dayOfYear <= 0) {\n            resYear = year - 1;\n            resDayOfYear = daysInYear(resYear) + dayOfYear;\n        } else if (dayOfYear > daysInYear(year)) {\n            resYear = year + 1;\n            resDayOfYear = dayOfYear - daysInYear(year);\n        } else {\n            resYear = year;\n            resDayOfYear = dayOfYear;\n        }\n\n        return {\n            year: resYear,\n            dayOfYear: resDayOfYear,\n        };\n    }\n\n    function weekOfYear(mom, dow, doy) {\n        var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n            week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n            resWeek,\n            resYear;\n\n        if (week < 1) {\n            resYear = mom.year() - 1;\n            resWeek = week + weeksInYear(resYear, dow, doy);\n        } else if (week > weeksInYear(mom.year(), dow, doy)) {\n            resWeek = week - weeksInYear(mom.year(), dow, doy);\n            resYear = mom.year() + 1;\n        } else {\n            resYear = mom.year();\n            resWeek = week;\n        }\n\n        return {\n            week: resWeek,\n            year: resYear,\n        };\n    }\n\n    function weeksInYear(year, dow, doy) {\n        var weekOffset = firstWeekOffset(year, dow, doy),\n            weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n        return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n    }\n\n    // FORMATTING\n\n    addFormatToken('w', ['ww', 2], 'wo', 'week');\n    addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n    // ALIASES\n\n    addUnitAlias('week', 'w');\n    addUnitAlias('isoWeek', 'W');\n\n    // PRIORITIES\n\n    addUnitPriority('week', 5);\n    addUnitPriority('isoWeek', 5);\n\n    // PARSING\n\n    addRegexToken('w', match1to2);\n    addRegexToken('ww', match1to2, match2);\n    addRegexToken('W', match1to2);\n    addRegexToken('WW', match1to2, match2);\n\n    addWeekParseToken(['w', 'ww', 'W', 'WW'], function (\n        input,\n        week,\n        config,\n        token\n    ) {\n        week[token.substr(0, 1)] = toInt(input);\n    });\n\n    // HELPERS\n\n    // LOCALES\n\n    function localeWeek(mom) {\n        return weekOfYear(mom, this._week.dow, this._week.doy).week;\n    }\n\n    var defaultLocaleWeek = {\n        dow: 0, // Sunday is the first day of the week.\n        doy: 6, // The week that contains Jan 6th is the first week of the year.\n    };\n\n    function localeFirstDayOfWeek() {\n        return this._week.dow;\n    }\n\n    function localeFirstDayOfYear() {\n        return this._week.doy;\n    }\n\n    // MOMENTS\n\n    function getSetWeek(input) {\n        var week = this.localeData().week(this);\n        return input == null ? week : this.add((input - week) * 7, 'd');\n    }\n\n    function getSetISOWeek(input) {\n        var week = weekOfYear(this, 1, 4).week;\n        return input == null ? week : this.add((input - week) * 7, 'd');\n    }\n\n    // FORMATTING\n\n    addFormatToken('d', 0, 'do', 'day');\n\n    addFormatToken('dd', 0, 0, function (format) {\n        return this.localeData().weekdaysMin(this, format);\n    });\n\n    addFormatToken('ddd', 0, 0, function (format) {\n        return this.localeData().weekdaysShort(this, format);\n    });\n\n    addFormatToken('dddd', 0, 0, function (format) {\n        return this.localeData().weekdays(this, format);\n    });\n\n    addFormatToken('e', 0, 0, 'weekday');\n    addFormatToken('E', 0, 0, 'isoWeekday');\n\n    // ALIASES\n\n    addUnitAlias('day', 'd');\n    addUnitAlias('weekday', 'e');\n    addUnitAlias('isoWeekday', 'E');\n\n    // PRIORITY\n    addUnitPriority('day', 11);\n    addUnitPriority('weekday', 11);\n    addUnitPriority('isoWeekday', 11);\n\n    // PARSING\n\n    addRegexToken('d', match1to2);\n    addRegexToken('e', match1to2);\n    addRegexToken('E', match1to2);\n    addRegexToken('dd', function (isStrict, locale) {\n        return locale.weekdaysMinRegex(isStrict);\n    });\n    addRegexToken('ddd', function (isStrict, locale) {\n        return locale.weekdaysShortRegex(isStrict);\n    });\n    addRegexToken('dddd', function (isStrict, locale) {\n        return locale.weekdaysRegex(isStrict);\n    });\n\n    addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n        var weekday = config._locale.weekdaysParse(input, token, config._strict);\n        // if we didn't get a weekday name, mark the date as invalid\n        if (weekday != null) {\n            week.d = weekday;\n        } else {\n            getParsingFlags(config).invalidWeekday = input;\n        }\n    });\n\n    addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n        week[token] = toInt(input);\n    });\n\n    // HELPERS\n\n    function parseWeekday(input, locale) {\n        if (typeof input !== 'string') {\n            return input;\n        }\n\n        if (!isNaN(input)) {\n            return parseInt(input, 10);\n        }\n\n        input = locale.weekdaysParse(input);\n        if (typeof input === 'number') {\n            return input;\n        }\n\n        return null;\n    }\n\n    function parseIsoWeekday(input, locale) {\n        if (typeof input === 'string') {\n            return locale.weekdaysParse(input) % 7 || 7;\n        }\n        return isNaN(input) ? null : input;\n    }\n\n    // LOCALES\n    function shiftWeekdays(ws, n) {\n        return ws.slice(n, 7).concat(ws.slice(0, n));\n    }\n\n    var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        defaultWeekdaysRegex = matchWord,\n        defaultWeekdaysShortRegex = matchWord,\n        defaultWeekdaysMinRegex = matchWord;\n\n    function localeWeekdays(m, format) {\n        var weekdays = isArray(this._weekdays)\n            ? this._weekdays\n            : this._weekdays[\n                  m && m !== true && this._weekdays.isFormat.test(format)\n                      ? 'format'\n                      : 'standalone'\n              ];\n        return m === true\n            ? shiftWeekdays(weekdays, this._week.dow)\n            : m\n            ? weekdays[m.day()]\n            : weekdays;\n    }\n\n    function localeWeekdaysShort(m) {\n        return m === true\n            ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n            : m\n            ? this._weekdaysShort[m.day()]\n            : this._weekdaysShort;\n    }\n\n    function localeWeekdaysMin(m) {\n        return m === true\n            ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n            : m\n            ? this._weekdaysMin[m.day()]\n            : this._weekdaysMin;\n    }\n\n    function handleStrictParse$1(weekdayName, format, strict) {\n        var i,\n            ii,\n            mom,\n            llc = weekdayName.toLocaleLowerCase();\n        if (!this._weekdaysParse) {\n            this._weekdaysParse = [];\n            this._shortWeekdaysParse = [];\n            this._minWeekdaysParse = [];\n\n            for (i = 0; i < 7; ++i) {\n                mom = createUTC([2000, 1]).day(i);\n                this._minWeekdaysParse[i] = this.weekdaysMin(\n                    mom,\n                    ''\n                ).toLocaleLowerCase();\n                this._shortWeekdaysParse[i] = this.weekdaysShort(\n                    mom,\n                    ''\n                ).toLocaleLowerCase();\n                this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n            }\n        }\n\n        if (strict) {\n            if (format === 'dddd') {\n                ii = indexOf.call(this._weekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else if (format === 'ddd') {\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        } else {\n            if (format === 'dddd') {\n                ii = indexOf.call(this._weekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else if (format === 'ddd') {\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._weekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._weekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        }\n    }\n\n    function localeWeekdaysParse(weekdayName, format, strict) {\n        var i, mom, regex;\n\n        if (this._weekdaysParseExact) {\n            return handleStrictParse$1.call(this, weekdayName, format, strict);\n        }\n\n        if (!this._weekdaysParse) {\n            this._weekdaysParse = [];\n            this._minWeekdaysParse = [];\n            this._shortWeekdaysParse = [];\n            this._fullWeekdaysParse = [];\n        }\n\n        for (i = 0; i < 7; i++) {\n            // make the regex if we don't have it already\n\n            mom = createUTC([2000, 1]).day(i);\n            if (strict && !this._fullWeekdaysParse[i]) {\n                this._fullWeekdaysParse[i] = new RegExp(\n                    '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n                    'i'\n                );\n                this._shortWeekdaysParse[i] = new RegExp(\n                    '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n                    'i'\n                );\n                this._minWeekdaysParse[i] = new RegExp(\n                    '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n                    'i'\n                );\n            }\n            if (!this._weekdaysParse[i]) {\n                regex =\n                    '^' +\n                    this.weekdays(mom, '') +\n                    '|^' +\n                    this.weekdaysShort(mom, '') +\n                    '|^' +\n                    this.weekdaysMin(mom, '');\n                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n            }\n            // test the regex\n            if (\n                strict &&\n                format === 'dddd' &&\n                this._fullWeekdaysParse[i].test(weekdayName)\n            ) {\n                return i;\n            } else if (\n                strict &&\n                format === 'ddd' &&\n                this._shortWeekdaysParse[i].test(weekdayName)\n            ) {\n                return i;\n            } else if (\n                strict &&\n                format === 'dd' &&\n                this._minWeekdaysParse[i].test(weekdayName)\n            ) {\n                return i;\n            } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n                return i;\n            }\n        }\n    }\n\n    // MOMENTS\n\n    function getSetDayOfWeek(input) {\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n        var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n        if (input != null) {\n            input = parseWeekday(input, this.localeData());\n            return this.add(input - day, 'd');\n        } else {\n            return day;\n        }\n    }\n\n    function getSetLocaleDayOfWeek(input) {\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n        var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n        return input == null ? weekday : this.add(input - weekday, 'd');\n    }\n\n    function getSetISODayOfWeek(input) {\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n\n        // behaves the same as moment#day except\n        // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n        // as a setter, sunday should belong to the previous week.\n\n        if (input != null) {\n            var weekday = parseIsoWeekday(input, this.localeData());\n            return this.day(this.day() % 7 ? weekday : weekday - 7);\n        } else {\n            return this.day() || 7;\n        }\n    }\n\n    function weekdaysRegex(isStrict) {\n        if (this._weekdaysParseExact) {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                computeWeekdaysParse.call(this);\n            }\n            if (isStrict) {\n                return this._weekdaysStrictRegex;\n            } else {\n                return this._weekdaysRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                this._weekdaysRegex = defaultWeekdaysRegex;\n            }\n            return this._weekdaysStrictRegex && isStrict\n                ? this._weekdaysStrictRegex\n                : this._weekdaysRegex;\n        }\n    }\n\n    function weekdaysShortRegex(isStrict) {\n        if (this._weekdaysParseExact) {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                computeWeekdaysParse.call(this);\n            }\n            if (isStrict) {\n                return this._weekdaysShortStrictRegex;\n            } else {\n                return this._weekdaysShortRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n                this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n            }\n            return this._weekdaysShortStrictRegex && isStrict\n                ? this._weekdaysShortStrictRegex\n                : this._weekdaysShortRegex;\n        }\n    }\n\n    function weekdaysMinRegex(isStrict) {\n        if (this._weekdaysParseExact) {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                computeWeekdaysParse.call(this);\n            }\n            if (isStrict) {\n                return this._weekdaysMinStrictRegex;\n            } else {\n                return this._weekdaysMinRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n                this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n            }\n            return this._weekdaysMinStrictRegex && isStrict\n                ? this._weekdaysMinStrictRegex\n                : this._weekdaysMinRegex;\n        }\n    }\n\n    function computeWeekdaysParse() {\n        function cmpLenRev(a, b) {\n            return b.length - a.length;\n        }\n\n        var minPieces = [],\n            shortPieces = [],\n            longPieces = [],\n            mixedPieces = [],\n            i,\n            mom,\n            minp,\n            shortp,\n            longp;\n        for (i = 0; i < 7; i++) {\n            // make the regex if we don't have it already\n            mom = createUTC([2000, 1]).day(i);\n            minp = regexEscape(this.weekdaysMin(mom, ''));\n            shortp = regexEscape(this.weekdaysShort(mom, ''));\n            longp = regexEscape(this.weekdays(mom, ''));\n            minPieces.push(minp);\n            shortPieces.push(shortp);\n            longPieces.push(longp);\n            mixedPieces.push(minp);\n            mixedPieces.push(shortp);\n            mixedPieces.push(longp);\n        }\n        // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n        // will match the longer piece.\n        minPieces.sort(cmpLenRev);\n        shortPieces.sort(cmpLenRev);\n        longPieces.sort(cmpLenRev);\n        mixedPieces.sort(cmpLenRev);\n\n        this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n        this._weekdaysShortRegex = this._weekdaysRegex;\n        this._weekdaysMinRegex = this._weekdaysRegex;\n\n        this._weekdaysStrictRegex = new RegExp(\n            '^(' + longPieces.join('|') + ')',\n            'i'\n        );\n        this._weekdaysShortStrictRegex = new RegExp(\n            '^(' + shortPieces.join('|') + ')',\n            'i'\n        );\n        this._weekdaysMinStrictRegex = new RegExp(\n            '^(' + minPieces.join('|') + ')',\n            'i'\n        );\n    }\n\n    // FORMATTING\n\n    function hFormat() {\n        return this.hours() % 12 || 12;\n    }\n\n    function kFormat() {\n        return this.hours() || 24;\n    }\n\n    addFormatToken('H', ['HH', 2], 0, 'hour');\n    addFormatToken('h', ['hh', 2], 0, hFormat);\n    addFormatToken('k', ['kk', 2], 0, kFormat);\n\n    addFormatToken('hmm', 0, 0, function () {\n        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n    });\n\n    addFormatToken('hmmss', 0, 0, function () {\n        return (\n            '' +\n            hFormat.apply(this) +\n            zeroFill(this.minutes(), 2) +\n            zeroFill(this.seconds(), 2)\n        );\n    });\n\n    addFormatToken('Hmm', 0, 0, function () {\n        return '' + this.hours() + zeroFill(this.minutes(), 2);\n    });\n\n    addFormatToken('Hmmss', 0, 0, function () {\n        return (\n            '' +\n            this.hours() +\n            zeroFill(this.minutes(), 2) +\n            zeroFill(this.seconds(), 2)\n        );\n    });\n\n    function meridiem(token, lowercase) {\n        addFormatToken(token, 0, 0, function () {\n            return this.localeData().meridiem(\n                this.hours(),\n                this.minutes(),\n                lowercase\n            );\n        });\n    }\n\n    meridiem('a', true);\n    meridiem('A', false);\n\n    // ALIASES\n\n    addUnitAlias('hour', 'h');\n\n    // PRIORITY\n    addUnitPriority('hour', 13);\n\n    // PARSING\n\n    function matchMeridiem(isStrict, locale) {\n        return locale._meridiemParse;\n    }\n\n    addRegexToken('a', matchMeridiem);\n    addRegexToken('A', matchMeridiem);\n    addRegexToken('H', match1to2);\n    addRegexToken('h', match1to2);\n    addRegexToken('k', match1to2);\n    addRegexToken('HH', match1to2, match2);\n    addRegexToken('hh', match1to2, match2);\n    addRegexToken('kk', match1to2, match2);\n\n    addRegexToken('hmm', match3to4);\n    addRegexToken('hmmss', match5to6);\n    addRegexToken('Hmm', match3to4);\n    addRegexToken('Hmmss', match5to6);\n\n    addParseToken(['H', 'HH'], HOUR);\n    addParseToken(['k', 'kk'], function (input, array, config) {\n        var kInput = toInt(input);\n        array[HOUR] = kInput === 24 ? 0 : kInput;\n    });\n    addParseToken(['a', 'A'], function (input, array, config) {\n        config._isPm = config._locale.isPM(input);\n        config._meridiem = input;\n    });\n    addParseToken(['h', 'hh'], function (input, array, config) {\n        array[HOUR] = toInt(input);\n        getParsingFlags(config).bigHour = true;\n    });\n    addParseToken('hmm', function (input, array, config) {\n        var pos = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos));\n        array[MINUTE] = toInt(input.substr(pos));\n        getParsingFlags(config).bigHour = true;\n    });\n    addParseToken('hmmss', function (input, array, config) {\n        var pos1 = input.length - 4,\n            pos2 = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos1));\n        array[MINUTE] = toInt(input.substr(pos1, 2));\n        array[SECOND] = toInt(input.substr(pos2));\n        getParsingFlags(config).bigHour = true;\n    });\n    addParseToken('Hmm', function (input, array, config) {\n        var pos = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos));\n        array[MINUTE] = toInt(input.substr(pos));\n    });\n    addParseToken('Hmmss', function (input, array, config) {\n        var pos1 = input.length - 4,\n            pos2 = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos1));\n        array[MINUTE] = toInt(input.substr(pos1, 2));\n        array[SECOND] = toInt(input.substr(pos2));\n    });\n\n    // LOCALES\n\n    function localeIsPM(input) {\n        // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n        // Using charAt should be more compatible.\n        return (input + '').toLowerCase().charAt(0) === 'p';\n    }\n\n    var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n        // Setting the hour should keep the time, because the user explicitly\n        // specified which hour they want. So trying to maintain the same hour (in\n        // a new timezone) makes sense. Adding/subtracting hours does not follow\n        // this rule.\n        getSetHour = makeGetSet('Hours', true);\n\n    function localeMeridiem(hours, minutes, isLower) {\n        if (hours > 11) {\n            return isLower ? 'pm' : 'PM';\n        } else {\n            return isLower ? 'am' : 'AM';\n        }\n    }\n\n    var baseConfig = {\n        calendar: defaultCalendar,\n        longDateFormat: defaultLongDateFormat,\n        invalidDate: defaultInvalidDate,\n        ordinal: defaultOrdinal,\n        dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n        relativeTime: defaultRelativeTime,\n\n        months: defaultLocaleMonths,\n        monthsShort: defaultLocaleMonthsShort,\n\n        week: defaultLocaleWeek,\n\n        weekdays: defaultLocaleWeekdays,\n        weekdaysMin: defaultLocaleWeekdaysMin,\n        weekdaysShort: defaultLocaleWeekdaysShort,\n\n        meridiemParse: defaultLocaleMeridiemParse,\n    };\n\n    // internal storage for locale config files\n    var locales = {},\n        localeFamilies = {},\n        globalLocale;\n\n    function commonPrefix(arr1, arr2) {\n        var i,\n            minl = Math.min(arr1.length, arr2.length);\n        for (i = 0; i < minl; i += 1) {\n            if (arr1[i] !== arr2[i]) {\n                return i;\n            }\n        }\n        return minl;\n    }\n\n    function normalizeLocale(key) {\n        return key ? key.toLowerCase().replace('_', '-') : key;\n    }\n\n    // pick the locale from the array\n    // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n    // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n    function chooseLocale(names) {\n        var i = 0,\n            j,\n            next,\n            locale,\n            split;\n\n        while (i < names.length) {\n            split = normalizeLocale(names[i]).split('-');\n            j = split.length;\n            next = normalizeLocale(names[i + 1]);\n            next = next ? next.split('-') : null;\n            while (j > 0) {\n                locale = loadLocale(split.slice(0, j).join('-'));\n                if (locale) {\n                    return locale;\n                }\n                if (\n                    next &&\n                    next.length >= j &&\n                    commonPrefix(split, next) >= j - 1\n                ) {\n                    //the next array item is better than a shallower substring of this one\n                    break;\n                }\n                j--;\n            }\n            i++;\n        }\n        return globalLocale;\n    }\n\n    function loadLocale(name) {\n        var oldLocale = null,\n            aliasedRequire;\n        // TODO: Find a better way to register and load all the locales in Node\n        if (\n            locales[name] === undefined &&\n            typeof module !== 'undefined' &&\n            module &&\n            module.exports\n        ) {\n            try {\n                oldLocale = globalLocale._abbr;\n                aliasedRequire = require;\n                aliasedRequire('./locale/' + name);\n                getSetGlobalLocale(oldLocale);\n            } catch (e) {\n                // mark as not found to avoid repeating expensive file require call causing high CPU\n                // when trying to find en-US, en_US, en-us for every format call\n                locales[name] = null; // null means not found\n            }\n        }\n        return locales[name];\n    }\n\n    // This function will load locale and then set the global locale.  If\n    // no arguments are passed in, it will simply return the current global\n    // locale key.\n    function getSetGlobalLocale(key, values) {\n        var data;\n        if (key) {\n            if (isUndefined(values)) {\n                data = getLocale(key);\n            } else {\n                data = defineLocale(key, values);\n            }\n\n            if (data) {\n                // moment.duration._locale = moment._locale = data;\n                globalLocale = data;\n            } else {\n                if (typeof console !== 'undefined' && console.warn) {\n                    //warn user if arguments are passed but the locale could not be set\n                    console.warn(\n                        'Locale ' + key + ' not found. Did you forget to load it?'\n                    );\n                }\n            }\n        }\n\n        return globalLocale._abbr;\n    }\n\n    function defineLocale(name, config) {\n        if (config !== null) {\n            var locale,\n                parentConfig = baseConfig;\n            config.abbr = name;\n            if (locales[name] != null) {\n                deprecateSimple(\n                    'defineLocaleOverride',\n                    'use moment.updateLocale(localeName, config) to change ' +\n                        'an existing locale. moment.defineLocale(localeName, ' +\n                        'config) should only be used for creating a new locale ' +\n                        'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n                );\n                parentConfig = locales[name]._config;\n            } else if (config.parentLocale != null) {\n                if (locales[config.parentLocale] != null) {\n                    parentConfig = locales[config.parentLocale]._config;\n                } else {\n                    locale = loadLocale(config.parentLocale);\n                    if (locale != null) {\n                        parentConfig = locale._config;\n                    } else {\n                        if (!localeFamilies[config.parentLocale]) {\n                            localeFamilies[config.parentLocale] = [];\n                        }\n                        localeFamilies[config.parentLocale].push({\n                            name: name,\n                            config: config,\n                        });\n                        return null;\n                    }\n                }\n            }\n            locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n            if (localeFamilies[name]) {\n                localeFamilies[name].forEach(function (x) {\n                    defineLocale(x.name, x.config);\n                });\n            }\n\n            // backwards compat for now: also set the locale\n            // make sure we set the locale AFTER all child locales have been\n            // created, so we won't end up with the child locale set.\n            getSetGlobalLocale(name);\n\n            return locales[name];\n        } else {\n            // useful for testing\n            delete locales[name];\n            return null;\n        }\n    }\n\n    function updateLocale(name, config) {\n        if (config != null) {\n            var locale,\n                tmpLocale,\n                parentConfig = baseConfig;\n\n            if (locales[name] != null && locales[name].parentLocale != null) {\n                // Update existing child locale in-place to avoid memory-leaks\n                locales[name].set(mergeConfigs(locales[name]._config, config));\n            } else {\n                // MERGE\n                tmpLocale = loadLocale(name);\n                if (tmpLocale != null) {\n                    parentConfig = tmpLocale._config;\n                }\n                config = mergeConfigs(parentConfig, config);\n                if (tmpLocale == null) {\n                    // updateLocale is called for creating a new locale\n                    // Set abbr so it will have a name (getters return\n                    // undefined otherwise).\n                    config.abbr = name;\n                }\n                locale = new Locale(config);\n                locale.parentLocale = locales[name];\n                locales[name] = locale;\n            }\n\n            // backwards compat for now: also set the locale\n            getSetGlobalLocale(name);\n        } else {\n            // pass null for config to unupdate, useful for tests\n            if (locales[name] != null) {\n                if (locales[name].parentLocale != null) {\n                    locales[name] = locales[name].parentLocale;\n                    if (name === getSetGlobalLocale()) {\n                        getSetGlobalLocale(name);\n                    }\n                } else if (locales[name] != null) {\n                    delete locales[name];\n                }\n            }\n        }\n        return locales[name];\n    }\n\n    // returns locale data\n    function getLocale(key) {\n        var locale;\n\n        if (key && key._locale && key._locale._abbr) {\n            key = key._locale._abbr;\n        }\n\n        if (!key) {\n            return globalLocale;\n        }\n\n        if (!isArray(key)) {\n            //short-circuit everything else\n            locale = loadLocale(key);\n            if (locale) {\n                return locale;\n            }\n            key = [key];\n        }\n\n        return chooseLocale(key);\n    }\n\n    function listLocales() {\n        return keys(locales);\n    }\n\n    function checkOverflow(m) {\n        var overflow,\n            a = m._a;\n\n        if (a && getParsingFlags(m).overflow === -2) {\n            overflow =\n                a[MONTH] < 0 || a[MONTH] > 11\n                    ? MONTH\n                    : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n                    ? DATE\n                    : a[HOUR] < 0 ||\n                      a[HOUR] > 24 ||\n                      (a[HOUR] === 24 &&\n                          (a[MINUTE] !== 0 ||\n                              a[SECOND] !== 0 ||\n                              a[MILLISECOND] !== 0))\n                    ? HOUR\n                    : a[MINUTE] < 0 || a[MINUTE] > 59\n                    ? MINUTE\n                    : a[SECOND] < 0 || a[SECOND] > 59\n                    ? SECOND\n                    : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n                    ? MILLISECOND\n                    : -1;\n\n            if (\n                getParsingFlags(m)._overflowDayOfYear &&\n                (overflow < YEAR || overflow > DATE)\n            ) {\n                overflow = DATE;\n            }\n            if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n                overflow = WEEK;\n            }\n            if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n                overflow = WEEKDAY;\n            }\n\n            getParsingFlags(m).overflow = overflow;\n        }\n\n        return m;\n    }\n\n    // iso 8601 regex\n    // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n    var extendedIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n        basicIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n        tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n        isoDates = [\n            ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n            ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n            ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n            ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n            ['YYYY-DDD', /\\d{4}-\\d{3}/],\n            ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n            ['YYYYYYMMDD', /[+-]\\d{10}/],\n            ['YYYYMMDD', /\\d{8}/],\n            ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n            ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n            ['YYYYDDD', /\\d{7}/],\n            ['YYYYMM', /\\d{6}/, false],\n            ['YYYY', /\\d{4}/, false],\n        ],\n        // iso time formats and regexes\n        isoTimes = [\n            ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n            ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n            ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n            ['HH:mm', /\\d\\d:\\d\\d/],\n            ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n            ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n            ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n            ['HHmm', /\\d\\d\\d\\d/],\n            ['HH', /\\d\\d/],\n        ],\n        aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n        // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n        rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,\n        obsOffsets = {\n            UT: 0,\n            GMT: 0,\n            EDT: -4 * 60,\n            EST: -5 * 60,\n            CDT: -5 * 60,\n            CST: -6 * 60,\n            MDT: -6 * 60,\n            MST: -7 * 60,\n            PDT: -7 * 60,\n            PST: -8 * 60,\n        };\n\n    // date from iso format\n    function configFromISO(config) {\n        var i,\n            l,\n            string = config._i,\n            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n            allowTime,\n            dateFormat,\n            timeFormat,\n            tzFormat;\n\n        if (match) {\n            getParsingFlags(config).iso = true;\n\n            for (i = 0, l = isoDates.length; i < l; i++) {\n                if (isoDates[i][1].exec(match[1])) {\n                    dateFormat = isoDates[i][0];\n                    allowTime = isoDates[i][2] !== false;\n                    break;\n                }\n            }\n            if (dateFormat == null) {\n                config._isValid = false;\n                return;\n            }\n            if (match[3]) {\n                for (i = 0, l = isoTimes.length; i < l; i++) {\n                    if (isoTimes[i][1].exec(match[3])) {\n                        // match[2] should be 'T' or space\n                        timeFormat = (match[2] || ' ') + isoTimes[i][0];\n                        break;\n                    }\n                }\n                if (timeFormat == null) {\n                    config._isValid = false;\n                    return;\n                }\n            }\n            if (!allowTime && timeFormat != null) {\n                config._isValid = false;\n                return;\n            }\n            if (match[4]) {\n                if (tzRegex.exec(match[4])) {\n                    tzFormat = 'Z';\n                } else {\n                    config._isValid = false;\n                    return;\n                }\n            }\n            config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n            configFromStringAndFormat(config);\n        } else {\n            config._isValid = false;\n        }\n    }\n\n    function extractFromRFC2822Strings(\n        yearStr,\n        monthStr,\n        dayStr,\n        hourStr,\n        minuteStr,\n        secondStr\n    ) {\n        var result = [\n            untruncateYear(yearStr),\n            defaultLocaleMonthsShort.indexOf(monthStr),\n            parseInt(dayStr, 10),\n            parseInt(hourStr, 10),\n            parseInt(minuteStr, 10),\n        ];\n\n        if (secondStr) {\n            result.push(parseInt(secondStr, 10));\n        }\n\n        return result;\n    }\n\n    function untruncateYear(yearStr) {\n        var year = parseInt(yearStr, 10);\n        if (year <= 49) {\n            return 2000 + year;\n        } else if (year <= 999) {\n            return 1900 + year;\n        }\n        return year;\n    }\n\n    function preprocessRFC2822(s) {\n        // Remove comments and folding whitespace and replace multiple-spaces with a single space\n        return s\n            .replace(/\\([^)]*\\)|[\\n\\t]/g, ' ')\n            .replace(/(\\s\\s+)/g, ' ')\n            .replace(/^\\s\\s*/, '')\n            .replace(/\\s\\s*$/, '');\n    }\n\n    function checkWeekday(weekdayStr, parsedInput, config) {\n        if (weekdayStr) {\n            // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n            var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n                weekdayActual = new Date(\n                    parsedInput[0],\n                    parsedInput[1],\n                    parsedInput[2]\n                ).getDay();\n            if (weekdayProvided !== weekdayActual) {\n                getParsingFlags(config).weekdayMismatch = true;\n                config._isValid = false;\n                return false;\n            }\n        }\n        return true;\n    }\n\n    function calculateOffset(obsOffset, militaryOffset, numOffset) {\n        if (obsOffset) {\n            return obsOffsets[obsOffset];\n        } else if (militaryOffset) {\n            // the only allowed military tz is Z\n            return 0;\n        } else {\n            var hm = parseInt(numOffset, 10),\n                m = hm % 100,\n                h = (hm - m) / 100;\n            return h * 60 + m;\n        }\n    }\n\n    // date and time from ref 2822 format\n    function configFromRFC2822(config) {\n        var match = rfc2822.exec(preprocessRFC2822(config._i)),\n            parsedArray;\n        if (match) {\n            parsedArray = extractFromRFC2822Strings(\n                match[4],\n                match[3],\n                match[2],\n                match[5],\n                match[6],\n                match[7]\n            );\n            if (!checkWeekday(match[1], parsedArray, config)) {\n                return;\n            }\n\n            config._a = parsedArray;\n            config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n            config._d = createUTCDate.apply(null, config._a);\n            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n            getParsingFlags(config).rfc2822 = true;\n        } else {\n            config._isValid = false;\n        }\n    }\n\n    // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n    function configFromString(config) {\n        var matched = aspNetJsonRegex.exec(config._i);\n        if (matched !== null) {\n            config._d = new Date(+matched[1]);\n            return;\n        }\n\n        configFromISO(config);\n        if (config._isValid === false) {\n            delete config._isValid;\n        } else {\n            return;\n        }\n\n        configFromRFC2822(config);\n        if (config._isValid === false) {\n            delete config._isValid;\n        } else {\n            return;\n        }\n\n        if (config._strict) {\n            config._isValid = false;\n        } else {\n            // Final attempt, use Input Fallback\n            hooks.createFromInputFallback(config);\n        }\n    }\n\n    hooks.createFromInputFallback = deprecate(\n        'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n            'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n            'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n        function (config) {\n            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n        }\n    );\n\n    // Pick the first defined of two or three arguments.\n    function defaults(a, b, c) {\n        if (a != null) {\n            return a;\n        }\n        if (b != null) {\n            return b;\n        }\n        return c;\n    }\n\n    function currentDateArray(config) {\n        // hooks is actually the exported moment object\n        var nowValue = new Date(hooks.now());\n        if (config._useUTC) {\n            return [\n                nowValue.getUTCFullYear(),\n                nowValue.getUTCMonth(),\n                nowValue.getUTCDate(),\n            ];\n        }\n        return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n    }\n\n    // convert an array to a date.\n    // the array should mirror the parameters below\n    // note: all values past the year are optional and will default to the lowest possible value.\n    // [year, month, day , hour, minute, second, millisecond]\n    function configFromArray(config) {\n        var i,\n            date,\n            input = [],\n            currentDate,\n            expectedWeekday,\n            yearToUse;\n\n        if (config._d) {\n            return;\n        }\n\n        currentDate = currentDateArray(config);\n\n        //compute day of the year from weeks and weekdays\n        if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n            dayOfYearFromWeekInfo(config);\n        }\n\n        //if the day of the year is set, figure out what it is\n        if (config._dayOfYear != null) {\n            yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n            if (\n                config._dayOfYear > daysInYear(yearToUse) ||\n                config._dayOfYear === 0\n            ) {\n                getParsingFlags(config)._overflowDayOfYear = true;\n            }\n\n            date = createUTCDate(yearToUse, 0, config._dayOfYear);\n            config._a[MONTH] = date.getUTCMonth();\n            config._a[DATE] = date.getUTCDate();\n        }\n\n        // Default to current date.\n        // * if no year, month, day of month are given, default to today\n        // * if day of month is given, default month and year\n        // * if month is given, default only year\n        // * if year is given, don't default anything\n        for (i = 0; i < 3 && config._a[i] == null; ++i) {\n            config._a[i] = input[i] = currentDate[i];\n        }\n\n        // Zero out whatever was not defaulted, including time\n        for (; i < 7; i++) {\n            config._a[i] = input[i] =\n                config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n        }\n\n        // Check for 24:00:00.000\n        if (\n            config._a[HOUR] === 24 &&\n            config._a[MINUTE] === 0 &&\n            config._a[SECOND] === 0 &&\n            config._a[MILLISECOND] === 0\n        ) {\n            config._nextDay = true;\n            config._a[HOUR] = 0;\n        }\n\n        config._d = (config._useUTC ? createUTCDate : createDate).apply(\n            null,\n            input\n        );\n        expectedWeekday = config._useUTC\n            ? config._d.getUTCDay()\n            : config._d.getDay();\n\n        // Apply timezone offset from input. The actual utcOffset can be changed\n        // with parseZone.\n        if (config._tzm != null) {\n            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n        }\n\n        if (config._nextDay) {\n            config._a[HOUR] = 24;\n        }\n\n        // check for mismatching day of week\n        if (\n            config._w &&\n            typeof config._w.d !== 'undefined' &&\n            config._w.d !== expectedWeekday\n        ) {\n            getParsingFlags(config).weekdayMismatch = true;\n        }\n    }\n\n    function dayOfYearFromWeekInfo(config) {\n        var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n        w = config._w;\n        if (w.GG != null || w.W != null || w.E != null) {\n            dow = 1;\n            doy = 4;\n\n            // TODO: We need to take the current isoWeekYear, but that depends on\n            // how we interpret now (local, utc, fixed offset). So create\n            // a now version of current config (take local/utc/offset flags, and\n            // create now).\n            weekYear = defaults(\n                w.GG,\n                config._a[YEAR],\n                weekOfYear(createLocal(), 1, 4).year\n            );\n            week = defaults(w.W, 1);\n            weekday = defaults(w.E, 1);\n            if (weekday < 1 || weekday > 7) {\n                weekdayOverflow = true;\n            }\n        } else {\n            dow = config._locale._week.dow;\n            doy = config._locale._week.doy;\n\n            curWeek = weekOfYear(createLocal(), dow, doy);\n\n            weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n            // Default to current week.\n            week = defaults(w.w, curWeek.week);\n\n            if (w.d != null) {\n                // weekday -- low day numbers are considered next week\n                weekday = w.d;\n                if (weekday < 0 || weekday > 6) {\n                    weekdayOverflow = true;\n                }\n            } else if (w.e != null) {\n                // local weekday -- counting starts from beginning of week\n                weekday = w.e + dow;\n                if (w.e < 0 || w.e > 6) {\n                    weekdayOverflow = true;\n                }\n            } else {\n                // default to beginning of week\n                weekday = dow;\n            }\n        }\n        if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n            getParsingFlags(config)._overflowWeeks = true;\n        } else if (weekdayOverflow != null) {\n            getParsingFlags(config)._overflowWeekday = true;\n        } else {\n            temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n            config._a[YEAR] = temp.year;\n            config._dayOfYear = temp.dayOfYear;\n        }\n    }\n\n    // constant that refers to the ISO standard\n    hooks.ISO_8601 = function () {};\n\n    // constant that refers to the RFC 2822 form\n    hooks.RFC_2822 = function () {};\n\n    // date from string and format string\n    function configFromStringAndFormat(config) {\n        // TODO: Move this to another part of the creation flow to prevent circular deps\n        if (config._f === hooks.ISO_8601) {\n            configFromISO(config);\n            return;\n        }\n        if (config._f === hooks.RFC_2822) {\n            configFromRFC2822(config);\n            return;\n        }\n        config._a = [];\n        getParsingFlags(config).empty = true;\n\n        // This array is used to make a Date, either with `new Date` or `Date.UTC`\n        var string = '' + config._i,\n            i,\n            parsedInput,\n            tokens,\n            token,\n            skipped,\n            stringLength = string.length,\n            totalParsedInputLength = 0,\n            era;\n\n        tokens =\n            expandFormat(config._f, config._locale).match(formattingTokens) || [];\n\n        for (i = 0; i < tokens.length; i++) {\n            token = tokens[i];\n            parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n                [])[0];\n            if (parsedInput) {\n                skipped = string.substr(0, string.indexOf(parsedInput));\n                if (skipped.length > 0) {\n                    getParsingFlags(config).unusedInput.push(skipped);\n                }\n                string = string.slice(\n                    string.indexOf(parsedInput) + parsedInput.length\n                );\n                totalParsedInputLength += parsedInput.length;\n            }\n            // don't parse if it's not a known token\n            if (formatTokenFunctions[token]) {\n                if (parsedInput) {\n                    getParsingFlags(config).empty = false;\n                } else {\n                    getParsingFlags(config).unusedTokens.push(token);\n                }\n                addTimeToArrayFromToken(token, parsedInput, config);\n            } else if (config._strict && !parsedInput) {\n                getParsingFlags(config).unusedTokens.push(token);\n            }\n        }\n\n        // add remaining unparsed input length to the string\n        getParsingFlags(config).charsLeftOver =\n            stringLength - totalParsedInputLength;\n        if (string.length > 0) {\n            getParsingFlags(config).unusedInput.push(string);\n        }\n\n        // clear _12h flag if hour is <= 12\n        if (\n            config._a[HOUR] <= 12 &&\n            getParsingFlags(config).bigHour === true &&\n            config._a[HOUR] > 0\n        ) {\n            getParsingFlags(config).bigHour = undefined;\n        }\n\n        getParsingFlags(config).parsedDateParts = config._a.slice(0);\n        getParsingFlags(config).meridiem = config._meridiem;\n        // handle meridiem\n        config._a[HOUR] = meridiemFixWrap(\n            config._locale,\n            config._a[HOUR],\n            config._meridiem\n        );\n\n        // handle era\n        era = getParsingFlags(config).era;\n        if (era !== null) {\n            config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n        }\n\n        configFromArray(config);\n        checkOverflow(config);\n    }\n\n    function meridiemFixWrap(locale, hour, meridiem) {\n        var isPm;\n\n        if (meridiem == null) {\n            // nothing to do\n            return hour;\n        }\n        if (locale.meridiemHour != null) {\n            return locale.meridiemHour(hour, meridiem);\n        } else if (locale.isPM != null) {\n            // Fallback\n            isPm = locale.isPM(meridiem);\n            if (isPm && hour < 12) {\n                hour += 12;\n            }\n            if (!isPm && hour === 12) {\n                hour = 0;\n            }\n            return hour;\n        } else {\n            // this is not supposed to happen\n            return hour;\n        }\n    }\n\n    // date from string and array of format strings\n    function configFromStringAndArray(config) {\n        var tempConfig,\n            bestMoment,\n            scoreToBeat,\n            i,\n            currentScore,\n            validFormatFound,\n            bestFormatIsValid = false;\n\n        if (config._f.length === 0) {\n            getParsingFlags(config).invalidFormat = true;\n            config._d = new Date(NaN);\n            return;\n        }\n\n        for (i = 0; i < config._f.length; i++) {\n            currentScore = 0;\n            validFormatFound = false;\n            tempConfig = copyConfig({}, config);\n            if (config._useUTC != null) {\n                tempConfig._useUTC = config._useUTC;\n            }\n            tempConfig._f = config._f[i];\n            configFromStringAndFormat(tempConfig);\n\n            if (isValid(tempConfig)) {\n                validFormatFound = true;\n            }\n\n            // if there is any input that was not parsed add a penalty for that format\n            currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n            //or tokens\n            currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n            getParsingFlags(tempConfig).score = currentScore;\n\n            if (!bestFormatIsValid) {\n                if (\n                    scoreToBeat == null ||\n                    currentScore < scoreToBeat ||\n                    validFormatFound\n                ) {\n                    scoreToBeat = currentScore;\n                    bestMoment = tempConfig;\n                    if (validFormatFound) {\n                        bestFormatIsValid = true;\n                    }\n                }\n            } else {\n                if (currentScore < scoreToBeat) {\n                    scoreToBeat = currentScore;\n                    bestMoment = tempConfig;\n                }\n            }\n        }\n\n        extend(config, bestMoment || tempConfig);\n    }\n\n    function configFromObject(config) {\n        if (config._d) {\n            return;\n        }\n\n        var i = normalizeObjectUnits(config._i),\n            dayOrDate = i.day === undefined ? i.date : i.day;\n        config._a = map(\n            [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n            function (obj) {\n                return obj && parseInt(obj, 10);\n            }\n        );\n\n        configFromArray(config);\n    }\n\n    function createFromConfig(config) {\n        var res = new Moment(checkOverflow(prepareConfig(config)));\n        if (res._nextDay) {\n            // Adding is smart enough around DST\n            res.add(1, 'd');\n            res._nextDay = undefined;\n        }\n\n        return res;\n    }\n\n    function prepareConfig(config) {\n        var input = config._i,\n            format = config._f;\n\n        config._locale = config._locale || getLocale(config._l);\n\n        if (input === null || (format === undefined && input === '')) {\n            return createInvalid({ nullInput: true });\n        }\n\n        if (typeof input === 'string') {\n            config._i = input = config._locale.preparse(input);\n        }\n\n        if (isMoment(input)) {\n            return new Moment(checkOverflow(input));\n        } else if (isDate(input)) {\n            config._d = input;\n        } else if (isArray(format)) {\n            configFromStringAndArray(config);\n        } else if (format) {\n            configFromStringAndFormat(config);\n        } else {\n            configFromInput(config);\n        }\n\n        if (!isValid(config)) {\n            config._d = null;\n        }\n\n        return config;\n    }\n\n    function configFromInput(config) {\n        var input = config._i;\n        if (isUndefined(input)) {\n            config._d = new Date(hooks.now());\n        } else if (isDate(input)) {\n            config._d = new Date(input.valueOf());\n        } else if (typeof input === 'string') {\n            configFromString(config);\n        } else if (isArray(input)) {\n            config._a = map(input.slice(0), function (obj) {\n                return parseInt(obj, 10);\n            });\n            configFromArray(config);\n        } else if (isObject(input)) {\n            configFromObject(config);\n        } else if (isNumber(input)) {\n            // from milliseconds\n            config._d = new Date(input);\n        } else {\n            hooks.createFromInputFallback(config);\n        }\n    }\n\n    function createLocalOrUTC(input, format, locale, strict, isUTC) {\n        var c = {};\n\n        if (format === true || format === false) {\n            strict = format;\n            format = undefined;\n        }\n\n        if (locale === true || locale === false) {\n            strict = locale;\n            locale = undefined;\n        }\n\n        if (\n            (isObject(input) && isObjectEmpty(input)) ||\n            (isArray(input) && input.length === 0)\n        ) {\n            input = undefined;\n        }\n        // object construction must be done this way.\n        // https://github.com/moment/moment/issues/1423\n        c._isAMomentObject = true;\n        c._useUTC = c._isUTC = isUTC;\n        c._l = locale;\n        c._i = input;\n        c._f = format;\n        c._strict = strict;\n\n        return createFromConfig(c);\n    }\n\n    function createLocal(input, format, locale, strict) {\n        return createLocalOrUTC(input, format, locale, strict, false);\n    }\n\n    var prototypeMin = deprecate(\n            'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n            function () {\n                var other = createLocal.apply(null, arguments);\n                if (this.isValid() && other.isValid()) {\n                    return other < this ? this : other;\n                } else {\n                    return createInvalid();\n                }\n            }\n        ),\n        prototypeMax = deprecate(\n            'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n            function () {\n                var other = createLocal.apply(null, arguments);\n                if (this.isValid() && other.isValid()) {\n                    return other > this ? this : other;\n                } else {\n                    return createInvalid();\n                }\n            }\n        );\n\n    // Pick a moment m from moments so that m[fn](other) is true for all\n    // other. This relies on the function fn to be transitive.\n    //\n    // moments should either be an array of moment objects or an array, whose\n    // first element is an array of moment objects.\n    function pickBy(fn, moments) {\n        var res, i;\n        if (moments.length === 1 && isArray(moments[0])) {\n            moments = moments[0];\n        }\n        if (!moments.length) {\n            return createLocal();\n        }\n        res = moments[0];\n        for (i = 1; i < moments.length; ++i) {\n            if (!moments[i].isValid() || moments[i][fn](res)) {\n                res = moments[i];\n            }\n        }\n        return res;\n    }\n\n    // TODO: Use [].sort instead?\n    function min() {\n        var args = [].slice.call(arguments, 0);\n\n        return pickBy('isBefore', args);\n    }\n\n    function max() {\n        var args = [].slice.call(arguments, 0);\n\n        return pickBy('isAfter', args);\n    }\n\n    var now = function () {\n        return Date.now ? Date.now() : +new Date();\n    };\n\n    var ordering = [\n        'year',\n        'quarter',\n        'month',\n        'week',\n        'day',\n        'hour',\n        'minute',\n        'second',\n        'millisecond',\n    ];\n\n    function isDurationValid(m) {\n        var key,\n            unitHasDecimal = false,\n            i;\n        for (key in m) {\n            if (\n                hasOwnProp(m, key) &&\n                !(\n                    indexOf.call(ordering, key) !== -1 &&\n                    (m[key] == null || !isNaN(m[key]))\n                )\n            ) {\n                return false;\n            }\n        }\n\n        for (i = 0; i < ordering.length; ++i) {\n            if (m[ordering[i]]) {\n                if (unitHasDecimal) {\n                    return false; // only allow non-integers for smallest unit\n                }\n                if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n                    unitHasDecimal = true;\n                }\n            }\n        }\n\n        return true;\n    }\n\n    function isValid$1() {\n        return this._isValid;\n    }\n\n    function createInvalid$1() {\n        return createDuration(NaN);\n    }\n\n    function Duration(duration) {\n        var normalizedInput = normalizeObjectUnits(duration),\n            years = normalizedInput.year || 0,\n            quarters = normalizedInput.quarter || 0,\n            months = normalizedInput.month || 0,\n            weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n            days = normalizedInput.day || 0,\n            hours = normalizedInput.hour || 0,\n            minutes = normalizedInput.minute || 0,\n            seconds = normalizedInput.second || 0,\n            milliseconds = normalizedInput.millisecond || 0;\n\n        this._isValid = isDurationValid(normalizedInput);\n\n        // representation for dateAddRemove\n        this._milliseconds =\n            +milliseconds +\n            seconds * 1e3 + // 1000\n            minutes * 6e4 + // 1000 * 60\n            hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n        // Because of dateAddRemove treats 24 hours as different from a\n        // day when working around DST, we need to store them separately\n        this._days = +days + weeks * 7;\n        // It is impossible to translate months into days without knowing\n        // which months you are are talking about, so we have to store\n        // it separately.\n        this._months = +months + quarters * 3 + years * 12;\n\n        this._data = {};\n\n        this._locale = getLocale();\n\n        this._bubble();\n    }\n\n    function isDuration(obj) {\n        return obj instanceof Duration;\n    }\n\n    function absRound(number) {\n        if (number < 0) {\n            return Math.round(-1 * number) * -1;\n        } else {\n            return Math.round(number);\n        }\n    }\n\n    // compare two arrays, return the number of differences\n    function compareArrays(array1, array2, dontConvert) {\n        var len = Math.min(array1.length, array2.length),\n            lengthDiff = Math.abs(array1.length - array2.length),\n            diffs = 0,\n            i;\n        for (i = 0; i < len; i++) {\n            if (\n                (dontConvert && array1[i] !== array2[i]) ||\n                (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n            ) {\n                diffs++;\n            }\n        }\n        return diffs + lengthDiff;\n    }\n\n    // FORMATTING\n\n    function offset(token, separator) {\n        addFormatToken(token, 0, 0, function () {\n            var offset = this.utcOffset(),\n                sign = '+';\n            if (offset < 0) {\n                offset = -offset;\n                sign = '-';\n            }\n            return (\n                sign +\n                zeroFill(~~(offset / 60), 2) +\n                separator +\n                zeroFill(~~offset % 60, 2)\n            );\n        });\n    }\n\n    offset('Z', ':');\n    offset('ZZ', '');\n\n    // PARSING\n\n    addRegexToken('Z', matchShortOffset);\n    addRegexToken('ZZ', matchShortOffset);\n    addParseToken(['Z', 'ZZ'], function (input, array, config) {\n        config._useUTC = true;\n        config._tzm = offsetFromString(matchShortOffset, input);\n    });\n\n    // HELPERS\n\n    // timezone chunker\n    // '+10:00' > ['10',  '00']\n    // '-1530'  > ['-15', '30']\n    var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n    function offsetFromString(matcher, string) {\n        var matches = (string || '').match(matcher),\n            chunk,\n            parts,\n            minutes;\n\n        if (matches === null) {\n            return null;\n        }\n\n        chunk = matches[matches.length - 1] || [];\n        parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n        minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n        return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n    }\n\n    // Return a moment from input, that is local/utc/zone equivalent to model.\n    function cloneWithOffset(input, model) {\n        var res, diff;\n        if (model._isUTC) {\n            res = model.clone();\n            diff =\n                (isMoment(input) || isDate(input)\n                    ? input.valueOf()\n                    : createLocal(input).valueOf()) - res.valueOf();\n            // Use low-level api, because this fn is low-level api.\n            res._d.setTime(res._d.valueOf() + diff);\n            hooks.updateOffset(res, false);\n            return res;\n        } else {\n            return createLocal(input).local();\n        }\n    }\n\n    function getDateOffset(m) {\n        // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n        // https://github.com/moment/moment/pull/1871\n        return -Math.round(m._d.getTimezoneOffset());\n    }\n\n    // HOOKS\n\n    // This function will be called whenever a moment is mutated.\n    // It is intended to keep the offset in sync with the timezone.\n    hooks.updateOffset = function () {};\n\n    // MOMENTS\n\n    // keepLocalTime = true means only change the timezone, without\n    // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n    // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n    // +0200, so we adjust the time as needed, to be valid.\n    //\n    // Keeping the time actually adds/subtracts (one hour)\n    // from the actual represented time. That is why we call updateOffset\n    // a second time. In case it wants us to change the offset again\n    // _changeInProgress == true case, then we have to adjust, because\n    // there is no such time in the given timezone.\n    function getSetOffset(input, keepLocalTime, keepMinutes) {\n        var offset = this._offset || 0,\n            localAdjust;\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n        if (input != null) {\n            if (typeof input === 'string') {\n                input = offsetFromString(matchShortOffset, input);\n                if (input === null) {\n                    return this;\n                }\n            } else if (Math.abs(input) < 16 && !keepMinutes) {\n                input = input * 60;\n            }\n            if (!this._isUTC && keepLocalTime) {\n                localAdjust = getDateOffset(this);\n            }\n            this._offset = input;\n            this._isUTC = true;\n            if (localAdjust != null) {\n                this.add(localAdjust, 'm');\n            }\n            if (offset !== input) {\n                if (!keepLocalTime || this._changeInProgress) {\n                    addSubtract(\n                        this,\n                        createDuration(input - offset, 'm'),\n                        1,\n                        false\n                    );\n                } else if (!this._changeInProgress) {\n                    this._changeInProgress = true;\n                    hooks.updateOffset(this, true);\n                    this._changeInProgress = null;\n                }\n            }\n            return this;\n        } else {\n            return this._isUTC ? offset : getDateOffset(this);\n        }\n    }\n\n    function getSetZone(input, keepLocalTime) {\n        if (input != null) {\n            if (typeof input !== 'string') {\n                input = -input;\n            }\n\n            this.utcOffset(input, keepLocalTime);\n\n            return this;\n        } else {\n            return -this.utcOffset();\n        }\n    }\n\n    function setOffsetToUTC(keepLocalTime) {\n        return this.utcOffset(0, keepLocalTime);\n    }\n\n    function setOffsetToLocal(keepLocalTime) {\n        if (this._isUTC) {\n            this.utcOffset(0, keepLocalTime);\n            this._isUTC = false;\n\n            if (keepLocalTime) {\n                this.subtract(getDateOffset(this), 'm');\n            }\n        }\n        return this;\n    }\n\n    function setOffsetToParsedOffset() {\n        if (this._tzm != null) {\n            this.utcOffset(this._tzm, false, true);\n        } else if (typeof this._i === 'string') {\n            var tZone = offsetFromString(matchOffset, this._i);\n            if (tZone != null) {\n                this.utcOffset(tZone);\n            } else {\n                this.utcOffset(0, true);\n            }\n        }\n        return this;\n    }\n\n    function hasAlignedHourOffset(input) {\n        if (!this.isValid()) {\n            return false;\n        }\n        input = input ? createLocal(input).utcOffset() : 0;\n\n        return (this.utcOffset() - input) % 60 === 0;\n    }\n\n    function isDaylightSavingTime() {\n        return (\n            this.utcOffset() > this.clone().month(0).utcOffset() ||\n            this.utcOffset() > this.clone().month(5).utcOffset()\n        );\n    }\n\n    function isDaylightSavingTimeShifted() {\n        if (!isUndefined(this._isDSTShifted)) {\n            return this._isDSTShifted;\n        }\n\n        var c = {},\n            other;\n\n        copyConfig(c, this);\n        c = prepareConfig(c);\n\n        if (c._a) {\n            other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n            this._isDSTShifted =\n                this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n        } else {\n            this._isDSTShifted = false;\n        }\n\n        return this._isDSTShifted;\n    }\n\n    function isLocal() {\n        return this.isValid() ? !this._isUTC : false;\n    }\n\n    function isUtcOffset() {\n        return this.isValid() ? this._isUTC : false;\n    }\n\n    function isUtc() {\n        return this.isValid() ? this._isUTC && this._offset === 0 : false;\n    }\n\n    // ASP.NET json date format regex\n    var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n        // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n        // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n        // and further modified to allow for strings containing both week and day\n        isoRegex = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n    function createDuration(input, key) {\n        var duration = input,\n            // matching against regexp is expensive, do it on demand\n            match = null,\n            sign,\n            ret,\n            diffRes;\n\n        if (isDuration(input)) {\n            duration = {\n                ms: input._milliseconds,\n                d: input._days,\n                M: input._months,\n            };\n        } else if (isNumber(input) || !isNaN(+input)) {\n            duration = {};\n            if (key) {\n                duration[key] = +input;\n            } else {\n                duration.milliseconds = +input;\n            }\n        } else if ((match = aspNetRegex.exec(input))) {\n            sign = match[1] === '-' ? -1 : 1;\n            duration = {\n                y: 0,\n                d: toInt(match[DATE]) * sign,\n                h: toInt(match[HOUR]) * sign,\n                m: toInt(match[MINUTE]) * sign,\n                s: toInt(match[SECOND]) * sign,\n                ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n            };\n        } else if ((match = isoRegex.exec(input))) {\n            sign = match[1] === '-' ? -1 : 1;\n            duration = {\n                y: parseIso(match[2], sign),\n                M: parseIso(match[3], sign),\n                w: parseIso(match[4], sign),\n                d: parseIso(match[5], sign),\n                h: parseIso(match[6], sign),\n                m: parseIso(match[7], sign),\n                s: parseIso(match[8], sign),\n            };\n        } else if (duration == null) {\n            // checks for null or undefined\n            duration = {};\n        } else if (\n            typeof duration === 'object' &&\n            ('from' in duration || 'to' in duration)\n        ) {\n            diffRes = momentsDifference(\n                createLocal(duration.from),\n                createLocal(duration.to)\n            );\n\n            duration = {};\n            duration.ms = diffRes.milliseconds;\n            duration.M = diffRes.months;\n        }\n\n        ret = new Duration(duration);\n\n        if (isDuration(input) && hasOwnProp(input, '_locale')) {\n            ret._locale = input._locale;\n        }\n\n        if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n            ret._isValid = input._isValid;\n        }\n\n        return ret;\n    }\n\n    createDuration.fn = Duration.prototype;\n    createDuration.invalid = createInvalid$1;\n\n    function parseIso(inp, sign) {\n        // We'd normally use ~~inp for this, but unfortunately it also\n        // converts floats to ints.\n        // inp may be undefined, so careful calling replace on it.\n        var res = inp && parseFloat(inp.replace(',', '.'));\n        // apply sign while we're at it\n        return (isNaN(res) ? 0 : res) * sign;\n    }\n\n    function positiveMomentsDifference(base, other) {\n        var res = {};\n\n        res.months =\n            other.month() - base.month() + (other.year() - base.year()) * 12;\n        if (base.clone().add(res.months, 'M').isAfter(other)) {\n            --res.months;\n        }\n\n        res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n        return res;\n    }\n\n    function momentsDifference(base, other) {\n        var res;\n        if (!(base.isValid() && other.isValid())) {\n            return { milliseconds: 0, months: 0 };\n        }\n\n        other = cloneWithOffset(other, base);\n        if (base.isBefore(other)) {\n            res = positiveMomentsDifference(base, other);\n        } else {\n            res = positiveMomentsDifference(other, base);\n            res.milliseconds = -res.milliseconds;\n            res.months = -res.months;\n        }\n\n        return res;\n    }\n\n    // TODO: remove 'name' arg after deprecation is removed\n    function createAdder(direction, name) {\n        return function (val, period) {\n            var dur, tmp;\n            //invert the arguments, but complain about it\n            if (period !== null && !isNaN(+period)) {\n                deprecateSimple(\n                    name,\n                    'moment().' +\n                        name +\n                        '(period, number) is deprecated. Please use moment().' +\n                        name +\n                        '(number, period). ' +\n                        'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n                );\n                tmp = val;\n                val = period;\n                period = tmp;\n            }\n\n            dur = createDuration(val, period);\n            addSubtract(this, dur, direction);\n            return this;\n        };\n    }\n\n    function addSubtract(mom, duration, isAdding, updateOffset) {\n        var milliseconds = duration._milliseconds,\n            days = absRound(duration._days),\n            months = absRound(duration._months);\n\n        if (!mom.isValid()) {\n            // No op\n            return;\n        }\n\n        updateOffset = updateOffset == null ? true : updateOffset;\n\n        if (months) {\n            setMonth(mom, get(mom, 'Month') + months * isAdding);\n        }\n        if (days) {\n            set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n        }\n        if (milliseconds) {\n            mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n        }\n        if (updateOffset) {\n            hooks.updateOffset(mom, days || months);\n        }\n    }\n\n    var add = createAdder(1, 'add'),\n        subtract = createAdder(-1, 'subtract');\n\n    function isString(input) {\n        return typeof input === 'string' || input instanceof String;\n    }\n\n    // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n    function isMomentInput(input) {\n        return (\n            isMoment(input) ||\n            isDate(input) ||\n            isString(input) ||\n            isNumber(input) ||\n            isNumberOrStringArray(input) ||\n            isMomentInputObject(input) ||\n            input === null ||\n            input === undefined\n        );\n    }\n\n    function isMomentInputObject(input) {\n        var objectTest = isObject(input) && !isObjectEmpty(input),\n            propertyTest = false,\n            properties = [\n                'years',\n                'year',\n                'y',\n                'months',\n                'month',\n                'M',\n                'days',\n                'day',\n                'd',\n                'dates',\n                'date',\n                'D',\n                'hours',\n                'hour',\n                'h',\n                'minutes',\n                'minute',\n                'm',\n                'seconds',\n                'second',\n                's',\n                'milliseconds',\n                'millisecond',\n                'ms',\n            ],\n            i,\n            property;\n\n        for (i = 0; i < properties.length; i += 1) {\n            property = properties[i];\n            propertyTest = propertyTest || hasOwnProp(input, property);\n        }\n\n        return objectTest && propertyTest;\n    }\n\n    function isNumberOrStringArray(input) {\n        var arrayTest = isArray(input),\n            dataTypeTest = false;\n        if (arrayTest) {\n            dataTypeTest =\n                input.filter(function (item) {\n                    return !isNumber(item) && isString(input);\n                }).length === 0;\n        }\n        return arrayTest && dataTypeTest;\n    }\n\n    function isCalendarSpec(input) {\n        var objectTest = isObject(input) && !isObjectEmpty(input),\n            propertyTest = false,\n            properties = [\n                'sameDay',\n                'nextDay',\n                'lastDay',\n                'nextWeek',\n                'lastWeek',\n                'sameElse',\n            ],\n            i,\n            property;\n\n        for (i = 0; i < properties.length; i += 1) {\n            property = properties[i];\n            propertyTest = propertyTest || hasOwnProp(input, property);\n        }\n\n        return objectTest && propertyTest;\n    }\n\n    function getCalendarFormat(myMoment, now) {\n        var diff = myMoment.diff(now, 'days', true);\n        return diff < -6\n            ? 'sameElse'\n            : diff < -1\n            ? 'lastWeek'\n            : diff < 0\n            ? 'lastDay'\n            : diff < 1\n            ? 'sameDay'\n            : diff < 2\n            ? 'nextDay'\n            : diff < 7\n            ? 'nextWeek'\n            : 'sameElse';\n    }\n\n    function calendar$1(time, formats) {\n        // Support for single parameter, formats only overload to the calendar function\n        if (arguments.length === 1) {\n            if (!arguments[0]) {\n                time = undefined;\n                formats = undefined;\n            } else if (isMomentInput(arguments[0])) {\n                time = arguments[0];\n                formats = undefined;\n            } else if (isCalendarSpec(arguments[0])) {\n                formats = arguments[0];\n                time = undefined;\n            }\n        }\n        // We want to compare the start of today, vs this.\n        // Getting start-of-today depends on whether we're local/utc/offset or not.\n        var now = time || createLocal(),\n            sod = cloneWithOffset(now, this).startOf('day'),\n            format = hooks.calendarFormat(this, sod) || 'sameElse',\n            output =\n                formats &&\n                (isFunction(formats[format])\n                    ? formats[format].call(this, now)\n                    : formats[format]);\n\n        return this.format(\n            output || this.localeData().calendar(format, this, createLocal(now))\n        );\n    }\n\n    function clone() {\n        return new Moment(this);\n    }\n\n    function isAfter(input, units) {\n        var localInput = isMoment(input) ? input : createLocal(input);\n        if (!(this.isValid() && localInput.isValid())) {\n            return false;\n        }\n        units = normalizeUnits(units) || 'millisecond';\n        if (units === 'millisecond') {\n            return this.valueOf() > localInput.valueOf();\n        } else {\n            return localInput.valueOf() < this.clone().startOf(units).valueOf();\n        }\n    }\n\n    function isBefore(input, units) {\n        var localInput = isMoment(input) ? input : createLocal(input);\n        if (!(this.isValid() && localInput.isValid())) {\n            return false;\n        }\n        units = normalizeUnits(units) || 'millisecond';\n        if (units === 'millisecond') {\n            return this.valueOf() < localInput.valueOf();\n        } else {\n            return this.clone().endOf(units).valueOf() < localInput.valueOf();\n        }\n    }\n\n    function isBetween(from, to, units, inclusivity) {\n        var localFrom = isMoment(from) ? from : createLocal(from),\n            localTo = isMoment(to) ? to : createLocal(to);\n        if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n            return false;\n        }\n        inclusivity = inclusivity || '()';\n        return (\n            (inclusivity[0] === '('\n                ? this.isAfter(localFrom, units)\n                : !this.isBefore(localFrom, units)) &&\n            (inclusivity[1] === ')'\n                ? this.isBefore(localTo, units)\n                : !this.isAfter(localTo, units))\n        );\n    }\n\n    function isSame(input, units) {\n        var localInput = isMoment(input) ? input : createLocal(input),\n            inputMs;\n        if (!(this.isValid() && localInput.isValid())) {\n            return false;\n        }\n        units = normalizeUnits(units) || 'millisecond';\n        if (units === 'millisecond') {\n            return this.valueOf() === localInput.valueOf();\n        } else {\n            inputMs = localInput.valueOf();\n            return (\n                this.clone().startOf(units).valueOf() <= inputMs &&\n                inputMs <= this.clone().endOf(units).valueOf()\n            );\n        }\n    }\n\n    function isSameOrAfter(input, units) {\n        return this.isSame(input, units) || this.isAfter(input, units);\n    }\n\n    function isSameOrBefore(input, units) {\n        return this.isSame(input, units) || this.isBefore(input, units);\n    }\n\n    function diff(input, units, asFloat) {\n        var that, zoneDelta, output;\n\n        if (!this.isValid()) {\n            return NaN;\n        }\n\n        that = cloneWithOffset(input, this);\n\n        if (!that.isValid()) {\n            return NaN;\n        }\n\n        zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n        units = normalizeUnits(units);\n\n        switch (units) {\n            case 'year':\n                output = monthDiff(this, that) / 12;\n                break;\n            case 'month':\n                output = monthDiff(this, that);\n                break;\n            case 'quarter':\n                output = monthDiff(this, that) / 3;\n                break;\n            case 'second':\n                output = (this - that) / 1e3;\n                break; // 1000\n            case 'minute':\n                output = (this - that) / 6e4;\n                break; // 1000 * 60\n            case 'hour':\n                output = (this - that) / 36e5;\n                break; // 1000 * 60 * 60\n            case 'day':\n                output = (this - that - zoneDelta) / 864e5;\n                break; // 1000 * 60 * 60 * 24, negate dst\n            case 'week':\n                output = (this - that - zoneDelta) / 6048e5;\n                break; // 1000 * 60 * 60 * 24 * 7, negate dst\n            default:\n                output = this - that;\n        }\n\n        return asFloat ? output : absFloor(output);\n    }\n\n    function monthDiff(a, b) {\n        if (a.date() < b.date()) {\n            // end-of-month calculations work correct when the start month has more\n            // days than the end month.\n            return -monthDiff(b, a);\n        }\n        // difference in months\n        var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n            // b is in (anchor - 1 month, anchor + 1 month)\n            anchor = a.clone().add(wholeMonthDiff, 'months'),\n            anchor2,\n            adjust;\n\n        if (b - anchor < 0) {\n            anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n            // linear across the month\n            adjust = (b - anchor) / (anchor - anchor2);\n        } else {\n            anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n            // linear across the month\n            adjust = (b - anchor) / (anchor2 - anchor);\n        }\n\n        //check for negative zero, return zero if negative zero\n        return -(wholeMonthDiff + adjust) || 0;\n    }\n\n    hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n    hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n    function toString() {\n        return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n    }\n\n    function toISOString(keepOffset) {\n        if (!this.isValid()) {\n            return null;\n        }\n        var utc = keepOffset !== true,\n            m = utc ? this.clone().utc() : this;\n        if (m.year() < 0 || m.year() > 9999) {\n            return formatMoment(\n                m,\n                utc\n                    ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n                    : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n            );\n        }\n        if (isFunction(Date.prototype.toISOString)) {\n            // native implementation is ~50x faster, use it when we can\n            if (utc) {\n                return this.toDate().toISOString();\n            } else {\n                return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n                    .toISOString()\n                    .replace('Z', formatMoment(m, 'Z'));\n            }\n        }\n        return formatMoment(\n            m,\n            utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n        );\n    }\n\n    /**\n     * Return a human readable representation of a moment that can\n     * also be evaluated to get a new moment which is the same\n     *\n     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n     */\n    function inspect() {\n        if (!this.isValid()) {\n            return 'moment.invalid(/* ' + this._i + ' */)';\n        }\n        var func = 'moment',\n            zone = '',\n            prefix,\n            year,\n            datetime,\n            suffix;\n        if (!this.isLocal()) {\n            func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n            zone = 'Z';\n        }\n        prefix = '[' + func + '(\"]';\n        year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n        datetime = '-MM-DD[T]HH:mm:ss.SSS';\n        suffix = zone + '[\")]';\n\n        return this.format(prefix + year + datetime + suffix);\n    }\n\n    function format(inputString) {\n        if (!inputString) {\n            inputString = this.isUtc()\n                ? hooks.defaultFormatUtc\n                : hooks.defaultFormat;\n        }\n        var output = formatMoment(this, inputString);\n        return this.localeData().postformat(output);\n    }\n\n    function from(time, withoutSuffix) {\n        if (\n            this.isValid() &&\n            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n        ) {\n            return createDuration({ to: this, from: time })\n                .locale(this.locale())\n                .humanize(!withoutSuffix);\n        } else {\n            return this.localeData().invalidDate();\n        }\n    }\n\n    function fromNow(withoutSuffix) {\n        return this.from(createLocal(), withoutSuffix);\n    }\n\n    function to(time, withoutSuffix) {\n        if (\n            this.isValid() &&\n            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n        ) {\n            return createDuration({ from: this, to: time })\n                .locale(this.locale())\n                .humanize(!withoutSuffix);\n        } else {\n            return this.localeData().invalidDate();\n        }\n    }\n\n    function toNow(withoutSuffix) {\n        return this.to(createLocal(), withoutSuffix);\n    }\n\n    // If passed a locale key, it will set the locale for this\n    // instance.  Otherwise, it will return the locale configuration\n    // variables for this instance.\n    function locale(key) {\n        var newLocaleData;\n\n        if (key === undefined) {\n            return this._locale._abbr;\n        } else {\n            newLocaleData = getLocale(key);\n            if (newLocaleData != null) {\n                this._locale = newLocaleData;\n            }\n            return this;\n        }\n    }\n\n    var lang = deprecate(\n        'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n        function (key) {\n            if (key === undefined) {\n                return this.localeData();\n            } else {\n                return this.locale(key);\n            }\n        }\n    );\n\n    function localeData() {\n        return this._locale;\n    }\n\n    var MS_PER_SECOND = 1000,\n        MS_PER_MINUTE = 60 * MS_PER_SECOND,\n        MS_PER_HOUR = 60 * MS_PER_MINUTE,\n        MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n    // actual modulo - handles negative numbers (for dates before 1970):\n    function mod$1(dividend, divisor) {\n        return ((dividend % divisor) + divisor) % divisor;\n    }\n\n    function localStartOfDate(y, m, d) {\n        // the date constructor remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            // preserve leap years using a full 400 year cycle, then reset\n            return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n        } else {\n            return new Date(y, m, d).valueOf();\n        }\n    }\n\n    function utcStartOfDate(y, m, d) {\n        // Date.UTC remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            // preserve leap years using a full 400 year cycle, then reset\n            return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n        } else {\n            return Date.UTC(y, m, d);\n        }\n    }\n\n    function startOf(units) {\n        var time, startOfDate;\n        units = normalizeUnits(units);\n        if (units === undefined || units === 'millisecond' || !this.isValid()) {\n            return this;\n        }\n\n        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n        switch (units) {\n            case 'year':\n                time = startOfDate(this.year(), 0, 1);\n                break;\n            case 'quarter':\n                time = startOfDate(\n                    this.year(),\n                    this.month() - (this.month() % 3),\n                    1\n                );\n                break;\n            case 'month':\n                time = startOfDate(this.year(), this.month(), 1);\n                break;\n            case 'week':\n                time = startOfDate(\n                    this.year(),\n                    this.month(),\n                    this.date() - this.weekday()\n                );\n                break;\n            case 'isoWeek':\n                time = startOfDate(\n                    this.year(),\n                    this.month(),\n                    this.date() - (this.isoWeekday() - 1)\n                );\n                break;\n            case 'day':\n            case 'date':\n                time = startOfDate(this.year(), this.month(), this.date());\n                break;\n            case 'hour':\n                time = this._d.valueOf();\n                time -= mod$1(\n                    time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n                    MS_PER_HOUR\n                );\n                break;\n            case 'minute':\n                time = this._d.valueOf();\n                time -= mod$1(time, MS_PER_MINUTE);\n                break;\n            case 'second':\n                time = this._d.valueOf();\n                time -= mod$1(time, MS_PER_SECOND);\n                break;\n        }\n\n        this._d.setTime(time);\n        hooks.updateOffset(this, true);\n        return this;\n    }\n\n    function endOf(units) {\n        var time, startOfDate;\n        units = normalizeUnits(units);\n        if (units === undefined || units === 'millisecond' || !this.isValid()) {\n            return this;\n        }\n\n        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n        switch (units) {\n            case 'year':\n                time = startOfDate(this.year() + 1, 0, 1) - 1;\n                break;\n            case 'quarter':\n                time =\n                    startOfDate(\n                        this.year(),\n                        this.month() - (this.month() % 3) + 3,\n                        1\n                    ) - 1;\n                break;\n            case 'month':\n                time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n                break;\n            case 'week':\n                time =\n                    startOfDate(\n                        this.year(),\n                        this.month(),\n                        this.date() - this.weekday() + 7\n                    ) - 1;\n                break;\n            case 'isoWeek':\n                time =\n                    startOfDate(\n                        this.year(),\n                        this.month(),\n                        this.date() - (this.isoWeekday() - 1) + 7\n                    ) - 1;\n                break;\n            case 'day':\n            case 'date':\n                time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n                break;\n            case 'hour':\n                time = this._d.valueOf();\n                time +=\n                    MS_PER_HOUR -\n                    mod$1(\n                        time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n                        MS_PER_HOUR\n                    ) -\n                    1;\n                break;\n            case 'minute':\n                time = this._d.valueOf();\n                time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n                break;\n            case 'second':\n                time = this._d.valueOf();\n                time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n                break;\n        }\n\n        this._d.setTime(time);\n        hooks.updateOffset(this, true);\n        return this;\n    }\n\n    function valueOf() {\n        return this._d.valueOf() - (this._offset || 0) * 60000;\n    }\n\n    function unix() {\n        return Math.floor(this.valueOf() / 1000);\n    }\n\n    function toDate() {\n        return new Date(this.valueOf());\n    }\n\n    function toArray() {\n        var m = this;\n        return [\n            m.year(),\n            m.month(),\n            m.date(),\n            m.hour(),\n            m.minute(),\n            m.second(),\n            m.millisecond(),\n        ];\n    }\n\n    function toObject() {\n        var m = this;\n        return {\n            years: m.year(),\n            months: m.month(),\n            date: m.date(),\n            hours: m.hours(),\n            minutes: m.minutes(),\n            seconds: m.seconds(),\n            milliseconds: m.milliseconds(),\n        };\n    }\n\n    function toJSON() {\n        // new Date(NaN).toJSON() === null\n        return this.isValid() ? this.toISOString() : null;\n    }\n\n    function isValid$2() {\n        return isValid(this);\n    }\n\n    function parsingFlags() {\n        return extend({}, getParsingFlags(this));\n    }\n\n    function invalidAt() {\n        return getParsingFlags(this).overflow;\n    }\n\n    function creationData() {\n        return {\n            input: this._i,\n            format: this._f,\n            locale: this._locale,\n            isUTC: this._isUTC,\n            strict: this._strict,\n        };\n    }\n\n    addFormatToken('N', 0, 0, 'eraAbbr');\n    addFormatToken('NN', 0, 0, 'eraAbbr');\n    addFormatToken('NNN', 0, 0, 'eraAbbr');\n    addFormatToken('NNNN', 0, 0, 'eraName');\n    addFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\n    addFormatToken('y', ['y', 1], 'yo', 'eraYear');\n    addFormatToken('y', ['yy', 2], 0, 'eraYear');\n    addFormatToken('y', ['yyy', 3], 0, 'eraYear');\n    addFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\n    addRegexToken('N', matchEraAbbr);\n    addRegexToken('NN', matchEraAbbr);\n    addRegexToken('NNN', matchEraAbbr);\n    addRegexToken('NNNN', matchEraName);\n    addRegexToken('NNNNN', matchEraNarrow);\n\n    addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (\n        input,\n        array,\n        config,\n        token\n    ) {\n        var era = config._locale.erasParse(input, token, config._strict);\n        if (era) {\n            getParsingFlags(config).era = era;\n        } else {\n            getParsingFlags(config).invalidEra = input;\n        }\n    });\n\n    addRegexToken('y', matchUnsigned);\n    addRegexToken('yy', matchUnsigned);\n    addRegexToken('yyy', matchUnsigned);\n    addRegexToken('yyyy', matchUnsigned);\n    addRegexToken('yo', matchEraYearOrdinal);\n\n    addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\n    addParseToken(['yo'], function (input, array, config, token) {\n        var match;\n        if (config._locale._eraYearOrdinalRegex) {\n            match = input.match(config._locale._eraYearOrdinalRegex);\n        }\n\n        if (config._locale.eraYearOrdinalParse) {\n            array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n        } else {\n            array[YEAR] = parseInt(input, 10);\n        }\n    });\n\n    function localeEras(m, format) {\n        var i,\n            l,\n            date,\n            eras = this._eras || getLocale('en')._eras;\n        for (i = 0, l = eras.length; i < l; ++i) {\n            switch (typeof eras[i].since) {\n                case 'string':\n                    // truncate time\n                    date = hooks(eras[i].since).startOf('day');\n                    eras[i].since = date.valueOf();\n                    break;\n            }\n\n            switch (typeof eras[i].until) {\n                case 'undefined':\n                    eras[i].until = +Infinity;\n                    break;\n                case 'string':\n                    // truncate time\n                    date = hooks(eras[i].until).startOf('day').valueOf();\n                    eras[i].until = date.valueOf();\n                    break;\n            }\n        }\n        return eras;\n    }\n\n    function localeErasParse(eraName, format, strict) {\n        var i,\n            l,\n            eras = this.eras(),\n            name,\n            abbr,\n            narrow;\n        eraName = eraName.toUpperCase();\n\n        for (i = 0, l = eras.length; i < l; ++i) {\n            name = eras[i].name.toUpperCase();\n            abbr = eras[i].abbr.toUpperCase();\n            narrow = eras[i].narrow.toUpperCase();\n\n            if (strict) {\n                switch (format) {\n                    case 'N':\n                    case 'NN':\n                    case 'NNN':\n                        if (abbr === eraName) {\n                            return eras[i];\n                        }\n                        break;\n\n                    case 'NNNN':\n                        if (name === eraName) {\n                            return eras[i];\n                        }\n                        break;\n\n                    case 'NNNNN':\n                        if (narrow === eraName) {\n                            return eras[i];\n                        }\n                        break;\n                }\n            } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n                return eras[i];\n            }\n        }\n    }\n\n    function localeErasConvertYear(era, year) {\n        var dir = era.since <= era.until ? +1 : -1;\n        if (year === undefined) {\n            return hooks(era.since).year();\n        } else {\n            return hooks(era.since).year() + (year - era.offset) * dir;\n        }\n    }\n\n    function getEraName() {\n        var i,\n            l,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (eras[i].since <= val && val <= eras[i].until) {\n                return eras[i].name;\n            }\n            if (eras[i].until <= val && val <= eras[i].since) {\n                return eras[i].name;\n            }\n        }\n\n        return '';\n    }\n\n    function getEraNarrow() {\n        var i,\n            l,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (eras[i].since <= val && val <= eras[i].until) {\n                return eras[i].narrow;\n            }\n            if (eras[i].until <= val && val <= eras[i].since) {\n                return eras[i].narrow;\n            }\n        }\n\n        return '';\n    }\n\n    function getEraAbbr() {\n        var i,\n            l,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (eras[i].since <= val && val <= eras[i].until) {\n                return eras[i].abbr;\n            }\n            if (eras[i].until <= val && val <= eras[i].since) {\n                return eras[i].abbr;\n            }\n        }\n\n        return '';\n    }\n\n    function getEraYear() {\n        var i,\n            l,\n            dir,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (\n                (eras[i].since <= val && val <= eras[i].until) ||\n                (eras[i].until <= val && val <= eras[i].since)\n            ) {\n                return (\n                    (this.year() - hooks(eras[i].since).year()) * dir +\n                    eras[i].offset\n                );\n            }\n        }\n\n        return this.year();\n    }\n\n    function erasNameRegex(isStrict) {\n        if (!hasOwnProp(this, '_erasNameRegex')) {\n            computeErasParse.call(this);\n        }\n        return isStrict ? this._erasNameRegex : this._erasRegex;\n    }\n\n    function erasAbbrRegex(isStrict) {\n        if (!hasOwnProp(this, '_erasAbbrRegex')) {\n            computeErasParse.call(this);\n        }\n        return isStrict ? this._erasAbbrRegex : this._erasRegex;\n    }\n\n    function erasNarrowRegex(isStrict) {\n        if (!hasOwnProp(this, '_erasNarrowRegex')) {\n            computeErasParse.call(this);\n        }\n        return isStrict ? this._erasNarrowRegex : this._erasRegex;\n    }\n\n    function matchEraAbbr(isStrict, locale) {\n        return locale.erasAbbrRegex(isStrict);\n    }\n\n    function matchEraName(isStrict, locale) {\n        return locale.erasNameRegex(isStrict);\n    }\n\n    function matchEraNarrow(isStrict, locale) {\n        return locale.erasNarrowRegex(isStrict);\n    }\n\n    function matchEraYearOrdinal(isStrict, locale) {\n        return locale._eraYearOrdinalRegex || matchUnsigned;\n    }\n\n    function computeErasParse() {\n        var abbrPieces = [],\n            namePieces = [],\n            narrowPieces = [],\n            mixedPieces = [],\n            i,\n            l,\n            eras = this.eras();\n\n        for (i = 0, l = eras.length; i < l; ++i) {\n            namePieces.push(regexEscape(eras[i].name));\n            abbrPieces.push(regexEscape(eras[i].abbr));\n            narrowPieces.push(regexEscape(eras[i].narrow));\n\n            mixedPieces.push(regexEscape(eras[i].name));\n            mixedPieces.push(regexEscape(eras[i].abbr));\n            mixedPieces.push(regexEscape(eras[i].narrow));\n        }\n\n        this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n        this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n        this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n        this._erasNarrowRegex = new RegExp(\n            '^(' + narrowPieces.join('|') + ')',\n            'i'\n        );\n    }\n\n    // FORMATTING\n\n    addFormatToken(0, ['gg', 2], 0, function () {\n        return this.weekYear() % 100;\n    });\n\n    addFormatToken(0, ['GG', 2], 0, function () {\n        return this.isoWeekYear() % 100;\n    });\n\n    function addWeekYearFormatToken(token, getter) {\n        addFormatToken(0, [token, token.length], 0, getter);\n    }\n\n    addWeekYearFormatToken('gggg', 'weekYear');\n    addWeekYearFormatToken('ggggg', 'weekYear');\n    addWeekYearFormatToken('GGGG', 'isoWeekYear');\n    addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n    // ALIASES\n\n    addUnitAlias('weekYear', 'gg');\n    addUnitAlias('isoWeekYear', 'GG');\n\n    // PRIORITY\n\n    addUnitPriority('weekYear', 1);\n    addUnitPriority('isoWeekYear', 1);\n\n    // PARSING\n\n    addRegexToken('G', matchSigned);\n    addRegexToken('g', matchSigned);\n    addRegexToken('GG', match1to2, match2);\n    addRegexToken('gg', match1to2, match2);\n    addRegexToken('GGGG', match1to4, match4);\n    addRegexToken('gggg', match1to4, match4);\n    addRegexToken('GGGGG', match1to6, match6);\n    addRegexToken('ggggg', match1to6, match6);\n\n    addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (\n        input,\n        week,\n        config,\n        token\n    ) {\n        week[token.substr(0, 2)] = toInt(input);\n    });\n\n    addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n        week[token] = hooks.parseTwoDigitYear(input);\n    });\n\n    // MOMENTS\n\n    function getSetWeekYear(input) {\n        return getSetWeekYearHelper.call(\n            this,\n            input,\n            this.week(),\n            this.weekday(),\n            this.localeData()._week.dow,\n            this.localeData()._week.doy\n        );\n    }\n\n    function getSetISOWeekYear(input) {\n        return getSetWeekYearHelper.call(\n            this,\n            input,\n            this.isoWeek(),\n            this.isoWeekday(),\n            1,\n            4\n        );\n    }\n\n    function getISOWeeksInYear() {\n        return weeksInYear(this.year(), 1, 4);\n    }\n\n    function getISOWeeksInISOWeekYear() {\n        return weeksInYear(this.isoWeekYear(), 1, 4);\n    }\n\n    function getWeeksInYear() {\n        var weekInfo = this.localeData()._week;\n        return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n    }\n\n    function getWeeksInWeekYear() {\n        var weekInfo = this.localeData()._week;\n        return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n    }\n\n    function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n        var weeksTarget;\n        if (input == null) {\n            return weekOfYear(this, dow, doy).year;\n        } else {\n            weeksTarget = weeksInYear(input, dow, doy);\n            if (week > weeksTarget) {\n                week = weeksTarget;\n            }\n            return setWeekAll.call(this, input, week, weekday, dow, doy);\n        }\n    }\n\n    function setWeekAll(weekYear, week, weekday, dow, doy) {\n        var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n            date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n        this.year(date.getUTCFullYear());\n        this.month(date.getUTCMonth());\n        this.date(date.getUTCDate());\n        return this;\n    }\n\n    // FORMATTING\n\n    addFormatToken('Q', 0, 'Qo', 'quarter');\n\n    // ALIASES\n\n    addUnitAlias('quarter', 'Q');\n\n    // PRIORITY\n\n    addUnitPriority('quarter', 7);\n\n    // PARSING\n\n    addRegexToken('Q', match1);\n    addParseToken('Q', function (input, array) {\n        array[MONTH] = (toInt(input) - 1) * 3;\n    });\n\n    // MOMENTS\n\n    function getSetQuarter(input) {\n        return input == null\n            ? Math.ceil((this.month() + 1) / 3)\n            : this.month((input - 1) * 3 + (this.month() % 3));\n    }\n\n    // FORMATTING\n\n    addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n    // ALIASES\n\n    addUnitAlias('date', 'D');\n\n    // PRIORITY\n    addUnitPriority('date', 9);\n\n    // PARSING\n\n    addRegexToken('D', match1to2);\n    addRegexToken('DD', match1to2, match2);\n    addRegexToken('Do', function (isStrict, locale) {\n        // TODO: Remove \"ordinalParse\" fallback in next major release.\n        return isStrict\n            ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n            : locale._dayOfMonthOrdinalParseLenient;\n    });\n\n    addParseToken(['D', 'DD'], DATE);\n    addParseToken('Do', function (input, array) {\n        array[DATE] = toInt(input.match(match1to2)[0]);\n    });\n\n    // MOMENTS\n\n    var getSetDayOfMonth = makeGetSet('Date', true);\n\n    // FORMATTING\n\n    addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n    // ALIASES\n\n    addUnitAlias('dayOfYear', 'DDD');\n\n    // PRIORITY\n    addUnitPriority('dayOfYear', 4);\n\n    // PARSING\n\n    addRegexToken('DDD', match1to3);\n    addRegexToken('DDDD', match3);\n    addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n        config._dayOfYear = toInt(input);\n    });\n\n    // HELPERS\n\n    // MOMENTS\n\n    function getSetDayOfYear(input) {\n        var dayOfYear =\n            Math.round(\n                (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n            ) + 1;\n        return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n    }\n\n    // FORMATTING\n\n    addFormatToken('m', ['mm', 2], 0, 'minute');\n\n    // ALIASES\n\n    addUnitAlias('minute', 'm');\n\n    // PRIORITY\n\n    addUnitPriority('minute', 14);\n\n    // PARSING\n\n    addRegexToken('m', match1to2);\n    addRegexToken('mm', match1to2, match2);\n    addParseToken(['m', 'mm'], MINUTE);\n\n    // MOMENTS\n\n    var getSetMinute = makeGetSet('Minutes', false);\n\n    // FORMATTING\n\n    addFormatToken('s', ['ss', 2], 0, 'second');\n\n    // ALIASES\n\n    addUnitAlias('second', 's');\n\n    // PRIORITY\n\n    addUnitPriority('second', 15);\n\n    // PARSING\n\n    addRegexToken('s', match1to2);\n    addRegexToken('ss', match1to2, match2);\n    addParseToken(['s', 'ss'], SECOND);\n\n    // MOMENTS\n\n    var getSetSecond = makeGetSet('Seconds', false);\n\n    // FORMATTING\n\n    addFormatToken('S', 0, 0, function () {\n        return ~~(this.millisecond() / 100);\n    });\n\n    addFormatToken(0, ['SS', 2], 0, function () {\n        return ~~(this.millisecond() / 10);\n    });\n\n    addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n    addFormatToken(0, ['SSSS', 4], 0, function () {\n        return this.millisecond() * 10;\n    });\n    addFormatToken(0, ['SSSSS', 5], 0, function () {\n        return this.millisecond() * 100;\n    });\n    addFormatToken(0, ['SSSSSS', 6], 0, function () {\n        return this.millisecond() * 1000;\n    });\n    addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n        return this.millisecond() * 10000;\n    });\n    addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n        return this.millisecond() * 100000;\n    });\n    addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n        return this.millisecond() * 1000000;\n    });\n\n    // ALIASES\n\n    addUnitAlias('millisecond', 'ms');\n\n    // PRIORITY\n\n    addUnitPriority('millisecond', 16);\n\n    // PARSING\n\n    addRegexToken('S', match1to3, match1);\n    addRegexToken('SS', match1to3, match2);\n    addRegexToken('SSS', match1to3, match3);\n\n    var token, getSetMillisecond;\n    for (token = 'SSSS'; token.length <= 9; token += 'S') {\n        addRegexToken(token, matchUnsigned);\n    }\n\n    function parseMs(input, array) {\n        array[MILLISECOND] = toInt(('0.' + input) * 1000);\n    }\n\n    for (token = 'S'; token.length <= 9; token += 'S') {\n        addParseToken(token, parseMs);\n    }\n\n    getSetMillisecond = makeGetSet('Milliseconds', false);\n\n    // FORMATTING\n\n    addFormatToken('z', 0, 0, 'zoneAbbr');\n    addFormatToken('zz', 0, 0, 'zoneName');\n\n    // MOMENTS\n\n    function getZoneAbbr() {\n        return this._isUTC ? 'UTC' : '';\n    }\n\n    function getZoneName() {\n        return this._isUTC ? 'Coordinated Universal Time' : '';\n    }\n\n    var proto = Moment.prototype;\n\n    proto.add = add;\n    proto.calendar = calendar$1;\n    proto.clone = clone;\n    proto.diff = diff;\n    proto.endOf = endOf;\n    proto.format = format;\n    proto.from = from;\n    proto.fromNow = fromNow;\n    proto.to = to;\n    proto.toNow = toNow;\n    proto.get = stringGet;\n    proto.invalidAt = invalidAt;\n    proto.isAfter = isAfter;\n    proto.isBefore = isBefore;\n    proto.isBetween = isBetween;\n    proto.isSame = isSame;\n    proto.isSameOrAfter = isSameOrAfter;\n    proto.isSameOrBefore = isSameOrBefore;\n    proto.isValid = isValid$2;\n    proto.lang = lang;\n    proto.locale = locale;\n    proto.localeData = localeData;\n    proto.max = prototypeMax;\n    proto.min = prototypeMin;\n    proto.parsingFlags = parsingFlags;\n    proto.set = stringSet;\n    proto.startOf = startOf;\n    proto.subtract = subtract;\n    proto.toArray = toArray;\n    proto.toObject = toObject;\n    proto.toDate = toDate;\n    proto.toISOString = toISOString;\n    proto.inspect = inspect;\n    if (typeof Symbol !== 'undefined' && Symbol.for != null) {\n        proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n            return 'Moment<' + this.format() + '>';\n        };\n    }\n    proto.toJSON = toJSON;\n    proto.toString = toString;\n    proto.unix = unix;\n    proto.valueOf = valueOf;\n    proto.creationData = creationData;\n    proto.eraName = getEraName;\n    proto.eraNarrow = getEraNarrow;\n    proto.eraAbbr = getEraAbbr;\n    proto.eraYear = getEraYear;\n    proto.year = getSetYear;\n    proto.isLeapYear = getIsLeapYear;\n    proto.weekYear = getSetWeekYear;\n    proto.isoWeekYear = getSetISOWeekYear;\n    proto.quarter = proto.quarters = getSetQuarter;\n    proto.month = getSetMonth;\n    proto.daysInMonth = getDaysInMonth;\n    proto.week = proto.weeks = getSetWeek;\n    proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n    proto.weeksInYear = getWeeksInYear;\n    proto.weeksInWeekYear = getWeeksInWeekYear;\n    proto.isoWeeksInYear = getISOWeeksInYear;\n    proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n    proto.date = getSetDayOfMonth;\n    proto.day = proto.days = getSetDayOfWeek;\n    proto.weekday = getSetLocaleDayOfWeek;\n    proto.isoWeekday = getSetISODayOfWeek;\n    proto.dayOfYear = getSetDayOfYear;\n    proto.hour = proto.hours = getSetHour;\n    proto.minute = proto.minutes = getSetMinute;\n    proto.second = proto.seconds = getSetSecond;\n    proto.millisecond = proto.milliseconds = getSetMillisecond;\n    proto.utcOffset = getSetOffset;\n    proto.utc = setOffsetToUTC;\n    proto.local = setOffsetToLocal;\n    proto.parseZone = setOffsetToParsedOffset;\n    proto.hasAlignedHourOffset = hasAlignedHourOffset;\n    proto.isDST = isDaylightSavingTime;\n    proto.isLocal = isLocal;\n    proto.isUtcOffset = isUtcOffset;\n    proto.isUtc = isUtc;\n    proto.isUTC = isUtc;\n    proto.zoneAbbr = getZoneAbbr;\n    proto.zoneName = getZoneName;\n    proto.dates = deprecate(\n        'dates accessor is deprecated. Use date instead.',\n        getSetDayOfMonth\n    );\n    proto.months = deprecate(\n        'months accessor is deprecated. Use month instead',\n        getSetMonth\n    );\n    proto.years = deprecate(\n        'years accessor is deprecated. Use year instead',\n        getSetYear\n    );\n    proto.zone = deprecate(\n        'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n        getSetZone\n    );\n    proto.isDSTShifted = deprecate(\n        'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n        isDaylightSavingTimeShifted\n    );\n\n    function createUnix(input) {\n        return createLocal(input * 1000);\n    }\n\n    function createInZone() {\n        return createLocal.apply(null, arguments).parseZone();\n    }\n\n    function preParsePostFormat(string) {\n        return string;\n    }\n\n    var proto$1 = Locale.prototype;\n\n    proto$1.calendar = calendar;\n    proto$1.longDateFormat = longDateFormat;\n    proto$1.invalidDate = invalidDate;\n    proto$1.ordinal = ordinal;\n    proto$1.preparse = preParsePostFormat;\n    proto$1.postformat = preParsePostFormat;\n    proto$1.relativeTime = relativeTime;\n    proto$1.pastFuture = pastFuture;\n    proto$1.set = set;\n    proto$1.eras = localeEras;\n    proto$1.erasParse = localeErasParse;\n    proto$1.erasConvertYear = localeErasConvertYear;\n    proto$1.erasAbbrRegex = erasAbbrRegex;\n    proto$1.erasNameRegex = erasNameRegex;\n    proto$1.erasNarrowRegex = erasNarrowRegex;\n\n    proto$1.months = localeMonths;\n    proto$1.monthsShort = localeMonthsShort;\n    proto$1.monthsParse = localeMonthsParse;\n    proto$1.monthsRegex = monthsRegex;\n    proto$1.monthsShortRegex = monthsShortRegex;\n    proto$1.week = localeWeek;\n    proto$1.firstDayOfYear = localeFirstDayOfYear;\n    proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n    proto$1.weekdays = localeWeekdays;\n    proto$1.weekdaysMin = localeWeekdaysMin;\n    proto$1.weekdaysShort = localeWeekdaysShort;\n    proto$1.weekdaysParse = localeWeekdaysParse;\n\n    proto$1.weekdaysRegex = weekdaysRegex;\n    proto$1.weekdaysShortRegex = weekdaysShortRegex;\n    proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n    proto$1.isPM = localeIsPM;\n    proto$1.meridiem = localeMeridiem;\n\n    function get$1(format, index, field, setter) {\n        var locale = getLocale(),\n            utc = createUTC().set(setter, index);\n        return locale[field](utc, format);\n    }\n\n    function listMonthsImpl(format, index, field) {\n        if (isNumber(format)) {\n            index = format;\n            format = undefined;\n        }\n\n        format = format || '';\n\n        if (index != null) {\n            return get$1(format, index, field, 'month');\n        }\n\n        var i,\n            out = [];\n        for (i = 0; i < 12; i++) {\n            out[i] = get$1(format, i, field, 'month');\n        }\n        return out;\n    }\n\n    // ()\n    // (5)\n    // (fmt, 5)\n    // (fmt)\n    // (true)\n    // (true, 5)\n    // (true, fmt, 5)\n    // (true, fmt)\n    function listWeekdaysImpl(localeSorted, format, index, field) {\n        if (typeof localeSorted === 'boolean') {\n            if (isNumber(format)) {\n                index = format;\n                format = undefined;\n            }\n\n            format = format || '';\n        } else {\n            format = localeSorted;\n            index = format;\n            localeSorted = false;\n\n            if (isNumber(format)) {\n                index = format;\n                format = undefined;\n            }\n\n            format = format || '';\n        }\n\n        var locale = getLocale(),\n            shift = localeSorted ? locale._week.dow : 0,\n            i,\n            out = [];\n\n        if (index != null) {\n            return get$1(format, (index + shift) % 7, field, 'day');\n        }\n\n        for (i = 0; i < 7; i++) {\n            out[i] = get$1(format, (i + shift) % 7, field, 'day');\n        }\n        return out;\n    }\n\n    function listMonths(format, index) {\n        return listMonthsImpl(format, index, 'months');\n    }\n\n    function listMonthsShort(format, index) {\n        return listMonthsImpl(format, index, 'monthsShort');\n    }\n\n    function listWeekdays(localeSorted, format, index) {\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n    }\n\n    function listWeekdaysShort(localeSorted, format, index) {\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n    }\n\n    function listWeekdaysMin(localeSorted, format, index) {\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n    }\n\n    getSetGlobalLocale('en', {\n        eras: [\n            {\n                since: '0001-01-01',\n                until: +Infinity,\n                offset: 1,\n                name: 'Anno Domini',\n                narrow: 'AD',\n                abbr: 'AD',\n            },\n            {\n                since: '0000-12-31',\n                until: -Infinity,\n                offset: 1,\n                name: 'Before Christ',\n                narrow: 'BC',\n                abbr: 'BC',\n            },\n        ],\n        dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    toInt((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n    });\n\n    // Side effect imports\n\n    hooks.lang = deprecate(\n        'moment.lang is deprecated. Use moment.locale instead.',\n        getSetGlobalLocale\n    );\n    hooks.langData = deprecate(\n        'moment.langData is deprecated. Use moment.localeData instead.',\n        getLocale\n    );\n\n    var mathAbs = Math.abs;\n\n    function abs() {\n        var data = this._data;\n\n        this._milliseconds = mathAbs(this._milliseconds);\n        this._days = mathAbs(this._days);\n        this._months = mathAbs(this._months);\n\n        data.milliseconds = mathAbs(data.milliseconds);\n        data.seconds = mathAbs(data.seconds);\n        data.minutes = mathAbs(data.minutes);\n        data.hours = mathAbs(data.hours);\n        data.months = mathAbs(data.months);\n        data.years = mathAbs(data.years);\n\n        return this;\n    }\n\n    function addSubtract$1(duration, input, value, direction) {\n        var other = createDuration(input, value);\n\n        duration._milliseconds += direction * other._milliseconds;\n        duration._days += direction * other._days;\n        duration._months += direction * other._months;\n\n        return duration._bubble();\n    }\n\n    // supports only 2.0-style add(1, 's') or add(duration)\n    function add$1(input, value) {\n        return addSubtract$1(this, input, value, 1);\n    }\n\n    // supports only 2.0-style subtract(1, 's') or subtract(duration)\n    function subtract$1(input, value) {\n        return addSubtract$1(this, input, value, -1);\n    }\n\n    function absCeil(number) {\n        if (number < 0) {\n            return Math.floor(number);\n        } else {\n            return Math.ceil(number);\n        }\n    }\n\n    function bubble() {\n        var milliseconds = this._milliseconds,\n            days = this._days,\n            months = this._months,\n            data = this._data,\n            seconds,\n            minutes,\n            hours,\n            years,\n            monthsFromDays;\n\n        // if we have a mix of positive and negative values, bubble down first\n        // check: https://github.com/moment/moment/issues/2166\n        if (\n            !(\n                (milliseconds >= 0 && days >= 0 && months >= 0) ||\n                (milliseconds <= 0 && days <= 0 && months <= 0)\n            )\n        ) {\n            milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n            days = 0;\n            months = 0;\n        }\n\n        // The following code bubbles up values, see the tests for\n        // examples of what that means.\n        data.milliseconds = milliseconds % 1000;\n\n        seconds = absFloor(milliseconds / 1000);\n        data.seconds = seconds % 60;\n\n        minutes = absFloor(seconds / 60);\n        data.minutes = minutes % 60;\n\n        hours = absFloor(minutes / 60);\n        data.hours = hours % 24;\n\n        days += absFloor(hours / 24);\n\n        // convert days to months\n        monthsFromDays = absFloor(daysToMonths(days));\n        months += monthsFromDays;\n        days -= absCeil(monthsToDays(monthsFromDays));\n\n        // 12 months -> 1 year\n        years = absFloor(months / 12);\n        months %= 12;\n\n        data.days = days;\n        data.months = months;\n        data.years = years;\n\n        return this;\n    }\n\n    function daysToMonths(days) {\n        // 400 years have 146097 days (taking into account leap year rules)\n        // 400 years have 12 months === 4800\n        return (days * 4800) / 146097;\n    }\n\n    function monthsToDays(months) {\n        // the reverse of daysToMonths\n        return (months * 146097) / 4800;\n    }\n\n    function as(units) {\n        if (!this.isValid()) {\n            return NaN;\n        }\n        var days,\n            months,\n            milliseconds = this._milliseconds;\n\n        units = normalizeUnits(units);\n\n        if (units === 'month' || units === 'quarter' || units === 'year') {\n            days = this._days + milliseconds / 864e5;\n            months = this._months + daysToMonths(days);\n            switch (units) {\n                case 'month':\n                    return months;\n                case 'quarter':\n                    return months / 3;\n                case 'year':\n                    return months / 12;\n            }\n        } else {\n            // handle milliseconds separately because of floating point math errors (issue #1867)\n            days = this._days + Math.round(monthsToDays(this._months));\n            switch (units) {\n                case 'week':\n                    return days / 7 + milliseconds / 6048e5;\n                case 'day':\n                    return days + milliseconds / 864e5;\n                case 'hour':\n                    return days * 24 + milliseconds / 36e5;\n                case 'minute':\n                    return days * 1440 + milliseconds / 6e4;\n                case 'second':\n                    return days * 86400 + milliseconds / 1000;\n                // Math.floor prevents floating point math errors here\n                case 'millisecond':\n                    return Math.floor(days * 864e5) + milliseconds;\n                default:\n                    throw new Error('Unknown unit ' + units);\n            }\n        }\n    }\n\n    // TODO: Use this.as('ms')?\n    function valueOf$1() {\n        if (!this.isValid()) {\n            return NaN;\n        }\n        return (\n            this._milliseconds +\n            this._days * 864e5 +\n            (this._months % 12) * 2592e6 +\n            toInt(this._months / 12) * 31536e6\n        );\n    }\n\n    function makeAs(alias) {\n        return function () {\n            return this.as(alias);\n        };\n    }\n\n    var asMilliseconds = makeAs('ms'),\n        asSeconds = makeAs('s'),\n        asMinutes = makeAs('m'),\n        asHours = makeAs('h'),\n        asDays = makeAs('d'),\n        asWeeks = makeAs('w'),\n        asMonths = makeAs('M'),\n        asQuarters = makeAs('Q'),\n        asYears = makeAs('y');\n\n    function clone$1() {\n        return createDuration(this);\n    }\n\n    function get$2(units) {\n        units = normalizeUnits(units);\n        return this.isValid() ? this[units + 's']() : NaN;\n    }\n\n    function makeGetter(name) {\n        return function () {\n            return this.isValid() ? this._data[name] : NaN;\n        };\n    }\n\n    var milliseconds = makeGetter('milliseconds'),\n        seconds = makeGetter('seconds'),\n        minutes = makeGetter('minutes'),\n        hours = makeGetter('hours'),\n        days = makeGetter('days'),\n        months = makeGetter('months'),\n        years = makeGetter('years');\n\n    function weeks() {\n        return absFloor(this.days() / 7);\n    }\n\n    var round = Math.round,\n        thresholds = {\n            ss: 44, // a few seconds to seconds\n            s: 45, // seconds to minute\n            m: 45, // minutes to hour\n            h: 22, // hours to day\n            d: 26, // days to month/week\n            w: null, // weeks to month\n            M: 11, // months to year\n        };\n\n    // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n    function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n        return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n    }\n\n    function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n        var duration = createDuration(posNegDuration).abs(),\n            seconds = round(duration.as('s')),\n            minutes = round(duration.as('m')),\n            hours = round(duration.as('h')),\n            days = round(duration.as('d')),\n            months = round(duration.as('M')),\n            weeks = round(duration.as('w')),\n            years = round(duration.as('y')),\n            a =\n                (seconds <= thresholds.ss && ['s', seconds]) ||\n                (seconds < thresholds.s && ['ss', seconds]) ||\n                (minutes <= 1 && ['m']) ||\n                (minutes < thresholds.m && ['mm', minutes]) ||\n                (hours <= 1 && ['h']) ||\n                (hours < thresholds.h && ['hh', hours]) ||\n                (days <= 1 && ['d']) ||\n                (days < thresholds.d && ['dd', days]);\n\n        if (thresholds.w != null) {\n            a =\n                a ||\n                (weeks <= 1 && ['w']) ||\n                (weeks < thresholds.w && ['ww', weeks]);\n        }\n        a = a ||\n            (months <= 1 && ['M']) ||\n            (months < thresholds.M && ['MM', months]) ||\n            (years <= 1 && ['y']) || ['yy', years];\n\n        a[2] = withoutSuffix;\n        a[3] = +posNegDuration > 0;\n        a[4] = locale;\n        return substituteTimeAgo.apply(null, a);\n    }\n\n    // This function allows you to set the rounding function for relative time strings\n    function getSetRelativeTimeRounding(roundingFunction) {\n        if (roundingFunction === undefined) {\n            return round;\n        }\n        if (typeof roundingFunction === 'function') {\n            round = roundingFunction;\n            return true;\n        }\n        return false;\n    }\n\n    // This function allows you to set a threshold for relative time strings\n    function getSetRelativeTimeThreshold(threshold, limit) {\n        if (thresholds[threshold] === undefined) {\n            return false;\n        }\n        if (limit === undefined) {\n            return thresholds[threshold];\n        }\n        thresholds[threshold] = limit;\n        if (threshold === 's') {\n            thresholds.ss = limit - 1;\n        }\n        return true;\n    }\n\n    function humanize(argWithSuffix, argThresholds) {\n        if (!this.isValid()) {\n            return this.localeData().invalidDate();\n        }\n\n        var withSuffix = false,\n            th = thresholds,\n            locale,\n            output;\n\n        if (typeof argWithSuffix === 'object') {\n            argThresholds = argWithSuffix;\n            argWithSuffix = false;\n        }\n        if (typeof argWithSuffix === 'boolean') {\n            withSuffix = argWithSuffix;\n        }\n        if (typeof argThresholds === 'object') {\n            th = Object.assign({}, thresholds, argThresholds);\n            if (argThresholds.s != null && argThresholds.ss == null) {\n                th.ss = argThresholds.s - 1;\n            }\n        }\n\n        locale = this.localeData();\n        output = relativeTime$1(this, !withSuffix, th, locale);\n\n        if (withSuffix) {\n            output = locale.pastFuture(+this, output);\n        }\n\n        return locale.postformat(output);\n    }\n\n    var abs$1 = Math.abs;\n\n    function sign(x) {\n        return (x > 0) - (x < 0) || +x;\n    }\n\n    function toISOString$1() {\n        // for ISO strings we do not use the normal bubbling rules:\n        //  * milliseconds bubble up until they become hours\n        //  * days do not bubble at all\n        //  * months bubble up until they become years\n        // This is because there is no context-free conversion between hours and days\n        // (think of clock changes)\n        // and also not between days and months (28-31 days per month)\n        if (!this.isValid()) {\n            return this.localeData().invalidDate();\n        }\n\n        var seconds = abs$1(this._milliseconds) / 1000,\n            days = abs$1(this._days),\n            months = abs$1(this._months),\n            minutes,\n            hours,\n            years,\n            s,\n            total = this.asSeconds(),\n            totalSign,\n            ymSign,\n            daysSign,\n            hmsSign;\n\n        if (!total) {\n            // this is the same as C#'s (Noda) and python (isodate)...\n            // but not other JS (goog.date)\n            return 'P0D';\n        }\n\n        // 3600 seconds -> 60 minutes -> 1 hour\n        minutes = absFloor(seconds / 60);\n        hours = absFloor(minutes / 60);\n        seconds %= 60;\n        minutes %= 60;\n\n        // 12 months -> 1 year\n        years = absFloor(months / 12);\n        months %= 12;\n\n        // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n        s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n        totalSign = total < 0 ? '-' : '';\n        ymSign = sign(this._months) !== sign(total) ? '-' : '';\n        daysSign = sign(this._days) !== sign(total) ? '-' : '';\n        hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n        return (\n            totalSign +\n            'P' +\n            (years ? ymSign + years + 'Y' : '') +\n            (months ? ymSign + months + 'M' : '') +\n            (days ? daysSign + days + 'D' : '') +\n            (hours || minutes || seconds ? 'T' : '') +\n            (hours ? hmsSign + hours + 'H' : '') +\n            (minutes ? hmsSign + minutes + 'M' : '') +\n            (seconds ? hmsSign + s + 'S' : '')\n        );\n    }\n\n    var proto$2 = Duration.prototype;\n\n    proto$2.isValid = isValid$1;\n    proto$2.abs = abs;\n    proto$2.add = add$1;\n    proto$2.subtract = subtract$1;\n    proto$2.as = as;\n    proto$2.asMilliseconds = asMilliseconds;\n    proto$2.asSeconds = asSeconds;\n    proto$2.asMinutes = asMinutes;\n    proto$2.asHours = asHours;\n    proto$2.asDays = asDays;\n    proto$2.asWeeks = asWeeks;\n    proto$2.asMonths = asMonths;\n    proto$2.asQuarters = asQuarters;\n    proto$2.asYears = asYears;\n    proto$2.valueOf = valueOf$1;\n    proto$2._bubble = bubble;\n    proto$2.clone = clone$1;\n    proto$2.get = get$2;\n    proto$2.milliseconds = milliseconds;\n    proto$2.seconds = seconds;\n    proto$2.minutes = minutes;\n    proto$2.hours = hours;\n    proto$2.days = days;\n    proto$2.weeks = weeks;\n    proto$2.months = months;\n    proto$2.years = years;\n    proto$2.humanize = humanize;\n    proto$2.toISOString = toISOString$1;\n    proto$2.toString = toISOString$1;\n    proto$2.toJSON = toISOString$1;\n    proto$2.locale = locale;\n    proto$2.localeData = localeData;\n\n    proto$2.toIsoString = deprecate(\n        'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n        toISOString$1\n    );\n    proto$2.lang = lang;\n\n    // FORMATTING\n\n    addFormatToken('X', 0, 0, 'unix');\n    addFormatToken('x', 0, 0, 'valueOf');\n\n    // PARSING\n\n    addRegexToken('x', matchSigned);\n    addRegexToken('X', matchTimestamp);\n    addParseToken('X', function (input, array, config) {\n        config._d = new Date(parseFloat(input) * 1000);\n    });\n    addParseToken('x', function (input, array, config) {\n        config._d = new Date(toInt(input));\n    });\n\n    //! moment.js\n\n    hooks.version = '2.29.1';\n\n    setHookCallback(createLocal);\n\n    hooks.fn = proto;\n    hooks.min = min;\n    hooks.max = max;\n    hooks.now = now;\n    hooks.utc = createUTC;\n    hooks.unix = createUnix;\n    hooks.months = listMonths;\n    hooks.isDate = isDate;\n    hooks.locale = getSetGlobalLocale;\n    hooks.invalid = createInvalid;\n    hooks.duration = createDuration;\n    hooks.isMoment = isMoment;\n    hooks.weekdays = listWeekdays;\n    hooks.parseZone = createInZone;\n    hooks.localeData = getLocale;\n    hooks.isDuration = isDuration;\n    hooks.monthsShort = listMonthsShort;\n    hooks.weekdaysMin = listWeekdaysMin;\n    hooks.defineLocale = defineLocale;\n    hooks.updateLocale = updateLocale;\n    hooks.locales = listLocales;\n    hooks.weekdaysShort = listWeekdaysShort;\n    hooks.normalizeUnits = normalizeUnits;\n    hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n    hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n    hooks.calendarFormat = getCalendarFormat;\n    hooks.prototype = proto;\n\n    // currently HTML5 input type only supports 24-hour formats\n    hooks.HTML5_FMT = {\n        DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type=\"datetime-local\" />\n        DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type=\"datetime-local\" step=\"1\" />\n        DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type=\"datetime-local\" step=\"0.001\" />\n        DATE: 'YYYY-MM-DD', // <input type=\"date\" />\n        TIME: 'HH:mm', // <input type=\"time\" />\n        TIME_SECONDS: 'HH:mm:ss', // <input type=\"time\" step=\"1\" />\n        TIME_MS: 'HH:mm:ss.SSS', // <input type=\"time\" step=\"0.001\" />\n        WEEK: 'GGGG-[W]WW', // <input type=\"week\" />\n        MONTH: 'YYYY-MM', // <input type=\"month\" />\n    };\n\n    return hooks;\n\n})));\n }","if (typeof FastBoot === 'undefined') { //! moment-timezone.js\n//! version : 0.5.33\n//! Copyright (c) JS Foundation and other contributors\n//! license : MIT\n//! github.com/moment/moment-timezone\n\n(function (root, factory) {\n\t\"use strict\";\n\n\t/*global define*/\n\tif (typeof module === 'object' && module.exports) {\n\t\tmodule.exports = factory(require('moment')); // Node\n\t} else if (typeof define === 'function' && define.amd) {\n\t\tdefine(['moment'], factory);                 // AMD\n\t} else {\n\t\tfactory(root.moment);                        // Browser\n\t}\n}(this, function (moment) {\n\t\"use strict\";\n\n\t// Resolves es6 module loading issue\n\tif (moment.version === undefined && moment.default) {\n\t\tmoment = moment.default;\n\t}\n\n\t// Do not load moment-timezone a second time.\n\t// if (moment.tz !== undefined) {\n\t// \tlogError('Moment Timezone ' + moment.tz.version + ' was already loaded ' + (moment.tz.dataVersion ? 'with data from ' : 'without any data') + moment.tz.dataVersion);\n\t// \treturn moment;\n\t// }\n\n\tvar VERSION = \"0.5.33\",\n\t\tzones = {},\n\t\tlinks = {},\n\t\tcountries = {},\n\t\tnames = {},\n\t\tguesses = {},\n\t\tcachedGuess;\n\n\tif (!moment || typeof moment.version !== 'string') {\n\t\tlogError('Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/');\n\t}\n\n\tvar momentVersion = moment.version.split('.'),\n\t\tmajor = +momentVersion[0],\n\t\tminor = +momentVersion[1];\n\n\t// Moment.js version check\n\tif (major < 2 || (major === 2 && minor < 6)) {\n\t\tlogError('Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js ' + moment.version + '. See momentjs.com');\n\t}\n\n\t/************************************\n\t\tUnpacking\n\t************************************/\n\n\tfunction charCodeToInt(charCode) {\n\t\tif (charCode > 96) {\n\t\t\treturn charCode - 87;\n\t\t} else if (charCode > 64) {\n\t\t\treturn charCode - 29;\n\t\t}\n\t\treturn charCode - 48;\n\t}\n\n\tfunction unpackBase60(string) {\n\t\tvar i = 0,\n\t\t\tparts = string.split('.'),\n\t\t\twhole = parts[0],\n\t\t\tfractional = parts[1] || '',\n\t\t\tmultiplier = 1,\n\t\t\tnum,\n\t\t\tout = 0,\n\t\t\tsign = 1;\n\n\t\t// handle negative numbers\n\t\tif (string.charCodeAt(0) === 45) {\n\t\t\ti = 1;\n\t\t\tsign = -1;\n\t\t}\n\n\t\t// handle digits before the decimal\n\t\tfor (i; i < whole.length; i++) {\n\t\t\tnum = charCodeToInt(whole.charCodeAt(i));\n\t\t\tout = 60 * out + num;\n\t\t}\n\n\t\t// handle digits after the decimal\n\t\tfor (i = 0; i < fractional.length; i++) {\n\t\t\tmultiplier = multiplier / 60;\n\t\t\tnum = charCodeToInt(fractional.charCodeAt(i));\n\t\t\tout += num * multiplier;\n\t\t}\n\n\t\treturn out * sign;\n\t}\n\n\tfunction arrayToInt (array) {\n\t\tfor (var i = 0; i < array.length; i++) {\n\t\t\tarray[i] = unpackBase60(array[i]);\n\t\t}\n\t}\n\n\tfunction intToUntil (array, length) {\n\t\tfor (var i = 0; i < length; i++) {\n\t\t\tarray[i] = Math.round((array[i - 1] || 0) + (array[i] * 60000)); // minutes to milliseconds\n\t\t}\n\n\t\tarray[length - 1] = Infinity;\n\t}\n\n\tfunction mapIndices (source, indices) {\n\t\tvar out = [], i;\n\n\t\tfor (i = 0; i < indices.length; i++) {\n\t\t\tout[i] = source[indices[i]];\n\t\t}\n\n\t\treturn out;\n\t}\n\n\tfunction unpack (string) {\n\t\tvar data = string.split('|'),\n\t\t\toffsets = data[2].split(' '),\n\t\t\tindices = data[3].split(''),\n\t\t\tuntils  = data[4].split(' ');\n\n\t\tarrayToInt(offsets);\n\t\tarrayToInt(indices);\n\t\tarrayToInt(untils);\n\n\t\tintToUntil(untils, indices.length);\n\n\t\treturn {\n\t\t\tname       : data[0],\n\t\t\tabbrs      : mapIndices(data[1].split(' '), indices),\n\t\t\toffsets    : mapIndices(offsets, indices),\n\t\t\tuntils     : untils,\n\t\t\tpopulation : data[5] | 0\n\t\t};\n\t}\n\n\t/************************************\n\t\tZone object\n\t************************************/\n\n\tfunction Zone (packedString) {\n\t\tif (packedString) {\n\t\t\tthis._set(unpack(packedString));\n\t\t}\n\t}\n\n\tZone.prototype = {\n\t\t_set : function (unpacked) {\n\t\t\tthis.name       = unpacked.name;\n\t\t\tthis.abbrs      = unpacked.abbrs;\n\t\t\tthis.untils     = unpacked.untils;\n\t\t\tthis.offsets    = unpacked.offsets;\n\t\t\tthis.population = unpacked.population;\n\t\t},\n\n\t\t_index : function (timestamp) {\n\t\t\tvar target = +timestamp,\n\t\t\t\tuntils = this.untils,\n\t\t\t\ti;\n\n\t\t\tfor (i = 0; i < untils.length; i++) {\n\t\t\t\tif (target < untils[i]) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tcountries : function () {\n\t\t\tvar zone_name = this.name;\n\t\t\treturn Object.keys(countries).filter(function (country_code) {\n\t\t\t\treturn countries[country_code].zones.indexOf(zone_name) !== -1;\n\t\t\t});\n\t\t},\n\n\t\tparse : function (timestamp) {\n\t\t\tvar target  = +timestamp,\n\t\t\t\toffsets = this.offsets,\n\t\t\t\tuntils  = this.untils,\n\t\t\t\tmax     = untils.length - 1,\n\t\t\t\toffset, offsetNext, offsetPrev, i;\n\n\t\t\tfor (i = 0; i < max; i++) {\n\t\t\t\toffset     = offsets[i];\n\t\t\t\toffsetNext = offsets[i + 1];\n\t\t\t\toffsetPrev = offsets[i ? i - 1 : i];\n\n\t\t\t\tif (offset < offsetNext && tz.moveAmbiguousForward) {\n\t\t\t\t\toffset = offsetNext;\n\t\t\t\t} else if (offset > offsetPrev && tz.moveInvalidForward) {\n\t\t\t\t\toffset = offsetPrev;\n\t\t\t\t}\n\n\t\t\t\tif (target < untils[i] - (offset * 60000)) {\n\t\t\t\t\treturn offsets[i];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn offsets[max];\n\t\t},\n\n\t\tabbr : function (mom) {\n\t\t\treturn this.abbrs[this._index(mom)];\n\t\t},\n\n\t\toffset : function (mom) {\n\t\t\tlogError(\"zone.offset has been deprecated in favor of zone.utcOffset\");\n\t\t\treturn this.offsets[this._index(mom)];\n\t\t},\n\n\t\tutcOffset : function (mom) {\n\t\t\treturn this.offsets[this._index(mom)];\n\t\t}\n\t};\n\n\t/************************************\n\t\tCountry object\n\t************************************/\n\n\tfunction Country (country_name, zone_names) {\n\t\tthis.name = country_name;\n\t\tthis.zones = zone_names;\n\t}\n\n\t/************************************\n\t\tCurrent Timezone\n\t************************************/\n\n\tfunction OffsetAt(at) {\n\t\tvar timeString = at.toTimeString();\n\t\tvar abbr = timeString.match(/\\([a-z ]+\\)/i);\n\t\tif (abbr && abbr[0]) {\n\t\t\t// 17:56:31 GMT-0600 (CST)\n\t\t\t// 17:56:31 GMT-0600 (Central Standard Time)\n\t\t\tabbr = abbr[0].match(/[A-Z]/g);\n\t\t\tabbr = abbr ? abbr.join('') : undefined;\n\t\t} else {\n\t\t\t// 17:56:31 CST\n\t\t\t// 17:56:31 GMT+0800 (台北標準時間)\n\t\t\tabbr = timeString.match(/[A-Z]{3,5}/g);\n\t\t\tabbr = abbr ? abbr[0] : undefined;\n\t\t}\n\n\t\tif (abbr === 'GMT') {\n\t\t\tabbr = undefined;\n\t\t}\n\n\t\tthis.at = +at;\n\t\tthis.abbr = abbr;\n\t\tthis.offset = at.getTimezoneOffset();\n\t}\n\n\tfunction ZoneScore(zone) {\n\t\tthis.zone = zone;\n\t\tthis.offsetScore = 0;\n\t\tthis.abbrScore = 0;\n\t}\n\n\tZoneScore.prototype.scoreOffsetAt = function (offsetAt) {\n\t\tthis.offsetScore += Math.abs(this.zone.utcOffset(offsetAt.at) - offsetAt.offset);\n\t\tif (this.zone.abbr(offsetAt.at).replace(/[^A-Z]/g, '') !== offsetAt.abbr) {\n\t\t\tthis.abbrScore++;\n\t\t}\n\t};\n\n\tfunction findChange(low, high) {\n\t\tvar mid, diff;\n\n\t\twhile ((diff = ((high.at - low.at) / 12e4 | 0) * 6e4)) {\n\t\t\tmid = new OffsetAt(new Date(low.at + diff));\n\t\t\tif (mid.offset === low.offset) {\n\t\t\t\tlow = mid;\n\t\t\t} else {\n\t\t\t\thigh = mid;\n\t\t\t}\n\t\t}\n\n\t\treturn low;\n\t}\n\n\tfunction userOffsets() {\n\t\tvar startYear = new Date().getFullYear() - 2,\n\t\t\tlast = new OffsetAt(new Date(startYear, 0, 1)),\n\t\t\toffsets = [last],\n\t\t\tchange, next, i;\n\n\t\tfor (i = 1; i < 48; i++) {\n\t\t\tnext = new OffsetAt(new Date(startYear, i, 1));\n\t\t\tif (next.offset !== last.offset) {\n\t\t\t\tchange = findChange(last, next);\n\t\t\t\toffsets.push(change);\n\t\t\t\toffsets.push(new OffsetAt(new Date(change.at + 6e4)));\n\t\t\t}\n\t\t\tlast = next;\n\t\t}\n\n\t\tfor (i = 0; i < 4; i++) {\n\t\t\toffsets.push(new OffsetAt(new Date(startYear + i, 0, 1)));\n\t\t\toffsets.push(new OffsetAt(new Date(startYear + i, 6, 1)));\n\t\t}\n\n\t\treturn offsets;\n\t}\n\n\tfunction sortZoneScores (a, b) {\n\t\tif (a.offsetScore !== b.offsetScore) {\n\t\t\treturn a.offsetScore - b.offsetScore;\n\t\t}\n\t\tif (a.abbrScore !== b.abbrScore) {\n\t\t\treturn a.abbrScore - b.abbrScore;\n\t\t}\n\t\tif (a.zone.population !== b.zone.population) {\n\t\t\treturn b.zone.population - a.zone.population;\n\t\t}\n\t\treturn b.zone.name.localeCompare(a.zone.name);\n\t}\n\n\tfunction addToGuesses (name, offsets) {\n\t\tvar i, offset;\n\t\tarrayToInt(offsets);\n\t\tfor (i = 0; i < offsets.length; i++) {\n\t\t\toffset = offsets[i];\n\t\t\tguesses[offset] = guesses[offset] || {};\n\t\t\tguesses[offset][name] = true;\n\t\t}\n\t}\n\n\tfunction guessesForUserOffsets (offsets) {\n\t\tvar offsetsLength = offsets.length,\n\t\t\tfilteredGuesses = {},\n\t\t\tout = [],\n\t\t\ti, j, guessesOffset;\n\n\t\tfor (i = 0; i < offsetsLength; i++) {\n\t\t\tguessesOffset = guesses[offsets[i].offset] || {};\n\t\t\tfor (j in guessesOffset) {\n\t\t\t\tif (guessesOffset.hasOwnProperty(j)) {\n\t\t\t\t\tfilteredGuesses[j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (i in filteredGuesses) {\n\t\t\tif (filteredGuesses.hasOwnProperty(i)) {\n\t\t\t\tout.push(names[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn out;\n\t}\n\n\tfunction rebuildGuess () {\n\n\t\t// use Intl API when available and returning valid time zone\n\t\ttry {\n\t\t\tvar intlName = Intl.DateTimeFormat().resolvedOptions().timeZone;\n\t\t\tif (intlName && intlName.length > 3) {\n\t\t\t\tvar name = names[normalizeName(intlName)];\n\t\t\t\tif (name) {\n\t\t\t\t\treturn name;\n\t\t\t\t}\n\t\t\t\tlogError(\"Moment Timezone found \" + intlName + \" from the Intl api, but did not have that data loaded.\");\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t// Intl unavailable, fall back to manual guessing.\n\t\t}\n\n\t\tvar offsets = userOffsets(),\n\t\t\toffsetsLength = offsets.length,\n\t\t\tguesses = guessesForUserOffsets(offsets),\n\t\t\tzoneScores = [],\n\t\t\tzoneScore, i, j;\n\n\t\tfor (i = 0; i < guesses.length; i++) {\n\t\t\tzoneScore = new ZoneScore(getZone(guesses[i]), offsetsLength);\n\t\t\tfor (j = 0; j < offsetsLength; j++) {\n\t\t\t\tzoneScore.scoreOffsetAt(offsets[j]);\n\t\t\t}\n\t\t\tzoneScores.push(zoneScore);\n\t\t}\n\n\t\tzoneScores.sort(sortZoneScores);\n\n\t\treturn zoneScores.length > 0 ? zoneScores[0].zone.name : undefined;\n\t}\n\n\tfunction guess (ignoreCache) {\n\t\tif (!cachedGuess || ignoreCache) {\n\t\t\tcachedGuess = rebuildGuess();\n\t\t}\n\t\treturn cachedGuess;\n\t}\n\n\t/************************************\n\t\tGlobal Methods\n\t************************************/\n\n\tfunction normalizeName (name) {\n\t\treturn (name || '').toLowerCase().replace(/\\//g, '_');\n\t}\n\n\tfunction addZone (packed) {\n\t\tvar i, name, split, normalized;\n\n\t\tif (typeof packed === \"string\") {\n\t\t\tpacked = [packed];\n\t\t}\n\n\t\tfor (i = 0; i < packed.length; i++) {\n\t\t\tsplit = packed[i].split('|');\n\t\t\tname = split[0];\n\t\t\tnormalized = normalizeName(name);\n\t\t\tzones[normalized] = packed[i];\n\t\t\tnames[normalized] = name;\n\t\t\taddToGuesses(normalized, split[2].split(' '));\n\t\t}\n\t}\n\n\tfunction getZone (name, caller) {\n\n\t\tname = normalizeName(name);\n\n\t\tvar zone = zones[name];\n\t\tvar link;\n\n\t\tif (zone instanceof Zone) {\n\t\t\treturn zone;\n\t\t}\n\n\t\tif (typeof zone === 'string') {\n\t\t\tzone = new Zone(zone);\n\t\t\tzones[name] = zone;\n\t\t\treturn zone;\n\t\t}\n\n\t\t// Pass getZone to prevent recursion more than 1 level deep\n\t\tif (links[name] && caller !== getZone && (link = getZone(links[name], getZone))) {\n\t\t\tzone = zones[name] = new Zone();\n\t\t\tzone._set(link);\n\t\t\tzone.name = names[name];\n\t\t\treturn zone;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tfunction getNames () {\n\t\tvar i, out = [];\n\n\t\tfor (i in names) {\n\t\t\tif (names.hasOwnProperty(i) && (zones[i] || zones[links[i]]) && names[i]) {\n\t\t\t\tout.push(names[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn out.sort();\n\t}\n\n\tfunction getCountryNames () {\n\t\treturn Object.keys(countries);\n\t}\n\n\tfunction addLink (aliases) {\n\t\tvar i, alias, normal0, normal1;\n\n\t\tif (typeof aliases === \"string\") {\n\t\t\taliases = [aliases];\n\t\t}\n\n\t\tfor (i = 0; i < aliases.length; i++) {\n\t\t\talias = aliases[i].split('|');\n\n\t\t\tnormal0 = normalizeName(alias[0]);\n\t\t\tnormal1 = normalizeName(alias[1]);\n\n\t\t\tlinks[normal0] = normal1;\n\t\t\tnames[normal0] = alias[0];\n\n\t\t\tlinks[normal1] = normal0;\n\t\t\tnames[normal1] = alias[1];\n\t\t}\n\t}\n\n\tfunction addCountries (data) {\n\t\tvar i, country_code, country_zones, split;\n\t\tif (!data || !data.length) return;\n\t\tfor (i = 0; i < data.length; i++) {\n\t\t\tsplit = data[i].split('|');\n\t\t\tcountry_code = split[0].toUpperCase();\n\t\t\tcountry_zones = split[1].split(' ');\n\t\t\tcountries[country_code] = new Country(\n\t\t\t\tcountry_code,\n\t\t\t\tcountry_zones\n\t\t\t);\n\t\t}\n\t}\n\n\tfunction getCountry (name) {\n\t\tname = name.toUpperCase();\n\t\treturn countries[name] || null;\n\t}\n\n\tfunction zonesForCountry(country, with_offset) {\n\t\tcountry = getCountry(country);\n\n\t\tif (!country) return null;\n\n\t\tvar zones = country.zones.sort();\n\n\t\tif (with_offset) {\n\t\t\treturn zones.map(function (zone_name) {\n\t\t\t\tvar zone = getZone(zone_name);\n\t\t\t\treturn {\n\t\t\t\t\tname: zone_name,\n\t\t\t\t\toffset: zone.utcOffset(new Date())\n\t\t\t\t};\n\t\t\t});\n\t\t}\n\n\t\treturn zones;\n\t}\n\n\tfunction loadData (data) {\n\t\taddZone(data.zones);\n\t\taddLink(data.links);\n\t\taddCountries(data.countries);\n\t\ttz.dataVersion = data.version;\n\t}\n\n\tfunction zoneExists (name) {\n\t\tif (!zoneExists.didShowError) {\n\t\t\tzoneExists.didShowError = true;\n\t\t\t\tlogError(\"moment.tz.zoneExists('\" + name + \"') has been deprecated in favor of !moment.tz.zone('\" + name + \"')\");\n\t\t}\n\t\treturn !!getZone(name);\n\t}\n\n\tfunction needsOffset (m) {\n\t\tvar isUnixTimestamp = (m._f === 'X' || m._f === 'x');\n\t\treturn !!(m._a && (m._tzm === undefined) && !isUnixTimestamp);\n\t}\n\n\tfunction logError (message) {\n\t\tif (typeof console !== 'undefined' && typeof console.error === 'function') {\n\t\t\tconsole.error(message);\n\t\t}\n\t}\n\n\t/************************************\n\t\tmoment.tz namespace\n\t************************************/\n\n\tfunction tz (input) {\n\t\tvar args = Array.prototype.slice.call(arguments, 0, -1),\n\t\t\tname = arguments[arguments.length - 1],\n\t\t\tzone = getZone(name),\n\t\t\tout  = moment.utc.apply(null, args);\n\n\t\tif (zone && !moment.isMoment(input) && needsOffset(out)) {\n\t\t\tout.add(zone.parse(out), 'minutes');\n\t\t}\n\n\t\tout.tz(name);\n\n\t\treturn out;\n\t}\n\n\ttz.version      = VERSION;\n\ttz.dataVersion  = '';\n\ttz._zones       = zones;\n\ttz._links       = links;\n\ttz._names       = names;\n\ttz._countries\t= countries;\n\ttz.add          = addZone;\n\ttz.link         = addLink;\n\ttz.load         = loadData;\n\ttz.zone         = getZone;\n\ttz.zoneExists   = zoneExists; // deprecated in 0.1.0\n\ttz.guess        = guess;\n\ttz.names        = getNames;\n\ttz.Zone         = Zone;\n\ttz.unpack       = unpack;\n\ttz.unpackBase60 = unpackBase60;\n\ttz.needsOffset  = needsOffset;\n\ttz.moveInvalidForward   = true;\n\ttz.moveAmbiguousForward = false;\n\ttz.countries    = getCountryNames;\n\ttz.zonesForCountry = zonesForCountry;\n\n\t/************************************\n\t\tInterface with Moment.js\n\t************************************/\n\n\tvar fn = moment.fn;\n\n\tmoment.tz = tz;\n\n\tmoment.defaultZone = null;\n\n\tmoment.updateOffset = function (mom, keepTime) {\n\t\tvar zone = moment.defaultZone,\n\t\t\toffset;\n\n\t\tif (mom._z === undefined) {\n\t\t\tif (zone && needsOffset(mom) && !mom._isUTC) {\n\t\t\t\tmom._d = moment.utc(mom._a)._d;\n\t\t\t\tmom.utc().add(zone.parse(mom), 'minutes');\n\t\t\t}\n\t\t\tmom._z = zone;\n\t\t}\n\t\tif (mom._z) {\n\t\t\toffset = mom._z.utcOffset(mom);\n\t\t\tif (Math.abs(offset) < 16) {\n\t\t\t\toffset = offset / 60;\n\t\t\t}\n\t\t\tif (mom.utcOffset !== undefined) {\n\t\t\t\tvar z = mom._z;\n\t\t\t\tmom.utcOffset(-offset, keepTime);\n\t\t\t\tmom._z = z;\n\t\t\t} else {\n\t\t\t\tmom.zone(offset, keepTime);\n\t\t\t}\n\t\t}\n\t};\n\n\tfn.tz = function (name, keepTime) {\n\t\tif (name) {\n\t\t\tif (typeof name !== 'string') {\n\t\t\t\tthrow new Error('Time zone name must be a string, got ' + name + ' [' + typeof name + ']');\n\t\t\t}\n\t\t\tthis._z = getZone(name);\n\t\t\tif (this._z) {\n\t\t\t\tmoment.updateOffset(this, keepTime);\n\t\t\t} else {\n\t\t\t\tlogError(\"Moment Timezone has no data for \" + name + \". See http://momentjs.com/timezone/docs/#/data-loading/.\");\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif (this._z) { return this._z.name; }\n\t};\n\n\tfunction abbrWrap (old) {\n\t\treturn function () {\n\t\t\tif (this._z) { return this._z.abbr(this); }\n\t\t\treturn old.call(this);\n\t\t};\n\t}\n\n\tfunction resetZoneWrap (old) {\n\t\treturn function () {\n\t\t\tthis._z = null;\n\t\t\treturn old.apply(this, arguments);\n\t\t};\n\t}\n\n\tfunction resetZoneWrap2 (old) {\n\t\treturn function () {\n\t\t\tif (arguments.length > 0) this._z = null;\n\t\t\treturn old.apply(this, arguments);\n\t\t};\n\t}\n\n\tfn.zoneName  = abbrWrap(fn.zoneName);\n\tfn.zoneAbbr  = abbrWrap(fn.zoneAbbr);\n\tfn.utc       = resetZoneWrap(fn.utc);\n\tfn.local     = resetZoneWrap(fn.local);\n\tfn.utcOffset = resetZoneWrap2(fn.utcOffset);\n\n\tmoment.tz.setDefault = function(name) {\n\t\tif (major < 2 || (major === 2 && minor < 9)) {\n\t\t\tlogError('Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js ' + moment.version + '.');\n\t\t}\n\t\tmoment.defaultZone = name ? getZone(name) : null;\n\t\treturn moment;\n\t};\n\n\t// Cloning a moment should include the _z property.\n\tvar momentProperties = moment.momentProperties;\n\tif (Object.prototype.toString.call(momentProperties) === '[object Array]') {\n\t\t// moment 2.8.1+\n\t\tmomentProperties.push('_z');\n\t\tmomentProperties.push('_a');\n\t} else if (momentProperties) {\n\t\t// moment 2.7.0\n\t\tmomentProperties._z = null;\n\t}\n\n\tloadData({\n\t\t\"version\": \"2021a\",\n\t\t\"zones\": [\n\t\t\t\"Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5\",\n\t\t\t\"Africa/Accra|LMT GMT +0020 +0030|.Q 0 -k -u|01212121212121212121212121212121212121212121212131313131313131|-2bRzX.8 9RbX.8 fdE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE Mok 1BXE M0k 1BXE fak 9vbu bjCu MLu 1Bcu MLu 1BAu MLu 1Bcu MLu 1Bcu MLu 1Bcu MLu|41e5\",\n\t\t\t\"Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5\",\n\t\t\t\"Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5\",\n\t\t\t\"Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6\",\n\t\t\t\"Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4\",\n\t\t\t\"Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5\",\n\t\t\t\"Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6\",\n\t\t\t\"Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5\",\n\t\t\t\"Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3\",\n\t\t\t\"Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4\",\n\t\t\t\"Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5\",\n\t\t\t\"Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|\",\n\t\t\t\"Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5\",\n\t\t\t\"Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5\",\n\t\t\t\"Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5\",\n\t\t\t\"Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|\",\n\t\t\t\"Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5\",\n\t\t\t\"Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5\",\n\t\t\t\"Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4\",\n\t\t\t\"America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326\",\n\t\t\t\"America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4\",\n\t\t\t\"America/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3\",\n\t\t\t\"America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4\",\n\t\t\t\"America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|\",\n\t\t\t\"America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|\",\n\t\t\t\"America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|\",\n\t\t\t\"America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|\",\n\t\t\t\"America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|\",\n\t\t\t\"America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|\",\n\t\t\t\"America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|\",\n\t\t\t\"America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|\",\n\t\t\t\"America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|\",\n\t\t\t\"America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|\",\n\t\t\t\"America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|\",\n\t\t\t\"America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|\",\n\t\t\t\"America/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4\",\n\t\t\t\"America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5\",\n\t\t\t\"America/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2\",\n\t\t\t\"America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3\",\n\t\t\t\"America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5\",\n\t\t\t\"America/Barbados|LMT BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4\",\n\t\t\t\"America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5\",\n\t\t\t\"America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3\",\n\t\t\t\"America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2\",\n\t\t\t\"America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2\",\n\t\t\t\"America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5\",\n\t\t\t\"America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4\",\n\t\t\t\"America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2\",\n\t\t\t\"America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4\",\n\t\t\t\"America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4\",\n\t\t\t\"America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5\",\n\t\t\t\"America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3\",\n\t\t\t\"America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5\",\n\t\t\t\"America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5\",\n\t\t\t\"America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4\",\n\t\t\t\"America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5\",\n\t\t\t\"America/Creston|MST PST|70 80|010|-29DR0 43B0|53e2\",\n\t\t\t\"America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4\",\n\t\t\t\"America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8\",\n\t\t\t\"America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3\",\n\t\t\t\"America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2\",\n\t\t\t\"America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5\",\n\t\t\t\"America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5\",\n\t\t\t\"America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5\",\n\t\t\t\"America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3\",\n\t\t\t\"America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5\",\n\t\t\t\"America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5\",\n\t\t\t\"America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2\",\n\t\t\t\"America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5\",\n\t\t\t\"America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3\",\n\t\t\t\"America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3\",\n\t\t\t\"America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2\",\n\t\t\t\"America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2\",\n\t\t\t\"America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5\",\n\t\t\t\"America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5\",\n\t\t\t\"America/Guyana|LMT -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|80e4\",\n\t\t\t\"America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4\",\n\t\t\t\"America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5\",\n\t\t\t\"America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4\",\n\t\t\t\"America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2\",\n\t\t\t\"America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2\",\n\t\t\t\"America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4\",\n\t\t\t\"America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3\",\n\t\t\t\"America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5\",\n\t\t\t\"America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6\",\n\t\t\t\"America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6\",\n\t\t\t\"America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4\",\n\t\t\t\"America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5\",\n\t\t\t\"America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5\",\n\t\t\t\"America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4\",\n\t\t\t\"America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4\",\n\t\t\t\"America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4\",\n\t\t\t\"America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2\",\n\t\t\t\"America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5\",\n\t\t\t\"America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2\",\n\t\t\t\"America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6\",\n\t\t\t\"America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2\",\n\t\t\t\"America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3\",\n\t\t\t\"America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5\",\n\t\t\t\"America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5\",\n\t\t\t\"America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5\",\n\t\t\t\"America/Nassau|LMT EST EWT EPT EDT|59.u 50 40 40 40|01212314141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2kNuO.u 1drbO.u 6tX0 cp0 1hS0 pF0 J630 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|24e4\",\n\t\t\t\"America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6\",\n\t\t\t\"America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2\",\n\t\t\t\"America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2\",\n\t\t\t\"America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2\",\n\t\t\t\"America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3\",\n\t\t\t\"America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2\",\n\t\t\t\"America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4\",\n\t\t\t\"America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5\",\n\t\t\t\"America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5\",\n\t\t\t\"America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4\",\n\t\t\t\"America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4\",\n\t\t\t\"America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5\",\n\t\t\t\"America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|\",\n\t\t\t\"America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842\",\n\t\t\t\"America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2\",\n\t\t\t\"America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5\",\n\t\t\t\"America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4\",\n\t\t\t\"America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229\",\n\t\t\t\"America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4\",\n\t\t\t\"America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5\",\n\t\t\t\"America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5\",\n\t\t\t\"America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6\",\n\t\t\t\"America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452\",\n\t\t\t\"America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2\",\n\t\t\t\"America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1f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 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3\",\n\t\t\t\"America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5\",\n\t\t\t\"America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656\",\n\t\t\t\"America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4\",\n\t\t\t\"America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5\",\n\t\t\t\"America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3\",\n\t\t\t\"America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4\",\n\t\t\t\"America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642\",\n\t\t\t\"America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3\",\n\t\t\t\"Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10\",\n\t\t\t\"Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70\",\n\t\t\t\"Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80\",\n\t\t\t\"Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1\",\n\t\t\t\"Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60\",\n\t\t\t\"Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5\",\n\t\t\t\"Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40\",\n\t\t\t\"Antarctica/Rothera|-00 -03|0 30|01|gOo0|130\",\n\t\t\t\"Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20\",\n\t\t\t\"Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40\",\n\t\t\t\"Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25\",\n\t\t\t\"Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4\",\n\t\t\t\"Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5\",\n\t\t\t\"Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5\",\n\t\t\t\"Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|25e5\",\n\t\t\t\"Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3\",\n\t\t\t\"Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4\",\n\t\t\t\"Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4\",\n\t\t\t\"Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4\",\n\t\t\t\"Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|\",\n\t\t\t\"Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5\",\n\t\t\t\"Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4\",\n\t\t\t\"Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5\",\n\t\t\t\"Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6\",\n\t\t\t\"Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|\",\n\t\t\t\"Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5\",\n\t\t\t\"Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4\",\n\t\t\t\"Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4\",\n\t\t\t\"Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6\",\n\t\t\t\"Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4\",\n\t\t\t\"Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3\",\n\t\t\t\"Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6\",\n\t\t\t\"Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5\",\n\t\t\t\"Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6\",\n\t\t\t\"Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5\",\n\t\t\t\"Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4\",\n\t\t\t\"Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5\",\n\t\t\t\"Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4\",\n\t\t\t\"Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\",\n\t\t\t\"Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5\",\n\t\t\t\"Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4\",\n\t\t\t\"Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5\",\n\t\t\t\"Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5\",\n\t\t\t\"Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3\",\n\t\t\t\"Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4\",\n\t\t\t\"Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6\",\n\t\t\t\"Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6\",\n\t\t\t\"Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4\",\n\t\t\t\"Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4\",\n\t\t\t\"Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5\",\n\t\t\t\"Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4\",\n\t\t\t\"Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6\",\n\t\t\t\"Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5\",\n\t\t\t\"Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5\",\n\t\t\t\"Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2\",\n\t\t\t\"Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5\",\n\t\t\t\"Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5\",\n\t\t\t\"Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4\",\n\t\t\t\"Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4\",\n\t\t\t\"Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3\",\n\t\t\t\"Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5\",\n\t\t\t\"Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6\",\n\t\t\t\"Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4\",\n\t\t\t\"Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4\",\n\t\t\t\"Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5\",\n\t\t\t\"Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5\",\n\t\t\t\"Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4\",\n\t\t\t\"Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4\",\n\t\t\t\"Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5\",\n\t\t\t\"Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|\",\n\t\t\t\"Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4\",\n\t\t\t\"Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5\",\n\t\t\t\"Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4\",\n\t\t\t\"Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4\",\n\t\t\t\"Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6\",\n\t\t\t\"Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2\",\n\t\t\t\"Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5\",\n\t\t\t\"Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5\",\n\t\t\t\"Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5\",\n\t\t\t\"Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6\",\n\t\t\t\"Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3\",\n\t\t\t\"Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6\",\n\t\t\t\"Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5\",\n\t\t\t\"Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5\",\n\t\t\t\"Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2\",\n\t\t\t\"Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4\",\n\t\t\t\"Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4\",\n\t\t\t\"Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5\",\n\t\t\t\"Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5\",\n\t\t\t\"Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4\",\n\t\t\t\"Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3\",\n\t\t\t\"Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4\",\n\t\t\t\"Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4\",\n\t\t\t\"Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3\",\n\t\t\t\"Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4\",\n\t\t\t\"Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4\",\n\t\t\t\"Atlantic/South_Georgia|-02|20|0||30\",\n\t\t\t\"Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2\",\n\t\t\t\"Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5\",\n\t\t\t\"Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5\",\n\t\t\t\"Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5\",\n\t\t\t\"Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3\",\n\t\t\t\"Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4\",\n\t\t\t\"Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4\",\n\t\t\t\"Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368\",\n\t\t\t\"Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347\",\n\t\t\t\"Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10\",\n\t\t\t\"Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5\",\n\t\t\t\"Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5\",\n\t\t\t\"CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\",\n\t\t\t\"Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2\",\n\t\t\t\"CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\",\n\t\t\t\"Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\n\t\t\t\"EST|EST|50|0||\",\n\t\t\t\"EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"Etc/GMT-0|GMT|0|0||\",\n\t\t\t\"Etc/GMT-1|+01|-10|0||\",\n\t\t\t\"Pacific/Port_Moresby|+10|-a0|0||25e4\",\n\t\t\t\"Etc/GMT-11|+11|-b0|0||\",\n\t\t\t\"Pacific/Tarawa|+12|-c0|0||29e3\",\n\t\t\t\"Etc/GMT-13|+13|-d0|0||\",\n\t\t\t\"Etc/GMT-14|+14|-e0|0||\",\n\t\t\t\"Etc/GMT-2|+02|-20|0||\",\n\t\t\t\"Etc/GMT-3|+03|-30|0||\",\n\t\t\t\"Etc/GMT-4|+04|-40|0||\",\n\t\t\t\"Etc/GMT-5|+05|-50|0||\",\n\t\t\t\"Etc/GMT-6|+06|-60|0||\",\n\t\t\t\"Indian/Christmas|+07|-70|0||21e2\",\n\t\t\t\"Etc/GMT-8|+08|-80|0||\",\n\t\t\t\"Pacific/Palau|+09|-90|0||21e3\",\n\t\t\t\"Etc/GMT+1|-01|10|0||\",\n\t\t\t\"Etc/GMT+10|-10|a0|0||\",\n\t\t\t\"Etc/GMT+11|-11|b0|0||\",\n\t\t\t\"Etc/GMT+12|-12|c0|0||\",\n\t\t\t\"Etc/GMT+3|-03|30|0||\",\n\t\t\t\"Etc/GMT+4|-04|40|0||\",\n\t\t\t\"Etc/GMT+5|-05|50|0||\",\n\t\t\t\"Etc/GMT+6|-06|60|0||\",\n\t\t\t\"Etc/GMT+7|-07|70|0||\",\n\t\t\t\"Etc/GMT+8|-08|80|0||\",\n\t\t\t\"Etc/GMT+9|-09|90|0||\",\n\t\t\t\"Etc/UTC|UTC|0|0||\",\n\t\t\t\"Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5\",\n\t\t\t\"Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3\",\n\t\t\t\"Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5\",\n\t\t\t\"Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5\",\n\t\t\t\"Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6\",\n\t\t\t\"Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\n\t\t\t\"Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5\",\n\t\t\t\"Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5\",\n\t\t\t\"Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5\",\n\t\t\t\"Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5\",\n\t\t\t\"Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5\",\n\t\t\t\"Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4\",\n\t\t\t\"Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4\",\n\t\t\t\"Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\n\t\t\t\"Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3\",\n\t\t\t\"Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\n\t\t\t\"Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4\",\n\t\t\t\"Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5\",\n\t\t\t\"Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4\",\n\t\t\t\"Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5\",\n\t\t\t\"Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4\",\n\t\t\t\"Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5\",\n\t\t\t\"Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4\",\n\t\t\t\"Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5\",\n\t\t\t\"Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3\",\n\t\t\t\"Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6\",\n\t\t\t\"Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6\",\n\t\t\t\"Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4\",\n\t\t\t\"Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5\",\n\t\t\t\"Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5\",\n\t\t\t\"Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|\",\n\t\t\t\"Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4\",\n\t\t\t\"Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\n\t\t\t\"Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5\",\n\t\t\t\"Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4\",\n\t\t\t\"Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4\",\n\t\t\t\"Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5\",\n\t\t\t\"Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4\",\n\t\t\t\"Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5\",\n\t\t\t\"Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4\",\n\t\t\t\"Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5\",\n\t\t\t\"Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5\",\n\t\t\t\"Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4\",\n\t\t\t\"HST|HST|a0|0||\",\n\t\t\t\"Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2\",\n\t\t\t\"Indian/Cocos|+0630|-6u|0||596\",\n\t\t\t\"Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130\",\n\t\t\t\"Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3\",\n\t\t\t\"Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4\",\n\t\t\t\"Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4\",\n\t\t\t\"Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4\",\n\t\t\t\"Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3\",\n\t\t\t\"MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\",\n\t\t\t\"MST|MST|70|0||\",\n\t\t\t\"MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600\",\n\t\t\t\"Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545454545454545454545454545454545454|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3\",\n\t\t\t\"Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4\",\n\t\t\t\"Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3\",\n\t\t\t\"Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3\",\n\t\t\t\"Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1\",\n\t\t\t\"Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483\",\n\t\t\t\"Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4\",\n\t\t\t\"Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3\",\n\t\t\t\"Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125\",\n\t\t\t\"Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4\",\n\t\t\t\"Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4\",\n\t\t\t\"Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4\",\n\t\t\t\"Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2\",\n\t\t\t\"Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2\",\n\t\t\t\"Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3\",\n\t\t\t\"Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2\",\n\t\t\t\"Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2\",\n\t\t\t\"Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3\",\n\t\t\t\"Pacific/Niue|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|12e2\",\n\t\t\t\"Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4\",\n\t\t\t\"Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3\",\n\t\t\t\"Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56\",\n\t\t\t\"Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3\",\n\t\t\t\"Pacific/Rarotonga|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3\",\n\t\t\t\"Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4\",\n\t\t\t\"Pacific/Tongatapu|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3\",\n\t\t\t\"PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|\",\n\t\t\t\"WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|\"\n\t\t],\n\t\t\"links\": [\n\t\t\t\"Africa/Abidjan|Africa/Bamako\",\n\t\t\t\"Africa/Abidjan|Africa/Banjul\",\n\t\t\t\"Africa/Abidjan|Africa/Conakry\",\n\t\t\t\"Africa/Abidjan|Africa/Dakar\",\n\t\t\t\"Africa/Abidjan|Africa/Freetown\",\n\t\t\t\"Africa/Abidjan|Africa/Lome\",\n\t\t\t\"Africa/Abidjan|Africa/Nouakchott\",\n\t\t\t\"Africa/Abidjan|Africa/Ouagadougou\",\n\t\t\t\"Africa/Abidjan|Africa/Timbuktu\",\n\t\t\t\"Africa/Abidjan|Atlantic/St_Helena\",\n\t\t\t\"Africa/Cairo|Egypt\",\n\t\t\t\"Africa/Johannesburg|Africa/Maseru\",\n\t\t\t\"Africa/Johannesburg|Africa/Mbabane\",\n\t\t\t\"Africa/Lagos|Africa/Bangui\",\n\t\t\t\"Africa/Lagos|Africa/Brazzaville\",\n\t\t\t\"Africa/Lagos|Africa/Douala\",\n\t\t\t\"Africa/Lagos|Africa/Kinshasa\",\n\t\t\t\"Africa/Lagos|Africa/Libreville\",\n\t\t\t\"Africa/Lagos|Africa/Luanda\",\n\t\t\t\"Africa/Lagos|Africa/Malabo\",\n\t\t\t\"Africa/Lagos|Africa/Niamey\",\n\t\t\t\"Africa/Lagos|Africa/Porto-Novo\",\n\t\t\t\"Africa/Maputo|Africa/Blantyre\",\n\t\t\t\"Africa/Maputo|Africa/Bujumbura\",\n\t\t\t\"Africa/Maputo|Africa/Gaborone\",\n\t\t\t\"Africa/Maputo|Africa/Harare\",\n\t\t\t\"Africa/Maputo|Africa/Kigali\",\n\t\t\t\"Africa/Maputo|Africa/Lubumbashi\",\n\t\t\t\"Africa/Maputo|Africa/Lusaka\",\n\t\t\t\"Africa/Nairobi|Africa/Addis_Ababa\",\n\t\t\t\"Africa/Nairobi|Africa/Asmara\",\n\t\t\t\"Africa/Nairobi|Africa/Asmera\",\n\t\t\t\"Africa/Nairobi|Africa/Dar_es_Salaam\",\n\t\t\t\"Africa/Nairobi|Africa/Djibouti\",\n\t\t\t\"Africa/Nairobi|Africa/Kampala\",\n\t\t\t\"Africa/Nairobi|Africa/Mogadishu\",\n\t\t\t\"Africa/Nairobi|Indian/Antananarivo\",\n\t\t\t\"Africa/Nairobi|Indian/Comoro\",\n\t\t\t\"Africa/Nairobi|Indian/Mayotte\",\n\t\t\t\"Africa/Tripoli|Libya\",\n\t\t\t\"America/Adak|America/Atka\",\n\t\t\t\"America/Adak|US/Aleutian\",\n\t\t\t\"America/Anchorage|US/Alaska\",\n\t\t\t\"America/Argentina/Buenos_Aires|America/Buenos_Aires\",\n\t\t\t\"America/Argentina/Catamarca|America/Argentina/ComodRivadavia\",\n\t\t\t\"America/Argentina/Catamarca|America/Catamarca\",\n\t\t\t\"America/Argentina/Cordoba|America/Cordoba\",\n\t\t\t\"America/Argentina/Cordoba|America/Rosario\",\n\t\t\t\"America/Argentina/Jujuy|America/Jujuy\",\n\t\t\t\"America/Argentina/Mendoza|America/Mendoza\",\n\t\t\t\"America/Atikokan|America/Coral_Harbour\",\n\t\t\t\"America/Chicago|US/Central\",\n\t\t\t\"America/Curacao|America/Aruba\",\n\t\t\t\"America/Curacao|America/Kralendijk\",\n\t\t\t\"America/Curacao|America/Lower_Princes\",\n\t\t\t\"America/Denver|America/Shiprock\",\n\t\t\t\"America/Denver|Navajo\",\n\t\t\t\"America/Denver|US/Mountain\",\n\t\t\t\"America/Detroit|US/Michigan\",\n\t\t\t\"America/Edmonton|Canada/Mountain\",\n\t\t\t\"America/Fort_Wayne|America/Indiana/Indianapolis\",\n\t\t\t\"America/Fort_Wayne|America/Indianapolis\",\n\t\t\t\"America/Fort_Wayne|US/East-Indiana\",\n\t\t\t\"America/Godthab|America/Nuuk\",\n\t\t\t\"America/Halifax|Canada/Atlantic\",\n\t\t\t\"America/Havana|Cuba\",\n\t\t\t\"America/Indiana/Knox|America/Knox_IN\",\n\t\t\t\"America/Indiana/Knox|US/Indiana-Starke\",\n\t\t\t\"America/Jamaica|Jamaica\",\n\t\t\t\"America/Kentucky/Louisville|America/Louisville\",\n\t\t\t\"America/Los_Angeles|US/Pacific\",\n\t\t\t\"America/Manaus|Brazil/West\",\n\t\t\t\"America/Mazatlan|Mexico/BajaSur\",\n\t\t\t\"America/Mexico_City|Mexico/General\",\n\t\t\t\"America/New_York|US/Eastern\",\n\t\t\t\"America/Noronha|Brazil/DeNoronha\",\n\t\t\t\"America/Panama|America/Cayman\",\n\t\t\t\"America/Phoenix|US/Arizona\",\n\t\t\t\"America/Port_of_Spain|America/Anguilla\",\n\t\t\t\"America/Port_of_Spain|America/Antigua\",\n\t\t\t\"America/Port_of_Spain|America/Dominica\",\n\t\t\t\"America/Port_of_Spain|America/Grenada\",\n\t\t\t\"America/Port_of_Spain|America/Guadeloupe\",\n\t\t\t\"America/Port_of_Spain|America/Marigot\",\n\t\t\t\"America/Port_of_Spain|America/Montserrat\",\n\t\t\t\"America/Port_of_Spain|America/St_Barthelemy\",\n\t\t\t\"America/Port_of_Spain|America/St_Kitts\",\n\t\t\t\"America/Port_of_Spain|America/St_Lucia\",\n\t\t\t\"America/Port_of_Spain|America/St_Thomas\",\n\t\t\t\"America/Port_of_Spain|America/St_Vincent\",\n\t\t\t\"America/Port_of_Spain|America/Tortola\",\n\t\t\t\"America/Port_of_Spain|America/Virgin\",\n\t\t\t\"America/Regina|Canada/Saskatchewan\",\n\t\t\t\"America/Rio_Branco|America/Porto_Acre\",\n\t\t\t\"America/Rio_Branco|Brazil/Acre\",\n\t\t\t\"America/Santiago|Chile/Continental\",\n\t\t\t\"America/Sao_Paulo|Brazil/East\",\n\t\t\t\"America/St_Johns|Canada/Newfoundland\",\n\t\t\t\"America/Tijuana|America/Ensenada\",\n\t\t\t\"America/Tijuana|America/Santa_Isabel\",\n\t\t\t\"America/Tijuana|Mexico/BajaNorte\",\n\t\t\t\"America/Toronto|America/Montreal\",\n\t\t\t\"America/Toronto|Canada/Eastern\",\n\t\t\t\"America/Vancouver|Canada/Pacific\",\n\t\t\t\"America/Whitehorse|Canada/Yukon\",\n\t\t\t\"America/Winnipeg|Canada/Central\",\n\t\t\t\"Asia/Ashgabat|Asia/Ashkhabad\",\n\t\t\t\"Asia/Bangkok|Asia/Phnom_Penh\",\n\t\t\t\"Asia/Bangkok|Asia/Vientiane\",\n\t\t\t\"Asia/Dhaka|Asia/Dacca\",\n\t\t\t\"Asia/Dubai|Asia/Muscat\",\n\t\t\t\"Asia/Ho_Chi_Minh|Asia/Saigon\",\n\t\t\t\"Asia/Hong_Kong|Hongkong\",\n\t\t\t\"Asia/Jerusalem|Asia/Tel_Aviv\",\n\t\t\t\"Asia/Jerusalem|Israel\",\n\t\t\t\"Asia/Kathmandu|Asia/Katmandu\",\n\t\t\t\"Asia/Kolkata|Asia/Calcutta\",\n\t\t\t\"Asia/Kuala_Lumpur|Asia/Singapore\",\n\t\t\t\"Asia/Kuala_Lumpur|Singapore\",\n\t\t\t\"Asia/Macau|Asia/Macao\",\n\t\t\t\"Asia/Makassar|Asia/Ujung_Pandang\",\n\t\t\t\"Asia/Nicosia|Europe/Nicosia\",\n\t\t\t\"Asia/Qatar|Asia/Bahrain\",\n\t\t\t\"Asia/Rangoon|Asia/Yangon\",\n\t\t\t\"Asia/Riyadh|Asia/Aden\",\n\t\t\t\"Asia/Riyadh|Asia/Kuwait\",\n\t\t\t\"Asia/Seoul|ROK\",\n\t\t\t\"Asia/Shanghai|Asia/Chongqing\",\n\t\t\t\"Asia/Shanghai|Asia/Chungking\",\n\t\t\t\"Asia/Shanghai|Asia/Harbin\",\n\t\t\t\"Asia/Shanghai|PRC\",\n\t\t\t\"Asia/Taipei|ROC\",\n\t\t\t\"Asia/Tehran|Iran\",\n\t\t\t\"Asia/Thimphu|Asia/Thimbu\",\n\t\t\t\"Asia/Tokyo|Japan\",\n\t\t\t\"Asia/Ulaanbaatar|Asia/Ulan_Bator\",\n\t\t\t\"Asia/Urumqi|Asia/Kashgar\",\n\t\t\t\"Atlantic/Faroe|Atlantic/Faeroe\",\n\t\t\t\"Atlantic/Reykjavik|Iceland\",\n\t\t\t\"Atlantic/South_Georgia|Etc/GMT+2\",\n\t\t\t\"Australia/Adelaide|Australia/South\",\n\t\t\t\"Australia/Brisbane|Australia/Queensland\",\n\t\t\t\"Australia/Broken_Hill|Australia/Yancowinna\",\n\t\t\t\"Australia/Darwin|Australia/North\",\n\t\t\t\"Australia/Hobart|Australia/Currie\",\n\t\t\t\"Australia/Hobart|Australia/Tasmania\",\n\t\t\t\"Australia/Lord_Howe|Australia/LHI\",\n\t\t\t\"Australia/Melbourne|Australia/Victoria\",\n\t\t\t\"Australia/Perth|Australia/West\",\n\t\t\t\"Australia/Sydney|Australia/ACT\",\n\t\t\t\"Australia/Sydney|Australia/Canberra\",\n\t\t\t\"Australia/Sydney|Australia/NSW\",\n\t\t\t\"Etc/GMT-0|Etc/GMT\",\n\t\t\t\"Etc/GMT-0|Etc/GMT+0\",\n\t\t\t\"Etc/GMT-0|Etc/GMT0\",\n\t\t\t\"Etc/GMT-0|Etc/Greenwich\",\n\t\t\t\"Etc/GMT-0|GMT\",\n\t\t\t\"Etc/GMT-0|GMT+0\",\n\t\t\t\"Etc/GMT-0|GMT-0\",\n\t\t\t\"Etc/GMT-0|GMT0\",\n\t\t\t\"Etc/GMT-0|Greenwich\",\n\t\t\t\"Etc/UTC|Etc/UCT\",\n\t\t\t\"Etc/UTC|Etc/Universal\",\n\t\t\t\"Etc/UTC|Etc/Zulu\",\n\t\t\t\"Etc/UTC|UCT\",\n\t\t\t\"Etc/UTC|UTC\",\n\t\t\t\"Etc/UTC|Universal\",\n\t\t\t\"Etc/UTC|Zulu\",\n\t\t\t\"Europe/Belgrade|Europe/Ljubljana\",\n\t\t\t\"Europe/Belgrade|Europe/Podgorica\",\n\t\t\t\"Europe/Belgrade|Europe/Sarajevo\",\n\t\t\t\"Europe/Belgrade|Europe/Skopje\",\n\t\t\t\"Europe/Belgrade|Europe/Zagreb\",\n\t\t\t\"Europe/Chisinau|Europe/Tiraspol\",\n\t\t\t\"Europe/Dublin|Eire\",\n\t\t\t\"Europe/Helsinki|Europe/Mariehamn\",\n\t\t\t\"Europe/Istanbul|Asia/Istanbul\",\n\t\t\t\"Europe/Istanbul|Turkey\",\n\t\t\t\"Europe/Lisbon|Portugal\",\n\t\t\t\"Europe/London|Europe/Belfast\",\n\t\t\t\"Europe/London|Europe/Guernsey\",\n\t\t\t\"Europe/London|Europe/Isle_of_Man\",\n\t\t\t\"Europe/London|Europe/Jersey\",\n\t\t\t\"Europe/London|GB\",\n\t\t\t\"Europe/London|GB-Eire\",\n\t\t\t\"Europe/Moscow|W-SU\",\n\t\t\t\"Europe/Oslo|Arctic/Longyearbyen\",\n\t\t\t\"Europe/Oslo|Atlantic/Jan_Mayen\",\n\t\t\t\"Europe/Prague|Europe/Bratislava\",\n\t\t\t\"Europe/Rome|Europe/San_Marino\",\n\t\t\t\"Europe/Rome|Europe/Vatican\",\n\t\t\t\"Europe/Warsaw|Poland\",\n\t\t\t\"Europe/Zurich|Europe/Busingen\",\n\t\t\t\"Europe/Zurich|Europe/Vaduz\",\n\t\t\t\"Indian/Christmas|Etc/GMT-7\",\n\t\t\t\"Pacific/Auckland|Antarctica/McMurdo\",\n\t\t\t\"Pacific/Auckland|Antarctica/South_Pole\",\n\t\t\t\"Pacific/Auckland|NZ\",\n\t\t\t\"Pacific/Chatham|NZ-CHAT\",\n\t\t\t\"Pacific/Chuuk|Pacific/Truk\",\n\t\t\t\"Pacific/Chuuk|Pacific/Yap\",\n\t\t\t\"Pacific/Easter|Chile/EasterIsland\",\n\t\t\t\"Pacific/Guam|Pacific/Saipan\",\n\t\t\t\"Pacific/Honolulu|Pacific/Johnston\",\n\t\t\t\"Pacific/Honolulu|US/Hawaii\",\n\t\t\t\"Pacific/Kwajalein|Kwajalein\",\n\t\t\t\"Pacific/Pago_Pago|Pacific/Midway\",\n\t\t\t\"Pacific/Pago_Pago|Pacific/Samoa\",\n\t\t\t\"Pacific/Pago_Pago|US/Samoa\",\n\t\t\t\"Pacific/Palau|Etc/GMT-9\",\n\t\t\t\"Pacific/Pohnpei|Pacific/Ponape\",\n\t\t\t\"Pacific/Port_Moresby|Etc/GMT-10\",\n\t\t\t\"Pacific/Tarawa|Etc/GMT-12\",\n\t\t\t\"Pacific/Tarawa|Pacific/Funafuti\",\n\t\t\t\"Pacific/Tarawa|Pacific/Wake\",\n\t\t\t\"Pacific/Tarawa|Pacific/Wallis\"\n\t\t],\n\t\t\"countries\": [\n\t\t\t\"AD|Europe/Andorra\",\n\t\t\t\"AE|Asia/Dubai\",\n\t\t\t\"AF|Asia/Kabul\",\n\t\t\t\"AG|America/Port_of_Spain America/Antigua\",\n\t\t\t\"AI|America/Port_of_Spain America/Anguilla\",\n\t\t\t\"AL|Europe/Tirane\",\n\t\t\t\"AM|Asia/Yerevan\",\n\t\t\t\"AO|Africa/Lagos Africa/Luanda\",\n\t\t\t\"AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo\",\n\t\t\t\"AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia\",\n\t\t\t\"AS|Pacific/Pago_Pago\",\n\t\t\t\"AT|Europe/Vienna\",\n\t\t\t\"AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Currie Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla\",\n\t\t\t\"AW|America/Curacao America/Aruba\",\n\t\t\t\"AX|Europe/Helsinki Europe/Mariehamn\",\n\t\t\t\"AZ|Asia/Baku\",\n\t\t\t\"BA|Europe/Belgrade Europe/Sarajevo\",\n\t\t\t\"BB|America/Barbados\",\n\t\t\t\"BD|Asia/Dhaka\",\n\t\t\t\"BE|Europe/Brussels\",\n\t\t\t\"BF|Africa/Abidjan Africa/Ouagadougou\",\n\t\t\t\"BG|Europe/Sofia\",\n\t\t\t\"BH|Asia/Qatar Asia/Bahrain\",\n\t\t\t\"BI|Africa/Maputo Africa/Bujumbura\",\n\t\t\t\"BJ|Africa/Lagos Africa/Porto-Novo\",\n\t\t\t\"BL|America/Port_of_Spain America/St_Barthelemy\",\n\t\t\t\"BM|Atlantic/Bermuda\",\n\t\t\t\"BN|Asia/Brunei\",\n\t\t\t\"BO|America/La_Paz\",\n\t\t\t\"BQ|America/Curacao America/Kralendijk\",\n\t\t\t\"BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco\",\n\t\t\t\"BS|America/Nassau\",\n\t\t\t\"BT|Asia/Thimphu\",\n\t\t\t\"BW|Africa/Maputo Africa/Gaborone\",\n\t\t\t\"BY|Europe/Minsk\",\n\t\t\t\"BZ|America/Belize\",\n\t\t\t\"CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Vancouver America/Whitehorse America/Dawson\",\n\t\t\t\"CC|Indian/Cocos\",\n\t\t\t\"CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi\",\n\t\t\t\"CF|Africa/Lagos Africa/Bangui\",\n\t\t\t\"CG|Africa/Lagos Africa/Brazzaville\",\n\t\t\t\"CH|Europe/Zurich\",\n\t\t\t\"CI|Africa/Abidjan\",\n\t\t\t\"CK|Pacific/Rarotonga\",\n\t\t\t\"CL|America/Santiago America/Punta_Arenas Pacific/Easter\",\n\t\t\t\"CM|Africa/Lagos Africa/Douala\",\n\t\t\t\"CN|Asia/Shanghai Asia/Urumqi\",\n\t\t\t\"CO|America/Bogota\",\n\t\t\t\"CR|America/Costa_Rica\",\n\t\t\t\"CU|America/Havana\",\n\t\t\t\"CV|Atlantic/Cape_Verde\",\n\t\t\t\"CW|America/Curacao\",\n\t\t\t\"CX|Indian/Christmas\",\n\t\t\t\"CY|Asia/Nicosia Asia/Famagusta\",\n\t\t\t\"CZ|Europe/Prague\",\n\t\t\t\"DE|Europe/Zurich Europe/Berlin Europe/Busingen\",\n\t\t\t\"DJ|Africa/Nairobi Africa/Djibouti\",\n\t\t\t\"DK|Europe/Copenhagen\",\n\t\t\t\"DM|America/Port_of_Spain America/Dominica\",\n\t\t\t\"DO|America/Santo_Domingo\",\n\t\t\t\"DZ|Africa/Algiers\",\n\t\t\t\"EC|America/Guayaquil Pacific/Galapagos\",\n\t\t\t\"EE|Europe/Tallinn\",\n\t\t\t\"EG|Africa/Cairo\",\n\t\t\t\"EH|Africa/El_Aaiun\",\n\t\t\t\"ER|Africa/Nairobi Africa/Asmara\",\n\t\t\t\"ES|Europe/Madrid Africa/Ceuta Atlantic/Canary\",\n\t\t\t\"ET|Africa/Nairobi Africa/Addis_Ababa\",\n\t\t\t\"FI|Europe/Helsinki\",\n\t\t\t\"FJ|Pacific/Fiji\",\n\t\t\t\"FK|Atlantic/Stanley\",\n\t\t\t\"FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae\",\n\t\t\t\"FO|Atlantic/Faroe\",\n\t\t\t\"FR|Europe/Paris\",\n\t\t\t\"GA|Africa/Lagos Africa/Libreville\",\n\t\t\t\"GB|Europe/London\",\n\t\t\t\"GD|America/Port_of_Spain America/Grenada\",\n\t\t\t\"GE|Asia/Tbilisi\",\n\t\t\t\"GF|America/Cayenne\",\n\t\t\t\"GG|Europe/London Europe/Guernsey\",\n\t\t\t\"GH|Africa/Accra\",\n\t\t\t\"GI|Europe/Gibraltar\",\n\t\t\t\"GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule\",\n\t\t\t\"GM|Africa/Abidjan Africa/Banjul\",\n\t\t\t\"GN|Africa/Abidjan Africa/Conakry\",\n\t\t\t\"GP|America/Port_of_Spain America/Guadeloupe\",\n\t\t\t\"GQ|Africa/Lagos Africa/Malabo\",\n\t\t\t\"GR|Europe/Athens\",\n\t\t\t\"GS|Atlantic/South_Georgia\",\n\t\t\t\"GT|America/Guatemala\",\n\t\t\t\"GU|Pacific/Guam\",\n\t\t\t\"GW|Africa/Bissau\",\n\t\t\t\"GY|America/Guyana\",\n\t\t\t\"HK|Asia/Hong_Kong\",\n\t\t\t\"HN|America/Tegucigalpa\",\n\t\t\t\"HR|Europe/Belgrade Europe/Zagreb\",\n\t\t\t\"HT|America/Port-au-Prince\",\n\t\t\t\"HU|Europe/Budapest\",\n\t\t\t\"ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura\",\n\t\t\t\"IE|Europe/Dublin\",\n\t\t\t\"IL|Asia/Jerusalem\",\n\t\t\t\"IM|Europe/London Europe/Isle_of_Man\",\n\t\t\t\"IN|Asia/Kolkata\",\n\t\t\t\"IO|Indian/Chagos\",\n\t\t\t\"IQ|Asia/Baghdad\",\n\t\t\t\"IR|Asia/Tehran\",\n\t\t\t\"IS|Atlantic/Reykjavik\",\n\t\t\t\"IT|Europe/Rome\",\n\t\t\t\"JE|Europe/London Europe/Jersey\",\n\t\t\t\"JM|America/Jamaica\",\n\t\t\t\"JO|Asia/Amman\",\n\t\t\t\"JP|Asia/Tokyo\",\n\t\t\t\"KE|Africa/Nairobi\",\n\t\t\t\"KG|Asia/Bishkek\",\n\t\t\t\"KH|Asia/Bangkok Asia/Phnom_Penh\",\n\t\t\t\"KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati\",\n\t\t\t\"KM|Africa/Nairobi Indian/Comoro\",\n\t\t\t\"KN|America/Port_of_Spain America/St_Kitts\",\n\t\t\t\"KP|Asia/Pyongyang\",\n\t\t\t\"KR|Asia/Seoul\",\n\t\t\t\"KW|Asia/Riyadh Asia/Kuwait\",\n\t\t\t\"KY|America/Panama America/Cayman\",\n\t\t\t\"KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral\",\n\t\t\t\"LA|Asia/Bangkok Asia/Vientiane\",\n\t\t\t\"LB|Asia/Beirut\",\n\t\t\t\"LC|America/Port_of_Spain America/St_Lucia\",\n\t\t\t\"LI|Europe/Zurich Europe/Vaduz\",\n\t\t\t\"LK|Asia/Colombo\",\n\t\t\t\"LR|Africa/Monrovia\",\n\t\t\t\"LS|Africa/Johannesburg Africa/Maseru\",\n\t\t\t\"LT|Europe/Vilnius\",\n\t\t\t\"LU|Europe/Luxembourg\",\n\t\t\t\"LV|Europe/Riga\",\n\t\t\t\"LY|Africa/Tripoli\",\n\t\t\t\"MA|Africa/Casablanca\",\n\t\t\t\"MC|Europe/Monaco\",\n\t\t\t\"MD|Europe/Chisinau\",\n\t\t\t\"ME|Europe/Belgrade Europe/Podgorica\",\n\t\t\t\"MF|America/Port_of_Spain America/Marigot\",\n\t\t\t\"MG|Africa/Nairobi Indian/Antananarivo\",\n\t\t\t\"MH|Pacific/Majuro Pacific/Kwajalein\",\n\t\t\t\"MK|Europe/Belgrade Europe/Skopje\",\n\t\t\t\"ML|Africa/Abidjan Africa/Bamako\",\n\t\t\t\"MM|Asia/Yangon\",\n\t\t\t\"MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan\",\n\t\t\t\"MO|Asia/Macau\",\n\t\t\t\"MP|Pacific/Guam Pacific/Saipan\",\n\t\t\t\"MQ|America/Martinique\",\n\t\t\t\"MR|Africa/Abidjan Africa/Nouakchott\",\n\t\t\t\"MS|America/Port_of_Spain America/Montserrat\",\n\t\t\t\"MT|Europe/Malta\",\n\t\t\t\"MU|Indian/Mauritius\",\n\t\t\t\"MV|Indian/Maldives\",\n\t\t\t\"MW|Africa/Maputo Africa/Blantyre\",\n\t\t\t\"MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas\",\n\t\t\t\"MY|Asia/Kuala_Lumpur Asia/Kuching\",\n\t\t\t\"MZ|Africa/Maputo\",\n\t\t\t\"NA|Africa/Windhoek\",\n\t\t\t\"NC|Pacific/Noumea\",\n\t\t\t\"NE|Africa/Lagos Africa/Niamey\",\n\t\t\t\"NF|Pacific/Norfolk\",\n\t\t\t\"NG|Africa/Lagos\",\n\t\t\t\"NI|America/Managua\",\n\t\t\t\"NL|Europe/Amsterdam\",\n\t\t\t\"NO|Europe/Oslo\",\n\t\t\t\"NP|Asia/Kathmandu\",\n\t\t\t\"NR|Pacific/Nauru\",\n\t\t\t\"NU|Pacific/Niue\",\n\t\t\t\"NZ|Pacific/Auckland Pacific/Chatham\",\n\t\t\t\"OM|Asia/Dubai Asia/Muscat\",\n\t\t\t\"PA|America/Panama\",\n\t\t\t\"PE|America/Lima\",\n\t\t\t\"PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier\",\n\t\t\t\"PG|Pacific/Port_Moresby Pacific/Bougainville\",\n\t\t\t\"PH|Asia/Manila\",\n\t\t\t\"PK|Asia/Karachi\",\n\t\t\t\"PL|Europe/Warsaw\",\n\t\t\t\"PM|America/Miquelon\",\n\t\t\t\"PN|Pacific/Pitcairn\",\n\t\t\t\"PR|America/Puerto_Rico\",\n\t\t\t\"PS|Asia/Gaza Asia/Hebron\",\n\t\t\t\"PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores\",\n\t\t\t\"PW|Pacific/Palau\",\n\t\t\t\"PY|America/Asuncion\",\n\t\t\t\"QA|Asia/Qatar\",\n\t\t\t\"RE|Indian/Reunion\",\n\t\t\t\"RO|Europe/Bucharest\",\n\t\t\t\"RS|Europe/Belgrade\",\n\t\t\t\"RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Astrakhan Europe/Volgograd Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr\",\n\t\t\t\"RW|Africa/Maputo Africa/Kigali\",\n\t\t\t\"SA|Asia/Riyadh\",\n\t\t\t\"SB|Pacific/Guadalcanal\",\n\t\t\t\"SC|Indian/Mahe\",\n\t\t\t\"SD|Africa/Khartoum\",\n\t\t\t\"SE|Europe/Stockholm\",\n\t\t\t\"SG|Asia/Singapore\",\n\t\t\t\"SH|Africa/Abidjan Atlantic/St_Helena\",\n\t\t\t\"SI|Europe/Belgrade Europe/Ljubljana\",\n\t\t\t\"SJ|Europe/Oslo Arctic/Longyearbyen\",\n\t\t\t\"SK|Europe/Prague Europe/Bratislava\",\n\t\t\t\"SL|Africa/Abidjan Africa/Freetown\",\n\t\t\t\"SM|Europe/Rome Europe/San_Marino\",\n\t\t\t\"SN|Africa/Abidjan Africa/Dakar\",\n\t\t\t\"SO|Africa/Nairobi Africa/Mogadishu\",\n\t\t\t\"SR|America/Paramaribo\",\n\t\t\t\"SS|Africa/Juba\",\n\t\t\t\"ST|Africa/Sao_Tome\",\n\t\t\t\"SV|America/El_Salvador\",\n\t\t\t\"SX|America/Curacao America/Lower_Princes\",\n\t\t\t\"SY|Asia/Damascus\",\n\t\t\t\"SZ|Africa/Johannesburg Africa/Mbabane\",\n\t\t\t\"TC|America/Grand_Turk\",\n\t\t\t\"TD|Africa/Ndjamena\",\n\t\t\t\"TF|Indian/Reunion Indian/Kerguelen\",\n\t\t\t\"TG|Africa/Abidjan Africa/Lome\",\n\t\t\t\"TH|Asia/Bangkok\",\n\t\t\t\"TJ|Asia/Dushanbe\",\n\t\t\t\"TK|Pacific/Fakaofo\",\n\t\t\t\"TL|Asia/Dili\",\n\t\t\t\"TM|Asia/Ashgabat\",\n\t\t\t\"TN|Africa/Tunis\",\n\t\t\t\"TO|Pacific/Tongatapu\",\n\t\t\t\"TR|Europe/Istanbul\",\n\t\t\t\"TT|America/Port_of_Spain\",\n\t\t\t\"TV|Pacific/Funafuti\",\n\t\t\t\"TW|Asia/Taipei\",\n\t\t\t\"TZ|Africa/Nairobi Africa/Dar_es_Salaam\",\n\t\t\t\"UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye\",\n\t\t\t\"UG|Africa/Nairobi Africa/Kampala\",\n\t\t\t\"UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway\",\n\t\t\t\"US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu\",\n\t\t\t\"UY|America/Montevideo\",\n\t\t\t\"UZ|Asia/Samarkand Asia/Tashkent\",\n\t\t\t\"VA|Europe/Rome Europe/Vatican\",\n\t\t\t\"VC|America/Port_of_Spain America/St_Vincent\",\n\t\t\t\"VE|America/Caracas\",\n\t\t\t\"VG|America/Port_of_Spain America/Tortola\",\n\t\t\t\"VI|America/Port_of_Spain America/St_Thomas\",\n\t\t\t\"VN|Asia/Bangkok Asia/Ho_Chi_Minh\",\n\t\t\t\"VU|Pacific/Efate\",\n\t\t\t\"WF|Pacific/Wallis\",\n\t\t\t\"WS|Pacific/Apia\",\n\t\t\t\"YE|Asia/Riyadh Asia/Aden\",\n\t\t\t\"YT|Africa/Nairobi Indian/Mayotte\",\n\t\t\t\"ZA|Africa/Johannesburg\",\n\t\t\t\"ZM|Africa/Maputo Africa/Lusaka\",\n\t\t\t\"ZW|Africa/Maputo Africa/Harare\"\n\t\t]\n\t});\n\n\n\treturn moment;\n}));\n }","/*!\n * jQuery JavaScript Library v3.6.0\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2021-03-02T17:08Z\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 #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\n\tversion = \"3.6.0\",\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\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\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}\nvar Sizzle =\n/*!\n * Sizzle CSS Selector Engine v2.3.6\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://js.foundation/\n *\n * Date: 2021-02-16\n */\n( function( window ) {\nvar i,\n\tsupport,\n\tExpr,\n\tgetText,\n\tisXML,\n\ttokenize,\n\tcompile,\n\tselect,\n\toutermostContext,\n\tsortInput,\n\thasDuplicate,\n\n\t// Local document vars\n\tsetDocument,\n\tdocument,\n\tdocElem,\n\tdocumentIsHTML,\n\trbuggyQSA,\n\trbuggyMatches,\n\tmatches,\n\tcontains,\n\n\t// Instance-specific data\n\texpando = \"sizzle\" + 1 * new Date(),\n\tpreferredDoc = window.document,\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\t// Instance methods\n\thasOwn = ( {} ).hasOwnProperty,\n\tarr = [],\n\tpop = arr.pop,\n\tpushNative = arr.push,\n\tpush = arr.push,\n\tslice = arr.slice,\n\n\t// Use a stripped-down indexOf as it's faster than native\n\t// https://jsperf.com/thor-indexof-vs-for/5\n\tindexOf = function( list, elem ) {\n\t\tvar i = 0,\n\t\t\tlen = list.length;\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tif ( list[ i ] === elem ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t},\n\n\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|\" +\n\t\t\"ismap|loop|multiple|open|readonly|required|scoped\",\n\n\t// Regular expressions\n\n\t// http://www.w3.org/TR/css3-selectors/#whitespace\n\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\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: http://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]\n\t\t// 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\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" +\n\t\twhitespace + \"+$\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trcombinators = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace +\n\t\t\"*\" ),\n\trdescend = new RegExp( whitespace + \"|>\" ),\n\n\trpseudo = new RegExp( pseudos ),\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\tmatchExpr = {\n\t\t\"ID\": new RegExp( \"^#(\" + identifier + \")\" ),\n\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + identifier + \")\" ),\n\t\t\"TAG\": new RegExp( \"^(\" + identifier + \"|[*])\" ),\n\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" +\n\t\t\twhitespace + \"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" +\n\t\t\twhitespace + \"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\t\"bool\": 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\t\"needsContext\": 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\trhtml = /HTML$/i,\n\trinputs = /^(?:input|select|textarea|button)$/i,\n\trheader = /^h\\d$/i,\n\n\trnative = /^[^{]+\\{\\s*\\[native \\w/,\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// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\trunescape = new RegExp( \"\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace + \"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\", \"g\" ),\n\tfunescape = function( escape, nonHex ) {\n\t\tvar high = \"0x\" + escape.slice( 1 ) - 0x10000;\n\n\t\treturn nonHex ?\n\n\t\t\t// Strip the backslash prefix from a non-hex escape sequence\n\t\t\tnonHex :\n\n\t\t\t// Replace a hexadecimal escape sequence with the encoded Unicode code point\n\t\t\t// Support: IE <=11+\n\t\t\t// For values outside the Basic Multilingual Plane (BMP), manually construct a\n\t\t\t// surrogate pair\n\t\t\thigh < 0 ?\n\t\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t},\n\n\t// CSS string/identifier serialization\n\t// https://drafts.csswg.org/cssom/#common-serializing-idioms\n\trcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,\n\tfcssescape = function( ch, asCodePoint ) {\n\t\tif ( asCodePoint ) {\n\n\t\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\n\t\t\tif ( ch === \"\\0\" ) {\n\t\t\t\treturn \"\\uFFFD\";\n\t\t\t}\n\n\t\t\t// Control characters and (dependent upon position) numbers get escaped as code points\n\t\t\treturn ch.slice( 0, -1 ) + \"\\\\\" +\n\t\t\t\tch.charCodeAt( ch.length - 1 ).toString( 16 ) + \" \";\n\t\t}\n\n\t\t// Other potentially-special ASCII characters get backslash-escaped\n\t\treturn \"\\\\\" + ch;\n\t},\n\n\t// Used for iframes\n\t// See setDocument()\n\t// Removing the function wrapper causes a \"Permission Denied\"\n\t// error in IE\n\tunloadHandler = function() {\n\t\tsetDocument();\n\t},\n\n\tinDisabledFieldset = addCombinator(\n\t\tfunction( elem ) {\n\t\t\treturn elem.disabled === true && elem.nodeName.toLowerCase() === \"fieldset\";\n\t\t},\n\t\t{ dir: \"parentNode\", next: \"legend\" }\n\t);\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 = { apply: arr.length ?\n\n\t\t// Leverage slice if possible\n\t\tfunction( target, els ) {\n\t\t\tpushNative.apply( target, slice.call( els ) );\n\t\t} :\n\n\t\t// Support: IE<9\n\t\t// Otherwise append directly\n\t\tfunction( target, els ) {\n\t\t\tvar j = target.length,\n\t\t\t\ti = 0;\n\n\t\t\t// Can't trust NodeList.length\n\t\t\twhile ( ( target[ j++ ] = els[ i++ ] ) ) {}\n\t\t\ttarget.length = j - 1;\n\t\t}\n\t};\n}\n\nfunction Sizzle( 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, Opera, Webkit\n\t\t\t\t\t\t\t// TODO: identify versions\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\tresults.push( 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, Opera, Webkit\n\t\t\t\t\t\t// TODO: identify versions\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\tcontains( context, elem ) &&\n\t\t\t\t\t\t\telem.id === m ) {\n\n\t\t\t\t\t\t\tresults.push( 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 ] ) && support.getElementsByClassName &&\n\t\t\t\t\tcontext.getElementsByClassName ) {\n\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 ( support.qsa &&\n\t\t\t\t!nonnativeSelectorCache[ selector + \" \" ] &&\n\t\t\t\t( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&\n\n\t\t\t\t// Support: IE 8 only\n\t\t\t\t// Exclude object elements\n\t\t\t\t( nodeType !== 1 || context.nodeName.toLowerCase() !== \"object\" ) ) {\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 ) || rcombinators.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\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 = nid.replace( rcssescape, fcssescape );\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( rtrim, \"$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 (see Issue #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 Sizzle\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 * Adds the same handler for all of the specified attrs\n * @param {String} attrs Pipe-separated list of attributes\n * @param {Function} handler The method that will be applied\n */\nfunction addHandle( attrs, handler ) {\n\tvar arr = attrs.split( \"|\" ),\n\t\ti = arr.length;\n\n\twhile ( i-- ) {\n\t\tExpr.attrHandle[ arr[ i ] ] = handler;\n\t}\n}\n\n/**\n * Checks document order of two siblings\n * @param {Element} a\n * @param {Element} b\n * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n */\nfunction siblingCheck( a, b ) {\n\tvar cur = b && a,\n\t\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\n\t\t\ta.sourceIndex - b.sourceIndex;\n\n\t// Use IE sourceIndex if available on both nodes\n\tif ( diff ) {\n\t\treturn diff;\n\t}\n\n\t// Check if b follows a\n\tif ( cur ) {\n\t\twhile ( ( cur = cur.nextSibling ) ) {\n\t\t\tif ( cur === b ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn a ? 1 : -1;\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\tvar name = elem.nodeName.toLowerCase();\n\t\treturn name === \"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\tvar name = elem.nodeName.toLowerCase();\n\t\treturn ( name === \"input\" || name === \"button\" ) && elem.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\t/* jshint -W018 */\n\t\t\t\t\telem.isDisabled !== !disabled &&\n\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 Sizzle 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// Expose support vars for convenience\nsupport = Sizzle.support = {};\n\n/**\n * Detects XML nodes\n * @param {Element|Object} elem An element or a document\n * @returns {Boolean} True iff elem is a non-HTML XML node\n */\nisXML = Sizzle.isXML = function( elem ) {\n\tvar namespace = elem && elem.namespaceURI,\n\t\tdocElem = elem && ( elem.ownerDocument || elem ).documentElement;\n\n\t// Support: IE <=8\n\t// Assume HTML when documentElement doesn't yet exist, such as inside loading iframes\n\t// https://bugs.jquery.com/ticket/4833\n\treturn !rhtml.test( namespace || docElem && docElem.nodeName || \"HTML\" );\n};\n\n/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [doc] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */\nsetDocument = Sizzle.setDocument = function( node ) {\n\tvar hasCompare, 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\tdocElem = document.documentElement;\n\tdocumentIsHTML = !isXML( document );\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// Accessing iframe documents after unload throws \"permission denied\" errors (jQuery #13936)\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 ( preferredDoc != document &&\n\t\t( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {\n\n\t\t// Support: IE 11, Edge\n\t\tif ( subWindow.addEventListener ) {\n\t\t\tsubWindow.addEventListener( \"unload\", unloadHandler, false );\n\n\t\t// Support: IE 9 - 10 only\n\t\t} else if ( subWindow.attachEvent ) {\n\t\t\tsubWindow.attachEvent( \"onunload\", unloadHandler );\n\t\t}\n\t}\n\n\t// Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,\n\t// Safari 4 - 5 only, Opera <=11.6 - 12.x only\n\t// IE/Edge & older browsers don't support the :scope pseudo-class.\n\t// Support: Safari 6.0 only\n\t// Safari 6.0 supports :scope but it's an alias of :root there.\n\tsupport.scope = assert( function( el ) {\n\t\tdocElem.appendChild( el ).appendChild( document.createElement( \"div\" ) );\n\t\treturn typeof el.querySelectorAll !== \"undefined\" &&\n\t\t\t!el.querySelectorAll( \":scope fieldset div\" ).length;\n\t} );\n\n\t/* Attributes\n\t---------------------------------------------------------------------- */\n\n\t// Support: IE<8\n\t// Verify that getAttribute really returns attributes and not properties\n\t// (excepting IE8 booleans)\n\tsupport.attributes = assert( function( el ) {\n\t\tel.className = \"i\";\n\t\treturn !el.getAttribute( \"className\" );\n\t} );\n\n\t/* getElement(s)By*\n\t---------------------------------------------------------------------- */\n\n\t// Check if getElementsByTagName(\"*\") returns only elements\n\tsupport.getElementsByTagName = assert( function( el ) {\n\t\tel.appendChild( document.createComment( \"\" ) );\n\t\treturn !el.getElementsByTagName( \"*\" ).length;\n\t} );\n\n\t// Support: IE<9\n\tsupport.getElementsByClassName = rnative.test( document.getElementsByClassName );\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\tdocElem.appendChild( el ).id = expando;\n\t\treturn !document.getElementsByName || !document.getElementsByName( expando ).length;\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\" ] = support.getElementsByTagName ?\n\t\tfunction( tag, context ) {\n\t\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\treturn context.getElementsByTagName( tag );\n\n\t\t\t// DocumentFragment nodes don't have gEBTN\n\t\t\t} else if ( support.qsa ) {\n\t\t\t\treturn context.querySelectorAll( tag );\n\t\t\t}\n\t\t} :\n\n\t\tfunction( tag, context ) {\n\t\t\tvar elem,\n\t\t\t\ttmp = [],\n\t\t\t\ti = 0,\n\n\t\t\t\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\n\t\t\t\tresults = context.getElementsByTagName( tag );\n\n\t\t\t// Filter out possible comments\n\t\t\tif ( tag === \"*\" ) {\n\t\t\t\twhile ( ( elem = results[ i++ ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\ttmp.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t\treturn results;\n\t\t};\n\n\t// Class\n\tExpr.find[ \"CLASS\" ] = support.getElementsByClassName && 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\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\trbuggyMatches = [];\n\n\t// qSa(:focus) reports false when true (Chrome 21)\n\t// We allow this because of a bug in IE8/9 that throws an error\n\t// whenever `document.activeElement` is accessed on an iframe\n\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\n\t// See https://bugs.jquery.com/ticket/13378\n\trbuggyQSA = [];\n\n\tif ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) {\n\n\t\t// Build QSA regex\n\t\t// Regex strategy adopted from Diego Perini\n\t\tassert( function( el ) {\n\n\t\t\tvar input;\n\n\t\t\t// Select is set to empty string on purpose\n\t\t\t// This is to test IE's treatment of not explicitly\n\t\t\t// setting a boolean content attribute,\n\t\t\t// since its presence should be enough\n\t\t\t// https://bugs.jquery.com/ticket/12359\n\t\t\tdocElem.appendChild( el ).innerHTML = \"<a id='\" + expando + \"'></a>\" +\n\t\t\t\t\"<select id='\" + expando + \"-\\r\\\\' msallowcapture=''>\" +\n\t\t\t\t\"<option selected=''></option></select>\";\n\n\t\t\t// Support: IE8, Opera 11-12.16\n\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\n\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\n\t\t\t// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\n\t\t\tif ( el.querySelectorAll( \"[msallowcapture^='']\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Support: IE8\n\t\t\t// Boolean attributes and \"value\" are not treated correctly\n\t\t\tif ( !el.querySelectorAll( \"[selected]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\t\t\t}\n\n\t\t\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\n\t\t\tif ( !el.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"~=\" );\n\t\t\t}\n\n\t\t\t// Support: IE 11+, Edge 15 - 18+\n\t\t\t// IE 11/Edge don't find elements on a `[name='']` query in some cases.\n\t\t\t// Adding a temporary attribute to the document before the selection works\n\t\t\t// around the issue.\n\t\t\t// Interestingly, IE 10 & older don't seem to have the issue.\n\t\t\tinput = document.createElement( \"input\" );\n\t\t\tinput.setAttribute( \"name\", \"\" );\n\t\t\tel.appendChild( input );\n\t\t\tif ( !el.querySelectorAll( \"[name='']\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*name\" + whitespace + \"*=\" +\n\t\t\t\t\twhitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( !el.querySelectorAll( \":checked\" ).length ) {\n\t\t\t\trbuggyQSA.push( \":checked\" );\n\t\t\t}\n\n\t\t\t// Support: Safari 8+, iOS 8+\n\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t\t// In-page `selector#id sibling-combinator selector` fails\n\t\t\tif ( !el.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\n\t\t\t\trbuggyQSA.push( \".#.+[+~]\" );\n\t\t\t}\n\n\t\t\t// Support: Firefox <=3.6 - 5 only\n\t\t\t// Old Firefox doesn't throw on a badly-escaped identifier.\n\t\t\tel.querySelectorAll( \"\\\\\\f\" );\n\t\t\trbuggyQSA.push( \"[\\\\r\\\\n\\\\f]\" );\n\t\t} );\n\n\t\tassert( function( el ) {\n\t\t\tel.innerHTML = \"<a href='' disabled='disabled'></a>\" +\n\t\t\t\t\"<select disabled='disabled'><option/></select>\";\n\n\t\t\t// Support: Windows 8 Native Apps\n\t\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\t\tvar input = document.createElement( \"input\" );\n\t\t\tinput.setAttribute( \"type\", \"hidden\" );\n\t\t\tel.appendChild( input ).setAttribute( \"name\", \"D\" );\n\n\t\t\t// Support: IE8\n\t\t\t// Enforce case-sensitivity of name attribute\n\t\t\tif ( el.querySelectorAll( \"[name=d]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"name\" + whitespace + \"*[*^$|!~]?=\" );\n\t\t\t}\n\n\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( el.querySelectorAll( \":enabled\" ).length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: IE9-11+\n\t\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\n\t\t\tdocElem.appendChild( el ).disabled = true;\n\t\t\tif ( el.querySelectorAll( \":disabled\" ).length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: Opera 10 - 11 only\n\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\t\t\tel.querySelectorAll( \"*,:x\" );\n\t\t\trbuggyQSA.push( \",.*:\" );\n\t\t} );\n\t}\n\n\tif ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches ||\n\t\tdocElem.webkitMatchesSelector ||\n\t\tdocElem.mozMatchesSelector ||\n\t\tdocElem.oMatchesSelector ||\n\t\tdocElem.msMatchesSelector ) ) ) ) {\n\n\t\tassert( function( el ) {\n\n\t\t\t// Check to see if it's possible to do matchesSelector\n\t\t\t// on a disconnected node (IE 9)\n\t\t\tsupport.disconnectedMatch = matches.call( el, \"*\" );\n\n\t\t\t// This should fail with an exception\n\t\t\t// Gecko does not error, returns false instead\n\t\t\tmatches.call( el, \"[s!='']:x\" );\n\t\t\trbuggyMatches.push( \"!=\", pseudos );\n\t\t} );\n\t}\n\n\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( \"|\" ) );\n\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( \"|\" ) );\n\n\t/* Contains\n\t---------------------------------------------------------------------- */\n\thasCompare = rnative.test( docElem.compareDocumentPosition );\n\n\t// Element contains another\n\t// Purposefully self-exclusive\n\t// As in, an element does not contain itself\n\tcontains = hasCompare || rnative.test( docElem.contains ) ?\n\t\tfunction( a, b ) {\n\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\t\t\t\tbup = b && b.parentNode;\n\t\t\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\t\t\t\tadown.contains ?\n\t\t\t\t\tadown.contains( bup ) :\n\t\t\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\t\t\t) );\n\t\t} :\n\t\tfunction( a, b ) {\n\t\t\tif ( b ) {\n\t\t\t\twhile ( ( b = b.parentNode ) ) {\n\t\t\t\t\tif ( b === a ) {\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\treturn false;\n\t\t};\n\n\t/* Sorting\n\t---------------------------------------------------------------------- */\n\n\t// Document order sorting\n\tsortOrder = hasCompare ?\n\tfunction( 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\tcontains( 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\tcontains( 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( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\t\t}\n\n\t\treturn compare & 4 ? -1 : 1;\n\t} :\n\tfunction( a, b ) {\n\n\t\t// Exit early if the nodes are identical\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\taup = a.parentNode,\n\t\t\tbup = b.parentNode,\n\t\t\tap = [ a ],\n\t\t\tbp = [ b ];\n\n\t\t// Parentless nodes are either documents or disconnected\n\t\tif ( !aup || !bup ) {\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 eqeqeq */\n\t\t\treturn a == document ? -1 :\n\t\t\t\tb == document ? 1 :\n\t\t\t\t/* eslint-enable eqeqeq */\n\t\t\t\taup ? -1 :\n\t\t\t\tbup ? 1 :\n\t\t\t\tsortInput ?\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\n\t\t// If the nodes are siblings, we can do a quick check\n\t\t} else if ( aup === bup ) {\n\t\t\treturn siblingCheck( a, b );\n\t\t}\n\n\t\t// Otherwise we need full lists of their ancestors for comparison\n\t\tcur = a;\n\t\twhile ( ( cur = cur.parentNode ) ) {\n\t\t\tap.unshift( cur );\n\t\t}\n\t\tcur = b;\n\t\twhile ( ( cur = cur.parentNode ) ) {\n\t\t\tbp.unshift( cur );\n\t\t}\n\n\t\t// Walk down the tree looking for a discrepancy\n\t\twhile ( ap[ i ] === bp[ i ] ) {\n\t\t\ti++;\n\t\t}\n\n\t\treturn i ?\n\n\t\t\t// Do a sibling check if the nodes have a common ancestor\n\t\t\tsiblingCheck( ap[ i ], bp[ i ] ) :\n\n\t\t\t// Otherwise nodes in our document sort first\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 eqeqeq */\n\t\t\tap[ i ] == preferredDoc ? -1 :\n\t\t\tbp[ i ] == preferredDoc ? 1 :\n\t\t\t/* eslint-enable eqeqeq */\n\t\t\t0;\n\t};\n\n\treturn document;\n};\n\nSizzle.matches = function( expr, elements ) {\n\treturn Sizzle( expr, null, null, elements );\n};\n\nSizzle.matchesSelector = function( elem, expr ) {\n\tsetDocument( elem );\n\n\tif ( support.matchesSelector && documentIsHTML &&\n\t\t!nonnativeSelectorCache[ expr + \" \" ] &&\n\t\t( !rbuggyMatches || !rbuggyMatches.test( 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// As well, disconnected nodes are said to be in a document\n\t\t\t\t// fragment in IE 9\n\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 Sizzle( expr, document, null, [ elem ] ).length > 0;\n};\n\nSizzle.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 contains( context, elem );\n};\n\nSizzle.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 (jQuery #13807)\n\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\n\t\t\tfn( elem, name, !documentIsHTML ) :\n\t\t\tundefined;\n\n\treturn val !== undefined ?\n\t\tval :\n\t\tsupport.attributes || !documentIsHTML ?\n\t\t\telem.getAttribute( name ) :\n\t\t\t( val = elem.getAttributeNode( name ) ) && val.specified ?\n\t\t\t\tval.value :\n\t\t\t\tnull;\n};\n\nSizzle.escape = function( sel ) {\n\treturn ( sel + \"\" ).replace( rcssescape, fcssescape );\n};\n\nSizzle.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 */\nSizzle.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\thasDuplicate = !support.detectDuplicates;\n\tsortInput = !support.sortStable && results.slice( 0 );\n\tresults.sort( 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\tresults.splice( 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\n/**\n * Utility function for retrieving the text value of an array of DOM nodes\n * @param {Array|Element} elem\n */\ngetText = Sizzle.getText = function( elem ) {\n\tvar node,\n\t\tret = \"\",\n\t\ti = 0,\n\t\tnodeType = elem.nodeType;\n\n\tif ( !nodeType ) {\n\n\t\t// If no nodeType, this is expected to be an array\n\t\twhile ( ( node = elem[ i++ ] ) ) {\n\n\t\t\t// Do not traverse comment nodes\n\t\t\tret += getText( node );\n\t\t}\n\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\n\n\t\t// Use textContent for elements\n\t\t// innerText usage removed for consistency of new lines (jQuery #11153)\n\t\tif ( typeof elem.textContent === \"string\" ) {\n\t\t\treturn elem.textContent;\n\t\t} else {\n\n\t\t\t// Traverse its children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tret += getText( elem );\n\t\t\t}\n\t\t}\n\t} else if ( nodeType === 3 || nodeType === 4 ) {\n\t\treturn elem.nodeValue;\n\t}\n\n\t// Do not include comment or processing instruction nodes\n\n\treturn ret;\n};\n\nExpr = Sizzle.selectors = {\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\t\"ATTR\": 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 ] ||\n\t\t\t\tmatch[ 5 ] || \"\" ).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\t\"CHILD\": 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\tSizzle.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\tmatch[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === \"odd\" );\n\n\t\t\t\t// other types prohibit arguments\n\t\t\t} else if ( match[ 3 ] ) {\n\t\t\t\tSizzle.error( match[ 0 ] );\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\t\"PSEUDO\": 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\t\"TAG\": function( nodeNameSelector ) {\n\t\t\tvar nodeName = 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 elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\t\t\t\t};\n\t\t},\n\n\t\t\"CLASS\": function( className ) {\n\t\t\tvar pattern = classCache[ className + \" \" ];\n\n\t\t\treturn pattern ||\n\t\t\t\t( pattern = new RegExp( \"(^|\" + whitespace +\n\t\t\t\t\t\")\" + className + \"(\" + whitespace + \"|$)\" ) ) && classCache(\n\t\t\t\t\t\tclassName, function( elem ) {\n\t\t\t\t\t\t\treturn pattern.test(\n\t\t\t\t\t\t\t\ttypeof elem.className === \"string\" && elem.className ||\n\t\t\t\t\t\t\t\ttypeof elem.getAttribute !== \"undefined\" &&\n\t\t\t\t\t\t\t\t\telem.getAttribute( \"class\" ) ||\n\t\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t\t\t);\n\t\t\t\t} );\n\t\t},\n\n\t\t\"ATTR\": function( name, operator, check ) {\n\t\t\treturn function( elem ) {\n\t\t\t\tvar result = Sizzle.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\t/* eslint-disable max-len */\n\n\t\t\t\treturn operator === \"=\" ? result === check :\n\t\t\t\t\toperator === \"!=\" ? result !== check :\n\t\t\t\t\toperator === \"^=\" ? check && result.indexOf( check ) === 0 :\n\t\t\t\t\toperator === \"*=\" ? check && result.indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"$=\" ? check && result.slice( -check.length ) === check :\n\t\t\t\t\toperator === \"~=\" ? ( \" \" + result.replace( rwhitespace, \" \" ) + \" \" ).indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"|=\" ? result === check || result.slice( 0, check.length + 1 ) === check + \"-\" :\n\t\t\t\t\tfalse;\n\t\t\t\t/* eslint-enable max-len */\n\n\t\t\t};\n\t\t},\n\n\t\t\"CHILD\": 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, uniqueCache, 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\tnode.nodeName.toLowerCase() === 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\n\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\tnode = parent;\n\t\t\t\t\t\t\touterCache = node[ expando ] || ( node[ expando ] = {} );\n\n\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t( outerCache[ node.uniqueID ] = {} );\n\n\t\t\t\t\t\t\tcache = uniqueCache[ 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\tuniqueCache[ 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\n\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\touterCache = node[ expando ] || ( node[ expando ] = {} );\n\n\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t( outerCache[ node.uniqueID ] = {} );\n\n\t\t\t\t\t\t\t\tcache = uniqueCache[ 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\tnode.nodeName.toLowerCase() === 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\n\t\t\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t( outerCache[ node.uniqueID ] = {} );\n\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache[ 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\t\"PSEUDO\": function( pseudo, argument ) {\n\n\t\t\t// pseudo-class names are case-insensitive\n\t\t\t// http://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\tSizzle.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 Sizzle 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( 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\t\"not\": 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( rtrim, \"$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 (issue #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\t\"has\": markFunction( function( selector ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn Sizzle( selector, elem ).length > 0;\n\t\t\t};\n\t\t} ),\n\n\t\t\"contains\": markFunction( function( text ) {\n\t\t\ttext = text.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn ( elem.textContent || getText( 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// http://www.w3.org/TR/selectors/#lang-pseudo\n\t\t\"lang\": 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\tSizzle.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\t\"target\": 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\t\"root\": function( elem ) {\n\t\t\treturn elem === docElem;\n\t\t},\n\n\t\t\"focus\": function( elem ) {\n\t\t\treturn elem === document.activeElement &&\n\t\t\t\t( !document.hasFocus || document.hasFocus() ) &&\n\t\t\t\t!!( elem.type || elem.href || ~elem.tabIndex );\n\t\t},\n\n\t\t// Boolean properties\n\t\t\"enabled\": createDisabledPseudo( false ),\n\t\t\"disabled\": createDisabledPseudo( true ),\n\n\t\t\"checked\": function( elem ) {\n\n\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\t\t\treturn ( nodeName === \"input\" && !!elem.checked ) ||\n\t\t\t\t( nodeName === \"option\" && !!elem.selected );\n\t\t},\n\n\t\t\"selected\": function( elem ) {\n\n\t\t\t// Accessing this property makes selected-by-default\n\t\t\t// options in Safari work properly\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\t\"empty\": function( elem ) {\n\n\t\t\t// http://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\t\"parent\": function( elem ) {\n\t\t\treturn !Expr.pseudos[ \"empty\" ]( elem );\n\t\t},\n\n\t\t// Element/input types\n\t\t\"header\": function( elem ) {\n\t\t\treturn rheader.test( elem.nodeName );\n\t\t},\n\n\t\t\"input\": function( elem ) {\n\t\t\treturn rinputs.test( elem.nodeName );\n\t\t},\n\n\t\t\"button\": function( elem ) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\n\t\t},\n\n\t\t\"text\": function( elem ) {\n\t\t\tvar attr;\n\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\n\t\t\t\telem.type === \"text\" &&\n\n\t\t\t\t// Support: IE<8\n\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear 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\t\"first\": createPositionalPseudo( function() {\n\t\t\treturn [ 0 ];\n\t\t} ),\n\n\t\t\"last\": createPositionalPseudo( function( _matchIndexes, length ) {\n\t\t\treturn [ length - 1 ];\n\t\t} ),\n\n\t\t\"eq\": createPositionalPseudo( function( _matchIndexes, length, argument ) {\n\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\t\t} ),\n\n\t\t\"even\": 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\t\"odd\": 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\t\"lt\": createPositionalPseudo( function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ?\n\t\t\t\targument + length :\n\t\t\t\targument > length ?\n\t\t\t\t\tlength :\n\t\t\t\t\targument;\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\t\"gt\": 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\ntokenize = Sizzle.tokenize = function( 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 = rcombinators.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( rtrim, \" \" )\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\treturn parseOnly ?\n\t\tsoFar.length :\n\t\tsoFar ?\n\t\t\tSizzle.error( selector ) :\n\n\t\t\t// Cache the tokens\n\t\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, uniqueCache, 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\t// Support: IE <9 only\n\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\tuniqueCache = outerCache[ elem.uniqueID ] ||\n\t\t\t\t\t\t\t( outerCache[ elem.uniqueID ] = {} );\n\n\t\t\t\t\t\tif ( skip && skip === elem.nodeName.toLowerCase() ) {\n\t\t\t\t\t\t\telem = elem[ dir ] || elem;\n\t\t\t\t\t\t} else if ( ( oldCache = uniqueCache[ 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\tuniqueCache[ 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\tSizzle( 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,\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 || multipleContexts(\n\t\t\t\tselector || \"*\",\n\t\t\t\tcontext.nodeType ? [ context ] : context,\n\t\t\t\t[]\n\t\t\t),\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\t\tmatcherOut = matcher ?\n\n\t\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\n\t\t\t\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\n\t\t\t\t\t// ...intermediate processing is necessary\n\t\t\t\t\t[] :\n\n\t\t\t\t\t// ...otherwise use results directly\n\t\t\t\t\tresults :\n\t\t\t\tmatcherIn;\n\n\t\t// Find primary matches\n\t\tif ( matcher ) {\n\t\t\tmatcher( matcherIn, matcherOut, context, xml );\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( 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( checkContext, elem ) > -1;\n\t\t}, implicitRelative, true ),\n\t\tmatchers = [ function( elem, context, xml ) {\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 (issue #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// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\t\t\t\t\ttokens\n\t\t\t\t\t\t.slice( 0, i - 1 )\n\t\t\t\t\t\t.concat( { value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" } )\n\t\t\t\t\t).replace( rtrim, \"$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: IE<9, Safari\n\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: <number>) matching elements by id\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\tresults.push( 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\tSizzle.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\ncompile = Sizzle.compile = function( 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(\n\t\t\tselector,\n\t\t\tmatcherFromGroupMatchers( elementMatchers, setMatchers )\n\t\t);\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 Sizzle's compiled\n *  selector functions\n * @param {String|Function} selector A selector or a pre-compiled\n *  selector function built with Sizzle.compile\n * @param {Element} context\n * @param {Array} [results]\n * @param {Array} [seed] A set of elements to match against\n */\nselect = Sizzle.select = function( 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\tcontext.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {\n\n\t\t\tcontext = ( Expr.find[ \"ID\" ]( token.matches[ 0 ]\n\t\t\t\t.replace( runescape, funescape ), context ) || [] )[ 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 ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext\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// Sort stability\nsupport.sortStable = expando.split( \"\" ).sort( sortOrder ).join( \"\" ) === expando;\n\n// Support: Chrome 14-35+\n// Always assume duplicates if they aren't passed to the comparison function\nsupport.detectDuplicates = !!hasDuplicate;\n\n// Initialize against the default document\nsetDocument();\n\n// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\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\n// Support: IE<8\n// Prevent attribute/property \"interpolation\"\n// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\nif ( !assert( function( el ) {\n\tel.innerHTML = \"<a href='#'></a>\";\n\treturn el.firstChild.getAttribute( \"href\" ) === \"#\";\n} ) ) {\n\taddHandle( \"type|href|height|width\", function( elem, name, isXML ) {\n\t\tif ( !isXML ) {\n\t\t\treturn elem.getAttribute( name, name.toLowerCase() === \"type\" ? 1 : 2 );\n\t\t}\n\t} );\n}\n\n// Support: IE<9\n// Use defaultValue in place of getAttribute(\"value\")\nif ( !support.attributes || !assert( function( el ) {\n\tel.innerHTML = \"<input/>\";\n\tel.firstChild.setAttribute( \"value\", \"\" );\n\treturn el.firstChild.getAttribute( \"value\" ) === \"\";\n} ) ) {\n\taddHandle( \"value\", function( elem, _name, isXML ) {\n\t\tif ( !isXML && elem.nodeName.toLowerCase() === \"input\" ) {\n\t\t\treturn elem.defaultValue;\n\t\t}\n\t} );\n}\n\n// Support: IE<9\n// Use getAttributeNode to fetch booleans when getAttribute lies\nif ( !assert( function( el ) {\n\treturn el.getAttribute( \"disabled\" ) == null;\n} ) ) {\n\taddHandle( booleans, function( elem, name, isXML ) {\n\t\tvar val;\n\t\tif ( !isXML ) {\n\t\t\treturn elem[ name ] === true ? name.toLowerCase() :\n\t\t\t\t( val = elem.getAttributeNode( name ) ) && val.specified ?\n\t\t\t\t\tval.value :\n\t\t\t\t\tnull;\n\t\t}\n\t} );\n}\n\nreturn Sizzle;\n\n} )( window );\n\n\n\njQuery.find = Sizzle;\njQuery.expr = Sizzle.selectors;\n\n// Deprecated\njQuery.expr[ \":\" ] = jQuery.expr.pseudos;\njQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;\njQuery.text = Sizzle.getText;\njQuery.isXMLDoc = Sizzle.isXML;\njQuery.contains = Sizzle.contains;\njQuery.escapeSelector = Sizzle.escape;\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\n\n\nfunction nodeName( elem, name ) {\n\n\treturn elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\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 (#9521)\n\t// Strict HTML recognition (#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 Sizzle\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.stackTrace );\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 stack, 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.getStackHook ) {\n\t\t\t\t\t\t\t\t\tprocess.stackTrace = 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\njQuery.Deferred.exceptionHook = function( error, stack ) {\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, error.stack, stack );\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 #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 (#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 #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 (#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 (#11217)\n\t// Support: Windows Web Apps (WWA)\n\t// `name` and `type` must use .setAttribute for WWA (#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 (#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 (#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 (#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\n// Support: IE <=9 - 11+\n// focus() and blur() are asynchronous, except when they are no-op.\n// So expect focus to be synchronous when the element is already active,\n// and blur to be synchronous when the element is not already active.\n// (focus and blur are always synchronous in other supported browsers,\n// this just defines when we can count on it).\nfunction expectSync( elem, type ) {\n\treturn ( elem === safeActiveElement() ) === ( type === \"focus\" );\n}\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\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 (#13208)\n\t\t\t\t// Don't process clicks on disabled elements (#6911, #8165, #11382, #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 (#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\", returnTrue );\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, expectSync ) {\n\n\t// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add\n\tif ( !expectSync ) {\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 notAsync, 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\t// Saved data should be false in such cases, but might be a leftover capture object\n\t\t\t\t// from an async native handler (gh-4350)\n\t\t\t\tif ( !saved.length ) {\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\t// Support: IE <=9 - 11+\n\t\t\t\t\t// focus() and blur() are asynchronous\n\t\t\t\t\tnotAsync = expectSync( this, type );\n\t\t\t\t\tthis[ type ]();\n\t\t\t\t\tresult = dataPriv.get( this, type );\n\t\t\t\t\tif ( saved !== result || notAsync ) {\n\t\t\t\t\t\tdataPriv.set( this, type, false );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = {};\n\t\t\t\t\t}\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\t// Support: Chrome 86+\n\t\t\t\t\t\t// In Chrome, if an element having a focusout handler is blurred by\n\t\t\t\t\t\t// clicking outside of it, it invokes the handler synchronously. If\n\t\t\t\t\t\t// that handler calls `.remove()` on the element, the data is cleared,\n\t\t\t\t\t\t// leaving `result` undefined. We need to guard against this.\n\t\t\t\t\t\treturn result && result.value;\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 the\n\t\t\t\t// 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.length ) {\n\n\t\t\t\t// ...and capture the result\n\t\t\t\tdataPriv.set( this, type, {\n\t\t\t\t\tvalue: jQuery.event.trigger(\n\n\t\t\t\t\t\t// Support: IE <=9 - 11+\n\t\t\t\t\t\t// Extend with the prototype to reset the above stopImmediatePropagation()\n\t\t\t\t\t\tjQuery.extend( saved[ 0 ], jQuery.Event.prototype ),\n\t\t\t\t\t\tsaved.slice( 1 ),\n\t\t\t\t\t\tthis\n\t\t\t\t\t)\n\t\t\t\t} );\n\n\t\t\t\t// Abort handling of the native event\n\t\t\t\tevent.stopImmediatePropagation();\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 (#504, #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\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\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, expectSync );\n\n\t\t\t// Return false to allow normal processing in the caller\n\t\t\treturn false;\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\t// Suppress native focus or blur as it's already being fired\n\t\t// in leverageNative.\n\t\t_default: function() {\n\t\t\treturn true;\n\t\t},\n\n\t\tdelegateType: delegateType\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\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 (#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// Reenable 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\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 Sizzle here for performance reasons: 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 getStyles = function( elem ) {\n\n\t\t// Support: IE <=11 only, Firefox <=30 (#15098, #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 (#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 = \"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\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, #12537)\n\t//   .css('--customProperty) (#3144)\n\tif ( computed ) {\n\t\tret = computed.getPropertyValue( name ) || computed[ name ];\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\trcustomProp = /^--/,\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\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\tif ( box === \"margin\" ) {\n\t\t\tdelta += 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;\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\t\"animationIterationCount\": true,\n\t\t\"columnCount\": true,\n\t\t\"fillOpacity\": true,\n\t\t\"flexGrow\": true,\n\t\t\"flexShrink\": true,\n\t\t\"fontWeight\": true,\n\t\t\"gridArea\": true,\n\t\t\"gridColumn\": true,\n\t\t\"gridColumnEnd\": true,\n\t\t\"gridColumnStart\": true,\n\t\t\"gridRow\": true,\n\t\t\"gridRowEnd\": true,\n\t\t\"gridRowStart\": true,\n\t\t\"lineHeight\": true,\n\t\t\"opacity\": true,\n\t\t\"order\": true,\n\t\t\"orphans\": true,\n\t\t\"widows\": true,\n\t\t\"zIndex\": true,\n\t\t\"zoom\": 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 (#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 #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 (#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 )` (#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.\n// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/\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// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\n\t\t\t\t// Use proper attribute retrieval(#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 classes, elem, cur, curValue, clazz, j, finalValue,\n\t\t\ti = 0;\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\tclasses = classesToArray( value );\n\n\t\tif ( classes.length ) {\n\t\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\t\tcurValue = getClass( elem );\n\t\t\t\tcur = elem.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\n\t\t\t\t\t\tif ( cur.indexOf( \" \" + clazz + \" \" ) < 0 ) {\n\t\t\t\t\t\t\tcur += clazz + \" \";\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\telem.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 classes, elem, cur, curValue, clazz, j, finalValue,\n\t\t\ti = 0;\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\tclasses = classesToArray( value );\n\n\t\tif ( classes.length ) {\n\t\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\t\tcurValue = getClass( elem );\n\n\t\t\t\t// This expression is here for better compressibility (see addClass)\n\t\t\t\tcur = elem.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\n\n\t\t\t\t\t\t// Remove *all* instances\n\t\t\t\t\t\twhile ( cur.indexOf( \" \" + clazz + \" \" ) > -1 ) {\n\t\t\t\t\t\t\tcur = cur.replace( \" \" + clazz + \" \", \" \" );\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\telem.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 type = typeof value,\n\t\t\tisValidValue = type === \"string\" || Array.isArray( value );\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\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\treturn this.each( function() {\n\t\t\tvar className, i, self, classNames;\n\n\t\t\tif ( isValidValue ) {\n\n\t\t\t\t// Toggle individual class names\n\t\t\t\ti = 0;\n\t\t\t\tself = jQuery( this );\n\t\t\t\tclassNames = classesToArray( value );\n\n\t\t\t\twhile ( ( className = 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 (#14686, #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 (#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\n\n\nsupport.focusin = \"onfocusin\" in window;\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 (#9951)\n\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (#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 (#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\n// Support: Firefox <=44\n// Firefox doesn't have focus(in | out) events\n// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787\n//\n// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1\n// focus(in | out) events fire after focus & blur events,\n// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order\n// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857\nif ( !support.focusin ) {\n\tjQuery.each( { focus: \"focusin\", blur: \"focusout\" }, function( orig, fix ) {\n\n\t\t// Attach a single capturing handler on the document while someone wants focusin/focusout\n\t\tvar handler = function( event ) {\n\t\t\tjQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );\n\t\t};\n\n\t\tjQuery.event.special[ fix ] = {\n\t\t\tsetup: function() {\n\n\t\t\t\t// Handle: regular nodes (via `this.ownerDocument`), window\n\t\t\t\t// (via `this.document`) & document (via `this`).\n\t\t\t\tvar doc = this.ownerDocument || this.document || this,\n\t\t\t\t\tattaches = dataPriv.access( doc, fix );\n\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tdoc.addEventListener( orig, handler, true );\n\t\t\t\t}\n\t\t\t\tdataPriv.access( doc, fix, ( attaches || 0 ) + 1 );\n\t\t\t},\n\t\t\tteardown: function() {\n\t\t\t\tvar doc = this.ownerDocument || this.document || this,\n\t\t\t\t\tattaches = dataPriv.access( doc, fix ) - 1;\n\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tdoc.removeEventListener( orig, handler, true );\n\t\t\t\t\tdataPriv.remove( doc, fix );\n\n\t\t\t\t} else {\n\t\t\t\t\tdataPriv.access( doc, fix, attaches );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t} );\n}\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\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// #7653, #8125, #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 (#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 #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 (#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 #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 (#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// #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 (#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// #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 #8605, #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// #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.mouseenter( fnOver ).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\nvar rtrim = /^[\\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, \"\" );\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// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)\n// and CommonJS for browser emulators (#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-2020 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.21.3\n */\n","/*globals process */\nlet define, require, Ember;\n\n// Used in @ember/-internals/environment/lib/global.js\nmainContext = this; // eslint-disable-line no-undef\n\n(function() {\n  let registry;\n  let seen;\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    let name = _name;\n    let mod = registry[name];\n\n    if (!mod) {\n      name = name + '/index';\n      mod = registry[name];\n    }\n\n    let 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    let deps = mod.deps;\n    let callback = mod.callback;\n    let reified = new Array(deps.length);\n\n    for (let 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] = internalRequire(deps[i], name);\n      }\n    }\n\n    callback.apply(this, reified);\n\n    return exports;\n  }\n\n  let isNode =\n    typeof window === 'undefined' &&\n    typeof process !== 'undefined' &&\n    {}.toString.call(process) === '[object process]';\n\n  if (!isNode) {\n    Ember = this.Ember = this.Ember || {};\n  }\n\n  if (typeof Ember === 'undefined') {\n    Ember = {};\n  }\n\n  if (typeof Ember.__loader === 'undefined') {\n    registry = Object.create(null);\n    seen = Object.create(null);\n\n    define = function(name, deps, callback) {\n      let value = {};\n\n      if (!callback) {\n        value.deps = [];\n        value.callback = deps;\n      } else {\n        value.deps = deps;\n        value.callback = callback;\n      }\n\n      registry[name] = value;\n    };\n\n    require = function(name) {\n      return internalRequire(name, null);\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 = registry;\n\n    Ember.__loader = {\n      define: define,\n      require: require,\n      registry: registry,\n    };\n  } else {\n    define = Ember.__loader.define;\n    require = Ember.__loader.require;\n  }\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 ? Boolean(window.chrome) && !window.opera : false;\nconst isFirefox = hasDom ? typeof InstallTrigger !== 'undefined' : false;\n\nexport { window, location$1 as location, history$1 as history, userAgent, isChrome, isFirefox, 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://emberjs.com/deprecations/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      });\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      });\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      });\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      });\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      });\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      });\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/**\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\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, options = {}) {\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    assert('EMBER_MODULE_UNIFICATION must be enabled to pass a namespace option to factoryFor', false\n    /* EMBER_MODULE_UNIFICATION */\n    || !options.namespace);\n\n    if (options.source || options.namespace) {\n      normalizedName = this.registry.expandLocalLookup(fullName, options);\n\n      if (!normalizedName) {\n        return;\n      }\n    }\n\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  assert('EMBER_MODULE_UNIFICATION must be enabled to pass a namespace option to lookup', false\n  /* EMBER_MODULE_UNIFICATION */\n  || !options.namespace);\n  let normalizedName = fullName;\n\n  if (options.source || options.namespace) {\n    normalizedName = container.registry.expandLocalLookup(fullName, options);\n\n    if (!normalizedName) {\n      return;\n    }\n  }\n\n  if (options.singleton !== false) {\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 && 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      source\n    } = injections[i];\n\n    if (source) {\n      hash[property] = lookup(container, specifier, {\n        source\n      });\n    } else {\n      hash[property] = lookup(container, specifier);\n    }\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  return buildInjections(container, typeInjections, injections);\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    setFactoryFor(this, this);\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, options) {\n    let factory = resolve(this, this.normalize(fullName), options);\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    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 factory.toString();\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, options) {\n    if (!this.isValidFullName(fullName)) {\n      return false;\n    }\n\n    let source = options && options.source && this.normalize(options.source);\n    let namespace = options && options.namespace || undefined;\n    return has(this, this.normalize(fullName), source, namespace);\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   Given a fullName and a source fullName returns the fully resolved\n   fullName. Used to allow for local lookup.\n      ```javascript\n   let registry = new Registry();\n      // the twitter factory is added to the module system\n   registry.expandLocalLookup('component:post-title', { source: 'template:post' }) // => component:post/post-title\n   ```\n      @private\n   @method expandLocalLookup\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 {String} fullName\n   */\n\n\n  expandLocalLookup(fullName, options) {\n    if (this.resolver !== null && this.resolver.expandLocalLookup) {\n      assert('fullName must be a proper full name', this.isValidFullName(fullName));\n      assert('options.source must be a proper full name', !options.source || this.isValidFullName(options.source));\n      let normalizedFullName = this.normalize(fullName);\n      let normalizedSource = this.normalize(options.source);\n      return expandLocalLookup(this, normalizedFullName, normalizedSource, options.namespace);\n    } else if (this.fallback !== null) {\n      return this.fallback.expandLocalLookup(fullName, options);\n    } else {\n      return null;\n    }\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          source,\n          namespace\n        } = hash[key];\n        assert(`Expected a proper full name, given '${specifier}'`, this.isValidFullName(specifier));\n        injections.push({\n          property: key,\n          specifier,\n          source,\n          namespace\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        source,\n        namespace\n      } = injections[i];\n      assert(`Attempting to inject an unknown injection: '${specifier}'`, this.has(specifier, {\n        source,\n        namespace\n      }));\n    }\n  };\n}\n\nfunction expandLocalLookup(registry, normalizedName, normalizedSource, namespace) {\n  let cache = registry._localLookupCache;\n  let normalizedNameCache = cache[normalizedName];\n\n  if (!normalizedNameCache) {\n    normalizedNameCache = cache[normalizedName] = Object.create(null);\n  }\n\n  let cacheKey = namespace || normalizedSource;\n  let cached = normalizedNameCache[cacheKey];\n\n  if (cached !== undefined) {\n    return cached;\n  }\n\n  let expanded = registry.resolver.expandLocalLookup(normalizedName, normalizedSource, namespace);\n  return normalizedNameCache[cacheKey] = expanded;\n}\n\nfunction resolve(registry, _normalizedName, options) {\n  let normalizedName = _normalizedName; // when `source` is provided expand normalizedName\n  // and source into the full normalizedName\n\n  if (options !== undefined && (options.source || options.namespace)) {\n    normalizedName = registry.expandLocalLookup(_normalizedName, options);\n\n    if (!normalizedName) {\n      return;\n    }\n  }\n\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, source, namespace) {\n  return registry.resolve(fullName, {\n    source,\n    namespace\n  }) !== 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 };\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  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}","define(\"@ember/-internals/extension-support/index\", [\"exports\", \"@ember/-internals/extension-support/lib/data_adapter\", \"@ember/-internals/extension-support/lib/container_debug_adapter\"], function (_exports, _data_adapter, _container_debug_adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"DataAdapter\", {\n    enumerable: true,\n    get: function () {\n      return _data_adapter.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ContainerDebugAdapter\", {\n    enumerable: true,\n    get: function () {\n      return _container_debug_adapter.default;\n    }\n  });\n});\n","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 { scheduleOnce } from '@ember/runloop';\nimport { get, objectAt, addArrayObserver, removeArrayObserver } from '@ember/-internals/metal';\nimport { dasherize } from '@ember/string';\nimport { Namespace, Object as EmberObject, A as emberA } from '@ember/-internals/runtime';\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  * `observeRecord`\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\nexport default EmberObject.extend({\n  init() {\n    this._super(...arguments);\n\n    this.releaseMethods = emberA();\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  containerDebugAdapter: undefined,\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    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  releaseMethods: emberA(),\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 the following parameters:\n      index: The array index where the records were removed.\n      count: The number of records removed.\n     @return {Function} Method to call to remove all observers.\n  */\n  watchRecords(modelName, recordsAdded, recordsUpdated, recordsRemoved) {\n    let releaseMethods = emberA();\n\n    let klass = this._nameToClass(modelName);\n\n    let records = this.getRecords(klass, modelName);\n    let release;\n\n    function recordUpdated(updatedRecord) {\n      recordsUpdated([updatedRecord]);\n    }\n\n    let recordsToSend = records.map(record => {\n      releaseMethods.push(this.observeRecord(record, recordUpdated));\n      return this.wrapRecord(record);\n    });\n\n    let contentDidChange = (array, idx, removedCount, addedCount) => {\n      for (let i = idx; i < idx + addedCount; i++) {\n        let record = objectAt(array, i);\n        let wrapped = this.wrapRecord(record);\n        releaseMethods.push(this.observeRecord(record, recordUpdated));\n        recordsAdded([wrapped]);\n      }\n\n      if (removedCount) {\n        recordsRemoved(idx, removedCount);\n      }\n    };\n\n    let observer = {\n      didChange: contentDidChange,\n\n      willChange() {\n        return this;\n      }\n\n    };\n    addArrayObserver(records, this, observer);\n\n    release = () => {\n      releaseMethods.forEach(fn => fn());\n      removeArrayObserver(records, this, observer);\n      this.releaseMethods.removeObject(release);\n    };\n\n    recordsAdded(recordsToSend);\n    this.releaseMethods.pushObject(release);\n    return release;\n  },\n\n  /**\n    Clear all observers before destruction\n    @private\n    @method willDestroy\n  */\n  willDestroy() {\n    this._super(...arguments);\n\n    this.releaseMethods.forEach(fn => fn());\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    function onChange() {\n      typesUpdated([this.wrapModelType(klass, modelName)]);\n    }\n\n    let observer = {\n      didChange(array, idx, removedCount, addedCount) {\n        // Only re-fetch records if the record count changed\n        // (which is all we care about as far as model types are concerned).\n        if (removedCount > 0 || addedCount > 0) {\n          scheduleOnce('actions', this, onChange);\n        }\n      },\n\n      willChange() {\n        return this;\n      }\n\n    };\n    addArrayObserver(records, this, observer);\n\n    let release = () => removeArrayObserver(records, this, observer);\n\n    return 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  /**\n    Observes all relevant properties and re-sends the wrapped record\n    when a change occurs.\n     @public\n    @method observerRecord\n    @return {Function} The function to call to remove all observers.\n  */\n  observeRecord() {\n    return function () {};\n  }\n\n});","import { templateFactory, PartialDefinitionImpl, EMPTY_BLOCKS, NONE, staticComponent, UNHANDLED, JitContext } from '@glimmer/opcode-compiler';\nimport { get, PROPERTY_DID_CHANGE, set, computed, alias, tagForObject, objectAt, tagForProperty, _getProp, CUSTOM_TAG_FOR } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { TargetActionSupport, FrameworkObject, _contentFor, isArray, Object as Object$1 } from '@ember/-internals/runtime';\nimport { enumerableSymbol, symbol, guidFor, getDebugName, isObject, isProxy, HAS_NATIVE_SYMBOL, isEmberArray, HAS_NATIVE_PROXY, uuid, toString } from '@ember/-internals/utils';\nimport { ActionSupport, ChildViewsSupport, ClassNamesSupport, CoreView, getViewElement, ViewMixin, ViewStateSupport, TextSupport, isSimpleClick, clearElementView, clearViewElement, MUTABLE_CELL, addChildView, setElementView, setViewElement, constructStyleDeprecationMessage, ActionManager, getViewId } from '@ember/-internals/views';\nimport { assert, deprecate, warn, debugFreeze } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { UPDATE_REFERENCED_VALUE, ComponentRootReference, HelperRootReference, RootReference, IterationItemReference, PropertyReference, ConstReference } from '@glimmer/reference';\nimport { normalizeProperty, EMPTY_ARGS, registerDestructor, PrimitiveReference, UNDEFINED_REFERENCE, dynamicAttribute, setScheduleDestroy, setScheduleDestroyed, SimpleDynamicAttribute, NULL_REFERENCE, curry, getDynamicVar, clientBuilder, destroy, DOMChanges, DOMTreeConstruction, inTransaction, JitRuntime, renderJitMain, rehydrationBuilder } from '@glimmer/runtime';\nexport { DOMChanges, DOMTreeConstruction, isSerializationFirstNode } from '@glimmer/runtime';\nimport { createTag, dirtyTag, CONSTANT_TAG, valueForTag, consumeTag, deprecateMutationsInAutotrackingTransaction, combine, isConstTagged, validateTag, createUpdatableTag, updateTag, isTracking, tagFor, setAutotrackingTransactionEnv, setPropertyDidChange, track, untrack, isConstTag, CURRENT_TAG, runInAutotrackingTransaction } from '@glimmer/validator';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { flaggedInstrument, _instrumentStart } from '@ember/instrumentation';\nimport { inject } from '@ember/service';\nimport { join, backburner, schedule, getCurrentRunLoop } from '@ember/runloop';\nimport { ENV } from '@ember/-internals/environment';\nimport { assign } from '@ember/polyfills';\nimport { unwrapTemplate, EMPTY_ARRAY, expect, Stack, dict, unwrapHandle } from '@glimmer/util';\nimport { EMBER_COMPONENT_IS_VISIBLE, PARTIALS, COMPONENT_MANAGER_STRING_LOOKUP } from '@ember/deprecated-features';\nimport { dasherize, loc } from '@ember/string';\nimport { privatize, getFactoryFor } from '@ember/-internals/container';\nimport { NodeDOMTreeConstruction, serializeBuilder } from '@glimmer/node';\nexport { NodeDOMTreeConstruction } from '@glimmer/node';\nimport { QueryParams, generateControllerFactory } from '@ember/-internals/routing';\nimport { isTemplateOnlyComponent } from '@ember/component/template-only';\nimport EmberError from '@ember/error';\nimport RSVP from 'rsvp';\n\nfunction isTemplateFactory(template) {\n  return typeof template === 'function';\n}\nlet counters = {\n  cacheHit: 0,\n  cacheMiss: 0\n};\nfunction template(json) {\n  let glimmerFactory = templateFactory(json);\n  let cache = new WeakMap();\n  const meta = glimmerFactory.meta;\n\n  let factory = owner => {\n    let result = cache.get(owner);\n\n    if (result === undefined) {\n      counters.cacheMiss++;\n      result = glimmerFactory.create(Object.assign({\n        owner\n      }, meta));\n      cache.set(owner, result);\n    } else {\n      counters.cacheHit++;\n    }\n\n    return result;\n  };\n\n  factory.__id = glimmerFactory.id;\n  factory.__meta = meta;\n  return factory;\n}\n\nvar RootTemplate = template({\n  \"id\": \"s5o9bxSn\",\n  \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[30,[36,0],[[32,0]],null]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"component\\\"]}\",\n  \"meta\": {\n    \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/root.hbs\"\n  }\n});\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');\n/**\n@module @ember/component\n*/\n\n/**\n  A component is an isolated piece of UI, represented by a template and an\n  optional class. When a component has a class, its template's `this` value\n  is an instance of the component class.\n\n  ## Template-only Components\n\n  The simplest way to create a component is to create a template file in\n  `app/templates/components`. For example, if you name a template\n  `app/templates/components/person-profile.hbs`:\n\n  ```app/templates/components/person-profile.hbs\n  <h1>{{@person.name}}</h1>\n  <img src={{@person.avatar}}>\n  <p class='signature'>{{@person.signature}}</p>\n  ```\n\n  You will be able to use `<PersonProfile />` to invoke this component elsewhere\n  in your application:\n\n  ```app/templates/application.hbs\n  <PersonProfile @person={{this.currentUser}} />\n  ```\n\n  Note that component names are capitalized here in order to distinguish them\n  from regular HTML elements, but they are dasherized in the file system.\n\n  While the angle bracket invocation form is generally preferred, it is also\n  possible to invoke the same component with the `{{person-profile}}` syntax:\n\n  ```app/templates/application.hbs\n  {{person-profile person=this.currentUser}}\n  ```\n\n  Note that with this syntax, you use dashes in the component name and\n  arguments are passed without the `@` sign.\n\n  In both cases, Ember will render the content of the component template we\n  created above. The end result will be something like this:\n\n  ```html\n  <h1>Tomster</h1>\n  <img src=\"https://emberjs.com/tomster.jpg\">\n  <p class='signature'>Out of office this week</p>\n  ```\n\n  ## File System Nesting\n\n  Components can be nested inside sub-folders for logical groupping. For\n  example, if we placed our template in\n  `app/templates/components/person/short-profile.hbs`, we can invoke it as\n  `<Person::ShortProfile />`:\n\n  ```app/templates/application.hbs\n  <Person::ShortProfile @person={{this.currentUser}} />\n  ```\n\n  Or equivalently, `{{person/short-profile}}`:\n\n  ```app/templates/application.hbs\n  {{person/short-profile person=this.currentUser}}\n  ```\n\n  ## Yielding Contents\n\n  You can use `yield` inside a template to include the **contents** of any block\n  attached to the component. The block will be executed in its original context:\n\n  ```handlebars\n  <PersonProfile @person={{this.currentUser}}>\n    <p>Admin mode</p>\n    {{! Executed in the current context. }}\n  </PersonProfile>\n  ```\n\n  or\n\n  ```handlebars\n  {{#person-profile person=this.currentUser}}\n    <p>Admin mode</p>\n    {{! Executed in the current context. }}\n  {{/person-profile}}\n  ```\n\n  ```app/templates/components/person-profile.hbs\n  <h1>{{@person.name}}</h1>\n  {{yield}}\n  ```\n\n  ## Customizing Components With JavaScript\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;\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 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._destinedForDOM && 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://emberjs.com/deprecations/v3.x#toc_component-mouseenter-leave-move'\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://emberjs.com/deprecations/v3.x#toc_component-mouseenter-leave-move'\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://emberjs.com/deprecations/v3.x#toc_component-mouseenter-leave-move'\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 && reference[UPDATE_REFERENCED_VALUE] !== undefined) {\n      reference[UPDATE_REFERENCED_VALUE](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});\n\nvar layout = template({\n  \"id\": \"SWbqsLhV\",\n  \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n  \"meta\": {\n    \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/empty.hbs\"\n  }\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@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@module @ember/component\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\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\nvar layout$1 = template({\n  \"id\": \"uDKxl8ne\",\n  \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[18,1,null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[32,0,[\\\"linkTitle\\\"]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\"]}\",\n  \"meta\": {\n    \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs\"\n  }\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  ### Allowing Default Action\n\n  By default the `<LinkTo>` component prevents the default browser action by calling\n  `preventDefault()` to avoid reloading the browser page.\n\n  If you need to trigger a full browser reload pass `@preventDefault={{false}}`:\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @model={{this.aPhotoId}} @preventDefault={{false}}>\n    {{this.aPhotoId.title}}\n  </LinkTo>\n  ```\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. Instead, you can use the `transition-to` helper together\n  with a click event handler on the HTML tag of your choosing.\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    @private\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    @private\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    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); // Map desired event name to invoke function\n\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  _route: computed('route', '_currentRouterState', function computeLinkToComponentRoute() {\n    let {\n      route\n    } = this;\n    return route === UNDEFINED ? this._currentRoute : 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  _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 isCurrentWhenSpecified = Boolean(currentWhen);\n\n    if (isCurrentWhenSpecified) {\n      currentWhen = currentWhen.split(' ');\n    } else {\n      currentWhen = [this._route];\n    }\n\n    let {\n      _models: models,\n      _query: query,\n      _routing: routing\n    } = this;\n\n    for (let i = 0; i < currentWhen.length; i++) {\n      if (routing.isActiveForRoute(models, query, currentWhen[i], routerState, isCurrentWhenSpecified)) {\n        return true;\n      }\n    }\n\n    return false;\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  /**\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        assert(`You attempted to generate a link for the \"${this.route}\" route, but did not ` + `pass the models required for generating its dynamic segments. ` + e.message);\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    params = params.slice(); // Process the positional arguments, in order.\n    // 1. Inline link title comes first, if present.\n\n    if (!this[HAS_BLOCK]) {\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  }\n\n});\n\nLinkComponent.toString = () => '@ember/routing/link-component';\n\nLinkComponent.reopenClass({\n  positionalParams: 'params'\n});\n\n/**\n@module @ember/component\n*/\nconst RECOMPUTE_TAG = symbol('RECOMPUTE_TAG');\nfunction isHelperFactory(helper) {\n  return typeof helper === 'object' && helper !== null && helper.class && helper.class.isHelperFactory;\n}\nfunction isClassHelper(helper) {\n  return helper.destroy !== undefined;\n}\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});\nHelper.isHelperFactory = true;\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/**\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\n\nfunction helper(helperFn) {\n  return new Wrapper(helperFn);\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(str) {\n  return str !== null && typeof str === 'object' && typeof str.toHTML === 'function';\n}\n\nfunction isStaticComponentManager(_manager, capabilities) {\n  return !capabilities.dynamicLayout;\n}\n\nclass CompileTimeResolver {\n  constructor(resolver) {\n    this.resolver = resolver;\n  }\n\n  lookupHelper(name, referrer) {\n    return this.resolver.lookupHelper(name, referrer);\n  }\n\n  lookupModifier(name, referrer) {\n    return this.resolver.lookupModifier(name, referrer);\n  }\n\n  lookupComponent(name, referrer) {\n    let definitionHandle = this.resolver.lookupComponentHandle(name, referrer);\n\n    if (definitionHandle === null) {\n      return null;\n    }\n\n    const {\n      manager,\n      state\n    } = this.resolver.resolve(definitionHandle);\n    const capabilities = manager.getCapabilities(state);\n\n    if (!isStaticComponentManager(manager, capabilities)) {\n      return {\n        handle: definitionHandle,\n        capabilities,\n        compilable: null\n      };\n    }\n\n    return {\n      handle: definitionHandle,\n      capabilities,\n      compilable: manager.getJitStaticLayout(state, this.resolver)\n    };\n  }\n\n  lookupPartial(name, referrer) {\n    return this.resolver.lookupPartial(name, referrer);\n  }\n\n  resolve(handle) {\n    return this.resolver.resolve(handle);\n  }\n\n}\n\n// implements the ComponentManager interface as defined in glimmer:\n// tslint:disable-next-line:max-line-length\n// https://github.com/glimmerjs/glimmer-vm/blob/v0.24.0-beta.4/packages/%40glimmer/runtime/lib/component/interfaces.ts#L21\nclass AbstractManager {\n  prepareArgs(_state, _args) {\n    return null;\n  }\n\n  didCreateElement(_component, _element, _operations) {// noop\n  }\n\n  didRenderLayout(_component, _bounds) {// noop\n  }\n\n  didCreate(_bucket) {// noop\n  }\n\n  update(_bucket, _dynamicScope) {// noop\n  }\n\n  didUpdateLayout(_bucket, _bounds) {// noop\n  }\n\n  didUpdate(_bucket) {// noop\n  }\n\n}\n\nfunction instrumentationPayload(def) {\n  return {\n    object: `${def.name}:${def.outlet}`\n  };\n}\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: ENV._DEBUG_RENDER_TREE,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: true,\n  updateHook: ENV._DEBUG_RENDER_TREE,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false\n};\n\nclass OutletComponentManager extends AbstractManager {\n  create(environment, definition, args, dynamicScope) {\n    let parentStateRef = dynamicScope.outletState;\n    let currentStateRef = definition.ref;\n    dynamicScope.outletState = currentStateRef;\n    let state = {\n      self: new ComponentRootReference(definition.controller, environment),\n      environment,\n      finalize: _instrumentStart('render.outlet', instrumentationPayload, definition)\n    };\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      state.outlet = {\n        name: definition.outlet\n      };\n      environment.extra.debugRenderTree.create(state.outlet, {\n        type: 'outlet',\n        name: state.outlet.name,\n        args: EMPTY_ARGS,\n        instance: undefined,\n        template: undefined\n      });\n      let parentState = parentStateRef.value();\n      let parentOwner = parentState && parentState.render && parentState.render.owner;\n      let currentOwner = currentStateRef.value().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 = {\n          mountPoint\n        };\n        environment.extra.debugRenderTree.create(state.engine, {\n          type: 'engine',\n          name: mountPoint,\n          args: EMPTY_ARGS,\n          instance: engine,\n          template: undefined\n        });\n      }\n\n      environment.extra.debugRenderTree.create(state, {\n        type: 'route-template',\n        name: definition.name,\n        args: args.capture(),\n        instance: definition.controller,\n        template: definition.template\n      });\n      registerDestructor(state, () => {\n        state.environment.extra.debugRenderTree.willDestroy(state);\n\n        if (state.engine) {\n          state.environment.extra.debugRenderTree.willDestroy(state.engine);\n        }\n\n        state.environment.extra.debugRenderTree.willDestroy(state.outlet);\n      });\n    }\n\n    return state;\n  }\n\n  getJitStaticLayout({\n    template\n  }, _resolver) {\n    // The router has already resolved the template\n    return unwrapTemplate(template).asLayout();\n  }\n\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n\n  getTag() {\n    if (ENV._DEBUG_RENDER_TREE) {\n      // returning a const tag skips the update hook (VM BUG?)\n      return createTag();\n    } else {\n      // an outlet has no hooks\n      return CONSTANT_TAG;\n    }\n  }\n\n  didRenderLayout(state, bounds) {\n    state.finalize();\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      state.environment.extra.debugRenderTree.didRender(state, bounds);\n\n      if (state.engine) {\n        state.environment.extra.debugRenderTree.didRender(state.engine, bounds);\n      }\n\n      state.environment.extra.debugRenderTree.didRender(state.outlet, bounds);\n    }\n  }\n\n  update(state) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      state.environment.extra.debugRenderTree.update(state.outlet);\n\n      if (state.engine) {\n        state.environment.extra.debugRenderTree.update(state.engine);\n      }\n\n      state.environment.extra.debugRenderTree.update(state);\n    }\n  }\n\n  didUpdateLayout(state, bounds) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      state.environment.extra.debugRenderTree.didRender(state, bounds);\n\n      if (state.engine) {\n        state.environment.extra.debugRenderTree.didRender(state.engine, bounds);\n      }\n\n      state.environment.extra.debugRenderTree.didRender(state.outlet, bounds);\n    }\n  }\n\n  getDestroyable(state) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      return state;\n    } else {\n      return null;\n    }\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;\n  }\n\n}\nfunction createRootOutlet(outletView) {\n  if (ENV._APPLICATION_TEMPLATE_WRAPPER) {\n    const WRAPPED_CAPABILITIES = assign({}, CAPABILITIES, {\n      dynamicTag: true,\n      elementHook: true,\n      wrapped: true\n    });\n    const WrappedOutletComponentManager = class extends OutletComponentManager {\n      getTagName(_component) {\n        return 'div';\n      }\n\n      getJitStaticLayout({\n        template\n      }) {\n        // The router has already resolved the template\n        return unwrapTemplate(template).asWrappedLayout();\n      }\n\n      getCapabilities() {\n        return WRAPPED_CAPABILITIES;\n      }\n\n      didCreateElement(component, element, _operations) {\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\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(environment, component, args, finalizer, hasWrappedElement) {\n    this.environment = environment;\n    this.component = component;\n    this.args = args;\n    this.finalizer = finalizer;\n    this.hasWrappedElement = hasWrappedElement;\n    this.classRef = null;\n    this.classRef = null;\n    this.argsRevision = args === null ? 0 : valueForTag(args.tag);\n    this.rootRef = new ComponentRootReference(component, environment);\n    registerDestructor(this, () => this.willDestroy(), true);\n    registerDestructor(this, () => this.component.destroy());\n  }\n\n  willDestroy() {\n    let {\n      component,\n      environment\n    } = this;\n\n    if (environment.isInteractive) {\n      component.trigger('willDestroyElement');\n      component.trigger('willClearRender');\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\nclass EmberHelperRootReference extends HelperRootReference {\n  constructor(helper$$1, args, env) {\n    let fnWrapper = args => {\n      let {\n        positional,\n        named\n      } = args;\n      let positionalValue = positional.value();\n      let namedValue = named.value();\n      let ret;\n\n      if (DEBUG) {\n        debugFreeze(positionalValue);\n        debugFreeze(namedValue);\n        deprecateMutationsInAutotrackingTransaction(() => {\n          ret = helper$$1.compute(positionalValue, namedValue);\n        });\n      } else {\n        ret = helper$$1.compute(positionalValue, namedValue);\n      }\n\n      if (helper$$1[RECOMPUTE_TAG]) {\n        consumeTag(helper$$1[RECOMPUTE_TAG]);\n      }\n\n      return ret;\n    };\n\n    if (DEBUG) {\n      let debugName = isClassHelper(helper$$1) ? getDebugName(helper$$1) : getDebugName(helper$$1.compute);\n      super(fnWrapper, args, env, debugName);\n    } else {\n      super(fnWrapper, args, env);\n    }\n  }\n\n}\nclass UnboundRootReference extends RootReference {\n  constructor(inner, env, parent, key) {\n    super(env);\n    this.inner = inner;\n    this.env = env;\n\n    if (DEBUG) {\n      env.setTemplatePathDebugContext(this, key || 'this', parent || null);\n    }\n  }\n\n  value() {\n    return this.inner;\n  }\n\n  get(key) {\n    let value = this.value();\n\n    if (isObject(value)) {\n      // root of interop with ember objects\n      return new UnboundPropertyReference(value[key], this.env, this, key);\n    } else {\n      return PrimitiveReference.create(value);\n    }\n  }\n\n}\nclass UnboundPropertyReference extends UnboundRootReference {}\nfunction referenceFromParts(root, parts) {\n  let reference = root;\n\n  for (let i = 0; i < parts.length; i++) {\n    reference = reference.get(parts[i]);\n  }\n\n  return reference;\n}\n\nfunction referenceForKey(rootRef, key) {\n  return rootRef.get(key);\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 referenceForKey(rootRef, parts[0]);\n    }\n  }\n\n  return referenceFromParts(rootRef, parts);\n}\n\nconst AttributeBinding = {\n  parse(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  },\n\n  install(component, rootRef, parsed, operations, env) {\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 = PrimitiveReference.create(elementId);\n      operations.setAttribute('id', elementId, true, null); // operations.addStaticAttribute(element, 'id', elementId);\n\n      return;\n    }\n\n    let isPath = prop.indexOf('.') > -1;\n    let reference = isPath ? referenceForParts(rootRef, prop.split('.')) : referenceForKey(rootRef, prop);\n    assert(`Illegal attributeBinding: '${prop}' is not a valid attribute name.`, !(isSimple && isPath));\n\n    if (EMBER_COMPONENT_IS_VISIBLE && attribute === 'style' && StyleBindingReference !== undefined) {\n      reference = new StyleBindingReference(rootRef, reference, referenceForKey(rootRef, 'isVisible'), env);\n    }\n\n    operations.setAttribute(attribute, reference, false, null); // operations.addDynamicAttribute(element, attribute, reference, false);\n  }\n\n};\nconst DISPLAY_NONE = 'display: none;';\nconst SAFE_DISPLAY_NONE = htmlSafe(DISPLAY_NONE);\nlet StyleBindingReference;\nlet installIsVisibleBinding;\n\nif (EMBER_COMPONENT_IS_VISIBLE) {\n  StyleBindingReference = class {\n    constructor(parent, inner, isVisible, env) {\n      this.inner = inner;\n      this.isVisible = isVisible;\n      this.env = env;\n      this.tag = combine([inner.tag, isVisible.tag]);\n\n      if (DEBUG) {\n        env.setTemplatePathDebugContext(this, 'style', parent);\n      }\n    }\n\n    value() {\n      let value = this.inner.value();\n      let isVisible = this.isVisible.value();\n\n      if (isVisible !== undefined) {\n        deprecate(`The \\`isVisible\\` property on classic component classes is deprecated. Was accessed ${this.env.getTemplatePathDebugContext(this).replace(/^W/, 'w')}`, 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        });\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(value) ? htmlSafe(style) : style;\n      }\n    }\n\n    get() {\n      return UNDEFINED_REFERENCE;\n    }\n\n  };\n\n  installIsVisibleBinding = (rootRef, operations, environment) => {\n    operations.setAttribute('style', new StyleBindingReference(rootRef, UNDEFINED_REFERENCE, rootRef.get('isVisible'), environment), false, null);\n  };\n}\n\nconst ClassNameBinding = {\n  install(_element, rootRef, microsyntax, operations) {\n    let [prop, truthy, falsy] = microsyntax.split(':');\n    let isStatic = prop === '';\n\n    if (isStatic) {\n      operations.setAttribute('class', PrimitiveReference.create(truthy), true, null);\n    } else {\n      let isPath = prop.indexOf('.') > -1;\n      let parts = isPath ? prop.split('.') : [];\n      let value = isPath ? referenceForParts(rootRef, parts) : referenceForKey(rootRef, prop);\n      let ref;\n\n      if (truthy === undefined) {\n        ref = new SimpleClassNameBindingReference(value, isPath ? parts[parts.length - 1] : prop);\n      } else {\n        ref = new ColonClassNameBindingReference(value, truthy, falsy);\n      }\n\n      operations.setAttribute('class', ref, false, null);\n    }\n  }\n\n};\nclass SimpleClassNameBindingReference {\n  constructor(inner, path) {\n    this.inner = inner;\n    this.path = path;\n    this.tag = inner.tag;\n    this.dasherizedPath = null;\n  }\n\n  value() {\n    let value = this.inner.value();\n\n    if (value === true) {\n      let {\n        path,\n        dasherizedPath\n      } = this;\n      return dasherizedPath || (this.dasherizedPath = dasherize(path));\n    } else if (value || value === 0) {\n      return String(value);\n    } else {\n      return null;\n    }\n  }\n\n}\n\nclass ColonClassNameBindingReference {\n  constructor(inner, truthy = null, falsy = null) {\n    this.inner = inner;\n    this.truthy = truthy;\n    this.falsy = falsy;\n    this.tag = inner.tag;\n  }\n\n  value() {\n    let {\n      inner,\n      truthy,\n      falsy\n    } = this;\n    return inner.value() ? truthy : falsy;\n  }\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\nconst INVOKE = symbol('INVOKE');\nconst SOURCE = symbol('SOURCE');\n\nclass MutReference extends RootReference {\n  constructor(inner, env) {\n    super(env);\n    this.inner = inner;\n    this.tag = inner.tag;\n    this[SOURCE] = inner;\n  }\n\n  value() {\n    return this.inner.value();\n  }\n\n  get(key) {\n    return this.inner.get(key);\n  }\n\n  [UPDATE_REFERENCED_VALUE](value) {\n    return this.inner[UPDATE_REFERENCED_VALUE](value);\n  }\n\n  [INVOKE](value) {\n    return this.inner[UPDATE_REFERENCED_VALUE](value);\n  }\n\n}\n\nfunction unMut(ref) {\n  return ref[SOURCE] || ref;\n}\nfunction mut (args, vm) {\n  let rawRef = args.positional.at(0);\n\n  if (typeof rawRef[INVOKE] === 'function') {\n    return rawRef;\n  } // 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\n  assert('You can only pass a path to mut', rawRef[UPDATE_REFERENCED_VALUE] !== undefined);\n  return new MutReference(rawRef, vm.env);\n}\n\n/**\n@module ember\n*/\nconst ACTION = symbol('ACTION');\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\nfunction action (args, vm) {\n  let {\n    named,\n    positional\n  } = args;\n  let capturedArgs = positional.capture(); // 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, ...restArgs] = capturedArgs.references; // TODO: Is there a better way of doing this?\n\n  let debugKey = action.propertyKey;\n  let target = named.has('target') ? named.get('target') : context;\n  let processArgs = makeArgsProcessor(named.has('value') && named.get('value'), restArgs);\n  let fn;\n\n  if (typeof action[INVOKE] === 'function') {\n    fn = makeClosureAction(action, action, action[INVOKE], processArgs, debugKey);\n  } else if (isConstTagged(target) && isConstTagged(action)) {\n    fn = makeClosureAction(context.value(), target.value(), action.value(), processArgs, debugKey);\n  } else {\n    fn = makeDynamicClosureAction(context.value(), target, action, processArgs, debugKey);\n  }\n\n  fn[ACTION] = true;\n  return new UnboundRootReference(fn, vm.env);\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(ref => ref.value()).concat(args);\n    };\n  }\n\n  let readValue;\n\n  if (valuePathRef) {\n    readValue = args => {\n      let valuePath = valuePathRef.value();\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, targetRef.value(), actionRef.value(), processArgs, debugKey);\n  }\n\n  return (...args) => {\n    return makeClosureAction(context, targetRef.value(), actionRef.value(), processArgs, debugKey)(...args);\n  };\n}\n\nfunction makeClosureAction(context, target, action, processArgs, debugKey) {\n  let self;\n  let fn;\n  assert(`Action passed is null or undefined in (action) from ${target}.`, action !== undefined && action !== null);\n\n  if (typeof action[INVOKE] === 'function') {\n    self = action;\n    fn = action[INVOKE];\n  } else {\n    let typeofAction = typeof action;\n\n    if (typeofAction === 'string') {\n      self = target;\n      fn = target.actions && target.actions[action];\n      assert(`An action named '${action}' was not found in ${target}`, fn);\n    } else if (typeofAction === 'function') {\n      self = context;\n      fn = action;\n    } else {\n      // tslint:disable-next-line:max-line-length\n      assert(`An action could not be made for \\`${debugKey || action}\\` 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, ...processArgs(args));\n    });\n  };\n}\n\n// inputs needed by CurlyComponents (attrs and props, with mutable\n// cells, etc).\n\nfunction processComponentArgs(namedArgs) {\n  let keys = namedArgs.names;\n  let attrs = namedArgs.value();\n  let props = Object.create(null);\n  let args = Object.create(null);\n  props[ARGS] = args;\n\n  for (let i = 0; i < keys.length; i++) {\n    let name = keys[i];\n    let ref = namedArgs.get(name);\n    let value = attrs[name];\n\n    if (typeof value === 'function' && value[ACTION]) {\n      attrs[name] = value;\n    } else if (ref[UPDATE_REFERENCED_VALUE]) {\n      attrs[name] = new MutableCell(ref, value);\n    }\n\n    args[name] = ref;\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    this[REF][UPDATE_REFERENCED_VALUE](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};\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, environment) {\n  let seen = [];\n  let i = attributeBindings.length - 1;\n\n  while (i !== -1) {\n    let binding = attributeBindings[i];\n    let parsed = AttributeBinding.parse(binding);\n    let attribute = parsed[1];\n\n    if (seen.indexOf(attribute) === -1) {\n      seen.push(attribute);\n      AttributeBinding.install(component, rootRef, parsed, operations, environment);\n    }\n\n    i--;\n  }\n\n  if (seen.indexOf('id') === -1) {\n    let id$$1 = component.elementId ? component.elementId : guidFor(component);\n    operations.setAttribute('id', PrimitiveReference.create(id$$1), false, null);\n  }\n\n  if (EMBER_COMPONENT_IS_VISIBLE && installIsVisibleBinding !== undefined && seen.indexOf('style') === -1) {\n    installIsVisibleBinding(rootRef, operations, environment);\n  }\n}\n\nconst DEFAULT_LAYOUT = privatize`template:components/-default`;\nconst EMPTY_POSITIONAL_ARGS = [];\ndebugFreeze(EMPTY_POSITIONAL_ARGS);\nclass CurlyComponentManager extends AbstractManager {\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        factory = owner.lookup(DEFAULT_LAYOUT);\n      }\n    } else if (isTemplateFactory(layout)) {\n      factory = layout;\n    } else {\n      // we were provided an instance already\n      return layout;\n    }\n\n    return factory(owner);\n  }\n\n  getJitStaticLayout(state, _resolver) {\n    return unwrapTemplate(state.template).asLayout();\n  }\n\n  getJitDynamicLayout(bucket) {\n    let component = bucket.component;\n    let template$$1 = this.templateFor(component);\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.environment.extra.debugRenderTree.setTemplate(bucket, template$$1);\n    }\n\n    return template$$1;\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(state) {\n    return state.capabilities;\n  }\n\n  prepareArgs(state, args) {\n    if (args.named.has('__ARGS__')) {\n      let _a = args.named.capture().map,\n          {\n        __ARGS__\n      } = _a,\n          rest = __rest(_a, [\"__ARGS__\"]);\n\n      let prepared = {\n        positional: EMPTY_POSITIONAL_ARGS,\n        named: Object.assign({}, rest, __ARGS__.value())\n      };\n      return prepared;\n    }\n\n    const {\n      positionalParams\n    } = state.ComponentClass.class; // 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      named = {\n        [positionalParams]: args.positional.capture()\n      };\n      assign(named, args.named.capture().map);\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().map);\n\n      for (let i = 0; i < count; i++) {\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(environment, state, args, dynamicScope, callerSelfRef, hasBlock) {\n    // Get the nearest concrete component instance from the scope. \"Virtual\"\n    // components will be skipped.\n    let parentView = dynamicScope.view; // Get the Ember.Component subclass to instantiate for this component.\n\n    let factory = state.ComponentClass; // 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    let props = processComponentArgs(capturedArgs); // 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 = callerSelfRef.value(); // static layout asserts CurriedDefinition\n\n    if (state.template) {\n      props.layout = state.template;\n    } // 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\n    let component = factory.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 (environment.isInteractive) {\n        component.trigger('willRender');\n      }\n\n      component._transitionTo('hasElement');\n\n      if (environment.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(environment, component, capturedArgs, finalizer, hasWrappedElement);\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 (environment.isInteractive && hasWrappedElement) {\n      component.trigger('willRender');\n    }\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      environment.extra.debugRenderTree.create(bucket, {\n        type: 'component',\n        name: state.name,\n        args: args.capture(),\n        instance: component,\n        template: state.template\n      });\n      registerDestructor(bucket, () => {\n        environment.extra.debugRenderTree.willDestroy(bucket);\n      });\n    }\n\n    return bucket;\n  }\n\n  getSelf({\n    rootRef\n  }) {\n    return rootRef;\n  }\n\n  didCreateElement({\n    component,\n    classRef,\n    environment,\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, environment);\n    } else {\n      let id$$1 = component.elementId ? component.elementId : guidFor(component);\n      operations.setAttribute('id', PrimitiveReference.create(id$$1), false, null);\n\n      if (EMBER_COMPONENT_IS_VISIBLE) {\n        installIsVisibleBinding(rootRef, operations, environment);\n      }\n    }\n\n    if (classRef) {\n      const ref = new SimpleClassNameBindingReference(classRef, classRef['propertyKey']);\n      operations.setAttribute('class', ref, false, null);\n    }\n\n    if (classNames && classNames.length) {\n      classNames.forEach(name => {\n        operations.setAttribute('class', PrimitiveReference.create(name), false, null);\n      });\n    }\n\n    if (classNameBindings && classNameBindings.length) {\n      classNameBindings.forEach(binding => {\n        ClassNameBinding.install(element, rootRef, binding, operations);\n      });\n    }\n\n    operations.setAttribute('class', PrimitiveReference.create('ember-view'), false, null);\n\n    if ('ariaRole' in component) {\n      operations.setAttribute('role', referenceForKey(rootRef, 'ariaRole'), false, null);\n    }\n\n    component._transitionTo('hasElement');\n\n    if (environment.isInteractive) {\n      component.trigger('willInsertElement');\n    }\n  }\n\n  didRenderLayout(bucket, bounds) {\n    bucket.component[BOUNDS] = bounds;\n    bucket.finalize();\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.environment.extra.debugRenderTree.didRender(bucket, bounds);\n    }\n  }\n\n  getTag({\n    args,\n    component\n  }) {\n    return args ? combine([args.tag, component[DIRTY_TAG]]) : component[DIRTY_TAG];\n  }\n\n  didCreate({\n    component,\n    environment\n  }) {\n    if (environment.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      argsRevision,\n      environment\n    } = bucket;\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      environment.extra.debugRenderTree.update(bucket);\n    }\n\n    bucket.finalizer = _instrumentStart('render.component', rerenderInstrumentDetails, component);\n\n    if (args && !validateTag(args.tag, argsRevision)) {\n      let props = processComponentArgs(args);\n      bucket.argsRevision = valueForTag(args.tag);\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 (environment.isInteractive) {\n      component.trigger('willUpdate');\n      component.trigger('willRender');\n    }\n  }\n\n  didUpdateLayout(bucket, bounds) {\n    bucket.finalize();\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.environment.extra.debugRenderTree.didRender(bucket, bounds);\n    }\n  }\n\n  didUpdate({\n    component,\n    environment\n  }) {\n    if (environment.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};\nconst CURLY_COMPONENT_MANAGER = new CurlyComponentManager();\nclass CurlyComponentDefinition {\n  constructor(name, ComponentClass, template$$1, args) {\n    this.name = name;\n    this.ComponentClass = ComponentClass;\n    this.template = template$$1;\n    this.args = args;\n    this.manager = CURLY_COMPONENT_MANAGER;\n    this.state = {\n      name,\n      ComponentClass,\n      template: template$$1,\n      capabilities: CURLY_CAPABILITIES\n    };\n  }\n\n}\n\nclass RootComponentManager extends CurlyComponentManager {\n  constructor(component) {\n    super();\n    this.component = component;\n  }\n\n  getJitStaticLayout(_state) {\n    const template = this.templateFor(this.component);\n    return unwrapTemplate(template).asWrappedLayout();\n  }\n\n  create(environment, state, _args, 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 (environment.isInteractive) {\n        component.trigger('willRender');\n      }\n\n      component._transitionTo('hasElement');\n\n      if (environment.isInteractive) {\n        component.trigger('willInsertElement');\n      }\n    }\n\n    if (DEBUG) {\n      processComponentInitializationAssertions(component, {});\n    }\n\n    let bucket = new ComponentStateBucket(environment, component, null, finalizer, hasWrappedElement);\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      environment.extra.debugRenderTree.create(bucket, {\n        type: 'component',\n        name: state.name,\n        args: EMPTY_ARGS,\n        instance: component,\n        template: state.template\n      });\n    }\n\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: false,\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};\nclass RootComponentDefinition {\n  constructor(component) {\n    this.component = component;\n    let manager = new RootComponentManager(component);\n    this.manager = manager;\n    let factory = getFactoryFor(component);\n    this.state = {\n      name: factory.fullName.slice(10),\n      capabilities: ROOT_CAPABILITIES,\n      ComponentClass: factory\n    };\n  }\n\n  getTag({\n    component\n  }) {\n    return component[DIRTY_TAG];\n  }\n\n}\n\n/* globals module, URL */\nlet nodeURL;\nlet parsingNode;\nfunction installProtocolForURL(environment) {\n  let protocol;\n\n  if (hasDOM) {\n    protocol = browserProtocolForURL.call(environment, 'foobar:baz');\n  } // Test to see if our DOM implementation parses\n  // and normalizes URLs.\n\n\n  if (protocol === 'foobar:') {\n    // Swap in the method that doesn't do this test now that\n    // we know it works.\n    environment.protocolForURL = browserProtocolForURL;\n  } else if (typeof URL === 'object') {\n    // URL globally provided, likely from FastBoot's sandbox\n    nodeURL = URL;\n    environment.protocolForURL = nodeProtocolForURL;\n  } else if (typeof module !== 'undefined' && typeof module.require === 'function') {\n    // Otherwise, we need to fall back to our own URL parsing.\n    // Global `require` is shadowed by Ember's loader so we have to use the fully\n    // qualified `module.require`.\n    // tslint:disable-next-line:no-require-imports\n    nodeURL = module.require('url');\n    environment.protocolForURL = nodeProtocolForURL;\n  } else {\n    throw new Error('Could not find valid URL parsing mechanism for URL Sanitization');\n  }\n}\n\nfunction browserProtocolForURL(url) {\n  if (!parsingNode) {\n    parsingNode = document.createElement('a');\n  }\n\n  parsingNode.href = url;\n  return parsingNode.protocol;\n}\n\nfunction nodeProtocolForURL(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\nlet GUID = 0;\n\nfunction isPathNode(node) {\n  return node.type === 'root' || node.type === 'argument' || node.type === 'property' || node.type === 'iterator';\n}\n\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    assert('BUG: double release?', this.value !== null);\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}\n\nconst _repeat = String.prototype.repeat || function (count) {\n  return new Array(count + 1).join(this);\n};\n\nfunction repeatString(str, count) {\n  return _repeat.call(str, count);\n}\n\nclass DebugRenderTree {\n  constructor() {\n    this.stack = new Stack();\n    this.refs = new WeakMap();\n    this.roots = new Set();\n    this.nodes = new WeakMap();\n    this.pathNodes = new WeakMap();\n  }\n\n  begin() {\n    this.reset();\n  }\n\n  create(state, node) {\n    let internalNode = Object.assign({}, node, {\n      bounds: null,\n      refs: new Set(),\n      paths: 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  } // for dynamic layouts\n\n\n  setTemplate(state, template) {\n    this.nodeFor(state).template = template;\n  }\n\n  didRender(state, bounds) {\n    assert(`BUG: expecting ${this.stack.current}, got ${state}`, this.stack.current === state);\n    this.nodeFor(state).bounds = bounds;\n    this.exit();\n  }\n\n  willDestroy(state) {\n    expect(this.refs.get(state), 'BUG: missing ref').release();\n  }\n\n  commit() {\n    this.reset();\n  }\n\n  capture() {\n    return this.captureRefs(this.roots);\n  }\n\n  createPath(pathRef, name, type, parentRef) {\n    assert('BUG: Attempted to register a path that had already been registered', !this.pathNodes.has(pathRef));\n    let {\n      current\n    } = this.stack;\n\n    if (current === null) {\n      // Not currently in a rendering context, don't register the node\n      return;\n    }\n\n    let currentNode = expect(this.nodes.get(current), 'BUG: Attempted to create a path, but there is no current render node');\n    let parent;\n\n    if (parentRef === null) {\n      parent = currentNode;\n    } else {\n      let {\n        named\n      } = currentNode.args;\n      let refIndex = named.references.indexOf(parentRef);\n\n      if (refIndex !== -1) {\n        parent = {\n          parent: currentNode,\n          type: 'argument',\n          name: `@${named.names[refIndex]}`,\n          paths: new Set()\n        };\n      } else if (this.pathNodes.has(parentRef)) {\n        parent = this.pathNodes.get(parentRef);\n      } else {\n        // Some RootReferences get created before a component context has been\n        // setup (root, curly). This is mainly because the debugRenderTree is\n        // tied to the manager hooks, and not built into the VM directly. In\n        // these cases, we setup the path lazily when the first property is\n        // accessed.\n        this.createPath(parentRef, 'this', 'root', null);\n        parent = this.pathNodes.get(parentRef);\n      }\n    }\n\n    let pathNode = {\n      name,\n      type,\n      parent,\n      paths: new Set()\n    };\n    parent.paths.add(pathNode);\n    this.pathNodes.set(pathRef, pathNode);\n  }\n\n  logRenderStackForPath(pathRef) {\n    let node = expect(this.pathNodes.get(pathRef), 'BUG: Attempted to create a log for a path reference, but no node exist for that reference');\n    let pathParts = [];\n\n    while (node !== undefined && isPathNode(node)) {\n      if (node.type === 'iterator') {\n        // Iterator items are a combination of their own name (the key of the item) and\n        // their parent, the iterable itself.\n        let part = `${node.parent.name}[${node.name}]`;\n        pathParts.push(part);\n        node = node.parent;\n      } else {\n        pathParts.unshift(node.name);\n      }\n\n      node = node.parent;\n    }\n\n    let messageParts = [pathParts.join('.')];\n\n    while (node !== undefined) {\n      if (node.type === 'outlet' || node.name === '-top-level') {\n        node = node.parent;\n        continue;\n      }\n\n      messageParts.unshift(node.name);\n      node = node.parent;\n    }\n\n    return messageParts.map((part, index) => `${repeatString(' ', index * 2)}${part}`).join('\\n');\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      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    assert('BUG: unbalanced pop', this.stack.size !== 0);\n    this.stack.pop();\n  }\n\n  nodeFor(state) {\n    return expect(this.nodes.get(state), 'BUG: missing node');\n  }\n\n  appendChild(node, state) {\n    assert('BUG: child already appended', !this.refs.has(state));\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: args.value(),\n      instance,\n      template,\n      bounds,\n      children\n    };\n  }\n\n  captureTemplate({\n    template\n  }) {\n    return template && unwrapTemplate(template).referrer.moduleName || null;\n  }\n\n  captureBounds(node) {\n    let bounds = expect(node.bounds, 'BUG: missing 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\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  @method each-in\n  @for Ember.Templates.helpers\n  @public\n  @since 2.1.0\n*/\n\nclass EachInReference {\n  constructor(inner) {\n    this.inner = inner;\n    this.valueTag = createUpdatableTag();\n    this.tag = combine([inner.tag, this.valueTag]);\n  }\n\n  value() {\n    let iterable = this.inner.value();\n    let tag = 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    updateTag(this.valueTag, tag);\n    return new EachInWrapper(iterable);\n  }\n\n  get(key) {\n    return this.inner.get(key);\n  }\n\n}\n\nclass EachInWrapper {\n  constructor(inner) {\n    this.inner = inner;\n  }\n\n}\nfunction eachIn (args) {\n  return new EachInReference(args.positional.at(0));\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) {\n    super(array.length);\n    this.array = array;\n  }\n\n  static from(iterable) {\n    return iterable.length > 0 ? new this(iterable) : null;\n  }\n\n  static fromForEachable(object) {\n    let array = [];\n    object.forEach(item => array.push(item));\n    return this.from(array);\n  }\n\n  valueFor(position) {\n    return this.array[position];\n  }\n\n}\n\nclass EmberArrayIterator extends BoundedIterator {\n  constructor(array) {\n    super(array.length);\n    this.array = array;\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 {\n    return Boolean(predicate);\n  }\n}\n\n// Setup global environment\n// Autotracking\n\nsetPropertyDidChange(() => backburner.ensureInstance());\n\nif (DEBUG) {\n  setAutotrackingTransactionEnv({\n    assert(message) {\n      assert(message, false);\n    },\n\n    deprecate(message) {\n      deprecate(message, false, {\n        id: 'autotracking.mutation-after-consumption',\n        until: '4.0.0'\n      });\n    },\n\n    debugMessage(obj, keyName) {\n      let dirtyString = keyName ? `\\`${keyName}\\` on \\`${getDebugName(obj)}\\`` : `\\`${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} // Destruction\n\n\nsetScheduleDestroy((destroyable, destructor) => {\n  schedule('actions', null, destructor, destroyable);\n});\nsetScheduleDestroyed(finalizeDestructor => {\n  schedule('destroy', null, finalizeDestructor);\n});\nclass EmberEnvironmentExtra {\n  constructor(owner) {\n    this.owner = owner;\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      this._debugRenderTree = new DebugRenderTree();\n    }\n  }\n\n  get debugRenderTree() {\n    if (ENV._DEBUG_RENDER_TREE) {\n      return this._debugRenderTree;\n    } else {\n      throw new Error(\"Can't access debug render tree outside of the inspector (_DEBUG_RENDER_TREE flag is disabled)\");\n    }\n  }\n\n  begin() {\n    if (ENV._DEBUG_RENDER_TREE) {\n      this.debugRenderTree.begin();\n    }\n  }\n\n  commit() {\n    if (ENV._DEBUG_RENDER_TREE) {\n      this.debugRenderTree.commit();\n    }\n  }\n\n}\nclass EmberEnvironmentDelegate {\n  constructor(owner, isInteractive) {\n    this.toBool = toBool;\n    this.toIterator = toIterator;\n    this.getProp = _getProp;\n    this.getPath = get;\n    this.setPath = set;\n    this.extra = new EmberEnvironmentExtra(owner);\n    this.isInteractive = isInteractive;\n    installProtocolForURL(this);\n  } // this gets clobbered by installPlatformSpecificProtocolForURL\n  // it really should just delegate to a platform specific injection\n\n\n  protocolForURL(s) {\n    return s;\n  }\n\n  getTemplatePathDebugContext(pathRef) {\n    let stack = this.extra.debugRenderTree.logRenderStackForPath(pathRef);\n    return `While rendering:\\n\\n${stack}`;\n  }\n\n  setTemplatePathDebugContext(pathRef, desc, parentRef) {\n    let type = 'root';\n\n    if (pathRef instanceof IterationItemReference) {\n      type = 'iterator';\n    } else if (pathRef instanceof PropertyReference) {\n      type = 'property';\n    }\n\n    this.extra.debugRenderTree.createPath(pathRef, desc, type, parentRef);\n  }\n\n  onTransactionBegin() {\n    this.extra.begin();\n  }\n\n  onTransactionCommit() {\n    this.extra.commit();\n  }\n\n}\n\nif (DEBUG) {\n  class StyleAttributeManager extends SimpleDynamicAttribute {\n    set(dom, value, env) {\n      warn(constructStyleDeprecationMessage(value), (() => {\n        if (value === null || value === undefined || isHTMLSafe(value)) {\n          return true;\n        }\n\n        return false;\n      })(), {\n        id: 'ember-htmlbars.style-xss-warning'\n      });\n      super.set(dom, value, env);\n    }\n\n    update(value, env) {\n      warn(constructStyleDeprecationMessage(value), (() => {\n        if (value === null || value === undefined || isHTMLSafe(value)) {\n          return true;\n        }\n\n        return false;\n      })(), {\n        id: 'ember-htmlbars.style-xss-warning'\n      });\n      super.update(value, env);\n    }\n\n  }\n\n  EmberEnvironmentDelegate.prototype.attributeFor = function (element, attribute, isTrusting, namespace) {\n    if (attribute === 'style' && !isTrusting) {\n      return new StyleAttributeManager({\n        element,\n        name: attribute,\n        namespace\n      });\n    }\n\n    return dynamicAttribute(element, attribute, namespace);\n  };\n}\n\nconst CAPABILITIES$1 = {\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};\nfunction capabilities(managerAPI, options = {}) {\n  assert('Invalid component manager compatibility specified', managerAPI === '3.4' || managerAPI === '3.13');\n  let updateHook = true;\n\n  {\n    updateHook = managerAPI === '3.13' ? Boolean(options.updateHook) : true;\n  }\n\n  return {\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 extends AbstractManager {\n  create(env, definition, args) {\n    const {\n      delegate\n    } = definition;\n    const capturedArgs = args.capture();\n    const namedArgs = capturedArgs.named;\n    let value;\n    let namedArgsProxy = {};\n\n    {\n      let getTag = key => {\n        return namedArgs.get(key).tag;\n      };\n\n      if (HAS_NATIVE_PROXY) {\n        let handler = {\n          get(_target, prop) {\n            if (namedArgs.has(prop)) {\n              let ref = namedArgs.get(prop);\n              consumeTag(ref.tag);\n              return ref.value();\n            } else if (prop === CUSTOM_TAG_FOR) {\n              return getTag;\n            }\n          },\n\n          has(_target, prop) {\n            return namedArgs.has(prop);\n          },\n\n          ownKeys(_target) {\n            return namedArgs.names;\n          },\n\n          getOwnPropertyDescriptor(_target, prop) {\n            assert('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()', namedArgs.has(prop));\n            return {\n              enumerable: true,\n              configurable: true\n            };\n          }\n\n        };\n\n        if (DEBUG) {\n          handler.set = function (_target, prop) {\n            assert(`You attempted to set ${definition.ComponentClass.class}#${String(prop)} on a components arguments. Component arguments are immutable and cannot be updated directly, they always represent the values that are passed to your component. If you want to set default values, you should use a getter instead`);\n            return false;\n          };\n        }\n\n        namedArgsProxy = new Proxy(namedArgsProxy, handler);\n      } else {\n        Object.defineProperty(namedArgsProxy, CUSTOM_TAG_FOR, {\n          configurable: false,\n          enumerable: false,\n          value: getTag\n        });\n        namedArgs.names.forEach(name => {\n          Object.defineProperty(namedArgsProxy, name, {\n            enumerable: true,\n            configurable: true,\n\n            get() {\n              let ref = namedArgs.get(name);\n              consumeTag(ref.tag);\n              return ref.value();\n            }\n\n          });\n        });\n      }\n\n      value = {\n        named: namedArgsProxy,\n        positional: capturedArgs.positional.value()\n      };\n    }\n\n    const component = delegate.createComponent(definition.ComponentClass.class, value);\n    let bucket = new CustomComponentState(delegate, component, capturedArgs, env, namedArgsProxy);\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      env.extra.debugRenderTree.create(bucket, {\n        type: 'component',\n        name: definition.name,\n        args: args.capture(),\n        instance: component,\n        template: definition.template\n      });\n      registerDestructor(bucket, () => {\n        env.extra.debugRenderTree.willDestroy(bucket);\n      });\n    }\n\n    return bucket;\n  }\n\n  update(bucket) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.env.extra.debugRenderTree.update(bucket);\n    }\n\n    let {\n      delegate,\n      component,\n      args,\n      namedArgsProxy\n    } = bucket;\n    let value;\n\n    {\n      value = {\n        named: namedArgsProxy,\n        positional: args.positional.value()\n      };\n    }\n\n    if (hasUpdateHook(delegate)) {\n      delegate.updateComponent(component, value);\n    }\n  }\n\n  didCreate({\n    delegate,\n    component\n  }) {\n    if (hasAsyncLifeCycleCallbacks(delegate)) {\n      delegate.didCreateComponent(component);\n    }\n  }\n\n  didUpdate({\n    delegate,\n    component\n  }) {\n    if (hasAsyncUpdateHook(delegate)) {\n      delegate.didUpdateComponent(component);\n    }\n  }\n\n  getContext({\n    delegate,\n    component\n  }) {\n    delegate.getContext(component);\n  }\n\n  getSelf({\n    env,\n    delegate,\n    component\n  }) {\n    return new ComponentRootReference(delegate.getContext(component), env);\n  }\n\n  getDestroyable(bucket) {\n    return bucket;\n  }\n\n  getCapabilities({\n    delegate\n  }) {\n    return Object.assign({}, CAPABILITIES$1, {\n      updateHook: ENV._DEBUG_RENDER_TREE || delegate.capabilities.updateHook\n    });\n  }\n\n  getTag({\n    args\n  }) {\n    if (isConstTagged(args)) {\n      // returning a const tag skips the update hook (VM BUG?)\n      return createTag();\n    } else {\n      return args.tag;\n    }\n  }\n\n  didRenderLayout(bucket, bounds) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.env.extra.debugRenderTree.didRender(bucket, bounds);\n    }\n  }\n\n  didUpdateLayout(bucket, bounds) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.env.extra.debugRenderTree.didRender(bucket, bounds);\n    }\n  }\n\n  getJitStaticLayout(state) {\n    return unwrapTemplate(state.template).asLayout();\n  }\n\n}\nconst CUSTOM_COMPONENT_MANAGER = new CustomComponentManager();\n/**\n * Stores internal state about a component instance after it's been created.\n */\n\nclass CustomComponentState {\n  constructor(delegate, component, args, env, namedArgsProxy) {\n    this.delegate = delegate;\n    this.component = component;\n    this.args = args;\n    this.env = env;\n    this.namedArgsProxy = namedArgsProxy;\n\n    if (hasDestructors(delegate)) {\n      registerDestructor(this, () => delegate.destroyComponent(component));\n    }\n  }\n\n}\nclass CustomManagerDefinition {\n  constructor(name, ComponentClass, delegate, template) {\n    this.name = name;\n    this.ComponentClass = ComponentClass;\n    this.delegate = delegate;\n    this.template = template;\n    this.manager = CUSTOM_COMPONENT_MANAGER;\n    this.state = {\n      name,\n      ComponentClass,\n      template,\n      delegate\n    };\n  }\n\n}\n\nclass InternalComponentDefinition {\n  constructor(manager, ComponentClass, layout) {\n    this.manager = manager;\n    this.state = {\n      ComponentClass,\n      layout\n    };\n  }\n\n}\nclass InternalManager extends AbstractManager {\n  constructor(owner) {\n    super();\n    this.owner = owner;\n  }\n\n  getJitStaticLayout({\n    layout: template\n  }) {\n    return unwrapTemplate(template).asLayout();\n  }\n\n}\n\nconst CAPABILITIES$2 = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: ENV._DEBUG_RENDER_TREE,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: false,\n  updateHook: ENV._DEBUG_RENDER_TREE,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false\n};\nclass TemplateOnlyComponentManager extends AbstractManager {\n  getJitStaticLayout({\n    template\n  }) {\n    return unwrapTemplate(template).asLayout();\n  }\n\n  getCapabilities() {\n    return CAPABILITIES$2;\n  }\n\n  create(environment, {\n    name,\n    template\n  }, args) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      let bucket = {\n        environment\n      };\n      environment.extra.debugRenderTree.create(bucket, {\n        type: 'component',\n        name: name,\n        args: args.capture(),\n        instance: null,\n        template\n      });\n      registerDestructor(bucket, () => {\n        bucket.environment.extra.debugRenderTree.willDestroy(bucket);\n      });\n      return bucket;\n    } else {\n      return null;\n    }\n  }\n\n  getSelf() {\n    return NULL_REFERENCE;\n  }\n\n  getTag() {\n    if (ENV._DEBUG_RENDER_TREE) {\n      // returning a const tag skips the update hook (VM BUG?)\n      return createTag();\n    } else {\n      // an outlet has no hooks\n      return CONSTANT_TAG;\n    }\n  }\n\n  getDestroyable(bucket) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      return bucket;\n    } else {\n      return null;\n    }\n  }\n\n  didRenderLayout(bucket, bounds) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.environment.extra.debugRenderTree.didRender(bucket, bounds);\n    }\n  }\n\n  update(bucket) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.environment.extra.debugRenderTree.update(bucket);\n    }\n  }\n\n  didUpdateLayout(bucket, bounds) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.environment.extra.debugRenderTree.didRender(bucket, bounds);\n    }\n  }\n\n}\nconst MANAGER = new TemplateOnlyComponentManager();\nclass TemplateOnlyComponentDefinition {\n  constructor(name, template) {\n    this.name = name;\n    this.template = template;\n    this.manager = MANAGER;\n  }\n\n  get state() {\n    return this;\n  }\n\n}\n\nlet helper$1;\n\nif (DEBUG) {\n  class ComponentAssertionReference {\n    constructor(component, message) {\n      this.component = component;\n      this.message = message;\n      this.tag = component.tag;\n    }\n\n    value() {\n      let value = this.component.value();\n      assert(this.message, typeof value !== 'string');\n      return value;\n    }\n\n    get(property) {\n      return this.component.get(property);\n    }\n\n  }\n\n  helper$1 = args => new ComponentAssertionReference(args.positional.at(0), args.positional.at(1).value());\n} else {\n  helper$1 = args => args.positional.at(0);\n}\n\nvar componentAssertionHelper = helper$1;\n\nlet helper$2;\n\nif (DEBUG) {\n  class InElementNullCheckReference {\n    constructor(inner) {\n      this.inner = inner;\n      this.tag = inner.tag;\n    }\n\n    value() {\n      let value = this.inner.value();\n      assert('You cannot pass a null or undefined destination element to in-element', value !== null && value !== undefined);\n      return value;\n    }\n\n    get(key) {\n      return this.inner.get(key);\n    }\n\n  }\n\n  helper$2 = args => new InElementNullCheckReference(args.positional.at(0));\n} else {\n  helper$2 = args => args.positional.at(0);\n}\n\nvar inElementNullCheckHelper = helper$2;\n\nfunction normalizeClass({\n  positional\n}) {\n  let classNameParts = positional.at(0).value().split('.');\n  let className = classNameParts[classNameParts.length - 1];\n  let value = positional.at(1).value();\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\nfunction normalizeClassHelper (args, vm) {\n  return new HelperRootReference(normalizeClass, args.capture(), vm.env);\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\nclass TrackArrayReference {\n  constructor(inner) {\n    this.inner = inner;\n    this.valueTag = createUpdatableTag();\n    this.tag = combine([inner.tag, this.valueTag]);\n  }\n\n  value() {\n    let iterable = this.inner.value();\n    let tag = isObject(iterable) ? tagForProperty(iterable, '[]') : CONSTANT_TAG;\n    updateTag(this.valueTag, tag);\n    return iterable;\n  }\n\n  get(key) {\n    return this.inner.get(key);\n  }\n\n}\n\nfunction trackArray(args) {\n  return new TrackArrayReference(args.positional.at(0));\n}\n\n/**\n@module ember\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 Dade'\n     'Yehuda Katz'\n     this.myOtherPerson}}\n   />\n   ```\n    or\n   ```handlebars\n   {{my-component people=(array\n     'Tom Dade'\n     'Yehuda Katz'\n     this.myOtherPerson)\n   }}\n   ```\n\n   Would result in an object such as:\n\n   ```js\n   ['Tom Date', '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   @for Ember.Templates.helpers\n   @param {Array} options\n   @return {Array} Array\n   @since 3.8.0\n   @public\n */\nfunction array (args) {\n  return args.positional.capture();\n}\n\nconst isEmpty = value => {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n};\n\nconst normalizeTextValue = value => {\n  if (isEmpty(value)) {\n    return '';\n  }\n\n  return String(value);\n};\n/**\n@module ember\n*/\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  @for Ember.Templates.helpers\n  @since 1.13.0\n*/\n\n\nfunction concat({\n  positional\n}) {\n  return positional.value().map(normalizeTextValue).join('');\n}\n\nfunction concat$1 (args, vm) {\n  return new HelperRootReference(concat, args.capture(), vm.env);\n}\n\nfunction buildUntouchableThis(source) {\n  let context = null;\n\n  if (DEBUG && HAS_NATIVE_PROXY) {\n    let assertOnProperty = property => {\n      assert(`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 usage of \\`@action\\`.`);\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\nconst context = buildUntouchableThis('`fn` helper');\n/**\n@module ember\n*/\n\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    @action\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 `@action` to ensure that `handleSelected` is\n  properly bound to the `items-list`, but let's explore what happens if we\n  left out `@action`:\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 `@action` 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  @for Ember.Templates.helpers\n  @public\n  @since 3.11.0\n*/\n\nfunction fn({\n  positional\n}, env) {\n  let callbackRef = positional.at(0);\n  assert(`You must pass a function as the \\`fn\\` helpers first argument.`, callbackRef !== undefined);\n\n  if (DEBUG && typeof callbackRef[INVOKE] !== 'function') {\n    let callback = callbackRef.value();\n    assert(`You must pass a function as the \\`fn\\` helpers first argument, you passed ${callback === null ? 'null' : typeof callback}. ${env.getTemplatePathDebugContext(callbackRef)}`, typeof callback === 'function');\n  }\n\n  return (...invocationArgs) => {\n    let [fn, ...args] = positional.value();\n\n    if (typeof callbackRef[INVOKE] === 'function') {\n      // references with the INVOKE symbol expect the function behind\n      // the symbol to be bound to the reference\n      return callbackRef[INVOKE](...args, ...invocationArgs);\n    } else {\n      return fn.call(context, ...args, ...invocationArgs);\n    }\n  };\n}\n\nfunction fn$1 (args, vm) {\n  let callback = fn;\n\n  if (DEBUG) {\n    callback = args => {\n      return fn(args, vm.env);\n    };\n  }\n\n  return new HelperRootReference(callback, args.capture(), vm.env);\n}\n\n/**\n@module ember\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    @action\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  @for Ember.Templates.helpers\n  @since 2.1.0\n */\n\nfunction get$1 (args, vm) {\n  let sourceReference = args.positional.at(0);\n  let pathReference = args.positional.at(1);\n\n  if (isConstTagged(pathReference)) {\n    // Since the path is constant, we can create a normal chain of property\n    // references. The source reference will update like normal, and all of the\n    // child references will update accordingly.\n    let path = pathReference.value();\n\n    if (path === undefined || path === null || path === '') {\n      return NULL_REFERENCE;\n    } else if (typeof path === 'string' && path.indexOf('.') > -1) {\n      return referenceFromParts(sourceReference, path.split('.'));\n    } else {\n      return sourceReference.get(String(path));\n    }\n  } else {\n    return new GetHelperRootReference(args.capture(), vm.env);\n  }\n}\n\nfunction get$2({\n  positional\n}) {\n  let source = positional.at(0).value();\n\n  if (isObject(source)) {\n    let path = positional.at(1).value();\n    return get(source, String(path));\n  }\n}\n\nclass GetHelperRootReference extends HelperRootReference {\n  constructor(args, env) {\n    super(get$2, args, env);\n    this.sourceReference = args.positional.at(0);\n    this.pathReference = args.positional.at(1);\n  }\n\n  [UPDATE_REFERENCED_VALUE](value) {\n    let source = this.sourceReference.value();\n\n    if (isObject(source)) {\n      let path = String(this.pathReference.value());\n      set(source, path, value);\n    }\n  }\n\n}\n\n/**\n@module ember\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   @for Ember.Templates.helpers\n   @param {Object} options\n   @return {Object} Hash\n   @since 2.3.0\n   @public\n */\nfunction hash (args) {\n  return args.named.capture();\n}\n\n/**\n@module ember\n*/\n\nfunction ifHelper({\n  positional\n}) {\n  assert('The inline form of the `if` helper expects two or three arguments, e.g. `{{if trialExpired \"Expired\" expiryDate}}`.', positional.length === 3 || positional.length === 2);\n  let condition = positional.at(0);\n  let truthyValue = positional.at(1);\n  let falsyValue = positional.at(2);\n\n  if (toBool(condition.value()) === true) {\n    return truthyValue.value();\n  } else {\n    return falsyValue !== undefined ? falsyValue.value() : undefined;\n  }\n}\n\nfunction unless({\n  positional\n}) {\n  assert('The inline form of the `unless` helper expects two or three arguments, e.g. `{{unless isFirstLogin \"Welcome back!\"}}`.', positional.length === 3 || positional.length === 2);\n  let condition = positional.at(0);\n  let truthyValue = positional.at(2);\n  let falsyValue = positional.at(1);\n\n  if (toBool(condition.value()) === true) {\n    return truthyValue !== undefined ? truthyValue.value() : undefined;\n  } else {\n    return falsyValue.value();\n  }\n}\n/**\n  The `if` helper allows you to conditionally render one of two branches,\n  depending on the \"truthiness\" of a property.\n  For example the following values are all falsey: `false`, `undefined`, `null`, `\"\"`, `0`, `NaN` or an empty array.\n\n  This helper has two forms, block and inline.\n\n  ## Block form\n\n  You can use the block form of `if` to conditionally render a section of the template.\n\n  To use it, pass the conditional value to the `if` helper,\n  using the block form to wrap the section of template you want to conditionally render.\n  Like so:\n\n  ```app/templates/application.hbs\n  <Weather />\n  ```\n\n  ```app/components/weather.hbs\n  {{! will not render because greeting is undefined}}\n  {{#if @isRaining}}\n    Yes, grab an umbrella!\n  {{/if}}\n  ```\n\n  You can also define what to show if the property is falsey by using\n  the `else` helper.\n\n  ```app/components/weather.hbs\n  {{#if @isRaining}}\n    Yes, grab an umbrella!\n  {{else}}\n    No, it's lovely outside!\n  {{/if}}\n  ```\n\n  You are also able to combine `else` and `if` helpers to create more complex\n  conditional logic.\n\n  For the following template:\n\n   ```app/components/weather.hbs\n  {{#if @isRaining}}\n    Yes, grab an umbrella!\n  {{else if @isCold}}\n    Grab a coat, it's chilly!\n  {{else}}\n    No, it's lovely outside!\n  {{/if}}\n  ```\n\n  If you call it by saying `isCold` is true:\n\n  ```app/templates/application.hbs\n  <Weather @isCold={{true}} />\n  ```\n\n  Then `Grab a coat, it's chilly!` will be rendered.\n\n  ## Inline form\n\n  The inline `if` helper conditionally renders a single property or string.\n\n  In this form, the `if` helper receives three arguments, the conditional value,\n  the value to render when truthy, and the value to render when falsey.\n\n  For example, if `useLongGreeting` is truthy, the following:\n\n  ```app/templates/application.hbs\n  <Greeting @useLongGreeting={{true}} />\n  ```\n\n  ```app/components/greeting.hbs\n  {{if @useLongGreeting \"Hello\" \"Hi\"}} Alex\n  ```\n\n  Will render:\n\n  ```html\n  Hello Alex\n  ```\n\n  One detail to keep in mind is that both branches of the `if` helper will be evaluated,\n  so if you have `{{if condition \"foo\" (expensive-operation \"bar\")`,\n  `expensive-operation` will always calculate.\n\n  @method if\n  @for Ember.Templates.helpers\n  @public\n*/\n\n\nfunction inlineIf(args, vm) {\n  return new HelperRootReference(ifHelper, args.capture(), vm.env);\n}\n/**\n  The `unless` helper is the inverse of the `if` helper. It displays if a value\n  is falsey (\"not true\" or \"is false\"). Example values that will display with\n  `unless`: `false`, `undefined`, `null`, `\"\"`, `0`, `NaN` or an empty array.\n\n  ## Inline form\n\n  The inline `unless` helper conditionally renders a single property or string.\n  This helper acts like a ternary operator. If the first property is falsy,\n  the second argument will be displayed, otherwise, the third argument will be\n  displayed\n\n  For example, if you pass a falsey `useLongGreeting` to the `Greeting` component:\n\n  ```app/templates/application.hbs\n  <Greeting @useLongGreeting={{false}} />\n  ```\n\n  ```app/components/greeting.hbs\n  {{unless @useLongGreeting \"Hi\" \"Hello\"}} Ben\n  ```\n\n  Then it will display:\n\n  ```html\n  Hi Ben\n  ```\n\n  ## Block form\n\n  Like the `if` helper, the `unless` helper also has a block form.\n\n  The following will not render anything:\n\n  ```app/templates/application.hbs\n  <Greeting />\n  ```\n\n  ```app/components/greeting.hbs\n  {{#unless @greeting}}\n    No greeting was found. Why not set one?\n  {{/unless}}\n  ```\n\n  You can also use an `else` helper with the `unless` block. The\n  `else` will display if the value is truthy.\n\n  If you have the following component:\n\n  ```app/components/logged-in.hbs\n  {{#unless @userData}}\n    Please login.\n  {{else}}\n    Welcome back!\n  {{/unless}}\n  ```\n\n  Calling it with a truthy `userData`:\n\n  ```app/templates/application.hbs\n  <LoggedIn @userData={{hash username=\"Zoey\"}} />\n  ```\n\n  Will render:\n\n  ```html\n  Welcome back!\n  ```\n\n  and calling it with a falsey `userData`:\n\n  ```app/templates/application.hbs\n  <LoggedIn @userData={{false}} />\n  ```\n\n  Will render:\n\n  ```html\n  Please login.\n  ```\n\n  @method unless\n  @for Ember.Templates.helpers\n  @public\n*/\n\nfunction inlineUnless(args, vm) {\n  return new HelperRootReference(unless, args.capture(), vm.env);\n}\n\n/**\n@module ember\n*/\n\n/**\n  `log` allows you to output the value of variables in the current rendering\n  context. `log` also accepts primitive types such as strings or numbers.\n\n  ```handlebars\n  {{log \"myVariable:\" myVariable }}\n  ```\n\n  @method log\n  @for Ember.Templates.helpers\n  @param {Array} params\n  @public\n*/\n\nfunction log({\n  positional\n}) {\n  /* eslint-disable no-console */\n  console.log(...positional.value());\n  /* eslint-enable no-console */\n}\n\nfunction log$1 (args, vm) {\n  return new HelperRootReference(log, args.capture(), vm.env);\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\nfunction queryParams({\n  positional,\n  named\n}) {\n  // tslint:disable-next-line:max-line-length\n  assert(\"The `query-params` helper only accepts hash parameters, e.g. (query-params queryParamPropertyName='foo') as opposed to just (query-params 'foo')\", positional.value().length === 0);\n  return new QueryParams(assign({}, named.value()));\n}\n\nfunction queryParams$1 (args, vm) {\n  return new HelperRootReference(queryParams, args.capture(), vm.env);\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\nclass ReadonlyReference extends RootReference {\n  constructor(inner, env) {\n    super(env);\n    this.inner = inner;\n    this.tag = inner.tag;\n  }\n\n  get [INVOKE]() {\n    return this.inner[INVOKE];\n  }\n\n  value() {\n    return this.inner.value();\n  }\n\n  get(key) {\n    return this.inner.get(key);\n  }\n\n}\n\nfunction readonly (args, vm) {\n  let ref = unMut(args.positional.at(0));\n  return new ReadonlyReference(ref, vm.env);\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\nfunction unbound (args, vm) {\n  assert('unbound helper cannot be called with multiple params or hash params', args.positional.length === 1 && args.named.length === 0);\n  return new UnboundRootReference(args.positional.at(0).value(), vm.env);\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, actionName, actionArgs, namedArgs, positionalArgs, implicitTarget, dom, tag) {\n    this.element = element;\n    this.actionId = actionId;\n    this.actionName = actionName;\n    this.actionArgs = actionArgs;\n    this.namedArgs = namedArgs;\n    this.positional = positionalArgs;\n    this.implicitTarget = implicitTarget;\n    this.dom = dom;\n    this.eventName = this.getEventName();\n    this.tag = tag;\n    registerDestructor(this, () => ActionHelper.unregisterAction(this));\n  }\n\n  getEventName() {\n    return this.namedArgs.get('on').value() || '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] = this.actionArgs[i].value();\n    }\n\n    return result;\n  }\n\n  getTarget() {\n    let {\n      implicitTarget,\n      namedArgs\n    } = this;\n    let target;\n\n    if (namedArgs.has('target')) {\n      target = namedArgs.get('target').value();\n    } else {\n      target = implicitTarget.value();\n    }\n\n    return target;\n  }\n\n  handler(event) {\n    let {\n      actionName,\n      namedArgs\n    } = this;\n    let bubbles = namedArgs.get('bubbles');\n    let preventDefault = namedArgs.get('preventDefault');\n    let allowedKeys = namedArgs.get('allowedKeys');\n    let target = this.getTarget();\n    let shouldBubble = bubbles.value() !== false;\n\n    if (!isAllowedEvent(event, allowedKeys.value())) {\n      return true;\n    }\n\n    if (preventDefault.value() !== 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        flaggedInstrument('interaction.ember-action', payload, () => {\n          actionName[INVOKE].apply(actionName, args);\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} // implements ModifierManager<Action>\n\nclass ActionModifierManager {\n  create(element, _state, args, _dynamicScope, dom) {\n    let {\n      named,\n      positional,\n      tag\n    } = args.capture();\n    let implicitTarget;\n    let actionName;\n    let actionNameRef;\n\n    if (positional.length > 1) {\n      implicitTarget = positional.at(0);\n      actionNameRef = positional.at(1);\n\n      if (actionNameRef[INVOKE]) {\n        actionName = actionNameRef;\n      } else {\n        let actionLabel = actionNameRef.propertyKey;\n        actionName = actionNameRef.value();\n        assert('You specified a quoteless path, `' + actionLabel + '`, 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    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.at(i));\n    }\n\n    let actionId = uuid();\n    let actionState = new ActionState(element, actionId, actionName, actionArgs, named, positional, implicitTarget, dom, tag);\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://emberjs.com/deprecations/v3.x#toc_action-mouseenter-leave-move'\n    });\n    return actionState;\n  }\n\n  install(actionState) {\n    let {\n      dom,\n      element,\n      actionId\n    } = actionState;\n    ActionHelper.registerAction(actionState);\n    dom.setAttribute(element, 'data-ember-action', '');\n    dom.setAttribute(element, `data-ember-action-${actionId}`, actionId);\n  }\n\n  update(actionState) {\n    let {\n      positional\n    } = actionState;\n    let actionNameRef = positional.at(1);\n\n    if (!actionNameRef[INVOKE]) {\n      actionState.actionName = actionNameRef.value();\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\nlet debugRenderMessage;\n\nif (DEBUG) {\n  debugRenderMessage = renderingStack => {\n    return `While rendering:\\n----------------\\n${renderingStack.replace(/^/gm, '  ')}`;\n  };\n}\n\nvar debugRenderMessage$1 = debugRenderMessage;\n\nfunction capabilities$1(managerAPI, optionalFeatures = {}) {\n  assert('Invalid modifier manager compatibility specified', managerAPI === '3.13');\n  return {\n    disableAutoTracking: Boolean(optionalFeatures.disableAutoTracking)\n  };\n}\nclass CustomModifierDefinition {\n  constructor(name, ModifierClass, delegate, isInteractive) {\n    this.name = name;\n    this.ModifierClass = ModifierClass;\n    this.delegate = delegate;\n    this.state = {\n      ModifierClass,\n      name,\n      delegate\n    };\n    this.manager = isInteractive ? CUSTOM_INTERACTIVE_MODIFIER_MANAGER : CUSTOM_NON_INTERACTIVE_MODIFIER_MANAGER;\n  }\n\n}\nclass CustomModifierState {\n  constructor(element, delegate, modifier, args) {\n    this.element = element;\n    this.delegate = delegate;\n    this.modifier = modifier;\n    this.args = args;\n    this.tag = createUpdatableTag();\n    registerDestructor(this, () => delegate.destroyModifier(modifier, args.value()));\n  }\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 InteractiveCustomModifierManager {\n  create(element, definition, args) {\n    let {\n      delegate,\n      ModifierClass\n    } = definition;\n    const capturedArgs = args.capture();\n    let instance = definition.delegate.createModifier(ModifierClass, capturedArgs.value());\n    return new CustomModifierState(element, delegate, instance, capturedArgs);\n  }\n\n  getTag({\n    args,\n    tag\n  }) {\n    return combine([tag, args.tag]);\n  }\n\n  install(state) {\n    let {\n      element,\n      args,\n      delegate,\n      modifier,\n      tag\n    } = state;\n    assert('Custom modifier managers must define their capabilities using the capabilities() helper function', typeof delegate.capabilities === 'object' && delegate.capabilities !== null);\n    let {\n      capabilities\n    } = delegate;\n\n    if (capabilities.disableAutoTracking === true) {\n      untrack(() => delegate.installModifier(modifier, element, args.value()));\n    } else {\n      let combinedTrackingTag = track(() => delegate.installModifier(modifier, element, args.value()), DEBUG && debugRenderMessage$1(`(instance of a \\`${getDebugName(modifier)}\\` modifier)`));\n      updateTag(tag, combinedTrackingTag);\n    }\n  }\n\n  update(state) {\n    let {\n      args,\n      delegate,\n      modifier,\n      tag\n    } = state;\n    let {\n      capabilities\n    } = delegate;\n\n    if (capabilities.disableAutoTracking === true) {\n      untrack(() => delegate.updateModifier(modifier, args.value()));\n    } else {\n      let combinedTrackingTag = track(() => delegate.updateModifier(modifier, args.value()), DEBUG && debugRenderMessage$1(`(instance of a \\`${getDebugName(modifier)}\\` modifier)`));\n      updateTag(tag, combinedTrackingTag);\n    }\n  }\n\n  getDestroyable(state) {\n    return state;\n  }\n\n}\n\nclass NonInteractiveCustomModifierManager {\n  create() {\n    return null;\n  }\n\n  getTag() {\n    return CONSTANT_TAG;\n  }\n\n  install() {}\n\n  update() {}\n\n  getDestroyable() {\n    return null;\n  }\n\n}\n\nconst CUSTOM_INTERACTIVE_MODIFIER_MANAGER = new InteractiveCustomModifierManager();\nconst CUSTOM_NON_INTERACTIVE_MODIFIER_MANAGER = new NonInteractiveCustomModifierManager();\n\nconst untouchableContext = buildUntouchableThis('`on` modifier');\n/**\n@module ember\n*/\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\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(owner, element, args) {\n    this.shouldUpdate = true;\n    this.owner = owner;\n    this.element = element;\n    this.args = args;\n    this.tag = args.tag;\n  }\n\n  updateFromArgs() {\n    let {\n      args\n    } = this;\n    let {\n      once,\n      passive,\n      capture\n    } = args.named.value();\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    assert('You must pass a valid DOM event name as the first argument to the `on` modifier', args.positional.at(0) !== undefined && typeof args.positional.at(0).value() === 'string');\n    let eventName = args.positional.at(0).value();\n\n    if (eventName !== this.eventName) {\n      this.eventName = eventName;\n      this.shouldUpdate = true;\n    }\n\n    let userProvidedCallbackReference = args.positional.at(1);\n\n    if (DEBUG) {\n      assert(`You must pass a function as the second argument to the \\`on\\` modifier.`, args.positional.at(1) !== undefined); // hardcoding `renderer:-dom` here because we guard for `this.isInteractive` before instantiating OnModifierState, it can never be created when the renderer is `renderer:-inert`\n\n      let renderer = expect(this.owner.lookup('renderer:-dom'), `BUG: owner is missing renderer:-dom`);\n      let stack = renderer.debugRenderTree.logRenderStackForPath(userProvidedCallbackReference);\n      let value = userProvidedCallbackReference.value();\n      assert(`You must pass a function as the second argument to the \\`on\\` modifier, you passed ${value === null ? 'null' : typeof value}. While rendering:\\n\\n${stack}`, typeof value === 'function');\n    }\n\n    let userProvidedCallback = userProvidedCallbackReference.value();\n\n    if (userProvidedCallback !== this.userProvidedCallback) {\n      this.userProvidedCallback = userProvidedCallback;\n      this.shouldUpdate = true;\n    }\n\n    assert(`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.`, args.positional.length === 2);\n    let needsCustomCallback = SUPPORTS_EVENT_OPTIONS === false && once ||\n    /* needs manual once implementation */\n    DEBUG && passive\n    /* needs passive enforcement */\n    ;\n\n    if (this.shouldUpdate) {\n      if (needsCustomCallback) {\n        let callback = this.callback = function (event) {\n          if (DEBUG && passive) {\n            event.preventDefault = () => {\n              assert(`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    @action\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 value\n  of `@post` and the click event. The click event will always be the last\n  argument passed to the handler because `{{fn}}` injects custom arguments\n  first.\n\n  ### Function Context\n\n  In the example above, we used `@action` to ensure that `likePost` is\n  properly bound to the `items-list`, but let's explore what happens if we\n  left out `@action`:\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 `@action` or other means) before passing into `on`!\n\n  @method on\n  @for Ember.Templates.helpers\n  @public\n  @since 3.11.0\n*/\n\n\nclass OnModifierManager {\n  constructor(owner, isInteractive) {\n    this.SUPPORTS_EVENT_OPTIONS = SUPPORTS_EVENT_OPTIONS;\n    this.isInteractive = isInteractive;\n    this.owner = owner;\n  }\n\n  get counters() {\n    return {\n      adds,\n      removes\n    };\n  }\n\n  create(element, _state, args) {\n    if (!this.isInteractive) {\n      return null;\n    }\n\n    const capturedArgs = args.capture();\n    return new OnModifierState(this.owner, element, capturedArgs);\n  }\n\n  getTag(state) {\n    if (state === null) {\n      return CONSTANT_TAG;\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\nconst CAPABILITIES$3 = {\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}; // TODO\n// This \"disables\" the \"@model\" feature by making the arg untypable syntatically\n// Delete this when EMBER_ROUTING_MODEL_ARG has shipped\n\nconst MODEL_ARG_NAME = 'model';\n\nclass MountManager extends AbstractManager {\n  getJitDynamicLayout(state, _) {\n    let templateFactory$$1 = state.engine.lookup('template:application');\n    let template = templateFactory$$1(state.engine);\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      state.environment.extra.debugRenderTree.setTemplate(state.controller, template);\n    }\n\n    return template;\n  }\n\n  getCapabilities() {\n    return CAPABILITIES$3;\n  }\n\n  create(environment, {\n    name\n  }, args) {\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 = environment.extra.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_ARG_NAME)) {\n      modelRef = args.named.get(MODEL_ARG_NAME);\n    }\n\n    if (modelRef === undefined) {\n      controller = controllerFactory.create();\n      self = new ComponentRootReference(controller, environment);\n      bucket = {\n        engine,\n        controller,\n        self,\n        environment\n      };\n    } else {\n      let model = modelRef.value();\n      controller = controllerFactory.create({\n        model\n      });\n      self = new ComponentRootReference(controller, environment);\n      bucket = {\n        engine,\n        controller,\n        self,\n        modelRef,\n        environment\n      };\n    }\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      environment.extra.debugRenderTree.create(bucket, {\n        type: 'engine',\n        name,\n        args: args.capture(),\n        instance: engine,\n        template: undefined\n      });\n      environment.extra.debugRenderTree.create(controller, {\n        type: 'route-template',\n        name: 'application',\n        args: args.capture(),\n        instance: controller,\n        // set in getDynamicLayout\n        template: undefined\n      });\n      registerDestructor(engine, () => {\n        environment.extra.debugRenderTree.willDestroy(controller);\n        environment.extra.debugRenderTree.willDestroy(bucket);\n      });\n    }\n\n    return bucket;\n  }\n\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n\n  getTag(state) {\n    let tag = CONSTANT_TAG;\n\n    if (state.modelRef) {\n      tag = state.modelRef.tag;\n    }\n\n    if (ENV._DEBUG_RENDER_TREE && isConstTag(tag)) {\n      tag = createTag();\n    }\n\n    return tag;\n  }\n\n  getDestroyable(bucket) {\n    return bucket.engine;\n  }\n\n  didRenderLayout(bucket, bounds) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.environment.extra.debugRenderTree.didRender(bucket.controller, bounds);\n      bucket.environment.extra.debugRenderTree.didRender(bucket, bounds);\n    }\n  }\n\n  update(bucket) {\n    let {\n      controller,\n      environment,\n      modelRef\n    } = bucket;\n\n    if (modelRef !== undefined) {\n      controller.set('model', modelRef.value());\n    }\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      environment.extra.debugRenderTree.update(bucket);\n      environment.extra.debugRenderTree.update(bucket.controller);\n    }\n  }\n\n  didUpdateLayout(bucket, bounds) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      bucket.environment.extra.debugRenderTree.didRender(bucket.controller, bounds);\n      bucket.environment.extra.debugRenderTree.didRender(bucket, bounds);\n    }\n  }\n\n}\n\nconst MOUNT_MANAGER = new MountManager();\nclass MountDefinition {\n  constructor(name) {\n    this.manager = MOUNT_MANAGER;\n    this.state = {\n      name\n    };\n  }\n\n}\n\n/**\n@module ember\n*/\nfunction mountHelper(args, vm) {\n  let env = vm.env;\n  let nameRef = args.positional.at(0);\n  let captured = null;\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 = args.named.names;\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  } // TODO: the functionality to create a proper CapturedArgument should be\n  // exported by glimmer, or that it should provide an overload for `curry`\n  // that takes `PreparedArguments`\n\n\n  if (args.named.has('model')) {\n    assert('[BUG] this should already be checked by the macro', args.named.length === 1);\n    let named = args.named.capture();\n    let {\n      tag\n    } = named; // TODO delete me after EMBER_ROUTING_MODEL_ARG has shipped\n\n    if (DEBUG && MODEL_ARG_NAME !== 'model') {\n      assert('[BUG] named._map is not null', named['_map'] === null);\n      named.names = [MODEL_ARG_NAME];\n    }\n\n    captured = {\n      tag,\n      positional: EMPTY_ARGS.positional,\n      named,\n      length: 1,\n\n      value() {\n        return {\n          named: this.named.value(),\n          positional: this.positional.value()\n        };\n      }\n\n    };\n  }\n\n  return new DynamicEngineReference(nameRef, env, captured);\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\nclass DynamicEngineReference {\n  constructor(nameRef, env, args) {\n    this.nameRef = nameRef;\n    this.env = env;\n    this.args = args;\n    this._lastName = null;\n    this._lastDef = null;\n    this.tag = nameRef.tag;\n  }\n\n  value() {\n    let {\n      env,\n      nameRef,\n      args\n    } = this;\n    let name = nameRef.value();\n\n    if (typeof name === 'string') {\n      if (this._lastName === name) {\n        return this._lastDef;\n      }\n\n      assert(`You used \\`{{mount '${name}'}}\\`, but the engine '${name}' can not be found.`, env.extra.owner.hasRegistration(`engine:${name}`));\n\n      if (!env.extra.owner.hasRegistration(`engine:${name}`)) {\n        return null;\n      }\n\n      this._lastName = name;\n      this._lastDef = curry(new MountDefinition(name), args);\n      return this._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      this._lastDef = null;\n      this._lastName = null;\n      return null;\n    }\n  }\n\n  get() {\n    return UNDEFINED_REFERENCE;\n  }\n\n}\n\n/**\n * Represents the root outlet.\n */\n\nclass RootOutletReference {\n  constructor(outletState) {\n    this.outletState = outletState;\n    this.tag = createTag();\n  }\n\n  get(key) {\n    return new PathReference(this, key);\n  }\n\n  value() {\n    return this.outletState;\n  }\n\n  update(state) {\n    this.outletState.outlets.main = state;\n    dirtyTag(this.tag);\n  }\n\n}\n/**\n * Represents the connected outlet.\n */\n\nclass OutletReference {\n  constructor(parentStateRef, outletNameRef) {\n    this.parentStateRef = parentStateRef;\n    this.outletNameRef = outletNameRef;\n    this.tag = combine([parentStateRef.tag, outletNameRef.tag]);\n  }\n\n  value() {\n    let outletState = this.parentStateRef.value();\n    let outlets = outletState === undefined ? undefined : outletState.outlets;\n    return outlets === undefined ? undefined : outlets[this.outletNameRef.value()];\n  }\n\n  get(key) {\n    return new PathReference(this, key);\n  }\n\n}\n/**\n * Outlet state is dirtied from root.\n * This just using the parent tag for dirtiness.\n */\n\nclass PathReference {\n  constructor(parent, key) {\n    this.parent = parent;\n    this.key = key;\n    this.tag = parent.tag;\n  }\n\n  get(key) {\n    return new PathReference(this, key);\n  }\n\n  value() {\n    let parent = this.parent.value();\n    return parent && parent[this.key];\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\nfunction outletHelper(args, vm) {\n  let scope = vm.dynamicScope();\n  let nameRef;\n\n  if (args.positional.length === 0) {\n    nameRef = new ConstReference('main');\n  } else {\n    nameRef = args.positional.at(0);\n  }\n\n  return new OutletComponentReference(new OutletReference(scope.outletState, nameRef), vm.env);\n}\n\nclass OutletModelReference extends RootReference {\n  constructor(parent, env) {\n    super(env);\n    this.parent = parent;\n    this.tag = parent.tag;\n  }\n\n  value() {\n    let state = this.parent.value();\n\n    if (state === undefined) {\n      return undefined;\n    }\n\n    let {\n      render\n    } = state;\n\n    if (render === undefined) {\n      return undefined;\n    }\n\n    return render.model;\n  }\n\n}\n\nif (DEBUG) {\n  OutletModelReference.prototype['debugLogName'] = '@model';\n}\n\nclass OutletComponentReference {\n  constructor(outletRef, env) {\n    this.outletRef = outletRef;\n    this.env = env;\n    this.definition = null;\n    this.lastState = null; // The router always dirties the root state.\n\n    this.tag = outletRef.tag;\n  }\n\n  value() {\n    let state = stateFor(this.outletRef);\n\n    if (validate(state, this.lastState)) {\n      return this.definition;\n    }\n\n    this.lastState = state;\n    let definition = null;\n\n    if (state !== null) {\n      let args = makeArgs(this.outletRef, this.env);\n      definition = curry(new OutletComponentDefinition(state), args);\n    }\n\n    return this.definition = definition;\n  }\n\n  get(_key) {\n    return UNDEFINED_REFERENCE;\n  }\n\n}\n\nfunction makeArgs(outletRef, env) {\n  let tag = outletRef.tag;\n  let modelRef = new OutletModelReference(outletRef, env);\n  let map = dict();\n  map.model = modelRef; // TODO: the functionailty to create a proper CapturedArgument should be\n  // exported by glimmer, or that it should provide an overload for `curry`\n  // that takes `PreparedArguments`\n\n  return {\n    tag,\n    positional: EMPTY_ARGS.positional,\n    named: {\n      tag,\n      map,\n      names: ['model'],\n      references: [modelRef],\n      length: 1,\n\n      has(key) {\n        return key === 'model';\n      },\n\n      get(key) {\n        return key === 'model' ? modelRef : UNDEFINED_REFERENCE;\n      },\n\n      value() {\n        let model = modelRef.value();\n        return {\n          model\n        };\n      }\n\n    },\n    length: 1,\n\n    value() {\n      return {\n        named: this.named.value(),\n        positional: this.positional.value()\n      };\n    }\n\n  };\n}\n\nfunction stateFor(ref) {\n  let outlet = ref.value();\n  if (outlet === undefined) return null;\n  let render = outlet.render;\n  if (render === undefined) return null;\n  let template$$1 = render.template;\n  if (template$$1 === 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$$1)) {\n    template$$1 = template$$1(render.owner);\n  }\n\n  return {\n    ref,\n    name: render.name,\n    outlet: render.outlet,\n    template: template$$1,\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\nconst TEMPLATES = new WeakMap();\nconst getPrototypeOf = Object.getPrototypeOf;\nfunction setComponentTemplate(factory, obj) {\n  assert(`Cannot call \\`setComponentTemplate\\` on \\`${toString(obj)}\\``, obj !== null && (typeof obj === 'object' || typeof obj === 'function'));\n  assert(`Cannot call \\`setComponentTemplate\\` multiple times on the same class (\\`${obj}\\`)`, !TEMPLATES.has(obj));\n  TEMPLATES.set(obj, factory);\n  return obj;\n}\nfunction getComponentTemplate(obj) {\n  let pointer = obj;\n\n  while (pointer !== undefined && pointer !== null) {\n    let template = TEMPLATES.get(pointer);\n\n    if (template !== undefined) {\n      return template;\n    }\n\n    pointer = getPrototypeOf(pointer);\n  }\n\n  return null;\n}\n\nconst MANAGERS = new WeakMap();\nconst getPrototypeOf$1 = Object.getPrototypeOf;\nfunction setManager(wrapper, obj) {\n  MANAGERS.set(obj, wrapper);\n  return obj;\n}\nfunction getManager(obj) {\n  let pointer = obj;\n\n  while (pointer !== undefined && pointer !== null) {\n    let manager = MANAGERS.get(pointer);\n\n    if (manager !== undefined) {\n      return manager;\n    }\n\n    pointer = getPrototypeOf$1(pointer);\n  }\n\n  return null;\n}\n\nfunction setModifierManager(factory, obj) {\n  return setManager({\n    factory,\n    internal: false,\n    type: 'modifier'\n  }, obj);\n}\nfunction getModifierManager(obj) {\n  let wrapper = getManager(obj);\n\n  if (wrapper && !wrapper.internal && wrapper.type === 'modifier') {\n    return wrapper.factory;\n  } else {\n    return undefined;\n  }\n}\n\nfunction instrumentationPayload$1(name) {\n  return {\n    object: `component:${name}`\n  };\n}\n\nfunction makeOptions(moduleName, namespace) {\n  return {\n    source: moduleName !== undefined ? `template:${moduleName}` : undefined,\n    namespace\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  {\n    if (component !== null && component.class !== undefined) {\n      let layout = getComponentTemplate(component.class);\n\n      if (layout !== null) {\n        return {\n          component,\n          layout\n        };\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\nfunction lookupComponent(owner, name, options) {\n  if (options.source || options.namespace) {\n\n    let pair = lookupComponentPair(owner, name, options);\n\n    if (pair !== null) {\n      return pair;\n    }\n  }\n\n  return lookupComponentPair(owner, name);\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    });\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 BUILTINS_HELPERS = {\n  if: inlineIf,\n  action,\n  array,\n  concat: concat$1,\n  fn: fn$1,\n  get: get$1,\n  hash,\n  log: log$1,\n  mut,\n  'query-params': queryParams$1,\n  readonly,\n  unbound,\n  unless: inlineUnless,\n  '-hash': hash,\n  '-each-in': eachIn,\n  '-normalize-class': normalizeClassHelper,\n  '-track-array': trackArray,\n  '-get-dynamic-var': getDynamicVar,\n  '-mount': mountHelper,\n  '-outlet': outletHelper,\n  '-assert-implicit-component-helper-argument': componentAssertionHelper,\n  '-in-el-null': inElementNullCheckHelper\n};\nclass RuntimeResolver {\n  constructor(owner, isInteractive) {\n    this.handles = [undefined];\n    this.objToHandle = new WeakMap();\n    this.builtInHelpers = BUILTINS_HELPERS;\n    this.componentDefinitionCache = new Map();\n    this.componentDefinitionCount = 0;\n    this.helperDefinitionCount = 0;\n    this.isInteractive = isInteractive;\n    this.builtInModifiers = {\n      action: {\n        manager: new ActionModifierManager(),\n        state: null\n      },\n      on: {\n        manager: new OnModifierManager(owner, isInteractive),\n        state: null\n      }\n    };\n  }\n  /***  IRuntimeResolver ***/\n\n  /**\n   * public componentDefHandleCount = 0;\n   * Called while executing Append Op.PushDynamicComponentManager if string\n   */\n\n\n  lookupComponent(name, meta) {\n    let handle = this.lookupComponentHandle(name, meta);\n\n    if (handle === null) {\n      assert(`Could not find component named \"${name}\" (no component or template with that name was found)`);\n      return null;\n    }\n\n    return this.resolve(handle);\n  }\n\n  lookupComponentHandle(name, meta) {\n    let nextHandle = this.handles.length;\n    let handle = this.handle(this._lookupComponentDefinition(name, meta));\n    assert('Could not find component `<TextArea />` (did you mean `<Textarea />`?)', !(name === 'text-area' && handle === null));\n\n    if (nextHandle === handle) {\n      this.componentDefinitionCount++;\n    }\n\n    return handle;\n  }\n  /**\n   * Called by RuntimeConstants to lookup unresolved handles.\n   */\n\n\n  resolve(handle) {\n    return this.handles[handle];\n  } // End IRuntimeResolver\n\n  /**\n   * Called by CompileTimeLookup compiling Unknown or Helper OpCode\n   */\n\n\n  lookupHelper(name, meta) {\n    let nextHandle = this.handles.length;\n\n    let helper$$1 = this._lookupHelper(name, meta);\n\n    if (helper$$1 !== null) {\n      let handle = this.handle(helper$$1);\n\n      if (nextHandle === handle) {\n        this.helperDefinitionCount++;\n      }\n\n      return handle;\n    }\n\n    return null;\n  }\n  /**\n   * Called by CompileTimeLookup compiling the\n   */\n\n\n  lookupModifier(name, meta) {\n    return this.handle(this._lookupModifier(name, meta));\n  }\n  /**\n   * Called by CompileTimeLookup to lookup partial\n   */\n\n\n  lookupPartial(name, meta) {\n    if (PARTIALS) {\n      let partial = this._lookupPartial(name, meta);\n\n      return this.handle(partial);\n    } else {\n      return null;\n    }\n  } // TODO: This isn't necessary in all embedding environments, we should likely\n  // make it optional within Glimmer-VM\n\n\n  compilable() {} // end CompileTimeLookup\n  // needed for lazy compile time lookup\n\n\n  handle(obj) {\n    if (obj === undefined || obj === null) {\n      return null;\n    }\n\n    let handle = this.objToHandle.get(obj);\n\n    if (handle === undefined) {\n      handle = this.handles.push(obj) - 1;\n      this.objToHandle.set(obj, handle);\n    }\n\n    return handle;\n  }\n\n  _lookupHelper(_name, meta) {\n    assert(`You attempted to overwrite the built-in helper \"${_name}\" which is not allowed. Please rename the helper.`, !(this.builtInHelpers[_name] && meta.owner.hasRegistration(`helper:${_name}`)));\n    const helper$$1 = this.builtInHelpers[_name];\n\n    if (helper$$1 !== undefined) {\n      return helper$$1;\n    }\n\n    const {\n      moduleName\n    } = meta;\n    let owner = meta.owner;\n    let name = _name;\n    let namespace = undefined;\n\n    const options = makeOptions(moduleName, namespace);\n    const factory = owner.factoryFor(`helper:${name}`, options) || owner.factoryFor(`helper:${name}`);\n\n    if (!isHelperFactory(factory)) {\n      return null;\n    }\n\n    return (args, vm) => {\n      const helper$$1 = factory.create();\n\n      if (isClassHelper(helper$$1)) {\n        let helperDestroyable = {}; // Do this so that `destroy` gets called correctly\n\n        registerDestructor(helperDestroyable, () => helper$$1.destroy(), true);\n        vm.associateDestroyable(helperDestroyable);\n      } else if (DEBUG) {\n        // Bind to null in case someone accidentally passed an unbound function\n        // in, and attempts use `this` on it.\n        //\n        // TODO: Update buildUntouchableThis to be flexible enough to provide a\n        // nice error message here.\n        helper$$1.compute = helper$$1.compute.bind(null);\n      }\n\n      return new EmberHelperRootReference(helper$$1, args.capture(), vm.env);\n    };\n  }\n\n  _lookupPartial(name, meta) {\n    let owner = meta.owner;\n    let templateFactory$$1 = lookupPartial(name, owner);\n    let template = templateFactory$$1(owner);\n    return new PartialDefinitionImpl(name, template);\n  }\n\n  _lookupModifier(name, meta) {\n    let builtin = this.builtInModifiers[name];\n\n    if (builtin === undefined) {\n      let owner = meta.owner;\n      let modifier = owner.factoryFor(`modifier:${name}`);\n\n      if (modifier !== undefined) {\n        let managerFactory = getModifierManager(modifier.class);\n        let manager = managerFactory(owner);\n        return new CustomModifierDefinition(name, modifier, manager, this.isInteractive);\n      }\n    }\n\n    return builtin;\n  }\n\n  _parseNameForNamespace(_name) {\n    let name = _name;\n    let namespace = undefined;\n\n    let namespaceDelimiterOffset = _name.indexOf('::');\n\n    if (namespaceDelimiterOffset !== -1) {\n      name = _name.slice(namespaceDelimiterOffset + 2);\n      namespace = _name.slice(0, namespaceDelimiterOffset);\n    }\n\n    return {\n      name,\n      namespace\n    };\n  }\n\n  _lookupComponentDefinition(_name, meta) {\n    let name = _name;\n    let namespace = undefined;\n    let owner = meta.owner;\n    let {\n      moduleName\n    } = meta;\n\n    let pair = lookupComponent(owner, name, makeOptions(moduleName, namespace));\n\n    if (pair === null) {\n      return null;\n    }\n\n    let layout;\n    let key;\n\n    if (pair.component === null) {\n      key = layout = 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 (layout === undefined && pair.layout !== null) {\n      layout = 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 = new TemplateOnlyComponentDefinition(name, layout);\n      }\n    } else if (true\n    /* EMBER_GLIMMER_SET_COMPONENT_TEMPLATE */\n    && isTemplateOnlyComponent(pair.component.class)) {\n      definition = new TemplateOnlyComponentDefinition(name, layout);\n    }\n\n    if (pair.component !== null) {\n      assert(`missing component class ${name}`, pair.component.class !== undefined);\n      let ComponentClass = pair.component.class;\n      let wrapper = getManager(ComponentClass);\n\n      if (wrapper !== null && wrapper.type === 'component') {\n        let {\n          factory\n        } = wrapper;\n\n        if (wrapper.internal) {\n          assert(`missing layout for internal component ${name}`, pair.layout !== null);\n          definition = new InternalComponentDefinition(factory(owner), ComponentClass, layout);\n        } else {\n          definition = new CustomManagerDefinition(name, pair.component, factory(owner), layout !== undefined ? layout : owner.lookup(privatize`template:components/-default`)(owner));\n        }\n      }\n    }\n\n    if (definition === null) {\n      definition = new CurlyComponentDefinition(name, pair.component || owner.factoryFor(privatize`component:-default`), layout);\n    }\n\n    finalizer();\n    this.componentDefinitionCache.set(key, definition);\n    return definition;\n  }\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 experimentalMacros = []; // This is a private API to allow for experimental macros\n// to be created in user space. Registering a macro should\n// should be done in an initializer.\n\nfunction registerMacros(macro) {\n  experimentalMacros.push(macro);\n}\n\nfunction refineInlineSyntax(name, params, hash, context) {\n  let component = context.resolver.lookupComponent(name, context.meta.referrer);\n\n  if (component !== null) {\n    return staticComponent(component, [params === null ? [] : params, hashToArgs(hash), EMPTY_BLOCKS]);\n  }\n\n  return UNHANDLED;\n}\n\nfunction refineBlockSyntax(name, params, hash, blocks, context) {\n  let handle = context.resolver.lookupComponent(name, context.meta.referrer);\n\n  if (handle !== null) {\n    return staticComponent(handle, [params, hashToArgs(hash), blocks]);\n  }\n\n  assert(`A component or helper named \"${name}\" could not be found`, context.meta.referrer.owner.hasRegistration(`helper:${name}`));\n  assert(`Helpers may not be used in the block form, for example {{#${name}}}{{/${name}}}. Please use a component, or alternatively use the helper in combination with a built-in Ember helper, for example {{#if (${name})}}{{/if}}.`, !(() => {\n    const resolver = context.resolver['inner']['resolver'];\n    const {\n      moduleName,\n      owner\n    } = context.meta.referrer;\n\n    if (name === 'component' || resolver['builtInHelpers'][name]) {\n      return true;\n    }\n\n    let options = {\n      source: `template:${moduleName}`\n    };\n    return owner.hasRegistration(`helper:${name}`, options) || owner.hasRegistration(`helper:${name}`);\n  })());\n  return NONE;\n}\n\nfunction populateMacros(macros) {\n  let {\n    inlines,\n    blocks\n  } = macros;\n  inlines.addMissing(refineInlineSyntax);\n  blocks.addMissing(refineBlockSyntax);\n\n  for (let i = 0; i < experimentalMacros.length; i++) {\n    let macro = experimentalMacros[i];\n    macro(blocks, inlines);\n  }\n\n  return {\n    blocks,\n    inlines\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}\n\nclass RootState {\n  constructor(root, runtime, context, template, self, parentElement, dynamicScope, builder) {\n    this.root = root;\n    this.runtime = runtime;\n    assert(`You cannot render \\`${self.value()}\\` without a template.`, template !== undefined);\n    this.id = getViewId(root);\n    this.result = undefined;\n    this.destroyed = false;\n\n    this.render = () => {\n      let layout = unwrapTemplate(template).asLayout();\n      let handle = layout.compile(context);\n      let iterator = renderJitMain(runtime, context, self, builder(runtime.env, {\n        element: parentElement,\n        nextSibling: null\n      }), unwrapHandle(handle), dynamicScope);\n      let iteratorResult;\n\n      do {\n        iteratorResult = iterator.next();\n      } while (!iteratorResult.done);\n\n      let result = this.result = iteratorResult.value; // override .render function after initial render\n\n      this.render = () => 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    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\nbackburner.on('begin', loopBegin);\nbackburner.on('end', loopEnd);\nclass Renderer {\n  constructor(owner, document, env, rootTemplate, viewRegistry, destinedForDOM = false, builder = clientBuilder) {\n    this._inRenderTransaction = false;\n    this._lastRevision = -1;\n    this._destroyed = false;\n    this._rootTemplate = rootTemplate(owner);\n    this._viewRegistry = viewRegistry;\n    this._destinedForDOM = destinedForDOM;\n    this._roots = [];\n    this._removedRoots = [];\n    this._builder = builder; // resolver is exposed for tests\n\n    let runtimeResolver = this._runtimeResolver = new RuntimeResolver(owner, env.isInteractive);\n    let compileTimeResolver = new CompileTimeResolver(runtimeResolver);\n    let context = this._context = JitContext(compileTimeResolver);\n    populateMacros(context.macros);\n    let runtimeEnvironmentDelegate = new EmberEnvironmentDelegate(owner, env.isInteractive);\n    this._runtime = JitRuntime({\n      appendOperations: env.hasDOM ? new DOMTreeConstruction(document) : new NodeDOMTreeConstruction(document),\n      updateOperations: new DOMChanges(document)\n    }, runtimeEnvironmentDelegate, context, runtimeResolver);\n  }\n\n  get debugRenderTree() {\n    return this._runtime.env.extra.debugRenderTree;\n  } // renderer HOOKS\n\n\n  appendOutletView(view, target) {\n    let definition = createRootOutlet(view);\n\n    this._appendDefinition(view, curry(definition), target);\n  }\n\n  appendTo(view, target) {\n    let definition = new RootComponentDefinition(view);\n\n    this._appendDefinition(view, curry(definition), target);\n  }\n\n  _appendDefinition(root, definition, target) {\n    let self = new UnboundRootReference(definition, this._runtime.env);\n    let dynamicScope = new DynamicScope(null, UNDEFINED_REFERENCE);\n    let rootState = new RootState(root, this._runtime, this._context, 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._destinedForDOM) {\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  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          if (DEBUG) {\n            // run in an autotracking transaction to prevent backflow errors.\n            // we use `bind` here to avoid creating a closure (and requiring a\n            // hoisted variable).\n            runInAutotrackingTransaction(root.render.bind(root));\n          } else {\n            root.render();\n          }\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}\nclass InertRenderer extends Renderer {\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, false, builder);\n  }\n\n  getElement(_view) {\n    throw new Error('Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).');\n  }\n\n}\nclass InteractiveRenderer extends Renderer {\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, true, builder);\n  }\n\n  getElement(view) {\n    return getViewElement(view);\n  }\n\n}\n\nlet TEMPLATES$1 = {};\nfunction setTemplates(templates) {\n  TEMPLATES$1 = templates;\n}\nfunction getTemplates() {\n  return TEMPLATES$1;\n}\nfunction getTemplate(name) {\n  if (Object.prototype.hasOwnProperty.call(TEMPLATES$1, name)) {\n    return TEMPLATES$1[name];\n  }\n}\nfunction hasTemplate(name) {\n  return Object.prototype.hasOwnProperty.call(TEMPLATES$1, name);\n}\nfunction setTemplate(name, template) {\n  return TEMPLATES$1[name] = template;\n}\n\nconst CAPABILITIES$4 = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: true,\n  dynamicScope: false,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false\n};\nconst EMPTY_POSITIONAL_ARGS$1 = [];\ndebugFreeze(EMPTY_POSITIONAL_ARGS$1);\nclass InputComponentManager extends InternalManager {\n  getCapabilities() {\n    return CAPABILITIES$4;\n  }\n\n  prepareArgs(_state, args) {\n    assert('The `<Input />` component does not take any positional arguments', args.positional.length === 0);\n    let __ARGS__ = args.named.capture().map;\n    return {\n      positional: EMPTY_POSITIONAL_ARGS$1,\n      named: {\n        __ARGS__: new ConstReference(__ARGS__),\n        type: args.named.get('type')\n      }\n    };\n  }\n\n  create(env, {\n    ComponentClass,\n    layout\n  }, args, _dynamicScope, caller) {\n    assert('caller must be const', isConstTagged(caller));\n    let type = args.named.get('type');\n    let instance = ComponentClass.create({\n      caller: caller.value(),\n      type: type.value()\n    });\n    let state = {\n      env,\n      type,\n      instance\n    };\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      env.extra.debugRenderTree.create(state, {\n        type: 'component',\n        name: 'input',\n        args: args.capture(),\n        instance,\n        template: layout\n      });\n      registerDestructor(instance, () => env.extra.debugRenderTree.willDestroy(state));\n    }\n\n    return state;\n  }\n\n  getSelf({\n    env,\n    instance\n  }) {\n    return new ComponentRootReference(instance, env);\n  }\n\n  getTag() {\n    if (ENV._DEBUG_RENDER_TREE) {\n      // returning a const tag skips the update hook (VM BUG?)\n      return createTag();\n    } else {\n      // an outlet has no hooks\n      return CONSTANT_TAG;\n    }\n  }\n\n  didRenderLayout(state, bounds) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      state.env.extra.debugRenderTree.didRender(state, bounds);\n    }\n  }\n\n  update(state) {\n    set(state.instance, 'type', state.type.value());\n\n    if (ENV._DEBUG_RENDER_TREE) {\n      state.env.extra.debugRenderTree.update(state);\n    }\n  }\n\n  didUpdateLayout(state, bounds) {\n    if (ENV._DEBUG_RENDER_TREE) {\n      state.env.extra.debugRenderTree.didRender(state, bounds);\n    }\n  }\n\n  getDestroyable(state) {\n    return state.instance;\n  }\n\n}\nconst InputComponentManagerFactory = owner => {\n  return new InputComponentManager(owner);\n};\n\n/**\n@module @ember/component\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  ### `<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\nconst Input = Object$1.extend({\n  isCheckbox: computed('type', function () {\n    return this.type === 'checkbox';\n  })\n});\nsetManager({\n  factory: InputComponentManagerFactory,\n  internal: true,\n  type: 'component'\n}, Input);\n\nInput.toString = () => '@ember/component/input';\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*/\n\nvar loc$1 = helper(function (params) {\n  return loc.apply(null, params\n  /* let the other side handle errors */\n  );\n});\n\nvar ComponentTemplate = template({\n  \"id\": \"RLf1peEf\",\n  \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n  \"meta\": {\n    \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/component.hbs\"\n  }\n});\n\nvar InputTemplate = template({\n  \"id\": \"ExnzE3OS\",\n  \"block\": \"{\\\"symbols\\\":[\\\"Checkbox\\\",\\\"TextField\\\",\\\"@__ARGS__\\\",\\\"&attrs\\\"],\\\"statements\\\":[[6,[37,2],[[30,[36,1],[\\\"-checkbox\\\"],null],[30,[36,1],[\\\"-text-field\\\"],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"isCheckbox\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[8,[32,1],[[17,4]],[[\\\"@target\\\",\\\"@__ARGS__\\\"],[[32,0,[\\\"caller\\\"]],[32,3]]],null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[8,[32,2],[[17,4]],[[\\\"@target\\\",\\\"@__ARGS__\\\"],[[32,0,[\\\"caller\\\"]],[32,3]]],null]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1,2]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"component\\\",\\\"let\\\"]}\",\n  \"meta\": {\n    \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/input.hbs\"\n  }\n});\n\nvar OutletTemplate = template({\n  \"id\": \"vA+C0Wde\",\n  \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[30,[36,1],[[30,[36,0],null,null]],null]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-outlet\\\",\\\"component\\\"]}\",\n  \"meta\": {\n    \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/outlet.hbs\"\n  }\n});\n\nconst TOP_LEVEL_NAME = '-top-level';\nconst TOP_LEVEL_OUTLET = 'main';\nclass OutletView {\n  constructor(_environment, renderer, owner, template) {\n    this._environment = _environment;\n    this.renderer = renderer;\n    this.owner = owner;\n    this.template = template;\n    let ref = this.ref = new RootOutletReference({\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    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      renderer,\n      template: templateFactory$$1\n    } = options;\n    let owner = getOwner(options);\n    let template = templateFactory$$1(owner);\n    return new OutletView(_environment, renderer, 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    schedule('render', this.renderer, 'appendOutletView', this, target);\n  }\n\n  rerender() {\n    /**/\n  }\n\n  setOutletState(state) {\n    this.ref.update(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', InteractiveRenderer);\n  registry.register('renderer:-inert', InertRenderer);\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.register(privatize`template:components/-default`, ComponentTemplate);\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:link-to', LinkComponent);\n  registry.register('component:input', Input);\n  registry.register('template:components/input', InputTemplate);\n  registry.register('component:textarea', TextArea);\n\n  if (!ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS) {\n    registry.register(privatize`component:-default`, Component);\n  }\n}\n\nfunction setComponentManager(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://emberjs.com/deprecations/v3.x/#toc_component-manager-string-lookup'\n    });\n\n    factory = function (owner) {\n      return owner.lookup(`component-manager:${stringOrFunction}`);\n    };\n  } else {\n    factory = stringOrFunction;\n  }\n\n  return setManager({\n    factory,\n    internal: false,\n    type: 'component'\n  }, obj);\n}\nfunction getComponentManager(obj) {\n  let wrapper = getManager(obj);\n\n  if (wrapper && !wrapper.internal && wrapper.type === 'component') {\n    return wrapper.factory;\n  } else {\n    return undefined;\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, template, counters as templateCacheCounters, Checkbox, TextField, TextArea, LinkComponent, Component, Helper, helper, SafeString, escapeExpression, htmlSafe, isHTMLSafe, Renderer, InertRenderer, InteractiveRenderer, _resetRenderers, renderSettled, getTemplate, setTemplate, hasTemplate, getTemplates, setTemplates, setupEngineRegistry, setupApplicationRegistry, registerMacros as _registerMacros, experimentalMacros as _experimentalMacros, AbstractManager as AbstractComponentManager, INVOKE, OutletView, capabilities, setComponentManager, getComponentManager, setModifierManager, getModifierManager, capabilities$1 as modifierCapabilities, setComponentTemplate, getComponentTemplate };\n","define(\"@ember/-internals/meta/index\", [\"exports\", \"@ember/-internals/meta/lib/meta\"], function (_exports, _meta) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"counters\", {\n    enumerable: true,\n    get: function () {\n      return _meta.counters;\n    }\n  });\n  Object.defineProperty(_exports, \"Meta\", {\n    enumerable: true,\n    get: function () {\n      return _meta.Meta;\n    }\n  });\n  Object.defineProperty(_exports, \"meta\", {\n    enumerable: true,\n    get: function () {\n      return _meta.meta;\n    }\n  });\n  Object.defineProperty(_exports, \"peekMeta\", {\n    enumerable: true,\n    get: function () {\n      return _meta.peekMeta;\n    }\n  });\n  Object.defineProperty(_exports, \"setMeta\", {\n    enumerable: true,\n    get: function () {\n      return _meta.setMeta;\n    }\n  });\n  Object.defineProperty(_exports, \"UNDEFINED\", {\n    enumerable: true,\n    get: function () {\n      return _meta.UNDEFINED;\n    }\n  });\n});\n","import { symbol, toString } from '@ember/-internals/utils';\nimport { assert, deprecate } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { isDestroyed, isDestroying } from '@glimmer/runtime';\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._tags = 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    });\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    });\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    });\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    });\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, enumerableSymbol, isObject, setupMandatorySetter, symbol, toString, setWithMandatorySetter, Cache, HAS_NATIVE_PROXY, isEmberArray, setProxy, 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/runtime';\nimport { CURRENT_TAG, tagMetaFor, validateTag, valueForTag, CONSTANT_TAG, dirtyTagFor, tagFor, combine, createUpdatableTag, updateTag, consumeTag, deprecateMutationsInAutotrackingTransaction, isTracking, track, ALLOW_CYCLES, untrack, trackedData } from '@glimmer/validator';\nexport { createCache, getValue, isConst } from '@glimmer/validator';\nimport { DEBUG } from '@glimmer/env';\nimport { _WeakSet, assign } from '@ember/polyfills';\nimport EmberError from '@ember/error';\nimport VERSION from 'ember/version';\nimport { ALIAS_METHOD } from '@ember/deprecated-features';\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.split(':');\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 CUSTOM_TAG_FOR = enumerableSymbol('CUSTOM_TAG_FOR'); // This is exported for `@tracked`, but should otherwise be avoided. Use `tagForObject`.\n\nconst SELF_TAG = symbol('SELF_TAG');\nfunction tagForProperty(obj, propertyKey, addMandatorySetter = false, meta$$1) {\n  if (typeof obj[CUSTOM_TAG_FOR] === 'function') {\n    return obj[CUSTOM_TAG_FOR](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) {\n  return arrayObserversHelper(array, target, opts, addListener, false);\n}\nfunction removeArrayObserver(array, target, opts) {\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      });\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        }\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}\n\nfunction DESCRIPTOR_GETTER_FUNCTION(name, descriptor) {\n  return function CPGETTER_FUNCTION() {\n    return descriptor.get(this, name);\n  };\n}\n\nfunction DESCRIPTOR_SETTER_FUNCTION(name, descriptor) {\n  return function CPSETTER_FUNCTION(value) {\n    return descriptor.set(this, name, value);\n  };\n}\n\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 || propertyDesc.get.toString().indexOf('CPGETTER_FUNCTION') === -1);\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        deprecateMutationsInAutotrackingTransaction(() => {\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) {\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    obj = _getProp(obj, parts[i]);\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  });\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;\n  }\n\n  if (isPath(keyName)) {\n    return setPath(obj, keyName, value, tolerant);\n  }\n\n  let descriptor = descriptorForProperty(obj, keyName);\n\n  if (descriptor !== undefined) {\n    descriptor.set(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);\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 (DEBUG) {\n      ALLOW_CYCLES.set(tagFor(obj, keyName), true);\n    }\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\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\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://emberjs.com/deprecations/v3.x#toc_computed-property-override'\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://emberjs.com/deprecations/v3.x#toc_computed-property-volatile'\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://emberjs.com/deprecations/v3.x#toc_computed-property-property'\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}\nconst _globalsComputed = computed.bind(null);\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\n// move into its own package\n// it is needed by Mixin for classToString\n// maybe move it into environment\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 classToString() {\n  let name = getName(this);\n\n  if (name !== void 0) {\n    return name;\n  }\n\n  name = calculateToString(this);\n  setName(this, name);\n  return name;\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 && obj.toString === classToString && 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\nfunction calculateToString(target) {\n  let str;\n\n  if (!searchDisabled) {\n    processAllNamespaces();\n    str = getName(target);\n\n    if (str !== void 0) {\n      return str;\n    }\n\n    let superclass = target;\n\n    do {\n      superclass = Object.getPrototypeOf(superclass);\n\n      if (superclass === Function.prototype || superclass === Object.prototype) {\n        break;\n      }\n\n      str = getName(target);\n\n      if (str !== void 0) {\n        str = `(subclass of ${str})`;\n        break;\n      }\n    } while (str === void 0);\n  }\n\n  return str || '(unknown)';\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        // 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      } 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      /*\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      guidFor(this);\n      Object.seal(this);\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\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\nMixin.prototype.toString = classToString;\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://emberjs.com/deprecations/v3.x#toc_object-alias-method'\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 source, namespace;\n  let name = calledAsDecorator ? undefined : args[0];\n  let options = calledAsDecorator ? undefined : args[1];\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      source,\n      namespace\n    });\n  };\n\n  if (DEBUG) {\n    DEBUG_INJECTION_FUNCTIONS.set(getInjection, {\n      namespace,\n      source,\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  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  @category EMBER_CACHE_API\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  @category EMBER_CACHE_API\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  @category EMBER_CACHE_API\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  @category EMBER_CACHE_API\n  @static\n  @for @glimmer/tracking/primitives/cache\n  @public\n*/\n\nexport { computed, autoComputed, isComputed, _globalsComputed, ComputedProperty, getCachedValueFor, alias, deprecateProperty, PROXY_CONTENT, _getPath, get, getWithDefault, _getProp, set, 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, CUSTOM_TAG_FOR, tracked, NAMESPACES, NAMESPACES_BY_ID, addNamespace, classToString, findNamespace, findNamespaces, processNamespace, processAllNamespaces, removeNamespace, isSearchDisabled as isNamespaceSearchDisabled, setSearchDisabled as setNamespaceSearchDisabled };\n","/**\n@module @ember/application\n*/\nimport { enumerableSymbol, symbol } from '@ember/-internals/utils';\nimport { deprecate } from '@ember/debug';\nexport const LEGACY_OWNER = enumerableSymbol('LEGACY_OWNER');\nexport const OWNER = symbol('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 = object[OWNER];\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    });\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  object[OWNER] = owner;\n  object[LEGACY_OWNER] = owner;\n}","define(\"@ember/-internals/routing/index\", [\"exports\", \"@ember/-internals/routing/lib/ext/controller\", \"@ember/-internals/routing/lib/location/api\", \"@ember/-internals/routing/lib/location/none_location\", \"@ember/-internals/routing/lib/location/hash_location\", \"@ember/-internals/routing/lib/location/history_location\", \"@ember/-internals/routing/lib/location/auto_location\", \"@ember/-internals/routing/lib/system/generate_controller\", \"@ember/-internals/routing/lib/system/controller_for\", \"@ember/-internals/routing/lib/system/dsl\", \"@ember/-internals/routing/lib/system/router\", \"@ember/-internals/routing/lib/system/route\", \"@ember/-internals/routing/lib/system/query_params\", \"@ember/-internals/routing/lib/services/routing\", \"@ember/-internals/routing/lib/services/router\", \"@ember/-internals/routing/lib/system/cache\"], function (_exports, _controller, _api, _none_location, _hash_location, _history_location, _auto_location, _generate_controller, _controller_for, _dsl, _router, _route, _query_params, _routing, _router2, _cache) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Location\", {\n    enumerable: true,\n    get: function () {\n      return _api.default;\n    }\n  });\n  Object.defineProperty(_exports, \"NoneLocation\", {\n    enumerable: true,\n    get: function () {\n      return _none_location.default;\n    }\n  });\n  Object.defineProperty(_exports, \"HashLocation\", {\n    enumerable: true,\n    get: function () {\n      return _hash_location.default;\n    }\n  });\n  Object.defineProperty(_exports, \"HistoryLocation\", {\n    enumerable: true,\n    get: function () {\n      return _history_location.default;\n    }\n  });\n  Object.defineProperty(_exports, \"AutoLocation\", {\n    enumerable: true,\n    get: function () {\n      return _auto_location.default;\n    }\n  });\n  Object.defineProperty(_exports, \"generateController\", {\n    enumerable: true,\n    get: function () {\n      return _generate_controller.default;\n    }\n  });\n  Object.defineProperty(_exports, \"generateControllerFactory\", {\n    enumerable: true,\n    get: function () {\n      return _generate_controller.generateControllerFactory;\n    }\n  });\n  Object.defineProperty(_exports, \"controllerFor\", {\n    enumerable: true,\n    get: function () {\n      return _controller_for.default;\n    }\n  });\n  Object.defineProperty(_exports, \"RouterDSL\", {\n    enumerable: true,\n    get: function () {\n      return _dsl.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Router\", {\n    enumerable: true,\n    get: function () {\n      return _router.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Route\", {\n    enumerable: true,\n    get: function () {\n      return _route.default;\n    }\n  });\n  Object.defineProperty(_exports, \"QueryParams\", {\n    enumerable: true,\n    get: function () {\n      return _query_params.default;\n    }\n  });\n  Object.defineProperty(_exports, \"RoutingService\", {\n    enumerable: true,\n    get: function () {\n      return _routing.default;\n    }\n  });\n  Object.defineProperty(_exports, \"RouterService\", {\n    enumerable: true,\n    get: function () {\n      return _router2.default;\n    }\n  });\n  Object.defineProperty(_exports, \"BucketCache\", {\n    enumerable: true,\n    get: function () {\n      return _cache.default;\n    }\n  });\n});\n","import { get } from '@ember/-internals/metal';\nimport ControllerMixin from '@ember/controller/lib/controller_mixin';\nimport { prefixRouteNameArg } from '../utils';\n/**\n@module ember\n*/\n\nControllerMixin.reopen({\n  concatenatedProperties: ['queryParams'],\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, Ember coerces query parameter values using `toggleProperty`.\n    This behavior may lead to unexpected results.\n    Available queryParam types: `boolean`, `number`, `array`.\n    If query param type not specified, it will be `string`.\n    To explicitly configure a query parameter property so it coerces as expected, you must define a type property:\n       ```javascript\n      queryParams: [{\n        category: {\n          type: 'boolean'\n        }\n      }]\n    ```\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    @public\n  */\n  transitionToRoute(...args) {\n    // target may be either another controller or a router\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    @public\n  */\n  replaceRoute(...args) {\n    // target may be either another controller or a router\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    constructor() {\n      this._history = HistoryLocation.create(...arguments);\n    }\n    create() {\n      return new this(...arguments);\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 { tryInvoke } from '@ember/-internals/utils';\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    let {\n      concreteImplementation\n    } = this;\n    assert(\"AutoLocation's detect() method should be called before calling any other hooks.\", Boolean(concreteImplementation));\n    return tryInvoke(concreteImplementation, methodName, 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, 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  @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 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 { Evented } from '@ember/-internals/runtime';\nimport { assert } from '@ember/debug';\nimport { readOnly } from '@ember/object/computed';\nimport { assign } from '@ember/polyfills';\nimport Service from '@ember/service';\nimport { DEBUG } from '@glimmer/env';\nimport { extractRouteArgs, resemblesURL, shallowEqual } from '../utils';\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 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  init() {\n    super.init(...arguments);\n\n    this._router.on('routeWillChange', transition => {\n      if (DEBUG) {\n        freezeRouteInfo(transition);\n      }\n\n      this.trigger('routeWillChange', transition);\n    });\n\n    this._router.on('routeDidChange', transition => {\n      if (DEBUG) {\n        freezeRouteInfo(transition);\n      }\n\n      this.trigger('routeDidChange', transition);\n    });\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    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.get('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.get('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; // 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    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    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 { readOnly } from '@ember/object/computed';\nimport { assign } from '@ember/polyfills';\nimport Service from '@ember/service';\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  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 router = this.router; // return early when the router microlib is not present, which is the case for {{link-to}} in integration tests\n\n    if (!router._routerMicrolib) {\n      return;\n    }\n\n    let visibleQueryParams = {};\n\n    if (queryParams) {\n      assign(visibleQueryParams, queryParams);\n      this.normalizeQueryParams(routeName, models, visibleQueryParams);\n    }\n\n    return router.generate(routeName, ...models, {\n      queryParams: visibleQueryParams\n    });\n  }\n\n  isActiveForRoute(contexts, queryParams, routeName, routerState, isCurrentWhenSpecified) {\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, !isCurrentWhenSpecified);\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  /* eslint-enable no-dupe-class-members */\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}","define(\"@ember/-internals/routing/lib/system/engines\", [], function () {\n  \"use strict\";\n});\n","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  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 { 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 { lookupDescriptor } 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 { classify } from '@ember/string';\nimport { DEBUG } from '@glimmer/env';\nimport { PARAMS_SYMBOL, STATE_SYMBOL } from 'router_js';\nimport { calculateCacheKey, normalizeControllerQueryParams, prefixRouteNameArg, stashParamNames } from '../utils';\nimport generateController from './generate_controller';\nexport const ROUTE_CONNECTIONS = new WeakMap();\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    }\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() {\n    super(...arguments);\n    this.context = {};\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 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() {\n    this.deactivate();\n    this.trigger('deactivate');\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() {\n    ROUTE_CONNECTIONS.set(this, []);\n    this.activate();\n    this.trigger('activate');\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        controller.set('currentlyLoading', true);\n           transition.finally(function() {\n          controller.set('currentlyLoading', false);\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    @since 1.0.0\n    @public\n  */\n\n\n  deactivate() {}\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    @since 1.0.0\n    @public\n  */\n\n\n  activate() {}\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    @public\n  */\n\n\n  transitionTo(...args) {\n    // eslint-disable-line no-unused-vars\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    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      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    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    let renderOptions = buildRenderOptions(this, name, options);\n    ROUTE_CONNECTIONS.get(this).push(renderOptions);\n    once(this._router, '_setOutlets');\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    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\nfunction getFullQueryParams(router, state) {\n  if (state['fullQueryParams']) {\n    return state['fullQueryParams'];\n  }\n\n  state['fullQueryParams'] = {};\n  assign(state['fullQueryParams'], state.queryParams);\n\n  router._deserializeQueryParams(state.routeInfos, state['fullQueryParams']);\n\n  return state['fullQueryParams'];\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      let namespace = get(this, '_router.namespace');\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}, but ${namespace}.${classify(name)} did not exist and you did not override your route's \\`model\\` hook.`, Boolean(modelClass));\n\n          if (!modelClass) {\n            return;\n          }\n\n          modelClass = modelClass.class;\n          assert(`${classify(name)} has no method \\`find\\`.`, typeof modelClass.find === 'function');\n          return modelClass.find(value);\n        }\n\n      };\n    },\n\n    set(key, value) {\n      defineProperty(this, key, null, value);\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 '@glimmer/tracking';\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://emberjs.com/deprecations/v3.x#toc_deprecate-router-events'\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://emberjs.com/deprecations/v3.x#toc_deprecate-router-events'\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 { 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, hasDefaultSerialize, ROUTE_CONNECTIONS, ROUTER_EVENT_DEPRECATIONS } from './route';\nimport RouterState from './router_state';\nimport Router, { logAbort, QUERY_PARAMS_SYMBOL, 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 (get(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 (get(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\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() {\n    super(...arguments);\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\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 (get(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://emberjs.com/deprecations/v3.x#toc_deprecate-router-events'\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://emberjs.com/deprecations/v3.x#toc_deprecate-router-events'\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\n      routeDidChange(transition) {\n        router.set('currentRoute', transition.to);\n        once(() => {\n          router.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 (get(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\n    if (!owner) {\n      return false;\n    }\n\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    let initialURL = get(this, 'initialURL');\n\n    if (this.setupRouter()) {\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    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      instance.didCreateRootView(this._toplevelView);\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    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 (get(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    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    this._super(...arguments);\n\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 && owner) {\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    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 = this._routerMicrolib.activeTransition[QUERY_PARAMS_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          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://emberjs.com/deprecations/v3.x#toc_application-controller-router-properties'\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://emberjs.com/deprecations/v3.x#toc_application-controller-router-properties'\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, queryParamsMustMatch) {\n    let state = this.routerJsState;\n\n    if (!this.router.isActiveIntent(routeName, models, undefined, state)) {\n      return false;\n    }\n\n    if (queryParamsMustMatch && 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*/","import { get } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\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}","define(\"@ember/-internals/runtime/index\", [\"exports\", \"@ember/-internals/runtime/lib/system/object\", \"@ember/-internals/runtime/lib/mixins/registry_proxy\", \"@ember/-internals/runtime/lib/mixins/container_proxy\", \"@ember/-internals/runtime/lib/copy\", \"@ember/-internals/runtime/lib/compare\", \"@ember/-internals/runtime/lib/is-equal\", \"@ember/-internals/runtime/lib/mixins/array\", \"@ember/-internals/runtime/lib/mixins/comparable\", \"@ember/-internals/runtime/lib/system/namespace\", \"@ember/-internals/runtime/lib/system/array_proxy\", \"@ember/-internals/runtime/lib/system/object_proxy\", \"@ember/-internals/runtime/lib/system/core_object\", \"@ember/-internals/runtime/lib/mixins/action_handler\", \"@ember/-internals/runtime/lib/mixins/copyable\", \"@ember/-internals/runtime/lib/mixins/enumerable\", \"@ember/-internals/runtime/lib/mixins/-proxy\", \"@ember/-internals/runtime/lib/mixins/observable\", \"@ember/-internals/runtime/lib/mixins/mutable_enumerable\", \"@ember/-internals/runtime/lib/mixins/target_action_support\", \"@ember/-internals/runtime/lib/mixins/evented\", \"@ember/-internals/runtime/lib/mixins/promise_proxy\", \"@ember/-internals/runtime/lib/ext/rsvp\", \"@ember/-internals/runtime/lib/type-of\", \"@ember/-internals/runtime/lib/ext/function\"], function (_exports, _object, _registry_proxy, _container_proxy, _copy, _compare, _isEqual, _array, _comparable, _namespace, _array_proxy, _object_proxy, _core_object, _action_handler, _copyable, _enumerable, _proxy, _observable, _mutable_enumerable, _target_action_support, _evented, _promise_proxy, _rsvp, _typeOf, _function) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Object\", {\n    enumerable: true,\n    get: function () {\n      return _object.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FrameworkObject\", {\n    enumerable: true,\n    get: function () {\n      return _object.FrameworkObject;\n    }\n  });\n  Object.defineProperty(_exports, \"RegistryProxyMixin\", {\n    enumerable: true,\n    get: function () {\n      return _registry_proxy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ContainerProxyMixin\", {\n    enumerable: true,\n    get: function () {\n      return _container_proxy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"copy\", {\n    enumerable: true,\n    get: function () {\n      return _copy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"compare\", {\n    enumerable: true,\n    get: function () {\n      return _compare.default;\n    }\n  });\n  Object.defineProperty(_exports, \"isEqual\", {\n    enumerable: true,\n    get: function () {\n      return _isEqual.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Array\", {\n    enumerable: true,\n    get: function () {\n      return _array.default;\n    }\n  });\n  Object.defineProperty(_exports, \"NativeArray\", {\n    enumerable: true,\n    get: function () {\n      return _array.NativeArray;\n    }\n  });\n  Object.defineProperty(_exports, \"A\", {\n    enumerable: true,\n    get: function () {\n      return _array.A;\n    }\n  });\n  Object.defineProperty(_exports, \"MutableArray\", {\n    enumerable: true,\n    get: function () {\n      return _array.MutableArray;\n    }\n  });\n  Object.defineProperty(_exports, \"removeAt\", {\n    enumerable: true,\n    get: function () {\n      return _array.removeAt;\n    }\n  });\n  Object.defineProperty(_exports, \"uniqBy\", {\n    enumerable: true,\n    get: function () {\n      return _array.uniqBy;\n    }\n  });\n  Object.defineProperty(_exports, \"isArray\", {\n    enumerable: true,\n    get: function () {\n      return _array.isArray;\n    }\n  });\n  Object.defineProperty(_exports, \"Comparable\", {\n    enumerable: true,\n    get: function () {\n      return _comparable.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Namespace\", {\n    enumerable: true,\n    get: function () {\n      return _namespace.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ArrayProxy\", {\n    enumerable: true,\n    get: function () {\n      return _array_proxy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ObjectProxy\", {\n    enumerable: true,\n    get: function () {\n      return _object_proxy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"CoreObject\", {\n    enumerable: true,\n    get: function () {\n      return _core_object.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ActionHandler\", {\n    enumerable: true,\n    get: function () {\n      return _action_handler.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Copyable\", {\n    enumerable: true,\n    get: function () {\n      return _copyable.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Enumerable\", {\n    enumerable: true,\n    get: function () {\n      return _enumerable.default;\n    }\n  });\n  Object.defineProperty(_exports, \"_ProxyMixin\", {\n    enumerable: true,\n    get: function () {\n      return _proxy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"_contentFor\", {\n    enumerable: true,\n    get: function () {\n      return _proxy.contentFor;\n    }\n  });\n  Object.defineProperty(_exports, \"Observable\", {\n    enumerable: true,\n    get: function () {\n      return _observable.default;\n    }\n  });\n  Object.defineProperty(_exports, \"MutableEnumerable\", {\n    enumerable: true,\n    get: function () {\n      return _mutable_enumerable.default;\n    }\n  });\n  Object.defineProperty(_exports, \"TargetActionSupport\", {\n    enumerable: true,\n    get: function () {\n      return _target_action_support.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Evented\", {\n    enumerable: true,\n    get: function () {\n      return _evented.default;\n    }\n  });\n  Object.defineProperty(_exports, \"PromiseProxyMixin\", {\n    enumerable: true,\n    get: function () {\n      return _promise_proxy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"RSVP\", {\n    enumerable: true,\n    get: function () {\n      return _rsvp.default;\n    }\n  });\n  Object.defineProperty(_exports, \"onerrorDefault\", {\n    enumerable: true,\n    get: function () {\n      return _rsvp.onerrorDefault;\n    }\n  });\n  Object.defineProperty(_exports, \"typeOf\", {\n    enumerable: true,\n    get: function () {\n      return _typeOf.typeOf;\n    }\n  });\n});\n","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://emberjs.com/deprecations/v3.x/#toc_ember-runtime-deprecate-copy-copyable'\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        });\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        });\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        });\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, CUSTOM_TAG_FOR, tagForProperty } from '@ember/-internals/metal';\nimport { setProxy, setupMandatorySetter, isObject } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\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/**\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\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  },\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  [CUSTOM_TAG_FOR](key, addMandatorySetter) {\n    let meta = tagMetaFor(this);\n    let tag = tagFor(this, 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 this) {\n      if (DEBUG && addMandatorySetter) {\n        setupMandatorySetter(tag, this, key);\n      }\n\n      return tag;\n    } else {\n      let tags = [tag, tagFor(this, 'content', meta)];\n      let content = contentFor(this);\n\n      if (isObject(content)) {\n        tags.push(tagForProperty(content, key, addMandatorySetter));\n      }\n\n      return combine(tags);\n    }\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, tryInvoke } 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' }]\n    things.filterBy('isFruit'); // [{ food: 'apple' }]\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(tryInvoke(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 } from '@ember/debug';\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\nexport default 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@module @ember/array\n*/\nimport { get, objectAt, alias, PROPERTY_DID_CHANGE, addArrayObserver, removeArrayObserver, replace, CUSTOM_TAG_FOR, 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 { combine, consumeTag, validateTag, valueForTag, tagFor } from '@glimmer/validator';\nconst ARRAY_OBSERVER_MAPPING = {\n  willChange: '_arrangedContentArrayWillChange',\n  didChange: '_arrangedContentArrayDidChange'\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\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  }\n\n  [PROPERTY_DID_CHANGE]() {\n    this._revalidate();\n  }\n\n  [CUSTOM_TAG_FOR](key) {\n    if (key === '[]') {\n      this._revalidate();\n\n      return this._arrTag;\n    } else if (key === 'length') {\n      this._revalidate();\n\n      return this._lengthTag;\n    }\n\n    return tagFor(this, key);\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);\n      this._arrangedContent = arrangedContent;\n    }\n  }\n\n  _removeArrangedContentArrayObserver() {\n    if (this._arrangedContent) {\n      removeArrayObserver(this._arrangedContent, this, ARRAY_OBSERVER_MAPPING);\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, OWNER } from '@ember/-internals/owner';\nimport { assign, _WeakSet as WeakSet } from '@ember/polyfills';\nimport { guidFor, getName, setName, 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, classToString, isClassicDecorator, DEBUG_INJECTION_FUNCTIONS } from '@ember/-internals/metal';\nimport ActionHandler from '../mixins/action_handler';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { destroy, isDestroying, isDestroyed, registerDestructor } from '@glimmer/runtime';\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 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        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          defineProperty(obj, keyName, null, value, m); // setup mandatory setter\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/**\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    let ret = `<${getName(this) || getFactoryFor(this) || this.constructor.toString()}:${guidFor(this)}${extension}>`;\n    return ret;\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}\n\nCoreObject.toString = classToString;\nsetName(CoreObject, 'Ember.CoreObject');\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}\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, setName } 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}\nsetName(EmberObject, 'Ember.Object');\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 '@ember/polyfills';\nimport { 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*/\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*/\n\nfunction tryInvoke(obj, methodName, args) {\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;\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","define(\"@ember/-internals/views/index\", [\"exports\", \"@ember/-internals/views/lib/system/jquery\", \"@ember/-internals/views/lib/system/utils\", \"@ember/-internals/views/lib/system/event_dispatcher\", \"@ember/-internals/views/lib/component_lookup\", \"@ember/-internals/views/lib/mixins/text_support\", \"@ember/-internals/views/lib/views/core_view\", \"@ember/-internals/views/lib/mixins/class_names_support\", \"@ember/-internals/views/lib/mixins/child_views_support\", \"@ember/-internals/views/lib/mixins/view_state_support\", \"@ember/-internals/views/lib/mixins/view_support\", \"@ember/-internals/views/lib/mixins/action_support\", \"@ember/-internals/views/lib/compat/attrs\", \"@ember/-internals/views/lib/system/action_manager\"], function (_exports, _jquery, _utils, _event_dispatcher, _component_lookup, _text_support, _core_view, _class_names_support, _child_views_support, _view_state_support, _view_support, _action_support, _attrs, _action_manager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"jQuery\", {\n    enumerable: true,\n    get: function () {\n      return _jquery.jQuery;\n    }\n  });\n  Object.defineProperty(_exports, \"jQueryDisabled\", {\n    enumerable: true,\n    get: function () {\n      return _jquery.jQueryDisabled;\n    }\n  });\n  Object.defineProperty(_exports, \"addChildView\", {\n    enumerable: true,\n    get: function () {\n      return _utils.addChildView;\n    }\n  });\n  Object.defineProperty(_exports, \"isSimpleClick\", {\n    enumerable: true,\n    get: function () {\n      return _utils.isSimpleClick;\n    }\n  });\n  Object.defineProperty(_exports, \"getViewBounds\", {\n    enumerable: true,\n    get: function () {\n      return _utils.getViewBounds;\n    }\n  });\n  Object.defineProperty(_exports, \"getViewClientRects\", {\n    enumerable: true,\n    get: function () {\n      return _utils.getViewClientRects;\n    }\n  });\n  Object.defineProperty(_exports, \"getViewBoundingClientRect\", {\n    enumerable: true,\n    get: function () {\n      return _utils.getViewBoundingClientRect;\n    }\n  });\n  Object.defineProperty(_exports, \"getRootViews\", {\n    enumerable: true,\n    get: function () {\n      return _utils.getRootViews;\n    }\n  });\n  Object.defineProperty(_exports, \"getChildViews\", {\n    enumerable: true,\n    get: function () {\n      return _utils.getChildViews;\n    }\n  });\n  Object.defineProperty(_exports, \"getViewId\", {\n    enumerable: true,\n    get: function () {\n      return _utils.getViewId;\n    }\n  });\n  Object.defineProperty(_exports, \"getElementView\", {\n    enumerable: true,\n    get: function () {\n      return _utils.getElementView;\n    }\n  });\n  Object.defineProperty(_exports, \"getViewElement\", {\n    enumerable: true,\n    get: function () {\n      return _utils.getViewElement;\n    }\n  });\n  Object.defineProperty(_exports, \"setElementView\", {\n    enumerable: true,\n    get: function () {\n      return _utils.setElementView;\n    }\n  });\n  Object.defineProperty(_exports, \"setViewElement\", {\n    enumerable: true,\n    get: function () {\n      return _utils.setViewElement;\n    }\n  });\n  Object.defineProperty(_exports, \"clearElementView\", {\n    enumerable: true,\n    get: function () {\n      return _utils.clearElementView;\n    }\n  });\n  Object.defineProperty(_exports, \"clearViewElement\", {\n    enumerable: true,\n    get: function () {\n      return _utils.clearViewElement;\n    }\n  });\n  Object.defineProperty(_exports, \"constructStyleDeprecationMessage\", {\n    enumerable: true,\n    get: function () {\n      return _utils.constructStyleDeprecationMessage;\n    }\n  });\n  Object.defineProperty(_exports, \"EventDispatcher\", {\n    enumerable: true,\n    get: function () {\n      return _event_dispatcher.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ComponentLookup\", {\n    enumerable: true,\n    get: function () {\n      return _component_lookup.default;\n    }\n  });\n  Object.defineProperty(_exports, \"TextSupport\", {\n    enumerable: true,\n    get: function () {\n      return _text_support.default;\n    }\n  });\n  Object.defineProperty(_exports, \"CoreView\", {\n    enumerable: true,\n    get: function () {\n      return _core_view.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ClassNamesSupport\", {\n    enumerable: true,\n    get: function () {\n      return _class_names_support.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ChildViewsSupport\", {\n    enumerable: true,\n    get: function () {\n      return _child_views_support.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ViewStateSupport\", {\n    enumerable: true,\n    get: function () {\n      return _view_state_support.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ViewMixin\", {\n    enumerable: true,\n    get: function () {\n      return _view_support.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ActionSupport\", {\n    enumerable: true,\n    get: function () {\n      return _action_support.default;\n    }\n  });\n  Object.defineProperty(_exports, \"MUTABLE_CELL\", {\n    enumerable: true,\n    get: function () {\n      return _attrs.MUTABLE_CELL;\n    }\n  });\n  Object.defineProperty(_exports, \"ActionManager\", {\n    enumerable: true,\n    get: function () {\n      return _action_manager.default;\n    }\n  });\n});\n","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://emberjs.com/deprecations/v3.x#toc_ember-component-send-action'\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 { TargetActionSupport } from '@ember/-internals/runtime';\nimport { deprecate } from '@ember/debug';\nimport { SEND_ACTION } from '@ember/deprecated-features';\nimport { MUTABLE_CELL } from '@ember/-internals/views';\nconst KEY_EVENTS = {\n  13: 'insertNewline',\n  27: '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\nexport default Mixin.create(TargetActionSupport, {\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 map = KEY_EVENTS;\n    let method = map[event.keyCode];\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://emberjs.com/deprecations/v3.x#toc_ember-component-send-action'\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@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://emberjs.com/deprecations/v3.x#toc_jquery-apis'\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    assert('EventDispatcher should never be instantiated 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    this._eventHandlers = Object.create(null);\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    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\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    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://emberjs.com/deprecations/v3.x#toc_jquery-event'\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://emberjs.com/deprecations/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 { 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    if (!this.renderer) {\n      throw new Error(`Cannot instantiate a component without a renderer. Please ensure that you are creating ${this} with a proper container/registry.`);\n    }\n  },\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);","/**\n@module @ember/application\n*/\nimport { dictionary } 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';\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      });\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            assert(`Expected ${parsedName.fullName} to resolve to an ${expectedType} but ` + `instead it was ${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 factory.toString();\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;","define(\"@ember/application/index\", [\"exports\", \"@ember/-internals/owner\", \"@ember/application/lib/lazy_load\", \"@ember/application/lib/application\"], function (_exports, _owner, _lazy_load, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"getOwner\", {\n    enumerable: true,\n    get: function () {\n      return _owner.getOwner;\n    }\n  });\n  Object.defineProperty(_exports, \"setOwner\", {\n    enumerable: true,\n    get: function () {\n      return _owner.setOwner;\n    }\n  });\n  Object.defineProperty(_exports, \"onLoad\", {\n    enumerable: true,\n    get: function () {\n      return _lazy_load.onLoad;\n    }\n  });\n  Object.defineProperty(_exports, \"runLoadHooks\", {\n    enumerable: true,\n    get: function () {\n      return _lazy_load.runLoadHooks;\n    }\n  });\n  Object.defineProperty(_exports, \"_loaded\", {\n    enumerable: true,\n    get: function () {\n      return _lazy_load._loaded;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _application.default;\n    }\n  });\n});\n","/**\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    this._didSetupRouter = true;\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    \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    \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    \n    @public\n  */\n  setupRouter() {\n    if (this._didSetupRouter) {\n      return;\n    }\n\n    this._didSetupRouter = true;\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, isTesting } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { bind, join, once, run, schedule } from '@ember/runloop';\nimport { libraries, processAllNamespaces, setNamespaceSearchDisabled } 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    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.$ || this.$.isReady) {\n      schedule('actions', this, 'domReady');\n    } else {\n      this.$().ready(bind(this, 'domReady'));\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      if (!isTesting()) {\n        // Eagerly name all classes that are already loaded\n        processAllNamespaces();\n        setNamespaceSearchDisabled(true);\n      } // See documentation on `_autoboot()` for details\n\n\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    setNamespaceSearchDisabled(false);\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.extend());\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.injection('router:main', 'namespace', 'application:main');\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  registry.injection('service:router', '_router', 'router:main');\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}","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: false,\n  EMBER_MODULE_UNIFICATION: false,\n  EMBER_CUSTOM_COMPONENT_ARG_PROXY: true,\n  EMBER_GLIMMER_SET_COMPONENT_TEMPLATE: true,\n  EMBER_ROUTING_MODEL_ARG: true,\n  EMBER_GLIMMER_IN_ELEMENT: true,\n  EMBER_CACHE_API: false\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 featureValue = FEATURES[feature];\n\n  if (featureValue === true || featureValue === false) {\n    return featureValue;\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_MODULE_UNIFICATION = featureValue(FEATURES.EMBER_MODULE_UNIFICATION);\nexport const EMBER_CUSTOM_COMPONENT_ARG_PROXY = featureValue(FEATURES.EMBER_CUSTOM_COMPONENT_ARG_PROXY);\nexport const EMBER_GLIMMER_SET_COMPONENT_TEMPLATE = featureValue(FEATURES.EMBER_GLIMMER_SET_COMPONENT_TEMPLATE);\nexport const EMBER_ROUTING_MODEL_ARG = featureValue(FEATURES.EMBER_ROUTING_MODEL_ARG);\nexport const EMBER_GLIMMER_IN_ELEMENT = featureValue(FEATURES.EMBER_GLIMMER_IN_ELEMENT);\nexport const EMBER_CACHE_API = featureValue(FEATURES.EMBER_CACHE_API);","define(\"@ember/component/index\", [\"exports\", \"@ember/-internals/glimmer\"], function (_exports, _glimmer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Component\", {\n    enumerable: true,\n    get: function () {\n      return _glimmer.Component;\n    }\n  });\n});\n","// This is only exported for types, don't use this class directly\nexport class TemplateOnlyComponent {\n  constructor(moduleName = '@ember/component/template-only') {\n    this.moduleName = moduleName;\n  }\n\n  toString() {\n    return this.moduleName;\n  }\n\n}\n/**\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*/\n\nexport default function templateOnlyComponent(moduleName) {\n  return new TemplateOnlyComponent(moduleName);\n}\nexport function isTemplateOnlyComponent(component) {\n  return component instanceof TemplateOnlyComponent;\n}","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});","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 { 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 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 { 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 env = expect(app.lookup('-environment:main'), 'BUG: owner is missing -environment:main');\n  let rendererType = env.isInteractive ? 'renderer:-dom' : 'renderer:-inert';\n  let renderer = expect(app.lookup(rendererType), `BUG: owner is missing ${rendererType}`);\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 deprecate = () => {};\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   @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.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  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    invoke('deprecate', message, test, options);\n  };\n}\n\nexport default deprecate;\nexport { registerHandler, missingOptionsDeprecation, missingOptionsIdDeprecation, missingOptionsUntilDeprecation };","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 { 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, privatize as P } 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('view', '_viewRegistry', '-view-registry:main');\n  registry.injection('renderer', '_viewRegistry', '-view-registry:main');\n  registry.injection('route', '_topLevelViewTemplate', 'template:-outlet');\n  registry.injection('view:-outlet', 'namespace', 'application:main');\n  registry.injection('controller', 'target', 'router:main');\n  registry.injection('controller', 'namespace', 'application:main');\n  registry.injection('router', '_bucketCache', P`-bucket-cache:main`);\n  registry.injection('route', '_bucketCache', P`-bucket-cache:main`);\n  registry.injection('route', '_router', 'router:main'); // Register the routing service...\n\n  registry.register('service:-routing', RoutingService); // Then inject the app router into it\n\n  registry.injection('service:-routing', 'router', 'router:main'); // 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');\n  registry.injection('data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter: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:-${env.isInteractive ? 'dom' : 'inert'}`, '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    registry.injection('route', '_environment', '-environment:main');\n\n    if (options.isInteractive) {\n      registry.injection('view', 'renderer', 'renderer:-dom');\n      registry.injection('component', 'renderer', 'renderer:-dom');\n    } else {\n      registry.injection('view', 'renderer', 'renderer:-inert');\n      registry.injection('component', 'renderer', 'renderer:-inert');\n    }\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}","/**\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;","/* 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}","define(\"@ember/modifier/index\", [\"exports\", \"@ember/-internals/glimmer\"], function (_exports, _glimmer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"setModifierManager\", {\n    enumerable: true,\n    get: function () {\n      return _glimmer.setModifierManager;\n    }\n  });\n  Object.defineProperty(_exports, \"capabilties\", {\n    enumerable: true,\n    get: function () {\n      return _glimmer.modifierCapabilities;\n    }\n  });\n});\n","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);","define(\"@ember/object/computed\", [\"exports\", \"@ember/object/lib/computed/computed_macros\", \"@ember/object/lib/computed/reduce_computed_macros\"], function (_exports, _computed_macros, _reduce_computed_macros) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"empty\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.empty;\n    }\n  });\n  Object.defineProperty(_exports, \"notEmpty\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.notEmpty;\n    }\n  });\n  Object.defineProperty(_exports, \"none\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.none;\n    }\n  });\n  Object.defineProperty(_exports, \"not\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.not;\n    }\n  });\n  Object.defineProperty(_exports, \"bool\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.bool;\n    }\n  });\n  Object.defineProperty(_exports, \"match\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.match;\n    }\n  });\n  Object.defineProperty(_exports, \"equal\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.equal;\n    }\n  });\n  Object.defineProperty(_exports, \"gt\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.gt;\n    }\n  });\n  Object.defineProperty(_exports, \"gte\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.gte;\n    }\n  });\n  Object.defineProperty(_exports, \"lt\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.lt;\n    }\n  });\n  Object.defineProperty(_exports, \"lte\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.lte;\n    }\n  });\n  Object.defineProperty(_exports, \"oneWay\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.oneWay;\n    }\n  });\n  Object.defineProperty(_exports, \"readOnly\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.readOnly;\n    }\n  });\n  Object.defineProperty(_exports, \"deprecatingAlias\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.deprecatingAlias;\n    }\n  });\n  Object.defineProperty(_exports, \"and\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.and;\n    }\n  });\n  Object.defineProperty(_exports, \"or\", {\n    enumerable: true,\n    get: function () {\n      return _computed_macros.or;\n    }\n  });\n  Object.defineProperty(_exports, \"sum\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.sum;\n    }\n  });\n  Object.defineProperty(_exports, \"min\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.min;\n    }\n  });\n  Object.defineProperty(_exports, \"max\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.max;\n    }\n  });\n  Object.defineProperty(_exports, \"map\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.map;\n    }\n  });\n  Object.defineProperty(_exports, \"sort\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.sort;\n    }\n  });\n  Object.defineProperty(_exports, \"setDiff\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.setDiff;\n    }\n  });\n  Object.defineProperty(_exports, \"mapBy\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.mapBy;\n    }\n  });\n  Object.defineProperty(_exports, \"filter\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.filter;\n    }\n  });\n  Object.defineProperty(_exports, \"filterBy\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.filterBy;\n    }\n  });\n  Object.defineProperty(_exports, \"uniq\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.uniq;\n    }\n  });\n  Object.defineProperty(_exports, \"uniqBy\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.uniqBy;\n    }\n  });\n  Object.defineProperty(_exports, \"union\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.union;\n    }\n  });\n  Object.defineProperty(_exports, \"intersect\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.intersect;\n    }\n  });\n  Object.defineProperty(_exports, \"collect\", {\n    enumerable: true,\n    get: function () {\n      return _reduce_computed_macros.collect;\n    }\n  });\n});\n","import { assert } from '@ember/debug';\nimport { assign } from '@ember/polyfills';\nimport { isElementDescriptor, setClassicDecorator } from '@ember/-internals/metal';\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\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);","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}","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 { default as _WeakSet } from './lib/weak_set';\nexport { merge };","/**\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\nexport default function 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://emberjs.com/deprecations/v3.x/#toc_ember-polyfills-deprecate-merge'\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}","/* globals WeakSet */\nexport default 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};","import { assert } from '@ember/debug';\nimport { onErrorTarget } from '@ember/-internals/error-handling';\nimport { flushAsyncObservers } from '@ember/-internals/metal';\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} // used for the Ember.run global only\n\nexport const _globalsRun = run.bind(null);\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}","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 { getString } from './lib/string_registry';\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*/\n\n\nexport function loc(str, formats) {\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\nif (ENV.EXTEND_PROTOTYPES.String) {\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    */\n    w: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n\n      value() {\n        return w(this);\n      }\n\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    */\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    */\n    camelize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n\n      value() {\n        return camelize(this);\n      }\n\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    */\n    decamelize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n\n      value() {\n        return decamelize(this);\n      }\n\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    */\n    dasherize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n\n      value() {\n        return dasherize(this);\n      }\n\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    */\n    underscore: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n\n      value() {\n        return underscore(this);\n      }\n\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    */\n    classify: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n\n      value() {\n        return classify(this);\n      }\n\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    */\n    capitalize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n\n      value() {\n        return capitalize(this);\n      }\n\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}","class 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 (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 };","const DEBUG = false;\nconst CI = false;\nexport { DEBUG, CI };","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 };","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 };","import { $v0, $fp, $sp, isMachineOp, $s0, $s1 } from '@glimmer/vm';\nimport { isSmallInt, exhausted, EMPTY_ARRAY, assertNever, dict, assign, Stack, encodeImmediate, unreachable, encodeHandle, unwrapTemplate } from '@glimmer/util';\nimport { patchStdlibs, WriteOnlyConstants, HeapImpl, JitConstants } from '@glimmer/program';\nimport { InstructionEncoderImpl } from '@glimmer/encoder';\n\nfunction arr(value) {\n  return {\n    type: 'array',\n    value\n  };\n}\n\nfunction strArray(value) {\n  return {\n    type: 'string-array',\n    value\n  };\n}\n\nfunction serializable(value) {\n  return {\n    type: 'serializable',\n    value\n  };\n}\n\nfunction templateMeta(value) {\n  return {\n    type: 'template-meta',\n    value\n  };\n}\n\nfunction other(value) {\n  return {\n    type: 'other',\n    value\n  };\n}\n\nfunction label(value) {\n  return {\n    type: 'label',\n    value\n  };\n}\n\nfunction immediate(value) {\n  return {\n    type: 'immediate',\n    value\n  };\n}\n\nfunction prim(value) {\n  return {\n    type: 'primitive',\n    value\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};\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};\n\nclass DefaultCompileTimeResolverDelegate {\n  constructor(inner) {\n    this.inner = inner;\n  }\n\n  lookupHelper(name, referrer) {\n    if (this.inner.lookupHelper) {\n      let helper = this.inner.lookupHelper(name, referrer);\n\n      if (helper === undefined) {\n        throw new Error(`Unexpected helper (${name} from ${JSON.stringify(referrer)}) (lookupHelper returned undefined)`);\n      }\n\n      return helper;\n    } else {\n      throw new Error(`Can't compile global helper invocations without an implementation of lookupHelper`);\n    }\n  }\n\n  lookupModifier(name, referrer) {\n    if (this.inner.lookupModifier) {\n      let modifier = this.inner.lookupModifier(name, referrer);\n\n      if (modifier === undefined) {\n        throw new Error(`Unexpected modifier (${name} from ${JSON.stringify(referrer)}) (lookupModifier returned undefined)`);\n      }\n\n      return modifier;\n    } else {\n      throw new Error(`Can't compile global modifier invocations without an implementation of lookupModifier`);\n    }\n  }\n\n  lookupComponent(name, referrer) {\n    if (this.inner.lookupComponent) {\n      let component = this.inner.lookupComponent(name, referrer);\n\n      if (component === undefined) {\n        throw new Error(`Unexpected component (${name} from ${JSON.stringify(referrer)}) (lookupComponent returned undefined)`);\n      }\n\n      return component;\n    } else {\n      throw new Error(`Can't compile global component invocations without an implementation of lookupComponent`);\n    }\n  }\n\n  lookupPartial(name, referrer) {\n    if (this.inner.lookupPartial) {\n      let partial = this.inner.lookupPartial(name, referrer);\n\n      if (partial === undefined) {\n        throw new Error(`Unexpected partial (${name} from ${JSON.stringify(referrer)}) (lookupPartial returned undefined)`);\n      }\n\n      return partial;\n    } else {\n      throw new Error(`Can't compile global partial invocations without an implementation of lookupPartial`);\n    }\n  } // For debugging\n\n\n  resolve(handle) {\n    if (this.inner.resolve) {\n      return this.inner.resolve(handle);\n    } else {\n      throw new Error(`Compile-time debugging requires an implementation of resolve`);\n    }\n  }\n\n}\n\nfunction resolveLayoutForTag(tag, {\n  resolver,\n  meta: {\n    referrer\n  }\n}) {\n  let component = resolver.lookupComponent(tag, referrer);\n  if (component === null) return component;\n  let {\n    handle,\n    compilable,\n    capabilities\n  } = component;\n  return {\n    handle,\n    compilable,\n    capabilities: capabilities || MINIMAL_CAPABILITIES\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\n\nfunction PushPrimitiveReference(value) {\n  return [PushPrimitive(value), 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\n\nfunction PushPrimitive(primitive) {\n  let p = typeof primitive === 'number' && isSmallInt(primitive) ? immediate(primitive) : prim(primitive);\n  return op(30\n  /* Primitive */\n  , p);\n}\n/**\n * Invoke a foreign function (a \"helper\") based on a statically known handle\n *\n * @param compile.handle A handle\n * @param compile.params An optional list of expressions to compile\n * @param compile.hash An optional list of named arguments (name + expression) to compile\n */\n\n\nfunction Call({\n  handle,\n  params,\n  hash\n}) {\n  return [op(0\n  /* PushFrame */\n  ), op('SimpleArgs', {\n    params,\n    hash,\n    atNames: false\n  }), op(16\n  /* Helper */\n  , handle), op(1\n  /* PopFrame */\n  ), op(36\n  /* Fetch */\n  , $v0)];\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\n\nfunction DynamicScope(names, block) {\n  return [op(59\n  /* PushDynamicScope */\n  ), op(58\n  /* BindDynamicScope */\n  , strArray(names)), block(), op(60\n  /* PopDynamicScope */\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\n\nfunction YieldBlock(to, params) {\n  return [op('SimpleArgs', {\n    params,\n    hash: null,\n    atNames: true\n  }), op(24\n  /* GetBlock */\n  , to), op(25\n  /* JitSpreadBlock */\n  ), op('Option', op('JitCompileBlock')), op(64\n  /* InvokeYield */\n  ), op(40\n  /* PopScope */\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\n\nfunction PushYieldableBlock(block) {\n  return [PushSymbolTable(block && block.symbolTable), op(62\n  /* PushBlockScope */\n  ), op('PushCompilable', block)];\n}\n/**\n * Invoke a block that is known statically at compile time.\n *\n * @param block a Compilable block\n */\n\n\nfunction InvokeStaticBlock(block) {\n  return [op(0\n  /* PushFrame */\n  ), op('PushCompilable', block), op('JitCompileBlock'), op(2\n  /* InvokeVirtual */\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\n\nfunction InvokeStaticBlockWithStack(block, callerCount) {\n  let {\n    parameters\n  } = block.symbolTable;\n  let calleeCount = parameters.length;\n  let count = Math.min(callerCount, calleeCount);\n\n  if (count === 0) {\n    return InvokeStaticBlock(block);\n  }\n\n  let out = [];\n  out.push(op(0\n  /* PushFrame */\n  ));\n\n  if (count) {\n    out.push(op(39\n    /* ChildScope */\n    ));\n\n    for (let i = 0; i < count; i++) {\n      out.push(op(33\n      /* Dup */\n      , $fp, callerCount - i));\n      out.push(op(19\n      /* SetVariable */\n      , parameters[i]));\n    }\n  }\n\n  out.push(op('PushCompilable', block));\n  out.push(op('JitCompileBlock'));\n  out.push(op(2\n  /* InvokeVirtual */\n  ));\n\n  if (count) {\n    out.push(op(40\n    /* PopScope */\n    ));\n  }\n\n  out.push(op(1\n  /* PopFrame */\n  ));\n  return out;\n}\n\nfunction PushSymbolTable(table) {\n  if (table) {\n    return op(63\n    /* PushSymbolTable */\n    , serializable(table));\n  } else {\n    return PushPrimitive(null);\n  }\n}\n\nfunction SwitchCases(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  let out = [op(69\n  /* Enter */\n  , 2), op(68\n  /* AssertSame */\n  ), op(32\n  /* ReifyU32 */\n  ), op('StartLabels')]; // 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    out.push(op(67\n    /* JumpEq */\n    , label(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    out.push(op('Label', clause.label), op(34\n    /* Pop */\n    , 2), 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      out.push(op(4\n      /* Jump */\n      , label('END')));\n    }\n  }\n\n  out.push(op('Label', 'END'), op('StopLabels'), op(70\n  /* Exit */\n  ));\n  return out;\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\n\nfunction Replayable({\n  args: args$$1,\n  body\n}) {\n  // 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  let {\n    count,\n    actions\n  } = args$$1(); // Start a new label frame, to give END and RETURN\n  // a unique meaning.\n\n  return [op('StartLabels'), 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  op(6\n  /* ReturnTo */\n  , label('ENDINITIAL')), actions, // 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  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  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  op('Label', 'FINALLY'), // Finalize the DOM.\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  op(5\n  /* Return */\n  ), // Cleanup code for the block. Runs on initial execution\n  // but not on updating.\n  op('Label', 'ENDINITIAL'), op(1\n  /* PopFrame */\n  ), op('StopLabels')];\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\n\nfunction ReplayableIf({\n  args: args$$1,\n  ifTrue,\n  ifFalse\n}) {\n  return Replayable({\n    args: args$$1,\n    body: () => {\n      let out = [// If the conditional is false, jump to the ELSE label.\n      op(66\n      /* JumpUnless */\n      , label('ELSE')), // Otherwise, execute the code associated with the true branch.\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      op(4\n      /* Jump */\n      , label('FINALLY')), op('Label', '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) {\n        out.push(ifFalse());\n      }\n\n      return out;\n    }\n  });\n}\n\nfunction pushBuilderOp(context, op$$1) {\n  let {\n    encoder,\n    syntax: {\n      program: {\n        mode,\n        constants\n      }\n    }\n  } = context;\n\n  switch (op$$1.op) {\n    case \"Option\"\n    /* Option */\n    :\n      return concat(context, option$1(op$$1));\n\n    case \"Label\"\n    /* Label */\n    :\n      return encoder.label(op$$1.op1);\n\n    case \"StartLabels\"\n    /* StartLabels */\n    :\n      return encoder.startLabels();\n\n    case \"StopLabels\"\n    /* StopLabels */\n    :\n      return encoder.stopLabels();\n\n    case \"JitCompileBlock\"\n    /* JitCompileBlock */\n    :\n      return concat(context, jitCompileBlock(mode));\n\n    case \"GetComponentLayout\"\n    /* GetComponentLayout */\n    :\n      return encoder.push(constants, compileLayoutOpcode(mode), op$$1.op1);\n\n    case \"SetBlock\"\n    /* SetBlock */\n    :\n      return encoder.push(constants, setBlock(mode), op$$1.op1);\n\n    default:\n      return exhausted(op$$1);\n  }\n}\n\nfunction option$1(op$$1) {\n  let value = op$$1.op1;\n  return value === null ? NONE : value;\n}\n\nfunction compileLayoutOpcode(mode) {\n  return mode === \"aot\"\n  /* aot */\n  ? 94\n  /* GetAotComponentLayout */\n  : 95\n  /* GetJitComponentLayout */\n  ;\n}\n\nfunction jitCompileBlock(mode) {\n  return mode === \"jit\"\n  /* jit */\n  ? op(61\n  /* CompileBlock */\n  ) : NONE;\n}\n\nfunction setBlock(mode) {\n  return mode === \"aot\"\n  /* aot */\n  ? 20\n  /* SetAotBlock */\n  : 21\n  /* SetJitBlock */\n  ;\n}\n\nfunction pushCompileOp(context, action) {\n  concatStatements(context, compileOp(context, action));\n}\n\nfunction compileOp(context, action) {\n  switch (action.op) {\n    case \"CompileBlock\"\n    /* CompileBlock */\n    :\n      return CompileBlockOp(context, action);\n\n    case \"CompileInline\"\n    /* CompileInline */\n    :\n      return CompileInlineOp(context, action);\n\n    case \"InvokeStatic\"\n    /* InvokeStatic */\n    :\n      return InvokeStatic(context.syntax, action);\n\n    case \"Args\"\n    /* Args */\n    :\n      return CompileArgs(action.op1);\n\n    case \"PushCompilable\"\n    /* PushCompilable */\n    :\n      return PushCompilable(action.op1, context.syntax);\n\n    case \"DynamicComponent\"\n    /* DynamicComponent */\n    :\n      return DynamicComponent(context, action);\n\n    case \"IfResolvedComponent\"\n    /* IfResolvedComponent */\n    :\n      return IfResolvedComponent(context, action);\n\n    default:\n      return exhausted(action);\n  }\n}\n\nfunction CompileBlockOp(context, op$$1) {\n  return compileBlock(op$$1.op1, context);\n}\n\nfunction CompileInlineOp(context, op$$1) {\n  let {\n    inline,\n    ifUnhandled\n  } = op$$1.op1;\n  let returned = compileInline(inline, context);\n\n  if (isHandled(returned)) {\n    return returned;\n  } else {\n    return ifUnhandled(inline);\n  }\n}\n\nfunction InvokeStatic(context, action) {\n  let compilable$$1 = action.op1;\n\n  if (context.program.mode === \"aot\"\n  /* aot */\n  ) {\n      let handle = compilable$$1.compile(context);\n\n      if (typeof handle !== 'number') {\n        return op('Error', {\n          problem: 'Invalid block',\n          start: 0,\n          end: 0\n        });\n      } // If the handle for the invoked component is not yet known (for example,\n      // because this is a recursive invocation and we're still compiling), push a\n      // function that will produce the correct handle when the heap is\n      // serialized.\n\n\n      if (handle === PLACEHOLDER_HANDLE) {\n        return op(3\n        /* InvokeStatic */\n        , () => compilable$$1.compile(context));\n      } else {\n        return op(3\n        /* InvokeStatic */\n        , handle);\n      }\n    } else {\n    return [op(29\n    /* Constant */\n    , other(action.op1)), op(61\n    /* CompileBlock */\n    ), op(2\n    /* InvokeVirtual */\n    )];\n  }\n}\n\nfunction DynamicComponent(context, action) {\n  let {\n    definition,\n    attrs,\n    params,\n    args: args$$1,\n    blocks,\n    atNames\n  } = action.op1;\n  let attrsBlock = attrs && attrs.length > 0 ? compilableBlock(attrs, context.meta) : null;\n  let compiled = Array.isArray(blocks) || blocks === null ? namedBlocks(blocks, context.meta) : blocks;\n  return InvokeDynamicComponent(context.meta, {\n    definition,\n    attrs: attrsBlock,\n    params,\n    hash: args$$1,\n    atNames,\n    blocks: compiled\n  });\n}\n\nfunction IfResolvedComponent(context, action) {\n  let {\n    name,\n    attrs,\n    blocks,\n    staticTemplate,\n    dynamicTemplate,\n    orElse\n  } = action.op1;\n  let component = resolveLayoutForTag(name, {\n    resolver: context.syntax.program.resolverDelegate,\n    meta: context.meta\n  });\n  let {\n    meta: meta$$1\n  } = context;\n\n  if (component !== null) {\n    let {\n      handle,\n      capabilities,\n      compilable: compilable$$1\n    } = component;\n    let attrsBlock = compilableBlock(attrs, meta$$1);\n    let compilableBlocks = namedBlocks(blocks, meta$$1);\n\n    if (compilable$$1 !== null) {\n      return staticTemplate(handle, capabilities, compilable$$1, {\n        attrs: attrsBlock,\n        blocks: compilableBlocks\n      });\n    } else {\n      return dynamicTemplate(handle, capabilities, {\n        attrs: attrsBlock,\n        blocks: compilableBlocks\n      });\n    }\n  } else if (orElse) {\n    return orElse();\n  } else {\n    throw new Error(`Compile Error: Cannot find component ${name}`);\n  }\n}\n\nfunction PushCompilable(block, context) {\n  if (block === null) {\n    return PushPrimitive(null);\n  } else if (context.program.mode === \"aot\"\n  /* aot */\n  ) {\n      let compiled = block.compile(context);\n\n      if (typeof compiled !== 'number') {\n        return op('Error', {\n          problem: 'Compile Error (TODO: thread better)',\n          start: 0,\n          end: 0\n        });\n      }\n\n      return PushPrimitive(compiled);\n    } else {\n    return op(29\n    /* Constant */\n    , other(block));\n  }\n}\n\nfunction pushOp(encoder, constants, op) {\n  if (op.op3 !== undefined) {\n    encoder.push(constants, op.op, op.op1, op.op2, op.op3);\n  } else if (op.op2 !== undefined) {\n    encoder.push(constants, op.op, op.op1, op.op2);\n  } else if (op.op1 !== undefined) {\n    encoder.push(constants, op.op, op.op1);\n  } else {\n    encoder.push(constants, op.op);\n  }\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(sexp, meta) {\n    let name = sexp[0];\n    let index = this.names[name];\n    let func = this.funcs[index];\n    return func(sexp, meta);\n  }\n\n}\n\nconst EXPRESSIONS = new Compilers();\nEXPRESSIONS.add(31\n/* Concat */\n, ([, parts]) => {\n  let out = [];\n\n  for (let part of parts) {\n    out.push(op('Expr', part));\n  }\n\n  out.push(op(28\n  /* Concat */\n  , parts.length));\n  return out;\n});\nEXPRESSIONS.add(30\n/* Call */\n, ([, name, params, hash], meta) => {\n  // TODO: triage this in the WF compiler\n  let start = 0;\n  let offset = 0;\n\n  if (isComponent(name, meta)) {\n    if (!params || params.length === 0) {\n      return op('Error', {\n        problem: 'component helper requires at least one argument',\n        start: start,\n        end: start + offset\n      });\n    }\n\n    let [definition, ...restArgs] = params;\n    return curryComponent({\n      definition,\n      params: restArgs,\n      hash,\n      atNames: false\n    }, meta.referrer);\n  }\n\n  let nameOrError = expectString(name, meta, 'Expected call head to be a string');\n\n  if (typeof nameOrError !== 'string') {\n    return nameOrError;\n  }\n\n  return op('IfResolved', {\n    kind: \"Helper\"\n    /* Helper */\n    ,\n    name: nameOrError,\n    andThen: handle => Call({\n      handle,\n      params,\n      hash\n    }),\n    span: {\n      start,\n      end: start + offset\n    }\n  });\n});\n\nfunction isGetContextualFree(opcode) {\n  return opcode[0] >= 34\n  /* GetContextualFreeStart */\n  ;\n}\n\nfunction isComponent(expr, meta) {\n  if (!Array.isArray(expr)) {\n    return false;\n  }\n\n  if (isGetContextualFree(expr)) {\n    let head = expr[1];\n\n    if (meta.upvars && meta.upvars[head] === 'component') {\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  return false;\n}\n\nEXPRESSIONS.add(32\n/* GetSymbol */\n, ([, sym, path]) => withPath(op(22\n/* GetVariable */\n, sym), path));\nEXPRESSIONS.add(33\n/* GetFree */\n, ([, sym, path]) => withPath(op('ResolveFree', sym), path));\nEXPRESSIONS.add(34\n/* GetFreeInAppendSingleId */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 0\n  /* AppendSingleId */\n\n}), path));\nEXPRESSIONS.add(35\n/* GetFreeInExpression */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 1\n  /* Expression */\n\n}), path));\nEXPRESSIONS.add(36\n/* GetFreeInCallHead */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 2\n  /* CallHead */\n\n}), path));\nEXPRESSIONS.add(37\n/* GetFreeInBlockHead */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 3\n  /* BlockHead */\n\n}), path));\nEXPRESSIONS.add(38\n/* GetFreeInModifierHead */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 4\n  /* ModifierHead */\n\n}), path));\nEXPRESSIONS.add(39\n/* GetFreeInComponentHead */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 5\n  /* ComponentHead */\n\n}), path));\n\nfunction withPath(expr, path) {\n  if (path === undefined || path.length === 0) return expr;\n  if (!Array.isArray(expr)) expr = [expr];\n\n  for (let i = 0; i < path.length; i++) {\n    expr.push(op(23\n    /* GetProperty */\n    , path[i]));\n  }\n\n  return expr;\n}\n\nEXPRESSIONS.add(29\n/* Undefined */\n, () => PushPrimitiveReference(undefined));\nEXPRESSIONS.add(27\n/* HasBlock */\n, ([, block]) => {\n  return [op('Expr', block), op(26\n  /* HasBlock */\n  )];\n});\nEXPRESSIONS.add(28\n/* HasBlockParams */\n, ([, block]) => [op('Expr', block), op(25\n/* JitSpreadBlock */\n), op('JitCompileBlock'), op(27\n/* HasBlockParams */\n)]);\n\nfunction pushResolutionOp(encoder, context, operation, constants) {\n  switch (operation.op) {\n    case \"SimpleArgs\"\n    /* SimpleArgs */\n    :\n      concatExpressions(encoder, context, compileSimpleArgs(operation.op1.params, operation.op1.hash, operation.op1.atNames), constants);\n      break;\n\n    case \"Expr\"\n    /* Expr */\n    :\n      concatExpressions(encoder, context, expr(operation.op1, context.meta), constants);\n      break;\n\n    case \"IfResolved\"\n    /* IfResolved */\n    :\n      {\n        concatExpressions(encoder, context, ifResolved(context, operation), constants);\n        break;\n      }\n\n    case \"ResolveFree\"\n    /* ResolveFree */\n    :\n      {\n        throw new Error('Unimplemented HighLevelResolutionOpcode.ResolveFree');\n      }\n\n    case \"ResolveContextualFree\"\n    /* ResolveContextualFree */\n    :\n      {\n        let {\n          freeVar,\n          context: expressionContext\n        } = operation.op1;\n\n        if (context.meta.asPartial) {\n          let name = context.meta.upvars[freeVar];\n          concatExpressions(encoder, context, [op(105\n          /* ResolveMaybeLocal */\n          , name)], constants);\n          break;\n        }\n\n        switch (expressionContext) {\n          case 1\n          /* Expression */\n          :\n            {\n              // in classic mode, this is always a this-fallback\n              let name = context.meta.upvars[freeVar];\n              concatExpressions(encoder, context, [op(22\n              /* GetVariable */\n              , 0), op(23\n              /* GetProperty */\n              , name)], constants);\n              break;\n            }\n\n          case 0\n          /* AppendSingleId */\n          :\n            {\n              let resolver = context.syntax.program.resolverDelegate;\n              let name = context.meta.upvars[freeVar];\n              let resolvedHelper = resolver.lookupHelper(name, context.meta.referrer);\n              let expressions;\n\n              if (resolvedHelper) {\n                expressions = Call({\n                  handle: resolvedHelper,\n                  params: null,\n                  hash: null\n                });\n              } else {\n                // in classic mode, this is always a this-fallback\n                expressions = [op(22\n                /* GetVariable */\n                , 0), op(23\n                /* GetProperty */\n                , name)];\n              }\n\n              concatExpressions(encoder, context, expressions, constants);\n              break;\n            }\n\n          default:\n            throw new Error(`unimplemented: Can't evaluate expression in context ${expressionContext}`);\n        }\n\n        break;\n      }\n\n    default:\n      return exhausted(operation);\n  }\n}\n\nfunction expr(expression$$1, meta$$1) {\n  if (Array.isArray(expression$$1)) {\n    return EXPRESSIONS.compile(expression$$1, meta$$1);\n  } else {\n    return [PushPrimitive(expression$$1), op(31\n    /* PrimitiveReference */\n    )];\n  }\n}\n\nfunction compileSimpleArgs(params, hash, atNames) {\n  let out = [];\n  let {\n    count,\n    actions\n  } = CompilePositional(params);\n  out.push(actions);\n  let flags = count << 4;\n  if (atNames) flags |= 0b1000;\n  let names = EMPTY_ARRAY;\n\n  if (hash) {\n    names = hash[0];\n    let val = hash[1];\n\n    for (let i = 0; i < val.length; i++) {\n      out.push(op('Expr', val[i]));\n    }\n  }\n\n  out.push(op(84\n  /* PushArgs */\n  , strArray(names), strArray(EMPTY_ARRAY), flags));\n  return out;\n}\n\nfunction ifResolved(context, {\n  op1\n}) {\n  let {\n    kind,\n    name,\n    andThen,\n    orElse,\n    span\n  } = op1;\n  let resolved = resolve(context.syntax.program.resolverDelegate, kind, name, context.meta.referrer);\n\n  if (resolved !== null) {\n    return andThen(resolved);\n  } else if (orElse) {\n    return orElse();\n  } else {\n    return error(`Unexpected ${kind} ${name}`, span.start, span.end);\n  }\n}\n\nfunction resolve(resolver, kind, name, referrer) {\n  switch (kind) {\n    case \"Modifier\"\n    /* Modifier */\n    :\n      return resolver.lookupModifier(name, referrer);\n\n    case \"Helper\"\n    /* Helper */\n    :\n      return resolver.lookupHelper(name, referrer);\n\n    case \"ComponentDefinition\"\n    /* ComponentDefinition */\n    :\n      {\n        let component = resolver.lookupComponent(name, referrer);\n        return component && component.handle;\n      }\n  }\n}\n\nconst NONE = {\n  'no-action': true\n};\nconst UNHANDLED = {\n  'not-handled': true\n};\n\nfunction isNoAction(actions) {\n  return actions && !!actions['no-action'];\n}\n\nfunction isHandled(actions) {\n  return !actions || !actions['not-handled'];\n}\n\nfunction concat(context, action) {\n  if (isNoAction(action)) {\n    return;\n  } else if (Array.isArray(action)) {\n    for (let item of action) {\n      concat(context, item);\n    }\n  } else if (action.type === 'Simple') {\n    pushBuilderOp(context, action);\n  } else {\n    pushOp(context.encoder, context.syntax.program.constants, action);\n  }\n}\n\nfunction concatExpressions(encoder, context, action, constants) {\n  if (isNoAction(action)) {\n    return;\n  } else if (Array.isArray(action)) {\n    for (let item of action) {\n      concatExpressions(encoder, context, item, constants);\n    }\n  } else if (action.type === 'Number') {\n    pushOp(encoder, constants, action);\n  } else if (action.type === 'Resolution') {\n    pushResolutionOp(encoder, context, action, constants);\n  } else if (action.type === 'Simple') {\n    pushBuilderOp(context, action);\n  } else if (action.type === 'Error') {\n    encoder.error({\n      problem: action.op1.problem,\n      span: {\n        start: action.op1.start,\n        end: action.op1.end\n      }\n    });\n  } else {\n    throw assertNever(action, 'unexpected action kind');\n  }\n}\n\nfunction concatStatements(context, action) {\n  if (isNoAction(action)) {\n    return;\n  } else if (Array.isArray(action)) {\n    for (let item of action) {\n      concatStatements(context, item);\n    }\n  } else if (action.type === 'Number') {\n    pushOp(context.encoder, context.syntax.program.constants, action);\n  } else {\n    if (action.type === 'Compile') {\n      pushCompileOp(context, action);\n    } else if (action.type === 'Resolution') {\n      pushResolutionOp(context.encoder, context, action, context.syntax.program.constants);\n    } else if (action.type === 'Simple') {\n      pushBuilderOp(context, action);\n    } else if (action.type === 'Error') {} else {\n      throw assertNever(action, `unexpected action type`);\n    }\n  }\n}\n\nfunction populateBuiltins(blocks, inlines) {\n  blocks.add('if', (params, _hash, blocks) => {\n    if (!params || params.length !== 1) {\n      throw new Error(`SYNTAX ERROR: #if requires a single argument`);\n    }\n\n    return ReplayableIf({\n      args() {\n        return {\n          count: 1,\n          actions: [op('Expr', params[0]), op(71\n          /* ToBoolean */\n          )]\n        };\n      },\n\n      ifTrue() {\n        return InvokeStaticBlock(blocks.get('default'));\n      },\n\n      ifFalse() {\n        if (blocks.has('else')) {\n          return InvokeStaticBlock(blocks.get('else'));\n        } else {\n          return NONE;\n        }\n      }\n\n    });\n  });\n  blocks.add('unless', (params, _hash, blocks) => {\n    if (!params || params.length !== 1) {\n      throw new Error(`SYNTAX ERROR: #unless requires a single argument`);\n    }\n\n    return ReplayableIf({\n      args() {\n        return {\n          count: 1,\n          actions: [op('Expr', params[0]), op(71\n          /* ToBoolean */\n          )]\n        };\n      },\n\n      ifTrue() {\n        if (blocks.has('else')) {\n          return InvokeStaticBlock(blocks.get('else'));\n        } else {\n          return NONE;\n        }\n      },\n\n      ifFalse() {\n        return InvokeStaticBlock(blocks.get('default'));\n      }\n\n    });\n  });\n  blocks.add('with', (params, _hash, blocks) => {\n    if (!params || params.length !== 1) {\n      throw new Error(`SYNTAX ERROR: #with requires a single argument`);\n    }\n\n    return ReplayableIf({\n      args() {\n        return {\n          count: 2,\n          actions: [op('Expr', params[0]), op(33\n          /* Dup */\n          , $sp, 0), op(71\n          /* ToBoolean */\n          )]\n        };\n      },\n\n      ifTrue() {\n        return InvokeStaticBlockWithStack(blocks.get('default'), 1);\n      },\n\n      ifFalse() {\n        if (blocks.has('else')) {\n          return InvokeStaticBlock(blocks.get('else'));\n        } else {\n          return NONE;\n        }\n      }\n\n    });\n  });\n  blocks.add('let', (params, _hash, blocks) => {\n    if (!params) {\n      return error('let requires arguments', 0, 0);\n    }\n\n    let {\n      count,\n      actions\n    } = CompilePositional(params);\n    return [actions, InvokeStaticBlockWithStack(blocks.get('default'), count)];\n  });\n  blocks.add('each', (params, hash, blocks) => {\n    return Replayable({\n      args() {\n        let actions;\n\n        if (hash && hash[0][0] === 'key') {\n          actions = [op('Expr', hash[1][0])];\n        } else {\n          actions = [PushPrimitiveReference(null)];\n        }\n\n        actions.push(op('Expr', params[0]));\n        return {\n          count: 2,\n          actions\n        };\n      },\n\n      body() {\n        let out = [op(74\n        /* PutIterator */\n        ), op(66\n        /* JumpUnless */\n        , label('ELSE')), op(0\n        /* PushFrame */\n        ), op(33\n        /* Dup */\n        , $fp, 1), op(6\n        /* ReturnTo */\n        , label('ITER')), op(72\n        /* EnterList */\n        , label('BODY')), op('Label', 'ITER'), op(75\n        /* Iterate */\n        , label('BREAK')), op('Label', 'BODY'), InvokeStaticBlockWithStack(blocks.get('default'), 2), op(34\n        /* Pop */\n        , 2), op(4\n        /* Jump */\n        , label('FINALLY')), op('Label', 'BREAK'), op(73\n        /* ExitList */\n        ), op(1\n        /* PopFrame */\n        ), op(4\n        /* Jump */\n        , label('FINALLY')), op('Label', 'ELSE')];\n\n        if (blocks.has('else')) {\n          out.push(InvokeStaticBlock(blocks.get('else')));\n        }\n\n        return out;\n      }\n\n    });\n  });\n  blocks.add('in-element', (params, hash, blocks) => {\n    if (!params || params.length !== 1) {\n      throw new Error(`SYNTAX ERROR: #in-element requires a single argument`);\n    }\n\n    return ReplayableIf({\n      args() {\n        let [keys, values] = hash;\n        let actions = [];\n\n        for (let i = 0; i < keys.length; i++) {\n          let key = keys[i];\n\n          if (key === 'guid' || key === 'insertBefore') {\n            actions.push(op('Expr', values[i]));\n          } else {\n            throw new Error(`SYNTAX ERROR: #in-element does not take a \\`${keys[0]}\\` option`);\n          }\n        }\n\n        actions.push(op('Expr', params[0]), op(33\n        /* Dup */\n        , $sp, 0));\n        return {\n          count: 4,\n          actions\n        };\n      },\n\n      ifTrue() {\n        return [op(50\n        /* PushRemoteElement */\n        ), InvokeStaticBlock(blocks.get('default')), op(56\n        /* PopRemoteElement */\n        )];\n      }\n\n    });\n  });\n  blocks.add('-with-dynamic-vars', (_params, hash, blocks) => {\n    if (hash) {\n      let [names, expressions] = hash;\n      let {\n        actions\n      } = CompilePositional(expressions);\n      return [actions, DynamicScope(names, () => {\n        return InvokeStaticBlock(blocks.get('default'));\n      })];\n    } else {\n      return InvokeStaticBlock(blocks.get('default'));\n    }\n  });\n  blocks.add('component', (_params, hash, blocks, context) => {\n    let tag = _params[0];\n\n    if (typeof tag === 'string') {\n      let returned = StaticComponentHelper(context, _params[0], hash, blocks.get('default'));\n      if (isHandled(returned)) return returned;\n    }\n\n    let [definition, ...params] = _params;\n    return op('DynamicComponent', {\n      definition,\n      attrs: null,\n      params,\n      args: hash,\n      atNames: false,\n      blocks\n    });\n  });\n  inlines.add('component', (_name, _params, hash, context) => {\n    let tag = _params && _params[0];\n\n    if (typeof tag === 'string') {\n      let returned = StaticComponentHelper(context, tag, hash, null);\n      if (returned !== UNHANDLED) return returned;\n    }\n\n    let [definition, ...params] = _params;\n    return InvokeDynamicComponent(context.meta, {\n      definition,\n      attrs: null,\n      params,\n      hash,\n      atNames: false,\n      blocks: EMPTY_BLOCKS\n    });\n  });\n  return {\n    blocks,\n    inlines\n  };\n}\n\nclass MacrosImpl {\n  constructor() {\n    let {\n      blocks,\n      inlines\n    } = populateBuiltins(new Blocks(), new Inlines());\n    this.blocks = blocks;\n    this.inlines = inlines;\n  }\n\n}\n\nclass Blocks {\n  constructor() {\n    this.names = dict();\n    this.funcs = [];\n  }\n\n  add(name, func) {\n    this.funcs.push(func);\n    this.names[name] = this.funcs.length - 1;\n  }\n\n  addMissing(func) {\n    this.missing = func;\n  }\n\n  compile(name, params, hash, blocks, context) {\n    let index = this.names[name];\n    let macroContext = {\n      resolver: context.syntax.program.resolverDelegate,\n      meta: context.meta\n    };\n\n    if (index === undefined) {\n      let func = this.missing;\n      let handled = func(name, params, hash, blocks, macroContext);\n      return handled;\n    } else {\n      let func = this.funcs[index];\n      return func(params, hash, blocks, macroContext);\n    }\n  }\n\n}\n\nclass Inlines {\n  constructor() {\n    this.names = dict();\n    this.funcs = [];\n  }\n\n  add(name, func) {\n    this.funcs.push(func);\n    this.names[name] = this.funcs.length - 1;\n  }\n\n  addMissing(func) {\n    this.missing = func;\n  }\n\n  compile(sexp, context) {\n    let [, value] = sexp; // TODO: Fix this so that expression macros can return\n    // things like components, so that {{component foo}}\n    // is the same as {{(component foo)}}\n\n    if (!Array.isArray(value)) return UNHANDLED;\n    let name;\n    let params;\n    let hash;\n\n    if (value[0] === 30\n    /* Call */\n    ) {\n        let nameOrError = expectString(value[1], context.meta, 'Expected head of call to be a string');\n\n        if (typeof nameOrError !== 'string') {\n          return nameOrError;\n        }\n\n        name = nameOrError;\n        params = value[2];\n        hash = value[3];\n      } else if (isGet(value)) {\n      let pathName = simplePathName(value, context.meta);\n\n      if (pathName === null) {\n        return UNHANDLED;\n      }\n\n      name = pathName;\n      params = null;\n      hash = null;\n    } else {\n      return UNHANDLED;\n    }\n\n    let index = this.names[name];\n    let macroContext = {\n      resolver: context.syntax.program.resolverDelegate,\n      meta: context.meta\n    };\n\n    if (index === undefined && this.missing) {\n      let func = this.missing;\n      return func(name, params, hash, macroContext);\n    } else if (index !== undefined) {\n      let func = this.funcs[index];\n      return func(name, params, hash, macroContext);\n    } else {\n      return UNHANDLED;\n    }\n  }\n\n}\n\nfunction syntaxCompilationContext(program, macros) {\n  return {\n    program,\n    macros\n  };\n}\n\nfunction Context(resolver = {}, mode = \"aot\"\n/* aot */\n, macros = new MacrosImpl()) {\n  return {\n    program: new ProgramCompilationContext(new DefaultCompileTimeResolverDelegate(resolver), mode),\n    macros\n  };\n}\n\nfunction JitContext(resolver = {}, macros = new MacrosImpl()) {\n  return {\n    program: new JitProgramCompilationContext(new DefaultCompileTimeResolverDelegate(resolver)),\n    macros\n  };\n}\n\nfunction AotContext(resolver = {}, macros = new MacrosImpl()) {\n  return {\n    program: new ProgramCompilationContext(new DefaultCompileTimeResolverDelegate(resolver), \"aot\"\n    /* aot */\n    ),\n    macros\n  };\n}\n\nfunction templateCompilationContext(syntax, meta) {\n  let encoder = new EncoderImpl();\n  return {\n    syntax,\n    encoder,\n    meta\n  };\n}\n\nconst STATEMENTS = new Compilers();\nconst INFLATE_ATTR_TABLE = ['class', 'id', 'value', 'name', 'type', 'style', 'href'];\nconst INFLATE_TAG_TABLE = ['div', 'span', 'p', 'a'];\n\nfunction inflateTagName(tagName) {\n  return typeof tagName === 'string' ? tagName : INFLATE_TAG_TABLE[tagName];\n}\n\nfunction inflateAttrName(attrName) {\n  return typeof attrName === 'string' ? attrName : INFLATE_ATTR_TABLE[attrName];\n}\n\nSTATEMENTS.add(3\n/* Comment */\n, sexp => op(42\n/* Comment */\n, sexp[1]));\nSTATEMENTS.add(13\n/* CloseElement */\n, () => op(55\n/* CloseElement */\n));\nSTATEMENTS.add(12\n/* FlushElement */\n, () => op(54\n/* FlushElement */\n));\nSTATEMENTS.add(4\n/* Modifier */\n, (sexp, meta) => {\n  let [, name, params, hash] = sexp;\n  let stringName = expectString(name, meta, 'Expected modifier head to be a string');\n\n  if (typeof stringName !== 'string') {\n    return stringName;\n  }\n\n  return op('IfResolved', {\n    kind: \"Modifier\"\n    /* Modifier */\n    ,\n    name: stringName,\n    andThen: handle => [op(0\n    /* PushFrame */\n    ), op('SimpleArgs', {\n      params,\n      hash,\n      atNames: false\n    }), op(57\n    /* Modifier */\n    , handle), op(1\n    /* PopFrame */\n    )],\n    span: {\n      start: 0,\n      end: 0\n    }\n  });\n});\nSTATEMENTS.add(14\n/* StaticAttr */\n, ([, name, value, namespace]) => op(51\n/* StaticAttr */\n, inflateAttrName(name), value, namespace !== null && namespace !== void 0 ? namespace : null));\nSTATEMENTS.add(24\n/* StaticComponentAttr */\n, ([, name, value, namespace]) => op(108\n/* StaticComponentAttr */\n, inflateAttrName(name), value, namespace !== null && namespace !== void 0 ? namespace : null));\nSTATEMENTS.add(15\n/* DynamicAttr */\n, ([, name, value, namespace]) => [op('Expr', value), op(52\n/* DynamicAttr */\n, inflateAttrName(name), false, namespace !== null && namespace !== void 0 ? namespace : null)]);\nSTATEMENTS.add(22\n/* TrustingDynamicAttr */\n, ([, name, value, namespace]) => [op('Expr', value), op(52\n/* DynamicAttr */\n, inflateAttrName(name), true, namespace !== null && namespace !== void 0 ? namespace : null)]);\nSTATEMENTS.add(16\n/* ComponentAttr */\n, ([, name, value, namespace]) => [op('Expr', value), op(53\n/* ComponentAttr */\n, inflateAttrName(name), false, namespace !== null && namespace !== void 0 ? namespace : null)]);\nSTATEMENTS.add(23\n/* TrustingComponentAttr */\n, ([, name, value, namespace]) => [op('Expr', value), op(53\n/* ComponentAttr */\n, inflateAttrName(name), true, namespace !== null && namespace !== void 0 ? namespace : null)]);\nSTATEMENTS.add(10\n/* OpenElement */\n, ([, tag]) => {\n  return op(48\n  /* OpenElement */\n  , inflateTagName(tag));\n});\nSTATEMENTS.add(11\n/* OpenElementWithSplat */\n, ([, tag]) => {\n  return [op(91\n  /* PutComponentOperations */\n  ), op(48\n  /* OpenElement */\n  , inflateTagName(tag))];\n});\nSTATEMENTS.add(8\n/* Component */\n, ([, tag, attrs, args$$1, blocks]) => {\n  if (typeof tag === 'string') {\n    return op('IfResolvedComponent', {\n      name: tag,\n      attrs,\n      blocks,\n      staticTemplate: (layoutHandle, capabilities, template, {\n        blocks,\n        attrs\n      }) => {\n        return [op(80\n        /* PushComponentDefinition */\n        , layoutHandle), InvokeStaticComponent({\n          capabilities,\n          layout: template,\n          attrs,\n          params: null,\n          hash: args$$1,\n          blocks\n        })];\n      },\n      dynamicTemplate: (layoutHandle, capabilities, {\n        attrs,\n        blocks\n      }) => {\n        return [op(80\n        /* PushComponentDefinition */\n        , layoutHandle), InvokeComponent({\n          capabilities,\n          attrs,\n          params: null,\n          hash: args$$1,\n          atNames: true,\n          blocks\n        })];\n      }\n    });\n  } else {\n    return op('DynamicComponent', {\n      definition: tag,\n      attrs,\n      params: null,\n      args: args$$1,\n      blocks,\n      atNames: true\n    });\n  }\n});\nSTATEMENTS.add(19\n/* Partial */\n, ([, name, evalInfo], meta) => ReplayableIf({\n  args() {\n    return {\n      count: 2,\n      actions: [op('Expr', name), op(33\n      /* Dup */\n      , $sp, 0)]\n    };\n  },\n\n  ifTrue() {\n    return [op(104\n    /* InvokePartial */\n    , templateMeta(meta.referrer), strArray(meta.evalSymbols), arr(evalInfo)), op(40\n    /* PopScope */\n    ), op(1\n    /* PopFrame */\n    )];\n  }\n\n}));\nSTATEMENTS.add(18\n/* Yield */\n, ([, to, params]) => YieldBlock(to, params));\nSTATEMENTS.add(17\n/* AttrSplat */\n, ([, to]) => YieldBlock(to, EMPTY_ARRAY));\nSTATEMENTS.add(26\n/* Debugger */\n, ([, evalInfo], meta) => op(106\n/* Debugger */\n, strArray(meta.evalSymbols), arr(evalInfo)));\nSTATEMENTS.add(1\n/* Append */\n, sexp => {\n  let [, value] = sexp;\n  return op('CompileInline', {\n    inline: sexp,\n    ifUnhandled: () => [op(0\n    /* PushFrame */\n    ), op(\"Expr\"\n    /* Expr */\n    , value), op(3\n    /* InvokeStatic */\n    , {\n      type: 'stdlib',\n      value: 'cautious-append'\n    }), op(1\n    /* PopFrame */\n    )]\n  });\n});\nSTATEMENTS.add(2\n/* TrustingAppend */\n, sexp => {\n  let [, value] = sexp;\n\n  if (typeof value === 'string') {\n    return op(41\n    /* Text */\n    , value);\n  } // macro was ignoring trusting flag doesn't seem like {{{}}} should\n  // even be passed to macros, there is no {{{component}}}\n\n\n  return [op(0\n  /* PushFrame */\n  ), op(\"Expr\"\n  /* Expr */\n  , value), op(3\n  /* InvokeStatic */\n  , {\n    type: 'stdlib',\n    value: 'trusting-append'\n  }), op(1\n  /* PopFrame */\n  )];\n});\nSTATEMENTS.add(6\n/* Block */\n, sexp => {\n  return op('CompileBlock', sexp);\n});\nconst PLACEHOLDER_HANDLE = -1;\n\nclass CompilableTemplateImpl {\n  constructor(statements, meta$$1, // Part of CompilableTemplate\n  symbolTable) {\n    this.statements = statements;\n    this.meta = meta$$1;\n    this.symbolTable = symbolTable;\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) {\n  let block = layout.block;\n  return new CompilableTemplateImpl(block.statements, meta(layout), {\n    symbols: block.symbols,\n    hasEval: block.hasEval\n  });\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  patchStdlibs(context.program);\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\n  for (let i = 0; i < statements.length; i++) {\n    concatStatements(context, sCompiler.compile(statements[i], context.meta));\n  }\n\n  let handle = context.encoder.commit(syntaxContext.program.heap, meta$$1.size);\n  return handle;\n}\n\nfunction compilableBlock(overloadBlock, containing) {\n  let block = Array.isArray(overloadBlock) ? {\n    statements: overloadBlock,\n    parameters: EMPTY_ARRAY\n  } : overloadBlock;\n  return new CompilableTemplateImpl(block.statements, containing, {\n    parameters: block.parameters\n  });\n}\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}\n\nconst EMPTY_BLOCKS = new NamedBlocksImpl(null);\n\nfunction namedBlocks(blocks, meta) {\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]] = compilableBlock(values[i], meta);\n  }\n\n  return new NamedBlocksImpl(out);\n}\n\nfunction expectString(expr, meta, desc) {\n  if (!meta.upvars) {\n    return error(`${desc}, but there were no free variables in the template`, 0, 0);\n  }\n\n  if (!Array.isArray(expr)) {\n    throw new Error(`${desc}, got ${JSON.stringify(expr)}`);\n  }\n\n  if (isGet(expr)) {\n    let name = simplePathName(expr, meta);\n    if (name !== null) return name;\n  }\n\n  throw new Error(`${desc}, got ${JSON.stringify(expr)}`);\n}\n\nfunction simplePathName(opcode, meta) {\n  if (opcode.length === 3 && opcode[2].length > 0) {\n    return null;\n  }\n\n  if (isGetFree(opcode)) {\n    return meta.upvars[opcode[1]];\n  }\n\n  return null;\n}\n\nfunction isGet(opcode) {\n  return opcode.length >= 2 && opcode[0] >= 32\n  /* GetSymbol */\n  ;\n}\n\nfunction isGetFree(opcode) {\n  return opcode[0] >= 33\n  /* GetFree */\n  ;\n}\n\nfunction compileInline(sexp, context) {\n  return context.syntax.macros.inlines.compile(sexp, context);\n}\n\nfunction compileBlock(block, context) {\n  let [, name, params, hash, named] = block;\n  let blocks = namedBlocks(named, context.meta);\n  let nameOrError = expectString(name, context.meta, 'Expected block head to be a string');\n\n  if (typeof nameOrError !== 'string') {\n    return nameOrError;\n  }\n\n  return context.syntax.macros.blocks.compile(nameOrError, params || [], hash, blocks, context);\n}\n\nfunction commit(heap, scopeSize, buffer) {\n  let handle = heap.malloc();\n\n  for (let i = 0; i < buffer.length; i++) {\n    let value = buffer[i];\n\n    if (typeof value === 'function') {\n      heap.pushPlaceholder(value);\n    } else if (typeof value === 'object') {\n      heap.pushStdlib(value);\n    } else {\n      heap.push(value);\n    }\n  }\n\n  heap.finishMalloc(handle, scopeSize);\n  return handle;\n}\n\nlet debugCompiler;\n\nclass LabelsImpl {\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(encoder) {\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      encoder.patch(at, address);\n    }\n  }\n\n}\n\nfunction error(problem, start, end) {\n  return op('Error', {\n    problem,\n    start,\n    end\n  });\n}\n\nfunction op(name, op1, op2, op3) {\n  if (typeof name === 'number') {\n    if (op3 !== undefined) {\n      return {\n        type: 'Number',\n        op: name,\n        op1,\n        op2,\n        op3\n      };\n    } else if (op2 !== undefined) {\n      return {\n        type: 'Number',\n        op: name,\n        op1,\n        op2\n      };\n    } else if (op1 !== undefined) {\n      return {\n        type: 'Number',\n        op: name,\n        op1: op1\n      };\n    } else {\n      return {\n        type: 'Number',\n        op: name\n      };\n    }\n  } else {\n    let type;\n\n    if (isCompileOpcode(name)) {\n      type = 'Compile';\n    } else if (isResolutionOpcode(name)) {\n      type = 'Resolution';\n    } else if (isSimpleOpcode(name)) {\n      type = 'Simple';\n    } else if (isErrorOpcode(name)) {\n      type = 'Error';\n    } else {\n      throw new Error(`Exhausted ${name}`);\n    }\n\n    if (op1 === undefined) {\n      return {\n        type,\n        op: name,\n        op1: undefined\n      };\n    } else {\n      return {\n        type,\n        op: name,\n        op1\n      };\n    }\n  }\n}\n\nclass EncoderImpl {\n  constructor() {\n    this.labelsStack = new Stack();\n    this.encoder = new InstructionEncoderImpl([]);\n    this.errors = [];\n  }\n\n  error(error) {\n    this.encoder.encode(30\n    /* Primitive */\n    , 0);\n    this.errors.push(error);\n  }\n\n  commit(heap, size) {\n    this.encoder.encode(5\n    /* Return */\n    , 1024\n    /* MACHINE_MASK */\n    );\n    let handle = commit(heap, size, this.encoder.buffer);\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, name, ...args) {\n    if (isMachineOp(name)) {\n      let operands = args.map((operand, i) => this.operand(constants, operand, i));\n      return this.encoder.encode(name, 1024\n      /* MACHINE_MASK */\n      , ...operands);\n    } else {\n      let operands = args.map((operand, i) => this.operand(constants, operand, i));\n      return this.encoder.encode(name, 0, ...operands);\n    }\n  }\n\n  operand(constants, operand, index) {\n    if (operand && typeof operand === 'object' && operand.type === 'label') {\n      this.currentLabels.target(this.encoder.size + index, operand.value);\n      return -1;\n    }\n\n    return constant(constants, operand);\n  }\n\n  get currentLabels() {\n    return this.labelsStack.current;\n  }\n\n  label(name) {\n    this.currentLabels.label(name, this.encoder.size);\n  }\n\n  startLabels() {\n    this.labelsStack.push(new LabelsImpl());\n  }\n\n  stopLabels() {\n    let label = this.labelsStack.pop();\n    label.patch(this.encoder);\n  }\n\n}\n\nfunction constant(constants, operand) {\n  if (typeof operand === 'number' || typeof operand === 'function') {\n    return operand;\n  }\n\n  if (typeof operand === 'boolean') {\n    return operand === true ? 1 : 0;\n  }\n\n  if (typeof operand === 'string') {\n    return constants.value(operand);\n  }\n\n  if (operand === null) {\n    return 0;\n  }\n\n  switch (operand.type) {\n    case 'string-array':\n      return constants.array(operand.value);\n\n    case 'serializable':\n      return constants.serializable(operand.value);\n\n    case 'stdlib':\n      return operand;\n\n    case 'immediate':\n      return encodeImmediate(operand.value);\n\n    case 'primitive':\n    case 'template-meta':\n    case 'array':\n    case 'other':\n      return encodeHandle(constants.value(operand.value));\n\n    case 'lookup':\n      throw unreachable('lookup not reachable');\n\n    default:\n      return exhausted(operand);\n  }\n}\n\nfunction isSimpleOpcode(op) {\n  return op === 'Label' || op === 'Option' || op === 'GetComponentLayout' || op === 'StartLabels' || op === 'StopLabels' || op === 'SimpleArgs' || op === 'JitCompileBlock' || op === 'SetBlock';\n}\n\nfunction isCompileOpcode(op) {\n  return op === 'CompileInline' || op === 'CompileBlock' || op === 'InvokeStatic' || op === 'PushCompilable' || op === 'Args' || op === 'IfResolvedComponent' || op === 'DynamicComponent';\n}\n\nfunction isResolutionOpcode(op) {\n  return op === 'IfResolved' || op === 'Expr' || op === 'SimpleArgs' || op === 'ResolveFree' || op === 'ResolveContextualFree';\n}\n\nfunction isErrorOpcode(op) {\n  return op === 'Error';\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\n\nfunction CompileArgs({\n  params,\n  hash,\n  blocks,\n  atNames\n}) {\n  let out = [];\n  let blockNames = blocks.names;\n\n  for (let i = 0; i < blockNames.length; i++) {\n    out.push(PushYieldableBlock(blocks.get(blockNames[i])));\n  }\n\n  let {\n    count,\n    actions\n  } = CompilePositional(params);\n  out.push(actions);\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 (hash) {\n    names = hash[0];\n    let val = hash[1];\n\n    for (let i = 0; i < val.length; i++) {\n      out.push(op('Expr', val[i]));\n    }\n  }\n\n  out.push(op(84\n  /* PushArgs */\n  , strArray(names), strArray(blockNames), flags));\n  return out;\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 params an optional list of positional arguments\n */\n\n\nfunction CompilePositional(params) {\n  if (!params) return {\n    count: 0,\n    actions: NONE\n  };\n  let actions = [];\n\n  for (let i = 0; i < params.length; i++) {\n    actions.push(op('Expr', params[i]));\n  }\n\n  return {\n    count: params.length,\n    actions\n  };\n}\n\nfunction meta(layout) {\n  return {\n    asPartial: layout.asPartial || false,\n    evalSymbols: evalSymbols(layout),\n    upvars: layout.block.upvars,\n    referrer: layout.referrer,\n    size: layout.block.symbols.length\n  };\n}\n\nfunction evalSymbols(layout) {\n  let {\n    block\n  } = layout;\n  return block.hasEval ? block.symbols : null;\n}\n\nconst ATTRS_BLOCK = '&attrs';\n\nfunction StaticComponentHelper(context, tag, hash, template) {\n  let component = resolveLayoutForTag(tag, context);\n\n  if (component !== null) {\n    let {\n      compilable: compilable$$1,\n      handle,\n      capabilities\n    } = component;\n\n    if (compilable$$1) {\n      if (hash) {\n        for (let i = 0; i < hash.length; i = i + 2) {\n          hash[i][0] = `@${hash[i][0]}`;\n        }\n      }\n\n      let out = [op(80\n      /* PushComponentDefinition */\n      , handle)];\n      out.push(InvokeStaticComponent({\n        capabilities,\n        layout: compilable$$1,\n        attrs: null,\n        params: null,\n        hash,\n        blocks: new NamedBlocksImpl({\n          default: template\n        })\n      }));\n      return out;\n    }\n  }\n\n  return UNHANDLED;\n}\n\nfunction InvokeStaticComponent({\n  capabilities,\n  layout,\n  attrs,\n  params,\n  hash,\n  blocks\n}) {\n  let {\n    symbolTable\n  } = layout;\n  let bailOut = symbolTable.hasEval || capabilities.prepareArgs;\n\n  if (bailOut) {\n    return InvokeComponent({\n      capabilities,\n      attrs,\n      params,\n      hash,\n      atNames: true,\n      blocks,\n      layout\n    });\n  }\n\n  let out = [op(36\n  /* Fetch */\n  , $s0), op(33\n  /* Dup */\n  , $sp, 1), op(35\n  /* Load */\n  , $s0)];\n  let {\n    symbols\n  } = symbolTable;\n\n  if (capabilities.createArgs) {\n    out.push(op(0\n    /* PushFrame */\n    ), op('SimpleArgs', {\n      params,\n      hash,\n      atNames: true\n    }));\n  }\n\n  out.push(op(100\n  /* BeginComponentTransaction */\n  ));\n\n  if (capabilities.dynamicScope) {\n    out.push(op(59\n    /* PushDynamicScope */\n    ));\n  }\n\n  if (capabilities.createInstance) {\n    out.push(op(89\n    /* CreateComponent */\n    , blocks.has('default') | 0, $s0));\n  }\n\n  if (capabilities.createArgs) {\n    out.push(op(1\n    /* PopFrame */\n    ));\n  }\n\n  out.push(op(0\n  /* PushFrame */\n  ), op(90\n  /* RegisterComponentDestructor */\n  , $s0));\n  let bindings = [];\n  out.push(op(92\n  /* GetComponentSelf */\n  , $s0));\n  bindings.push({\n    symbol: 0,\n    isBlock: false\n  });\n\n  for (let i = 0; i < symbols.length; i++) {\n    let symbol = symbols[i];\n\n    switch (symbol.charAt(0)) {\n      case '&':\n        let callerBlock;\n\n        if (symbol === ATTRS_BLOCK) {\n          callerBlock = attrs;\n        } else {\n          callerBlock = blocks.get(symbol.slice(1));\n        }\n\n        if (callerBlock) {\n          out.push(PushYieldableBlock(callerBlock));\n          bindings.push({\n            symbol: i + 1,\n            isBlock: true\n          });\n        } else {\n          out.push(PushYieldableBlock(null));\n          bindings.push({\n            symbol: i + 1,\n            isBlock: true\n          });\n        }\n\n        break;\n\n      case '@':\n        if (!hash) {\n          break;\n        }\n\n        let [keys, values] = hash;\n        let lookupName = symbol;\n        let index = keys.indexOf(lookupName);\n\n        if (index !== -1) {\n          out.push(op('Expr', values[index]));\n          bindings.push({\n            symbol: i + 1,\n            isBlock: false\n          });\n        }\n\n        break;\n    }\n  }\n\n  out.push(op(37\n  /* RootScope */\n  , symbols.length + 1, Object.keys(blocks).length > 0 ? 1 : 0));\n\n  for (let i = bindings.length - 1; i >= 0; i--) {\n    let {\n      symbol,\n      isBlock\n    } = bindings[i];\n\n    if (isBlock) {\n      out.push(op('SetBlock', symbol));\n    } else {\n      out.push(op(19\n      /* SetVariable */\n      , symbol));\n    }\n  }\n\n  out.push(op('InvokeStatic', layout));\n\n  if (capabilities.createInstance) {\n    out.push(op(103\n    /* DidRenderLayout */\n    , $s0));\n  }\n\n  out.push(op(1\n  /* PopFrame */\n  ), op(40\n  /* PopScope */\n  ));\n\n  if (capabilities.dynamicScope) {\n    out.push(op(60\n    /* PopDynamicScope */\n    ));\n  }\n\n  out.push(op(101\n  /* CommitComponentTransaction */\n  ), op(35\n  /* Load */\n  , $s0));\n  return out;\n}\n\nfunction InvokeDynamicComponent(meta$$1, {\n  definition,\n  attrs,\n  params,\n  hash,\n  atNames,\n  blocks\n}) {\n  return Replayable({\n    args: () => {\n      return {\n        count: 2,\n        actions: [op('Expr', definition), op(33\n        /* Dup */\n        , $sp, 0)]\n      };\n    },\n    body: () => {\n      return [op(66\n      /* JumpUnless */\n      , label('ELSE')), op(83\n      /* ResolveDynamicComponent */\n      , templateMeta(meta$$1.referrer)), op(81\n      /* PushDynamicComponentInstance */\n      ), InvokeComponent({\n        capabilities: true,\n        attrs,\n        params,\n        hash,\n        atNames,\n        blocks\n      }), op('Label', 'ELSE')];\n    }\n  });\n}\n\nfunction WrappedComponent(layout, attrsBlockNumber) {\n  return [op('StartLabels'), WithSavedRegister($s1, () => [op(93\n  /* GetComponentTagName */\n  , $s0), op(31\n  /* PrimitiveReference */\n  ), op(33\n  /* Dup */\n  , $sp, 0)]), op(66\n  /* JumpUnless */\n  , label('BODY')), op(36\n  /* Fetch */\n  , $s1), op(91\n  /* PutComponentOperations */\n  ), op(49\n  /* OpenDynamicElement */\n  ), op(102\n  /* DidCreateElement */\n  , $s0), YieldBlock(attrsBlockNumber, EMPTY_ARRAY), op(54\n  /* FlushElement */\n  ), op('Label', 'BODY'), InvokeStaticBlock(blockForLayout(layout)), op(36\n  /* Fetch */\n  , $s1), op(66\n  /* JumpUnless */\n  , label('END')), op(55\n  /* CloseElement */\n  ), op('Label', 'END'), op(35\n  /* Load */\n  , $s1), op('StopLabels')];\n}\n\nfunction StaticComponent(component, args$$1) {\n  let [params, hash, blocks] = args$$1;\n  if (component === null) return NONE;\n  let {\n    compilable: compilable$$1,\n    capabilities,\n    handle\n  } = component;\n\n  if (compilable$$1) {\n    return [op(80\n    /* PushComponentDefinition */\n    , handle), InvokeStaticComponent({\n      capabilities: capabilities || MINIMAL_CAPABILITIES,\n      layout: compilable$$1,\n      attrs: null,\n      params,\n      hash,\n      blocks\n    })];\n  } else {\n    return [op(80\n    /* PushComponentDefinition */\n    , handle), InvokeComponent({\n      capabilities: capabilities || MINIMAL_CAPABILITIES,\n      attrs: null,\n      params,\n      hash,\n      atNames: true,\n      blocks\n    })];\n  }\n}\n\nfunction InvokeComponent({\n  capabilities,\n  attrs,\n  params,\n  hash,\n  atNames,\n  blocks: namedBlocks$$1,\n  layout\n}) {\n  let bindableBlocks = !!namedBlocks$$1;\n  let bindableAtNames = capabilities === true || capabilities.prepareArgs || !!(hash && hash[0].length !== 0);\n  let blocks = namedBlocks$$1.with('attrs', attrs);\n  return [op(36\n  /* Fetch */\n  , $s0), op(33\n  /* Dup */\n  , $sp, 1), op(35\n  /* Load */\n  , $s0), op(0\n  /* PushFrame */\n  ), op('Args', {\n    params,\n    hash,\n    blocks,\n    atNames\n  }), op(87\n  /* PrepareArgs */\n  , $s0), invokePreparedComponent(blocks.has('default'), bindableBlocks, bindableAtNames, () => {\n    let out;\n\n    if (layout) {\n      out = [PushSymbolTable(layout.symbolTable), op('PushCompilable', layout), op('JitCompileBlock')];\n    } else {\n      out = [op('GetComponentLayout', $s0)];\n    }\n\n    out.push(op(98\n    /* PopulateLayout */\n    , $s0));\n    return out;\n  }), op(35\n  /* Load */\n  , $s0)];\n}\n\nfunction invokePreparedComponent(hasBlock, bindableBlocks, bindableAtNames, populateLayout = null) {\n  let out = [op(100\n  /* BeginComponentTransaction */\n  ), op(59\n  /* PushDynamicScope */\n  ), op(89\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    out.push(populateLayout());\n  }\n\n  out.push(op(90\n  /* RegisterComponentDestructor */\n  , $s0), op(92\n  /* GetComponentSelf */\n  , $s0), op(38\n  /* VirtualRootScope */\n  , $s0), op(19\n  /* SetVariable */\n  , 0), op(97\n  /* SetupForEval */\n  , $s0), bindableAtNames ? op(17\n  /* SetNamedVariables */\n  , $s0) : NONE, bindableBlocks ? op(18\n  /* SetBlocks */\n  , $s0) : NONE, op(34\n  /* Pop */\n  , 1), op(99\n  /* InvokeComponentLayout */\n  , $s0), op(103\n  /* DidRenderLayout */\n  , $s0), op(1\n  /* PopFrame */\n  ), op(40\n  /* PopScope */\n  ), op(60\n  /* PopDynamicScope */\n  ), op(101\n  /* CommitComponentTransaction */\n  ));\n  return out;\n}\n\nfunction InvokeBareComponent() {\n  return [op(36\n  /* Fetch */\n  , $s0), op(33\n  /* Dup */\n  , $sp, 1), op(35\n  /* Load */\n  , $s0), op(0\n  /* PushFrame */\n  ), op(85\n  /* PushEmptyArgs */\n  ), op(87\n  /* PrepareArgs */\n  , $s0), invokePreparedComponent(false, false, true, () => [op('GetComponentLayout', $s0), op(98\n  /* PopulateLayout */\n  , $s0)]), op(35\n  /* Load */\n  , $s0)];\n}\n\nfunction curryComponent({\n  definition,\n  params,\n  hash,\n  atNames\n}, referrer) {\n  return [op(0\n  /* PushFrame */\n  ), op('SimpleArgs', {\n    params,\n    hash,\n    atNames\n  }), op(88\n  /* CaptureArgs */\n  ), op('Expr', definition), op(79\n  /* CurryComponent */\n  , templateMeta(referrer)), op(1\n  /* PopFrame */\n  ), op(36\n  /* Fetch */\n  , $v0)];\n}\n\nfunction blockForLayout(layout) {\n  return compilableBlock(layout.block.statements, meta(layout));\n}\n\nfunction WithSavedRegister(register, block) {\n  return [op(36\n  /* Fetch */\n  , register), block(), op(35\n  /* Load */\n  , register)];\n}\n\nclass StdLib {\n  constructor(main, trustingGuardedAppend, cautiousGuardedAppend) {\n    this.main = main;\n    this.trustingGuardedAppend = trustingGuardedAppend;\n    this.cautiousGuardedAppend = cautiousGuardedAppend;\n  }\n\n  get 'trusting-append'() {\n    return this.trustingGuardedAppend;\n  }\n\n  get 'cautious-append'() {\n    return this.cautiousGuardedAppend;\n  }\n\n  getAppend(trusting) {\n    return trusting ? this.trustingGuardedAppend : this.cautiousGuardedAppend;\n  }\n\n}\n\nfunction main() {\n  return [op(76\n  /* Main */\n  , $s0), invokePreparedComponent(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\n\nfunction StdAppend(trusting) {\n  return [op(78\n  /* ContentType */\n  ), SwitchCases(when => {\n    when(1\n    /* String */\n    , () => {\n      if (trusting) {\n        return [op(68\n        /* AssertSame */\n        ), op(43\n        /* AppendHTML */\n        )];\n      } else {\n        return op(47\n        /* AppendText */\n        );\n      }\n    });\n    when(0\n    /* Component */\n    , () => [op(82\n    /* PushCurriedComponent */\n    ), op(81\n    /* PushDynamicComponentInstance */\n    ), InvokeBareComponent()]);\n    when(3\n    /* SafeString */\n    , () => [op(68\n    /* AssertSame */\n    ), op(44\n    /* AppendSafeHTML */\n    )]);\n    when(4\n    /* Fragment */\n    , () => [op(68\n    /* AssertSame */\n    ), op(45\n    /* AppendDocumentFragment */\n    )]);\n    when(5\n    /* Node */\n    , () => [op(68\n    /* AssertSame */\n    ), op(46\n    /* AppendNode */\n    )]);\n  })];\n}\n\nfunction compileStd(context) {\n  let mainHandle = build(context, main);\n  let trustingGuardedAppend = build(context, () => StdAppend(true));\n  let cautiousGuardedAppend = build(context, () => StdAppend(false));\n  return new StdLib(mainHandle, trustingGuardedAppend, cautiousGuardedAppend);\n}\n\nconst STDLIB_META = {\n  asPartial: false,\n  evalSymbols: null,\n  upvars: null,\n  // TODO: ??\n  referrer: {},\n  size: 0\n};\n\nfunction build(program, callback) {\n  let encoder = new EncoderImpl();\n  let macros = new MacrosImpl();\n  let stdContext = {\n    encoder,\n    meta: STDLIB_META,\n    syntax: {\n      macros,\n      program\n    }\n  };\n  concat(stdContext, callback());\n  let result = encoder.commit(program.heap, 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 ProgramCompilationContext {\n  constructor(delegate, mode) {\n    this.mode = mode;\n    this.constants = new WriteOnlyConstants();\n    this.heap = new HeapImpl();\n    this.resolverDelegate = delegate;\n    this.stdlib = compileStd(this);\n  }\n\n}\n\nclass JitProgramCompilationContext {\n  constructor(delegate) {\n    this.constants = new JitConstants();\n    this.heap = new HeapImpl();\n    this.mode = \"jit\"\n    /* jit */\n    ;\n    this.resolverDelegate = delegate;\n    this.stdlib = compileStd(this);\n  }\n\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) {\n    this.layout = layout;\n    this.compiled = null;\n    let {\n      block\n    } = layout;\n    let symbols = block.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: block.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 actions = WrappedComponent(this.layout, this.attrsBlockNumber);\n    concatStatements(context, actions);\n    let handle = context.encoder.commit(context.syntax.program.heap, m.size);\n\n    if (typeof handle !== 'number') {\n      return handle;\n    }\n\n    this.compiled = handle;\n    patchStdlibs(context.syntax.program);\n    return handle;\n  }\n\n}\n\nlet clientId = 0;\n\nfunction templateFactory({\n  id: templateId,\n  meta,\n  block\n}) {\n  let parsedBlock;\n  let id = templateId || `client-${clientId++}`;\n\n  let create = envMeta => {\n    let newMeta = envMeta ? assign({}, envMeta, meta) : meta;\n\n    if (!parsedBlock) {\n      parsedBlock = JSON.parse(block);\n    }\n\n    return new TemplateImpl({\n      id,\n      block: parsedBlock,\n      referrer: newMeta\n    });\n  };\n\n  return {\n    id,\n    meta,\n    create\n  };\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    let {\n      block\n    } = parsedLayout;\n    this.symbols = block.symbols;\n    this.hasEval = block.hasEval;\n    this.referrer = parsedLayout.referrer;\n    this.id = parsedLayout.id || `client-${clientId++}`;\n  }\n\n  asLayout() {\n    if (this.layout) return this.layout;\n    return this.layout = compilable(assign({}, this.parsedLayout, {\n      asPartial: false\n    }));\n  }\n\n  asPartial() {\n    if (this.partial) return this.partial;\n    return this.layout = compilable(assign({}, this.parsedLayout, {\n      asPartial: true\n    }));\n  }\n\n  asWrappedLayout() {\n    if (this.wrappedLayout) return this.wrappedLayout;\n    return this.wrappedLayout = new WrappedBuilder(assign({}, this.parsedLayout, {\n      asPartial: false\n    }));\n  }\n\n}\n\nfunction Component(serialized, envMeta) {\n  let parsed = JSON.parse(serialized);\n  let factory = templateFactory(parsed);\n  let template = unwrapTemplate(factory.create(envMeta));\n  return template.asLayout();\n}\n\nexport { MacrosImpl, UNHANDLED, NONE, debugCompiler, compileStatements, compilable, StaticComponent as staticComponent, InvokeStaticBlockWithStack as invokeStaticBlockWithStack, InvokeStaticBlock as invokeStaticBlock, compileStd, meta, StdLib, PartialDefinitionImpl, templateFactory, Component, WrappedBuilder, EMPTY_BLOCKS, resolveLayoutForTag, ProgramCompilationContext, JitProgramCompilationContext, syntaxCompilationContext, Context, JitContext, AotContext, templateCompilationContext, DEFAULT_CAPABILITIES, MINIMAL_CAPABILITIES, DefaultCompileTimeResolverDelegate };","import { constants } from '@glimmer/util';\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);\n\nclass WriteOnlyConstants {\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  serializable(value) {\n    let str = JSON.stringify(value);\n    return this.value(str);\n  }\n\n  toPool() {\n    return this.values;\n  }\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  getSerializable(s) {\n    return JSON.parse(this.values[s]);\n  }\n\n}\n\nclass JitConstants extends WriteOnlyConstants {\n  constructor() {\n    super(...arguments);\n    this.reifiedArrs = {\n      [WELL_KNOWN_EMPTY_ARRAY_POSITION]: WELL_KNOWN_EMPTY_ARRAY\n    };\n  }\n\n  templateMeta(meta) {\n    return this.value(meta);\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  getSerializable(s) {\n    return JSON.parse(this.getValue(s));\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\nfunction encodeTableInfo(scopeSize, state) {\n  return state | scopeSize << 2;\n}\n\nfunction changeState(info, newState) {\n  return info | newState << 30;\n}\n\nconst PAGE_SIZE = 0x100000;\n\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  scopesizeof(handle) {\n    return scopesizeof(this.table, handle);\n  }\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\n\nclass HeapImpl {\n  constructor() {\n    this.placeholders = [];\n    this.stdlibs = [];\n    this.offset = 0;\n    this.handle = 0;\n    this.capacity = PAGE_SIZE;\n    this.heap = new Int32Array(PAGE_SIZE);\n    this.table = [];\n  }\n\n  push(item) {\n    this.sizeCheck();\n    this.heap[this.offset++] = item;\n  }\n\n  sizeCheck() {\n    if (this.capacity === 0) {\n      let heap = slice(this.heap, 0, this.offset);\n      this.heap = new Int32Array(heap.length + PAGE_SIZE);\n      this.heap.set(heap, 0);\n      this.capacity = PAGE_SIZE;\n    }\n\n    this.capacity--;\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.table.push(this.offset, 0, 0);\n    let handle = this.handle;\n    this.handle += 3\n    /* ENTRY_SIZE */\n    ;\n    return handle;\n  }\n\n  finishMalloc(handle, scopeSize) {\n    this.table[handle + 1\n    /* INFO_OFFSET */\n    ] = encodeTableInfo(scopeSize, 0\n    /* Allocated */\n    );\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.table[handle];\n  }\n\n  gethandle(address) {\n    this.table.push(address, encodeTableInfo(0, 3\n    /* Pointer */\n    ), 0);\n    let handle = this.handle;\n    this.handle += 3\n    /* ENTRY_SIZE */\n    ;\n    return handle;\n  }\n\n  sizeof(handle) {\n    return sizeof(this.table, handle);\n  }\n\n  scopesizeof(handle) {\n    return scopesizeof(this.table, handle);\n  }\n\n  free(handle) {\n    let info = this.table[handle + 1\n    /* INFO_OFFSET */\n    ];\n    this.table[handle + 1\n    /* INFO_OFFSET */\n    ] = changeState(info, 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      table,\n      table: {\n        length\n      },\n      heap\n    } = this;\n\n    for (let i = 0; i < length; i += 3\n    /* ENTRY_SIZE */\n    ) {\n      let offset = table[i];\n      let info = table[i + 1\n      /* INFO_OFFSET */\n      ]; // @ts-ignore (this whole function is currently unused)\n\n      let size = info & Size.SIZE_MASK;\n      let state = info & 3\n      /* STATE_MASK */\n      >> 30;\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          table[i + 1\n          /* INFO_OFFSET */\n          ] = changeState(info, 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          table[i] = offset - compactedSize;\n        } else if (state === 3\n      /* Pointer */\n      ) {\n          table[i] = offset - compactedSize;\n        }\n    }\n\n    this.offset = this.offset - compactedSize;\n  }\n\n  pushPlaceholder(valueFunc) {\n    this.sizeCheck();\n    let address = this.offset++;\n    this.heap[address] = 2147483647\n    /* MAX_SIZE */\n    ;\n    this.placeholders.push([address, valueFunc]);\n  }\n\n  pushStdlib(operand) {\n    this.sizeCheck();\n    let address = this.offset++;\n    this.heap[address] = 2147483647\n    /* MAX_SIZE */\n    ;\n    this.stdlibs.push([address, operand]);\n  }\n\n  patchPlaceholders() {\n    let {\n      placeholders\n    } = this;\n\n    for (let i = 0; i < placeholders.length; i++) {\n      let [address, getValue] = placeholders[i];\n      this.setbyaddr(address, getValue());\n    }\n  }\n\n  patchStdlibs(stdlib) {\n    let {\n      stdlibs\n    } = this;\n\n    for (let i = 0; i < stdlibs.length; i++) {\n      let [address, {\n        value\n      }] = stdlibs[i];\n      this.setbyaddr(address, stdlib[value]);\n    }\n\n    this.stdlibs = [];\n  }\n\n  capture(stdlib, offset = this.offset) {\n    this.patchPlaceholders();\n    this.patchStdlibs(stdlib); // Only called in eager mode\n\n    let buffer = slice(this.heap, 0, offset).buffer;\n    return {\n      handle: this.handle,\n      table: this.table,\n      buffer: buffer\n    };\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  static hydrate(artifacts) {\n    let heap = new RuntimeHeapImpl(artifacts.heap);\n    let constants$$1 = new RuntimeConstantsImpl(artifacts.constants);\n    return new RuntimeProgramImpl(constants$$1, heap);\n  }\n\n  opcode(offset) {\n    this._opcode.offset = offset;\n    return this._opcode;\n  }\n\n}\n\nfunction hydrateProgram(artifacts) {\n  let heap = new RuntimeHeapImpl(artifacts.heap);\n  let constants$$1 = new RuntimeConstantsImpl(artifacts.constants);\n  return new RuntimeProgramImpl(constants$$1, heap);\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 scopesizeof(table, handle) {\n  let info = table[handle + 1\n  /* INFO_OFFSET */\n  ];\n  return info >> 2;\n}\n\nfunction patchStdlibs(program) {\n  program.heap.patchStdlibs(program.stdlib);\n}\n\nfunction programArtifacts(program) {\n  let heap = program.heap.capture(program.stdlib);\n  let constants$$1 = program.constants.toPool();\n  return {\n    heap,\n    constants: constants$$1\n  };\n}\n\nfunction artifacts(syntax) {\n  return programArtifacts(syntax.program);\n}\n\nexport { WriteOnlyConstants, RuntimeConstantsImpl, JitConstants, RuntimeHeapImpl, hydrateHeap, HeapImpl, RuntimeProgramImpl, hydrateProgram, RuntimeOpImpl, patchStdlibs, programArtifacts, artifacts };","import { symbol, dict, isDict, debugToString, EMPTY_ARRAY, isObject } from '@glimmer/util';\nimport { valueForTag, validateTag, CONSTANT_TAG, combine, createUpdatableTag, dirtyTag, updateTag, track, isConstTagged, isConstTag } from '@glimmer/validator';\nimport { DEBUG } from '@glimmer/env';\n\nclass CachedReference {\n  constructor() {\n    this.lastRevision = null;\n    this.lastValue = null;\n  }\n\n  value() {\n    let {\n      tag,\n      lastRevision,\n      lastValue\n    } = this;\n\n    if (lastRevision === null || !validateTag(tag, lastRevision)) {\n      lastValue = this.lastValue = this.compute();\n      this.lastRevision = valueForTag(tag);\n    }\n\n    return lastValue;\n  }\n\n  invalidate() {\n    this.lastRevision = null;\n  }\n\n} //////////\n\n\nclass ReferenceCache {\n  constructor(reference) {\n    this.lastValue = null;\n    this.lastRevision = null;\n    this.initialized = false;\n    this.tag = reference.tag;\n    this.reference = reference;\n  }\n\n  peek() {\n    if (!this.initialized) {\n      return this.initialize();\n    }\n\n    return this.lastValue;\n  }\n\n  revalidate() {\n    if (!this.initialized) {\n      return this.initialize();\n    }\n\n    let {\n      reference,\n      lastRevision\n    } = this;\n    let tag = reference.tag;\n    if (validateTag(tag, lastRevision)) return NOT_MODIFIED;\n    let {\n      lastValue\n    } = this;\n    let currentValue = reference.value();\n    this.lastRevision = valueForTag(tag);\n    if (currentValue === lastValue) return NOT_MODIFIED;\n    this.lastValue = currentValue;\n    return currentValue;\n  }\n\n  initialize() {\n    let {\n      reference\n    } = this;\n    let currentValue = this.lastValue = reference.value();\n    this.lastRevision = valueForTag(reference.tag);\n    this.initialized = true;\n    return currentValue;\n  }\n\n}\n\nconst NOT_MODIFIED = symbol('NOT_MODIFIED');\n\nfunction isModified(value) {\n  return value !== NOT_MODIFIED;\n}\n\nclass PrimitiveReference {\n  constructor(inner) {\n    this.inner = inner;\n    this.tag = CONSTANT_TAG;\n  }\n\n  value() {\n    return this.inner;\n  }\n\n  get(_key) {\n    return UNDEFINED_REFERENCE;\n  }\n\n}\n\nconst UNDEFINED_REFERENCE = new PrimitiveReference(undefined);\n\nclass ConstReference {\n  constructor(inner) {\n    this.inner = inner;\n    this.tag = CONSTANT_TAG;\n  }\n\n  value() {\n    return this.inner;\n  }\n\n  get(_key) {\n    return UNDEFINED_REFERENCE;\n  }\n\n}\n\nconst UPDATE_REFERENCED_VALUE = symbol('UPDATE_REFERENCED_VALUE');\n/**\n * RootReferences refer to a constant root value within a template. For\n * instance, the `this` in `{{this.some.prop}}`. This is typically a:\n *\n * - Component\n * - Controller\n * - Helper\n *\n * Or another \"top level\" template construct, if you will. PropertyReferences\n * chain off a root reference in the template, and can then be passed around and\n * used at will.\n */\n\nclass RootReference {\n  constructor(env) {\n    this.env = env;\n    this.children = dict();\n    this.tag = CONSTANT_TAG;\n  }\n\n  get(key) {\n    // References should in general be identical to one another, so we can usually\n    // deduplicate them in production. However, in DEBUG we need unique references\n    // so we can properly key off them for the logging context.\n    if (DEBUG) {\n      // We register the template debug context now since the reference is\n      // created before the component itself. It shouldn't be possible to cause\n      // errors when accessing the root, only subproperties of the root, so this\n      // should be fine for the time being. The exception is helpers, but they\n      // set their context earlier.\n      //\n      // TODO: This points to a need for more first class support for arguments in\n      // the debugRenderTree. The fact that we can't accurately relate an argument\n      // reference to its component is problematic for debug tooling.\n      if (!this.didSetupDebugContext) {\n        this.didSetupDebugContext = true;\n        this.env.setTemplatePathDebugContext(this, this.debugLogName || 'this', null);\n      }\n\n      return new PropertyReference(this, key, this.env);\n    } else {\n      let ref = this.children[key];\n\n      if (ref === undefined) {\n        ref = this.children[key] = new PropertyReference(this, key, this.env);\n      }\n\n      return ref;\n    }\n  }\n\n}\n\nclass ComponentRootReference extends RootReference {\n  constructor(inner, env) {\n    super(env);\n    this.inner = inner;\n  }\n\n  value() {\n    return this.inner;\n  }\n\n}\n\nclass HelperRootReference extends RootReference {\n  constructor(fn, args, env, debugName) {\n    super(env);\n    this.fn = fn;\n    this.args = args;\n    this.computeRevision = null;\n    this.computeTag = null;\n\n    if (DEBUG) {\n      let name = debugName || fn.name;\n      env.setTemplatePathDebugContext(this, `(result of a \\`${name}\\` helper)`, null);\n      this.didSetupDebugContext = true;\n    }\n\n    if (isConstTagged(args)) {\n      this.compute();\n    }\n\n    let {\n      tag,\n      computeTag\n    } = this;\n\n    if (computeTag !== null && isConstTag(computeTag)) {\n      // If the args are constant, and the first computation is constant, then\n      // the helper itself is constant and will never update.\n      tag = this.tag = CONSTANT_TAG;\n      this.computeRevision = valueForTag(tag);\n    } else {\n      let valueTag = this.valueTag = createUpdatableTag();\n      tag = this.tag = combine([args.tag, valueTag]);\n\n      if (computeTag !== null) {\n        // We computed once, so setup the cache state correctly\n        updateTag(valueTag, computeTag);\n        this.computeRevision = valueForTag(tag);\n      }\n    }\n  }\n\n  compute() {\n    this.computeTag = track(() => {\n      this.computeValue = this.fn(this.args);\n    }, DEBUG && this.env.getTemplatePathDebugContext(this));\n  }\n\n  value() {\n    let {\n      tag,\n      computeRevision\n    } = this;\n\n    if (computeRevision === null || !validateTag(tag, computeRevision)) {\n      this.compute();\n      updateTag(this.valueTag, this.computeTag);\n      this.computeRevision = valueForTag(tag);\n    }\n\n    return this.computeValue;\n  }\n\n}\n/**\n * PropertyReferences represent a property that has been accessed on a root, or\n * another property (or iterable, see below). `some` and `prop` in\n * `{{this.some.prop}}` are each property references, `some` being a property of\n * `this`, and `prop` being a property of `some`. They are constructed by\n * recursively calling `get` on the previous reference as a template chain is\n * followed.\n */\n\n\nclass PropertyReference {\n  constructor(parentReference, propertyKey, env) {\n    this.parentReference = parentReference;\n    this.propertyKey = propertyKey;\n    this.env = env;\n    this.children = dict();\n    this.lastRevision = null;\n\n    if (DEBUG) {\n      env.setTemplatePathDebugContext(this, propertyKey, parentReference);\n    }\n\n    let valueTag = this.valueTag = createUpdatableTag();\n    let parentReferenceTag = parentReference.tag;\n    this.tag = combine([parentReferenceTag, valueTag]);\n  }\n\n  value() {\n    let {\n      tag,\n      lastRevision,\n      lastValue,\n      parentReference,\n      valueTag,\n      propertyKey\n    } = this;\n\n    if (lastRevision === null || !validateTag(tag, lastRevision)) {\n      let parentValue = parentReference.value();\n\n      if (isDict(parentValue)) {\n        let combined = track(() => {\n          lastValue = this.env.getPath(parentValue, propertyKey);\n        }, DEBUG && this.env.getTemplatePathDebugContext(this));\n        updateTag(valueTag, combined);\n      } else {\n        lastValue = undefined;\n      }\n\n      this.lastValue = lastValue;\n      this.lastRevision = valueForTag(tag);\n    }\n\n    return lastValue;\n  }\n\n  get(key) {\n    // References should in general be identical to one another, so we can usually\n    // deduplicate them in production. However, in DEBUG we need unique references\n    // so we can properly key off them for the logging context.\n    if (DEBUG) {\n      return new PropertyReference(this, key, this.env);\n    } else {\n      let ref = this.children[key];\n\n      if (ref === undefined) {\n        ref = this.children[key] = new PropertyReference(this, key, this.env);\n      }\n\n      return ref;\n    }\n  }\n\n  [UPDATE_REFERENCED_VALUE](value) {\n    let {\n      parentReference,\n      propertyKey\n    } = this;\n    let parentValue = parentReference.value();\n    this.env.setPath(parentValue, propertyKey, value);\n  }\n\n} //////////\n\n/**\n * IterationItemReferences represent an individual item in an iterable `each`.\n * They are similar to PropertyReferences, but since iteration items need to be\n * updated they have slightly different behavior. Concretely, they are the\n * `item` in:\n *\n * ```hbs\n * {{#each this.items as |item|}}\n *   {{item.foo}}\n * {{/each}}\n * ```\n *\n * Properties can chain off an iteration item, just like with the other template\n * reference types.\n */\n\n\nclass IterationItemReference {\n  constructor(parentReference, itemValue, itemKey, env) {\n    this.parentReference = parentReference;\n    this.itemValue = itemValue;\n    this.env = env;\n    this.tag = createUpdatableTag();\n    this.children = dict();\n\n    if (DEBUG) {\n      env.setTemplatePathDebugContext(this, debugToString(itemKey), parentReference);\n    }\n  }\n\n  value() {\n    return this.itemValue;\n  }\n\n  update(value) {\n    let {\n      itemValue\n    } = this; // TODO: refactor this https://github.com/glimmerjs/glimmer-vm/issues/1101\n\n    if (value !== itemValue) {\n      dirtyTag(this.tag);\n      this.itemValue = value;\n    }\n  }\n\n  get(key) {\n    // References should in general be identical to one another, so we can usually\n    // deduplicate them in production. However, in DEBUG we need unique references\n    // so we can properly key off them for the logging context.\n    if (DEBUG) {\n      return new PropertyReference(this, key, this.env);\n    } else {\n      let ref = this.children[key];\n\n      if (ref === undefined) {\n        ref = this.children[key] = new PropertyReference(this, key, this.env);\n      }\n\n      return ref;\n    }\n  }\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, getPath) {\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, getPath) {\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, getPath);\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) || typeof key === 'function') {\n      this.weakMap.set(key, value);\n    } else {\n      this.primitiveMap.set(key, value);\n    }\n  }\n\n  get(key) {\n    if (isObject(key) || typeof key === 'function') {\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\nclass IterableReference {\n  constructor(parentRef, key, env) {\n    this.parentRef = parentRef;\n    this.key = key;\n    this.env = env;\n    this.iterator = null;\n    this.tag = parentRef.tag;\n  }\n\n  value() {\n    return !this.isEmpty();\n  }\n\n  isEmpty() {\n    let iterator = this.iterator = this.createIterator();\n    return iterator.isEmpty();\n  }\n\n  next() {\n    let iterator = this.iterator;\n    let item = iterator.next();\n\n    if (item === null) {\n      this.iterator = null;\n    }\n\n    return item;\n  }\n\n  createIterator() {\n    let {\n      parentRef,\n      key,\n      env\n    } = this;\n    let iterable = parentRef.value();\n    let keyFor = makeKeyFor(key, env.getPath);\n\n    if (Array.isArray(iterable)) {\n      return new ArrayIterator(iterable, keyFor);\n    }\n\n    let maybeIterator = env.toIterator(iterable);\n\n    if (maybeIterator === null) {\n      return new ArrayIterator(EMPTY_ARRAY, () => null);\n    }\n\n    return new IteratorWrapper(maybeIterator, keyFor);\n  }\n\n  childRefFor(key, value) {\n    let {\n      parentRef,\n      env\n    } = this;\n    return new IterationItemReference(parentRef, value, DEBUG ? `(key: ${debugToString(key)}` : '', env);\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 { CachedReference, ReferenceCache, isModified, ConstReference, IterableReference, UPDATE_REFERENCED_VALUE, RootReference, ComponentRootReference, HelperRootReference, PropertyReference, IterationItemReference };","import { symbol, debugToString, Stack, clearElement, initializeGuid, fillNulls, decodeHandle, isNonPrimitiveHandle, dict, unreachable, unwrapTemplate, EMPTY_ARRAY, isErrHandle, unwrapHandle, assign, isSmallInt, encodeImmediate, encodeHandle, constants, decodeImmediate, isHandle } from '@glimmer/util';\nimport { DEBUG } from '@glimmer/env';\nimport { ConstReference, CachedReference, isModified, ReferenceCache, IterableReference } from '@glimmer/reference';\nimport { track, createUpdatableTag, combine, updateTag, createCombinatorTag, CONSTANT_TAG, valueForTag, validateTag, isConstTagged, INITIAL, isConstTag } from '@glimmer/validator';\nimport { RuntimeProgramImpl } from '@glimmer/program';\nimport { $pc, $sp, $ra, $fp, $v0, $t0, $t1, $s0, $s1, isLowLevelRegister } from '@glimmer/vm';\nimport { Stack as Stack$1 } from '@glimmer/low-level'; // 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}\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}\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}\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}\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\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}\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}\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\n\nlet scheduleDestroy = DEBUG ? () => {\n  throw new Error('Must provide a scheduleDestroy method');\n} : () => {};\nlet scheduleDestroyed = DEBUG ? () => {\n  throw new Error('Must provide a scheduleDestroyed method');\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}\n\nfunction setScheduleDestroy(fn) {\n  scheduleDestroy = fn;\n}\n\nfunction setScheduleDestroyed(fn) {\n  scheduleDestroyed = fn;\n}\n\nfunction isDestroying(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  return meta === undefined ? false : meta.state >= 1\n  /* Destroying */\n  ;\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\n\nlet enableDestroyableTracking;\nlet assertDestroyablesDestroyed;\n\nif (DEBUG) {\n  let isTesting = false;\n\n  enableDestroyableTracking = () => {\n    if (isTesting) {\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\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}\n\nconst CURSOR_STACK = symbol('CURSOR_STACK');\n\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 = this.env.attributeFor(element, name, trusting, namespace);\n    attribute.set(this, value, this.env);\n    return attribute;\n  }\n\n}\n\n_a = CURSOR_STACK;\n\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}\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}\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\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  closeElement() {}\n\n  didAppendNode(_node) {}\n\n  didAppendBounds(_bounds) {}\n\n  finalize(_stack) {}\n\n}\n\nfunction clientBuilder(env, cursor) {\n  return NewElementBuilder.forInitialRender(env, cursor);\n} // http://www.w3.org/TR/html/syntax.html#html-integration-point\n\n\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);\n\nclass DOMOperations {\n  constructor(document) {\n    this.document = document;\n    this.setupUselessElement();\n  } // split into seperate 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}\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 decendants 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} // 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 exmaple 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.\n\n\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;\n\nfunction isWhitespace(string) {\n  return WHITESPACE.test(string);\n}\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 appliedTreeContruction = TreeConstruction;\n  appliedTreeContruction = applyTextNodeMergingFix(doc, appliedTreeContruction);\n  appliedTreeContruction = applySVGInnerHTMLFix(doc, appliedTreeContruction, \"http://www.w3.org/2000/svg\"\n  /* SVG */\n  );\n  DOM.DOMTreeConstruction = appliedTreeContruction;\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}\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\nclass PrimitiveReference extends ConstReference {\n  static create(value) {\n    if (value === undefined) {\n      return UNDEFINED_REFERENCE;\n    } else if (value === null) {\n      return NULL_REFERENCE;\n    } else if (value === true) {\n      return TRUE_REFERENCE;\n    } else if (value === false) {\n      return FALSE_REFERENCE;\n    } else if (typeof value === 'number') {\n      return new ValueReference(value);\n    } else {\n      return new StringReference(value);\n    }\n  }\n\n  constructor(value) {\n    super(value);\n  }\n\n  get(_key) {\n    return UNDEFINED_REFERENCE;\n  }\n\n}\n\nclass StringReference extends PrimitiveReference {\n  constructor() {\n    super(...arguments);\n    this.lengthReference = null;\n  }\n\n  get(key) {\n    if (key === 'length') {\n      let {\n        lengthReference\n      } = this;\n\n      if (lengthReference === null) {\n        lengthReference = this.lengthReference = new ValueReference(this.inner.length);\n      }\n\n      return lengthReference;\n    } else {\n      return super.get(key);\n    }\n  }\n\n}\n\nclass ValueReference extends PrimitiveReference {\n  constructor(value) {\n    super(value);\n  }\n\n}\n\nconst UNDEFINED_REFERENCE = new ValueReference(undefined);\nconst NULL_REFERENCE = new ValueReference(null);\nconst TRUE_REFERENCE = new ValueReference(true);\nconst FALSE_REFERENCE = new ValueReference(false);\n\nclass ConditionalReference {\n  constructor(inner, toBool = defaultToBool) {\n    this.inner = inner;\n    this.toBool = toBool;\n    this._tag = createUpdatableTag();\n    this.tag = combine([inner.tag, this._tag]);\n  }\n\n  value() {\n    let ret;\n    let {\n      toBool,\n      inner\n    } = this;\n    let tag = track(() => ret = toBool(inner.value()));\n    updateTag(this._tag, tag);\n    return ret;\n  }\n\n}\n\nfunction defaultToBool(value) {\n  return !!value;\n}\n\nfunction normalizeStringValue(value) {\n  if (isEmpty(value)) {\n    return '';\n  }\n\n  return String(value);\n}\n\nfunction shouldCoerce(value) {\n  return isString(value) || isEmpty(value) || typeof value === 'boolean' || typeof value === 'number';\n}\n\nfunction isEmpty(value) {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n}\n\nfunction isSafeString(value) {\n  return typeof value === 'object' && value !== null && typeof value.toHTML === 'function';\n}\n\nfunction isNode(value) {\n  return typeof value === 'object' && value !== null && typeof value.nodeType === 'number';\n}\n\nfunction isFragment(value) {\n  return isNode(value) && value.nodeType === 11;\n}\n\nfunction isString(value) {\n  return typeof value === 'string';\n}\n/*\n * @method normalizeProperty\n * @param element {HTMLElement}\n * @param slotName {String}\n * @returns {Object} { name, type }\n */\n\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} // * browser bug\n// * strange spec outlier\n\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  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}\n\nfunction sanitizeAttributeValue(env, 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 = env.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) {\n  let {\n    tagName,\n    namespaceURI\n  } = element;\n  let attribute = {\n    element,\n    name: attr,\n    namespace\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}\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}\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}\n\nclass SafeDynamicProperty extends DefaultDynamicProperty {\n  set(dom, value, env) {\n    let {\n      element,\n      name\n    } = this.attribute;\n    let sanitized = sanitizeAttributeValue(env, 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(env, element, name, value);\n    super.update(sanitized, env);\n  }\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(env, 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(env, element, name, value);\n    super.update(sanitized, env);\n  }\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}\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\nvar _a$1;\n\nclass ScopeImpl {\n  constructor( // the 0th slot is `self`\n  slots, 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.callerScope = callerScope;\n    this.evalScope = evalScope;\n    this.partialMap = partialMap;\n  }\n\n  static root(self, size = 0) {\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 ScopeImpl(refs, null, null, null).init({\n      self\n    });\n  }\n\n  static sized(size = 0) {\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 ScopeImpl(refs, 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 ScopeImpl(this.slots.slice(), 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\nconst TRANSACTION = symbol('TRANSACTION');\n\nclass TransactionImpl {\n  constructor() {\n    this.scheduledInstallManagers = [];\n    this.scheduledInstallModifiers = [];\n    this.scheduledUpdateModifierManagers = [];\n    this.scheduledUpdateModifiers = [];\n    this.createdComponents = [];\n    this.createdManagers = [];\n    this.updatedComponents = [];\n    this.updatedManagers = [];\n  }\n\n  didCreate(component, manager) {\n    this.createdComponents.push(component);\n    this.createdManagers.push(manager);\n  }\n\n  didUpdate(component, manager) {\n    this.updatedComponents.push(component);\n    this.updatedManagers.push(manager);\n  }\n\n  scheduleInstallModifier(modifier, manager) {\n    this.scheduledInstallModifiers.push(modifier);\n    this.scheduledInstallManagers.push(manager);\n  }\n\n  scheduleUpdateModifier(modifier, manager) {\n    this.scheduledUpdateModifiers.push(modifier);\n    this.scheduledUpdateModifierManagers.push(manager);\n  }\n\n  commit() {\n    let {\n      createdComponents,\n      createdManagers\n    } = this;\n\n    for (let i = 0; i < createdComponents.length; i++) {\n      let component = createdComponents[i];\n      let manager = createdManagers[i];\n      manager.didCreate(component);\n    }\n\n    let {\n      updatedComponents,\n      updatedManagers\n    } = this;\n\n    for (let i = 0; i < updatedComponents.length; i++) {\n      let component = updatedComponents[i];\n      let manager = updatedManagers[i];\n      manager.didUpdate(component);\n    }\n\n    let {\n      scheduledInstallManagers,\n      scheduledInstallModifiers\n    } = this;\n\n    for (let i = 0; i < scheduledInstallManagers.length; i++) {\n      let modifier = scheduledInstallModifiers[i];\n      let manager = scheduledInstallManagers[i];\n      manager.install(modifier);\n    }\n\n    let {\n      scheduledUpdateModifierManagers,\n      scheduledUpdateModifiers\n    } = this;\n\n    for (let i = 0; i < scheduledUpdateModifierManagers.length; i++) {\n      let modifier = scheduledUpdateModifiers[i];\n      let manager = scheduledUpdateModifierManagers[i];\n      manager.update(modifier);\n    }\n  }\n\n}\n\nfunction defaultDelegateFn(delegateFn, delegateDefault) {\n  let defaultFn = delegateFn !== undefined ? delegateFn : delegateDefault;\n\n  if (DEBUG) {\n    // Bind to `null` in DEBUG since these methods are assumed to be pure\n    // functions, so we can reassign them.\n    return defaultFn.bind(null);\n  }\n\n  return defaultFn;\n}\n\nclass EnvironmentImpl {\n  constructor(options, delegate) {\n    this.delegate = delegate;\n    this[_a$1] = null; // Delegate methods and values\n\n    this.extra = this.delegate.extra;\n    this.isInteractive = typeof this.delegate.isInteractive === 'boolean' ? this.delegate.isInteractive : true;\n    this.protocolForURL = defaultDelegateFn(this.delegate.protocolForURL, defaultGetProtocolForURL);\n    this.attributeFor = defaultDelegateFn(this.delegate.attributeFor, defaultAttributeFor);\n    this.getProp = defaultDelegateFn(this.delegate.getProp, defaultGetProp);\n    this.getPath = defaultDelegateFn(this.delegate.getPath, defaultGetProp);\n    this.setPath = defaultDelegateFn(this.delegate.setPath, defaultSetPath);\n    this.toBool = defaultDelegateFn(this.delegate.toBool, defaultToBool$1);\n    this.toIterator = defaultDelegateFn(this.delegate.toIterator, defaultToIterator);\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  getTemplatePathDebugContext(ref) {\n    if (this.delegate.getTemplatePathDebugContext !== undefined) {\n      return this.delegate.getTemplatePathDebugContext(ref);\n    }\n\n    return '';\n  }\n\n  setTemplatePathDebugContext(ref, desc, parentRef) {\n    if (this.delegate.setTemplatePathDebugContext !== undefined) {\n      this.delegate.setTemplatePathDebugContext(ref, desc, parentRef);\n    }\n  }\n\n  toConditionalReference(input) {\n    return new ConditionalReference(input, this.delegate.toBool);\n  }\n\n  getAppendOperations() {\n    return this.appendOperations;\n  }\n\n  getDOM() {\n    return this.updateOperations;\n  }\n\n  begin() {\n    if (this.delegate.onTransactionBegin !== undefined) {\n      this.delegate.onTransactionBegin();\n    }\n\n    this[TRANSACTION] = new TransactionImpl();\n  }\n\n  get transaction() {\n    return this[TRANSACTION];\n  }\n\n  didCreate(component, manager) {\n    this.transaction.didCreate(component, manager);\n  }\n\n  didUpdate(component, manager) {\n    this.transaction.didUpdate(component, manager);\n  }\n\n  scheduleInstallModifier(modifier, manager) {\n    if (this.isInteractive) {\n      this.transaction.scheduleInstallModifier(modifier, manager);\n    }\n  }\n\n  scheduleUpdateModifier(modifier, manager) {\n    if (this.isInteractive) {\n      this.transaction.scheduleUpdateModifier(modifier, manager);\n    }\n  }\n\n  commit() {\n    let transaction = this.transaction;\n    this[TRANSACTION] = null;\n    transaction.commit();\n\n    if (this.delegate.onTransactionCommit !== undefined) {\n      this.delegate.onTransactionCommit();\n    }\n  }\n\n}\n\n_a$1 = TRANSACTION;\n\nfunction defaultGetProtocolForURL(url) {\n  if (typeof URL === 'object' || typeof URL === 'undefined') {\n    return legacyProtocolForURL(url);\n  } else if (typeof document !== 'undefined') {\n    return new URL(url, document.baseURI).protocol;\n  } else {\n    return new URL(url, 'https://www.example.com').protocol;\n  }\n}\n\nfunction defaultAttributeFor(element, attr, _isTrusting, namespace) {\n  return dynamicAttribute(element, attr, namespace);\n}\n\nfunction defaultGetProp(obj, key) {\n  return obj[key];\n}\n\nfunction defaultSetPath(obj, key, value) {\n  return obj[key] = value;\n}\n\nfunction defaultToBool$1(value) {\n  return Boolean(value);\n}\n\nfunction defaultToIterator(value) {\n  if (value && value[Symbol.iterator]) {\n    return value[Symbol.iterator]();\n  }\n\n  return null;\n}\n\nfunction legacyProtocolForURL(url) {\n  if (typeof window === 'undefined') {\n    let match = /^([a-z][a-z0-9.+-]*:)?(\\/\\/)?([\\S\\s]*)/i.exec(url);\n    return match && match[1] ? match[1].toLowerCase() : '';\n  }\n\n  let anchor = window.document.createElement('a');\n  anchor.href = url;\n  return anchor.protocol;\n}\n\nclass DefaultRuntimeResolver {\n  constructor(inner) {\n    this.inner = inner;\n  }\n\n  lookupComponent(name, referrer) {\n    if (this.inner.lookupComponent) {\n      let component = this.inner.lookupComponent(name, referrer);\n\n      if (component === undefined) {\n        throw new Error(`Unexpected component ${name} (from ${referrer}) (lookupComponent returned undefined)`);\n      }\n\n      return component;\n    } else {\n      throw new Error('lookupComponent not implemented on RuntimeResolver.');\n    }\n  }\n\n  lookupPartial(name, referrer) {\n    if (this.inner.lookupPartial) {\n      let partial = this.inner.lookupPartial(name, referrer);\n\n      if (partial === undefined) {\n        throw new Error(`Unexpected partial ${name} (from ${referrer}) (lookupPartial returned undefined)`);\n      }\n\n      return partial;\n    } else {\n      throw new Error('lookupPartial not implemented on RuntimeResolver.');\n    }\n  }\n\n  resolve(handle) {\n    if (this.inner.resolve) {\n      let resolved = this.inner.resolve(handle);\n\n      if (resolved === undefined) {\n        throw new Error(`Unexpected handle ${handle} (resolve returned undefined)`);\n      }\n\n      return resolved;\n    } else {\n      throw new Error('resolve not implemented on RuntimeResolver.');\n    }\n  }\n\n  compilable(locator) {\n    if (this.inner.compilable) {\n      let resolved = this.inner.compilable(locator);\n\n      if (resolved === undefined) {\n        throw new Error(`Unable to compile ${name} (compilable returned undefined)`);\n      }\n\n      return resolved;\n    } else {\n      throw new Error('compilable not implemented on RuntimeResolver.');\n    }\n  }\n\n  getInvocation(locator) {\n    if (this.inner.getInvocation) {\n      let invocation = this.inner.getInvocation(locator);\n\n      if (invocation === undefined) {\n        throw new Error(`Unable to get invocation for ${JSON.stringify(locator)} (getInvocation returned undefined)`);\n      }\n\n      return invocation;\n    } else {\n      throw new Error('getInvocation not implemented on RuntimeResolver.');\n    }\n  }\n\n}\n\nfunction AotRuntime(options, program, resolver = {}, delegate = {}) {\n  let env = new EnvironmentImpl(options, delegate);\n  return {\n    env,\n    resolver: new DefaultRuntimeResolver(resolver),\n    program: RuntimeProgramImpl.hydrate(program)\n  };\n}\n\nfunction JitRuntime(options, delegate = {}, context, resolver = {}) {\n  return {\n    env: new EnvironmentImpl(options, delegate),\n    program: new RuntimeProgramImpl(context.program.constants, context.program.heap),\n    resolver: new DefaultRuntimeResolver(resolver)\n  };\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\nclass AppendOpcodes {\n  constructor() {\n    this.evaluateOpcode = fillNulls(107\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    let sp;\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  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}\n\nconst APPEND_OPCODES = new AppendOpcodes();\n\nclass AbstractOpcode {\n  constructor() {\n    initializeGuid(this);\n  }\n\n}\n\nclass UpdatingOpcode extends AbstractOpcode {}\n/**\n * These utility functions are related to @glimmer/validator, but they aren't\n * meant to be consumed publicly. They exist as an optimization, and pull in\n * types that are otherwise unrelated to the validation system. Keeping them\n * here keeps the validation system isolated, and allows it to avoid pulling in\n * extra type information (which can lead to issues in public types).\n */\n\n\nfunction combineTagged(tagged) {\n  let optimized = [];\n\n  for (let i = 0; i < tagged.length; i++) {\n    let tag = tagged[i].tag;\n    if (tag === CONSTANT_TAG) continue;\n    optimized.push(tag);\n  }\n\n  return createCombinatorTag(optimized);\n}\n\nfunction combineFromIndex(tagged, startIndex) {\n  let optimized = [];\n\n  for (let i = startIndex; i < tagged.length; i++) {\n    let tag = tagged[i].tag;\n    if (tag === CONSTANT_TAG) continue;\n    optimized.push(tag);\n  }\n\n  return createCombinatorTag(optimized);\n}\n\nclass ConcatReference extends CachedReference {\n  constructor(parts) {\n    super();\n    this.parts = parts;\n    this.tag = combineTagged(parts);\n  }\n\n  compute() {\n    let parts = new Array();\n\n    for (let i = 0; i < this.parts.length; i++) {\n      let value = this.parts[i].value();\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}\n\nfunction castToString(value) {\n  if (typeof value.toString !== 'function') {\n    return '';\n  }\n\n  return String(value);\n}\n\nAPPEND_OPCODES.add(16\n/* Helper */\n, (vm, {\n  op1: handle\n}) => {\n  let stack = vm.stack;\n  let helper = vm.runtime.resolver.resolve(handle);\n  let args = stack.popJs();\n  let value = helper(args, vm);\n  vm.loadValue($v0, value);\n});\nAPPEND_OPCODES.add(22\n/* GetVariable */\n, (vm, {\n  op1: symbol$$1\n}) => {\n  let expr = vm.referenceForSymbol(symbol$$1);\n  vm.stack.pushJs(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(21\n/* SetJitBlock */\n, (vm, {\n  op1: symbol$$1\n}) => {\n  let handle = vm.stack.popJs();\n  let scope = vm.stack.popJs();\n  let table = vm.stack.popJs();\n  let block = table ? [handle, scope, table] : null;\n  vm.scope().bindBlock(symbol$$1, block);\n}, 'jit');\nAPPEND_OPCODES.add(20\n/* SetAotBlock */\n, (vm, {\n  op1: symbol$$1\n}) => {\n  // In DEBUG handles could be ErrHandle objects\n  let handle = DEBUG ? vm.stack.pop() : vm.stack.popSmallInt();\n  let scope = vm.stack.popJs();\n  let table = vm.stack.popJs();\n  let block = table ? [handle, scope, table] : null;\n  vm.scope().bindBlock(symbol$$1, block);\n});\nAPPEND_OPCODES.add(105\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 = vm.getSelf().get(name);\n  }\n\n  vm.stack.pushJs(ref);\n});\nAPPEND_OPCODES.add(37\n/* RootScope */\n, (vm, {\n  op1: symbols\n}) => {\n  vm.pushRootScope(symbols);\n});\nAPPEND_OPCODES.add(23\n/* GetProperty */\n, (vm, {\n  op1: _key\n}) => {\n  let key = vm[CONSTANTS].getValue(_key);\n  let expr = vm.stack.popJs();\n  vm.stack.pushJs(expr.get(key));\n});\nAPPEND_OPCODES.add(24\n/* GetBlock */\n, (vm, {\n  op1: _block\n}) => {\n  let {\n    stack\n  } = vm;\n  let block = vm.scope().getBlock(_block);\n\n  if (block === null) {\n    stack.pushNull();\n  } else {\n    stack.pushJs(block);\n  }\n});\nAPPEND_OPCODES.add(25\n/* JitSpreadBlock */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let block = stack.popJs();\n\n  if (block && !isUndefinedReference(block)) {\n    let [handleOrCompilable, scope, table] = block;\n    stack.pushJs(table);\n    stack.pushJs(scope);\n\n    if (typeof handleOrCompilable === 'number') {\n      stack.pushSmallInt(handleOrCompilable);\n    } else {\n      stack.pushJs(handleOrCompilable);\n    }\n  } else {\n    stack.pushNull();\n    stack.pushNull();\n    stack.pushNull();\n  }\n});\n\nfunction isUndefinedReference(input) {\n  return input === UNDEFINED_REFERENCE;\n}\n\nAPPEND_OPCODES.add(26\n/* HasBlock */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let block = stack.pop();\n\n  if (block && !isUndefinedReference(block)) {\n    stack.pushJs(TRUE_REFERENCE);\n  } else {\n    stack.pushJs(FALSE_REFERENCE);\n  }\n});\nAPPEND_OPCODES.add(27\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.popJs();\n  let table = vm.stack.popJs();\n  let hasBlockParams = table && table.parameters.length;\n  vm.stack.pushJs(hasBlockParams ? TRUE_REFERENCE : FALSE_REFERENCE);\n});\nAPPEND_OPCODES.add(28\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.pushJs(new ConcatReference(out));\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);\n}\n\nfunction managerHasCapability(_manager, capabilities, capability) {\n  return !!(capabilities & capability);\n}\n\nfunction hasCapability(capabilities, capability) {\n  return !!(capabilities & capability);\n}\n\nvar _a$2;\n\nconst CURRIED_COMPONENT_DEFINITION_BRAND = symbol('CURRIED COMPONENT DEFINITION');\n\nfunction isCurriedComponentDefinition(definition) {\n  return !!(definition && definition[CURRIED_COMPONENT_DEFINITION_BRAND]);\n}\n\nfunction isComponentDefinition(definition) {\n  return !!(definition && definition[CURRIED_COMPONENT_DEFINITION_BRAND]);\n}\n\nclass CurriedComponentDefinition {\n  /** @internal */\n  constructor(inner, args) {\n    this.inner = inner;\n    this.args = args;\n    this[_a$2] = true;\n  }\n\n  unwrap(args) {\n    args.realloc(this.offset);\n    let definition = this;\n\n    while (true) {\n      let {\n        args: curriedArgs,\n        inner\n      } = definition;\n\n      if (curriedArgs) {\n        args.positional.prepend(curriedArgs.positional);\n        args.named.merge(curriedArgs.named);\n      }\n\n      if (!isCurriedComponentDefinition(inner)) {\n        return inner;\n      }\n\n      definition = inner;\n    }\n  }\n  /** @internal */\n\n\n  get offset() {\n    let {\n      inner,\n      args\n    } = this;\n    let length = args ? args.positional.length : 0;\n    return isCurriedComponentDefinition(inner) ? length + inner.offset : length;\n  }\n\n}\n\n_a$2 = CURRIED_COMPONENT_DEFINITION_BRAND;\n\nfunction curry(spec, args = null) {\n  return new CurriedComponentDefinition(spec, args);\n}\n\nfunction resolveComponent(resolver, name, meta) {\n  let definition = resolver.lookupComponent(name, meta);\n  return definition;\n}\n\nclass ClassListReference {\n  constructor(list) {\n    this.list = list;\n    this.tag = combineTagged(list);\n    this.list = list;\n  }\n\n  value() {\n    let ret = [];\n    let {\n      list\n    } = this;\n\n    for (let i = 0; i < list.length; i++) {\n      let value = normalizeStringValue(list[i].value());\n      if (value) ret.push(value);\n    }\n\n    return ret.length === 0 ? null : ret.join(' ');\n  }\n\n}\n\nclass CurryComponentReference {\n  constructor(inner, resolver, meta, args) {\n    this.inner = inner;\n    this.resolver = resolver;\n    this.meta = meta;\n    this.args = args;\n    this.tag = inner.tag;\n    this.lastValue = null;\n    this.lastDefinition = null;\n  }\n\n  value() {\n    let {\n      inner,\n      lastValue\n    } = this;\n    let value = inner.value();\n\n    if (value === lastValue) {\n      return this.lastDefinition;\n    }\n\n    let definition = null;\n\n    if (isCurriedComponentDefinition(value)) {\n      definition = value;\n    } else if (typeof value === 'string' && value) {\n      let {\n        resolver,\n        meta\n      } = this;\n      definition = resolveComponent(resolver, value, meta);\n    }\n\n    definition = this.curry(definition);\n    this.lastValue = value;\n    this.lastDefinition = definition;\n    return definition;\n  }\n\n  get() {\n    return UNDEFINED_REFERENCE;\n  }\n\n  curry(definition) {\n    let {\n      args\n    } = this;\n\n    if (!args && isCurriedComponentDefinition(definition)) {\n      return definition;\n    } else if (!definition) {\n      return null;\n    } else {\n      return new CurriedComponentDefinition(definition, args);\n    }\n  }\n\n}\n\nclass DynamicTextContent extends UpdatingOpcode {\n  constructor(node, reference, lastValue) {\n    super();\n    this.node = node;\n    this.reference = reference;\n    this.lastValue = lastValue;\n    this.type = 'dynamic-text';\n    this.tag = reference.tag;\n    this.lastRevision = valueForTag(this.tag);\n  }\n\n  evaluate() {\n    let {\n      reference,\n      tag\n    } = this;\n\n    if (!validateTag(tag, this.lastRevision)) {\n      this.lastRevision = valueForTag(tag);\n      this.update(reference.value());\n    }\n  }\n\n  update(value) {\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\nclass ContentTypeReference {\n  constructor(inner) {\n    this.inner = inner;\n    this.tag = inner.tag;\n  }\n\n  value() {\n    let value = this.inner.value();\n\n    if (shouldCoerce(value)) {\n      return 1\n      /* String */\n      ;\n    } else if (isComponentDefinition(value)) {\n      return 0\n      /* Component */\n      ;\n    } else if (isSafeString(value)) {\n      return 3\n      /* SafeString */\n      ;\n    } else if (isFragment(value)) {\n      return 4\n      /* Fragment */\n      ;\n    } else if (isNode(value)) {\n      return 5\n      /* Node */\n      ;\n    } else {\n        return 1\n        /* String */\n        ;\n      }\n  }\n\n}\n\nAPPEND_OPCODES.add(43\n/* AppendHTML */\n, vm => {\n  let reference = vm.stack.popJs();\n  let rawValue = reference.value();\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.popJs();\n  let rawValue = reference.value().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.popJs();\n  let rawValue = reference.value();\n  let value = isEmpty(rawValue) ? '' : String(rawValue);\n  let node = vm.elements().appendDynamicText(value);\n\n  if (!isConstTagged(reference)) {\n    vm.updateWith(new DynamicTextContent(node, reference, value));\n  }\n});\nAPPEND_OPCODES.add(45\n/* AppendDocumentFragment */\n, vm => {\n  let reference = vm.stack.popJs();\n  let value = reference.value();\n  vm.elements().appendDynamicFragment(value);\n});\nAPPEND_OPCODES.add(46\n/* AppendNode */\n, vm => {\n  let reference = vm.stack.popJs();\n  let value = reference.value();\n  vm.elements().appendDynamicNode(value);\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(29\n/* Constant */\n, (vm, {\n  op1: other\n}) => {\n  vm.stack.pushJs(vm[CONSTANTS].getValue(decodeHandle(other)));\n});\nAPPEND_OPCODES.add(30\n/* Primitive */\n, (vm, {\n  op1: primitive\n}) => {\n  let stack = vm.stack;\n\n  if (isNonPrimitiveHandle(primitive)) {\n    // it is a handle which does not already exist on the stack\n    let value = vm[CONSTANTS].getValue(decodeHandle(primitive));\n    stack.pushJs(value);\n  } else {\n    // is already an encoded immediate or primitive handle\n    stack.pushRaw(primitive);\n  }\n});\nAPPEND_OPCODES.add(31\n/* PrimitiveReference */\n, vm => {\n  let stack = vm.stack;\n  stack.pushJs(PrimitiveReference.create(stack.pop()));\n});\nAPPEND_OPCODES.add(32\n/* ReifyU32 */\n, vm => {\n  let stack = vm.stack;\n  stack.pushSmallInt(stack.peekJs().value());\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.pushJs(vm[CONSTANTS].getSerializable(_table));\n});\nAPPEND_OPCODES.add(62\n/* PushBlockScope */\n, vm => {\n  let stack = vm.stack;\n  stack.pushJs(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.pushSmallInt(vm.compile(block));\n  } else {\n    stack.pushNull();\n  }\n}, 'jit');\nAPPEND_OPCODES.add(64\n/* InvokeYield */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let handle = stack.pop();\n  let scope = stack.popJs();\n  let table = stack.popJs();\n  let args = stack.pop();\n\n  if (table === null) {\n    // To balance the pop{Frame,Scope}\n    vm.pushFrame();\n    vm.pushScope(scope); // Could be null but it doesnt matter as it is immediatelly popped.\n\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.popJs();\n\n  if (isConstTagged(reference)) {\n    if (reference.value()) {\n      vm.goto(target);\n    }\n  } else {\n    let cache = new ReferenceCache(reference);\n\n    if (cache.peek()) {\n      vm.goto(target);\n    }\n\n    vm.updateWith(new Assert(cache));\n  }\n});\nAPPEND_OPCODES.add(66\n/* JumpUnless */\n, (vm, {\n  op1: target\n}) => {\n  let reference = vm.stack.popJs();\n\n  if (isConstTagged(reference)) {\n    if (!reference.value()) {\n      vm.goto(target);\n    }\n  } else {\n    let cache = new ReferenceCache(reference);\n\n    if (!cache.peek()) {\n      vm.goto(target);\n    }\n\n    vm.updateWith(new Assert(cache));\n  }\n});\nAPPEND_OPCODES.add(67\n/* JumpEq */\n, (vm, {\n  op1: target,\n  op2: comparison\n}) => {\n  let other = vm.stack.peekSmallInt();\n\n  if (other === comparison) {\n    vm.goto(target);\n  }\n});\nAPPEND_OPCODES.add(68\n/* AssertSame */\n, vm => {\n  let reference = vm.stack.peekJs();\n\n  if (!isConstTagged(reference)) {\n    vm.updateWith(Assert.initialize(new ReferenceCache(reference)));\n  }\n});\nAPPEND_OPCODES.add(71\n/* ToBoolean */\n, vm => {\n  let {\n    env,\n    stack\n  } = vm;\n  stack.pushJs(env.toConditionalReference(stack.popJs()));\n});\n\nclass Assert extends UpdatingOpcode {\n  constructor(cache) {\n    super();\n    this.type = 'assert';\n    this.tag = cache.tag;\n    this.cache = cache;\n  }\n\n  static initialize(cache) {\n    let assert = new Assert(cache);\n    cache.peek();\n    return assert;\n  }\n\n  evaluate(vm) {\n    let {\n      cache\n    } = this;\n\n    if (isModified(cache.revalidate())) {\n      vm.throw();\n    }\n  }\n\n}\n\nclass JumpIfNotModifiedOpcode extends UpdatingOpcode {\n  constructor(index) {\n    super();\n    this.index = index;\n    this.type = 'jump-if-not-modified';\n    this.tag = CONSTANT_TAG;\n    this.lastRevision = INITIAL;\n  }\n\n  finalize(tag, target) {\n    this.tag = tag;\n    this.target = target;\n  }\n\n  evaluate(vm) {\n    let {\n      tag,\n      target,\n      lastRevision\n    } = this;\n\n    if (!vm.alwaysRevalidate && validateTag(tag, lastRevision)) {\n      vm.goto(target);\n    }\n  }\n\n  didModify() {\n    this.lastRevision = valueForTag(this.tag);\n  }\n\n}\n\nclass DidModifyOpcode extends UpdatingOpcode {\n  constructor(target) {\n    super();\n    this.target = target;\n    this.type = 'did-modify';\n    this.tag = CONSTANT_TAG;\n  }\n\n  evaluate() {\n    this.target.didModify();\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 = vm.stack.popJs().value();\n  vm.elements().openElement(tagName);\n});\nAPPEND_OPCODES.add(50\n/* PushRemoteElement */\n, vm => {\n  let elementRef = vm.stack.popJs();\n  let insertBeforeRef = vm.stack.popJs();\n  let guidRef = vm.stack.popJs();\n  let element;\n  let insertBefore;\n  let guid = guidRef.value();\n\n  if (isConstTagged(elementRef)) {\n    element = elementRef.value();\n  } else {\n    let cache = new ReferenceCache(elementRef);\n    element = cache.peek();\n    vm.updateWith(new Assert(cache));\n  }\n\n  if (insertBeforeRef.value() !== undefined) {\n    if (isConstTagged(insertBeforeRef)) {\n      insertBefore = insertBeforeRef.value();\n    } else {\n      let cache = new ReferenceCache(insertBeforeRef);\n      insertBefore = cache.peek();\n      vm.updateWith(new Assert(cache));\n    }\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(([manager, modifier]) => {\n      vm.env.scheduleInstallModifier(modifier, manager);\n      let d = manager.getDestroyable(modifier);\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  let {\n    manager,\n    state\n  } = vm.runtime.resolver.resolve(handle);\n  let stack = vm.stack;\n  let args = stack.popJs();\n  let {\n    constructing,\n    updateOperations\n  } = vm.elements();\n  let dynamicScope = vm.dynamicScope();\n  let modifier = manager.create(constructing, state, args, dynamicScope, updateOperations);\n  let operations = vm.fetchValue($t0);\n  operations.addModifier(manager, modifier);\n  let tag = manager.getTag(modifier);\n\n  if (!isConstTag(tag)) {\n    vm.updateWith(new UpdateModifierOpcode(tag, manager, modifier));\n  }\n});\n\nclass UpdateModifierOpcode extends UpdatingOpcode {\n  constructor(tag, manager, modifier) {\n    super();\n    this.tag = tag;\n    this.manager = manager;\n    this.modifier = modifier;\n    this.type = 'update-modifier';\n    this.lastUpdated = valueForTag(tag);\n  }\n\n  evaluate(vm) {\n    let {\n      manager,\n      modifier,\n      tag,\n      lastUpdated\n    } = this;\n\n    if (!validateTag(tag, lastUpdated)) {\n      vm.env.scheduleUpdateModifier(modifier, manager);\n      this.lastUpdated = valueForTag(tag);\n    }\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 reference = vm.stack.popJs();\n  let value = reference.value();\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  let attribute = vm.elements().setDynamicAttribute(name, value, !!trusting, namespace);\n\n  if (!isConstTagged(reference)) {\n    vm.updateWith(new UpdateDynamicAttributeOpcode(reference, attribute));\n  }\n});\n\nclass UpdateDynamicAttributeOpcode extends UpdatingOpcode {\n  constructor(reference, attribute) {\n    super();\n    this.reference = reference;\n    this.attribute = attribute;\n    this.type = 'patch-element';\n    let {\n      tag\n    } = reference;\n    this.tag = tag;\n    this.lastRevision = valueForTag(tag);\n  }\n\n  evaluate(vm) {\n    let {\n      attribute,\n      reference,\n      tag\n    } = this;\n\n    if (!validateTag(tag, this.lastRevision)) {\n      attribute.update(reference.value(), vm.env);\n      this.lastRevision = valueForTag(tag);\n    }\n  }\n\n}\n/**\n * The VM creates a new ComponentInstance data structure for every component\n * invocation it encounters.\n *\n * Similar to how a ComponentDefinition contains state about all components of a\n * particular type, a ComponentInstance contains state specific to a particular\n * instance of a component type. It also contains a pointer back to its\n * component type's ComponentDefinition.\n */\n\n\nconst COMPONENT_INSTANCE = symbol('COMPONENT_INSTANCE');\nAPPEND_OPCODES.add(77\n/* IsComponent */\n, vm => {\n  let stack = vm.stack;\n  let ref = stack.popJs();\n  stack.pushJs(new ConditionalReference(ref, isCurriedComponentDefinition));\n});\nAPPEND_OPCODES.add(78\n/* ContentType */\n, vm => {\n  let stack = vm.stack;\n  let ref = stack.peekJs();\n  stack.pushJs(new ContentTypeReference(ref));\n});\nAPPEND_OPCODES.add(79\n/* CurryComponent */\n, (vm, {\n  op1: _meta\n}) => {\n  let stack = vm.stack;\n  let definition = stack.popJs();\n  let capturedArgs = stack.popJs();\n  let meta = vm[CONSTANTS].getValue(decodeHandle(_meta));\n  let resolver = vm.runtime.resolver;\n  vm.loadValue($v0, new CurryComponentReference(definition, resolver, meta, capturedArgs)); // expectStackChange(vm.stack, -args.length - 1, 'CurryComponent');\n});\nAPPEND_OPCODES.add(80\n/* PushComponentDefinition */\n, (vm, {\n  op1: handle\n}) => {\n  let definition = vm.runtime.resolver.resolve(handle);\n  let {\n    manager\n  } = definition;\n  let capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n  let instance = {\n    [COMPONENT_INSTANCE]: true,\n    definition,\n    manager,\n    capabilities,\n    state: null,\n    handle: null,\n    table: null,\n    lookup: null\n  };\n  vm.stack.pushJs(instance);\n});\nAPPEND_OPCODES.add(83\n/* ResolveDynamicComponent */\n, (vm, {\n  op1: _meta\n}) => {\n  let stack = vm.stack;\n  let component = stack.popJs().value();\n  let meta = vm[CONSTANTS].getValue(decodeHandle(_meta));\n  vm.loadValue($t1, null); // Clear the temp register\n\n  let definition;\n\n  if (typeof component === 'string') {\n    let resolvedDefinition = resolveComponent(vm.runtime.resolver, component, meta);\n    definition = resolvedDefinition;\n  } else if (isCurriedComponentDefinition(component)) {\n    definition = component;\n  } else {\n    throw unreachable();\n  }\n\n  stack.pushJs(definition);\n});\nAPPEND_OPCODES.add(81\n/* PushDynamicComponentInstance */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let definition = stack.pop();\n  let capabilities, manager;\n\n  if (isCurriedComponentDefinition(definition)) {\n    manager = capabilities = null;\n  } else {\n    manager = definition.manager;\n    capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n  }\n\n  stack.pushJs({\n    definition,\n    capabilities,\n    manager,\n    state: null,\n    handle: null,\n    table: null\n  });\n});\nAPPEND_OPCODES.add(82\n/* PushCurriedComponent */\n, vm => {\n  let stack = vm.stack;\n  let component = stack.popJs().value();\n  let definition;\n\n  if (isCurriedComponentDefinition(component)) {\n    definition = component;\n  } else {\n    throw unreachable();\n  }\n\n  stack.pushJs(definition);\n});\nAPPEND_OPCODES.add(84\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_ARRAY;\n  vm[ARGS].setup(stack, names, blockNames, positionalCount, !!atNames);\n  stack.pushJs(vm[ARGS]);\n});\nAPPEND_OPCODES.add(85\n/* PushEmptyArgs */\n, vm => {\n  let {\n    stack\n  } = vm;\n  stack.pushJs(vm[ARGS].empty(stack));\n});\nAPPEND_OPCODES.add(88\n/* CaptureArgs */\n, vm => {\n  let stack = vm.stack;\n  let args = stack.popJs();\n  let capturedArgs = args.capture();\n  stack.pushJs(capturedArgs);\n});\nAPPEND_OPCODES.add(87\n/* PrepareArgs */\n, (vm, {\n  op1: _state\n}) => {\n  let stack = vm.stack;\n  let instance = vm.fetchValue(_state);\n  let args = stack.popJs();\n  let {\n    definition\n  } = instance;\n\n  if (isCurriedComponentDefinition(definition)) {\n    definition = resolveCurriedComponentDefinition(instance, definition, args);\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.pushJs(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      let block = blocks[i];\n\n      if (typeof block === 'number') {\n        stack.pushSmallInt(block);\n      } else {\n        stack.pushJs(block);\n      }\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.pushJs(positional[i]);\n    }\n\n    let names = Object.keys(named);\n\n    for (let i = 0; i < names.length; i++) {\n      stack.pushJs(named[names[i]]);\n    }\n\n    args.setup(stack, names, blockNames, positionalCount, false);\n  }\n\n  stack.pushJs(args);\n});\n\nfunction resolveCurriedComponentDefinition(instance, definition, args) {\n  let unwrappedDefinition = instance.definition = definition.unwrap(args);\n  let {\n    manager,\n    state\n  } = unwrappedDefinition;\n  instance.manager = manager;\n  instance.capabilities = capabilityFlagsFrom(manager.getCapabilities(state));\n  return unwrappedDefinition;\n}\n\nAPPEND_OPCODES.add(89\n/* CreateComponent */\n, (vm, {\n  op1: flags,\n  op2: _state\n}) => {\n  let instance = vm.fetchValue(_state);\n  let {\n    definition,\n    manager\n  } = instance;\n  let capabilities = instance.capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n\n  if (!managerHasCapability(manager, capabilities, 512\n  /* CreateInstance */\n  )) {\n    throw new Error(`BUG`);\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.peekJs();\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.env, definition.state, args, 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  let tag = manager.getTag(state);\n\n  if (managerHasCapability(manager, capabilities, 256\n  /* UpdateHook */\n  ) && !isConstTag(tag)) {\n    vm.updateWith(new UpdateComponentOpcode(tag, state, manager, dynamicScope));\n  }\n});\nAPPEND_OPCODES.add(90\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 && !hasCapability(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(100\n/* BeginComponentTransaction */\n, vm => {\n  vm.beginCacheGroup();\n  vm.elements().pushSimpleBlock();\n});\nAPPEND_OPCODES.add(91\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 reference = vm.stack.popJs();\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  vm.fetchValue($t0).setAttribute(name, reference, !!trusting, namespace);\n});\nAPPEND_OPCODES.add(108\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});\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(manager, state) {\n    this.modifiers.push([manager, state]);\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 makeClassList(classes);\n}\n\nfunction makeClassList(classes) {\n  for (let i = 0; i < classes.length; i++) {\n    const value = classes[i];\n\n    if (typeof value === 'string') {\n      classes[i] = PrimitiveReference.create(value);\n    }\n  }\n\n  return new ClassListReference(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, value.value(), trusting, namespace);\n\n    if (!isConstTagged(value)) {\n      vm.updateWith(new UpdateDynamicAttributeOpcode(value, attribute));\n    }\n  }\n}\n\nAPPEND_OPCODES.add(102\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(92\n/* GetComponentSelf */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    definition,\n    state\n  } = vm.fetchValue(_state);\n  let {\n    manager\n  } = definition;\n  vm.stack.pushJs(manager.getSelf(state));\n});\nAPPEND_OPCODES.add(93\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.pushJs(tagName);\n}); // Dynamic Invocation Only\n\nAPPEND_OPCODES.add(95\n/* GetJitComponentLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let instance = vm.fetchValue(_state);\n  let manager = instance.manager;\n  let {\n    definition\n  } = instance;\n  let {\n    stack\n  } = vm;\n  let {\n    capabilities\n  } = instance; // let invoke: { handle: number; symbolTable: ProgramSymbolTable };\n\n  let layout;\n\n  if (hasStaticLayoutCapability(capabilities, manager)) {\n    layout = manager.getJitStaticLayout(definition.state, vm.runtime.resolver);\n  } else if (hasDynamicLayoutCapability(capabilities, manager)) {\n    let template = unwrapTemplate(manager.getJitDynamicLayout(instance.state, vm.runtime.resolver));\n\n    if (hasCapability(capabilities, 1024\n    /* Wrapped */\n    )) {\n      layout = template.asWrappedLayout();\n    } else {\n      layout = template.asLayout();\n    }\n  } else {\n    throw unreachable();\n  }\n\n  let handle = layout.compile(vm.context);\n  stack.pushJs(layout.symbolTable);\n\n  if (DEBUG && isErrHandle(handle)) {\n    stack.pushJs(handle);\n  } else {\n    stack.pushSmallInt(handle);\n  }\n}, 'jit'); // Dynamic Invocation Only\n\nAPPEND_OPCODES.add(94\n/* GetAotComponentLayout */\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    state: instanceState,\n    capabilities\n  } = instance;\n  let {\n    state: definitionState\n  } = definition;\n  let invoke;\n\n  if (hasStaticLayoutCapability(capabilities, manager)) {\n    invoke = manager.getAotStaticLayout(definitionState, vm.runtime.resolver);\n  } else if (hasDynamicLayoutCapability(capabilities, manager)) {\n    invoke = manager.getAotDynamicLayout(instanceState, vm.runtime.resolver);\n  } else {\n    throw unreachable();\n  }\n\n  stack.pushJs(invoke.symbolTable);\n\n  if (DEBUG && isErrHandle(invoke.handle)) {\n    stack.pushJs(invoke.handle);\n  } else {\n    stack.pushSmallInt(invoke.handle);\n  }\n}); // These types are absurd here\n\nfunction hasStaticLayoutCapability(capabilities, _manager) {\n  return managerHasCapability(_manager, capabilities, 1\n  /* DynamicLayout */\n  ) === false;\n}\n\nfunction hasDynamicLayoutCapability(capabilities, _manager) {\n  return managerHasCapability(_manager, capabilities, 1\n  /* DynamicLayout */\n  ) === true;\n}\n\nAPPEND_OPCODES.add(76\n/* Main */\n, (vm, {\n  op1: register\n}) => {\n  let definition = vm.stack.popJs();\n  let invocation = vm.stack.popJs();\n  let {\n    manager\n  } = definition;\n  let capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n  let state = {\n    [COMPONENT_INSTANCE]: true,\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(98\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 = DEBUG ? stack.pop() : stack.popSmallInt();\n  let table = stack.popJs();\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    symbols\n  } = vm.fetchValue(_state).table;\n  vm.pushRootScope(symbols.length + 1);\n});\nAPPEND_OPCODES.add(97\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.peekJs();\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.peekJs();\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(99\n/* InvokeComponentLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let state = vm.fetchValue(_state);\n  vm.call(state.handle);\n});\nAPPEND_OPCODES.add(103\n/* DidRenderLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    manager,\n    state,\n    capabilities\n  } = vm.fetchValue(_state);\n  let bounds = vm.elements().popBlock();\n\n  if (!managerHasCapability(manager, capabilities, 512\n  /* CreateInstance */\n  )) {\n    throw new Error(`BUG`);\n  }\n\n  let mgr = manager;\n  mgr.didRenderLayout(state, bounds);\n  vm.env.didCreate(state, manager);\n  vm.updateWith(new DidUpdateLayoutOpcode(manager, state, bounds));\n});\nAPPEND_OPCODES.add(101\n/* CommitComponentTransaction */\n, vm => {\n  vm.commitCacheGroup();\n});\n\nclass UpdateComponentOpcode extends UpdatingOpcode {\n  constructor(tag, component, manager, dynamicScope) {\n    super();\n    this.tag = tag;\n    this.component = component;\n    this.manager = manager;\n    this.dynamicScope = dynamicScope;\n    this.type = 'update-component';\n  }\n\n  evaluate(_vm) {\n    let {\n      component,\n      manager,\n      dynamicScope\n    } = this;\n    manager.update(component, dynamicScope);\n  }\n\n}\n\nclass DidUpdateLayoutOpcode extends UpdatingOpcode {\n  constructor(manager, component, bounds) {\n    super();\n    this.manager = manager;\n    this.component = component;\n    this.bounds = bounds;\n    this.type = 'did-update-layout';\n    this.tag = CONSTANT_TAG;\n  }\n\n  evaluate(vm) {\n    let {\n      manager,\n      component,\n      bounds\n    } = this;\n    manager.didUpdateLayout(component, bounds);\n    vm.env.didUpdate(component, manager);\n  }\n\n}\n\nfunction debugCallback(context, get) {\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}\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) => r.get(part), ref);\n  }\n\n}\n\nAPPEND_OPCODES.add(106\n/* Debugger */\n, (vm, {\n  op1: _symbols,\n  op2: _evalInfo\n}) => {\n  let symbols = vm[CONSTANTS].getArray(_symbols);\n  let evalInfo = vm[CONSTANTS].getValue(decodeHandle(_evalInfo));\n  let inspector = new ScopeInspector(vm.scope(), symbols, evalInfo);\n  callback(vm.getSelf().value(), path => inspector.get(path).value());\n});\nAPPEND_OPCODES.add(104\n/* InvokePartial */\n, (vm, {\n  op1: _meta,\n  op2: _symbols,\n  op3: _evalInfo\n}) => {\n  let {\n    [CONSTANTS]: constants$$1,\n    stack\n  } = vm;\n  let name = stack.popJs().value();\n  let meta = constants$$1.getValue(decodeHandle(_meta));\n  let outerSymbols = constants$$1.getArray(_symbols);\n  let evalInfo = constants$$1.getValue(decodeHandle(_evalInfo));\n  let handle = vm.runtime.resolver.lookupPartial(name, meta);\n  let definition = vm.runtime.resolver.resolve(handle);\n  let {\n    symbolTable,\n    handle: vmHandle\n  } = definition.getPartial(vm.context);\n  {\n    let partialSymbols = symbolTable.symbols;\n    let outerScope = vm.scope();\n    let partialScope = vm.pushRootScope(partialSymbols.length);\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      let name = outerSymbols[slot - 1];\n      let ref = outerScope.getSymbol(slot);\n      locals[name] = ref;\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}, 'jit');\nAPPEND_OPCODES.add(74\n/* PutIterator */\n, vm => {\n  let stack = vm.stack;\n  let listRef = stack.popJs();\n  let keyRef = stack.popJs();\n  let keyValue = keyRef.value();\n  let key = keyValue === null ? '@identity' : String(keyValue);\n  let iterableRef = new IterableReference(listRef, key, vm.env); // Push the first time to push the iterator onto the stack for iteration\n\n  stack.pushJs(iterableRef); // Push the second time to push it as a reference for presence in general\n  // (e.g whether or not it is empty). This reference will be used to skip\n  // iteration entirely.\n\n  stack.pushJs(iterableRef);\n});\nAPPEND_OPCODES.add(72\n/* EnterList */\n, (vm, {\n  op1: relativeStart\n}) => {\n  vm.enterList(relativeStart);\n});\nAPPEND_OPCODES.add(73\n/* ExitList */\n, vm => {\n  vm.exitList();\n});\nAPPEND_OPCODES.add(75\n/* Iterate */\n, (vm, {\n  op1: breaks\n}) => {\n  let stack = vm.stack;\n  let iterable = stack.peekJs();\n  let item = iterable.next();\n\n  if (item) {\n    let opcode = vm.enterItem(iterable, item);\n    vm.registerItem(opcode);\n  } else {\n    vm.goto(breaks);\n  }\n});\n/** @internal */\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};\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};\n\nclass SimpleComponentManager {\n  getCapabilities(_state) {\n    return MINIMAL_CAPABILITIES;\n  }\n\n  prepareArgs(_state, _args) {\n    throw new Error(`Unimplemented prepareArgs in SimpleComponentManager`);\n  }\n\n  create(_env, _state, _args, _dynamicScope, _caller, _hasDefaultBlock) {\n    throw new Error(`Unimplemented create in SimpleComponentManager`);\n  }\n\n  getSelf(_state) {\n    return UNDEFINED_REFERENCE;\n  }\n\n  getTag(_state) {\n    throw new Error(`Unimplemented getTag in SimpleComponentManager`);\n  }\n\n  didRenderLayout(_state, _bounds) {\n    throw new Error(`Unimplemented didRenderLayout in SimpleComponentManager`);\n  }\n\n  didCreate(_state) {\n    throw new Error(`Unimplemented didCreate in SimpleComponentManager`);\n  }\n\n  update(_state, _dynamicScope) {\n    throw new Error(`Unimplemented update in SimpleComponentManager`);\n  }\n\n  didUpdateLayout(_state, _bounds) {\n    throw new Error(`Unimplemented didUpdateLayout in SimpleComponentManager`);\n  }\n\n  didUpdate(_state) {\n    throw new Error(`Unimplemented didUpdate in SimpleComponentManager`);\n  }\n\n  getDestroyable(_state) {\n    return null;\n  }\n\n}\n\nconst TEMPLATE_ONLY_COMPONENT = {\n  state: null,\n  manager: new SimpleComponentManager()\n};\n\nclass DefaultDynamicScope {\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 DefaultDynamicScope(this.bucket);\n  }\n\n}\n\nclass DynamicVarReference {\n  constructor(scope, nameRef) {\n    this.scope = scope;\n    this.nameRef = nameRef;\n    let varTag = this.varTag = createUpdatableTag();\n    this.tag = combine([nameRef.tag, varTag]);\n  }\n\n  value() {\n    return this.getVar().value();\n  }\n\n  get(key) {\n    return this.getVar().get(key);\n  }\n\n  getVar() {\n    let name = String(this.nameRef.value());\n    let ref = this.scope.get(name);\n    updateTag(this.varTag, ref.tag);\n    return ref;\n  }\n\n}\n\nfunction getDynamicVar(args, vm) {\n  let scope = vm.dynamicScope();\n  let nameRef = args.positional.at(0);\n  return new DynamicVarReference(scope, nameRef);\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\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 tag() {\n    return combineTagged([this.positional, this.named]);\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 new CapturedArgumentsImpl(this.tag, positional, named, this.length);\n  }\n\n  clear() {\n    let {\n      stack,\n      length\n    } = this;\n    if (length > 0 && stack !== null) stack.pop(length);\n  }\n\n}\n\nclass PositionalArgumentsImpl {\n  constructor() {\n    this.base = 0;\n    this.length = 0;\n    this.stack = null;\n    this._tag = 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._tag = CONSTANT_TAG;\n    this._references = EMPTY_ARRAY;\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._tag = CONSTANT_TAG;\n      this._references = EMPTY_ARRAY;\n    } else {\n      this._tag = null;\n      this._references = null;\n    }\n  }\n\n  get tag() {\n    let tag = this._tag;\n\n    if (!tag) {\n      tag = this._tag = combineTagged(this.references);\n    }\n\n    return tag;\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 new CapturedPositionalArgumentsImpl(this.tag, 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.at(i), i, base);\n      }\n\n      this._tag = null;\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}\n\nclass CapturedPositionalArgumentsImpl {\n  constructor(tag, references, length = references.length) {\n    this.tag = tag;\n    this.references = references;\n    this.length = length;\n  }\n\n  static empty() {\n    return new CapturedPositionalArgumentsImpl(CONSTANT_TAG, EMPTY_ARRAY, 0);\n  }\n\n  at(position) {\n    return this.references[position];\n  }\n\n  value() {\n    return this.references.map(this.valueOf);\n  }\n\n  get(name) {\n    let {\n      references,\n      length\n    } = this;\n\n    if (name === 'length') {\n      return PrimitiveReference.create(length);\n    } else {\n      let idx = parseInt(name, 10);\n\n      if (idx < 0 || idx >= length) {\n        return UNDEFINED_REFERENCE;\n      } else {\n        return references[idx];\n      }\n    }\n  }\n\n  valueOf(reference) {\n    return reference.value();\n  }\n\n}\n\nclass NamedArgumentsImpl {\n  constructor() {\n    this.base = 0;\n    this.length = 0;\n    this._references = null;\n    this._names = EMPTY_ARRAY;\n    this._atNames = EMPTY_ARRAY;\n  }\n\n  empty(stack, base) {\n    this.stack = stack;\n    this.base = base;\n    this.length = 0;\n    this._references = EMPTY_ARRAY;\n    this._names = EMPTY_ARRAY;\n    this._atNames = EMPTY_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_ARRAY;\n      this._names = EMPTY_ARRAY;\n      this._atNames = EMPTY_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 tag() {\n    return combineTagged(this.references);\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    return stack.get(idx, base);\n  }\n\n  capture() {\n    return new CapturedNamedArgumentsImpl(this.tag, this.names, this.references);\n  }\n\n  merge(other) {\n    let {\n      length: extras\n    } = other;\n\n    if (extras > 0) {\n      let {\n        names,\n        length,\n        stack\n      } = this;\n      let {\n        names: extraNames\n      } = other;\n      let newNames = names.slice();\n\n      for (let i = 0; i < extras; i++) {\n        let name = extraNames[i];\n        let idx = newNames.indexOf(name);\n\n        if (idx === -1) {\n          length = newNames.push(name);\n          stack.pushJs(other.references[i]);\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\nclass CapturedNamedArgumentsImpl {\n  constructor(tag, names, references) {\n    this.tag = tag;\n    this.names = names;\n    this.references = references;\n    this.length = names.length;\n    this._map = null;\n  }\n\n  get map() {\n    let map = this._map;\n\n    if (!map) {\n      let {\n        names,\n        references\n      } = this;\n      map = this._map = dict();\n\n      for (let i = 0; i < names.length; i++) {\n        let name = names[i];\n        map[name] = references[i];\n      }\n    }\n\n    return map;\n  }\n\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n\n  get(name) {\n    let {\n      names,\n      references\n    } = this;\n    let idx = names.indexOf(name);\n\n    if (idx === -1) {\n      return UNDEFINED_REFERENCE;\n    } else {\n      return references[idx];\n    }\n  }\n\n  value() {\n    let {\n      names,\n      references\n    } = this;\n    let out = dict();\n\n    for (let i = 0; i < names.length; i++) {\n      let name = names[i];\n      out[name] = references[i].value();\n    }\n\n    return out;\n  }\n\n}\n\nfunction toSymbolName(name) {\n  return `&${name}`;\n}\n\nclass BlockArgumentsImpl {\n  constructor() {\n    this.internalValues = null;\n    this._symbolNames = null;\n    this.internalTag = null;\n    this.names = EMPTY_ARRAY;\n    this.length = 0;\n    this.base = 0;\n  }\n\n  empty(stack, base) {\n    this.stack = stack;\n    this.names = EMPTY_ARRAY;\n    this.base = base;\n    this.length = 0;\n    this._symbolNames = null;\n    this.internalTag = CONSTANT_TAG;\n    this.internalValues = EMPTY_ARRAY;\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_ARRAY;\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\nclass CapturedArgumentsImpl {\n  constructor(tag, positional, named, length) {\n    this.tag = tag;\n    this.positional = positional;\n    this.named = named;\n    this.length = length;\n  }\n\n  value() {\n    return {\n      named: this.named.value(),\n      positional: this.positional.value()\n    };\n  }\n\n}\n\nconst EMPTY_NAMED = new CapturedNamedArgumentsImpl(CONSTANT_TAG, EMPTY_ARRAY, EMPTY_ARRAY);\nconst EMPTY_POSITIONAL = new CapturedPositionalArgumentsImpl(CONSTANT_TAG, EMPTY_ARRAY);\nconst EMPTY_ARGS = new CapturedArgumentsImpl(CONSTANT_TAG, EMPTY_POSITIONAL, EMPTY_NAMED, 0);\n\nfunction initializeRegistersWithSP(sp) {\n  return [0, -1, sp, 0];\n}\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.pushSmallInt(this.registers[$ra]);\n    this.stack.pushSmallInt(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.pushSmallInt(this.registers[$ra]);\n  }\n\n  popSmallFrame() {\n    this.registers[$ra] = this.stack.popSmallInt();\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.popSmallInt());\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 UpdatingVM {\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    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}\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}\n\nclass BlockOpcode extends UpdatingOpcode {\n  constructor(state, runtime, bounds, children) {\n    super();\n    this.state = state;\n    this.runtime = runtime;\n    this.type = 'block';\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}\n\nclass TryOpcode extends BlockOpcode {\n  constructor(state, runtime, bounds, children) {\n    super(state, runtime, bounds, children);\n    this.type = 'try';\n    this.tag = this._tag = createUpdatableTag();\n  }\n\n  didInitializeChildren() {\n    updateTag(this._tag, combineTagged(this.children));\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}\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    this.value.update(item.value);\n    this.memo.update(item.memo);\n  }\n\n  shouldRemove() {\n    return !this.retained;\n  }\n\n  reset() {\n    this.retained = false;\n  }\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.lastIterated = INITIAL;\n    this.opcodeMap = new Map();\n    this.marker = null;\n\n    let _tag = this._tag = createUpdatableTag();\n\n    this.tag = combine([iterableRef.tag, _tag]);\n  }\n\n  initializeChild(opcode) {\n    opcode.index = this.children.length - 1;\n    this.opcodeMap.set(opcode.key, opcode);\n  }\n\n  didInitializeChildren() {\n    this.lastIterated = valueForTag(this.tag);\n    updateTag(this._tag, combineTagged(this.children));\n  }\n\n  evaluate(vm) {\n    let {\n      iterableRef,\n      lastIterated\n    } = this;\n\n    if (!validateTag(iterableRef.tag, lastIterated)) {\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      let didChange = this.sync();\n      this.parentElement().removeChild(marker);\n      this.marker = null;\n\n      if (didChange) {\n        updateTag(this._tag, combineTagged(this.children));\n      }\n\n      this.lastIterated = valueForTag(this.iterableRef.tag);\n    } // Run now-updated updating opcodes\n\n\n    super.evaluate(vm);\n  }\n\n  sync() {\n    let {\n      iterableRef,\n      opcodeMap: itemMap,\n      children\n    } = this;\n    let currentOpcodeIndex = 0;\n    let seenIndex = 0;\n    let didChange = false;\n    this.children = this.bounds.boundList = [];\n\n    while (true) {\n      let item = iterableRef.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        didChange = true;\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        didChange = true;\n        this.deleteItem(opcode);\n      } else {\n        opcode.reset();\n      }\n    }\n\n    return didChange;\n  }\n\n  retainItem(opcode, item) {\n    let {\n      children\n    } = this;\n    opcode.memo.update(item.memo);\n    opcode.value.update(item.value);\n    opcode.retained = true;\n    opcode.index = children.length;\n    children.push(opcode);\n  }\n\n  insertItem(item, before) {\n    let {\n      opcodeMap,\n      bounds,\n      state,\n      runtime,\n      iterableRef,\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(iterableRef, 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    opcode.memo.update(item.memo);\n    opcode.value.update(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    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 UpdatingVM(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 InnerStack {\n  constructor(inner = new Stack$1(), js) {\n    this.inner = inner;\n    this.js = constants();\n\n    if (js !== undefined) {\n      this.js = this.js.concat(js);\n    }\n  }\n\n  slice(start, end) {\n    let out = [];\n\n    if (start === -1) {\n      return out;\n    }\n\n    for (let i = start; i < end; i++) {\n      out.push(this.get(i));\n    }\n\n    return out;\n  }\n\n  copy(from, to) {\n    this.inner.copy(from, to);\n  }\n\n  writeJs(pos, value) {\n    let idx = this.js.length;\n    this.js.push(value);\n    this.inner.writeRaw(pos, encodeHandle(idx));\n  }\n\n  writeSmallInt(pos, value) {\n    this.inner.writeRaw(pos, encodeImmediate(value));\n  }\n\n  writeTrue(pos) {\n    this.inner.writeRaw(pos, 1\n    /* ENCODED_TRUE_HANDLE */\n    );\n  }\n\n  writeFalse(pos) {\n    this.inner.writeRaw(pos, 0\n    /* ENCODED_FALSE_HANDLE */\n    );\n  }\n\n  writeNull(pos) {\n    this.inner.writeRaw(pos, 2\n    /* ENCODED_NULL_HANDLE */\n    );\n  }\n\n  writeUndefined(pos) {\n    this.inner.writeRaw(pos, 3\n    /* ENCODED_UNDEFINED_HANDLE */\n    );\n  }\n\n  writeRaw(pos, value) {\n    this.inner.writeRaw(pos, value);\n  }\n\n  getJs(pos) {\n    let value = this.inner.getRaw(pos);\n    return this.js[decodeHandle(value)];\n  }\n\n  getSmallInt(pos) {\n    let value = this.inner.getRaw(pos);\n    return decodeImmediate(value);\n  }\n\n  get(pos) {\n    let value = this.inner.getRaw(pos) | 0;\n\n    if (isHandle(value)) {\n      return this.js[decodeHandle(value)];\n    } else {\n      return decodeImmediate(value);\n    }\n  }\n\n  reset() {\n    this.inner.reset();\n    this.js.length = 0;\n  }\n\n  get length() {\n    return this.inner.len();\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    let stack = new InnerStack();\n\n    for (let i = 0; i < snapshot.length; i++) {\n      let value = snapshot[i];\n\n      if (typeof value === 'number' && isSmallInt(value)) {\n        stack.writeRaw(i, encodeImmediate(value));\n      } else if (value === true) {\n        stack.writeTrue(i);\n      } else if (value === false) {\n        stack.writeFalse(i);\n      } else if (value === null) {\n        stack.writeNull(i);\n      } else if (value === undefined) {\n        stack.writeUndefined(i);\n      } else {\n        stack.writeJs(i, value);\n      }\n    }\n\n    return new this(stack, initializeRegistersWithSP(snapshot.length - 1));\n  }\n\n  pushJs(value) {\n    this.stack.writeJs(++this[REGISTERS][$sp], value);\n  }\n\n  pushSmallInt(value) {\n    this.stack.writeSmallInt(++this[REGISTERS][$sp], value);\n  }\n\n  pushTrue() {\n    this.stack.writeTrue(++this[REGISTERS][$sp]);\n  }\n\n  pushFalse() {\n    this.stack.writeFalse(++this[REGISTERS][$sp]);\n  }\n\n  pushNull() {\n    this.stack.writeNull(++this[REGISTERS][$sp]);\n  }\n\n  pushUndefined() {\n    this.stack.writeUndefined(++this[REGISTERS][$sp]);\n  }\n\n  pushRaw(value) {\n    this.stack.writeRaw(++this[REGISTERS][$sp], value);\n  }\n\n  dup(position = this[REGISTERS][$sp]) {\n    this.stack.copy(position, ++this[REGISTERS][$sp]);\n  }\n\n  copy(from, to) {\n    this.stack.copy(from, to);\n  }\n\n  popJs(n = 1) {\n    let top = this.stack.getJs(this[REGISTERS][$sp]);\n    this[REGISTERS][$sp] -= n;\n    return top;\n  }\n\n  popSmallInt(n = 1) {\n    let top = this.stack.getSmallInt(this[REGISTERS][$sp]);\n    this[REGISTERS][$sp] -= n;\n    return top;\n  }\n\n  pop(n = 1) {\n    let top = this.stack.get(this[REGISTERS][$sp]);\n    this[REGISTERS][$sp] -= n;\n    return top;\n  }\n\n  peekJs(offset = 0) {\n    return this.stack.getJs(this[REGISTERS][$sp] - offset);\n  }\n\n  peekSmallInt(offset = 0) {\n    return this.stack.getSmallInt(this[REGISTERS][$sp] - offset);\n  }\n\n  peek(offset = 0) {\n    return this.stack.get(this[REGISTERS][$sp] - offset);\n  }\n\n  get(offset, base = this[REGISTERS][$fp]) {\n    return this.stack.get(base + offset);\n  }\n\n  set(value, offset, base = this[REGISTERS][$fp]) {\n    this.stack.writeJs(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.reset();\n  }\n\n  toArray() {\n    console.log(this[REGISTERS]);\n    return this.stack.slice(this[REGISTERS][$fp], this[REGISTERS][$sp] + 1);\n  }\n\n}\n\nvar _a$3, _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) {\n    this.runtime = runtime;\n    this.elementStack = elementStack;\n    this[_a$3] = 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    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.pushJs(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  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      dynamicScope: this.dynamicScope(),\n      scope: this.scope(),\n      stack: this.stack.capture(args)\n    };\n  }\n\n  beginCacheGroup() {\n    let opcodes = this.updating();\n    let guard = new JumpIfNotModifiedOpcode(opcodes.length);\n    opcodes.push(guard);\n    this[STACKS].cache.push(guard);\n  }\n\n  commitCacheGroup() {\n    let opcodes = this.updating();\n    let guard = this[STACKS].cache.pop();\n    let startIndex = guard.index;\n    let tag = combineFromIndex(opcodes, startIndex);\n    opcodes.push(new DidModifyOpcode(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(iterableRef, {\n    key,\n    value,\n    memo\n  }) {\n    let {\n      stack\n    } = this;\n    let valueRef = iterableRef.childRefFor(key, value);\n    let memoRef = iterableRef.childRefFor(key, memo);\n    stack.pushJs(valueRef);\n    stack.pushJs(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(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 iterableRef = this.stack.peekJs();\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    let updating = this.updating();\n    let parent = updating[updating.length - 1];\n    parent.didInitializeChildren();\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) {\n    let scope = ScopeImpl.sized(size);\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  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 (initialize) initialize(this);\n    let result;\n\n    try {\n      while (true) {\n        result = this.next();\n        if (result.done) break;\n      }\n    } finally {\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      }\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.popJs());\n    }\n  }\n\n}\n\n_a$3 = STACKS, _b = DESTROYABLE_STACK;\n\nfunction vmState(pc, scope = ScopeImpl.root(UNDEFINED_REFERENCE, 0), dynamicScope) {\n  return {\n    pc,\n    scope,\n    dynamicScope,\n    stack: []\n  };\n}\n\nclass AotVM extends VM {\n  static empty(runtime, {\n    handle,\n    treeBuilder,\n    dynamicScope\n  }) {\n    let vm = initAOT(runtime, vmState(runtime.program.heap.getaddr(handle), ScopeImpl.root(UNDEFINED_REFERENCE, 0), dynamicScope), treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n\n  static initial(runtime, {\n    handle,\n    self,\n    treeBuilder,\n    dynamicScope\n  }) {\n    let scopeSize = runtime.program.heap.scopesizeof(handle);\n    let scope = ScopeImpl.root(self, scopeSize);\n    let pc = runtime.program.heap.getaddr(handle);\n    let state = vmState(pc, scope, dynamicScope);\n    let vm = initAOT(runtime, state, treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n\n  capture(args, pc = this[INNER_VM].fetchRegister($pc)) {\n    return new ResumableVMStateImpl(this.captureState(args, pc), initAOT);\n  }\n\n}\n\nfunction initAOT(runtime, state, builder) {\n  return new AotVM(runtime, state, builder);\n}\n\nfunction initJIT(context) {\n  return (runtime, state, builder) => new JitVM(runtime, state, builder, context);\n}\n\nclass JitVM extends VM {\n  constructor(runtime, state, elementStack, context) {\n    super(runtime, state, elementStack);\n    this.context = context;\n    this.resume = initJIT(this.context);\n  }\n\n  static initial(runtime, context, {\n    handle,\n    self,\n    dynamicScope,\n    treeBuilder\n  }) {\n    let scopeSize = runtime.program.heap.scopesizeof(handle);\n    let scope = ScopeImpl.root(self, scopeSize);\n    let state = vmState(runtime.program.heap.getaddr(handle), scope, dynamicScope);\n    let vm = initJIT(context)(runtime, state, treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n\n  static empty(runtime, {\n    handle,\n    treeBuilder,\n    dynamicScope\n  }, context) {\n    let vm = initJIT(context)(runtime, vmState(runtime.program.heap.getaddr(handle), ScopeImpl.root(UNDEFINED_REFERENCE, 0), dynamicScope), treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n\n  capture(args, pc = this[INNER_VM].fetchRegister($pc)) {\n    return new ResumableVMStateImpl(this.captureState(args, pc), this.resume);\n  }\n\n  compile(block) {\n    let handle = unwrapHandle(block.compile(this.context));\n    return handle;\n  }\n\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    return renderSync(this.vm.runtime.env, this);\n  }\n\n}\n\nfunction renderSync(env, iterator) {\n  try {\n    env.begin();\n    let iteratorResult;\n\n    do {\n      iteratorResult = iterator.next();\n    } while (!iteratorResult.done);\n\n    return iteratorResult.value;\n  } finally {\n    env.commit();\n  }\n}\n\nfunction renderAotMain(runtime, self, treeBuilder, handle, dynamicScope = new DefaultDynamicScope()) {\n  let vm = AotVM.initial(runtime, {\n    self,\n    dynamicScope,\n    treeBuilder,\n    handle\n  });\n  return new TemplateIteratorImpl(vm);\n}\n\nfunction renderAot(runtime, handle, cursor, self = UNDEFINED_REFERENCE) {\n  let treeBuilder = NewElementBuilder.forInitialRender(runtime.env, cursor);\n  let dynamicScope = new DefaultDynamicScope();\n  let vm = AotVM.initial(runtime, {\n    self,\n    dynamicScope,\n    treeBuilder,\n    handle\n  });\n  return new TemplateIteratorImpl(vm);\n}\n\nfunction renderJitMain(runtime, context, self, treeBuilder, handle, dynamicScope = new DefaultDynamicScope()) {\n  let vm = JitVM.initial(runtime, context, {\n    self,\n    dynamicScope,\n    treeBuilder,\n    handle\n  });\n  return new TemplateIteratorImpl(vm);\n}\n\nfunction renderInvocation(vm, invocation, 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  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.pushNull();\n  }\n\n  vm.stack.pushNull(); // For each argument, push its backing reference on to the stack\n\n  argList.forEach(([, reference]) => {\n    vm.stack.pushJs(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); // Needed for the Op.Main opcode: arguments, component invocation object, and\n  // component definition.\n\n  vm.stack.pushJs(vm[ARGS]);\n  vm.stack.pushJs(invocation);\n  vm.stack.pushJs(definition);\n  return new TemplateIteratorImpl(vm);\n}\n\nfunction renderAotComponent(runtime, treeBuilder, main, name, args = {}, dynamicScope = new DefaultDynamicScope()) {\n  let vm = AotVM.empty(runtime, {\n    treeBuilder,\n    handle: main,\n    dynamicScope\n  });\n  const definition = resolveComponent(vm.runtime.resolver, name);\n  const {\n    manager,\n    state\n  } = definition;\n  const capabilities = capabilityFlagsFrom(manager.getCapabilities(state));\n  let invocation;\n\n  if (hasStaticLayoutCapability(capabilities, manager)) {\n    invocation = manager.getAotStaticLayout(state, vm.runtime.resolver);\n  } else {\n    throw new Error('Cannot invoke components with dynamic layouts as a root component.');\n  }\n\n  return renderInvocation(vm, invocation, definition, args);\n}\n\nfunction renderJitComponent(runtime, treeBuilder, context, main, name, args = {}, dynamicScope = new DefaultDynamicScope()) {\n  let vm = JitVM.empty(runtime, {\n    treeBuilder,\n    handle: main,\n    dynamicScope\n  }, context);\n  const definition = resolveComponent(vm.runtime.resolver, name);\n  const {\n    manager,\n    state\n  } = definition;\n  const capabilities = capabilityFlagsFrom(manager.getCapabilities(state));\n  let invocation;\n\n  if (hasStaticLayoutCapability(capabilities, manager)) {\n    let layout = manager.getJitStaticLayout(state, vm.runtime.resolver);\n    let handle = unwrapHandle(layout.compile(context));\n\n    if (Array.isArray(handle)) {\n      let error = handle[0];\n      throw new Error(`Compile Error: ${error.problem} ${error.span.start}..${error.span.end} :: TODO (thread better)`);\n    }\n\n    invocation = {\n      handle,\n      symbolTable: layout.symbolTable\n    };\n  } else {\n    throw new Error('Cannot invoke components with dynamic layouts as a root component.');\n  }\n\n  return renderInvocation(vm, invocation, definition, args);\n}\n\nconst SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\n\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\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}\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 (isComment(node) && isSerializationFirstNode(node)) {\n        break;\n      }\n\n      node = node.nextSibling;\n    }\n\n    this.candidate = node;\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 = getBlockDepth(current);\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) && getBlockDepth(candidate) === 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) && getBlockDepth(candidate) === 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) && getBlockDepth(nextSibling) === 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 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\nexport { clear, ConcreteBounds, CursorImpl, capabilityFlagsFrom, hasCapability, resetDebuggerCallback, setDebuggerCallback, CurriedComponentDefinition, curry, isCurriedComponentDefinition, DEFAULT_CAPABILITIES, MINIMAL_CAPABILITIES, helper$1 as DOMChanges, DOMChangesImpl as IDOMChanges, DOMTreeConstruction, isWhitespace, normalizeProperty, DefaultDynamicScope, AotRuntime, JitRuntime, EnvironmentImpl, ScopeImpl, inTransaction, getDynamicVar, ConditionalReference, NULL_REFERENCE, PrimitiveReference, UNDEFINED_REFERENCE, renderAot, renderAotComponent, renderAotMain, renderJitComponent, renderJitMain, renderSync, UpdatingVM, VM as LowLevelVM, EMPTY_ARGS, CapturedArgumentsImpl, CapturedNamedArgumentsImpl, CapturedPositionalArgumentsImpl, DynamicAttribute, dynamicAttribute, SimpleDynamicAttribute, clientBuilder, NewElementBuilder, UpdatableBlockImpl, RemoteLiveBlock, isSerializationFirstNode, RehydrateBuilder, rehydrationBuilder, SERIALIZATION_FIRST_NODE_STRING, destroy, registerDestructor, unregisterDestructor, associateDestroyableChild, isDestroying, isDestroyed, setScheduleDestroy, setScheduleDestroyed, enableDestroyableTracking, assertDestroyablesDestroyed, destroyChildren as _destroyChildren, scheduleDestroy as _scheduleDestroy, scheduleDestroyed as _scheduleDestroyed, SimpleComponentManager, TEMPLATE_ONLY_COMPONENT };","import { DEBUG } from '@glimmer/env';\nconst EMPTY_ARRAY = Object.freeze([]); // import Logger from './logger';\n// let alreadyWarned = false;\n\nfunction debugAssert(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}\n\nfunction deprecate(desc) {\n  console.warn(`DEPRECATION: ${desc}`);\n}\n\nlet GUID = 0;\n\nfunction initializeGuid(object) {\n  return object._guid = ++GUID;\n}\n\nfunction ensureGuid(object) {\n  return object._guid || initializeGuid(object);\n}\n\nfunction dict() {\n  return Object.create(null);\n}\n\nfunction isDict(u) {\n  return u !== null && u !== undefined;\n}\n\nfunction isObject(u) {\n  return typeof u === 'object' && u !== null;\n}\n\nclass DictSet {\n  constructor() {\n    this.dict = dict();\n  }\n\n  add(obj) {\n    if (typeof obj === 'string') this.dict[obj] = obj;else this.dict[ensureGuid(obj)] = obj;\n    return this;\n  }\n\n  delete(obj) {\n    if (typeof obj === 'string') delete this.dict[obj];else if (obj._guid) delete this.dict[obj._guid];\n  }\n\n}\n\nclass StackImpl {\n  constructor() {\n    this.stack = [];\n    this.current = null;\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%';\n\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\n\nconst {\n  keys: objKeys\n} = Object;\n\nfunction assign(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\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}\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\nfunction keys(obj) {\n  return Object.keys(obj);\n}\n\nfunction unwrap(val) {\n  if (val === null || val === undefined) throw new Error(`Expected value to be present`);\n  return val;\n}\n\nfunction expect(val, message) {\n  if (val === null || val === undefined) throw new Error(message);\n  return val;\n}\n\nfunction unreachable(message = 'unreachable') {\n  return new Error(message);\n}\n\nfunction exhausted(value) {\n  throw new Error(`Exhausted ${value}`);\n}\n\nconst tuple = (...args) => args;\n\nconst symbol = typeof Symbol !== 'undefined' ? Symbol : key => `__${key}${Math.floor(Math.random() * Date.now())}__`;\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}\n\nfunction isNonPrimitiveHandle(value) {\n  return value > 3\n  /* ENCODED_UNDEFINED_HANDLE */\n  ;\n}\n\nfunction constants(...values) {\n  return [false, true, null, undefined, ...values];\n}\n\nfunction isSmallInt(value) {\n  return value % 1 === 0 && value <= 536870911\n  /* MAX_INT */\n  && value >= -536870912\n  /* MIN_INT */\n  ;\n}\n\nfunction encodeNegative(num) {\n  return num & -536870913\n  /* SIGN_BIT */\n  ;\n}\n\nfunction decodeNegative(num) {\n  return num | ~-536870913\n  /* SIGN_BIT */\n  ;\n}\n\nfunction encodePositive(num) {\n  return ~num;\n}\n\nfunction decodePositive(num) {\n  return ~num;\n}\n\nfunction encodeHandle(num) {\n  return num;\n}\n\nfunction decodeHandle(num) {\n  return num;\n}\n\nfunction encodeImmediate(num) {\n  num |= 0;\n  return num < 0 ? encodeNegative(num) : encodePositive(num);\n}\n\nfunction decodeImmediate(num) {\n  num |= 0;\n  return num > -536870913\n  /* SIGN_BIT */\n  ? decodePositive(num) : decodeNegative(num);\n} // Warm\n\n\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}\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}\n\nfunction extractHandle(handle) {\n  if (typeof handle === 'number') {\n    return handle;\n  } else {\n    return handle.handle;\n  }\n}\n\nfunction isOkHandle(handle) {\n  return typeof handle === 'number';\n}\n\nfunction isErrHandle(handle) {\n  return typeof handle === 'number';\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 && 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  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;\nlet beginTestSteps;\nlet endTestSteps;\nlet verifySteps;\nlet logStep;\n\nfunction assertNever(value, desc = 'unexpected unreachable branch') {\n  console.log('unreachable', value);\n  console.trace(`${desc} :: ${JSON.stringify(value)} (${value})`);\n}\n\nexport { assertNever, EMPTY_ARRAY, debugAssert as assert, deprecate, dict, DictSet, isDict, isObject, StackImpl as Stack, ensureGuid, initializeGuid, isSerializationFirstNode, SERIALIZATION_FIRST_NODE_STRING, assign, fillNulls, values, debugToString$1 as debugToString, beginTestSteps, endTestSteps, logStep, verifySteps, clearElement, keys, unwrap, expect, unreachable, exhausted, tuple, symbol, strip, isHandle, isNonPrimitiveHandle, constants, isSmallInt, encodeNegative, decodeNegative, encodePositive, decodePositive, encodeHandle, decodeHandle, encodeImmediate, decodeImmediate, unwrapHandle, unwrapTemplate, extractHandle, isOkHandle, isErrHandle };","import { DEBUG } from '@glimmer/env'; // 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 : key => `__${key}${Math.floor(Math.random() * Date.now())}__`;\nconst symbolFor = typeof Symbol !== 'undefined' ? Symbol.for : key => `__GLIMMER_VALIDATOR_SYMBOL_FOR_${key}`;\n\nfunction getGlobal() {\n  // eslint-disable-next-line node/no-unsupported-features/es-builtins\n  if (typeof globalThis !== 'undefined') return globalThis;\n  if (typeof self !== 'undefined') return self;\n  if (typeof window !== 'undefined') return window;\n  if (typeof global !== 'undefined') return global;\n  throw new Error('unable to locate global object');\n}\n\nlet runInAutotrackingTransaction;\nlet deprecateMutationsInAutotrackingTransaction;\nlet setAutotrackingTransactionEnv;\nlet assertTagNotConsumed;\nlet markTagAsConsumed;\n\nif (DEBUG) {\n  let DEPRECATE_IN_AUTOTRACKING_TRANSACTION = false;\n  let AUTOTRACKING_TRANSACTION = null;\n  let debuggingContexts = []; /////////\n\n  let TRANSACTION_ENV = {\n    assert(message) {\n      throw new Error(message);\n    },\n\n    deprecate(message) {\n      console.warn(message);\n    },\n\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  setAutotrackingTransactionEnv = env => Object.assign(TRANSACTION_ENV, env);\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  runInAutotrackingTransaction = (fn, debuggingContext) => {\n    let previousDeprecateState = DEPRECATE_IN_AUTOTRACKING_TRANSACTION;\n    let previousTransactionState = AUTOTRACKING_TRANSACTION;\n    DEPRECATE_IN_AUTOTRACKING_TRANSACTION = false;\n\n    if (previousTransactionState === null) {\n      // if there was no transaction start it. Otherwise, the transaction already exists.\n      AUTOTRACKING_TRANSACTION = new WeakMap();\n    }\n\n    if (debuggingContext) {\n      debuggingContexts.unshift(debuggingContext);\n    }\n\n    try {\n      fn();\n    } finally {\n      if (debuggingContext) {\n        debuggingContexts.shift();\n      }\n\n      DEPRECATE_IN_AUTOTRACKING_TRANSACTION = previousDeprecateState;\n      AUTOTRACKING_TRANSACTION = previousTransactionState;\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  deprecateMutationsInAutotrackingTransaction = fn => {\n    let previousDeprecateState = DEPRECATE_IN_AUTOTRACKING_TRANSACTION;\n    DEPRECATE_IN_AUTOTRACKING_TRANSACTION = true;\n\n    try {\n      fn();\n    } finally {\n      DEPRECATE_IN_AUTOTRACKING_TRANSACTION = previousDeprecateState;\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 makeAutotrackingErrorMessage = (sourceData, obj, keyName) => {\n    let message = [TRANSACTION_ENV.debugMessage(obj, keyName && String(keyName))];\n\n    if (sourceData.context) {\n      message.push(`\\`${String(keyName)}\\` was first used:\\n\\n${sourceData.context}`);\n    }\n\n    message.push(`Stack trace for the update:`);\n    return message.join('\\n\\n');\n  };\n\n  markTagAsConsumed = _tag => {\n    if (!AUTOTRACKING_TRANSACTION || AUTOTRACKING_TRANSACTION.has(_tag)) return;\n    AUTOTRACKING_TRANSACTION.set(_tag, {\n      context: debuggingContexts.map(c => c.replace(/^/gm, '  ').replace(/^ /, '-')).join('\\n\\n')\n    }); // 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, forceHardError = false) => {\n    if (AUTOTRACKING_TRANSACTION === null) return;\n    let sourceData = AUTOTRACKING_TRANSACTION.get(tag);\n    if (!sourceData) return;\n\n    if (DEPRECATE_IN_AUTOTRACKING_TRANSACTION && !forceHardError) {\n      TRANSACTION_ENV.deprecate(makeAutotrackingErrorMessage(sourceData, obj, keyName));\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        TRANSACTION_ENV.assert(makeAutotrackingErrorMessage(sourceData, 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;\n\nfunction bump() {\n  $REVISION++;\n} //////////\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\n\nfunction validateTag(tag, snapshot) {\n  return snapshot >= tag[COMPUTE]();\n}\n\nconst TYPE = symbol('TAG_TYPE');\nlet ALLOW_CYCLES;\n\nif (DEBUG) {\n  ALLOW_CYCLES = new WeakMap();\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  [COMPUTE]() {\n    let {\n      lastChecked\n    } = this;\n\n    if (this.isUpdating === true) {\n      if (DEBUG && !ALLOW_CYCLES.has(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) {\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) {\n      // Usually by this point, we've already asserted with better error information,\n      // but this is our last line of defense.\n      assertTagNotConsumed(tag);\n    }\n\n    tag.revision = ++$REVISION;\n  }\n\n}\n\nconst dirtyTag = MonomorphicTagImpl.dirtyTag;\nconst updateTag = MonomorphicTagImpl.updateTag; //////////\n\nfunction createTag() {\n  return new MonomorphicTagImpl(0\n  /* Dirtyable */\n  );\n}\n\nfunction createUpdatableTag() {\n  return new MonomorphicTagImpl(1\n  /* Updatable */\n  );\n} //////////\n\n\nconst CONSTANT_TAG = new MonomorphicTagImpl(3\n/* Constant */\n);\n\nfunction isConstTagged({\n  tag\n}) {\n  return tag === CONSTANT_TAG;\n}\n\nfunction isConstTag(tag) {\n  return tag === CONSTANT_TAG;\n} //////////\n\n\nclass VolatileTag {\n  [COMPUTE]() {\n    return VOLATILE;\n  }\n\n}\n\nconst VOLATILE_TAG = new VolatileTag(); //////////\n\nclass CurrentTag {\n  [COMPUTE]() {\n    return $REVISION;\n  }\n\n}\n\nconst CURRENT_TAG = new CurrentTag(); //////////\n\nfunction combine(tags) {\n  let optimized = [];\n\n  for (let i = 0, l = tags.length; i < l; i++) {\n    let tag = tags[i];\n    if (tag === CONSTANT_TAG) continue;\n    optimized.push(tag);\n  }\n\n  return createCombinatorTag(optimized);\n}\n\nfunction createCombinatorTag(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} // Warm\n\n\nlet tag1 = createUpdatableTag();\nlet tag2 = createUpdatableTag();\nlet tag3 = createUpdatableTag();\nvalueForTag(tag1);\ndirtyTag(tag1);\nvalueForTag(tag1);\nupdateTag(tag1, combine([tag2, tag3]));\nvalueForTag(tag1);\ndirtyTag(tag2);\nvalueForTag(tag1);\ndirtyTag(tag3);\nvalueForTag(tag1);\nupdateTag(tag1, tag3);\nvalueForTag(tag1);\ndirtyTag(tag3);\nvalueForTag(tag1);\n\nlet propertyDidChange = function () {};\n\nfunction setPropertyDidChange(cb) {\n  propertyDidChange = cb;\n}\n\nfunction isObjectLike(u) {\n  return typeof u === 'object' && u !== null || typeof u === 'function';\n}\n\nconst TRACKED_TAGS = new WeakMap();\n\nfunction dirtyTagFor(obj, key) {\n  if (DEBUG && !isObjectLike(obj)) {\n    throw new Error(`BUG: Can't update a tag for a primitive`);\n  }\n\n  let tags = TRACKED_TAGS.get(obj); // 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      assertTagNotConsumed(propertyTag, obj, key);\n    }\n\n    dirtyTag(propertyTag);\n    propertyDidChange();\n  }\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}\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 * An object that that tracks @tracked properties that were consumed.\n */\n\n\nclass Tracker {\n  constructor() {\n    this.tags = new Set();\n    this.last = null;\n  }\n\n  add(tag) {\n    this.tags.add(tag);\n\n    if (DEBUG) {\n      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 = [];\n\nfunction beginTrackFrame() {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = new Tracker();\n}\n\nfunction endTrackFrame() {\n  let current = CURRENT_TRACKER;\n\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();\n  return current.combine();\n}\n\nfunction isTracking() {\n  return CURRENT_TRACKER !== null;\n}\n\nfunction consumeTag(tag) {\n  if (CURRENT_TRACKER !== null) {\n    CURRENT_TRACKER.add(tag);\n  }\n} //////////\n\n\nconst CACHE_KEY = symbol('CACHE_KEY');\n\nfunction memo(callback, debuggingContext) {\n  let cache = createCache(callback, debuggingContext);\n\n  let memoized = () => getValue(cache);\n\n  memoized[CACHE_KEY] = cache;\n  return memoized;\n}\n\nfunction isConstMemo(fn) {\n  return isMemo(fn) ? isConst(fn[CACHE_KEY]) : false;\n}\n\nfunction isMemo(fn) {\n  return CACHE_KEY in fn;\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');\n\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}\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      if (DEBUG) {\n        runInAutotrackingTransaction(() => cache[LAST_VALUE] = fn(), cache[DEBUG_LABEL]);\n      } else {\n        cache[LAST_VALUE] = fn();\n      }\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}\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, debuggingContext) {\n  beginTrackFrame();\n  let tag;\n\n  try {\n    if (DEBUG) {\n      runInAutotrackingTransaction(callback, debuggingContext);\n    } else {\n      callback();\n    }\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\n\nfunction untrack(callback) {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = null;\n\n  try {\n    callback();\n  } finally {\n    CURRENT_TRACKER = OPEN_TRACK_FRAMES.pop();\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    if (DEBUG) {\n      assertTagNotConsumed(tagFor(self, key), self, key, true);\n    }\n\n    dirtyTagFor(self, key);\n    values.set(self, value);\n  }\n\n  return {\n    getter,\n    setter\n  };\n}\n\nconst globalObj = getGlobal();\nconst GLIMMER_VALIDATOR_REGISTRATION = symbolFor('GLIMMER_VALIDATOR_REGISTRATION');\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;\nexport { ALLOW_CYCLES, bump, combine, COMPUTE, CONSTANT_TAG, CONSTANT, createCombinatorTag, createTag, createUpdatableTag, CurrentTag, CURRENT_TAG, dirtyTag, INITIAL, isConstTagged, isConstTag, updateTag, validateTag, valueForTag, VolatileTag, VOLATILE_TAG, VOLATILE, dirtyTagFor, tagFor, tagMetaFor, setPropertyDidChange, beginTrackFrame, endTrackFrame, consumeTag, isTracking, track, memo, untrack, isConstMemo, createCache, isConst, getValue, trackedData, setAutotrackingTransactionEnv, runInAutotrackingTransaction, deprecateMutationsInAutotrackingTransaction };","/* This file is generated by build/debug.js */\nfunction isMachineOp(value) {\n  return value >= 0 && value <= 15;\n}\n\nfunction isOp(value) {\n  return value >= 16;\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\n\n\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;\n\nfunction isLowLevelRegister(register) {\n  return register <= $sp;\n}\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 };","function is(variant) {\n  return function (value) {\n    return Array.isArray(value) && value[0] === variant;\n  };\n} // Statements\n\n\nconst isFlushElement = is(12\n/* FlushElement */\n);\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}\n\nfunction isArgument(val) {\n  return val[0] === 21\n  /* StaticArg */\n  || val[0] === 20\n  /* DynamicArg */\n  ;\n}\n\nfunction isHelper(expr) {\n  return Array.isArray(expr) && expr[0] === 30\n  /* Call */\n  ;\n} // Expressions\n\n\nconst isGet = is(32\n/* GetSymbol */\n);\nexport { is, isFlushElement, isAttribute, isArgument, isHelper, isGet };","const EMPTY_ATTRS = [];\n\nfunction indexOfAttribute(attributes, namespaceURI, localName) {\n  for (let i = 0; i < attributes.length; i++) {\n    const attr = attributes[i];\n\n    if (attr.namespaceURI === namespaceURI && attr.localName === localName) {\n      return i;\n    }\n  }\n\n  return -1;\n}\n\nfunction adjustAttrName(namespaceURI, localName) {\n  return namespaceURI === \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  ? localName.toLowerCase() : localName;\n}\n\nfunction getAttribute(attributes, namespaceURI, localName) {\n  const index = indexOfAttribute(attributes, namespaceURI, localName);\n  return index === -1 ? null : attributes[index].value;\n}\n\nfunction removeAttribute(attributes, namespaceURI, localName) {\n  const index = indexOfAttribute(attributes, namespaceURI, localName);\n\n  if (index !== -1) {\n    attributes.splice(index, 1);\n  }\n} // https://dom.spec.whatwg.org/#dom-element-setattributens\n\n\nfunction setAttribute(element, namespaceURI, prefix, localName, value) {\n  if (typeof value !== 'string') {\n    value = '' + value;\n  }\n\n  let {\n    attributes\n  } = element;\n\n  if (attributes === EMPTY_ATTRS) {\n    attributes = element.attributes = [];\n  } else {\n    const index = indexOfAttribute(attributes, namespaceURI, localName);\n\n    if (index !== -1) {\n      attributes[index].value = value;\n      return;\n    }\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\n  get length() {\n    if (this.stale) {\n      this.stale = false;\n      let len = 0;\n      let child = this.node.firstChild;\n\n      for (; child !== null; len++) {\n        this[len] = child;\n        child = child.nextSibling;\n      }\n\n      const oldLen = this._length;\n      this._length = len;\n\n      for (; len < oldLen; len++) {\n        delete this[len];\n      }\n    }\n\n    return this._length;\n  }\n\n  item(index) {\n    return index < this.length ? this[index] : null;\n  }\n\n}\n\nfunction cloneNode(node, deep) {\n  const clone = nodeFrom(node);\n\n  if (deep) {\n    let child = node.firstChild;\n    let nextChild = child;\n\n    while (child !== null) {\n      nextChild = child.nextSibling;\n      clone.appendChild(child.cloneNode(true));\n      child = nextChild;\n    }\n  }\n\n  return clone;\n}\n\nfunction nodeFrom(node) {\n  let namespaceURI;\n\n  if (node.nodeType === 1\n  /* ELEMENT_NODE */\n  ) {\n      namespaceURI = node.namespaceURI;\n    }\n\n  const clone = new SimpleNodeImpl(node.ownerDocument, node.nodeType, node.nodeName, node.nodeValue, namespaceURI);\n\n  if (node.nodeType === 1\n  /* ELEMENT_NODE */\n  ) {\n      clone.attributes = copyAttrs(node.attributes);\n    }\n\n  return clone;\n}\n\nfunction copyAttrs(attrs) {\n  if (attrs === EMPTY_ATTRS) {\n    return EMPTY_ATTRS;\n  }\n\n  const copy = [];\n\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\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}\n\nfunction removeChild(parentNode, oldChild) {\n  invalidate(parentNode);\n  removeBetween(parentNode, oldChild, oldChild.previousSibling, oldChild.nextSibling);\n}\n\nfunction invalidate(parentNode) {\n  const childNodes = parentNode._childNodes;\n\n  if (childNodes !== undefined) {\n    childNodes.stale = true;\n  }\n}\n\nfunction insertBetween(parentNode, newChild, previousSibling, nextSibling) {\n  if (newChild.nodeType === 11\n  /* DOCUMENT_FRAGMENT_NODE */\n  ) {\n      insertFragment(newChild, parentNode, previousSibling, nextSibling);\n      return;\n    }\n\n  if (newChild.parentNode !== null) {\n    removeChild(newChild.parentNode, newChild);\n  }\n\n  newChild.parentNode = parentNode;\n  newChild.previousSibling = previousSibling;\n  newChild.nextSibling = nextSibling;\n\n  if (previousSibling === null) {\n    parentNode.firstChild = newChild;\n  } else {\n    previousSibling.nextSibling = newChild;\n  }\n\n  if (nextSibling === null) {\n    parentNode.lastChild = newChild;\n  } else {\n    nextSibling.previousSibling = newChild;\n  }\n}\n\nfunction removeBetween(parentNode, oldChild, previousSibling, nextSibling) {\n  oldChild.parentNode = null;\n  oldChild.previousSibling = null;\n  oldChild.nextSibling = null;\n\n  if (previousSibling === null) {\n    parentNode.firstChild = nextSibling;\n  } else {\n    previousSibling.nextSibling = nextSibling;\n  }\n\n  if (nextSibling === null) {\n    parentNode.lastChild = previousSibling;\n  } else {\n    nextSibling.previousSibling = previousSibling;\n  }\n}\n\nfunction insertFragment(fragment, parentNode, previousSibling, nextSibling) {\n  const firstChild = fragment.firstChild;\n\n  if (firstChild === null) {\n    return;\n  }\n\n  fragment.firstChild = null;\n  fragment.lastChild = null;\n  let lastChild = firstChild;\n  let newChild = firstChild;\n  firstChild.previousSibling = previousSibling;\n\n  if (previousSibling === null) {\n    parentNode.firstChild = firstChild;\n  } else {\n    previousSibling.nextSibling = firstChild;\n  }\n\n  while (newChild !== null) {\n    newChild.parentNode = parentNode;\n    lastChild = newChild;\n    newChild = newChild.nextSibling;\n  }\n\n  lastChild.nextSibling = nextSibling;\n\n  if (nextSibling === null) {\n    parentNode.lastChild = lastChild;\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\n  if (i !== -1) {\n    prefix = qualifiedName.slice(0, i);\n    localName = qualifiedName.slice(i + 1);\n  }\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\n    this._childNodes = undefined;\n  }\n\n  get tagName() {\n    return this.nodeName;\n  }\n\n  get childNodes() {\n    let children = this._childNodes;\n\n    if (children === undefined) {\n      children = this._childNodes = new ChildNodes(this);\n    }\n\n    return children;\n  }\n\n  cloneNode(deep) {\n    return cloneNode(this, deep === true);\n  }\n\n  appendChild(newChild) {\n    insertBefore(this, newChild, null);\n    return newChild;\n  }\n\n  insertBefore(newChild, refChild) {\n    insertBefore(this, newChild, refChild);\n    return newChild;\n  }\n\n  removeChild(oldChild) {\n    removeChild(this, oldChild);\n    return oldChild;\n  }\n\n  insertAdjacentHTML(position, html) {\n    const raw = new SimpleNodeImpl(this.ownerDocument, -1\n    /* RAW_NODE */\n    , '#raw', html, void 0);\n    let parentNode;\n    let nextSibling;\n\n    switch (position) {\n      case 'beforebegin':\n        parentNode = this.parentNode;\n        nextSibling = this;\n        break;\n\n      case 'afterbegin':\n        parentNode = this;\n        nextSibling = this.firstChild;\n        break;\n\n      case 'beforeend':\n        parentNode = this;\n        nextSibling = null;\n        break;\n\n      case 'afterend':\n        parentNode = this.parentNode;\n        nextSibling = this.nextSibling;\n        break;\n\n      default:\n        throw new Error('invalid position');\n    }\n\n    if (parentNode === null) {\n      throw new Error(`${position} requires a parentNode`);\n    }\n\n    insertBefore(parentNode, raw, nextSibling);\n  }\n\n  getAttribute(name) {\n    const localName = adjustAttrName(this.namespaceURI, name);\n    return getAttribute(this.attributes, null, localName);\n  }\n\n  getAttributeNS(namespaceURI, localName) {\n    return getAttribute(this.attributes, namespaceURI, localName);\n  }\n\n  setAttribute(name, value) {\n    const localName = adjustAttrName(this.namespaceURI, name);\n    setAttribute(this, null, null, localName, value);\n  }\n\n  setAttributeNS(namespaceURI, qualifiedName, value) {\n    const [prefix, localName] = parseQualifiedName(qualifiedName);\n    setAttribute(this, namespaceURI, prefix, localName, value);\n  }\n\n  removeAttribute(name) {\n    const localName = adjustAttrName(this.namespaceURI, name);\n    removeAttribute(this.attributes, null, localName);\n  }\n\n  removeAttributeNS(namespaceURI, localName) {\n    removeAttribute(this.attributes, namespaceURI, localName);\n  }\n\n  get doctype() {\n    return this.firstChild;\n  }\n\n  get documentElement() {\n    return this.lastChild;\n  }\n\n  get head() {\n    return this.documentElement.firstChild;\n  }\n\n  get body() {\n    return this.documentElement.lastChild;\n  }\n\n  createElement(name) {\n    return new SimpleNodeImpl(this, 1\n    /* ELEMENT_NODE */\n    , name.toUpperCase(), null, \"http://www.w3.org/1999/xhtml\"\n    /* HTML */\n    );\n  }\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\"\n    /* HTML */\n    ? qualifiedName.toUpperCase() : qualifiedName; // we don't care to parse the qualified name because we only support HTML documents\n    // which don't support prefixed elements\n\n    return new SimpleNodeImpl(this, 1\n    /* ELEMENT_NODE */\n    , nodeName, null, namespace);\n  }\n\n  createTextNode(text) {\n    return new SimpleNodeImpl(this, 3\n    /* TEXT_NODE */\n    , '#text', text, void 0);\n  }\n\n  createComment(text) {\n    return new SimpleNodeImpl(this, 8\n    /* COMMENT_NODE */\n    , '#comment', text, void 0);\n  }\n  /**\n   * Backwards compat\n   * @deprecated\n   */\n\n\n  createRawHTMLSection(text) {\n    return new SimpleNodeImpl(this, -1\n    /* RAW_NODE */\n    , '#raw', text, void 0);\n  }\n\n  createDocumentFragment() {\n    return new SimpleNodeImpl(this, 11\n    /* DOCUMENT_FRAGMENT_NODE */\n    , '#document-fragment', null, void 0);\n  }\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\n  /* DOCUMENT_NODE */\n  , '#document', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  const doctype = new SimpleNodeImpl(document, 10\n  /* DOCUMENT_TYPE_NODE */\n  , 'html', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  const html = new SimpleNodeImpl(document, 1\n  /* ELEMENT_NODE */\n  , 'HTML', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  const head = new SimpleNodeImpl(document, 1\n  /* ELEMENT_NODE */\n  , 'HEAD', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  const body = new SimpleNodeImpl(document, 1\n  /* ELEMENT_NODE */\n  , 'BODY', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  html.appendChild(head);\n  html.appendChild(body);\n  document.appendChild(doctype);\n  document.appendChild(html);\n  return document;\n}\n\nexport default createHTMLDocument;","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    }\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 * 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","define(\"ember-testing/index\", [\"exports\", \"ember-testing/lib/test\", \"ember-testing/lib/adapters/adapter\", \"ember-testing/lib/setup_for_testing\", \"ember-testing/lib/adapters/qunit\", \"ember-testing/lib/support\", \"ember-testing/lib/ext/application\", \"ember-testing/lib/ext/rsvp\", \"ember-testing/lib/helpers\", \"ember-testing/lib/initializers\"], function (_exports, _test, _adapter, _setup_for_testing, _qunit, _support, _application, _rsvp, _helpers, _initializers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Test\", {\n    enumerable: true,\n    get: function () {\n      return _test.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Adapter\", {\n    enumerable: true,\n    get: function () {\n      return _adapter.default;\n    }\n  });\n  Object.defineProperty(_exports, \"setupForTesting\", {\n    enumerable: true,\n    get: function () {\n      return _setup_for_testing.default;\n    }\n  });\n  Object.defineProperty(_exports, \"QUnitAdapter\", {\n    enumerable: true,\n    get: function () {\n      return _qunit.default;\n    }\n  });\n});\n","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    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, context } from '@ember/-internals/environment';\nimport { IS_NODE, module } from 'node-module';\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 } from '@ember/object';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport { 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';\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, setComponentManager, capabilities, escapeExpression, getTemplates, Helper, helper, htmlSafe, isHTMLSafe, LinkComponent, setTemplates, template, TextField, TextArea, isSerializationFirstNode, setModifierManager, modifierCapabilities, setComponentTemplate, getComponentTemplate } 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 * as runloop 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 from '@ember/component/template-only';\nimport { destroy } from '@glimmer/runtime'; // ****@ember/-internals/environment****\n\nconst Ember = typeof context.imports.Ember === 'object' && context.imports.Ember || {};\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      });\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    });\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// Using _globalsRun here so that mutating the function (adding\n// `next`, `later`, etc to it) is only available in globals builds\n\nEmber.run = runloop._globalsRun;\nEmber.run.backburner = runloop.backburner;\nEmber.run.begin = runloop.begin;\nEmber.run.bind = runloop.bind;\nEmber.run.cancel = runloop.cancel;\nEmber.run.debounce = runloop.debounce;\nEmber.run.end = runloop.end;\nEmber.run.hasScheduledTimers = runloop.hasScheduledTimers;\nEmber.run.join = runloop.join;\nEmber.run.later = runloop.later;\nEmber.run.next = runloop.next;\nEmber.run.once = runloop.once;\nEmber.run.schedule = runloop.schedule;\nEmber.run.scheduleOnce = runloop.scheduleOnce;\nEmber.run.throttle = runloop.throttle;\nEmber.run.cancelTimers = runloop.cancelTimers;\nObject.defineProperty(Ember.run, 'currentRunLoop', {\n  get: runloop.getCurrentRunLoop,\n  enumerable: false\n}); // ****@ember/-internals/metal****\n// Using _globalsComputed here so that mutating the function is only available\n// in globals builds\n\nconst computed = metal._globalsComputed;\nEmber.computed = computed;\nEmber._descriptor = metal.nativeDescDecorator;\nEmber._tracked = metal.tracked;\ncomputed.alias = metal.alias;\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;\n\nif (false\n/* EMBER_CACHE_API */\n) {\n  Ember._createCache = metal.createCache;\n  Ember._cacheGetValue = metal.getValue;\n  Ember._cacheIsConst = metal.isConst;\n}\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\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.TargetActionSupport = TargetActionSupport;\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;\ncomputed.empty = empty;\ncomputed.notEmpty = notEmpty;\ncomputed.none = none;\ncomputed.not = not;\ncomputed.bool = bool;\ncomputed.match = match;\ncomputed.equal = equal;\ncomputed.gt = gt;\ncomputed.gte = gte;\ncomputed.lt = lt;\ncomputed.lte = lte;\ncomputed.oneWay = oneWay;\ncomputed.reads = oneWay;\ncomputed.readOnly = readOnly;\ncomputed.deprecatingAlias = deprecatingAlias;\ncomputed.and = and;\ncomputed.or = or;\ncomputed.sum = sum;\ncomputed.min = min;\ncomputed.max = max;\ncomputed.map = map;\ncomputed.sort = sort;\ncomputed.setDiff = setDiff;\ncomputed.mapBy = mapBy;\ncomputed.filter = filter;\ncomputed.filterBy = filterBy;\ncomputed.uniq = uniq;\ncomputed.uniqBy = uniqBy;\ncomputed.union = union;\ncomputed.intersect = intersect;\ncomputed.collect = collect;\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;\nEmber.Checkbox = Checkbox;\nEmber.TextField = TextField;\nEmber.TextArea = TextArea;\nEmber.LinkComponent = LinkComponent;\nEmber._setComponentManager = setComponentManager;\nEmber._componentManagerCapabilities = capabilities;\nEmber._setModifierManager = setModifierManager;\nEmber._modifierManagerCapabilities = modifierCapabilities;\n\nif (true\n/* EMBER_GLIMMER_SET_COMPONENT_TEMPLATE */\n) {\n  Ember._getComponentTemplate = getComponentTemplate;\n  Ember._setComponentTemplate = setComponentTemplate;\n  Ember._templateOnlyComponent = templateOnlyComponent;\n}\n\nEmber._captureRenderTree = captureRenderTree;\nEmber.Handlebars = {\n  template,\n  Utils: {\n    escapeExpression\n  }\n};\nEmber.HTMLBars = {\n  template\n};\n\nif (ENV.EXTEND_PROTOTYPES.String) {\n  String.prototype.htmlSafe = function () {\n    return htmlSafe(this);\n  };\n}\n\nEmber.String.htmlSafe = htmlSafe;\nEmber.String.isHTMLSafe = isHTMLSafe;\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://emberjs.com/deprecations/v3.x#toc_jquery-apis'\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.TextSupport = views.TextSupport;\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;\n\nif (has('ember-template-compiler')) {\n  require('ember-template-compiler');\n} // do this to ensure that Ember.Test is defined properly on the global\n// if it is present.\n\n\nif (has('ember-testing')) {\n  let testing = require('ember-testing');\n\n  Ember.Test = testing.Test;\n  Ember.Test.Adapter = testing.Adapter;\n  Ember.Test.QUnitAdapter = testing.QUnitAdapter;\n  Ember.setupForTesting = testing.setupForTesting;\n}\n\nrunLoadHooks('Ember');\nexport default Ember;\n\nif (IS_NODE) {\n  module.exports = Ember;\n} else {\n  context.exports.Ember = context.exports.Em = Ember;\n}\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.21.3\";\n","/*global module */\nconst IS_NODE = typeof module === 'object' && typeof module.require === 'function';\nlet exportModule;\nlet exportRequire;\n\nif (IS_NODE) {\n  exportModule = module;\n  exportRequire = module.require;\n} else {\n  exportModule = null;\n  exportRequire = null;\n}\n\nexport { IS_NODE, exportModule as module, exportRequire as require };","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 RouteRecognizer from 'route-recognizer';\n\nconst TransitionAbortedError = (function () {\n    TransitionAbortedError.prototype = Object.create(Error.prototype);\n    TransitionAbortedError.prototype.constructor = TransitionAbortedError;\n    function TransitionAbortedError(message) {\n        let error = Error.call(this, message);\n        this.name = 'TransitionAborted';\n        this.message = message || 'TransitionAborted';\n        if (Error.captureStackTrace) {\n            Error.captureStackTrace(this, TransitionAbortedError);\n        }\n        else {\n            this.stack = error.stack;\n        }\n    }\n    return TransitionAbortedError;\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 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  @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[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 (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\n                .resolve(() => {\n                if (this.isAborted) {\n                    return Promise.reject(false, promiseLabel('Transition aborted - reject'));\n                }\n                return Promise.resolve(true);\n            }, this)\n                .catch((result) => {\n                return Promise.reject(this.router.transitionDidError(result, this));\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 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    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 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    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 (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 new TransitionAbortedError();\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(shouldContinue, transition) {\n        return Promise.resolve(this.routePromise)\n            .then((route) => this.checkForAbort(shouldContinue, route))\n            .then(() => this.runBeforeModelHook(transition))\n            .then(() => this.checkForAbort(shouldContinue, null))\n            .then(() => this.getModel(transition))\n            .then(resolvedModel => this.checkForAbort(shouldContinue, resolvedModel))\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    shouldSupercede(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    checkForAbort(shouldContinue, value) {\n        return Promise.resolve(shouldContinue()).then(function () {\n            // We don't care about shouldContinue's resolve value;\n            // pass along the original value passed to this fn.\n            return value;\n        }, null);\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(_shouldContinue, 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 = undefined;\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\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(shouldContinue, 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        let currentState = this;\n        let wasAborted = false;\n        // The prelude RSVP.resolve() asyncs us into the promise land.\n        return Promise.resolve(null, this.promiseLabel('Start transition'))\n            .then(resolveOneRouteInfo, null, this.promiseLabel('Resolve route'))\n            .catch(handleError, this.promiseLabel('Handle error'));\n        function innerShouldContinue() {\n            return Promise.resolve(shouldContinue(), currentState.promiseLabel('Check if should continue')).catch(function (reason) {\n                // We distinguish between errors that occurred\n                // during resolution (e.g. before\"Model/model/afterModel),\n                // and aborts due to a rejecting promise from shouldContinue().\n                wasAborted = true;\n                return Promise.reject(reason);\n            }, currentState.promiseLabel('Handle abort'));\n        }\n        function handleError(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\n                ? routeInfos.length - 1\n                : transition.resolveIndex;\n            return Promise.reject(new TransitionError(error, currentState.routeInfos[errorHandlerIndex].route, wasAborted, currentState));\n        }\n        function proceed(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            return innerShouldContinue().then(resolveOneRouteInfo, null, currentState.promiseLabel('Resolve route'));\n        }\n        function resolveOneRouteInfo() {\n            if (transition.resolveIndex === currentState.routeInfos.length) {\n                // This is is the only possible\n                // fulfill value of TransitionState#resolve\n                return currentState;\n            }\n            let routeInfo = currentState.routeInfos[transition.resolveIndex];\n            return routeInfo\n                .resolve(innerShouldContinue, transition)\n                .then(proceed, null, currentState.promiseLabel('Proceed'));\n        }\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.shouldSupercede(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        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 hanlder 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.shouldSupercede(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, undefined);\n            this.toReadOnlyInfos(transition, newState);\n            this.setupContexts(newState);\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 (!(e instanceof TransitionAbortedError)) {\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            if (transition && transition.isAborted) {\n                throw new TransitionAbortedError();\n            }\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            if (transition && transition.isAborted) {\n                throw new TransitionAbortedError();\n            }\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 recogHandlers = this.recognizer.handlersFor(targetHandler);\n        let index = 0;\n        for (len = recogHandlers.length; index < len; ++index) {\n            routeInfo = targetRouteInfos[index];\n            if (routeInfo.name === routeName) {\n                break;\n            }\n        }\n        if (index === recogHandlers.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        recogHandlers = recogHandlers.slice(0, index + 1);\n        let intent = new NamedTransitionIntent(this, targetHandler, undefined, contexts);\n        let newState = intent.applyToHandlers(testState, recogHandlers, 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\n  define('jquery', [], vendorModule);\n})();","(function () {\n  /*\n   * This non-standard use of `reopen` and `call` allows the component\n   * base class to be reopened without triggering the\n   * ember.component.reopen deprecation in Ember itself.\n   */\n  Ember.Object.reopen.call(Ember.Component, {\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        since: '3.4.0',\n        until: '4.0.0',\n        url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis',\n        for: 'ember-source'\n      }));\n\n      if (this.element) {\n        return sel ? jQuery(sel, this.element) : jQuery(this.element);\n      }\n    }\n\n  });\n})();","'use strict';\n\n/* globals Ember, define */\n(function(global) {\n  var OWN_CLASSES = new WeakMap();\n  var HAS_CONSTRUCTOR = new WeakMap();\n  var IS_CLASSIC = new WeakMap();\n  var BASE_CLASSES = new WeakMap();\n  var IS_PERMA_CLASSIC = new WeakMap();\n  global.__CLASSIC_HAS_CONSTRUCTOR__ = HAS_CONSTRUCTOR;\n  global.__CLASSIC_OWN_CLASSES__ = OWN_CLASSES;\n\n  IS_PERMA_CLASSIC.set(Ember.Object, true);\n  IS_PERMA_CLASSIC.set(Ember.Component, true);\n\n  IS_PERMA_CLASSIC.set(Ember.ObjectProxy, false);\n  IS_PERMA_CLASSIC.set(Ember.Application, false);\n  IS_PERMA_CLASSIC.set(Ember.Controller, false);\n  IS_PERMA_CLASSIC.set(Ember.Router, false);\n  IS_PERMA_CLASSIC.set(Ember.Route, false);\n  IS_PERMA_CLASSIC.set(Ember.Service, false);\n  IS_PERMA_CLASSIC.set(Ember.Helper, false);\n  IS_PERMA_CLASSIC.set(Ember.Location, false);\n  IS_PERMA_CLASSIC.set(Ember.AutoLocation, false);\n  IS_PERMA_CLASSIC.set(Ember.HashLocation, false);\n  IS_PERMA_CLASSIC.set(Ember.HistoryLocation, false);\n  IS_PERMA_CLASSIC.set(Ember.NoneLocation, false);\n\n  BASE_CLASSES.set(Ember.ObjectProxy, true);\n  BASE_CLASSES.set(Ember.CoreObject, true);\n  BASE_CLASSES.set(Ember.Object, true);\n  BASE_CLASSES.set(Ember.Application, true);\n  BASE_CLASSES.set(Ember.Controller, true);\n  BASE_CLASSES.set(Ember.Router, true);\n  BASE_CLASSES.set(Ember.Route, true);\n  BASE_CLASSES.set(Ember.Service, true);\n  BASE_CLASSES.set(Ember.Helper, true);\n  BASE_CLASSES.set(Ember.Location, true);\n\n  function getClassName(klass) {\n    var klassToString = klass.toString();\n    return klassToString.includes('(unknown)') ? klass.name : klassToString;\n  }\n\n  function findAncestor(klass, predicate) {\n    while (klass !== null && Boolean(klass.prototype)) {\n      if (predicate(klass)) {\n        return klass;\n      }\n\n      klass = Object.getPrototypeOf(klass);\n    }\n\n    return null;\n  }\n\n  Ember.Object.reopenClass({\n    create: function create() {\n      // We can't actually use `new` as an alternative here, but most classes\n      // don't need to be created by users, so no reason to assert in the\n      // general case.\n      var ret = this._super.apply(this, arguments);\n\n      if (OWN_CLASSES.get(this) && !IS_CLASSIC.has(this)) {\n        var permaClassicAncestor = findAncestor(this, function(klass) {\n          return IS_PERMA_CLASSIC.has(klass);\n        });\n\n        if (\n          permaClassicAncestor &&\n          IS_PERMA_CLASSIC.get(permaClassicAncestor)\n        ) {\n          throw new Error(\n            'You defined the class '\n              .concat(getClassName(this), ' that extends from ')\n              .concat(\n                getClassName(permaClassicAncestor),\n                \" using native class syntax, but you didn't mark it with the @classic decorator. All user classes that extend from this class must be marked as @classic, since they use classic features. If you want to remove the @classic decorator, you must remove the base class. For components, you can do this by converting to Glimmer components. For plain classes that extend from EmberObject, you can convert them into plain native classes that do not extend from EmberObject.\\n\\n\" +\n                \"If this class is a base class provided by the framework that you should be allowed to remove @classic from, please open an issue on the classic decorators repo: https://github.com/emberjs/ember-classic-decorator\"\n              )\n          );\n        }\n\n        if (HAS_CONSTRUCTOR.has(this)) {\n          var ancestorWithInit = findAncestor(this, function(klass) {\n            return (\n              klass.prototype.hasOwnProperty('init') || BASE_CLASSES.has(klass)\n            );\n          });\n\n          if (ancestorWithInit !== null && !BASE_CLASSES.has(ancestorWithInit)) {\n            throw new Error(\n              'You defined the class '\n                .concat(\n                  getClassName(this),\n                  \" with a 'constructor' function, but one of its ancestors, \"\n                )\n                .concat(\n                  getClassName(ancestorWithInit),\n                  \", uses the 'init' method. Due to the timing of the constructor and init methods, its not generally safe to use 'constructor' for class setup if the parent class is using 'init'. You can mark \"\n                )\n                .concat(\n                  getClassName(this),\n                  \" with the @classic decorator and safely use 'init', or you can convert the parent class to use native classes, and switch from 'init' to 'constructor' there first.\\n\\n\" +\n                  \"If this error message is not being triggered by your code or code from an addon, but from Ember itself, please file a bug report on the classic decorator repo: https://github.com/emberjs/ember-classic-decorator\"\n                )\n            );\n          }\n        }\n      }\n\n      return ret;\n    },\n    reopen: function reopen() {\n      if (OWN_CLASSES.get(this) && !IS_CLASSIC.has(this)) {\n        throw new Error(\n          'You attempted to use the .reopen() method on the '.concat(\n            getClassName(this),\n            \" class, but it's not a classic class! Redefining classes after they have been defined is generally considered an antipattern.\\n\\n\" +\n            \"If this error message is not being triggered by your code or code from an addon, but from Ember itself, please file a bug report on the classic decorator repo: https://github.com/emberjs/ember-classic-decorator\"\n          )\n        );\n      }\n\n      var ret = this._super.apply(this, arguments);\n\n      return ret;\n    },\n    reopenClass: function reopenClass() {\n      if (OWN_CLASSES.get(this) && !IS_CLASSIC.has(this) && !Ember.Application.detect(this) && !Ember.Router.detect(this)) {\n        throw new Error(\n          'You attempted to use the .reopen() method on the '.concat(\n            getClassName(this),\n            \" class, but it's not a classic class! Redefining classes after they have been defined is generally considered an antipattern. If you were reopening this class to add static class fields or methods, you can now define those with the 'static' keyword instead.\\n\\n\" +\n            \"If this error message is not being triggered by your code or code from an addon, but from Ember itself, please file a bug report on the classic decorator repo: https://github.com/emberjs/ember-classic-decorator\"\n          )\n        );\n      }\n\n      var ret = this._super.apply(this, arguments);\n\n      return ret;\n    },\n  });\n\n  global.__EMBER_CLASSIC_DECORATOR = function classic(target) {\n    IS_CLASSIC.set(target, true);\n    return target;\n  }\n\n  let originalRequire = window.require;\n  let originalRequireEntries = Object.entries(window.require);\n\n  window.require = require = function patchData(moduleName) {\n    var DS, Resolver;\n\n    try {\n      Resolver = originalRequire('ember-resolver').default;\n      DS = originalRequire('ember-data').default;\n    } catch (e) {}\n\n    if (Resolver) {\n      BASE_CLASSES.set(Resolver, true);\n      IS_PERMA_CLASSIC.set(Resolver, false);\n    }\n\n    if (DS) {\n      BASE_CLASSES.set(DS.Store, true);\n      BASE_CLASSES.set(DS.Model, true);\n      BASE_CLASSES.set(DS.Adapter, true);\n      BASE_CLASSES.set(DS.Serializer, true);\n      BASE_CLASSES.set(DS.Transform, true);\n\n      IS_PERMA_CLASSIC.set(DS.Store, false);\n      IS_PERMA_CLASSIC.set(DS.Model, false);\n      IS_PERMA_CLASSIC.set(DS.Adapter, false);\n      IS_PERMA_CLASSIC.set(DS.Serializer, false);\n      IS_PERMA_CLASSIC.set(DS.Transform, false);\n    }\n\n    window.require = require = window.requirejs;\n\n    return window.requirejs(moduleName);\n  }\n\n  originalRequireEntries.forEach(\n    ([key, value]) => (window.require[key] = value)\n  );\n})(window);\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}","/*global __fail__*/\n\n(function(Ember) {\n  /**\n   Helper Methods\n   */\n  function isPlainFunction(test) {\n    return typeof test === 'function' && test.PrototypeMixin === undefined;\n  }\n\n  /**\n   Generic Handler Invocation\n   */\n  var HANDLERS = { };\n\n  function normalizeTest(test) {\n    return isPlainFunction(test) ? test() : test;\n  }\n\n  function registerHandler(type, callback) {\n    var nextHandler = HANDLERS[type] || function() { };\n\n    HANDLERS[type] = function(message, options) {\n      callback(message, options, nextHandler);\n    };\n  }\n\n  function invoke(type, message, test, options) {\n    if (normalizeTest(test)) { return; }\n\n    var handlerForType = HANDLERS[type];\n\n    if (!handlerForType) { return; }\n\n    if (handlerForType) {\n      handlerForType(message, options);\n    }\n  }\n\n\n  /**\n   Replacement Ember.deprecate and Ember.warn handlers\n   */\n\n  var EmberError = Ember.Error;\n  var Logger = Ember.Logger;\n\n  function registerDeprecationHandler(handler) {\n    registerHandler('deprecate', handler);\n  }\n\n  function registerWarnHandler(handler) {\n    registerHandler('warn', handler);\n  }\n\n  function formatMessage(_message, options) {\n    var 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  registerDeprecationHandler(function logDeprecationToConsole(message, options) {\n    var updatedMessage = formatMessage(message, options);\n\n    Logger.warn('DEPRECATION: ' + updatedMessage);\n  });\n\n  registerWarnHandler(function logDeprecationToConsole(message) {\n    Logger.warn('WARNING: ' + message);\n    if ('trace' in Logger) {\n      Logger.trace();\n    }\n  });\n\n  registerDeprecationHandler(function logDeprecationStackTrace(message, options, next) {\n    if (Ember.LOG_STACKTRACE_ON_DEPRECATION) {\n      var stackStr = '';\n      var error, stack;\n\n      // When using new Error, we can't do the arguments check for Chrome. Alternatives are welcome\n      try { __fail__.fail(); } catch (e) { error = e; }\n\n      if (error.stack) {\n        if (error['arguments']) {\n          // Chrome\n          stack = error.stack.replace(/^\\s+at\\s+/gm, '').\n            replace(/^([^\\(]+?)([\\n$])/gm, '{anonymous}($1)$2').\n            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, '').\n            replace(/^\\(/gm, '{anonymous}(').split('\\n');\n        }\n\n        stackStr = '\\n    ' + stack.slice(2).join('\\n    ');\n      }\n\n      var updatedMessage = formatMessage(message, options);\n\n      Logger.warn('DEPRECATION: ' + updatedMessage + stackStr);\n    } else {\n      next(message, options);\n    }\n  });\n\n  registerDeprecationHandler(function raiseOnDeprecation(message, options, next) {\n    if (Ember.ENV.RAISE_ON_DEPRECATION) {\n      var updatedMessage = formatMessage(message);\n\n      throw new EmberError(updatedMessage);\n    } else {\n      next(message, options);\n    }\n  });\n\n  function deprecate(message, test, options) {\n    invoke('deprecate', message, test, options);\n  }\n\n  function warn(message, test, options) {\n    invoke('warn', message, test, options);\n  }\n\n  Ember.Debug = Ember.Debug || {};\n\n  if (!Ember.Debug.registerDeprecationHandler) {\n    Ember.deprecate = deprecate;\n    Ember.warn = warn;\n    Ember.Debug.registerDeprecationHandler = registerDeprecationHandler;\n    Ember.Debug.registerWarnHandler = registerWarnHandler;\n    Ember.Debug._____HANDLERS__DO__NOT__USE__SERIOUSLY__I_WILL_BE_MAD = HANDLERS;\n  }\n})(window.Ember);\n","self.deprecationWorkflow = self.deprecationWorkflow || {};\nself.deprecationWorkflow.config = {\n    workflow: [\n        // remove once ember-drag-drop removes usage of Component#sendAction\n        // https://github.com/mharris717/ember-drag-drop/issues/155\n        {handler: 'silence', matchId: 'ember-component.send-action'},\n\n        // remove once liquid-fire and liquid-wormhole remove uses of `this.$()`\n        {handler: 'silence', matchId: 'ember-views.curly-components.jquery-element'}\n    ]\n};\n","/* globals self */\n\n(function(){\n  self.deprecationWorkflow = self.deprecationWorkflow || {};\n  self.deprecationWorkflow.deprecationLog = {\n    messages: { }\n  };\n\n  function detectWorkflow(config, message, options) {\n    if (!config || !config.workflow) {\n      return;\n    }\n\n    var i, workflow, regex, matcher, idMatcher;\n    for (i=0; i<config.workflow.length; i++) {\n      workflow = config.workflow[i];\n      matcher = workflow.matchMessage;\n      idMatcher = workflow.matchId;\n\n      if (typeof idMatcher === 'string' && options && idMatcher === options.id) {\n        return workflow;\n      } else if (typeof matcher === 'string' && matcher === message) {\n        return workflow;\n      } else if (matcher instanceof RegExp && matcher.exec(message)) {\n        return workflow;\n      }\n    }\n  }\n\n  Ember.Debug.registerDeprecationHandler(function handleDeprecationWorkflow(message, options, next){\n    var config = self.deprecationWorkflow.config || {};\n\n    var matchingWorkflow = detectWorkflow(config, message, options);\n    if (!matchingWorkflow) {\n      if (config && config.throwOnUnhandled) {\n        throw new Error(message);\n      } else {\n        next(message, options);\n      }\n    } else {\n      switch(matchingWorkflow.handler) {\n        case 'silence':\n          // no-op\n          break;\n        case 'log':\n          console.warn('DEPRECATION: ' + message);\n          break;\n        case 'throw':\n          throw new Error(message);\n          break;\n        default:\n          next(message, options);\n          break;\n      }\n    }\n  });\n\n  Ember.Debug.registerDeprecationHandler(function deprecationCollector(message, options, next){\n    var key = options && options.id || message;\n    var matchKey = options && key === options.id ? 'matchId' : 'matchMessage';\n\n    self.deprecationWorkflow.deprecationLog.messages[key] = '    { handler: \"silence\", ' + matchKey + ': ' + JSON.stringify(key) + ' }';\n    next(message, options);\n  });\n\n  var preamble = [\n    'self.deprecationWorkflow = self.deprecationWorkflow || {};',\n    'self.deprecationWorkflow.config = {\\n  workflow: [\\n',\n  ].join('\\n');\n\n  var postamble = [\n    '  ]\\n};'\n  ].join('\\n');\n\n  self.deprecationWorkflow.flushDeprecations = function flushDeprecations() {\n    var messages = self.deprecationWorkflow.deprecationLog.messages;\n    var logs = [];\n\n    for (var message in messages) {\n      logs.push(messages[message]);\n    }\n\n    var deprecations = logs.join(',\\n') + '\\n';\n\n    return preamble + deprecations + postamble;\n  };\n})();\n","Ember.libraries.register('Ember Postcss', '6.0.1');","(function() {\n  define('ember-cli-shims/deprecations', [], function() {\n    var values = {\"ember-application\":{\"default\":[\"@ember/application\"]},\"ember-array\":{\"default\":[\"@ember/array\"]},\"ember-array/mutable\":{\"default\":[\"@ember/array/mutable\"]},\"ember-array/utils\":{\"A\":[\"@ember/array\",\"A\"],\"isEmberArray\":[\"@ember/array\",\"isArray\"],\"wrap\":[\"@ember/array\",\"makeArray\"]},\"ember-component\":{\"default\":[\"@ember/component\"]},\"ember-components/checkbox\":{\"default\":[\"@ember/component/checkbox\"]},\"ember-components/text-area\":{\"default\":[\"@ember/component/text-area\"]},\"ember-components/text-field\":{\"default\":[\"@ember/component/text-field\"]},\"ember-computed\":{\"default\":[\"@ember/object\",\"computed\"],\"alias\":[\"@ember/object/computed\",\"alias\"],\"and\":[\"@ember/object/computed\",\"and\"],\"bool\":[\"@ember/object/computed\",\"bool\"],\"collect\":[\"@ember/object/computed\",\"collect\"],\"deprecatingAlias\":[\"@ember/object/computed\",\"deprecatingAlias\"],\"empty\":[\"@ember/object/computed\",\"empty\"],\"equal\":[\"@ember/object/computed\",\"equal\"],\"filter\":[\"@ember/object/computed\",\"filter\"],\"filterBy\":[\"@ember/object/computed\",\"filterBy\"],\"filterProperty\":[\"@ember/object/computed\",\"filterProperty\"],\"gt\":[\"@ember/object/computed\",\"gt\"],\"gte\":[\"@ember/object/computed\",\"gte\"],\"intersect\":[\"@ember/object/computed\",\"intersect\"],\"lt\":[\"@ember/object/computed\",\"lt\"],\"lte\":[\"@ember/object/computed\",\"lte\"],\"map\":[\"@ember/object/computed\",\"map\"],\"mapBy\":[\"@ember/object/computed\",\"mapBy\"],\"mapProperty\":[\"@ember/object/computed\",\"mapProperty\"],\"match\":[\"@ember/object/computed\",\"match\"],\"max\":[\"@ember/object/computed\",\"max\"],\"min\":[\"@ember/object/computed\",\"min\"],\"none\":[\"@ember/object/computed\",\"none\"],\"not\":[\"@ember/object/computed\",\"not\"],\"notEmpty\":[\"@ember/object/computed\",\"notEmpty\"],\"oneWay\":[\"@ember/object/computed\",\"oneWay\"],\"or\":[\"@ember/object/computed\",\"or\"],\"readOnly\":[\"@ember/object/computed\",\"readOnly\"],\"reads\":[\"@ember/object/computed\",\"reads\"],\"setDiff\":[\"@ember/object/computed\",\"setDiff\"],\"sort\":[\"@ember/object/computed\",\"sort\"],\"sum\":[\"@ember/object/computed\",\"sum\"],\"union\":[\"@ember/object/computed\",\"union\"],\"uniq\":[\"@ember/object/computed\",\"uniq\"]},\"ember-controller\":{\"default\":[\"@ember/controller\"]},\"ember-controller/inject\":{\"default\":[\"@ember/controller\",\"inject\"]},\"ember-controller/proxy\":{\"default\":[\"@ember/array/proxy\"]},\"ember-debug\":{\"inspect\":[\"@ember/debug\",\"inspect\"],\"log\":[\"@ember/debug\",\"debug\"],\"run\":[\"@ember/debug\",\"runInDebug\"],\"warn\":[\"@ember/debug\",\"warn\"]},\"ember-debug/container-debug-adapter\":{\"default\":[\"@ember/debug/container-debug-adapter\"]},\"ember-debug/data-adapter\":{\"default\":[\"@ember/debug/data-adapter\"]},\"ember-deprecations\":{\"deprecate\":[\"@ember/debug\",\"deprecate\"],\"deprecateFunc\":[\"@ember/debug\",\"deprecateFunc\"]},\"ember-enumerable\":{\"default\":[\"@ember/enumerable\"]},\"ember-evented\":{\"default\":[\"@ember/object/evented\"]},\"ember-evented/on\":{\"default\":[\"@ember/object/evented\",\"on\"]},\"ember-globals-resolver\":{\"default\":[\"@ember/application/globals-resolver\"]},\"ember-helper\":{\"default\":[\"@ember/component/helper\"],\"helper\":[\"@ember/component/helper\",\"helper\"]},\"ember-instrumentation\":{\"instrument\":[\"@ember/instrumentation\",\"instrument\"],\"reset\":[\"@ember/instrumentation\",\"reset\"],\"subscribe\":[\"@ember/instrumentation\",\"subscribe\"],\"unsubscribe\":[\"@ember/instrumentation\",\"unsubscribe\"]},\"ember-locations/hash\":{\"default\":[\"@ember/routing/hash-location\"]},\"ember-locations/history\":{\"default\":[\"@ember/routing/history-location\"]},\"ember-locations/none\":{\"default\":[\"@ember/routing/none-location\"]},\"ember-map\":{\"default\":[\"@ember/map\"],\"withDefault\":[\"@ember/map/with-default\"]},\"ember-metal/events\":{\"addListener\":[\"@ember/object/events\",\"addListener\"],\"removeListener\":[\"@ember/object/events\",\"removeListener\"],\"send\":[\"@ember/object/events\",\"sendEvent\"]},\"ember-metal/get\":{\"default\":[\"@ember/object\",\"get\"],\"getProperties\":[\"@ember/object\",\"getProperties\"]},\"ember-metal/mixin\":{\"default\":[\"@ember/object/mixin\"]},\"ember-metal/observer\":{\"default\":[\"@ember/object\",\"observer\"],\"addObserver\":[\"@ember/object/observers\",\"addObserver\"],\"removeObserver\":[\"@ember/object/observers\",\"removeObserver\"]},\"ember-metal/on-load\":{\"default\":[\"@ember/application\",\"onLoad\"],\"run\":[\"@ember/application\",\"runLoadHooks\"]},\"ember-metal/set\":{\"default\":[\"@ember/object\",\"set\"],\"setProperties\":[\"@ember/object\",\"setProperties\"],\"trySet\":[\"@ember/object\",\"trySet\"]},\"ember-metal/utils\":{\"aliasMethod\":[\"@ember/object\",\"aliasMethod\"],\"assert\":[\"@ember/debug\",\"assert\"],\"cacheFor\":[\"@ember/object/internals\",\"cacheFor\"],\"copy\":[\"@ember/object/internals\",\"copy\"],\"guidFor\":[\"@ember/object/internals\",\"guidFor\"]},\"ember-object\":{\"default\":[\"@ember/object\"]},\"ember-owner/get\":{\"default\":[\"@ember/application\",\"getOwner\"]},\"ember-owner/set\":{\"default\":[\"@ember/application\",\"setOwner\"]},\"ember-platform\":{\"assign\":[\"@ember/polyfills\",\"assign\"],\"create\":[\"@ember/polyfills\",\"create\"],\"hasAccessors\":[\"@ember/polyfills\",\"hasPropertyAccessors\"],\"keys\":[\"@ember/polyfills\",\"keys\"]},\"ember-route\":{\"default\":[\"@ember/routing/route\"]},\"ember-router\":{\"default\":[\"@ember/routing/router\"]},\"ember-runloop\":{\"default\":[\"@ember/runloop\",\"run\"],\"begin\":[\"@ember/runloop\",\"begin\"],\"bind\":[\"@ember/runloop\",\"bind\"],\"cancel\":[\"@ember/runloop\",\"cancel\"],\"debounce\":[\"@ember/runloop\",\"debounce\"],\"end\":[\"@ember/runloop\",\"end\"],\"join\":[\"@ember/runloop\",\"join\"],\"later\":[\"@ember/runloop\",\"later\"],\"next\":[\"@ember/runloop\",\"next\"],\"once\":[\"@ember/runloop\",\"once\"],\"schedule\":[\"@ember/runloop\",\"schedule\"],\"scheduleOnce\":[\"@ember/runloop\",\"scheduleOnce\"],\"throttle\":[\"@ember/runloop\",\"throttle\"]},\"ember-service\":{\"default\":[\"@ember/service\"]},\"ember-service/inject\":{\"default\":[\"@ember/service\",\"inject\"]},\"ember-string\":{\"camelize\":[\"@ember/string\",\"camelize\"],\"capitalize\":[\"@ember/string\",\"capitalize\"],\"classify\":[\"@ember/string\",\"classify\"],\"dasherize\":[\"@ember/string\",\"dasherize\"],\"decamelize\":[\"@ember/string\",\"decamelize\"],\"fmt\":[\"@ember/string\",\"fmt\"],\"htmlSafe\":[\"@ember/string\",\"htmlSafe\"],\"loc\":[\"@ember/string\",\"loc\"],\"underscore\":[\"@ember/string\",\"underscore\"],\"w\":[\"@ember/string\",\"w\"]},\"ember-test/adapter\":{\"default\":[\"@ember/test/adapter\"]},\"ember-utils\":{\"isBlank\":[\"@ember/utils\",\"isBlank\"],\"isEmpty\":[\"@ember/utils\",\"isEmpty\"],\"isNone\":[\"@ember/utils\",\"isNone\"],\"isPresent\":[\"@ember/utils\",\"isPresent\"],\"tryInvoke\":[\"@ember/utils\",\"tryInvoke\"],\"typeOf\":[\"@ember/utils\",\"typeOf\"]}};\n    \n    Object.defineProperty(values, '__esModule', {\n      value: true\n    });\n\n    return values;\n  });\n})();","(function() {\n/* globals define, Ember, jQuery */\n\n  function processEmberShims() {\n    var shims = {\n      'ember-application': {\n        'default': Ember.Application\n      },\n      'ember-array': {\n        'default': Ember.Array\n      },\n      'ember-array/mutable': {\n        'default': Ember.MutableArray\n      },\n      'ember-array/utils': {\n        'A':            Ember.A,\n        'isEmberArray': Ember.isArray,\n        'wrap':         Ember.makeArray\n      },\n      'ember-component': {\n        'default': Ember.Component\n      },\n      'ember-components/checkbox': {\n        'default': Ember.Checkbox\n      },\n      'ember-components/text-area': {\n        'default': Ember.TextArea\n      },\n      'ember-components/text-field': {\n        'default': Ember.TextField\n      },\n      'ember-controller': {\n        'default': Ember.Controller\n      },\n      'ember-controller/inject': {\n        'default': Ember.inject.controller\n      },\n      'ember-controller/proxy': {\n        'default': Ember.ArrayProxy\n      },\n      'ember-controllers/sortable': {\n        'default': Ember.SortableMixin\n      },\n      'ember-debug': {\n        'log':      Ember.debug,\n        'inspect':  Ember.inspect,\n        'run':      Ember.runInDebug,\n        'warn':     Ember.warn\n      },\n      'ember-debug/container-debug-adapter': {\n        'default': Ember.ContainerDebugAdapter\n      },\n      'ember-debug/data-adapter': {\n        'default': Ember.DataAdapter\n      },\n      'ember-deprecations': {\n        'deprecate':      Ember.deprecate,\n        'deprecateFunc':  Ember.deprecateFunc\n      },\n      'ember-enumerable': {\n        'default': Ember.Enumerable\n      },\n      'ember-evented': {\n        'default': Ember.Evented\n      },\n      'ember-evented/on': {\n        'default': Ember.on\n      },\n      'ember-globals-resolver': {\n        'default': Ember.DefaultResolver\n      },\n      'ember-helper': {\n        'default':  Ember.Helper,\n        'helper':   Ember.Helper && Ember.Helper.helper\n      },\n      'ember-instrumentation': {\n        'instrument':   Ember.Instrumentation.instrument,\n        'reset':        Ember.Instrumentation.reset,\n        'subscribe':    Ember.Instrumentation.subscribe,\n        'unsubscribe':  Ember.Instrumentation.unsubscribe\n      },\n      'ember-locations/hash': {\n        'default': Ember.HashLocation\n      },\n      'ember-locations/history': {\n        'default': Ember.HistoryLocation\n      },\n      'ember-locations/none': {\n        'default': Ember.NoneLocation\n      },\n      'ember-map': {\n        'default':      Ember.Map,\n        'withDefault':  Ember.MapWithDefault\n      },\n      'ember-metal/destroy': {\n        'default': Ember.destroy\n      },\n      'ember-metal/events': {\n        'addListener':    Ember.addListener,\n        'removeListener': Ember.removeListener,\n        'send':           Ember.sendEvent\n      },\n      'ember-metal/get': {\n        'default': Ember.get,\n        'getProperties': Ember.getProperties\n      },\n      'ember-metal/mixin': {\n        'default': Ember.Mixin\n      },\n      'ember-metal/observer': {\n        'default':        Ember.observer,\n        'addObserver':    Ember.addObserver,\n        'removeObserver': Ember.removeObserver\n      },\n      'ember-metal/on-load': {\n        'default':  Ember.onLoad,\n        'run':      Ember.runLoadHooks\n      },\n      'ember-metal/set': {\n        'default':        Ember.set,\n        'setProperties':  Ember.setProperties,\n        'trySet':         Ember.trySet\n      },\n      'ember-metal/utils': {\n        'aliasMethod':  Ember.aliasMethod,\n        'assert':       Ember.assert,\n        'cacheFor':     Ember.cacheFor,\n        'copy':         Ember.copy,\n        'guidFor':      Ember.guidFor\n      },\n      'ember-object': {\n        'default': Ember.Object\n      },\n      'ember-owner/get': {\n        'default': Ember.getOwner\n      },\n      'ember-owner/set': {\n        'default': Ember.setOwner\n      },\n      'ember-platform': {\n        'assign':         Ember.assign || Ember.merge,\n        'create':         Ember.create,\n        'defineProperty': Ember.platform.defineProperty,\n        'hasAccessors':   Ember.platform.hasPropertyAccessors,\n        'keys':           Ember.keys\n      },\n      'ember-route': {\n        'default': Ember.Route\n      },\n      'ember-router': {\n        'default': Ember.Router\n      },\n      'ember-runloop': {\n        'default':      Ember.run,\n        'begin':        Ember.run.begin,\n        'bind':         Ember.run.bind,\n        'cancel':       Ember.run.cancel,\n        'debounce':     Ember.run.debounce,\n        'end':          Ember.run.end,\n        'join':         Ember.run.join,\n        'later':        Ember.run.later,\n        'next':         Ember.run.next,\n        'once':         Ember.run.once,\n        'schedule':     Ember.run.schedule,\n        'scheduleOnce': Ember.run.scheduleOnce,\n        'throttle':     Ember.run.throttle\n      },\n      'ember-service': {\n        'default': Ember.Service\n      },\n      'ember-service/inject': {\n        'default': Ember.inject.service\n      },\n      'ember-set/ordered': {\n        'default': Ember.OrderedSet\n      },\n      'ember-string': {\n        'camelize':     Ember.String.camelize,\n        'capitalize':   Ember.String.capitalize,\n        'classify':     Ember.String.classify,\n        'dasherize':    Ember.String.dasherize,\n        'decamelize':   Ember.String.decamelize,\n        'fmt':          Ember.String.fmt,\n        'htmlSafe':     Ember.String.htmlSafe,\n        'loc':          Ember.String.loc,\n        'underscore':   Ember.String.underscore,\n        'w':            Ember.String.w\n      },\n      'ember-utils': {\n        'isBlank':    Ember.isBlank,\n        'isEmpty':    Ember.isEmpty,\n        'isNone':     Ember.isNone,\n        'isPresent':  Ember.isPresent,\n        'tryInvoke':  Ember.tryInvoke,\n        'typeOf':     Ember.typeOf\n      }\n    };\n\n    // populate `ember/computed` named exports\n    shims['ember-computed'] = {\n      'default': Ember.computed\n    };\n    var computedMacros = [\n      \"empty\",\"notEmpty\", \"none\", \"not\", \"bool\", \"match\",\n      \"equal\", \"gt\", \"gte\", \"lt\", \"lte\", \"alias\", \"oneWay\",\n      \"reads\", \"readOnly\", \"deprecatingAlias\",\n      \"and\", \"or\", \"collect\", \"sum\", \"min\", \"max\",\n      \"map\", \"sort\", \"setDiff\", \"mapBy\", \"mapProperty\",\n      \"filter\", \"filterBy\", \"filterProperty\", \"uniq\",\n      \"union\", \"intersect\"\n    ];\n    for (var i = 0, l = computedMacros.length; i < l; i++) {\n      var key = computedMacros[i];\n      shims['ember-computed'][key] = Ember.computed[key];\n    }\n\n    for (var moduleName in shims) {\n      generateModule(moduleName, shims[moduleName], true);\n    }\n  }\n\n  function processTestShims() {\n    if (Ember.Test) {\n      var testShims = {\n        'ember-test': {\n          'default': Ember.Test\n        },\n        'ember-test/adapter': {\n          'default': Ember.Test.Adapter\n        },\n        'ember-test/qunit-adapter': {\n          'default': Ember.Test.QUnitAdapter\n        }\n      };\n\n      for (var moduleName in testShims) {\n        generateModule(moduleName, testShims[moduleName]);\n      }\n    }\n  }\n\n  function generateModule(name, values, deprecated) {\n    define(name, ['ember-cli-shims/deprecations'], function(deprecations) {\n      'use strict';\n\n      if (deprecated) {\n        var moduleDeprecations = deprecations[name];\n\n        var message = 'Importing from the `' + name + '` module has been deprecated. ';\n        if (moduleDeprecations) {\n          message += 'Please use the new module imports:\\n\\n';\n          Object.keys(moduleDeprecations).forEach(function(key) {\n            var newImport = moduleDeprecations[key];\n            if (newImport[1]) {\n              message += 'import { ' + newImport[1] + ' } from \\'' + newImport[0] + '\\'\\n';\n            } else {\n              var importName = Ember.String.classify(newImport[0].split('/').pop());\n              message += 'import ' + importName + ' from \\'' + newImport[0] + '\\'\\n';\n            }\n          });\n          message += '\\n';\n\n        } else {\n          message += 'Please use globals instead.';\n        }\n\n        Ember.deprecate(message, false, {\n          id: 'ember-cli-shims.deprecated-shims',\n          until: '3.0.0',\n          url: 'https://github.com/emberjs/rfcs/blob/master/text/0176-javascript-module-api.md'\n        });\n      }\n\n      Object.defineProperty(values, '__esModule', {\n        value: true\n      });\n\n      return values;\n    });\n  }\n\n  generateModule('ember', { default: Ember });\n  processEmberShims();\n  processTestShims();\n  generateModule('jquery', { 'default': self.jQuery });\n  generateModule('rsvp', { 'default': Ember.RSVP });\n})();\n","(function() {\n  /* workaround for:\n  https://github.com/feross/buffer/issues/140 and\n  https://github.com/aws/aws-sdk-js/pull/1596\n   */\n  window.global = window;\n})();\n","(() => {\n  'use strict';\n\n  if (true) {\n    // @ts-ignore\n    const glimmerRuntime = Ember.__loader.require('@glimmer/runtime'); // Ember.destroy is already set by default, ignoring it here\n\n\n    Ember._registerDestructor = glimmerRuntime.registerDestructor;\n    Ember._unregisterDestructor = glimmerRuntime.unregisterDestructor;\n    Ember._associateDestroyableChild = glimmerRuntime.associateDestroyableChild;\n    Ember._isDestroying = glimmerRuntime.isDestroying;\n    Ember._isDestroyed = glimmerRuntime.isDestroyed; // on 3.20.0-beta.4 through 3.20.2 (estimated) there is an issue with the upstream\n    // `assertDestroyablesDestroyed` method that triggers the assertion in cases that it\n    // should not; in order to allow code bases to function on those specific Ember versions\n    // (including our own test suite) we detect and do nothing\n    //\n    // See https://github.com/glimmerjs/glimmer-vm/pull/1119\n\n    if (true) {\n      Ember._assertDestroyablesDestroyed = glimmerRuntime.assertDestroyablesDestroyed;\n      Ember._enableDestroyableTracking = glimmerRuntime.enableDestroyableTracking;\n    } else {\n      Ember._assertDestroyablesDestroyed = function () {};\n\n      Ember._enableDestroyableTracking = function () {};\n    }\n  } else {\n    const Meta = true ? Ember.__loader.require('@ember/-internals/meta/lib/meta').Meta : Ember.__loader.require('ember-meta/lib/meta').Meta;\n    let isTesting = false;\n    let DESTRUCTORS = new WeakMap();\n    let DESTROYABLE_PARENTS = new WeakMap();\n    const DESTROYABLE_CHILDREN = new WeakMap();\n    /**\n     * Tears down the meta on an object so that it can be garbage collected.\n     * Multiple calls will have no effect.\n     *\n     * On Ember < 3.16.4 this just calls `meta.destroy`\n     * On Ember >= 3.16.4 this calls setSourceDestroying and schedules setSourceDestroyed + `meta.destroy`\n     *\n     * @param {Object} obj  the object to destroy\n     * @return {void}\n     */\n\n    const _upstreamDestroy = Ember.destroy;\n\n    function getDestructors(destroyable) {\n      if (!DESTRUCTORS.has(destroyable)) {\n        DESTRUCTORS.set(destroyable, new Set());\n      }\n\n      return DESTRUCTORS.get(destroyable);\n    }\n\n    function getDestroyableChildren(destroyable) {\n      if (!DESTROYABLE_CHILDREN.has(destroyable)) {\n        DESTROYABLE_CHILDREN.set(destroyable, new Set());\n      }\n\n      return DESTROYABLE_CHILDREN.get(destroyable);\n    }\n\n    function isDestroying(destroyable) {\n      return Ember.meta(destroyable).isSourceDestroying();\n    }\n\n    function isDestroyed(destroyable) {\n      return Ember.meta(destroyable).isSourceDestroyed();\n    }\n\n    function assertNotDestroyed(destroyable) {\n      (true && !(!isDestroyed(destroyable)) && Ember.assert(`'${destroyable}' was already destroyed.`, !isDestroyed(destroyable)));\n      (true && !(!isDestroying(destroyable)) && Ember.assert(`'${destroyable}' is already being destroyed.`, !isDestroying(destroyable)));\n    }\n\n    function associateDestroyableChild(parent, child) {\n      if (true\n      /* DEBUG */\n      ) assertNotDestroyed(parent);\n      if (true\n      /* DEBUG */\n      ) assertNotDestroyed(child);\n      (true && !(!DESTROYABLE_PARENTS.has(child)) && Ember.assert(`'${child}' is already a child of '${parent}'.`, !DESTROYABLE_PARENTS.has(child)));\n      DESTROYABLE_PARENTS.set(child, parent);\n      getDestroyableChildren(parent).add(child);\n      return child;\n    }\n\n    function unregisterDestructor(destroyable, destructor) {\n      if (true\n      /* DEBUG */\n      ) assertNotDestroyed(destroyable);\n      const destructors = getDestructors(destroyable);\n      (true && !(destructors.has(destructor)) && Ember.assert(`'${destructor}' is not registered with '${destroyable}'.`, destructors.has(destructor)));\n      destructors.delete(destructor);\n    }\n\n    function registerDestructor(destroyable, destructor) {\n      if (true\n      /* DEBUG */\n      ) assertNotDestroyed(destroyable);\n      const destructors = getDestructors(destroyable);\n      (true && !(!destructors.has(destructor)) && Ember.assert(`'${destructor}' is already registered with '${destroyable}'.`, !destructors.has(destructor)));\n      destructors.add(destructor);\n      return destructor;\n    }\n\n    function destroy(destroyable) {\n      if (isDestroying(destroyable) || isDestroyed(destroyable)) return;\n\n      if (true) {\n        // Ember.destroy calls setSourceDestroying (which runs runDestructors) and schedules setSourceDestroyed\n        _upstreamDestroy(destroyable);\n\n        return;\n      }\n\n      const m = Ember.meta(destroyable);\n      m.setSourceDestroying(); // This calls `runDestructors`\n    }\n\n    const RUNNING = new WeakSet();\n\n    function runDestructors(destroyable) {\n      if (RUNNING.has(destroyable)) return;\n      RUNNING.add(destroyable);\n      const m = Ember.meta(destroyable);\n\n      for (const child of getDestroyableChildren(destroyable)) destroy(child);\n\n      for (const destructor of getDestructors(destroyable)) {\n        Ember.run.schedule('actions', undefined, destructor, destroyable);\n      }\n\n      Ember.run.schedule('destroy', () => {\n        if (!true) {\n          // between Ember 2.18 and 3.16.4 Ember.destroy\n          _upstreamDestroy(destroyable);\n\n          m.setSourceDestroyed();\n        }\n\n        DESTRUCTORS.delete(destroyable);\n        DESTROYABLE_PARENTS.delete(destroyable);\n      });\n    }\n\n    function enableDestroyableTracking() {\n      DESTRUCTORS = new Map();\n      DESTROYABLE_PARENTS = new Map();\n      isTesting = true;\n    }\n\n    function 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      const destructors = DESTRUCTORS;\n      const children = DESTROYABLE_PARENTS;\n      isTesting = false;\n      DESTRUCTORS = new WeakMap();\n      DESTROYABLE_PARENTS = new WeakMap();\n\n      if (destructors.size > 0 || children.size > 0) {\n        const error = new Error(`Some destroyables were not destroyed during this test`);\n        Object.defineProperty(error, 'destroyables', {\n          get() {\n            return [...new Set([...destructors.keys(), ...children.keys()])];\n          }\n\n        });\n        throw error;\n      }\n    }\n\n    const {\n      setSourceDestroying\n    } = Meta.prototype;\n\n    Meta.prototype.setSourceDestroying = function () {\n      setSourceDestroying.call(this);\n      runDestructors(this.source);\n    };\n\n    const callWillDestroy = instance => instance.willDestroy(); // would prefer a WeakSet here but not available on IE11\n\n\n    const willDestroyRegistered = new WeakMap();\n\n    Ember.CoreObject.prototype.init = function destroyablesPolyfill_init() {\n      if (!willDestroyRegistered.has(this)) {\n        registerDestructor(this, callWillDestroy);\n        willDestroyRegistered.set(this, true);\n      }\n    };\n\n    Ember.CoreObject.prototype.destroy = function destroyablesPolyfill_destroy() {\n      destroy(this);\n      return this;\n    };\n\n    Ember.destroy = destroy;\n    Ember._registerDestructor = registerDestructor;\n    Ember._unregisterDestructor = unregisterDestructor;\n    Ember._associateDestroyableChild = associateDestroyableChild;\n    Ember._isDestroying = isDestroying;\n    Ember._isDestroyed = isDestroyed;\n    Ember._assertDestroyablesDestroyed = assertDestroyablesDestroyed;\n    Ember._enableDestroyableTracking = enableDestroyableTracking;\n  }\n})();","if (typeof FastBoot === 'undefined') {\n      var preferNative = true;\n      (function (originalGlobal) {\n  define('fetch', ['exports'], function (exports) {\n    'use strict';\n\n    var Ember = originalGlobal.Ember;\n    var Promise = Ember.RSVP.Promise;\n    var supportProps = ['FormData', 'FileReader', 'Blob', 'URLSearchParams', 'Symbol', 'ArrayBuffer'];\n    var polyfillProps = ['fetch', 'Headers', 'Request', 'Response', 'AbortController'];\n    var combinedProps = supportProps;\n\n    if (preferNative) {\n      combinedProps = supportProps.concat(polyfillProps);\n    }\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    }); // shadow github/fetch global object\n    // https://github.com/github/fetch/blob/v3.4.0/fetch.js\n\n    var globalThis = exports; // shadow mo/abortcontroller-polyfill global object\n    // https://github.com/mo/abortcontroller-polyfill/blob/v1.4.0/src/abortcontroller-polyfill.js\n\n    var self = 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\n    var pending = 0;\n\n    function decrement(result) {\n      pending--;\n      return result;\n    }\n\n    if (Ember.Test) {\n      Ember.Test.registerWaiter(function () {\n        return pending === 0;\n      });\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\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    }","Ember.libraries.register('Ember Simple Auth', '3.1.0');","/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */\n;(function(root) {\n\n\t// Detect free variables `exports`.\n\tvar freeExports = typeof exports == 'object' && exports;\n\n\t// Detect free variable `module`.\n\tvar freeModule = typeof module == 'object' && module &&\n\t\tmodule.exports == freeExports && module;\n\n\t// Detect free variable `global`, from Node.js or Browserified code, and use\n\t// it as `root`.\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {\n\t\troot = freeGlobal;\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar InvalidCharacterError = function(message) {\n\t\tthis.message = message;\n\t};\n\tInvalidCharacterError.prototype = new Error;\n\tInvalidCharacterError.prototype.name = 'InvalidCharacterError';\n\n\tvar error = function(message) {\n\t\t// Note: the error messages used throughout this file match those used by\n\t\t// the native `atob`/`btoa` implementation in Chromium.\n\t\tthrow new InvalidCharacterError(message);\n\t};\n\n\tvar TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\t// http://whatwg.org/html/common-microsyntaxes.html#space-character\n\tvar REGEX_SPACE_CHARACTERS = /[\\t\\n\\f\\r ]/g;\n\n\t// `decode` is designed to be fully compatible with `atob` as described in the\n\t// HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob\n\t// The optimized base64-decoding algorithm used is based on @atk’s excellent\n\t// implementation. https://gist.github.com/atk/1020396\n\tvar decode = function(input) {\n\t\tinput = String(input)\n\t\t\t.replace(REGEX_SPACE_CHARACTERS, '');\n\t\tvar length = input.length;\n\t\tif (length % 4 == 0) {\n\t\t\tinput = input.replace(/==?$/, '');\n\t\t\tlength = input.length;\n\t\t}\n\t\tif (\n\t\t\tlength % 4 == 1 ||\n\t\t\t// http://whatwg.org/C#alphanumeric-ascii-characters\n\t\t\t/[^+a-zA-Z0-9/]/.test(input)\n\t\t) {\n\t\t\terror(\n\t\t\t\t'Invalid character: the string to be decoded is not correctly encoded.'\n\t\t\t);\n\t\t}\n\t\tvar bitCounter = 0;\n\t\tvar bitStorage;\n\t\tvar buffer;\n\t\tvar output = '';\n\t\tvar position = -1;\n\t\twhile (++position < length) {\n\t\t\tbuffer = TABLE.indexOf(input.charAt(position));\n\t\t\tbitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer;\n\t\t\t// Unless this is the first of a group of 4 characters…\n\t\t\tif (bitCounter++ % 4) {\n\t\t\t\t// …convert the first 8 bits to a single ASCII character.\n\t\t\t\toutput += String.fromCharCode(\n\t\t\t\t\t0xFF & bitStorage >> (-2 * bitCounter & 6)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t};\n\n\t// `encode` is designed to be fully compatible with `btoa` as described in the\n\t// HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa\n\tvar encode = function(input) {\n\t\tinput = String(input);\n\t\tif (/[^\\0-\\xFF]/.test(input)) {\n\t\t\t// Note: no need to special-case astral symbols here, as surrogates are\n\t\t\t// matched, and the input is supposed to only contain ASCII anyway.\n\t\t\terror(\n\t\t\t\t'The string to be encoded contains characters outside of the ' +\n\t\t\t\t'Latin1 range.'\n\t\t\t);\n\t\t}\n\t\tvar padding = input.length % 3;\n\t\tvar output = '';\n\t\tvar position = -1;\n\t\tvar a;\n\t\tvar b;\n\t\tvar c;\n\t\tvar d;\n\t\tvar buffer;\n\t\t// Make sure any padding is handled outside of the loop.\n\t\tvar length = input.length - padding;\n\n\t\twhile (++position < length) {\n\t\t\t// Read three bytes, i.e. 24 bits.\n\t\t\ta = input.charCodeAt(position) << 16;\n\t\t\tb = input.charCodeAt(++position) << 8;\n\t\t\tc = input.charCodeAt(++position);\n\t\t\tbuffer = a + b + c;\n\t\t\t// Turn the 24 bits into four chunks of 6 bits each, and append the\n\t\t\t// matching character for each of them to the output.\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 18 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer >> 12 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer >> 6 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer & 0x3F)\n\t\t\t);\n\t\t}\n\n\t\tif (padding == 2) {\n\t\t\ta = input.charCodeAt(position) << 8;\n\t\t\tb = input.charCodeAt(++position);\n\t\t\tbuffer = a + b;\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 10) +\n\t\t\t\tTABLE.charAt((buffer >> 4) & 0x3F) +\n\t\t\t\tTABLE.charAt((buffer << 2) & 0x3F) +\n\t\t\t\t'='\n\t\t\t);\n\t\t} else if (padding == 1) {\n\t\t\tbuffer = input.charCodeAt(position);\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 2) +\n\t\t\t\tTABLE.charAt((buffer << 4) & 0x3F) +\n\t\t\t\t'=='\n\t\t\t);\n\t\t}\n\n\t\treturn output;\n\t};\n\n\tvar base64 = {\n\t\t'encode': encode,\n\t\t'decode': decode,\n\t\t'version': '0.1.0'\n\t};\n\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttypeof define == 'function' &&\n\t\ttypeof define.amd == 'object' &&\n\t\tdefine.amd\n\t) {\n\t\tdefine(function() {\n\t\t\treturn base64;\n\t\t});\n\t}\telse if (freeExports && !freeExports.nodeType) {\n\t\tif (freeModule) { // in Node.js or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = base64;\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (var key in base64) {\n\t\t\t\tbase64.hasOwnProperty(key) && (freeExports[key] = base64[key]);\n\t\t\t}\n\t\t}\n\t} else { // in Rhino or a web browser\n\t\troot.base64 = base64;\n\t}\n\n}(this));\n","(function(define){\n/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.16.1\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(global.Popper = factory());\n}(this, (function () { 'use strict';\n\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';\n\nvar timeoutDuration = function () {\n  var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];\n  for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {\n    if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {\n      return 1;\n    }\n  }\n  return 0;\n}();\n\nfunction microtaskDebounce(fn) {\n  var called = false;\n  return function () {\n    if (called) {\n      return;\n    }\n    called = true;\n    window.Promise.resolve().then(function () {\n      called = false;\n      fn();\n    });\n  };\n}\n\nfunction taskDebounce(fn) {\n  var scheduled = false;\n  return function () {\n    if (!scheduled) {\n      scheduled = true;\n      setTimeout(function () {\n        scheduled = false;\n        fn();\n      }, timeoutDuration);\n    }\n  };\n}\n\nvar supportsMicroTasks = isBrowser && window.Promise;\n\n/**\n* Create a debounced version of a method, that's asynchronously deferred\n* but called in the minimum time possible.\n*\n* @method\n* @memberof Popper.Utils\n* @argument {Function} fn\n* @returns {Function}\n*/\nvar debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;\n\n/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\nfunction isFunction(functionToCheck) {\n  var getType = {};\n  return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n}\n\n/**\n * Get CSS computed property of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Eement} element\n * @argument {String} property\n */\nfunction getStyleComputedProperty(element, property) {\n  if (element.nodeType !== 1) {\n    return [];\n  }\n  // NOTE: 1 DOM access here\n  var window = element.ownerDocument.defaultView;\n  var css = window.getComputedStyle(element, null);\n  return property ? css[property] : css;\n}\n\n/**\n * Returns the parentNode or the host of the element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} parent\n */\nfunction getParentNode(element) {\n  if (element.nodeName === 'HTML') {\n    return element;\n  }\n  return element.parentNode || element.host;\n}\n\n/**\n * Returns the scrolling parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} scroll parent\n */\nfunction getScrollParent(element) {\n  // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n  if (!element) {\n    return document.body;\n  }\n\n  switch (element.nodeName) {\n    case 'HTML':\n    case 'BODY':\n      return element.ownerDocument.body;\n    case '#document':\n      return element.body;\n  }\n\n  // Firefox want us to check `-x` and `-y` variations as well\n\n  var _getStyleComputedProp = getStyleComputedProperty(element),\n      overflow = _getStyleComputedProp.overflow,\n      overflowX = _getStyleComputedProp.overflowX,\n      overflowY = _getStyleComputedProp.overflowY;\n\n  if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {\n    return element;\n  }\n\n  return getScrollParent(getParentNode(element));\n}\n\n/**\n * Returns the reference node of the reference object, or the reference object itself.\n * @method\n * @memberof Popper.Utils\n * @param {Element|Object} reference - the reference element (the popper will be relative to this)\n * @returns {Element} parent\n */\nfunction getReferenceNode(reference) {\n  return reference && reference.referenceNode ? reference.referenceNode : reference;\n}\n\nvar isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);\nvar isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);\n\n/**\n * Determines if the browser is Internet Explorer\n * @method\n * @memberof Popper.Utils\n * @param {Number} version to check\n * @returns {Boolean} isIE\n */\nfunction isIE(version) {\n  if (version === 11) {\n    return isIE11;\n  }\n  if (version === 10) {\n    return isIE10;\n  }\n  return isIE11 || isIE10;\n}\n\n/**\n * Returns the offset parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} offset parent\n */\nfunction getOffsetParent(element) {\n  if (!element) {\n    return document.documentElement;\n  }\n\n  var noOffsetParent = isIE(10) ? document.body : null;\n\n  // NOTE: 1 DOM access here\n  var offsetParent = element.offsetParent || null;\n  // Skip hidden elements which don't have an offsetParent\n  while (offsetParent === noOffsetParent && element.nextElementSibling) {\n    offsetParent = (element = element.nextElementSibling).offsetParent;\n  }\n\n  var nodeName = offsetParent && offsetParent.nodeName;\n\n  if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n    return element ? element.ownerDocument.documentElement : document.documentElement;\n  }\n\n  // .offsetParent will return the closest TH, TD or TABLE in case\n  // no offsetParent is present, I hate this job...\n  if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {\n    return getOffsetParent(offsetParent);\n  }\n\n  return offsetParent;\n}\n\nfunction isOffsetContainer(element) {\n  var nodeName = element.nodeName;\n\n  if (nodeName === 'BODY') {\n    return false;\n  }\n  return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;\n}\n\n/**\n * Finds the root node (document, shadowDOM root) of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} node\n * @returns {Element} root node\n */\nfunction getRoot(node) {\n  if (node.parentNode !== null) {\n    return getRoot(node.parentNode);\n  }\n\n  return node;\n}\n\n/**\n * Finds the offset parent common to the two provided nodes\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element1\n * @argument {Element} element2\n * @returns {Element} common offset parent\n */\nfunction findCommonOffsetParent(element1, element2) {\n  // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n  if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n    return document.documentElement;\n  }\n\n  // Here we make sure to give as \"start\" the element that comes first in the DOM\n  var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;\n  var start = order ? element1 : element2;\n  var end = order ? element2 : element1;\n\n  // Get common ancestor container\n  var range = document.createRange();\n  range.setStart(start, 0);\n  range.setEnd(end, 0);\n  var commonAncestorContainer = range.commonAncestorContainer;\n\n  // Both nodes are inside #document\n\n  if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {\n    if (isOffsetContainer(commonAncestorContainer)) {\n      return commonAncestorContainer;\n    }\n\n    return getOffsetParent(commonAncestorContainer);\n  }\n\n  // one of the nodes is inside shadowDOM, find which one\n  var element1root = getRoot(element1);\n  if (element1root.host) {\n    return findCommonOffsetParent(element1root.host, element2);\n  } else {\n    return findCommonOffsetParent(element1, getRoot(element2).host);\n  }\n}\n\n/**\n * Gets the scroll value of the given element in the given side (top and left)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {String} side `top` or `left`\n * @returns {number} amount of scrolled pixels\n */\nfunction getScroll(element) {\n  var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';\n\n  var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n  var nodeName = element.nodeName;\n\n  if (nodeName === 'BODY' || nodeName === 'HTML') {\n    var html = element.ownerDocument.documentElement;\n    var scrollingElement = element.ownerDocument.scrollingElement || html;\n    return scrollingElement[upperSide];\n  }\n\n  return element[upperSide];\n}\n\n/*\n * Sum or subtract the element scroll values (left and top) from a given rect object\n * @method\n * @memberof Popper.Utils\n * @param {Object} rect - Rect object you want to change\n * @param {HTMLElement} element - The element from the function reads the scroll values\n * @param {Boolean} subtract - set to true if you want to subtract the scroll values\n * @return {Object} rect - The modifier rect object\n */\nfunction includeScroll(rect, element) {\n  var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n  var scrollTop = getScroll(element, 'top');\n  var scrollLeft = getScroll(element, 'left');\n  var modifier = subtract ? -1 : 1;\n  rect.top += scrollTop * modifier;\n  rect.bottom += scrollTop * modifier;\n  rect.left += scrollLeft * modifier;\n  rect.right += scrollLeft * modifier;\n  return rect;\n}\n\n/*\n * Helper to detect borders of a given element\n * @method\n * @memberof Popper.Utils\n * @param {CSSStyleDeclaration} styles\n * Result of `getStyleComputedProperty` on the given element\n * @param {String} axis - `x` or `y`\n * @return {number} borders - The borders size of the given axis\n */\n\nfunction getBordersSize(styles, axis) {\n  var sideA = axis === 'x' ? 'Left' : 'Top';\n  var sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n\n  return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);\n}\n\nfunction getSize(axis, body, html, computedStyle) {\n  return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);\n}\n\nfunction getWindowSizes(document) {\n  var body = document.body;\n  var html = document.documentElement;\n  var computedStyle = isIE(10) && getComputedStyle(html);\n\n  return {\n    height: getSize('Height', body, html, computedStyle),\n    width: getSize('Width', body, html, computedStyle)\n  };\n}\n\nvar classCallCheck = function (instance, Constructor) {\n  if (!(instance instanceof Constructor)) {\n    throw new TypeError(\"Cannot call a class as a function\");\n  }\n};\n\nvar createClass = function () {\n  function defineProperties(target, props) {\n    for (var i = 0; i < props.length; i++) {\n      var 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  return function (Constructor, protoProps, staticProps) {\n    if (protoProps) defineProperties(Constructor.prototype, protoProps);\n    if (staticProps) defineProperties(Constructor, staticProps);\n    return Constructor;\n  };\n}();\n\n\n\n\n\nvar defineProperty = function (obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n\n  return obj;\n};\n\nvar _extends = Object.assign || function (target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = arguments[i];\n\n    for (var key in source) {\n      if (Object.prototype.hasOwnProperty.call(source, key)) {\n        target[key] = source[key];\n      }\n    }\n  }\n\n  return target;\n};\n\n/**\n * Given element offsets, generate an output similar to getBoundingClientRect\n * @method\n * @memberof Popper.Utils\n * @argument {Object} offsets\n * @returns {Object} ClientRect like output\n */\nfunction getClientRect(offsets) {\n  return _extends({}, offsets, {\n    right: offsets.left + offsets.width,\n    bottom: offsets.top + offsets.height\n  });\n}\n\n/**\n * Get bounding client rect of given element\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} element\n * @return {Object} client rect\n */\nfunction getBoundingClientRect(element) {\n  var rect = {};\n\n  // IE10 10 FIX: Please, don't ask, the element isn't\n  // considered in DOM in some circumstances...\n  // This isn't reproducible in IE10 compatibility mode of IE11\n  try {\n    if (isIE(10)) {\n      rect = element.getBoundingClientRect();\n      var scrollTop = getScroll(element, 'top');\n      var scrollLeft = getScroll(element, 'left');\n      rect.top += scrollTop;\n      rect.left += scrollLeft;\n      rect.bottom += scrollTop;\n      rect.right += scrollLeft;\n    } else {\n      rect = element.getBoundingClientRect();\n    }\n  } catch (e) {}\n\n  var result = {\n    left: rect.left,\n    top: rect.top,\n    width: rect.right - rect.left,\n    height: rect.bottom - rect.top\n  };\n\n  // subtract scrollbar size from sizes\n  var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};\n  var width = sizes.width || element.clientWidth || result.width;\n  var height = sizes.height || element.clientHeight || result.height;\n\n  var horizScrollbar = element.offsetWidth - width;\n  var vertScrollbar = element.offsetHeight - height;\n\n  // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n  // we make this check conditional for performance reasons\n  if (horizScrollbar || vertScrollbar) {\n    var styles = getStyleComputedProperty(element);\n    horizScrollbar -= getBordersSize(styles, 'x');\n    vertScrollbar -= getBordersSize(styles, 'y');\n\n    result.width -= horizScrollbar;\n    result.height -= vertScrollbar;\n  }\n\n  return getClientRect(result);\n}\n\nfunction getOffsetRectRelativeToArbitraryNode(children, parent) {\n  var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n  var isIE10 = isIE(10);\n  var isHTML = parent.nodeName === 'HTML';\n  var childrenRect = getBoundingClientRect(children);\n  var parentRect = getBoundingClientRect(parent);\n  var scrollParent = getScrollParent(children);\n\n  var styles = getStyleComputedProperty(parent);\n  var borderTopWidth = parseFloat(styles.borderTopWidth);\n  var borderLeftWidth = parseFloat(styles.borderLeftWidth);\n\n  // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n  if (fixedPosition && isHTML) {\n    parentRect.top = Math.max(parentRect.top, 0);\n    parentRect.left = Math.max(parentRect.left, 0);\n  }\n  var offsets = getClientRect({\n    top: childrenRect.top - parentRect.top - borderTopWidth,\n    left: childrenRect.left - parentRect.left - borderLeftWidth,\n    width: childrenRect.width,\n    height: childrenRect.height\n  });\n  offsets.marginTop = 0;\n  offsets.marginLeft = 0;\n\n  // Subtract margins of documentElement in case it's being used as parent\n  // we do this only on HTML because it's the only element that behaves\n  // differently when margins are applied to it. The margins are included in\n  // the box of the documentElement, in the other cases not.\n  if (!isIE10 && isHTML) {\n    var marginTop = parseFloat(styles.marginTop);\n    var marginLeft = parseFloat(styles.marginLeft);\n\n    offsets.top -= borderTopWidth - marginTop;\n    offsets.bottom -= borderTopWidth - marginTop;\n    offsets.left -= borderLeftWidth - marginLeft;\n    offsets.right -= borderLeftWidth - marginLeft;\n\n    // Attach marginTop and marginLeft because in some circumstances we may need them\n    offsets.marginTop = marginTop;\n    offsets.marginLeft = marginLeft;\n  }\n\n  if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {\n    offsets = includeScroll(offsets, parent);\n  }\n\n  return offsets;\n}\n\nfunction getViewportOffsetRectRelativeToArtbitraryNode(element) {\n  var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n  var html = element.ownerDocument.documentElement;\n  var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n  var width = Math.max(html.clientWidth, window.innerWidth || 0);\n  var height = Math.max(html.clientHeight, window.innerHeight || 0);\n\n  var scrollTop = !excludeScroll ? getScroll(html) : 0;\n  var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n\n  var offset = {\n    top: scrollTop - relativeOffset.top + relativeOffset.marginTop,\n    left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,\n    width: width,\n    height: height\n  };\n\n  return getClientRect(offset);\n}\n\n/**\n * Check if the given element is fixed or is inside a fixed parent\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {Element} customContainer\n * @returns {Boolean} answer to \"isFixed?\"\n */\nfunction isFixed(element) {\n  var nodeName = element.nodeName;\n  if (nodeName === 'BODY' || nodeName === 'HTML') {\n    return false;\n  }\n  if (getStyleComputedProperty(element, 'position') === 'fixed') {\n    return true;\n  }\n  var parentNode = getParentNode(element);\n  if (!parentNode) {\n    return false;\n  }\n  return isFixed(parentNode);\n}\n\n/**\n * Finds the first parent of an element that has a transformed property defined\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} first transformed parent or documentElement\n */\n\nfunction getFixedPositionOffsetParent(element) {\n  // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n  if (!element || !element.parentElement || isIE()) {\n    return document.documentElement;\n  }\n  var el = element.parentElement;\n  while (el && getStyleComputedProperty(el, 'transform') === 'none') {\n    el = el.parentElement;\n  }\n  return el || document.documentElement;\n}\n\n/**\n * Computed the boundaries limits and return them\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} popper\n * @param {HTMLElement} reference\n * @param {number} padding\n * @param {HTMLElement} boundariesElement - Element used to define the boundaries\n * @param {Boolean} fixedPosition - Is in fixed position mode\n * @returns {Object} Coordinates of the boundaries\n */\nfunction getBoundaries(popper, reference, padding, boundariesElement) {\n  var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\n  // NOTE: 1 DOM access here\n\n  var boundaries = { top: 0, left: 0 };\n  var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n\n  // Handle viewport case\n  if (boundariesElement === 'viewport') {\n    boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n  } else {\n    // Handle other cases based on DOM element used as boundaries\n    var boundariesNode = void 0;\n    if (boundariesElement === 'scrollParent') {\n      boundariesNode = getScrollParent(getParentNode(reference));\n      if (boundariesNode.nodeName === 'BODY') {\n        boundariesNode = popper.ownerDocument.documentElement;\n      }\n    } else if (boundariesElement === 'window') {\n      boundariesNode = popper.ownerDocument.documentElement;\n    } else {\n      boundariesNode = boundariesElement;\n    }\n\n    var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);\n\n    // In case of HTML, we need a different computation\n    if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n      var _getWindowSizes = getWindowSizes(popper.ownerDocument),\n          height = _getWindowSizes.height,\n          width = _getWindowSizes.width;\n\n      boundaries.top += offsets.top - offsets.marginTop;\n      boundaries.bottom = height + offsets.top;\n      boundaries.left += offsets.left - offsets.marginLeft;\n      boundaries.right = width + offsets.left;\n    } else {\n      // for all the other DOM elements, this one is good\n      boundaries = offsets;\n    }\n  }\n\n  // Add paddings\n  padding = padding || 0;\n  var isPaddingNumber = typeof padding === 'number';\n  boundaries.left += isPaddingNumber ? padding : padding.left || 0;\n  boundaries.top += isPaddingNumber ? padding : padding.top || 0;\n  boundaries.right -= isPaddingNumber ? padding : padding.right || 0;\n  boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;\n\n  return boundaries;\n}\n\nfunction getArea(_ref) {\n  var width = _ref.width,\n      height = _ref.height;\n\n  return width * height;\n}\n\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n * @method\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {\n  var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;\n\n  if (placement.indexOf('auto') === -1) {\n    return placement;\n  }\n\n  var boundaries = getBoundaries(popper, reference, padding, boundariesElement);\n\n  var rects = {\n    top: {\n      width: boundaries.width,\n      height: refRect.top - boundaries.top\n    },\n    right: {\n      width: boundaries.right - refRect.right,\n      height: boundaries.height\n    },\n    bottom: {\n      width: boundaries.width,\n      height: boundaries.bottom - refRect.bottom\n    },\n    left: {\n      width: refRect.left - boundaries.left,\n      height: boundaries.height\n    }\n  };\n\n  var sortedAreas = Object.keys(rects).map(function (key) {\n    return _extends({\n      key: key\n    }, rects[key], {\n      area: getArea(rects[key])\n    });\n  }).sort(function (a, b) {\n    return b.area - a.area;\n  });\n\n  var filteredAreas = sortedAreas.filter(function (_ref2) {\n    var width = _ref2.width,\n        height = _ref2.height;\n    return width >= popper.clientWidth && height >= popper.clientHeight;\n  });\n\n  var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;\n\n  var variation = placement.split('-')[1];\n\n  return computedPlacement + (variation ? '-' + variation : '');\n}\n\n/**\n * Get offsets to the reference element\n * @method\n * @memberof Popper.Utils\n * @param {Object} state\n * @param {Element} popper - the popper element\n * @param {Element} reference - the reference element (the popper will be relative to this)\n * @param {Element} fixedPosition - is in fixed position mode\n * @returns {Object} An object containing the offsets which will be applied to the popper\n */\nfunction getReferenceOffsets(state, popper, reference) {\n  var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n\n  var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n  return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);\n}\n\n/**\n * Get the outer sizes of the given element (offset size + margins)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Object} object containing width and height properties\n */\nfunction getOuterSizes(element) {\n  var window = element.ownerDocument.defaultView;\n  var styles = window.getComputedStyle(element);\n  var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);\n  var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);\n  var result = {\n    width: element.offsetWidth + y,\n    height: element.offsetHeight + x\n  };\n  return result;\n}\n\n/**\n * Get the opposite placement of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement\n * @returns {String} flipped placement\n */\nfunction getOppositePlacement(placement) {\n  var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };\n  return placement.replace(/left|right|bottom|top/g, function (matched) {\n    return hash[matched];\n  });\n}\n\n/**\n * Get offsets to the popper\n * @method\n * @memberof Popper.Utils\n * @param {Object} position - CSS position the Popper will get applied\n * @param {HTMLElement} popper - the popper element\n * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)\n * @param {String} placement - one of the valid placement options\n * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper\n */\nfunction getPopperOffsets(popper, referenceOffsets, placement) {\n  placement = placement.split('-')[0];\n\n  // Get popper node sizes\n  var popperRect = getOuterSizes(popper);\n\n  // Add position, width and height to our offsets object\n  var popperOffsets = {\n    width: popperRect.width,\n    height: popperRect.height\n  };\n\n  // depending by the popper placement we have to compute its offsets slightly differently\n  var isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n  var mainSide = isHoriz ? 'top' : 'left';\n  var secondarySide = isHoriz ? 'left' : 'top';\n  var measurement = isHoriz ? 'height' : 'width';\n  var secondaryMeasurement = !isHoriz ? 'height' : 'width';\n\n  popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;\n  if (placement === secondarySide) {\n    popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];\n  } else {\n    popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];\n  }\n\n  return popperOffsets;\n}\n\n/**\n * Mimics the `find` method of Array\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nfunction find(arr, check) {\n  // use native find if supported\n  if (Array.prototype.find) {\n    return arr.find(check);\n  }\n\n  // use `filter` to obtain the same behavior of `find`\n  return arr.filter(check)[0];\n}\n\n/**\n * Return the index of the matching object\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nfunction findIndex(arr, prop, value) {\n  // use native findIndex if supported\n  if (Array.prototype.findIndex) {\n    return arr.findIndex(function (cur) {\n      return cur[prop] === value;\n    });\n  }\n\n  // use `find` + `indexOf` if `findIndex` isn't supported\n  var match = find(arr, function (obj) {\n    return obj[prop] === value;\n  });\n  return arr.indexOf(match);\n}\n\n/**\n * Loop trough the list of modifiers and run them in order,\n * each of them will then edit the data object.\n * @method\n * @memberof Popper.Utils\n * @param {dataObject} data\n * @param {Array} modifiers\n * @param {String} ends - Optional modifier name used as stopper\n * @returns {dataObject}\n */\nfunction runModifiers(modifiers, data, ends) {\n  var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));\n\n  modifiersToRun.forEach(function (modifier) {\n    if (modifier['function']) {\n      // eslint-disable-line dot-notation\n      console.warn('`modifier.function` is deprecated, use `modifier.fn`!');\n    }\n    var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation\n    if (modifier.enabled && isFunction(fn)) {\n      // Add properties to offsets to make them a complete clientRect object\n      // we do this before each modifier to make sure the previous one doesn't\n      // mess with these values\n      data.offsets.popper = getClientRect(data.offsets.popper);\n      data.offsets.reference = getClientRect(data.offsets.reference);\n\n      data = fn(data, modifier);\n    }\n  });\n\n  return data;\n}\n\n/**\n * Updates the position of the popper, computing the new offsets and applying\n * the new style.<br />\n * Prefer `scheduleUpdate` over `update` because of performance reasons.\n * @method\n * @memberof Popper\n */\nfunction update() {\n  // if popper is destroyed, don't perform any further update\n  if (this.state.isDestroyed) {\n    return;\n  }\n\n  var data = {\n    instance: this,\n    styles: {},\n    arrowStyles: {},\n    attributes: {},\n    flipped: false,\n    offsets: {}\n  };\n\n  // compute reference element offsets\n  data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed);\n\n  // compute auto placement, store placement inside the data object,\n  // modifiers will be able to edit `placement` if needed\n  // and refer to originalPlacement to know the original value\n  data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding);\n\n  // store the computed placement inside `originalPlacement`\n  data.originalPlacement = data.placement;\n\n  data.positionFixed = this.options.positionFixed;\n\n  // compute the popper offsets\n  data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);\n\n  data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute';\n\n  // run the modifiers\n  data = runModifiers(this.modifiers, data);\n\n  // the first `update` will call `onCreate` callback\n  // the other ones will call `onUpdate` callback\n  if (!this.state.isCreated) {\n    this.state.isCreated = true;\n    this.options.onCreate(data);\n  } else {\n    this.options.onUpdate(data);\n  }\n}\n\n/**\n * Helper used to know if the given modifier is enabled.\n * @method\n * @memberof Popper.Utils\n * @returns {Boolean}\n */\nfunction isModifierEnabled(modifiers, modifierName) {\n  return modifiers.some(function (_ref) {\n    var name = _ref.name,\n        enabled = _ref.enabled;\n    return enabled && name === modifierName;\n  });\n}\n\n/**\n * Get the prefixed supported property name\n * @method\n * @memberof Popper.Utils\n * @argument {String} property (camelCase)\n * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)\n */\nfunction getSupportedPropertyName(property) {\n  var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];\n  var upperProp = property.charAt(0).toUpperCase() + property.slice(1);\n\n  for (var i = 0; i < prefixes.length; i++) {\n    var prefix = prefixes[i];\n    var toCheck = prefix ? '' + prefix + upperProp : property;\n    if (typeof document.body.style[toCheck] !== 'undefined') {\n      return toCheck;\n    }\n  }\n  return null;\n}\n\n/**\n * Destroys the popper.\n * @method\n * @memberof Popper\n */\nfunction destroy() {\n  this.state.isDestroyed = true;\n\n  // touch DOM only if `applyStyle` modifier is enabled\n  if (isModifierEnabled(this.modifiers, 'applyStyle')) {\n    this.popper.removeAttribute('x-placement');\n    this.popper.style.position = '';\n    this.popper.style.top = '';\n    this.popper.style.left = '';\n    this.popper.style.right = '';\n    this.popper.style.bottom = '';\n    this.popper.style.willChange = '';\n    this.popper.style[getSupportedPropertyName('transform')] = '';\n  }\n\n  this.disableEventListeners();\n\n  // remove the popper if user explicitly asked for the deletion on destroy\n  // do not use `remove` because IE11 doesn't support it\n  if (this.options.removeOnDestroy) {\n    this.popper.parentNode.removeChild(this.popper);\n  }\n  return this;\n}\n\n/**\n * Get the window associated with the element\n * @argument {Element} element\n * @returns {Window}\n */\nfunction getWindow(element) {\n  var ownerDocument = element.ownerDocument;\n  return ownerDocument ? ownerDocument.defaultView : window;\n}\n\nfunction attachToScrollParents(scrollParent, event, callback, scrollParents) {\n  var isBody = scrollParent.nodeName === 'BODY';\n  var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;\n  target.addEventListener(event, callback, { passive: true });\n\n  if (!isBody) {\n    attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);\n  }\n  scrollParents.push(target);\n}\n\n/**\n * Setup needed event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nfunction setupEventListeners(reference, options, state, updateBound) {\n  // Resize event listener on window\n  state.updateBound = updateBound;\n  getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });\n\n  // Scroll event listener on scroll parents\n  var scrollElement = getScrollParent(reference);\n  attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);\n  state.scrollElement = scrollElement;\n  state.eventsEnabled = true;\n\n  return state;\n}\n\n/**\n * It will add resize/scroll events and start recalculating\n * position of the popper element when they are triggered.\n * @method\n * @memberof Popper\n */\nfunction enableEventListeners() {\n  if (!this.state.eventsEnabled) {\n    this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);\n  }\n}\n\n/**\n * Remove event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nfunction removeEventListeners(reference, state) {\n  // Remove resize event listener on window\n  getWindow(reference).removeEventListener('resize', state.updateBound);\n\n  // Remove scroll event listener on scroll parents\n  state.scrollParents.forEach(function (target) {\n    target.removeEventListener('scroll', state.updateBound);\n  });\n\n  // Reset state\n  state.updateBound = null;\n  state.scrollParents = [];\n  state.scrollElement = null;\n  state.eventsEnabled = false;\n  return state;\n}\n\n/**\n * It will remove resize/scroll events and won't recalculate popper position\n * when they are triggered. It also won't trigger `onUpdate` callback anymore,\n * unless you call `update` method manually.\n * @method\n * @memberof Popper\n */\nfunction disableEventListeners() {\n  if (this.state.eventsEnabled) {\n    cancelAnimationFrame(this.scheduleUpdate);\n    this.state = removeEventListeners(this.reference, this.state);\n  }\n}\n\n/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\nfunction isNumeric(n) {\n  return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nfunction setStyles(element, styles) {\n  Object.keys(styles).forEach(function (prop) {\n    var unit = '';\n    // add unit if the value is numeric and is one of the following\n    if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {\n      unit = 'px';\n    }\n    element.style[prop] = styles[prop] + unit;\n  });\n}\n\n/**\n * Set the attributes to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the attributes to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nfunction setAttributes(element, attributes) {\n  Object.keys(attributes).forEach(function (prop) {\n    var value = attributes[prop];\n    if (value !== false) {\n      element.setAttribute(prop, attributes[prop]);\n    } else {\n      element.removeAttribute(prop);\n    }\n  });\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} data.styles - List of style properties - values to apply to popper element\n * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The same data object\n */\nfunction applyStyle(data) {\n  // any property present in `data.styles` will be applied to the popper,\n  // in this way we can make the 3rd party modifiers add custom styles to it\n  // Be aware, modifiers could override the properties defined in the previous\n  // lines of this modifier!\n  setStyles(data.instance.popper, data.styles);\n\n  // any property present in `data.attributes` will be applied to the popper,\n  // they will be set as HTML attributes of the element\n  setAttributes(data.instance.popper, data.attributes);\n\n  // if arrowElement is defined and arrowStyles has some properties\n  if (data.arrowElement && Object.keys(data.arrowStyles).length) {\n    setStyles(data.arrowElement, data.arrowStyles);\n  }\n\n  return data;\n}\n\n/**\n * Set the x-placement attribute before everything else because it could be used\n * to add margins to the popper margins needs to be calculated to get the\n * correct popper offsets.\n * @method\n * @memberof Popper.modifiers\n * @param {HTMLElement} reference - The reference element used to position the popper\n * @param {HTMLElement} popper - The HTML element used as popper\n * @param {Object} options - Popper.js options\n */\nfunction applyStyleOnLoad(reference, popper, options, modifierOptions, state) {\n  // compute reference element offsets\n  var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);\n\n  // compute auto placement, store placement inside the data object,\n  // modifiers will be able to edit `placement` if needed\n  // and refer to originalPlacement to know the original value\n  var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);\n\n  popper.setAttribute('x-placement', placement);\n\n  // Apply `position` to popper before anything else because\n  // without the position applied we can't guarantee correct computations\n  setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' });\n\n  return options;\n}\n\n/**\n * @function\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Boolean} shouldRound - If the offsets should be rounded at all\n * @returns {Object} The popper's position offsets rounded\n *\n * The tale of pixel-perfect positioning. It's still not 100% perfect, but as\n * good as it can be within reason.\n * Discussion here: https://github.com/FezVrasta/popper.js/pull/715\n *\n * Low DPI screens cause a popper to be blurry if not using full pixels (Safari\n * as well on High DPI screens).\n *\n * Firefox prefers no rounding for positioning and does not have blurriness on\n * high DPI screens.\n *\n * Only horizontal placement and left/right values need to be considered.\n */\nfunction getRoundedOffsets(data, shouldRound) {\n  var _data$offsets = data.offsets,\n      popper = _data$offsets.popper,\n      reference = _data$offsets.reference;\n  var round = Math.round,\n      floor = Math.floor;\n\n  var noRound = function noRound(v) {\n    return v;\n  };\n\n  var referenceWidth = round(reference.width);\n  var popperWidth = round(popper.width);\n\n  var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;\n  var isVariation = data.placement.indexOf('-') !== -1;\n  var sameWidthParity = referenceWidth % 2 === popperWidth % 2;\n  var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;\n\n  var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;\n  var verticalToInteger = !shouldRound ? noRound : round;\n\n  return {\n    left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),\n    top: verticalToInteger(popper.top),\n    bottom: verticalToInteger(popper.bottom),\n    right: horizontalToInteger(popper.right)\n  };\n}\n\nvar isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction computeStyle(data, options) {\n  var x = options.x,\n      y = options.y;\n  var popper = data.offsets.popper;\n\n  // Remove this legacy support in Popper.js v2\n\n  var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {\n    return modifier.name === 'applyStyle';\n  }).gpuAcceleration;\n  if (legacyGpuAccelerationOption !== undefined) {\n    console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');\n  }\n  var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;\n\n  var offsetParent = getOffsetParent(data.instance.popper);\n  var offsetParentRect = getBoundingClientRect(offsetParent);\n\n  // Styles\n  var styles = {\n    position: popper.position\n  };\n\n  var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);\n\n  var sideA = x === 'bottom' ? 'top' : 'bottom';\n  var sideB = y === 'right' ? 'left' : 'right';\n\n  // if gpuAcceleration is set to `true` and transform is supported,\n  //  we use `translate3d` to apply the position to the popper we\n  // automatically use the supported prefixed version if needed\n  var prefixedProperty = getSupportedPropertyName('transform');\n\n  // now, let's make a step back and look at this code closely (wtf?)\n  // If the content of the popper grows once it's been positioned, it\n  // may happen that the popper gets misplaced because of the new content\n  // overflowing its reference element\n  // To avoid this problem, we provide two options (x and y), which allow\n  // the consumer to define the offset origin.\n  // If we position a popper on top of a reference element, we can set\n  // `x` to `top` to make the popper grow towards its top instead of\n  // its bottom.\n  var left = void 0,\n      top = void 0;\n  if (sideA === 'bottom') {\n    // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)\n    // and not the bottom of the html element\n    if (offsetParent.nodeName === 'HTML') {\n      top = -offsetParent.clientHeight + offsets.bottom;\n    } else {\n      top = -offsetParentRect.height + offsets.bottom;\n    }\n  } else {\n    top = offsets.top;\n  }\n  if (sideB === 'right') {\n    if (offsetParent.nodeName === 'HTML') {\n      left = -offsetParent.clientWidth + offsets.right;\n    } else {\n      left = -offsetParentRect.width + offsets.right;\n    }\n  } else {\n    left = offsets.left;\n  }\n  if (gpuAcceleration && prefixedProperty) {\n    styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';\n    styles[sideA] = 0;\n    styles[sideB] = 0;\n    styles.willChange = 'transform';\n  } else {\n    // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties\n    var invertTop = sideA === 'bottom' ? -1 : 1;\n    var invertLeft = sideB === 'right' ? -1 : 1;\n    styles[sideA] = top * invertTop;\n    styles[sideB] = left * invertLeft;\n    styles.willChange = sideA + ', ' + sideB;\n  }\n\n  // Attributes\n  var attributes = {\n    'x-placement': data.placement\n  };\n\n  // Update `data` attributes, styles and arrowStyles\n  data.attributes = _extends({}, attributes, data.attributes);\n  data.styles = _extends({}, styles, data.styles);\n  data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);\n\n  return data;\n}\n\n/**\n * Helper used to know if the given modifier depends from another one.<br />\n * It checks if the needed modifier is listed and enabled.\n * @method\n * @memberof Popper.Utils\n * @param {Array} modifiers - list of modifiers\n * @param {String} requestingName - name of requesting modifier\n * @param {String} requestedName - name of requested modifier\n * @returns {Boolean}\n */\nfunction isModifierRequired(modifiers, requestingName, requestedName) {\n  var requesting = find(modifiers, function (_ref) {\n    var name = _ref.name;\n    return name === requestingName;\n  });\n\n  var isRequired = !!requesting && modifiers.some(function (modifier) {\n    return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;\n  });\n\n  if (!isRequired) {\n    var _requesting = '`' + requestingName + '`';\n    var requested = '`' + requestedName + '`';\n    console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');\n  }\n  return isRequired;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction arrow(data, options) {\n  var _data$offsets$arrow;\n\n  // arrow depends on keepTogether in order to work\n  if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {\n    return data;\n  }\n\n  var arrowElement = options.element;\n\n  // if arrowElement is a string, suppose it's a CSS selector\n  if (typeof arrowElement === 'string') {\n    arrowElement = data.instance.popper.querySelector(arrowElement);\n\n    // if arrowElement is not found, don't run the modifier\n    if (!arrowElement) {\n      return data;\n    }\n  } else {\n    // if the arrowElement isn't a query selector we must check that the\n    // provided DOM node is child of its popper node\n    if (!data.instance.popper.contains(arrowElement)) {\n      console.warn('WARNING: `arrow.element` must be child of its popper element!');\n      return data;\n    }\n  }\n\n  var placement = data.placement.split('-')[0];\n  var _data$offsets = data.offsets,\n      popper = _data$offsets.popper,\n      reference = _data$offsets.reference;\n\n  var isVertical = ['left', 'right'].indexOf(placement) !== -1;\n\n  var len = isVertical ? 'height' : 'width';\n  var sideCapitalized = isVertical ? 'Top' : 'Left';\n  var side = sideCapitalized.toLowerCase();\n  var altSide = isVertical ? 'left' : 'top';\n  var opSide = isVertical ? 'bottom' : 'right';\n  var arrowElementSize = getOuterSizes(arrowElement)[len];\n\n  //\n  // extends keepTogether behavior making sure the popper and its\n  // reference have enough pixels in conjunction\n  //\n\n  // top/left side\n  if (reference[opSide] - arrowElementSize < popper[side]) {\n    data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);\n  }\n  // bottom/right side\n  if (reference[side] + arrowElementSize > popper[opSide]) {\n    data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];\n  }\n  data.offsets.popper = getClientRect(data.offsets.popper);\n\n  // compute center of the popper\n  var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;\n\n  // Compute the sideValue using the updated popper offsets\n  // take popper margin in account because we don't have this info available\n  var css = getStyleComputedProperty(data.instance.popper);\n  var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);\n  var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);\n  var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;\n\n  // prevent arrowElement from being placed not contiguously to its popper\n  sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);\n\n  data.arrowElement = arrowElement;\n  data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);\n\n  return data;\n}\n\n/**\n * Get the opposite placement variation of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement variation\n * @returns {String} flipped placement variation\n */\nfunction getOppositeVariation(variation) {\n  if (variation === 'end') {\n    return 'start';\n  } else if (variation === 'start') {\n    return 'end';\n  }\n  return variation;\n}\n\n/**\n * List of accepted placements to use as values of the `placement` option.<br />\n * Valid placements are:\n * - `auto`\n * - `top`\n * - `right`\n * - `bottom`\n * - `left`\n *\n * Each placement can have a variation from this list:\n * - `-start`\n * - `-end`\n *\n * Variations are interpreted easily if you think of them as the left to right\n * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`\n * is right.<br />\n * Vertically (`left` and `right`), `start` is top and `end` is bottom.\n *\n * Some valid examples are:\n * - `top-end` (on top of reference, right aligned)\n * - `right-start` (on right of reference, top aligned)\n * - `bottom` (on bottom, centered)\n * - `auto-end` (on the side with more space available, alignment depends by placement)\n *\n * @static\n * @type {Array}\n * @enum {String}\n * @readonly\n * @method placements\n * @memberof Popper\n */\nvar placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];\n\n// Get rid of `auto` `auto-start` and `auto-end`\nvar validPlacements = placements.slice(3);\n\n/**\n * Given an initial placement, returns all the subsequent placements\n * clockwise (or counter-clockwise).\n *\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement - A valid placement (it accepts variations)\n * @argument {Boolean} counter - Set to true to walk the placements counterclockwise\n * @returns {Array} placements including their variations\n */\nfunction clockwise(placement) {\n  var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n  var index = validPlacements.indexOf(placement);\n  var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));\n  return counter ? arr.reverse() : arr;\n}\n\nvar BEHAVIORS = {\n  FLIP: 'flip',\n  CLOCKWISE: 'clockwise',\n  COUNTERCLOCKWISE: 'counterclockwise'\n};\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction flip(data, options) {\n  // if `inner` modifier is enabled, we can't use the `flip` modifier\n  if (isModifierEnabled(data.instance.modifiers, 'inner')) {\n    return data;\n  }\n\n  if (data.flipped && data.placement === data.originalPlacement) {\n    // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides\n    return data;\n  }\n\n  var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);\n\n  var placement = data.placement.split('-')[0];\n  var placementOpposite = getOppositePlacement(placement);\n  var variation = data.placement.split('-')[1] || '';\n\n  var flipOrder = [];\n\n  switch (options.behavior) {\n    case BEHAVIORS.FLIP:\n      flipOrder = [placement, placementOpposite];\n      break;\n    case BEHAVIORS.CLOCKWISE:\n      flipOrder = clockwise(placement);\n      break;\n    case BEHAVIORS.COUNTERCLOCKWISE:\n      flipOrder = clockwise(placement, true);\n      break;\n    default:\n      flipOrder = options.behavior;\n  }\n\n  flipOrder.forEach(function (step, index) {\n    if (placement !== step || flipOrder.length === index + 1) {\n      return data;\n    }\n\n    placement = data.placement.split('-')[0];\n    placementOpposite = getOppositePlacement(placement);\n\n    var popperOffsets = data.offsets.popper;\n    var refOffsets = data.offsets.reference;\n\n    // using floor because the reference offsets may contain decimals we are not going to consider here\n    var floor = Math.floor;\n    var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);\n\n    var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n    var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n    var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n    var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);\n\n    var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;\n\n    // flip the variation if required\n    var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n\n    // flips variation if reference element overflows boundaries\n    var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);\n\n    // flips variation if popper content overflows boundaries\n    var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);\n\n    var flippedVariation = flippedVariationByRef || flippedVariationByContent;\n\n    if (overlapsRef || overflowsBoundaries || flippedVariation) {\n      // this boolean to detect any flip loop\n      data.flipped = true;\n\n      if (overlapsRef || overflowsBoundaries) {\n        placement = flipOrder[index + 1];\n      }\n\n      if (flippedVariation) {\n        variation = getOppositeVariation(variation);\n      }\n\n      data.placement = placement + (variation ? '-' + variation : '');\n\n      // this object contains `position`, we want to preserve it along with\n      // any additional property we may add in the future\n      data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));\n\n      data = runModifiers(data.instance.modifiers, data, 'flip');\n    }\n  });\n  return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction keepTogether(data) {\n  var _data$offsets = data.offsets,\n      popper = _data$offsets.popper,\n      reference = _data$offsets.reference;\n\n  var placement = data.placement.split('-')[0];\n  var floor = Math.floor;\n  var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n  var side = isVertical ? 'right' : 'bottom';\n  var opSide = isVertical ? 'left' : 'top';\n  var measurement = isVertical ? 'width' : 'height';\n\n  if (popper[side] < floor(reference[opSide])) {\n    data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];\n  }\n  if (popper[opSide] > floor(reference[side])) {\n    data.offsets.popper[opSide] = floor(reference[side]);\n  }\n\n  return data;\n}\n\n/**\n * Converts a string containing value + unit into a px value number\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} str - Value + unit string\n * @argument {String} measurement - `height` or `width`\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @returns {Number|String}\n * Value in pixels, or original string if no values were extracted\n */\nfunction toValue(str, measurement, popperOffsets, referenceOffsets) {\n  // separate value from unit\n  var split = str.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/);\n  var value = +split[1];\n  var unit = split[2];\n\n  // If it's not a number it's an operator, I guess\n  if (!value) {\n    return str;\n  }\n\n  if (unit.indexOf('%') === 0) {\n    var element = void 0;\n    switch (unit) {\n      case '%p':\n        element = popperOffsets;\n        break;\n      case '%':\n      case '%r':\n      default:\n        element = referenceOffsets;\n    }\n\n    var rect = getClientRect(element);\n    return rect[measurement] / 100 * value;\n  } else if (unit === 'vh' || unit === 'vw') {\n    // if is a vh or vw, we calculate the size based on the viewport\n    var size = void 0;\n    if (unit === 'vh') {\n      size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n    } else {\n      size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n    }\n    return size / 100 * value;\n  } else {\n    // if is an explicit pixel unit, we get rid of the unit and keep the value\n    // if is an implicit unit, it's px, and we return just the value\n    return value;\n  }\n}\n\n/**\n * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} offset\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @argument {String} basePlacement\n * @returns {Array} a two cells array with x and y offsets in numbers\n */\nfunction parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {\n  var offsets = [0, 0];\n\n  // Use height if placement is left or right and index is 0 otherwise use width\n  // in this way the first offset will use an axis and the second one\n  // will use the other one\n  var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;\n\n  // Split the offset string to obtain a list of values and operands\n  // The regex addresses values with the plus or minus sign in front (+10, -20, etc)\n  var fragments = offset.split(/(\\+|\\-)/).map(function (frag) {\n    return frag.trim();\n  });\n\n  // Detect if the offset string contains a pair of values or a single one\n  // they could be separated by comma or space\n  var divider = fragments.indexOf(find(fragments, function (frag) {\n    return frag.search(/,|\\s/) !== -1;\n  }));\n\n  if (fragments[divider] && fragments[divider].indexOf(',') === -1) {\n    console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');\n  }\n\n  // If divider is found, we divide the list of values and operands to divide\n  // them by ofset X and Y.\n  var splitRegex = /\\s*,\\s*|\\s+/;\n  var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];\n\n  // Convert the values with units to absolute pixels to allow our computations\n  ops = ops.map(function (op, index) {\n    // Most of the units rely on the orientation of the popper\n    var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';\n    var mergeWithPrevious = false;\n    return op\n    // This aggregates any `+` or `-` sign that aren't considered operators\n    // e.g.: 10 + +5 => [10, +, +5]\n    .reduce(function (a, b) {\n      if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {\n        a[a.length - 1] = b;\n        mergeWithPrevious = true;\n        return a;\n      } else if (mergeWithPrevious) {\n        a[a.length - 1] += b;\n        mergeWithPrevious = false;\n        return a;\n      } else {\n        return a.concat(b);\n      }\n    }, [])\n    // Here we convert the string values into number values (in px)\n    .map(function (str) {\n      return toValue(str, measurement, popperOffsets, referenceOffsets);\n    });\n  });\n\n  // Loop trough the offsets arrays and execute the operations\n  ops.forEach(function (op, index) {\n    op.forEach(function (frag, index2) {\n      if (isNumeric(frag)) {\n        offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);\n      }\n    });\n  });\n  return offsets;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @argument {Number|String} options.offset=0\n * The offset value as described in the modifier description\n * @returns {Object} The data object, properly modified\n */\nfunction offset(data, _ref) {\n  var offset = _ref.offset;\n  var placement = data.placement,\n      _data$offsets = data.offsets,\n      popper = _data$offsets.popper,\n      reference = _data$offsets.reference;\n\n  var basePlacement = placement.split('-')[0];\n\n  var offsets = void 0;\n  if (isNumeric(+offset)) {\n    offsets = [+offset, 0];\n  } else {\n    offsets = parseOffset(offset, popper, reference, basePlacement);\n  }\n\n  if (basePlacement === 'left') {\n    popper.top += offsets[0];\n    popper.left -= offsets[1];\n  } else if (basePlacement === 'right') {\n    popper.top += offsets[0];\n    popper.left += offsets[1];\n  } else if (basePlacement === 'top') {\n    popper.left += offsets[0];\n    popper.top -= offsets[1];\n  } else if (basePlacement === 'bottom') {\n    popper.left += offsets[0];\n    popper.top += offsets[1];\n  }\n\n  data.popper = popper;\n  return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction preventOverflow(data, options) {\n  var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);\n\n  // If offsetParent is the reference element, we really want to\n  // go one step up and use the next offsetParent as reference to\n  // avoid to make this modifier completely useless and look like broken\n  if (data.instance.reference === boundariesElement) {\n    boundariesElement = getOffsetParent(boundariesElement);\n  }\n\n  // NOTE: DOM access here\n  // resets the popper's position so that the document size can be calculated excluding\n  // the size of the popper element itself\n  var transformProp = getSupportedPropertyName('transform');\n  var popperStyles = data.instance.popper.style; // assignment to help minification\n  var top = popperStyles.top,\n      left = popperStyles.left,\n      transform = popperStyles[transformProp];\n\n  popperStyles.top = '';\n  popperStyles.left = '';\n  popperStyles[transformProp] = '';\n\n  var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);\n\n  // NOTE: DOM access here\n  // restores the original style properties after the offsets have been computed\n  popperStyles.top = top;\n  popperStyles.left = left;\n  popperStyles[transformProp] = transform;\n\n  options.boundaries = boundaries;\n\n  var order = options.priority;\n  var popper = data.offsets.popper;\n\n  var check = {\n    primary: function primary(placement) {\n      var value = popper[placement];\n      if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {\n        value = Math.max(popper[placement], boundaries[placement]);\n      }\n      return defineProperty({}, placement, value);\n    },\n    secondary: function secondary(placement) {\n      var mainSide = placement === 'right' ? 'left' : 'top';\n      var value = popper[mainSide];\n      if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {\n        value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));\n      }\n      return defineProperty({}, mainSide, value);\n    }\n  };\n\n  order.forEach(function (placement) {\n    var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';\n    popper = _extends({}, popper, check[side](placement));\n  });\n\n  data.offsets.popper = popper;\n\n  return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction shift(data) {\n  var placement = data.placement;\n  var basePlacement = placement.split('-')[0];\n  var shiftvariation = placement.split('-')[1];\n\n  // if shift shiftvariation is specified, run the modifier\n  if (shiftvariation) {\n    var _data$offsets = data.offsets,\n        reference = _data$offsets.reference,\n        popper = _data$offsets.popper;\n\n    var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n    var side = isVertical ? 'left' : 'top';\n    var measurement = isVertical ? 'width' : 'height';\n\n    var shiftOffsets = {\n      start: defineProperty({}, side, reference[side]),\n      end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])\n    };\n\n    data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);\n  }\n\n  return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction hide(data) {\n  if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {\n    return data;\n  }\n\n  var refRect = data.offsets.reference;\n  var bound = find(data.instance.modifiers, function (modifier) {\n    return modifier.name === 'preventOverflow';\n  }).boundaries;\n\n  if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {\n    // Avoid unnecessary DOM access if visibility hasn't changed\n    if (data.hide === true) {\n      return data;\n    }\n\n    data.hide = true;\n    data.attributes['x-out-of-boundaries'] = '';\n  } else {\n    // Avoid unnecessary DOM access if visibility hasn't changed\n    if (data.hide === false) {\n      return data;\n    }\n\n    data.hide = false;\n    data.attributes['x-out-of-boundaries'] = false;\n  }\n\n  return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction inner(data) {\n  var placement = data.placement;\n  var basePlacement = placement.split('-')[0];\n  var _data$offsets = data.offsets,\n      popper = _data$offsets.popper,\n      reference = _data$offsets.reference;\n\n  var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;\n\n  var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;\n\n  popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);\n\n  data.placement = getOppositePlacement(placement);\n  data.offsets.popper = getClientRect(popper);\n\n  return data;\n}\n\n/**\n * Modifier function, each modifier can have a function of this type assigned\n * to its `fn` property.<br />\n * These functions will be called on each update, this means that you must\n * make sure they are performant enough to avoid performance bottlenecks.\n *\n * @function ModifierFn\n * @argument {dataObject} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {dataObject} The data object, properly modified\n */\n\n/**\n * Modifiers are plugins used to alter the behavior of your poppers.<br />\n * Popper.js uses a set of 9 modifiers to provide all the basic functionalities\n * needed by the library.\n *\n * Usually you don't want to override the `order`, `fn` and `onLoad` props.\n * All the other properties are configurations that could be tweaked.\n * @namespace modifiers\n */\nvar modifiers = {\n  /**\n   * Modifier used to shift the popper on the start or end of its reference\n   * element.<br />\n   * It will read the variation of the `placement` property.<br />\n   * It can be one either `-end` or `-start`.\n   * @memberof modifiers\n   * @inner\n   */\n  shift: {\n    /** @prop {number} order=100 - Index used to define the order of execution */\n    order: 100,\n    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n    enabled: true,\n    /** @prop {ModifierFn} */\n    fn: shift\n  },\n\n  /**\n   * The `offset` modifier can shift your popper on both its axis.\n   *\n   * It accepts the following units:\n   * - `px` or unit-less, interpreted as pixels\n   * - `%` or `%r`, percentage relative to the length of the reference element\n   * - `%p`, percentage relative to the length of the popper element\n   * - `vw`, CSS viewport width unit\n   * - `vh`, CSS viewport height unit\n   *\n   * For length is intended the main axis relative to the placement of the popper.<br />\n   * This means that if the placement is `top` or `bottom`, the length will be the\n   * `width`. In case of `left` or `right`, it will be the `height`.\n   *\n   * You can provide a single value (as `Number` or `String`), or a pair of values\n   * as `String` divided by a comma or one (or more) white spaces.<br />\n   * The latter is a deprecated method because it leads to confusion and will be\n   * removed in v2.<br />\n   * Additionally, it accepts additions and subtractions between different units.\n   * Note that multiplications and divisions aren't supported.\n   *\n   * Valid examples are:\n   * ```\n   * 10\n   * '10%'\n   * '10, 10'\n   * '10%, 10'\n   * '10 + 10%'\n   * '10 - 5vh + 3%'\n   * '-10px + 5vh, 5px - 6%'\n   * ```\n   * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap\n   * > with their reference element, unfortunately, you will have to disable the `flip` modifier.\n   * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).\n   *\n   * @memberof modifiers\n   * @inner\n   */\n  offset: {\n    /** @prop {number} order=200 - Index used to define the order of execution */\n    order: 200,\n    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n    enabled: true,\n    /** @prop {ModifierFn} */\n    fn: offset,\n    /** @prop {Number|String} offset=0\n     * The offset value as described in the modifier description\n     */\n    offset: 0\n  },\n\n  /**\n   * Modifier used to prevent the popper from being positioned outside the boundary.\n   *\n   * A scenario exists where the reference itself is not within the boundaries.<br />\n   * We can say it has \"escaped the boundaries\" — or just \"escaped\".<br />\n   * In this case we need to decide whether the popper should either:\n   *\n   * - detach from the reference and remain \"trapped\" in the boundaries, or\n   * - if it should ignore the boundary and \"escape with its reference\"\n   *\n   * When `escapeWithReference` is set to`true` and reference is completely\n   * outside its boundaries, the popper will overflow (or completely leave)\n   * the boundaries in order to remain attached to the edge of the reference.\n   *\n   * @memberof modifiers\n   * @inner\n   */\n  preventOverflow: {\n    /** @prop {number} order=300 - Index used to define the order of execution */\n    order: 300,\n    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n    enabled: true,\n    /** @prop {ModifierFn} */\n    fn: preventOverflow,\n    /**\n     * @prop {Array} [priority=['left','right','top','bottom']]\n     * Popper will try to prevent overflow following these priorities by default,\n     * then, it could overflow on the left and on top of the `boundariesElement`\n     */\n    priority: ['left', 'right', 'top', 'bottom'],\n    /**\n     * @prop {number} padding=5\n     * Amount of pixel used to define a minimum distance between the boundaries\n     * and the popper. This makes sure the popper always has a little padding\n     * between the edges of its container\n     */\n    padding: 5,\n    /**\n     * @prop {String|HTMLElement} boundariesElement='scrollParent'\n     * Boundaries used by the modifier. Can be `scrollParent`, `window`,\n     * `viewport` or any DOM element.\n     */\n    boundariesElement: 'scrollParent'\n  },\n\n  /**\n   * Modifier used to make sure the reference and its popper stay near each other\n   * without leaving any gap between the two. Especially useful when the arrow is\n   * enabled and you want to ensure that it points to its reference element.\n   * It cares only about the first axis. You can still have poppers with margin\n   * between the popper and its reference element.\n   * @memberof modifiers\n   * @inner\n   */\n  keepTogether: {\n    /** @prop {number} order=400 - Index used to define the order of execution */\n    order: 400,\n    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n    enabled: true,\n    /** @prop {ModifierFn} */\n    fn: keepTogether\n  },\n\n  /**\n   * This modifier is used to move the `arrowElement` of the popper to make\n   * sure it is positioned between the reference element and its popper element.\n   * It will read the outer size of the `arrowElement` node to detect how many\n   * pixels of conjunction are needed.\n   *\n   * It has no effect if no `arrowElement` is provided.\n   * @memberof modifiers\n   * @inner\n   */\n  arrow: {\n    /** @prop {number} order=500 - Index used to define the order of execution */\n    order: 500,\n    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n    enabled: true,\n    /** @prop {ModifierFn} */\n    fn: arrow,\n    /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */\n    element: '[x-arrow]'\n  },\n\n  /**\n   * Modifier used to flip the popper's placement when it starts to overlap its\n   * reference element.\n   *\n   * Requires the `preventOverflow` modifier before it in order to work.\n   *\n   * **NOTE:** this modifier will interrupt the current update cycle and will\n   * restart it if it detects the need to flip the placement.\n   * @memberof modifiers\n   * @inner\n   */\n  flip: {\n    /** @prop {number} order=600 - Index used to define the order of execution */\n    order: 600,\n    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n    enabled: true,\n    /** @prop {ModifierFn} */\n    fn: flip,\n    /**\n     * @prop {String|Array} behavior='flip'\n     * The behavior used to change the popper's placement. It can be one of\n     * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid\n     * placements (with optional variations)\n     */\n    behavior: 'flip',\n    /**\n     * @prop {number} padding=5\n     * The popper will flip if it hits the edges of the `boundariesElement`\n     */\n    padding: 5,\n    /**\n     * @prop {String|HTMLElement} boundariesElement='viewport'\n     * The element which will define the boundaries of the popper position.\n     * The popper will never be placed outside of the defined boundaries\n     * (except if `keepTogether` is enabled)\n     */\n    boundariesElement: 'viewport',\n    /**\n     * @prop {Boolean} flipVariations=false\n     * The popper will switch placement variation between `-start` and `-end` when\n     * the reference element overlaps its boundaries.\n     *\n     * The original placement should have a set variation.\n     */\n    flipVariations: false,\n    /**\n     * @prop {Boolean} flipVariationsByContent=false\n     * The popper will switch placement variation between `-start` and `-end` when\n     * the popper element overlaps its reference boundaries.\n     *\n     * The original placement should have a set variation.\n     */\n    flipVariationsByContent: false\n  },\n\n  /**\n   * Modifier used to make the popper flow toward the inner of the reference element.\n   * By default, when this modifier is disabled, the popper will be placed outside\n   * the reference element.\n   * @memberof modifiers\n   * @inner\n   */\n  inner: {\n    /** @prop {number} order=700 - Index used to define the order of execution */\n    order: 700,\n    /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */\n    enabled: false,\n    /** @prop {ModifierFn} */\n    fn: inner\n  },\n\n  /**\n   * Modifier used to hide the popper when its reference element is outside of the\n   * popper boundaries. It will set a `x-out-of-boundaries` attribute which can\n   * be used to hide with a CSS selector the popper when its reference is\n   * out of boundaries.\n   *\n   * Requires the `preventOverflow` modifier before it in order to work.\n   * @memberof modifiers\n   * @inner\n   */\n  hide: {\n    /** @prop {number} order=800 - Index used to define the order of execution */\n    order: 800,\n    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n    enabled: true,\n    /** @prop {ModifierFn} */\n    fn: hide\n  },\n\n  /**\n   * Computes the style that will be applied to the popper element to gets\n   * properly positioned.\n   *\n   * Note that this modifier will not touch the DOM, it just prepares the styles\n   * so that `applyStyle` modifier can apply it. This separation is useful\n   * in case you need to replace `applyStyle` with a custom implementation.\n   *\n   * This modifier has `850` as `order` value to maintain backward compatibility\n   * with previous versions of Popper.js. Expect the modifiers ordering method\n   * to change in future major versions of the library.\n   *\n   * @memberof modifiers\n   * @inner\n   */\n  computeStyle: {\n    /** @prop {number} order=850 - Index used to define the order of execution */\n    order: 850,\n    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n    enabled: true,\n    /** @prop {ModifierFn} */\n    fn: computeStyle,\n    /**\n     * @prop {Boolean} gpuAcceleration=true\n     * If true, it uses the CSS 3D transformation to position the popper.\n     * Otherwise, it will use the `top` and `left` properties\n     */\n    gpuAcceleration: true,\n    /**\n     * @prop {string} [x='bottom']\n     * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.\n     * Change this if your popper should grow in a direction different from `bottom`\n     */\n    x: 'bottom',\n    /**\n     * @prop {string} [x='left']\n     * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.\n     * Change this if your popper should grow in a direction different from `right`\n     */\n    y: 'right'\n  },\n\n  /**\n   * Applies the computed styles to the popper element.\n   *\n   * All the DOM manipulations are limited to this modifier. This is useful in case\n   * you want to integrate Popper.js inside a framework or view library and you\n   * want to delegate all the DOM manipulations to it.\n   *\n   * Note that if you disable this modifier, you must make sure the popper element\n   * has its position set to `absolute` before Popper.js can do its work!\n   *\n   * Just disable this modifier and define your own to achieve the desired effect.\n   *\n   * @memberof modifiers\n   * @inner\n   */\n  applyStyle: {\n    /** @prop {number} order=900 - Index used to define the order of execution */\n    order: 900,\n    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n    enabled: true,\n    /** @prop {ModifierFn} */\n    fn: applyStyle,\n    /** @prop {Function} */\n    onLoad: applyStyleOnLoad,\n    /**\n     * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier\n     * @prop {Boolean} gpuAcceleration=true\n     * If true, it uses the CSS 3D transformation to position the popper.\n     * Otherwise, it will use the `top` and `left` properties\n     */\n    gpuAcceleration: undefined\n  }\n};\n\n/**\n * The `dataObject` is an object containing all the information used by Popper.js.\n * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.\n * @name dataObject\n * @property {Object} data.instance The Popper.js instance\n * @property {String} data.placement Placement applied to popper\n * @property {String} data.originalPlacement Placement originally defined on init\n * @property {Boolean} data.flipped True if popper has been flipped by flip modifier\n * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper\n * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier\n * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.boundaries Offsets of the popper boundaries\n * @property {Object} data.offsets The measurements of popper, reference and arrow elements\n * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0\n */\n\n/**\n * Default options provided to Popper.js constructor.<br />\n * These can be overridden using the `options` argument of Popper.js.<br />\n * To override an option, simply pass an object with the same\n * structure of the `options` object, as the 3rd argument. For example:\n * ```\n * new Popper(ref, pop, {\n *   modifiers: {\n *     preventOverflow: { enabled: false }\n *   }\n * })\n * ```\n * @type {Object}\n * @static\n * @memberof Popper\n */\nvar Defaults = {\n  /**\n   * Popper's placement.\n   * @prop {Popper.placements} placement='bottom'\n   */\n  placement: 'bottom',\n\n  /**\n   * Set this to true if you want popper to position it self in 'fixed' mode\n   * @prop {Boolean} positionFixed=false\n   */\n  positionFixed: false,\n\n  /**\n   * Whether events (resize, scroll) are initially enabled.\n   * @prop {Boolean} eventsEnabled=true\n   */\n  eventsEnabled: true,\n\n  /**\n   * Set to true if you want to automatically remove the popper when\n   * you call the `destroy` method.\n   * @prop {Boolean} removeOnDestroy=false\n   */\n  removeOnDestroy: false,\n\n  /**\n   * Callback called when the popper is created.<br />\n   * By default, it is set to no-op.<br />\n   * Access Popper.js instance with `data.instance`.\n   * @prop {onCreate}\n   */\n  onCreate: function onCreate() {},\n\n  /**\n   * Callback called when the popper is updated. This callback is not called\n   * on the initialization/creation of the popper, but only on subsequent\n   * updates.<br />\n   * By default, it is set to no-op.<br />\n   * Access Popper.js instance with `data.instance`.\n   * @prop {onUpdate}\n   */\n  onUpdate: function onUpdate() {},\n\n  /**\n   * List of modifiers used to modify the offsets before they are applied to the popper.\n   * They provide most of the functionalities of Popper.js.\n   * @prop {modifiers}\n   */\n  modifiers: modifiers\n};\n\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n\n// Utils\n// Methods\nvar Popper = function () {\n  /**\n   * Creates a new Popper.js instance.\n   * @class Popper\n   * @param {Element|referenceObject} reference - The reference element used to position the popper\n   * @param {Element} popper - The HTML / XML element used as the popper\n   * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)\n   * @return {Object} instance - The generated Popper.js instance\n   */\n  function Popper(reference, popper) {\n    var _this = this;\n\n    var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n    classCallCheck(this, Popper);\n\n    this.scheduleUpdate = function () {\n      return requestAnimationFrame(_this.update);\n    };\n\n    // make update() debounced, so that it only runs at most once-per-tick\n    this.update = debounce(this.update.bind(this));\n\n    // with {} we create a new object with the options inside it\n    this.options = _extends({}, Popper.Defaults, options);\n\n    // init state\n    this.state = {\n      isDestroyed: false,\n      isCreated: false,\n      scrollParents: []\n    };\n\n    // get reference and popper elements (allow jQuery wrappers)\n    this.reference = reference && reference.jquery ? reference[0] : reference;\n    this.popper = popper && popper.jquery ? popper[0] : popper;\n\n    // Deep merge modifiers options\n    this.options.modifiers = {};\n    Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {\n      _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});\n    });\n\n    // Refactoring modifiers' list (Object => Array)\n    this.modifiers = Object.keys(this.options.modifiers).map(function (name) {\n      return _extends({\n        name: name\n      }, _this.options.modifiers[name]);\n    })\n    // sort the modifiers by order\n    .sort(function (a, b) {\n      return a.order - b.order;\n    });\n\n    // modifiers have the ability to execute arbitrary code when Popper.js get inited\n    // such code is executed in the same order of its modifier\n    // they could add new properties to their options configuration\n    // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!\n    this.modifiers.forEach(function (modifierOptions) {\n      if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {\n        modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);\n      }\n    });\n\n    // fire the first update to position the popper in the right place\n    this.update();\n\n    var eventsEnabled = this.options.eventsEnabled;\n    if (eventsEnabled) {\n      // setup event listeners, they will take care of update the position in specific situations\n      this.enableEventListeners();\n    }\n\n    this.state.eventsEnabled = eventsEnabled;\n  }\n\n  // We can't use class properties because they don't get listed in the\n  // class prototype and break stuff like Sinon stubs\n\n\n  createClass(Popper, [{\n    key: 'update',\n    value: function update$$1() {\n      return update.call(this);\n    }\n  }, {\n    key: 'destroy',\n    value: function destroy$$1() {\n      return destroy.call(this);\n    }\n  }, {\n    key: 'enableEventListeners',\n    value: function enableEventListeners$$1() {\n      return enableEventListeners.call(this);\n    }\n  }, {\n    key: 'disableEventListeners',\n    value: function disableEventListeners$$1() {\n      return disableEventListeners.call(this);\n    }\n\n    /**\n     * Schedules an update. It will run on the next UI update available.\n     * @method scheduleUpdate\n     * @memberof Popper\n     */\n\n\n    /**\n     * Collection of utilities useful when writing custom modifiers.\n     * Starting from version 1.7, this method is available only if you\n     * include `popper-utils.js` before `popper.js`.\n     *\n     * **DEPRECATION**: This way to access PopperUtils is deprecated\n     * and will be removed in v2! Use the PopperUtils module directly instead.\n     * Due to the high instability of the methods contained in Utils, we can't\n     * guarantee them to follow semver. Use them at your own risk!\n     * @static\n     * @private\n     * @type {Object}\n     * @deprecated since version 1.8\n     * @member Utils\n     * @memberof Popper\n     */\n\n  }]);\n  return Popper;\n}();\n\n/**\n * The `referenceObject` is an object that provides an interface compatible with Popper.js\n * and lets you use it as replacement of a real DOM node.<br />\n * You can use this method to position a popper relatively to a set of coordinates\n * in case you don't have a DOM node to use as reference.\n *\n * ```\n * new Popper(referenceObject, popperNode);\n * ```\n *\n * NB: This feature isn't supported in Internet Explorer 10.\n * @name referenceObject\n * @property {Function} data.getBoundingClientRect\n * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.\n * @property {number} data.clientWidth\n * An ES6 getter that will return the width of the virtual reference element.\n * @property {number} data.clientHeight\n * An ES6 getter that will return the height of the virtual reference element.\n */\n\n\nPopper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;\nPopper.placements = placements;\nPopper.Defaults = Defaults;\n\nreturn Popper;\n\n})));\n\n\n})((function(){ function newDefine(){ var args = Array.prototype.slice.call(arguments); args.unshift(\"popper.js\"); return define.apply(null, args); }; newDefine.amd = true; return newDefine; })());","(function(define){\n/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.3.3\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('popper.js')) :\n\ttypeof define === 'function' && define.amd ? define(['popper.js'], factory) :\n\t(global.Tooltip = factory(global.Popper));\n}(this, (function (Popper) { 'use strict';\n\nPopper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;\n\n/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\nfunction isFunction(functionToCheck) {\n  var getType = {};\n  return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n}\n\nvar classCallCheck = function (instance, Constructor) {\n  if (!(instance instanceof Constructor)) {\n    throw new TypeError(\"Cannot call a class as a function\");\n  }\n};\n\nvar createClass = function () {\n  function defineProperties(target, props) {\n    for (var i = 0; i < props.length; i++) {\n      var 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  return function (Constructor, protoProps, staticProps) {\n    if (protoProps) defineProperties(Constructor.prototype, protoProps);\n    if (staticProps) defineProperties(Constructor, staticProps);\n    return Constructor;\n  };\n}();\n\n\n\n\n\n\n\nvar _extends = Object.assign || function (target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = arguments[i];\n\n    for (var key in source) {\n      if (Object.prototype.hasOwnProperty.call(source, key)) {\n        target[key] = source[key];\n      }\n    }\n  }\n\n  return target;\n};\n\nvar DEFAULT_OPTIONS = {\n  container: false,\n  delay: 0,\n  html: false,\n  placement: 'top',\n  title: '',\n  template: '<div class=\"tooltip\" role=\"tooltip\"><div class=\"tooltip-arrow\"></div><div class=\"tooltip-inner\"></div></div>',\n  trigger: 'hover focus',\n  offset: 0,\n  arrowSelector: '.tooltip-arrow, .tooltip__arrow',\n  innerSelector: '.tooltip-inner, .tooltip__inner'\n};\n\nvar Tooltip = function () {\n  /**\n   * Create a new Tooltip.js instance\n   * @class Tooltip\n   * @param {HTMLElement} reference - The DOM node used as reference of the tooltip (it can be a jQuery element).\n   * @param {Object} options\n   * @param {String} options.placement='top'\n   *      Placement of the popper accepted values: `top(-start, -end), right(-start, -end), bottom(-start, -end),\n   *      left(-start, -end)`\n   * @param {String} [options.arrowSelector='.tooltip-arrow, .tooltip__arrow'] - className used to locate the DOM arrow element in the tooltip.\n   * @param {String} [options.innerSelector='.tooltip-inner, .tooltip__inner'] - className used to locate the DOM inner element in the tooltip.\n   * @param {HTMLElement|String|false} options.container=false - Append the tooltip to a specific element.\n   * @param {Number|Object} options.delay=0\n   *      Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type.\n   *      If a number is supplied, delay is applied to both hide/show.\n   *      Object structure is: `{ show: 500, hide: 100 }`\n   * @param {Boolean} options.html=false - Insert HTML into the tooltip. If false, the content will inserted with `textContent`.\n   * @param {String} [options.template='<div class=\"tooltip\" role=\"tooltip\"><div class=\"tooltip-arrow\"></div><div class=\"tooltip-inner\"></div></div>']\n   *      Base HTML to used when creating the tooltip.\n   *      The tooltip's `title` will be injected into the `.tooltip-inner` or `.tooltip__inner`.\n   *      `.tooltip-arrow` or `.tooltip__arrow` will become the tooltip's arrow.\n   *      The outermost wrapper element should have the `.tooltip` class.\n   * @param {String|HTMLElement|TitleFunction} options.title='' - Default title value if `title` attribute isn't present.\n   * @param {String} [options.trigger='hover focus']\n   *      How tooltip is triggered - click, hover, focus, manual.\n   *      You may pass multiple triggers; separate them with a space. `manual` cannot be combined with any other trigger.\n   * @param {Boolean} options.closeOnClickOutside=false - Close a popper on click outside of the popper and reference element. This has effect only when options.trigger is 'click'.\n   * @param {String|HTMLElement} options.boundariesElement\n   *      The element used as boundaries for the tooltip. For more information refer to Popper.js'\n   *      [boundariesElement docs](https://popper.js.org/popper-documentation.html)\n   * @param {Number|String} options.offset=0 - Offset of the tooltip relative to its reference. For more information refer to Popper.js'\n   *      [offset docs](https://popper.js.org/popper-documentation.html)\n   * @param {Object} options.popperOptions={} - Popper options, will be passed directly to popper instance. For more information refer to Popper.js'\n   *      [options docs](https://popper.js.org/popper-documentation.html)\n   * @return {Object} instance - The generated tooltip instance\n   */\n  function Tooltip(reference, options) {\n    classCallCheck(this, Tooltip);\n\n    _initialiseProps.call(this);\n\n    // apply user options over default ones\n    options = _extends({}, DEFAULT_OPTIONS, options);\n\n    reference.jquery && (reference = reference[0]);\n\n    // cache reference and options\n    this.reference = reference;\n    this.options = options;\n\n    // get events list\n    var events = typeof options.trigger === 'string' ? options.trigger.split(' ').filter(function (trigger) {\n      return ['click', 'hover', 'focus'].indexOf(trigger) !== -1;\n    }) : [];\n\n    // set initial state\n    this._isOpen = false;\n    this._popperOptions = {};\n\n    // set event listeners\n    this._setEventListeners(reference, events, options);\n  }\n\n  //\n  // Public methods\n  //\n\n  /**\n   * Reveals an element's tooltip. This is considered a \"manual\" triggering of the tooltip.\n   * Tooltips with zero-length titles are never displayed.\n   * @method Tooltip#show\n   * @memberof Tooltip\n   */\n\n\n  /**\n   * Hides an element’s tooltip. This is considered a “manual” triggering of the tooltip.\n   * @method Tooltip#hide\n   * @memberof Tooltip\n   */\n\n\n  /**\n   * Hides and destroys an element’s tooltip.\n   * @method Tooltip#dispose\n   * @memberof Tooltip\n   */\n\n\n  /**\n   * Toggles an element’s tooltip. This is considered a “manual” triggering of the tooltip.\n   * @method Tooltip#toggle\n   * @memberof Tooltip\n   */\n\n\n  /**\n   * Updates the tooltip's title content\n   * @method Tooltip#updateTitleContent\n   * @memberof Tooltip\n   * @param {String|HTMLElement} title - The new content to use for the title\n   */\n\n\n  //\n  // Private methods\n  //\n\n  createClass(Tooltip, [{\n    key: '_create',\n\n\n    /**\n     * Creates a new tooltip node\n     * @memberof Tooltip\n     * @private\n     * @param {HTMLElement} reference\n     * @param {String} template\n     * @param {String|HTMLElement|TitleFunction} title\n     * @param {Boolean} allowHtml\n     * @return {HTMLElement} tooltipNode\n     */\n    value: function _create(reference, template, title, allowHtml) {\n      // create tooltip element\n      var tooltipGenerator = window.document.createElement('div');\n      tooltipGenerator.innerHTML = template.trim();\n      var tooltipNode = tooltipGenerator.childNodes[0];\n\n      // add unique ID to our tooltip (needed for accessibility reasons)\n      tooltipNode.id = 'tooltip_' + Math.random().toString(36).substr(2, 10);\n\n      // set initial `aria-hidden` state to `false` (it's visible!)\n      tooltipNode.setAttribute('aria-hidden', 'false');\n\n      // add title to tooltip\n      var titleNode = tooltipGenerator.querySelector(this.options.innerSelector);\n      this._addTitleContent(reference, title, allowHtml, titleNode);\n\n      // return the generated tooltip node\n      return tooltipNode;\n    }\n  }, {\n    key: '_addTitleContent',\n    value: function _addTitleContent(reference, title, allowHtml, titleNode) {\n      if (title.nodeType === 1 || title.nodeType === 11) {\n        // if title is a element node or document fragment, append it only if allowHtml is true\n        allowHtml && titleNode.appendChild(title);\n      } else if (isFunction(title)) {\n        // Recursively call ourself so that the return value of the function gets handled appropriately - either\n        // as a dom node, a string, or even as another function.\n        this._addTitleContent(reference, title.call(reference), allowHtml, titleNode);\n      } else {\n        // if it's just a simple text, set textContent or innerHtml depending by `allowHtml` value\n        allowHtml ? titleNode.innerHTML = title : titleNode.textContent = title;\n      }\n    }\n  }, {\n    key: '_show',\n    value: function _show(reference, options) {\n      // don't show if it's already visible\n      // or if it's not being showed\n      if (this._isOpen && !this._isOpening) {\n        return this;\n      }\n      this._isOpen = true;\n\n      // if the tooltipNode already exists, just show it\n      if (this._tooltipNode) {\n        this._tooltipNode.style.visibility = 'visible';\n        this._tooltipNode.setAttribute('aria-hidden', 'false');\n        this.popperInstance.update();\n        return this;\n      }\n\n      // get title\n      var title = reference.getAttribute('title') || options.title;\n\n      // don't show tooltip if no title is defined\n      if (!title) {\n        return this;\n      }\n\n      // create tooltip node\n      var tooltipNode = this._create(reference, options.template, title, options.html);\n\n      // Add `aria-describedby` to our reference element for accessibility reasons\n      reference.setAttribute('aria-describedby', tooltipNode.id);\n\n      // append tooltip to container\n      var container = this._findContainer(options.container, reference);\n\n      this._append(tooltipNode, container);\n\n      this._popperOptions = _extends({}, options.popperOptions, {\n        placement: options.placement\n      });\n\n      this._popperOptions.modifiers = _extends({}, this._popperOptions.modifiers, {\n        arrow: _extends({}, this._popperOptions.modifiers && this._popperOptions.modifiers.arrow, {\n          element: options.arrowSelector\n        }),\n        offset: _extends({}, this._popperOptions.modifiers && this._popperOptions.modifiers.offset, {\n          offset: options.offset || this._popperOptions.modifiers && this._popperOptions.modifiers.offset && this._popperOptions.modifiers.offset.offset || options.offset\n        })\n      });\n\n      if (options.boundariesElement) {\n        this._popperOptions.modifiers.preventOverflow = {\n          boundariesElement: options.boundariesElement\n        };\n      }\n\n      this.popperInstance = new Popper(reference, tooltipNode, this._popperOptions);\n\n      this._tooltipNode = tooltipNode;\n\n      return this;\n    }\n  }, {\n    key: '_hide',\n    value: function _hide() /*reference, options*/{\n      // don't hide if it's already hidden\n      if (!this._isOpen) {\n        return this;\n      }\n\n      this._isOpen = false;\n\n      // hide tooltipNode\n      this._tooltipNode.style.visibility = 'hidden';\n      this._tooltipNode.setAttribute('aria-hidden', 'true');\n\n      return this;\n    }\n  }, {\n    key: '_dispose',\n    value: function _dispose() {\n      var _this = this;\n\n      // remove event listeners first to prevent any unexpected behaviour\n      this._events.forEach(function (_ref) {\n        var func = _ref.func,\n            event = _ref.event;\n\n        _this.reference.removeEventListener(event, func);\n      });\n      this._events = [];\n\n      if (this._tooltipNode) {\n        this._hide();\n\n        // destroy instance\n        this.popperInstance.destroy();\n\n        // destroy tooltipNode if removeOnDestroy is not set, as popperInstance.destroy() already removes the element\n        if (!this.popperInstance.options.removeOnDestroy) {\n          this._tooltipNode.parentNode.removeChild(this._tooltipNode);\n          this._tooltipNode = null;\n        }\n      }\n      return this;\n    }\n  }, {\n    key: '_findContainer',\n    value: function _findContainer(container, reference) {\n      // if container is a query, get the relative element\n      if (typeof container === 'string') {\n        container = window.document.querySelector(container);\n      } else if (container === false) {\n        // if container is `false`, set it to reference parent\n        container = reference.parentNode;\n      }\n      return container;\n    }\n\n    /**\n     * Append tooltip to container\n     * @memberof Tooltip\n     * @private\n     * @param {HTMLElement} tooltipNode\n     * @param {HTMLElement|String|false} container\n     */\n\n  }, {\n    key: '_append',\n    value: function _append(tooltipNode, container) {\n      container.appendChild(tooltipNode);\n    }\n  }, {\n    key: '_setEventListeners',\n    value: function _setEventListeners(reference, events, options) {\n      var _this2 = this;\n\n      var directEvents = [];\n      var oppositeEvents = [];\n\n      events.forEach(function (event) {\n        switch (event) {\n          case 'hover':\n            directEvents.push('mouseenter');\n            oppositeEvents.push('mouseleave');\n            break;\n          case 'focus':\n            directEvents.push('focus');\n            oppositeEvents.push('blur');\n            break;\n          case 'click':\n            directEvents.push('click');\n            oppositeEvents.push('click');\n            break;\n        }\n      });\n\n      // schedule show tooltip\n      directEvents.forEach(function (event) {\n        var func = function func(evt) {\n          if (_this2._isOpening === true) {\n            return;\n          }\n          evt.usedByTooltip = true;\n          _this2._scheduleShow(reference, options.delay, options, evt);\n        };\n        _this2._events.push({ event: event, func: func });\n        reference.addEventListener(event, func);\n      });\n\n      // schedule hide tooltip\n      oppositeEvents.forEach(function (event) {\n        var func = function func(evt) {\n          if (evt.usedByTooltip === true) {\n            return;\n          }\n          _this2._scheduleHide(reference, options.delay, options, evt);\n        };\n        _this2._events.push({ event: event, func: func });\n        reference.addEventListener(event, func);\n        if (event === 'click' && options.closeOnClickOutside) {\n          document.addEventListener('mousedown', function (e) {\n            if (!_this2._isOpening) {\n              return;\n            }\n            var popper = _this2.popperInstance.popper;\n            if (reference.contains(e.target) || popper.contains(e.target)) {\n              return;\n            }\n            func(e);\n          }, true);\n        }\n      });\n    }\n  }, {\n    key: '_scheduleShow',\n    value: function _scheduleShow(reference, delay, options /*, evt */) {\n      var _this3 = this;\n\n      this._isOpening = true;\n      // defaults to 0\n      var computedDelay = delay && delay.show || delay || 0;\n      this._showTimeout = window.setTimeout(function () {\n        return _this3._show(reference, options);\n      }, computedDelay);\n    }\n  }, {\n    key: '_scheduleHide',\n    value: function _scheduleHide(reference, delay, options, evt) {\n      var _this4 = this;\n\n      this._isOpening = false;\n      // defaults to 0\n      var computedDelay = delay && delay.hide || delay || 0;\n      window.clearTimeout(this._showTimeout);\n      window.setTimeout(function () {\n        if (_this4._isOpen === false) {\n          return;\n        }\n        if (!document.body.contains(_this4._tooltipNode)) {\n          return;\n        }\n\n        // if we are hiding because of a mouseleave, we must check that the new\n        // reference isn't the tooltip, because in this case we don't want to hide it\n        if (evt.type === 'mouseleave') {\n          var isSet = _this4._setTooltipNodeEvent(evt, reference, delay, options);\n\n          // if we set the new event, don't hide the tooltip yet\n          // the new event will take care to hide it if necessary\n          if (isSet) {\n            return;\n          }\n        }\n\n        _this4._hide(reference, options);\n      }, computedDelay);\n    }\n  }, {\n    key: '_updateTitleContent',\n    value: function _updateTitleContent(title) {\n      if (typeof this._tooltipNode === 'undefined') {\n        if (typeof this.options.title !== 'undefined') {\n          this.options.title = title;\n        }\n        return;\n      }\n      var titleNode = this._tooltipNode.querySelector(this.options.innerSelector);\n      this._clearTitleContent(titleNode, this.options.html, this.reference.getAttribute('title') || this.options.title);\n      this._addTitleContent(this.reference, title, this.options.html, titleNode);\n      this.options.title = title;\n      this.popperInstance.update();\n    }\n  }, {\n    key: '_clearTitleContent',\n    value: function _clearTitleContent(titleNode, allowHtml, lastTitle) {\n      if (lastTitle.nodeType === 1 || lastTitle.nodeType === 11) {\n        allowHtml && titleNode.removeChild(lastTitle);\n      } else {\n        allowHtml ? titleNode.innerHTML = '' : titleNode.textContent = '';\n      }\n    }\n  }]);\n  return Tooltip;\n}();\n\n/**\n * Title function, its context is the Tooltip instance.\n * @memberof Tooltip\n * @callback TitleFunction\n * @return {String} placement - The desired title.\n */\n\n\nvar _initialiseProps = function _initialiseProps() {\n  var _this5 = this;\n\n  this.show = function () {\n    return _this5._show(_this5.reference, _this5.options);\n  };\n\n  this.hide = function () {\n    return _this5._hide();\n  };\n\n  this.dispose = function () {\n    return _this5._dispose();\n  };\n\n  this.toggle = function () {\n    if (_this5._isOpen) {\n      return _this5.hide();\n    } else {\n      return _this5.show();\n    }\n  };\n\n  this.updateTitleContent = function (title) {\n    return _this5._updateTitleContent(title);\n  };\n\n  this._events = [];\n\n  this._setTooltipNodeEvent = function (evt, reference, delay, options) {\n    var relatedreference = evt.relatedreference || evt.toElement || evt.relatedTarget;\n\n    var callback = function callback(evt2) {\n      var relatedreference2 = evt2.relatedreference || evt2.toElement || evt2.relatedTarget;\n\n      // Remove event listener after call\n      _this5._tooltipNode.removeEventListener(evt.type, callback);\n\n      // If the new reference is not the reference element\n      if (!reference.contains(relatedreference2)) {\n        // Schedule to hide tooltip\n        _this5._scheduleHide(reference, options.delay, options, evt2);\n      }\n    };\n\n    if (_this5._tooltipNode.contains(relatedreference)) {\n      // listen to mouseleave on the tooltip element to be able to hide the tooltip\n      _this5._tooltipNode.addEventListener(evt.type, callback);\n      return true;\n    }\n\n    return false;\n  };\n};\n\nreturn Tooltip;\n\n})));\n\n\n})((function(){ function newDefine(){ var args = Array.prototype.slice.call(arguments); args.unshift(\"tooltip.js\"); return define.apply(null, args); }; newDefine.amd = true; return newDefine; })());","if (typeof FastBoot === 'undefined') { /*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */\r\n\r\n/*************************\r\n Velocity jQuery Shim\r\n *************************/\r\n\r\n/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */\r\n\r\n/* This file contains the jQuery functions that Velocity relies on, thereby removing Velocity's dependency on a full copy of jQuery, and allowing it to work in any environment. */\r\n/* These shimmed functions are only used if jQuery isn't present. If both this shim and jQuery are loaded, Velocity defaults to jQuery proper. */\r\n/* Browser support: Using this shim instead of jQuery proper removes support for IE8. */\r\n\r\n(function(window) {\r\n\t\"use strict\";\r\n\t/***************\r\n\t Setup\r\n\t ***************/\r\n\r\n\t/* If jQuery is already loaded, there's no point in loading this shim. */\r\n\tif (window.jQuery) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t/* jQuery base. */\r\n\tvar $ = function(selector, context) {\r\n\t\treturn new $.fn.init(selector, context);\r\n\t};\r\n\r\n\t/********************\r\n\t Private Methods\r\n\t ********************/\r\n\r\n\t/* jQuery */\r\n\t$.isWindow = function(obj) {\r\n\t\t/* jshint eqeqeq: false */\r\n\t\treturn obj && obj === obj.window;\r\n\t};\r\n\r\n\t/* jQuery */\r\n\t$.type = function(obj) {\r\n\t\tif (!obj) {\r\n\t\t\treturn obj + \"\";\r\n\t\t}\r\n\r\n\t\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\r\n\t\t\t\tclass2type[toString.call(obj)] || \"object\" :\r\n\t\t\t\ttypeof obj;\r\n\t};\r\n\r\n\t/* jQuery */\r\n\t$.isArray = Array.isArray || function(obj) {\r\n\t\treturn $.type(obj) === \"array\";\r\n\t};\r\n\r\n\t/* jQuery */\r\n\tfunction isArraylike(obj) {\r\n\t\tvar length = obj.length,\r\n\t\t\t\ttype = $.type(obj);\r\n\r\n\t\tif (type === \"function\" || $.isWindow(obj)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (obj.nodeType === 1 && length) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn type === \"array\" || length === 0 || typeof length === \"number\" && length > 0 && (length - 1) in obj;\r\n\t}\r\n\r\n\t/***************\r\n\t $ Methods\r\n\t ***************/\r\n\r\n\t/* jQuery: Support removed for IE<9. */\r\n\t$.isPlainObject = function(obj) {\r\n\t\tvar key;\r\n\r\n\t\tif (!obj || $.type(obj) !== \"object\" || obj.nodeType || $.isWindow(obj)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tif (obj.constructor &&\r\n\t\t\t\t\t!hasOwn.call(obj, \"constructor\") &&\r\n\t\t\t\t\t!hasOwn.call(obj.constructor.prototype, \"isPrototypeOf\")) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} catch (e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfor (key in obj) {\r\n\t\t}\r\n\r\n\t\treturn key === undefined || hasOwn.call(obj, key);\r\n\t};\r\n\r\n\t/* jQuery */\r\n\t$.each = function(obj, callback, args) {\r\n\t\tvar value,\r\n\t\t\t\ti = 0,\r\n\t\t\t\tlength = obj.length,\r\n\t\t\t\tisArray = isArraylike(obj);\r\n\r\n\t\tif (args) {\r\n\t\t\tif (isArray) {\r\n\t\t\t\tfor (; i < length; i++) {\r\n\t\t\t\t\tvalue = callback.apply(obj[i], args);\r\n\r\n\t\t\t\t\tif (value === false) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (i in obj) {\r\n\t\t\t\t\tif (!obj.hasOwnProperty(i)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvalue = callback.apply(obj[i], args);\r\n\r\n\t\t\t\t\tif (value === false) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tif (isArray) {\r\n\t\t\t\tfor (; i < length; i++) {\r\n\t\t\t\t\tvalue = callback.call(obj[i], i, obj[i]);\r\n\r\n\t\t\t\t\tif (value === false) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (i in obj) {\r\n\t\t\t\t\tif (!obj.hasOwnProperty(i)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvalue = callback.call(obj[i], i, obj[i]);\r\n\r\n\t\t\t\t\tif (value === false) {\r\n\t\t\t\t\t\tbreak;\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\treturn obj;\r\n\t};\r\n\r\n\t/* Custom */\r\n\t$.data = function(node, key, value) {\r\n\t\t/* $.getData() */\r\n\t\tif (value === undefined) {\r\n\t\t\tvar getId = node[$.expando],\r\n\t\t\t\t\tstore = getId && cache[getId];\r\n\r\n\t\t\tif (key === undefined) {\r\n\t\t\t\treturn store;\r\n\t\t\t} else if (store) {\r\n\t\t\t\tif (key in store) {\r\n\t\t\t\t\treturn store[key];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/* $.setData() */\r\n\t\t} else if (key !== undefined) {\r\n\t\t\tvar setId = node[$.expando] || (node[$.expando] = ++$.uuid);\r\n\r\n\t\t\tcache[setId] = cache[setId] || {};\r\n\t\t\tcache[setId][key] = value;\r\n\r\n\t\t\treturn value;\r\n\t\t}\r\n\t};\r\n\r\n\t/* Custom */\r\n\t$.removeData = function(node, keys) {\r\n\t\tvar id = node[$.expando],\r\n\t\t\t\tstore = id && cache[id];\r\n\r\n\t\tif (store) {\r\n\t\t\t// Cleanup the entire store if no keys are provided.\r\n\t\t\tif (!keys) {\r\n\t\t\t\tdelete cache[id];\r\n\t\t\t} else {\r\n\t\t\t\t$.each(keys, function(_, key) {\r\n\t\t\t\t\tdelete store[key];\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t/* jQuery */\r\n\t$.extend = function() {\r\n\t\tvar src, copyIsArray, copy, name, options, clone,\r\n\t\t\t\ttarget = arguments[0] || {},\r\n\t\t\t\ti = 1,\r\n\t\t\t\tlength = arguments.length,\r\n\t\t\t\tdeep = false;\r\n\r\n\t\tif (typeof target === \"boolean\") {\r\n\t\t\tdeep = target;\r\n\r\n\t\t\ttarget = arguments[i] || {};\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tif (typeof target !== \"object\" && $.type(target) !== \"function\") {\r\n\t\t\ttarget = {};\r\n\t\t}\r\n\r\n\t\tif (i === length) {\r\n\t\t\ttarget = this;\r\n\t\t\ti--;\r\n\t\t}\r\n\r\n\t\tfor (; i < length; i++) {\r\n\t\t\tif ((options = arguments[i])) {\r\n\t\t\t\tfor (name in options) {\r\n\t\t\t\t\tif (!options.hasOwnProperty(name)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsrc = target[name];\r\n\t\t\t\t\tcopy = options[name];\r\n\r\n\t\t\t\t\tif (target === copy) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy)))) {\r\n\t\t\t\t\t\tif (copyIsArray) {\r\n\t\t\t\t\t\t\tcopyIsArray = false;\r\n\t\t\t\t\t\t\tclone = src && $.isArray(src) ? src : [];\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tclone = src && $.isPlainObject(src) ? src : {};\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\ttarget[name] = $.extend(deep, clone, copy);\r\n\r\n\t\t\t\t\t} else if (copy !== undefined) {\r\n\t\t\t\t\t\ttarget[name] = copy;\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\treturn target;\r\n\t};\r\n\r\n\t/* jQuery 1.4.3 */\r\n\t$.queue = function(elem, type, data) {\r\n\t\tfunction $makeArray(arr, results) {\r\n\t\t\tvar ret = results || [];\r\n\r\n\t\t\tif (arr) {\r\n\t\t\t\tif (isArraylike(Object(arr))) {\r\n\t\t\t\t\t/* $.merge */\r\n\t\t\t\t\t(function(first, second) {\r\n\t\t\t\t\t\tvar len = +second.length,\r\n\t\t\t\t\t\t\t\tj = 0,\r\n\t\t\t\t\t\t\t\ti = first.length;\r\n\r\n\t\t\t\t\t\twhile (j < len) {\r\n\t\t\t\t\t\t\tfirst[i++] = second[j++];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (len !== len) {\r\n\t\t\t\t\t\t\twhile (second[j] !== undefined) {\r\n\t\t\t\t\t\t\t\tfirst[i++] = second[j++];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tfirst.length = i;\r\n\r\n\t\t\t\t\t\treturn first;\r\n\t\t\t\t\t})(ret, typeof arr === \"string\" ? [arr] : arr);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t[].push.call(ret, arr);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn ret;\r\n\t\t}\r\n\r\n\t\tif (!elem) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\ttype = (type || \"fx\") + \"queue\";\r\n\r\n\t\tvar q = $.data(elem, type);\r\n\r\n\t\tif (!data) {\r\n\t\t\treturn q || [];\r\n\t\t}\r\n\r\n\t\tif (!q || $.isArray(data)) {\r\n\t\t\tq = $.data(elem, type, $makeArray(data));\r\n\t\t} else {\r\n\t\t\tq.push(data);\r\n\t\t}\r\n\r\n\t\treturn q;\r\n\t};\r\n\r\n\t/* jQuery 1.4.3 */\r\n\t$.dequeue = function(elems, type) {\r\n\t\t/* Custom: Embed element iteration. */\r\n\t\t$.each(elems.nodeType ? [elems] : elems, function(i, elem) {\r\n\t\t\ttype = type || \"fx\";\r\n\r\n\t\t\tvar queue = $.queue(elem, type),\r\n\t\t\t\t\tfn = queue.shift();\r\n\r\n\t\t\tif (fn === \"inprogress\") {\r\n\t\t\t\tfn = queue.shift();\r\n\t\t\t}\r\n\r\n\t\t\tif (fn) {\r\n\t\t\t\tif (type === \"fx\") {\r\n\t\t\t\t\tqueue.unshift(\"inprogress\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfn.call(elem, function() {\r\n\t\t\t\t\t$.dequeue(elem, type);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\t/******************\r\n\t $.fn Methods\r\n\t ******************/\r\n\r\n\t/* jQuery */\r\n\t$.fn = $.prototype = {\r\n\t\tinit: function(selector) {\r\n\t\t\t/* Just return the element wrapped inside an array; don't proceed with the actual jQuery node wrapping process. */\r\n\t\t\tif (selector.nodeType) {\r\n\t\t\t\tthis[0] = selector;\r\n\r\n\t\t\t\treturn this;\r\n\t\t\t} else {\r\n\t\t\t\tthrow new Error(\"Not a DOM node.\");\r\n\t\t\t}\r\n\t\t},\r\n\t\toffset: function() {\r\n\t\t\t/* jQuery altered code: Dropped disconnected DOM node checking. */\r\n\t\t\tvar box = this[0].getBoundingClientRect ? this[0].getBoundingClientRect() : {top: 0, left: 0};\r\n\r\n\t\t\treturn {\r\n\t\t\t\ttop: box.top + (window.pageYOffset || document.scrollTop || 0) - (document.clientTop || 0),\r\n\t\t\t\tleft: box.left + (window.pageXOffset || document.scrollLeft || 0) - (document.clientLeft || 0)\r\n\t\t\t};\r\n\t\t},\r\n\t\tposition: function() {\r\n\t\t\t/* jQuery */\r\n\t\t\tfunction offsetParentFn(elem) {\r\n\t\t\t\tvar offsetParent = elem.offsetParent;\r\n\r\n\t\t\t\twhile (offsetParent && (offsetParent.nodeName.toLowerCase() !== \"html\" && offsetParent.style && offsetParent.style.position.toLowerCase() === \"static\")) {\r\n\t\t\t\t\toffsetParent = offsetParent.offsetParent;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn offsetParent || document;\r\n\t\t\t}\r\n\r\n\t\t\t/* Zepto */\r\n\t\t\tvar elem = this[0],\r\n\t\t\t\t\toffsetParent = offsetParentFn(elem),\r\n\t\t\t\t\toffset = this.offset(),\r\n\t\t\t\t\tparentOffset = /^(?:body|html)$/i.test(offsetParent.nodeName) ? {top: 0, left: 0} : $(offsetParent).offset();\r\n\r\n\t\t\toffset.top -= parseFloat(elem.style.marginTop) || 0;\r\n\t\t\toffset.left -= parseFloat(elem.style.marginLeft) || 0;\r\n\r\n\t\t\tif (offsetParent.style) {\r\n\t\t\t\tparentOffset.top += parseFloat(offsetParent.style.borderTopWidth) || 0;\r\n\t\t\t\tparentOffset.left += parseFloat(offsetParent.style.borderLeftWidth) || 0;\r\n\t\t\t}\r\n\r\n\t\t\treturn {\r\n\t\t\t\ttop: offset.top - parentOffset.top,\r\n\t\t\t\tleft: offset.left - parentOffset.left\r\n\t\t\t};\r\n\t\t}\r\n\t};\r\n\r\n\t/**********************\r\n\t Private Variables\r\n\t **********************/\r\n\r\n\t/* For $.data() */\r\n\tvar cache = {};\r\n\t$.expando = \"velocity\" + (new Date().getTime());\r\n\t$.uuid = 0;\r\n\r\n\t/* For $.queue() */\r\n\tvar class2type = {},\r\n\t\t\thasOwn = class2type.hasOwnProperty,\r\n\t\t\ttoString = class2type.toString;\r\n\r\n\tvar types = \"Boolean Number String Function Array Date RegExp Object Error\".split(\" \");\r\n\tfor (var i = 0; i < types.length; i++) {\r\n\t\tclass2type[\"[object \" + types[i] + \"]\"] = types[i].toLowerCase();\r\n\t}\r\n\r\n\t/* Makes $(node) possible, without having to call init. */\r\n\t$.fn.init.prototype = $.fn;\r\n\r\n\t/* Globalize Velocity onto the window, and assign its Utilities property. */\r\n\twindow.Velocity = {Utilities: $};\r\n})(window);\r\n\r\n/******************\r\n Velocity.js\r\n ******************/\r\n\r\n(function(factory) {\r\n\t\"use strict\";\r\n\t/* CommonJS module. */\r\n\tif (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n\t\tmodule.exports = factory();\r\n\t\t/* AMD module. */\r\n\t} else if (typeof define === \"function\" && define.amd) {\r\n\t\tdefine(factory);\r\n\t\t/* Browser globals. */\r\n\t} else {\r\n\t\tfactory();\r\n\t}\r\n}(function() {\r\n\t\"use strict\";\r\n\treturn function(global, window, document, undefined) {\r\n\r\n\t\t/***************\r\n\t\t Summary\r\n\t\t ***************/\r\n\r\n\t\t/*\r\n\t\t - CSS: CSS stack that works independently from the rest of Velocity.\r\n\t\t - animate(): Core animation method that iterates over the targeted elements and queues the incoming call onto each element individually.\r\n\t\t - Pre-Queueing: Prepare the element for animation by instantiating its data cache and processing the call's options.\r\n\t\t - Queueing: The logic that runs once the call has reached its point of execution in the element's $.queue() stack.\r\n\t\t Most logic is placed here to avoid risking it becoming stale (if the element's properties have changed).\r\n\t\t - Pushing: Consolidation of the tween data followed by its push onto the global in-progress calls container.\r\n\t\t - tick(): The single requestAnimationFrame loop responsible for tweening all in-progress calls.\r\n\t\t - completeCall(): Handles the cleanup process for each Velocity call.\r\n\t\t */\r\n\r\n\t\t/*********************\r\n\t\t Helper Functions\r\n\t\t *********************/\r\n\r\n\t\t/* IE detection. Gist: https://gist.github.com/julianshapiro/9098609 */\r\n\t\tvar IE = (function() {\r\n\t\t\tif (document.documentMode) {\r\n\t\t\t\treturn document.documentMode;\r\n\t\t\t} else {\r\n\t\t\t\tfor (var i = 7; i > 4; i--) {\r\n\t\t\t\t\tvar div = document.createElement(\"div\");\r\n\r\n\t\t\t\t\tdiv.innerHTML = \"<!--[if IE \" + i + \"]><span></span><![endif]-->\";\r\n\r\n\t\t\t\t\tif (div.getElementsByTagName(\"span\").length) {\r\n\t\t\t\t\t\tdiv = null;\r\n\r\n\t\t\t\t\t\treturn i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn undefined;\r\n\t\t})();\r\n\r\n\t\t/* rAF shim. Gist: https://gist.github.com/julianshapiro/9497513 */\r\n\t\tvar rAFShim = (function() {\r\n\t\t\tvar timeLast = 0;\r\n\r\n\t\t\treturn window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) {\r\n\t\t\t\tvar timeCurrent = (new Date()).getTime(),\r\n\t\t\t\t\t\ttimeDelta;\r\n\r\n\t\t\t\t/* Dynamically set delay on a per-tick basis to match 60fps. */\r\n\t\t\t\t/* Technique by Erik Moller. MIT license: https://gist.github.com/paulirish/1579671 */\r\n\t\t\t\ttimeDelta = Math.max(0, 16 - (timeCurrent - timeLast));\r\n\t\t\t\ttimeLast = timeCurrent + timeDelta;\r\n\r\n\t\t\t\treturn setTimeout(function() {\r\n\t\t\t\t\tcallback(timeCurrent + timeDelta);\r\n\t\t\t\t}, timeDelta);\r\n\t\t\t};\r\n\t\t})();\r\n\r\n\t\tvar performance = (function() {\r\n\t\t\tvar perf = window.performance || {};\r\n\r\n\t\t\tif (typeof perf.now !== \"function\") {\r\n\t\t\t\tvar nowOffset = perf.timing && perf.timing.navigationStart ? perf.timing.navigationStart : (new Date()).getTime();\r\n\r\n\t\t\t\tperf.now = function() {\r\n\t\t\t\t\treturn (new Date()).getTime() - nowOffset;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\treturn perf;\r\n\t\t})();\r\n\r\n\t\t/* Array compacting. Copyright Lo-Dash. MIT License: https://github.com/lodash/lodash/blob/master/LICENSE.txt */\r\n\t\tfunction compactSparseArray(array) {\r\n\t\t\tvar index = -1,\r\n\t\t\t\t\tlength = array ? array.length : 0,\r\n\t\t\t\t\tresult = [];\r\n\r\n\t\t\twhile (++index < length) {\r\n\t\t\t\tvar value = array[index];\r\n\r\n\t\t\t\tif (value) {\r\n\t\t\t\t\tresult.push(value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn result;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Shim for \"fixing\" IE's lack of support (IE < 9) for applying slice\r\n\t\t * on host objects like NamedNodeMap, NodeList, and HTMLCollection\r\n\t\t * (technically, since host objects have been implementation-dependent,\r\n\t\t * at least before ES2015, IE hasn't needed to work this way).\r\n\t\t * Also works on strings, fixes IE < 9 to allow an explicit undefined\r\n\t\t * for the 2nd argument (as in Firefox), and prevents errors when\r\n\t\t * called on other DOM objects.\r\n\t\t */\r\n\t\tvar _slice = (function() {\r\n\t\t\tvar slice = Array.prototype.slice;\r\n\r\n\t\t\ttry {\r\n\t\t\t\t// Can't be used with DOM elements in IE < 9\r\n\t\t\t\tslice.call(document.documentElement);\r\n\t\t\t\treturn slice;\r\n\t\t\t} catch (e) { // Fails in IE < 9\r\n\r\n\t\t\t\t// This will work for genuine arrays, array-like objects, \r\n\t\t\t\t// NamedNodeMap (attributes, entities, notations),\r\n\t\t\t\t// NodeList (e.g., getElementsByTagName), HTMLCollection (e.g., childNodes),\r\n\t\t\t\t// and will not fail on other DOM objects (as do DOM elements in IE < 9)\r\n\t\t\t\treturn function(begin, end) {\r\n\t\t\t\t\tvar len = this.length;\r\n\r\n\t\t\t\t\tif (typeof begin !== \"number\") {\r\n\t\t\t\t\t\tbegin = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// IE < 9 gets unhappy with an undefined end argument\r\n\t\t\t\t\tif (typeof end !== \"number\") {\r\n\t\t\t\t\t\tend = len;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// For native Array objects, we use the native slice function\r\n\t\t\t\t\tif (this.slice) {\r\n\t\t\t\t\t\treturn slice.call(this, begin, end);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// For array like object we handle it ourselves.\r\n\t\t\t\t\tvar i,\r\n\t\t\t\t\t\t\tcloned = [],\r\n\t\t\t\t\t\t\t// Handle negative value for \"begin\"\r\n\t\t\t\t\t\t\tstart = (begin >= 0) ? begin : Math.max(0, len + begin),\r\n\t\t\t\t\t\t\t// Handle negative value for \"end\"\r\n\t\t\t\t\t\t\tupTo = end < 0 ? len + end : Math.min(end, len),\r\n\t\t\t\t\t\t\t// Actual expected size of the slice\r\n\t\t\t\t\t\t\tsize = upTo - start;\r\n\r\n\t\t\t\t\tif (size > 0) {\r\n\t\t\t\t\t\tcloned = new Array(size);\r\n\t\t\t\t\t\tif (this.charAt) {\r\n\t\t\t\t\t\t\tfor (i = 0; i < size; i++) {\r\n\t\t\t\t\t\t\t\tcloned[i] = this.charAt(start + i);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tfor (i = 0; i < size; i++) {\r\n\t\t\t\t\t\t\t\tcloned[i] = this[start + i];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn cloned;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t})();\r\n\r\n\t\t/* .indexOf doesn't exist in IE<9 */\r\n\t\tvar _inArray = (function() {\r\n\t\t\tif (Array.prototype.includes) {\r\n\t\t\t\treturn function(arr, val) {\r\n\t\t\t\t\treturn arr.includes(val);\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\tif (Array.prototype.indexOf) {\r\n\t\t\t\treturn function(arr, val) {\r\n\t\t\t\t\treturn arr.indexOf(val) >= 0;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\treturn function(arr, val) {\r\n\t\t\t\tfor (var i = 0; i < arr.length; i++) {\r\n\t\t\t\t\tif (arr[i] === val) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\tfunction sanitizeElements(elements) {\r\n\t\t\t/* Unwrap jQuery/Zepto objects. */\r\n\t\t\tif (Type.isWrapped(elements)) {\r\n\t\t\t\telements = _slice.call(elements);\r\n\t\t\t\t/* Wrap a single element in an array so that $.each() can iterate with the element instead of its node's children. */\r\n\t\t\t} else if (Type.isNode(elements)) {\r\n\t\t\t\telements = [elements];\r\n\t\t\t}\r\n\r\n\t\t\treturn elements;\r\n\t\t}\r\n\r\n\t\tvar Type = {\r\n\t\t\tisNumber: function(variable) {\r\n\t\t\t\treturn (typeof variable === \"number\");\r\n\t\t\t},\r\n\t\t\tisString: function(variable) {\r\n\t\t\t\treturn (typeof variable === \"string\");\r\n\t\t\t},\r\n\t\t\tisArray: Array.isArray || function(variable) {\r\n\t\t\t\treturn Object.prototype.toString.call(variable) === \"[object Array]\";\r\n\t\t\t},\r\n\t\t\tisFunction: function(variable) {\r\n\t\t\t\treturn Object.prototype.toString.call(variable) === \"[object Function]\";\r\n\t\t\t},\r\n\t\t\tisNode: function(variable) {\r\n\t\t\t\treturn variable && variable.nodeType;\r\n\t\t\t},\r\n\t\t\t/* Determine if variable is an array-like wrapped jQuery, Zepto or similar element, or even a NodeList etc. */\r\n\t\t\t/* NOTE: HTMLFormElements also have a length. */\r\n\t\t\tisWrapped: function(variable) {\r\n\t\t\t\treturn variable\r\n\t\t\t\t\t\t&& variable !== window\r\n\t\t\t\t\t\t&& Type.isNumber(variable.length)\r\n\t\t\t\t\t\t&& !Type.isString(variable)\r\n\t\t\t\t\t\t&& !Type.isFunction(variable)\r\n\t\t\t\t\t\t&& !Type.isNode(variable)\r\n\t\t\t\t\t\t&& (variable.length === 0 || Type.isNode(variable[0]));\r\n\t\t\t},\r\n\t\t\tisSVG: function(variable) {\r\n\t\t\t\treturn window.SVGElement && (variable instanceof window.SVGElement);\r\n\t\t\t},\r\n\t\t\tisEmptyObject: function(variable) {\r\n\t\t\t\tfor (var name in variable) {\r\n\t\t\t\t\tif (variable.hasOwnProperty(name)) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t/*****************\r\n\t\t Dependencies\r\n\t\t *****************/\r\n\r\n\t\tvar $,\r\n\t\t\t\tisJQuery = false;\r\n\r\n\t\tif (global.fn && global.fn.jquery) {\r\n\t\t\t$ = global;\r\n\t\t\tisJQuery = true;\r\n\t\t} else {\r\n\t\t\t$ = window.Velocity.Utilities;\r\n\t\t}\r\n\r\n\t\tif (IE <= 8 && !isJQuery) {\r\n\t\t\tthrow new Error(\"Velocity: IE8 and below require jQuery to be loaded before Velocity.\");\r\n\t\t} else if (IE <= 7) {\r\n\t\t\t/* Revert to jQuery's $.animate(), and lose Velocity's extra features. */\r\n\t\t\tjQuery.fn.velocity = jQuery.fn.animate;\r\n\r\n\t\t\t/* Now that $.fn.velocity is aliased, abort this Velocity declaration. */\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*****************\r\n\t\t Constants\r\n\t\t *****************/\r\n\r\n\t\tvar DURATION_DEFAULT = 400,\r\n\t\t\t\tEASING_DEFAULT = \"swing\";\r\n\r\n\t\t/*************\r\n\t\t State\r\n\t\t *************/\r\n\r\n\t\tvar Velocity = {\r\n\t\t\t/* Container for page-wide Velocity state data. */\r\n\t\t\tState: {\r\n\t\t\t\t/* Detect mobile devices to determine if mobileHA should be turned on. */\r\n\t\t\t\tisMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent),\r\n\t\t\t\t/* The mobileHA option's behavior changes on older Android devices (Gingerbread, versions 2.3.3-2.3.7). */\r\n\t\t\t\tisAndroid: /Android/i.test(window.navigator.userAgent),\r\n\t\t\t\tisGingerbread: /Android 2\\.3\\.[3-7]/i.test(window.navigator.userAgent),\r\n\t\t\t\tisChrome: window.chrome,\r\n\t\t\t\tisFirefox: /Firefox/i.test(window.navigator.userAgent),\r\n\t\t\t\t/* Create a cached element for re-use when checking for CSS property prefixes. */\r\n\t\t\t\tprefixElement: document.createElement(\"div\"),\r\n\t\t\t\t/* Cache every prefix match to avoid repeating lookups. */\r\n\t\t\t\tprefixMatches: {},\r\n\t\t\t\t/* Cache the anchor used for animating window scrolling. */\r\n\t\t\t\tscrollAnchor: null,\r\n\t\t\t\t/* Cache the browser-specific property names associated with the scroll anchor. */\r\n\t\t\t\tscrollPropertyLeft: null,\r\n\t\t\t\tscrollPropertyTop: null,\r\n\t\t\t\t/* Keep track of whether our RAF tick is running. */\r\n\t\t\t\tisTicking: false,\r\n\t\t\t\t/* Container for every in-progress call to Velocity. */\r\n\t\t\t\tcalls: [],\r\n\t\t\t\tdelayedElements: {\r\n\t\t\t\t\tcount: 0\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/* Velocity's custom CSS stack. Made global for unit testing. */\r\n\t\t\tCSS: {/* Defined below. */},\r\n\t\t\t/* A shim of the jQuery utility functions used by Velocity -- provided by Velocity's optional jQuery shim. */\r\n\t\t\tUtilities: $,\r\n\t\t\t/* Container for the user's custom animation redirects that are referenced by name in place of the properties map argument. */\r\n\t\t\tRedirects: {/* Manually registered by the user. */},\r\n\t\t\tEasings: {/* Defined below. */},\r\n\t\t\t/* Attempt to use ES6 Promises by default. Users can override this with a third-party promises library. */\r\n\t\t\tPromise: window.Promise,\r\n\t\t\t/* Velocity option defaults, which can be overriden by the user. */\r\n\t\t\tdefaults: {\r\n\t\t\t\tqueue: \"\",\r\n\t\t\t\tduration: DURATION_DEFAULT,\r\n\t\t\t\teasing: EASING_DEFAULT,\r\n\t\t\t\tbegin: undefined,\r\n\t\t\t\tcomplete: undefined,\r\n\t\t\t\tprogress: undefined,\r\n\t\t\t\tdisplay: undefined,\r\n\t\t\t\tvisibility: undefined,\r\n\t\t\t\tloop: false,\r\n\t\t\t\tdelay: false,\r\n\t\t\t\tmobileHA: true,\r\n\t\t\t\t/* Advanced: Set to false to prevent property values from being cached between consecutive Velocity-initiated chain calls. */\r\n\t\t\t\t_cacheValues: true,\r\n\t\t\t\t/* Advanced: Set to false if the promise should always resolve on empty element lists. */\r\n\t\t\t\tpromiseRejectEmpty: true\r\n\t\t\t},\r\n\t\t\t/* A design goal of Velocity is to cache data wherever possible in order to avoid DOM requerying. Accordingly, each element has a data cache. */\r\n\t\t\tinit: function(element) {\r\n\t\t\t\t$.data(element, \"velocity\", {\r\n\t\t\t\t\t/* Store whether this is an SVG element, since its properties are retrieved and updated differently than standard HTML elements. */\r\n\t\t\t\t\tisSVG: Type.isSVG(element),\r\n\t\t\t\t\t/* Keep track of whether the element is currently being animated by Velocity.\r\n\t\t\t\t\t This is used to ensure that property values are not transferred between non-consecutive (stale) calls. */\r\n\t\t\t\t\tisAnimating: false,\r\n\t\t\t\t\t/* A reference to the element's live computedStyle object. Learn more here: https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle */\r\n\t\t\t\t\tcomputedStyle: null,\r\n\t\t\t\t\t/* Tween data is cached for each animation on the element so that data can be passed across calls --\r\n\t\t\t\t\t in particular, end values are used as subsequent start values in consecutive Velocity calls. */\r\n\t\t\t\t\ttweensContainer: null,\r\n\t\t\t\t\t/* The full root property values of each CSS hook being animated on this element are cached so that:\r\n\t\t\t\t\t 1) Concurrently-animating hooks sharing the same root can have their root values' merged into one while tweening.\r\n\t\t\t\t\t 2) Post-hook-injection root values can be transferred over to consecutively chained Velocity calls as starting root values. */\r\n\t\t\t\t\trootPropertyValueCache: {},\r\n\t\t\t\t\t/* A cache for transform updates, which must be manually flushed via CSS.flushTransformCache(). */\r\n\t\t\t\t\ttransformCache: {}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t/* A parallel to jQuery's $.css(), used for getting/setting Velocity's hooked CSS properties. */\r\n\t\t\thook: null, /* Defined below. */\r\n\t\t\t/* Velocity-wide animation time remapping for testing purposes. */\r\n\t\t\tmock: false,\r\n\t\t\tversion: {major: 1, minor: 5, patch: 2},\r\n\t\t\t/* Set to 1 or 2 (most verbose) to output debug info to console. */\r\n\t\t\tdebug: false,\r\n\t\t\t/* Use rAF high resolution timestamp when available */\r\n\t\t\ttimestamp: true,\r\n\t\t\t/* Pause all animations */\r\n\t\t\tpauseAll: function(queueName) {\r\n\t\t\t\tvar currentTime = (new Date()).getTime();\r\n\r\n\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\r\n\t\t\t\t\tif (activeCall) {\r\n\r\n\t\t\t\t\t\t/* If we have a queueName and this call is not on that queue, skip */\r\n\t\t\t\t\t\tif (queueName !== undefined && ((activeCall[2].queue !== queueName) || (activeCall[2].queue === false))) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Set call to paused */\r\n\t\t\t\t\t\tactiveCall[5] = {\r\n\t\t\t\t\t\t\tresume: false\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\t/* Pause timers on any currently delayed calls */\r\n\t\t\t\t$.each(Velocity.State.delayedElements, function(k, element) {\r\n\t\t\t\t\tif (!element) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpauseDelayOnElement(element, currentTime);\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t/* Resume all animations */\r\n\t\t\tresumeAll: function(queueName) {\r\n\t\t\t\tvar currentTime = (new Date()).getTime();\r\n\r\n\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\r\n\t\t\t\t\tif (activeCall) {\r\n\r\n\t\t\t\t\t\t/* If we have a queueName and this call is not on that queue, skip */\r\n\t\t\t\t\t\tif (queueName !== undefined && ((activeCall[2].queue !== queueName) || (activeCall[2].queue === false))) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Set call to resumed if it was paused */\r\n\t\t\t\t\t\tif (activeCall[5]) {\r\n\t\t\t\t\t\t\tactiveCall[5].resume = true;\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\t/* Resume timers on any currently delayed calls */\r\n\t\t\t\t$.each(Velocity.State.delayedElements, function(k, element) {\r\n\t\t\t\t\tif (!element) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresumeDelayOnElement(element, currentTime);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t/* Retrieve the appropriate scroll anchor and property name for the browser: https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollY */\r\n\t\tif (window.pageYOffset !== undefined) {\r\n\t\t\tVelocity.State.scrollAnchor = window;\r\n\t\t\tVelocity.State.scrollPropertyLeft = \"pageXOffset\";\r\n\t\t\tVelocity.State.scrollPropertyTop = \"pageYOffset\";\r\n\t\t} else {\r\n\t\t\tVelocity.State.scrollAnchor = document.documentElement || document.body.parentNode || document.body;\r\n\t\t\tVelocity.State.scrollPropertyLeft = \"scrollLeft\";\r\n\t\t\tVelocity.State.scrollPropertyTop = \"scrollTop\";\r\n\t\t}\r\n\r\n\t\t/* Shorthand alias for jQuery's $.data() utility. */\r\n\t\tfunction Data(element) {\r\n\t\t\t/* Hardcode a reference to the plugin name. */\r\n\t\t\tvar response = $.data(element, \"velocity\");\r\n\r\n\t\t\t/* jQuery <=1.4.2 returns null instead of undefined when no match is found. We normalize this behavior. */\r\n\t\t\treturn response === null ? undefined : response;\r\n\t\t}\r\n\r\n\t\t/**************\r\n\t\t Delay Timer\r\n\t\t **************/\r\n\r\n\t\tfunction pauseDelayOnElement(element, currentTime) {\r\n\t\t\t/* Check for any delay timers, and pause the set timeouts (while preserving time data)\r\n\t\t\t to be resumed when the \"resume\" command is issued */\r\n\t\t\tvar data = Data(element);\r\n\t\t\tif (data && data.delayTimer && !data.delayPaused) {\r\n\t\t\t\tdata.delayRemaining = data.delay - currentTime + data.delayBegin;\r\n\t\t\t\tdata.delayPaused = true;\r\n\t\t\t\tclearTimeout(data.delayTimer.setTimeout);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfunction resumeDelayOnElement(element, currentTime) {\r\n\t\t\t/* Check for any paused timers and resume */\r\n\t\t\tvar data = Data(element);\r\n\t\t\tif (data && data.delayTimer && data.delayPaused) {\r\n\t\t\t\t/* If the element was mid-delay, re initiate the timeout with the remaining delay */\r\n\t\t\t\tdata.delayPaused = false;\r\n\t\t\t\tdata.delayTimer.setTimeout = setTimeout(data.delayTimer.next, data.delayRemaining);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n\t\t/**************\r\n\t\t Easing\r\n\t\t **************/\r\n\r\n\t\t/* Step easing generator. */\r\n\t\tfunction generateStep(steps) {\r\n\t\t\treturn function(p) {\r\n\t\t\t\treturn Math.round(p * steps) * (1 / steps);\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\t/* Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */\r\n\t\tfunction generateBezier(mX1, mY1, mX2, mY2) {\r\n\t\t\tvar NEWTON_ITERATIONS = 4,\r\n\t\t\t\t\tNEWTON_MIN_SLOPE = 0.001,\r\n\t\t\t\t\tSUBDIVISION_PRECISION = 0.0000001,\r\n\t\t\t\t\tSUBDIVISION_MAX_ITERATIONS = 10,\r\n\t\t\t\t\tkSplineTableSize = 11,\r\n\t\t\t\t\tkSampleStepSize = 1.0 / (kSplineTableSize - 1.0),\r\n\t\t\t\t\tfloat32ArraySupported = \"Float32Array\" in window;\r\n\r\n\t\t\t/* Must contain four arguments. */\r\n\t\t\tif (arguments.length !== 4) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t/* Arguments must be numbers. */\r\n\t\t\tfor (var i = 0; i < 4; ++i) {\r\n\t\t\t\tif (typeof arguments[i] !== \"number\" || isNaN(arguments[i]) || !isFinite(arguments[i])) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* X values must be in the [0, 1] range. */\r\n\t\t\tmX1 = Math.min(mX1, 1);\r\n\t\t\tmX2 = Math.min(mX2, 1);\r\n\t\t\tmX1 = Math.max(mX1, 0);\r\n\t\t\tmX2 = Math.max(mX2, 0);\r\n\r\n\t\t\tvar mSampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);\r\n\r\n\t\t\tfunction A(aA1, aA2) {\r\n\t\t\t\treturn 1.0 - 3.0 * aA2 + 3.0 * aA1;\r\n\t\t\t}\r\n\t\t\tfunction B(aA1, aA2) {\r\n\t\t\t\treturn 3.0 * aA2 - 6.0 * aA1;\r\n\t\t\t}\r\n\t\t\tfunction C(aA1) {\r\n\t\t\t\treturn 3.0 * aA1;\r\n\t\t\t}\r\n\r\n\t\t\tfunction calcBezier(aT, aA1, aA2) {\r\n\t\t\t\treturn ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;\r\n\t\t\t}\r\n\r\n\t\t\tfunction getSlope(aT, aA1, aA2) {\r\n\t\t\t\treturn 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);\r\n\t\t\t}\r\n\r\n\t\t\tfunction newtonRaphsonIterate(aX, aGuessT) {\r\n\t\t\t\tfor (var i = 0; i < NEWTON_ITERATIONS; ++i) {\r\n\t\t\t\t\tvar currentSlope = getSlope(aGuessT, mX1, mX2);\r\n\r\n\t\t\t\t\tif (currentSlope === 0.0) {\r\n\t\t\t\t\t\treturn aGuessT;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar currentX = calcBezier(aGuessT, mX1, mX2) - aX;\r\n\t\t\t\t\taGuessT -= currentX / currentSlope;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn aGuessT;\r\n\t\t\t}\r\n\r\n\t\t\tfunction calcSampleValues() {\r\n\t\t\t\tfor (var i = 0; i < kSplineTableSize; ++i) {\r\n\t\t\t\t\tmSampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfunction binarySubdivide(aX, aA, aB) {\r\n\t\t\t\tvar currentX, currentT, i = 0;\r\n\r\n\t\t\t\tdo {\r\n\t\t\t\t\tcurrentT = aA + (aB - aA) / 2.0;\r\n\t\t\t\t\tcurrentX = calcBezier(currentT, mX1, mX2) - aX;\r\n\t\t\t\t\tif (currentX > 0.0) {\r\n\t\t\t\t\t\taB = currentT;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\taA = currentT;\r\n\t\t\t\t\t}\r\n\t\t\t\t} while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);\r\n\r\n\t\t\t\treturn currentT;\r\n\t\t\t}\r\n\r\n\t\t\tfunction getTForX(aX) {\r\n\t\t\t\tvar intervalStart = 0.0,\r\n\t\t\t\t\t\tcurrentSample = 1,\r\n\t\t\t\t\t\tlastSample = kSplineTableSize - 1;\r\n\r\n\t\t\t\tfor (; currentSample !== lastSample && mSampleValues[currentSample] <= aX; ++currentSample) {\r\n\t\t\t\t\tintervalStart += kSampleStepSize;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t--currentSample;\r\n\r\n\t\t\t\tvar dist = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample + 1] - mSampleValues[currentSample]),\r\n\t\t\t\t\t\tguessForT = intervalStart + dist * kSampleStepSize,\r\n\t\t\t\t\t\tinitialSlope = getSlope(guessForT, mX1, mX2);\r\n\r\n\t\t\t\tif (initialSlope >= NEWTON_MIN_SLOPE) {\r\n\t\t\t\t\treturn newtonRaphsonIterate(aX, guessForT);\r\n\t\t\t\t} else if (initialSlope === 0.0) {\r\n\t\t\t\t\treturn guessForT;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar _precomputed = false;\r\n\r\n\t\t\tfunction precompute() {\r\n\t\t\t\t_precomputed = true;\r\n\t\t\t\tif (mX1 !== mY1 || mX2 !== mY2) {\r\n\t\t\t\t\tcalcSampleValues();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar f = function(aX) {\r\n\t\t\t\tif (!_precomputed) {\r\n\t\t\t\t\tprecompute();\r\n\t\t\t\t}\r\n\t\t\t\tif (mX1 === mY1 && mX2 === mY2) {\r\n\t\t\t\t\treturn aX;\r\n\t\t\t\t}\r\n\t\t\t\tif (aX === 0) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t\tif (aX === 1) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn calcBezier(getTForX(aX), mY1, mY2);\r\n\t\t\t};\r\n\r\n\t\t\tf.getControlPoints = function() {\r\n\t\t\t\treturn [{x: mX1, y: mY1}, {x: mX2, y: mY2}];\r\n\t\t\t};\r\n\r\n\t\t\tvar str = \"generateBezier(\" + [mX1, mY1, mX2, mY2] + \")\";\r\n\t\t\tf.toString = function() {\r\n\t\t\t\treturn str;\r\n\t\t\t};\r\n\r\n\t\t\treturn f;\r\n\t\t}\r\n\r\n\t\t/* Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */\r\n\t\t/* Given a tension, friction, and duration, a simulation at 60FPS will first run without a defined duration in order to calculate the full path. A second pass\r\n\t\t then adjusts the time delta -- using the relation between actual time and duration -- to calculate the path for the duration-constrained animation. */\r\n\t\tvar generateSpringRK4 = (function() {\r\n\t\t\tfunction springAccelerationForState(state) {\r\n\t\t\t\treturn (-state.tension * state.x) - (state.friction * state.v);\r\n\t\t\t}\r\n\r\n\t\t\tfunction springEvaluateStateWithDerivative(initialState, dt, derivative) {\r\n\t\t\t\tvar state = {\r\n\t\t\t\t\tx: initialState.x + derivative.dx * dt,\r\n\t\t\t\t\tv: initialState.v + derivative.dv * dt,\r\n\t\t\t\t\ttension: initialState.tension,\r\n\t\t\t\t\tfriction: initialState.friction\r\n\t\t\t\t};\r\n\r\n\t\t\t\treturn {dx: state.v, dv: springAccelerationForState(state)};\r\n\t\t\t}\r\n\r\n\t\t\tfunction springIntegrateState(state, dt) {\r\n\t\t\t\tvar a = {\r\n\t\t\t\t\tdx: state.v,\r\n\t\t\t\t\tdv: springAccelerationForState(state)\r\n\t\t\t\t},\r\n\t\t\t\t\t\tb = springEvaluateStateWithDerivative(state, dt * 0.5, a),\r\n\t\t\t\t\t\tc = springEvaluateStateWithDerivative(state, dt * 0.5, b),\r\n\t\t\t\t\t\td = springEvaluateStateWithDerivative(state, dt, c),\r\n\t\t\t\t\t\tdxdt = 1.0 / 6.0 * (a.dx + 2.0 * (b.dx + c.dx) + d.dx),\r\n\t\t\t\t\t\tdvdt = 1.0 / 6.0 * (a.dv + 2.0 * (b.dv + c.dv) + d.dv);\r\n\r\n\t\t\t\tstate.x = state.x + dxdt * dt;\r\n\t\t\t\tstate.v = state.v + dvdt * dt;\r\n\r\n\t\t\t\treturn state;\r\n\t\t\t}\r\n\r\n\t\t\treturn function springRK4Factory(tension, friction, duration) {\r\n\r\n\t\t\t\tvar initState = {\r\n\t\t\t\t\tx: -1,\r\n\t\t\t\t\tv: 0,\r\n\t\t\t\t\ttension: null,\r\n\t\t\t\t\tfriction: null\r\n\t\t\t\t},\r\n\t\t\t\t\t\tpath = [0],\r\n\t\t\t\t\t\ttime_lapsed = 0,\r\n\t\t\t\t\t\ttolerance = 1 / 10000,\r\n\t\t\t\t\t\tDT = 16 / 1000,\r\n\t\t\t\t\t\thave_duration, dt, last_state;\r\n\r\n\t\t\t\ttension = parseFloat(tension) || 500;\r\n\t\t\t\tfriction = parseFloat(friction) || 20;\r\n\t\t\t\tduration = duration || null;\r\n\r\n\t\t\t\tinitState.tension = tension;\r\n\t\t\t\tinitState.friction = friction;\r\n\r\n\t\t\t\thave_duration = duration !== null;\r\n\r\n\t\t\t\t/* Calculate the actual time it takes for this animation to complete with the provided conditions. */\r\n\t\t\t\tif (have_duration) {\r\n\t\t\t\t\t/* Run the simulation without a duration. */\r\n\t\t\t\t\ttime_lapsed = springRK4Factory(tension, friction);\r\n\t\t\t\t\t/* Compute the adjusted time delta. */\r\n\t\t\t\t\tdt = time_lapsed / duration * DT;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdt = DT;\r\n\t\t\t\t}\r\n\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\t/* Next/step function .*/\r\n\t\t\t\t\tlast_state = springIntegrateState(last_state || initState, dt);\r\n\t\t\t\t\t/* Store the position. */\r\n\t\t\t\t\tpath.push(1 + last_state.x);\r\n\t\t\t\t\ttime_lapsed += 16;\r\n\t\t\t\t\t/* If the change threshold is reached, break. */\r\n\t\t\t\t\tif (!(Math.abs(last_state.x) > tolerance && Math.abs(last_state.v) > tolerance)) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* If duration is not defined, return the actual time required for completing this animation. Otherwise, return a closure that holds the\r\n\t\t\t\t computed path and returns a snapshot of the position according to a given percentComplete. */\r\n\t\t\t\treturn !have_duration ? time_lapsed : function(percentComplete) {\r\n\t\t\t\t\treturn path[ (percentComplete * (path.length - 1)) | 0 ];\r\n\t\t\t\t};\r\n\t\t\t};\r\n\t\t}());\r\n\r\n\t\t/* jQuery easings. */\r\n\t\tVelocity.Easings = {\r\n\t\t\tlinear: function(p) {\r\n\t\t\t\treturn p;\r\n\t\t\t},\r\n\t\t\tswing: function(p) {\r\n\t\t\t\treturn 0.5 - Math.cos(p * Math.PI) / 2;\r\n\t\t\t},\r\n\t\t\t/* Bonus \"spring\" easing, which is a less exaggerated version of easeInOutElastic. */\r\n\t\t\tspring: function(p) {\r\n\t\t\t\treturn 1 - (Math.cos(p * 4.5 * Math.PI) * Math.exp(-p * 6));\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t/* CSS3 and Robert Penner easings. */\r\n\t\t$.each(\r\n\t\t\t\t[\r\n\t\t\t\t\t[\"ease\", [0.25, 0.1, 0.25, 1.0]],\r\n\t\t\t\t\t[\"ease-in\", [0.42, 0.0, 1.00, 1.0]],\r\n\t\t\t\t\t[\"ease-out\", [0.00, 0.0, 0.58, 1.0]],\r\n\t\t\t\t\t[\"ease-in-out\", [0.42, 0.0, 0.58, 1.0]],\r\n\t\t\t\t\t[\"easeInSine\", [0.47, 0, 0.745, 0.715]],\r\n\t\t\t\t\t[\"easeOutSine\", [0.39, 0.575, 0.565, 1]],\r\n\t\t\t\t\t[\"easeInOutSine\", [0.445, 0.05, 0.55, 0.95]],\r\n\t\t\t\t\t[\"easeInQuad\", [0.55, 0.085, 0.68, 0.53]],\r\n\t\t\t\t\t[\"easeOutQuad\", [0.25, 0.46, 0.45, 0.94]],\r\n\t\t\t\t\t[\"easeInOutQuad\", [0.455, 0.03, 0.515, 0.955]],\r\n\t\t\t\t\t[\"easeInCubic\", [0.55, 0.055, 0.675, 0.19]],\r\n\t\t\t\t\t[\"easeOutCubic\", [0.215, 0.61, 0.355, 1]],\r\n\t\t\t\t\t[\"easeInOutCubic\", [0.645, 0.045, 0.355, 1]],\r\n\t\t\t\t\t[\"easeInQuart\", [0.895, 0.03, 0.685, 0.22]],\r\n\t\t\t\t\t[\"easeOutQuart\", [0.165, 0.84, 0.44, 1]],\r\n\t\t\t\t\t[\"easeInOutQuart\", [0.77, 0, 0.175, 1]],\r\n\t\t\t\t\t[\"easeInQuint\", [0.755, 0.05, 0.855, 0.06]],\r\n\t\t\t\t\t[\"easeOutQuint\", [0.23, 1, 0.32, 1]],\r\n\t\t\t\t\t[\"easeInOutQuint\", [0.86, 0, 0.07, 1]],\r\n\t\t\t\t\t[\"easeInExpo\", [0.95, 0.05, 0.795, 0.035]],\r\n\t\t\t\t\t[\"easeOutExpo\", [0.19, 1, 0.22, 1]],\r\n\t\t\t\t\t[\"easeInOutExpo\", [1, 0, 0, 1]],\r\n\t\t\t\t\t[\"easeInCirc\", [0.6, 0.04, 0.98, 0.335]],\r\n\t\t\t\t\t[\"easeOutCirc\", [0.075, 0.82, 0.165, 1]],\r\n\t\t\t\t\t[\"easeInOutCirc\", [0.785, 0.135, 0.15, 0.86]]\r\n\t\t\t\t], function(i, easingArray) {\r\n\t\t\tVelocity.Easings[easingArray[0]] = generateBezier.apply(null, easingArray[1]);\r\n\t\t});\r\n\r\n\t\t/* Determine the appropriate easing type given an easing input. */\r\n\t\tfunction getEasing(value, duration) {\r\n\t\t\tvar easing = value;\r\n\r\n\t\t\t/* The easing option can either be a string that references a pre-registered easing,\r\n\t\t\t or it can be a two-/four-item array of integers to be converted into a bezier/spring function. */\r\n\t\t\tif (Type.isString(value)) {\r\n\t\t\t\t/* Ensure that the easing has been assigned to jQuery's Velocity.Easings object. */\r\n\t\t\t\tif (!Velocity.Easings[value]) {\r\n\t\t\t\t\teasing = false;\r\n\t\t\t\t}\r\n\t\t\t} else if (Type.isArray(value) && value.length === 1) {\r\n\t\t\t\teasing = generateStep.apply(null, value);\r\n\t\t\t} else if (Type.isArray(value) && value.length === 2) {\r\n\t\t\t\t/* springRK4 must be passed the animation's duration. */\r\n\t\t\t\t/* Note: If the springRK4 array contains non-numbers, generateSpringRK4() returns an easing\r\n\t\t\t\t function generated with default tension and friction values. */\r\n\t\t\t\teasing = generateSpringRK4.apply(null, value.concat([duration]));\r\n\t\t\t} else if (Type.isArray(value) && value.length === 4) {\r\n\t\t\t\t/* Note: If the bezier array contains non-numbers, generateBezier() returns false. */\r\n\t\t\t\teasing = generateBezier.apply(null, value);\r\n\t\t\t} else {\r\n\t\t\t\teasing = false;\r\n\t\t\t}\r\n\r\n\t\t\t/* Revert to the Velocity-wide default easing type, or fall back to \"swing\" (which is also jQuery's default)\r\n\t\t\t if the Velocity-wide default has been incorrectly modified. */\r\n\t\t\tif (easing === false) {\r\n\t\t\t\tif (Velocity.Easings[Velocity.defaults.easing]) {\r\n\t\t\t\t\teasing = Velocity.defaults.easing;\r\n\t\t\t\t} else {\r\n\t\t\t\t\teasing = EASING_DEFAULT;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn easing;\r\n\t\t}\r\n\r\n\t\t/*****************\r\n\t\t CSS Stack\r\n\t\t *****************/\r\n\r\n\t\t/* The CSS object is a highly condensed and performant CSS stack that fully replaces jQuery's.\r\n\t\t It handles the validation, getting, and setting of both standard CSS properties and CSS property hooks. */\r\n\t\t/* Note: A \"CSS\" shorthand is aliased so that our code is easier to read. */\r\n\t\tvar CSS = Velocity.CSS = {\r\n\t\t\t/*************\r\n\t\t\t RegEx\r\n\t\t\t *************/\r\n\r\n\t\t\tRegEx: {\r\n\t\t\t\tisHex: /^#([A-f\\d]{3}){1,2}$/i,\r\n\t\t\t\t/* Unwrap a property value's surrounding text, e.g. \"rgba(4, 3, 2, 1)\" ==> \"4, 3, 2, 1\" and \"rect(4px 3px 2px 1px)\" ==> \"4px 3px 2px 1px\". */\r\n\t\t\t\tvalueUnwrap: /^[A-z]+\\((.*)\\)$/i,\r\n\t\t\t\twrappedValueAlreadyExtracted: /[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,\r\n\t\t\t\t/* Split a multi-value property into an array of subvalues, e.g. \"rgba(4, 3, 2, 1) 4px 3px 2px 1px\" ==> [ \"rgba(4, 3, 2, 1)\", \"4px\", \"3px\", \"2px\", \"1px\" ]. */\r\n\t\t\t\tvalueSplit: /([A-z]+\\(.+\\))|(([A-z0-9#-.]+?)(?=\\s|$))/ig\r\n\t\t\t},\r\n\t\t\t/************\r\n\t\t\t Lists\r\n\t\t\t ************/\r\n\r\n\t\t\tLists: {\r\n\t\t\t\tcolors: [\"fill\", \"stroke\", \"stopColor\", \"color\", \"backgroundColor\", \"borderColor\", \"borderTopColor\", \"borderRightColor\", \"borderBottomColor\", \"borderLeftColor\", \"outlineColor\"],\r\n\t\t\t\ttransformsBase: [\"translateX\", \"translateY\", \"scale\", \"scaleX\", \"scaleY\", \"skewX\", \"skewY\", \"rotateZ\"],\r\n\t\t\t\ttransforms3D: [\"transformPerspective\", \"translateZ\", \"scaleZ\", \"rotateX\", \"rotateY\"],\r\n\t\t\t\tunits: [\r\n\t\t\t\t\t\"%\", // relative\r\n\t\t\t\t\t\"em\", \"ex\", \"ch\", \"rem\", // font relative\r\n\t\t\t\t\t\"vw\", \"vh\", \"vmin\", \"vmax\", // viewport relative\r\n\t\t\t\t\t\"cm\", \"mm\", \"Q\", \"in\", \"pc\", \"pt\", \"px\", // absolute lengths\r\n\t\t\t\t\t\"deg\", \"grad\", \"rad\", \"turn\", // angles\r\n\t\t\t\t\t\"s\", \"ms\" // time\r\n\t\t\t\t],\r\n\t\t\t\tcolorNames: {\r\n\t\t\t\t\t\"aliceblue\": \"240,248,255\",\r\n\t\t\t\t\t\"antiquewhite\": \"250,235,215\",\r\n\t\t\t\t\t\"aquamarine\": \"127,255,212\",\r\n\t\t\t\t\t\"aqua\": \"0,255,255\",\r\n\t\t\t\t\t\"azure\": \"240,255,255\",\r\n\t\t\t\t\t\"beige\": \"245,245,220\",\r\n\t\t\t\t\t\"bisque\": \"255,228,196\",\r\n\t\t\t\t\t\"black\": \"0,0,0\",\r\n\t\t\t\t\t\"blanchedalmond\": \"255,235,205\",\r\n\t\t\t\t\t\"blueviolet\": \"138,43,226\",\r\n\t\t\t\t\t\"blue\": \"0,0,255\",\r\n\t\t\t\t\t\"brown\": \"165,42,42\",\r\n\t\t\t\t\t\"burlywood\": \"222,184,135\",\r\n\t\t\t\t\t\"cadetblue\": \"95,158,160\",\r\n\t\t\t\t\t\"chartreuse\": \"127,255,0\",\r\n\t\t\t\t\t\"chocolate\": \"210,105,30\",\r\n\t\t\t\t\t\"coral\": \"255,127,80\",\r\n\t\t\t\t\t\"cornflowerblue\": \"100,149,237\",\r\n\t\t\t\t\t\"cornsilk\": \"255,248,220\",\r\n\t\t\t\t\t\"crimson\": \"220,20,60\",\r\n\t\t\t\t\t\"cyan\": \"0,255,255\",\r\n\t\t\t\t\t\"darkblue\": \"0,0,139\",\r\n\t\t\t\t\t\"darkcyan\": \"0,139,139\",\r\n\t\t\t\t\t\"darkgoldenrod\": \"184,134,11\",\r\n\t\t\t\t\t\"darkgray\": \"169,169,169\",\r\n\t\t\t\t\t\"darkgrey\": \"169,169,169\",\r\n\t\t\t\t\t\"darkgreen\": \"0,100,0\",\r\n\t\t\t\t\t\"darkkhaki\": \"189,183,107\",\r\n\t\t\t\t\t\"darkmagenta\": \"139,0,139\",\r\n\t\t\t\t\t\"darkolivegreen\": \"85,107,47\",\r\n\t\t\t\t\t\"darkorange\": \"255,140,0\",\r\n\t\t\t\t\t\"darkorchid\": \"153,50,204\",\r\n\t\t\t\t\t\"darkred\": \"139,0,0\",\r\n\t\t\t\t\t\"darksalmon\": \"233,150,122\",\r\n\t\t\t\t\t\"darkseagreen\": \"143,188,143\",\r\n\t\t\t\t\t\"darkslateblue\": \"72,61,139\",\r\n\t\t\t\t\t\"darkslategray\": \"47,79,79\",\r\n\t\t\t\t\t\"darkturquoise\": \"0,206,209\",\r\n\t\t\t\t\t\"darkviolet\": \"148,0,211\",\r\n\t\t\t\t\t\"deeppink\": \"255,20,147\",\r\n\t\t\t\t\t\"deepskyblue\": \"0,191,255\",\r\n\t\t\t\t\t\"dimgray\": \"105,105,105\",\r\n\t\t\t\t\t\"dimgrey\": \"105,105,105\",\r\n\t\t\t\t\t\"dodgerblue\": \"30,144,255\",\r\n\t\t\t\t\t\"firebrick\": \"178,34,34\",\r\n\t\t\t\t\t\"floralwhite\": \"255,250,240\",\r\n\t\t\t\t\t\"forestgreen\": \"34,139,34\",\r\n\t\t\t\t\t\"fuchsia\": \"255,0,255\",\r\n\t\t\t\t\t\"gainsboro\": \"220,220,220\",\r\n\t\t\t\t\t\"ghostwhite\": \"248,248,255\",\r\n\t\t\t\t\t\"gold\": \"255,215,0\",\r\n\t\t\t\t\t\"goldenrod\": \"218,165,32\",\r\n\t\t\t\t\t\"gray\": \"128,128,128\",\r\n\t\t\t\t\t\"grey\": \"128,128,128\",\r\n\t\t\t\t\t\"greenyellow\": \"173,255,47\",\r\n\t\t\t\t\t\"green\": \"0,128,0\",\r\n\t\t\t\t\t\"honeydew\": \"240,255,240\",\r\n\t\t\t\t\t\"hotpink\": \"255,105,180\",\r\n\t\t\t\t\t\"indianred\": \"205,92,92\",\r\n\t\t\t\t\t\"indigo\": \"75,0,130\",\r\n\t\t\t\t\t\"ivory\": \"255,255,240\",\r\n\t\t\t\t\t\"khaki\": \"240,230,140\",\r\n\t\t\t\t\t\"lavenderblush\": \"255,240,245\",\r\n\t\t\t\t\t\"lavender\": \"230,230,250\",\r\n\t\t\t\t\t\"lawngreen\": \"124,252,0\",\r\n\t\t\t\t\t\"lemonchiffon\": \"255,250,205\",\r\n\t\t\t\t\t\"lightblue\": \"173,216,230\",\r\n\t\t\t\t\t\"lightcoral\": \"240,128,128\",\r\n\t\t\t\t\t\"lightcyan\": \"224,255,255\",\r\n\t\t\t\t\t\"lightgoldenrodyellow\": \"250,250,210\",\r\n\t\t\t\t\t\"lightgray\": \"211,211,211\",\r\n\t\t\t\t\t\"lightgrey\": \"211,211,211\",\r\n\t\t\t\t\t\"lightgreen\": \"144,238,144\",\r\n\t\t\t\t\t\"lightpink\": \"255,182,193\",\r\n\t\t\t\t\t\"lightsalmon\": \"255,160,122\",\r\n\t\t\t\t\t\"lightseagreen\": \"32,178,170\",\r\n\t\t\t\t\t\"lightskyblue\": \"135,206,250\",\r\n\t\t\t\t\t\"lightslategray\": \"119,136,153\",\r\n\t\t\t\t\t\"lightsteelblue\": \"176,196,222\",\r\n\t\t\t\t\t\"lightyellow\": \"255,255,224\",\r\n\t\t\t\t\t\"limegreen\": \"50,205,50\",\r\n\t\t\t\t\t\"lime\": \"0,255,0\",\r\n\t\t\t\t\t\"linen\": \"250,240,230\",\r\n\t\t\t\t\t\"magenta\": \"255,0,255\",\r\n\t\t\t\t\t\"maroon\": \"128,0,0\",\r\n\t\t\t\t\t\"mediumaquamarine\": \"102,205,170\",\r\n\t\t\t\t\t\"mediumblue\": \"0,0,205\",\r\n\t\t\t\t\t\"mediumorchid\": \"186,85,211\",\r\n\t\t\t\t\t\"mediumpurple\": \"147,112,219\",\r\n\t\t\t\t\t\"mediumseagreen\": \"60,179,113\",\r\n\t\t\t\t\t\"mediumslateblue\": \"123,104,238\",\r\n\t\t\t\t\t\"mediumspringgreen\": \"0,250,154\",\r\n\t\t\t\t\t\"mediumturquoise\": \"72,209,204\",\r\n\t\t\t\t\t\"mediumvioletred\": \"199,21,133\",\r\n\t\t\t\t\t\"midnightblue\": \"25,25,112\",\r\n\t\t\t\t\t\"mintcream\": \"245,255,250\",\r\n\t\t\t\t\t\"mistyrose\": \"255,228,225\",\r\n\t\t\t\t\t\"moccasin\": \"255,228,181\",\r\n\t\t\t\t\t\"navajowhite\": \"255,222,173\",\r\n\t\t\t\t\t\"navy\": \"0,0,128\",\r\n\t\t\t\t\t\"oldlace\": \"253,245,230\",\r\n\t\t\t\t\t\"olivedrab\": \"107,142,35\",\r\n\t\t\t\t\t\"olive\": \"128,128,0\",\r\n\t\t\t\t\t\"orangered\": \"255,69,0\",\r\n\t\t\t\t\t\"orange\": \"255,165,0\",\r\n\t\t\t\t\t\"orchid\": \"218,112,214\",\r\n\t\t\t\t\t\"palegoldenrod\": \"238,232,170\",\r\n\t\t\t\t\t\"palegreen\": \"152,251,152\",\r\n\t\t\t\t\t\"paleturquoise\": \"175,238,238\",\r\n\t\t\t\t\t\"palevioletred\": \"219,112,147\",\r\n\t\t\t\t\t\"papayawhip\": \"255,239,213\",\r\n\t\t\t\t\t\"peachpuff\": \"255,218,185\",\r\n\t\t\t\t\t\"peru\": \"205,133,63\",\r\n\t\t\t\t\t\"pink\": \"255,192,203\",\r\n\t\t\t\t\t\"plum\": \"221,160,221\",\r\n\t\t\t\t\t\"powderblue\": \"176,224,230\",\r\n\t\t\t\t\t\"purple\": \"128,0,128\",\r\n\t\t\t\t\t\"red\": \"255,0,0\",\r\n\t\t\t\t\t\"rosybrown\": \"188,143,143\",\r\n\t\t\t\t\t\"royalblue\": \"65,105,225\",\r\n\t\t\t\t\t\"saddlebrown\": \"139,69,19\",\r\n\t\t\t\t\t\"salmon\": \"250,128,114\",\r\n\t\t\t\t\t\"sandybrown\": \"244,164,96\",\r\n\t\t\t\t\t\"seagreen\": \"46,139,87\",\r\n\t\t\t\t\t\"seashell\": \"255,245,238\",\r\n\t\t\t\t\t\"sienna\": \"160,82,45\",\r\n\t\t\t\t\t\"silver\": \"192,192,192\",\r\n\t\t\t\t\t\"skyblue\": \"135,206,235\",\r\n\t\t\t\t\t\"slateblue\": \"106,90,205\",\r\n\t\t\t\t\t\"slategray\": \"112,128,144\",\r\n\t\t\t\t\t\"snow\": \"255,250,250\",\r\n\t\t\t\t\t\"springgreen\": \"0,255,127\",\r\n\t\t\t\t\t\"steelblue\": \"70,130,180\",\r\n\t\t\t\t\t\"tan\": \"210,180,140\",\r\n\t\t\t\t\t\"teal\": \"0,128,128\",\r\n\t\t\t\t\t\"thistle\": \"216,191,216\",\r\n\t\t\t\t\t\"tomato\": \"255,99,71\",\r\n\t\t\t\t\t\"turquoise\": \"64,224,208\",\r\n\t\t\t\t\t\"violet\": \"238,130,238\",\r\n\t\t\t\t\t\"wheat\": \"245,222,179\",\r\n\t\t\t\t\t\"whitesmoke\": \"245,245,245\",\r\n\t\t\t\t\t\"white\": \"255,255,255\",\r\n\t\t\t\t\t\"yellowgreen\": \"154,205,50\",\r\n\t\t\t\t\t\"yellow\": \"255,255,0\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/************\r\n\t\t\t Hooks\r\n\t\t\t ************/\r\n\r\n\t\t\t/* Hooks allow a subproperty (e.g. \"boxShadowBlur\") of a compound-value CSS property\r\n\t\t\t (e.g. \"boxShadow: X Y Blur Spread Color\") to be animated as if it were a discrete property. */\r\n\t\t\t/* Note: Beyond enabling fine-grained property animation, hooking is necessary since Velocity only\r\n\t\t\t tweens properties with single numeric values; unlike CSS transitions, Velocity does not interpolate compound-values. */\r\n\t\t\tHooks: {\r\n\t\t\t\t/********************\r\n\t\t\t\t Registration\r\n\t\t\t\t ********************/\r\n\r\n\t\t\t\t/* Templates are a concise way of indicating which subproperties must be individually registered for each compound-value CSS property. */\r\n\t\t\t\t/* Each template consists of the compound-value's base name, its constituent subproperty names, and those subproperties' default values. */\r\n\t\t\t\ttemplates: {\r\n\t\t\t\t\t\"textShadow\": [\"Color X Y Blur\", \"black 0px 0px 0px\"],\r\n\t\t\t\t\t\"boxShadow\": [\"Color X Y Blur Spread\", \"black 0px 0px 0px 0px\"],\r\n\t\t\t\t\t\"clip\": [\"Top Right Bottom Left\", \"0px 0px 0px 0px\"],\r\n\t\t\t\t\t\"backgroundPosition\": [\"X Y\", \"0% 0%\"],\r\n\t\t\t\t\t\"transformOrigin\": [\"X Y Z\", \"50% 50% 0px\"],\r\n\t\t\t\t\t\"perspectiveOrigin\": [\"X Y\", \"50% 50%\"]\r\n\t\t\t\t},\r\n\t\t\t\t/* A \"registered\" hook is one that has been converted from its template form into a live,\r\n\t\t\t\t tweenable property. It contains data to associate it with its root property. */\r\n\t\t\t\tregistered: {\r\n\t\t\t\t\t/* Note: A registered hook looks like this ==> textShadowBlur: [ \"textShadow\", 3 ],\r\n\t\t\t\t\t which consists of the subproperty's name, the associated root property's name,\r\n\t\t\t\t\t and the subproperty's position in the root's value. */\r\n\t\t\t\t},\r\n\t\t\t\t/* Convert the templates into individual hooks then append them to the registered object above. */\r\n\t\t\t\tregister: function() {\r\n\t\t\t\t\t/* Color hooks registration: Colors are defaulted to white -- as opposed to black -- since colors that are\r\n\t\t\t\t\t currently set to \"transparent\" default to their respective template below when color-animated,\r\n\t\t\t\t\t and white is typically a closer match to transparent than black is. An exception is made for text (\"color\"),\r\n\t\t\t\t\t which is almost always set closer to black than white. */\r\n\t\t\t\t\tfor (var i = 0; i < CSS.Lists.colors.length; i++) {\r\n\t\t\t\t\t\tvar rgbComponents = (CSS.Lists.colors[i] === \"color\") ? \"0 0 0 1\" : \"255 255 255 1\";\r\n\t\t\t\t\t\tCSS.Hooks.templates[CSS.Lists.colors[i]] = [\"Red Green Blue Alpha\", rgbComponents];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar rootProperty,\r\n\t\t\t\t\t\t\thookTemplate,\r\n\t\t\t\t\t\t\thookNames;\r\n\r\n\t\t\t\t\t/* In IE, color values inside compound-value properties are positioned at the end the value instead of at the beginning.\r\n\t\t\t\t\t Thus, we re-arrange the templates accordingly. */\r\n\t\t\t\t\tif (IE) {\r\n\t\t\t\t\t\tfor (rootProperty in CSS.Hooks.templates) {\r\n\t\t\t\t\t\t\tif (!CSS.Hooks.templates.hasOwnProperty(rootProperty)) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thookTemplate = CSS.Hooks.templates[rootProperty];\r\n\t\t\t\t\t\t\thookNames = hookTemplate[0].split(\" \");\r\n\r\n\t\t\t\t\t\t\tvar defaultValues = hookTemplate[1].match(CSS.RegEx.valueSplit);\r\n\r\n\t\t\t\t\t\t\tif (hookNames[0] === \"Color\") {\r\n\t\t\t\t\t\t\t\t/* Reposition both the hook's name and its default value to the end of their respective strings. */\r\n\t\t\t\t\t\t\t\thookNames.push(hookNames.shift());\r\n\t\t\t\t\t\t\t\tdefaultValues.push(defaultValues.shift());\r\n\r\n\t\t\t\t\t\t\t\t/* Replace the existing template for the hook's root property. */\r\n\t\t\t\t\t\t\t\tCSS.Hooks.templates[rootProperty] = [hookNames.join(\" \"), defaultValues.join(\" \")];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Hook registration. */\r\n\t\t\t\t\tfor (rootProperty in CSS.Hooks.templates) {\r\n\t\t\t\t\t\tif (!CSS.Hooks.templates.hasOwnProperty(rootProperty)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thookTemplate = CSS.Hooks.templates[rootProperty];\r\n\t\t\t\t\t\thookNames = hookTemplate[0].split(\" \");\r\n\r\n\t\t\t\t\t\tfor (var j in hookNames) {\r\n\t\t\t\t\t\t\tif (!hookNames.hasOwnProperty(j)) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tvar fullHookName = rootProperty + hookNames[j],\r\n\t\t\t\t\t\t\t\t\thookPosition = j;\r\n\r\n\t\t\t\t\t\t\t/* For each hook, register its full name (e.g. textShadowBlur) with its root property (e.g. textShadow)\r\n\t\t\t\t\t\t\t and the hook's position in its template's default value string. */\r\n\t\t\t\t\t\t\tCSS.Hooks.registered[fullHookName] = [rootProperty, hookPosition];\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\t/*****************************\r\n\t\t\t\t Injection and Extraction\r\n\t\t\t\t *****************************/\r\n\r\n\t\t\t\t/* Look up the root property associated with the hook (e.g. return \"textShadow\" for \"textShadowBlur\"). */\r\n\t\t\t\t/* Since a hook cannot be set directly (the browser won't recognize it), style updating for hooks is routed through the hook's root property. */\r\n\t\t\t\tgetRoot: function(property) {\r\n\t\t\t\t\tvar hookData = CSS.Hooks.registered[property];\r\n\r\n\t\t\t\t\tif (hookData) {\r\n\t\t\t\t\t\treturn hookData[0];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* If there was no hook match, return the property name untouched. */\r\n\t\t\t\t\t\treturn property;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tgetUnit: function(str, start) {\r\n\t\t\t\t\tvar unit = (str.substr(start || 0, 5).match(/^[a-z%]+/) || [])[0] || \"\";\r\n\r\n\t\t\t\t\tif (unit && _inArray(CSS.Lists.units, unit)) {\r\n\t\t\t\t\t\treturn unit;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn \"\";\r\n\t\t\t\t},\r\n\t\t\t\tfixColors: function(str) {\r\n\t\t\t\t\treturn str.replace(/(rgba?\\(\\s*)?(\\b[a-z]+\\b)/g, function($0, $1, $2) {\r\n\t\t\t\t\t\tif (CSS.Lists.colorNames.hasOwnProperty($2)) {\r\n\t\t\t\t\t\t\treturn ($1 ? $1 : \"rgba(\") + CSS.Lists.colorNames[$2] + ($1 ? \"\" : \",1)\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn $1 + $2;\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\t/* Convert any rootPropertyValue, null or otherwise, into a space-delimited list of hook values so that\r\n\t\t\t\t the targeted hook can be injected or extracted at its standard position. */\r\n\t\t\t\tcleanRootPropertyValue: function(rootProperty, rootPropertyValue) {\r\n\t\t\t\t\t/* If the rootPropertyValue is wrapped with \"rgb()\", \"clip()\", etc., remove the wrapping to normalize the value before manipulation. */\r\n\t\t\t\t\tif (CSS.RegEx.valueUnwrap.test(rootPropertyValue)) {\r\n\t\t\t\t\t\trootPropertyValue = rootPropertyValue.match(CSS.RegEx.valueUnwrap)[1];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If rootPropertyValue is a CSS null-value (from which there's inherently no hook value to extract),\r\n\t\t\t\t\t default to the root's default value as defined in CSS.Hooks.templates. */\r\n\t\t\t\t\t/* Note: CSS null-values include \"none\", \"auto\", and \"transparent\". They must be converted into their\r\n\t\t\t\t\t zero-values (e.g. textShadow: \"none\" ==> textShadow: \"0px 0px 0px black\") for hook manipulation to proceed. */\r\n\t\t\t\t\tif (CSS.Values.isCSSNullValue(rootPropertyValue)) {\r\n\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn rootPropertyValue;\r\n\t\t\t\t},\r\n\t\t\t\t/* Extracted the hook's value from its root property's value. This is used to get the starting value of an animating hook. */\r\n\t\t\t\textractValue: function(fullHookName, rootPropertyValue) {\r\n\t\t\t\t\tvar hookData = CSS.Hooks.registered[fullHookName];\r\n\r\n\t\t\t\t\tif (hookData) {\r\n\t\t\t\t\t\tvar hookRoot = hookData[0],\r\n\t\t\t\t\t\t\t\thookPosition = hookData[1];\r\n\r\n\t\t\t\t\t\trootPropertyValue = CSS.Hooks.cleanRootPropertyValue(hookRoot, rootPropertyValue);\r\n\r\n\t\t\t\t\t\t/* Split rootPropertyValue into its constituent hook values then grab the desired hook at its standard position. */\r\n\t\t\t\t\t\treturn rootPropertyValue.toString().match(CSS.RegEx.valueSplit)[hookPosition];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* If the provided fullHookName isn't a registered hook, return the rootPropertyValue that was passed in. */\r\n\t\t\t\t\t\treturn rootPropertyValue;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t/* Inject the hook's value into its root property's value. This is used to piece back together the root property\r\n\t\t\t\t once Velocity has updated one of its individually hooked values through tweening. */\r\n\t\t\t\tinjectValue: function(fullHookName, hookValue, rootPropertyValue) {\r\n\t\t\t\t\tvar hookData = CSS.Hooks.registered[fullHookName];\r\n\r\n\t\t\t\t\tif (hookData) {\r\n\t\t\t\t\t\tvar hookRoot = hookData[0],\r\n\t\t\t\t\t\t\t\thookPosition = hookData[1],\r\n\t\t\t\t\t\t\t\trootPropertyValueParts,\r\n\t\t\t\t\t\t\t\trootPropertyValueUpdated;\r\n\r\n\t\t\t\t\t\trootPropertyValue = CSS.Hooks.cleanRootPropertyValue(hookRoot, rootPropertyValue);\r\n\r\n\t\t\t\t\t\t/* Split rootPropertyValue into its individual hook values, replace the targeted value with hookValue,\r\n\t\t\t\t\t\t then reconstruct the rootPropertyValue string. */\r\n\t\t\t\t\t\trootPropertyValueParts = rootPropertyValue.toString().match(CSS.RegEx.valueSplit);\r\n\t\t\t\t\t\trootPropertyValueParts[hookPosition] = hookValue;\r\n\t\t\t\t\t\trootPropertyValueUpdated = rootPropertyValueParts.join(\" \");\r\n\r\n\t\t\t\t\t\treturn rootPropertyValueUpdated;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* If the provided fullHookName isn't a registered hook, return the rootPropertyValue that was passed in. */\r\n\t\t\t\t\t\treturn rootPropertyValue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/*******************\r\n\t\t\t Normalizations\r\n\t\t\t *******************/\r\n\r\n\t\t\t/* Normalizations standardize CSS property manipulation by pollyfilling browser-specific implementations (e.g. opacity)\r\n\t\t\t and reformatting special properties (e.g. clip, rgba) to look like standard ones. */\r\n\t\t\tNormalizations: {\r\n\t\t\t\t/* Normalizations are passed a normalization target (either the property's name, its extracted value, or its injected value),\r\n\t\t\t\t the targeted element (which may need to be queried), and the targeted property value. */\r\n\t\t\t\tregistered: {\r\n\t\t\t\t\tclip: function(type, element, propertyValue) {\r\n\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\treturn \"clip\";\r\n\t\t\t\t\t\t\t\t/* Clip needs to be unwrapped and stripped of its commas during extraction. */\r\n\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\tvar extracted;\r\n\r\n\t\t\t\t\t\t\t\t/* If Velocity also extracted this value, skip extraction. */\r\n\t\t\t\t\t\t\t\tif (CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\textracted = propertyValue;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/* Remove the \"rect()\" wrapper. */\r\n\t\t\t\t\t\t\t\t\textracted = propertyValue.toString().match(CSS.RegEx.valueUnwrap);\r\n\r\n\t\t\t\t\t\t\t\t\t/* Strip off commas. */\r\n\t\t\t\t\t\t\t\t\textracted = extracted ? extracted[1].replace(/,(\\s+)?/g, \" \") : propertyValue;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn extracted;\r\n\t\t\t\t\t\t\t\t/* Clip needs to be re-wrapped during injection. */\r\n\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\treturn \"rect(\" + propertyValue + \")\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tblur: function(type, element, propertyValue) {\r\n\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\treturn Velocity.State.isFirefox ? \"filter\" : \"-webkit-filter\";\r\n\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\tvar extracted = parseFloat(propertyValue);\r\n\r\n\t\t\t\t\t\t\t\t/* If extracted is NaN, meaning the value isn't already extracted. */\r\n\t\t\t\t\t\t\t\tif (!(extracted || extracted === 0)) {\r\n\t\t\t\t\t\t\t\t\tvar blurComponent = propertyValue.toString().match(/blur\\(([0-9]+[A-z]+)\\)/i);\r\n\r\n\t\t\t\t\t\t\t\t\t/* If the filter string had a blur component, return just the blur value and unit type. */\r\n\t\t\t\t\t\t\t\t\tif (blurComponent) {\r\n\t\t\t\t\t\t\t\t\t\textracted = blurComponent[1];\r\n\t\t\t\t\t\t\t\t\t\t/* If the component doesn't exist, default blur to 0. */\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\textracted = 0;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn extracted;\r\n\t\t\t\t\t\t\t\t/* Blur needs to be re-wrapped during injection. */\r\n\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t/* For the blur effect to be fully de-applied, it needs to be set to \"none\" instead of 0. */\r\n\t\t\t\t\t\t\t\tif (!parseFloat(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\treturn \"none\";\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\treturn \"blur(\" + propertyValue + \")\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t/* <=IE8 do not support the standard opacity property. They use filter:alpha(opacity=INT) instead. */\r\n\t\t\t\t\topacity: function(type, element, propertyValue) {\r\n\t\t\t\t\t\tif (IE <= 8) {\r\n\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\treturn \"filter\";\r\n\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\t/* <=IE8 return a \"filter\" value of \"alpha(opacity=\\d{1,3})\".\r\n\t\t\t\t\t\t\t\t\t Extract the value and convert it to a decimal value to match the standard CSS opacity property's formatting. */\r\n\t\t\t\t\t\t\t\t\tvar extracted = propertyValue.toString().match(/alpha\\(opacity=(.*)\\)/i);\r\n\r\n\t\t\t\t\t\t\t\t\tif (extracted) {\r\n\t\t\t\t\t\t\t\t\t\t/* Convert to decimal value. */\r\n\t\t\t\t\t\t\t\t\t\tpropertyValue = extracted[1] / 100;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t/* When extracting opacity, default to 1 since a null value means opacity hasn't been set. */\r\n\t\t\t\t\t\t\t\t\t\tpropertyValue = 1;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\treturn propertyValue;\r\n\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\t/* Opacified elements are required to have their zoom property set to a non-zero value. */\r\n\t\t\t\t\t\t\t\t\telement.style.zoom = 1;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Setting the filter property on elements with certain font property combinations can result in a\r\n\t\t\t\t\t\t\t\t\t highly unappealing ultra-bolding effect. There's no way to remedy this throughout a tween, but dropping the\r\n\t\t\t\t\t\t\t\t\t value altogether (when opacity hits 1) at leasts ensures that the glitch is gone post-tweening. */\r\n\t\t\t\t\t\t\t\t\tif (parseFloat(propertyValue) >= 1) {\r\n\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t/* As per the filter property's spec, convert the decimal value to a whole number and wrap the value. */\r\n\t\t\t\t\t\t\t\t\t\treturn \"alpha(opacity=\" + parseInt(parseFloat(propertyValue) * 100, 10) + \")\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* With all other browsers, normalization is not required; return the same values that were passed in. */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\treturn \"opacity\";\r\n\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\treturn propertyValue;\r\n\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\treturn propertyValue;\r\n\t\t\t\t\t\t\t}\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\t/*****************************\r\n\t\t\t\t Batched Registrations\r\n\t\t\t\t *****************************/\r\n\r\n\t\t\t\t/* Note: Batched normalizations extend the CSS.Normalizations.registered object. */\r\n\t\t\t\tregister: function() {\r\n\r\n\t\t\t\t\t/*****************\r\n\t\t\t\t\t Transforms\r\n\t\t\t\t\t *****************/\r\n\r\n\t\t\t\t\t/* Transforms are the subproperties contained by the CSS \"transform\" property. Transforms must undergo normalization\r\n\t\t\t\t\t so that they can be referenced in a properties map by their individual names. */\r\n\t\t\t\t\t/* Note: When transforms are \"set\", they are actually assigned to a per-element transformCache. When all transform\r\n\t\t\t\t\t setting is complete complete, CSS.flushTransformCache() must be manually called to flush the values to the DOM.\r\n\t\t\t\t\t Transform setting is batched in this way to improve performance: the transform style only needs to be updated\r\n\t\t\t\t\t once when multiple transform subproperties are being animated simultaneously. */\r\n\t\t\t\t\t/* Note: IE9 and Android Gingerbread have support for 2D -- but not 3D -- transforms. Since animating unsupported\r\n\t\t\t\t\t transform properties results in the browser ignoring the *entire* transform string, we prevent these 3D values\r\n\t\t\t\t\t from being normalized for these browsers so that tweening skips these properties altogether\r\n\t\t\t\t\t (since it will ignore them as being unsupported by the browser.) */\r\n\t\t\t\t\tif ((!IE || IE > 9) && !Velocity.State.isGingerbread) {\r\n\t\t\t\t\t\t/* Note: Since the standalone CSS \"perspective\" property and the CSS transform \"perspective\" subproperty\r\n\t\t\t\t\t\t share the same name, the latter is given a unique token within Velocity: \"transformPerspective\". */\r\n\t\t\t\t\t\tCSS.Lists.transformsBase = CSS.Lists.transformsBase.concat(CSS.Lists.transforms3D);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfor (var i = 0; i < CSS.Lists.transformsBase.length; i++) {\r\n\t\t\t\t\t\t/* Wrap the dynamically generated normalization function in a new scope so that transformName's value is\r\n\t\t\t\t\t\t paired with its respective function. (Otherwise, all functions would take the final for loop's transformName.) */\r\n\t\t\t\t\t\t(function() {\r\n\t\t\t\t\t\t\tvar transformName = CSS.Lists.transformsBase[i];\r\n\r\n\t\t\t\t\t\t\tCSS.Normalizations.registered[transformName] = function(type, element, propertyValue) {\r\n\t\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\t\t/* The normalized property name is the parent \"transform\" property -- the property that is actually set in CSS. */\r\n\t\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\t\treturn \"transform\";\r\n\t\t\t\t\t\t\t\t\t\t/* Transform values are cached onto a per-element transformCache object. */\r\n\t\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\t\t/* If this transform has yet to be assigned a value, return its null value. */\r\n\t\t\t\t\t\t\t\t\t\tif (Data(element) === undefined || Data(element).transformCache[transformName] === undefined) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Scale CSS.Lists.transformsBase default to 1 whereas all other transform properties default to 0. */\r\n\t\t\t\t\t\t\t\t\t\t\treturn /^scale/i.test(transformName) ? 1 : 0;\r\n\t\t\t\t\t\t\t\t\t\t\t/* When transform values are set, they are wrapped in parentheses as per the CSS spec.\r\n\t\t\t\t\t\t\t\t\t\t\t Thus, when extracting their values (for tween calculations), we strip off the parentheses. */\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\treturn Data(element).transformCache[transformName].replace(/[()]/g, \"\");\r\n\t\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\t\tvar invalid = false;\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* If an individual transform property contains an unsupported unit type, the browser ignores the *entire* transform property.\r\n\t\t\t\t\t\t\t\t\t\t Thus, protect users from themselves by skipping setting for transform values supplied with invalid unit types. */\r\n\t\t\t\t\t\t\t\t\t\t/* Switch on the base transform type; ignore the axis by removing the last letter from the transform's name. */\r\n\t\t\t\t\t\t\t\t\t\tswitch (transformName.substr(0, transformName.length - 1)) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Whitelist unit types for each transform. */\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"translate\":\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid = !/(%|px|em|rem|vw|vh|\\d)$/i.test(propertyValue);\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* Since an axis-free \"scale\" property is supported as well, a little hack is used here to detect it by chopping off its last letter. */\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"scal\":\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"scale\":\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* Chrome on Android has a bug in which scaled elements blur if their initial scale\r\n\t\t\t\t\t\t\t\t\t\t\t\t value is below 1 (which can happen with forcefeeding). Thus, we detect a yet-unset scale property\r\n\t\t\t\t\t\t\t\t\t\t\t\t and ensure that its first value is always 1. More info: http://stackoverflow.com/questions/10417890/css3-animations-with-transform-causes-blurred-elements-on-webkit/10417962#10417962 */\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (Velocity.State.isAndroid && Data(element).transformCache[transformName] === undefined && propertyValue < 1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpropertyValue = 1;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid = !/(\\d)$/i.test(propertyValue);\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"skew\":\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid = !/(deg|\\d)$/i.test(propertyValue);\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"rotate\":\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid = !/(deg|\\d)$/i.test(propertyValue);\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (!invalid) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* As per the CSS spec, wrap the value in parentheses. */\r\n\t\t\t\t\t\t\t\t\t\t\tData(element).transformCache[transformName] = \"(\" + propertyValue + \")\";\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Although the value is set on the transformCache object, return the newly-updated value for the calling code to process as normal. */\r\n\t\t\t\t\t\t\t\t\t\treturn Data(element).transformCache[transformName];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t})();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*************\r\n\t\t\t\t\t Colors\r\n\t\t\t\t\t *************/\r\n\r\n\t\t\t\t\t/* Since Velocity only animates a single numeric value per property, color animation is achieved by hooking the individual RGBA components of CSS color properties.\r\n\t\t\t\t\t Accordingly, color values must be normalized (e.g. \"#ff0000\", \"red\", and \"rgb(255, 0, 0)\" ==> \"255 0 0 1\") so that their components can be injected/extracted by CSS.Hooks logic. */\r\n\t\t\t\t\tfor (var j = 0; j < CSS.Lists.colors.length; j++) {\r\n\t\t\t\t\t\t/* Wrap the dynamically generated normalization function in a new scope so that colorName's value is paired with its respective function.\r\n\t\t\t\t\t\t (Otherwise, all functions would take the final for loop's colorName.) */\r\n\t\t\t\t\t\t(function() {\r\n\t\t\t\t\t\t\tvar colorName = CSS.Lists.colors[j];\r\n\r\n\t\t\t\t\t\t\t/* Note: In IE<=8, which support rgb but not rgba, color properties are reverted to rgb by stripping off the alpha component. */\r\n\t\t\t\t\t\t\tCSS.Normalizations.registered[colorName] = function(type, element, propertyValue) {\r\n\t\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\t\treturn colorName;\r\n\t\t\t\t\t\t\t\t\t\t/* Convert all color values into the rgb format. (Old IE can return hex values and color names instead of rgb/rgba.) */\r\n\t\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\t\tvar extracted;\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* If the color is already in its hookable form (e.g. \"255 255 255 1\") due to having been previously extracted, skip extraction. */\r\n\t\t\t\t\t\t\t\t\t\tif (CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\t\t\textracted = propertyValue;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tvar converted,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcolorNames = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tblack: \"rgb(0, 0, 0)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tblue: \"rgb(0, 0, 255)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgray: \"rgb(128, 128, 128)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgreen: \"rgb(0, 128, 0)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tred: \"rgb(255, 0, 0)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twhite: \"rgb(255, 255, 255)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Convert color names to rgb. */\r\n\t\t\t\t\t\t\t\t\t\t\tif (/^[A-z]+$/i.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (colorNames[propertyValue] !== undefined) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tconverted = colorNames[propertyValue];\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/* If an unmatched color name is provided, default to black. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tconverted = colorNames.black;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* Convert hex values to rgb. */\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (CSS.RegEx.isHex.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconverted = \"rgb(\" + CSS.Values.hexToRgb(propertyValue).join(\" \") + \")\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* If the provided color doesn't match any of the accepted color formats, default to black. */\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!(/^rgba?\\(/i.test(propertyValue))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconverted = colorNames.black;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Remove the surrounding \"rgb/rgba()\" string then replace commas with spaces and strip\r\n\t\t\t\t\t\t\t\t\t\t\t repeated spaces (in case the value included spaces to begin with). */\r\n\t\t\t\t\t\t\t\t\t\t\textracted = (converted || propertyValue).toString().match(CSS.RegEx.valueUnwrap)[1].replace(/,(\\s+)?/g, \" \");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* So long as this isn't <=IE8, add a fourth (alpha) component if it's missing and default it to 1 (visible). */\r\n\t\t\t\t\t\t\t\t\t\tif ((!IE || IE > 8) && extracted.split(\" \").length === 3) {\r\n\t\t\t\t\t\t\t\t\t\t\textracted += \" 1\";\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\treturn extracted;\r\n\t\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\t\t/* If we have a pattern then it might already have the right values */\r\n\t\t\t\t\t\t\t\t\t\tif (/^rgb/.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\t\t\treturn propertyValue;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* If this is IE<=8 and an alpha component exists, strip it off. */\r\n\t\t\t\t\t\t\t\t\t\tif (IE <= 8) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (propertyValue.split(\" \").length === 4) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tpropertyValue = propertyValue.split(/\\s+/).slice(0, 3).join(\" \");\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t/* Otherwise, add a fourth (alpha) component if it's missing and default it to 1 (visible). */\r\n\t\t\t\t\t\t\t\t\t\t} else if (propertyValue.split(\" \").length === 3) {\r\n\t\t\t\t\t\t\t\t\t\t\tpropertyValue += \" 1\";\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Re-insert the browser-appropriate wrapper(\"rgb/rgba()\"), insert commas, and strip off decimal units\r\n\t\t\t\t\t\t\t\t\t\t on all values but the fourth (R, G, and B only accept whole numbers). */\r\n\t\t\t\t\t\t\t\t\t\treturn (IE <= 8 ? \"rgb\" : \"rgba\") + \"(\" + propertyValue.replace(/\\s+/g, \",\").replace(/\\.(\\d)+(?=,)/g, \"\") + \")\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t})();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/**************\r\n\t\t\t\t\t Dimensions\r\n\t\t\t\t\t **************/\r\n\t\t\t\t\tfunction augmentDimension(name, element, wantInner) {\r\n\t\t\t\t\t\tvar isBorderBox = CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() === \"border-box\";\r\n\r\n\t\t\t\t\t\tif (isBorderBox === (wantInner || false)) {\r\n\t\t\t\t\t\t\t/* in box-sizing mode, the CSS width / height accessors already give the outerWidth / outerHeight. */\r\n\t\t\t\t\t\t\tvar i,\r\n\t\t\t\t\t\t\t\t\tvalue,\r\n\t\t\t\t\t\t\t\t\taugment = 0,\r\n\t\t\t\t\t\t\t\t\tsides = name === \"width\" ? [\"Left\", \"Right\"] : [\"Top\", \"Bottom\"],\r\n\t\t\t\t\t\t\t\t\tfields = [\"padding\" + sides[0], \"padding\" + sides[1], \"border\" + sides[0] + \"Width\", \"border\" + sides[1] + \"Width\"];\r\n\r\n\t\t\t\t\t\t\tfor (i = 0; i < fields.length; i++) {\r\n\t\t\t\t\t\t\t\tvalue = parseFloat(CSS.getPropertyValue(element, fields[i]));\r\n\t\t\t\t\t\t\t\tif (!isNaN(value)) {\r\n\t\t\t\t\t\t\t\t\taugment += value;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn wantInner ? -augment : augment;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfunction getDimension(name, wantInner) {\r\n\t\t\t\t\t\treturn function(type, element, propertyValue) {\r\n\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\treturn name;\r\n\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\treturn parseFloat(propertyValue) + augmentDimension(name, element, wantInner);\r\n\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\treturn (parseFloat(propertyValue) - augmentDimension(name, element, wantInner)) + \"px\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tCSS.Normalizations.registered.innerWidth = getDimension(\"width\", true);\r\n\t\t\t\t\tCSS.Normalizations.registered.innerHeight = getDimension(\"height\", true);\r\n\t\t\t\t\tCSS.Normalizations.registered.outerWidth = getDimension(\"width\");\r\n\t\t\t\t\tCSS.Normalizations.registered.outerHeight = getDimension(\"height\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/************************\r\n\t\t\t CSS Property Names\r\n\t\t\t ************************/\r\n\r\n\t\t\tNames: {\r\n\t\t\t\t/* Camelcase a property name into its JavaScript notation (e.g. \"background-color\" ==> \"backgroundColor\").\r\n\t\t\t\t Camelcasing is used to normalize property names between and across calls. */\r\n\t\t\t\tcamelCase: function(property) {\r\n\t\t\t\t\treturn property.replace(/-(\\w)/g, function(match, subMatch) {\r\n\t\t\t\t\t\treturn subMatch.toUpperCase();\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\t/* For SVG elements, some properties (namely, dimensional ones) are GET/SET via the element's HTML attributes (instead of via CSS styles). */\r\n\t\t\t\tSVGAttribute: function(property) {\r\n\t\t\t\t\tvar SVGAttributes = \"width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2\";\r\n\r\n\t\t\t\t\t/* Certain browsers require an SVG transform to be applied as an attribute. (Otherwise, application via CSS is preferable due to 3D support.) */\r\n\t\t\t\t\tif (IE || (Velocity.State.isAndroid && !Velocity.State.isChrome)) {\r\n\t\t\t\t\t\tSVGAttributes += \"|transform\";\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn new RegExp(\"^(\" + SVGAttributes + \")$\", \"i\").test(property);\r\n\t\t\t\t},\r\n\t\t\t\t/* Determine whether a property should be set with a vendor prefix. */\r\n\t\t\t\t/* If a prefixed version of the property exists, return it. Otherwise, return the original property name.\r\n\t\t\t\t If the property is not at all supported by the browser, return a false flag. */\r\n\t\t\t\tprefixCheck: function(property) {\r\n\t\t\t\t\t/* If this property has already been checked, return the cached value. */\r\n\t\t\t\t\tif (Velocity.State.prefixMatches[property]) {\r\n\t\t\t\t\t\treturn [Velocity.State.prefixMatches[property], true];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar vendors = [\"\", \"Webkit\", \"Moz\", \"ms\", \"O\"];\r\n\r\n\t\t\t\t\t\tfor (var i = 0, vendorsLength = vendors.length; i < vendorsLength; i++) {\r\n\t\t\t\t\t\t\tvar propertyPrefixed;\r\n\r\n\t\t\t\t\t\t\tif (i === 0) {\r\n\t\t\t\t\t\t\t\tpropertyPrefixed = property;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t/* Capitalize the first letter of the property to conform to JavaScript vendor prefix notation (e.g. webkitFilter). */\r\n\t\t\t\t\t\t\t\tpropertyPrefixed = vendors[i] + property.replace(/^\\w/, function(match) {\r\n\t\t\t\t\t\t\t\t\treturn match.toUpperCase();\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Check if the browser supports this property as prefixed. */\r\n\t\t\t\t\t\t\tif (Type.isString(Velocity.State.prefixElement.style[propertyPrefixed])) {\r\n\t\t\t\t\t\t\t\t/* Cache the match. */\r\n\t\t\t\t\t\t\t\tVelocity.State.prefixMatches[property] = propertyPrefixed;\r\n\r\n\t\t\t\t\t\t\t\treturn [propertyPrefixed, true];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* If the browser doesn't support this property in any form, include a false flag so that the caller can decide how to proceed. */\r\n\t\t\t\t\t\treturn [property, false];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/************************\r\n\t\t\t CSS Property Values\r\n\t\t\t ************************/\r\n\r\n\t\t\tValues: {\r\n\t\t\t\t/* Hex to RGB conversion. Copyright Tim Down: http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb */\r\n\t\t\t\thexToRgb: function(hex) {\r\n\t\t\t\t\tvar shortformRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,\r\n\t\t\t\t\t\t\tlongformRegex = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i,\r\n\t\t\t\t\t\t\trgbParts;\r\n\r\n\t\t\t\t\thex = hex.replace(shortformRegex, function(m, r, g, b) {\r\n\t\t\t\t\t\treturn r + r + g + g + b + b;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\trgbParts = longformRegex.exec(hex);\r\n\r\n\t\t\t\t\treturn rgbParts ? [parseInt(rgbParts[1], 16), parseInt(rgbParts[2], 16), parseInt(rgbParts[3], 16)] : [0, 0, 0];\r\n\t\t\t\t},\r\n\t\t\t\tisCSSNullValue: function(value) {\r\n\t\t\t\t\t/* The browser defaults CSS values that have not been set to either 0 or one of several possible null-value strings.\r\n\t\t\t\t\t Thus, we check for both falsiness and these special strings. */\r\n\t\t\t\t\t/* Null-value checking is performed to default the special strings to 0 (for the sake of tweening) or their hook\r\n\t\t\t\t\t templates as defined as CSS.Hooks (for the sake of hook injection/extraction). */\r\n\t\t\t\t\t/* Note: Chrome returns \"rgba(0, 0, 0, 0)\" for an undefined color whereas IE returns \"transparent\". */\r\n\t\t\t\t\treturn (!value || /^(none|auto|transparent|(rgba\\(0, ?0, ?0, ?0\\)))$/i.test(value));\r\n\t\t\t\t},\r\n\t\t\t\t/* Retrieve a property's default unit type. Used for assigning a unit type when one is not supplied by the user. */\r\n\t\t\t\tgetUnitType: function(property) {\r\n\t\t\t\t\tif (/^(rotate|skew)/i.test(property)) {\r\n\t\t\t\t\t\treturn \"deg\";\r\n\t\t\t\t\t} else if (/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(property)) {\r\n\t\t\t\t\t\t/* The above properties are unitless. */\r\n\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* Default to px for all other properties. */\r\n\t\t\t\t\t\treturn \"px\";\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t/* HTML elements default to an associated display type when they're not set to display:none. */\r\n\t\t\t\t/* Note: This function is used for correctly setting the non-\"none\" display value in certain Velocity redirects, such as fadeIn/Out. */\r\n\t\t\t\tgetDisplayType: function(element) {\r\n\t\t\t\t\tvar tagName = element && element.tagName.toString().toLowerCase();\r\n\r\n\t\t\t\t\tif (/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"inline\";\r\n\t\t\t\t\t} else if (/^(li)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"list-item\";\r\n\t\t\t\t\t} else if (/^(tr)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"table-row\";\r\n\t\t\t\t\t} else if (/^(table)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"table\";\r\n\t\t\t\t\t} else if (/^(tbody)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"table-row-group\";\r\n\t\t\t\t\t\t/* Default to \"block\" when no match is found. */\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn \"block\";\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t/* The class add/remove functions are used to temporarily apply a \"velocity-animating\" class to elements while they're animating. */\r\n\t\t\t\taddClass: function(element, className) {\r\n\t\t\t\t\tif (element) {\r\n\t\t\t\t\t\tif (element.classList) {\r\n\t\t\t\t\t\t\telement.classList.add(className);\r\n\t\t\t\t\t\t} else if (Type.isString(element.className)) {\r\n\t\t\t\t\t\t\t// Element.className is around 15% faster then set/getAttribute\r\n\t\t\t\t\t\t\telement.className += (element.className.length ? \" \" : \"\") + className;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// Work around for IE strict mode animating SVG - and anything else that doesn't behave correctly - the same way jQuery does it\r\n\t\t\t\t\t\t\tvar currentClass = element.getAttribute(IE <= 7 ? \"className\" : \"class\") || \"\";\r\n\r\n\t\t\t\t\t\t\telement.setAttribute(\"class\", currentClass + (currentClass ? \" \" : \"\") + className);\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\tremoveClass: function(element, className) {\r\n\t\t\t\t\tif (element) {\r\n\t\t\t\t\t\tif (element.classList) {\r\n\t\t\t\t\t\t\telement.classList.remove(className);\r\n\t\t\t\t\t\t} else if (Type.isString(element.className)) {\r\n\t\t\t\t\t\t\t// Element.className is around 15% faster then set/getAttribute\r\n\t\t\t\t\t\t\t// TODO: Need some jsperf tests on performance - can we get rid of the regex and maybe use split / array manipulation?\r\n\t\t\t\t\t\t\telement.className = element.className.toString().replace(new RegExp(\"(^|\\\\s)\" + className.split(\" \").join(\"|\") + \"(\\\\s|$)\", \"gi\"), \" \");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// Work around for IE strict mode animating SVG - and anything else that doesn't behave correctly - the same way jQuery does it\r\n\t\t\t\t\t\t\tvar currentClass = element.getAttribute(IE <= 7 ? \"className\" : \"class\") || \"\";\r\n\r\n\t\t\t\t\t\t\telement.setAttribute(\"class\", currentClass.replace(new RegExp(\"(^|\\s)\" + className.split(\" \").join(\"|\") + \"(\\s|$)\", \"gi\"), \" \"));\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\t/****************************\r\n\t\t\t Style Getting & Setting\r\n\t\t\t ****************************/\r\n\r\n\t\t\t/* The singular getPropertyValue, which routes the logic for all normalizations, hooks, and standard CSS properties. */\r\n\t\t\tgetPropertyValue: function(element, property, rootPropertyValue, forceStyleLookup) {\r\n\t\t\t\t/* Get an element's computed property value. */\r\n\t\t\t\t/* Note: Retrieving the value of a CSS property cannot simply be performed by checking an element's\r\n\t\t\t\t style attribute (which only reflects user-defined values). Instead, the browser must be queried for a property's\r\n\t\t\t\t *computed* value. You can read more about getComputedStyle here: https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle */\r\n\t\t\t\tfunction computePropertyValue(element, property) {\r\n\t\t\t\t\t/* When box-sizing isn't set to border-box, height and width style values are incorrectly computed when an\r\n\t\t\t\t\t element's scrollbars are visible (which expands the element's dimensions). Thus, we defer to the more accurate\r\n\t\t\t\t\t offsetHeight/Width property, which includes the total dimensions for interior, border, padding, and scrollbar.\r\n\t\t\t\t\t We subtract border and padding to get the sum of interior + scrollbar. */\r\n\t\t\t\t\tvar computedValue = 0;\r\n\r\n\t\t\t\t\t/* IE<=8 doesn't support window.getComputedStyle, thus we defer to jQuery, which has an extensive array\r\n\t\t\t\t\t of hacks to accurately retrieve IE8 property values. Re-implementing that logic here is not worth bloating the\r\n\t\t\t\t\t codebase for a dying browser. The performance repercussions of using jQuery here are minimal since\r\n\t\t\t\t\t Velocity is optimized to rarely (and sometimes never) query the DOM. Further, the $.css() codepath isn't that slow. */\r\n\t\t\t\t\tif (IE <= 8) {\r\n\t\t\t\t\t\tcomputedValue = $.css(element, property); /* GET */\r\n\t\t\t\t\t\t/* All other browsers support getComputedStyle. The returned live object reference is cached onto its\r\n\t\t\t\t\t\t associated element so that it does not need to be refetched upon every GET. */\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* Browsers do not return height and width values for elements that are set to display:\"none\". Thus, we temporarily\r\n\t\t\t\t\t\t toggle display to the element type's default value. */\r\n\t\t\t\t\t\tvar toggleDisplay = false;\r\n\r\n\t\t\t\t\t\tif (/^(width|height)$/.test(property) && CSS.getPropertyValue(element, \"display\") === 0) {\r\n\t\t\t\t\t\t\ttoggleDisplay = true;\r\n\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", CSS.Values.getDisplayType(element));\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tvar revertDisplay = function() {\r\n\t\t\t\t\t\t\tif (toggleDisplay) {\r\n\t\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", \"none\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tif (!forceStyleLookup) {\r\n\t\t\t\t\t\t\tif (property === \"height\" && CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() !== \"border-box\") {\r\n\t\t\t\t\t\t\t\tvar contentBoxHeight = element.offsetHeight - (parseFloat(CSS.getPropertyValue(element, \"borderTopWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"borderBottomWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingTop\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingBottom\")) || 0);\r\n\t\t\t\t\t\t\t\trevertDisplay();\r\n\r\n\t\t\t\t\t\t\t\treturn contentBoxHeight;\r\n\t\t\t\t\t\t\t} else if (property === \"width\" && CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() !== \"border-box\") {\r\n\t\t\t\t\t\t\t\tvar contentBoxWidth = element.offsetWidth - (parseFloat(CSS.getPropertyValue(element, \"borderLeftWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"borderRightWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingLeft\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingRight\")) || 0);\r\n\t\t\t\t\t\t\t\trevertDisplay();\r\n\r\n\t\t\t\t\t\t\t\treturn contentBoxWidth;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tvar computedStyle;\r\n\r\n\t\t\t\t\t\t/* For elements that Velocity hasn't been called on directly (e.g. when Velocity queries the DOM on behalf\r\n\t\t\t\t\t\t of a parent of an element its animating), perform a direct getComputedStyle lookup since the object isn't cached. */\r\n\t\t\t\t\t\tif (Data(element) === undefined) {\r\n\t\t\t\t\t\t\tcomputedStyle = window.getComputedStyle(element, null); /* GET */\r\n\t\t\t\t\t\t\t/* If the computedStyle object has yet to be cached, do so now. */\r\n\t\t\t\t\t\t} else if (!Data(element).computedStyle) {\r\n\t\t\t\t\t\t\tcomputedStyle = Data(element).computedStyle = window.getComputedStyle(element, null); /* GET */\r\n\t\t\t\t\t\t\t/* If computedStyle is cached, use it. */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcomputedStyle = Data(element).computedStyle;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* IE and Firefox do not return a value for the generic borderColor -- they only return individual values for each border side's color.\r\n\t\t\t\t\t\t Also, in all browsers, when border colors aren't all the same, a compound value is returned that Velocity isn't setup to parse.\r\n\t\t\t\t\t\t So, as a polyfill for querying individual border side colors, we just return the top border's color and animate all borders from that value. */\r\n\t\t\t\t\t\tif (property === \"borderColor\") {\r\n\t\t\t\t\t\t\tproperty = \"borderTopColor\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* IE9 has a bug in which the \"filter\" property must be accessed from computedStyle using the getPropertyValue method\r\n\t\t\t\t\t\t instead of a direct property lookup. The getPropertyValue method is slower than a direct lookup, which is why we avoid it by default. */\r\n\t\t\t\t\t\tif (IE === 9 && property === \"filter\") {\r\n\t\t\t\t\t\t\tcomputedValue = computedStyle.getPropertyValue(property); /* GET */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcomputedValue = computedStyle[property];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Fall back to the property's style value (if defined) when computedValue returns nothing,\r\n\t\t\t\t\t\t which can happen when the element hasn't been painted. */\r\n\t\t\t\t\t\tif (computedValue === \"\" || computedValue === null) {\r\n\t\t\t\t\t\t\tcomputedValue = element.style[property];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\trevertDisplay();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* For top, right, bottom, and left (TRBL) values that are set to \"auto\" on elements of \"fixed\" or \"absolute\" position,\r\n\t\t\t\t\t defer to jQuery for converting \"auto\" to a numeric value. (For elements with a \"static\" or \"relative\" position, \"auto\" has the same\r\n\t\t\t\t\t effect as being set to 0, so no conversion is necessary.) */\r\n\t\t\t\t\t/* An example of why numeric conversion is necessary: When an element with \"position:absolute\" has an untouched \"left\"\r\n\t\t\t\t\t property, which reverts to \"auto\", left's value is 0 relative to its parent element, but is often non-zero relative\r\n\t\t\t\t\t to its *containing* (not parent) element, which is the nearest \"position:relative\" ancestor or the viewport (and always the viewport in the case of \"position:fixed\"). */\r\n\t\t\t\t\tif (computedValue === \"auto\" && /^(top|right|bottom|left)$/i.test(property)) {\r\n\t\t\t\t\t\tvar position = computePropertyValue(element, \"position\"); /* GET */\r\n\r\n\t\t\t\t\t\t/* For absolute positioning, jQuery's $.position() only returns values for top and left;\r\n\t\t\t\t\t\t right and bottom will have their \"auto\" value reverted to 0. */\r\n\t\t\t\t\t\t/* Note: A jQuery object must be created here since jQuery doesn't have a low-level alias for $.position().\r\n\t\t\t\t\t\t Not a big deal since we're currently in a GET batch anyway. */\r\n\t\t\t\t\t\tif (position === \"fixed\" || (position === \"absolute\" && /top|left/i.test(property))) {\r\n\t\t\t\t\t\t\t/* Note: jQuery strips the pixel unit from its returned values; we re-add it here to conform with computePropertyValue's behavior. */\r\n\t\t\t\t\t\t\tcomputedValue = $(element).position()[property] + \"px\"; /* GET */\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn computedValue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar propertyValue;\r\n\r\n\t\t\t\t/* If this is a hooked property (e.g. \"clipLeft\" instead of the root property of \"clip\"),\r\n\t\t\t\t extract the hook's value from a normalized rootPropertyValue using CSS.Hooks.extractValue(). */\r\n\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\tvar hook = property,\r\n\t\t\t\t\t\t\thookRoot = CSS.Hooks.getRoot(hook);\r\n\r\n\t\t\t\t\t/* If a cached rootPropertyValue wasn't passed in (which Velocity always attempts to do in order to avoid requerying the DOM),\r\n\t\t\t\t\t query the DOM for the root property's value. */\r\n\t\t\t\t\tif (rootPropertyValue === undefined) {\r\n\t\t\t\t\t\t/* Since the browser is now being directly queried, use the official post-prefixing property name for this lookup. */\r\n\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, CSS.Names.prefixCheck(hookRoot)[0]); /* GET */\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If this root has a normalization registered, peform the associated normalization extraction. */\r\n\t\t\t\t\tif (CSS.Normalizations.registered[hookRoot]) {\r\n\t\t\t\t\t\trootPropertyValue = CSS.Normalizations.registered[hookRoot](\"extract\", element, rootPropertyValue);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Extract the hook's value. */\r\n\t\t\t\t\tpropertyValue = CSS.Hooks.extractValue(hook, rootPropertyValue);\r\n\r\n\t\t\t\t\t/* If this is a normalized property (e.g. \"opacity\" becomes \"filter\" in <=IE8) or \"translateX\" becomes \"transform\"),\r\n\t\t\t\t\t normalize the property's name and value, and handle the special case of transforms. */\r\n\t\t\t\t\t/* Note: Normalizing a property is mutually exclusive from hooking a property since hook-extracted values are strictly\r\n\t\t\t\t\t numerical and therefore do not require normalization extraction. */\r\n\t\t\t\t} else if (CSS.Normalizations.registered[property]) {\r\n\t\t\t\t\tvar normalizedPropertyName,\r\n\t\t\t\t\t\t\tnormalizedPropertyValue;\r\n\r\n\t\t\t\t\tnormalizedPropertyName = CSS.Normalizations.registered[property](\"name\", element);\r\n\r\n\t\t\t\t\t/* Transform values are calculated via normalization extraction (see below), which checks against the element's transformCache.\r\n\t\t\t\t\t At no point do transform GETs ever actually query the DOM; initial stylesheet values are never processed.\r\n\t\t\t\t\t This is because parsing 3D transform matrices is not always accurate and would bloat our codebase;\r\n\t\t\t\t\t thus, normalization extraction defaults initial transform values to their zero-values (e.g. 1 for scaleX and 0 for translateX). */\r\n\t\t\t\t\tif (normalizedPropertyName !== \"transform\") {\r\n\t\t\t\t\t\tnormalizedPropertyValue = computePropertyValue(element, CSS.Names.prefixCheck(normalizedPropertyName)[0]); /* GET */\r\n\r\n\t\t\t\t\t\t/* If the value is a CSS null-value and this property has a hook template, use that zero-value template so that hooks can be extracted from it. */\r\n\t\t\t\t\t\tif (CSS.Values.isCSSNullValue(normalizedPropertyValue) && CSS.Hooks.templates[property]) {\r\n\t\t\t\t\t\t\tnormalizedPropertyValue = CSS.Hooks.templates[property][1];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpropertyValue = CSS.Normalizations.registered[property](\"extract\", element, normalizedPropertyValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* If a (numeric) value wasn't produced via hook extraction or normalization, query the DOM. */\r\n\t\t\t\tif (!/^[\\d-]/.test(propertyValue)) {\r\n\t\t\t\t\t/* For SVG elements, dimensional properties (which SVGAttribute() detects) are tweened via\r\n\t\t\t\t\t their HTML attribute values instead of their CSS style values. */\r\n\t\t\t\t\tvar data = Data(element);\r\n\r\n\t\t\t\t\tif (data && data.isSVG && CSS.Names.SVGAttribute(property)) {\r\n\t\t\t\t\t\t/* Since the height/width attribute values must be set manually, they don't reflect computed values.\r\n\t\t\t\t\t\t Thus, we use use getBBox() to ensure we always get values for elements with undefined height/width attributes. */\r\n\t\t\t\t\t\tif (/^(height|width)$/i.test(property)) {\r\n\t\t\t\t\t\t\t/* Firefox throws an error if .getBBox() is called on an SVG that isn't attached to the DOM. */\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpropertyValue = element.getBBox()[property];\r\n\t\t\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\t\t\tpropertyValue = 0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* Otherwise, access the attribute value directly. */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tpropertyValue = element.getAttribute(property);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpropertyValue = computePropertyValue(element, CSS.Names.prefixCheck(property)[0]); /* GET */\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Since property lookups are for animation purposes (which entails computing the numeric delta between start and end values),\r\n\t\t\t\t convert CSS null-values to an integer of value 0. */\r\n\t\t\t\tif (CSS.Values.isCSSNullValue(propertyValue)) {\r\n\t\t\t\t\tpropertyValue = 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (Velocity.debug >= 2) {\r\n\t\t\t\t\tconsole.log(\"Get \" + property + \": \" + propertyValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn propertyValue;\r\n\t\t\t},\r\n\t\t\t/* The singular setPropertyValue, which routes the logic for all normalizations, hooks, and standard CSS properties. */\r\n\t\t\tsetPropertyValue: function(element, property, propertyValue, rootPropertyValue, scrollData) {\r\n\t\t\t\tvar propertyName = property;\r\n\r\n\t\t\t\t/* In order to be subjected to call options and element queueing, scroll animation is routed through Velocity as if it were a standard CSS property. */\r\n\t\t\t\tif (property === \"scroll\") {\r\n\t\t\t\t\t/* If a container option is present, scroll the container instead of the browser window. */\r\n\t\t\t\t\tif (scrollData.container) {\r\n\t\t\t\t\t\tscrollData.container[\"scroll\" + scrollData.direction] = propertyValue;\r\n\t\t\t\t\t\t/* Otherwise, Velocity defaults to scrolling the browser window. */\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (scrollData.direction === \"Left\") {\r\n\t\t\t\t\t\t\twindow.scrollTo(propertyValue, scrollData.alternateValue);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\twindow.scrollTo(scrollData.alternateValue, propertyValue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t/* Transforms (translateX, rotateZ, etc.) are applied to a per-element transformCache object, which is manually flushed via flushTransformCache().\r\n\t\t\t\t\t Thus, for now, we merely cache transforms being SET. */\r\n\t\t\t\t\tif (CSS.Normalizations.registered[property] && CSS.Normalizations.registered[property](\"name\", element) === \"transform\") {\r\n\t\t\t\t\t\t/* Perform a normalization injection. */\r\n\t\t\t\t\t\t/* Note: The normalization logic handles the transformCache updating. */\r\n\t\t\t\t\t\tCSS.Normalizations.registered[property](\"inject\", element, propertyValue);\r\n\r\n\t\t\t\t\t\tpropertyName = \"transform\";\r\n\t\t\t\t\t\tpropertyValue = Data(element).transformCache[property];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* Inject hooks. */\r\n\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\tvar hookName = property,\r\n\t\t\t\t\t\t\t\t\thookRoot = CSS.Hooks.getRoot(property);\r\n\r\n\t\t\t\t\t\t\t/* If a cached rootPropertyValue was not provided, query the DOM for the hookRoot's current value. */\r\n\t\t\t\t\t\t\trootPropertyValue = rootPropertyValue || CSS.getPropertyValue(element, hookRoot); /* GET */\r\n\r\n\t\t\t\t\t\t\tpropertyValue = CSS.Hooks.injectValue(hookName, propertyValue, rootPropertyValue);\r\n\t\t\t\t\t\t\tproperty = hookRoot;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Normalize names and values. */\r\n\t\t\t\t\t\tif (CSS.Normalizations.registered[property]) {\r\n\t\t\t\t\t\t\tpropertyValue = CSS.Normalizations.registered[property](\"inject\", element, propertyValue);\r\n\t\t\t\t\t\t\tproperty = CSS.Normalizations.registered[property](\"name\", element);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Assign the appropriate vendor prefix before performing an official style update. */\r\n\t\t\t\t\t\tpropertyName = CSS.Names.prefixCheck(property)[0];\r\n\r\n\t\t\t\t\t\t/* A try/catch is used for IE<=8, which throws an error when \"invalid\" CSS values are set, e.g. a negative width.\r\n\t\t\t\t\t\t Try/catch is avoided for other browsers since it incurs a performance overhead. */\r\n\t\t\t\t\t\tif (IE <= 8) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\telement.style[propertyName] = propertyValue;\r\n\t\t\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Browser does not support [\" + propertyValue + \"] for [\" + propertyName + \"]\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* SVG elements have their dimensional properties (width, height, x, y, cx, etc.) applied directly as attributes instead of as styles. */\r\n\t\t\t\t\t\t\t/* Note: IE8 does not support SVG elements, so it's okay that we skip it for SVG animation. */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tvar data = Data(element);\r\n\r\n\t\t\t\t\t\t\tif (data && data.isSVG && CSS.Names.SVGAttribute(property)) {\r\n\t\t\t\t\t\t\t\t/* Note: For SVG attributes, vendor-prefixed property names are never used. */\r\n\t\t\t\t\t\t\t\t/* Note: Not all CSS properties can be animated via attributes, but the browser won't throw an error for unsupported properties. */\r\n\t\t\t\t\t\t\t\telement.setAttribute(property, propertyValue);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\telement.style[propertyName] = propertyValue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (Velocity.debug >= 2) {\r\n\t\t\t\t\t\t\tconsole.log(\"Set \" + property + \" (\" + propertyName + \"): \" + propertyValue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Return the normalized property name and value in case the caller wants to know how these values were modified before being applied to the DOM. */\r\n\t\t\t\treturn [propertyName, propertyValue];\r\n\t\t\t},\r\n\t\t\t/* To increase performance by batching transform updates into a single SET, transforms are not directly applied to an element until flushTransformCache() is called. */\r\n\t\t\t/* Note: Velocity applies transform properties in the same order that they are chronogically introduced to the element's CSS styles. */\r\n\t\t\tflushTransformCache: function(element) {\r\n\t\t\t\tvar transformString = \"\",\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t/* Certain browsers require that SVG transforms be applied as an attribute. However, the SVG transform attribute takes a modified version of CSS's transform string\r\n\t\t\t\t (units are dropped and, except for skewX/Y, subproperties are merged into their master property -- e.g. scaleX and scaleY are merged into scale(X Y). */\r\n\t\t\t\tif ((IE || (Velocity.State.isAndroid && !Velocity.State.isChrome)) && data && data.isSVG) {\r\n\t\t\t\t\t/* Since transform values are stored in their parentheses-wrapped form, we use a helper function to strip out their numeric values.\r\n\t\t\t\t\t Further, SVG transform properties only take unitless (representing pixels) values, so it's okay that parseFloat() strips the unit suffixed to the float value. */\r\n\t\t\t\t\tvar getTransformFloat = function(transformProperty) {\r\n\t\t\t\t\t\treturn parseFloat(CSS.getPropertyValue(element, transformProperty));\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\t/* Create an object to organize all the transforms that we'll apply to the SVG element. To keep the logic simple,\r\n\t\t\t\t\t we process *all* transform properties -- even those that may not be explicitly applied (since they default to their zero-values anyway). */\r\n\t\t\t\t\tvar SVGTransforms = {\r\n\t\t\t\t\t\ttranslate: [getTransformFloat(\"translateX\"), getTransformFloat(\"translateY\")],\r\n\t\t\t\t\t\tskewX: [getTransformFloat(\"skewX\")], skewY: [getTransformFloat(\"skewY\")],\r\n\t\t\t\t\t\t/* If the scale property is set (non-1), use that value for the scaleX and scaleY values\r\n\t\t\t\t\t\t (this behavior mimics the result of animating all these properties at once on HTML elements). */\r\n\t\t\t\t\t\tscale: getTransformFloat(\"scale\") !== 1 ? [getTransformFloat(\"scale\"), getTransformFloat(\"scale\")] : [getTransformFloat(\"scaleX\"), getTransformFloat(\"scaleY\")],\r\n\t\t\t\t\t\t/* Note: SVG's rotate transform takes three values: rotation degrees followed by the X and Y values\r\n\t\t\t\t\t\t defining the rotation's origin point. We ignore the origin values (default them to 0). */\r\n\t\t\t\t\t\trotate: [getTransformFloat(\"rotateZ\"), 0, 0]\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\t/* Iterate through the transform properties in the user-defined property map order.\r\n\t\t\t\t\t (This mimics the behavior of non-SVG transform animation.) */\r\n\t\t\t\t\t$.each(Data(element).transformCache, function(transformName) {\r\n\t\t\t\t\t\t/* Except for with skewX/Y, revert the axis-specific transform subproperties to their axis-free master\r\n\t\t\t\t\t\t properties so that they match up with SVG's accepted transform properties. */\r\n\t\t\t\t\t\tif (/^translate/i.test(transformName)) {\r\n\t\t\t\t\t\t\ttransformName = \"translate\";\r\n\t\t\t\t\t\t} else if (/^scale/i.test(transformName)) {\r\n\t\t\t\t\t\t\ttransformName = \"scale\";\r\n\t\t\t\t\t\t} else if (/^rotate/i.test(transformName)) {\r\n\t\t\t\t\t\t\ttransformName = \"rotate\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Check that we haven't yet deleted the property from the SVGTransforms container. */\r\n\t\t\t\t\t\tif (SVGTransforms[transformName]) {\r\n\t\t\t\t\t\t\t/* Append the transform property in the SVG-supported transform format. As per the spec, surround the space-delimited values in parentheses. */\r\n\t\t\t\t\t\t\ttransformString += transformName + \"(\" + SVGTransforms[transformName].join(\" \") + \")\" + \" \";\r\n\r\n\t\t\t\t\t\t\t/* After processing an SVG transform property, delete it from the SVGTransforms container so we don't\r\n\t\t\t\t\t\t\t re-insert the same master property if we encounter another one of its axis-specific properties. */\r\n\t\t\t\t\t\t\tdelete SVGTransforms[transformName];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar transformValue,\r\n\t\t\t\t\t\t\tperspective;\r\n\r\n\t\t\t\t\t/* Transform properties are stored as members of the transformCache object. Concatenate all the members into a string. */\r\n\t\t\t\t\t$.each(Data(element).transformCache, function(transformName) {\r\n\t\t\t\t\t\ttransformValue = Data(element).transformCache[transformName];\r\n\r\n\t\t\t\t\t\t/* Transform's perspective subproperty must be set first in order to take effect. Store it temporarily. */\r\n\t\t\t\t\t\tif (transformName === \"transformPerspective\") {\r\n\t\t\t\t\t\t\tperspective = transformValue;\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* IE9 only supports one rotation type, rotateZ, which it refers to as \"rotate\". */\r\n\t\t\t\t\t\tif (IE === 9 && transformName === \"rotateZ\") {\r\n\t\t\t\t\t\t\ttransformName = \"rotate\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\ttransformString += transformName + transformValue + \" \";\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* If present, set the perspective subproperty first. */\r\n\t\t\t\t\tif (perspective) {\r\n\t\t\t\t\t\ttransformString = \"perspective\" + perspective + \" \" + transformString;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tCSS.setPropertyValue(element, \"transform\", transformString);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t/* Register hooks and normalizations. */\r\n\t\tCSS.Hooks.register();\r\n\t\tCSS.Normalizations.register();\r\n\r\n\t\t/* Allow hook setting in the same fashion as jQuery's $.css(). */\r\n\t\tVelocity.hook = function(elements, arg2, arg3) {\r\n\t\t\tvar value;\r\n\r\n\t\t\telements = sanitizeElements(elements);\r\n\r\n\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t/* Initialize Velocity's per-element data cache if this element hasn't previously been animated. */\r\n\t\t\t\tif (Data(element) === undefined) {\r\n\t\t\t\t\tVelocity.init(element);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Get property value. If an element set was passed in, only return the value for the first element. */\r\n\t\t\t\tif (arg3 === undefined) {\r\n\t\t\t\t\tif (value === undefined) {\r\n\t\t\t\t\t\tvalue = CSS.getPropertyValue(element, arg2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/* Set property value. */\r\n\t\t\t\t} else {\r\n\t\t\t\t\t/* sPV returns an array of the normalized propertyName/propertyValue pair used to update the DOM. */\r\n\t\t\t\t\tvar adjustedSet = CSS.setPropertyValue(element, arg2, arg3);\r\n\r\n\t\t\t\t\t/* Transform properties don't automatically set. They have to be flushed to the DOM. */\r\n\t\t\t\t\tif (adjustedSet[0] === \"transform\") {\r\n\t\t\t\t\t\tVelocity.CSS.flushTransformCache(element);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvalue = adjustedSet;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\treturn value;\r\n\t\t};\r\n\r\n\t\t/*****************\r\n\t\t Animation\r\n\t\t *****************/\r\n\r\n\t\tvar animate = function() {\r\n\t\t\tvar opts;\r\n\r\n\t\t\t/******************\r\n\t\t\t Call Chain\r\n\t\t\t ******************/\r\n\r\n\t\t\t/* Logic for determining what to return to the call stack when exiting out of Velocity. */\r\n\t\t\tfunction getChain() {\r\n\t\t\t\t/* If we are using the utility function, attempt to return this call's promise. If no promise library was detected,\r\n\t\t\t\t default to null instead of returning the targeted elements so that utility function's return value is standardized. */\r\n\t\t\t\tif (isUtility) {\r\n\t\t\t\t\treturn promiseData.promise || null;\r\n\t\t\t\t\t/* Otherwise, if we're using $.fn, return the jQuery-/Zepto-wrapped element set. */\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn elementsWrapped;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*************************\r\n\t\t\t Arguments Assignment\r\n\t\t\t *************************/\r\n\r\n\t\t\t/* To allow for expressive CoffeeScript code, Velocity supports an alternative syntax in which \"elements\" (or \"e\"), \"properties\" (or \"p\"), and \"options\" (or \"o\")\r\n\t\t\t objects are defined on a container object that's passed in as Velocity's sole argument. */\r\n\t\t\t/* Note: Some browsers automatically populate arguments with a \"properties\" object. We detect it by checking for its default \"names\" property. */\r\n\t\t\tvar syntacticSugar = (arguments[0] && (arguments[0].p || (($.isPlainObject(arguments[0].properties) && !arguments[0].properties.names) || Type.isString(arguments[0].properties)))),\r\n\t\t\t\t\t/* Whether Velocity was called via the utility function (as opposed to on a jQuery/Zepto object). */\r\n\t\t\t\t\tisUtility,\r\n\t\t\t\t\t/* When Velocity is called via the utility function ($.Velocity()/Velocity()), elements are explicitly\r\n\t\t\t\t\t passed in as the first parameter. Thus, argument positioning varies. We normalize them here. */\r\n\t\t\t\t\telementsWrapped,\r\n\t\t\t\t\targumentIndex;\r\n\r\n\t\t\tvar elements,\r\n\t\t\t\t\tpropertiesMap,\r\n\t\t\t\t\toptions;\r\n\r\n\t\t\t/* Detect jQuery/Zepto elements being animated via the $.fn method. */\r\n\t\t\tif (Type.isWrapped(this)) {\r\n\t\t\t\tisUtility = false;\r\n\r\n\t\t\t\targumentIndex = 0;\r\n\t\t\t\telements = this;\r\n\t\t\t\telementsWrapped = this;\r\n\t\t\t\t/* Otherwise, raw elements are being animated via the utility function. */\r\n\t\t\t} else {\r\n\t\t\t\tisUtility = true;\r\n\r\n\t\t\t\targumentIndex = 1;\r\n\t\t\t\telements = syntacticSugar ? (arguments[0].elements || arguments[0].e) : arguments[0];\r\n\t\t\t}\r\n\r\n\t\t\t/***************\r\n\t\t\t Promises\r\n\t\t\t ***************/\r\n\r\n\t\t\tvar promiseData = {\r\n\t\t\t\tpromise: null,\r\n\t\t\t\tresolver: null,\r\n\t\t\t\trejecter: null\r\n\t\t\t};\r\n\r\n\t\t\t/* If this call was made via the utility function (which is the default method of invocation when jQuery/Zepto are not being used), and if\r\n\t\t\t promise support was detected, create a promise object for this call and store references to its resolver and rejecter methods. The resolve\r\n\t\t\t method is used when a call completes naturally or is prematurely stopped by the user. In both cases, completeCall() handles the associated\r\n\t\t\t call cleanup and promise resolving logic. The reject method is used when an invalid set of arguments is passed into a Velocity call. */\r\n\t\t\t/* Note: Velocity employs a call-based queueing architecture, which means that stopping an animating element actually stops the full call that\r\n\t\t\t triggered it -- not that one element exclusively. Similarly, there is one promise per call, and all elements targeted by a Velocity call are\r\n\t\t\t grouped together for the purposes of resolving and rejecting a promise. */\r\n\t\t\tif (isUtility && Velocity.Promise) {\r\n\t\t\t\tpromiseData.promise = new Velocity.Promise(function(resolve, reject) {\r\n\t\t\t\t\tpromiseData.resolver = resolve;\r\n\t\t\t\t\tpromiseData.rejecter = reject;\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\tif (syntacticSugar) {\r\n\t\t\t\tpropertiesMap = arguments[0].properties || arguments[0].p;\r\n\t\t\t\toptions = arguments[0].options || arguments[0].o;\r\n\t\t\t} else {\r\n\t\t\t\tpropertiesMap = arguments[argumentIndex];\r\n\t\t\t\toptions = arguments[argumentIndex + 1];\r\n\t\t\t}\r\n\r\n\t\t\telements = sanitizeElements(elements);\r\n\r\n\t\t\tif (!elements) {\r\n\t\t\t\tif (promiseData.promise) {\r\n\t\t\t\t\tif (!propertiesMap || !options || options.promiseRejectEmpty !== false) {\r\n\t\t\t\t\t\tpromiseData.rejecter();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpromiseData.resolver();\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\r\n\t\t\t/* The length of the element set (in the form of a nodeList or an array of elements) is defaulted to 1 in case a\r\n\t\t\t single raw DOM element is passed in (which doesn't contain a length property). */\r\n\t\t\tvar elementsLength = elements.length,\r\n\t\t\t\t\telementsIndex = 0;\r\n\r\n\t\t\t/***************************\r\n\t\t\t Argument Overloading\r\n\t\t\t ***************************/\r\n\r\n\t\t\t/* Support is included for jQuery's argument overloading: $.animate(propertyMap [, duration] [, easing] [, complete]).\r\n\t\t\t Overloading is detected by checking for the absence of an object being passed into options. */\r\n\t\t\t/* Note: The stop/finish/pause/resume actions do not accept animation options, and are therefore excluded from this check. */\r\n\t\t\tif (!/^(stop|finish|finishAll|pause|resume)$/i.test(propertiesMap) && !$.isPlainObject(options)) {\r\n\t\t\t\t/* The utility function shifts all arguments one position to the right, so we adjust for that offset. */\r\n\t\t\t\tvar startingArgumentPosition = argumentIndex + 1;\r\n\r\n\t\t\t\toptions = {};\r\n\r\n\t\t\t\t/* Iterate through all options arguments */\r\n\t\t\t\tfor (var i = startingArgumentPosition; i < arguments.length; i++) {\r\n\t\t\t\t\t/* Treat a number as a duration. Parse it out. */\r\n\t\t\t\t\t/* Note: The following RegEx will return true if passed an array with a number as its first item.\r\n\t\t\t\t\t Thus, arrays are skipped from this check. */\r\n\t\t\t\t\tif (!Type.isArray(arguments[i]) && (/^(fast|normal|slow)$/i.test(arguments[i]) || /^\\d/.test(arguments[i]))) {\r\n\t\t\t\t\t\toptions.duration = arguments[i];\r\n\t\t\t\t\t\t/* Treat strings and arrays as easings. */\r\n\t\t\t\t\t} else if (Type.isString(arguments[i]) || Type.isArray(arguments[i])) {\r\n\t\t\t\t\t\toptions.easing = arguments[i];\r\n\t\t\t\t\t\t/* Treat a function as a complete callback. */\r\n\t\t\t\t\t} else if (Type.isFunction(arguments[i])) {\r\n\t\t\t\t\t\toptions.complete = arguments[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*********************\r\n\t\t\t Action Detection\r\n\t\t\t *********************/\r\n\r\n\t\t\t/* Velocity's behavior is categorized into \"actions\": Elements can either be specially scrolled into view,\r\n\t\t\t or they can be started, stopped, paused, resumed, or reversed . If a literal or referenced properties map is passed in as Velocity's\r\n\t\t\t first argument, the associated action is \"start\". Alternatively, \"scroll\", \"reverse\", \"pause\", \"resume\" or \"stop\" can be passed in \r\n\t\t\t instead of a properties map. */\r\n\t\t\tvar action;\r\n\r\n\t\t\tswitch (propertiesMap) {\r\n\t\t\t\tcase \"scroll\":\r\n\t\t\t\t\taction = \"scroll\";\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"reverse\":\r\n\t\t\t\t\taction = \"reverse\";\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"pause\":\r\n\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Action: Pause\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\tvar currentTime = (new Date()).getTime();\r\n\r\n\t\t\t\t\t/* Handle delay timers */\r\n\t\t\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t\t\tpauseDelayOnElement(element, currentTime);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Pause and Resume are call-wide (not on a per element basis). Thus, calling pause or resume on a \r\n\t\t\t\t\t single element will cause any calls that containt tweens for that element to be paused/resumed\r\n\t\t\t\t\t as well. */\r\n\r\n\t\t\t\t\t/* Iterate through all calls and pause any that contain any of our elements */\r\n\t\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\r\n\t\t\t\t\t\tvar found = false;\r\n\t\t\t\t\t\t/* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\r\n\t\t\t\t\t\tif (activeCall) {\r\n\t\t\t\t\t\t\t/* Iterate through the active call's targeted elements. */\r\n\t\t\t\t\t\t\t$.each(activeCall[1], function(k, activeElement) {\r\n\t\t\t\t\t\t\t\tvar queueName = (options === undefined) ? \"\" : options;\r\n\r\n\t\t\t\t\t\t\t\tif (queueName !== true && (activeCall[2].queue !== queueName) && !(options === undefined && activeCall[2].queue === false)) {\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Iterate through the calls targeted by the stop command. */\r\n\t\t\t\t\t\t\t\t$.each(elements, function(l, element) {\r\n\t\t\t\t\t\t\t\t\t/* Check that this call was applied to the target element. */\r\n\t\t\t\t\t\t\t\t\tif (element === activeElement) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Set call to paused */\r\n\t\t\t\t\t\t\t\t\t\tactiveCall[5] = {\r\n\t\t\t\t\t\t\t\t\t\t\tresume: false\r\n\t\t\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Once we match an element, we can bounce out to the next call entirely */\r\n\t\t\t\t\t\t\t\t\t\tfound = true;\r\n\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t/* Proceed to check next call if we have already matched */\r\n\t\t\t\t\t\t\t\tif (found) {\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Since pause creates no new tweens, exit out of Velocity. */\r\n\t\t\t\t\treturn getChain();\r\n\r\n\t\t\t\tcase \"resume\":\r\n\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Action: Resume\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t/* Handle delay timers */\r\n\t\t\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t\t\tresumeDelayOnElement(element, currentTime);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Pause and Resume are call-wide (not on a per elemnt basis). Thus, calling pause or resume on a \r\n\t\t\t\t\t single element will cause any calls that containt tweens for that element to be paused/resumed\r\n\t\t\t\t\t as well. */\r\n\r\n\t\t\t\t\t/* Iterate through all calls and pause any that contain any of our elements */\r\n\t\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\t\t\t\t\t\tvar found = false;\r\n\t\t\t\t\t\t/* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\r\n\t\t\t\t\t\tif (activeCall) {\r\n\t\t\t\t\t\t\t/* Iterate through the active call's targeted elements. */\r\n\t\t\t\t\t\t\t$.each(activeCall[1], function(k, activeElement) {\r\n\t\t\t\t\t\t\t\tvar queueName = (options === undefined) ? \"\" : options;\r\n\r\n\t\t\t\t\t\t\t\tif (queueName !== true && (activeCall[2].queue !== queueName) && !(options === undefined && activeCall[2].queue === false)) {\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Skip any calls that have never been paused */\r\n\t\t\t\t\t\t\t\tif (!activeCall[5]) {\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Iterate through the calls targeted by the stop command. */\r\n\t\t\t\t\t\t\t\t$.each(elements, function(l, element) {\r\n\t\t\t\t\t\t\t\t\t/* Check that this call was applied to the target element. */\r\n\t\t\t\t\t\t\t\t\tif (element === activeElement) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Flag a pause object to be resumed, which will occur during the next tick. In\r\n\t\t\t\t\t\t\t\t\t\t addition, the pause object will at that time be deleted */\r\n\t\t\t\t\t\t\t\t\t\tactiveCall[5].resume = true;\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Once we match an element, we can bounce out to the next call entirely */\r\n\t\t\t\t\t\t\t\t\t\tfound = true;\r\n\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t/* Proceed to check next call if we have already matched */\r\n\t\t\t\t\t\t\t\tif (found) {\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Since resume creates no new tweens, exit out of Velocity. */\r\n\t\t\t\t\treturn getChain();\r\n\r\n\t\t\t\tcase \"finish\":\r\n\t\t\t\tcase \"finishAll\":\r\n\t\t\t\tcase \"stop\":\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Action: Stop\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t/* Clear the currently-active delay on each targeted element. */\r\n\t\t\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t\t\tif (Data(element) && Data(element).delayTimer) {\r\n\t\t\t\t\t\t\t/* Stop the timer from triggering its cached next() function. */\r\n\t\t\t\t\t\t\tclearTimeout(Data(element).delayTimer.setTimeout);\r\n\r\n\t\t\t\t\t\t\t/* Manually call the next() function so that the subsequent queue items can progress. */\r\n\t\t\t\t\t\t\tif (Data(element).delayTimer.next) {\r\n\t\t\t\t\t\t\t\tData(element).delayTimer.next();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tdelete Data(element).delayTimer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* If we want to finish everything in the queue, we have to iterate through it\r\n\t\t\t\t\t\t and call each function. This will make them active calls below, which will\r\n\t\t\t\t\t\t cause them to be applied via the duration setting. */\r\n\t\t\t\t\t\tif (propertiesMap === \"finishAll\" && (options === true || Type.isString(options))) {\r\n\t\t\t\t\t\t\t/* Iterate through the items in the element's queue. */\r\n\t\t\t\t\t\t\t$.each($.queue(element, Type.isString(options) ? options : \"\"), function(_, item) {\r\n\t\t\t\t\t\t\t\t/* The queue array can contain an \"inprogress\" string, which we skip. */\r\n\t\t\t\t\t\t\t\tif (Type.isFunction(item)) {\r\n\t\t\t\t\t\t\t\t\titem();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t/* Clearing the $.queue() array is achieved by resetting it to []. */\r\n\t\t\t\t\t\t\t$.queue(element, Type.isString(options) ? options : \"\", []);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tvar callsToStop = [];\r\n\r\n\t\t\t\t\t/* When the stop action is triggered, the elements' currently active call is immediately stopped. The active call might have\r\n\t\t\t\t\t been applied to multiple elements, in which case all of the call's elements will be stopped. When an element\r\n\t\t\t\t\t is stopped, the next item in its animation queue is immediately triggered. */\r\n\t\t\t\t\t/* An additional argument may be passed in to clear an element's remaining queued calls. Either true (which defaults to the \"fx\" queue)\r\n\t\t\t\t\t or a custom queue string can be passed in. */\r\n\t\t\t\t\t/* Note: The stop command runs prior to Velocity's Queueing phase since its behavior is intended to take effect *immediately*,\r\n\t\t\t\t\t regardless of the element's current queue state. */\r\n\r\n\t\t\t\t\t/* Iterate through every active call. */\r\n\t\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\t\t\t\t\t\t/* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\r\n\t\t\t\t\t\tif (activeCall) {\r\n\t\t\t\t\t\t\t/* Iterate through the active call's targeted elements. */\r\n\t\t\t\t\t\t\t$.each(activeCall[1], function(k, activeElement) {\r\n\t\t\t\t\t\t\t\t/* If true was passed in as a secondary argument, clear absolutely all calls on this element. Otherwise, only\r\n\t\t\t\t\t\t\t\t clear calls associated with the relevant queue. */\r\n\t\t\t\t\t\t\t\t/* Call stopping logic works as follows:\r\n\t\t\t\t\t\t\t\t - options === true --> stop current default queue calls (and queue:false calls), including remaining queued ones.\r\n\t\t\t\t\t\t\t\t - options === undefined --> stop current queue:\"\" call and all queue:false calls.\r\n\t\t\t\t\t\t\t\t - options === false --> stop only queue:false calls.\r\n\t\t\t\t\t\t\t\t - options === \"custom\" --> stop current queue:\"custom\" call, including remaining queued ones (there is no functionality to only clear the currently-running queue:\"custom\" call). */\r\n\t\t\t\t\t\t\t\tvar queueName = (options === undefined) ? \"\" : options;\r\n\r\n\t\t\t\t\t\t\t\tif (queueName !== true && (activeCall[2].queue !== queueName) && !(options === undefined && activeCall[2].queue === false)) {\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Iterate through the calls targeted by the stop command. */\r\n\t\t\t\t\t\t\t\t$.each(elements, function(l, element) {\r\n\t\t\t\t\t\t\t\t\t/* Check that this call was applied to the target element. */\r\n\t\t\t\t\t\t\t\t\tif (element === activeElement) {\r\n\t\t\t\t\t\t\t\t\t\t/* Optionally clear the remaining queued calls. If we're doing \"finishAll\" this won't find anything,\r\n\t\t\t\t\t\t\t\t\t\t due to the queue-clearing above. */\r\n\t\t\t\t\t\t\t\t\t\tif (options === true || Type.isString(options)) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Iterate through the items in the element's queue. */\r\n\t\t\t\t\t\t\t\t\t\t\t$.each($.queue(element, Type.isString(options) ? options : \"\"), function(_, item) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* The queue array can contain an \"inprogress\" string, which we skip. */\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (Type.isFunction(item)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/* Pass the item's callback a flag indicating that we want to abort from the queue call.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t (Specifically, the queue will resolve the call's associated promise then abort.)  */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\titem(null, true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Clearing the $.queue() array is achieved by resetting it to []. */\r\n\t\t\t\t\t\t\t\t\t\t\t$.queue(element, Type.isString(options) ? options : \"\", []);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (propertiesMap === \"stop\") {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Since \"reverse\" uses cached start values (the previous call's endValues), these values must be\r\n\t\t\t\t\t\t\t\t\t\t\t changed to reflect the final value that the elements were actually tweened to. */\r\n\t\t\t\t\t\t\t\t\t\t\t/* Note: If only queue:false/queue:\"custom\" animations are currently running on an element, it won't have a tweensContainer\r\n\t\t\t\t\t\t\t\t\t\t\t object. Also, queue:false/queue:\"custom\" animations can't be reversed. */\r\n\t\t\t\t\t\t\t\t\t\t\tvar data = Data(element);\r\n\t\t\t\t\t\t\t\t\t\t\tif (data && data.tweensContainer && (queueName === true || queueName === \"\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t$.each(data.tweensContainer, function(m, activeTween) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tactiveTween.endValue = activeTween.currentValue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tcallsToStop.push(i);\r\n\t\t\t\t\t\t\t\t\t\t} else if (propertiesMap === \"finish\" || propertiesMap === \"finishAll\") {\r\n\t\t\t\t\t\t\t\t\t\t\t/* To get active tweens to finish immediately, we forcefully shorten their durations to 1ms so that\r\n\t\t\t\t\t\t\t\t\t\t\t they finish upon the next rAf tick then proceed with normal call completion logic. */\r\n\t\t\t\t\t\t\t\t\t\t\tactiveCall[2].duration = 1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Prematurely call completeCall() on each matched active call. Pass an additional flag for \"stop\" to indicate\r\n\t\t\t\t\t that the complete callback and display:none setting should be skipped since we're completing prematurely. */\r\n\t\t\t\t\tif (propertiesMap === \"stop\") {\r\n\t\t\t\t\t\t$.each(callsToStop, function(i, j) {\r\n\t\t\t\t\t\t\tcompleteCall(j, true);\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (promiseData.promise) {\r\n\t\t\t\t\t\t\t/* Immediately resolve the promise associated with this stop call since stop runs synchronously. */\r\n\t\t\t\t\t\t\tpromiseData.resolver(elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Since we're stopping, and not proceeding with queueing, exit out of Velocity. */\r\n\t\t\t\t\treturn getChain();\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t/* Treat a non-empty plain object as a literal properties map. */\r\n\t\t\t\t\tif ($.isPlainObject(propertiesMap) && !Type.isEmptyObject(propertiesMap)) {\r\n\t\t\t\t\t\taction = \"start\";\r\n\r\n\t\t\t\t\t\t/****************\r\n\t\t\t\t\t\t Redirects\r\n\t\t\t\t\t\t ****************/\r\n\r\n\t\t\t\t\t\t/* Check if a string matches a registered redirect (see Redirects above). */\r\n\t\t\t\t\t} else if (Type.isString(propertiesMap) && Velocity.Redirects[propertiesMap]) {\r\n\t\t\t\t\t\topts = $.extend({}, options);\r\n\r\n\t\t\t\t\t\tvar durationOriginal = opts.duration,\r\n\t\t\t\t\t\t\t\tdelayOriginal = opts.delay || 0;\r\n\r\n\t\t\t\t\t\t/* If the backwards option was passed in, reverse the element set so that elements animate from the last to the first. */\r\n\t\t\t\t\t\tif (opts.backwards === true) {\r\n\t\t\t\t\t\t\telements = $.extend(true, [], elements).reverse();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Individually trigger the redirect for each element in the set to prevent users from having to handle iteration logic in their redirect. */\r\n\t\t\t\t\t\t$.each(elements, function(elementIndex, element) {\r\n\t\t\t\t\t\t\t/* If the stagger option was passed in, successively delay each element by the stagger value (in ms). Retain the original delay value. */\r\n\t\t\t\t\t\t\tif (parseFloat(opts.stagger)) {\r\n\t\t\t\t\t\t\t\topts.delay = delayOriginal + (parseFloat(opts.stagger) * elementIndex);\r\n\t\t\t\t\t\t\t} else if (Type.isFunction(opts.stagger)) {\r\n\t\t\t\t\t\t\t\topts.delay = delayOriginal + opts.stagger.call(element, elementIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the drag option was passed in, successively increase/decrease (depending on the presense of opts.backwards)\r\n\t\t\t\t\t\t\t the duration of each element's animation, using floors to prevent producing very short durations. */\r\n\t\t\t\t\t\t\tif (opts.drag) {\r\n\t\t\t\t\t\t\t\t/* Default the duration of UI pack effects (callouts and transitions) to 1000ms instead of the usual default duration of 400ms. */\r\n\t\t\t\t\t\t\t\topts.duration = parseFloat(durationOriginal) || (/^(callout|transition)/.test(propertiesMap) ? 1000 : DURATION_DEFAULT);\r\n\r\n\t\t\t\t\t\t\t\t/* For each element, take the greater duration of: A) animation completion percentage relative to the original duration,\r\n\t\t\t\t\t\t\t\t B) 75% of the original duration, or C) a 200ms fallback (in case duration is already set to a low value).\r\n\t\t\t\t\t\t\t\t The end result is a baseline of 75% of the redirect's duration that increases/decreases as the end of the element set is approached. */\r\n\t\t\t\t\t\t\t\topts.duration = Math.max(opts.duration * (opts.backwards ? 1 - elementIndex / elementsLength : (elementIndex + 1) / elementsLength), opts.duration * 0.75, 200);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Pass in the call's opts object so that the redirect can optionally extend it. It defaults to an empty object instead of null to\r\n\t\t\t\t\t\t\t reduce the opts checking logic required inside the redirect. */\r\n\t\t\t\t\t\t\tVelocity.Redirects[propertiesMap].call(element, element, opts || {}, elementIndex, elementsLength, elements, promiseData.promise ? promiseData : undefined);\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t/* Since the animation logic resides within the redirect's own code, abort the remainder of this call.\r\n\t\t\t\t\t\t (The performance overhead up to this point is virtually non-existant.) */\r\n\t\t\t\t\t\t/* Note: The jQuery call chain is kept intact by returning the complete element set. */\r\n\t\t\t\t\t\treturn getChain();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar abortError = \"Velocity: First argument (\" + propertiesMap + \") was not a property map, a known action, or a registered redirect. Aborting.\";\r\n\r\n\t\t\t\t\t\tif (promiseData.promise) {\r\n\t\t\t\t\t\t\tpromiseData.rejecter(new Error(abortError));\r\n\t\t\t\t\t\t} else if (window.console) {\r\n\t\t\t\t\t\t\tconsole.log(abortError);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn getChain();\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/**************************\r\n\t\t\t Call-Wide Variables\r\n\t\t\t **************************/\r\n\r\n\t\t\t/* A container for CSS unit conversion ratios (e.g. %, rem, and em ==> px) that is used to cache ratios across all elements\r\n\t\t\t being animated in a single Velocity call. Calculating unit ratios necessitates DOM querying and updating, and is therefore\r\n\t\t\t avoided (via caching) wherever possible. This container is call-wide instead of page-wide to avoid the risk of using stale\r\n\t\t\t conversion metrics across Velocity animations that are not immediately consecutively chained. */\r\n\t\t\tvar callUnitConversionData = {\r\n\t\t\t\tlastParent: null,\r\n\t\t\t\tlastPosition: null,\r\n\t\t\t\tlastFontSize: null,\r\n\t\t\t\tlastPercentToPxWidth: null,\r\n\t\t\t\tlastPercentToPxHeight: null,\r\n\t\t\t\tlastEmToPx: null,\r\n\t\t\t\tremToPx: null,\r\n\t\t\t\tvwToPx: null,\r\n\t\t\t\tvhToPx: null\r\n\t\t\t};\r\n\r\n\t\t\t/* A container for all the ensuing tween data and metadata associated with this call. This container gets pushed to the page-wide\r\n\t\t\t Velocity.State.calls array that is processed during animation ticking. */\r\n\t\t\tvar call = [];\r\n\r\n\t\t\t/************************\r\n\t\t\t Element Processing\r\n\t\t\t ************************/\r\n\r\n\t\t\t/* Element processing consists of three parts -- data processing that cannot go stale and data processing that *can* go stale (i.e. third-party style modifications):\r\n\t\t\t 1) Pre-Queueing: Element-wide variables, including the element's data storage, are instantiated. Call options are prepared. If triggered, the Stop action is executed.\r\n\t\t\t 2) Queueing: The logic that runs once this call has reached its point of execution in the element's $.queue() stack. Most logic is placed here to avoid risking it becoming stale.\r\n\t\t\t 3) Pushing: Consolidation of the tween data followed by its push onto the global in-progress calls container.\r\n\t\t\t `elementArrayIndex` allows passing index of the element in the original array to value functions.\r\n\t\t\t If `elementsIndex` were used instead the index would be determined by the elements' per-element queue.\r\n\t\t\t */\r\n\t\t\tfunction processElement(element, elementArrayIndex) {\r\n\r\n\t\t\t\t/*************************\r\n\t\t\t\t Part I: Pre-Queueing\r\n\t\t\t\t *************************/\r\n\r\n\t\t\t\t/***************************\r\n\t\t\t\t Element-Wide Variables\r\n\t\t\t\t ***************************/\r\n\r\n\t\t\t\tvar /* The runtime opts object is the extension of the current call's options and Velocity's page-wide option defaults. */\r\n\t\t\t\t\t\topts = $.extend({}, Velocity.defaults, options),\r\n\t\t\t\t\t\t/* A container for the processed data associated with each property in the propertyMap.\r\n\t\t\t\t\t\t (Each property in the map produces its own \"tween\".) */\r\n\t\t\t\t\t\ttweensContainer = {},\r\n\t\t\t\t\t\telementUnitConversionData;\r\n\r\n\t\t\t\t/******************\r\n\t\t\t\t Element Init\r\n\t\t\t\t ******************/\r\n\r\n\t\t\t\tif (Data(element) === undefined) {\r\n\t\t\t\t\tVelocity.init(element);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/******************\r\n\t\t\t\t Option: Delay\r\n\t\t\t\t ******************/\r\n\r\n\t\t\t\t/* Since queue:false doesn't respect the item's existing queue, we avoid injecting its delay here (it's set later on). */\r\n\t\t\t\t/* Note: Velocity rolls its own delay function since jQuery doesn't have a utility alias for $.fn.delay()\r\n\t\t\t\t (and thus requires jQuery element creation, which we avoid since its overhead includes DOM querying). */\r\n\t\t\t\tif (parseFloat(opts.delay) && opts.queue !== false) {\r\n\t\t\t\t\t$.queue(element, opts.queue, function(next, clearQueue) {\r\n\t\t\t\t\t\tif (clearQueue === true) {\r\n\t\t\t\t\t\t\t/* Do not continue with animation queueing. */\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* This is a flag used to indicate to the upcoming completeCall() function that this queue entry was initiated by Velocity. See completeCall() for further details. */\r\n\t\t\t\t\t\tVelocity.velocityQueueEntryFlag = true;\r\n\r\n\t\t\t\t\t\t/* The ensuing queue item (which is assigned to the \"next\" argument that $.queue() automatically passes in) will be triggered after a setTimeout delay.\r\n\t\t\t\t\t\t The setTimeout is stored so that it can be subjected to clearTimeout() if this animation is prematurely stopped via Velocity's \"stop\" command, and\r\n\t\t\t\t\t\t delayBegin/delayTime is used to ensure we can \"pause\" and \"resume\" a tween that is still mid-delay. */\r\n\r\n\t\t\t\t\t\t/* Temporarily store delayed elements to facilite access for global pause/resume */\r\n\t\t\t\t\t\tvar callIndex = Velocity.State.delayedElements.count++;\r\n\t\t\t\t\t\tVelocity.State.delayedElements[callIndex] = element;\r\n\r\n\t\t\t\t\t\tvar delayComplete = (function(index) {\r\n\t\t\t\t\t\t\treturn function() {\r\n\t\t\t\t\t\t\t\t/* Clear the temporary element */\r\n\t\t\t\t\t\t\t\tVelocity.State.delayedElements[index] = false;\r\n\r\n\t\t\t\t\t\t\t\t/* Finally, issue the call */\r\n\t\t\t\t\t\t\t\tnext();\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t})(callIndex);\r\n\r\n\r\n\t\t\t\t\t\tData(element).delayBegin = (new Date()).getTime();\r\n\t\t\t\t\t\tData(element).delay = parseFloat(opts.delay);\r\n\t\t\t\t\t\tData(element).delayTimer = {\r\n\t\t\t\t\t\t\tsetTimeout: setTimeout(next, parseFloat(opts.delay)),\r\n\t\t\t\t\t\t\tnext: delayComplete\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*********************\r\n\t\t\t\t Option: Duration\r\n\t\t\t\t *********************/\r\n\r\n\t\t\t\t/* Support for jQuery's named durations. */\r\n\t\t\t\tswitch (opts.duration.toString().toLowerCase()) {\r\n\t\t\t\t\tcase \"fast\":\r\n\t\t\t\t\t\topts.duration = 200;\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase \"normal\":\r\n\t\t\t\t\t\topts.duration = DURATION_DEFAULT;\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase \"slow\":\r\n\t\t\t\t\t\topts.duration = 600;\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t/* Remove the potential \"ms\" suffix and default to 1 if the user is attempting to set a duration of 0 (in order to produce an immediate style change). */\r\n\t\t\t\t\t\topts.duration = parseFloat(opts.duration) || 1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/************************\r\n\t\t\t\t Global Option: Mock\r\n\t\t\t\t ************************/\r\n\r\n\t\t\t\tif (Velocity.mock !== false) {\r\n\t\t\t\t\t/* In mock mode, all animations are forced to 1ms so that they occur immediately upon the next rAF tick.\r\n\t\t\t\t\t Alternatively, a multiplier can be passed in to time remap all delays and durations. */\r\n\t\t\t\t\tif (Velocity.mock === true) {\r\n\t\t\t\t\t\topts.duration = opts.delay = 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\topts.duration *= parseFloat(Velocity.mock) || 1;\r\n\t\t\t\t\t\topts.delay *= parseFloat(Velocity.mock) || 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*******************\r\n\t\t\t\t Option: Easing\r\n\t\t\t\t *******************/\r\n\r\n\t\t\t\topts.easing = getEasing(opts.easing, opts.duration);\r\n\r\n\t\t\t\t/**********************\r\n\t\t\t\t Option: Callbacks\r\n\t\t\t\t **********************/\r\n\r\n\t\t\t\t/* Callbacks must functions. Otherwise, default to null. */\r\n\t\t\t\tif (opts.begin && !Type.isFunction(opts.begin)) {\r\n\t\t\t\t\topts.begin = null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (opts.progress && !Type.isFunction(opts.progress)) {\r\n\t\t\t\t\topts.progress = null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (opts.complete && !Type.isFunction(opts.complete)) {\r\n\t\t\t\t\topts.complete = null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*********************************\r\n\t\t\t\t Option: Display & Visibility\r\n\t\t\t\t *********************************/\r\n\r\n\t\t\t\t/* Refer to Velocity's documentation (VelocityJS.org/#displayAndVisibility) for a description of the display and visibility options' behavior. */\r\n\t\t\t\t/* Note: We strictly check for undefined instead of falsiness because display accepts an empty string value. */\r\n\t\t\t\tif (opts.display !== undefined && opts.display !== null) {\r\n\t\t\t\t\topts.display = opts.display.toString().toLowerCase();\r\n\r\n\t\t\t\t\t/* Users can pass in a special \"auto\" value to instruct Velocity to set the element to its default display value. */\r\n\t\t\t\t\tif (opts.display === \"auto\") {\r\n\t\t\t\t\t\topts.display = Velocity.CSS.Values.getDisplayType(element);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (opts.visibility !== undefined && opts.visibility !== null) {\r\n\t\t\t\t\topts.visibility = opts.visibility.toString().toLowerCase();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/**********************\r\n\t\t\t\t Option: mobileHA\r\n\t\t\t\t **********************/\r\n\r\n\t\t\t\t/* When set to true, and if this is a mobile device, mobileHA automatically enables hardware acceleration (via a null transform hack)\r\n\t\t\t\t on animating elements. HA is removed from the element at the completion of its animation. */\r\n\t\t\t\t/* Note: Android Gingerbread doesn't support HA. If a null transform hack (mobileHA) is in fact set, it will prevent other tranform subproperties from taking effect. */\r\n\t\t\t\t/* Note: You can read more about the use of mobileHA in Velocity's documentation: VelocityJS.org/#mobileHA. */\r\n\t\t\t\topts.mobileHA = (opts.mobileHA && Velocity.State.isMobile && !Velocity.State.isGingerbread);\r\n\r\n\t\t\t\t/***********************\r\n\t\t\t\t Part II: Queueing\r\n\t\t\t\t ***********************/\r\n\r\n\t\t\t\t/* When a set of elements is targeted by a Velocity call, the set is broken up and each element has the current Velocity call individually queued onto it.\r\n\t\t\t\t In this way, each element's existing queue is respected; some elements may already be animating and accordingly should not have this current Velocity call triggered immediately. */\r\n\t\t\t\t/* In each queue, tween data is processed for each animating property then pushed onto the call-wide calls array. When the last element in the set has had its tweens processed,\r\n\t\t\t\t the call array is pushed to Velocity.State.calls for live processing by the requestAnimationFrame tick. */\r\n\t\t\t\tfunction buildQueue(next) {\r\n\t\t\t\t\tvar data, lastTweensContainer;\r\n\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Option: Begin\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t/* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\r\n\t\t\t\t\tif (opts.begin && elementsIndex === 0) {\r\n\t\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\topts.begin.call(elements, elements);\r\n\t\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\t\t\tthrow error;\r\n\t\t\t\t\t\t\t}, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*****************************************\r\n\t\t\t\t\t Tween Data Construction (for Scroll)\r\n\t\t\t\t\t *****************************************/\r\n\r\n\t\t\t\t\t/* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\r\n\t\t\t\t\tif (action === \"scroll\") {\r\n\t\t\t\t\t\t/* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\r\n\t\t\t\t\t\tvar scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\r\n\t\t\t\t\t\t\t\tscrollOffset = parseFloat(opts.offset) || 0,\r\n\t\t\t\t\t\t\t\tscrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tscrollPositionCurrentAlternate,\r\n\t\t\t\t\t\t\t\tscrollPositionEnd;\r\n\r\n\t\t\t\t\t\t/* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\r\n\t\t\t\t\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\r\n\t\t\t\t\t\tif (opts.container) {\r\n\t\t\t\t\t\t\t/* Ensure that either a jQuery object or a raw DOM element was passed in. */\r\n\t\t\t\t\t\t\tif (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\r\n\t\t\t\t\t\t\t\t/* Extract the raw DOM element from the jQuery wrapper. */\r\n\t\t\t\t\t\t\t\topts.container = opts.container[0] || opts.container;\r\n\t\t\t\t\t\t\t\t/* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\r\n\t\t\t\t\t\t\t\t (due to the user's natural interaction with the page). */\r\n\t\t\t\t\t\t\t\tscrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\r\n\r\n\t\t\t\t\t\t\t\t/* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\r\n\t\t\t\t\t\t\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\r\n\t\t\t\t\t\t\t\t the scroll container's current scroll position. */\r\n\t\t\t\t\t\t\t\tscrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\r\n\t\t\t\t\t\t\t\t/* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topts.container = null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\r\n\t\t\t\t\t\t\t the appropriate cached property names (which differ based on browser type). */\r\n\t\t\t\t\t\t\tscrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\r\n\t\t\t\t\t\t\t/* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\r\n\t\t\t\t\t\t\tscrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\r\n\r\n\t\t\t\t\t\t\t/* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\r\n\t\t\t\t\t\t\t and therefore end values do not need to be compounded onto current values. */\r\n\t\t\t\t\t\t\tscrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\r\n\t\t\t\t\t\ttweensContainer = {\r\n\t\t\t\t\t\t\tscroll: {\r\n\t\t\t\t\t\t\t\trootPropertyValue: false,\r\n\t\t\t\t\t\t\t\tstartValue: scrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tcurrentValue: scrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tendValue: scrollPositionEnd,\r\n\t\t\t\t\t\t\t\tunitType: \"\",\r\n\t\t\t\t\t\t\t\teasing: opts.easing,\r\n\t\t\t\t\t\t\t\tscrollData: {\r\n\t\t\t\t\t\t\t\t\tcontainer: opts.container,\r\n\t\t\t\t\t\t\t\t\tdirection: scrollDirection,\r\n\t\t\t\t\t\t\t\t\talternateValue: scrollPositionCurrentAlternate\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\telement: element\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\tconsole.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/******************************************\r\n\t\t\t\t\t\t Tween Data Construction (for Reverse)\r\n\t\t\t\t\t\t ******************************************/\r\n\r\n\t\t\t\t\t\t/* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\r\n\t\t\t\t\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\r\n\t\t\t\t\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\r\n\t\t\t\t\t\t/* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\r\n\t\t\t\t\t\t/* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\r\n\t\t\t\t\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\r\n\t\t\t\t\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\r\n\t\t\t\t\t} else if (action === \"reverse\") {\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\t/* Abort if there is no prior animation data to reverse to. */\r\n\t\t\t\t\t\tif (!data) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!data.tweensContainer) {\r\n\t\t\t\t\t\t\t/* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\r\n\t\t\t\t\t\t\t$.dequeue(element, opts.queue);\r\n\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*********************\r\n\t\t\t\t\t\t\t Options Parsing\r\n\t\t\t\t\t\t\t *********************/\r\n\r\n\t\t\t\t\t\t\t/* If the element was hidden via the display option in the previous call,\r\n\t\t\t\t\t\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\r\n\t\t\t\t\t\t\tif (data.opts.display === \"none\") {\r\n\t\t\t\t\t\t\t\tdata.opts.display = \"auto\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (data.opts.visibility === \"hidden\") {\r\n\t\t\t\t\t\t\t\tdata.opts.visibility = \"visible\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\r\n\t\t\t\t\t\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\r\n\t\t\t\t\t\t\tdata.opts.loop = false;\r\n\t\t\t\t\t\t\tdata.opts.begin = null;\r\n\t\t\t\t\t\t\tdata.opts.complete = null;\r\n\r\n\t\t\t\t\t\t\t/* Since we're extending an opts object that has already been extended with the defaults options object,\r\n\t\t\t\t\t\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\r\n\t\t\t\t\t\t\tif (!options.easing) {\r\n\t\t\t\t\t\t\t\tdelete opts.easing;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (!options.duration) {\r\n\t\t\t\t\t\t\t\tdelete opts.duration;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* The opts object used for reversal is an extension of the options object optionally passed into this\r\n\t\t\t\t\t\t\t reverse call plus the options used in the previous Velocity call. */\r\n\t\t\t\t\t\t\topts = $.extend({}, data.opts, opts);\r\n\r\n\t\t\t\t\t\t\t/*************************************\r\n\t\t\t\t\t\t\t Tweens Container Reconstruction\r\n\t\t\t\t\t\t\t *************************************/\r\n\r\n\t\t\t\t\t\t\t/* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\r\n\t\t\t\t\t\t\tlastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\r\n\r\n\t\t\t\t\t\t\t/* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\r\n\t\t\t\t\t\t\tfor (var lastTween in lastTweensContainer) {\r\n\t\t\t\t\t\t\t\t/* In addition to tween data, tweensContainers contain an element property that we ignore here. */\r\n\t\t\t\t\t\t\t\tif (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\r\n\t\t\t\t\t\t\t\t\tvar lastStartValue = lastTweensContainer[lastTween].startValue;\r\n\r\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\r\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].endValue = lastStartValue;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\r\n\t\t\t\t\t\t\t\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\r\n\t\t\t\t\t\t\t\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\r\n\t\t\t\t\t\t\t\t\tif (!Type.isEmptyObject(options)) {\r\n\t\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].easing = opts.easing;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\ttweensContainer = lastTweensContainer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/*****************************************\r\n\t\t\t\t\t\t Tween Data Construction (for Start)\r\n\t\t\t\t\t\t *****************************************/\r\n\r\n\t\t\t\t\t} else if (action === \"start\") {\r\n\r\n\t\t\t\t\t\t/*************************\r\n\t\t\t\t\t\t Value Transferring\r\n\t\t\t\t\t\t *************************/\r\n\r\n\t\t\t\t\t\t/* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\r\n\t\t\t\t\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\r\n\t\t\t\t\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\r\n\t\t\t\t\t\t process whenever possible in order to avoid requerying the DOM. */\r\n\t\t\t\t\t\t/* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\r\n\t\t\t\t\t\t then the DOM is queried for the element's current values as a last resort. */\r\n\t\t\t\t\t\t/* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\r\n\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\t/* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\r\n\t\t\t\t\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\r\n\t\t\t\t\t\t Velocity call to pull values from, do so. */\r\n\t\t\t\t\t\tif (data && data.tweensContainer && data.isAnimating === true) {\r\n\t\t\t\t\t\t\tlastTweensContainer = data.tweensContainer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t Tween Data Calculation\r\n\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t/* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\r\n\t\t\t\t\t\t/* Property map values can either take the form of 1) a single value representing the end value,\r\n\t\t\t\t\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\r\n\t\t\t\t\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\r\n\t\t\t\t\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\r\n\t\t\t\t\t\tvar parsePropertyValue = function(valueData, skipResolvingEasing) {\r\n\t\t\t\t\t\t\tvar endValue, easing, startValue;\r\n\r\n\t\t\t\t\t\t\t/* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\r\n\t\t\t\t\t\t\tif (Type.isFunction(valueData)) {\r\n\t\t\t\t\t\t\t\tvalueData = valueData.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Handle the array format, which can be structured as one of three potential overloads:\r\n\t\t\t\t\t\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\r\n\t\t\t\t\t\t\tif (Type.isArray(valueData)) {\r\n\t\t\t\t\t\t\t\t/* endValue is always the first item in the array. Don't bother validating endValue's value now\r\n\t\t\t\t\t\t\t\t since the ensuing property cycling logic does that. */\r\n\t\t\t\t\t\t\t\tendValue = valueData[0];\r\n\r\n\t\t\t\t\t\t\t\t/* Two-item array format: If the second item is a number, function, or hex string, treat it as a\r\n\t\t\t\t\t\t\t\t start value since easings can only be non-hex strings or arrays. */\r\n\t\t\t\t\t\t\t\tif ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1];\r\n\t\t\t\t\t\t\t\t\t/* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\r\n\t\t\t\t\t\t\t\t} else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]]) || Type.isArray(valueData[1])) {\r\n\t\t\t\t\t\t\t\t\teasing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\r\n\r\n\t\t\t\t\t\t\t\t\t/* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1] || valueData[2];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t/* Handle the single-value format. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tendValue = valueData;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Default to the call's easing if a per-property easing type was not defined. */\r\n\t\t\t\t\t\t\tif (!skipResolvingEasing) {\r\n\t\t\t\t\t\t\t\teasing = easing || opts.easing;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If functions were passed in as values, pass the function the current element as its context,\r\n\t\t\t\t\t\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\r\n\t\t\t\t\t\t\tif (Type.isFunction(endValue)) {\r\n\t\t\t\t\t\t\t\tendValue = endValue.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (Type.isFunction(startValue)) {\r\n\t\t\t\t\t\t\t\tstartValue = startValue.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\r\n\t\t\t\t\t\t\treturn [endValue || 0, easing, startValue];\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tvar fixPropertyValue = function(property, valueData) {\r\n\t\t\t\t\t\t\t/* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\r\n\t\t\t\t\t\t\tvar rootProperty = CSS.Hooks.getRoot(property),\r\n\t\t\t\t\t\t\t\t\trootPropertyValue = false,\r\n\t\t\t\t\t\t\t\t\t/* Parse out endValue, easing, and startValue from the property's data. */\r\n\t\t\t\t\t\t\t\t\tendValue = valueData[0],\r\n\t\t\t\t\t\t\t\t\teasing = valueData[1],\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2],\r\n\t\t\t\t\t\t\t\t\tpattern;\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t Start Value Sourcing\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\t/* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\r\n\t\t\t\t\t\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\r\n\t\t\t\t\t\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\r\n\t\t\t\t\t\t\t/* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\r\n\t\t\t\t\t\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\r\n\t\t\t\t\t\t\tif ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\r\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\r\n\t\t\t\t\t\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\r\n\t\t\t\t\t\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\r\n\t\t\t\t\t\t\tif (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\r\n\t\t\t\t\t\t\t\tstartValue = 0;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\r\n\t\t\t\t\t\t\t for all of the current call's properties that were *also* animated in the previous call. */\r\n\t\t\t\t\t\t\t/* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\r\n\t\t\t\t\t\t\tif (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\r\n\t\t\t\t\t\t\t\tif (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\tstartValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\r\n\t\t\t\t\t\t\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\r\n\t\t\t\t\t\t\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\r\n\t\t\t\t\t\t\t\trootPropertyValue = data.rootPropertyValueCache[rootProperty];\r\n\t\t\t\t\t\t\t\t/* If values were not transferred from a previous Velocity call, query the DOM as needed. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t/* Handle hooked properties. */\r\n\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\t\t\tif (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\r\n\t\t\t\t\t\t\t\t\t\t/* Note: The following getPropertyValue() call does not actually trigger a DOM query;\r\n\t\t\t\t\t\t\t\t\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\r\n\t\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property, rootPropertyValue);\r\n\t\t\t\t\t\t\t\t\t\t/* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\r\n\t\t\t\t\t\t\t\t\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\r\n\t\t\t\t\t\t\t\t\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\r\n\t\t\t\t\t\t\t\t\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t/* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\r\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t/* Handle non-hooked properties that haven't already been defined via forcefeeding. */\r\n\t\t\t\t\t\t\t\t} else if (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property); /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t Value Data Extraction\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\tvar separatedValue,\r\n\t\t\t\t\t\t\t\t\tendValueUnitType,\r\n\t\t\t\t\t\t\t\t\tstartValueUnitType,\r\n\t\t\t\t\t\t\t\t\toperator = false;\r\n\r\n\t\t\t\t\t\t\t/* Separates a property value into its numeric value and its unit type. */\r\n\t\t\t\t\t\t\tvar separateValue = function(property, value) {\r\n\t\t\t\t\t\t\t\tvar unitType,\r\n\t\t\t\t\t\t\t\t\t\tnumericValue;\r\n\r\n\t\t\t\t\t\t\t\tnumericValue = (value || \"0\")\r\n\t\t\t\t\t\t\t\t\t\t.toString()\r\n\t\t\t\t\t\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t\t\t\t\t\t/* Match the unit type at the end of the value. */\r\n\t\t\t\t\t\t\t\t\t\t.replace(/[%A-z]+$/, function(match) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Grab the unit type. */\r\n\t\t\t\t\t\t\t\t\t\t\tunitType = match;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Strip the unit type off of value. */\r\n\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t/* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\r\n\t\t\t\t\t\t\t\tif (!unitType) {\r\n\t\t\t\t\t\t\t\t\tunitType = CSS.Values.getUnitType(property);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn [numericValue, unitType];\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\tif (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\r\n\t\t\t\t\t\t\t\tpattern = \"\";\r\n\t\t\t\t\t\t\t\tvar iStart = 0, // index in startValue\r\n\t\t\t\t\t\t\t\t\t\tiEnd = 0, // index in endValue\r\n\t\t\t\t\t\t\t\t\t\taStart = [], // array of startValue numbers\r\n\t\t\t\t\t\t\t\t\t\taEnd = [], // array of endValue numbers\r\n\t\t\t\t\t\t\t\t\t\tinCalc = 0, // Keep track of being inside a \"calc()\" so we don't duplicate it\r\n\t\t\t\t\t\t\t\t\t\tinRGB = 0, // Keep track of being inside an RGB as we can't use fractional values\r\n\t\t\t\t\t\t\t\t\t\tinRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\r\n\r\n\t\t\t\t\t\t\t\tstartValue = CSS.Hooks.fixColors(startValue);\r\n\t\t\t\t\t\t\t\tendValue = CSS.Hooks.fixColors(endValue);\r\n\t\t\t\t\t\t\t\twhile (iStart < startValue.length && iEnd < endValue.length) {\r\n\t\t\t\t\t\t\t\t\tvar cStart = startValue[iStart],\r\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\r\n\r\n\t\t\t\t\t\t\t\t\tif (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\r\n\t\t\t\t\t\t\t\t\t\tvar tStart = cStart, // temporary character buffer\r\n\t\t\t\t\t\t\t\t\t\t\t\ttEnd = cEnd, // temporary character buffer\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \".\", // Make sure we can only ever match a single dot in a decimal\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\r\n\r\n\t\t\t\t\t\t\t\t\t\twhile (++iStart < startValue.length) {\r\n\t\t\t\t\t\t\t\t\t\t\tcStart = startValue[iStart];\r\n\t\t\t\t\t\t\t\t\t\t\tif (cStart === dotStart) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \"..\"; // Can never match two characters\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cStart)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\ttStart += cStart;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\twhile (++iEnd < endValue.length) {\r\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\r\n\t\t\t\t\t\t\t\t\t\t\tif (cEnd === dotEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \"..\"; // Can never match two characters\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cEnd)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\ttEnd += cEnd;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tvar uStart = CSS.Hooks.getUnit(startValue, iStart), // temporary unit type\r\n\t\t\t\t\t\t\t\t\t\t\t\tuEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\r\n\r\n\t\t\t\t\t\t\t\t\t\tiStart += uStart.length;\r\n\t\t\t\t\t\t\t\t\t\tiEnd += uEnd.length;\r\n\t\t\t\t\t\t\t\t\t\tif (uStart === uEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t// Same units\r\n\t\t\t\t\t\t\t\t\t\t\tif (tStart === tEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Same numbers, so just copy over\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += tStart + uStart;\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Different numbers, so store them\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(parseFloat(tStart));\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(parseFloat(tEnd));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t// Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\r\n\t\t\t\t\t\t\t\t\t\t\tvar nStart = parseFloat(tStart),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnEnd = parseFloat(tEnd);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tpattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" + \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \")\";\r\n\t\t\t\t\t\t\t\t\t\t\tif (nStart) {\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(nStart);\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(0);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (nEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(0);\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(nEnd);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else if (cStart === cEnd) {\r\n\t\t\t\t\t\t\t\t\t\tpattern += cStart;\r\n\t\t\t\t\t\t\t\t\t\tiStart++;\r\n\t\t\t\t\t\t\t\t\t\tiEnd++;\r\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside a calc()\r\n\t\t\t\t\t\t\t\t\t\tif (inCalc === 0 && cStart === \"c\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 1 && cStart === \"a\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 2 && cStart === \"l\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 3 && cStart === \"c\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tinCalc++;\r\n\t\t\t\t\t\t\t\t\t\t} else if ((inCalc && inCalc < 5)\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\r\n\t\t\t\t\t\t\t\t\t\t\tinCalc = 0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside an rgb() / rgba()\r\n\t\t\t\t\t\t\t\t\t\tif (inRGB === 0 && cStart === \"r\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 1 && cStart === \"g\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 2 && cStart === \"b\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 3 && cStart === \"a\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= 3 && cStart === \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (inRGB === 3 && cStart === \"a\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tinRGBA = 1;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tinRGB++;\r\n\t\t\t\t\t\t\t\t\t\t} else if (inRGBA && cStart === \",\") {\r\n\t\t\t\t\t\t\t\t\t\t\tif (++inRGBA > 3) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else if ((inRGBA && inRGB < (inRGBA ? 5 : 4))\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\r\n\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tinCalc = 0;\r\n\t\t\t\t\t\t\t\t\t\t// TODO: changing units, fixing colours\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (iStart !== startValue.length || iEnd !== endValue.length) {\r\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tpattern = undefined;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (pattern) {\r\n\t\t\t\t\t\t\t\t\tif (aStart.length) {\r\n\t\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tstartValue = aStart;\r\n\t\t\t\t\t\t\t\t\t\tendValue = aEnd;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tpattern = undefined;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (!pattern) {\r\n\t\t\t\t\t\t\t\t/* Separate startValue. */\r\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, startValue);\r\n\t\t\t\t\t\t\t\tstartValue = separatedValue[0];\r\n\t\t\t\t\t\t\t\tstartValueUnitType = separatedValue[1];\r\n\r\n\t\t\t\t\t\t\t\t/* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\r\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, endValue);\r\n\t\t\t\t\t\t\t\tendValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\r\n\t\t\t\t\t\t\t\t\toperator = subMatch;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Strip the operator off of the value. */\r\n\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tendValueUnitType = separatedValue[1];\r\n\r\n\t\t\t\t\t\t\t\t/* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\r\n\t\t\t\t\t\t\t\tstartValue = parseFloat(startValue) || 0;\r\n\t\t\t\t\t\t\t\tendValue = parseFloat(endValue) || 0;\r\n\r\n\t\t\t\t\t\t\t\t/***************************************\r\n\t\t\t\t\t\t\t\t Property-Specific Value Conversion\r\n\t\t\t\t\t\t\t\t ***************************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\r\n\t\t\t\t\t\t\t\tif (endValueUnitType === \"%\") {\r\n\t\t\t\t\t\t\t\t\t/* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\r\n\t\t\t\t\t\t\t\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\r\n\t\t\t\t\t\t\t\t\tif (/^(fontSize|lineHeight)$/.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\t/* Convert % into an em decimal value. */\r\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"em\";\r\n\t\t\t\t\t\t\t\t\t\t/* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\r\n\t\t\t\t\t\t\t\t\t} else if (/^scale/.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t\t/* For RGB components, take the defined percentage of 255 and strip off the unit type. */\r\n\t\t\t\t\t\t\t\t\t} else if (/(Red|Green|Blue)$/i.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\tendValue = (endValue / 100) * 255;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t Unit Ratio Calculation\r\n\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t/* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\r\n\t\t\t\t\t\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\r\n\t\t\t\t\t\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\r\n\t\t\t\t\t\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\r\n\t\t\t\t\t\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\r\n\t\t\t\t\t\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\r\n\t\t\t\t\t\t\t/* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\r\n\t\t\t\t\t\t\t setting values with the target unit type then comparing the returned pixel value. */\r\n\t\t\t\t\t\t\t/* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\r\n\t\t\t\t\t\t\t of batching the SETs and GETs together upfront outweights the potential overhead\r\n\t\t\t\t\t\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\r\n\t\t\t\t\t\t\t/* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\r\n\t\t\t\t\t\t\tvar calculateUnitRatios = function() {\r\n\r\n\t\t\t\t\t\t\t\t/************************\r\n\t\t\t\t\t\t\t\t Same Ratio Checks\r\n\t\t\t\t\t\t\t\t ************************/\r\n\r\n\t\t\t\t\t\t\t\t/* The properties below are used to determine whether the element differs sufficiently from this call's\r\n\t\t\t\t\t\t\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\r\n\t\t\t\t\t\t\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\r\n\t\t\t\t\t\t\t\t this is done to minimize DOM querying. */\r\n\t\t\t\t\t\t\t\tvar sameRatioIndicators = {\r\n\t\t\t\t\t\t\t\t\tmyParent: element.parentNode || document.body, /* GET */\r\n\t\t\t\t\t\t\t\t\tposition: CSS.getPropertyValue(element, \"position\"), /* GET */\r\n\t\t\t\t\t\t\t\t\tfontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\r\n\t\t\t\t\t\t\t\t\t\tsamePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\r\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\r\n\t\t\t\t\t\t\t\t\t\tsameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\r\n\r\n\t\t\t\t\t\t\t\t/* Store these ratio indicators call-wide for the next element to compare against. */\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastParent = sameRatioIndicators.myParent;\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastPosition = sameRatioIndicators.position;\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\r\n\r\n\t\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t\t Element-Specific Units\r\n\t\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\r\n\t\t\t\t\t\t\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\r\n\t\t\t\t\t\t\t\tvar measurement = 100,\r\n\t\t\t\t\t\t\t\t\t\tunitRatios = {};\r\n\r\n\t\t\t\t\t\t\t\tif (!sameEmRatio || !samePercentRatio) {\r\n\t\t\t\t\t\t\t\t\tvar dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\r\n\r\n\t\t\t\t\t\t\t\t\tVelocity.init(dummy);\r\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.appendChild(dummy);\r\n\r\n\t\t\t\t\t\t\t\t\t/* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\r\n\t\t\t\t\t\t\t\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\r\n\t\t\t\t\t\t\t\t\t/* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\r\n\t\t\t\t\t\t\t\t\t$.each([\"overflow\", \"overflowX\", \"overflowY\"], function(i, property) {\r\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, \"hidden\");\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\r\n\r\n\t\t\t\t\t\t\t\t\t/* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\r\n\t\t\t\t\t\t\t\t\t$.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function(i, property) {\r\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t/* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\r\n\r\n\t\t\t\t\t\t\t\t\t/* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\r\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\r\n\r\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.removeChild(dummy);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx;\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t\t Element-Agnostic Units\r\n\t\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\r\n\t\t\t\t\t\t\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\r\n\t\t\t\t\t\t\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\r\n\t\t\t\t\t\t\t\t so we calculate it now. */\r\n\t\t\t\t\t\t\t\tif (callUnitConversionData.remToPx === null) {\r\n\t\t\t\t\t\t\t\t\t/* Default to browsers' default fontSize of 16px in the case of 0. */\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Similarly, viewport units are %-relative to the window's inner dimensions. */\r\n\t\t\t\t\t\t\t\tif (callUnitConversionData.vwToPx === null) {\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tunitRatios.remToPx = callUnitConversionData.remToPx;\r\n\t\t\t\t\t\t\t\tunitRatios.vwToPx = callUnitConversionData.vwToPx;\r\n\t\t\t\t\t\t\t\tunitRatios.vhToPx = callUnitConversionData.vhToPx;\r\n\r\n\t\t\t\t\t\t\t\tif (Velocity.debug >= 1) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn unitRatios;\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t/********************\r\n\t\t\t\t\t\t\t Unit Conversion\r\n\t\t\t\t\t\t\t ********************/\r\n\r\n\t\t\t\t\t\t\t/* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\r\n\t\t\t\t\t\t\tif (/[\\/*]/.test(operator)) {\r\n\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\r\n\t\t\t\t\t\t\t\t/* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\r\n\t\t\t\t\t\t\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\r\n\t\t\t\t\t\t\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\r\n\t\t\t\t\t\t\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\r\n\t\t\t\t\t\t\t\t/* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\r\n\t\t\t\t\t\t\t} else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\r\n\t\t\t\t\t\t\t\t/* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\r\n\t\t\t\t\t\t\t\t/* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\r\n\t\t\t\t\t\t\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\r\n\t\t\t\t\t\t\t\t which remains past the point of the animation's completion. */\r\n\t\t\t\t\t\t\t\tif (endValue === 0) {\r\n\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\r\n\t\t\t\t\t\t\t\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\r\n\t\t\t\t\t\t\t\t\telementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\r\n\r\n\t\t\t\t\t\t\t\t\t/* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\r\n\t\t\t\t\t\t\t\t\t/* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\r\n\t\t\t\t\t\t\t\t\tvar axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\r\n\r\n\t\t\t\t\t\t\t\t\t/* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\r\n\t\t\t\t\t\t\t\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\r\n\t\t\t\t\t\t\t\t\tswitch (startValueUnitType) {\r\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\r\n\t\t\t\t\t\t\t\t\t\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\r\n\t\t\t\t\t\t\t\t\t\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* px acts as our midpoint in the unit conversion process; do nothing. */\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t/* Invert the px ratios to convert into to the target unit. */\r\n\t\t\t\t\t\t\t\t\tswitch (endValueUnitType) {\r\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* startValue is already in px, do nothing; we're done. */\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/*********************\r\n\t\t\t\t\t\t\t Relative Values\r\n\t\t\t\t\t\t\t *********************/\r\n\r\n\t\t\t\t\t\t\t/* Operator logic must be performed last since it requires unit-normalized start and end values. */\r\n\t\t\t\t\t\t\t/* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\r\n\t\t\t\t\t\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\r\n\t\t\t\t\t\t\t 50 points is added on top of the current % value. */\r\n\t\t\t\t\t\t\tswitch (operator) {\r\n\t\t\t\t\t\t\t\tcase \"+\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue + endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"-\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue - endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"*\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue * endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"/\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue / endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t tweensContainer Push\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\t/* Construct the per-property tween object, and push it to the element's tweensContainer. */\r\n\t\t\t\t\t\t\ttweensContainer[property] = {\r\n\t\t\t\t\t\t\t\trootPropertyValue: rootPropertyValue,\r\n\t\t\t\t\t\t\t\tstartValue: startValue,\r\n\t\t\t\t\t\t\t\tcurrentValue: startValue,\r\n\t\t\t\t\t\t\t\tendValue: endValue,\r\n\t\t\t\t\t\t\t\tunitType: endValueUnitType,\r\n\t\t\t\t\t\t\t\teasing: easing\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif (pattern) {\r\n\t\t\t\t\t\t\t\ttweensContainer[property].pattern = pattern;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\tconsole.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t/* Create a tween out of each property, and append its associated data to tweensContainer. */\r\n\t\t\t\t\t\tfor (var property in propertiesMap) {\r\n\r\n\t\t\t\t\t\t\tif (!propertiesMap.hasOwnProperty(property)) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* The original property name's format must be used for the parsePropertyValue() lookup,\r\n\t\t\t\t\t\t\t but we then use its camelCase styling to normalize it for manipulation. */\r\n\t\t\t\t\t\t\tvar propertyName = CSS.Names.camelCase(property),\r\n\t\t\t\t\t\t\t\t\tvalueData = parsePropertyValue(propertiesMap[property]);\r\n\r\n\t\t\t\t\t\t\t/* Find shorthand color properties that have been passed a hex string. */\r\n\t\t\t\t\t\t\t/* Would be quicker to use CSS.Lists.colors.includes() if possible */\r\n\t\t\t\t\t\t\tif (_inArray(CSS.Lists.colors, propertyName)) {\r\n\t\t\t\t\t\t\t\t/* Parse the value data for each shorthand. */\r\n\t\t\t\t\t\t\t\tvar endValue = valueData[0],\r\n\t\t\t\t\t\t\t\t\t\teasing = valueData[1],\r\n\t\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\r\n\r\n\t\t\t\t\t\t\t\tif (CSS.RegEx.isHex.test(endValue)) {\r\n\t\t\t\t\t\t\t\t\t/* Convert the hex strings into their RGB component arrays. */\r\n\t\t\t\t\t\t\t\t\tvar colorComponents = [\"Red\", \"Green\", \"Blue\"],\r\n\t\t\t\t\t\t\t\t\t\t\tendValueRGB = CSS.Values.hexToRgb(endValue),\r\n\t\t\t\t\t\t\t\t\t\t\tstartValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Inject the RGB component tweens into propertiesMap. */\r\n\t\t\t\t\t\t\t\t\tfor (var i = 0; i < colorComponents.length; i++) {\r\n\t\t\t\t\t\t\t\t\t\tvar dataArray = [endValueRGB[i]];\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (easing) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(easing);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (startValueRGB !== undefined) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(startValueRGB[i]);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tfixPropertyValue(propertyName + colorComponents[i], dataArray);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t/* If we have replaced a shortcut color value then don't update the standard property name */\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfixPropertyValue(propertyName, valueData);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Along with its property data, store a reference to the element itself onto tweensContainer. */\r\n\t\t\t\t\t\ttweensContainer.element = element;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*****************\r\n\t\t\t\t\t Call Push\r\n\t\t\t\t\t *****************/\r\n\r\n\t\t\t\t\t/* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\r\n\t\t\t\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\r\n\t\t\t\t\tif (tweensContainer.element) {\r\n\t\t\t\t\t\t/* Apply the \"velocity-animating\" indicator class. */\r\n\t\t\t\t\t\tCSS.Values.addClass(element, \"velocity-animating\");\r\n\r\n\t\t\t\t\t\t/* The call array houses the tweensContainers for each element being animated in the current call. */\r\n\t\t\t\t\t\tcall.push(tweensContainer);\r\n\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\tif (data) {\r\n\t\t\t\t\t\t\t/* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\r\n\t\t\t\t\t\t\tif (opts.queue === \"\") {\r\n\r\n\t\t\t\t\t\t\t\tdata.tweensContainer = tweensContainer;\r\n\t\t\t\t\t\t\t\tdata.opts = opts;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Switch on the element's animating flag. */\r\n\t\t\t\t\t\t\tdata.isAnimating = true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Once the final element in this call's element set has been processed, push the call array onto\r\n\t\t\t\t\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\r\n\t\t\t\t\t\tif (elementsIndex === elementsLength - 1) {\r\n\t\t\t\t\t\t\t/* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\r\n\t\t\t\t\t\t\t Anything on this call container is subjected to tick() processing. */\r\n\t\t\t\t\t\t\tVelocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\r\n\r\n\t\t\t\t\t\t\t/* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\r\n\t\t\t\t\t\t\tif (Velocity.State.isTicking === false) {\r\n\t\t\t\t\t\t\t\tVelocity.State.isTicking = true;\r\n\r\n\t\t\t\t\t\t\t\t/* Start the tick loop. */\r\n\t\t\t\t\t\t\t\ttick();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\telementsIndex++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* When the queue option is set to false, the call skips the element's queue and fires immediately. */\r\n\t\t\t\tif (opts.queue === false) {\r\n\t\t\t\t\t/* Since this buildQueue call doesn't respect the element's existing queue (which is where a delay option would have been appended),\r\n\t\t\t\t\t we manually inject the delay property here with an explicit setTimeout. */\r\n\t\t\t\t\tif (opts.delay) {\r\n\r\n\t\t\t\t\t\t/* Temporarily store delayed elements to facilitate access for global pause/resume */\r\n\t\t\t\t\t\tvar callIndex = Velocity.State.delayedElements.count++;\r\n\t\t\t\t\t\tVelocity.State.delayedElements[callIndex] = element;\r\n\r\n\t\t\t\t\t\tvar delayComplete = (function(index) {\r\n\t\t\t\t\t\t\treturn function() {\r\n\t\t\t\t\t\t\t\t/* Clear the temporary element */\r\n\t\t\t\t\t\t\t\tVelocity.State.delayedElements[index] = false;\r\n\r\n\t\t\t\t\t\t\t\t/* Finally, issue the call */\r\n\t\t\t\t\t\t\t\tbuildQueue();\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t})(callIndex);\r\n\r\n\t\t\t\t\t\tData(element).delayBegin = (new Date()).getTime();\r\n\t\t\t\t\t\tData(element).delay = parseFloat(opts.delay);\r\n\t\t\t\t\t\tData(element).delayTimer = {\r\n\t\t\t\t\t\t\tsetTimeout: setTimeout(buildQueue, parseFloat(opts.delay)),\r\n\t\t\t\t\t\t\tnext: delayComplete\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbuildQueue();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/* Otherwise, the call undergoes element queueing as normal. */\r\n\t\t\t\t\t/* Note: To interoperate with jQuery, Velocity uses jQuery's own $.queue() stack for queuing logic. */\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$.queue(element, opts.queue, function(next, clearQueue) {\r\n\t\t\t\t\t\t/* If the clearQueue flag was passed in by the stop command, resolve this call's promise. (Promises can only be resolved once,\r\n\t\t\t\t\t\t so it's fine if this is repeatedly triggered for each element in the associated call.) */\r\n\t\t\t\t\t\tif (clearQueue === true) {\r\n\t\t\t\t\t\t\tif (promiseData.promise) {\r\n\t\t\t\t\t\t\t\tpromiseData.resolver(elements);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Do not continue with animation queueing. */\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* This flag indicates to the upcoming completeCall() function that this queue entry was initiated by Velocity.\r\n\t\t\t\t\t\t See completeCall() for further details. */\r\n\t\t\t\t\t\tVelocity.velocityQueueEntryFlag = true;\r\n\r\n\t\t\t\t\t\tbuildQueue(next);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*********************\r\n\t\t\t\t Auto-Dequeuing\r\n\t\t\t\t *********************/\r\n\r\n\t\t\t\t/* As per jQuery's $.queue() behavior, to fire the first non-custom-queue entry on an element, the element\r\n\t\t\t\t must be dequeued if its queue stack consists *solely* of the current call. (This can be determined by checking\r\n\t\t\t\t for the \"inprogress\" item that jQuery prepends to active queue stack arrays.) Regardless, whenever the element's\r\n\t\t\t\t queue is further appended with additional items -- including $.delay()'s or even $.animate() calls, the queue's\r\n\t\t\t\t first entry is automatically fired. This behavior contrasts that of custom queues, which never auto-fire. */\r\n\t\t\t\t/* Note: When an element set is being subjected to a non-parallel Velocity call, the animation will not begin until\r\n\t\t\t\t each one of the elements in the set has reached the end of its individually pre-existing queue chain. */\r\n\t\t\t\t/* Note: Unfortunately, most people don't fully grasp jQuery's powerful, yet quirky, $.queue() function.\r\n\t\t\t\t Lean more here: http://stackoverflow.com/questions/1058158/can-somebody-explain-jquery-queue-to-me */\r\n\t\t\t\tif ((opts.queue === \"\" || opts.queue === \"fx\") && $.queue(element)[0] !== \"inprogress\") {\r\n\t\t\t\t\t$.dequeue(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/**************************\r\n\t\t\t Element Set Iteration\r\n\t\t\t **************************/\r\n\r\n\t\t\t/* If the \"nodeType\" property exists on the elements variable, we're animating a single element.\r\n\t\t\t Place it in an array so that $.each() can iterate over it. */\r\n\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t/* Ensure each element in a set has a nodeType (is a real element) to avoid throwing errors. */\r\n\t\t\t\tif (Type.isNode(element)) {\r\n\t\t\t\t\tprocessElement(element, i);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t/******************\r\n\t\t\t Option: Loop\r\n\t\t\t ******************/\r\n\r\n\t\t\t/* The loop option accepts an integer indicating how many times the element should loop between the values in the\r\n\t\t\t current call's properties map and the element's property values prior to this call. */\r\n\t\t\t/* Note: The loop option's logic is performed here -- after element processing -- because the current call needs\r\n\t\t\t to undergo its queue insertion prior to the loop option generating its series of constituent \"reverse\" calls,\r\n\t\t\t which chain after the current call. Two reverse calls (two \"alternations\") constitute one loop. */\r\n\t\t\topts = $.extend({}, Velocity.defaults, options);\r\n\t\t\topts.loop = parseInt(opts.loop, 10);\r\n\t\t\tvar reverseCallsCount = (opts.loop * 2) - 1;\r\n\r\n\t\t\tif (opts.loop) {\r\n\t\t\t\t/* Double the loop count to convert it into its appropriate number of \"reverse\" calls.\r\n\t\t\t\t Subtract 1 from the resulting value since the current call is included in the total alternation count. */\r\n\t\t\t\tfor (var x = 0; x < reverseCallsCount; x++) {\r\n\t\t\t\t\t/* Since the logic for the reverse action occurs inside Queueing and therefore this call's options object\r\n\t\t\t\t\t isn't parsed until then as well, the current call's delay option must be explicitly passed into the reverse\r\n\t\t\t\t\t call so that the delay logic that occurs inside *Pre-Queueing* can process it. */\r\n\t\t\t\t\tvar reverseOptions = {\r\n\t\t\t\t\t\tdelay: opts.delay,\r\n\t\t\t\t\t\tprogress: opts.progress\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\t/* If a complete callback was passed into this call, transfer it to the loop redirect's final \"reverse\" call\r\n\t\t\t\t\t so that it's triggered when the entire redirect is complete (and not when the very first animation is complete). */\r\n\t\t\t\t\tif (x === reverseCallsCount - 1) {\r\n\t\t\t\t\t\treverseOptions.display = opts.display;\r\n\t\t\t\t\t\treverseOptions.visibility = opts.visibility;\r\n\t\t\t\t\t\treverseOptions.complete = opts.complete;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tanimate(elements, \"reverse\", reverseOptions);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/***************\r\n\t\t\t Chaining\r\n\t\t\t ***************/\r\n\r\n\t\t\t/* Return the elements back to the call chain, with wrapped elements taking precedence in case Velocity was called via the $.fn. extension. */\r\n\t\t\treturn getChain();\r\n\t\t};\r\n\r\n\t\t/* Turn Velocity into the animation function, extended with the pre-existing Velocity object. */\r\n\t\tVelocity = $.extend(animate, Velocity);\r\n\t\t/* For legacy support, also expose the literal animate method. */\r\n\t\tVelocity.animate = animate;\r\n\r\n\t\t/**************\r\n\t\t Timing\r\n\t\t **************/\r\n\r\n\t\t/* Ticker function. */\r\n\t\tvar ticker = window.requestAnimationFrame || rAFShim;\r\n\r\n\t\t/* Inactive browser tabs pause rAF, which results in all active animations immediately sprinting to their completion states when the tab refocuses.\r\n\t\t To get around this, we dynamically switch rAF to setTimeout (which the browser *doesn't* pause) when the tab loses focus. We skip this for mobile\r\n\t\t devices to avoid wasting battery power on inactive tabs. */\r\n\t\t/* Note: Tab focus detection doesn't work on older versions of IE, but that's okay since they don't support rAF to begin with. */\r\n\t\tif (!Velocity.State.isMobile && document.hidden !== undefined) {\r\n\t\t\tvar updateTicker = function() {\r\n\t\t\t\t/* Reassign the rAF function (which the global tick() function uses) based on the tab's focus state. */\r\n\t\t\t\tif (document.hidden) {\r\n\t\t\t\t\tticker = function(callback) {\r\n\t\t\t\t\t\t/* The tick function needs a truthy first argument in order to pass its internal timestamp check. */\r\n\t\t\t\t\t\treturn setTimeout(function() {\r\n\t\t\t\t\t\t\tcallback(true);\r\n\t\t\t\t\t\t}, 16);\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\t/* The rAF loop has been paused by the browser, so we manually restart the tick. */\r\n\t\t\t\t\ttick();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tticker = window.requestAnimationFrame || rAFShim;\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\t/* Page could be sitting in the background at this time (i.e. opened as new tab) so making sure we use correct ticker from the start */\r\n\t\t\tupdateTicker();\r\n\r\n\t\t\t/* And then run check again every time visibility changes */\r\n\t\t\tdocument.addEventListener(\"visibilitychange\", updateTicker);\r\n\t\t}\r\n\r\n\t\t/************\r\n\t\t Tick\r\n\t\t ************/\r\n\r\n\t\t/* Note: All calls to Velocity are pushed to the Velocity.State.calls array, which is fully iterated through upon each tick. */\r\n\t\tfunction tick(timestamp) {\r\n\t\t\t/* An empty timestamp argument indicates that this is the first tick occurence since ticking was turned on.\r\n\t\t\t We leverage this metadata to fully ignore the first tick pass since RAF's initial pass is fired whenever\r\n\t\t\t the browser's next tick sync time occurs, which results in the first elements subjected to Velocity\r\n\t\t\t calls being animated out of sync with any elements animated immediately thereafter. In short, we ignore\r\n\t\t\t the first RAF tick pass so that elements being immediately consecutively animated -- instead of simultaneously animated\r\n\t\t\t by the same Velocity call -- are properly batched into the same initial RAF tick and consequently remain in sync thereafter. */\r\n\t\t\tif (timestamp) {\r\n\t\t\t\t/* We normally use RAF's high resolution timestamp but as it can be significantly offset when the browser is\r\n\t\t\t\t under high stress we give the option for choppiness over allowing the browser to drop huge chunks of frames.\r\n\t\t\t\t We use performance.now() and shim it if it doesn't exist for when the tab is hidden. */\r\n\t\t\t\tvar timeCurrent = Velocity.timestamp && timestamp !== true ? timestamp : performance.now();\r\n\r\n\t\t\t\t/********************\r\n\t\t\t\t Call Iteration\r\n\t\t\t\t ********************/\r\n\r\n\t\t\t\tvar callsLength = Velocity.State.calls.length;\r\n\r\n\t\t\t\t/* To speed up iterating over this array, it is compacted (falsey items -- calls that have completed -- are removed)\r\n\t\t\t\t when its length has ballooned to a point that can impact tick performance. This only becomes necessary when animation\r\n\t\t\t\t has been continuous with many elements over a long period of time; whenever all active calls are completed, completeCall() clears Velocity.State.calls. */\r\n\t\t\t\tif (callsLength > 10000) {\r\n\t\t\t\t\tVelocity.State.calls = compactSparseArray(Velocity.State.calls);\r\n\t\t\t\t\tcallsLength = Velocity.State.calls.length;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Iterate through each active call. */\r\n\t\t\t\tfor (var i = 0; i < callsLength; i++) {\r\n\t\t\t\t\t/* When a Velocity call is completed, its Velocity.State.calls entry is set to false. Continue on to the next call. */\r\n\t\t\t\t\tif (!Velocity.State.calls[i]) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/************************\r\n\t\t\t\t\t Call-Wide Variables\r\n\t\t\t\t\t ************************/\r\n\r\n\t\t\t\t\tvar callContainer = Velocity.State.calls[i],\r\n\t\t\t\t\t\t\tcall = callContainer[0],\r\n\t\t\t\t\t\t\topts = callContainer[2],\r\n\t\t\t\t\t\t\ttimeStart = callContainer[3],\r\n\t\t\t\t\t\t\tfirstTick = !timeStart,\r\n\t\t\t\t\t\t\ttweenDummyValue = null,\r\n\t\t\t\t\t\t\tpauseObject = callContainer[5],\r\n\t\t\t\t\t\t\tmillisecondsEllapsed = callContainer[6];\r\n\r\n\r\n\r\n\t\t\t\t\t/* If timeStart is undefined, then this is the first time that this call has been processed by tick().\r\n\t\t\t\t\t We assign timeStart now so that its value is as close to the real animation start time as possible.\r\n\t\t\t\t\t (Conversely, had timeStart been defined when this call was added to Velocity.State.calls, the delay\r\n\t\t\t\t\t between that time and now would cause the first few frames of the tween to be skipped since\r\n\t\t\t\t\t percentComplete is calculated relative to timeStart.) */\r\n\t\t\t\t\t/* Further, subtract 16ms (the approximate resolution of RAF) from the current time value so that the\r\n\t\t\t\t\t first tick iteration isn't wasted by animating at 0% tween completion, which would produce the\r\n\t\t\t\t\t same style value as the element's current value. */\r\n\t\t\t\t\tif (!timeStart) {\r\n\t\t\t\t\t\ttimeStart = Velocity.State.calls[i][3] = timeCurrent - 16;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If a pause object is present, skip processing unless it has been set to resume */\r\n\t\t\t\t\tif (pauseObject) {\r\n\t\t\t\t\t\tif (pauseObject.resume === true) {\r\n\t\t\t\t\t\t\t/* Update the time start to accomodate the paused completion amount */\r\n\t\t\t\t\t\t\ttimeStart = callContainer[3] = Math.round(timeCurrent - millisecondsEllapsed - 16);\r\n\r\n\t\t\t\t\t\t\t/* Remove pause object after processing */\r\n\t\t\t\t\t\t\tcallContainer[5] = null;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tmillisecondsEllapsed = callContainer[6] = timeCurrent - timeStart;\r\n\r\n\t\t\t\t\t/* The tween's completion percentage is relative to the tween's start time, not the tween's start value\r\n\t\t\t\t\t (which would result in unpredictable tween durations since JavaScript's timers are not particularly accurate).\r\n\t\t\t\t\t Accordingly, we ensure that percentComplete does not exceed 1. */\r\n\t\t\t\t\tvar percentComplete = Math.min((millisecondsEllapsed) / opts.duration, 1);\r\n\r\n\t\t\t\t\t/**********************\r\n\t\t\t\t\t Element Iteration\r\n\t\t\t\t\t **********************/\r\n\r\n\t\t\t\t\t/* For every call, iterate through each of the elements in its set. */\r\n\t\t\t\t\tfor (var j = 0, callLength = call.length; j < callLength; j++) {\r\n\t\t\t\t\t\tvar tweensContainer = call[j],\r\n\t\t\t\t\t\t\t\telement = tweensContainer.element;\r\n\r\n\t\t\t\t\t\t/* Check to see if this element has been deleted midway through the animation by checking for the\r\n\t\t\t\t\t\t continued existence of its data cache. If it's gone, or the element is currently paused, skip animating this element. */\r\n\t\t\t\t\t\tif (!Data(element)) {\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\tvar transformPropertyExists = false;\r\n\r\n\t\t\t\t\t\t/**********************************\r\n\t\t\t\t\t\t Display & Visibility Toggling\r\n\t\t\t\t\t\t **********************************/\r\n\r\n\t\t\t\t\t\t/* If the display option is set to non-\"none\", set it upfront so that the element can become visible before tweening begins.\r\n\t\t\t\t\t\t (Otherwise, display's \"none\" value is set in completeCall() once the animation has completed.) */\r\n\t\t\t\t\t\tif (opts.display !== undefined && opts.display !== null && opts.display !== \"none\") {\r\n\t\t\t\t\t\t\tif (opts.display === \"flex\") {\r\n\t\t\t\t\t\t\t\tvar flexValues = [\"-webkit-box\", \"-moz-box\", \"-ms-flexbox\", \"-webkit-flex\"];\r\n\r\n\t\t\t\t\t\t\t\t$.each(flexValues, function(i, flexValue) {\r\n\t\t\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", flexValue);\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", opts.display);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Same goes with the visibility option, but its \"none\" equivalent is \"hidden\". */\r\n\t\t\t\t\t\tif (opts.visibility !== undefined && opts.visibility !== \"hidden\") {\r\n\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"visibility\", opts.visibility);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/************************\r\n\t\t\t\t\t\t Property Iteration\r\n\t\t\t\t\t\t ************************/\r\n\r\n\t\t\t\t\t\t/* For every element, iterate through each property. */\r\n\t\t\t\t\t\tfor (var property in tweensContainer) {\r\n\t\t\t\t\t\t\t/* Note: In addition to property tween data, tweensContainer contains a reference to its associated element. */\r\n\t\t\t\t\t\t\tif (tweensContainer.hasOwnProperty(property) && property !== \"element\") {\r\n\t\t\t\t\t\t\t\tvar tween = tweensContainer[property],\r\n\t\t\t\t\t\t\t\t\t\tcurrentValue,\r\n\t\t\t\t\t\t\t\t\t\t/* Easing can either be a pre-genereated function or a string that references a pre-registered easing\r\n\t\t\t\t\t\t\t\t\t\t on the Velocity.Easings object. In either case, return the appropriate easing *function*. */\r\n\t\t\t\t\t\t\t\t\t\teasing = Type.isString(tween.easing) ? Velocity.Easings[tween.easing] : tween.easing;\r\n\r\n\t\t\t\t\t\t\t\t/******************************\r\n\t\t\t\t\t\t\t\t Current Value Calculation\r\n\t\t\t\t\t\t\t\t ******************************/\r\n\r\n\t\t\t\t\t\t\t\tif (Type.isString(tween.pattern)) {\r\n\t\t\t\t\t\t\t\t\tvar patternReplace = percentComplete === 1 ?\r\n\t\t\t\t\t\t\t\t\t\t\tfunction($0, index, round) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar result = tween.endValue[index];\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn round ? Math.round(result) : result;\r\n\t\t\t\t\t\t\t\t\t\t\t} :\r\n\t\t\t\t\t\t\t\t\t\t\tfunction($0, index, round) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar startValue = tween.startValue[index],\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttweenDelta = tween.endValue[index] - startValue,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tresult = startValue + (tweenDelta * easing(percentComplete, opts, tweenDelta));\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn round ? Math.round(result) : result;\r\n\t\t\t\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\t\tcurrentValue = tween.pattern.replace(/{(\\d+)(!)?}/g, patternReplace);\r\n\t\t\t\t\t\t\t\t} else if (percentComplete === 1) {\r\n\t\t\t\t\t\t\t\t\t/* If this is the last tick pass (if we've reached 100% completion for this tween),\r\n\t\t\t\t\t\t\t\t\t ensure that currentValue is explicitly set to its target endValue so that it's not subjected to any rounding. */\r\n\t\t\t\t\t\t\t\t\tcurrentValue = tween.endValue;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/* Otherwise, calculate currentValue based on the current delta from startValue. */\r\n\t\t\t\t\t\t\t\t\tvar tweenDelta = tween.endValue - tween.startValue;\r\n\r\n\t\t\t\t\t\t\t\t\tcurrentValue = tween.startValue + (tweenDelta * easing(percentComplete, opts, tweenDelta));\r\n\t\t\t\t\t\t\t\t\t/* If no value change is occurring, don't proceed with DOM updating. */\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (!firstTick && (currentValue === tween.currentValue)) {\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\ttween.currentValue = currentValue;\r\n\r\n\t\t\t\t\t\t\t\t/* If we're tweening a fake 'tween' property in order to log transition values, update the one-per-call variable so that\r\n\t\t\t\t\t\t\t\t it can be passed into the progress callback. */\r\n\t\t\t\t\t\t\t\tif (property === \"tween\") {\r\n\t\t\t\t\t\t\t\t\ttweenDummyValue = currentValue;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/******************\r\n\t\t\t\t\t\t\t\t\t Hooks: Part I\r\n\t\t\t\t\t\t\t\t\t ******************/\r\n\t\t\t\t\t\t\t\t\tvar hookRoot;\r\n\r\n\t\t\t\t\t\t\t\t\t/* For hooked properties, the newly-updated rootPropertyValueCache is cached onto the element so that it can be used\r\n\t\t\t\t\t\t\t\t\t for subsequent hooks in this call that are associated with the same root property. If we didn't cache the updated\r\n\t\t\t\t\t\t\t\t\t rootPropertyValue, each subsequent update to the root property in this tick pass would reset the previous hook's\r\n\t\t\t\t\t\t\t\t\t updates to rootPropertyValue prior to injection. A nice performance byproduct of rootPropertyValue caching is that\r\n\t\t\t\t\t\t\t\t\t subsequently chained animations using the same hookRoot but a different hook can use this cached rootPropertyValue. */\r\n\t\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\t\t\t\thookRoot = CSS.Hooks.getRoot(property);\r\n\r\n\t\t\t\t\t\t\t\t\t\tvar rootPropertyValueCache = Data(element).rootPropertyValueCache[hookRoot];\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (rootPropertyValueCache) {\r\n\t\t\t\t\t\t\t\t\t\t\ttween.rootPropertyValue = rootPropertyValueCache;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t/*****************\r\n\t\t\t\t\t\t\t\t\t DOM Update\r\n\t\t\t\t\t\t\t\t\t *****************/\r\n\r\n\t\t\t\t\t\t\t\t\t/* setPropertyValue() returns an array of the property name and property value post any normalization that may have been performed. */\r\n\t\t\t\t\t\t\t\t\t/* Note: To solve an IE<=8 positioning bug, the unit type is dropped when setting a property value of 0. */\r\n\t\t\t\t\t\t\t\t\tvar adjustedSetData = CSS.setPropertyValue(element, /* SET */\r\n\t\t\t\t\t\t\t\t\t\t\tproperty,\r\n\t\t\t\t\t\t\t\t\t\t\ttween.currentValue + (IE < 9 && parseFloat(currentValue) === 0 ? \"\" : tween.unitType),\r\n\t\t\t\t\t\t\t\t\t\t\ttween.rootPropertyValue,\r\n\t\t\t\t\t\t\t\t\t\t\ttween.scrollData);\r\n\r\n\t\t\t\t\t\t\t\t\t/*******************\r\n\t\t\t\t\t\t\t\t\t Hooks: Part II\r\n\t\t\t\t\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t\t\t\t\t/* Now that we have the hook's updated rootPropertyValue (the post-processed value provided by adjustedSetData), cache it onto the element. */\r\n\t\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\t\t\t\t/* Since adjustedSetData contains normalized data ready for DOM updating, the rootPropertyValue needs to be re-extracted from its normalized form. ?? */\r\n\t\t\t\t\t\t\t\t\t\tif (CSS.Normalizations.registered[hookRoot]) {\r\n\t\t\t\t\t\t\t\t\t\t\tData(element).rootPropertyValueCache[hookRoot] = CSS.Normalizations.registered[hookRoot](\"extract\", null, adjustedSetData[1]);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tData(element).rootPropertyValueCache[hookRoot] = adjustedSetData[1];\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t/***************\r\n\t\t\t\t\t\t\t\t\t Transforms\r\n\t\t\t\t\t\t\t\t\t ***************/\r\n\r\n\t\t\t\t\t\t\t\t\t/* Flag whether a transform property is being animated so that flushTransformCache() can be triggered once this tick pass is complete. */\r\n\t\t\t\t\t\t\t\t\tif (adjustedSetData[0] === \"transform\") {\r\n\t\t\t\t\t\t\t\t\t\ttransformPropertyExists = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/****************\r\n\t\t\t\t\t\t mobileHA\r\n\t\t\t\t\t\t ****************/\r\n\r\n\t\t\t\t\t\t/* If mobileHA is enabled, set the translate3d transform to null to force hardware acceleration.\r\n\t\t\t\t\t\t It's safe to override this property since Velocity doesn't actually support its animation (hooks are used in its place). */\r\n\t\t\t\t\t\tif (opts.mobileHA) {\r\n\t\t\t\t\t\t\t/* Don't set the null transform hack if we've already done so. */\r\n\t\t\t\t\t\t\tif (Data(element).transformCache.translate3d === undefined) {\r\n\t\t\t\t\t\t\t\t/* All entries on the transformCache object are later concatenated into a single transform string via flushTransformCache(). */\r\n\t\t\t\t\t\t\t\tData(element).transformCache.translate3d = \"(0px, 0px, 0px)\";\r\n\r\n\t\t\t\t\t\t\t\ttransformPropertyExists = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (transformPropertyExists) {\r\n\t\t\t\t\t\t\tCSS.flushTransformCache(element);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* The non-\"none\" display value is only applied to an element once -- when its associated call is first ticked through.\r\n\t\t\t\t\t Accordingly, it's set to false so that it isn't re-processed by this call in the next tick. */\r\n\t\t\t\t\tif (opts.display !== undefined && opts.display !== \"none\") {\r\n\t\t\t\t\t\tVelocity.State.calls[i][2].display = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (opts.visibility !== undefined && opts.visibility !== \"hidden\") {\r\n\t\t\t\t\t\tVelocity.State.calls[i][2].visibility = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Pass the elements and the timing data (percentComplete, msRemaining, timeStart, tweenDummyValue) into the progress callback. */\r\n\t\t\t\t\tif (opts.progress) {\r\n\t\t\t\t\t\topts.progress.call(callContainer[1],\r\n\t\t\t\t\t\t\t\tcallContainer[1],\r\n\t\t\t\t\t\t\t\tpercentComplete,\r\n\t\t\t\t\t\t\t\tMath.max(0, (timeStart + opts.duration) - timeCurrent),\r\n\t\t\t\t\t\t\t\ttimeStart,\r\n\t\t\t\t\t\t\t\ttweenDummyValue);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If this call has finished tweening, pass its index to completeCall() to handle call cleanup. */\r\n\t\t\t\t\tif (percentComplete === 1) {\r\n\t\t\t\t\t\tcompleteCall(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* Note: completeCall() sets the isTicking flag to false when the last call on Velocity.State.calls has completed. */\r\n\t\t\tif (Velocity.State.isTicking) {\r\n\t\t\t\tticker(tick);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**********************\r\n\t\t Call Completion\r\n\t\t **********************/\r\n\r\n\t\t/* Note: Unlike tick(), which processes all active calls at once, call completion is handled on a per-call basis. */\r\n\t\tfunction completeCall(callIndex, isStopped) {\r\n\t\t\t/* Ensure the call exists. */\r\n\t\t\tif (!Velocity.State.calls[callIndex]) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t/* Pull the metadata from the call. */\r\n\t\t\tvar call = Velocity.State.calls[callIndex][0],\r\n\t\t\t\t\telements = Velocity.State.calls[callIndex][1],\r\n\t\t\t\t\topts = Velocity.State.calls[callIndex][2],\r\n\t\t\t\t\tresolver = Velocity.State.calls[callIndex][4];\r\n\r\n\t\t\tvar remainingCallsExist = false;\r\n\r\n\t\t\t/*************************\r\n\t\t\t Element Finalization\r\n\t\t\t *************************/\r\n\r\n\t\t\tfor (var i = 0, callLength = call.length; i < callLength; i++) {\r\n\t\t\t\tvar element = call[i].element;\r\n\r\n\t\t\t\t/* If the user set display to \"none\" (intending to hide the element), set it now that the animation has completed. */\r\n\t\t\t\t/* Note: display:none isn't set when calls are manually stopped (via Velocity(\"stop\"). */\r\n\t\t\t\t/* Note: Display gets ignored with \"reverse\" calls and infinite loops, since this behavior would be undesirable. */\r\n\t\t\t\tif (!isStopped && !opts.loop) {\r\n\t\t\t\t\tif (opts.display === \"none\") {\r\n\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", opts.display);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opts.visibility === \"hidden\") {\r\n\t\t\t\t\t\tCSS.setPropertyValue(element, \"visibility\", opts.visibility);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* If the element's queue is empty (if only the \"inprogress\" item is left at position 0) or if its queue is about to run\r\n\t\t\t\t a non-Velocity-initiated entry, turn off the isAnimating flag. A non-Velocity-initiatied queue entry's logic might alter\r\n\t\t\t\t an element's CSS values and thereby cause Velocity's cached value data to go stale. To detect if a queue entry was initiated by Velocity,\r\n\t\t\t\t we check for the existence of our special Velocity.queueEntryFlag declaration, which minifiers won't rename since the flag\r\n\t\t\t\t is assigned to jQuery's global $ object and thus exists out of Velocity's own scope. */\r\n\t\t\t\tvar data = Data(element);\r\n\r\n\t\t\t\tif (opts.loop !== true && ($.queue(element)[1] === undefined || !/\\.velocityQueueEntryFlag/i.test($.queue(element)[1]))) {\r\n\t\t\t\t\t/* The element may have been deleted. Ensure that its data cache still exists before acting on it. */\r\n\t\t\t\t\tif (data) {\r\n\t\t\t\t\t\tdata.isAnimating = false;\r\n\t\t\t\t\t\t/* Clear the element's rootPropertyValueCache, which will become stale. */\r\n\t\t\t\t\t\tdata.rootPropertyValueCache = {};\r\n\r\n\t\t\t\t\t\tvar transformHAPropertyExists = false;\r\n\t\t\t\t\t\t/* If any 3D transform subproperty is at its default value (regardless of unit type), remove it. */\r\n\t\t\t\t\t\t$.each(CSS.Lists.transforms3D, function(i, transformName) {\r\n\t\t\t\t\t\t\tvar defaultValue = /^scale/.test(transformName) ? 1 : 0,\r\n\t\t\t\t\t\t\t\t\tcurrentValue = data.transformCache[transformName];\r\n\r\n\t\t\t\t\t\t\tif (data.transformCache[transformName] !== undefined && new RegExp(\"^\\\\(\" + defaultValue + \"[^.]\").test(currentValue)) {\r\n\t\t\t\t\t\t\t\ttransformHAPropertyExists = true;\r\n\r\n\t\t\t\t\t\t\t\tdelete data.transformCache[transformName];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t/* Mobile devices have hardware acceleration removed at the end of the animation in order to avoid hogging the GPU's memory. */\r\n\t\t\t\t\t\tif (opts.mobileHA) {\r\n\t\t\t\t\t\t\ttransformHAPropertyExists = true;\r\n\t\t\t\t\t\t\tdelete data.transformCache.translate3d;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Flush the subproperty removals to the DOM. */\r\n\t\t\t\t\t\tif (transformHAPropertyExists) {\r\n\t\t\t\t\t\t\tCSS.flushTransformCache(element);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Remove the \"velocity-animating\" indicator class. */\r\n\t\t\t\t\t\tCSS.Values.removeClass(element, \"velocity-animating\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*********************\r\n\t\t\t\t Option: Complete\r\n\t\t\t\t *********************/\r\n\r\n\t\t\t\t/* Complete is fired once per call (not once per element) and is passed the full raw DOM element set as both its context and its first argument. */\r\n\t\t\t\t/* Note: Callbacks aren't fired when calls are manually stopped (via Velocity(\"stop\"). */\r\n\t\t\t\tif (!isStopped && opts.complete && !opts.loop && (i === callLength - 1)) {\r\n\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\topts.complete.call(elements, elements);\r\n\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\t\tthrow error;\r\n\t\t\t\t\t\t}, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/**********************\r\n\t\t\t\t Promise Resolving\r\n\t\t\t\t **********************/\r\n\r\n\t\t\t\t/* Note: Infinite loops don't return promises. */\r\n\t\t\t\tif (resolver && opts.loop !== true) {\r\n\t\t\t\t\tresolver(elements);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/****************************\r\n\t\t\t\t Option: Loop (Infinite)\r\n\t\t\t\t ****************************/\r\n\r\n\t\t\t\tif (data && opts.loop === true && !isStopped) {\r\n\t\t\t\t\t/* If a rotateX/Y/Z property is being animated by 360 deg with loop:true, swap tween start/end values to enable\r\n\t\t\t\t\t continuous iterative rotation looping. (Otherise, the element would just rotate back and forth.) */\r\n\t\t\t\t\t$.each(data.tweensContainer, function(propertyName, tweenContainer) {\r\n\t\t\t\t\t\tif (/^rotate/.test(propertyName) && ((parseFloat(tweenContainer.startValue) - parseFloat(tweenContainer.endValue)) % 360 === 0)) {\r\n\t\t\t\t\t\t\tvar oldStartValue = tweenContainer.startValue;\r\n\r\n\t\t\t\t\t\t\ttweenContainer.startValue = tweenContainer.endValue;\r\n\t\t\t\t\t\t\ttweenContainer.endValue = oldStartValue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (/^backgroundPosition/.test(propertyName) && parseFloat(tweenContainer.endValue) === 100 && tweenContainer.unitType === \"%\") {\r\n\t\t\t\t\t\t\ttweenContainer.endValue = 0;\r\n\t\t\t\t\t\t\ttweenContainer.startValue = 100;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tVelocity(element, \"reverse\", {loop: true, delay: opts.delay});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/***************\r\n\t\t\t\t Dequeueing\r\n\t\t\t\t ***************/\r\n\r\n\t\t\t\t/* Fire the next call in the queue so long as this call's queue wasn't set to false (to trigger a parallel animation),\r\n\t\t\t\t which would have already caused the next call to fire. Note: Even if the end of the animation queue has been reached,\r\n\t\t\t\t $.dequeue() must still be called in order to completely clear jQuery's animation queue. */\r\n\t\t\t\tif (opts.queue !== false) {\r\n\t\t\t\t\t$.dequeue(element, opts.queue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/************************\r\n\t\t\t Calls Array Cleanup\r\n\t\t\t ************************/\r\n\r\n\t\t\t/* Since this call is complete, set it to false so that the rAF tick skips it. This array is later compacted via compactSparseArray().\r\n\t\t\t (For performance reasons, the call is set to false instead of being deleted from the array: http://www.html5rocks.com/en/tutorials/speed/v8/) */\r\n\t\t\tVelocity.State.calls[callIndex] = false;\r\n\r\n\t\t\t/* Iterate through the calls array to determine if this was the final in-progress animation.\r\n\t\t\t If so, set a flag to end ticking and clear the calls array. */\r\n\t\t\tfor (var j = 0, callsLength = Velocity.State.calls.length; j < callsLength; j++) {\r\n\t\t\t\tif (Velocity.State.calls[j] !== false) {\r\n\t\t\t\t\tremainingCallsExist = true;\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (remainingCallsExist === false) {\r\n\t\t\t\t/* tick() will detect this flag upon its next iteration and subsequently turn itself off. */\r\n\t\t\t\tVelocity.State.isTicking = false;\r\n\r\n\t\t\t\t/* Clear the calls array so that its length is reset. */\r\n\t\t\t\tdelete Velocity.State.calls;\r\n\t\t\t\tVelocity.State.calls = [];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/******************\r\n\t\t Frameworks\r\n\t\t ******************/\r\n\r\n\t\t/* Both jQuery and Zepto allow their $.fn object to be extended to allow wrapped elements to be subjected to plugin calls.\r\n\t\t If either framework is loaded, register a \"velocity\" extension pointing to Velocity's core animate() method.  Velocity\r\n\t\t also registers itself onto a global container (window.jQuery || window.Zepto || window) so that certain features are\r\n\t\t accessible beyond just a per-element scope. This master object contains an .animate() method, which is later assigned to $.fn\r\n\t\t (if jQuery or Zepto are present). Accordingly, Velocity can both act on wrapped DOM elements and stand alone for targeting raw DOM elements. */\r\n\t\tglobal.Velocity = Velocity;\r\n\r\n\t\tif (global !== window) {\r\n\t\t\t/* Assign the element function to Velocity's core animate() method. */\r\n\t\t\tglobal.fn.velocity = animate;\r\n\t\t\t/* Assign the object function's defaults to Velocity's global defaults object. */\r\n\t\t\tglobal.fn.velocity.defaults = Velocity.defaults;\r\n\t\t}\r\n\r\n\t\t/***********************\r\n\t\t Packaged Redirects\r\n\t\t ***********************/\r\n\r\n\t\t/* slideUp, slideDown */\r\n\t\t$.each([\"Down\", \"Up\"], function(i, direction) {\r\n\t\t\tVelocity.Redirects[\"slide\" + direction] = function(element, options, elementsIndex, elementsSize, elements, promiseData) {\r\n\t\t\t\tvar opts = $.extend({}, options),\r\n\t\t\t\t\t\tbegin = opts.begin,\r\n\t\t\t\t\t\tcomplete = opts.complete,\r\n\t\t\t\t\t\tinlineValues = {},\r\n\t\t\t\t\t\tcomputedValues = {height: \"\", marginTop: \"\", marginBottom: \"\", paddingTop: \"\", paddingBottom: \"\"};\r\n\r\n\t\t\t\tif (opts.display === undefined) {\r\n\t\t\t\t\t/* Show the element before slideDown begins and hide the element after slideUp completes. */\r\n\t\t\t\t\t/* Note: Inline elements cannot have dimensions animated, so they're reverted to inline-block. */\r\n\t\t\t\t\topts.display = (direction === \"Down\" ? (Velocity.CSS.Values.getDisplayType(element) === \"inline\" ? \"inline-block\" : \"block\") : \"none\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\topts.begin = function() {\r\n\t\t\t\t\t/* If the user passed in a begin callback, fire it now. */\r\n\t\t\t\t\tif (elementsIndex === 0 && begin) {\r\n\t\t\t\t\t\tbegin.call(elements, elements);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Cache the elements' original vertical dimensional property values so that we can animate back to them. */\r\n\t\t\t\t\tfor (var property in computedValues) {\r\n\t\t\t\t\t\tif (!computedValues.hasOwnProperty(property)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tinlineValues[property] = element.style[property];\r\n\r\n\t\t\t\t\t\t/* For slideDown, use forcefeeding to animate all vertical properties from 0. For slideUp,\r\n\t\t\t\t\t\t use forcefeeding to start from computed values and animate down to 0. */\r\n\t\t\t\t\t\tvar propertyValue = CSS.getPropertyValue(element, property);\r\n\t\t\t\t\t\tcomputedValues[property] = (direction === \"Down\") ? [propertyValue, 0] : [0, propertyValue];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Force vertical overflow content to clip so that sliding works as expected. */\r\n\t\t\t\t\tinlineValues.overflow = element.style.overflow;\r\n\t\t\t\t\telement.style.overflow = \"hidden\";\r\n\t\t\t\t};\r\n\r\n\t\t\t\topts.complete = function() {\r\n\t\t\t\t\t/* Reset element to its pre-slide inline values once its slide animation is complete. */\r\n\t\t\t\t\tfor (var property in inlineValues) {\r\n\t\t\t\t\t\tif (inlineValues.hasOwnProperty(property)) {\r\n\t\t\t\t\t\t\telement.style[property] = inlineValues[property];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If the user passed in a complete callback, fire it now. */\r\n\t\t\t\t\tif (elementsIndex === elementsSize - 1) {\r\n\t\t\t\t\t\tif (complete) {\r\n\t\t\t\t\t\t\tcomplete.call(elements, elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (promiseData) {\r\n\t\t\t\t\t\t\tpromiseData.resolver(elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\r\n\t\t\t\tVelocity(element, computedValues, opts);\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\t/* fadeIn, fadeOut */\r\n\t\t$.each([\"In\", \"Out\"], function(i, direction) {\r\n\t\t\tVelocity.Redirects[\"fade\" + direction] = function(element, options, elementsIndex, elementsSize, elements, promiseData) {\r\n\t\t\t\tvar opts = $.extend({}, options),\r\n\t\t\t\t\t\tcomplete = opts.complete,\r\n\t\t\t\t\t\tpropertiesMap = {opacity: (direction === \"In\") ? 1 : 0};\r\n\r\n\t\t\t\t/* Since redirects are triggered individually for each element in the animated set, avoid repeatedly triggering\r\n\t\t\t\t callbacks by firing them only when the final element has been reached. */\r\n\t\t\t\tif (elementsIndex !== 0) {\r\n\t\t\t\t\topts.begin = null;\r\n\t\t\t\t}\r\n\t\t\t\tif (elementsIndex !== elementsSize - 1) {\r\n\t\t\t\t\topts.complete = null;\r\n\t\t\t\t} else {\r\n\t\t\t\t\topts.complete = function() {\r\n\t\t\t\t\t\tif (complete) {\r\n\t\t\t\t\t\t\tcomplete.call(elements, elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (promiseData) {\r\n\t\t\t\t\t\t\tpromiseData.resolver(elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* If a display was passed in, use it. Otherwise, default to \"none\" for fadeOut or the element-specific default for fadeIn. */\r\n\t\t\t\t/* Note: We allow users to pass in \"null\" to skip display setting altogether. */\r\n\t\t\t\tif (opts.display === undefined) {\r\n\t\t\t\t\topts.display = (direction === \"In\" ? \"auto\" : \"none\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tVelocity(this, propertiesMap, opts);\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\treturn Velocity;\r\n\t}((window.jQuery || window.Zepto || window), window, (window ? window.document : undefined));\r\n}));\r\n\r\n/******************\r\n Known Issues\r\n ******************/\r\n\r\n/* The CSS spec mandates that the translateX/Y/Z transforms are %-relative to the element itself -- not its parent.\r\n Velocity, however, doesn't make this distinction. Thus, converting to or from the % unit with these subproperties\r\n will produce an inaccurate conversion value. The same issue exists with the cx/cy attributes of SVG circles and ellipses. */\r\n }","(function() {\n  function vendorModule() {\n    'use strict';\n    // Velocity tries to register on jQuery first, if it's not present, then it registers itself globally\n    // For FastBoot, jQuery and Velocity don't exist so we use a noop\n    var Velocity = self.Velocity || self.jQuery && self.jQuery.Velocity || function(){};\n    return { 'default': Velocity };\n  }\n\n  define('velocity', [], vendorModule);\n})();\n","if (typeof FastBoot === 'undefined') { /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */\n\nwindow.matchMedia || (window.matchMedia = function() {\n    \"use strict\";\n\n    // For browsers that support matchMedium api such as IE 9 and webkit\n    var styleMedia = (window.styleMedia || window.media);\n\n    // For those that don't support matchMedium\n    if (!styleMedia) {\n        var style       = document.createElement('style'),\n            script      = document.getElementsByTagName('script')[0],\n            info        = null;\n\n        style.type  = 'text/css';\n        style.id    = 'matchmediajs-test';\n\n        script.parentNode.insertBefore(style, script);\n\n        // 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers\n        info = ('getComputedStyle' in window) && window.getComputedStyle(style, null) || style.currentStyle;\n\n        styleMedia = {\n            matchMedium: function(media) {\n                var text = '@media ' + media + '{ #matchmediajs-test { width: 1px; } }';\n\n                // 'style.styleSheet' is used by IE <= 8 and 'style.textContent' for all other browsers\n                if (style.styleSheet) {\n                    style.styleSheet.cssText = text;\n                } else {\n                    style.textContent = text;\n                }\n\n                // Test if media query is true or false\n                return info.width === '1px';\n            }\n        };\n    }\n\n    return function(media) {\n        return {\n            matches: styleMedia.matchMedium(media || 'all'),\n            media: media || 'all'\n        };\n    };\n}());\n }","/* Copyright Google Inc.\n * Licensed under the Apache Licence Version 2.0\n * Autogenerated at Mon Mar 13 14:39:19 CET 2017\n * \\@overrides window\n * \\@provides cssSchema, CSS_PROP_BIT_QUANTITY, CSS_PROP_BIT_HASH_VALUE, CSS_PROP_BIT_NEGATIVE_QUANTITY, CSS_PROP_BIT_QSTRING, CSS_PROP_BIT_URL, CSS_PROP_BIT_UNRESERVED_WORD, CSS_PROP_BIT_UNICODE_RANGE, CSS_PROP_BIT_GLOBAL_NAME, CSS_PROP_BIT_PROPERTY_NAME */\n/**\n * @const\n * @type {number}\n */\nvar CSS_PROP_BIT_QUANTITY = 1;\n/**\n * @const\n * @type {number}\n */\nvar CSS_PROP_BIT_HASH_VALUE = 2;\n/**\n * @const\n * @type {number}\n */\nvar CSS_PROP_BIT_NEGATIVE_QUANTITY = 4;\n/**\n * @const\n * @type {number}\n */\nvar CSS_PROP_BIT_QSTRING = 8;\n/**\n * @const\n * @type {number}\n */\nvar CSS_PROP_BIT_URL = 16;\n/**\n * @const\n * @type {number}\n */\nvar CSS_PROP_BIT_UNRESERVED_WORD = 64;\n/**\n * @const\n * @type {number}\n */\nvar CSS_PROP_BIT_UNICODE_RANGE = 128;\n/**\n * @const\n * @type {number}\n */\nvar CSS_PROP_BIT_GLOBAL_NAME = 512;\n/**\n * @const\n * @type {number}\n */\nvar CSS_PROP_BIT_PROPERTY_NAME = 1024;\nvar cssSchema = (function () {\n    var L = [ [ 'aliceblue', 'antiquewhite', 'aqua', 'aquamarine', 'azure',\n        'beige', 'bisque', 'black', 'blanchedalmond', 'blue', 'blueviolet',\n        'brown', 'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral',\n        'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue',\n        'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkkhaki',\n        'darkmagenta', 'darkolivegreen', 'darkorange', 'darkorchid', 'darkred',\n        'darksalmon', 'darkseagreen', 'darkslateblue', 'darkslategray',\n        'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray',\n        'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'fuchsia',\n        'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'gray', 'green',\n        'greenyellow', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory',\n        'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon',\n        'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow',\n        'lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen',\n        'lightskyblue', 'lightslategray', 'lightsteelblue', 'lightyellow',\n        'lime', 'limegreen', 'linen', 'magenta', 'maroon', 'mediumaquamarine',\n        'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen',\n        'mediumslateblue', 'mediumspringgreen', 'mediumturquoise',\n        'mediumvioletred', 'midnightblue', 'mintcream', 'mistyrose',\n        'moccasin', 'navajowhite', 'navy', 'oldlace', 'olive', 'olivedrab',\n        'orange', 'orangered', 'orchid', 'palegoldenrod', 'palegreen',\n        'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru',\n        'pink', 'plum', 'powderblue', 'purple', 'red', 'rosybrown',\n        'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen',\n        'seashell', 'sienna', 'silver', 'skyblue', 'slateblue', 'slategray',\n        'snow', 'springgreen', 'steelblue', 'tan', 'teal', 'thistle', 'tomato',\n        'transparent', 'turquoise', 'violet', 'wheat', 'white', 'whitesmoke',\n        'yellow', 'yellowgreen' ], [ 'all-scroll', 'col-resize', 'crosshair',\n        'default', 'e-resize', 'hand', 'help', 'move', 'n-resize', 'ne-resize',\n        'no-drop', 'not-allowed', 'nw-resize', 'pointer', 'progress',\n        'row-resize', 's-resize', 'se-resize', 'sw-resize', 'text',\n        'vertical-text', 'w-resize', 'wait' ], [ 'armenian', 'decimal',\n        'decimal-leading-zero', 'disc', 'georgian', 'lower-alpha',\n        'lower-greek', 'lower-latin', 'lower-roman', 'square', 'upper-alpha',\n        'upper-latin', 'upper-roman' ], [ '100', '200', '300', '400', '500',\n        '600', '700', '800', '900', 'bold', 'bolder', 'lighter' ], [\n        'block-level', 'inline-level', 'table-caption', 'table-cell',\n        'table-column', 'table-column-group', 'table-footer-group',\n        'table-header-group', 'table-row', 'table-row-group' ], [ 'condensed',\n        'expanded', 'extra-condensed', 'extra-expanded', 'narrower',\n        'semi-condensed', 'semi-expanded', 'ultra-condensed', 'ultra-expanded',\n        'wider' ], [ 'inherit', 'inline', 'inline-block', 'inline-box',\n        'inline-flex', 'inline-grid', 'inline-list-item', 'inline-stack',\n        'inline-table', 'run-in' ], [ 'behind', 'center-left', 'center-right',\n        'far-left', 'far-right', 'left-side', 'leftwards', 'right-side',\n        'rightwards' ], [ 'large', 'larger', 'small', 'smaller', 'x-large',\n        'x-small', 'xx-large', 'xx-small' ], [ 'dashed', 'dotted', 'double',\n        'groove', 'outset', 'ridge', 'solid' ], [ 'ease', 'ease-in',\n        'ease-in-out', 'ease-out', 'linear', 'step-end', 'step-start' ], [\n        'at', 'closest-corner', 'closest-side', 'ellipse', 'farthest-corner',\n        'farthest-side' ], [ 'baseline', 'middle', 'sub', 'super',\n        'text-bottom', 'text-top' ], [ 'caption', 'icon', 'menu',\n        'message-box', 'small-caption', 'status-bar' ], [ 'fast', 'faster',\n        'slow', 'slower', 'x-fast', 'x-slow' ], [ 'above', 'below', 'higher',\n        'level', 'lower' ], [ 'cursive', 'fantasy', 'monospace', 'sans-serif',\n        'serif' ], [ 'loud', 'silent', 'soft', 'x-loud', 'x-soft' ], [\n        'no-repeat', 'repeat-x', 'repeat-y', 'round', 'space' ], [ 'blink',\n        'line-through', 'overline', 'underline' ], [ 'block', 'flex', 'grid',\n        'table' ], [ 'high', 'low', 'x-high', 'x-low' ], [ 'nowrap', 'pre',\n        'pre-line', 'pre-wrap' ], [ 'absolute', 'relative', 'static' ], [\n        'alternate', 'alternate-reverse', 'reverse' ], [ 'border-box',\n        'content-box', 'padding-box' ], [ 'capitalize', 'lowercase',\n        'uppercase' ], [ 'child', 'female', 'male' ], [ '=', 'opacity' ], [\n        'backwards', 'forwards' ], [ 'bidi-override', 'embed' ], [ 'bottom',\n        'top' ], [ 'break-all', 'keep-all' ], [ 'clip', 'ellipsis' ], [\n        'contain', 'cover' ], [ 'continuous', 'digits' ], [ 'end', 'start' ], [\n        'flat', 'preserve-3d' ], [ 'hide', 'show' ], [ 'horizontal', 'vertical'\n      ], [ 'inside', 'outside' ], [ 'italic', 'oblique' ], [ 'left', 'right' ],\n      [ 'ltr', 'rtl' ], [ 'no-content', 'no-display' ], [ 'paused', 'running' ]\n      , [ 'suppress', 'unrestricted' ], [ 'thick', 'thin' ], [ ',' ], [ '/' ],\n      [ 'all' ], [ 'always' ], [ 'auto' ], [ 'avoid' ], [ 'both' ], [\n        'break-word' ], [ 'center' ], [ 'circle' ], [ 'code' ], [ 'collapse' ],\n      [ 'contents' ], [ 'fixed' ], [ 'hidden' ], [ 'infinite' ], [ 'inset' ], [\n        'invert' ], [ 'justify' ], [ 'list-item' ], [ 'local' ], [ 'medium' ],\n      [ 'mix' ], [ 'none' ], [ 'normal' ], [ 'once' ], [ 'repeat' ], [ 'scroll'\n      ], [ 'separate' ], [ 'small-caps' ], [ 'spell-out' ], [ 'to' ], [\n        'visible' ] ];\n    var schema = {\n      'animation': {\n        'cssPropBits': 517,\n        'cssLitGroup': [ L[ 10 ], L[ 24 ], L[ 29 ], L[ 45 ], L[ 48 ], L[ 54 ],\n          L[ 63 ], L[ 71 ], L[ 72 ] ],\n        'cssFns': [ 'cubic-bezier()', 'steps()' ]\n      },\n      'animation-delay': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 48 ] ],\n        'cssFns': [ ]\n      },\n      'animation-direction': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 24 ], L[ 48 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'animation-duration': 'animation-delay',\n      'animation-fill-mode': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 29 ], L[ 48 ], L[ 54 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'animation-iteration-count': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 48 ], L[ 63 ] ],\n        'cssFns': [ ]\n      },\n      'animation-name': {\n        'cssPropBits': 512,\n        'cssLitGroup': [ L[ 48 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'animation-play-state': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 45 ], L[ 48 ] ],\n        'cssFns': [ ]\n      },\n      'animation-timing-function': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 10 ], L[ 48 ] ],\n        'cssFns': [ 'cubic-bezier()', 'steps()' ]\n      },\n      'appearance': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'azimuth': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 7 ], L[ 42 ], L[ 56 ] ],\n        'cssFns': [ ]\n      },\n      'backface-visibility': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 59 ], L[ 62 ], L[ 80 ] ],\n        'cssFns': [ ]\n      },\n      'background': {\n        'cssPropBits': 23,\n        'cssLitGroup': [ L[ 0 ], L[ 18 ], L[ 25 ], L[ 31 ], L[ 34 ], L[ 42 ],\n          L[ 48 ], L[ 49 ], L[ 52 ], L[ 56 ], L[ 61 ], L[ 68 ], L[ 71 ], L[ 74\n          ], L[ 75 ] ],\n        'cssFns': [ 'image()', 'linear-gradient()', 'radial-gradient()',\n          'repeating-linear-gradient()', 'repeating-radial-gradient()',\n          'rgb()', 'rgba()' ]\n      },\n      'background-attachment': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 48 ], L[ 61 ], L[ 68 ], L[ 75 ] ],\n        'cssFns': [ ]\n      },\n      'background-color': {\n        'cssPropBits': 2,\n        'cssLitGroup': [ L[ 0 ] ],\n        'cssFns': [ 'rgb()', 'rgba()' ]\n      },\n      'background-image': {\n        'cssPropBits': 16,\n        'cssLitGroup': [ L[ 48 ], L[ 71 ] ],\n        'cssFns': [ 'image()', 'linear-gradient()', 'radial-gradient()',\n          'repeating-linear-gradient()', 'repeating-radial-gradient()' ]\n      },\n      'background-position': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 31 ], L[ 42 ], L[ 48 ], L[ 56 ] ],\n        'cssFns': [ ]\n      },\n      'background-repeat': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 18 ], L[ 48 ], L[ 74 ] ],\n        'cssFns': [ ]\n      },\n      'background-size': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 34 ], L[ 48 ], L[ 52 ] ],\n        'cssFns': [ ]\n      },\n      'border': {\n        'cssPropBits': 7,\n        'cssLitGroup': [ L[ 0 ], L[ 9 ], L[ 47 ], L[ 62 ], L[ 64 ], L[ 69 ], L[\n            71 ] ],\n        'cssFns': [ 'rgb()', 'rgba()' ]\n      },\n      'border-bottom': 'border',\n      'border-bottom-color': 'background-color',\n      'border-bottom-left-radius': {\n        'cssPropBits': 5,\n        'cssFns': [ ]\n      },\n      'border-bottom-right-radius': 'border-bottom-left-radius',\n      'border-bottom-style': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 9 ], L[ 62 ], L[ 64 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'border-bottom-width': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 47 ], L[ 69 ] ],\n        'cssFns': [ ]\n      },\n      'border-collapse': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 59 ], L[ 76 ] ],\n        'cssFns': [ ]\n      },\n      'border-color': 'background-color',\n      'border-left': 'border',\n      'border-left-color': 'background-color',\n      'border-left-style': 'border-bottom-style',\n      'border-left-width': 'border-bottom-width',\n      'border-radius': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 49 ] ],\n        'cssFns': [ ]\n      },\n      'border-right': 'border',\n      'border-right-color': 'background-color',\n      'border-right-style': 'border-bottom-style',\n      'border-right-width': 'border-bottom-width',\n      'border-spacing': 'border-bottom-left-radius',\n      'border-style': 'border-bottom-style',\n      'border-top': 'border',\n      'border-top-color': 'background-color',\n      'border-top-left-radius': 'border-bottom-left-radius',\n      'border-top-right-radius': 'border-bottom-left-radius',\n      'border-top-style': 'border-bottom-style',\n      'border-top-width': 'border-bottom-width',\n      'border-width': 'border-bottom-width',\n      'bottom': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 52 ] ],\n        'cssFns': [ ]\n      },\n      'box': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 60 ], L[ 71 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'box-shadow': {\n        'cssPropBits': 7,\n        'cssLitGroup': [ L[ 0 ], L[ 48 ], L[ 64 ], L[ 71 ] ],\n        'cssFns': [ 'rgb()', 'rgba()' ]\n      },\n      'box-sizing': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 25 ] ],\n        'cssFns': [ ]\n      },\n      'caption-side': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 31 ] ],\n        'cssFns': [ ]\n      },\n      'clear': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 42 ], L[ 54 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'clip': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 52 ] ],\n        'cssFns': [ 'rect()' ]\n      },\n      'color': 'background-color',\n      'content': {\n        'cssPropBits': 8,\n        'cssLitGroup': [ L[ 71 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'cue': {\n        'cssPropBits': 16,\n        'cssLitGroup': [ L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'cue-after': 'cue',\n      'cue-before': 'cue',\n      'cursor': {\n        'cssPropBits': 16,\n        'cssLitGroup': [ L[ 1 ], L[ 48 ], L[ 52 ] ],\n        'cssFns': [ ]\n      },\n      'direction': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 43 ] ],\n        'cssFns': [ ]\n      },\n      'display': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 4 ], L[ 6 ], L[ 20 ], L[ 52 ], L[ 67 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'display-extras': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 67 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'display-inside': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 20 ], L[ 52 ] ],\n        'cssFns': [ ]\n      },\n      'display-outside': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 4 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'elevation': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 15 ] ],\n        'cssFns': [ ]\n      },\n      'empty-cells': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 38 ] ],\n        'cssFns': [ ]\n      },\n      'filter': {\n        'cssPropBits': 0,\n        'cssFns': [ 'alpha()' ]\n      },\n      'float': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 42 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'font': {\n        'cssPropBits': 73,\n        'cssLitGroup': [ L[ 3 ], L[ 8 ], L[ 13 ], L[ 16 ], L[ 41 ], L[ 48 ], L[\n            49 ], L[ 69 ], L[ 72 ], L[ 77 ] ],\n        'cssFns': [ ]\n      },\n      'font-family': {\n        'cssPropBits': 72,\n        'cssLitGroup': [ L[ 16 ], L[ 48 ] ],\n        'cssFns': [ ]\n      },\n      'font-size': {\n        'cssPropBits': 1,\n        'cssLitGroup': [ L[ 8 ], L[ 69 ] ],\n        'cssFns': [ ]\n      },\n      'font-stretch': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 5 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'font-style': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 41 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'font-variant': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 72 ], L[ 77 ] ],\n        'cssFns': [ ]\n      },\n      'font-weight': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 3 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'height': 'bottom',\n      'left': 'bottom',\n      'letter-spacing': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'line-height': {\n        'cssPropBits': 1,\n        'cssLitGroup': [ L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'list-style': {\n        'cssPropBits': 16,\n        'cssLitGroup': [ L[ 2 ], L[ 40 ], L[ 57 ], L[ 71 ] ],\n        'cssFns': [ 'image()', 'linear-gradient()', 'radial-gradient()',\n          'repeating-linear-gradient()', 'repeating-radial-gradient()' ]\n      },\n      'list-style-image': {\n        'cssPropBits': 16,\n        'cssLitGroup': [ L[ 71 ] ],\n        'cssFns': [ 'image()', 'linear-gradient()', 'radial-gradient()',\n          'repeating-linear-gradient()', 'repeating-radial-gradient()' ]\n      },\n      'list-style-position': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 40 ] ],\n        'cssFns': [ ]\n      },\n      'list-style-type': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 2 ], L[ 57 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'margin': 'bottom',\n      'margin-bottom': 'bottom',\n      'margin-left': 'bottom',\n      'margin-right': 'bottom',\n      'margin-top': 'bottom',\n      'max-height': {\n        'cssPropBits': 1,\n        'cssLitGroup': [ L[ 52 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'max-width': 'max-height',\n      'min-height': {\n        'cssPropBits': 1,\n        'cssLitGroup': [ L[ 52 ] ],\n        'cssFns': [ ]\n      },\n      'min-width': 'min-height',\n      'opacity': {\n        'cssPropBits': 1,\n        'cssFns': [ ]\n      },\n      'outline': {\n        'cssPropBits': 7,\n        'cssLitGroup': [ L[ 0 ], L[ 9 ], L[ 47 ], L[ 62 ], L[ 64 ], L[ 65 ], L[\n            69 ], L[ 71 ] ],\n        'cssFns': [ 'rgb()', 'rgba()' ]\n      },\n      'outline-color': {\n        'cssPropBits': 2,\n        'cssLitGroup': [ L[ 0 ], L[ 65 ] ],\n        'cssFns': [ 'rgb()', 'rgba()' ]\n      },\n      'outline-style': 'border-bottom-style',\n      'outline-width': 'border-bottom-width',\n      'overflow': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 52 ], L[ 62 ], L[ 75 ], L[ 80 ] ],\n        'cssFns': [ ]\n      },\n      'overflow-wrap': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 55 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'overflow-x': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 44 ], L[ 52 ], L[ 62 ], L[ 75 ], L[ 80 ] ],\n        'cssFns': [ ]\n      },\n      'overflow-y': 'overflow-x',\n      'padding': 'opacity',\n      'padding-bottom': 'opacity',\n      'padding-left': 'opacity',\n      'padding-right': 'opacity',\n      'padding-top': 'opacity',\n      'page-break-after': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 42 ], L[ 51 ], L[ 52 ], L[ 53 ] ],\n        'cssFns': [ ]\n      },\n      'page-break-before': 'page-break-after',\n      'page-break-inside': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 52 ], L[ 53 ] ],\n        'cssFns': [ ]\n      },\n      'pause': 'border-bottom-left-radius',\n      'pause-after': 'border-bottom-left-radius',\n      'pause-before': 'border-bottom-left-radius',\n      'perspective': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'perspective-origin': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 31 ], L[ 42 ], L[ 56 ] ],\n        'cssFns': [ ]\n      },\n      'pitch': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 21 ], L[ 69 ] ],\n        'cssFns': [ ]\n      },\n      'pitch-range': 'border-bottom-left-radius',\n      'play-during': {\n        'cssPropBits': 16,\n        'cssLitGroup': [ L[ 52 ], L[ 70 ], L[ 71 ], L[ 74 ] ],\n        'cssFns': [ ]\n      },\n      'position': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 23 ] ],\n        'cssFns': [ ]\n      },\n      'quotes': {\n        'cssPropBits': 8,\n        'cssLitGroup': [ L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'resize': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 39 ], L[ 54 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'richness': 'border-bottom-left-radius',\n      'right': 'bottom',\n      'speak': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 71 ], L[ 72 ], L[ 78 ] ],\n        'cssFns': [ ]\n      },\n      'speak-header': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 51 ], L[ 73 ] ],\n        'cssFns': [ ]\n      },\n      'speak-numeral': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 35 ] ],\n        'cssFns': [ ]\n      },\n      'speak-punctuation': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 58 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'speech-rate': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 14 ], L[ 69 ] ],\n        'cssFns': [ ]\n      },\n      'stress': 'border-bottom-left-radius',\n      'table-layout': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 52 ], L[ 61 ] ],\n        'cssFns': [ ]\n      },\n      'text-align': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 42 ], L[ 56 ], L[ 66 ] ],\n        'cssFns': [ ]\n      },\n      'text-decoration': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 19 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'text-indent': 'border-bottom-left-radius',\n      'text-overflow': {\n        'cssPropBits': 8,\n        'cssLitGroup': [ L[ 33 ] ],\n        'cssFns': [ ]\n      },\n      'text-shadow': 'box-shadow',\n      'text-transform': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 26 ], L[ 71 ] ],\n        'cssFns': [ ]\n      },\n      'text-wrap': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 46 ], L[ 71 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'top': 'bottom',\n      'transform': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 71 ] ],\n        'cssFns': [ 'matrix()', 'perspective()', 'rotate()', 'rotate3d()',\n          'rotatex()', 'rotatey()', 'rotatez()', 'scale()', 'scale3d()',\n          'scalex()', 'scaley()', 'scalez()', 'skew()', 'skewx()', 'skewy()',\n          'translate()', 'translate3d()', 'translatex()', 'translatey()',\n          'translatez()' ]\n      },\n      'transform-origin': 'perspective-origin',\n      'transform-style': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 37 ] ],\n        'cssFns': [ ]\n      },\n      'transition': {\n        'cssPropBits': 1029,\n        'cssLitGroup': [ L[ 10 ], L[ 48 ], L[ 50 ], L[ 71 ] ],\n        'cssFns': [ 'cubic-bezier()', 'steps()' ]\n      },\n      'transition-delay': 'animation-delay',\n      'transition-duration': 'animation-delay',\n      'transition-property': {\n        'cssPropBits': 1024,\n        'cssLitGroup': [ L[ 48 ], L[ 50 ] ],\n        'cssFns': [ ]\n      },\n      'transition-timing-function': 'animation-timing-function',\n      'unicode-bidi': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 30 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'vertical-align': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 12 ], L[ 31 ] ],\n        'cssFns': [ ]\n      },\n      'visibility': 'backface-visibility',\n      'voice-family': {\n        'cssPropBits': 8,\n        'cssLitGroup': [ L[ 27 ], L[ 48 ] ],\n        'cssFns': [ ]\n      },\n      'volume': {\n        'cssPropBits': 1,\n        'cssLitGroup': [ L[ 17 ], L[ 69 ] ],\n        'cssFns': [ ]\n      },\n      'white-space': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 22 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'width': 'min-height',\n      'word-break': {\n        'cssPropBits': 0,\n        'cssLitGroup': [ L[ 32 ], L[ 72 ] ],\n        'cssFns': [ ]\n      },\n      'word-spacing': 'letter-spacing',\n      'word-wrap': 'overflow-wrap',\n      'z-index': 'bottom',\n      'zoom': 'line-height',\n      'cubic-bezier()': 'animation-delay',\n      'steps()': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 36 ], L[ 48 ] ],\n        'cssFns': [ ]\n      },\n      'image()': {\n        'cssPropBits': 18,\n        'cssLitGroup': [ L[ 0 ], L[ 48 ] ],\n        'cssFns': [ 'rgb()', 'rgba()' ]\n      },\n      'linear-gradient()': {\n        'cssPropBits': 7,\n        'cssLitGroup': [ L[ 0 ], L[ 31 ], L[ 42 ], L[ 48 ], L[ 79 ] ],\n        'cssFns': [ 'rgb()', 'rgba()' ]\n      },\n      'radial-gradient()': {\n        'cssPropBits': 7,\n        'cssLitGroup': [ L[ 0 ], L[ 11 ], L[ 31 ], L[ 42 ], L[ 48 ], L[ 56 ],\n          L[ 57 ] ],\n        'cssFns': [ 'rgb()', 'rgba()' ]\n      },\n      'repeating-linear-gradient()': 'linear-gradient()',\n      'repeating-radial-gradient()': 'radial-gradient()',\n      'rgb()': {\n        'cssPropBits': 1,\n        'cssLitGroup': [ L[ 48 ] ],\n        'cssFns': [ ]\n      },\n      'rgba()': 'rgb()',\n      'rect()': {\n        'cssPropBits': 5,\n        'cssLitGroup': [ L[ 48 ], L[ 52 ] ],\n        'cssFns': [ ]\n      },\n      'alpha()': {\n        'cssPropBits': 1,\n        'cssLitGroup': [ L[ 28 ] ],\n        'cssFns': [ ]\n      },\n      'matrix()': 'animation-delay',\n      'perspective()': 'border-bottom-left-radius',\n      'rotate()': 'border-bottom-left-radius',\n      'rotate3d()': 'animation-delay',\n      'rotatex()': 'border-bottom-left-radius',\n      'rotatey()': 'border-bottom-left-radius',\n      'rotatez()': 'border-bottom-left-radius',\n      'scale()': 'animation-delay',\n      'scale3d()': 'animation-delay',\n      'scalex()': 'border-bottom-left-radius',\n      'scaley()': 'border-bottom-left-radius',\n      'scalez()': 'border-bottom-left-radius',\n      'skew()': 'animation-delay',\n      'skewx()': 'border-bottom-left-radius',\n      'skewy()': 'border-bottom-left-radius',\n      'translate()': 'animation-delay',\n      'translate3d()': 'animation-delay',\n      'translatex()': 'border-bottom-left-radius',\n      'translatey()': 'border-bottom-left-radius',\n      'translatez()': 'border-bottom-left-radius'\n    };\n    if (true) {\n      for (var key in schema) {\n        if ('string' === typeof schema[ key ] &&\n          Object.hasOwnProperty.call(schema, key)) {\n          schema[ key ] = schema[ schema[ key ] ];\n        }\n      }\n    }\n    return schema;\n  })();\nif (typeof window !== 'undefined') {\n  window['cssSchema'] = cssSchema;\n}\n;\n// Copyright (C) 2011 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//      http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/**\n * A lexical scannar for CSS3 as defined at http://www.w3.org/TR/css3-syntax .\n *\n * @author Mike Samuel <mikesamuel@gmail.com>\n * \\@provides lexCss, decodeCss\n * \\@overrides window\n */\n\nvar lexCss;\nvar decodeCss;\n\n(function () {\n\n  /**\n   * Decodes an escape sequence as specified in CSS3 section 4.1.\n   * http://www.w3.org/TR/css3-syntax/#characters\n   * @private\n   */\n  function decodeCssEscape(s) {\n    var i = parseInt(s.substring(1), 16);\n    // If parseInt didn't find a hex diigt, it returns NaN so return the\n    // escaped character.\n    // Otherwise, parseInt will stop at the first non-hex digit so there's no\n    // need to worry about trailing whitespace.\n    if (i > 0xffff) {\n      // A supplemental codepoint.\n      return i -= 0x10000,\n        String.fromCharCode(\n            0xd800 + (i >> 10),\n            0xdc00 + (i & 0x3FF));\n    } else if (i == i) {\n      return String.fromCharCode(i);\n    } else if (s[1] < ' ') {\n      // \"a backslash followed by a newline is ignored\".\n      return '';\n    } else {\n      return s[1];\n    }\n  }\n\n  /**\n   * Returns an equivalent CSS string literal given plain text: foo -> \"foo\".\n   * @private\n   */\n  function escapeCssString(s, replacer) {\n    return '\"' + s.replace(/[\\u0000-\\u001f\\\\\\\"<>]/g, replacer) + '\"';\n  }\n\n  /**\n   * Maps chars to CSS escaped equivalents: \"\\n\" -> \"\\\\a \".\n   * @private\n   */\n  function escapeCssStrChar(ch) {\n    return cssStrChars[ch]\n        || (cssStrChars[ch] = '\\\\' + ch.charCodeAt(0).toString(16) + ' ');\n  }\n\n  /**\n   * Maps chars to URI escaped equivalents: \"\\n\" -> \"%0a\".\n   * @private\n   */\n  function escapeCssUrlChar(ch) {\n    return cssUrlChars[ch]\n        || (cssUrlChars[ch] = (ch < '\\x10' ? '%0' : '%')\n            + ch.charCodeAt(0).toString(16));\n  }\n\n  /**\n   * Mapping of CSS special characters to escaped equivalents.\n   * @private\n   */\n  var cssStrChars = {\n    '\\\\': '\\\\\\\\'\n  };\n\n  /**\n   * Mapping of CSS special characters to URL-escaped equivalents.\n   * @private\n   */\n  var cssUrlChars = {\n    '\\\\': '%5c'\n  };\n\n  // The comments below are copied from the CSS3 module syntax at\n  // http://www.w3.org/TR/css3-syntax .\n  // These string constants minify out when this is run-through closure\n  // compiler.\n  // Rules that have been adapted have comments prefixed with \"Diff:\", and\n  // where rules have been combined to avoid back-tracking in the regex engine\n  // or to work around limitations, there is a comment prefixed with\n  // \"NewRule:\".\n\n  // In the below, we assume CRLF and CR have been normalize to CR.\n\n  // wc  ::=  #x9 | #xA | #xC | #xD | #x20\n  var WC = '[\\\\t\\\\n\\\\f ]';\n  // w  ::=  wc*\n  var W = WC + '*';\n  // nl  ::=  #xA | #xD #xA | #xD | #xC\n  var NL = '[\\\\n\\\\f]';\n  // nonascii  ::=  [#x80-#xD7FF#xE000-#xFFFD#x10000-#x10FFFF]\n  // NewRule: Supplemental codepoints are represented as surrogate pairs in JS.\n  var SURROGATE_PAIR = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]';\n  var NONASCII = '[\\\\u0080-\\\\ud7ff\\\\ue000-\\\\ufffd]|' + SURROGATE_PAIR;\n  // unicode  ::=  '\\' [0-9a-fA-F]{1,6} wc?\n  // NewRule: No point in having ESCAPE do (\\\\x|\\\\y)\n  var UNICODE_TAIL = '[0-9a-fA-F]{1,6}' + WC + '?';\n  var UNICODE = '\\\\\\\\' + UNICODE_TAIL;\n  // escape  ::=  unicode\n  //           | '\\' [#x20-#x7E#x80-#xD7FF#xE000-#xFFFD#x10000-#x10FFFF]\n  // NewRule: Below we use escape tail to efficiently match an escape or a\n  // line continuation so we can decode string content.\n  var ESCAPE_TAIL = '(?:' + UNICODE_TAIL\n      + '|[\\\\u0020-\\\\u007e\\\\u0080-\\\\ud7ff\\\\ue000\\\\ufffd]|'\n      + SURROGATE_PAIR + ')';\n  var ESCAPE = '\\\\\\\\' + ESCAPE_TAIL;\n  // urlchar  ::=  [#x9#x21#x23-#x26#x28-#x7E] | nonascii | escape\n  var URLCHAR = '(?:[\\\\t\\\\x21\\\\x23-\\\\x26\\\\x28-\\\\x5b\\\\x5d-\\\\x7e]|'\n      + NONASCII + '|' + ESCAPE + ')';\n  // stringchar  ::= urlchar | #x20 | '\\' nl\n  // We ignore mismatched surrogate pairs inside strings, so stringchar\n  // simplifies to a non-(quote|newline|backslash) or backslash any.\n  // Since we normalize CRLF to a single code-unit, there is no special\n  // handling needed for '\\\\' + CRLF.\n  var STRINGCHAR = '[^\\'\"\\\\n\\\\f\\\\\\\\]|\\\\\\\\[\\\\s\\\\S]';\n  // string  ::=  '\"' (stringchar | \"'\")* '\"' | \"'\" (stringchar | '\"')* \"'\"\n  var STRING = '\"(?:\\'|' + STRINGCHAR + ')*\"'\n      + '|\\'(?:\\\"|' + STRINGCHAR + ')*\\'';\n  // num  ::=  [0-9]+ | [0-9]* '.' [0-9]+\n  // Diff: We attach signs to num tokens.\n  var NUM = '[-+]?(?:[0-9]+(?:[.][0-9]+)?|[.][0-9]+)';\n  // nmstart  ::=  [a-zA-Z] | '_' | nonascii | escape\n  var NMSTART = '(?:[a-zA-Z_]|' + NONASCII + '|' + ESCAPE + ')';\n  // nmchar  ::=  [a-zA-Z0-9] | '-' | '_' | nonascii | escape\n  var NMCHAR = '(?:[a-zA-Z0-9_-]|' + NONASCII + '|' + ESCAPE + ')';\n  // name  ::=  nmchar+\n  var NAME = NMCHAR + '+';\n  // ident  ::=  '-'? nmstart nmchar*\n  var IDENT = '-?' + NMSTART + NMCHAR + '*';\n\n  // ATKEYWORD  ::=  '@' ident\n  var ATKEYWORD = '@' + IDENT;\n  // HASH  ::=  '#' name\n  var HASH = '#' + NAME;\n  // NUMBER  ::=  num\n  var NUMBER = NUM;\n\n  // NewRule: union of IDENT, ATKEYWORD, HASH, but excluding #[0-9].\n  var WORD_TERM = '(?:@?-?' + NMSTART + '|#)' + NMCHAR + '*';\n\n  // PERCENTAGE  ::=  num '%'\n  var PERCENTAGE = NUM + '%';\n  // DIMENSION  ::=  num ident\n  var DIMENSION = NUM + IDENT;\n  var NUMERIC_VALUE = NUM + '(?:%|' + IDENT + ')?';\n  // URI  ::=  \"url(\" w (string | urlchar* ) w \")\"\n  var URI = 'url[(]' + W + '(?:' + STRING + '|' + URLCHAR + '*)' + W + '[)]';\n  // UNICODE-RANGE  ::=  \"U+\" [0-9A-F?]{1,6} ('-' [0-9A-F]{1,6})?\n  var UNICODE_RANGE = 'U[+][0-9A-F?]{1,6}(?:-[0-9A-F]{1,6})?';\n  // CDO  ::=  \"<\\!--\"\n  var CDO = '<\\!--';\n  // CDC  ::=  \"-->\"\n  var CDC = '-->';\n  // S  ::=  wc+\n  var S = WC + '+';\n  // COMMENT  ::=  \"/*\" [^*]* '*'+ ([^/] [^*]* '*'+)* \"/\"\n  // Diff: recognizes // comments.\n  var COMMENT = '/(?:[*][^*]*[*]+(?:[^/][^*]*[*]+)*/|/[^\\\\n\\\\f]*)';\n  // FUNCTION  ::=  ident '('\n  // Diff: We exclude url explicitly.\n  // TODO: should we be tolerant of \"fn (\"?\n  var FUNCTION = '(?!url[(])' + IDENT + '[(]';\n  // INCLUDES  ::=  \"~=\"\n  var INCLUDES = '~=';\n  // DASHMATCH  ::=  \"|=\"\n  var DASHMATCH = '[|]=';\n  // PREFIXMATCH  ::=  \"^=\"\n  var PREFIXMATCH = '[^]=';\n  // SUFFIXMATCH  ::=  \"$=\"\n  var SUFFIXMATCH = '[$]=';\n  // SUBSTRINGMATCH  ::=  \"*=\"\n  var SUBSTRINGMATCH = '[*]=';\n  // NewRule: one rule for all the comparison operators.\n  var CMP_OPS = '[~|^$*]=';\n  // CHAR  ::=  any character not matched by the above rules, except for \" or '\n  // Diff: We exclude / and \\ since they are handled above to prevent\n  // /* without a following */ from combining when comments are concatenated.\n  var CHAR = '[^\"\\'\\\\\\\\/]|/(?![/*])';\n  // BOM  ::=  #xFEFF\n  var BOM = '\\\\uFEFF';\n\n  var CSS_TOKEN = new RegExp([\n      BOM, UNICODE_RANGE, URI, FUNCTION, WORD_TERM, STRING, NUMERIC_VALUE,\n      CDO, CDC, S, COMMENT, CMP_OPS, CHAR].join(\"|\"), 'gi');\n\n  var CSS_DECODER = new RegExp('\\\\\\\\(?:' + ESCAPE_TAIL + '|' + NL + ')', 'g');\n  var URL_RE = new RegExp('^url\\\\(' + W + '[\"\\']?|[\"\\']?' + W + '\\\\)$', 'gi');\n  /**\n   * Decodes CSS escape sequences in a CSS string body.\n   */\n   decodeCss = function (css) {\n     return css.replace(CSS_DECODER, decodeCssEscape);\n   };\n\n  /**\n   * Given CSS Text, returns an array of normalized tokens.\n   * @param {string} cssText\n   * @return {Array.<string>} tokens where all ignorable token sequences have\n   *    been reduced to a single {@code \" \"} and all strings and\n   *    {@code url(...)} tokens have been normalized to use double quotes as\n   *    delimiters and to not otherwise contain double quotes.\n   */\n  lexCss = function (cssText) {\n    // Stringify input. Additionally, insert and remove a non-latin1 character\n    // to force Firefox 33 to switch to a wide string representation, avoiding\n    // a performance bug. This workaround should become unnecessary after\n    // Firefox 34. https://bugzilla.mozilla.org/show_bug.cgi?id=1081175\n    // https://code.google.com/p/google-caja/issues/detail?id=1941\n    cssText = ('\\uffff' + cssText).replace(/^\\uffff/, '');\n\n    // // Normalize CRLF & CR to LF.\n    cssText = cssText.replace(/\\r\\n?/g, '\\n');\n\n    // Tokenize.\n    var tokens = cssText.match(CSS_TOKEN) || [];\n    var j = 0;\n    var last = ' ';\n    for (var i = 0, n = tokens.length; i < n; ++i) {\n      // Normalize all escape sequences.  We will have to re-escape some\n      // codepoints in string and url(...) bodies but we already know the\n      // boundaries.\n      // We might mistakenly treat a malformed identifier like \\22\\20\\22 as a\n      // string, but that will not break any valid stylesheets since we requote\n      // and re-escape in string below.\n      var tok = decodeCss(tokens[i]);\n      var len = tok.length;\n      var cc = tok.charCodeAt(0);\n      tok =\n          // All strings should be double quoted, and the body should never\n          // contain a double quote.\n          (cc == '\"'.charCodeAt(0) || cc == '\\''.charCodeAt(0))\n          ? escapeCssString(tok.substring(1, len - 1), escapeCssStrChar)\n          // A breaking ignorable token should is replaced with a single space.\n          : (cc == '/'.charCodeAt(0) && len > 1  // Comment.\n             || tok == '\\\\' || tok == CDC || tok == CDO || tok == '\\ufeff'\n             // Characters in W.\n             || cc <= ' '.charCodeAt(0))\n          ? ' '\n          // Make sure that all url(...)s are double quoted.\n          : /url\\(/i.test(tok)\n          ? 'url(' + escapeCssString(\n            tok.replace(URL_RE, ''),\n            escapeCssUrlChar)\n            + ')'\n          // Escapes in identifier like tokens will have been normalized above.\n          : tok;\n      // Merge adjacent space tokens.\n      if (last != tok || tok != ' ') {\n        tokens[j++] = last = tok;\n      }\n    }\n    tokens.length = j;\n    return tokens;\n  };\n})();\n\n// Exports for closure compiler.\nif (typeof window !== 'undefined') {\n  window['lexCss'] = lexCss;\n  window['decodeCss'] = decodeCss;\n}\n;\n// Copyright (C) 2010 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//      http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/**\n * @fileoverview\n * Implements RFC 3986 for parsing/formatting URIs.\n *\n * @author mikesamuel@gmail.com\n * \\@provides URI\n * \\@overrides window\n */\n\nvar URI = (function () {\n\n/**\n * creates a uri from the string form.  The parser is relaxed, so special\n * characters that aren't escaped but don't cause ambiguities will not cause\n * parse failures.\n *\n * @return {URI|null}\n */\nfunction parse(uriStr) {\n  var m = ('' + uriStr).match(URI_RE_);\n  if (!m) { return null; }\n  return new URI(\n      nullIfAbsent(m[1]),\n      nullIfAbsent(m[2]),\n      nullIfAbsent(m[3]),\n      nullIfAbsent(m[4]),\n      nullIfAbsent(m[5]),\n      nullIfAbsent(m[6]),\n      nullIfAbsent(m[7]));\n}\n\n\n/**\n * creates a uri from the given parts.\n *\n * @param scheme {string} an unencoded scheme such as \"http\" or null\n * @param credentials {string} unencoded user credentials or null\n * @param domain {string} an unencoded domain name or null\n * @param port {number} a port number in [1, 32768].\n *    -1 indicates no port, as does null.\n * @param path {string} an unencoded path\n * @param query {Array.<string>|string|null} a list of unencoded cgi\n *   parameters where even values are keys and odds the corresponding values\n *   or an unencoded query.\n * @param fragment {string} an unencoded fragment without the \"#\" or null.\n * @return {URI}\n */\nfunction create(scheme, credentials, domain, port, path, query, fragment) {\n  var uri = new URI(\n      encodeIfExists2(scheme, URI_DISALLOWED_IN_SCHEME_OR_CREDENTIALS_),\n      encodeIfExists2(\n          credentials, URI_DISALLOWED_IN_SCHEME_OR_CREDENTIALS_),\n      encodeIfExists(domain),\n      port > 0 ? port.toString() : null,\n      encodeIfExists2(path, URI_DISALLOWED_IN_PATH_),\n      null,\n      encodeIfExists(fragment));\n  if (query) {\n    if ('string' === typeof query) {\n      uri.setRawQuery(query.replace(/[^?&=0-9A-Za-z_\\-~.%]/g, encodeOne));\n    } else {\n      uri.setAllParameters(query);\n    }\n  }\n  return uri;\n}\nfunction encodeIfExists(unescapedPart) {\n  if ('string' == typeof unescapedPart) {\n    return encodeURIComponent(unescapedPart);\n  }\n  return null;\n};\n/**\n * if unescapedPart is non null, then escapes any characters in it that aren't\n * valid characters in a url and also escapes any special characters that\n * appear in extra.\n *\n * @param unescapedPart {string}\n * @param extra {RegExp} a character set of characters in [\\01-\\177].\n * @return {string|null} null iff unescapedPart == null.\n */\nfunction encodeIfExists2(unescapedPart, extra) {\n  if ('string' == typeof unescapedPart) {\n    return encodeURI(unescapedPart).replace(extra, encodeOne);\n  }\n  return null;\n};\n/** converts a character in [\\01-\\177] to its url encoded equivalent. */\nfunction encodeOne(ch) {\n  var n = ch.charCodeAt(0);\n  return '%' + '0123456789ABCDEF'.charAt((n >> 4) & 0xf) +\n      '0123456789ABCDEF'.charAt(n & 0xf);\n}\n\n/**\n * {@updoc\n *  $ normPath('foo/./bar')\n *  # 'foo/bar'\n *  $ normPath('./foo')\n *  # 'foo'\n *  $ normPath('foo/.')\n *  # 'foo'\n *  $ normPath('foo//bar')\n *  # 'foo/bar'\n * }\n */\nfunction normPath(path) {\n  return path.replace(/(^|\\/)\\.(?:\\/|$)/g, '$1').replace(/\\/{2,}/g, '/');\n}\n\nvar PARENT_DIRECTORY_HANDLER = new RegExp(\n    ''\n    // A path break\n    + '(/|^)'\n    // followed by a non .. path element\n    // (cannot be . because normPath is used prior to this RegExp)\n    + '(?:[^./][^/]*|\\\\.{2,}(?:[^./][^/]*)|\\\\.{3,}[^/]*)'\n    // followed by .. followed by a path break.\n    + '/\\\\.\\\\.(?:/|$)');\n\nvar PARENT_DIRECTORY_HANDLER_RE = new RegExp(PARENT_DIRECTORY_HANDLER);\n\nvar EXTRA_PARENT_PATHS_RE = /^(?:\\.\\.\\/)*(?:\\.\\.$)?/;\n\n/**\n * Normalizes its input path and collapses all . and .. sequences except for\n * .. sequences that would take it above the root of the current parent\n * directory.\n * {@updoc\n *  $ collapse_dots('foo/../bar')\n *  # 'bar'\n *  $ collapse_dots('foo/./bar')\n *  # 'foo/bar'\n *  $ collapse_dots('foo/../bar/./../../baz')\n *  # 'baz'\n *  $ collapse_dots('../foo')\n *  # '../foo'\n *  $ collapse_dots('../foo').replace(EXTRA_PARENT_PATHS_RE, '')\n *  # 'foo'\n * }\n */\nfunction collapse_dots(path) {\n  if (path === null) { return null; }\n  var p = normPath(path);\n  // Only /../ left to flatten\n  var r = PARENT_DIRECTORY_HANDLER_RE;\n  // We replace with $1 which matches a / before the .. because this\n  // guarantees that:\n  // (1) we have at most 1 / between the adjacent place,\n  // (2) always have a slash if there is a preceding path section, and\n  // (3) we never turn a relative path into an absolute path.\n  for (var q; (q = p.replace(r, '$1')) != p; p = q) {};\n  return p;\n}\n\n/**\n * resolves a relative url string to a base uri.\n * @return {URI}\n */\nfunction resolve(baseUri, relativeUri) {\n  // there are several kinds of relative urls:\n  // 1. //foo - replaces everything from the domain on.  foo is a domain name\n  // 2. foo - replaces the last part of the path, the whole query and fragment\n  // 3. /foo - replaces the the path, the query and fragment\n  // 4. ?foo - replace the query and fragment\n  // 5. #foo - replace the fragment only\n\n  var absoluteUri = baseUri.clone();\n  // we satisfy these conditions by looking for the first part of relativeUri\n  // that is not blank and applying defaults to the rest\n\n  var overridden = relativeUri.hasScheme();\n\n  if (overridden) {\n    absoluteUri.setRawScheme(relativeUri.getRawScheme());\n  } else {\n    overridden = relativeUri.hasCredentials();\n  }\n\n  if (overridden) {\n    absoluteUri.setRawCredentials(relativeUri.getRawCredentials());\n  } else {\n    overridden = relativeUri.hasDomain();\n  }\n\n  if (overridden) {\n    absoluteUri.setRawDomain(relativeUri.getRawDomain());\n  } else {\n    overridden = relativeUri.hasPort();\n  }\n\n  var rawPath = relativeUri.getRawPath();\n  var simplifiedPath = collapse_dots(rawPath);\n  if (overridden) {\n    absoluteUri.setPort(relativeUri.getPort());\n    simplifiedPath = simplifiedPath\n        && simplifiedPath.replace(EXTRA_PARENT_PATHS_RE, '');\n  } else {\n    overridden = !!rawPath;\n    if (overridden) {\n      // resolve path properly\n      if (simplifiedPath.charCodeAt(0) !== 0x2f /* / */) {  // path is relative\n        var absRawPath = collapse_dots(absoluteUri.getRawPath() || '')\n            .replace(EXTRA_PARENT_PATHS_RE, '');\n        var slash = absRawPath.lastIndexOf('/') + 1;\n        simplifiedPath = collapse_dots(\n            (slash ? absRawPath.substring(0, slash) : '')\n            + collapse_dots(rawPath))\n            .replace(EXTRA_PARENT_PATHS_RE, '');\n      }\n    } else {\n      simplifiedPath = simplifiedPath\n          && simplifiedPath.replace(EXTRA_PARENT_PATHS_RE, '');\n      if (simplifiedPath !== rawPath) {\n        absoluteUri.setRawPath(simplifiedPath);\n      }\n    }\n  }\n\n  if (overridden) {\n    absoluteUri.setRawPath(simplifiedPath);\n  } else {\n    overridden = relativeUri.hasQuery();\n  }\n\n  if (overridden) {\n    absoluteUri.setRawQuery(relativeUri.getRawQuery());\n  } else {\n    overridden = relativeUri.hasFragment();\n  }\n\n  if (overridden) {\n    absoluteUri.setRawFragment(relativeUri.getRawFragment());\n  }\n\n  return absoluteUri;\n}\n\n/**\n * a mutable URI.\n *\n * This class contains setters and getters for the parts of the URI.\n * The <tt>getXYZ</tt>/<tt>setXYZ</tt> methods return the decoded part -- so\n * <code>uri.parse('/foo%20bar').getPath()</code> will return the decoded path,\n * <tt>/foo bar</tt>.\n *\n * <p>The raw versions of fields are available too.\n * <code>uri.parse('/foo%20bar').getRawPath()</code> will return the raw path,\n * <tt>/foo%20bar</tt>.  Use the raw setters with care, since\n * <code>URI::toString</code> is not guaranteed to return a valid url if a\n * raw setter was used.\n *\n * <p>All setters return <tt>this</tt> and so may be chained, a la\n * <code>uri.parse('/foo').setFragment('part').toString()</code>.\n *\n * <p>You should not use this constructor directly -- please prefer the factory\n * functions {@link uri.parse}, {@link uri.create}, {@link uri.resolve}\n * instead.</p>\n *\n * <p>The parameters are all raw (assumed to be properly escaped) parts, and\n * any (but not all) may be null.  Undefined is not allowed.</p>\n *\n * @constructor\n */\nfunction URI(\n    rawScheme,\n    rawCredentials, rawDomain, port,\n    rawPath, rawQuery, rawFragment) {\n  this.scheme_ = rawScheme;\n  this.credentials_ = rawCredentials;\n  this.domain_ = rawDomain;\n  this.port_ = port;\n  this.path_ = rawPath;\n  this.query_ = rawQuery;\n  this.fragment_ = rawFragment;\n  /**\n   * @type {Array|null}\n   */\n  this.paramCache_ = null;\n}\n\n/** returns the string form of the url. */\nURI.prototype.toString = function () {\n  var out = [];\n  if (null !== this.scheme_) { out.push(this.scheme_, ':'); }\n  if (null !== this.domain_) {\n    out.push('//');\n    if (null !== this.credentials_) { out.push(this.credentials_, '@'); }\n    out.push(this.domain_);\n    if (null !== this.port_) { out.push(':', this.port_.toString()); }\n  }\n  if (null !== this.path_) { out.push(this.path_); }\n  if (null !== this.query_) { out.push('?', this.query_); }\n  if (null !== this.fragment_) { out.push('#', this.fragment_); }\n  return out.join('');\n};\n\nURI.prototype.clone = function () {\n  return new URI(this.scheme_, this.credentials_, this.domain_, this.port_,\n                 this.path_, this.query_, this.fragment_);\n};\n\nURI.prototype.getScheme = function () {\n  // HTML5 spec does not require the scheme to be lowercased but\n  // all common browsers except Safari lowercase the scheme.\n  return this.scheme_ && decodeURIComponent(this.scheme_).toLowerCase();\n};\nURI.prototype.getRawScheme = function () {\n  return this.scheme_;\n};\nURI.prototype.setScheme = function (newScheme) {\n  this.scheme_ = encodeIfExists2(\n      newScheme, URI_DISALLOWED_IN_SCHEME_OR_CREDENTIALS_);\n  return this;\n};\nURI.prototype.setRawScheme = function (newScheme) {\n  this.scheme_ = newScheme ? newScheme : null;\n  return this;\n};\nURI.prototype.hasScheme = function () {\n  return null !== this.scheme_;\n};\n\n\nURI.prototype.getCredentials = function () {\n  return this.credentials_ && decodeURIComponent(this.credentials_);\n};\nURI.prototype.getRawCredentials = function () {\n  return this.credentials_;\n};\nURI.prototype.setCredentials = function (newCredentials) {\n  this.credentials_ = encodeIfExists2(\n      newCredentials, URI_DISALLOWED_IN_SCHEME_OR_CREDENTIALS_);\n\n  return this;\n};\nURI.prototype.setRawCredentials = function (newCredentials) {\n  this.credentials_ = newCredentials ? newCredentials : null;\n  return this;\n};\nURI.prototype.hasCredentials = function () {\n  return null !== this.credentials_;\n};\n\n\nURI.prototype.getDomain = function () {\n  return this.domain_ && decodeURIComponent(this.domain_);\n};\nURI.prototype.getRawDomain = function () {\n  return this.domain_;\n};\nURI.prototype.setDomain = function (newDomain) {\n  return this.setRawDomain(newDomain && encodeURIComponent(newDomain));\n};\nURI.prototype.setRawDomain = function (newDomain) {\n  this.domain_ = newDomain ? newDomain : null;\n  // Maintain the invariant that paths must start with a slash when the URI\n  // is not path-relative.\n  return this.setRawPath(this.path_);\n};\nURI.prototype.hasDomain = function () {\n  return null !== this.domain_;\n};\n\n\nURI.prototype.getPort = function () {\n  return this.port_ && decodeURIComponent(this.port_);\n};\nURI.prototype.setPort = function (newPort) {\n  if (newPort) {\n    newPort = Number(newPort);\n    if (newPort !== (newPort & 0xffff)) {\n      throw new Error('Bad port number ' + newPort);\n    }\n    this.port_ = '' + newPort;\n  } else {\n    this.port_ = null;\n  }\n  return this;\n};\nURI.prototype.hasPort = function () {\n  return null !== this.port_;\n};\n\n\nURI.prototype.getPath = function () {\n  return this.path_ && decodeURIComponent(this.path_);\n};\nURI.prototype.getRawPath = function () {\n  return this.path_;\n};\nURI.prototype.setPath = function (newPath) {\n  return this.setRawPath(encodeIfExists2(newPath, URI_DISALLOWED_IN_PATH_));\n};\nURI.prototype.setRawPath = function (newPath) {\n  if (newPath) {\n    newPath = String(newPath);\n    this.path_ = \n      // Paths must start with '/' unless this is a path-relative URL.\n      (!this.domain_ || /^\\//.test(newPath)) ? newPath : '/' + newPath;\n  } else {\n    this.path_ = null;\n  }\n  return this;\n};\nURI.prototype.hasPath = function () {\n  return null !== this.path_;\n};\n\n\nURI.prototype.getQuery = function () {\n  // From http://www.w3.org/Addressing/URL/4_URI_Recommentations.html\n  // Within the query string, the plus sign is reserved as shorthand notation\n  // for a space.\n  return this.query_ && decodeURIComponent(this.query_).replace(/\\+/g, ' ');\n};\nURI.prototype.getRawQuery = function () {\n  return this.query_;\n};\nURI.prototype.setQuery = function (newQuery) {\n  this.paramCache_ = null;\n  this.query_ = encodeIfExists(newQuery);\n  return this;\n};\nURI.prototype.setRawQuery = function (newQuery) {\n  this.paramCache_ = null;\n  this.query_ = newQuery ? newQuery : null;\n  return this;\n};\nURI.prototype.hasQuery = function () {\n  return null !== this.query_;\n};\n\n/**\n * sets the query given a list of strings of the form\n * [ key0, value0, key1, value1, ... ].\n *\n * <p><code>uri.setAllParameters(['a', 'b', 'c', 'd']).getQuery()</code>\n * will yield <code>'a=b&c=d'</code>.\n */\nURI.prototype.setAllParameters = function (params) {\n  if (typeof params === 'object') {\n    if (!(params instanceof Array)\n        && (params instanceof Object\n            || Object.prototype.toString.call(params) !== '[object Array]')) {\n      var newParams = [];\n      var i = -1;\n      for (var k in params) {\n        var v = params[k];\n        if ('string' === typeof v) {\n          newParams[++i] = k;\n          newParams[++i] = v;\n        }\n      }\n      params = newParams;\n    }\n  }\n  this.paramCache_ = null;\n  var queryBuf = [];\n  var separator = '';\n  for (var j = 0; j < params.length;) {\n    var k = params[j++];\n    var v = params[j++];\n    queryBuf.push(separator, encodeURIComponent(k.toString()));\n    separator = '&';\n    if (v) {\n      queryBuf.push('=', encodeURIComponent(v.toString()));\n    }\n  }\n  this.query_ = queryBuf.join('');\n  return this;\n};\nURI.prototype.checkParameterCache_ = function () {\n  if (!this.paramCache_) {\n    var q = this.query_;\n    if (!q) {\n      this.paramCache_ = [];\n    } else {\n      var cgiParams = q.split(/[&\\?]/);\n      var out = [];\n      var k = -1;\n      for (var i = 0; i < cgiParams.length; ++i) {\n        var m = cgiParams[i].match(/^([^=]*)(?:=(.*))?$/);\n        // From http://www.w3.org/Addressing/URL/4_URI_Recommentations.html\n        // Within the query string, the plus sign is reserved as shorthand\n        // notation for a space.\n        out[++k] = decodeURIComponent(m[1]).replace(/\\+/g, ' ');\n        out[++k] = decodeURIComponent(m[2] || '').replace(/\\+/g, ' ');\n      }\n      this.paramCache_ = out;\n    }\n  }\n};\n/**\n * sets the values of the named cgi parameters.\n *\n * <p>So, <code>uri.parse('foo?a=b&c=d&e=f').setParameterValues('c', ['new'])\n * </code> yields <tt>foo?a=b&c=new&e=f</tt>.</p>\n *\n * @param key {string}\n * @param values {Array.<string>} the new values.  If values is a single string\n *   then it will be treated as the sole value.\n */\nURI.prototype.setParameterValues = function (key, values) {\n  // be nice and avoid subtle bugs where [] operator on string performs charAt\n  // on some browsers and crashes on IE\n  if (typeof values === 'string') {\n    values = [ values ];\n  }\n\n  this.checkParameterCache_();\n  var newValueIndex = 0;\n  var pc = this.paramCache_;\n  var params = [];\n  for (var i = 0, k = 0; i < pc.length; i += 2) {\n    if (key === pc[i]) {\n      if (newValueIndex < values.length) {\n        params.push(key, values[newValueIndex++]);\n      }\n    } else {\n      params.push(pc[i], pc[i + 1]);\n    }\n  }\n  while (newValueIndex < values.length) {\n    params.push(key, values[newValueIndex++]);\n  }\n  this.setAllParameters(params);\n  return this;\n};\nURI.prototype.removeParameter = function (key) {\n  return this.setParameterValues(key, []);\n};\n/**\n * returns the parameters specified in the query part of the uri as a list of\n * keys and values like [ key0, value0, key1, value1, ... ].\n *\n * @return {Array.<string>}\n */\nURI.prototype.getAllParameters = function () {\n  this.checkParameterCache_();\n  return this.paramCache_.slice(0, this.paramCache_.length);\n};\n/**\n * returns the value<b>s</b> for a given cgi parameter as a list of decoded\n * query parameter values.\n * @return {Array.<string>}\n */\nURI.prototype.getParameterValues = function (paramNameUnescaped) {\n  this.checkParameterCache_();\n  var values = [];\n  for (var i = 0; i < this.paramCache_.length; i += 2) {\n    if (paramNameUnescaped === this.paramCache_[i]) {\n      values.push(this.paramCache_[i + 1]);\n    }\n  }\n  return values;\n};\n/**\n * returns a map of cgi parameter names to (non-empty) lists of values.\n * @return {Object.<string,Array.<string>>}\n */\nURI.prototype.getParameterMap = function (paramNameUnescaped) {\n  this.checkParameterCache_();\n  var paramMap = {};\n  for (var i = 0; i < this.paramCache_.length; i += 2) {\n    var key = this.paramCache_[i++],\n      value = this.paramCache_[i++];\n    if (!(key in paramMap)) {\n      paramMap[key] = [value];\n    } else {\n      paramMap[key].push(value);\n    }\n  }\n  return paramMap;\n};\n/**\n * returns the first value for a given cgi parameter or null if the given\n * parameter name does not appear in the query string.\n * If the given parameter name does appear, but has no '<tt>=</tt>' following\n * it, then the empty string will be returned.\n * @return {string|null}\n */\nURI.prototype.getParameterValue = function (paramNameUnescaped) {\n  this.checkParameterCache_();\n  for (var i = 0; i < this.paramCache_.length; i += 2) {\n    if (paramNameUnescaped === this.paramCache_[i]) {\n      return this.paramCache_[i + 1];\n    }\n  }\n  return null;\n};\n\nURI.prototype.getFragment = function () {\n  return this.fragment_ && decodeURIComponent(this.fragment_);\n};\nURI.prototype.getRawFragment = function () {\n  return this.fragment_;\n};\nURI.prototype.setFragment = function (newFragment) {\n  this.fragment_ = newFragment ? encodeURIComponent(newFragment) : null;\n  return this;\n};\nURI.prototype.setRawFragment = function (newFragment) {\n  this.fragment_ = newFragment ? newFragment : null;\n  return this;\n};\nURI.prototype.hasFragment = function () {\n  return null !== this.fragment_;\n};\n\nfunction nullIfAbsent(matchPart) {\n  return ('string' == typeof matchPart) && (matchPart.length > 0)\n         ? matchPart\n         : null;\n}\n\n\n\n\n/**\n * a regular expression for breaking a URI into its component parts.\n *\n * <p>http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#RFC2234 says\n * As the \"first-match-wins\" algorithm is identical to the \"greedy\"\n * disambiguation method used by POSIX regular expressions, it is natural and\n * commonplace to use a regular expression for parsing the potential five\n * components of a URI reference.\n *\n * <p>The following line is the regular expression for breaking-down a\n * well-formed URI reference into its components.\n *\n * <pre>\n * ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?\n *  12            3  4          5       6  7        8 9\n * </pre>\n *\n * <p>The numbers in the second line above are only to assist readability; they\n * indicate the reference points for each subexpression (i.e., each paired\n * parenthesis). We refer to the value matched for subexpression <n> as $<n>.\n * For example, matching the above expression to\n * <pre>\n *     http://www.ics.uci.edu/pub/ietf/uri/#Related\n * </pre>\n * results in the following subexpression matches:\n * <pre>\n *    $1 = http:\n *    $2 = http\n *    $3 = //www.ics.uci.edu\n *    $4 = www.ics.uci.edu\n *    $5 = /pub/ietf/uri/\n *    $6 = <undefined>\n *    $7 = <undefined>\n *    $8 = #Related\n *    $9 = Related\n * </pre>\n * where <undefined> indicates that the component is not present, as is the\n * case for the query component in the above example. Therefore, we can\n * determine the value of the five components as\n * <pre>\n *    scheme    = $2\n *    authority = $4\n *    path      = $5\n *    query     = $7\n *    fragment  = $9\n * </pre>\n *\n * <p>msamuel: I have modified the regular expression slightly to expose the\n * credentials, domain, and port separately from the authority.\n * The modified version yields\n * <pre>\n *    $1 = http              scheme\n *    $2 = <undefined>       credentials -\\\n *    $3 = www.ics.uci.edu   domain       | authority\n *    $4 = <undefined>       port        -/\n *    $5 = /pub/ietf/uri/    path\n *    $6 = <undefined>       query without ?\n *    $7 = Related           fragment without #\n * </pre>\n */\nvar URI_RE_ = new RegExp(\n      \"^\" +\n      \"(?:\" +\n        \"([^:/?#]+)\" +         // scheme\n      \":)?\" +\n      \"(?://\" +\n        \"(?:([^/?#]*)@)?\" +    // credentials\n        \"([^/?#:@]*)\" +        // domain\n        \"(?::([0-9]+))?\" +     // port\n      \")?\" +\n      \"([^?#]+)?\" +            // path\n      \"(?:\\\\?([^#]*))?\" +      // query\n      \"(?:#(.*))?\" +           // fragment\n      \"$\"\n      );\n\nvar URI_DISALLOWED_IN_SCHEME_OR_CREDENTIALS_ = /[#\\/\\?@]/g;\nvar URI_DISALLOWED_IN_PATH_ = /[\\#\\?]/g;\n\nURI.parse = parse;\nURI.create = create;\nURI.resolve = resolve;\nURI.collapse_dots = collapse_dots;  // Visible for testing.\n\n// lightweight string-based api for loadModuleMaker\nURI.utils = {\n  mimeTypeOf: function (uri) {\n    var uriObj = parse(uri);\n    if (/\\.html$/.test(uriObj.getPath())) {\n      return 'text/html';\n    } else {\n      return 'application/javascript';\n    }\n  },\n  resolve: function (base, uri) {\n    if (base) {\n      return resolve(parse(base), parse(uri)).toString();\n    } else {\n      return '' + uri;\n    }\n  }\n};\n\n\nreturn URI;\n})();\n\n// Exports for closure compiler.\nif (typeof window !== 'undefined') {\n  window['URI'] = URI;\n}\n;\n// Copyright (C) 2011 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//      http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/**\n * @fileoverview\n * JavaScript support for client-side CSS sanitization.\n * The CSS property schema API is defined in CssPropertyPatterns.java which\n * is used to generate css-defs.js.\n *\n * @author mikesamuel@gmail.com\n * \\@requires CSS_PROP_BIT_GLOBAL_NAME\n * \\@requires CSS_PROP_BIT_HASH_VALUE\n * \\@requires CSS_PROP_BIT_NEGATIVE_QUANTITY\n * \\@requires CSS_PROP_BIT_PROPERTY_NAME\n * \\@requires CSS_PROP_BIT_QUANTITY\n * \\@requires CSS_PROP_BIT_QSTRING\n * \\@requires CSS_PROP_BIT_UNRESERVED_WORD\n * \\@requires CSS_PROP_BIT_URL\n * \\@requires cssSchema\n * \\@requires decodeCss\n * \\@requires html4\n * \\@requires URI\n * \\@overrides window\n * \\@requires parseCssStylesheet\n * \\@provides sanitizeCssProperty\n * \\@provides sanitizeCssSelectorList\n * \\@provides sanitizeStylesheet\n * \\@provides sanitizeStylesheetWithExternals\n * \\@provides sanitizeMediaQuery\n */\n\nvar sanitizeCssProperty = undefined;\nvar sanitizeCssSelectorList = undefined;\nvar sanitizeStylesheet = undefined;\nvar sanitizeStylesheetWithExternals = undefined;\nvar sanitizeMediaQuery = undefined;\n\n(function () {\n  var NOEFFECT_URL = 'url(\"about:blank\")';\n  /**\n   * The set of characters that need to be normalized inside url(\"...\").\n   * We normalize newlines because they are not allowed inside quoted strings,\n   * normalize quote characters, angle-brackets, and asterisks because they\n   * could be used to break out of the URL or introduce targets for CSS\n   * error recovery.  We normalize parentheses since they delimit unquoted\n   * URLs and calls and could be a target for error recovery.\n   */\n  var NORM_URL_REGEXP = /[\\n\\f\\r\\\"\\'()*<>]/g;\n  /** The replacements for NORM_URL_REGEXP. */\n  var NORM_URL_REPLACEMENTS = {\n    '\\n': '%0a',\n    '\\f': '%0c',\n    '\\r': '%0d',\n    '\"':  '%22',\n    '\\'': '%27',\n    '(':  '%28',\n    ')':  '%29',\n    '*':  '%2a',\n    '<':  '%3c',\n    '>':  '%3e'\n  };\n\n  function normalizeUrl(s) {\n    if ('string' === typeof s) {\n      return 'url(\"' + s.replace(NORM_URL_REGEXP, normalizeUrlChar) + '\")';\n    } else {\n      return NOEFFECT_URL;\n    }\n  }\n  function normalizeUrlChar(ch) {\n    return NORM_URL_REPLACEMENTS[ch];\n  }\n\n  // From RFC3986\n  var URI_SCHEME_RE = new RegExp(\n      '^' +\n      '(?:' +\n        '([^:\\/?# ]+)' +         // scheme\n      ':)?'\n  );\n\n  var ALLOWED_URI_SCHEMES = /^(?:https?|geo|mailto|sms|tel)$/i;\n\n  function resolveUri(baseUri, uri) {\n    if (baseUri) {\n      return URI.utils.resolve(baseUri, uri);\n    }\n    return uri;\n  }\n\n  function safeUri(uri, prop, naiveUriRewriter) {\n    if (!naiveUriRewriter) { return null; }\n    var parsed = ('' + uri).match(URI_SCHEME_RE);\n    if (parsed && (!parsed[1] || ALLOWED_URI_SCHEMES.test(parsed[1]))) {\n      return naiveUriRewriter(uri, prop);\n    } else {\n      return null;\n    }\n  }\n\n  function withoutVendorPrefix(ident) {\n    // http://stackoverflow.com/a/5411098/20394 has a fairly extensive list\n    // of vendor prefices.\n    // Blink has not declared a vendor prefix distinct from -webkit-\n    // and http://css-tricks.com/tldr-on-vendor-prefix-drama/ discusses\n    // how Mozilla recognizes some -webkit-\n    // http://wiki.csswg.org/spec/vendor-prefixes talks more about\n    // cross-implementation, and lists other prefixes.\n    // Note: info is duplicated in CssValidator.java\n    return ident.replace(\n        /^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/, '');\n  }\n\n  /**\n   * Given a series of normalized CSS tokens, applies a property schema, as\n   * defined in CssPropertyPatterns.java, and sanitizes the tokens in place.\n   * @param property a property name.\n   * @param tokens as parsed by lexCss.  Modified in place.\n   * @param opt_naiveUriRewriter a URI rewriter; an object with a \"rewrite\"\n   *     function that takes a URL and returns a safe URL.\n   * @param opt_baseURI a URI against which all relative URLs in tokens will\n   *     be resolved.\n   * @param opt_idSuffix {string} appended to all IDs to scope them.\n   */\n  sanitizeCssProperty = (function () {\n\n    function unionArrays(arrs) {\n      var map = {};\n      for (var i = arrs.length; --i >= 0;) {\n        var arr = arrs[i];\n        for (var j = arr.length; --j >= 0;) {\n          map[arr[j]] = ALLOWED_LITERAL;\n        }\n      }\n      return map;\n    }\n\n    // Used as map value to avoid hasOwnProperty checks.\n    var ALLOWED_LITERAL = {};\n\n    return function sanitize(\n        property, tokens, opt_naiveUriRewriter, opt_baseUri, opt_idSuffix) {\n\n      var propertyKey = withoutVendorPrefix(property);\n      var propertySchema = cssSchema[propertyKey];\n\n      // If the property isn't recognized, elide all tokens.\n      if (!propertySchema || 'object' !== typeof propertySchema) {\n        tokens.length = 0;\n        return;\n      }\n\n      var propBits = propertySchema['cssPropBits'];\n\n      /**\n       * Recurse to apply the appropriate function schema to the function call\n       * that starts at {@code tokens[start]}.\n       * @param {Array.<string>} tokens an array of CSS token that is modified\n       *   in place so that all tokens involved in the function call\n       *   (from {@code tokens[start]} to a close parenthesis) are folded to\n       *   one token.\n       * @param {number} start an index into tokens of a function token like\n       *   {@code 'name('}.\n       * @return the replacement function or the empty string if the function\n       *   call is not both well-formed and allowed.\n       */\n      function sanitizeFunctionCall(tokens, start) {\n        var parenDepth = 1, end = start + 1, n = tokens.length;\n        while (end < n && parenDepth) {\n          var token = tokens[end++];\n          // Decrement if we see a close parenthesis, and increment if we\n          // see a function.  Since url(...) are whole tokens, they will not\n          // affect the token scanning.\n          parenDepth += (token === ')' ? -1 : /^[^\"']*\\($/.test(token));\n        }\n        // Allow error-recovery from unclosed functions by ignoring the call and\n        // so allowing resumption at the next ';'.\n        if (!parenDepth) {\n          var fnToken = tokens[start].toLowerCase();\n          var bareFnToken = withoutVendorPrefix(fnToken);\n          // Cut out the originals, so the caller can step by one token.\n          var fnTokens = tokens.splice(start, end - start, '');\n          var fns = propertySchema['cssFns'];\n          // Look for a function that matches the name.\n          for (var i = 0, nFns = fns.length; i < nFns; ++i) {\n            if (fns[i].substring(0, bareFnToken.length) == bareFnToken) {\n              fnTokens[0] = fnTokens[fnTokens.length - 1] = '';\n              // Recurse and sanitize the function parameters.\n              sanitize(\n                fns[i],\n                // The actual parameters to the function.\n                fnTokens,\n                opt_naiveUriRewriter, opt_baseUri);\n              // Reconstitute the function from its parameter tokens.\n              return fnToken + fnTokens.join(' ') + ')';\n            }\n          }\n        }\n        return '';\n      }\n\n      // Used to determine whether to treat quoted strings as URLs or\n      // plain text content, and whether unrecognized keywords can be quoted\n      // to treat ['Arial', 'Black'] equivalently to ['\"Arial Black\"'].\n      var stringDisposition =\n        propBits & (CSS_PROP_BIT_URL | CSS_PROP_BIT_UNRESERVED_WORD);\n      // Used to determine what to do with unreserved words.\n      var identDisposition =\n        propBits & (CSS_PROP_BIT_GLOBAL_NAME | CSS_PROP_BIT_PROPERTY_NAME);\n\n      // Used to join unquoted keywords into a single quoted string.\n      var lastQuoted = NaN;\n      var i = 0, k = 0;\n      for (;i < tokens.length; ++i) {\n        // Has the effect of normalizing hex digits, keywords,\n        // and function names.\n        var token = tokens[i].toLowerCase();\n        var cc = token.charCodeAt(0), cc1, cc2, isnum1, isnum2, end;\n        var litGroup, litMap;\n        token = (\n\n          // Strip out spaces.  Normally cssparser.js dumps these, but we\n          // strip them out in case the content doesn't come via cssparser.js.\n          (cc === ' '.charCodeAt(0)) ? ''\n          : (cc === '\"'.charCodeAt(0)) ? (  // Quoted string.\n            (stringDisposition === CSS_PROP_BIT_URL)\n            ? (opt_naiveUriRewriter\n               // Sanitize and convert to url(\"...\") syntax.\n               // Treat url content as case-sensitive.\n               ? (normalizeUrl(\n                   // Rewrite to a safe URI.\n                   safeUri(\n                     // Convert to absolute URL\n                     resolveUri(\n                       opt_baseUri,\n                       // Strip off quotes\n                       decodeCss(tokens[i].substring(1, token.length - 1))),\n                     propertyKey,\n                     opt_naiveUriRewriter)))\n              : '')\n            : ((propBits & CSS_PROP_BIT_QSTRING)\n               // Ambiguous when more than one bit set in disposition.\n               && !(stringDisposition & (stringDisposition - 1)))\n            ? token\n            // Drop if quoted strings not allowed.\n            : ''\n          )\n\n          // inherit is always allowed.\n          : token === 'inherit'\n          ? token\n\n          : (\n            litGroup = propertySchema['cssLitGroup'],\n            litMap = (litGroup\n                      ? (propertySchema['cssLitMap']\n                         // Lazily compute the union from litGroup.\n                         || (propertySchema['cssLitMap'] =\n                             unionArrays(litGroup)))\n                      : ALLOWED_LITERAL),  // A convenient empty object.\n            (litMap[withoutVendorPrefix(token)] === ALLOWED_LITERAL)\n          )\n          // Token is in the literal map or matches extra.\n          ? token\n\n          // Preserve hash color literals if allowed.\n          : (cc === '#'.charCodeAt(0) && /^#(?:[0-9a-f]{3}){1,2}$/.test(token))\n          ? (propBits & CSS_PROP_BIT_HASH_VALUE ? token : '')\n\n          : ('0'.charCodeAt(0) <= cc && cc <= '9'.charCodeAt(0))\n          // A number starting with a digit.\n          ? ((propBits & CSS_PROP_BIT_QUANTITY) ? token : '')\n\n          // Normalize quantities so they don't start with a '.' or '+' sign and\n          // make sure they all have an integer component so can't be confused\n          // with a dotted identifier.\n          // This can't be done in the lexer since \".4\" is a valid rule part.\n          : (cc1 = token.charCodeAt(1),\n             cc2 = token.charCodeAt(2),\n             isnum1 = '0'.charCodeAt(0) <= cc1 && cc1 <= '9'.charCodeAt(0),\n             isnum2 = '0'.charCodeAt(0) <= cc2 && cc2 <= '9'.charCodeAt(0),\n             // +.5 -> 0.5 if allowed.\n             (cc === '+'.charCodeAt(0)\n              && (isnum1 || (cc1 === '.'.charCodeAt(0) && isnum2))))\n          ? ((propBits & CSS_PROP_BIT_QUANTITY)\n            ? ((isnum1 ? '' : '0') + token.substring(1))\n            : '')\n\n          // -.5 -> -0.5 if allowed otherwise -> 0 if quantities allowed.\n          : (cc === '-'.charCodeAt(0)\n             && (isnum1 || (cc1 === '.'.charCodeAt(0) && isnum2)))\n            ? ((propBits & CSS_PROP_BIT_NEGATIVE_QUANTITY)\n               ? ((isnum1 ? '-' : '-0') + token.substring(1))\n               : ((propBits & CSS_PROP_BIT_QUANTITY) ? '0' : ''))\n\n          // .5 -> 0.5 if allowed.\n          : (cc === '.'.charCodeAt(0) && isnum1)\n          ? ((propBits & CSS_PROP_BIT_QUANTITY) ? '0' + token : '')\n\n          // Handle url(\"...\") by rewriting the body.\n          : ('url(\"' === token.substring(0, 5))\n          ? ((opt_naiveUriRewriter && (propBits & CSS_PROP_BIT_URL))\n             ? normalizeUrl(safeUri(resolveUri(opt_baseUri,\n                  tokens[i].substring(5, token.length - 2)),\n                  propertyKey,\n                  opt_naiveUriRewriter))\n             : '')\n\n          // Handle func(...) by recursing.\n          // Functions start at a token like \"name(\" and end with a \")\" taking\n          // into account nesting.\n          : (token.charAt(token.length-1) === '(')\n          ? sanitizeFunctionCall(tokens, i)\n\n          : (identDisposition\n             && /^-?[a-z_][\\w\\-]*$/.test(token) && !/__$/.test(token))\n          ? (opt_idSuffix && identDisposition === CSS_PROP_BIT_GLOBAL_NAME\n             ? tokens[i] + opt_idSuffix  // use original token, not lowercased\n             : (identDisposition === CSS_PROP_BIT_PROPERTY_NAME\n                && cssSchema[token]\n                && 'number' === typeof cssSchema[token].cssPropBits)\n             ? token\n             : '')\n\n          : (/^\\w+$/.test(token)\n             && stringDisposition === CSS_PROP_BIT_UNRESERVED_WORD\n             && (propBits & CSS_PROP_BIT_QSTRING))\n          // Quote unrecognized keywords so font names like\n          //    Arial Bold\n          // ->\n          //    \"Arial Bold\"\n          ? (lastQuoted+1 === k\n             // If the last token was also a keyword that was quoted, then\n             // combine this token into that.\n             ? (tokens[lastQuoted] = (\n                  tokens[lastQuoted].substring(0, tokens[lastQuoted].length-1)\n                  + ' ' + token + '\"'),\n                token = '')\n             : (lastQuoted = k, '\"' + token + '\"'))\n\n          // Disallowed.\n          : '');\n        if (token) {\n          tokens[k++] = token;\n        }\n      }\n      // For single URL properties, if the URL failed to pass the sanitizer,\n      // then just drop it.\n      if (k === 1 && tokens[0] === NOEFFECT_URL) { k = 0; }\n      tokens.length = k;\n    };\n  })();\n\n  // Note, duplicated in CssRewriter.java\n  // Constructed from\n  //    https://developer.mozilla.org/en-US/docs/Web/CSS/Reference\n  //    https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes\n  //    http://dev.w3.org/csswg/selectors4/\n  var PSEUDO_SELECTOR_WHITELIST =\n    new RegExp(\n        '^(active|after|before|blank|checked|default|disabled'\n        + '|drop|empty|enabled|first|first-child|first-letter'\n        + '|first-line|first-of-type|fullscreen|focus|hover'\n        + '|in-range|indeterminate|invalid|last-child|last-of-type'\n        + '|left|link|only-child|only-of-type|optional|out-of-range'\n        + '|placeholder-shown|read-only|read-write|required|right'\n        + '|root|scope|user-error|valid|visited'\n        + ')$');\n\n  // Set of punctuation tokens that are child/sibling selectors.\n  var COMBINATOR = {};\n  COMBINATOR['>'] = COMBINATOR['+'] = COMBINATOR['~'] = COMBINATOR;\n\n  /**\n   * Given a series of tokens, returns a list of sanitized selectors.\n   * @param {Array.<string>} selectors In the form produced by csslexer.js.\n   * @param {{\n   *     containerClass: ?string,\n   *     idSuffix: string,\n   *     tagPolicy: defs.TagPolicy,\n   *     virtualizeAttrName: ?function(string, string): ?string\n   *   }} virtualization An object like <pre<{\n   *   containerClass: class name prepended to all selectors to scope them (if\n   *       not null)\n   *   idSuffix: appended to all IDs to scope them\n   *   tagPolicy: As in html-sanitizer, used for rewriting element names.\n   *   virtualizeAttrName: Rewrite a single attribute name for attribute\n   *       selectors, or return null if not possible. Should be consistent\n   *       with tagPolicy if possible.\n   * }</pre>\n   *    If containerClass is {@code \"sfx\"} and idSuffix is {@code \"-sfx\"}, the\n   *    selector\n   *    {@code [\"a\", \"#foo\", \" \", \"b\", \".bar\"]} will be namespaced to\n   *    {@code [\".sfx\", \" \", \"a\", \"#foo-sfx\", \" \", \"b\", \".bar\"]}.\n   * @param {function(Array.<string>): boolean} opt_onUntranslatableSelector\n   *     When a selector cannot be translated, this function is called with the\n   *     non-whitespace/comment tokens comprising the selector and returns a\n   *     value indicating whether to continue processing the selector list.\n   *     If it returns falsey, then processing is aborted and null is returned.\n   *     If not present or it returns truthy, then the complex selector is\n   *     dropped from the selector list.\n   * @return {Array.<string>}? an array of sanitized selectors.\n   *    Null when the untraslatable compound selector handler aborts processing.\n   */\n  sanitizeCssSelectorList = function(\n      selectors, virtualization, opt_onUntranslatableSelector) {\n    var containerClass = virtualization.containerClass;\n    var idSuffix = virtualization.idSuffix;\n    var tagPolicy = virtualization.tagPolicy;\n    var sanitized = [];\n\n    // Remove any spaces that are not operators.\n    var k = 0, i, inBrackets = 0, tok;\n    for (i = 0; i < selectors.length; ++i) {\n      tok = selectors[i];\n\n      if (\n            (tok == '(' || tok == '[') ? (++inBrackets, true)\n          : (tok == ')' || tok == ']') ? (inBrackets && --inBrackets, true)\n          : !(selectors[i] == ' '\n              && (inBrackets || COMBINATOR[selectors[i-1]] === COMBINATOR\n                  || COMBINATOR[selectors[i+1]] === COMBINATOR))\n        ) {\n        selectors[k++] = selectors[i];\n      }\n    }\n    selectors.length = k;\n\n    // Split around commas.  If there is an error in one of the comma separated\n    // bits, we throw the whole away, but the failure of one selector does not\n    // affect others except that opt_onUntranslatableSelector allows one to\n    // treat the entire output as unusable.\n    var n = selectors.length, start = 0;\n    for (i = 0; i < n; ++i) {\n      if (selectors[i] === ',') {  // TODO: ignore ',' inside brackets.\n        if (!processComplexSelector(start, i)) { return null; }\n        start = i+1;\n      }\n    }\n    if (!processComplexSelector(start, n)) { return null; }\n\n\n    function processComplexSelector(start, end) {\n      // Space around commas is not an operator.\n      if (selectors[start] === ' ') { ++start; }\n      if (end-1 !== start && selectors[end] === ' ') { --end; }\n\n      // Split the selector into element selectors, content around\n      // space (ancestor operator) and '>' (descendant operator).\n      var out = [];\n      var lastOperator = start;\n      var valid = true;  // True iff out contains a valid complex selector.\n      for (var i = start; valid && i < end; ++i) {\n        var tok = selectors[i];\n        if (COMBINATOR[tok] === COMBINATOR || tok === ' ') {\n          // We've found the end of a single link in the selector chain.\n          if (!processCompoundSelector(lastOperator, i, tok)) {\n            valid = false;\n          } else {\n            lastOperator = i+1;\n          }\n        }\n      }\n      if (!processCompoundSelector(lastOperator, end, '')) {\n        valid = false;\n      }\n\n      function processCompoundSelector(start, end, combinator) {\n        // Split the element selector into four parts.\n        // DIV.foo#bar[href]:hover\n        //    ^       ^     ^\n        // el classes attrs pseudo\n        var element, classId, attrs, pseudoSelector,\n            tok,  // The current token\n            // valid implies the parts above comprise a sanitized selector.\n            valid = true;\n        element = '';\n        if (start < end) {\n          tok = selectors[start];\n          if (tok === '*') {\n            ++start;\n            element = tok;\n          } else if (/^[a-zA-Z]/.test(tok)) {  // is an element selector\n            var decision = tagPolicy(tok.toLowerCase(), []);\n            if (decision) {\n              if ('tagName' in decision) {\n                tok = decision['tagName'];\n              }\n              ++start;\n              element = tok;\n            }\n          }\n        }\n        classId = '';\n        attrs = '';\n        pseudoSelector = '';\n        for (;valid && start < end; ++start) {\n          tok = selectors[start];\n          if (tok.charAt(0) === '#') {\n            if (/^#_|__$|[^\\w#:\\-]/.test(tok)) {\n              valid = false;\n            } else {\n              // Rewrite ID elements to include the suffix.\n              classId += tok + idSuffix;\n            }\n          } else if (tok === '.') {\n            if (++start < end\n                && /^[0-9A-Za-z:_\\-]+$/.test(tok = selectors[start])\n                && !/^_|__$/.test(tok)) {\n              classId += '.' + tok;\n            } else {\n              valid = false;\n            }\n          } else if (start + 1 < end && selectors[start] === '[') {\n            ++start;\n            var vAttr = selectors[start++].toLowerCase();\n            // Schema lookup for type information\n            var atype = html4.ATTRIBS[element + '::' + vAttr];\n            if (atype !== +atype) { atype = html4.ATTRIBS['*::' + vAttr]; }\n\n            var rAttr;\n            // Consult policy\n            // TODO(kpreid): Making this optional is a kludge to avoid changing\n            // the public interface until we have a more well-structured design.\n            if (virtualization.virtualizeAttrName) {\n              rAttr = virtualization.virtualizeAttrName(element, vAttr);\n              if (typeof rAttr !== 'string') {\n                // rejected\n                valid = false;\n                rAttr = vAttr;\n              }\n              // don't reject even if not in schema\n              if (valid && atype !== +atype) {\n                atype = html4.atype['NONE'];\n              }\n            } else {\n              rAttr = vAttr;\n              if (atype !== +atype) {  // not permitted according to schema\n                valid = false;\n              }\n            }\n\n            var op = '', value = '', ignoreCase = false;\n            if (/^[~^$*|]?=$/.test(selectors[start])) {\n              op = selectors[start++];\n              value = selectors[start++];\n              // Quote identifier values.\n              if (/^[0-9A-Za-z:_\\-]+$/.test(value)) {\n                value = '\"' + value + '\"';\n              } else if (value === ']') {\n                value = '\"\"';\n                --start;\n              }\n              // Reject unquoted values.\n              if (!/^\"([^\\\"\\\\]|\\\\.)*\"$/.test(value)) {\n                valid = false;\n              }\n              ignoreCase = selectors[start] === \"i\";\n              if (ignoreCase) { ++start; }\n            }\n            if (selectors[start] !== ']') {\n              ++start;\n              valid = false;\n            }\n            // TODO: replace this with a lookup table that also provides a\n            // function from operator and value to testable value.\n            switch (atype) {\n            case html4.atype['CLASSES']:\n            case html4.atype['LOCAL_NAME']:\n            case html4.atype['NONE']:\n              break;\n            case html4.atype['GLOBAL_NAME']:\n            case html4.atype['ID']:\n            case html4.atype['IDREF']:\n              if ((op === '=' || op === '~=' || op === '$=')\n                  && value != '\"\"' && !ignoreCase) {\n                // The suffix is case-sensitive, so we can't translate case\n                // ignoring matches.\n                value = '\"'\n                  + value.substring(1, value.length-1) + idSuffix\n                  + '\"';\n              } else if (op === '|=' || op === '') {\n                // Ok.  a|=b -> a == b || a.startsWith(b + \"-\") and since we\n                // use \"-\" to separate the suffix from the identifier, we can\n                // allow this through unmodified.\n                // Existence checks are also ok.\n              } else {\n                // Can't correctly handle prefix and substring operators\n                // without leaking information about the suffix.\n                valid = false;\n              }\n              break;\n            case html4.atype['URI']:\n            case html4.atype['URI_FRAGMENT']:\n              // URIs are rewritten, so we can't meanginfully translate URI\n              // selectors besides the common a[href] one that is used to\n              // distinguish links from naming anchors.\n              if (op !== '') { valid = false; }\n              break;\n            // TODO: IDREFS\n            default:\n              valid = false;\n            }\n            if (valid) {\n              attrs += '[' + rAttr.replace(/[^\\w-]/g, '\\\\$&') + op + value +\n                  (ignoreCase ? ' i]' : ']');\n            }\n          } else if (start < end && selectors[start] === ':') {\n            tok = selectors[++start];\n            if (PSEUDO_SELECTOR_WHITELIST.test(tok)) {\n              pseudoSelector += ':' + tok;\n            } else {\n              break;\n            }\n          } else {\n            break;  // Unrecognized token.\n          }\n        }\n        if (start !== end) {  // Tokens not consumed.\n          valid = false;\n        }\n        if (valid) {\n          // ':' is allowed in identifiers, but is also the\n          // pseudo-selector separator, so ':' in preceding parts needs to\n          // be escaped.\n          var selector = (element + classId).replace(/[^ .*#\\w-]/g, '\\\\$&')\n              + attrs + pseudoSelector + combinator;\n          if (selector) { out.push(selector); }\n        }\n        return valid;\n      }\n\n      if (valid) {\n        if (out.length) {\n          var safeSelector = out.join('');\n\n          // Namespace the selector so that it only matches under\n          // a node with suffix in its CLASS attribute.\n          if (containerClass !== null) {\n            safeSelector = '.' + containerClass + ' ' + safeSelector;\n          }\n\n          sanitized.push(safeSelector);\n        }  // else nothing there.\n        return true;\n      } else {\n        return !opt_onUntranslatableSelector\n          || opt_onUntranslatableSelector(selectors.slice(start, end));\n      }\n    }\n    return sanitized;\n  };\n\n  (function () {\n    var MEDIA_TYPE =\n       '(?:'\n       + 'all|aural|braille|embossed|handheld|print'\n       + '|projection|screen|speech|tty|tv'\n       + ')';\n\n    // A white-list of media features extracted from the \"Pseudo-BNF\" in\n    // http://dev.w3.org/csswg/mediaqueries4/#media1 and\n    // https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries\n    var MEDIA_FEATURE =\n       '(?:'\n       + '(?:min-|max-)?'\n       + '(?:' + (\n           '(?:device-)?'\n         + '(?:aspect-ratio|height|width)'\n         + '|color(?:-index)?'\n         + '|monochrome'\n         + '|orientation'\n         + '|resolution'\n       )\n       + ')'\n       + '|grid'\n       + '|hover'\n       + '|luminosity'\n       + '|pointer'\n       + '|scan'\n       + '|script'\n       + ')';\n\n    var LENGTH_UNIT = '(?:p[cxt]|[cem]m|in|dpi|dppx|dpcm|%)';\n\n    var CSS_VALUE =\n       '-?(?:'\n       + '[a-z]\\\\w+(?:-\\\\w+)*'  // An identifier\n       // A length or scalar quantity, or a rational number.\n       // dev.w3.org/csswg/mediaqueries4/#values introduces a ratio value-type\n       // to allow matching aspect ratios like \"4 / 3\".\n       + '|\\\\d+(?: / \\\\d+|(?:\\\\.\\\\d+)?' + LENGTH_UNIT + '?)'\n       + ')';\n\n    var MEDIA_EXPR =\n       '\\\\( ' + MEDIA_FEATURE + ' (?:' + ': ' + CSS_VALUE + ' )?\\\\)';\n\n    var MEDIA_QUERY =\n       '(?:'\n       + '(?:(?:(?:only|not) )?' + MEDIA_TYPE + '|' + MEDIA_EXPR + ')'\n       // We use 'and ?' since 'and(' is a single CSS function token while\n       // 'and (' parses to two separate tokens -- IDENT \"and\", DELIM \"(\".\n       + '(?: and ?' + MEDIA_EXPR + ')*'\n       + ')';\n\n    var STARTS_WITH_KEYWORD_REGEXP = /^\\w/;\n\n    var MEDIA_QUERY_LIST_REGEXP = new RegExp(\n      '^' + MEDIA_QUERY + '(?: , ' + MEDIA_QUERY + ')*' + '$',\n      'i'\n    );\n\n    /**\n     * Sanitizes a media query as defined in\n     * http://dev.w3.org/csswg/mediaqueries4/#syntax\n     * <blockquote>\n     * Media Queries allow authors to adapt the style applied to a document\n     * based on the environment the document is being rendered in.\n     * </blockquote>\n     *\n     * @param {Array.<string>} cssTokens an array of tokens of the kind produced\n     *   by cssLexers.\n     * @return {string} a CSS media query.  This may be the empty string, or if\n     *   the input is invalid, then a query that is always false.\n     */\n    sanitizeMediaQuery = function (cssTokens) {\n      cssTokens = cssTokens.slice();\n      // Strip out space tokens.\n      var nTokens = cssTokens.length, k = 0;\n      for (var i = 0; i < nTokens; ++i) {\n        var tok = cssTokens[i];\n        if (tok != ' ') { cssTokens[k++] = tok; }\n      }\n      cssTokens.length = k;\n      var css = cssTokens.join(' ');\n      css = (\n        !css.length ? ''  // Always true per the spec.\n        : !(MEDIA_QUERY_LIST_REGEXP.test(css)) ? 'not all'  // Always false.\n        // Emit as-is if it starts with 'only', 'not' or a media type.\n        : STARTS_WITH_KEYWORD_REGEXP.test(css) ? css\n        : 'not all , ' + css  // Not ambiguous with a URL.\n      );\n      return css;\n    };\n  }());\n\n  (function () {\n\n    /**\n     * Extracts a url out of an at-import rule of the form:\n     *   \\@import \"mystyle.css\";\n     *   \\@import url(\"mystyle.css\");\n     *\n     * Returns null if no valid url was found.\n     */\n    function cssParseUri(candidate) {\n      var string1 = /^\\s*[\"]([^\"]*)[\"]\\s*$/;\n      var string2 = /^\\s*[']([^']*)[']\\s*$/;\n      var url1 = /^\\s*url\\s*[(][\"]([^\"]*)[\"][)]\\s*$/;\n      var url2 = /^\\s*url\\s*[(][']([^']*)['][)]\\s*$/;\n      // Not officially part of the CSS2.1 grammar\n      // but supported by Chrome\n      var url3 = /^\\s*url\\s*[(]([^)]*)[)]\\s*$/;\n      var match;\n      if ((match = string1.exec(candidate))) {\n        return match[1];\n      } else if ((match = string2.exec(candidate))) {\n        return match[1];\n      } else if ((match = url1.exec(candidate))) {\n        return match[1];\n      } else if ((match = url2.exec(candidate))) {\n        return match[1];\n      } else if ((match = url3.exec(candidate))) {\n        return match[1];\n      }\n      return null;\n    }\n\n    /**\n     * @param {string} baseUri a string against which relative urls are\n     *    resolved.\n     * @param {string} cssText a string containing a CSS stylesheet.\n     * @param {{\n     *     containerClass: ?string,\n     *     idSuffix: string,\n     *     tagPolicy: defs.TagPolicy,\n     *     virtualizeAttrName: ?function(string, string): ?string\n     *   }} virtualization An object like <pre<{\n     *   containerClass: class name prepended to all selectors to scope them (if\n     *       not null)\n     *   idSuffix: appended to all IDs to scope them\n     *   tagPolicy: As in html-sanitizer, used for rewriting element names.\n     *   virtualizeAttrName: Rewrite a single attribute name for attribute\n     *       selectors, or return null if not possible. Should be consistent\n     *       with tagPolicy if possible. Optional.\n     * }</pre>\n     *    If containerClass is {@code \"sfx\"} and idSuffix is {@code \"-sfx\"}, the\n     *    selector\n     *    {@code [\"a\", \"#foo\", \" \", \"b\", \".bar\"]} will be namespaced to\n     *    {@code [\".sfx\", \" \", \"a\", \"#foo-sfx\", \" \", \"b\", \".bar\"]}.\n     * @param {function(string, string)} naiveUriRewriter maps URLs of media\n     *    (images, sounds) that appear as CSS property values to sanitized\n     *    URLs or null if the URL should not be allowed as an external media\n     *    file in sanitized CSS.\n     * @param {undefined|function({toString: function ():string}, boolean)}\n     *     continuation\n     *     callback that receives the result of loading imported CSS.\n     *     The callback is called with\n     *     (cssContent : function ():string, moreToCome : boolean)\n     *     where cssContent is the CSS at the imported URL, and moreToCome is\n     *     true when the external URL itself loaded other external URLs.\n     *     If the output of the original call is stringified when moreToCome is\n     *     false, then it will be complete.\n     * @param {Array.<number>} opt_importCount the number of imports that need\n     *     to be satisfied before there is no more pending content.\n     * @return {{result:{toString:function ():string},moreToCome:boolean}}\n     *     the CSS text, and a flag that indicates whether there are pending\n     *     imports that will be passed to continuation.\n     */\n    function sanitizeStylesheetInternal(\n        baseUri, cssText, virtualization, naiveUriRewriter, naiveUriFetcher,\n        continuation, opt_importCount) {\n      var safeCss = void 0;\n      // Return a result with moreToCome===true when the last import has been\n      // sanitized.\n      var importCount = opt_importCount || [0];\n      // A stack describing the { ... } regions.\n      // Null elements indicate blocks that should not be emitted.\n      var blockStack = [];\n      // True when the content of the current block should be left off safeCss.\n      var elide = false;\n      parseCssStylesheet(\n          cssText,\n          {\n            'startStylesheet': function () {\n              safeCss = [];\n            },\n            'endStylesheet': function () {\n            },\n            'startAtrule': function (atIdent, headerArray) {\n              if (elide) {\n                atIdent = null;\n              } else if (atIdent === '@media') {\n                safeCss.push('@media', ' ', sanitizeMediaQuery(headerArray));\n              } else if (atIdent === '@keyframes'\n                         || atIdent === '@-webkit-keyframes') {\n                var animationId = headerArray[0];\n                if (headerArray.length === 1\n                    && !/__$|[^\\w\\-]/.test(animationId)) {\n                  safeCss.push(\n                      atIdent, ' ', animationId + virtualization.idSuffix);\n                  atIdent = '@keyframes';\n                } else {\n                  atIdent = null;\n                }\n              } else {\n                if (atIdent === '@import' && headerArray.length > 0) {\n                  atIdent = null;\n                  if ('function' === typeof continuation) {\n                    var mediaQuery = sanitizeMediaQuery(headerArray.slice(1));\n                    if (mediaQuery !== 'not all') {\n                      ++importCount[0];\n                      var placeholder = [];\n                      safeCss.push(placeholder);\n                      var cssUrl = safeUri(\n                          resolveUri(baseUri, cssParseUri(headerArray[0])),\n                          function(result) {\n                            var sanitized = sanitizeStylesheetInternal(\n                                cssUrl, result.html, virtualization,\n                                naiveUriRewriter, naiveUriFetcher,\n                                continuation, importCount);\n                            --importCount[0];\n                            var safeImportedCss = mediaQuery\n                              ? {\n                                toString: function () {\n                                  return (\n                                    '@media ' + mediaQuery + ' {'\n                                    + sanitized.result + '}'\n                                  );\n                                }\n                              }\n                              : sanitized.result;\n                            placeholder[0] = safeImportedCss;\n                            continuation(safeImportedCss, !!importCount[0]);\n                          },\n                          naiveUriFetcher);\n                    }\n                  } else {\n                    // TODO: Use a logger instead.\n                    if (window.console) {\n                      window.console.log(\n                          '@import ' + headerArray.join(' ') + ' elided');\n                    }\n                  }\n                }\n              }\n              elide = !atIdent;\n              blockStack.push(atIdent);\n            },\n            'endAtrule': function () {\n              blockStack.pop();\n              if (!elide) {\n                safeCss.push(';');\n              }\n              checkElide();\n            },\n            'startBlock': function () {\n              // There are no bare blocks in CSS, so we do not change the\n              // block stack here, but instead in the events that bracket\n              // blocks.\n              if (!elide) {\n                safeCss.push('{');\n              }\n            },\n            'endBlock': function () {\n              if (!elide) {\n                safeCss.push('}');\n                elide = true;  // skip any semicolon from endAtRule.\n              }\n            },\n            'startRuleset': function (selectorArray) {\n              if (!elide) {\n                var selector = void 0;\n                if (blockStack[blockStack.length - 1] === '@keyframes') {\n                  // Allow [from | to | <percentage>]\n                  selector = selectorArray.join(' ')\n                    .match(/^ *(?:from|to|\\d+(?:\\.\\d+)?%) *(?:, *(?:from|to|\\d+(?:\\.\\d+)?%) *)*$/i);\n                  elide = !selector;\n                  if (selector) { selector = selector[0].replace(/ +/g, ''); }\n                } else {\n                  var selectors = sanitizeCssSelectorList(\n                      selectorArray, virtualization);\n                  if (!selectors || !selectors.length) {\n                    elide = true;\n                  } else {\n                    selector = selectors.join(', ');\n                  }\n                }\n                if (!elide) {\n                  safeCss.push(selector, '{');\n                }\n              }\n              blockStack.push(null);\n            },\n            'endRuleset': function () {\n              blockStack.pop();\n              if (!elide) {\n                safeCss.push('}');\n              }\n              checkElide();\n            },\n            'declaration': function (property, valueArray) {\n              if (!elide) {\n                var isImportant = false;\n                var nValues = valueArray.length;\n                if (nValues >= 2\n                    && valueArray[nValues - 2] === '!'\n                    && valueArray[nValues - 1].toLowerCase() === 'important') {\n                  isImportant = true;\n                  valueArray.length -= 2;\n                }\n                sanitizeCssProperty(\n                    property, valueArray, naiveUriRewriter, baseUri,\n                    virtualization.idSuffix);\n                if (valueArray.length) {\n                  safeCss.push(\n                      property, ':', valueArray.join(' '),\n                      isImportant ? ' !important;' : ';');\n                }\n              }\n            }\n          });\n      function checkElide() {\n        elide = blockStack.length && blockStack[blockStack.length-1] === null;\n      }\n      return {\n        result : { toString: function () { return safeCss.join(''); } },\n        moreToCome : !!importCount[0]\n      };\n    }\n\n    sanitizeStylesheet = function (\n        baseUri, cssText, virtualization, naiveUriRewriter) {\n      return sanitizeStylesheetInternal(\n          baseUri, cssText, virtualization,\n          naiveUriRewriter, undefined, undefined).result.toString();\n    };\n\n    sanitizeStylesheetWithExternals = function (\n        baseUri, cssText, virtualization, naiveUriRewriter, naiveUriFetcher,\n        continuation) {\n      return sanitizeStylesheetInternal(\n          baseUri, cssText, virtualization,\n          naiveUriRewriter, naiveUriFetcher, continuation);\n    };\n  })();\n})();\n\n// Exports for closure compiler.\nif (typeof window !== 'undefined') {\n  window['sanitizeCssProperty'] = sanitizeCssProperty;\n  window['sanitizeCssSelectorList'] = sanitizeCssSelectorList;\n  window['sanitizeStylesheet'] = sanitizeStylesheet;\n  window['sanitizeMediaQuery'] = sanitizeMediaQuery;\n}\n;\n// Copyright (C) 2010 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//      http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/**\n * @fileoverview\n * Utilities for dealing with CSS source code.\n *\n * @author mikesamuel@gmail.com\n * \\@requires lexCss\n * \\@overrides window\n * \\@provides parseCssStylesheet, parseCssDeclarations\n */\n\n// The Turkish i seems to be a non-issue, but abort in case it is.\nif ('I'.toLowerCase() !== 'i') { throw 'I/i problem'; }\n\n/**\n * parseCssStylesheet takes a chunk of CSS text and a handler object with\n * methods that it calls as below:\n * <pre>\n * // At the beginning of a stylesheet.\n * handler.startStylesheet();\n *\n * // For an @foo rule ended by a semicolon: @import \"foo.css\";\n * handler.startAtrule('@import', ['\"foo.css\"']);\n * handler.endAtrule();\n *\n * // For an @foo rule ended with a block. @media print { ... }\n * handler.startAtrule('@media', ['print']);\n * handler.startBlock();\n * // Calls to contents elided.  Probably selectors and declarations as below.\n * handler.endBlock();\n * handler.endAtrule();\n *\n * // For a ruleset: p.clazz q, s { color: blue; }\n * handler.startRuleset(['p', '.', 'clazz', ' ', 'q', ',', ' ', 's']);\n * handler.declaration('color', ['blue']);\n * handler.endRuleset();\n *\n * // At the end of a stylesheet.\n * handler.endStylesheet();\n * </pre>\n * When errors are encountered, the parser drops the useless tokens and\n * attempts to resume parsing.\n *\n * @param {string} cssText CSS3 content to parse as a stylesheet.\n * @param {Object} handler An object like <pre>{\n *   startStylesheet: function () { ... },\n *   endStylesheet: function () { ... },\n *   startAtrule: function (atIdent, headerArray) { ... },\n *   endAtrule: function () { ... },\n *   startBlock: function () { ... },\n *   endBlock: function () { ... },\n *   startRuleset: function (selectorArray) { ... },\n *   endRuleset: function () { ... },\n *   declaration: function (property, valueArray) { ... },\n * }</pre>\n */\nvar parseCssStylesheet;\n\n/**\n * parseCssDeclarations parses a run of declaration productions as seen in the\n * body of the HTML5 {@code style} attribute.\n *\n * @param {string} cssText CSS3 content to parse as a run of declarations.\n * @param {Object} handler An object like <pre>{\n *   declaration: function (property, valueArray) { ... },\n * }</pre>\n */\nvar parseCssDeclarations;\n\n(function () {\n  // stylesheet  : [ CDO | CDC | S | statement ]*;\n  parseCssStylesheet = function(cssText, handler) {\n    var toks = lexCss(cssText);\n    if (handler['startStylesheet']) { handler['startStylesheet'](); }\n    for (var i = 0, n = toks.length; i < n;) {\n      // CDO and CDC (\"<!--\" and \"-->\") are converted to space by the lexer.\n      i = toks[i] === ' ' ? i+1 : statement(toks, i, n, handler);\n    }\n    if (handler['endStylesheet']) { handler['endStylesheet'](); }\n  };\n\n  // statement   : ruleset | at-rule;\n  function statement(toks, i, n, handler) {\n    if (i < n) {\n      var tok = toks[i];\n      if (tok.charAt(0) === '@') {\n        return atrule(toks, i, n, handler, true);\n      } else {\n        return ruleset(toks, i, n, handler);\n      }\n    } else {\n      return i;\n    }\n  }\n\n  // at-rule     : ATKEYWORD S* any* [ block | ';' S* ];\n  function atrule(toks, i, n, handler, blockok) {\n    var start = i++;\n    while (i < n && toks[i] !== '{' && toks[i] !== ';') {\n      ++i;\n    }\n    if (i < n && (blockok || toks[i] === ';')) {\n      var s = start+1, e = i;\n      if (s < n && toks[s] === ' ') { ++s; }\n      if (e > s && toks[e-1] === ' ') { --e; }\n      if (handler['startAtrule']) {\n        handler['startAtrule'](toks[start].toLowerCase(), toks.slice(s, e));\n      }\n      i = (toks[i] === '{')\n          ? block(toks, i, n, handler)\n          : i+1;  // Skip over ';'\n      if (handler['endAtrule']) {\n        handler['endAtrule']();\n      }\n    }\n    // Else we reached end of input or are missing a semicolon.\n    // Drop the rule on the floor.\n    return i;\n  }\n\n  // block       : '{' S* [ any | block | ATKEYWORD S* | ';' S* ]* '}' S*;\n   // Assumes the leading '{' has been verified by callers.\n  function block(toks, i, n, handler) {\n    ++i; //  skip over '{'\n    if (handler['startBlock']) { handler['startBlock'](); }\n    while (i < n) {\n      var ch = toks[i].charAt(0);\n      if (ch == '}') {\n        ++i;\n        break;\n      }\n      if (ch === ' ' || ch === ';') {\n        i = i+1;\n      } else if (ch === '@') {\n        i = atrule(toks, i, n, handler, false);\n      } else if (ch === '{') {\n        i = block(toks, i, n, handler);\n      } else {\n        // Instead of using (any* block) to subsume ruleset we allow either\n        // blocks or rulesets with a non-blank selector.\n        // This is more restrictive but does not require atrule specific\n        // parse tree fixup to realize that the contents of the block in\n        //    @media print { ... }\n        // is a ruleset.  We just don't care about any block carrying at-rules\n        // whose body content is not ruleset content.\n        i = ruleset(toks, i, n, handler);\n      }\n    }\n    if (handler['endBlock']) { handler['endBlock'](); }\n    return i;\n  }\n\n  // ruleset    : selector? '{' S* declaration? [ ';' S* declaration? ]* '}' S*;\n  function ruleset(toks, i, n, handler) {\n    // toks[s:e] are the selector tokens including internal whitespace.\n    var s = i, e = selector(toks, i, n, true);\n    if (e < 0) {\n      // Skip malformed content per selector calling convention.\n      e = ~e;\n      // Make sure we skip at least one token.\n      return e === s ? e+1 : e;\n    }\n    var tok = toks[e];\n    if (tok !== '{') {\n      // Make sure we skip at least one token.\n      return e === s ? e+1 : e;\n    }\n    i = e+1;  // Skip over '{'\n    // Don't include any trailing space in the selector slice.\n    if (e > s && toks[e-1] === ' ') { --e; }\n    if (handler['startRuleset']) {\n      handler['startRuleset'](toks.slice(s, e));\n    }\n    while (i < n) {\n      tok = toks[i];\n      if (tok === '}') {\n        ++i;\n        break;\n      }\n      if (tok === ' ') {\n        i = i+1;\n      } else {\n        i = declaration(toks, i, n, handler);\n      }\n    }\n    if (handler['endRuleset']) {\n      handler['endRuleset']();\n    }\n    return i;\n  }\n\n  // selector    : any+;\n  // any         : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING\n  //               | DELIM | URI | HASH | UNICODE-RANGE | INCLUDES\n  //               | FUNCTION S* any* ')' | DASHMATCH | '(' S* any* ')'\n  //               | '[' S* any* ']' ] S*;\n  // A negative return value, rv, indicates the selector was malformed and\n  // the index at which we stopped is ~rv.\n  function selector(toks, i, n, allowSemi) {\n    var s = i;\n    // The definition of any above can be summed up as\n    //   \"any run of token except ('[', ']', '(', ')', ':', ';', '{', '}')\n    //    or nested runs of parenthesized tokens or square bracketed tokens\".\n    // Spaces are significant in the selector.\n    // Selector is used as (selector?) so the below looks for (any*) for\n    // simplicity.\n    var tok;\n    // Keeping a stack pointer actually causes this to minify better since\n    // \".length\" and \".push\" are a lo of chars.\n    var brackets = [], stackLast = -1;\n    for (;i < n; ++i) {\n      tok = toks[i].charAt(0);\n      if (tok === '[' || tok === '(') {\n        brackets[++stackLast] = tok;\n      } else if ((tok === ']' && brackets[stackLast] === '[') ||\n                 (tok === ')' && brackets[stackLast] === '(')) {\n        --stackLast;\n      } else if (tok === '{' || tok === '}' || tok === ';' || tok === '@'\n                 || (tok === ':' && !allowSemi)) {\n        break;\n      }\n    }\n    if (stackLast >= 0) {\n      // Returns the bitwise inverse of i+1 to indicate an error in the\n      // token stream so that clients can ignore it.\n      i = ~(i+1);\n    }\n    return i;\n  }\n\n  var ident = /^-?[a-z]/i;\n\n  function skipDeclaration(toks, i, n) {\n    // TODO(felix8a): maybe skip balanced pairs of {}\n    while (i < n && toks[i] !== ';' && toks[i] !== '}') { ++i; }\n    return i < n && toks[i] === ';' ? i+1 : i;\n  }\n\n  // declaration : property ':' S* value;\n  // property    : IDENT S*;\n  // value       : [ any | block | ATKEYWORD S* ]+;\n  function declaration(toks, i, n, handler) {\n    var property = toks[i++];\n    if (!ident.test(property)) {\n      return skipDeclaration(toks, i, n);\n    }\n    var tok;\n    if (i < n && toks[i] === ' ') { ++i; }\n    if (i == n || toks[i] !== ':') {\n      return skipDeclaration(toks, i, n);\n    }\n    ++i;\n    if (i < n && toks[i] === ' ') { ++i; }\n\n    // None of the rules we care about want atrules or blocks in value, so\n    // we look for any+ but that is the same as selector but not zero-length.\n    // This gets us the benefit of not emitting any value with mismatched\n    // brackets.\n    var s = i, e = selector(toks, i, n, false);\n    if (e < 0) {\n      // Skip malformed content per selector calling convention.\n      e = ~e;\n    } else {\n      var value = [], valuelen = 0;\n      for (var j = s; j < e; ++j) {\n        tok = toks[j];\n        if (tok !== ' ') {\n          value[valuelen++] = tok;\n        }\n      }\n      // One of the following is now true:\n      // (1) e is flush with the end of the tokens as in <... style=\"x:y\">.\n      // (2) tok[e] points to a ';' in which case we need to consume the semi.\n      // (3) tok[e] points to a '}' in which case we don't consume it.\n      // (4) else there is bogus unparsed value content at toks[e:].\n      // Allow declaration flush with end for style attr body.\n      if (e < n) {  // 2, 3, or 4\n        do {\n          tok = toks[e];\n          if (tok === ';' || tok === '}') { break; }\n          // Don't emit the property if there is questionable trailing content.\n          valuelen = 0;\n        } while (++e < n);\n        if (tok === ';') {\n          ++e;\n        }\n      }\n      if (valuelen && handler['declaration']) {\n        // TODO: coerce non-keyword ident tokens to quoted strings.\n        handler['declaration'](property.toLowerCase(), value);\n      }\n    }\n    return e;\n  }\n\n  parseCssDeclarations = function(cssText, handler) {\n    var toks = lexCss(cssText);\n    for (var i = 0, n = toks.length; i < n;) {\n      i = toks[i] !== ' ' ? declaration(toks, i, n, handler) : i+1;\n    }\n  };\n})();\n\n// Exports for closure compiler.\nif (typeof window !== 'undefined') {\n  window['parseCssStylesheet'] = parseCssStylesheet;\n  window['parseCssDeclarations'] = parseCssDeclarations;\n}\n;\n// Copyright Google Inc.\n// Licensed under the Apache Licence Version 2.0\n// Autogenerated at Mon Mar 13 14:39:20 CET 2017\n// @overrides window\n// @provides html4\nvar html4 = {};\nhtml4.atype = {\n  'NONE': 0,\n  'URI': 1,\n  'URI_FRAGMENT': 11,\n  'SCRIPT': 2,\n  'STYLE': 3,\n  'HTML': 12,\n  'ID': 4,\n  'IDREF': 5,\n  'IDREFS': 6,\n  'GLOBAL_NAME': 7,\n  'LOCAL_NAME': 8,\n  'CLASSES': 9,\n  'FRAME_TARGET': 10,\n  'MEDIA_QUERY': 13\n};\nhtml4[ 'atype' ] = html4.atype;\nhtml4.ATTRIBS = {\n  '*::class': 9,\n  '*::dir': 0,\n  '*::draggable': 0,\n  '*::hidden': 0,\n  '*::id': 4,\n  '*::inert': 0,\n  '*::itemprop': 0,\n  '*::itemref': 6,\n  '*::itemscope': 0,\n  '*::lang': 0,\n  '*::onblur': 2,\n  '*::onchange': 2,\n  '*::onclick': 2,\n  '*::ondblclick': 2,\n  '*::onerror': 2,\n  '*::onfocus': 2,\n  '*::onkeydown': 2,\n  '*::onkeypress': 2,\n  '*::onkeyup': 2,\n  '*::onload': 2,\n  '*::onmousedown': 2,\n  '*::onmousemove': 2,\n  '*::onmouseout': 2,\n  '*::onmouseover': 2,\n  '*::onmouseup': 2,\n  '*::onreset': 2,\n  '*::onscroll': 2,\n  '*::onselect': 2,\n  '*::onsubmit': 2,\n  '*::ontouchcancel': 2,\n  '*::ontouchend': 2,\n  '*::ontouchenter': 2,\n  '*::ontouchleave': 2,\n  '*::ontouchmove': 2,\n  '*::ontouchstart': 2,\n  '*::onunload': 2,\n  '*::spellcheck': 0,\n  '*::style': 3,\n  '*::tabindex': 0,\n  '*::title': 0,\n  '*::translate': 0,\n  'a::accesskey': 0,\n  'a::coords': 0,\n  'a::href': 1,\n  'a::hreflang': 0,\n  'a::name': 7,\n  'a::onblur': 2,\n  'a::onfocus': 2,\n  'a::shape': 0,\n  'a::target': 10,\n  'a::type': 0,\n  'area::accesskey': 0,\n  'area::alt': 0,\n  'area::coords': 0,\n  'area::href': 1,\n  'area::nohref': 0,\n  'area::onblur': 2,\n  'area::onfocus': 2,\n  'area::shape': 0,\n  'area::target': 10,\n  'audio::controls': 0,\n  'audio::loop': 0,\n  'audio::mediagroup': 5,\n  'audio::muted': 0,\n  'audio::preload': 0,\n  'audio::src': 1,\n  'bdo::dir': 0,\n  'blockquote::cite': 1,\n  'br::clear': 0,\n  'button::accesskey': 0,\n  'button::disabled': 0,\n  'button::name': 8,\n  'button::onblur': 2,\n  'button::onfocus': 2,\n  'button::type': 0,\n  'button::value': 0,\n  'canvas::height': 0,\n  'canvas::width': 0,\n  'caption::align': 0,\n  'col::align': 0,\n  'col::char': 0,\n  'col::charoff': 0,\n  'col::span': 0,\n  'col::valign': 0,\n  'col::width': 0,\n  'colgroup::align': 0,\n  'colgroup::char': 0,\n  'colgroup::charoff': 0,\n  'colgroup::span': 0,\n  'colgroup::valign': 0,\n  'colgroup::width': 0,\n  'command::checked': 0,\n  'command::command': 5,\n  'command::disabled': 0,\n  'command::icon': 1,\n  'command::label': 0,\n  'command::radiogroup': 0,\n  'command::type': 0,\n  'data::value': 0,\n  'del::cite': 1,\n  'del::datetime': 0,\n  'details::open': 0,\n  'dir::compact': 0,\n  'div::align': 0,\n  'dl::compact': 0,\n  'fieldset::disabled': 0,\n  'font::color': 0,\n  'font::face': 0,\n  'font::size': 0,\n  'form::accept': 0,\n  'form::action': 1,\n  'form::autocomplete': 0,\n  'form::enctype': 0,\n  'form::method': 0,\n  'form::name': 7,\n  'form::novalidate': 0,\n  'form::onreset': 2,\n  'form::onsubmit': 2,\n  'form::target': 10,\n  'h1::align': 0,\n  'h2::align': 0,\n  'h3::align': 0,\n  'h4::align': 0,\n  'h5::align': 0,\n  'h6::align': 0,\n  'hr::align': 0,\n  'hr::noshade': 0,\n  'hr::size': 0,\n  'hr::width': 0,\n  'iframe::align': 0,\n  'iframe::frameborder': 0,\n  'iframe::height': 0,\n  'iframe::marginheight': 0,\n  'iframe::marginwidth': 0,\n  'iframe::width': 0,\n  'img::align': 0,\n  'img::alt': 0,\n  'img::border': 0,\n  'img::height': 0,\n  'img::hspace': 0,\n  'img::ismap': 0,\n  'img::name': 7,\n  'img::src': 1,\n  'img::usemap': 11,\n  'img::vspace': 0,\n  'img::width': 0,\n  'input::accept': 0,\n  'input::accesskey': 0,\n  'input::align': 0,\n  'input::alt': 0,\n  'input::autocomplete': 0,\n  'input::checked': 0,\n  'input::disabled': 0,\n  'input::inputmode': 0,\n  'input::ismap': 0,\n  'input::list': 5,\n  'input::max': 0,\n  'input::maxlength': 0,\n  'input::min': 0,\n  'input::multiple': 0,\n  'input::name': 8,\n  'input::onblur': 2,\n  'input::onchange': 2,\n  'input::onfocus': 2,\n  'input::onselect': 2,\n  'input::pattern': 0,\n  'input::placeholder': 0,\n  'input::readonly': 0,\n  'input::required': 0,\n  'input::size': 0,\n  'input::src': 1,\n  'input::step': 0,\n  'input::type': 0,\n  'input::usemap': 11,\n  'input::value': 0,\n  'ins::cite': 1,\n  'ins::datetime': 0,\n  'label::accesskey': 0,\n  'label::for': 5,\n  'label::onblur': 2,\n  'label::onfocus': 2,\n  'legend::accesskey': 0,\n  'legend::align': 0,\n  'li::type': 0,\n  'li::value': 0,\n  'map::name': 7,\n  'menu::compact': 0,\n  'menu::label': 0,\n  'menu::type': 0,\n  'meter::high': 0,\n  'meter::low': 0,\n  'meter::max': 0,\n  'meter::min': 0,\n  'meter::optimum': 0,\n  'meter::value': 0,\n  'ol::compact': 0,\n  'ol::reversed': 0,\n  'ol::start': 0,\n  'ol::type': 0,\n  'optgroup::disabled': 0,\n  'optgroup::label': 0,\n  'option::disabled': 0,\n  'option::label': 0,\n  'option::selected': 0,\n  'option::value': 0,\n  'output::for': 6,\n  'output::name': 8,\n  'p::align': 0,\n  'pre::width': 0,\n  'progress::max': 0,\n  'progress::min': 0,\n  'progress::value': 0,\n  'q::cite': 1,\n  'select::autocomplete': 0,\n  'select::disabled': 0,\n  'select::multiple': 0,\n  'select::name': 8,\n  'select::onblur': 2,\n  'select::onchange': 2,\n  'select::onfocus': 2,\n  'select::required': 0,\n  'select::size': 0,\n  'source::type': 0,\n  'table::align': 0,\n  'table::bgcolor': 0,\n  'table::border': 0,\n  'table::cellpadding': 0,\n  'table::cellspacing': 0,\n  'table::frame': 0,\n  'table::rules': 0,\n  'table::summary': 0,\n  'table::width': 0,\n  'tbody::align': 0,\n  'tbody::char': 0,\n  'tbody::charoff': 0,\n  'tbody::valign': 0,\n  'td::abbr': 0,\n  'td::align': 0,\n  'td::axis': 0,\n  'td::bgcolor': 0,\n  'td::char': 0,\n  'td::charoff': 0,\n  'td::colspan': 0,\n  'td::headers': 6,\n  'td::height': 0,\n  'td::nowrap': 0,\n  'td::rowspan': 0,\n  'td::scope': 0,\n  'td::valign': 0,\n  'td::width': 0,\n  'textarea::accesskey': 0,\n  'textarea::autocomplete': 0,\n  'textarea::cols': 0,\n  'textarea::disabled': 0,\n  'textarea::inputmode': 0,\n  'textarea::name': 8,\n  'textarea::onblur': 2,\n  'textarea::onchange': 2,\n  'textarea::onfocus': 2,\n  'textarea::onselect': 2,\n  'textarea::placeholder': 0,\n  'textarea::readonly': 0,\n  'textarea::required': 0,\n  'textarea::rows': 0,\n  'textarea::wrap': 0,\n  'tfoot::align': 0,\n  'tfoot::char': 0,\n  'tfoot::charoff': 0,\n  'tfoot::valign': 0,\n  'th::abbr': 0,\n  'th::align': 0,\n  'th::axis': 0,\n  'th::bgcolor': 0,\n  'th::char': 0,\n  'th::charoff': 0,\n  'th::colspan': 0,\n  'th::headers': 6,\n  'th::height': 0,\n  'th::nowrap': 0,\n  'th::rowspan': 0,\n  'th::scope': 0,\n  'th::valign': 0,\n  'th::width': 0,\n  'thead::align': 0,\n  'thead::char': 0,\n  'thead::charoff': 0,\n  'thead::valign': 0,\n  'tr::align': 0,\n  'tr::bgcolor': 0,\n  'tr::char': 0,\n  'tr::charoff': 0,\n  'tr::valign': 0,\n  'track::default': 0,\n  'track::kind': 0,\n  'track::label': 0,\n  'track::srclang': 0,\n  'ul::compact': 0,\n  'ul::type': 0,\n  'video::controls': 0,\n  'video::height': 0,\n  'video::loop': 0,\n  'video::mediagroup': 5,\n  'video::muted': 0,\n  'video::poster': 1,\n  'video::preload': 0,\n  'video::src': 1,\n  'video::width': 0\n};\nhtml4[ 'ATTRIBS' ] = html4.ATTRIBS;\nhtml4.eflags = {\n  'OPTIONAL_ENDTAG': 1,\n  'EMPTY': 2,\n  'CDATA': 4,\n  'RCDATA': 8,\n  'UNSAFE': 16,\n  'FOLDABLE': 32,\n  'SCRIPT': 64,\n  'STYLE': 128,\n  'VIRTUALIZED': 256\n};\nhtml4[ 'eflags' ] = html4.eflags;\nhtml4.ELEMENTS = {\n  'a': 0,\n  'abbr': 0,\n  'acronym': 0,\n  'address': 0,\n  'applet': 272,\n  'area': 2,\n  'article': 0,\n  'aside': 0,\n  'audio': 0,\n  'b': 0,\n  'base': 274,\n  'basefont': 274,\n  'bdi': 0,\n  'bdo': 0,\n  'big': 0,\n  'blockquote': 0,\n  'body': 305,\n  'br': 2,\n  'button': 0,\n  'canvas': 0,\n  'caption': 0,\n  'center': 0,\n  'cite': 0,\n  'code': 0,\n  'col': 2,\n  'colgroup': 1,\n  'command': 2,\n  'data': 0,\n  'datalist': 0,\n  'dd': 1,\n  'del': 0,\n  'details': 0,\n  'dfn': 0,\n  'dialog': 272,\n  'dir': 0,\n  'div': 0,\n  'dl': 0,\n  'dt': 1,\n  'em': 0,\n  'fieldset': 0,\n  'figcaption': 0,\n  'figure': 0,\n  'font': 0,\n  'footer': 0,\n  'form': 0,\n  'frame': 274,\n  'frameset': 272,\n  'h1': 0,\n  'h2': 0,\n  'h3': 0,\n  'h4': 0,\n  'h5': 0,\n  'h6': 0,\n  'head': 305,\n  'header': 0,\n  'hgroup': 0,\n  'hr': 2,\n  'html': 305,\n  'i': 0,\n  'iframe': 4,\n  'img': 2,\n  'input': 2,\n  'ins': 0,\n  'isindex': 274,\n  'kbd': 0,\n  'keygen': 274,\n  'label': 0,\n  'legend': 0,\n  'li': 1,\n  'link': 274,\n  'map': 0,\n  'mark': 0,\n  'menu': 0,\n  'meta': 274,\n  'meter': 0,\n  'nav': 0,\n  'nobr': 0,\n  'noembed': 276,\n  'noframes': 276,\n  'noscript': 276,\n  'object': 272,\n  'ol': 0,\n  'optgroup': 0,\n  'option': 1,\n  'output': 0,\n  'p': 1,\n  'param': 274,\n  'pre': 0,\n  'progress': 0,\n  'q': 0,\n  's': 0,\n  'samp': 0,\n  'script': 84,\n  'section': 0,\n  'select': 0,\n  'small': 0,\n  'source': 2,\n  'span': 0,\n  'strike': 0,\n  'strong': 0,\n  'style': 148,\n  'sub': 0,\n  'summary': 0,\n  'sup': 0,\n  'table': 0,\n  'tbody': 1,\n  'td': 1,\n  'textarea': 8,\n  'tfoot': 1,\n  'th': 1,\n  'thead': 1,\n  'time': 0,\n  'title': 280,\n  'tr': 1,\n  'track': 2,\n  'tt': 0,\n  'u': 0,\n  'ul': 0,\n  'var': 0,\n  'video': 0,\n  'wbr': 2\n};\nhtml4[ 'ELEMENTS' ] = html4.ELEMENTS;\nhtml4.ELEMENT_DOM_INTERFACES = {\n  'a': 'HTMLAnchorElement',\n  'abbr': 'HTMLElement',\n  'acronym': 'HTMLElement',\n  'address': 'HTMLElement',\n  'applet': 'HTMLAppletElement',\n  'area': 'HTMLAreaElement',\n  'article': 'HTMLElement',\n  'aside': 'HTMLElement',\n  'audio': 'HTMLAudioElement',\n  'b': 'HTMLElement',\n  'base': 'HTMLBaseElement',\n  'basefont': 'HTMLBaseFontElement',\n  'bdi': 'HTMLElement',\n  'bdo': 'HTMLElement',\n  'big': 'HTMLElement',\n  'blockquote': 'HTMLQuoteElement',\n  'body': 'HTMLBodyElement',\n  'br': 'HTMLBRElement',\n  'button': 'HTMLButtonElement',\n  'canvas': 'HTMLCanvasElement',\n  'caption': 'HTMLTableCaptionElement',\n  'center': 'HTMLElement',\n  'cite': 'HTMLElement',\n  'code': 'HTMLElement',\n  'col': 'HTMLTableColElement',\n  'colgroup': 'HTMLTableColElement',\n  'command': 'HTMLCommandElement',\n  'data': 'HTMLElement',\n  'datalist': 'HTMLDataListElement',\n  'dd': 'HTMLElement',\n  'del': 'HTMLModElement',\n  'details': 'HTMLDetailsElement',\n  'dfn': 'HTMLElement',\n  'dialog': 'HTMLDialogElement',\n  'dir': 'HTMLDirectoryElement',\n  'div': 'HTMLDivElement',\n  'dl': 'HTMLDListElement',\n  'dt': 'HTMLElement',\n  'em': 'HTMLElement',\n  'fieldset': 'HTMLFieldSetElement',\n  'figcaption': 'HTMLElement',\n  'figure': 'HTMLElement',\n  'font': 'HTMLFontElement',\n  'footer': 'HTMLElement',\n  'form': 'HTMLFormElement',\n  'frame': 'HTMLFrameElement',\n  'frameset': 'HTMLFrameSetElement',\n  'h1': 'HTMLHeadingElement',\n  'h2': 'HTMLHeadingElement',\n  'h3': 'HTMLHeadingElement',\n  'h4': 'HTMLHeadingElement',\n  'h5': 'HTMLHeadingElement',\n  'h6': 'HTMLHeadingElement',\n  'head': 'HTMLHeadElement',\n  'header': 'HTMLElement',\n  'hgroup': 'HTMLElement',\n  'hr': 'HTMLHRElement',\n  'html': 'HTMLHtmlElement',\n  'i': 'HTMLElement',\n  'iframe': 'HTMLIFrameElement',\n  'img': 'HTMLImageElement',\n  'input': 'HTMLInputElement',\n  'ins': 'HTMLModElement',\n  'isindex': 'HTMLUnknownElement',\n  'kbd': 'HTMLElement',\n  'keygen': 'HTMLKeygenElement',\n  'label': 'HTMLLabelElement',\n  'legend': 'HTMLLegendElement',\n  'li': 'HTMLLIElement',\n  'link': 'HTMLLinkElement',\n  'map': 'HTMLMapElement',\n  'mark': 'HTMLElement',\n  'menu': 'HTMLMenuElement',\n  'meta': 'HTMLMetaElement',\n  'meter': 'HTMLMeterElement',\n  'nav': 'HTMLElement',\n  'nobr': 'HTMLElement',\n  'noembed': 'HTMLElement',\n  'noframes': 'HTMLElement',\n  'noscript': 'HTMLElement',\n  'object': 'HTMLObjectElement',\n  'ol': 'HTMLOListElement',\n  'optgroup': 'HTMLOptGroupElement',\n  'option': 'HTMLOptionElement',\n  'output': 'HTMLOutputElement',\n  'p': 'HTMLParagraphElement',\n  'param': 'HTMLParamElement',\n  'pre': 'HTMLPreElement',\n  'progress': 'HTMLProgressElement',\n  'q': 'HTMLQuoteElement',\n  's': 'HTMLElement',\n  'samp': 'HTMLElement',\n  'script': 'HTMLScriptElement',\n  'section': 'HTMLElement',\n  'select': 'HTMLSelectElement',\n  'small': 'HTMLElement',\n  'source': 'HTMLSourceElement',\n  'span': 'HTMLSpanElement',\n  'strike': 'HTMLElement',\n  'strong': 'HTMLElement',\n  'style': 'HTMLStyleElement',\n  'sub': 'HTMLElement',\n  'summary': 'HTMLElement',\n  'sup': 'HTMLElement',\n  'table': 'HTMLTableElement',\n  'tbody': 'HTMLTableSectionElement',\n  'td': 'HTMLTableDataCellElement',\n  'textarea': 'HTMLTextAreaElement',\n  'tfoot': 'HTMLTableSectionElement',\n  'th': 'HTMLTableHeaderCellElement',\n  'thead': 'HTMLTableSectionElement',\n  'time': 'HTMLTimeElement',\n  'title': 'HTMLTitleElement',\n  'tr': 'HTMLTableRowElement',\n  'track': 'HTMLTrackElement',\n  'tt': 'HTMLElement',\n  'u': 'HTMLElement',\n  'ul': 'HTMLUListElement',\n  'var': 'HTMLElement',\n  'video': 'HTMLVideoElement',\n  'wbr': 'HTMLElement'\n};\nhtml4[ 'ELEMENT_DOM_INTERFACES' ] = html4.ELEMENT_DOM_INTERFACES;\nhtml4.ueffects = {\n  'NOT_LOADED': 0,\n  'SAME_DOCUMENT': 1,\n  'NEW_DOCUMENT': 2\n};\nhtml4[ 'ueffects' ] = html4.ueffects;\nhtml4.URIEFFECTS = {\n  'a::href': 2,\n  'area::href': 2,\n  'audio::src': 1,\n  'blockquote::cite': 0,\n  'command::icon': 1,\n  'del::cite': 0,\n  'form::action': 2,\n  'img::src': 1,\n  'input::src': 1,\n  'ins::cite': 0,\n  'q::cite': 0,\n  'video::poster': 1,\n  'video::src': 1\n};\nhtml4[ 'URIEFFECTS' ] = html4.URIEFFECTS;\nhtml4.ltypes = {\n  'UNSANDBOXED': 2,\n  'SANDBOXED': 1,\n  'DATA': 0\n};\nhtml4[ 'ltypes' ] = html4.ltypes;\nhtml4.LOADERTYPES = {\n  'a::href': 2,\n  'area::href': 2,\n  'audio::src': 2,\n  'blockquote::cite': 2,\n  'command::icon': 1,\n  'del::cite': 2,\n  'form::action': 2,\n  'img::src': 1,\n  'input::src': 1,\n  'ins::cite': 2,\n  'q::cite': 2,\n  'video::poster': 1,\n  'video::src': 2\n};\nhtml4[ 'LOADERTYPES' ] = html4.LOADERTYPES;\n// export for Closure Compiler\nif (typeof window !== 'undefined') {\n  window['html4'] = html4;\n}\n;\n// Copyright (C) 2006 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//      http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/**\n * @fileoverview\n * An HTML sanitizer that can satisfy a variety of security policies.\n *\n * <p>\n * The HTML sanitizer is built around a SAX parser and HTML element and\n * attributes schemas.\n *\n * If the cssparser is loaded, inline styles are sanitized using the\n * css property and value schemas.  Else they are remove during\n * sanitization.\n *\n * If it exists, uses parseCssDeclarations, sanitizeCssProperty,  cssSchema\n *\n * @author mikesamuel@gmail.com\n * @author jasvir@gmail.com\n * \\@requires html4, URI\n * \\@overrides window\n * \\@provides html, html_sanitize, defs\n */\n\n// The Turkish i seems to be a non-issue, but abort in case it is.\nif ('I'.toLowerCase() !== 'i') { throw 'I/i problem'; }\n\n// TODO(kpreid): Refactor so there is no global introduced by these type\n// definitions.\n\n/**\n * Contains types related to sanitizer policies.\n * \\@namespace\n */\nvar defs = {};\n\n/**\n * A decision about what to do with a tag.\n * @typedef {{ 'attribs': ?Array.<string>, 'tagName': ?string }}\n */\ndefs.TagPolicyDecision;\n\n/**\n * A function that takes a tag name (canonical) and an array of attributes\n * and decides what to do, returning null to indicate the tag should be dropped\n * entirely from the output.\n *\n * @typedef {function(string, Array.<string>): ?defs.TagPolicyDecision}\n */\ndefs.TagPolicy;\n\n\n/**\n * \\@namespace\n */\nvar html = (function(html4) {\n\n  // For closure compiler\n  var parseCssDeclarations, sanitizeCssProperty, cssSchema;\n  if ('undefined' !== typeof window) {\n    parseCssDeclarations = window['parseCssDeclarations'];\n    sanitizeCssProperty = window['sanitizeCssProperty'];\n    cssSchema = window['cssSchema'];\n  }\n\n  // The keys of this object must be 'quoted' or JSCompiler will mangle them!\n  // This is a partial list -- lookupEntity() uses the host browser's parser\n  // (when available) to implement full entity lookup.\n  // Note that entities are in general case-sensitive; the uppercase ones are\n  // explicitly defined by HTML5 (presumably as compatibility).\n  var ENTITIES = {\n    'lt': '<',\n    'LT': '<',\n    'gt': '>',\n    'GT': '>',\n    'amp': '&',\n    'AMP': '&',\n    'quot': '\"',\n    'apos': '\\'',\n    'nbsp': '\\u00A0'\n  };\n\n  // Patterns for types of entity/character reference names.\n  var decimalEscapeRe = /^#(\\d+)$/;\n  var hexEscapeRe = /^#x([0-9A-Fa-f]+)$/;\n  // contains every entity per http://www.w3.org/TR/2011/WD-html5-20110113/named-character-references.html\n  var safeEntityNameRe = /^[A-Za-z][A-za-z0-9]+$/;\n  // Used as a hook to invoke the browser's entity parsing. <textarea> is used\n  // because its content is parsed for entities but not tags.\n  // TODO(kpreid): This retrieval is a kludge and leads to silent loss of\n  // functionality if the document isn't available.\n  var entityLookupElement =\n      ('undefined' !== typeof window && window['document'])\n          ? window['document'].createElement('textarea') : null;\n  /**\n   * Decodes an HTML entity.\n   *\n   * {\\@updoc\n   * $ lookupEntity('lt')\n   * # '<'\n   * $ lookupEntity('GT')\n   * # '>'\n   * $ lookupEntity('amp')\n   * # '&'\n   * $ lookupEntity('nbsp')\n   * # '\\xA0'\n   * $ lookupEntity('apos')\n   * # \"'\"\n   * $ lookupEntity('quot')\n   * # '\"'\n   * $ lookupEntity('#xa')\n   * # '\\n'\n   * $ lookupEntity('#10')\n   * # '\\n'\n   * $ lookupEntity('#x0a')\n   * # '\\n'\n   * $ lookupEntity('#010')\n   * # '\\n'\n   * $ lookupEntity('#x00A')\n   * # '\\n'\n   * $ lookupEntity('Pi')      // Known failure\n   * # '\\u03A0'\n   * $ lookupEntity('pi')      // Known failure\n   * # '\\u03C0'\n   * }\n   *\n   * @param {string} name the content between the '&' and the ';'.\n   * @return {string} a single unicode code-point as a string.\n   */\n  function lookupEntity(name) {\n    // TODO: entity lookup as specified by HTML5 actually depends on the\n    // presence of the \";\".\n    if (ENTITIES.hasOwnProperty(name)) { return ENTITIES[name]; }\n    var m = name.match(decimalEscapeRe);\n    if (m) {\n      return String.fromCharCode(parseInt(m[1], 10));\n    } else if (!!(m = name.match(hexEscapeRe))) {\n      return String.fromCharCode(parseInt(m[1], 16));\n    } else if (entityLookupElement && safeEntityNameRe.test(name)) {\n      entityLookupElement.innerHTML = '&' + name + ';';\n      var text = entityLookupElement.textContent;\n      ENTITIES[name] = text;\n      return text;\n    } else {\n      return '&' + name + ';';\n    }\n  }\n\n  function decodeOneEntity(_, name) {\n    return lookupEntity(name);\n  }\n\n  var nulRe = /\\0/g;\n  function stripNULs(s) {\n    return s.replace(nulRe, '');\n  }\n\n  var ENTITY_RE_1 = /&(#[0-9]+|#[xX][0-9A-Fa-f]+|\\w+);/g;\n  var ENTITY_RE_2 = /^(#[0-9]+|#[xX][0-9A-Fa-f]+|\\w+);/;\n  /**\n   * The plain text of a chunk of HTML CDATA which possibly containing.\n   *\n   * {\\@updoc\n   * $ unescapeEntities('')\n   * # ''\n   * $ unescapeEntities('hello World!')\n   * # 'hello World!'\n   * $ unescapeEntities('1 &lt; 2 &amp;&AMP; 4 &gt; 3&#10;')\n   * # '1 < 2 && 4 > 3\\n'\n   * $ unescapeEntities('&lt;&lt <- unfinished entity&gt;')\n   * # '<&lt <- unfinished entity>'\n   * $ unescapeEntities('/foo?bar=baz&copy=true')  // & often unescaped in URLS\n   * # '/foo?bar=baz&copy=true'\n   * $ unescapeEntities('pi=&pi;&#x3c0;, Pi=&Pi;\\u03A0') // FIXME: known failure\n   * # 'pi=\\u03C0\\u03c0, Pi=\\u03A0\\u03A0'\n   * }\n   *\n   * @param {string} s a chunk of HTML CDATA.  It must not start or end inside\n   *     an HTML entity.\n   */\n  function unescapeEntities(s) {\n    return s.replace(ENTITY_RE_1, decodeOneEntity);\n  }\n\n  var ampRe = /&/g;\n  var looseAmpRe = /&([^a-z#]|#(?:[^0-9x]|x(?:[^0-9a-f]|$)|$)|$)/gi;\n  var ltRe = /[<]/g;\n  var gtRe = />/g;\n  var quotRe = /\\\"/g;\n\n  /**\n   * Escapes HTML special characters in attribute values.\n   *\n   * {\\@updoc\n   * $ escapeAttrib('')\n   * # ''\n   * $ escapeAttrib('\"<<&==&>>\"')  // Do not just escape the first occurrence.\n   * # '&#34;&lt;&lt;&amp;&#61;&#61;&amp;&gt;&gt;&#34;'\n   * $ escapeAttrib('Hello <World>!')\n   * # 'Hello &lt;World&gt;!'\n   * }\n   */\n  function escapeAttrib(s) {\n    return ('' + s).replace(ampRe, '&amp;').replace(ltRe, '&lt;')\n        .replace(gtRe, '&gt;').replace(quotRe, '&#34;');\n  }\n\n  /**\n   * Escape entities in RCDATA that can be escaped without changing the meaning.\n   * {\\@updoc\n   * $ normalizeRCData('1 < 2 &&amp; 3 > 4 &amp;& 5 &lt; 7&8')\n   * # '1 &lt; 2 &amp;&amp; 3 &gt; 4 &amp;&amp; 5 &lt; 7&amp;8'\n   * }\n   */\n  function normalizeRCData(rcdata) {\n    return rcdata\n        .replace(looseAmpRe, '&amp;$1')\n        .replace(ltRe, '&lt;')\n        .replace(gtRe, '&gt;');\n  }\n\n  // TODO(felix8a): validate sanitizer regexs against the HTML5 grammar at\n  // http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html\n  // http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html\n  // http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html\n  // http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html\n\n  // We initially split input so that potentially meaningful characters\n  // like '<' and '>' are separate tokens, using a fast dumb process that\n  // ignores quoting.  Then we walk that token stream, and when we see a\n  // '<' that's the start of a tag, we use ATTR_RE to extract tag\n  // attributes from the next token.  That token will never have a '>'\n  // character.  However, it might have an unbalanced quote character, and\n  // when we see that, we combine additional tokens to balance the quote.\n\n  var ATTR_RE = new RegExp(\n    '^\\\\s*' +\n    '([-.:\\\\w]+)' +             // 1 = Attribute name\n    '(?:' + (\n      '\\\\s*(=)\\\\s*' +           // 2 = Is there a value?\n      '(' + (                   // 3 = Attribute value\n        // TODO(felix8a): maybe use backref to match quotes\n        '(\\\")[^\\\"]*(\\\"|$)' +    // 4, 5 = Double-quoted string\n        '|' +\n        '(\\')[^\\']*(\\'|$)' +    // 6, 7 = Single-quoted string\n        '|' +\n        // Positive lookahead to prevent interpretation of\n        // <foo a= b=c> as <foo a='b=c'>\n        // TODO(felix8a): might be able to drop this case\n        '(?=[a-z][-\\\\w]*\\\\s*=)' +\n        '|' +\n        // Unquoted value that isn't an attribute name\n        // (since we didn't match the positive lookahead above)\n        '[^\\\"\\'\\\\s]*' ) +\n      ')' ) +\n    ')?',\n    'i');\n\n  // false on IE<=8, true on most other browsers\n  var splitWillCapture = ('a,b'.split(/(,)/).length === 3);\n\n  // bitmask for tags with special parsing, like <script> and <textarea>\n  var EFLAGS_TEXT = html4.eflags['CDATA'] | html4.eflags['RCDATA'];\n\n  /**\n   * Given a SAX-like event handler, produce a function that feeds those\n   * events and a parameter to the event handler.\n   *\n   * The event handler has the form:{@code\n   * {\n   *   // Name is an upper-case HTML tag name.  Attribs is an array of\n   *   // alternating upper-case attribute names, and attribute values.  The\n   *   // attribs array is reused by the parser.  Param is the value passed to\n   *   // the saxParser.\n   *   startTag: function (name, attribs, param) { ... },\n   *   endTag:   function (name, param) { ... },\n   *   pcdata:   function (text, param) { ... },\n   *   rcdata:   function (text, param) { ... },\n   *   cdata:    function (text, param) { ... },\n   *   startDoc: function (param) { ... },\n   *   endDoc:   function (param) { ... }\n   * }}\n   *\n   * @param {Object} handler a record containing event handlers.\n   * @return {function(string, Object)} A function that takes a chunk of HTML\n   *     and a parameter.  The parameter is passed on to the handler methods.\n   */\n  function makeSaxParser(handler) {\n    // Accept quoted or unquoted keys (Closure compat)\n    var hcopy = {\n      cdata: handler.cdata || handler['cdata'],\n      comment: handler.comment || handler['comment'],\n      endDoc: handler.endDoc || handler['endDoc'],\n      endTag: handler.endTag || handler['endTag'],\n      pcdata: handler.pcdata || handler['pcdata'],\n      rcdata: handler.rcdata || handler['rcdata'],\n      startDoc: handler.startDoc || handler['startDoc'],\n      startTag: handler.startTag || handler['startTag']\n    };\n    return function(htmlText, param) {\n      return parse(htmlText, hcopy, param);\n    };\n  }\n\n  // Parsing strategy is to split input into parts that might be lexically\n  // meaningful (every \">\" becomes a separate part), and then recombine\n  // parts if we discover they're in a different context.\n\n  // TODO(felix8a): Significant performance regressions from -legacy,\n  // tested on\n  //    Chrome 18.0\n  //    Firefox 11.0\n  //    IE 6, 7, 8, 9\n  //    Opera 11.61\n  //    Safari 5.1.3\n  // Many of these are unusual patterns that are linearly slower and still\n  // pretty fast (eg 1ms to 5ms), so not necessarily worth fixing.\n\n  // TODO(felix8a): \"<script> && && && ... <\\/script>\" is slower on all\n  // browsers.  The hotspot is htmlSplit.\n\n  // TODO(felix8a): \"<p title='>>>>...'><\\/p>\" is slower on all browsers.\n  // This is partly htmlSplit, but the hotspot is parseTagAndAttrs.\n\n  // TODO(felix8a): \"<a><\\/a><a><\\/a>...\" is slower on IE9.\n  // \"<a>1<\\/a><a>1<\\/a>...\" is faster, \"<a><\\/a>2<a><\\/a>2...\" is faster.\n\n  // TODO(felix8a): \"<p<p<p...\" is slower on IE[6-8]\n\n  var continuationMarker = {};\n  function parse(htmlText, handler, param) {\n    var m, p, tagName;\n    var parts = htmlSplit(htmlText);\n    var state = {\n      noMoreGT: false,\n      noMoreEndComments: false\n    };\n    parseCPS(handler, parts, 0, state, param);\n  }\n\n  function continuationMaker(h, parts, initial, state, param) {\n    return function () {\n      parseCPS(h, parts, initial, state, param);\n    };\n  }\n\n  function parseCPS(h, parts, initial, state, param) {\n    try {\n      if (h.startDoc && initial == 0) { h.startDoc(param); }\n      var m, p, tagName;\n      for (var pos = initial, end = parts.length; pos < end;) {\n        var current = parts[pos++];\n        var next = parts[pos];\n        switch (current) {\n        case '&':\n          if (ENTITY_RE_2.test(next)) {\n            if (h.pcdata) {\n              h.pcdata('&' + next, param, continuationMarker,\n                continuationMaker(h, parts, pos, state, param));\n            }\n            pos++;\n          } else {\n            if (h.pcdata) { h.pcdata(\"&amp;\", param, continuationMarker,\n                continuationMaker(h, parts, pos, state, param));\n            }\n          }\n          break;\n        case '<\\/':\n          if ((m = /^([-\\w:]+)[^\\'\\\"]*/.exec(next))) {\n            if (m[0].length === next.length && parts[pos + 1] === '>') {\n              // fast case, no attribute parsing needed\n              pos += 2;\n              tagName = m[1].toLowerCase();\n              if (h.endTag) {\n                h.endTag(tagName, param, continuationMarker,\n                  continuationMaker(h, parts, pos, state, param));\n              }\n            } else {\n              // slow case, need to parse attributes\n              // TODO(felix8a): do we really care about misparsing this?\n              pos = parseEndTag(\n                parts, pos, h, param, continuationMarker, state);\n            }\n          } else {\n            if (h.pcdata) {\n              h.pcdata('&lt;/', param, continuationMarker,\n                continuationMaker(h, parts, pos, state, param));\n            }\n          }\n          break;\n        case '<':\n          if (m = /^([-\\w:]+)\\s*\\/?/.exec(next)) {\n            if (m[0].length === next.length && parts[pos + 1] === '>') {\n              // fast case, no attribute parsing needed\n              pos += 2;\n              tagName = m[1].toLowerCase();\n              if (h.startTag) {\n                h.startTag(tagName, [], param, continuationMarker,\n                  continuationMaker(h, parts, pos, state, param));\n              }\n              // tags like <script> and <textarea> have special parsing\n              var eflags = html4.ELEMENTS[tagName];\n              if (eflags & EFLAGS_TEXT) {\n                var tag = { name: tagName, next: pos, eflags: eflags };\n                pos = parseText(\n                  parts, tag, h, param, continuationMarker, state);\n              }\n            } else {\n              // slow case, need to parse attributes\n              pos = parseStartTag(\n                parts, pos, h, param, continuationMarker, state);\n            }\n          } else {\n            if (h.pcdata) {\n              h.pcdata('&lt;', param, continuationMarker,\n                continuationMaker(h, parts, pos, state, param));\n            }\n          }\n          break;\n        case '<\\!--':\n          // The pathological case is n copies of '<\\!--' without '-->', and\n          // repeated failure to find '-->' is quadratic.  We avoid that by\n          // remembering when search for '-->' fails.\n          if (!state.noMoreEndComments) {\n            // A comment <\\!--x--> is split into three tokens:\n            //   '<\\!--', 'x--', '>'\n            // We want to find the next '>' token that has a preceding '--'.\n            // pos is at the 'x--'.\n            for (p = pos + 1; p < end; p++) {\n              if (parts[p] === '>' && /--$/.test(parts[p - 1])) { break; }\n            }\n            if (p < end) {\n              if (h.comment) {\n                var comment = parts.slice(pos, p).join('');\n                h.comment(\n                  comment.substr(0, comment.length - 2), param,\n                  continuationMarker,\n                  continuationMaker(h, parts, p + 1, state, param));\n              }\n              pos = p + 1;\n            } else {\n              state.noMoreEndComments = true;\n            }\n          }\n          if (state.noMoreEndComments) {\n            if (h.pcdata) {\n              h.pcdata('&lt;!--', param, continuationMarker,\n                continuationMaker(h, parts, pos, state, param));\n            }\n          }\n          break;\n        case '<\\!':\n          if (!/^\\w/.test(next)) {\n            if (h.pcdata) {\n              h.pcdata('&lt;!', param, continuationMarker,\n                continuationMaker(h, parts, pos, state, param));\n            }\n          } else {\n            // similar to noMoreEndComment logic\n            if (!state.noMoreGT) {\n              for (p = pos + 1; p < end; p++) {\n                if (parts[p] === '>') { break; }\n              }\n              if (p < end) {\n                pos = p + 1;\n              } else {\n                state.noMoreGT = true;\n              }\n            }\n            if (state.noMoreGT) {\n              if (h.pcdata) {\n                h.pcdata('&lt;!', param, continuationMarker,\n                  continuationMaker(h, parts, pos, state, param));\n              }\n            }\n          }\n          break;\n        case '<?':\n          // similar to noMoreEndComment logic\n          if (!state.noMoreGT) {\n            for (p = pos + 1; p < end; p++) {\n              if (parts[p] === '>') { break; }\n            }\n            if (p < end) {\n              pos = p + 1;\n            } else {\n              state.noMoreGT = true;\n            }\n          }\n          if (state.noMoreGT) {\n            if (h.pcdata) {\n              h.pcdata('&lt;?', param, continuationMarker,\n                continuationMaker(h, parts, pos, state, param));\n            }\n          }\n          break;\n        case '>':\n          if (h.pcdata) {\n            h.pcdata(\"&gt;\", param, continuationMarker,\n              continuationMaker(h, parts, pos, state, param));\n          }\n          break;\n        case '':\n          break;\n        default:\n          if (h.pcdata) {\n            h.pcdata(current, param, continuationMarker,\n              continuationMaker(h, parts, pos, state, param));\n          }\n          break;\n        }\n      }\n      if (h.endDoc) { h.endDoc(param); }\n    } catch (e) {\n      if (e !== continuationMarker) { throw e; }\n    }\n  }\n\n  // Split str into parts for the html parser.\n  function htmlSplit(str) {\n    // can't hoist this out of the function because of the re.exec loop.\n    var re = /(<\\/|<\\!--|<[!?]|[&<>])/g;\n    str += '';\n    if (splitWillCapture) {\n      return str.split(re);\n    } else {\n      var parts = [];\n      var lastPos = 0;\n      var m;\n      while ((m = re.exec(str)) !== null) {\n        parts.push(str.substring(lastPos, m.index));\n        parts.push(m[0]);\n        lastPos = m.index + m[0].length;\n      }\n      parts.push(str.substring(lastPos));\n      return parts;\n    }\n  }\n\n  function parseEndTag(parts, pos, h, param, continuationMarker, state) {\n    var tag = parseTagAndAttrs(parts, pos);\n    // drop unclosed tags\n    if (!tag) { return parts.length; }\n    if (h.endTag) {\n      h.endTag(tag.name, param, continuationMarker,\n        continuationMaker(h, parts, pos, state, param));\n    }\n    return tag.next;\n  }\n\n  function parseStartTag(parts, pos, h, param, continuationMarker, state) {\n    var tag = parseTagAndAttrs(parts, pos);\n    // drop unclosed tags\n    if (!tag) { return parts.length; }\n    if (h.startTag) {\n      h.startTag(tag.name, tag.attrs, param, continuationMarker,\n        continuationMaker(h, parts, tag.next, state, param));\n    }\n    // tags like <script> and <textarea> have special parsing\n    if (tag.eflags & EFLAGS_TEXT) {\n      return parseText(parts, tag, h, param, continuationMarker, state);\n    } else {\n      return tag.next;\n    }\n  }\n\n  var endTagRe = {};\n\n  // Tags like <script> and <textarea> are flagged as CDATA or RCDATA,\n  // which means everything is text until we see the correct closing tag.\n  function parseText(parts, tag, h, param, continuationMarker, state) {\n    var end = parts.length;\n    if (!endTagRe.hasOwnProperty(tag.name)) {\n      endTagRe[tag.name] = new RegExp('^' + tag.name + '(?:[\\\\s\\\\/]|$)', 'i');\n    }\n    var re = endTagRe[tag.name];\n    var first = tag.next;\n    var p = tag.next + 1;\n    for (; p < end; p++) {\n      if (parts[p - 1] === '<\\/' && re.test(parts[p])) { break; }\n    }\n    if (p < end) { p -= 1; }\n    var buf = parts.slice(first, p).join('');\n    if (tag.eflags & html4.eflags['CDATA']) {\n      if (h.cdata) {\n        h.cdata(buf, param, continuationMarker,\n          continuationMaker(h, parts, p, state, param));\n      }\n    } else if (tag.eflags & html4.eflags['RCDATA']) {\n      if (h.rcdata) {\n        h.rcdata(normalizeRCData(buf), param, continuationMarker,\n          continuationMaker(h, parts, p, state, param));\n      }\n    } else {\n      throw new Error('bug');\n    }\n    return p;\n  }\n\n  // at this point, parts[pos-1] is either \"<\" or \"<\\/\".\n  function parseTagAndAttrs(parts, pos) {\n    var m = /^([-\\w:]+)/.exec(parts[pos]);\n    var tag = {};\n    tag.name = m[1].toLowerCase();\n    tag.eflags = html4.ELEMENTS[tag.name];\n    var buf = parts[pos].substr(m[0].length);\n    // Find the next '>'.  We optimistically assume this '>' is not in a\n    // quoted context, and further down we fix things up if it turns out to\n    // be quoted.\n    var p = pos + 1;\n    var end = parts.length;\n    for (; p < end; p++) {\n      if (parts[p] === '>') { break; }\n      buf += parts[p];\n    }\n    if (end <= p) { return void 0; }\n    var attrs = [];\n    while (buf !== '') {\n      m = ATTR_RE.exec(buf);\n      if (!m) {\n        // No attribute found: skip garbage\n        buf = buf.replace(/^[\\s\\S][^a-z\\s]*/, '');\n\n      } else if ((m[4] && !m[5]) || (m[6] && !m[7])) {\n        // Unterminated quote: slurp to the next unquoted '>'\n        var quote = m[4] || m[6];\n        var sawQuote = false;\n        var abuf = [buf, parts[p++]];\n        for (; p < end; p++) {\n          if (sawQuote) {\n            if (parts[p] === '>') { break; }\n          } else if (0 <= parts[p].indexOf(quote)) {\n            sawQuote = true;\n          }\n          abuf.push(parts[p]);\n        }\n        // Slurp failed: lose the garbage\n        if (end <= p) { break; }\n        // Otherwise retry attribute parsing\n        buf = abuf.join('');\n        continue;\n\n      } else {\n        // We have an attribute\n        var aName = m[1].toLowerCase();\n        var aValue = m[2] ? decodeValue(m[3]) : '';\n        attrs.push(aName, aValue);\n        buf = buf.substr(m[0].length);\n      }\n    }\n    tag.attrs = attrs;\n    tag.next = p + 1;\n    return tag;\n  }\n\n  function decodeValue(v) {\n    var q = v.charCodeAt(0);\n    if (q === 0x22 || q === 0x27) { // \" or '\n      v = v.substr(1, v.length - 2);\n    }\n    return unescapeEntities(stripNULs(v));\n  }\n\n  /**\n   * Returns a function that strips unsafe tags and attributes from html.\n   * @param {defs.TagPolicy} tagPolicy\n   *     A function that takes (tagName, attribs[]), where tagName is a key in\n   *     html4.ELEMENTS and attribs is an array of alternating attribute names\n   *     and values.  It should return a record (as follows), or null to delete\n   *     the element.  It's okay for tagPolicy to modify the attribs array,\n   *     but the same array is reused, so it should not be held between calls.\n   *     Record keys:\n   *        attribs: (required) Sanitized attributes array.\n   *        tagName: Replacement tag name.\n   * @return {function(string, Array)} A function that sanitizes a string of\n   *     HTML and appends result strings to the second argument, an array.\n   */\n  function makeHtmlSanitizer(tagPolicy) {\n    var stack;\n    var ignoring;\n    var emit = function (text, out) {\n      if (!ignoring) { out.push(text); }\n    };\n    return makeSaxParser({\n      'startDoc': function(_) {\n        stack = [];\n        ignoring = false;\n      },\n      'startTag': function(tagNameOrig, attribs, out) {\n        if (ignoring) { return; }\n        if (!html4.ELEMENTS.hasOwnProperty(tagNameOrig)) { return; }\n        var eflagsOrig = html4.ELEMENTS[tagNameOrig];\n        if (eflagsOrig & html4.eflags['FOLDABLE']) {\n          return;\n        }\n\n        var decision = tagPolicy(tagNameOrig, attribs);\n        if (!decision) {\n          ignoring = !(eflagsOrig & html4.eflags['EMPTY']);\n          return;\n        } else if (typeof decision !== 'object') {\n          throw new Error('tagPolicy did not return object (old API?)');\n        }\n        if ('attribs' in decision) {\n          attribs = decision['attribs'];\n        } else {\n          throw new Error('tagPolicy gave no attribs');\n        }\n        var eflagsRep;\n        var tagNameRep;\n        if ('tagName' in decision) {\n          tagNameRep = decision['tagName'];\n          eflagsRep = html4.ELEMENTS[tagNameRep];\n        } else {\n          tagNameRep = tagNameOrig;\n          eflagsRep = eflagsOrig;\n        }\n        // TODO(mikesamuel): relying on tagPolicy not to insert unsafe\n        // attribute names.\n\n        // If this is an optional-end-tag element and either this element or its\n        // previous like sibling was rewritten, then insert a close tag to\n        // preserve structure.\n        if (eflagsOrig & html4.eflags['OPTIONAL_ENDTAG']) {\n          var onStack = stack[stack.length - 1];\n          if (onStack && onStack.orig === tagNameOrig &&\n              (onStack.rep !== tagNameRep || tagNameOrig !== tagNameRep)) {\n                out.push('<\\/', onStack.rep, '>');\n          }\n        }\n\n        if (!(eflagsOrig & html4.eflags['EMPTY'])) {\n          stack.push({orig: tagNameOrig, rep: tagNameRep});\n        }\n\n        out.push('<', tagNameRep);\n        for (var i = 0, n = attribs.length; i < n; i += 2) {\n          var attribName = attribs[i],\n              value = attribs[i + 1];\n          if (value !== null && value !== void 0) {\n            out.push(' ', attribName, '=\"', escapeAttrib(value), '\"');\n          }\n        }\n        out.push('>');\n\n        if ((eflagsOrig & html4.eflags['EMPTY'])\n            && !(eflagsRep & html4.eflags['EMPTY'])) {\n          // replacement is non-empty, synthesize end tag\n          out.push('<\\/', tagNameRep, '>');\n        }\n      },\n      'endTag': function(tagName, out) {\n        if (ignoring) {\n          ignoring = false;\n          return;\n        }\n        if (!html4.ELEMENTS.hasOwnProperty(tagName)) { return; }\n        var eflags = html4.ELEMENTS[tagName];\n        if (!(eflags & (html4.eflags['EMPTY'] | html4.eflags['FOLDABLE']))) {\n          var index;\n          if (eflags & html4.eflags['OPTIONAL_ENDTAG']) {\n            for (index = stack.length; --index >= 0;) {\n              var stackElOrigTag = stack[index].orig;\n              if (stackElOrigTag === tagName) { break; }\n              if (!(html4.ELEMENTS[stackElOrigTag] &\n                    html4.eflags['OPTIONAL_ENDTAG'])) {\n                // Don't pop non optional end tags looking for a match.\n                return;\n              }\n            }\n          } else {\n            for (index = stack.length; --index >= 0;) {\n              if (stack[index].orig === tagName) { break; }\n            }\n          }\n          if (index < 0) { return; }  // Not opened.\n          for (var i = stack.length; --i > index;) {\n            var stackElRepTag = stack[i].rep;\n            if (!(html4.ELEMENTS[stackElRepTag] &\n                  html4.eflags['OPTIONAL_ENDTAG'])) {\n              out.push('<\\/', stackElRepTag, '>');\n            }\n          }\n          if (index < stack.length) {\n            tagName = stack[index].rep;\n          }\n          stack.length = index;\n          out.push('<\\/', tagName, '>');\n        }\n      },\n      'pcdata': emit,\n      'rcdata': emit,\n      'cdata': emit,\n      'endDoc': function(out) {\n        for (; stack.length; stack.length--) {\n          out.push('<\\/', stack[stack.length - 1].rep, '>');\n        }\n      }\n    });\n  }\n\n  var ALLOWED_URI_SCHEMES = /^(?:https?|geo|mailto|sms|tel)$/i;\n\n  function safeUri(uri, effect, ltype, hints, naiveUriRewriter) {\n    if (!naiveUriRewriter) { return null; }\n    try {\n      var parsed = URI.parse('' + uri);\n      if (parsed) {\n        if (!parsed.hasScheme() ||\n            ALLOWED_URI_SCHEMES.test(parsed.getScheme())) {\n          var safe = naiveUriRewriter(parsed, effect, ltype, hints);\n          return safe ? safe.toString() : null;\n        }\n      }\n    } catch (e) {\n      return null;\n    }\n    return null;\n  }\n\n  function log(logger, tagName, attribName, oldValue, newValue) {\n    if (!attribName) {\n      logger(tagName + \" removed\", {\n        change: \"removed\",\n        tagName: tagName\n      });\n    }\n    if (oldValue !== newValue) {\n      var changed = \"changed\";\n      if (oldValue && !newValue) {\n        changed = \"removed\";\n      } else if (!oldValue && newValue)  {\n        changed = \"added\";\n      }\n      logger(tagName + \".\" + attribName + \" \" + changed, {\n        change: changed,\n        tagName: tagName,\n        attribName: attribName,\n        oldValue: oldValue,\n        newValue: newValue\n      });\n    }\n  }\n\n  function lookupAttribute(map, tagName, attribName) {\n    var attribKey;\n    attribKey = tagName + '::' + attribName;\n    if (map.hasOwnProperty(attribKey)) {\n      return map[attribKey];\n    }\n    attribKey = '*::' + attribName;\n    if (map.hasOwnProperty(attribKey)) {\n      return map[attribKey];\n    }\n    return void 0;\n  }\n  function getAttributeType(tagName, attribName) {\n    return lookupAttribute(html4.ATTRIBS, tagName, attribName);\n  }\n  function getLoaderType(tagName, attribName) {\n    return lookupAttribute(html4.LOADERTYPES, tagName, attribName);\n  }\n  function getUriEffect(tagName, attribName) {\n    return lookupAttribute(html4.URIEFFECTS, tagName, attribName);\n  }\n\n  /**\n   * Sanitizes attributes on an HTML tag.\n   * @param {string} tagName An HTML tag name in lowercase.\n   * @param {Array.<?string>} attribs An array of alternating names and values.\n   * @param {?function(?string): ?string} opt_naiveUriRewriter A transform to\n   *     apply to URI attributes; it can return a new string value, or null to\n   *     delete the attribute.  If unspecified, URI attributes are deleted.\n   * @param {function(?string): ?string} opt_nmTokenPolicy A transform to apply\n   *     to attributes containing HTML names, element IDs, and space-separated\n   *     lists of classes; it can return a new string value, or null to delete\n   *     the attribute.  If unspecified, these attributes are kept unchanged.\n   * @return {Array.<?string>} The sanitized attributes as a list of alternating\n   *     names and values, where a null value means to omit the attribute.\n   */\n  function sanitizeAttribs(tagName, attribs,\n    opt_naiveUriRewriter, opt_nmTokenPolicy, opt_logger) {\n    // TODO(felix8a): it's obnoxious that domado duplicates much of this\n    // TODO(felix8a): maybe consistently enforce constraints like target=\n    for (var i = 0; i < attribs.length; i += 2) {\n      var attribName = attribs[i];\n      var value = attribs[i + 1];\n      var oldValue = value;\n      var atype = null, attribKey;\n      if ((attribKey = tagName + '::' + attribName,\n           html4.ATTRIBS.hasOwnProperty(attribKey)) ||\n          (attribKey = '*::' + attribName,\n           html4.ATTRIBS.hasOwnProperty(attribKey))) {\n        atype = html4.ATTRIBS[attribKey];\n      }\n      if (atype !== null) {\n        switch (atype) {\n          case html4.atype['NONE']: break;\n          case html4.atype['SCRIPT']:\n            value = null;\n            if (opt_logger) {\n              log(opt_logger, tagName, attribName, oldValue, value);\n            }\n            break;\n          case html4.atype['STYLE']:\n            if ('undefined' === typeof parseCssDeclarations) {\n              value = null;\n              if (opt_logger) {\n                log(opt_logger, tagName, attribName, oldValue, value);\n\t      }\n              break;\n            }\n            var sanitizedDeclarations = [];\n            parseCssDeclarations(\n                value,\n                {\n                  'declaration': function (property, tokens) {\n                    var normProp = property.toLowerCase();\n                    sanitizeCssProperty(\n                        normProp, tokens,\n                        opt_naiveUriRewriter\n                        ? function (url) {\n                            return safeUri(\n                                url, html4.ueffects.SAME_DOCUMENT,\n                                html4.ltypes.SANDBOXED,\n                                {\n                                  \"TYPE\": \"CSS\",\n                                  \"CSS_PROP\": normProp\n                                }, opt_naiveUriRewriter);\n                          }\n                        : null);\n                    if (tokens.length) {\n                      sanitizedDeclarations.push(\n                          normProp + ': ' + tokens.join(' '));\n                    }\n                  }\n                });\n            value = sanitizedDeclarations.length > 0 ?\n              sanitizedDeclarations.join(' ; ') : null;\n            if (opt_logger) {\n              log(opt_logger, tagName, attribName, oldValue, value);\n            }\n            break;\n          case html4.atype['ID']:\n          case html4.atype['IDREF']:\n          case html4.atype['IDREFS']:\n          case html4.atype['GLOBAL_NAME']:\n          case html4.atype['LOCAL_NAME']:\n          case html4.atype['CLASSES']:\n            value = opt_nmTokenPolicy ? opt_nmTokenPolicy(value) : value;\n            if (opt_logger) {\n              log(opt_logger, tagName, attribName, oldValue, value);\n            }\n            break;\n          case html4.atype['URI']:\n            value = safeUri(value,\n              getUriEffect(tagName, attribName),\n              getLoaderType(tagName, attribName),\n              {\n                \"TYPE\": \"MARKUP\",\n                \"XML_ATTR\": attribName,\n                \"XML_TAG\": tagName\n              }, opt_naiveUriRewriter);\n              if (opt_logger) {\n              log(opt_logger, tagName, attribName, oldValue, value);\n            }\n            break;\n          case html4.atype['URI_FRAGMENT']:\n            if (value && '#' === value.charAt(0)) {\n              value = value.substring(1);  // remove the leading '#'\n              value = opt_nmTokenPolicy ? opt_nmTokenPolicy(value) : value;\n              if (value !== null && value !== void 0) {\n                value = '#' + value;  // restore the leading '#'\n              }\n            } else {\n              value = null;\n            }\n            if (opt_logger) {\n              log(opt_logger, tagName, attribName, oldValue, value);\n            }\n            break;\n          default:\n            value = null;\n            if (opt_logger) {\n              log(opt_logger, tagName, attribName, oldValue, value);\n            }\n            break;\n        }\n      } else {\n        value = null;\n        if (opt_logger) {\n          log(opt_logger, tagName, attribName, oldValue, value);\n        }\n      }\n      attribs[i + 1] = value;\n    }\n    return attribs;\n  }\n\n  /**\n   * Creates a tag policy that omits all tags marked UNSAFE in html4-defs.js\n   * and applies the default attribute sanitizer with the supplied policy for\n   * URI attributes and NMTOKEN attributes.\n   * @param {?function(?string): ?string} opt_naiveUriRewriter A transform to\n   *     apply to URI attributes.  If not given, URI attributes are deleted.\n   * @param {function(?string): ?string} opt_nmTokenPolicy A transform to apply\n   *     to attributes containing HTML names, element IDs, and space-separated\n   *     lists of classes.  If not given, such attributes are left unchanged.\n   * @return {defs.TagPolicy} A tagPolicy suitable for\n   *     passing to html.sanitize.\n   */\n  function makeTagPolicy(\n    opt_naiveUriRewriter, opt_nmTokenPolicy, opt_logger) {\n    return function(tagName, attribs) {\n      if (!(html4.ELEMENTS[tagName] & html4.eflags['UNSAFE'])) {\n        return {\n          'attribs': sanitizeAttribs(tagName, attribs,\n            opt_naiveUriRewriter, opt_nmTokenPolicy, opt_logger)\n        };\n      } else {\n        if (opt_logger) {\n          log(opt_logger, tagName, undefined, undefined, undefined);\n        }\n      }\n    };\n  }\n\n  /**\n   * Sanitizes HTML tags and attributes according to a given policy.\n   * @param {string} inputHtml The HTML to sanitize.\n   * @param {function(string, Array.<?string>)} tagPolicy A function that\n   *     decides which tags to accept and sanitizes their attributes (see\n   *     makeHtmlSanitizer above for details).\n   * @return {string} The sanitized HTML.\n   */\n  function sanitizeWithPolicy(inputHtml, tagPolicy) {\n    var outputArray = [];\n    makeHtmlSanitizer(tagPolicy)(inputHtml, outputArray);\n    return outputArray.join('');\n  }\n\n  /**\n   * Strips unsafe tags and attributes from HTML.\n   * @param {string} inputHtml The HTML to sanitize.\n   * @param {?function(?string): ?string} opt_naiveUriRewriter A transform to\n   *     apply to URI attributes.  If not given, URI attributes are deleted.\n   * @param {function(?string): ?string} opt_nmTokenPolicy A transform to apply\n   *     to attributes containing HTML names, element IDs, and space-separated\n   *     lists of classes.  If not given, such attributes are left unchanged.\n   */\n  function sanitize(inputHtml,\n    opt_naiveUriRewriter, opt_nmTokenPolicy, opt_logger) {\n    var tagPolicy = makeTagPolicy(\n      opt_naiveUriRewriter, opt_nmTokenPolicy, opt_logger);\n    return sanitizeWithPolicy(inputHtml, tagPolicy);\n  }\n\n  // Export both quoted and unquoted names for Closure linkage.\n  var html = {};\n  html.escapeAttrib = html['escapeAttrib'] = escapeAttrib;\n  html.makeHtmlSanitizer = html['makeHtmlSanitizer'] = makeHtmlSanitizer;\n  html.makeSaxParser = html['makeSaxParser'] = makeSaxParser;\n  html.makeTagPolicy = html['makeTagPolicy'] = makeTagPolicy;\n  html.normalizeRCData = html['normalizeRCData'] = normalizeRCData;\n  html.sanitize = html['sanitize'] = sanitize;\n  html.sanitizeAttribs = html['sanitizeAttribs'] = sanitizeAttribs;\n  html.sanitizeWithPolicy = html['sanitizeWithPolicy'] = sanitizeWithPolicy;\n  html.unescapeEntities = html['unescapeEntities'] = unescapeEntities;\n  return html;\n})(html4);\n\nvar html_sanitize = html['sanitize'];\n\n// Exports for Closure compiler.  Note this file is also cajoled\n// for domado and run in an environment without 'window'\nif (typeof window !== 'undefined') {\n  window['html'] = html;\n  window['html_sanitize'] = html_sanitize;\n}\n","//     keymaster.js\n//     (c) 2011-2013 Thomas Fuchs\n//     keymaster.js may be freely distributed under the MIT license.\n\n;(function(global){\n  var k,\n    _handlers = {},\n    _mods = { 16: false, 18: false, 17: false, 91: false },\n    _scope = 'all',\n    // modifier keys\n    _MODIFIERS = {\n      '⇧': 16, shift: 16,\n      '⌥': 18, alt: 18, option: 18,\n      '⌃': 17, ctrl: 17, control: 17,\n      '⌘': 91, command: 91\n    },\n    // special keys\n    _MAP = {\n      backspace: 8, tab: 9, clear: 12,\n      enter: 13, 'return': 13,\n      esc: 27, escape: 27, space: 32,\n      left: 37, up: 38,\n      right: 39, down: 40,\n      del: 46, 'delete': 46,\n      home: 36, end: 35,\n      pageup: 33, pagedown: 34,\n      ',': 188, '.': 190, '/': 191,\n      '`': 192, '-': 189, '=': 187,\n      ';': 186, '\\'': 222,\n      '[': 219, ']': 221, '\\\\': 220\n    },\n    code = function(x){\n      return _MAP[x] || x.toUpperCase().charCodeAt(0);\n    },\n    _downKeys = [];\n\n  for(k=1;k<20;k++) _MAP['f'+k] = 111+k;\n\n  // IE doesn't support Array#indexOf, so have a simple replacement\n  function index(array, item){\n    var i = array.length;\n    while(i--) if(array[i]===item) return i;\n    return -1;\n  }\n\n  // for comparing mods before unassignment\n  function compareArray(a1, a2) {\n    if (a1.length != a2.length) return false;\n    for (var i = 0; i < a1.length; i++) {\n        if (a1[i] !== a2[i]) return false;\n    }\n    return true;\n  }\n\n  var modifierMap = {\n      16:'shiftKey',\n      18:'altKey',\n      17:'ctrlKey',\n      91:'metaKey'\n  };\n  function updateModifierKey(event) {\n      for(k in _mods) _mods[k] = event[modifierMap[k]];\n  };\n\n  // handle keydown event\n  function dispatch(event) {\n    var key, handler, k, i, modifiersMatch, scope;\n    key = event.keyCode;\n\n    if (index(_downKeys, key) == -1) {\n        _downKeys.push(key);\n    }\n\n    // if a modifier key, set the key.<modifierkeyname> property to true and return\n    if(key == 93 || key == 224) key = 91; // right command on webkit, command on Gecko\n    if(key in _mods) {\n      _mods[key] = true;\n      // 'assignKey' from inside this closure is exported to window.key\n      for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = true;\n      return;\n    }\n    updateModifierKey(event);\n\n    // see if we need to ignore the keypress (filter() can can be overridden)\n    // by default ignore key presses if a select, textarea, or input is focused\n    if(!assignKey.filter.call(this, event)) return;\n\n    // abort if no potentially matching shortcuts found\n    if (!(key in _handlers)) return;\n\n    scope = getScope();\n\n    // for each potential shortcut\n    for (i = 0; i < _handlers[key].length; i++) {\n      handler = _handlers[key][i];\n\n      // see if it's in the current scope\n      if(handler.scope == scope || handler.scope == 'all'){\n        // check if modifiers match if any\n        modifiersMatch = handler.mods.length > 0;\n        for(k in _mods)\n          if((!_mods[k] && index(handler.mods, +k) > -1) ||\n            (_mods[k] && index(handler.mods, +k) == -1)) modifiersMatch = false;\n        // call the handler and stop the event if neccessary\n        if((handler.mods.length == 0 && !_mods[16] && !_mods[18] && !_mods[17] && !_mods[91]) || modifiersMatch){\n          if(handler.method(event, handler)===false){\n            if(event.preventDefault) event.preventDefault();\n              else event.returnValue = false;\n            if(event.stopPropagation) event.stopPropagation();\n            if(event.cancelBubble) event.cancelBubble = true;\n          }\n        }\n      }\n    }\n  };\n\n  // unset modifier keys on keyup\n  function clearModifier(event){\n    var key = event.keyCode, k,\n        i = index(_downKeys, key);\n\n    // remove key from _downKeys\n    if (i >= 0) {\n        _downKeys.splice(i, 1);\n    }\n\n    if(key == 93 || key == 224) key = 91;\n    if(key in _mods) {\n      _mods[key] = false;\n      for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\n    }\n  };\n\n  function resetModifiers() {\n    for(k in _mods) _mods[k] = false;\n    for(k in _MODIFIERS) assignKey[k] = false;\n  };\n\n  // parse and assign shortcut\n  function assignKey(key, scope, method){\n    var keys, mods;\n    keys = getKeys(key);\n    if (method === undefined) {\n      method = scope;\n      scope = 'all';\n    }\n\n    // for each shortcut\n    for (var i = 0; i < keys.length; i++) {\n      // set modifier keys if any\n      mods = [];\n      key = keys[i].split('+');\n      if (key.length > 1){\n        mods = getMods(key);\n        key = [key[key.length-1]];\n      }\n      // convert to keycode and...\n      key = key[0]\n      key = code(key);\n      // ...store handler\n      if (!(key in _handlers)) _handlers[key] = [];\n      _handlers[key].push({ shortcut: keys[i], scope: scope, method: method, key: keys[i], mods: mods });\n    }\n  };\n\n  // unbind all handlers for given key in current scope\n  function unbindKey(key, scope) {\n    var multipleKeys, keys,\n      mods = [],\n      i, j, obj;\n\n    multipleKeys = getKeys(key);\n\n    for (j = 0; j < multipleKeys.length; j++) {\n      keys = multipleKeys[j].split('+');\n\n      if (keys.length > 1) {\n        mods = getMods(keys);\n      }\n\n      key = keys[keys.length - 1];\n      key = code(key);\n\n      if (scope === undefined) {\n        scope = getScope();\n      }\n      if (!_handlers[key]) {\n        return;\n      }\n      for (i = 0; i < _handlers[key].length; i++) {\n        obj = _handlers[key][i];\n        // only clear handlers if correct scope and mods match\n        if (obj.scope === scope && compareArray(obj.mods, mods)) {\n          _handlers[key][i] = {};\n        }\n      }\n    }\n  };\n\n  // Returns true if the key with code 'keyCode' is currently down\n  // Converts strings into key codes.\n  function isPressed(keyCode) {\n      if (typeof(keyCode)=='string') {\n        keyCode = code(keyCode);\n      }\n      return index(_downKeys, keyCode) != -1;\n  }\n\n  function getPressedKeyCodes() {\n      return _downKeys.slice(0);\n  }\n\n  function filter(event){\n    var tagName = (event.target || event.srcElement).tagName;\n    // ignore keypressed in any elements that support keyboard data input\n    return !(tagName == 'INPUT' || tagName == 'SELECT' || tagName == 'TEXTAREA');\n  }\n\n  // initialize key.<modifier> to false\n  for(k in _MODIFIERS) assignKey[k] = false;\n\n  // set current scope (default 'all')\n  function setScope(scope){ _scope = scope || 'all' };\n  function getScope(){ return _scope || 'all' };\n\n  // delete all handlers for a given scope\n  function deleteScope(scope){\n    var key, handlers, i;\n\n    for (key in _handlers) {\n      handlers = _handlers[key];\n      for (i = 0; i < handlers.length; ) {\n        if (handlers[i].scope === scope) handlers.splice(i, 1);\n        else i++;\n      }\n    }\n  };\n\n  // abstract key logic for assign and unassign\n  function getKeys(key) {\n    var keys;\n    key = key.replace(/\\s/g, '');\n    keys = key.split(',');\n    if ((keys[keys.length - 1]) == '') {\n      keys[keys.length - 2] += ',';\n    }\n    return keys;\n  }\n\n  // abstract mods logic for assign and unassign\n  function getMods(key) {\n    var mods = key.slice(0, key.length - 1);\n    for (var mi = 0; mi < mods.length; mi++)\n    mods[mi] = _MODIFIERS[mods[mi]];\n    return mods;\n  }\n\n  // cross-browser events\n  function addEvent(object, event, method) {\n    if (object.addEventListener)\n      object.addEventListener(event, method, false);\n    else if(object.attachEvent)\n      object.attachEvent('on'+event, function(){ method(window.event) });\n  };\n\n  // set the handlers globally on document\n  addEvent(document, 'keydown', function(event) { dispatch(event) }); // Passing _scope to a callback to ensure it remains the same by execution. Fixes #48\n  addEvent(document, 'keyup', clearModifier);\n\n  // reset modifiers to false whenever the window is (re)focused.\n  addEvent(window, 'focus', resetModifiers);\n\n  // store previously defined key\n  var previousKey = global.key;\n\n  // restore previously defined key and return reference to our key object\n  function noConflict() {\n    var k = global.key;\n    global.key = previousKey;\n    return k;\n  }\n\n  // set window.key and window.key.set/get/deleteScope, and the default filter\n  global.key = assignKey;\n  global.key.setScope = setScope;\n  global.key.getScope = getScope;\n  global.key.deleteScope = deleteScope;\n  global.key.filter = filter;\n  global.key.isPressed = isPressed;\n  global.key.getPressedKeyCodes = getPressedKeyCodes;\n  global.key.noConflict = noConflict;\n  global.key.unbind = unbindKey;\n\n  if(typeof module !== 'undefined') module.exports = assignKey;\n\n})(this);\n","define('mobiledoc-dom-renderer/cards/image', ['exports', 'mobiledoc-dom-renderer/utils/render-type'], function (exports, _mobiledocDomRendererUtilsRenderType) {\n  'use strict';\n\n  exports['default'] = {\n    name: 'image',\n    type: _mobiledocDomRendererUtilsRenderType['default'],\n    render: function render(_ref) {\n      var payload = _ref.payload;\n      var dom = _ref.env.dom;\n\n      var img = dom.createElement('img');\n      img.src = payload.src;\n      return img;\n    }\n  };\n});","define('mobiledoc-dom-renderer', ['exports', 'mobiledoc-dom-renderer/renderer-factory', 'mobiledoc-dom-renderer/utils/render-type'], function (exports, _mobiledocDomRendererRendererFactory, _mobiledocDomRendererUtilsRenderType) {\n  'use strict';\n\n  exports.registerGlobal = registerGlobal;\n  exports.RENDER_TYPE = _mobiledocDomRendererUtilsRenderType['default'];\n\n  function registerGlobal(window) {\n    window.MobiledocDOMRenderer = _mobiledocDomRendererRendererFactory['default'];\n  }\n\n  exports['default'] = _mobiledocDomRendererRendererFactory['default'];\n});","define('mobiledoc-dom-renderer/renderer-factory', ['exports', 'mobiledoc-dom-renderer/renderers/0-2', 'mobiledoc-dom-renderer/renderers/0-3', 'mobiledoc-dom-renderer/utils/render-type'], function (exports, _mobiledocDomRendererRenderers02, _mobiledocDomRendererRenderers03, _mobiledocDomRendererUtilsRenderType) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /**\n   * runtime DOM renderer\n   * renders a mobiledoc to DOM\n   *\n   * input: mobiledoc\n   * output: DOM\n   */\n\n  function validateCards(cards) {\n    if (!Array.isArray(cards)) {\n      throw new Error('`cards` must be passed as an array');\n    }\n    for (var i = 0; i < cards.length; i++) {\n      var card = cards[i];\n      if (card.type !== _mobiledocDomRendererUtilsRenderType['default']) {\n        throw new Error('Card \"' + card.name + '\" must be of type \"' + _mobiledocDomRendererUtilsRenderType['default'] + '\", was \"' + card.type + '\"');\n      }\n      if (!card.render) {\n        throw new Error('Card \"' + card.name + '\" must define `render`');\n      }\n    }\n  }\n\n  function validateAtoms(atoms) {\n    if (!Array.isArray(atoms)) {\n      throw new Error('`atoms` must be passed as an array');\n    }\n    for (var i = 0; i < atoms.length; i++) {\n      var atom = atoms[i];\n      if (atom.type !== _mobiledocDomRendererUtilsRenderType['default']) {\n        throw new Error('Atom \"' + atom.name + '\" must be type \"' + _mobiledocDomRendererUtilsRenderType['default'] + '\", was \"' + atom.type + '\"');\n      }\n      if (!atom.render) {\n        throw new Error('Atom \"' + atom.name + '\" must define `render`');\n      }\n    }\n  }\n\n  var RendererFactory = (function () {\n    function RendererFactory() {\n      var _ref = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n      var _ref$cards = _ref.cards;\n      var cards = _ref$cards === undefined ? [] : _ref$cards;\n      var _ref$atoms = _ref.atoms;\n      var atoms = _ref$atoms === undefined ? [] : _ref$atoms;\n      var _ref$cardOptions = _ref.cardOptions;\n      var cardOptions = _ref$cardOptions === undefined ? {} : _ref$cardOptions;\n      var unknownCardHandler = _ref.unknownCardHandler;\n      var unknownAtomHandler = _ref.unknownAtomHandler;\n      var _ref$markupElementRenderer = _ref.markupElementRenderer;\n      var markupElementRenderer = _ref$markupElementRenderer === undefined ? {} : _ref$markupElementRenderer;\n      var _ref$sectionElementRenderer = _ref.sectionElementRenderer;\n      var sectionElementRenderer = _ref$sectionElementRenderer === undefined ? {} : _ref$sectionElementRenderer;\n      var dom = _ref.dom;\n      var _ref$markupSanitizer = _ref.markupSanitizer;\n      var markupSanitizer = _ref$markupSanitizer === undefined ? null : _ref$markupSanitizer;\n\n      _classCallCheck(this, RendererFactory);\n\n      validateCards(cards);\n      validateAtoms(atoms);\n\n      if (!dom) {\n        if (typeof window === 'undefined') {\n          throw new Error('A `dom` option must be provided to the renderer when running without window.document');\n        }\n        dom = window.document;\n      }\n\n      this.options = {\n        cards: cards,\n        atoms: atoms,\n        cardOptions: cardOptions,\n        unknownCardHandler: unknownCardHandler,\n        unknownAtomHandler: unknownAtomHandler,\n        markupElementRenderer: markupElementRenderer,\n        sectionElementRenderer: sectionElementRenderer,\n        dom: dom,\n        markupSanitizer: markupSanitizer\n      };\n    }\n\n    _createClass(RendererFactory, [{\n      key: 'render',\n      value: function render(mobiledoc) {\n        var version = mobiledoc.version;\n\n        switch (version) {\n          case _mobiledocDomRendererRenderers02.MOBILEDOC_VERSION:\n          case undefined:\n          case null:\n            return new _mobiledocDomRendererRenderers02['default'](mobiledoc, this.options).render();\n          case _mobiledocDomRendererRenderers03.MOBILEDOC_VERSION_0_3_0:\n          case _mobiledocDomRendererRenderers03.MOBILEDOC_VERSION_0_3_1:\n          case _mobiledocDomRendererRenderers03.MOBILEDOC_VERSION_0_3_2:\n            return new _mobiledocDomRendererRenderers03['default'](mobiledoc, this.options).render();\n          default:\n            throw new Error('Unexpected Mobiledoc version \"' + version + '\"');\n        }\n      }\n    }]);\n\n    return RendererFactory;\n  })();\n\n  exports['default'] = RendererFactory;\n});","define('mobiledoc-dom-renderer/renderers/0-2', ['exports', 'mobiledoc-dom-renderer/utils/dom', 'mobiledoc-dom-renderer/cards/image', 'mobiledoc-dom-renderer/utils/render-type', 'mobiledoc-dom-renderer/utils/section-types', 'mobiledoc-dom-renderer/utils/tag-names', 'mobiledoc-dom-renderer/utils/sanitization-utils', 'mobiledoc-dom-renderer/utils/render-utils'], function (exports, _mobiledocDomRendererUtilsDom, _mobiledocDomRendererCardsImage, _mobiledocDomRendererUtilsRenderType, _mobiledocDomRendererUtilsSectionTypes, _mobiledocDomRendererUtilsTagNames, _mobiledocDomRendererUtilsSanitizationUtils, _mobiledocDomRendererUtilsRenderUtils) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var MOBILEDOC_VERSION = '0.2.0';\n\n  exports.MOBILEDOC_VERSION = MOBILEDOC_VERSION;\n  var IMAGE_SECTION_TAG_NAME = 'img';\n\n  function validateVersion(version) {\n    if (version !== MOBILEDOC_VERSION) {\n      throw new Error('Unexpected Mobiledoc version \"' + version + '\"');\n    }\n  }\n\n  var Renderer = (function () {\n    function Renderer(mobiledoc, options) {\n      var _this = this;\n\n      _classCallCheck(this, Renderer);\n\n      var cards = options.cards;\n      var cardOptions = options.cardOptions;\n      var unknownCardHandler = options.unknownCardHandler;\n      var markupElementRenderer = options.markupElementRenderer;\n      var sectionElementRenderer = options.sectionElementRenderer;\n      var dom = options.dom;\n      var version = mobiledoc.version;\n      var sectionData = mobiledoc.sections;\n\n      validateVersion(version);\n\n      var _sectionData = _slicedToArray(sectionData, 2);\n\n      var markerTypes = _sectionData[0];\n      var sections = _sectionData[1];\n\n      this.dom = dom;\n      this.root = dom.createDocumentFragment();\n      this.markerTypes = markerTypes;\n      this.sections = sections;\n      this.cards = cards;\n      this.cardOptions = cardOptions;\n      this.unknownCardHandler = unknownCardHandler || this._defaultUnknownCardHandler;\n\n      this.sectionElementRenderer = {\n        '__default__': _mobiledocDomRendererUtilsRenderUtils.defaultSectionElementRenderer\n      };\n      Object.keys(sectionElementRenderer).forEach(function (key) {\n        _this.sectionElementRenderer[key.toLowerCase()] = sectionElementRenderer[key];\n      });\n\n      this.markupElementRenderer = {\n        '__default__': _mobiledocDomRendererUtilsRenderUtils.defaultMarkupElementRenderer\n      };\n      Object.keys(markupElementRenderer).forEach(function (key) {\n        _this.markupElementRenderer[key.toLowerCase()] = markupElementRenderer[key];\n      });\n\n      this._renderCallbacks = [];\n      this._teardownCallbacks = [];\n      this._renderedChildNodes = [];\n    }\n\n    _createClass(Renderer, [{\n      key: 'render',\n      value: function render() {\n        var _this2 = this;\n\n        this.sections.forEach(function (section) {\n          var rendered = _this2.renderSection(section);\n          if (rendered) {\n            _this2.root.appendChild(rendered);\n          }\n        });\n        for (var i = 0; i < this._renderCallbacks.length; i++) {\n          this._renderCallbacks[i]();\n        }\n        // maintain a reference to child nodes so they can be cleaned up later by teardown\n        this._renderedChildNodes = [];\n        var node = this.root.firstChild;\n        while (node) {\n          this._renderedChildNodes.push(node);\n          node = node.nextSibling;\n        }\n        return { result: this.root, teardown: function teardown() {\n            return _this2.teardown();\n          } };\n      }\n    }, {\n      key: 'teardown',\n      value: function teardown() {\n        for (var i = 0; i < this._teardownCallbacks.length; i++) {\n          this._teardownCallbacks[i]();\n        }\n        for (var i = 0; i < this._renderedChildNodes.length; i++) {\n          var node = this._renderedChildNodes[i];\n          if (node.parentNode) {\n            node.parentNode.removeChild(node);\n          }\n        }\n      }\n    }, {\n      key: 'renderSection',\n      value: function renderSection(section) {\n        var _section = _slicedToArray(section, 1);\n\n        var type = _section[0];\n\n        switch (type) {\n          case _mobiledocDomRendererUtilsSectionTypes.MARKUP_SECTION_TYPE:\n            return this.renderMarkupSection(section);\n          case _mobiledocDomRendererUtilsSectionTypes.IMAGE_SECTION_TYPE:\n            return this.renderImageSection(section);\n          case _mobiledocDomRendererUtilsSectionTypes.LIST_SECTION_TYPE:\n            return this.renderListSection(section);\n          case _mobiledocDomRendererUtilsSectionTypes.CARD_SECTION_TYPE:\n            return this.renderCardSection(section);\n          default:\n            throw new Error('Cannot render mobiledoc section of type \"' + type + '\"');\n        }\n      }\n    }, {\n      key: 'renderMarkersOnElement',\n      value: function renderMarkersOnElement(element, markers) {\n        var elements = [element];\n        var currentElement = element;\n\n        var pushElement = function pushElement(openedElement) {\n          currentElement.appendChild(openedElement);\n          elements.push(openedElement);\n          currentElement = openedElement;\n        };\n\n        for (var i = 0, l = markers.length; i < l; i++) {\n          var marker = markers[i];\n\n          var _marker = _slicedToArray(marker, 3);\n\n          var openTypes = _marker[0];\n          var closeCount = _marker[1];\n          var text = _marker[2];\n\n          for (var j = 0, m = openTypes.length; j < m; j++) {\n            var markerType = this.markerTypes[openTypes[j]];\n\n            var _markerType = _slicedToArray(markerType, 2);\n\n            var tagName = _markerType[0];\n            var _markerType$1 = _markerType[1];\n            var attrs = _markerType$1 === undefined ? [] : _markerType$1;\n\n            if ((0, _mobiledocDomRendererUtilsTagNames.isValidMarkerType)(tagName)) {\n              pushElement(this.renderMarkupElement(tagName, attrs));\n            } else {\n              closeCount--;\n            }\n          }\n\n          currentElement.appendChild((0, _mobiledocDomRendererUtilsDom.createTextNode)(this.dom, text));\n\n          for (var j = 0, m = closeCount; j < m; j++) {\n            elements.pop();\n            currentElement = elements[elements.length - 1];\n          }\n        }\n      }\n\n      /**\n       * @param attrs Array\n       */\n    }, {\n      key: 'renderMarkupElement',\n      value: function renderMarkupElement(tagName, attrs) {\n        tagName = tagName.toLowerCase();\n        attrs = (0, _mobiledocDomRendererUtilsSanitizationUtils.reduceAttributes)(attrs);\n\n        var renderer = this.markupElementRendererFor(tagName);\n        return renderer(tagName, this.dom, attrs);\n      }\n    }, {\n      key: 'markupElementRendererFor',\n      value: function markupElementRendererFor(tagName) {\n        return this.markupElementRenderer[tagName] || this.markupElementRenderer.__default__;\n      }\n    }, {\n      key: 'renderListItem',\n      value: function renderListItem(markers) {\n        var element = this.dom.createElement('li');\n        this.renderMarkersOnElement(element, markers);\n        return element;\n      }\n    }, {\n      key: 'renderListSection',\n      value: function renderListSection(_ref) {\n        var _this3 = this;\n\n        var _ref2 = _slicedToArray(_ref, 3);\n\n        var type = _ref2[0];\n        var tagName = _ref2[1];\n        var listItems = _ref2[2];\n\n        if (!(0, _mobiledocDomRendererUtilsTagNames.isValidSectionTagName)(tagName, _mobiledocDomRendererUtilsSectionTypes.LIST_SECTION_TYPE)) {\n          return;\n        }\n        var element = this.dom.createElement(tagName);\n        listItems.forEach(function (li) {\n          element.appendChild(_this3.renderListItem(li));\n        });\n        return element;\n      }\n    }, {\n      key: 'renderImageSection',\n      value: function renderImageSection(_ref3) {\n        var _ref32 = _slicedToArray(_ref3, 2);\n\n        var type = _ref32[0];\n        var src = _ref32[1];\n\n        var element = this.dom.createElement(IMAGE_SECTION_TAG_NAME);\n        element.src = src;\n        return element;\n      }\n    }, {\n      key: 'findCard',\n      value: function findCard(name) {\n        for (var i = 0; i < this.cards.length; i++) {\n          if (this.cards[i].name === name) {\n            return this.cards[i];\n          }\n        }\n        if (name === _mobiledocDomRendererCardsImage['default'].name) {\n          return _mobiledocDomRendererCardsImage['default'];\n        }\n        return this._createUnknownCard(name);\n      }\n    }, {\n      key: '_createUnknownCard',\n      value: function _createUnknownCard(name) {\n        return {\n          name: name,\n          type: _mobiledocDomRendererUtilsRenderType['default'],\n          render: this.unknownCardHandler\n        };\n      }\n    }, {\n      key: '_createCardArgument',\n      value: function _createCardArgument(card) {\n        var _this4 = this;\n\n        var payload = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n        var env = {\n          name: card.name,\n          isInEditor: false,\n          dom: this.dom,\n          didRender: function didRender(callback) {\n            return _this4._registerRenderCallback(callback);\n          },\n          onTeardown: function onTeardown(callback) {\n            return _this4._registerTeardownCallback(callback);\n          }\n        };\n\n        var options = this.cardOptions;\n\n        return { env: env, options: options, payload: payload };\n      }\n    }, {\n      key: '_registerRenderCallback',\n      value: function _registerRenderCallback(callback) {\n        this._renderCallbacks.push(callback);\n      }\n    }, {\n      key: '_registerTeardownCallback',\n      value: function _registerTeardownCallback(callback) {\n        this._teardownCallbacks.push(callback);\n      }\n    }, {\n      key: 'renderCardSection',\n      value: function renderCardSection(_ref4) {\n        var _ref42 = _slicedToArray(_ref4, 3);\n\n        var type = _ref42[0];\n        var name = _ref42[1];\n        var payload = _ref42[2];\n\n        var card = this.findCard(name);\n\n        var cardArg = this._createCardArgument(card, payload);\n        var rendered = card.render(cardArg);\n\n        this._validateCardRender(rendered, card.name);\n\n        return rendered;\n      }\n    }, {\n      key: '_validateCardRender',\n      value: function _validateCardRender(rendered, cardName) {\n        if (!rendered) {\n          return;\n        }\n\n        if (typeof rendered !== 'object') {\n          throw new Error('Card \"' + cardName + '\" must render ' + _mobiledocDomRendererUtilsRenderType['default'] + ', but result was \"' + rendered + '\"');\n        }\n      }\n    }, {\n      key: 'renderMarkupSection',\n      value: function renderMarkupSection(_ref5) {\n        var _ref52 = _slicedToArray(_ref5, 3);\n\n        var type = _ref52[0];\n        var tagName = _ref52[1];\n        var markers = _ref52[2];\n\n        tagName = tagName.toLowerCase();\n        if (!(0, _mobiledocDomRendererUtilsTagNames.isValidSectionTagName)(tagName, _mobiledocDomRendererUtilsSectionTypes.MARKUP_SECTION_TYPE)) {\n          return;\n        }\n\n        var renderer = this.sectionElementRendererFor(tagName);\n        var element = renderer(tagName, this.dom);\n\n        this.renderMarkersOnElement(element, markers);\n        return element;\n      }\n    }, {\n      key: 'sectionElementRendererFor',\n      value: function sectionElementRendererFor(tagName) {\n        return this.sectionElementRenderer[tagName] || this.sectionElementRenderer.__default__;\n      }\n    }, {\n      key: '_defaultUnknownCardHandler',\n      get: function get() {\n        return function (_ref6) {\n          var name = _ref6.env.name;\n\n          throw new Error('Card \"' + name + '\" not found but no unknownCardHandler was registered');\n        };\n      }\n    }]);\n\n    return Renderer;\n  })();\n\n  exports['default'] = Renderer;\n});","define('mobiledoc-dom-renderer/renderers/0-3', ['exports', 'mobiledoc-dom-renderer/utils/dom', 'mobiledoc-dom-renderer/cards/image', 'mobiledoc-dom-renderer/utils/render-type', 'mobiledoc-dom-renderer/utils/section-types', 'mobiledoc-dom-renderer/utils/tag-names', 'mobiledoc-dom-renderer/utils/sanitization-utils', 'mobiledoc-dom-renderer/utils/render-utils', 'mobiledoc-dom-renderer/utils/marker-types'], function (exports, _mobiledocDomRendererUtilsDom, _mobiledocDomRendererCardsImage, _mobiledocDomRendererUtilsRenderType, _mobiledocDomRendererUtilsSectionTypes, _mobiledocDomRendererUtilsTagNames, _mobiledocDomRendererUtilsSanitizationUtils, _mobiledocDomRendererUtilsRenderUtils, _mobiledocDomRendererUtilsMarkerTypes) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var MOBILEDOC_VERSION_0_3_0 = '0.3.0';\n  exports.MOBILEDOC_VERSION_0_3_0 = MOBILEDOC_VERSION_0_3_0;\n  var MOBILEDOC_VERSION_0_3_1 = '0.3.1';\n  exports.MOBILEDOC_VERSION_0_3_1 = MOBILEDOC_VERSION_0_3_1;\n  var MOBILEDOC_VERSION_0_3_2 = '0.3.2';\n\n  exports.MOBILEDOC_VERSION_0_3_2 = MOBILEDOC_VERSION_0_3_2;\n  var IMAGE_SECTION_TAG_NAME = 'img';\n\n  function validateVersion(version) {\n    switch (version) {\n      case MOBILEDOC_VERSION_0_3_0:\n      case MOBILEDOC_VERSION_0_3_1:\n      case MOBILEDOC_VERSION_0_3_2:\n        return;\n      default:\n        throw new Error('Unexpected Mobiledoc version \"' + version + '\"');\n    }\n  }\n\n  var Renderer = (function () {\n    function Renderer(mobiledoc, state) {\n      var _this = this;\n\n      _classCallCheck(this, Renderer);\n\n      var cards = state.cards;\n      var cardOptions = state.cardOptions;\n      var atoms = state.atoms;\n      var unknownCardHandler = state.unknownCardHandler;\n      var unknownAtomHandler = state.unknownAtomHandler;\n      var markupElementRenderer = state.markupElementRenderer;\n      var sectionElementRenderer = state.sectionElementRenderer;\n      var dom = state.dom;\n      var version = mobiledoc.version;\n      var sections = mobiledoc.sections;\n      var atomTypes = mobiledoc.atoms;\n      var cardTypes = mobiledoc.cards;\n      var markerTypes = mobiledoc.markups;\n\n      validateVersion(version);\n\n      this.dom = dom;\n      this.root = this.dom.createDocumentFragment();\n      this.sections = sections;\n      this.atomTypes = atomTypes;\n      this.cardTypes = cardTypes;\n      this.markerTypes = markerTypes;\n      this.cards = cards;\n      this.atoms = atoms;\n      this.cardOptions = cardOptions;\n      this.unknownCardHandler = unknownCardHandler || this._defaultUnknownCardHandler;\n      this.unknownAtomHandler = unknownAtomHandler || this._defaultUnknownAtomHandler;\n\n      this.sectionElementRenderer = {\n        '__default__': _mobiledocDomRendererUtilsRenderUtils.defaultSectionElementRenderer\n      };\n      Object.keys(sectionElementRenderer).forEach(function (key) {\n        _this.sectionElementRenderer[key.toLowerCase()] = sectionElementRenderer[key];\n      });\n\n      this.markupElementRenderer = {\n        '__default__': _mobiledocDomRendererUtilsRenderUtils.defaultMarkupElementRenderer\n      };\n      Object.keys(markupElementRenderer).forEach(function (key) {\n        _this.markupElementRenderer[key.toLowerCase()] = markupElementRenderer[key];\n      });\n\n      this._renderCallbacks = [];\n      this._teardownCallbacks = [];\n    }\n\n    _createClass(Renderer, [{\n      key: 'render',\n      value: function render() {\n        var _this2 = this;\n\n        this.sections.forEach(function (section) {\n          var rendered = _this2.renderSection(section);\n          if (rendered) {\n            _this2.root.appendChild(rendered);\n          }\n        });\n        for (var i = 0; i < this._renderCallbacks.length; i++) {\n          this._renderCallbacks[i]();\n        }\n        // maintain a reference to child nodes so they can be cleaned up later by teardown\n        this._renderedChildNodes = Array.prototype.slice.call(this.root.childNodes);\n        return { result: this.root, teardown: function teardown() {\n            return _this2.teardown();\n          } };\n      }\n    }, {\n      key: 'teardown',\n      value: function teardown() {\n        for (var i = 0; i < this._teardownCallbacks.length; i++) {\n          this._teardownCallbacks[i]();\n        }\n        for (var i = 0; i < this._renderedChildNodes.length; i++) {\n          var node = this._renderedChildNodes[i];\n          if (node.parentNode) {\n            node.parentNode.removeChild(node);\n          }\n        }\n      }\n    }, {\n      key: 'renderSection',\n      value: function renderSection(section) {\n        var _section = _slicedToArray(section, 1);\n\n        var type = _section[0];\n\n        switch (type) {\n          case _mobiledocDomRendererUtilsSectionTypes.MARKUP_SECTION_TYPE:\n            return this.renderMarkupSection(section);\n          case _mobiledocDomRendererUtilsSectionTypes.IMAGE_SECTION_TYPE:\n            return this.renderImageSection(section);\n          case _mobiledocDomRendererUtilsSectionTypes.LIST_SECTION_TYPE:\n            return this.renderListSection(section);\n          case _mobiledocDomRendererUtilsSectionTypes.CARD_SECTION_TYPE:\n            return this.renderCardSection(section);\n          default:\n            throw new Error('Cannot render mobiledoc section of type \"' + type + '\"');\n        }\n      }\n    }, {\n      key: 'renderMarkersOnElement',\n      value: function renderMarkersOnElement(element, markers) {\n        var elements = [element];\n        var currentElement = element;\n\n        var pushElement = function pushElement(openedElement) {\n          currentElement.appendChild(openedElement);\n          elements.push(openedElement);\n          currentElement = openedElement;\n        };\n\n        for (var i = 0, l = markers.length; i < l; i++) {\n          var marker = markers[i];\n\n          var _marker = _slicedToArray(marker, 4);\n\n          var type = _marker[0];\n          var openTypes = _marker[1];\n          var closeCount = _marker[2];\n          var value = _marker[3];\n\n          for (var j = 0, m = openTypes.length; j < m; j++) {\n            var markerType = this.markerTypes[openTypes[j]];\n\n            var _markerType = _slicedToArray(markerType, 2);\n\n            var tagName = _markerType[0];\n            var _markerType$1 = _markerType[1];\n            var attrs = _markerType$1 === undefined ? [] : _markerType$1;\n\n            if ((0, _mobiledocDomRendererUtilsTagNames.isValidMarkerType)(tagName)) {\n              pushElement(this.renderMarkupElement(tagName, attrs));\n            } else {\n              closeCount--;\n            }\n          }\n\n          switch (type) {\n            case _mobiledocDomRendererUtilsMarkerTypes.MARKUP_MARKER_TYPE:\n              currentElement.appendChild((0, _mobiledocDomRendererUtilsDom.createTextNode)(this.dom, value));\n              break;\n            case _mobiledocDomRendererUtilsMarkerTypes.ATOM_MARKER_TYPE:\n              currentElement.appendChild(this._renderAtom(value));\n              break;\n            default:\n              throw new Error('Unknown markup type (' + type + ')');\n          }\n\n          for (var j = 0, m = closeCount; j < m; j++) {\n            elements.pop();\n            currentElement = elements[elements.length - 1];\n          }\n        }\n      }\n\n      /**\n       * @param attrs Array\n       */\n    }, {\n      key: 'renderMarkupElement',\n      value: function renderMarkupElement(tagName, attrs) {\n        tagName = tagName.toLowerCase();\n        attrs = (0, _mobiledocDomRendererUtilsSanitizationUtils.reduceAttributes)(attrs);\n\n        var renderer = this.markupElementRendererFor(tagName);\n        return renderer(tagName, this.dom, attrs);\n      }\n    }, {\n      key: 'markupElementRendererFor',\n      value: function markupElementRendererFor(tagName) {\n        return this.markupElementRenderer[tagName] || this.markupElementRenderer.__default__;\n      }\n    }, {\n      key: 'renderListItem',\n      value: function renderListItem(markers) {\n        var element = this.dom.createElement('li');\n        this.renderMarkersOnElement(element, markers);\n        return element;\n      }\n    }, {\n      key: 'renderListSection',\n      value: function renderListSection(_ref) {\n        var _this3 = this;\n\n        var _ref2 = _slicedToArray(_ref, 3);\n\n        var type = _ref2[0];\n        var tagName = _ref2[1];\n        var listItems = _ref2[2];\n\n        if (!(0, _mobiledocDomRendererUtilsTagNames.isValidSectionTagName)(tagName, _mobiledocDomRendererUtilsSectionTypes.LIST_SECTION_TYPE)) {\n          return;\n        }\n        var element = this.dom.createElement(tagName);\n        listItems.forEach(function (li) {\n          element.appendChild(_this3.renderListItem(li));\n        });\n        return element;\n      }\n    }, {\n      key: 'renderImageSection',\n      value: function renderImageSection(_ref3) {\n        var _ref32 = _slicedToArray(_ref3, 2);\n\n        var type = _ref32[0];\n        var src = _ref32[1];\n\n        var element = this.dom.createElement(IMAGE_SECTION_TAG_NAME);\n        element.src = src;\n        return element;\n      }\n    }, {\n      key: 'findCard',\n      value: function findCard(name) {\n        for (var i = 0; i < this.cards.length; i++) {\n          if (this.cards[i].name === name) {\n            return this.cards[i];\n          }\n        }\n        if (name === _mobiledocDomRendererCardsImage['default'].name) {\n          return _mobiledocDomRendererCardsImage['default'];\n        }\n        return this._createUnknownCard(name);\n      }\n    }, {\n      key: '_findCardByIndex',\n      value: function _findCardByIndex(index) {\n        var cardType = this.cardTypes[index];\n        if (!cardType) {\n          throw new Error('No card definition found at index ' + index);\n        }\n\n        var _cardType = _slicedToArray(cardType, 2);\n\n        var name = _cardType[0];\n        var payload = _cardType[1];\n\n        var card = this.findCard(name);\n\n        return {\n          card: card,\n          payload: payload\n        };\n      }\n    }, {\n      key: '_createUnknownCard',\n      value: function _createUnknownCard(name) {\n        return {\n          name: name,\n          type: _mobiledocDomRendererUtilsRenderType['default'],\n          render: this.unknownCardHandler\n        };\n      }\n    }, {\n      key: '_createCardArgument',\n      value: function _createCardArgument(card) {\n        var _this4 = this;\n\n        var payload = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n        var env = {\n          name: card.name,\n          isInEditor: false,\n          dom: this.dom,\n          didRender: function didRender(callback) {\n            return _this4._registerRenderCallback(callback);\n          },\n          onTeardown: function onTeardown(callback) {\n            return _this4._registerTeardownCallback(callback);\n          }\n        };\n\n        var options = this.cardOptions;\n\n        return { env: env, options: options, payload: payload };\n      }\n    }, {\n      key: '_registerTeardownCallback',\n      value: function _registerTeardownCallback(callback) {\n        this._teardownCallbacks.push(callback);\n      }\n    }, {\n      key: '_registerRenderCallback',\n      value: function _registerRenderCallback(callback) {\n        this._renderCallbacks.push(callback);\n      }\n    }, {\n      key: 'renderCardSection',\n      value: function renderCardSection(_ref4) {\n        var _ref42 = _slicedToArray(_ref4, 2);\n\n        var type = _ref42[0];\n        var index = _ref42[1];\n\n        var _findCardByIndex2 = this._findCardByIndex(index);\n\n        var card = _findCardByIndex2.card;\n        var payload = _findCardByIndex2.payload;\n\n        var cardArg = this._createCardArgument(card, payload);\n        var rendered = card.render(cardArg);\n\n        this._validateCardRender(rendered, card.name);\n\n        return rendered;\n      }\n    }, {\n      key: '_validateCardRender',\n      value: function _validateCardRender(rendered, cardName) {\n        if (!rendered) {\n          return;\n        }\n\n        if (typeof rendered !== 'object') {\n          throw new Error('Card \"' + cardName + '\" must render ' + _mobiledocDomRendererUtilsRenderType['default'] + ', but result was \"' + rendered + '\"');\n        }\n      }\n    }, {\n      key: 'findAtom',\n      value: function findAtom(name) {\n        for (var i = 0; i < this.atoms.length; i++) {\n          if (this.atoms[i].name === name) {\n            return this.atoms[i];\n          }\n        }\n        return this._createUnknownAtom(name);\n      }\n    }, {\n      key: '_createUnknownAtom',\n      value: function _createUnknownAtom(name) {\n        return {\n          name: name,\n          type: _mobiledocDomRendererUtilsRenderType['default'],\n          render: this.unknownAtomHandler\n        };\n      }\n    }, {\n      key: '_createAtomArgument',\n      value: function _createAtomArgument(atom, value, payload) {\n        var _this5 = this;\n\n        var env = {\n          name: atom.name,\n          isInEditor: false,\n          dom: this.dom,\n          onTeardown: function onTeardown(callback) {\n            return _this5._registerTeardownCallback(callback);\n          }\n        };\n\n        var options = this.cardOptions;\n\n        return { env: env, options: options, value: value, payload: payload };\n      }\n    }, {\n      key: '_validateAtomRender',\n      value: function _validateAtomRender(rendered, atomName) {\n        if (!rendered) {\n          return;\n        }\n\n        if (typeof rendered !== 'object') {\n          throw new Error('Atom \"' + atomName + '\" must render ' + _mobiledocDomRendererUtilsRenderType['default'] + ', but result was \"' + rendered + '\"');\n        }\n      }\n    }, {\n      key: '_findAtomByIndex',\n      value: function _findAtomByIndex(index) {\n        var atomType = this.atomTypes[index];\n        if (!atomType) {\n          throw new Error('No atom definition found at index ' + index);\n        }\n\n        var _atomType = _slicedToArray(atomType, 3);\n\n        var name = _atomType[0];\n        var value = _atomType[1];\n        var payload = _atomType[2];\n\n        var atom = this.findAtom(name);\n\n        return {\n          atom: atom,\n          value: value,\n          payload: payload\n        };\n      }\n    }, {\n      key: '_renderAtom',\n      value: function _renderAtom(index) {\n        var _findAtomByIndex2 = this._findAtomByIndex(index);\n\n        var atom = _findAtomByIndex2.atom;\n        var value = _findAtomByIndex2.value;\n        var payload = _findAtomByIndex2.payload;\n\n        var atomArg = this._createAtomArgument(atom, value, payload);\n        var rendered = atom.render(atomArg);\n\n        this._validateAtomRender(rendered, atom.name);\n\n        return rendered || (0, _mobiledocDomRendererUtilsDom.createTextNode)(this.dom, '');\n      }\n    }, {\n      key: 'renderMarkupSection',\n      value: function renderMarkupSection(_ref5) {\n        var _ref52 = _slicedToArray(_ref5, 4);\n\n        var type = _ref52[0];\n        var tagName = _ref52[1];\n        var markers = _ref52[2];\n        var _ref52$3 = _ref52[3];\n        var attributes = _ref52$3 === undefined ? [] : _ref52$3;\n\n        tagName = tagName.toLowerCase();\n        if (!(0, _mobiledocDomRendererUtilsTagNames.isValidSectionTagName)(tagName, _mobiledocDomRendererUtilsSectionTypes.MARKUP_SECTION_TYPE)) {\n          return;\n        }\n\n        var attrsObj = (0, _mobiledocDomRendererUtilsSanitizationUtils.reduceAttributes)(attributes);\n        var renderer = this.sectionElementRendererFor(tagName);\n        var element = renderer(tagName, this.dom, attrsObj);\n\n        this.renderMarkersOnElement(element, markers);\n        return element;\n      }\n    }, {\n      key: 'sectionElementRendererFor',\n      value: function sectionElementRendererFor(tagName) {\n        return this.sectionElementRenderer[tagName] || this.sectionElementRenderer.__default__;\n      }\n    }, {\n      key: '_defaultUnknownCardHandler',\n      get: function get() {\n        return function (_ref6) {\n          var name = _ref6.env.name;\n\n          throw new Error('Card \"' + name + '\" not found but no unknownCardHandler was registered');\n        };\n      }\n    }, {\n      key: '_defaultUnknownAtomHandler',\n      get: function get() {\n        return function (_ref7) {\n          var name = _ref7.env.name;\n\n          throw new Error('Atom \"' + name + '\" not found but no unknownAtomHandler was registered');\n        };\n      }\n    }]);\n\n    return Renderer;\n  })();\n\n  exports['default'] = Renderer;\n});","define(\"mobiledoc-dom-renderer/utils/array-utils\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.includes = includes;\n  exports.kvArrayToObject = kvArrayToObject;\n  exports.objectToSortedKVArray = objectToSortedKVArray;\n\n  function includes(array, detectValue) {\n    for (var i = 0; i < array.length; i++) {\n      var value = array[i];\n      if (value === detectValue) {\n        return true;\n      }\n    }\n    return false;\n  }\n\n  /**\n   * @param {Array} array of key1,value1,key2,value2,...\n   * @return {Object} {key1:value1, key2:value2, ...}\n   * @private\n   */\n\n  function kvArrayToObject(array) {\n    if (!Array.isArray(array)) {\n      return {};\n    }\n\n    var obj = {};\n    for (var i = 0; i < array.length; i += 2) {\n      var key = array[i];\n      var value = array[i + 1];\n\n      obj[key] = value;\n    }\n    return obj;\n  }\n\n  /**\n   * @param {Object} {key1:value1, key2:value2, ...}\n   * @return {Array} array of key1,value1,key2,value2,...\n   * @private\n   */\n\n  function objectToSortedKVArray(obj) {\n    var keys = Object.keys(obj).sort();\n    var result = [];\n    keys.forEach(function (k) {\n      result.push(k);\n      result.push(obj[k]);\n    });\n    return result;\n  }\n});","define('mobiledoc-dom-renderer/utils/dom', ['exports'], function (exports) {\n  'use strict';\n\n  exports.createTextNode = createTextNode;\n  exports.normalizeTagName = normalizeTagName;\n  function addHTMLSpaces(text) {\n    var nbsp = ' ';\n    return text.replace(/  /g, ' ' + nbsp);\n  }\n\n  function createTextNode(dom, text) {\n    return dom.createTextNode(addHTMLSpaces(text));\n  }\n\n  function normalizeTagName(tagName) {\n    return tagName.toLowerCase();\n  }\n});","define(\"mobiledoc-dom-renderer/utils/marker-types\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  var MARKUP_MARKER_TYPE = 0;\n  exports.MARKUP_MARKER_TYPE = MARKUP_MARKER_TYPE;\n  var ATOM_MARKER_TYPE = 1;\n  exports.ATOM_MARKER_TYPE = ATOM_MARKER_TYPE;\n});","define('mobiledoc-dom-renderer/utils/render-type', ['exports'], function (exports) {\n  'use strict';\n\n  exports['default'] = 'dom';\n});","define('mobiledoc-dom-renderer/utils/render-utils', ['exports', 'mobiledoc-dom-renderer/utils/tag-names', 'mobiledoc-dom-renderer/utils/sanitization-utils'], function (exports, _mobiledocDomRendererUtilsTagNames, _mobiledocDomRendererUtilsSanitizationUtils) {\n  'use strict';\n\n  exports.defaultSectionElementRenderer = defaultSectionElementRenderer;\n  exports.defaultMarkupElementRenderer = defaultMarkupElementRenderer;\n  var VALID_ATTRIBUTES = ['data-md-text-align'];\n\n  exports.VALID_ATTRIBUTES = VALID_ATTRIBUTES;\n  function _isValidAttribute(attr) {\n    return VALID_ATTRIBUTES.indexOf(attr) !== -1;\n  }\n\n  function handleMarkupSectionAttribute(element, attributeKey, attributeValue) {\n    if (!_isValidAttribute(attributeKey)) {\n      throw new Error('Cannot use attribute: ' + attributeKey);\n    }\n\n    element.setAttribute(attributeKey, attributeValue);\n  }\n\n  function defaultSectionElementRenderer(tagName, dom) {\n    var attrsObj = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n    var element = undefined;\n    if ((0, _mobiledocDomRendererUtilsTagNames.isMarkupSectionElementName)(tagName)) {\n      element = dom.createElement(tagName);\n\n      Object.keys(attrsObj).forEach(function (k) {\n        handleMarkupSectionAttribute(element, k, attrsObj[k]);\n      });\n    } else {\n      element = dom.createElement('div');\n      element.setAttribute('class', tagName);\n    }\n\n    return element;\n  }\n\n  function sanitizeAttribute(tagName, attrName, attrValue) {\n    if (tagName === 'a' && attrName === 'href') {\n      return (0, _mobiledocDomRendererUtilsSanitizationUtils.sanitizeHref)(attrValue);\n    } else {\n      return attrValue;\n    }\n  }\n\n  function defaultMarkupElementRenderer(tagName, dom, attrsObj) {\n    var element = dom.createElement(tagName);\n    Object.keys(attrsObj).forEach(function (attrName) {\n      var attrValue = attrsObj[attrName];\n      attrValue = sanitizeAttribute(tagName, attrName, attrValue);\n      element.setAttribute(attrName, attrValue);\n    });\n    return element;\n  }\n});","define('mobiledoc-dom-renderer/utils/sanitization-utils', ['exports', 'mobiledoc-dom-renderer/utils/array-utils'], function (exports, _mobiledocDomRendererUtilsArrayUtils) {\n  'use strict';\n\n  exports.sanitizeHref = sanitizeHref;\n  exports.reduceAttributes = reduceAttributes;\n\n  var PROTOCOL_REGEXP = /^([a-z0-9.+-]+:)/i;\n\n  var badProtocols = ['javascript:', // jshint ignore:line\n  'vbscript:' // jshint ignore:line\n  ];\n\n  function getProtocol(url) {\n    var matches = url && url.match(PROTOCOL_REGEXP);\n    var protocol = matches && matches[0] || ':';\n    return protocol;\n  }\n\n  function sanitizeHref(url) {\n    var protocol = getProtocol(url).toLowerCase();\n    if ((0, _mobiledocDomRendererUtilsArrayUtils.includes)(badProtocols, protocol)) {\n      return 'unsafe:' + url;\n    }\n    return url;\n  }\n\n  /**\n   * @param attributes array\n   * @return obj with normalized attribute names (lowercased)\n   */\n\n  function reduceAttributes(attributes) {\n    var obj = {};\n    for (var i = 0; i < attributes.length; i += 2) {\n      var key = attributes[i];\n      var val = attributes[i + 1];\n      obj[key.toLowerCase()] = val;\n    }\n    return obj;\n  }\n});","define(\"mobiledoc-dom-renderer/utils/section-types\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  var MARKUP_SECTION_TYPE = 1;\n  exports.MARKUP_SECTION_TYPE = MARKUP_SECTION_TYPE;\n  var IMAGE_SECTION_TYPE = 2;\n  exports.IMAGE_SECTION_TYPE = IMAGE_SECTION_TYPE;\n  var LIST_SECTION_TYPE = 3;\n  exports.LIST_SECTION_TYPE = LIST_SECTION_TYPE;\n  var CARD_SECTION_TYPE = 10;\n  exports.CARD_SECTION_TYPE = CARD_SECTION_TYPE;\n});","define('mobiledoc-dom-renderer/utils/tag-names', ['exports', 'mobiledoc-dom-renderer/utils/section-types', 'mobiledoc-dom-renderer/utils/dom'], function (exports, _mobiledocDomRendererUtilsSectionTypes, _mobiledocDomRendererUtilsDom) {\n  'use strict';\n\n  exports.isValidSectionTagName = isValidSectionTagName;\n  exports.isMarkupSectionElementName = isMarkupSectionElementName;\n  exports.isValidMarkerType = isValidMarkerType;\n\n  var MARKUP_SECTION_TAG_NAMES = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pull-quote', 'aside'].map(_mobiledocDomRendererUtilsDom.normalizeTagName);\n\n  var MARKUP_SECTION_ELEMENT_NAMES = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'aside'].map(_mobiledocDomRendererUtilsDom.normalizeTagName);\n\n  var LIST_SECTION_TAG_NAMES = ['ul', 'ol'].map(_mobiledocDomRendererUtilsDom.normalizeTagName);\n\n  var MARKUP_TYPES = ['b', 'i', 'strong', 'em', 'a', 'u', 'sub', 'sup', 's', 'code'].map(_mobiledocDomRendererUtilsDom.normalizeTagName);\n\n  function contains(array, item) {\n    return array.indexOf(item) !== -1;\n  }\n\n  function isValidSectionTagName(tagName, sectionType) {\n    tagName = (0, _mobiledocDomRendererUtilsDom.normalizeTagName)(tagName);\n\n    switch (sectionType) {\n      case _mobiledocDomRendererUtilsSectionTypes.MARKUP_SECTION_TYPE:\n        return contains(MARKUP_SECTION_TAG_NAMES, tagName);\n      case _mobiledocDomRendererUtilsSectionTypes.LIST_SECTION_TYPE:\n        return contains(LIST_SECTION_TAG_NAMES, tagName);\n      default:\n        throw new Error('Cannot validate tagName for unknown section type \"' + sectionType + '\"');\n    }\n  }\n\n  function isMarkupSectionElementName(tagName) {\n    tagName = (0, _mobiledocDomRendererUtilsDom.normalizeTagName)(tagName);\n    return contains(MARKUP_SECTION_ELEMENT_NAMES, tagName);\n  }\n\n  function isValidMarkerType(type) {\n    type = (0, _mobiledocDomRendererUtilsDom.normalizeTagName)(type);\n    return contains(MARKUP_TYPES, type);\n  }\n});","define('mobiledoc-kit/cards/image', ['exports', 'mobiledoc-kit/utils/placeholder-image-src'], function (exports, _mobiledocKitUtilsPlaceholderImageSrc) {\n  'use strict';\n\n  exports['default'] = {\n    name: 'image',\n    type: 'dom',\n\n    render: function render(_ref) {\n      var payload = _ref.payload;\n\n      var img = document.createElement('img');\n      img.src = payload.src || _mobiledocKitUtilsPlaceholderImageSrc['default'];\n      return img;\n    }\n  };\n});","define('mobiledoc-kit/editor/edit-history', ['exports', 'mobiledoc-kit/parsers/mobiledoc', 'mobiledoc-kit/utils/fixed-queue'], function (exports, _mobiledocKitParsersMobiledoc, _mobiledocKitUtilsFixedQueue) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function findLeafSectionAtIndex(post, index) {\n    var section = undefined;\n    post.walkAllLeafSections(function (_section, _index) {\n      if (index === _index) {\n        section = _section;\n      }\n    });\n    return section;\n  }\n\n  var Snapshot = (function () {\n    function Snapshot(takenAt, editor) {\n      var editAction = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2];\n\n      _classCallCheck(this, Snapshot);\n\n      this.mobiledoc = editor.serialize();\n      this.editor = editor;\n      this.editAction = editAction;\n      this.takenAt = takenAt;\n\n      this.snapshotRange();\n    }\n\n    _createClass(Snapshot, [{\n      key: 'snapshotRange',\n      value: function snapshotRange() {\n        var _editor = this.editor;\n        var range = _editor.range;\n        var cursor = _editor.cursor;\n\n        if (cursor.hasCursor() && !range.isBlank) {\n          var head = range.head;\n          var tail = range.tail;\n\n          this.range = {\n            head: [head.leafSectionIndex, head.offset],\n            tail: [tail.leafSectionIndex, tail.offset]\n          };\n        }\n      }\n    }, {\n      key: 'getRange',\n      value: function getRange(post) {\n        if (this.range) {\n          var _range = this.range;\n          var head = _range.head;\n          var tail = _range.tail;\n          var _head = head;\n\n          var _head2 = _slicedToArray(_head, 2);\n\n          var headLeafSectionIndex = _head2[0];\n          var headOffset = _head2[1];\n          var _tail = tail;\n\n          var _tail2 = _slicedToArray(_tail, 2);\n\n          var tailLeafSectionIndex = _tail2[0];\n          var tailOffset = _tail2[1];\n\n          var headSection = findLeafSectionAtIndex(post, headLeafSectionIndex);\n          var tailSection = findLeafSectionAtIndex(post, tailLeafSectionIndex);\n\n          head = headSection.toPosition(headOffset);\n          tail = tailSection.toPosition(tailOffset);\n\n          return head.toRange(tail);\n        }\n      }\n    }, {\n      key: 'groupsWith',\n      value: function groupsWith(groupingTimeout, editAction, takenAt) {\n        return editAction !== null && this.editAction === editAction && this.takenAt + groupingTimeout > takenAt;\n      }\n    }]);\n\n    return Snapshot;\n  })();\n\n  exports.Snapshot = Snapshot;\n\n  var EditHistory = (function () {\n    function EditHistory(editor, queueLength, groupingTimeout) {\n      _classCallCheck(this, EditHistory);\n\n      this.editor = editor;\n      this._undoStack = new _mobiledocKitUtilsFixedQueue['default'](queueLength);\n      this._redoStack = new _mobiledocKitUtilsFixedQueue['default'](queueLength);\n\n      this._pendingSnapshot = null;\n      this._groupingTimeout = groupingTimeout;\n    }\n\n    _createClass(EditHistory, [{\n      key: 'snapshot',\n      value: function snapshot() {\n        // update the current snapshot with the range read from DOM\n        if (this._pendingSnapshot) {\n          this._pendingSnapshot.snapshotRange();\n        }\n      }\n    }, {\n      key: 'storeSnapshot',\n      value: function storeSnapshot() {\n        var editAction = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];\n\n        var now = Date.now();\n        // store pending snapshot\n        var pendingSnapshot = this._pendingSnapshot;\n        if (pendingSnapshot) {\n          if (!pendingSnapshot.groupsWith(this._groupingTimeout, editAction, now)) {\n            this._undoStack.push(pendingSnapshot);\n          }\n          this._redoStack.clear();\n        }\n\n        // take new pending snapshot to store next time `storeSnapshot` is called\n        this._pendingSnapshot = new Snapshot(now, this.editor, editAction);\n      }\n    }, {\n      key: 'stepBackward',\n      value: function stepBackward(postEditor) {\n        // Throw away the pending snapshot\n        this._pendingSnapshot = null;\n\n        var snapshot = this._undoStack.pop();\n        if (snapshot) {\n          this._redoStack.push(new Snapshot(Date.now(), this.editor));\n          this._restoreFromSnapshot(snapshot, postEditor);\n        }\n      }\n    }, {\n      key: 'stepForward',\n      value: function stepForward(postEditor) {\n        var snapshot = this._redoStack.pop();\n        if (snapshot) {\n          this._undoStack.push(new Snapshot(Date.now(), this.editor));\n          this._restoreFromSnapshot(snapshot, postEditor);\n        }\n        postEditor.cancelSnapshot();\n      }\n    }, {\n      key: '_restoreFromSnapshot',\n      value: function _restoreFromSnapshot(snapshot, postEditor) {\n        var mobiledoc = snapshot.mobiledoc;\n        var editor = this.editor;\n        var builder = editor.builder;\n        var post = editor.post;\n\n        var restoredPost = _mobiledocKitParsersMobiledoc['default'].parse(builder, mobiledoc);\n\n        postEditor.removeAllSections();\n        postEditor.migrateSectionsFromPost(restoredPost);\n\n        // resurrect snapshotted range if it exists\n        var newRange = snapshot.getRange(post);\n        if (newRange) {\n          postEditor.setRange(newRange);\n        }\n      }\n    }]);\n\n    return EditHistory;\n  })();\n\n  exports['default'] = EditHistory;\n});","define('mobiledoc-kit/editor/edit-state', ['exports', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/cursor/range'], function (exports, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsCursorRange) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /**\n   * Used by {@link Editor} to manage its current state (cursor, active markups\n   * and active sections).\n   * @private\n   */\n\n  var EditState = (function () {\n    function EditState(editor) {\n      _classCallCheck(this, EditState);\n\n      this.editor = editor;\n\n      var defaultState = {\n        range: _mobiledocKitUtilsCursorRange['default'].blankRange(),\n        activeMarkups: [],\n        activeSections: [],\n        activeSectionTagNames: [],\n        activeSectionAttributes: {}\n      };\n\n      this.prevState = this.state = defaultState;\n    }\n\n    _createClass(EditState, [{\n      key: 'updateRange',\n      value: function updateRange(newRange) {\n        this.prevState = this.state;\n        this.state = this._readState(newRange);\n      }\n    }, {\n      key: 'destroy',\n      value: function destroy() {\n        this.editor = null;\n        this.prevState = this.state = null;\n      }\n\n      /**\n       * @return {Boolean}\n       */\n    }, {\n      key: 'rangeDidChange',\n      value: function rangeDidChange() {\n        var range = this.state.range;\n        var prevRange = this.prevState.range;\n\n        return !prevRange.isEqual(range);\n      }\n\n      /**\n       * @return {Boolean} Whether the input mode (active markups or active section tag names)\n       * has changed.\n       */\n    }, {\n      key: 'inputModeDidChange',\n      value: function inputModeDidChange() {\n        var state = this.state;\n        var prevState = this.prevState;\n\n        return !(0, _mobiledocKitUtilsArrayUtils.isArrayEqual)(state.activeMarkups, prevState.activeMarkups) || !(0, _mobiledocKitUtilsArrayUtils.isArrayEqual)(state.activeSectionTagNames, prevState.activeSectionTagNames) || !(0, _mobiledocKitUtilsArrayUtils.isArrayEqual)((0, _mobiledocKitUtilsArrayUtils.objectToSortedKVArray)(state.activeSectionAttributes), (0, _mobiledocKitUtilsArrayUtils.objectToSortedKVArray)(prevState.activeSectionAttributes));\n      }\n\n      /**\n       * @return {Range}\n       */\n    }, {\n      key: 'toggleMarkupState',\n\n      /**\n       * Update the editor's markup state. This is used when, e.g.,\n       * a user types meta+B when the editor has a cursor but no selected text;\n       * in this case the editor needs to track that it has an active \"b\" markup\n       * and apply it to the next text the user types.\n       */\n      value: function toggleMarkupState(markup) {\n        if ((0, _mobiledocKitUtilsArrayUtils.contains)(this.activeMarkups, markup)) {\n          this._removeActiveMarkup(markup);\n        } else {\n          this._addActiveMarkup(markup);\n        }\n      }\n    }, {\n      key: '_readState',\n      value: function _readState(range) {\n        var state = {\n          range: range,\n          activeMarkups: this._readActiveMarkups(range),\n          activeSections: this._readActiveSections(range)\n        };\n        // Section objects are 'live', so to check that they changed, we\n        // need to map their tagNames now (and compare to mapped tagNames later).\n        // In addition, to catch changes from ul -> ol, we keep track of the\n        // un-nested tag names (otherwise we'd only see li -> li change)\n        state.activeSectionTagNames = state.activeSections.map(function (s) {\n          return s.isNested ? s.parent.tagName : s.tagName;\n        });\n        state.activeSectionAttributes = this._readSectionAttributes(state.activeSections);\n        return state;\n      }\n    }, {\n      key: '_readActiveSections',\n      value: function _readActiveSections(range) {\n        var head = range.head;\n        var tail = range.tail;\n        var post = this.editor.post;\n\n        if (range.isBlank) {\n          return [];\n        } else {\n          return post.sections.readRange(head.section, tail.section);\n        }\n      }\n    }, {\n      key: '_readActiveMarkups',\n      value: function _readActiveMarkups(range) {\n        var post = this.editor.post;\n\n        return post.markupsInRange(range);\n      }\n    }, {\n      key: '_readSectionAttributes',\n      value: function _readSectionAttributes(sections) {\n        return sections.reduce(function (sectionAttributes, s) {\n          var attributes = s.isNested ? s.parent.attributes : s.attributes;\n          Object.keys(attributes || {}).forEach(function (attrName) {\n            var camelizedAttrName = attrName.replace(/^data-md-/, '');\n            var attrValue = attributes[attrName];\n            sectionAttributes[camelizedAttrName] = sectionAttributes[camelizedAttrName] || [];\n            if (!(0, _mobiledocKitUtilsArrayUtils.contains)(sectionAttributes[camelizedAttrName], attrValue)) {\n              sectionAttributes[camelizedAttrName].push(attrValue);\n            }\n          });\n          return sectionAttributes;\n        }, {});\n      }\n    }, {\n      key: '_removeActiveMarkup',\n      value: function _removeActiveMarkup(markup) {\n        var index = this.state.activeMarkups.indexOf(markup);\n        this.state.activeMarkups.splice(index, 1);\n      }\n    }, {\n      key: '_addActiveMarkup',\n      value: function _addActiveMarkup(markup) {\n        this.state.activeMarkups.push(markup);\n      }\n    }, {\n      key: 'range',\n      get: function get() {\n        return this.state.range;\n      }\n\n      /**\n       * @return {Section[]}\n       */\n    }, {\n      key: 'activeSections',\n      get: function get() {\n        return this.state.activeSections;\n      }\n\n      /**\n       * @return {Object}\n       */\n    }, {\n      key: 'activeSectionAttributes',\n      get: function get() {\n        return this.state.activeSectionAttributes;\n      }\n\n      /**\n       * @return {Markup[]}\n       */\n    }, {\n      key: 'activeMarkups',\n      get: function get() {\n        return this.state.activeMarkups;\n      }\n    }]);\n\n    return EditState;\n  })();\n\n  exports['default'] = EditState;\n});","define('mobiledoc-kit/editor/editor', ['exports', 'mobiledoc-kit/views/tooltip', 'mobiledoc-kit/editor/post', 'mobiledoc-kit/cards/image', 'mobiledoc-kit/utils/key', 'mobiledoc-kit/parsers/mobiledoc', 'mobiledoc-kit/parsers/html', 'mobiledoc-kit/parsers/dom', 'mobiledoc-kit/renderers/editor-dom', 'mobiledoc-kit/models/render-tree', 'mobiledoc-kit/renderers/mobiledoc', 'mobiledoc-kit/utils/merge', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/element-utils', 'mobiledoc-kit/utils/cursor', 'mobiledoc-kit/utils/cursor/range', 'mobiledoc-kit/utils/cursor/position', 'mobiledoc-kit/utils/environment', 'mobiledoc-kit/models/post-node-builder', 'mobiledoc-kit/editor/text-input-handlers', 'mobiledoc-kit/editor/key-commands', 'mobiledoc-kit/models/card', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/editor/mutation-handler', 'mobiledoc-kit/editor/edit-history', 'mobiledoc-kit/editor/event-manager', 'mobiledoc-kit/editor/edit-state', 'mobiledoc-dom-renderer', 'mobiledoc-text-renderer', 'mobiledoc-kit/models/lifecycle-callbacks', 'mobiledoc-kit/utils/log-manager', 'mobiledoc-kit/utils/to-range', 'mobiledoc-kit/utils/mobiledoc-error'], function (exports, _mobiledocKitViewsTooltip, _mobiledocKitEditorPost, _mobiledocKitCardsImage, _mobiledocKitUtilsKey, _mobiledocKitParsersMobiledoc, _mobiledocKitParsersHtml, _mobiledocKitParsersDom, _mobiledocKitRenderersEditorDom, _mobiledocKitModelsRenderTree, _mobiledocKitRenderersMobiledoc, _mobiledocKitUtilsMerge, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsElementUtils, _mobiledocKitUtilsCursor, _mobiledocKitUtilsCursorRange, _mobiledocKitUtilsCursorPosition, _mobiledocKitUtilsEnvironment, _mobiledocKitModelsPostNodeBuilder, _mobiledocKitEditorTextInputHandlers, _mobiledocKitEditorKeyCommands, _mobiledocKitModelsCard, _mobiledocKitUtilsAssert, _mobiledocKitEditorMutationHandler, _mobiledocKitEditorEditHistory, _mobiledocKitEditorEventManager, _mobiledocKitEditorEditState, _mobiledocDomRenderer, _mobiledocTextRenderer, _mobiledocKitModelsLifecycleCallbacks, _mobiledocKitUtilsLogManager, _mobiledocKitUtilsToRange, _mobiledocKitUtilsMobiledocError) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  // This export may later be deprecated, but re-export it from the renderer here\n  // for consumers that may depend on it.\n  Object.defineProperty(exports, 'EDITOR_ELEMENT_CLASS_NAME', {\n    enumerable: true,\n    get: function get() {\n      return _mobiledocKitRenderersEditorDom.EDITOR_ELEMENT_CLASS_NAME;\n    }\n  });\n\n  var defaults = {\n    placeholder: 'Write here...',\n    spellcheck: true,\n    autofocus: true,\n    showLinkTooltips: true,\n    undoDepth: 5,\n    undoBlockTimeout: 5000, // ms for an undo event\n    cards: [],\n    atoms: [],\n    cardOptions: {},\n    unknownCardHandler: function unknownCardHandler(_ref) {\n      var env = _ref.env;\n\n      throw new _mobiledocKitUtilsMobiledocError['default']('Unknown card encountered: ' + env.name);\n    },\n    unknownAtomHandler: function unknownAtomHandler(_ref2) {\n      var env = _ref2.env;\n\n      throw new _mobiledocKitUtilsMobiledocError['default']('Unknown atom encountered: ' + env.name);\n    },\n    mobiledoc: null,\n    html: null\n  };\n\n  var CALLBACK_QUEUES = {\n    DID_UPDATE: 'didUpdate',\n    WILL_RENDER: 'willRender',\n    DID_RENDER: 'didRender',\n    WILL_DELETE: 'willDelete',\n    DID_DELETE: 'didDelete',\n    WILL_HANDLE_NEWLINE: 'willHandleNewline',\n    CURSOR_DID_CHANGE: 'cursorDidChange',\n    DID_REPARSE: 'didReparse',\n    POST_DID_CHANGE: 'postDidChange',\n    INPUT_MODE_DID_CHANGE: 'inputModeDidChange'\n  };\n\n  /**\n   * The Editor is a core component of mobiledoc-kit. After instantiating\n   * an editor, use {@link Editor#render} to display the editor on the web page.\n   *\n   * An editor uses a {@link Post} internally to represent the displayed document.\n   * The post can be serialized as mobiledoc using {@link Editor#serialize}. Mobiledoc\n   * is the transportable \"over-the-wire\" format (JSON) that is suited for persisting\n   * and sharing between editors and renderers (for display, e.g.), whereas the Post\n   * model is better suited for programmatic editing.\n   *\n   * The editor will call registered callbacks for certain state changes. These are:\n   *   * {@link Editor#cursorDidChange} -- The cursor position or selection changed.\n   *   * {@link Editor#postDidChange} -- The contents of the post changed due to user input or\n   *     programmatic editing. This hook can be used with {@link Editor#serialize}\n   *     to auto-save a post as it is being edited.\n   *   * {@link Editor#inputModeDidChange} -- The active section(s) or markup(s) at the current cursor\n   *     position or selection have changed. This hook can be used with\n   *     {@link Editor#activeMarkups} and {@link Editor#activeSections} to implement\n   *     a custom toolbar.\n   *   * {@link Editor#onTextInput} -- Register callbacks when the user enters text\n   *     that matches a given string or regex.\n   *   * {@link Editor#beforeToggleMarkup} -- Register callbacks that will be run before\n   *     applying changes from {@link Editor#toggleMarkup}\n   */\n\n  var Editor = (function () {\n    /**\n     * @param {Object} [options]\n     * @param {Object} [options.mobiledoc] The mobiledoc to load into the editor.\n     *        Supersedes `options.html`.\n     * @param {String|DOM} [options.html] The html (as a string or DOM fragment)\n     *        to parse and load into the editor.\n     *        Will be ignored if `options.mobiledoc` is also passed.\n     * @param {Array} [options.parserPlugins=[]]\n     * @param {Array} [options.cards=[]] The cards that the editor may render.\n     * @param {Array} [options.atoms=[]] The atoms that the editor may render.\n     * @param {Function} [options.unknownCardHandler] Invoked by the editor's renderer\n     *        whenever it encounters an unknown card.\n     * @param {Function} [options.unknownAtomHandler] Invoked by the editor's renderer\n     *        whenever it encounters an unknown atom.\n     * @param {String} [options.placeholder] Default text to show before user starts typing.\n     * @param {Boolean} [options.spellcheck=true] Whether to enable spellcheck\n     * @param {Boolean} [options.autofocus=true] Whether to focus the editor when it is first rendered.\n     * @param {Boolean} [options.showLinkTooltips=true] Whether to show the url tooltip for links\n     * @param {number} [options.undoDepth=5] How many undo levels will be available.\n     *        Set to 0 to disable undo/redo functionality.\n     * @return {Editor}\n     * @public\n     */\n\n    function Editor() {\n      var _this = this;\n\n      var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n      _classCallCheck(this, Editor);\n\n      (0, _mobiledocKitUtilsAssert['default'])('editor create accepts an options object. For legacy usage passing an element for the first argument, consider the `html` option for loading DOM or HTML posts. For other cases call `editor.render(domNode)` after editor creation', options && !options.nodeType);\n      this._views = [];\n      this.isEditable = true;\n      this._parserPlugins = options.parserPlugins || [];\n\n      // FIXME: This should merge onto this.options\n      (0, _mobiledocKitUtilsMerge.mergeWithOptions)(this, defaults, options);\n      this.cards.push(_mobiledocKitCardsImage['default']);\n\n      _mobiledocKitEditorKeyCommands.DEFAULT_KEY_COMMANDS.forEach(function (kc) {\n        return _this.registerKeyCommand(kc);\n      });\n\n      this._logManager = new _mobiledocKitUtilsLogManager['default']();\n      this._parser = new _mobiledocKitParsersDom['default'](this.builder);\n      var cards = this.cards;\n      var atoms = this.atoms;\n      var unknownCardHandler = this.unknownCardHandler;\n      var unknownAtomHandler = this.unknownAtomHandler;\n      var cardOptions = this.cardOptions;\n\n      this._renderer = new _mobiledocKitRenderersEditorDom['default'](this, cards, atoms, unknownCardHandler, unknownAtomHandler, cardOptions);\n\n      this.post = this.loadPost();\n      this._renderTree = new _mobiledocKitModelsRenderTree['default'](this.post);\n\n      this._editHistory = new _mobiledocKitEditorEditHistory['default'](this, this.undoDepth, this.undoBlockTimeout);\n      this._eventManager = new _mobiledocKitEditorEventManager['default'](this);\n      this._mutationHandler = new _mobiledocKitEditorMutationHandler['default'](this);\n      this._editState = new _mobiledocKitEditorEditState['default'](this);\n      this._callbacks = new _mobiledocKitModelsLifecycleCallbacks['default']((0, _mobiledocKitUtilsArrayUtils.values)(CALLBACK_QUEUES));\n      this._beforeHooks = { toggleMarkup: [] };\n\n      this._isComposingOnBlankLine = false;\n\n      _mobiledocKitEditorTextInputHandlers.DEFAULT_TEXT_INPUT_HANDLERS.forEach(function (handler) {\n        return _this.onTextInput(handler);\n      });\n\n      this.hasRendered = false;\n    }\n\n    /**\n     * Turns on verbose logging for the editor.\n     * @param {Array} [logTypes=[]] If present, only the given log types will be logged.\n     * @public\n     */\n\n    _createClass(Editor, [{\n      key: 'enableLogging',\n      value: function enableLogging() {\n        var logTypes = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\n        if (logTypes.length === 0) {\n          this._logManager.enableAll();\n        } else {\n          this._logManager.enableTypes(logTypes);\n        }\n      }\n\n      /**\n       * Disable all logging\n       * @public\n       */\n    }, {\n      key: 'disableLogging',\n      value: function disableLogging() {\n        this._logManager.disable();\n      }\n\n      /**\n       * @private\n       */\n    }, {\n      key: 'loggerFor',\n      value: function loggerFor(type) {\n        return this._logManager['for'](type);\n      }\n\n      /**\n       * The editor's instance of a post node builder.\n       * @type {PostNodeBuilder}\n       */\n    }, {\n      key: 'loadPost',\n      value: function loadPost() {\n        var mobiledoc = this.mobiledoc;\n        var html = this.html;\n\n        if (mobiledoc) {\n          return _mobiledocKitParsersMobiledoc['default'].parse(this.builder, mobiledoc);\n        } else if (html) {\n          if (typeof html === 'string') {\n            var options = { plugins: this._parserPlugins };\n            return new _mobiledocKitParsersHtml['default'](this.builder, options).parse(this.html);\n          } else {\n            var dom = html;\n            return this._parser.parse(dom);\n          }\n        } else {\n          return this.builder.createPost([this.builder.createMarkupSection()]);\n        }\n      }\n    }, {\n      key: 'rerender',\n      value: function rerender() {\n        var _this2 = this;\n\n        var postRenderNode = this.post.renderNode;\n\n        // if we haven't rendered this post's renderNode before, mark it dirty\n        if (!postRenderNode.element) {\n          (0, _mobiledocKitUtilsAssert['default'])('Must call `render` before `rerender` can be called', this.hasRendered);\n          postRenderNode.element = this.element;\n          postRenderNode.markDirty();\n        }\n\n        this.runCallbacks(CALLBACK_QUEUES.WILL_RENDER);\n        this._mutationHandler.suspendObservation(function () {\n          _this2._renderer.render(_this2._renderTree);\n        });\n        this.runCallbacks(CALLBACK_QUEUES.DID_RENDER);\n      }\n\n      /**\n       * @param {Element} element The DOM element to render into.\n       *        Its contents will be replaced by the editor's rendered post.\n       * @public\n       */\n    }, {\n      key: 'render',\n      value: function render(element) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot render an editor twice. Use `rerender` to update the ' + 'rendering of an existing editor instance.', !this.hasRendered);\n\n        element.spellcheck = this.spellcheck;\n\n        (0, _mobiledocKitUtilsDomUtils.clearChildNodes)(element);\n\n        this.element = element;\n\n        if (this.showLinkTooltips) {\n          this._addTooltip();\n        }\n\n        // A call to `run` will trigger the didUpdatePostCallbacks hooks with a\n        // postEditor.\n        this.run(function () {});\n\n        // Only set `hasRendered` to true after calling `run` to ensure that\n        // no cursorDidChange or other callbacks get fired before the editor is\n        // done rendering\n        this.hasRendered = true;\n        this.rerender();\n\n        this._mutationHandler.init();\n        this._eventManager.init();\n\n        if (this.isEditable === false) {\n          this.disableEditing();\n        } else {\n          this.enableEditing();\n        }\n\n        if (this.autofocus) {\n          this.selectRange(this.post.headPosition());\n        }\n      }\n    }, {\n      key: '_addTooltip',\n      value: function _addTooltip() {\n        this.addView(new _mobiledocKitViewsTooltip['default']({\n          rootElement: this.element,\n          showForTag: 'a'\n        }));\n      }\n    }, {\n      key: 'registerKeyCommand',\n\n      /**\n       * @param {Object} keyCommand The key command to register. It must specify a\n       * modifier key (meta, ctrl, etc), a string representing the ascii key, and\n       * a `run` method that will be passed the editor instance when the key command\n       * is invoked\n       * @public\n       */\n      value: function registerKeyCommand(rawKeyCommand) {\n        var keyCommand = (0, _mobiledocKitEditorKeyCommands.buildKeyCommand)(rawKeyCommand);\n        (0, _mobiledocKitUtilsAssert['default'])('Key Command is not valid', (0, _mobiledocKitEditorKeyCommands.validateKeyCommand)(keyCommand));\n        this.keyCommands.unshift(keyCommand);\n      }\n\n      /**\n       * @param {String} name If the keyCommand event has a name attribute it can be removed.\n       * @public\n       */\n    }, {\n      key: 'unregisterKeyCommands',\n      value: function unregisterKeyCommands(name) {\n        for (var i = this.keyCommands.length - 1; i > -1; i--) {\n          var keyCommand = this.keyCommands[i];\n\n          if (keyCommand.name === name) {\n            this.keyCommands.splice(i, 1);\n          }\n        }\n      }\n\n      /**\n       * Convenience for {@link PostEditor#deleteAtPosition}. Deletes and puts the\n       * cursor in the new position.\n       * @public\n       */\n    }, {\n      key: 'deleteAtPosition',\n      value: function deleteAtPosition(position, direction, _ref3) {\n        var unit = _ref3.unit;\n\n        this.run(function (postEditor) {\n          var nextPosition = postEditor.deleteAtPosition(position, direction, { unit: unit });\n          postEditor.setRange(nextPosition);\n        });\n      }\n\n      /**\n       * Convenience for {@link PostEditor#deleteRange}. Deletes and puts the\n       * cursor in the new position.\n       * @param {Range} range\n       * @public\n       */\n    }, {\n      key: 'deleteRange',\n      value: function deleteRange(range) {\n        this.run(function (postEditor) {\n          var nextPosition = postEditor.deleteRange(range);\n          postEditor.setRange(nextPosition);\n        });\n      }\n\n      /**\n       * @private\n       */\n    }, {\n      key: 'performDelete',\n      value: function performDelete() {\n        var _ref4 = arguments.length <= 0 || arguments[0] === undefined ? { direction: _mobiledocKitUtilsKey.DIRECTION.BACKWARD, unit: 'char' } : arguments[0];\n\n        var direction = _ref4.direction;\n        var unit = _ref4.unit;\n        var range = this.range;\n\n        this.runCallbacks(CALLBACK_QUEUES.WILL_DELETE, [range, direction, unit]);\n        if (range.isCollapsed) {\n          this.deleteAtPosition(range.head, direction, { unit: unit });\n        } else {\n          this.deleteRange(range);\n        }\n        this.runCallbacks(CALLBACK_QUEUES.DID_DELETE, [range, direction, unit]);\n      }\n    }, {\n      key: 'handleNewline',\n      value: function handleNewline(event) {\n        var _this3 = this;\n\n        if (!this.hasCursor()) {\n          return;\n        }\n\n        event.preventDefault();\n\n        var range = this.range;\n\n        this.run(function (postEditor) {\n          var cursorSection = undefined;\n          if (!range.isCollapsed) {\n            var nextPosition = postEditor.deleteRange(range);\n            cursorSection = nextPosition.section;\n            if (cursorSection && cursorSection.isBlank) {\n              postEditor.setRange(cursorSection.headPosition());\n              return;\n            }\n          }\n\n          // Above logic might delete redundant range, so callback must run after it.\n          var defaultPrevented = false;\n          var event = { preventDefault: function preventDefault() {\n              defaultPrevented = true;\n            } };\n          _this3.runCallbacks(CALLBACK_QUEUES.WILL_HANDLE_NEWLINE, [event]);\n          if (defaultPrevented) {\n            return;\n          }\n\n          cursorSection = postEditor.splitSection(range.head)[1];\n          postEditor.setRange(cursorSection.headPosition());\n        });\n      }\n\n      /**\n       * Notify the editor that the post did change, and run associated\n       * callbacks.\n       * @private\n       */\n    }, {\n      key: '_postDidChange',\n      value: function _postDidChange() {\n        this.runCallbacks(CALLBACK_QUEUES.POST_DID_CHANGE);\n      }\n\n      /**\n       * Selects the given range or position. If given a collapsed range or a position, this positions the cursor\n       * at the range's position. Otherwise a selection is created in the editor\n       * surface encompassing the range.\n       * @param {Range|Position} range\n       */\n    }, {\n      key: 'selectRange',\n      value: function selectRange(range) {\n        range = (0, _mobiledocKitUtilsToRange['default'])(range);\n\n        this.cursor.selectRange(range);\n        this.range = range;\n      }\n    }, {\n      key: '_readRangeFromDOM',\n      value: function _readRangeFromDOM() {\n        this.range = this.cursor.offsets;\n      }\n    }, {\n      key: 'setPlaceholder',\n      value: function setPlaceholder(placeholder) {\n        (0, _mobiledocKitUtilsElementUtils.setData)(this.element, 'placeholder', placeholder);\n      }\n    }, {\n      key: '_reparsePost',\n      value: function _reparsePost() {\n        var post = this._parser.parse(this.element);\n        this.run(function (postEditor) {\n          postEditor.removeAllSections();\n          postEditor.migrateSectionsFromPost(post);\n          postEditor.setRange(_mobiledocKitUtilsCursorRange['default'].blankRange());\n        });\n\n        this.runCallbacks(CALLBACK_QUEUES.DID_REPARSE);\n        this._postDidChange();\n      }\n    }, {\n      key: '_reparseSections',\n      value: function _reparseSections() {\n        var _this4 = this;\n\n        var sections = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\n        var currentRange = undefined;\n        sections.forEach(function (section) {\n          _this4._parser.reparseSection(section, _this4._renderTree);\n        });\n        this._removeDetachedSections();\n\n        if (this._renderTree.isDirty) {\n          currentRange = this.range;\n        }\n\n        // force the current snapshot's range to remain the same rather than\n        // rereading it from DOM after the new character is applied and the browser\n        // updates the cursor position\n        var range = this._editHistory._pendingSnapshot.range;\n        this.run(function () {\n          _this4._editHistory._pendingSnapshot.range = range;\n        });\n        this.rerender();\n        if (currentRange) {\n          this.selectRange(currentRange);\n        }\n\n        this.runCallbacks(CALLBACK_QUEUES.DID_REPARSE);\n        this._postDidChange();\n      }\n\n      // FIXME this should be able to be removed now -- if any sections are detached,\n      // it's due to a bug in the code.\n    }, {\n      key: '_removeDetachedSections',\n      value: function _removeDetachedSections() {\n        (0, _mobiledocKitUtilsArrayUtils.forEach)((0, _mobiledocKitUtilsArrayUtils.filter)(this.post.sections, function (s) {\n          return !s.renderNode.isAttached();\n        }), function (s) {\n          return s.renderNode.scheduleForRemoval();\n        });\n      }\n\n      /**\n       * The sections from the cursor's selection start to the selection end\n       * @type {Section[]}\n       */\n    }, {\n      key: 'detectMarkupInRange',\n      value: function detectMarkupInRange(range, markupTagName) {\n        var markups = this.post.markupsInRange(range);\n        return (0, _mobiledocKitUtilsArrayUtils.detect)(markups, function (markup) {\n          return markup.hasTag(markupTagName);\n        });\n      }\n\n      /**\n       * @type {Markup[]}\n       * @public\n       */\n    }, {\n      key: 'hasActiveMarkup',\n\n      /**\n       * @param {Markup|String} markup A markup instance, or a string (e.g. \"b\")\n       * @return {boolean}\n       */\n      value: function hasActiveMarkup(markup) {\n        var matchesFn = undefined;\n        if (typeof markup === 'string') {\n          (function () {\n            var tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(markup);\n            matchesFn = function (m) {\n              return m.tagName === tagName;\n            };\n          })();\n        } else {\n          matchesFn = function (m) {\n            return m === markup;\n          };\n        }\n\n        return !!(0, _mobiledocKitUtilsArrayUtils.detect)(this.activeMarkups, matchesFn);\n      }\n\n      /**\n       * @param {String} version The mobiledoc version to serialize to.\n       * @return {Mobiledoc} Serialized mobiledoc\n       * @public\n       */\n    }, {\n      key: 'serialize',\n      value: function serialize() {\n        var version = arguments.length <= 0 || arguments[0] === undefined ? _mobiledocKitRenderersMobiledoc.MOBILEDOC_VERSION : arguments[0];\n\n        return this.serializePost(this.post, 'mobiledoc', { version: version });\n      }\n\n      /**\n       * Serialize the editor's post to the requested format.\n       * Note that only mobiledoc format is lossless. If cards or atoms are present\n       * in the post, the html and text formats will omit them in output because\n       * the editor does not have access to the html and text versions of the\n       * cards/atoms.\n       * @param {string} format The format to serialize ('mobiledoc', 'text', 'html')\n       * @return {Object|String} The editor's post, serialized to {format}\n       * @public\n       */\n    }, {\n      key: 'serializeTo',\n      value: function serializeTo(format) {\n        var post = this.post;\n        return this.serializePost(post, format);\n      }\n\n      /**\n       * @param {Post}\n       * @param {String} format Same as {serializeTo}\n       * @param {Object} [options]\n       * @param {String} [options.version=MOBILEDOC_VERSION] version to serialize to\n       * @return {Object|String}\n       * @private\n       */\n    }, {\n      key: 'serializePost',\n      value: function serializePost(post, format) {\n        var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n        var validFormats = ['mobiledoc', 'html', 'text'];\n        (0, _mobiledocKitUtilsAssert['default'])('Unrecognized serialization format ' + format, (0, _mobiledocKitUtilsArrayUtils.contains)(validFormats, format));\n\n        if (format === 'mobiledoc') {\n          var version = options.version || _mobiledocKitRenderersMobiledoc.MOBILEDOC_VERSION;\n          return _mobiledocKitRenderersMobiledoc['default'].render(post, version);\n        } else {\n          var rendered = undefined;\n          var mobiledoc = this.serializePost(post, 'mobiledoc');\n          var unknownCardHandler = function unknownCardHandler() {};\n          var unknownAtomHandler = function unknownAtomHandler() {};\n          var rendererOptions = { unknownCardHandler: unknownCardHandler, unknownAtomHandler: unknownAtomHandler };\n\n          switch (format) {\n            case 'html':\n              {\n                var result = undefined;\n                if (_mobiledocKitUtilsEnvironment['default'].hasDOM()) {\n                  rendered = new _mobiledocDomRenderer['default'](rendererOptions).render(mobiledoc);\n                  result = '<div>' + (0, _mobiledocKitUtilsDomUtils.serializeHTML)(rendered.result) + '</div>';\n                } else {\n                  // Fallback to text serialization\n                  result = this.serializePost(post, 'text', options);\n                }\n                return result;\n              }\n            case 'text':\n              rendered = new _mobiledocTextRenderer['default'](rendererOptions).render(mobiledoc);\n              return rendered.result;\n          }\n        }\n      }\n    }, {\n      key: 'addView',\n      value: function addView(view) {\n        this._views.push(view);\n      }\n    }, {\n      key: 'removeAllViews',\n      value: function removeAllViews() {\n        this._views.forEach(function (v) {\n          return v.destroy();\n        });\n        this._views = [];\n      }\n\n      /**\n       * Whether the editor has a cursor (or a selected range).\n       * It is possible for the editor to be focused but not have a selection.\n       * In this case, key events will fire but the editor will not be able to\n       * determine a cursor position, so they will be ignored.\n       * @return {boolean}\n       * @public\n       */\n    }, {\n      key: 'hasCursor',\n      value: function hasCursor() {\n        return this.cursor.hasCursor();\n      }\n\n      /**\n       * Tears down the editor's attached event listeners and views.\n       * @public\n       */\n    }, {\n      key: 'destroy',\n      value: function destroy() {\n        this.isDestroyed = true;\n        if (this._hasSelection()) {\n          this.cursor.clearSelection();\n        }\n        if (this._hasFocus()) {\n          this.element.blur(); // FIXME This doesn't blur the element on IE11\n        }\n        this._mutationHandler.destroy();\n        this._eventManager.destroy();\n        this.removeAllViews();\n        this._renderer.destroy();\n        this._editState.destroy();\n      }\n\n      /**\n       * Keep the user from directly editing the post using the keyboard and mouse.\n       * Modification via the programmatic API is still permitted.\n       * @see Editor#enableEditing\n       * @public\n       */\n    }, {\n      key: 'disableEditing',\n      value: function disableEditing() {\n        this.isEditable = false;\n        if (this.hasRendered) {\n          this._eventManager.stop();\n          this.element.setAttribute('contentEditable', false);\n          this.setPlaceholder('');\n          this.selectRange(_mobiledocKitUtilsCursorRange['default'].blankRange());\n        }\n      }\n\n      /**\n       * Allow the user to directly interact with editing a post via keyboard and mouse input.\n       * Editor instances are editable by default. Use this method to re-enable\n       * editing after disabling it.\n       * @see Editor#disableEditing\n       * @public\n       */\n    }, {\n      key: 'enableEditing',\n      value: function enableEditing() {\n        this.isEditable = true;\n        if (this.hasRendered) {\n          this._eventManager.start();\n          this.element.setAttribute('contentEditable', true);\n          this.setPlaceholder(this.placeholder);\n        }\n      }\n\n      /**\n       * Change a cardSection into edit mode\n       * If called before the card has been rendered, it will be marked so that\n       * it is rendered in edit mode when it gets rendered.\n       * @param {CardSection} cardSection\n       * @public\n       */\n    }, {\n      key: 'editCard',\n      value: function editCard(cardSection) {\n        this._setCardMode(cardSection, _mobiledocKitModelsCard.CARD_MODES.EDIT);\n      }\n\n      /**\n       * Change a cardSection into display mode\n       * If called before the card has been rendered, it will be marked so that\n       * it is rendered in display mode when it gets rendered.\n       * @param {CardSection} cardSection\n       * @return undefined\n       * @public\n       */\n    }, {\n      key: 'displayCard',\n      value: function displayCard(cardSection) {\n        this._setCardMode(cardSection, _mobiledocKitModelsCard.CARD_MODES.DISPLAY);\n      }\n\n      /**\n       * Run a new post editing session. Yields a block with a new {@link PostEditor}\n       * instance. This instance can be used to interact with the post abstract.\n       * Rendering will be deferred until after the callback is completed.\n       *\n       * Usage:\n       * ```\n       *   let markerRange = this.range;\n       *   editor.run((postEditor) => {\n       *     postEditor.deleteRange(markerRange);\n       *     // editing surface not updated yet\n       *     postEditor.schedule(() => {\n       *       console.log('logs during rerender flush');\n       *     });\n       *     // logging not yet flushed\n       *   });\n       *   // editing surface now updated.\n       *   // logging now flushed\n       * ```\n       *\n       * @param {Function} callback Called with an instance of\n       *        {@link PostEditor} as its argument.\n       * @return {Mixed} The return value of `callback`.\n       * @public\n       */\n    }, {\n      key: 'run',\n      value: function run(callback) {\n        var postEditor = new _mobiledocKitEditorPost['default'](this);\n        postEditor.begin();\n        this._editHistory.snapshot();\n        var result = callback(postEditor);\n        this.runCallbacks(CALLBACK_QUEUES.DID_UPDATE, [postEditor]);\n        postEditor.complete();\n        this._readRangeFromDOM();\n\n        if (postEditor._shouldCancelSnapshot) {\n          this._editHistory._pendingSnapshot = null;\n        }\n        this._editHistory.storeSnapshot(postEditor.editActionTaken);\n\n        return result;\n      }\n\n      /**\n       * @param {Function} callback Called with `postEditor` as its argument.\n       * @public\n       */\n    }, {\n      key: 'didUpdatePost',\n      value: function didUpdatePost(callback) {\n        this.addCallback(CALLBACK_QUEUES.DID_UPDATE, callback);\n      }\n\n      /**\n       * @param {Function} callback Called when the post has changed, either via\n       *        user input or programmatically. Use with {@link Editor#serialize} to\n       *        retrieve the post in portable mobiledoc format.\n       */\n    }, {\n      key: 'postDidChange',\n      value: function postDidChange(callback) {\n        this.addCallback(CALLBACK_QUEUES.POST_DID_CHANGE, callback);\n      }\n\n      /**\n       * Register a handler that will be invoked by the editor after the user enters\n       * matching text.\n       * @param {Object} inputHandler\n       * @param {String} inputHandler.name Required. Used by identifying handlers.\n       * @param {String} [inputHandler.text] Required if `match` is not provided\n       * @param {RegExp} [inputHandler.match] Required if `text` is not provided\n       * @param {Function} inputHandler.run This callback is invoked with the {@link Editor}\n       *                   instance and an array of matches. If `text` was provided,\n       *                   the matches array will equal [`text`], and if a `match`\n       *                   regex was provided the matches array will be the result of\n       *                   `match.exec` on the matching text. The callback is called\n       *                   after the matching text has been inserted.\n       * @public\n       */\n    }, {\n      key: 'onTextInput',\n      value: function onTextInput(inputHandler) {\n        this._eventManager.registerInputHandler(inputHandler);\n      }\n\n      /**\n       * Unregister all text input handlers\n       *\n       * @public\n       */\n    }, {\n      key: 'unregisterAllTextInputHandlers',\n      value: function unregisterAllTextInputHandlers() {\n        this._eventManager.unregisterAllTextInputHandlers();\n      }\n\n      /**\n       * Unregister text input handler by name\n       * @param {String} name The name of handler to be removed\n       *\n       * @public\n       */\n    }, {\n      key: 'unregisterTextInputHandler',\n      value: function unregisterTextInputHandler(name) {\n        this._eventManager.unregisterInputHandler(name);\n      }\n\n      /**\n       * @param {Function} callback Called when the editor's state (active markups or\n       * active sections) has changed, either via user input or programmatically\n       */\n    }, {\n      key: 'inputModeDidChange',\n      value: function inputModeDidChange(callback) {\n        this.addCallback(CALLBACK_QUEUES.INPUT_MODE_DID_CHANGE, callback);\n      }\n\n      /**\n       * @param {Function} callback This callback will be called before the editor\n       *        is rendered.\n       * @public\n       */\n    }, {\n      key: 'willRender',\n      value: function willRender(callback) {\n        this.addCallback(CALLBACK_QUEUES.WILL_RENDER, callback);\n      }\n\n      /**\n       * @param {Function} callback This callback will be called after the editor\n       *        is rendered.\n       * @public\n       */\n    }, {\n      key: 'didRender',\n      value: function didRender(callback) {\n        this.addCallback(CALLBACK_QUEUES.DID_RENDER, callback);\n      }\n\n      /**\n       * @param {Function} callback This callback will be called before deleting.\n       * @public\n       */\n    }, {\n      key: 'willDelete',\n      value: function willDelete(callback) {\n        this.addCallback(CALLBACK_QUEUES.WILL_DELETE, callback);\n      }\n\n      /**\n       * @param {Function} callback This callback will be called after deleting.\n       * @public\n       */\n    }, {\n      key: 'didDelete',\n      value: function didDelete(callback) {\n        this.addCallback(CALLBACK_QUEUES.DID_DELETE, callback);\n      }\n\n      /**\n       * @param {Function} callback This callback will be called before handling new line.\n       * @public\n       */\n    }, {\n      key: 'willHandleNewline',\n      value: function willHandleNewline(callback) {\n        this.addCallback(CALLBACK_QUEUES.WILL_HANDLE_NEWLINE, callback);\n      }\n\n      /**\n       * @param {Function} callback This callback will be called every time the cursor\n       *        position (or selection) changes.\n       * @public\n       */\n    }, {\n      key: 'cursorDidChange',\n      value: function cursorDidChange(callback) {\n        this.addCallback(CALLBACK_QUEUES.CURSOR_DID_CHANGE, callback);\n      }\n    }, {\n      key: '_rangeDidChange',\n      value: function _rangeDidChange() {\n        if (this.hasRendered) {\n          this.runCallbacks(CALLBACK_QUEUES.CURSOR_DID_CHANGE);\n        }\n      }\n    }, {\n      key: '_inputModeDidChange',\n      value: function _inputModeDidChange() {\n        this.runCallbacks(CALLBACK_QUEUES.INPUT_MODE_DID_CHANGE);\n      }\n    }, {\n      key: '_insertEmptyMarkupSectionAtCursor',\n      value: function _insertEmptyMarkupSectionAtCursor() {\n        var _this5 = this;\n\n        this.run(function (postEditor) {\n          var section = postEditor.builder.createMarkupSection('p');\n          postEditor.insertSectionBefore(_this5.post.sections, section);\n          postEditor.setRange(section.toRange());\n        });\n      }\n\n      /**\n       * @callback editorBeforeCallback\n       * @param { Object } details\n       * @param { Markup } details.markup\n       * @param { Range } details.range\n       * @param { boolean } details.willAdd Whether the markup will be applied\n       */\n\n      /**\n       * Register a callback that will be run before {@link Editor#toggleMarkup} is applied.\n       * If any callback returns literal `false`, the toggling of markup will be canceled.\n       * Note this only applies to calling `editor#toggleMarkup`. Using `editor.run` and\n       * modifying markup with the `postEditor` will skip any `beforeToggleMarkup` callbacks.\n       * @param {editorBeforeCallback}\n       */\n    }, {\n      key: 'beforeToggleMarkup',\n      value: function beforeToggleMarkup(callback) {\n        this._beforeHooks.toggleMarkup.push(callback);\n      }\n\n      /**\n       * Toggles the given markup at the editor's current {@link Range}.\n       * If the range is collapsed this changes the editor's state so that the\n       * next characters typed will be affected. If there is text selected\n       * (aka a non-collapsed range), the selections' markup will be toggled.\n       * If the editor is not focused and has no active range, nothing happens.\n       * Hooks added using #beforeToggleMarkup will be run before toggling,\n       * and if any of them returns literal false, toggling the markup will be canceled\n       * and no change will be applied.\n       * @param {String} markup E.g. \"b\", \"em\", \"a\"\n       * @param {Object} [attributes={}] E.g. {href: \"http://bustle.com\"}\n       * @public\n       * @see PostEditor#toggleMarkup\n       */\n    }, {\n      key: 'toggleMarkup',\n      value: function toggleMarkup(markup) {\n        var attributes = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n        markup = this.builder.createMarkup(markup, attributes);\n        var range = this.range;\n\n        var willAdd = !this.detectMarkupInRange(range, markup.tagName);\n        var shouldCancel = this._runBeforeHooks('toggleMarkup', { markup: markup, range: range, willAdd: willAdd });\n        if (shouldCancel) {\n          return;\n        }\n\n        if (range.isCollapsed) {\n          this._editState.toggleMarkupState(markup);\n          this._inputModeDidChange();\n\n          // when clicking a button to toggle markup, the button can end up being focused,\n          // so ensure the editor is focused\n          this._ensureFocus();\n        } else {\n          this.run(function (postEditor) {\n            return postEditor.toggleMarkup(markup, range);\n          });\n        }\n      }\n\n      // If the editor has a selection but is not focused, focus it\n    }, {\n      key: '_ensureFocus',\n      value: function _ensureFocus() {\n        if (this._hasSelection() && !this._hasFocus()) {\n          this.focus();\n        }\n      }\n    }, {\n      key: 'focus',\n      value: function focus() {\n        this.element.focus();\n      }\n\n      /**\n       * Whether there is a selection inside the editor's element.\n       * It's possible to have a selection but not have focus.\n       * @see #_hasFocus\n       * @return {Boolean}\n       */\n    }, {\n      key: '_hasSelection',\n      value: function _hasSelection() {\n        var cursor = this.cursor;\n\n        return this.hasRendered && (cursor._hasCollapsedSelection() || cursor._hasSelection());\n      }\n\n      /**\n       * Whether the editor's element is focused\n       * It's possible to be focused but have no selection\n       * @see #_hasSelection\n       * @return {Boolean}\n       */\n    }, {\n      key: '_hasFocus',\n      value: function _hasFocus() {\n        return document.activeElement === this.element;\n      }\n\n      /**\n       * Toggles the tagName for the current active section(s). This will skip\n       * non-markerable sections. E.g. if the editor's range includes a \"P\" MarkupSection\n       * and a CardSection, only the MarkupSection will be toggled.\n       * @param {String} tagName The new tagname to change to.\n       * @public\n       * @see PostEditor#toggleSection\n       */\n    }, {\n      key: 'toggleSection',\n      value: function toggleSection(tagName) {\n        var _this6 = this;\n\n        this.run(function (postEditor) {\n          return postEditor.toggleSection(tagName, _this6.range);\n        });\n      }\n\n      /**\n       * Sets an attribute for the current active section(s).\n       *\n       * @param {String} key The attribute. The only valid attribute is 'text-align'.\n       * @param {String} value The value of the attribute.\n       * @public\n       * @see PostEditor#setAttribute\n       */\n    }, {\n      key: 'setAttribute',\n      value: function setAttribute(key, value) {\n        var _this7 = this;\n\n        this.run(function (postEditor) {\n          return postEditor.setAttribute(key, value, _this7.range);\n        });\n      }\n\n      /**\n       * Removes an attribute from the current active section(s).\n       *\n       * @param {String} key The attribute. The only valid attribute is 'text-align'.\n       * @public\n       * @see PostEditor#removeAttribute\n       */\n    }, {\n      key: 'removeAttribute',\n      value: function removeAttribute(key) {\n        var _this8 = this;\n\n        this.run(function (postEditor) {\n          return postEditor.removeAttribute(key, _this8.range);\n        });\n      }\n\n      /**\n       * Finds and runs the first matching key command for the event\n       *\n       * If multiple commands are bound to a key combination, the\n       * first matching one is run.\n       *\n       * If a command returns `false` then the next matching command\n       * is run instead.\n       *\n       * @param {Event} event The keyboard event triggered by the user\n       * @return {Boolean} true when a command was successfully run\n       * @private\n       */\n    }, {\n      key: 'handleKeyCommand',\n      value: function handleKeyCommand(event) {\n        var keyCommands = (0, _mobiledocKitEditorKeyCommands.findKeyCommands)(this.keyCommands, event);\n        for (var i = 0; i < keyCommands.length; i++) {\n          var keyCommand = keyCommands[i];\n          if (keyCommand.run(this) !== false) {\n            event.preventDefault();\n            return true;\n          }\n        }\n        return false;\n      }\n\n      /**\n       * Inserts the text at the current cursor position. If the editor has\n       * no current cursor position, nothing will be inserted. If the editor's\n       * range is not collapsed, it will be deleted before insertion.\n       *\n       * @param {String} text\n       * @public\n       */\n    }, {\n      key: 'insertText',\n      value: function insertText(text) {\n        if (!this.hasCursor()) {\n          return;\n        }\n        if (this.post.isBlank) {\n          this._insertEmptyMarkupSectionAtCursor();\n        }\n        var activeMarkups = this.activeMarkups;\n        var range = this.range;\n        var position = this.range.head;\n\n        this.run(function (postEditor) {\n          if (!range.isCollapsed) {\n            position = postEditor.deleteRange(range);\n          }\n\n          postEditor.insertTextWithMarkup(position, text, activeMarkups);\n        });\n      }\n\n      /**\n       * Inserts an atom at the current cursor position. If the editor has\n       * no current cursor position, nothing will be inserted. If the editor's\n       * range is not collapsed, it will be deleted before insertion.\n       * @param {String} atomName\n       * @param {String} [atomText='']\n       * @param {Object} [atomPayload={}]\n       * @return {Atom} The inserted atom.\n       * @public\n       */\n    }, {\n      key: 'insertAtom',\n      value: function insertAtom(atomName) {\n        var atomText = arguments.length <= 1 || arguments[1] === undefined ? '' : arguments[1];\n        var atomPayload = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n        if (!this.hasCursor()) {\n          return;\n        }\n        if (this.post.isBlank) {\n          this._insertEmptyMarkupSectionAtCursor();\n        }\n\n        var atom = undefined;\n        var range = this.range;\n\n        this.run(function (postEditor) {\n          var position = range.head;\n\n          atom = postEditor.builder.createAtom(atomName, atomText, atomPayload);\n          if (!range.isCollapsed) {\n            position = postEditor.deleteRange(range);\n          }\n\n          postEditor.insertMarkers(position, [atom]);\n        });\n        return atom;\n      }\n\n      /**\n       * Inserts a card at the section after the current cursor position. If the editor has\n       * no current cursor position, nothing will be inserted. If the editor's\n       * range is not collapsed, it will be deleted before insertion. If the cursor is in\n       * a blank section, it will be replaced with a card section.\n       * The editor's cursor will be placed at the end of the inserted card.\n       * @param {String} cardName\n       * @param {Object} [cardPayload={}]\n       * @param {Boolean} [inEditMode=false] Whether the card should be inserted in edit mode.\n       * @return {Card} The inserted Card section.\n       * @public\n       */\n    }, {\n      key: 'insertCard',\n      value: function insertCard(cardName) {\n        var _this9 = this;\n\n        var cardPayload = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n        var inEditMode = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2];\n\n        if (!this.hasCursor()) {\n          return;\n        }\n        if (this.post.isBlank) {\n          this._insertEmptyMarkupSectionAtCursor();\n        }\n\n        var card = undefined;\n        var range = this.range;\n\n        this.run(function (postEditor) {\n          var position = range.tail;\n          card = postEditor.builder.createCardSection(cardName, cardPayload);\n          if (inEditMode) {\n            _this9.editCard(card);\n          }\n\n          if (!range.isCollapsed) {\n            position = postEditor.deleteRange(range);\n          }\n\n          var section = position.section;\n          if (section.isNested) {\n            section = section.parent;\n          }\n\n          if (section.isBlank) {\n            postEditor.replaceSection(section, card);\n          } else {\n            var collection = _this9.post.sections;\n            postEditor.insertSectionBefore(collection, card, section.next);\n          }\n\n          // It is important to explicitly set the range to the end of the card.\n          // Otherwise it is possible to create an inconsistent state in the\n          // browser. For instance, if the user clicked a button that\n          // called `editor.insertCard`, the editor surface may retain\n          // the selection but lose focus, and the next keystroke by the user\n          // will cause an unexpected DOM mutation (which can wipe out the\n          // card).\n          // See: https://github.com/bustle/mobiledoc-kit/issues/286\n          postEditor.setRange(card.tailPosition());\n        });\n        return card;\n      }\n\n      /**\n       * @param {integer} x x-position in viewport\n       * @param {integer} y y-position in viewport\n       * @return {Position|null}\n       */\n    }, {\n      key: 'positionAtPoint',\n      value: function positionAtPoint(x, y) {\n        return _mobiledocKitUtilsCursorPosition['default'].atPoint(x, y, this);\n      }\n\n      /**\n       * @private\n       */\n    }, {\n      key: '_setCardMode',\n      value: function _setCardMode(cardSection, mode) {\n        var renderNode = cardSection.renderNode;\n        if (renderNode && renderNode.isRendered) {\n          var cardNode = renderNode.cardNode;\n          cardNode[mode]();\n        } else {\n          cardSection.setInitialMode(mode);\n        }\n      }\n    }, {\n      key: 'triggerEvent',\n      value: function triggerEvent(context, eventName, event) {\n        this._eventManager._trigger(context, eventName, event);\n      }\n    }, {\n      key: 'addCallback',\n      value: function addCallback() {\n        var _callbacks;\n\n        (_callbacks = this._callbacks).addCallback.apply(_callbacks, arguments);\n      }\n    }, {\n      key: 'addCallbackOnce',\n      value: function addCallbackOnce() {\n        var _callbacks2;\n\n        (_callbacks2 = this._callbacks).addCallbackOnce.apply(_callbacks2, arguments);\n      }\n    }, {\n      key: 'runCallbacks',\n      value: function runCallbacks() {\n        var _callbacks3;\n\n        if (this.isDestroyed) {\n          // TODO warn that callback attempted after editor was destroyed\n          return;\n        }\n        (_callbacks3 = this._callbacks).runCallbacks.apply(_callbacks3, arguments);\n      }\n\n      /**\n       * Runs each callback for the given hookName.\n       * Only the hookName 'toggleMarkup' is currently supported\n       * @return {Boolean} shouldCancel Whether the action in `hookName` should be canceled\n       * @private\n       */\n    }, {\n      key: '_runBeforeHooks',\n      value: function _runBeforeHooks(hookName) {\n        var hooks = this._beforeHooks[hookName] || [];\n\n        for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n          args[_key - 1] = arguments[_key];\n        }\n\n        for (var i = 0; i < hooks.length; i++) {\n          if (hooks[i].apply(hooks, args) === false) {\n            return true;\n          }\n        }\n      }\n    }, {\n      key: 'builder',\n      get: function get() {\n        if (!this._builder) {\n          this._builder = new _mobiledocKitModelsPostNodeBuilder['default']();\n        }\n        return this._builder;\n      }\n    }, {\n      key: 'keyCommands',\n      get: function get() {\n        if (!this._keyCommands) {\n          this._keyCommands = [];\n        }\n        return this._keyCommands;\n      }\n    }, {\n      key: 'cursor',\n      get: function get() {\n        return new _mobiledocKitUtilsCursor['default'](this);\n      }\n\n      /**\n       * Return the current range for the editor (may be cached).\n       * @return {Range}\n       */\n    }, {\n      key: 'range',\n      get: function get() {\n        return this._editState.range;\n      },\n      set: function set(newRange) {\n        this._editState.updateRange(newRange);\n\n        if (this._editState.rangeDidChange()) {\n          this._rangeDidChange();\n        }\n\n        if (this._editState.inputModeDidChange()) {\n          this._inputModeDidChange();\n        }\n      }\n    }, {\n      key: 'activeSections',\n      get: function get() {\n        return this._editState.activeSections;\n      }\n    }, {\n      key: 'activeSection',\n      get: function get() {\n        var activeSections = this.activeSections;\n\n        return activeSections[activeSections.length - 1];\n      }\n    }, {\n      key: 'activeSectionAttributes',\n      get: function get() {\n        return this._editState.activeSectionAttributes;\n      }\n    }, {\n      key: 'activeMarkups',\n      get: function get() {\n        return this._editState.activeMarkups;\n      }\n    }]);\n\n    return Editor;\n  })();\n\n  exports['default'] = Editor;\n});","define('mobiledoc-kit/editor/event-manager', ['exports', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/parse-utils', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/key', 'mobiledoc-kit/editor/text-input-handler', 'mobiledoc-kit/editor/selection-manager', 'mobiledoc-kit/utils/browser'], function (exports, _mobiledocKitUtilsAssert, _mobiledocKitUtilsParseUtils, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsKey, _mobiledocKitEditorTextInputHandler, _mobiledocKitEditorSelectionManager, _mobiledocKitUtilsBrowser) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var ELEMENT_EVENT_TYPES = ['keydown', 'keyup', 'cut', 'copy', 'paste', 'keypress', 'drop', 'compositionstart', 'compositionend'];\n\n  var EventManager = (function () {\n    function EventManager(editor) {\n      _classCallCheck(this, EventManager);\n\n      this.editor = editor;\n      this.logger = editor.loggerFor('event-manager');\n      this._textInputHandler = new _mobiledocKitEditorTextInputHandler['default'](editor);\n      this._listeners = [];\n      this.modifierKeys = {\n        shift: false\n      };\n\n      this._selectionManager = new _mobiledocKitEditorSelectionManager['default'](this.editor, this.selectionDidChange.bind(this));\n      this.started = true;\n    }\n\n    _createClass(EventManager, [{\n      key: 'init',\n      value: function init() {\n        var _this = this;\n\n        var element = this.editor.element;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot init EventManager without element', !!element);\n\n        ELEMENT_EVENT_TYPES.forEach(function (type) {\n          _this._addListener(element, type);\n        });\n\n        this._selectionManager.start();\n      }\n    }, {\n      key: 'start',\n      value: function start() {\n        this.started = true;\n      }\n    }, {\n      key: 'stop',\n      value: function stop() {\n        this.started = false;\n      }\n    }, {\n      key: 'registerInputHandler',\n      value: function registerInputHandler(inputHandler) {\n        this._textInputHandler.register(inputHandler);\n      }\n    }, {\n      key: 'unregisterInputHandler',\n      value: function unregisterInputHandler(name) {\n        this._textInputHandler.unregister(name);\n      }\n    }, {\n      key: 'unregisterAllTextInputHandlers',\n      value: function unregisterAllTextInputHandlers() {\n        this._textInputHandler.destroy();\n        this._textInputHandler = new _mobiledocKitEditorTextInputHandler['default'](this.editor);\n      }\n    }, {\n      key: '_addListener',\n      value: function _addListener(context, type) {\n        var _this2 = this;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Missing listener for ' + type, !!this[type]);\n\n        var listener = function listener(event) {\n          return _this2._handleEvent(type, event);\n        };\n        context.addEventListener(type, listener);\n        this._listeners.push([context, type, listener]);\n      }\n    }, {\n      key: '_removeListeners',\n      value: function _removeListeners() {\n        this._listeners.forEach(function (_ref) {\n          var _ref2 = _slicedToArray(_ref, 3);\n\n          var context = _ref2[0];\n          var type = _ref2[1];\n          var listener = _ref2[2];\n\n          context.removeEventListener(type, listener);\n        });\n        this._listeners = [];\n      }\n\n      // This is primarily useful for programmatically simulating events on the\n      // editor from the tests.\n    }, {\n      key: '_trigger',\n      value: function _trigger(context, type, event) {\n        (0, _mobiledocKitUtilsArrayUtils.forEach)((0, _mobiledocKitUtilsArrayUtils.filter)(this._listeners, function (_ref3) {\n          var _ref32 = _slicedToArray(_ref3, 2);\n\n          var _context = _ref32[0];\n          var _type = _ref32[1];\n\n          return _context === context && _type === type;\n        }), function (_ref4) {\n          var _ref42 = _slicedToArray(_ref4, 3);\n\n          var context = _ref42[0];\n          var listener = _ref42[2];\n\n          listener.call(context, event);\n        });\n      }\n    }, {\n      key: 'destroy',\n      value: function destroy() {\n        this._textInputHandler.destroy();\n        this._selectionManager.destroy();\n        this._removeListeners();\n      }\n    }, {\n      key: '_handleEvent',\n      value: function _handleEvent(type, event) {\n        var element = event.target;\n\n        if (!this.started) {\n          // abort handling this event\n          return true;\n        }\n\n        if (!this.isElementAddressable(element)) {\n          // abort handling this event\n          return true;\n        }\n\n        this[type](event);\n      }\n    }, {\n      key: 'isElementAddressable',\n      value: function isElementAddressable(element) {\n        return this.editor.cursor.isAddressable(element);\n      }\n    }, {\n      key: 'selectionDidChange',\n      value: function selectionDidChange(selection /*, prevSelection */) {\n        var shouldNotify = true;\n        var anchorNode = selection.anchorNode;\n\n        if (!this.isElementAddressable(anchorNode)) {\n          if (!this.editor.range.isBlank) {\n            // Selection changed from something addressable to something\n            // not-addressable -- e.g., blur event, user clicked outside editor,\n            // etc\n            shouldNotify = true;\n          } else {\n            // selection changes wholly outside the editor should not trigger\n            // change notifications\n            shouldNotify = false;\n          }\n        }\n\n        if (shouldNotify) {\n          this.editor._readRangeFromDOM();\n        }\n      }\n    }, {\n      key: 'keypress',\n      value: function keypress(event) {\n        var editor = this.editor;\n        var _textInputHandler = this._textInputHandler;\n\n        if (!editor.hasCursor()) {\n          return;\n        }\n\n        var key = _mobiledocKitUtilsKey['default'].fromEvent(event);\n        if (!key.isPrintable()) {\n          return;\n        } else {\n          event.preventDefault();\n        }\n\n        // Handle carriage returns\n        if (!key.isEnter() && key.keyCode === 13) {\n          _textInputHandler.handleNewLine();\n          editor.handleNewline(event);\n          return;\n        }\n\n        _textInputHandler.handle(key.toString());\n      }\n    }, {\n      key: 'keydown',\n      value: function keydown(event) {\n        var editor = this.editor;\n\n        if (!editor.hasCursor()) {\n          return;\n        }\n        if (!editor.isEditable) {\n          return;\n        }\n\n        var key = _mobiledocKitUtilsKey['default'].fromEvent(event);\n        this._updateModifiersFromKey(key, { isDown: true });\n\n        if (editor.handleKeyCommand(event)) {\n          return;\n        }\n\n        if (editor.post.isBlank) {\n          editor._insertEmptyMarkupSectionAtCursor();\n        }\n\n        var range = editor.range;\n\n        switch (true) {\n          // Ignore keydown events when using an IME\n          case key.isIME():\n            {\n              break;\n            }\n          // FIXME This should be restricted to only card/atom boundaries\n          case key.isHorizontalArrowWithoutModifiersOtherThanShift():\n            {\n              var newRange = undefined;\n              if (key.isShift()) {\n                newRange = range.extend(key.direction * 1);\n              } else {\n                newRange = range.move(key.direction);\n              }\n\n              editor.selectRange(newRange);\n              event.preventDefault();\n              break;\n            }\n          case key.isDelete():\n            {\n              var direction = key.direction;\n\n              var unit = 'char';\n              if (key.altKey && _mobiledocKitUtilsBrowser['default'].isMac()) {\n                unit = 'word';\n              } else if (key.ctrlKey && !_mobiledocKitUtilsBrowser['default'].isMac()) {\n                unit = 'word';\n              }\n              editor.performDelete({ direction: direction, unit: unit });\n              event.preventDefault();\n              break;\n            }\n          case key.isEnter():\n            this._textInputHandler.handleNewLine();\n            editor.handleNewline(event);\n            break;\n          case key.isTab():\n            // Handle tab here because it does not fire a `keypress` event\n            event.preventDefault();\n            this._textInputHandler.handle(key.toString());\n            break;\n        }\n      }\n    }, {\n      key: 'keyup',\n      value: function keyup(event) {\n        var editor = this.editor;\n\n        if (!editor.hasCursor()) {\n          return;\n        }\n        var key = _mobiledocKitUtilsKey['default'].fromEvent(event);\n        this._updateModifiersFromKey(key, { isDown: false });\n      }\n\n      // The mutation handler interferes with IMEs when composing\n      // on a blank line. These two event handlers are for suppressing\n      // mutation handling in this scenario.\n    }, {\n      key: 'compositionstart',\n      value: function compositionstart(event) {\n        // eslint-disable-line\n        var editor = this.editor;\n\n        // Ignore compositionstart if not on a blank line\n        if (editor.range.headMarker) {\n          return;\n        }\n        this._isComposingOnBlankLine = true;\n\n        if (editor.post.isBlank) {\n          editor._insertEmptyMarkupSectionAtCursor();\n        }\n\n        // Stop listening for mutations on Chrome browsers and suppress\n        // mutations by prepending a character for other browsers.\n        // The reason why we treat these separately is because\n        // of the way each browser processes IME inputs.\n        if (_mobiledocKitUtilsBrowser['default'].isChrome()) {\n          editor.setPlaceholder('');\n          editor._mutationHandler.stopObserving();\n        } else {\n          this._textInputHandler.handle(' ');\n        }\n      }\n    }, {\n      key: 'compositionend',\n      value: function compositionend(event) {\n        var editor = this.editor;\n\n        // Ignore compositionend if not composing on blank line\n        if (!this._isComposingOnBlankLine) {\n          return;\n        }\n        this._isComposingOnBlankLine = false;\n\n        // Start listening for mutations on Chrome browsers and\n        // delete the prepended character introduced by compositionstart\n        // for other browsers.\n        if (_mobiledocKitUtilsBrowser['default'].isChrome()) {\n          editor.insertText(event.data);\n          editor.setPlaceholder(editor.placeholder);\n          editor._mutationHandler.startObserving();\n        } else {\n          (function () {\n            var startOfCompositionLine = editor.range.headSection.toPosition(0);\n            var endOfCompositionLine = editor.range.headSection.toPosition(event.data.length);\n            editor.run(function (postEditor) {\n              postEditor.deleteAtPosition(startOfCompositionLine, 1, { unit: 'char' });\n              postEditor.setRange(endOfCompositionLine);\n            });\n          })();\n        }\n      }\n    }, {\n      key: 'cut',\n      value: function cut(event) {\n        event.preventDefault();\n\n        this.copy(event);\n        this.editor.performDelete();\n      }\n    }, {\n      key: 'copy',\n      value: function copy(event) {\n        event.preventDefault();\n\n        var editor = this.editor;\n        var _editor = this.editor;\n        var range = _editor.range;\n        var post = _editor.post;\n\n        post = post.trimTo(range);\n\n        var data = {\n          html: editor.serializePost(post, 'html'),\n          text: editor.serializePost(post, 'text'),\n          mobiledoc: editor.serializePost(post, 'mobiledoc')\n        };\n\n        (0, _mobiledocKitUtilsParseUtils.setClipboardData)(event, data, window);\n      }\n    }, {\n      key: 'paste',\n      value: function paste(event) {\n        event.preventDefault();\n\n        var editor = this.editor;\n\n        var range = editor.range;\n\n        if (!range.isCollapsed) {\n          editor.performDelete();\n        }\n\n        if (editor.post.isBlank) {\n          editor._insertEmptyMarkupSectionAtCursor();\n        }\n\n        var position = editor.range.head;\n        var targetFormat = this.modifierKeys.shift ? 'text' : 'html';\n        var pastedPost = (0, _mobiledocKitUtilsParseUtils.parsePostFromPaste)(event, editor, { targetFormat: targetFormat });\n\n        editor.run(function (postEditor) {\n          var nextPosition = postEditor.insertPost(position, pastedPost);\n          postEditor.setRange(nextPosition);\n        });\n      }\n    }, {\n      key: 'drop',\n      value: function drop(event) {\n        event.preventDefault();\n\n        var x = event.clientX;\n        var y = event.clientY;\n        var editor = this.editor;\n\n        var position = editor.positionAtPoint(x, y);\n        if (!position) {\n          this.logger.log('Could not find drop position');\n          return;\n        }\n\n        var post = (0, _mobiledocKitUtilsParseUtils.parsePostFromDrop)(event, editor, { logger: this.logger });\n        if (!post) {\n          this.logger.log('Could not determine post from drop event');\n          return;\n        }\n\n        editor.run(function (postEditor) {\n          var nextPosition = postEditor.insertPost(position, post);\n          postEditor.setRange(nextPosition);\n        });\n      }\n    }, {\n      key: '_updateModifiersFromKey',\n      value: function _updateModifiersFromKey(key, _ref5) {\n        var isDown = _ref5.isDown;\n\n        if (key.isShiftKey()) {\n          this.modifierKeys.shift = isDown;\n        }\n      }\n    }]);\n\n    return EventManager;\n  })();\n\n  exports['default'] = EventManager;\n});","define('mobiledoc-kit/editor/key-commands', ['exports', 'mobiledoc-kit/utils/key', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/browser', 'mobiledoc-kit/editor/ui'], function (exports, _mobiledocKitUtilsKey, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsAssert, _mobiledocKitUtilsBrowser, _mobiledocKitEditorUi) {\n  'use strict';\n\n  exports.buildKeyCommand = buildKeyCommand;\n  exports.validateKeyCommand = validateKeyCommand;\n  exports.findKeyCommands = findKeyCommands;\n\n  function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); }\n\n  function selectAll(editor) {\n    var post = editor.post;\n\n    editor.selectRange(post.toRange());\n  }\n\n  function gotoStartOfLine(editor) {\n    var range = editor.range;\n    var section = range.tail.section;\n\n    editor.run(function (postEditor) {\n      postEditor.setRange(section.headPosition());\n    });\n  }\n\n  function gotoEndOfLine(editor) {\n    var range = editor.range;\n    var section = range.tail.section;\n\n    editor.run(function (postEditor) {\n      postEditor.setRange(section.tailPosition());\n    });\n  }\n\n  function deleteToEndOfSection(editor) {\n    var range = editor.range;\n\n    if (range.isCollapsed) {\n      var _range = range;\n      var head = _range.head;\n      var section = _range.head.section;\n\n      range = head.toRange(section.tailPosition());\n    }\n    editor.run(function (postEditor) {\n      var nextPosition = postEditor.deleteRange(range);\n      postEditor.setRange(nextPosition);\n    });\n  }\n\n  var DEFAULT_KEY_COMMANDS = [{\n    str: 'META+B',\n    run: function run(editor) {\n      editor.toggleMarkup('strong');\n    }\n  }, {\n    str: 'CTRL+B',\n    run: function run(editor) {\n      editor.toggleMarkup('strong');\n    }\n  }, {\n    str: 'META+I',\n    run: function run(editor) {\n      editor.toggleMarkup('em');\n    }\n  }, {\n    str: 'CTRL+I',\n    run: function run(editor) {\n      editor.toggleMarkup('em');\n    }\n  }, {\n    str: 'META+U',\n    run: function run(editor) {\n      editor.toggleMarkup('u');\n    }\n  }, {\n    str: 'CTRL+U',\n    run: function run(editor) {\n      editor.toggleMarkup('u');\n    }\n  }, {\n    str: 'CTRL+K',\n    run: function run(editor) {\n      if (_mobiledocKitUtilsBrowser['default'].isMac()) {\n        return deleteToEndOfSection(editor);\n      } else if (_mobiledocKitUtilsBrowser['default'].isWin()) {\n        return (0, _mobiledocKitEditorUi.toggleLink)(editor);\n      }\n    }\n  }, {\n    str: 'CTRL+A',\n    run: function run(editor) {\n      if (_mobiledocKitUtilsBrowser['default'].isMac()) {\n        gotoStartOfLine(editor);\n      } else {\n        selectAll(editor);\n      }\n    }\n  }, {\n    str: 'META+A',\n    run: function run(editor) {\n      if (_mobiledocKitUtilsBrowser['default'].isMac()) {\n        selectAll(editor);\n      }\n    }\n  }, {\n    str: 'CTRL+E',\n    run: function run(editor) {\n      if (_mobiledocKitUtilsBrowser['default'].isMac()) {\n        gotoEndOfLine(editor);\n      }\n    }\n  }, {\n    str: 'META+K',\n    run: function run(editor) {\n      return (0, _mobiledocKitEditorUi.toggleLink)(editor);\n    }\n\n  }, {\n    str: 'META+Z',\n    run: function run(editor) {\n      editor.run(function (postEditor) {\n        postEditor.undoLastChange();\n      });\n    }\n  }, {\n    str: 'META+SHIFT+Z',\n    run: function run(editor) {\n      editor.run(function (postEditor) {\n        postEditor.redoLastChange();\n      });\n    }\n  }, {\n    str: 'CTRL+Z',\n    run: function run(editor) {\n      if (_mobiledocKitUtilsBrowser['default'].isMac()) {\n        return false;\n      }\n      editor.run(function (postEditor) {\n        return postEditor.undoLastChange();\n      });\n    }\n  }, {\n    str: 'CTRL+SHIFT+Z',\n    run: function run(editor) {\n      if (_mobiledocKitUtilsBrowser['default'].isMac()) {\n        return false;\n      }\n      editor.run(function (postEditor) {\n        return postEditor.redoLastChange();\n      });\n    }\n  }];\n\n  exports.DEFAULT_KEY_COMMANDS = DEFAULT_KEY_COMMANDS;\n  function modifierNamesToMask(modiferNames) {\n    var defaultVal = 0;\n    return (0, _mobiledocKitUtilsArrayUtils.reduce)(modiferNames, function (sum, name) {\n      var modifier = _mobiledocKitUtilsKey.MODIFIERS[name.toUpperCase()];\n      (0, _mobiledocKitUtilsAssert['default'])('No modifier named \"' + name + '\" found', !!modifier);\n      return sum + modifier;\n    }, defaultVal);\n  }\n\n  function characterToCode(character) {\n    var upperCharacter = character.toUpperCase();\n    var special = (0, _mobiledocKitUtilsKey.specialCharacterToCode)(upperCharacter);\n    if (special) {\n      return special;\n    } else {\n      (0, _mobiledocKitUtilsAssert['default'])('Only 1 character can be used in a key command str (got \"' + character + '\")', character.length === 1);\n      return upperCharacter.charCodeAt(0);\n    }\n  }\n\n  function buildKeyCommand(keyCommand) {\n    var str = keyCommand.str;\n\n    if (!str) {\n      return keyCommand;\n    }\n    (0, _mobiledocKitUtilsAssert['default'])('[deprecation] Key commands no longer use the `modifier` property', !keyCommand.modifier);\n\n    var _str$split$reverse = str.split('+').reverse();\n\n    var _str$split$reverse2 = _toArray(_str$split$reverse);\n\n    var character = _str$split$reverse2[0];\n\n    var modifierNames = _str$split$reverse2.slice(1);\n\n    keyCommand.modifierMask = modifierNamesToMask(modifierNames);\n    keyCommand.code = characterToCode(character);\n\n    return keyCommand;\n  }\n\n  function validateKeyCommand(keyCommand) {\n    return !!keyCommand.code && !!keyCommand.run;\n  }\n\n  function findKeyCommands(keyCommands, keyEvent) {\n    var key = _mobiledocKitUtilsKey['default'].fromEvent(keyEvent);\n\n    return (0, _mobiledocKitUtilsArrayUtils.filter)(keyCommands, function (_ref) {\n      var modifierMask = _ref.modifierMask;\n      var code = _ref.code;\n\n      return key.keyCode === code && key.modifierMask === modifierMask;\n    });\n  }\n});","define('mobiledoc-kit/editor/mutation-handler', ['exports', 'mobiledoc-kit/utils/set', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/dom-utils'], function (exports, _mobiledocKitUtilsSet, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsAssert, _mobiledocKitUtilsDomUtils) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var MUTATION = {\n    NODES_CHANGED: 'childList',\n    CHARACTER_DATA: 'characterData'\n  };\n\n  var MutationHandler = (function () {\n    function MutationHandler(editor) {\n      var _this = this;\n\n      _classCallCheck(this, MutationHandler);\n\n      this.editor = editor;\n      this.logger = editor.loggerFor('mutation-handler');\n      this.renderTree = null;\n      this._isObserving = false;\n\n      this._observer = new MutationObserver(function (mutations) {\n        _this._handleMutations(mutations);\n      });\n    }\n\n    _createClass(MutationHandler, [{\n      key: 'init',\n      value: function init() {\n        this.startObserving();\n      }\n    }, {\n      key: 'destroy',\n      value: function destroy() {\n        this.stopObserving();\n        this._observer = null;\n      }\n    }, {\n      key: 'suspendObservation',\n      value: function suspendObservation(callback) {\n        this.stopObserving();\n        callback();\n        this.startObserving();\n      }\n    }, {\n      key: 'stopObserving',\n      value: function stopObserving() {\n        if (this._isObserving) {\n          this._isObserving = false;\n          this._observer.disconnect();\n        }\n      }\n    }, {\n      key: 'startObserving',\n      value: function startObserving() {\n        if (!this._isObserving) {\n          var editor = this.editor;\n\n          (0, _mobiledocKitUtilsAssert['default'])('Cannot observe un-rendered editor', editor.hasRendered);\n\n          this._isObserving = true;\n          this.renderTree = editor._renderTree;\n\n          this._observer.observe(editor.element, {\n            characterData: true,\n            childList: true,\n            subtree: true\n          });\n        }\n      }\n    }, {\n      key: 'reparsePost',\n      value: function reparsePost() {\n        this.editor._reparsePost();\n      }\n    }, {\n      key: 'reparseSections',\n      value: function reparseSections(sections) {\n        this.editor._reparseSections(sections);\n      }\n\n      /**\n       * for each mutation:\n       *   * find the target nodes:\n       *     * if nodes changed, target nodes are:\n       *        * added nodes\n       *        * the target from which removed nodes were removed\n       *     * if character data changed\n       *       * target node is the mutation event's target (text node)\n       *     * filter out nodes that are no longer attached (parentNode is null)\n       *   * for each remaining node:\n       *   *  find its section, add to sections-to-reparse\n       *   *  if no section, reparse all (and break)\n       */\n    }, {\n      key: '_handleMutations',\n      value: function _handleMutations(mutations) {\n        var reparsePost = false;\n        var sections = new _mobiledocKitUtilsSet['default']();\n\n        for (var i = 0; i < mutations.length; i++) {\n          if (reparsePost) {\n            break;\n          }\n\n          var nodes = this._findTargetNodes(mutations[i]);\n\n          for (var j = 0; j < nodes.length; j++) {\n            var node = nodes[j];\n            var renderNode = this._findRenderNodeFromNode(node);\n            if (renderNode) {\n              if (renderNode.reparsesMutationOfChildNode(node)) {\n                var section = this._findSectionFromRenderNode(renderNode);\n                if (section) {\n                  sections.add(section);\n                } else {\n                  reparsePost = true;\n                }\n              }\n            } else {\n              reparsePost = true;\n              break;\n            }\n          }\n        }\n\n        if (reparsePost) {\n          this.logger.log('reparsePost (' + mutations.length + ' mutations)');\n          this.reparsePost();\n        } else if (sections.length) {\n          this.logger.log('reparse ' + sections.length + ' sections (' + mutations.length + ' mutations)');\n          this.reparseSections(sections.toArray());\n        }\n      }\n    }, {\n      key: '_findTargetNodes',\n      value: function _findTargetNodes(mutation) {\n        var nodes = [];\n\n        switch (mutation.type) {\n          case MUTATION.CHARACTER_DATA:\n            nodes.push(mutation.target);\n            break;\n          case MUTATION.NODES_CHANGED:\n            (0, _mobiledocKitUtilsArrayUtils.forEach)(mutation.addedNodes, function (n) {\n              return nodes.push(n);\n            });\n            if (mutation.removedNodes.length) {\n              nodes.push(mutation.target);\n            }\n            break;\n        }\n\n        var element = this.editor.element;\n        var attachedNodes = (0, _mobiledocKitUtilsArrayUtils.filter)(nodes, function (node) {\n          return (0, _mobiledocKitUtilsDomUtils.containsNode)(element, node);\n        });\n        return attachedNodes;\n      }\n    }, {\n      key: '_findSectionRenderNodeFromNode',\n      value: function _findSectionRenderNodeFromNode(node) {\n        return this.renderTree.findRenderNodeFromElement(node, function (rn) {\n          return rn.postNode.isSection;\n        });\n      }\n    }, {\n      key: '_findRenderNodeFromNode',\n      value: function _findRenderNodeFromNode(node) {\n        return this.renderTree.findRenderNodeFromElement(node);\n      }\n    }, {\n      key: '_findSectionFromRenderNode',\n      value: function _findSectionFromRenderNode(renderNode) {\n        var sectionRenderNode = this._findSectionRenderNodeFromNode(renderNode.element);\n        return sectionRenderNode && sectionRenderNode.postNode;\n      }\n    }]);\n\n    return MutationHandler;\n  })();\n\n  exports['default'] = MutationHandler;\n});","define('mobiledoc-kit/editor/post', ['exports', 'mobiledoc-kit/utils/cursor/position', 'mobiledoc-kit/utils/cursor/range', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/key', 'mobiledoc-kit/models/lifecycle-callbacks', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/editor/post/post-inserter', 'mobiledoc-kit/utils/deprecate', 'mobiledoc-kit/utils/to-range'], function (exports, _mobiledocKitUtilsCursorPosition, _mobiledocKitUtilsCursorRange, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsKey, _mobiledocKitModelsLifecycleCallbacks, _mobiledocKitUtilsAssert, _mobiledocKitUtilsDomUtils, _mobiledocKitEditorPostPostInserter, _mobiledocKitUtilsDeprecate, _mobiledocKitUtilsToRange) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var FORWARD = _mobiledocKitUtilsKey.DIRECTION.FORWARD;\n  var BACKWARD = _mobiledocKitUtilsKey.DIRECTION.BACKWARD;\n\n  function isListSectionTagName(tagName) {\n    return tagName === 'ul' || tagName === 'ol';\n  }\n\n  function shrinkRange(range) {\n    var head = range.head;\n    var tail = range.tail;\n\n    if (tail.offset === 0 && head.section !== tail.section) {\n      range.tail = new _mobiledocKitUtilsCursorPosition['default'](tail.section.prev, tail.section.prev.length);\n    }\n\n    return range;\n  }\n\n  var CALLBACK_QUEUES = {\n    BEFORE_COMPLETE: 'beforeComplete',\n    COMPLETE: 'complete',\n    AFTER_COMPLETE: 'afterComplete'\n  };\n\n  // There are only two events that we're concerned about for Undo, that is inserting text and deleting content.\n  // These are the only two states that go on a \"run\" and create a combined undo, everything else has it's own\n  // deadicated undo.\n  var EDIT_ACTIONS = {\n    INSERT_TEXT: 1,\n    DELETE: 2\n  };\n\n  /**\n   * The PostEditor is used to modify a post. It should not be instantiated directly.\n   * Instead, a new instance of a PostEditor is created by the editor and passed\n   * as the argument to the callback in {@link Editor#run}.\n   *\n   * Usage:\n   * ```\n   * editor.run((postEditor) => {\n   *   // postEditor is an instance of PostEditor that can operate on the\n   *   // editor's post\n   * });\n   * ```\n   */\n\n  var PostEditor = (function () {\n    /**\n     * @private\n     */\n\n    function PostEditor(editor) {\n      var _this = this;\n\n      _classCallCheck(this, PostEditor);\n\n      this.editor = editor;\n      this.builder = this.editor.builder;\n      this._callbacks = new _mobiledocKitModelsLifecycleCallbacks['default']((0, _mobiledocKitUtilsArrayUtils.values)(CALLBACK_QUEUES));\n\n      this._didComplete = false;\n      this.editActionTaken = null;\n\n      this._renderRange = function () {\n        return _this.editor.selectRange(_this._range);\n      };\n      this._postDidChange = function () {\n        return _this.editor._postDidChange();\n      };\n      this._rerender = function () {\n        return _this.editor.rerender();\n      };\n    }\n\n    _createClass(PostEditor, [{\n      key: 'addCallback',\n      value: function addCallback() {\n        var _callbacks;\n\n        (_callbacks = this._callbacks).addCallback.apply(_callbacks, arguments);\n      }\n    }, {\n      key: 'addCallbackOnce',\n      value: function addCallbackOnce() {\n        var _callbacks2;\n\n        (_callbacks2 = this._callbacks).addCallbackOnce.apply(_callbacks2, arguments);\n      }\n    }, {\n      key: 'runCallbacks',\n      value: function runCallbacks() {\n        var _callbacks3;\n\n        (_callbacks3 = this._callbacks).runCallbacks.apply(_callbacks3, arguments);\n      }\n    }, {\n      key: 'begin',\n      value: function begin() {\n        // cache the editor's range\n        this._range = this.editor.range;\n      }\n\n      /**\n       * Schedules to select the given range on the editor after the postEditor\n       * has completed its work. This also updates the postEditor's active range\n       * (so that multiple calls to range-changing methods on the postEditor will\n       * update the correct range).\n       *\n       * Usage:\n       *   let range = editor.range;\n       *   editor.run(postEditor => {\n       *     let nextPosition = postEditor.deleteRange(range);\n       *\n       *     // Will position the editor's cursor at `nextPosition` after\n       *     // the postEditor finishes work and the editor rerenders.\n       *     postEditor.setRange(nextPosition);\n       *   });\n       * @param {Range|Position} range\n       * @public\n       */\n    }, {\n      key: 'setRange',\n      value: function setRange(range) {\n        range = (0, _mobiledocKitUtilsToRange['default'])(range);\n\n        // TODO validate that the range is valid\n        // (does not contain marked-for-removal head or tail sections?)\n        this._range = range;\n        this.scheduleAfterRender(this._renderRange, true);\n      }\n\n      /**\n       * Delete a range from the post\n       *\n       * Usage:\n       * ```\n       *     let { range } = editor;\n       *     editor.run((postEditor) => {\n       *       let nextPosition = postEditor.deleteRange(range);\n       *       postEditor.setRange(nextPosition);\n       *     });\n       * ```\n       * @param {Range} range Cursor Range object with head and tail Positions\n       * @return {Position} The position where the cursor would go after deletion\n       * @public\n       */\n    }, {\n      key: 'deleteRange',\n      value: function deleteRange(range) {\n        (0, _mobiledocKitUtilsAssert['default'])(\"Must pass MobiledocKit Range to `deleteRange`\", range instanceof _mobiledocKitUtilsCursorRange['default']);\n\n        this.editActionTaken = EDIT_ACTIONS.DELETE;\n\n        var head = range.head;\n        var headSection = range.head.section;\n        var tail = range.tail;\n        var tailSection = range.tail.section;\n        var post = this.editor.post;\n\n        if (headSection === tailSection) {\n          return this.cutSection(headSection, head, tail);\n        }\n\n        var nextSection = headSection.nextLeafSection();\n\n        var nextPos = this.cutSection(headSection, head, headSection.tailPosition());\n        // cutSection can replace the section, so re-read headSection here\n        headSection = nextPos.section;\n\n        // Remove sections in the middle of the range\n        while (nextSection !== tailSection) {\n          var tmp = nextSection;\n          nextSection = nextSection.nextLeafSection();\n          this.removeSection(tmp);\n        }\n\n        var tailPos = this.cutSection(tailSection, tailSection.headPosition(), tail);\n        // cutSection can replace the section, so re-read tailSection here\n        tailSection = tailPos.section;\n\n        if (tailSection.isBlank) {\n          this.removeSection(tailSection);\n        } else {\n          // If head and tail sections are markerable, join them\n          // Note: They may not be the same section type. E.g. this may join\n          // a tail section that was a list item onto a markup section, or vice versa.\n          // (This is the desired behavior.)\n          if (headSection.isMarkerable && tailSection.isMarkerable) {\n            headSection.join(tailSection);\n            this._markDirty(headSection);\n            this.removeSection(tailSection);\n          } else if (headSection.isBlank) {\n            this.removeSection(headSection);\n            nextPos = tailPos;\n          }\n        }\n\n        if (post.isBlank) {\n          post.sections.append(this.builder.createMarkupSection('p'));\n          nextPos = post.headPosition();\n        }\n\n        return nextPos;\n      }\n\n      /**\n       * Note: This method may replace `section` with a different section.\n       *\n       * \"Cut\" out the part of the section inside `headOffset` and `tailOffset`.\n       * If section is markerable this splits markers that straddle the head or tail (if necessary),\n       * and removes markers that are wholly inside the offsets.\n       * If section is a card, this may replace it with a blank markup section if the\n       * positions contain the entire card.\n       *\n       * @param {Section} section\n       * @param {Position} head\n       * @param {Position} tail\n       * @return {Position}\n       * @private\n       */\n    }, {\n      key: 'cutSection',\n      value: function cutSection(section, head, tail) {\n        var _this2 = this;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Must pass head position and tail position to `cutSection`', head instanceof _mobiledocKitUtilsCursorPosition['default'] && tail instanceof _mobiledocKitUtilsCursorPosition['default']);\n        (0, _mobiledocKitUtilsAssert['default'])('Must pass positions within same section to `cutSection`', head.section === tail.section);\n\n        if (section.isBlank || head.isEqual(tail)) {\n          return head;\n        }\n        if (section.isCardSection) {\n          if (head.isHead() && tail.isTail()) {\n            var newSection = this.builder.createMarkupSection();\n            this.replaceSection(section, newSection);\n            return newSection.headPosition();\n          } else {\n            return tail;\n          }\n        }\n\n        var range = head.toRange(tail);\n        this.splitMarkers(range).forEach(function (m) {\n          return _this2.removeMarker(m);\n        });\n\n        return head;\n      }\n    }, {\n      key: '_coalesceMarkers',\n      value: function _coalesceMarkers(section) {\n        if (section.isMarkerable) {\n          this._removeBlankMarkers(section);\n          this._joinSimilarMarkers(section);\n        }\n      }\n    }, {\n      key: '_removeBlankMarkers',\n      value: function _removeBlankMarkers(section) {\n        var _this3 = this;\n\n        (0, _mobiledocKitUtilsArrayUtils.forEach)((0, _mobiledocKitUtilsArrayUtils.filter)(section.markers, function (m) {\n          return m.isBlank;\n        }), function (m) {\n          return _this3.removeMarker(m);\n        });\n      }\n\n      // joins markers that have identical markups\n    }, {\n      key: '_joinSimilarMarkers',\n      value: function _joinSimilarMarkers(section) {\n        var marker = section.markers.head;\n        var nextMarker = undefined;\n        while (marker && marker.next) {\n          nextMarker = marker.next;\n\n          if (marker.canJoin(nextMarker)) {\n            nextMarker.value = marker.value + nextMarker.value;\n            this._markDirty(nextMarker);\n            this.removeMarker(marker);\n          }\n\n          marker = nextMarker;\n        }\n      }\n    }, {\n      key: 'removeMarker',\n      value: function removeMarker(marker) {\n        this._scheduleForRemoval(marker);\n        if (marker.section) {\n          this._markDirty(marker.section);\n          marker.section.markers.remove(marker);\n        }\n      }\n    }, {\n      key: '_scheduleForRemoval',\n      value: function _scheduleForRemoval(postNode) {\n        var _this4 = this;\n\n        if (postNode.renderNode) {\n          postNode.renderNode.scheduleForRemoval();\n\n          this.scheduleRerender();\n          this.scheduleDidUpdate();\n        }\n        var removedAdjacentToList = postNode.prev && postNode.prev.isListSection || postNode.next && postNode.next.isListSection;\n        if (removedAdjacentToList) {\n          this.addCallback(CALLBACK_QUEUES.BEFORE_COMPLETE, function () {\n            return _this4._joinContiguousListSections();\n          });\n        }\n      }\n    }, {\n      key: '_joinContiguousListSections',\n      value: function _joinContiguousListSections() {\n        var _this5 = this;\n\n        var post = this.editor.post;\n\n        var range = this._range;\n        var prev = undefined;\n        var groups = [];\n        var currentGroup = undefined;\n\n        // FIXME do we need to force a re-render of the range if changed sections\n        // are contained within the range?\n        var updatedHead = null;\n        (0, _mobiledocKitUtilsArrayUtils.forEach)(post.sections, function (section) {\n          if (prev && prev.isListSection && section.isListSection && prev.tagName === section.tagName) {\n\n            currentGroup = currentGroup || [prev];\n            currentGroup.push(section);\n          } else {\n            if (currentGroup) {\n              groups.push(currentGroup);\n            }\n            currentGroup = null;\n          }\n          prev = section;\n        });\n\n        if (currentGroup) {\n          groups.push(currentGroup);\n        }\n\n        (0, _mobiledocKitUtilsArrayUtils.forEach)(groups, function (group) {\n          var list = group[0];\n          (0, _mobiledocKitUtilsArrayUtils.forEach)(group, function (listSection) {\n            if (listSection === list) {\n              return;\n            }\n\n            var currentHead = range.head;\n            var prevPosition = undefined;\n\n            // FIXME is there a currentHead if there is no range?\n            // is the current head a list item in the section\n            if (!range.isBlank && currentHead.section.isListItem && currentHead.section.parent === listSection) {\n              prevPosition = list.tailPosition();\n            }\n            _this5._joinListSections(list, listSection);\n            if (prevPosition) {\n              updatedHead = prevPosition.move(FORWARD);\n            }\n          });\n        });\n\n        if (updatedHead) {\n          this.setRange(updatedHead);\n        }\n      }\n    }, {\n      key: '_joinListSections',\n      value: function _joinListSections(baseList, nextList) {\n        baseList.join(nextList);\n        this._markDirty(baseList);\n        this.removeSection(nextList);\n      }\n    }, {\n      key: '_markDirty',\n      value: function _markDirty(postNode) {\n        var _this6 = this;\n\n        if (postNode.renderNode) {\n          postNode.renderNode.markDirty();\n\n          this.scheduleRerender();\n          this.scheduleDidUpdate();\n        }\n        if (postNode.section) {\n          this._markDirty(postNode.section);\n        }\n        if (postNode.isMarkerable) {\n          this.addCallback(CALLBACK_QUEUES.BEFORE_COMPLETE, function () {\n            return _this6._coalesceMarkers(postNode);\n          });\n        }\n      }\n\n      /**\n       * @param {Position} position object with {section, offset} the marker and offset to delete from\n       * @param {Number} direction The direction to delete in (default is BACKWARD)\n       * @return {Position} for positioning the cursor\n       * @public\n       * @deprecated after v0.10.3\n       */\n    }, {\n      key: 'deleteFrom',\n      value: function deleteFrom(position) {\n        var direction = arguments.length <= 1 || arguments[1] === undefined ? _mobiledocKitUtilsKey.DIRECTION.BACKWARD : arguments[1];\n\n        (0, _mobiledocKitUtilsDeprecate['default'])(\"`postEditor#deleteFrom is deprecated. Use `deleteAtPosition(position, direction=BACKWARD, {unit}={unit: 'char'})` instead\");\n        return this.deleteAtPosition(position, direction, { unit: 'char' });\n      }\n\n      /**\n       * Delete 1 `unit` (can be 'char' or 'word') in the given `direction` at the given\n       * `position`. In almost all cases this will be equivalent to deleting the range formed\n       * by expanding the position 1 unit in the given direction. The exception is when deleting\n       * backward from the beginning of a list item, which reverts the list item into a markup section\n       * instead of joining it with its previous list item (if any).\n       *\n       * Usage:\n       *\n       *     let position = section.tailPosition();\n       *     // Section has text of \"Howdy!\"\n       *     editor.run((postEditor) => {\n       *       postEditor.deleteAtPosition(position);\n       *     });\n       *     // section has text of \"Howdy\"\n       *\n       * @param {Position} position The position to delete at\n       * @param {Direction} [direction=DIRECTION.BACKWARD] direction The direction to delete in\n       * @param {Object} [options]\n       * @param {String} [options.unit=\"char\"] The unit of deletion (\"word\" or \"char\")\n       * @return {Position}\n       */\n    }, {\n      key: 'deleteAtPosition',\n      value: function deleteAtPosition(position) {\n        var direction = arguments.length <= 1 || arguments[1] === undefined ? _mobiledocKitUtilsKey.DIRECTION.BACKWARD : arguments[1];\n\n        var _ref = arguments.length <= 2 || arguments[2] === undefined ? { unit: 'char' } : arguments[2];\n\n        var unit = _ref.unit;\n\n        if (direction === _mobiledocKitUtilsKey.DIRECTION.BACKWARD) {\n          return this._deleteAtPositionBackward(position, unit);\n        } else {\n          return this._deleteAtPositionForward(position, unit);\n        }\n      }\n    }, {\n      key: '_deleteAtPositionBackward',\n      value: function _deleteAtPositionBackward(position, unit) {\n        if (position.isHead() && position.section.isListItem) {\n          this.toggleSection('p', position);\n          return this._range.head;\n        } else {\n          var prevPosition = unit === 'word' ? position.moveWord(BACKWARD) : position.move(BACKWARD);\n          var range = prevPosition.toRange(position);\n          return this.deleteRange(range);\n        }\n      }\n    }, {\n      key: '_deleteAtPositionForward',\n      value: function _deleteAtPositionForward(position, unit) {\n        var nextPosition = unit === 'word' ? position.moveWord(FORWARD) : position.move(FORWARD);\n        var range = position.toRange(nextPosition);\n        return this.deleteRange(range);\n      }\n\n      /**\n       * Split markers at two positions, once at the head, and if necessary once\n       * at the tail.\n       *\n       * Usage:\n       * ```\n       *     let range = editor.range;\n       *     editor.run((postEditor) => {\n       *       postEditor.splitMarkers(range);\n       *     });\n       * ```\n       * The return value will be marker object completely inside the offsets\n       * provided. Markers outside of the split may also have been modified.\n       *\n       * @param {Range} markerRange\n       * @return {Array} of markers that are inside the split\n       * @private\n       */\n    }, {\n      key: 'splitMarkers',\n      value: function splitMarkers(range) {\n        var post = this.editor.post;\n        var head = range.head;\n        var tail = range.tail;\n\n        this.splitSectionMarkerAtOffset(head.section, head.offset);\n        this.splitSectionMarkerAtOffset(tail.section, tail.offset);\n\n        return post.markersContainedByRange(range);\n      }\n    }, {\n      key: 'splitSectionMarkerAtOffset',\n      value: function splitSectionMarkerAtOffset(section, offset) {\n        var _this7 = this;\n\n        var edit = section.splitMarkerAtOffset(offset);\n        edit.removed.forEach(function (m) {\n          return _this7.removeMarker(m);\n        });\n      }\n\n      /**\n       * Split the section at the position.\n       *\n       * Usage:\n       * ```\n       *     let position = editor.cursor.offsets.head;\n       *     editor.run((postEditor) => {\n       *       postEditor.splitSection(position);\n       *     });\n       *     // Will result in the creation of two new sections\n       *     // replacing the old one at the cursor position\n       * ```\n       * The return value will be the two new sections. One or both of these\n       * sections can be blank (contain only a blank marker), for example if the\n       * headMarkerOffset is 0.\n       *\n       * @param {Position} position\n       * @return {Array} new sections, one for the first half and one for the second (either one can be null)\n       * @public\n       */\n    }, {\n      key: 'splitSection',\n      value: function splitSection(position) {\n        var _this8 = this;\n\n        var section = position.section;\n\n        if (section.isCardSection) {\n          return this._splitCardSection(section, position);\n        } else if (section.isListItem) {\n          var isLastAndBlank = section.isBlank && !section.next;\n          if (isLastAndBlank) {\n            // if is last, replace the item with a blank markup section\n            var _parent = section.parent;\n            var collection = this.editor.post.sections;\n            var blank = this.builder.createMarkupSection();\n            this.removeSection(section);\n            this.insertSectionBefore(collection, blank, _parent.next);\n\n            return [null, blank];\n          } else {\n            var _splitListItem2 = this._splitListItem(section, position);\n\n            var _splitListItem22 = _slicedToArray(_splitListItem2, 2);\n\n            var pre = _splitListItem22[0];\n            var post = _splitListItem22[1];\n\n            return [pre, post];\n          }\n        } else {\n          var splitSections = section.splitAtPosition(position);\n          splitSections.forEach(function (s) {\n            return _this8._coalesceMarkers(s);\n          });\n          this._replaceSection(section, splitSections);\n\n          return splitSections;\n        }\n      }\n\n      /**\n       * @param {Section} cardSection\n       * @param {Position} position to split at\n       * @return {Section[]} 2-item array of pre and post-split sections\n       * @private\n       */\n    }, {\n      key: '_splitCardSection',\n      value: function _splitCardSection(cardSection, position) {\n        var offset = position.offset;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Cards section must be split at offset 0 or 1', offset === 0 || offset === 1);\n\n        var newSection = this.builder.createMarkupSection();\n        var nextSection = undefined;\n        var surroundingSections = undefined;\n\n        if (offset === 0) {\n          nextSection = cardSection;\n          surroundingSections = [newSection, cardSection];\n        } else {\n          nextSection = cardSection.next;\n          surroundingSections = [cardSection, newSection];\n        }\n\n        var collection = this.editor.post.sections;\n        this.insertSectionBefore(collection, newSection, nextSection);\n\n        return surroundingSections;\n      }\n\n      /**\n       * @param {Section} section\n       * @param {Section} newSection\n       * @return null\n       * @public\n       */\n    }, {\n      key: 'replaceSection',\n      value: function replaceSection(section, newSection) {\n        if (!section) {\n          // FIXME should a falsy section be a valid argument?\n          this.insertSectionBefore(this.editor.post.sections, newSection, null);\n        } else {\n          this._replaceSection(section, [newSection]);\n        }\n      }\n    }, {\n      key: 'moveSectionBefore',\n      value: function moveSectionBefore(collection, renderedSection, beforeSection) {\n        var newSection = renderedSection.clone();\n        this.removeSection(renderedSection);\n        this.insertSectionBefore(collection, newSection, beforeSection);\n        return newSection;\n      }\n\n      /**\n       * @param {Section} section A section that is already in DOM\n       * @public\n       */\n    }, {\n      key: 'moveSectionUp',\n      value: function moveSectionUp(renderedSection) {\n        var isFirst = !renderedSection.prev;\n        if (isFirst) {\n          return renderedSection;\n        }\n\n        var collection = renderedSection.parent.sections;\n        var beforeSection = renderedSection.prev;\n        return this.moveSectionBefore(collection, renderedSection, beforeSection);\n      }\n\n      /**\n       * @param {Section} section A section that is already in DOM\n       * @public\n       */\n    }, {\n      key: 'moveSectionDown',\n      value: function moveSectionDown(renderedSection) {\n        var isLast = !renderedSection.next;\n        if (isLast) {\n          return renderedSection;\n        }\n\n        var beforeSection = renderedSection.next.next;\n        var collection = renderedSection.parent.sections;\n        return this.moveSectionBefore(collection, renderedSection, beforeSection);\n      }\n\n      /**\n       * Insert an array of markers at the given position. If the position is in\n       * a non-markerable section (like a card section), this method throws an error.\n       *\n       * @param {Position} position\n       * @param {Marker[]} markers\n       * @return {Position} The position that represents the end of the inserted markers.\n       * @public\n       */\n    }, {\n      key: 'insertMarkers',\n      value: function insertMarkers(position, markers) {\n        var _this9 = this;\n\n        var section = position.section;\n        var offset = position.offset;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot insert markers at non-markerable position', section.isMarkerable);\n\n        this.editActionTaken = EDIT_ACTIONS.INSERT_TEXT;\n\n        var edit = section.splitMarkerAtOffset(offset);\n        edit.removed.forEach(function (marker) {\n          return _this9._scheduleForRemoval(marker);\n        });\n\n        var prevMarker = section.markerBeforeOffset(offset);\n        markers.forEach(function (marker) {\n          section.markers.insertAfter(marker, prevMarker);\n          offset += marker.length;\n          prevMarker = marker;\n        });\n\n        this._coalesceMarkers(section);\n        this._markDirty(section);\n\n        var nextPosition = section.toPosition(offset);\n        this.setRange(nextPosition);\n        return nextPosition;\n      }\n\n      /**\n       * Inserts text with the given markups, ignoring the existing markups at\n       * the position, if any.\n       *\n       * @param {Position} position\n       * @param {String} text\n       * @param {Markup[]} markups\n       * @return {Position} position at the end of the inserted text\n       */\n    }, {\n      key: 'insertTextWithMarkup',\n      value: function insertTextWithMarkup(position, text) {\n        var markups = arguments.length <= 2 || arguments[2] === undefined ? [] : arguments[2];\n        var section = position.section;\n\n        if (!section.isMarkerable) {\n          return;\n        }\n        var marker = this.builder.createMarker(text, markups);\n        return this.insertMarkers(position, [marker]);\n      }\n\n      /**\n       * Insert the text at the given position\n       * Inherits the markups already at that position, if any.\n       *\n       * @param {Position} position\n       * @param {String} text\n       * @return {Position} position at the end of the inserted text.\n       */\n    }, {\n      key: 'insertText',\n      value: function insertText(position, text) {\n        var section = position.section;\n\n        if (!section.isMarkerable) {\n          return;\n        }\n        var markups = position.marker && position.marker.markups;\n        markups = markups || [];\n        return this.insertTextWithMarkup(position, text, markups);\n      }\n    }, {\n      key: '_replaceSection',\n      value: function _replaceSection(section, newSections) {\n        var _this10 = this;\n\n        var nextSection = section.next;\n        var collection = section.parent.sections;\n\n        var nextNewSection = newSections[0];\n        if (nextNewSection.isMarkupSection && section.isListItem) {\n          // put the new section after the ListSection (section.parent)\n          // instead of after the ListItem\n          collection = section.parent.parent.sections;\n          nextSection = section.parent.next;\n        }\n\n        newSections.forEach(function (s) {\n          return _this10.insertSectionBefore(collection, s, nextSection);\n        });\n        this.removeSection(section);\n      }\n\n      /**\n       * Given a markerRange (for example `editor.range`) mark all markers\n       * inside it as a given markup. The markup must be provided as a post\n       * abstract node.\n       *\n       * Usage:\n       *\n       *     let range = editor.range;\n       *     let strongMarkup = editor.builder.createMarkup('strong');\n       *     editor.run((postEditor) => {\n       *       postEditor.addMarkupToRange(range, strongMarkup);\n       *     });\n       *     // Will result some markers possibly being split, and the markup\n       *     // being applied to all markers between the split.\n       *\n       * @param {Range} range\n       * @param {Markup} markup A markup post abstract node\n       * @public\n       */\n    }, {\n      key: 'addMarkupToRange',\n      value: function addMarkupToRange(range, markup) {\n        var _this11 = this;\n\n        if (range.isCollapsed) {\n          return;\n        }\n\n        var markers = this.splitMarkers(range);\n        if (markers.length) {\n          (function () {\n            // We insert the new markup at a consistent index across the range.\n            // If we just push on the end of the list, it can end up in different positions\n            // of the markup stack. This results in unnecessary closing and re-opening of\n            // the markup each time it changes position.\n            // If we just push it at the beginning of the list, this causes unnecessary closing\n            // and re-opening of surrounding tags.\n            // So, we look for any tags open across the whole range, and push into the stack\n            // at the end of those.\n            // Prompted by https://github.com/bustle/mobiledoc-kit/issues/360\n\n            var markupsOpenAcrossRange = (0, _mobiledocKitUtilsArrayUtils.reduce)(markers, function (soFar, marker) {\n              return (0, _mobiledocKitUtilsArrayUtils.commonItems)(soFar, marker.markups);\n            }, markers[0].markups);\n            var indexToInsert = markupsOpenAcrossRange.length;\n\n            markers.forEach(function (marker) {\n              marker.addMarkupAtIndex(markup, indexToInsert);\n              _this11._markDirty(marker);\n            });\n          })();\n        }\n      }\n\n      /**\n       * Given a markerRange (for example `editor.range`) remove the given\n       * markup from all contained markers.\n       *\n       * Usage:\n       * ```\n       *     let { range } = editor;\n       *     let markup = markerRange.headMarker.markups[0];\n       *     editor.run(postEditor => {\n       *       postEditor.removeMarkupFromRange(range, markup);\n       *     });\n       *     // Will result in some markers possibly being split, and the markup\n       *     // being removed from all markers between the split.\n       * ```\n       * @param {Range} range Object with offsets\n       * @param {Markup|Function} markupOrCallback A markup post abstract node or\n       * a function that returns true when passed a markup that should be removed\n       * @private\n       */\n    }, {\n      key: 'removeMarkupFromRange',\n      value: function removeMarkupFromRange(range, markupOrMarkupCallback) {\n        var _this12 = this;\n\n        if (range.isCollapsed) {\n          return;\n        }\n\n        this.splitMarkers(range).forEach(function (marker) {\n          marker.removeMarkup(markupOrMarkupCallback);\n          _this12._markDirty(marker);\n        });\n      }\n\n      /**\n       * Toggle the given markup in the given range (or at the position given). If the range/position\n       * has the markup, the markup will be removed. If nothing in the range/position\n       * has the markup, the markup will be added to everything in the range/position.\n       *\n       * Usage:\n       * ```\n       * // Remove any 'strong' markup if it exists in the selection, otherwise\n       * // make it all 'strong'\n       * editor.run(postEditor => postEditor.toggleMarkup('strong'));\n       *\n       * // add/remove a link to 'bustle.com' to the selection\n       * editor.run(postEditor => {\n       *   const linkMarkup = postEditor.builder.createMarkup('a', {href: 'http://bustle.com'});\n       *   postEditor.toggleMarkup(linkMarkup);\n       * });\n       * ```\n       * @param {Markup|String} markupOrString Either a markup object created using\n       * the builder (useful when adding a markup with attributes, like an 'a' markup),\n       * or, if a string, the tag name of the markup (e.g. 'strong', 'em') to toggle.\n       * @param {Range|Position} range in which to toggle. Defaults to current editor range.\n       * @public\n       */\n    }, {\n      key: 'toggleMarkup',\n      value: function toggleMarkup(markupOrMarkupString) {\n        var range = arguments.length <= 1 || arguments[1] === undefined ? this._range : arguments[1];\n\n        range = (0, _mobiledocKitUtilsToRange['default'])(range);\n        var markup = typeof markupOrMarkupString === 'string' ? this.builder.createMarkup(markupOrMarkupString) : markupOrMarkupString;\n\n        var hasMarkup = this.editor.detectMarkupInRange(range, markup.tagName);\n        // FIXME: This implies only a single markup in a range. This may not be\n        // true for links (which are not the same object instance like multiple\n        // strong tags would be).\n        if (hasMarkup) {\n          this.removeMarkupFromRange(range, hasMarkup);\n        } else {\n          this.addMarkupToRange(range, markup);\n        }\n\n        this.setRange(range);\n      }\n\n      /**\n       * Toggles the tagName of the active section or sections in the given range/position.\n       * If every section has the tag name, they will all be reset to default sections.\n       * Otherwise, every section will be changed to the requested type\n       *\n       * @param {String} sectionTagName A valid markup section or\n       *        list section tag name (e.g. 'blockquote', 'h2', 'ul')\n       * @param {Range|Position} range The range over which to toggle.\n       *        Defaults to the current editor range.\n       * @public\n       */\n    }, {\n      key: 'toggleSection',\n      value: function toggleSection(sectionTagName) {\n        var _this13 = this;\n\n        var range = arguments.length <= 1 || arguments[1] === undefined ? this._range : arguments[1];\n\n        range = shrinkRange((0, _mobiledocKitUtilsToRange['default'])(range));\n\n        sectionTagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(sectionTagName);\n        var post = this.editor.post;\n\n        var everySectionHasTagName = true;\n        post.walkMarkerableSections(range, function (section) {\n          if (!_this13._isSameSectionType(section, sectionTagName)) {\n            everySectionHasTagName = false;\n          }\n        });\n\n        var tagName = everySectionHasTagName ? 'p' : sectionTagName;\n        var sectionTransformations = [];\n        post.walkMarkerableSections(range, function (section) {\n          var changedSection = _this13.changeSectionTagName(section, tagName);\n\n          sectionTransformations.push({\n            from: section,\n            to: changedSection\n          });\n        });\n\n        var nextRange = this._determineNextRangeAfterToggleSection(range, sectionTransformations);\n        this.setRange(nextRange);\n      }\n    }, {\n      key: '_determineNextRangeAfterToggleSection',\n      value: function _determineNextRangeAfterToggleSection(range, sectionTransformations) {\n        if (sectionTransformations.length) {\n          var changedHeadSection = (0, _mobiledocKitUtilsArrayUtils.detect)(sectionTransformations, function (_ref2) {\n            var from = _ref2.from;\n\n            return from === range.headSection;\n          }).to;\n          var changedTailSection = (0, _mobiledocKitUtilsArrayUtils.detect)(sectionTransformations, function (_ref3) {\n            var from = _ref3.from;\n\n            return from === range.tailSection;\n          }).to;\n\n          if (changedHeadSection.isListSection || changedTailSection.isListSection) {\n            // We don't know to which ListItem's the original sections point at, so\n            // we don't have enough information to reconstruct the range when\n            // dealing with lists.\n            return sectionTransformations[0].to.headPosition().toRange();\n          } else {\n            return _mobiledocKitUtilsCursorRange['default'].create(changedHeadSection, range.headSectionOffset, changedTailSection, range.tailSectionOffset, range.direction);\n          }\n        } else {\n          return range;\n        }\n      }\n    }, {\n      key: 'setAttribute',\n      value: function setAttribute(key, value) {\n        var range = arguments.length <= 2 || arguments[2] === undefined ? this._range : arguments[2];\n\n        this._mutateAttribute(key, range, function (section, attribute) {\n          if (section.getAttribute(attribute) !== value) {\n            section.setAttribute(attribute, value);\n            return true;\n          }\n        });\n      }\n    }, {\n      key: 'removeAttribute',\n      value: function removeAttribute(key) {\n        var range = arguments.length <= 1 || arguments[1] === undefined ? this._range : arguments[1];\n\n        this._mutateAttribute(key, range, function (section, attribute) {\n          if (section.hasAttribute(attribute)) {\n            section.removeAttribute(attribute);\n            return true;\n          }\n        });\n      }\n    }, {\n      key: '_mutateAttribute',\n      value: function _mutateAttribute(key, range, cb) {\n        var _this14 = this;\n\n        range = (0, _mobiledocKitUtilsToRange['default'])(range);\n        var post = this.editor.post;\n\n        var attribute = 'data-md-' + key;\n\n        post.walkMarkerableSections(range, function (section) {\n          if (section.isListItem) {\n            section = section.parent;\n          }\n\n          if (cb(section, attribute) === true) {\n            _this14._markDirty(section);\n          }\n        });\n\n        this.setRange(range);\n      }\n    }, {\n      key: '_isSameSectionType',\n      value: function _isSameSectionType(section, sectionTagName) {\n        return section.isListItem ? section.parent.tagName === sectionTagName : section.tagName === sectionTagName;\n      }\n\n      /**\n       * @param {Markerable} section\n       * @private\n       */\n    }, {\n      key: 'changeSectionTagName',\n      value: function changeSectionTagName(section, newTagName) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot pass non-markerable section to `changeSectionTagName`', section.isMarkerable);\n\n        if (isListSectionTagName(newTagName)) {\n          return this._changeSectionToListItem(section, newTagName);\n        } else if (section.isListItem) {\n          return this._changeSectionFromListItem(section, newTagName);\n        } else {\n          section.tagName = newTagName;\n          this._markDirty(section);\n          return section;\n        }\n      }\n\n      /**\n       * Splits the item at the position given.\n       * If the position is at the start or end of the item, the pre- or post-item\n       * will contain a single empty (\"\") marker.\n       * @param {ListItem} item\n       * @param {Position} position\n       * @return {Array} the pre-item and post-item on either side of the split\n       * @private\n       */\n    }, {\n      key: '_splitListItem',\n      value: function _splitListItem(item, position) {\n        var section = position.section;\n        var offset = position.offset;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot split list item at position that does not include item', item === section);\n\n        item.splitMarkerAtOffset(offset);\n        var prevMarker = item.markerBeforeOffset(offset);\n        var preItem = this.builder.createListItem(),\n            postItem = this.builder.createListItem();\n\n        var currentItem = preItem;\n        item.markers.forEach(function (marker) {\n          currentItem.markers.append(marker.clone());\n          if (marker === prevMarker) {\n            currentItem = postItem;\n          }\n        });\n        this._replaceSection(item, [preItem, postItem]);\n        return [preItem, postItem];\n      }\n\n      /**\n       * Splits the list at the position given.\n       * @return {Array} pre-split list and post-split list, either of which could\n       * be blank (0-item list) if the position is at the start or end of the list.\n       *\n       * Note: Contiguous list sections will be joined in the before_complete queue\n       * of the postEditor.\n       *\n       * @private\n       */\n    }, {\n      key: '_splitListAtPosition',\n      value: function _splitListAtPosition(list, position) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot split list at position not in list', position.section.parent === list);\n\n        var positionIsMiddle = !position.isHead() && !position.isTail();\n        if (positionIsMiddle) {\n          var item = position.section;\n\n          var _splitListItem3 = this._splitListItem(item, position);\n\n          var _splitListItem32 = _slicedToArray(_splitListItem3, 1);\n\n          var pre = _splitListItem32[0];\n\n          position = pre.tailPosition();\n        }\n\n        var preList = this.builder.createListSection(list.tagName);\n        var postList = this.builder.createListSection(list.tagName);\n\n        var preItem = position.section;\n        var currentList = preList;\n        list.items.forEach(function (item) {\n          // If this item matches the start item and the position is at its start,\n          // it should be appended to the postList instead of the preList\n          if (item === preItem && position.isEqual(item.headPosition())) {\n            currentList = postList;\n          }\n          currentList.items.append(item.clone());\n          // If we just appended the preItem, append the remaining items to the postList\n          if (item === preItem) {\n            currentList = postList;\n          }\n        });\n\n        this._replaceSection(list, [preList, postList]);\n        return [preList, postList];\n      }\n\n      /**\n       * @return Array of [prev, mid, next] lists. `prev` and `next` can\n       *         be blank, depending on the position of `item`. `mid` will always\n       *         be a 1-item list containing `item`. `prev` and `next` will be\n       *         removed in the before_complete queue if they are blank\n       *         (and still attached).\n       *\n       * @private\n       */\n    }, {\n      key: '_splitListAtItem',\n      value: function _splitListAtItem(list, item) {\n        var _this15 = this;\n\n        var next = list;\n        var prev = this.builder.createListSection(next.tagName, [], next.attributes);\n        var mid = this.builder.createListSection(next.tagName);\n\n        var addToPrev = true;\n        // must turn the LinkedList into an array so that we can remove items\n        // as we iterate through it\n        var items = next.items.toArray();\n        items.forEach(function (i) {\n          var listToAppend = undefined;\n          if (i === item) {\n            addToPrev = false;\n            listToAppend = mid;\n          } else if (addToPrev) {\n            listToAppend = prev;\n          } else {\n            return; // break after iterating prev and mid parts of the list\n          }\n          listToAppend.join(i);\n          _this15.removeSection(i);\n        });\n        var found = !addToPrev;\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot split list at item that is not present in the list', found);\n\n        var collection = this.editor.post.sections;\n        this.insertSectionBefore(collection, mid, next);\n        this.insertSectionBefore(collection, prev, mid);\n\n        // Remove possibly blank prev/next lists\n        this.addCallback(CALLBACK_QUEUES.BEFORE_COMPLETE, function () {\n          [prev, next].forEach(function (_list) {\n            var isAttached = !!_list.parent;\n            if (_list.isBlank && isAttached) {\n              _this15.removeSection(_list);\n            }\n          });\n        });\n\n        return [prev, mid, next];\n      }\n    }, {\n      key: '_changeSectionFromListItem',\n      value: function _changeSectionFromListItem(section, newTagName) {\n        (0, _mobiledocKitUtilsAssert['default'])('Must pass list item to `_changeSectionFromListItem`', section.isListItem);\n\n        var listSection = section.parent;\n        var markupSection = this.builder.createMarkupSection(newTagName);\n        markupSection.join(section);\n\n        var _splitListAtItem2 = this._splitListAtItem(listSection, section);\n\n        var _splitListAtItem22 = _slicedToArray(_splitListAtItem2, 2);\n\n        var mid = _splitListAtItem22[1];\n\n        this.replaceSection(mid, markupSection);\n        return markupSection;\n      }\n    }, {\n      key: '_changeSectionToListItem',\n      value: function _changeSectionToListItem(section, newTagName) {\n        var isAlreadyCorrectListItem = section.isListItem && section.parent.tagName === newTagName;\n\n        if (isAlreadyCorrectListItem) {\n          return section;\n        }\n\n        var listSection = this.builder.createListSection(newTagName);\n        listSection.join(section);\n\n        var sectionToReplace = undefined;\n        if (section.isListItem) {\n          var _splitListAtItem3 = this._splitListAtItem(section.parent, section);\n\n          var _splitListAtItem32 = _slicedToArray(_splitListAtItem3, 2);\n\n          var mid = _splitListAtItem32[1];\n\n          sectionToReplace = mid;\n        } else {\n          sectionToReplace = section;\n        }\n        this.replaceSection(sectionToReplace, listSection);\n        return listSection;\n      }\n\n      /**\n       * Insert a given section before another one, updating the post abstract\n       * and the rendered UI.\n       *\n       * Usage:\n       * ```\n       *     let markerRange = editor.range;\n       *     let sectionWithCursor = markerRange.headMarker.section;\n       *     let section = editor.builder.createCardSection('my-image');\n       *     let collection = sectionWithCursor.parent.sections;\n       *     editor.run((postEditor) => {\n       *       postEditor.insertSectionBefore(collection, section, sectionWithCursor);\n       *     });\n       * ```\n       * @param {LinkedList} collection The list of sections to insert into\n       * @param {Object} section The new section\n       * @param {Object} beforeSection Optional The section \"before\" is relative to,\n       *        if falsy the new section will be appended to the collection\n       * @public\n       */\n    }, {\n      key: 'insertSectionBefore',\n      value: function insertSectionBefore(collection, section, beforeSection) {\n        collection.insertBefore(section, beforeSection);\n        this._markDirty(section.parent);\n      }\n\n      /**\n       * Insert the given section after the current active section, or, if no\n       * section is active, at the end of the document.\n       * @param {Section} section\n       * @public\n       */\n    }, {\n      key: 'insertSection',\n      value: function insertSection(section) {\n        var activeSection = this.editor.activeSection;\n        var nextSection = activeSection && activeSection.next;\n\n        var collection = this.editor.post.sections;\n        this.insertSectionBefore(collection, section, nextSection);\n      }\n\n      /**\n       * Insert the given section at the end of the document.\n       * @param {Section} section\n       * @public\n       */\n    }, {\n      key: 'insertSectionAtEnd',\n      value: function insertSectionAtEnd(section) {\n        this.insertSectionBefore(this.editor.post.sections, section, null);\n      }\n\n      /**\n       * Insert the `post` at the given position in the editor's post.\n       * @param {Position} position\n       * @param {Post} post\n       * @private\n       */\n    }, {\n      key: 'insertPost',\n      value: function insertPost(position, newPost) {\n        var post = this.editor.post;\n        var inserter = new _mobiledocKitEditorPostPostInserter['default'](this, post);\n        var nextPosition = inserter.insert(position, newPost);\n        return nextPosition;\n      }\n\n      /**\n       * Remove a given section from the post abstract and the rendered UI.\n       *\n       * Usage:\n       * ```\n       *     let { range } = editor;\n       *     let sectionWithCursor = range.head.section;\n       *     editor.run((postEditor) => {\n       *       postEditor.removeSection(sectionWithCursor);\n       *     });\n       * ```\n       * @param {Object} section The section to remove\n       * @public\n       */\n    }, {\n      key: 'removeSection',\n      value: function removeSection(section) {\n        var parent = section.parent;\n        this._scheduleForRemoval(section);\n        parent.sections.remove(section);\n\n        if (parent.isListSection) {\n          this._scheduleListRemovalIfEmpty(parent);\n        }\n      }\n    }, {\n      key: 'removeAllSections',\n      value: function removeAllSections() {\n        var _this16 = this;\n\n        this.editor.post.sections.toArray().forEach(function (section) {\n          _this16.removeSection(section);\n        });\n      }\n    }, {\n      key: 'migrateSectionsFromPost',\n      value: function migrateSectionsFromPost(post) {\n        var _this17 = this;\n\n        post.sections.toArray().forEach(function (section) {\n          post.sections.remove(section);\n          _this17.insertSectionBefore(_this17.editor.post.sections, section, null);\n        });\n      }\n    }, {\n      key: '_scheduleListRemovalIfEmpty',\n      value: function _scheduleListRemovalIfEmpty(listSection) {\n        var _this18 = this;\n\n        this.addCallback(CALLBACK_QUEUES.BEFORE_COMPLETE, function () {\n          // if the list is attached and blank after we do other rendering stuff,\n          // remove it\n          var isAttached = !!listSection.parent;\n          if (isAttached && listSection.isBlank) {\n            _this18.removeSection(listSection);\n          }\n        });\n      }\n\n      /**\n       * A method for adding work the deferred queue\n       *\n       * @param {Function} callback to run during completion\n       * @param {Boolean} [once=false] Whether to only schedule the callback once.\n       * @public\n       */\n    }, {\n      key: 'schedule',\n      value: function schedule(callback) {\n        var once = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];\n\n        (0, _mobiledocKitUtilsAssert['default'])('Work can only be scheduled before a post edit has completed', !this._didComplete);\n        if (once) {\n          this.addCallbackOnce(CALLBACK_QUEUES.COMPLETE, callback);\n        } else {\n          this.addCallback(CALLBACK_QUEUES.COMPLETE, callback);\n        }\n      }\n\n      /**\n       * A method for adding work the deferred queue. The callback will only\n       * be added to the queue once, even if `scheduleOnce` is called multiple times.\n       * The function cannot be an anonymous function.\n       *\n       * @param {Function} callback to run during completion\n       * @public\n       */\n    }, {\n      key: 'scheduleOnce',\n      value: function scheduleOnce(callback) {\n        this.schedule(callback, true);\n      }\n\n      /**\n       * Add a rerender job to the queue\n       *\n       * @public\n       */\n    }, {\n      key: 'scheduleRerender',\n      value: function scheduleRerender() {\n        this.scheduleOnce(this._rerender);\n      }\n\n      /**\n       * Schedule a notification that the post has been changed.\n       * The notification will result in the editor firing its `postDidChange`\n       * hook after the postEditor completes its work (at the end of {@link Editor#run}).\n       *\n       * @public\n       */\n    }, {\n      key: 'scheduleDidUpdate',\n      value: function scheduleDidUpdate() {\n        this.scheduleOnce(this._postDidChange);\n      }\n    }, {\n      key: 'scheduleAfterRender',\n      value: function scheduleAfterRender(callback) {\n        var once = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];\n\n        if (once) {\n          this.addCallbackOnce(CALLBACK_QUEUES.AFTER_COMPLETE, callback);\n        } else {\n          this.addCallback(CALLBACK_QUEUES.AFTER_COMPLETE, callback);\n        }\n      }\n\n      /**\n       * Flush any work on the queue. {@link Editor#run} calls this method; it\n       * should not be called directly.\n       *\n       * @private\n       */\n    }, {\n      key: 'complete',\n      value: function complete() {\n        (0, _mobiledocKitUtilsAssert['default'])('Post editing can only be completed once', !this._didComplete);\n\n        this.runCallbacks(CALLBACK_QUEUES.BEFORE_COMPLETE);\n        this._didComplete = true;\n        this.runCallbacks(CALLBACK_QUEUES.COMPLETE);\n        this.runCallbacks(CALLBACK_QUEUES.AFTER_COMPLETE);\n      }\n    }, {\n      key: 'undoLastChange',\n      value: function undoLastChange() {\n        this.editor._editHistory.stepBackward(this);\n      }\n    }, {\n      key: 'redoLastChange',\n      value: function redoLastChange() {\n        this.editor._editHistory.stepForward(this);\n      }\n    }, {\n      key: 'cancelSnapshot',\n      value: function cancelSnapshot() {\n        this._shouldCancelSnapshot = true;\n      }\n    }]);\n\n    return PostEditor;\n  })();\n\n  exports['default'] = PostEditor;\n});","define('mobiledoc-kit/editor/post/post-inserter', ['exports', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/models/types'], function (exports, _mobiledocKitUtilsAssert, _mobiledocKitModelsTypes) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var MARKERABLE = 'markerable',\n      NESTED_MARKERABLE = 'nested_markerable',\n      NON_MARKERABLE = 'non_markerable';\n\n  var Visitor = (function () {\n    function Visitor(inserter, cursorPosition) {\n      _classCallCheck(this, Visitor);\n\n      var postEditor = inserter.postEditor;\n      var post = inserter.post;\n\n      this.postEditor = postEditor;\n      this._post = post;\n      this.cursorPosition = cursorPosition;\n      this.builder = this.postEditor.builder;\n\n      this._hasInsertedFirstLeafSection = false;\n    }\n\n    _createClass(Visitor, [{\n      key: 'visit',\n      value: function visit(node) {\n        var method = node.type;\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot visit node of type ' + node.type, !!this[method]);\n        this[method](node);\n      }\n    }, {\n      key: '_canMergeSection',\n      value: function _canMergeSection(section) {\n        if (this._hasInsertedFirstLeafSection) {\n          return false;\n        } else {\n          return this._isMarkerable && section.isMarkerable;\n        }\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.POST_TYPE,\n      value: function value(node) {\n        var _this = this;\n\n        if (this.cursorSection.isBlank && !this._isNested) {\n          // replace blank section with entire post\n          var newSections = node.sections.map(function (s) {\n            return s.clone();\n          });\n          this._replaceSection(this.cursorSection, newSections);\n        } else {\n          node.sections.forEach(function (section) {\n            return _this.visit(section);\n          });\n        }\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE,\n      value: function value(node) {\n        this[MARKERABLE](node);\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.LIST_SECTION_TYPE,\n      value: function value(node) {\n        var _this2 = this;\n\n        var hasNext = !!node.next;\n        node.items.forEach(function (item) {\n          return _this2.visit(item);\n        });\n\n        if (this._isNested && hasNext) {\n          this._breakNestedAtCursor();\n        }\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.LIST_ITEM_TYPE,\n      value: function value(node) {\n        this[NESTED_MARKERABLE](node);\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.CARD_TYPE,\n      value: function value(node) {\n        this[NON_MARKERABLE](node);\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.IMAGE_SECTION_TYPE,\n      value: function value(node) {\n        this[NON_MARKERABLE](node);\n      }\n    }, {\n      key: NON_MARKERABLE,\n      value: function value(section) {\n        if (this._isNested) {\n          this._breakNestedAtCursor();\n        } else if (!this.cursorSection.isBlank) {\n          this._breakAtCursor();\n        }\n\n        this._insertLeafSection(section);\n      }\n    }, {\n      key: MARKERABLE,\n      value: function value(section) {\n        if (this._canMergeSection(section)) {\n          this._mergeSection(section);\n        } else if (this._isNested && this._isMarkerable) {\n          // If we are attaching a markerable section to a list item,\n          // insert a linebreak then merge the section onto the resulting blank list item\n          this._breakAtCursor();\n\n          // Advance the cursor to the head of the blank list item\n          var nextPosition = this.cursorSection.next.headPosition();\n          this.cursorPosition = nextPosition;\n\n          // Merge this section onto the list item\n          this._mergeSection(section);\n        } else {\n          this._breakAtCursor();\n          this._insertLeafSection(section);\n        }\n      }\n    }, {\n      key: NESTED_MARKERABLE,\n      value: function value(section) {\n        if (this._canMergeSection(section)) {\n          this._mergeSection(section);\n          return;\n        }\n\n        section = this._isNested ? section : this._wrapNestedSection(section);\n        this._breakAtCursor();\n        this._insertLeafSection(section);\n      }\n\n      // break out of a nested cursor position\n    }, {\n      key: '_breakNestedAtCursor',\n      value: function _breakNestedAtCursor() {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot call _breakNestedAtCursor if not nested', this._isNested);\n\n        var parent = this.cursorSection.parent;\n        var cursorAtEndOfList = this.cursorPosition.isEqual(parent.tailPosition());\n\n        if (cursorAtEndOfList) {\n          var blank = this.builder.createMarkupSection();\n          this._insertSectionAfter(blank, parent);\n        } else {\n          var _breakListAtCursor2 = this._breakListAtCursor();\n\n          var _breakListAtCursor22 = _slicedToArray(_breakListAtCursor2, 2);\n\n          var blank = _breakListAtCursor22[1];\n\n          this.cursorPosition = blank.tailPosition();\n        }\n      }\n    }, {\n      key: '_breakListAtCursor',\n      value: function _breakListAtCursor() {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot _splitParentSection if cursor position is not nested', this._isNested);\n\n        var list = this.cursorSection.parent,\n            position = this.cursorPosition,\n            blank = this.builder.createMarkupSection();\n\n        var _postEditor$_splitListAtPosition = this.postEditor._splitListAtPosition(list, position);\n\n        var _postEditor$_splitListAtPosition2 = _slicedToArray(_postEditor$_splitListAtPosition, 2);\n\n        var pre = _postEditor$_splitListAtPosition2[0];\n        var post = _postEditor$_splitListAtPosition2[1];\n\n        var collection = this._post.sections,\n            reference = post;\n        this.postEditor.insertSectionBefore(collection, blank, reference);\n        return [pre, blank, post];\n      }\n    }, {\n      key: '_wrapNestedSection',\n      value: function _wrapNestedSection(section) {\n        var tagName = section.parent.tagName;\n        var parent = this.builder.createListSection(tagName);\n        parent.items.append(section.clone());\n        return parent;\n      }\n    }, {\n      key: '_mergeSection',\n      value: function _mergeSection(section) {\n        (0, _mobiledocKitUtilsAssert['default'])('Can only merge markerable sections', this._isMarkerable && section.isMarkerable);\n        this._hasInsertedFirstLeafSection = true;\n\n        var markers = section.markers.map(function (m) {\n          return m.clone();\n        });\n        var position = this.postEditor.insertMarkers(this.cursorPosition, markers);\n\n        this.cursorPosition = position;\n      }\n\n      // Can be called to add a line break when in a nested section or a parent\n      // section.\n    }, {\n      key: '_breakAtCursor',\n      value: function _breakAtCursor() {\n        if (this.cursorSection.isBlank) {\n          return;\n        } else if (this._isMarkerable) {\n          this._breakMarkerableAtCursor();\n        } else {\n          this._breakNonMarkerableAtCursor();\n        }\n      }\n\n      // Inserts a blank section before/after the cursor,\n      // depending on cursor position.\n    }, {\n      key: '_breakNonMarkerableAtCursor',\n      value: function _breakNonMarkerableAtCursor() {\n        var collection = this._post.sections,\n            blank = this.builder.createMarkupSection(),\n            reference = this.cursorPosition.isHead() ? this.cursorSection : this.cursorSection.next;\n        this.postEditor.insertSectionBefore(collection, blank, reference);\n        this.cursorPosition = blank.tailPosition();\n      }\n    }, {\n      key: '_breakMarkerableAtCursor',\n      value: function _breakMarkerableAtCursor() {\n        var _postEditor$splitSection = this.postEditor.splitSection(this.cursorPosition);\n\n        var _postEditor$splitSection2 = _slicedToArray(_postEditor$splitSection, 1);\n\n        var pre = _postEditor$splitSection2[0];\n\n        this.cursorPosition = pre.tailPosition();\n      }\n    }, {\n      key: '_replaceSection',\n      value: function _replaceSection(section, newSections) {\n        var _this3 = this;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot replace section that does not have parent.sections', section.parent && section.parent.sections);\n        (0, _mobiledocKitUtilsAssert['default'])('Must pass enumerable to _replaceSection', !!newSections.forEach);\n\n        var collection = section.parent.sections;\n        var reference = section.next;\n        this.postEditor.removeSection(section);\n        newSections.forEach(function (section) {\n          _this3.postEditor.insertSectionBefore(collection, section, reference);\n        });\n        var lastSection = newSections[newSections.length - 1];\n\n        this.cursorPosition = lastSection.tailPosition();\n      }\n    }, {\n      key: '_insertSectionBefore',\n      value: function _insertSectionBefore(section, reference) {\n        var collection = this.cursorSection.parent.sections;\n        this.postEditor.insertSectionBefore(collection, section, reference);\n\n        this.cursorPosition = section.tailPosition();\n      }\n\n      // Insert a section after the parent section.\n      // E.g., add a markup section after a list section\n    }, {\n      key: '_insertSectionAfter',\n      value: function _insertSectionAfter(section, parent) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot _insertSectionAfter nested section', !parent.isNested);\n        var reference = parent.next;\n        var collection = this._post.sections;\n        this.postEditor.insertSectionBefore(collection, section, reference);\n        this.cursorPosition = section.tailPosition();\n      }\n    }, {\n      key: '_insertLeafSection',\n      value: function _insertLeafSection(section) {\n        (0, _mobiledocKitUtilsAssert['default'])('Can only _insertLeafSection when cursor is at end of section', this.cursorPosition.isTail());\n\n        this._hasInsertedFirstLeafSection = true;\n        section = section.clone();\n\n        if (this.cursorSection.isBlank) {\n          (0, _mobiledocKitUtilsAssert['default'])('Cannot insert leaf non-markerable section when cursor is nested', !(section.isMarkerable && this._isNested));\n          this._replaceSection(this.cursorSection, [section]);\n        } else if (this.cursorSection.next && this.cursorSection.next.isBlank) {\n          this._replaceSection(this.cursorSection.next, [section]);\n        } else {\n          var reference = this.cursorSection.next;\n          this._insertSectionBefore(section, reference);\n        }\n      }\n    }, {\n      key: 'cursorPosition',\n      get: function get() {\n        return this._cursorPosition;\n      },\n      set: function set(position) {\n        this._cursorPosition = position;\n        this.postEditor.setRange(position);\n      }\n    }, {\n      key: '_isMarkerable',\n      get: function get() {\n        return this.cursorSection.isMarkerable;\n      }\n    }, {\n      key: 'cursorSection',\n      get: function get() {\n        return this.cursorPosition.section;\n      }\n    }, {\n      key: 'cursorOffset',\n      get: function get() {\n        return this.cursorPosition.offset;\n      }\n    }, {\n      key: '_isNested',\n      get: function get() {\n        return this.cursorSection.isNested;\n      }\n    }]);\n\n    return Visitor;\n  })();\n\n  var Inserter = (function () {\n    function Inserter(postEditor, post) {\n      _classCallCheck(this, Inserter);\n\n      this.postEditor = postEditor;\n      this.post = post;\n    }\n\n    _createClass(Inserter, [{\n      key: 'insert',\n      value: function insert(cursorPosition, newPost) {\n        var visitor = new Visitor(this, cursorPosition);\n        if (!newPost.isBlank) {\n          visitor.visit(newPost);\n        }\n        return visitor.cursorPosition;\n      }\n    }]);\n\n    return Inserter;\n  })();\n\n  exports['default'] = Inserter;\n});","define(\"mobiledoc-kit/editor/selection-change-observer\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n  var instance = undefined;\n\n  var SelectionChangeObserver = (function () {\n    function SelectionChangeObserver() {\n      _classCallCheck(this, SelectionChangeObserver);\n\n      this.started = false;\n      this.listeners = [];\n      this.selection = {};\n    }\n\n    _createClass(SelectionChangeObserver, [{\n      key: \"addListener\",\n      value: function addListener(listener) {\n        if (this.listeners.indexOf(listener) === -1) {\n          this.listeners.push(listener);\n          this.start();\n        }\n      }\n    }, {\n      key: \"removeListener\",\n      value: function removeListener(listener) {\n        var index = this.listeners.indexOf(listener);\n        if (index !== -1) {\n          this.listeners.splice(index, 1);\n          if (this.listeners.length === 0) {\n            this.stop();\n          }\n        }\n      }\n    }, {\n      key: \"start\",\n      value: function start() {\n        if (this.started) {\n          return;\n        }\n        this.started = true;\n\n        this.poll();\n      }\n    }, {\n      key: \"stop\",\n      value: function stop() {\n        this.started = false;\n        this.selection = {};\n      }\n    }, {\n      key: \"notifyListeners\",\n      value: function notifyListeners() /* newSelection, prevSelection */{\n        var _arguments = arguments;\n\n        this.listeners.forEach(function (listener) {\n          listener.selectionDidChange.apply(listener, _arguments);\n        });\n      }\n    }, {\n      key: \"destroy\",\n      value: function destroy() {\n        this.stop();\n        this.listeners = [];\n      }\n    }, {\n      key: \"getSelection\",\n      value: function getSelection() {\n        var selection = window.getSelection();\n        var anchorNode = selection.anchorNode;\n        var focusNode = selection.focusNode;\n        var anchorOffset = selection.anchorOffset;\n        var focusOffset = selection.focusOffset;\n\n        return { anchorNode: anchorNode, focusNode: focusNode, anchorOffset: anchorOffset, focusOffset: focusOffset };\n      }\n    }, {\n      key: \"poll\",\n      value: function poll() {\n        var _this = this;\n\n        if (this.started) {\n          this.update();\n          this.runNext(function () {\n            return _this.poll();\n          });\n        }\n      }\n    }, {\n      key: \"runNext\",\n      value: function runNext(fn) {\n        window.requestAnimationFrame(fn);\n      }\n    }, {\n      key: \"update\",\n      value: function update() {\n        var prevSelection = this.selection;\n        var curSelection = this.getSelection();\n        if (!this.selectionIsEqual(prevSelection, curSelection)) {\n          this.selection = curSelection;\n          this.notifyListeners(curSelection, prevSelection);\n        }\n      }\n    }, {\n      key: \"selectionIsEqual\",\n      value: function selectionIsEqual(s1, s2) {\n        return s1.anchorNode === s2.anchorNode && s1.anchorOffset === s2.anchorOffset && s1.focusNode === s2.focusNode && s1.focusOffset === s2.focusOffset;\n      }\n    }], [{\n      key: \"getInstance\",\n      value: function getInstance() {\n        if (!instance) {\n          instance = new SelectionChangeObserver();\n        }\n        return instance;\n      }\n    }, {\n      key: \"addListener\",\n      value: function addListener(listener) {\n        SelectionChangeObserver.getInstance().addListener(listener);\n      }\n    }, {\n      key: \"removeListener\",\n      value: function removeListener(listener) {\n        SelectionChangeObserver.getInstance().removeListener(listener);\n      }\n    }]);\n\n    return SelectionChangeObserver;\n  })();\n\n  exports[\"default\"] = SelectionChangeObserver;\n});","define('mobiledoc-kit/editor/selection-manager', ['exports', 'mobiledoc-kit/editor/selection-change-observer'], function (exports, _mobiledocKitEditorSelectionChangeObserver) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var SelectionManager = (function () {\n    function SelectionManager(editor, callback) {\n      _classCallCheck(this, SelectionManager);\n\n      this.editor = editor;\n      this.callback = callback;\n      this.started = false;\n    }\n\n    _createClass(SelectionManager, [{\n      key: 'start',\n      value: function start() {\n        if (this.started) {\n          return;\n        }\n\n        _mobiledocKitEditorSelectionChangeObserver['default'].addListener(this);\n        this.started = true;\n      }\n    }, {\n      key: 'stop',\n      value: function stop() {\n        this.started = false;\n        _mobiledocKitEditorSelectionChangeObserver['default'].removeListener(this);\n      }\n    }, {\n      key: 'destroy',\n      value: function destroy() {\n        this.stop();\n      }\n    }, {\n      key: 'selectionDidChange',\n      value: function selectionDidChange() {\n        if (this.started) {\n          this.callback.apply(this, arguments);\n        }\n      }\n    }]);\n\n    return SelectionManager;\n  })();\n\n  exports['default'] = SelectionManager;\n});","define('mobiledoc-kit/editor/text-input-handler', ['exports', 'mobiledoc-kit/utils/string-utils', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/deprecate', 'mobiledoc-kit/utils/characters'], function (exports, _mobiledocKitUtilsStringUtils, _mobiledocKitUtilsAssert, _mobiledocKitUtilsDeprecate, _mobiledocKitUtilsCharacters) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var TextInputHandler = (function () {\n    function TextInputHandler(editor) {\n      _classCallCheck(this, TextInputHandler);\n\n      this.editor = editor;\n      this._handlers = [];\n    }\n\n    _createClass(TextInputHandler, [{\n      key: 'register',\n      value: function register(handler) {\n        (0, _mobiledocKitUtilsAssert['default'])('Input Handler is not valid', this._validateHandler(handler));\n        this._handlers.push(handler);\n      }\n    }, {\n      key: 'unregister',\n      value: function unregister(name) {\n        var handlers = this._handlers;\n        for (var i = 0; i < handlers.length; i++) {\n          if (handlers[i].name === name) {\n            handlers.splice(i, 1);\n          }\n        }\n      }\n    }, {\n      key: 'handle',\n      value: function handle(string) {\n        var editor = this.editor;\n\n        editor.insertText(string);\n\n        var matchedHandler = this._findHandler();\n        if (matchedHandler) {\n          var _matchedHandler = _slicedToArray(matchedHandler, 2);\n\n          var handler = _matchedHandler[0];\n          var matches = _matchedHandler[1];\n\n          handler.run(editor, matches);\n        }\n      }\n    }, {\n      key: 'handleNewLine',\n      value: function handleNewLine() {\n        var editor = this.editor;\n\n        var matchedHandler = this._findHandler(_mobiledocKitUtilsCharacters.ENTER);\n        if (matchedHandler) {\n          var _matchedHandler2 = _slicedToArray(matchedHandler, 2);\n\n          var handler = _matchedHandler2[0];\n          var matches = _matchedHandler2[1];\n\n          handler.run(editor, matches);\n        }\n      }\n    }, {\n      key: '_findHandler',\n      value: function _findHandler() {\n        var string = arguments.length <= 0 || arguments[0] === undefined ? \"\" : arguments[0];\n        var _editor$range = this.editor.range;\n        var head = _editor$range.head;\n        var section = _editor$range.head.section;\n\n        var preText = section.textUntil(head) + string;\n\n        for (var i = 0; i < this._handlers.length; i++) {\n          var handler = this._handlers[i];\n          var text = handler.text;\n          var match = handler.match;\n\n          if (text && (0, _mobiledocKitUtilsStringUtils.endsWith)(preText, text)) {\n            return [handler, [text]];\n          } else if (match && match.test(preText)) {\n            return [handler, match.exec(preText)];\n          }\n        }\n      }\n    }, {\n      key: '_validateHandler',\n      value: function _validateHandler(handler) {\n        (0, _mobiledocKitUtilsDeprecate['default'])('Registered input handlers require a \"name\" property so that they can be unregistered', !!handler.name);\n        return !!handler.run && ( // has `run`\n        !!handler.text || !!handler.match) && // and `text` or `match`\n        !(!!handler.text && !!handler.match); // not both `text` and `match`\n      }\n    }, {\n      key: 'destroy',\n      value: function destroy() {\n        this._handlers = [];\n      }\n    }]);\n\n    return TextInputHandler;\n  })();\n\n  exports['default'] = TextInputHandler;\n});","define('mobiledoc-kit/editor/text-input-handlers', ['exports'], function (exports) {\n  /**\n   * Convert section at the editor's cursor position into a list.\n   * Does nothing if the cursor position is not at the start of the section,\n   * or if the section is already a list item.\n   *\n   * @param {Editor} editor\n   * @param {String} listTagName (\"ul\" or \"ol\")\n   * @public\n   */\n  'use strict';\n\n  exports.replaceWithListSection = replaceWithListSection;\n  exports.replaceWithHeaderSection = replaceWithHeaderSection;\n\n  function replaceWithListSection(editor, listTagName) {\n    var _editor$range = editor.range;\n    var head = _editor$range.head;\n    var section = _editor$range.head.section;\n\n    // Skip if cursor is not at end of section\n    if (!head.isTail()) {\n      return;\n    }\n\n    if (section.isListItem) {\n      return;\n    }\n\n    editor.run(function (postEditor) {\n      var builder = postEditor.builder;\n\n      var item = builder.createListItem();\n      var listSection = builder.createListSection(listTagName, [item]);\n\n      postEditor.replaceSection(section, listSection);\n      postEditor.setRange(listSection.headPosition());\n    });\n  }\n\n  /**\n   * Convert section at the editor's cursor position into a header section.\n   * Does nothing if the cursor position is not at the start of the section.\n   *\n   * @param {Editor} editor\n   * @param {String} headingTagName ('h1', 'h2', 'h3', 'h4', 'h5', 'h6')\n   * @public\n   */\n\n  function replaceWithHeaderSection(editor, headingTagName) {\n    var _editor$range2 = editor.range;\n    var head = _editor$range2.head;\n    var section = _editor$range2.head.section;\n\n    // Skip if cursor is not at end of section\n    if (!head.isTail()) {\n      return;\n    }\n\n    editor.run(function (postEditor) {\n      var builder = postEditor.builder;\n\n      var newSection = builder.createMarkupSection(headingTagName);\n      postEditor.replaceSection(section, newSection);\n      postEditor.setRange(newSection.headPosition());\n    });\n  }\n\n  var DEFAULT_TEXT_INPUT_HANDLERS = [{\n    name: 'ul',\n    // \"* \" -> ul\n    match: /^\\* $/,\n    run: function run(editor) {\n      replaceWithListSection(editor, 'ul');\n    }\n  }, {\n    name: 'ol',\n    // \"1\" -> ol, \"1.\" -> ol\n    match: /^1\\.? $/,\n    run: function run(editor) {\n      replaceWithListSection(editor, 'ol');\n    }\n  }, {\n    name: 'heading',\n    /*\n     * \"# \" -> h1\n     * \"## \" -> h2\n     * \"### \" -> h3\n     * \"#### \" -> h4\n     * \"##### \" -> h5\n     * \"###### \" -> h6\n     */\n    match: /^(#{1,6}) $/,\n    run: function run(editor, matches) {\n      var capture = matches[1];\n      var headingTag = 'h' + capture.length;\n      replaceWithHeaderSection(editor, headingTag);\n    }\n  }];\n  exports.DEFAULT_TEXT_INPUT_HANDLERS = DEFAULT_TEXT_INPUT_HANDLERS;\n});","define('mobiledoc-kit/editor/ui', ['exports'], function (exports) {\n  /**\n   * @module UI\n   */\n\n  /**\n   * @callback promptCallback\n   * @param {String} url The URL to pass back to the editor for linking\n   *        to the selected text.\n   */\n\n  /**\n   * @callback showPrompt\n   * @param {String} message The text of the prompt.\n   * @param {String} defaultValue The initial URL to display in the prompt.\n   * @param {module:UI~promptCallback} callback Once your handler has accepted a URL,\n   *        it should pass it to `callback` so that the editor may link the\n   *        selected text.\n   */\n\n  /**\n   * Exposes the core behavior for linking and unlinking text, and allows for\n   * customization of the URL input handler.\n   * @param {Editor} editor An editor instance to operate on. If a range is selected,\n   *        either prompt for a URL and add a link or un-link the\n   *        currently linked text.\n   * @param {module:UI~showPrompt} [showPrompt] An optional custom input handler. Defaults\n   *        to using `window.prompt`.\n   * @example\n   * let myPrompt = (message, defaultURL, promptCallback) => {\n   *   let url = window.prompt(\"Overriding the defaults\", \"http://placekitten.com\");\n   *   promptCallback(url);\n   * };\n   *\n   * editor.registerKeyCommand({\n   *   str: \"META+K\",\n   *   run(editor) {\n   *     toggleLink(editor, myPrompt);\n   *   }\n   * });\n   * @public\n   */\n\n  'use strict';\n\n  exports.toggleLink = toggleLink;\n  var defaultShowPrompt = function defaultShowPrompt(message, defaultValue, callback) {\n    return callback(window.prompt(message, defaultValue));\n  };\n\n  function toggleLink(editor) {\n    var showPrompt = arguments.length <= 1 || arguments[1] === undefined ? defaultShowPrompt : arguments[1];\n\n    if (editor.range.isCollapsed) {\n      return;\n    }\n\n    var selectedText = editor.cursor.selectedText();\n    var defaultUrl = '';\n    if (selectedText.indexOf('http') !== -1) {\n      defaultUrl = selectedText;\n    }\n\n    var range = editor.range;\n\n    var hasLink = editor.detectMarkupInRange(range, 'a');\n\n    if (hasLink) {\n      editor.toggleMarkup('a');\n    } else {\n      showPrompt('Enter a URL', defaultUrl, function (url) {\n        if (!url) {\n          return;\n        }\n\n        editor.toggleMarkup('a', { href: url });\n      });\n    }\n  }\n});","define('mobiledoc-kit', ['exports', 'mobiledoc-kit/editor/editor', 'mobiledoc-kit/editor/ui', 'mobiledoc-kit/cards/image', 'mobiledoc-kit/utils/cursor/range', 'mobiledoc-kit/utils/cursor/position', 'mobiledoc-kit/utils/mobiledoc-error', 'mobiledoc-kit/version', 'mobiledoc-kit/renderers/mobiledoc'], function (exports, _mobiledocKitEditorEditor, _mobiledocKitEditorUi, _mobiledocKitCardsImage, _mobiledocKitUtilsCursorRange, _mobiledocKitUtilsCursorPosition, _mobiledocKitUtilsMobiledocError, _mobiledocKitVersion, _mobiledocKitRenderersMobiledoc) {\n  'use strict';\n\n  exports.registerGlobal = registerGlobal;\n\n  var Mobiledoc = {\n    Editor: _mobiledocKitEditorEditor['default'],\n    UI: _mobiledocKitEditorUi,\n    ImageCard: _mobiledocKitCardsImage['default'],\n    Range: _mobiledocKitUtilsCursorRange['default'],\n    Position: _mobiledocKitUtilsCursorPosition['default'],\n    Error: _mobiledocKitUtilsMobiledocError['default'],\n    VERSION: _mobiledocKitVersion['default'],\n    MOBILEDOC_VERSION: _mobiledocKitRenderersMobiledoc.MOBILEDOC_VERSION\n  };\n\n  function registerGlobal(global) {\n    global.Mobiledoc = Mobiledoc;\n  }\n\n  exports.Editor = _mobiledocKitEditorEditor['default'];\n  exports.UI = _mobiledocKitEditorUi;\n  exports.Range = _mobiledocKitUtilsCursorRange['default'];\n  exports.Position = _mobiledocKitUtilsCursorPosition['default'];\n  exports.MOBILEDOC_VERSION = _mobiledocKitRenderersMobiledoc.MOBILEDOC_VERSION;\n  exports['default'] = Mobiledoc;\n});","define('mobiledoc-kit/models/_attributable', ['exports', 'mobiledoc-kit/utils/object-utils', 'mobiledoc-kit/utils/array-utils'], function (exports, _mobiledocKitUtilsObjectUtils, _mobiledocKitUtilsArrayUtils) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  exports.attributable = attributable;\n  var VALID_ATTRIBUTES = ['data-md-text-align'];\n\n  exports.VALID_ATTRIBUTES = VALID_ATTRIBUTES;\n  /*\n   * A \"mixin\" to add section attribute support\n   * to markup and list sections.\n   */\n\n  function attributable(ctx) {\n    ctx.attributes = {};\n\n    ctx.hasAttribute = function (key) {\n      return key in ctx.attributes;\n    };\n\n    ctx.setAttribute = function (key, value) {\n      if (!(0, _mobiledocKitUtilsArrayUtils.contains)(VALID_ATTRIBUTES, key)) {\n        throw new Error('Invalid attribute \"' + key + '\" was passed. Constrain attributes to the spec-compliant whitelist.');\n      }\n      ctx.attributes[key] = value;\n    };\n    ctx.removeAttribute = function (key) {\n      delete ctx.attributes[key];\n    };\n    ctx.getAttribute = function (key) {\n      return ctx.attributes[key];\n    };\n    ctx.eachAttribute = function (cb) {\n      (0, _mobiledocKitUtilsObjectUtils.entries)(ctx.attributes).forEach(function (_ref) {\n        var _ref2 = _slicedToArray(_ref, 2);\n\n        var k = _ref2[0];\n        var v = _ref2[1];\n        return cb(k, v);\n      });\n    };\n  }\n});","define('mobiledoc-kit/models/_markerable', ['exports', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/set', 'mobiledoc-kit/utils/linked-list', 'mobiledoc-kit/models/_section', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsSet, _mobiledocKitUtilsLinkedList, _mobiledocKitModels_section, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x4, _x5, _x6) { var _again = true; _function: while (_again) { var object = _x4, property = _x5, receiver = _x6; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x4 = parent; _x5 = property; _x6 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }\n\n  function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); }\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  var Markerable = (function (_Section) {\n    _inherits(Markerable, _Section);\n\n    function Markerable(type, tagName) {\n      var _this = this;\n\n      var markers = arguments.length <= 2 || arguments[2] === undefined ? [] : arguments[2];\n\n      _classCallCheck(this, Markerable);\n\n      _get(Object.getPrototypeOf(Markerable.prototype), 'constructor', this).call(this, type);\n      this.isMarkerable = true;\n      this.tagName = tagName;\n      this.markers = new _mobiledocKitUtilsLinkedList['default']({\n        adoptItem: function adoptItem(m) {\n          (0, _mobiledocKitUtilsAssert['default'])('Can only insert markers and atoms into markerable (was: ' + m.type + ')', m.isMarker || m.isAtom);\n          m.section = m.parent = _this;\n        },\n        freeItem: function freeItem(m) {\n          return m.section = m.parent = null;\n        }\n      });\n\n      markers.forEach(function (m) {\n        return _this.markers.append(m);\n      });\n    }\n\n    _createClass(Markerable, [{\n      key: 'canJoin',\n      value: function canJoin(other) {\n        return other.isMarkerable && other.type === this.type && other.tagName === this.tagName;\n      }\n    }, {\n      key: 'clone',\n      value: function clone() {\n        var newMarkers = this.markers.map(function (m) {\n          return m.clone();\n        });\n        return this.builder.createMarkerableSection(this.type, this.tagName, newMarkers);\n      }\n    }, {\n      key: 'textUntil',\n      value: function textUntil(position) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot get textUntil for a position not in this section', position.section === this);\n        var marker = position.marker;\n        var offsetInMarker = position.offsetInMarker;\n\n        var text = '';\n        var currentMarker = this.markers.head;\n        while (currentMarker) {\n          if (currentMarker === marker) {\n            text += currentMarker.textUntil(offsetInMarker);\n            break;\n          } else {\n            text += currentMarker.text;\n            currentMarker = currentMarker.next;\n          }\n        }\n        return text;\n      }\n\n      /**\n       * @param {Marker}\n       * @param {Number} markerOffset The offset relative to the start of the marker\n       *\n       * @return {Number} The offset relative to the start of this section\n       */\n    }, {\n      key: 'offsetOfMarker',\n      value: function offsetOfMarker(marker) {\n        var markerOffset = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];\n\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot get offsetOfMarker for marker that is not child of this', marker.section === this);\n\n        // FIXME it is possible, when we get a cursor position before having finished reparsing,\n        // for markerOffset to be > marker.length. We shouldn't rely on this functionality.\n\n        var offset = 0;\n        var currentMarker = this.markers.head;\n        while (currentMarker && currentMarker !== marker.next) {\n          var _length = currentMarker === marker ? markerOffset : currentMarker.length;\n          offset += _length;\n          currentMarker = currentMarker.next;\n        }\n\n        return offset;\n      }\n\n      // puts clones of this.markers into beforeSection and afterSection,\n      // all markers before the marker/offset split go in beforeSection, and all\n      // after the marker/offset split go in afterSection\n      // @return {Array} [beforeSection, afterSection], two new sections\n    }, {\n      key: '_redistributeMarkers',\n      value: function _redistributeMarkers(beforeSection, afterSection, marker) {\n        var offset = arguments.length <= 3 || arguments[3] === undefined ? 0 : arguments[3];\n\n        var currentSection = beforeSection;\n        (0, _mobiledocKitUtilsArrayUtils.forEach)(this.markers, function (m) {\n          if (m === marker) {\n            var _marker$split = marker.split(offset);\n\n            var _marker$split2 = _toArray(_marker$split);\n\n            var beforeMarker = _marker$split2[0];\n\n            var afterMarkers = _marker$split2.slice(1);\n\n            beforeSection.markers.append(beforeMarker);\n            (0, _mobiledocKitUtilsArrayUtils.forEach)(afterMarkers, function (_m) {\n              return afterSection.markers.append(_m);\n            });\n            currentSection = afterSection;\n          } else {\n            currentSection.markers.append(m.clone());\n          }\n        });\n\n        return [beforeSection, afterSection];\n      }\n    }, {\n      key: 'splitAtMarker',\n      value: function splitAtMarker() /*marker, offset=0*/{\n        (0, _mobiledocKitUtilsAssert['default'])('splitAtMarker must be implemented by sub-class', false);\n      }\n\n      /**\n       * Split this section's marker (if any) at the given offset, so that\n       * there is now a marker boundary at that offset (useful for later applying\n       * a markup to a range)\n       * @param {Number} sectionOffset The offset relative to start of this section\n       * @return {EditObject} An edit object with 'removed' and 'added' keys with arrays of Markers. The added markers may be blank.\n       * After calling `splitMarkerAtOffset(offset)`, there will always be a valid\n       * result returned from `markerBeforeOffset(offset)`.\n       */\n    }, {\n      key: 'splitMarkerAtOffset',\n      value: function splitMarkerAtOffset(sectionOffset) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot splitMarkerAtOffset when offset is > length', sectionOffset <= this.length);\n        var markerOffset = undefined;\n        var len = 0;\n        var currentMarker = this.markers.head;\n        var edit = { added: [], removed: [] };\n\n        if (!currentMarker) {\n          var blankMarker = this.builder.createMarker();\n          this.markers.prepend(blankMarker);\n          edit.added.push(blankMarker);\n        } else {\n          while (currentMarker) {\n            len += currentMarker.length;\n            if (len === sectionOffset) {\n              // nothing to do, there is a gap at the requested offset\n              break;\n            } else if (len > sectionOffset) {\n              var _edit$added;\n\n              markerOffset = currentMarker.length - (len - sectionOffset);\n              var newMarkers = currentMarker.splitAtOffset(markerOffset);\n              (_edit$added = edit.added).push.apply(_edit$added, _toConsumableArray(newMarkers));\n              edit.removed.push(currentMarker);\n              this.markers.splice(currentMarker, 1, newMarkers);\n              break;\n            } else {\n              currentMarker = currentMarker.next;\n            }\n          }\n        }\n\n        return edit;\n      }\n    }, {\n      key: 'splitAtPosition',\n      value: function splitAtPosition(position) {\n        var marker = position.marker;\n        var offsetInMarker = position.offsetInMarker;\n\n        return this.splitAtMarker(marker, offsetInMarker);\n      }\n\n      // returns the marker just before this offset.\n      // It is an error to call this method with an offset that is in the middle\n      // of a marker.\n    }, {\n      key: 'markerBeforeOffset',\n      value: function markerBeforeOffset(sectionOffset) {\n        var len = 0;\n        var currentMarker = this.markers.head;\n\n        while (currentMarker) {\n          len += currentMarker.length;\n          if (len === sectionOffset) {\n            return currentMarker;\n          } else {\n            (0, _mobiledocKitUtilsAssert['default'])('markerBeforeOffset called with sectionOffset not between markers', len < sectionOffset);\n            currentMarker = currentMarker.next;\n          }\n        }\n      }\n    }, {\n      key: 'markerPositionAtOffset',\n      value: function markerPositionAtOffset(offset) {\n        var currentOffset = 0;\n        var currentMarker = undefined;\n        var remaining = offset;\n        this.markers.detect(function (marker) {\n          currentOffset = Math.min(remaining, marker.length);\n          remaining -= currentOffset;\n          if (remaining === 0) {\n            currentMarker = marker;\n            return true; // break out of detect\n          }\n        });\n\n        return { marker: currentMarker, offset: currentOffset };\n      }\n    }, {\n      key: 'markersFor',\n\n      /**\n       * @return {Array} New markers that match the boundaries of the\n       * range. Does not change the existing markers in this section.\n       */\n      value: function markersFor(headOffset, tailOffset) {\n        var range = { head: { section: this, offset: headOffset },\n          tail: { section: this, offset: tailOffset } };\n\n        var markers = [];\n        this._markersInRange(range, function (marker, _ref) {\n          var markerHead = _ref.markerHead;\n          var markerTail = _ref.markerTail;\n          var isContained = _ref.isContained;\n\n          var cloned = marker.clone();\n          if (!isContained) {\n            // cannot do marker.value.slice if the marker is an atom -- this breaks the atom's \"atomic\" value\n            // If a marker is an atom `isContained` should always be true so\n            // we shouldn't hit this code path. FIXME add tests\n            cloned.value = marker.value.slice(markerHead, markerTail);\n          }\n          markers.push(cloned);\n        });\n        return markers;\n      }\n    }, {\n      key: 'markupsInRange',\n      value: function markupsInRange(range) {\n        var markups = new _mobiledocKitUtilsSet['default']();\n        this._markersInRange(range, function (marker) {\n          marker.markups.forEach(function (m) {\n            return markups.add(m);\n          });\n        });\n        return markups.toArray();\n      }\n\n      // calls the callback with (marker, {markerHead, markerTail, isContained})\n      // for each marker that is wholly or partially contained in the range.\n    }, {\n      key: '_markersInRange',\n      value: function _markersInRange(range, callback) {\n        var head = range.head;\n        var tail = range.tail;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot call #_markersInRange if range expands beyond this section', head.section === this && tail.section === this);\n        var headOffset = head.offset;var tailOffset = tail.offset;\n\n        var currentHead = 0,\n            currentTail = 0,\n            currentMarker = this.markers.head;\n\n        while (currentMarker) {\n          currentTail += currentMarker.length;\n\n          if (currentTail > headOffset && currentHead < tailOffset) {\n            var markerHead = Math.max(headOffset - currentHead, 0);\n            var markerTail = currentMarker.length - Math.max(currentTail - tailOffset, 0);\n            var isContained = markerHead === 0 && markerTail === currentMarker.length;\n\n            callback(currentMarker, { markerHead: markerHead, markerTail: markerTail, isContained: isContained });\n          }\n\n          currentHead += currentMarker.length;\n          currentMarker = currentMarker.next;\n\n          if (currentHead > tailOffset) {\n            break;\n          }\n        }\n      }\n\n      // mutates this by appending the other section's (cloned) markers to it\n    }, {\n      key: 'join',\n      value: function join(otherSection) {\n        var _this2 = this;\n\n        var beforeMarker = this.markers.tail;\n        var afterMarker = null;\n\n        otherSection.markers.forEach(function (m) {\n          if (!m.isBlank) {\n            m = m.clone();\n            _this2.markers.append(m);\n            if (!afterMarker) {\n              afterMarker = m;\n            }\n          }\n        });\n\n        return { beforeMarker: beforeMarker, afterMarker: afterMarker };\n      }\n    }, {\n      key: 'isBlank',\n      get: function get() {\n        if (!this.markers.length) {\n          return true;\n        }\n        return this.markers.every(function (m) {\n          return m.isBlank;\n        });\n      }\n    }, {\n      key: 'text',\n      get: function get() {\n        return (0, _mobiledocKitUtilsArrayUtils.reduce)(this.markers, function (prev, m) {\n          return prev + m.value;\n        }, '');\n      }\n    }, {\n      key: 'length',\n      get: function get() {\n        return (0, _mobiledocKitUtilsArrayUtils.reduce)(this.markers, function (prev, m) {\n          return prev + m.length;\n        }, 0);\n      }\n    }]);\n\n    return Markerable;\n  })(_mobiledocKitModels_section['default']);\n\n  exports['default'] = Markerable;\n});","define('mobiledoc-kit/models/_section', ['exports', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/linked-item', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/cursor/position'], function (exports, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsLinkedItem, _mobiledocKitUtilsAssert, _mobiledocKitUtilsCursorPosition) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  function unimplementedMethod(methodName, me) {\n    (0, _mobiledocKitUtilsAssert['default'])('`' + methodName + '()` must be implemented by ' + me.constructor.name, false);\n  }\n\n  var Section = (function (_LinkedItem) {\n    _inherits(Section, _LinkedItem);\n\n    function Section(type) {\n      _classCallCheck(this, Section);\n\n      _get(Object.getPrototypeOf(Section.prototype), 'constructor', this).call(this);\n      (0, _mobiledocKitUtilsAssert['default'])('Cannot create section without type', !!type);\n      this.type = type;\n      this.isSection = true;\n      this.isMarkerable = false;\n      this.isNested = false;\n      this.isSection = true;\n      this.isLeafSection = true;\n    }\n\n    _createClass(Section, [{\n      key: 'isValidTagName',\n      value: function isValidTagName() /* normalizedTagName */{\n        unimplementedMethod('isValidTagName', this);\n      }\n    }, {\n      key: 'clone',\n      value: function clone() {\n        unimplementedMethod('clone', this);\n      }\n    }, {\n      key: 'canJoin',\n      value: function canJoin() /* otherSection */{\n        unimplementedMethod('canJoin', this);\n      }\n\n      /**\n       * @return {Position} The position at the start of this section\n       * @public\n       */\n    }, {\n      key: 'headPosition',\n      value: function headPosition() {\n        return this.toPosition(0);\n      }\n\n      /**\n       * @return {Position} The position at the end of this section\n       * @public\n       */\n    }, {\n      key: 'tailPosition',\n      value: function tailPosition() {\n        return this.toPosition(this.length);\n      }\n\n      /**\n       * @param {Number} offset\n       * @return {Position} The position in this section at the given offset\n       * @public\n       */\n    }, {\n      key: 'toPosition',\n      value: function toPosition(offset) {\n        (0, _mobiledocKitUtilsAssert['default'])(\"Must pass number to `toPosition`\", typeof offset === 'number');\n        (0, _mobiledocKitUtilsAssert['default'])(\"Cannot call `toPosition` with offset > length\", offset <= this.length);\n\n        return new _mobiledocKitUtilsCursorPosition['default'](this, offset);\n      }\n\n      /**\n       * @return {Range} A range from this section's head to tail positions\n       * @public\n       */\n    }, {\n      key: 'toRange',\n      value: function toRange() {\n        return this.headPosition().toRange(this.tailPosition());\n      }\n    }, {\n      key: 'join',\n      value: function join() {\n        unimplementedMethod('join', this);\n      }\n    }, {\n      key: 'textUntil',\n      value: function textUntil() /* position */{\n        return '';\n      }\n\n      /**\n       * Markerable sections should override this method\n       */\n    }, {\n      key: 'splitMarkerAtOffset',\n      value: function splitMarkerAtOffset() {\n        var blankEdit = { added: [], removed: [] };\n        return blankEdit;\n      }\n    }, {\n      key: 'nextLeafSection',\n      value: function nextLeafSection() {\n        var next = this.next;\n        if (next) {\n          if (next.items) {\n            return next.items.head;\n          } else {\n            return next;\n          }\n        } else {\n          if (this.isNested) {\n            return this.parent.nextLeafSection();\n          }\n        }\n      }\n    }, {\n      key: 'immediatelyNextMarkerableSection',\n      value: function immediatelyNextMarkerableSection() {\n        var next = this.nextLeafSection();\n        while (next && !next.isMarkerable) {\n          next = next.nextLeafSection();\n        }\n        return next;\n      }\n    }, {\n      key: 'previousLeafSection',\n      value: function previousLeafSection() {\n        var prev = this.prev;\n\n        if (prev) {\n          if (prev.items) {\n            return prev.items.tail;\n          } else {\n            return prev;\n          }\n        } else {\n          if (this.isNested) {\n            return this.parent.previousLeafSection();\n          }\n        }\n      }\n    }, {\n      key: 'tagName',\n      set: function set(val) {\n        var normalizedTagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(val);\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot set section tagName to ' + val, this.isValidTagName(normalizedTagName));\n        this._tagName = normalizedTagName;\n      },\n      get: function get() {\n        return this._tagName;\n      }\n    }, {\n      key: 'length',\n      get: function get() {\n        return 0;\n      }\n    }, {\n      key: 'isBlank',\n      get: function get() {\n        unimplementedMethod('isBlank', this);\n      }\n    }]);\n\n    return Section;\n  })(_mobiledocKitUtilsLinkedItem['default']);\n\n  exports['default'] = Section;\n});","define('mobiledoc-kit/models/atom-node', ['exports', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var AtomNode = (function () {\n    function AtomNode(editor, atom, model, element, atomOptions) {\n      _classCallCheck(this, AtomNode);\n\n      this.editor = editor;\n      this.atom = atom;\n      this.model = model;\n      this.atomOptions = atomOptions;\n      this.element = element;\n\n      this._teardownCallback = null;\n      this._rendered = null;\n    }\n\n    _createClass(AtomNode, [{\n      key: 'render',\n      value: function render() {\n        if (!this._rendered) {\n          var options = this.atomOptions;\n          var env = this.env;\n          var _model = this.model;\n          var value = _model.value;\n          var payload = _model.payload;\n\n          // cache initial render\n          this._rendered = this.atom.render({ options: options, env: env, value: value, payload: payload });\n        }\n\n        this._validateAndAppendRenderResult(this._rendered);\n      }\n    }, {\n      key: 'teardown',\n      value: function teardown() {\n        if (this._teardownCallback) {\n          this._teardownCallback();\n          this._teardownCallback = null;\n        }\n        if (this._rendered) {\n          this.element.removeChild(this._rendered);\n          this._rendered = null;\n        }\n      }\n    }, {\n      key: '_validateAndAppendRenderResult',\n      value: function _validateAndAppendRenderResult(rendered) {\n        if (!rendered) {\n          return;\n        }\n\n        var name = this.atom.name;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Atom \"' + name + '\" must return a DOM node (returned value was: \"' + rendered + '\")', !!rendered.nodeType);\n        this.element.appendChild(rendered);\n      }\n    }, {\n      key: 'env',\n      get: function get() {\n        var _this = this;\n\n        return {\n          name: this.atom.name,\n          onTeardown: function onTeardown(callback) {\n            return _this._teardownCallback = callback;\n          },\n          save: function save(value) {\n            var payload = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n            _this.model.value = value;\n            _this.model.payload = payload;\n\n            _this.editor._postDidChange();\n            _this.teardown();\n            _this.render();\n          }\n        };\n      }\n    }]);\n\n    return AtomNode;\n  })();\n\n  exports['default'] = AtomNode;\n});","define('mobiledoc-kit/models/atom', ['exports', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/mixin', 'mobiledoc-kit/utils/markuperable', 'mobiledoc-kit/utils/linked-item', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitModelsTypes, _mobiledocKitUtilsMixin, _mobiledocKitUtilsMarkuperable, _mobiledocKitUtilsLinkedItem, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x4, _x5, _x6) { var _again = true; _function: while (_again) { var object = _x4, property = _x5, receiver = _x6; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x4 = parent; _x5 = property; _x6 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  var ATOM_LENGTH = 1;\n\n  var Atom = (function (_LinkedItem) {\n    _inherits(Atom, _LinkedItem);\n\n    function Atom(name, value, payload) {\n      var _this = this;\n\n      var markups = arguments.length <= 3 || arguments[3] === undefined ? [] : arguments[3];\n\n      _classCallCheck(this, Atom);\n\n      _get(Object.getPrototypeOf(Atom.prototype), 'constructor', this).call(this);\n      this.name = name;\n      this.value = value;\n      this.text = ''; // An atom never has text, but it does have a value\n      (0, _mobiledocKitUtilsAssert['default'])('Atom must have value', value !== undefined && value !== null);\n      this.payload = payload;\n      this.type = _mobiledocKitModelsTypes.ATOM_TYPE;\n      this.isMarker = false;\n      this.isAtom = true;\n\n      this.markups = [];\n      markups.forEach(function (m) {\n        return _this.addMarkup(m);\n      });\n    }\n\n    _createClass(Atom, [{\n      key: 'clone',\n      value: function clone() {\n        var clonedMarkups = this.markups.slice();\n        return this.builder.createAtom(this.name, this.value, this.payload, clonedMarkups);\n      }\n    }, {\n      key: 'canJoin',\n      value: function canJoin() /* other */{\n        return false;\n      }\n    }, {\n      key: 'textUntil',\n      value: function textUntil() /* offset */{\n        return '';\n      }\n    }, {\n      key: 'split',\n      value: function split() {\n        var offset = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0];\n        var endOffset = arguments.length <= 1 || arguments[1] === undefined ? offset : arguments[1];\n        return (function () {\n          var markers = [];\n\n          if (endOffset === 0) {\n            markers.push(this.builder.createMarker('', this.markups.slice()));\n          }\n\n          markers.push(this.clone());\n\n          if (offset === ATOM_LENGTH) {\n            markers.push(this.builder.createMarker('', this.markups.slice()));\n          }\n\n          return markers;\n        }).apply(this, arguments);\n      }\n    }, {\n      key: 'splitAtOffset',\n      value: function splitAtOffset(offset) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot split a marker at an offset > its length', offset <= this.length);\n\n        var builder = this.builder;\n\n        var clone = this.clone();\n        var blankMarker = builder.createMarker('');\n        var pre = undefined,\n            post = undefined;\n\n        if (offset === 0) {\n          pre = blankMarker;\n          post = clone;\n        } else if (offset === ATOM_LENGTH) {\n          pre = clone;\n          post = blankMarker;\n        } else {\n          (0, _mobiledocKitUtilsAssert['default'])('Invalid offset given to Atom#splitAtOffset: \"' + offset + '\"', false);\n        }\n\n        this.markups.forEach(function (markup) {\n          pre.addMarkup(markup);\n          post.addMarkup(markup);\n        });\n        return [pre, post];\n      }\n    }, {\n      key: 'isBlank',\n      get: function get() {\n        return false;\n      }\n    }, {\n      key: 'length',\n      get: function get() {\n        return ATOM_LENGTH;\n      }\n    }]);\n\n    return Atom;\n  })(_mobiledocKitUtilsLinkedItem['default']);\n\n  (0, _mobiledocKitUtilsMixin['default'])(Atom, _mobiledocKitUtilsMarkuperable['default']);\n\n  exports['default'] = Atom;\n});","define('mobiledoc-kit/models/card-node', ['exports', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var CardNode = (function () {\n    function CardNode(editor, card, section, element, options) {\n      _classCallCheck(this, CardNode);\n\n      this.editor = editor;\n      this.card = card;\n      this.section = section;\n      this.element = element;\n      this.options = options;\n\n      this.mode = null;\n\n      this._teardownCallback = null;\n      this._rendered = null;\n    }\n\n    _createClass(CardNode, [{\n      key: 'render',\n      value: function render(mode) {\n        if (this.mode === mode) {\n          return;\n        }\n\n        this.teardown();\n\n        this.mode = mode;\n\n        var method = mode === 'display' ? 'render' : 'edit';\n        method = this.card[method];\n\n        (0, _mobiledocKitUtilsAssert['default'])('Card is missing \"' + method + '\" (tried to render mode: \"' + mode + '\")', !!method);\n        var rendered = method({\n          env: this.env,\n          options: this.options,\n          payload: this.section.payload\n        });\n\n        this._validateAndAppendRenderResult(rendered);\n      }\n    }, {\n      key: 'teardown',\n      value: function teardown() {\n        if (this._teardownCallback) {\n          this._teardownCallback();\n          this._teardownCallback = null;\n        }\n        if (this._rendered) {\n          this.element.removeChild(this._rendered);\n          this._rendered = null;\n        }\n      }\n    }, {\n      key: 'didRender',\n      value: function didRender() {\n        if (this._didRenderCallback) {\n          this._didRenderCallback();\n        }\n      }\n    }, {\n      key: 'display',\n      value: function display() {\n        this.render('display');\n      }\n    }, {\n      key: 'edit',\n      value: function edit() {\n        this.render('edit');\n      }\n    }, {\n      key: 'remove',\n      value: function remove() {\n        var _this = this;\n\n        this.editor.run(function (postEditor) {\n          return postEditor.removeSection(_this.section);\n        });\n      }\n    }, {\n      key: '_validateAndAppendRenderResult',\n      value: function _validateAndAppendRenderResult(rendered) {\n        if (!rendered) {\n          return;\n        }\n\n        var name = this.card.name;\n\n        (0, _mobiledocKitUtilsAssert['default'])('Card \"' + name + '\" must render dom (render value was: \"' + rendered + '\")', !!rendered.nodeType);\n        this.element.appendChild(rendered);\n        this._rendered = rendered;\n        this.didRender();\n      }\n    }, {\n      key: 'env',\n      get: function get() {\n        var _this2 = this;\n\n        return {\n          name: this.card.name,\n          isInEditor: true,\n          onTeardown: function onTeardown(callback) {\n            return _this2._teardownCallback = callback;\n          },\n          didRender: function didRender(callback) {\n            return _this2._didRenderCallback = callback;\n          },\n          edit: function edit() {\n            return _this2.edit();\n          },\n          save: function save(payload) {\n            var transition = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1];\n\n            _this2.section.payload = payload;\n\n            _this2.editor._postDidChange();\n            if (transition) {\n              _this2.display();\n            }\n          },\n          cancel: function cancel() {\n            return _this2.display();\n          },\n          remove: function remove() {\n            return _this2.remove();\n          },\n          postModel: this.section\n        };\n      }\n    }]);\n\n    return CardNode;\n  })();\n\n  exports['default'] = CardNode;\n});","define('mobiledoc-kit/models/card', ['exports', 'mobiledoc-kit/models/_section', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/copy'], function (exports, _mobiledocKitModels_section, _mobiledocKitModelsTypes, _mobiledocKitUtilsCopy) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  var CARD_MODES = {\n    DISPLAY: 'display',\n    EDIT: 'edit'\n  };\n\n  exports.CARD_MODES = CARD_MODES;\n  var CARD_LENGTH = 1;\n\n  var DEFAULT_INITIAL_MODE = CARD_MODES.DISPLAY;\n\n  var Card = (function (_Section) {\n    _inherits(Card, _Section);\n\n    function Card(name, payload) {\n      _classCallCheck(this, Card);\n\n      _get(Object.getPrototypeOf(Card.prototype), 'constructor', this).call(this, _mobiledocKitModelsTypes.CARD_TYPE);\n      this.name = name;\n      this.payload = payload;\n      this.setInitialMode(DEFAULT_INITIAL_MODE);\n      this.isCardSection = true;\n    }\n\n    _createClass(Card, [{\n      key: 'canJoin',\n      value: function canJoin() {\n        return false;\n      }\n    }, {\n      key: 'clone',\n      value: function clone() {\n        var payload = (0, _mobiledocKitUtilsCopy.shallowCopyObject)(this.payload);\n        var card = this.builder.createCardSection(this.name, payload);\n        // If this card is currently rendered, clone the mode it is\n        // currently in as the default mode of the new card.\n        var mode = this._initialMode;\n        if (this.renderNode && this.renderNode.cardNode) {\n          mode = this.renderNode.cardNode.mode;\n        }\n        card.setInitialMode(mode);\n        return card;\n      }\n\n      /**\n       * set the mode that this will be rendered into initially\n       * @private\n       */\n    }, {\n      key: 'setInitialMode',\n      value: function setInitialMode(initialMode) {\n        // TODO validate initialMode\n        this._initialMode = initialMode;\n      }\n    }, {\n      key: 'isBlank',\n      get: function get() {\n        return false;\n      }\n    }, {\n      key: 'length',\n      get: function get() {\n        return CARD_LENGTH;\n      }\n    }]);\n\n    return Card;\n  })(_mobiledocKitModels_section['default']);\n\n  exports['default'] = Card;\n});","define('mobiledoc-kit/models/image', ['exports', 'mobiledoc-kit/models/types', 'mobiledoc-kit/models/_section'], function (exports, _mobiledocKitModelsTypes, _mobiledocKitModels_section) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  var Image = (function (_Section) {\n    _inherits(Image, _Section);\n\n    function Image() {\n      _classCallCheck(this, Image);\n\n      _get(Object.getPrototypeOf(Image.prototype), 'constructor', this).call(this, _mobiledocKitModelsTypes.IMAGE_SECTION_TYPE);\n      this.src = null;\n    }\n\n    _createClass(Image, [{\n      key: 'canJoin',\n      value: function canJoin() {\n        return false;\n      }\n    }, {\n      key: 'isBlank',\n      get: function get() {\n        return false;\n      }\n    }, {\n      key: 'length',\n      get: function get() {\n        return 1;\n      }\n    }]);\n\n    return Image;\n  })(_mobiledocKitModels_section['default']);\n\n  exports['default'] = Image;\n});","define('mobiledoc-kit/models/lifecycle-callbacks', ['exports', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var LifecycleCallbacks = (function () {\n    function LifecycleCallbacks() {\n      var _this = this;\n\n      var queueNames = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\n      _classCallCheck(this, LifecycleCallbacks);\n\n      this.callbackQueues = {};\n      this.removalQueues = {};\n\n      queueNames.forEach(function (name) {\n        _this.callbackQueues[name] = [];\n        _this.removalQueues[name] = [];\n      });\n    }\n\n    _createClass(LifecycleCallbacks, [{\n      key: 'runCallbacks',\n      value: function runCallbacks(queueName) {\n        var args = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n\n        var queue = this._getQueue(queueName);\n        queue.forEach(function (cb) {\n          return cb.apply(undefined, _toConsumableArray(args));\n        });\n\n        var toRemove = this.removalQueues[queueName];\n        toRemove.forEach(function (cb) {\n          var index = queue.indexOf(cb);\n          if (index !== -1) {\n            queue.splice(index, 1);\n          }\n        });\n\n        this.removalQueues[queueName] = [];\n      }\n    }, {\n      key: 'addCallback',\n      value: function addCallback(queueName, callback) {\n        this._getQueue(queueName).push(callback);\n      }\n    }, {\n      key: '_scheduleCallbackForRemoval',\n      value: function _scheduleCallbackForRemoval(queueName, callback) {\n        this.removalQueues[queueName].push(callback);\n      }\n    }, {\n      key: 'addCallbackOnce',\n      value: function addCallbackOnce(queueName, callback) {\n        var queue = this._getQueue(queueName);\n        if (queue.indexOf(callback) === -1) {\n          queue.push(callback);\n          this._scheduleCallbackForRemoval(queueName, callback);\n        }\n      }\n    }, {\n      key: '_getQueue',\n      value: function _getQueue(queueName) {\n        var queue = this.callbackQueues[queueName];\n        (0, _mobiledocKitUtilsAssert['default'])('No queue found for \"' + queueName + '\"', !!queue);\n        return queue;\n      }\n    }]);\n\n    return LifecycleCallbacks;\n  })();\n\n  exports['default'] = LifecycleCallbacks;\n});","define('mobiledoc-kit/models/list-item', ['exports', 'mobiledoc-kit/models/_markerable', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/array-utils'], function (exports, _mobiledocKitModels_markerable, _mobiledocKitModelsTypes, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsArrayUtils) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x3, _x4, _x5) { var _again = true; _function: while (_again) { var object = _x3, property = _x4, receiver = _x5; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x3 = parent; _x4 = property; _x5 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  var VALID_LIST_ITEM_TAGNAMES = ['li'].map(_mobiledocKitUtilsDomUtils.normalizeTagName);\n\n  exports.VALID_LIST_ITEM_TAGNAMES = VALID_LIST_ITEM_TAGNAMES;\n\n  var ListItem = (function (_Markerable) {\n    _inherits(ListItem, _Markerable);\n\n    function ListItem(tagName) {\n      var markers = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n\n      _classCallCheck(this, ListItem);\n\n      _get(Object.getPrototypeOf(ListItem.prototype), 'constructor', this).call(this, _mobiledocKitModelsTypes.LIST_ITEM_TYPE, tagName, markers);\n      this.isListItem = true;\n      this.isNested = true;\n    }\n\n    _createClass(ListItem, [{\n      key: 'isValidTagName',\n      value: function isValidTagName(normalizedTagName) {\n        return (0, _mobiledocKitUtilsArrayUtils.contains)(VALID_LIST_ITEM_TAGNAMES, normalizedTagName);\n      }\n    }, {\n      key: 'splitAtMarker',\n      value: function splitAtMarker(marker) {\n        var offset = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];\n\n        // FIXME need to check if we are going to split into two list items\n        // or a list item and a new markup section:\n        var isLastItem = !this.next;\n        var createNewSection = !marker && offset === 0 && isLastItem;\n\n        var beforeSection = this.builder.createListItem();\n        var afterSection = createNewSection ? this.builder.createMarkupSection() : this.builder.createListItem();\n\n        return this._redistributeMarkers(beforeSection, afterSection, marker, offset);\n      }\n    }, {\n      key: 'post',\n      get: function get() {\n        return this.section.post;\n      }\n    }]);\n\n    return ListItem;\n  })(_mobiledocKitModels_markerable['default']);\n\n  exports['default'] = ListItem;\n});","define('mobiledoc-kit/models/list-section', ['exports', 'mobiledoc-kit/models/types', 'mobiledoc-kit/models/_section', 'mobiledoc-kit/models/_attributable', 'mobiledoc-kit/utils/linked-list', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/object-utils'], function (exports, _mobiledocKitModelsTypes, _mobiledocKitModels_section, _mobiledocKitModels_attributable, _mobiledocKitUtilsLinkedList, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsAssert, _mobiledocKitUtilsObjectUtils) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x4, _x5, _x6) { var _again = true; _function: while (_again) { var object = _x4, property = _x5, receiver = _x6; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x4 = parent; _x5 = property; _x6 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  var VALID_LIST_SECTION_TAGNAMES = ['ul', 'ol'].map(_mobiledocKitUtilsDomUtils.normalizeTagName);\n\n  exports.VALID_LIST_SECTION_TAGNAMES = VALID_LIST_SECTION_TAGNAMES;\n  var DEFAULT_TAG_NAME = VALID_LIST_SECTION_TAGNAMES[0];\n\n  exports.DEFAULT_TAG_NAME = DEFAULT_TAG_NAME;\n\n  var ListSection = (function (_Section) {\n    _inherits(ListSection, _Section);\n\n    function ListSection() {\n      var tagName = arguments.length <= 0 || arguments[0] === undefined ? DEFAULT_TAG_NAME : arguments[0];\n\n      var _this = this;\n\n      var items = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n      var attributes = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n      _classCallCheck(this, ListSection);\n\n      _get(Object.getPrototypeOf(ListSection.prototype), 'constructor', this).call(this, _mobiledocKitModelsTypes.LIST_SECTION_TYPE);\n      this.tagName = tagName;\n      this.isListSection = true;\n      this.isLeafSection = false;\n\n      (0, _mobiledocKitModels_attributable.attributable)(this);\n      (0, _mobiledocKitUtilsObjectUtils.entries)(attributes).forEach(function (_ref) {\n        var _ref2 = _slicedToArray(_ref, 2);\n\n        var k = _ref2[0];\n        var v = _ref2[1];\n        return _this.setAttribute(k, v);\n      });\n\n      this.items = new _mobiledocKitUtilsLinkedList['default']({\n        adoptItem: function adoptItem(i) {\n          (0, _mobiledocKitUtilsAssert['default'])('Cannot insert non-list-item to list (is: ' + i.type + ')', i.isListItem);\n          i.section = i.parent = _this;\n        },\n        freeItem: function freeItem(i) {\n          return i.section = i.parent = null;\n        }\n      });\n      this.sections = this.items;\n\n      items.forEach(function (i) {\n        return _this.items.append(i);\n      });\n    }\n\n    _createClass(ListSection, [{\n      key: 'canJoin',\n      value: function canJoin() {\n        return false;\n      }\n    }, {\n      key: 'isValidTagName',\n      value: function isValidTagName(normalizedTagName) {\n        return (0, _mobiledocKitUtilsArrayUtils.contains)(VALID_LIST_SECTION_TAGNAMES, normalizedTagName);\n      }\n    }, {\n      key: 'headPosition',\n      value: function headPosition() {\n        return this.items.head.headPosition();\n      }\n    }, {\n      key: 'tailPosition',\n      value: function tailPosition() {\n        return this.items.tail.tailPosition();\n      }\n    }, {\n      key: 'clone',\n      value: function clone() {\n        var newSection = this.builder.createListSection(this.tagName);\n        (0, _mobiledocKitUtilsArrayUtils.forEach)(this.items, function (i) {\n          return newSection.items.append(i.clone());\n        });\n        return newSection;\n      }\n\n      /**\n       * Mutates this list\n       * @param {ListSection|Markerable}\n       * @return null\n       */\n    }, {\n      key: 'join',\n      value: function join(other) {\n        var _this2 = this;\n\n        if (other.isListSection) {\n          other.items.forEach(function (i) {\n            return _this2.join(i);\n          });\n        } else if (other.isMarkerable) {\n          var item = this.builder.createListItem();\n          item.join(other);\n          this.items.append(item);\n        }\n      }\n    }, {\n      key: 'isBlank',\n      get: function get() {\n        return this.items.isEmpty;\n      }\n    }]);\n\n    return ListSection;\n  })(_mobiledocKitModels_section['default']);\n\n  exports['default'] = ListSection;\n});","define('mobiledoc-kit/models/marker', ['exports', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/mixin', 'mobiledoc-kit/utils/markuperable', 'mobiledoc-kit/utils/linked-item', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/array-utils'], function (exports, _mobiledocKitModelsTypes, _mobiledocKitUtilsMixin, _mobiledocKitUtilsMarkuperable, _mobiledocKitUtilsLinkedItem, _mobiledocKitUtilsAssert, _mobiledocKitUtilsArrayUtils) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x5, _x6, _x7) { var _again = true; _function: while (_again) { var object = _x5, property = _x6, receiver = _x7; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x5 = parent; _x6 = property; _x7 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  // Unicode uses a pair of \"surrogate\" characters\" (a high- and low-surrogate)\n  // to encode characters outside the basic multilingual plane (like emoji and\n  // some languages).\n  // These values are the unicode code points for the start and end of the\n  // high- and low-surrogate characters.\n  // See \"high surrogate\" and \"low surrogate\" on\n  // https://en.wikipedia.org/wiki/Unicode_block\n  var HIGH_SURROGATE_RANGE = [0xD800, 0xDBFF];\n  exports.HIGH_SURROGATE_RANGE = HIGH_SURROGATE_RANGE;\n  var LOW_SURROGATE_RANGE = [0xDC00, 0xDFFF];\n\n  exports.LOW_SURROGATE_RANGE = LOW_SURROGATE_RANGE;\n  var Marker = (function (_LinkedItem) {\n    _inherits(Marker, _LinkedItem);\n\n    function Marker() {\n      var _this = this;\n\n      var value = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];\n      var markups = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n\n      _classCallCheck(this, Marker);\n\n      _get(Object.getPrototypeOf(Marker.prototype), 'constructor', this).call(this);\n      this.value = value;\n      (0, _mobiledocKitUtilsAssert['default'])('Marker must have value', value !== undefined && value !== null);\n      this.markups = [];\n      this.type = _mobiledocKitModelsTypes.MARKER_TYPE;\n      this.isMarker = true;\n      this.isAtom = false;\n      markups.forEach(function (m) {\n        return _this.addMarkup(m);\n      });\n    }\n\n    _createClass(Marker, [{\n      key: 'clone',\n      value: function clone() {\n        var clonedMarkups = this.markups.slice();\n        return this.builder.createMarker(this.value, clonedMarkups);\n      }\n    }, {\n      key: 'charAt',\n      value: function charAt(offset) {\n        return this.value.slice(offset, offset + 1);\n      }\n\n      /**\n       * A marker's text is equal to its value.\n       * Compare with an Atom which distinguishes between text and value\n       */\n    }, {\n      key: 'deleteValueAtOffset',\n\n      // delete the character at this offset,\n      // update the value with the new value\n      value: function deleteValueAtOffset(offset) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot delete value at offset outside bounds', offset >= 0 && offset <= this.length);\n\n        var width = 1;\n        var code = this.value.charCodeAt(offset);\n        if (code >= HIGH_SURROGATE_RANGE[0] && code <= HIGH_SURROGATE_RANGE[1]) {\n          width = 2;\n        } else if (code >= LOW_SURROGATE_RANGE[0] && code <= LOW_SURROGATE_RANGE[1]) {\n          width = 2;\n          offset = offset - 1;\n        }\n\n        var left = this.value.slice(0, offset);\n        var right = this.value.slice(offset + width);\n\n        this.value = left + right;\n\n        return width;\n      }\n    }, {\n      key: 'canJoin',\n      value: function canJoin(other) {\n        return other && other.isMarker && (0, _mobiledocKitUtilsArrayUtils.isArrayEqual)(this.markups, other.markups);\n      }\n    }, {\n      key: 'textUntil',\n      value: function textUntil(offset) {\n        return this.value.slice(0, offset);\n      }\n    }, {\n      key: 'split',\n      value: function split() {\n        var offset = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0];\n        var endOffset = arguments.length <= 1 || arguments[1] === undefined ? this.length : arguments[1];\n\n        var markers = [this.builder.createMarker(this.value.substring(0, offset)), this.builder.createMarker(this.value.substring(offset, endOffset)), this.builder.createMarker(this.value.substring(endOffset))];\n\n        this.markups.forEach(function (mu) {\n          return markers.forEach(function (m) {\n            return m.addMarkup(mu);\n          });\n        });\n        return markers;\n      }\n\n      /**\n       * @return {Array} 2 markers either or both of which could be blank\n       */\n    }, {\n      key: 'splitAtOffset',\n      value: function splitAtOffset(offset) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot split a marker at an offset > its length', offset <= this.length);\n        var value = this.value;\n        var builder = this.builder;\n\n        var pre = builder.createMarker(value.substring(0, offset));\n        var post = builder.createMarker(value.substring(offset));\n\n        this.markups.forEach(function (markup) {\n          pre.addMarkup(markup);\n          post.addMarkup(markup);\n        });\n\n        return [pre, post];\n      }\n    }, {\n      key: 'isEmpty',\n      get: function get() {\n        return this.isBlank;\n      }\n    }, {\n      key: 'isBlank',\n      get: function get() {\n        return this.length === 0;\n      }\n    }, {\n      key: 'text',\n      get: function get() {\n        return this.value;\n      }\n    }, {\n      key: 'length',\n      get: function get() {\n        return this.value.length;\n      }\n    }]);\n\n    return Marker;\n  })(_mobiledocKitUtilsLinkedItem['default']);\n\n  (0, _mobiledocKitUtilsMixin['default'])(Marker, _mobiledocKitUtilsMarkuperable['default']);\n\n  exports['default'] = Marker;\n});","define('mobiledoc-kit/models/markup-section', ['exports', 'mobiledoc-kit/models/_markerable', 'mobiledoc-kit/models/_attributable', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/object-utils'], function (exports, _mobiledocKitModels_markerable, _mobiledocKitModels_attributable, _mobiledocKitModelsTypes, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsObjectUtils) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x5, _x6, _x7) { var _again = true; _function: while (_again) { var object = _x5, property = _x6, receiver = _x7; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x5 = parent; _x6 = property; _x7 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  // valid values of `tagName` for a MarkupSection\n  var VALID_MARKUP_SECTION_TAGNAMES = ['aside', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'].map(_mobiledocKitUtilsDomUtils.normalizeTagName);\n\n  exports.VALID_MARKUP_SECTION_TAGNAMES = VALID_MARKUP_SECTION_TAGNAMES;\n  // valid element names for a MarkupSection. A MarkupSection with a tagName\n  // not in this will be rendered as a div with a className matching the\n  // tagName\n  var MARKUP_SECTION_ELEMENT_NAMES = ['aside', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'].map(_mobiledocKitUtilsDomUtils.normalizeTagName);\n  exports.MARKUP_SECTION_ELEMENT_NAMES = MARKUP_SECTION_ELEMENT_NAMES;\n  var DEFAULT_TAG_NAME = VALID_MARKUP_SECTION_TAGNAMES[8];\n\n  exports.DEFAULT_TAG_NAME = DEFAULT_TAG_NAME;\n  var MarkupSection = (function (_Markerable) {\n    _inherits(MarkupSection, _Markerable);\n\n    function MarkupSection() {\n      var tagName = arguments.length <= 0 || arguments[0] === undefined ? DEFAULT_TAG_NAME : arguments[0];\n\n      var _this = this;\n\n      var markers = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n      var attributes = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n      _classCallCheck(this, MarkupSection);\n\n      _get(Object.getPrototypeOf(MarkupSection.prototype), 'constructor', this).call(this, _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE, tagName, markers);\n\n      (0, _mobiledocKitModels_attributable.attributable)(this);\n      (0, _mobiledocKitUtilsObjectUtils.entries)(attributes).forEach(function (_ref) {\n        var _ref2 = _slicedToArray(_ref, 2);\n\n        var k = _ref2[0];\n        var v = _ref2[1];\n        return _this.setAttribute(k, v);\n      });\n\n      this.isMarkupSection = true;\n    }\n\n    _createClass(MarkupSection, [{\n      key: 'isValidTagName',\n      value: function isValidTagName(normalizedTagName) {\n        return (0, _mobiledocKitUtilsArrayUtils.contains)(VALID_MARKUP_SECTION_TAGNAMES, normalizedTagName);\n      }\n    }, {\n      key: 'splitAtMarker',\n      value: function splitAtMarker(marker) {\n        var offset = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];\n        var beforeSection = this.builder.createMarkupSection(this.tagName, [], false, this.attributes);\n        var afterSection = this.builder.createMarkupSection();\n\n        return this._redistributeMarkers(beforeSection, afterSection, marker, offset);\n      }\n    }]);\n\n    return MarkupSection;\n  })(_mobiledocKitModels_markerable['default']);\n\n  exports['default'] = MarkupSection;\n});","define('mobiledoc-kit/models/markup', ['exports', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsArrayUtils, _mobiledocKitModelsTypes, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var VALID_MARKUP_TAGNAMES = ['a', 'b', 'code', 'em', 'i', 's', // strikethrough\n  'strong', 'sub', // subscript\n  'sup', // superscript\n  'u'].map(_mobiledocKitUtilsDomUtils.normalizeTagName);\n\n  exports.VALID_MARKUP_TAGNAMES = VALID_MARKUP_TAGNAMES;\n  var VALID_ATTRIBUTES = ['href', 'rel'];\n\n  exports.VALID_ATTRIBUTES = VALID_ATTRIBUTES;\n  /**\n   * A Markup is similar with an inline HTML tag that might be added to\n   * text to modify its meaning and/or display. Examples of types of markup\n   * that could be added are bold ('b'), italic ('i'), strikethrough ('s'), and `a` tags (links).\n   * @property {String} tagName\n   */\n\n  var Markup = (function () {\n    /*\n     * @param {Object} attributes key-values\n     */\n\n    function Markup(tagName) {\n      var attributes = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      _classCallCheck(this, Markup);\n\n      this.tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(tagName);\n\n      (0, _mobiledocKitUtilsAssert['default'])('Must use attributes object param (not array) for Markup', !Array.isArray(attributes));\n\n      this.attributes = (0, _mobiledocKitUtilsArrayUtils.filterObject)(attributes, VALID_ATTRIBUTES);\n      this.type = _mobiledocKitModelsTypes.MARKUP_TYPE;\n\n      (0, _mobiledocKitUtilsAssert['default'])('Cannot create markup of tagName ' + tagName, VALID_MARKUP_TAGNAMES.indexOf(this.tagName) !== -1);\n    }\n\n    /**\n     * Whether text in the forward direction of the cursor (i.e. to the right in ltr text)\n     * should be considered to have this markup applied to it.\n     * @private\n     */\n\n    _createClass(Markup, [{\n      key: 'isForwardInclusive',\n      value: function isForwardInclusive() {\n        return this.tagName === (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(\"a\") ? false : true;\n      }\n    }, {\n      key: 'isBackwardInclusive',\n      value: function isBackwardInclusive() {\n        return false;\n      }\n    }, {\n      key: 'hasTag',\n      value: function hasTag(tagName) {\n        return this.tagName === (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(tagName);\n      }\n\n      /**\n       * Returns the attribute value\n       * @param {String} name, e.g. \"href\"\n       */\n    }, {\n      key: 'getAttribute',\n      value: function getAttribute(name) {\n        return this.attributes[name];\n      }\n    }], [{\n      key: 'isValidElement',\n      value: function isValidElement(element) {\n        var tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(element.tagName);\n        return VALID_MARKUP_TAGNAMES.indexOf(tagName) !== -1;\n      }\n    }]);\n\n    return Markup;\n  })();\n\n  exports['default'] = Markup;\n});","define('mobiledoc-kit/models/post-node-builder', ['exports', 'mobiledoc-kit/models/atom', 'mobiledoc-kit/models/post', 'mobiledoc-kit/models/markup-section', 'mobiledoc-kit/models/list-section', 'mobiledoc-kit/models/list-item', 'mobiledoc-kit/models/image', 'mobiledoc-kit/models/marker', 'mobiledoc-kit/models/markup', 'mobiledoc-kit/models/card', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitModelsAtom, _mobiledocKitModelsPost, _mobiledocKitModelsMarkupSection, _mobiledocKitModelsListSection, _mobiledocKitModelsListItem, _mobiledocKitModelsImage, _mobiledocKitModelsMarker, _mobiledocKitModelsMarkup, _mobiledocKitModelsCard, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsArrayUtils, _mobiledocKitModelsTypes, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function cacheKey(tagName, attributes) {\n    return (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(tagName) + '-' + (0, _mobiledocKitUtilsArrayUtils.objectToSortedKVArray)(attributes).join('-');\n  }\n\n  function addMarkupToCache(cache, markup) {\n    cache[cacheKey(markup.tagName, markup.attributes)] = markup;\n  }\n\n  function findMarkupInCache(cache, tagName, attributes) {\n    var key = cacheKey(tagName, attributes);\n    return cache[key];\n  }\n\n  /**\n   * The PostNodeBuilder is used to create new {@link Post} primitives, such\n   * as a MarkupSection, a CardSection, a Markup, etc. Every instance of an\n   * {@link Editor} has its own builder instance. The builder can be used\n   * inside an {@link Editor#run} callback to programmatically create new\n   * Post primitives to insert into the document.\n   * A PostNodeBuilder should be read from the Editor, *not* instantiated on its own.\n   */\n\n  var PostNodeBuilder = (function () {\n    /**\n     * @private\n     */\n\n    function PostNodeBuilder() {\n      _classCallCheck(this, PostNodeBuilder);\n\n      this.markupCache = {};\n    }\n\n    /**\n     * @return {Post} A new, blank post\n     */\n\n    _createClass(PostNodeBuilder, [{\n      key: 'createPost',\n      value: function createPost() {\n        var sections = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\n        var post = new _mobiledocKitModelsPost['default']();\n        post.builder = this;\n\n        sections.forEach(function (s) {\n          return post.sections.append(s);\n        });\n\n        return post;\n      }\n    }, {\n      key: 'createMarkerableSection',\n      value: function createMarkerableSection(type, tagName) {\n        var markers = arguments.length <= 2 || arguments[2] === undefined ? [] : arguments[2];\n\n        switch (type) {\n          case _mobiledocKitModelsTypes.LIST_ITEM_TYPE:\n            return this.createListItem(markers);\n          case _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE:\n            return this.createMarkupSection(tagName, markers);\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Cannot create markerable section of type ' + type, false);\n        }\n      }\n\n      /**\n       * @param {tagName} [tagName='P']\n       * @param {Marker[]} [markers=[]]\n       * @return {MarkupSection}\n       */\n    }, {\n      key: 'createMarkupSection',\n      value: function createMarkupSection() {\n        var tagName = arguments.length <= 0 || arguments[0] === undefined ? _mobiledocKitModelsMarkupSection.DEFAULT_TAG_NAME : arguments[0];\n        var markers = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n        var isGenerated = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2];\n        var attributes = arguments.length <= 3 || arguments[3] === undefined ? {} : arguments[3];\n\n        tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(tagName);\n        var section = new _mobiledocKitModelsMarkupSection['default'](tagName, markers, attributes);\n        if (isGenerated) {\n          section.isGenerated = true;\n        }\n        section.builder = this;\n        return section;\n      }\n    }, {\n      key: 'createListSection',\n      value: function createListSection() {\n        var tagName = arguments.length <= 0 || arguments[0] === undefined ? _mobiledocKitModelsListSection.DEFAULT_TAG_NAME : arguments[0];\n        var items = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n        var attributes = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n        tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(tagName);\n        var section = new _mobiledocKitModelsListSection['default'](tagName, items, attributes);\n        section.builder = this;\n        return section;\n      }\n    }, {\n      key: 'createListItem',\n      value: function createListItem() {\n        var markers = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\n        var tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)('li');\n        var item = new _mobiledocKitModelsListItem['default'](tagName, markers);\n        item.builder = this;\n        return item;\n      }\n    }, {\n      key: 'createImageSection',\n      value: function createImageSection(url) {\n        var section = new _mobiledocKitModelsImage['default']();\n        if (url) {\n          section.src = url;\n        }\n        return section;\n      }\n\n      /**\n       * @param {String} name\n       * @param {Object} [payload={}]\n       * @return {CardSection}\n       */\n    }, {\n      key: 'createCardSection',\n      value: function createCardSection(name) {\n        var payload = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n        var card = new _mobiledocKitModelsCard['default'](name, payload);\n        card.builder = this;\n        return card;\n      }\n\n      /**\n       * @param {String} value\n       * @param {Markup[]} [markups=[]]\n       * @return {Marker}\n       */\n    }, {\n      key: 'createMarker',\n      value: function createMarker(value) {\n        var markups = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n\n        var marker = new _mobiledocKitModelsMarker['default'](value, markups);\n        marker.builder = this;\n        return marker;\n      }\n\n      /**\n       * @param {String} name\n       * @param {String} [value='']\n       * @param {Object} [payload={}]\n       * @param {Markup[]} [markups=[]]\n       * @return {Atom}\n       */\n    }, {\n      key: 'createAtom',\n      value: function createAtom(name) {\n        var value = arguments.length <= 1 || arguments[1] === undefined ? '' : arguments[1];\n        var payload = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n        var markups = arguments.length <= 3 || arguments[3] === undefined ? [] : arguments[3];\n\n        var atom = new _mobiledocKitModelsAtom['default'](name, value, payload, markups);\n        atom.builder = this;\n        return atom;\n      }\n\n      /**\n       * @param {String} tagName\n       * @param {Object} attributes Key-value pairs of attributes for the markup\n       * @return {Markup}\n       */\n    }, {\n      key: 'createMarkup',\n      value: function createMarkup(tagName) {\n        var attributes = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n        tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(tagName);\n\n        var markup = findMarkupInCache(this.markupCache, tagName, attributes);\n        if (!markup) {\n          markup = new _mobiledocKitModelsMarkup['default'](tagName, attributes);\n          markup.builder = this;\n          addMarkupToCache(this.markupCache, markup);\n        }\n\n        return markup;\n      }\n    }]);\n\n    return PostNodeBuilder;\n  })();\n\n  exports['default'] = PostNodeBuilder;\n});","define('mobiledoc-kit/models/post', ['exports', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/linked-list', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/set', 'mobiledoc-kit/utils/cursor/position', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitModelsTypes, _mobiledocKitUtilsLinkedList, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsSet, _mobiledocKitUtilsCursorPosition, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /**\n   * The Post is an in-memory representation of an editor's document.\n   * An editor always has a single post. The post is organized into a list of\n   * sections. Each section may be markerable (contains \"markers\", aka editable\n   * text) or non-markerable (e.g., a card).\n   * When persisting a post, it must first be serialized (loss-lessly) into\n   * mobiledoc using {@link Editor#serialize}.\n   */\n\n  var Post = (function () {\n    /**\n     * @private\n     */\n\n    function Post() {\n      var _this = this;\n\n      _classCallCheck(this, Post);\n\n      this.type = _mobiledocKitModelsTypes.POST_TYPE;\n      this.sections = new _mobiledocKitUtilsLinkedList['default']({\n        adoptItem: function adoptItem(s) {\n          return s.post = s.parent = _this;\n        },\n        freeItem: function freeItem(s) {\n          return s.post = s.parent = null;\n        }\n      });\n    }\n\n    /**\n     * @return {Position} The position at the start of the post (will be a {@link BlankPosition}\n     * if the post is blank)\n     * @public\n     */\n\n    _createClass(Post, [{\n      key: 'headPosition',\n      value: function headPosition() {\n        if (this.isBlank) {\n          return _mobiledocKitUtilsCursorPosition['default'].blankPosition();\n        } else {\n          return this.sections.head.headPosition();\n        }\n      }\n\n      /**\n       * @return {Position} The position at the end of the post (will be a {@link BlankPosition}\n       * if the post is blank)\n       * @public\n       */\n    }, {\n      key: 'tailPosition',\n      value: function tailPosition() {\n        if (this.isBlank) {\n          return _mobiledocKitUtilsCursorPosition['default'].blankPosition();\n        } else {\n          return this.sections.tail.tailPosition();\n        }\n      }\n\n      /**\n       * @return {Range} A range encompassing the entire post\n       * @public\n       */\n    }, {\n      key: 'toRange',\n      value: function toRange() {\n        return this.headPosition().toRange(this.tailPosition());\n      }\n    }, {\n      key: 'markersContainedByRange',\n\n      /**\n       * @param {Range} range\n       * @return {Array} markers that are completely contained by the range\n       */\n      value: function markersContainedByRange(range) {\n        var markers = [];\n\n        this.walkMarkerableSections(range, function (section) {\n          section._markersInRange(range.trimTo(section), function (m, _ref) {\n            var isContained = _ref.isContained;\n            if (isContained) {\n              markers.push(m);\n            }\n          });\n        });\n\n        return markers;\n      }\n    }, {\n      key: 'markupsInRange',\n      value: function markupsInRange(range) {\n        var markups = new _mobiledocKitUtilsSet['default']();\n\n        if (range.isCollapsed) {\n          var pos = range.head;\n          if (pos.isMarkerable) {\n            var back = pos.markerIn(-1);\n            var forward = pos.markerIn(1);\n\n            if (back && forward && back === forward) {\n              back.markups.forEach(function (m) {\n                return markups.add(m);\n              });\n            } else {\n              (back && back.markups || []).forEach(function (m) {\n                if (m.isForwardInclusive()) {\n                  markups.add(m);\n                }\n              });\n              (forward && forward.markups || []).forEach(function (m) {\n                if (m.isBackwardInclusive()) {\n                  markups.add(m);\n                }\n              });\n            }\n          }\n        } else {\n          this.walkMarkerableSections(range, function (section) {\n            (0, _mobiledocKitUtilsArrayUtils.forEach)(section.markupsInRange(range.trimTo(section)), function (m) {\n              return markups.add(m);\n            });\n          });\n        }\n\n        return markups.toArray();\n      }\n    }, {\n      key: 'walkAllLeafSections',\n      value: function walkAllLeafSections(callback) {\n        var range = this.headPosition().toRange(this.tailPosition());\n        return this.walkLeafSections(range, callback);\n      }\n    }, {\n      key: 'walkLeafSections',\n      value: function walkLeafSections(range, callback) {\n        var head = range.head;\n        var tail = range.tail;\n\n        var index = 0;\n        var nextSection = undefined,\n            shouldStop = undefined;\n        var currentSection = head.section;\n\n        while (currentSection) {\n          nextSection = this._nextLeafSection(currentSection);\n          shouldStop = currentSection === tail.section;\n\n          callback(currentSection, index);\n          index++;\n\n          if (shouldStop) {\n            break;\n          } else {\n            currentSection = nextSection;\n          }\n        }\n      }\n    }, {\n      key: 'walkMarkerableSections',\n      value: function walkMarkerableSections(range, callback) {\n        this.walkLeafSections(range, function (section) {\n          if (section.isMarkerable) {\n            callback(section);\n          }\n        });\n      }\n\n      // return the next section that has markers after this one,\n      // possibly skipping non-markerable sections\n    }, {\n      key: '_nextLeafSection',\n      value: function _nextLeafSection(section) {\n        if (!section) {\n          return null;\n        }\n\n        var next = section.next;\n        if (next) {\n          if (next.isLeafSection) {\n            return next;\n          } else if (next.items) {\n            return next.items.head;\n          } else {\n            (0, _mobiledocKitUtilsAssert['default'])('Cannot determine next section from non-leaf-section', false);\n          }\n        } else if (section.isNested) {\n          // if there is no section after this, but this section is a child\n          // (e.g. a ListItem inside a ListSection), check for a markerable\n          // section after its parent\n          return this._nextLeafSection(section.parent);\n        }\n      }\n\n      /**\n       * @param {Range} range\n       * @return {Post} A new post, constrained to {range}\n       */\n    }, {\n      key: 'trimTo',\n      value: function trimTo(range) {\n        var post = this.builder.createPost();\n        var builder = this.builder;\n        var head = range.head;\n        var tail = range.tail;\n\n        var tailNotSelected = tail.offset === 0 && head.section !== tail.section;\n\n        var sectionParent = post,\n            listParent = null;\n        this.walkLeafSections(range, function (section) {\n          var newSection = undefined;\n          if (section.isMarkerable) {\n            if (section.isListItem) {\n              if (listParent) {\n                sectionParent = null;\n              } else {\n                listParent = builder.createListSection(section.parent.tagName);\n                post.sections.append(listParent);\n                sectionParent = null;\n              }\n              newSection = builder.createListItem();\n              listParent.items.append(newSection);\n            } else {\n              listParent = null;\n              sectionParent = post;\n              var tagName = tailNotSelected && tail.section === section ? 'p' : section.tagName;\n              newSection = builder.createMarkupSection(tagName);\n            }\n\n            var currentRange = range.trimTo(section);\n            (0, _mobiledocKitUtilsArrayUtils.forEach)(section.markersFor(currentRange.headSectionOffset, currentRange.tailSectionOffset), function (m) {\n              return newSection.markers.append(m);\n            });\n          } else {\n            newSection = tailNotSelected && tail.section === section ? builder.createMarkupSection('p') : section.clone();\n\n            sectionParent = post;\n          }\n          if (sectionParent) {\n            sectionParent.sections.append(newSection);\n          }\n        });\n        return post;\n      }\n    }, {\n      key: 'isBlank',\n      get: function get() {\n        return this.sections.isEmpty;\n      }\n\n      /**\n       * If the post has no sections, or only has one, blank section, then it does\n       * not have content and this method returns false. Otherwise it is true.\n       * @return {Boolean}\n       * @public\n       */\n    }, {\n      key: 'hasContent',\n      get: function get() {\n        if (this.sections.length > 1 || this.sections.length === 1 && !this.sections.head.isBlank) {\n          return true;\n        } else {\n          return false;\n        }\n      }\n    }]);\n\n    return Post;\n  })();\n\n  exports['default'] = Post;\n});","define('mobiledoc-kit/models/render-node', ['exports', 'mobiledoc-kit/utils/linked-item', 'mobiledoc-kit/utils/linked-list', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsLinkedItem, _mobiledocKitUtilsLinkedList, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  var RenderNode = (function (_LinkedItem) {\n    _inherits(RenderNode, _LinkedItem);\n\n    function RenderNode(postNode, renderTree) {\n      _classCallCheck(this, RenderNode);\n\n      _get(Object.getPrototypeOf(RenderNode.prototype), 'constructor', this).call(this);\n      this.parent = null;\n      this.isDirty = true;\n      this.isRemoved = false;\n      this.postNode = postNode;\n      this._childNodes = null;\n      this._element = null;\n      this._cursorElement = null; // blank render nodes need a cursor element\n      this.renderTree = renderTree;\n\n      // RenderNodes for Markers keep track of their markupElement\n      this.markupElement = null;\n\n      // RenderNodes for Atoms use these properties\n      this.headTextNode = null;\n      this.tailTextNode = null;\n      this.atomNode = null;\n\n      // RenderNodes for cards use this property\n      this.cardNode = null;\n    }\n\n    _createClass(RenderNode, [{\n      key: 'isAttached',\n      value: function isAttached() {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot check if a renderNode is attached without an element.', !!this.element);\n        return (0, _mobiledocKitUtilsDomUtils.containsNode)(this.renderTree.rootElement, this.element);\n      }\n    }, {\n      key: 'scheduleForRemoval',\n      value: function scheduleForRemoval() {\n        this.isRemoved = true;\n        if (this.parent) {\n          this.parent.markDirty();\n        }\n      }\n    }, {\n      key: 'markDirty',\n      value: function markDirty() {\n        this.isDirty = true;\n        if (this.parent) {\n          this.parent.markDirty();\n        }\n      }\n    }, {\n      key: 'markClean',\n      value: function markClean() {\n        this.isDirty = false;\n      }\n    }, {\n      key: 'destroy',\n      value: function destroy() {\n        this.element = null;\n        this.parent = null;\n        this.postNode = null;\n        this.renderTree = null;\n      }\n    }, {\n      key: 'reparsesMutationOfChildNode',\n      value: function reparsesMutationOfChildNode(node) {\n        if (this.postNode.isCardSection) {\n          return !(0, _mobiledocKitUtilsDomUtils.containsNode)(this.cardNode.element, node);\n        } else if (this.postNode.isAtom) {\n          return !(0, _mobiledocKitUtilsDomUtils.containsNode)(this.atomNode.element, node);\n        }\n        return true;\n      }\n    }, {\n      key: 'childNodes',\n      get: function get() {\n        var _this = this;\n\n        if (!this._childNodes) {\n          this._childNodes = new _mobiledocKitUtilsLinkedList['default']({\n            adoptItem: function adoptItem(item) {\n              return item.parent = _this;\n            },\n            freeItem: function freeItem(item) {\n              return item.destroy();\n            }\n          });\n        }\n        return this._childNodes;\n      }\n    }, {\n      key: 'isRendered',\n      get: function get() {\n        return !!this.element;\n      }\n    }, {\n      key: 'element',\n      set: function set(element) {\n        var currentElement = this._element;\n        this._element = element;\n\n        if (currentElement) {\n          this.renderTree.removeElementRenderNode(currentElement);\n        }\n\n        if (element) {\n          this.renderTree.setElementRenderNode(element, this);\n        }\n      },\n      get: function get() {\n        return this._element;\n      }\n    }, {\n      key: 'cursorElement',\n      set: function set(cursorElement) {\n        this._cursorElement = cursorElement;\n      },\n      get: function get() {\n        return this._cursorElement || this.element;\n      }\n    }]);\n\n    return RenderNode;\n  })(_mobiledocKitUtilsLinkedItem['default']);\n\n  exports['default'] = RenderNode;\n});","define('mobiledoc-kit/models/render-tree', ['exports', 'mobiledoc-kit/models/render-node', 'mobiledoc-kit/utils/element-map'], function (exports, _mobiledocKitModelsRenderNode, _mobiledocKitUtilsElementMap) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var RenderTree = (function () {\n    function RenderTree(rootPostNode) {\n      _classCallCheck(this, RenderTree);\n\n      this._rootNode = this.buildRenderNode(rootPostNode);\n      this._elements = new _mobiledocKitUtilsElementMap['default']();\n    }\n\n    /*\n     * @return {RenderNode} The root render node in this tree\n     */\n\n    _createClass(RenderTree, [{\n      key: 'getElementRenderNode',\n\n      /*\n       * @param {DOMNode} element\n       * @return {RenderNode} The renderNode for this element, if any\n       */\n      value: function getElementRenderNode(element) {\n        return this._elements.get(element);\n      }\n    }, {\n      key: 'setElementRenderNode',\n      value: function setElementRenderNode(element, renderNode) {\n        this._elements.set(element, renderNode);\n      }\n    }, {\n      key: 'removeElementRenderNode',\n      value: function removeElementRenderNode(element) {\n        this._elements.remove(element);\n      }\n\n      /**\n       * @param {DOMNode} element\n       * Walk up from the dom element until we find a renderNode element\n       */\n    }, {\n      key: 'findRenderNodeFromElement',\n      value: function findRenderNodeFromElement(element) {\n        var conditionFn = arguments.length <= 1 || arguments[1] === undefined ? function () {\n          return true;\n        } : arguments[1];\n\n        var renderNode = undefined;\n        while (element) {\n          renderNode = this.getElementRenderNode(element);\n          if (renderNode && conditionFn(renderNode)) {\n            return renderNode;\n          }\n\n          // continue loop\n          element = element.parentNode;\n\n          // stop if we are at the root element\n          if (element === this.rootElement) {\n            if (conditionFn(this.rootNode)) {\n              return this.rootNode;\n            } else {\n              return;\n            }\n          }\n        }\n      }\n    }, {\n      key: 'buildRenderNode',\n      value: function buildRenderNode(postNode) {\n        var renderNode = new _mobiledocKitModelsRenderNode['default'](postNode, this);\n        postNode.renderNode = renderNode;\n        return renderNode;\n      }\n    }, {\n      key: 'rootNode',\n      get: function get() {\n        return this._rootNode;\n      }\n\n      /**\n       * @return {Boolean}\n       */\n    }, {\n      key: 'isDirty',\n      get: function get() {\n        return this.rootNode && this.rootNode.isDirty;\n      }\n\n      /*\n       * @return {DOMNode} The root DOM element in this tree\n       */\n    }, {\n      key: 'rootElement',\n      get: function get() {\n        return this.rootNode.element;\n      }\n    }]);\n\n    return RenderTree;\n  })();\n\n  exports['default'] = RenderTree;\n});","define('mobiledoc-kit/models/types', ['exports'], function (exports) {\n  'use strict';\n\n  var MARKUP_SECTION_TYPE = 'markup-section';\n  exports.MARKUP_SECTION_TYPE = MARKUP_SECTION_TYPE;\n  var LIST_SECTION_TYPE = 'list-section';\n  exports.LIST_SECTION_TYPE = LIST_SECTION_TYPE;\n  var MARKUP_TYPE = 'markup';\n  exports.MARKUP_TYPE = MARKUP_TYPE;\n  var MARKER_TYPE = 'marker';\n  exports.MARKER_TYPE = MARKER_TYPE;\n  var POST_TYPE = 'post';\n  exports.POST_TYPE = POST_TYPE;\n  var LIST_ITEM_TYPE = 'list-item';\n  exports.LIST_ITEM_TYPE = LIST_ITEM_TYPE;\n  var CARD_TYPE = 'card-section';\n  exports.CARD_TYPE = CARD_TYPE;\n  var IMAGE_SECTION_TYPE = 'image-section';\n  exports.IMAGE_SECTION_TYPE = IMAGE_SECTION_TYPE;\n  var ATOM_TYPE = 'atom';\n  exports.ATOM_TYPE = ATOM_TYPE;\n});","define('mobiledoc-kit/parsers/dom', ['exports', 'mobiledoc-kit/renderers/editor-dom', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/characters', 'mobiledoc-kit/parsers/section', 'mobiledoc-kit/models/markup'], function (exports, _mobiledocKitRenderersEditorDom, _mobiledocKitModelsTypes, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsCharacters, _mobiledocKitParsersSection, _mobiledocKitModelsMarkup) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  exports.transformHTMLText = transformHTMLText;\n  exports.trimSectionText = trimSectionText;\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var GOOGLE_DOCS_CONTAINER_ID_REGEX = /^docs\\-internal\\-guid/;\n\n  var NO_BREAK_SPACE_REGEX = new RegExp(_mobiledocKitRenderersEditorDom.NO_BREAK_SPACE, 'g');\n  var TAB_CHARACTER_REGEX = new RegExp(_mobiledocKitRenderersEditorDom.TAB_CHARACTER, 'g');\n\n  function transformHTMLText(textContent) {\n    var text = textContent;\n    text = text.replace(NO_BREAK_SPACE_REGEX, ' ');\n    text = text.replace(TAB_CHARACTER_REGEX, _mobiledocKitUtilsCharacters.TAB);\n    return text;\n  }\n\n  function trimSectionText(section) {\n    if (section.isMarkerable && section.markers.length) {\n      var _section$markers = section.markers;\n      var head = _section$markers.head;\n      var tail = _section$markers.tail;\n\n      head.value = head.value.replace(/^\\s+/, '');\n      tail.value = tail.value.replace(/\\s+$/, '');\n    }\n  }\n\n  function isGoogleDocsContainer(element) {\n    return !(0, _mobiledocKitUtilsDomUtils.isTextNode)(element) && !(0, _mobiledocKitUtilsDomUtils.isCommentNode)(element) && (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(element.tagName) === (0, _mobiledocKitUtilsDomUtils.normalizeTagName)('b') && GOOGLE_DOCS_CONTAINER_ID_REGEX.test(element.id);\n  }\n\n  function detectRootElement(element) {\n    var childNodes = element.childNodes || [];\n    var googleDocsContainer = (0, _mobiledocKitUtilsArrayUtils.detect)(childNodes, isGoogleDocsContainer);\n\n    if (googleDocsContainer) {\n      return googleDocsContainer;\n    } else {\n      return element;\n    }\n  }\n\n  var TAG_REMAPPING = {\n    'b': 'strong',\n    'i': 'em'\n  };\n\n  function remapTagName(tagName) {\n    var normalized = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(tagName);\n    var remapped = TAG_REMAPPING[normalized];\n    return remapped || normalized;\n  }\n\n  function trim(str) {\n    return str.replace(/^\\s+/, '').replace(/\\s+$/, '');\n  }\n\n  function walkMarkerableNodes(parent, callback) {\n    var currentNode = parent;\n\n    if ((0, _mobiledocKitUtilsDomUtils.isTextNode)(currentNode) || (0, _mobiledocKitUtilsDomUtils.isElementNode)(currentNode) && currentNode.classList.contains(_mobiledocKitRenderersEditorDom.ATOM_CLASS_NAME)) {\n      callback(currentNode);\n    } else {\n      currentNode = currentNode.firstChild;\n      while (currentNode) {\n        walkMarkerableNodes(currentNode, callback);\n        currentNode = currentNode.nextSibling;\n      }\n    }\n  }\n\n  /**\n   * Parses DOM element -> Post\n   * @private\n   */\n\n  var DOMParser = (function () {\n    function DOMParser(builder) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      _classCallCheck(this, DOMParser);\n\n      this.builder = builder;\n      this.sectionParser = new _mobiledocKitParsersSection['default'](this.builder, options);\n    }\n\n    _createClass(DOMParser, [{\n      key: 'parse',\n      value: function parse(element) {\n        var _this = this;\n\n        var post = this.builder.createPost();\n        var rootElement = detectRootElement(element);\n\n        this._eachChildNode(rootElement, function (child) {\n          var sections = _this.parseSections(child);\n          _this.appendSections(post, sections);\n        });\n\n        // trim leading/trailing whitespace of markerable sections to avoid\n        // unnessary whitespace from indented HTML input\n        (0, _mobiledocKitUtilsArrayUtils.forEach)(post.sections, function (section) {\n          return trimSectionText(section);\n        });\n\n        return post;\n      }\n    }, {\n      key: 'appendSections',\n      value: function appendSections(post, sections) {\n        var _this2 = this;\n\n        (0, _mobiledocKitUtilsArrayUtils.forEach)(sections, function (section) {\n          return _this2.appendSection(post, section);\n        });\n      }\n    }, {\n      key: 'appendSection',\n      value: function appendSection(post, section) {\n        if (section.isBlank || section.isMarkerable && trim(section.text) === \"\" && !(0, _mobiledocKitUtilsArrayUtils.any)(section.markers, function (marker) {\n          return marker.isAtom;\n        })) {\n          return;\n        }\n\n        var lastSection = post.sections.tail;\n        if (lastSection && lastSection._inferredTagName && section._inferredTagName && lastSection.tagName === section.tagName) {\n          lastSection.join(section);\n        } else {\n          post.sections.append(section);\n        }\n      }\n    }, {\n      key: '_eachChildNode',\n      value: function _eachChildNode(element, callback) {\n        var nodes = (0, _mobiledocKitUtilsDomUtils.isTextNode)(element) ? [element] : element.childNodes;\n        (0, _mobiledocKitUtilsArrayUtils.forEach)(nodes, function (node) {\n          return callback(node);\n        });\n      }\n    }, {\n      key: 'parseSections',\n      value: function parseSections(element) {\n        return this.sectionParser.parse(element);\n      }\n\n      // walk up from the textNode until the rootNode, converting each\n      // parentNode into a markup\n    }, {\n      key: 'collectMarkups',\n      value: function collectMarkups(textNode, rootNode) {\n        var markups = [];\n        var currentNode = textNode.parentNode;\n        while (currentNode && currentNode !== rootNode) {\n          var markup = this.markupFromNode(currentNode);\n          if (markup) {\n            markups.push(markup);\n          }\n\n          currentNode = currentNode.parentNode;\n        }\n        return markups;\n      }\n\n      // Turn an element node into a markup\n    }, {\n      key: 'markupFromNode',\n      value: function markupFromNode(node) {\n        if (_mobiledocKitModelsMarkup['default'].isValidElement(node)) {\n          var tagName = remapTagName(node.tagName);\n          var attributes = (0, _mobiledocKitUtilsDomUtils.getAttributes)(node);\n          return this.builder.createMarkup(tagName, attributes);\n        }\n      }\n\n      // FIXME should move to the section parser?\n      // FIXME the `collectMarkups` logic could simplify the section parser?\n    }, {\n      key: 'reparseSection',\n      value: function reparseSection(section, renderTree) {\n        switch (section.type) {\n          case _mobiledocKitModelsTypes.LIST_SECTION_TYPE:\n            return this.reparseListSection(section, renderTree);\n          case _mobiledocKitModelsTypes.LIST_ITEM_TYPE:\n            return this.reparseListItem(section, renderTree);\n          case _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE:\n            return this.reparseMarkupSection(section, renderTree);\n          default:\n            return; // can only parse the above types\n        }\n      }\n    }, {\n      key: 'reparseMarkupSection',\n      value: function reparseMarkupSection(section, renderTree) {\n        return this._reparseSectionContainingMarkers(section, renderTree);\n      }\n    }, {\n      key: 'reparseListItem',\n      value: function reparseListItem(listItem, renderTree) {\n        return this._reparseSectionContainingMarkers(listItem, renderTree);\n      }\n    }, {\n      key: 'reparseListSection',\n      value: function reparseListSection(listSection, renderTree) {\n        var _this3 = this;\n\n        listSection.items.forEach(function (li) {\n          return _this3.reparseListItem(li, renderTree);\n        });\n      }\n    }, {\n      key: '_reparseSectionContainingMarkers',\n      value: function _reparseSectionContainingMarkers(section, renderTree) {\n        var _this4 = this;\n\n        var element = section.renderNode.element;\n        var seenRenderNodes = [];\n        var previousMarker = undefined;\n\n        walkMarkerableNodes(element, function (node) {\n          var marker = undefined;\n          var renderNode = renderTree.getElementRenderNode(node);\n          if (renderNode) {\n            if (renderNode.postNode.isMarker) {\n              var text = transformHTMLText(node.textContent);\n              var markups = _this4.collectMarkups(node, element);\n              if (text.length) {\n                marker = renderNode.postNode;\n                marker.value = text;\n                marker.markups = markups;\n              } else {\n                renderNode.scheduleForRemoval();\n              }\n            } else if (renderNode.postNode.isAtom) {\n              var _renderNode = renderNode;\n              var headTextNode = _renderNode.headTextNode;\n              var tailTextNode = _renderNode.tailTextNode;\n\n              if (headTextNode.textContent !== _mobiledocKitRenderersEditorDom.ZWNJ) {\n                var value = headTextNode.textContent.replace(new RegExp(_mobiledocKitRenderersEditorDom.ZWNJ, 'g'), '');\n                headTextNode.textContent = _mobiledocKitRenderersEditorDom.ZWNJ;\n                if (previousMarker && previousMarker.isMarker) {\n                  previousMarker.value += value;\n                  if (previousMarker.renderNode) {\n                    previousMarker.renderNode.markDirty();\n                  }\n                } else {\n                  var postNode = renderNode.postNode;\n                  var newMarkups = postNode.markups.slice();\n                  var newPreviousMarker = _this4.builder.createMarker(value, newMarkups);\n                  section.markers.insertBefore(newPreviousMarker, postNode);\n\n                  var newPreviousRenderNode = renderTree.buildRenderNode(newPreviousMarker);\n                  newPreviousRenderNode.markDirty();\n                  section.renderNode.markDirty();\n\n                  seenRenderNodes.push(newPreviousRenderNode);\n                  section.renderNode.childNodes.insertBefore(newPreviousRenderNode, renderNode);\n                }\n              }\n              if (tailTextNode.textContent !== _mobiledocKitRenderersEditorDom.ZWNJ) {\n                var value = tailTextNode.textContent.replace(new RegExp(_mobiledocKitRenderersEditorDom.ZWNJ, 'g'), '');\n                tailTextNode.textContent = _mobiledocKitRenderersEditorDom.ZWNJ;\n\n                if (renderNode.postNode.next && renderNode.postNode.next.isMarker) {\n                  var nextMarker = renderNode.postNode.next;\n\n                  if (nextMarker.renderNode) {\n                    var nextValue = nextMarker.renderNode.element.textContent;\n                    nextMarker.renderNode.element.textContent = value + nextValue;\n                  } else {\n                    var nextValue = value + nextMarker.value;\n                    nextMarker.value = nextValue;\n                  }\n                } else {\n                  var postNode = renderNode.postNode;\n                  var newMarkups = postNode.markups.slice();\n                  var newMarker = _this4.builder.createMarker(value, newMarkups);\n\n                  section.markers.insertAfter(newMarker, postNode);\n\n                  var newRenderNode = renderTree.buildRenderNode(newMarker);\n                  seenRenderNodes.push(newRenderNode);\n\n                  newRenderNode.markDirty();\n                  section.renderNode.markDirty();\n\n                  section.renderNode.childNodes.insertAfter(newRenderNode, renderNode);\n                }\n              }\n              if (renderNode) {\n                marker = renderNode.postNode;\n              }\n            }\n          } else if ((0, _mobiledocKitUtilsDomUtils.isTextNode)(node)) {\n            var text = transformHTMLText(node.textContent);\n            var markups = _this4.collectMarkups(node, element);\n            marker = _this4.builder.createMarker(text, markups);\n\n            renderNode = renderTree.buildRenderNode(marker);\n            renderNode.element = node;\n            renderNode.markClean();\n            section.renderNode.markDirty();\n\n            var previousRenderNode = previousMarker && previousMarker.renderNode;\n            section.markers.insertAfter(marker, previousMarker);\n            section.renderNode.childNodes.insertAfter(renderNode, previousRenderNode);\n          }\n\n          if (renderNode) {\n            seenRenderNodes.push(renderNode);\n          }\n          previousMarker = marker;\n        });\n\n        var renderNode = section.renderNode.childNodes.head;\n        while (renderNode) {\n          if (seenRenderNodes.indexOf(renderNode) === -1) {\n            renderNode.scheduleForRemoval();\n          }\n          renderNode = renderNode.next;\n        }\n      }\n    }]);\n\n    return DOMParser;\n  })();\n\n  exports['default'] = DOMParser;\n});","define('mobiledoc-kit/parsers/html', ['exports', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/parsers/dom'], function (exports, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsAssert, _mobiledocKitParsersDom) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var HTMLParser = (function () {\n    function HTMLParser(builder) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      _classCallCheck(this, HTMLParser);\n\n      (0, _mobiledocKitUtilsAssert['default'])('Must pass builder to HTMLParser', builder);\n      this.builder = builder;\n      this.options = options;\n    }\n\n    /**\n     * @param {String} html to parse\n     * @return {Post} A post abstract\n     */\n\n    _createClass(HTMLParser, [{\n      key: 'parse',\n      value: function parse(html) {\n        var dom = (0, _mobiledocKitUtilsDomUtils.parseHTML)(html);\n        var parser = new _mobiledocKitParsersDom['default'](this.builder, this.options);\n        return parser.parse(dom);\n      }\n    }]);\n\n    return HTMLParser;\n  })();\n\n  exports['default'] = HTMLParser;\n});","define('mobiledoc-kit/parsers/mobiledoc/0-2', ['exports', 'mobiledoc-kit/renderers/mobiledoc/0-2', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitRenderersMobiledoc02, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /*\n   * Parses from mobiledoc -> post\n   */\n\n  var MobiledocParser = (function () {\n    function MobiledocParser(builder) {\n      _classCallCheck(this, MobiledocParser);\n\n      this.builder = builder;\n    }\n\n    /**\n     * @param {Mobiledoc}\n     * @return {Post}\n     */\n\n    _createClass(MobiledocParser, [{\n      key: 'parse',\n      value: function parse(_ref) {\n        var sectionData = _ref.sections;\n\n        try {\n          var markerTypes = sectionData[0];\n          var sections = sectionData[1];\n\n          var post = this.builder.createPost();\n\n          this.markups = [];\n          this.markerTypes = this.parseMarkerTypes(markerTypes);\n          this.parseSections(sections, post);\n\n          return post;\n        } catch (e) {\n          (0, _mobiledocKitUtilsAssert['default'])('Unable to parse mobiledoc: ' + e.message, false);\n        }\n      }\n    }, {\n      key: 'parseMarkerTypes',\n      value: function parseMarkerTypes(markerTypes) {\n        var _this = this;\n\n        return markerTypes.map(function (markerType) {\n          return _this.parseMarkerType(markerType);\n        });\n      }\n    }, {\n      key: 'parseMarkerType',\n      value: function parseMarkerType(_ref2) {\n        var _ref22 = _slicedToArray(_ref2, 2);\n\n        var tagName = _ref22[0];\n        var attributesArray = _ref22[1];\n\n        var attributesObject = (0, _mobiledocKitUtilsArrayUtils.kvArrayToObject)(attributesArray || []);\n        return this.builder.createMarkup(tagName, attributesObject);\n      }\n    }, {\n      key: 'parseSections',\n      value: function parseSections(sections, post) {\n        var _this2 = this;\n\n        sections.forEach(function (section) {\n          return _this2.parseSection(section, post);\n        });\n      }\n    }, {\n      key: 'parseSection',\n      value: function parseSection(section, post) {\n        var _section = _slicedToArray(section, 1);\n\n        var type = _section[0];\n\n        switch (type) {\n          case _mobiledocKitRenderersMobiledoc02.MOBILEDOC_MARKUP_SECTION_TYPE:\n            this.parseMarkupSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc02.MOBILEDOC_IMAGE_SECTION_TYPE:\n            this.parseImageSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc02.MOBILEDOC_CARD_SECTION_TYPE:\n            this.parseCardSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc02.MOBILEDOC_LIST_SECTION_TYPE:\n            this.parseListSection(section, post);\n            break;\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Unexpected section type ' + type, false);\n        }\n      }\n    }, {\n      key: 'parseCardSection',\n      value: function parseCardSection(_ref3, post) {\n        var _ref32 = _slicedToArray(_ref3, 3);\n\n        var name = _ref32[1];\n        var payload = _ref32[2];\n\n        var section = this.builder.createCardSection(name, payload);\n        post.sections.append(section);\n      }\n    }, {\n      key: 'parseImageSection',\n      value: function parseImageSection(_ref4, post) {\n        var _ref42 = _slicedToArray(_ref4, 2);\n\n        var src = _ref42[1];\n\n        var section = this.builder.createImageSection(src);\n        post.sections.append(section);\n      }\n    }, {\n      key: 'parseMarkupSection',\n      value: function parseMarkupSection(_ref5, post) {\n        var _ref52 = _slicedToArray(_ref5, 3);\n\n        var tagName = _ref52[1];\n        var markers = _ref52[2];\n\n        var section = this.builder.createMarkupSection(tagName.toLowerCase() === 'pull-quote' ? 'aside' : tagName);\n        post.sections.append(section);\n        this.parseMarkers(markers, section);\n        // Strip blank markers after they have been created. This ensures any\n        // markup they include has been correctly populated.\n        (0, _mobiledocKitUtilsArrayUtils.filter)(section.markers, function (m) {\n          return m.isBlank;\n        }).forEach(function (m) {\n          section.markers.remove(m);\n        });\n      }\n    }, {\n      key: 'parseListSection',\n      value: function parseListSection(_ref6, post) {\n        var _ref62 = _slicedToArray(_ref6, 3);\n\n        var tagName = _ref62[1];\n        var items = _ref62[2];\n\n        var section = this.builder.createListSection(tagName);\n        post.sections.append(section);\n        this.parseListItems(items, section);\n      }\n    }, {\n      key: 'parseListItems',\n      value: function parseListItems(items, section) {\n        var _this3 = this;\n\n        items.forEach(function (i) {\n          return _this3.parseListItem(i, section);\n        });\n      }\n    }, {\n      key: 'parseListItem',\n      value: function parseListItem(markers, section) {\n        var item = this.builder.createListItem();\n        this.parseMarkers(markers, item);\n        section.items.append(item);\n      }\n    }, {\n      key: 'parseMarkers',\n      value: function parseMarkers(markers, parent) {\n        var _this4 = this;\n\n        markers.forEach(function (m) {\n          return _this4.parseMarker(m, parent);\n        });\n      }\n    }, {\n      key: 'parseMarker',\n      value: function parseMarker(_ref7, parent) {\n        var _this5 = this;\n\n        var _ref72 = _slicedToArray(_ref7, 3);\n\n        var markerTypeIndexes = _ref72[0];\n        var closeCount = _ref72[1];\n        var value = _ref72[2];\n\n        markerTypeIndexes.forEach(function (index) {\n          _this5.markups.push(_this5.markerTypes[index]);\n        });\n        var marker = this.builder.createMarker(value, this.markups.slice());\n        parent.markers.append(marker);\n        this.markups = this.markups.slice(0, this.markups.length - closeCount);\n      }\n    }]);\n\n    return MobiledocParser;\n  })();\n\n  exports['default'] = MobiledocParser;\n});","define('mobiledoc-kit/parsers/mobiledoc/0-3-1', ['exports', 'mobiledoc-kit/renderers/mobiledoc/0-3-1', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitRenderersMobiledoc031, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /*\n   * Parses from mobiledoc -> post\n   */\n\n  var MobiledocParser = (function () {\n    function MobiledocParser(builder) {\n      _classCallCheck(this, MobiledocParser);\n\n      this.builder = builder;\n    }\n\n    /**\n     * @param {Mobiledoc}\n     * @return {Post}\n     */\n\n    _createClass(MobiledocParser, [{\n      key: 'parse',\n      value: function parse(_ref) {\n        var sections = _ref.sections;\n        var markerTypes = _ref.markups;\n        var cardTypes = _ref.cards;\n        var atomTypes = _ref.atoms;\n\n        try {\n          var post = this.builder.createPost();\n\n          this.markups = [];\n          this.markerTypes = this.parseMarkerTypes(markerTypes);\n          this.cardTypes = this.parseCardTypes(cardTypes);\n          this.atomTypes = this.parseAtomTypes(atomTypes);\n          this.parseSections(sections, post);\n\n          return post;\n        } catch (e) {\n          (0, _mobiledocKitUtilsAssert['default'])('Unable to parse mobiledoc: ' + e.message, false);\n        }\n      }\n    }, {\n      key: 'parseMarkerTypes',\n      value: function parseMarkerTypes(markerTypes) {\n        var _this = this;\n\n        return markerTypes.map(function (markerType) {\n          return _this.parseMarkerType(markerType);\n        });\n      }\n    }, {\n      key: 'parseMarkerType',\n      value: function parseMarkerType(_ref2) {\n        var _ref22 = _slicedToArray(_ref2, 2);\n\n        var tagName = _ref22[0];\n        var attributesArray = _ref22[1];\n\n        var attributesObject = (0, _mobiledocKitUtilsArrayUtils.kvArrayToObject)(attributesArray || []);\n        return this.builder.createMarkup(tagName, attributesObject);\n      }\n    }, {\n      key: 'parseCardTypes',\n      value: function parseCardTypes(cardTypes) {\n        var _this2 = this;\n\n        return cardTypes.map(function (cardType) {\n          return _this2.parseCardType(cardType);\n        });\n      }\n    }, {\n      key: 'parseCardType',\n      value: function parseCardType(_ref3) {\n        var _ref32 = _slicedToArray(_ref3, 2);\n\n        var cardName = _ref32[0];\n        var cardPayload = _ref32[1];\n\n        return [cardName, cardPayload];\n      }\n    }, {\n      key: 'parseAtomTypes',\n      value: function parseAtomTypes(atomTypes) {\n        var _this3 = this;\n\n        return atomTypes.map(function (atomType) {\n          return _this3.parseAtomType(atomType);\n        });\n      }\n    }, {\n      key: 'parseAtomType',\n      value: function parseAtomType(_ref4) {\n        var _ref42 = _slicedToArray(_ref4, 3);\n\n        var atomName = _ref42[0];\n        var atomValue = _ref42[1];\n        var atomPayload = _ref42[2];\n\n        return [atomName, atomValue, atomPayload];\n      }\n    }, {\n      key: 'parseSections',\n      value: function parseSections(sections, post) {\n        var _this4 = this;\n\n        sections.forEach(function (section) {\n          return _this4.parseSection(section, post);\n        });\n      }\n    }, {\n      key: 'parseSection',\n      value: function parseSection(section, post) {\n        var _section = _slicedToArray(section, 1);\n\n        var type = _section[0];\n\n        switch (type) {\n          case _mobiledocKitRenderersMobiledoc031.MOBILEDOC_MARKUP_SECTION_TYPE:\n            this.parseMarkupSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc031.MOBILEDOC_IMAGE_SECTION_TYPE:\n            this.parseImageSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc031.MOBILEDOC_CARD_SECTION_TYPE:\n            this.parseCardSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc031.MOBILEDOC_LIST_SECTION_TYPE:\n            this.parseListSection(section, post);\n            break;\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Unexpected section type ${type}', false);\n        }\n      }\n    }, {\n      key: 'getAtomTypeFromIndex',\n      value: function getAtomTypeFromIndex(index) {\n        var atomType = this.atomTypes[index];\n        (0, _mobiledocKitUtilsAssert['default'])('No atom definition found at index ' + index, !!atomType);\n        return atomType;\n      }\n    }, {\n      key: 'getCardTypeFromIndex',\n      value: function getCardTypeFromIndex(index) {\n        var cardType = this.cardTypes[index];\n        (0, _mobiledocKitUtilsAssert['default'])('No card definition found at index ' + index, !!cardType);\n        return cardType;\n      }\n    }, {\n      key: 'parseCardSection',\n      value: function parseCardSection(_ref5, post) {\n        var _ref52 = _slicedToArray(_ref5, 2);\n\n        var cardIndex = _ref52[1];\n\n        var _getCardTypeFromIndex = this.getCardTypeFromIndex(cardIndex);\n\n        var _getCardTypeFromIndex2 = _slicedToArray(_getCardTypeFromIndex, 2);\n\n        var name = _getCardTypeFromIndex2[0];\n        var payload = _getCardTypeFromIndex2[1];\n\n        var section = this.builder.createCardSection(name, payload);\n        post.sections.append(section);\n      }\n    }, {\n      key: 'parseImageSection',\n      value: function parseImageSection(_ref6, post) {\n        var _ref62 = _slicedToArray(_ref6, 2);\n\n        var src = _ref62[1];\n\n        var section = this.builder.createImageSection(src);\n        post.sections.append(section);\n      }\n    }, {\n      key: 'parseMarkupSection',\n      value: function parseMarkupSection(_ref7, post) {\n        var _ref72 = _slicedToArray(_ref7, 3);\n\n        var tagName = _ref72[1];\n        var markers = _ref72[2];\n\n        var section = this.builder.createMarkupSection(tagName);\n        post.sections.append(section);\n        this.parseMarkers(markers, section);\n        // Strip blank markers after they have been created. This ensures any\n        // markup they include has been correctly populated.\n        (0, _mobiledocKitUtilsArrayUtils.filter)(section.markers, function (m) {\n          return m.isBlank;\n        }).forEach(function (m) {\n          section.markers.remove(m);\n        });\n      }\n    }, {\n      key: 'parseListSection',\n      value: function parseListSection(_ref8, post) {\n        var _ref82 = _slicedToArray(_ref8, 3);\n\n        var tagName = _ref82[1];\n        var items = _ref82[2];\n\n        var section = this.builder.createListSection(tagName);\n        post.sections.append(section);\n        this.parseListItems(items, section);\n      }\n    }, {\n      key: 'parseListItems',\n      value: function parseListItems(items, section) {\n        var _this5 = this;\n\n        items.forEach(function (i) {\n          return _this5.parseListItem(i, section);\n        });\n      }\n    }, {\n      key: 'parseListItem',\n      value: function parseListItem(markers, section) {\n        var item = this.builder.createListItem();\n        this.parseMarkers(markers, item);\n        section.items.append(item);\n      }\n    }, {\n      key: 'parseMarkers',\n      value: function parseMarkers(markers, parent) {\n        var _this6 = this;\n\n        markers.forEach(function (m) {\n          return _this6.parseMarker(m, parent);\n        });\n      }\n    }, {\n      key: 'parseMarker',\n      value: function parseMarker(_ref9, parent) {\n        var _this7 = this;\n\n        var _ref92 = _slicedToArray(_ref9, 4);\n\n        var type = _ref92[0];\n        var markerTypeIndexes = _ref92[1];\n        var closeCount = _ref92[2];\n        var value = _ref92[3];\n\n        markerTypeIndexes.forEach(function (index) {\n          _this7.markups.push(_this7.markerTypes[index]);\n        });\n\n        var marker = this.buildMarkerType(type, value);\n        parent.markers.append(marker);\n\n        this.markups = this.markups.slice(0, this.markups.length - closeCount);\n      }\n    }, {\n      key: 'buildMarkerType',\n      value: function buildMarkerType(type, value) {\n        switch (type) {\n          case _mobiledocKitRenderersMobiledoc031.MOBILEDOC_MARKUP_MARKER_TYPE:\n            return this.builder.createMarker(value, this.markups.slice());\n          case _mobiledocKitRenderersMobiledoc031.MOBILEDOC_ATOM_MARKER_TYPE:\n            {\n              var _getAtomTypeFromIndex = this.getAtomTypeFromIndex(value);\n\n              var _getAtomTypeFromIndex2 = _slicedToArray(_getAtomTypeFromIndex, 3);\n\n              var atomName = _getAtomTypeFromIndex2[0];\n              var atomValue = _getAtomTypeFromIndex2[1];\n              var atomPayload = _getAtomTypeFromIndex2[2];\n\n              return this.builder.createAtom(atomName, atomValue, atomPayload, this.markups.slice());\n            }\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Unexpected marker type ' + type, false);\n        }\n      }\n    }]);\n\n    return MobiledocParser;\n  })();\n\n  exports['default'] = MobiledocParser;\n});","define('mobiledoc-kit/parsers/mobiledoc/0-3-2', ['exports', 'mobiledoc-kit/renderers/mobiledoc/0-3-2', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/object-utils'], function (exports, _mobiledocKitRenderersMobiledoc032, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsAssert, _mobiledocKitUtilsObjectUtils) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /*\n   * Parses from mobiledoc -> post\n   */\n\n  var MobiledocParser = (function () {\n    function MobiledocParser(builder) {\n      _classCallCheck(this, MobiledocParser);\n\n      this.builder = builder;\n    }\n\n    /**\n     * @param {Mobiledoc}\n     * @return {Post}\n     */\n\n    _createClass(MobiledocParser, [{\n      key: 'parse',\n      value: function parse(_ref) {\n        var sections = _ref.sections;\n        var markerTypes = _ref.markups;\n        var cardTypes = _ref.cards;\n        var atomTypes = _ref.atoms;\n\n        try {\n          var post = this.builder.createPost();\n\n          this.markups = [];\n          this.markerTypes = this.parseMarkerTypes(markerTypes);\n          this.cardTypes = this.parseCardTypes(cardTypes);\n          this.atomTypes = this.parseAtomTypes(atomTypes);\n          this.parseSections(sections, post);\n\n          return post;\n        } catch (e) {\n          (0, _mobiledocKitUtilsAssert['default'])('Unable to parse mobiledoc: ' + e.message, false);\n        }\n      }\n    }, {\n      key: 'parseMarkerTypes',\n      value: function parseMarkerTypes(markerTypes) {\n        var _this = this;\n\n        return markerTypes.map(function (markerType) {\n          return _this.parseMarkerType(markerType);\n        });\n      }\n    }, {\n      key: 'parseMarkerType',\n      value: function parseMarkerType(_ref2) {\n        var _ref22 = _slicedToArray(_ref2, 2);\n\n        var tagName = _ref22[0];\n        var attributesArray = _ref22[1];\n\n        var attributesObject = (0, _mobiledocKitUtilsArrayUtils.kvArrayToObject)(attributesArray || []);\n        return this.builder.createMarkup(tagName, attributesObject);\n      }\n    }, {\n      key: 'parseCardTypes',\n      value: function parseCardTypes(cardTypes) {\n        var _this2 = this;\n\n        return cardTypes.map(function (cardType) {\n          return _this2.parseCardType(cardType);\n        });\n      }\n    }, {\n      key: 'parseCardType',\n      value: function parseCardType(_ref3) {\n        var _ref32 = _slicedToArray(_ref3, 2);\n\n        var cardName = _ref32[0];\n        var cardPayload = _ref32[1];\n\n        return [cardName, cardPayload];\n      }\n    }, {\n      key: 'parseAtomTypes',\n      value: function parseAtomTypes(atomTypes) {\n        var _this3 = this;\n\n        return atomTypes.map(function (atomType) {\n          return _this3.parseAtomType(atomType);\n        });\n      }\n    }, {\n      key: 'parseAtomType',\n      value: function parseAtomType(_ref4) {\n        var _ref42 = _slicedToArray(_ref4, 3);\n\n        var atomName = _ref42[0];\n        var atomValue = _ref42[1];\n        var atomPayload = _ref42[2];\n\n        return [atomName, atomValue, atomPayload];\n      }\n    }, {\n      key: 'parseSections',\n      value: function parseSections(sections, post) {\n        var _this4 = this;\n\n        sections.forEach(function (section) {\n          return _this4.parseSection(section, post);\n        });\n      }\n    }, {\n      key: 'parseSection',\n      value: function parseSection(section, post) {\n        var _section = _slicedToArray(section, 1);\n\n        var type = _section[0];\n\n        switch (type) {\n          case _mobiledocKitRenderersMobiledoc032.MOBILEDOC_MARKUP_SECTION_TYPE:\n            this.parseMarkupSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc032.MOBILEDOC_IMAGE_SECTION_TYPE:\n            this.parseImageSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc032.MOBILEDOC_CARD_SECTION_TYPE:\n            this.parseCardSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc032.MOBILEDOC_LIST_SECTION_TYPE:\n            this.parseListSection(section, post);\n            break;\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Unexpected section type ${type}', false);\n        }\n      }\n    }, {\n      key: 'getAtomTypeFromIndex',\n      value: function getAtomTypeFromIndex(index) {\n        var atomType = this.atomTypes[index];\n        (0, _mobiledocKitUtilsAssert['default'])('No atom definition found at index ' + index, !!atomType);\n        return atomType;\n      }\n    }, {\n      key: 'getCardTypeFromIndex',\n      value: function getCardTypeFromIndex(index) {\n        var cardType = this.cardTypes[index];\n        (0, _mobiledocKitUtilsAssert['default'])('No card definition found at index ' + index, !!cardType);\n        return cardType;\n      }\n    }, {\n      key: 'parseCardSection',\n      value: function parseCardSection(_ref5, post) {\n        var _ref52 = _slicedToArray(_ref5, 2);\n\n        var cardIndex = _ref52[1];\n\n        var _getCardTypeFromIndex = this.getCardTypeFromIndex(cardIndex);\n\n        var _getCardTypeFromIndex2 = _slicedToArray(_getCardTypeFromIndex, 2);\n\n        var name = _getCardTypeFromIndex2[0];\n        var payload = _getCardTypeFromIndex2[1];\n\n        var section = this.builder.createCardSection(name, payload);\n        post.sections.append(section);\n      }\n    }, {\n      key: 'parseImageSection',\n      value: function parseImageSection(_ref6, post) {\n        var _ref62 = _slicedToArray(_ref6, 2);\n\n        var src = _ref62[1];\n\n        var section = this.builder.createImageSection(src);\n        post.sections.append(section);\n      }\n    }, {\n      key: 'parseMarkupSection',\n      value: function parseMarkupSection(_ref7, post) {\n        var _ref72 = _slicedToArray(_ref7, 4);\n\n        var tagName = _ref72[1];\n        var markers = _ref72[2];\n        var attributesArray = _ref72[3];\n\n        var section = this.builder.createMarkupSection(tagName);\n        post.sections.append(section);\n        if (attributesArray) {\n          (0, _mobiledocKitUtilsObjectUtils.entries)((0, _mobiledocKitUtilsArrayUtils.kvArrayToObject)(attributesArray)).forEach(function (_ref8) {\n            var _ref82 = _slicedToArray(_ref8, 2);\n\n            var key = _ref82[0];\n            var value = _ref82[1];\n\n            section.setAttribute(key, value);\n          });\n        }\n        this.parseMarkers(markers, section);\n        // Strip blank markers after they have been created. This ensures any\n        // markup they include has been correctly populated.\n        (0, _mobiledocKitUtilsArrayUtils.filter)(section.markers, function (m) {\n          return m.isBlank;\n        }).forEach(function (m) {\n          section.markers.remove(m);\n        });\n      }\n    }, {\n      key: 'parseListSection',\n      value: function parseListSection(_ref9, post) {\n        var _ref92 = _slicedToArray(_ref9, 4);\n\n        var tagName = _ref92[1];\n        var items = _ref92[2];\n        var attributesArray = _ref92[3];\n\n        var section = this.builder.createListSection(tagName);\n        post.sections.append(section);\n        if (attributesArray) {\n          (0, _mobiledocKitUtilsObjectUtils.entries)((0, _mobiledocKitUtilsArrayUtils.kvArrayToObject)(attributesArray)).forEach(function (_ref10) {\n            var _ref102 = _slicedToArray(_ref10, 2);\n\n            var key = _ref102[0];\n            var value = _ref102[1];\n\n            section.setAttribute(key, value);\n          });\n        }\n        this.parseListItems(items, section);\n      }\n    }, {\n      key: 'parseListItems',\n      value: function parseListItems(items, section) {\n        var _this5 = this;\n\n        items.forEach(function (i) {\n          return _this5.parseListItem(i, section);\n        });\n      }\n    }, {\n      key: 'parseListItem',\n      value: function parseListItem(markers, section) {\n        var item = this.builder.createListItem();\n        this.parseMarkers(markers, item);\n        section.items.append(item);\n      }\n    }, {\n      key: 'parseMarkers',\n      value: function parseMarkers(markers, parent) {\n        var _this6 = this;\n\n        markers.forEach(function (m) {\n          return _this6.parseMarker(m, parent);\n        });\n      }\n    }, {\n      key: 'parseMarker',\n      value: function parseMarker(_ref11, parent) {\n        var _this7 = this;\n\n        var _ref112 = _slicedToArray(_ref11, 4);\n\n        var type = _ref112[0];\n        var markerTypeIndexes = _ref112[1];\n        var closeCount = _ref112[2];\n        var value = _ref112[3];\n\n        markerTypeIndexes.forEach(function (index) {\n          _this7.markups.push(_this7.markerTypes[index]);\n        });\n\n        var marker = this.buildMarkerType(type, value);\n        parent.markers.append(marker);\n\n        this.markups = this.markups.slice(0, this.markups.length - closeCount);\n      }\n    }, {\n      key: 'buildMarkerType',\n      value: function buildMarkerType(type, value) {\n        switch (type) {\n          case _mobiledocKitRenderersMobiledoc032.MOBILEDOC_MARKUP_MARKER_TYPE:\n            return this.builder.createMarker(value, this.markups.slice());\n          case _mobiledocKitRenderersMobiledoc032.MOBILEDOC_ATOM_MARKER_TYPE:\n            {\n              var _getAtomTypeFromIndex = this.getAtomTypeFromIndex(value);\n\n              var _getAtomTypeFromIndex2 = _slicedToArray(_getAtomTypeFromIndex, 3);\n\n              var atomName = _getAtomTypeFromIndex2[0];\n              var atomValue = _getAtomTypeFromIndex2[1];\n              var atomPayload = _getAtomTypeFromIndex2[2];\n\n              return this.builder.createAtom(atomName, atomValue, atomPayload, this.markups.slice());\n            }\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Unexpected marker type ' + type, false);\n        }\n      }\n    }]);\n\n    return MobiledocParser;\n  })();\n\n  exports['default'] = MobiledocParser;\n});","define('mobiledoc-kit/parsers/mobiledoc/0-3', ['exports', 'mobiledoc-kit/renderers/mobiledoc/0-3', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitRenderersMobiledoc03, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /*\n   * Parses from mobiledoc -> post\n   */\n\n  var MobiledocParser = (function () {\n    function MobiledocParser(builder) {\n      _classCallCheck(this, MobiledocParser);\n\n      this.builder = builder;\n    }\n\n    /**\n     * @param {Mobiledoc}\n     * @return {Post}\n     */\n\n    _createClass(MobiledocParser, [{\n      key: 'parse',\n      value: function parse(_ref) {\n        var sections = _ref.sections;\n        var markerTypes = _ref.markups;\n        var cardTypes = _ref.cards;\n        var atomTypes = _ref.atoms;\n\n        try {\n          var post = this.builder.createPost();\n\n          this.markups = [];\n          this.markerTypes = this.parseMarkerTypes(markerTypes);\n          this.cardTypes = this.parseCardTypes(cardTypes);\n          this.atomTypes = this.parseAtomTypes(atomTypes);\n          this.parseSections(sections, post);\n\n          return post;\n        } catch (e) {\n          (0, _mobiledocKitUtilsAssert['default'])('Unable to parse mobiledoc: ' + e.message, false);\n        }\n      }\n    }, {\n      key: 'parseMarkerTypes',\n      value: function parseMarkerTypes(markerTypes) {\n        var _this = this;\n\n        return markerTypes.map(function (markerType) {\n          return _this.parseMarkerType(markerType);\n        });\n      }\n    }, {\n      key: 'parseMarkerType',\n      value: function parseMarkerType(_ref2) {\n        var _ref22 = _slicedToArray(_ref2, 2);\n\n        var tagName = _ref22[0];\n        var attributesArray = _ref22[1];\n\n        var attributesObject = (0, _mobiledocKitUtilsArrayUtils.kvArrayToObject)(attributesArray || []);\n        return this.builder.createMarkup(tagName, attributesObject);\n      }\n    }, {\n      key: 'parseCardTypes',\n      value: function parseCardTypes(cardTypes) {\n        var _this2 = this;\n\n        return cardTypes.map(function (cardType) {\n          return _this2.parseCardType(cardType);\n        });\n      }\n    }, {\n      key: 'parseCardType',\n      value: function parseCardType(_ref3) {\n        var _ref32 = _slicedToArray(_ref3, 2);\n\n        var cardName = _ref32[0];\n        var cardPayload = _ref32[1];\n\n        return [cardName, cardPayload];\n      }\n    }, {\n      key: 'parseAtomTypes',\n      value: function parseAtomTypes(atomTypes) {\n        var _this3 = this;\n\n        return atomTypes.map(function (atomType) {\n          return _this3.parseAtomType(atomType);\n        });\n      }\n    }, {\n      key: 'parseAtomType',\n      value: function parseAtomType(_ref4) {\n        var _ref42 = _slicedToArray(_ref4, 3);\n\n        var atomName = _ref42[0];\n        var atomValue = _ref42[1];\n        var atomPayload = _ref42[2];\n\n        return [atomName, atomValue, atomPayload];\n      }\n    }, {\n      key: 'parseSections',\n      value: function parseSections(sections, post) {\n        var _this4 = this;\n\n        sections.forEach(function (section) {\n          return _this4.parseSection(section, post);\n        });\n      }\n    }, {\n      key: 'parseSection',\n      value: function parseSection(section, post) {\n        var _section = _slicedToArray(section, 1);\n\n        var type = _section[0];\n\n        switch (type) {\n          case _mobiledocKitRenderersMobiledoc03.MOBILEDOC_MARKUP_SECTION_TYPE:\n            this.parseMarkupSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc03.MOBILEDOC_IMAGE_SECTION_TYPE:\n            this.parseImageSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc03.MOBILEDOC_CARD_SECTION_TYPE:\n            this.parseCardSection(section, post);\n            break;\n          case _mobiledocKitRenderersMobiledoc03.MOBILEDOC_LIST_SECTION_TYPE:\n            this.parseListSection(section, post);\n            break;\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Unexpected section type ${type}', false);\n        }\n      }\n    }, {\n      key: 'getAtomTypeFromIndex',\n      value: function getAtomTypeFromIndex(index) {\n        var atomType = this.atomTypes[index];\n        (0, _mobiledocKitUtilsAssert['default'])('No atom definition found at index ' + index, !!atomType);\n        return atomType;\n      }\n    }, {\n      key: 'getCardTypeFromIndex',\n      value: function getCardTypeFromIndex(index) {\n        var cardType = this.cardTypes[index];\n        (0, _mobiledocKitUtilsAssert['default'])('No card definition found at index ' + index, !!cardType);\n        return cardType;\n      }\n    }, {\n      key: 'parseCardSection',\n      value: function parseCardSection(_ref5, post) {\n        var _ref52 = _slicedToArray(_ref5, 2);\n\n        var cardIndex = _ref52[1];\n\n        var _getCardTypeFromIndex = this.getCardTypeFromIndex(cardIndex);\n\n        var _getCardTypeFromIndex2 = _slicedToArray(_getCardTypeFromIndex, 2);\n\n        var name = _getCardTypeFromIndex2[0];\n        var payload = _getCardTypeFromIndex2[1];\n\n        var section = this.builder.createCardSection(name, payload);\n        post.sections.append(section);\n      }\n    }, {\n      key: 'parseImageSection',\n      value: function parseImageSection(_ref6, post) {\n        var _ref62 = _slicedToArray(_ref6, 2);\n\n        var src = _ref62[1];\n\n        var section = this.builder.createImageSection(src);\n        post.sections.append(section);\n      }\n    }, {\n      key: 'parseMarkupSection',\n      value: function parseMarkupSection(_ref7, post) {\n        var _ref72 = _slicedToArray(_ref7, 3);\n\n        var tagName = _ref72[1];\n        var markers = _ref72[2];\n\n        var section = this.builder.createMarkupSection(tagName.toLowerCase() === 'pull-quote' ? 'aside' : tagName);\n        post.sections.append(section);\n        this.parseMarkers(markers, section);\n        // Strip blank markers after they have been created. This ensures any\n        // markup they include has been correctly populated.\n        (0, _mobiledocKitUtilsArrayUtils.filter)(section.markers, function (m) {\n          return m.isBlank;\n        }).forEach(function (m) {\n          section.markers.remove(m);\n        });\n      }\n    }, {\n      key: 'parseListSection',\n      value: function parseListSection(_ref8, post) {\n        var _ref82 = _slicedToArray(_ref8, 3);\n\n        var tagName = _ref82[1];\n        var items = _ref82[2];\n\n        var section = this.builder.createListSection(tagName);\n        post.sections.append(section);\n        this.parseListItems(items, section);\n      }\n    }, {\n      key: 'parseListItems',\n      value: function parseListItems(items, section) {\n        var _this5 = this;\n\n        items.forEach(function (i) {\n          return _this5.parseListItem(i, section);\n        });\n      }\n    }, {\n      key: 'parseListItem',\n      value: function parseListItem(markers, section) {\n        var item = this.builder.createListItem();\n        this.parseMarkers(markers, item);\n        section.items.append(item);\n      }\n    }, {\n      key: 'parseMarkers',\n      value: function parseMarkers(markers, parent) {\n        var _this6 = this;\n\n        markers.forEach(function (m) {\n          return _this6.parseMarker(m, parent);\n        });\n      }\n    }, {\n      key: 'parseMarker',\n      value: function parseMarker(_ref9, parent) {\n        var _this7 = this;\n\n        var _ref92 = _slicedToArray(_ref9, 4);\n\n        var type = _ref92[0];\n        var markerTypeIndexes = _ref92[1];\n        var closeCount = _ref92[2];\n        var value = _ref92[3];\n\n        markerTypeIndexes.forEach(function (index) {\n          _this7.markups.push(_this7.markerTypes[index]);\n        });\n\n        var marker = this.buildMarkerType(type, value);\n        parent.markers.append(marker);\n\n        this.markups = this.markups.slice(0, this.markups.length - closeCount);\n      }\n    }, {\n      key: 'buildMarkerType',\n      value: function buildMarkerType(type, value) {\n        switch (type) {\n          case _mobiledocKitRenderersMobiledoc03.MOBILEDOC_MARKUP_MARKER_TYPE:\n            return this.builder.createMarker(value, this.markups.slice());\n          case _mobiledocKitRenderersMobiledoc03.MOBILEDOC_ATOM_MARKER_TYPE:\n            {\n              var _getAtomTypeFromIndex = this.getAtomTypeFromIndex(value);\n\n              var _getAtomTypeFromIndex2 = _slicedToArray(_getAtomTypeFromIndex, 3);\n\n              var atomName = _getAtomTypeFromIndex2[0];\n              var atomValue = _getAtomTypeFromIndex2[1];\n              var atomPayload = _getAtomTypeFromIndex2[2];\n\n              return this.builder.createAtom(atomName, atomValue, atomPayload, this.markups.slice());\n            }\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Unexpected marker type ' + type, false);\n        }\n      }\n    }]);\n\n    return MobiledocParser;\n  })();\n\n  exports['default'] = MobiledocParser;\n});","define('mobiledoc-kit/parsers/mobiledoc', ['exports', 'mobiledoc-kit/parsers/mobiledoc/0-2', 'mobiledoc-kit/parsers/mobiledoc/0-3', 'mobiledoc-kit/parsers/mobiledoc/0-3-1', 'mobiledoc-kit/parsers/mobiledoc/0-3-2', 'mobiledoc-kit/renderers/mobiledoc/0-2', 'mobiledoc-kit/renderers/mobiledoc/0-3', 'mobiledoc-kit/renderers/mobiledoc/0-3-1', 'mobiledoc-kit/renderers/mobiledoc/0-3-2', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitParsersMobiledoc02, _mobiledocKitParsersMobiledoc03, _mobiledocKitParsersMobiledoc031, _mobiledocKitParsersMobiledoc032, _mobiledocKitRenderersMobiledoc02, _mobiledocKitRenderersMobiledoc03, _mobiledocKitRenderersMobiledoc031, _mobiledocKitRenderersMobiledoc032, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  function parseVersion(mobiledoc) {\n    return mobiledoc.version;\n  }\n\n  exports['default'] = {\n    parse: function parse(builder, mobiledoc) {\n      var version = parseVersion(mobiledoc);\n      switch (version) {\n        case _mobiledocKitRenderersMobiledoc02.MOBILEDOC_VERSION:\n          return new _mobiledocKitParsersMobiledoc02['default'](builder).parse(mobiledoc);\n        case _mobiledocKitRenderersMobiledoc03.MOBILEDOC_VERSION:\n          return new _mobiledocKitParsersMobiledoc03['default'](builder).parse(mobiledoc);\n        case _mobiledocKitRenderersMobiledoc031.MOBILEDOC_VERSION:\n          return new _mobiledocKitParsersMobiledoc031['default'](builder).parse(mobiledoc);\n        case _mobiledocKitRenderersMobiledoc032.MOBILEDOC_VERSION:\n          return new _mobiledocKitParsersMobiledoc032['default'](builder).parse(mobiledoc);\n        default:\n          (0, _mobiledocKitUtilsAssert['default'])('Unknown version of mobiledoc parser requested: ' + version, false);\n      }\n    }\n  };\n});","define('mobiledoc-kit/parsers/section', ['exports', 'mobiledoc-kit/models/markup-section', 'mobiledoc-kit/models/list-section', 'mobiledoc-kit/models/list-item', 'mobiledoc-kit/models/types', 'mobiledoc-kit/models/markup', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/parsers/dom', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitModelsMarkupSection, _mobiledocKitModelsListSection, _mobiledocKitModelsListItem, _mobiledocKitModelsTypes, _mobiledocKitModelsMarkup, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsArrayUtils, _mobiledocKitParsersDom, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var SKIPPABLE_ELEMENT_TAG_NAMES = ['style', 'head', 'title', 'meta'].map(_mobiledocKitUtilsDomUtils.normalizeTagName);\n\n  var NEWLINES = /\\s*\\n\\s*/g;\n  function sanitize(text) {\n    return text.replace(NEWLINES, ' ');\n  }\n\n  /**\n   * parses an element into a section, ignoring any non-markup\n   * elements contained within\n   * @private\n   */\n\n  var SectionParser = (function () {\n    function SectionParser(builder) {\n      var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n      _classCallCheck(this, SectionParser);\n\n      this.builder = builder;\n      this.plugins = options.plugins || [];\n    }\n\n    _createClass(SectionParser, [{\n      key: 'parse',\n      value: function parse(element) {\n        var _this = this;\n\n        if (this._isSkippable(element)) {\n          return [];\n        }\n        this.sections = [];\n        this.state = {};\n\n        this._updateStateFromElement(element);\n\n        var finished = false;\n\n        // top-level text nodes will be run through parseNode later so avoid running\n        // the node through parserPlugins twice\n        if (!(0, _mobiledocKitUtilsDomUtils.isTextNode)(element)) {\n          finished = this.runPlugins(element);\n        }\n\n        if (!finished) {\n          var childNodes = (0, _mobiledocKitUtilsDomUtils.isTextNode)(element) ? [element] : element.childNodes;\n\n          (0, _mobiledocKitUtilsArrayUtils.forEach)(childNodes, function (el) {\n            _this.parseNode(el);\n          });\n        }\n\n        this._closeCurrentSection();\n\n        return this.sections;\n      }\n    }, {\n      key: 'runPlugins',\n      value: function runPlugins(node) {\n        var _this2 = this;\n\n        var isNodeFinished = false;\n        var env = {\n          addSection: function addSection(section) {\n            // avoid creating empty paragraphs due to wrapper elements around\n            // parser-plugin-handled elements\n            if (_this2.state.section && _this2.state.section.isMarkerable && !_this2.state.section.text && !_this2.state.text) {\n              _this2.state.section = null;\n            } else {\n              _this2._closeCurrentSection();\n            }\n            _this2.sections.push(section);\n          },\n          addMarkerable: function addMarkerable(marker) {\n            var state = _this2.state;\n            var section = state.section;\n\n            // if the first element doesn't create it's own state and it's plugin\n            // handler uses `addMarkerable` we won't have a section yet\n            if (!section) {\n              state.text = '';\n              state.section = _this2.builder.createMarkupSection((0, _mobiledocKitUtilsDomUtils.normalizeTagName)('p'));\n              section = state.section;\n            }\n            (0, _mobiledocKitUtilsAssert['default'])('Markerables can only be appended to markup sections and list item sections', section && section.isMarkerable);\n            if (state.text) {\n              _this2._createMarker();\n            }\n            section.markers.append(marker);\n          },\n          nodeFinished: function nodeFinished() {\n            isNodeFinished = true;\n          }\n        };\n        for (var i = 0; i < this.plugins.length; i++) {\n          var plugin = this.plugins[i];\n          plugin(node, this.builder, env);\n          if (isNodeFinished) {\n            return true;\n          }\n        }\n        return false;\n      }\n\n      /* eslint-disable complexity */\n    }, {\n      key: 'parseNode',\n      value: function parseNode(node) {\n        var _this3 = this;\n\n        if (!this.state.section) {\n          this._updateStateFromElement(node);\n        }\n\n        var nodeFinished = this.runPlugins(node);\n        if (nodeFinished) {\n          return;\n        }\n\n        // handle closing the current section and starting a new one if we hit a\n        // new-section-creating element.\n        if (this.state.section && !(0, _mobiledocKitUtilsDomUtils.isTextNode)(node) && node.tagName) {\n          var tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(node.tagName);\n          var isListSection = (0, _mobiledocKitUtilsArrayUtils.contains)(_mobiledocKitModelsListSection.VALID_LIST_SECTION_TAGNAMES, tagName);\n          var isListItem = (0, _mobiledocKitUtilsArrayUtils.contains)(_mobiledocKitModelsListItem.VALID_LIST_ITEM_TAGNAMES, tagName);\n          var isMarkupSection = (0, _mobiledocKitUtilsArrayUtils.contains)(_mobiledocKitModelsMarkupSection.VALID_MARKUP_SECTION_TAGNAMES, tagName);\n          var isNestedListSection = isListSection && this.state.section.isListItem;\n          var lastSection = this.sections[this.sections.length - 1];\n\n          // lists can continue after breaking out for a markup section,\n          // in that situation, start a new list using the same list type\n          if (isListItem && this.state.section.isMarkupSection) {\n            this._closeCurrentSection();\n            this._updateStateFromElement(node.parentElement);\n          }\n\n          // we can hit a list item after parsing a nested list, when that happens\n          // and the lists are of different types we need to make sure we switch\n          // the list type back\n          if (isListItem && lastSection && lastSection.isListSection) {\n            var parentElement = node.parentElement;\n            var parentElementTagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(parentElement.tagName);\n            if (parentElementTagName !== lastSection.tagName) {\n              this._closeCurrentSection();\n              this._updateStateFromElement(parentElement);\n            }\n          }\n\n          // if we've broken out of a list due to nested section-level elements we\n          // can hit the next list item without having a list section in the current\n          // state. In this instance we find the parent list node and use it to\n          // re-initialize the state with a new list section\n          if (isListItem && !(this.state.section.isListItem || this.state.section.isListSection) && !lastSection.isListSection) {\n            this._closeCurrentSection();\n            this._updateStateFromElement(node.parentElement);\n          }\n\n          // if we have consecutive list sections of different types (ul, ol) then\n          // ensure we close the current section and start a new one\n          var isNewListSection = lastSection && lastSection.isListSection && this.state.section.isListItem && isListSection && tagName !== lastSection.tagName;\n\n          if (isNewListSection || isListSection && !isNestedListSection || isMarkupSection || isListItem) {\n            // don't break out of the list for list items that contain a single <p>.\n            // deals with typical case of <li><p>Text</p></li><li><p>Text</p></li>\n            if (this.state.section.isListItem && tagName === 'p' && !node.nextSibling && (0, _mobiledocKitUtilsArrayUtils.contains)(_mobiledocKitModelsListItem.VALID_LIST_ITEM_TAGNAMES, (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(node.parentElement.tagName))) {\n              this.parseElementNode(node);\n              return;\n            }\n\n            // avoid creating empty paragraphs due to wrapper elements around\n            // section-creating elements\n            if (this.state.section.isMarkerable && !this.state.text && this.state.section.markers.length === 0) {\n              this.state.section = null;\n            } else {\n              this._closeCurrentSection();\n            }\n\n            this._updateStateFromElement(node);\n          }\n\n          if (this.state.section.isListSection) {\n            // ensure the list section is closed and added to the sections list.\n            // _closeCurrentSection handles pushing list items onto the list section\n            this._closeCurrentSection();\n\n            (0, _mobiledocKitUtilsArrayUtils.forEach)(node.childNodes, function (node) {\n              _this3.parseNode(node);\n            });\n            return;\n          }\n        }\n\n        switch (node.nodeType) {\n          case _mobiledocKitUtilsDomUtils.NODE_TYPES.TEXT:\n            this.parseTextNode(node);\n            break;\n          case _mobiledocKitUtilsDomUtils.NODE_TYPES.ELEMENT:\n            this.parseElementNode(node);\n            break;\n        }\n      }\n    }, {\n      key: 'parseElementNode',\n      value: function parseElementNode(element) {\n        var _state$markups,\n            _this4 = this;\n\n        var state = this.state;\n\n        var markups = this._markupsFromElement(element);\n        if (markups.length && state.text.length && state.section.isMarkerable) {\n          this._createMarker();\n        }\n        (_state$markups = state.markups).push.apply(_state$markups, _toConsumableArray(markups));\n\n        (0, _mobiledocKitUtilsArrayUtils.forEach)(element.childNodes, function (node) {\n          _this4.parseNode(node);\n        });\n\n        if (markups.length && state.text.length && state.section.isMarkerable) {\n          // create the marker started for this node\n          this._createMarker();\n        }\n\n        // pop the current markups from the stack\n        state.markups.splice(-markups.length, markups.length);\n      }\n    }, {\n      key: 'parseTextNode',\n      value: function parseTextNode(textNode) {\n        var state = this.state;\n\n        state.text += sanitize(textNode.textContent);\n      }\n    }, {\n      key: '_updateStateFromElement',\n      value: function _updateStateFromElement(element) {\n        if ((0, _mobiledocKitUtilsDomUtils.isCommentNode)(element)) {\n          return;\n        }\n\n        var state = this.state;\n\n        state.section = this._createSectionFromElement(element);\n        state.markups = this._markupsFromElement(element);\n        state.text = '';\n      }\n    }, {\n      key: '_closeCurrentSection',\n      value: function _closeCurrentSection() {\n        var sections = this.sections;\n        var state = this.state;\n\n        var lastSection = sections[sections.length - 1];\n\n        if (!state.section) {\n          return;\n        }\n\n        // close a trailing text node if it exists\n        if (state.text.length && state.section.isMarkerable) {\n          this._createMarker();\n        }\n\n        // push listItems onto the listSection or add a new section\n        if (state.section.isListItem && lastSection && lastSection.isListSection) {\n          (0, _mobiledocKitParsersDom.trimSectionText)(state.section);\n          lastSection.items.append(state.section);\n        } else {\n          // avoid creating empty markup sections, especially useful for indented source\n          if (state.section.isMarkerable && !state.section.text.trim() && !(0, _mobiledocKitUtilsArrayUtils.any)(state.section.markers, function (marker) {\n            return marker.isAtom;\n          })) {\n            state.section = null;\n            state.text = '';\n            return;\n          }\n\n          // remove empty list sections before creating a new section\n          if (lastSection && lastSection.isListSection && lastSection.items.length === 0) {\n            sections.pop();\n          }\n\n          sections.push(state.section);\n        }\n\n        state.section = null;\n        state.text = '';\n      }\n    }, {\n      key: '_markupsFromElement',\n      value: function _markupsFromElement(element) {\n        var builder = this.builder;\n\n        var markups = [];\n        if ((0, _mobiledocKitUtilsDomUtils.isTextNode)(element)) {\n          return markups;\n        }\n\n        var tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(element.tagName);\n        if (this._isValidMarkupForElement(tagName, element)) {\n          markups.push(builder.createMarkup(tagName, (0, _mobiledocKitUtilsDomUtils.getAttributes)(element)));\n        }\n\n        this._markupsFromElementStyle(element).forEach(function (markup) {\n          return markups.push(markup);\n        });\n\n        return markups;\n      }\n    }, {\n      key: '_isValidMarkupForElement',\n      value: function _isValidMarkupForElement(tagName, element) {\n        if (_mobiledocKitModelsMarkup.VALID_MARKUP_TAGNAMES.indexOf(tagName) === -1) {\n          return false;\n        } else if (tagName === 'b') {\n          // google docs add a <b style=\"font-weight: normal;\"> that should not\n          // create a \"b\" markup\n          return element.style.fontWeight !== 'normal';\n        }\n        return true;\n      }\n    }, {\n      key: '_markupsFromElementStyle',\n      value: function _markupsFromElementStyle(element) {\n        var builder = this.builder;\n\n        var markups = [];\n        var _element$style = element.style;\n        var fontStyle = _element$style.fontStyle;\n        var fontWeight = _element$style.fontWeight;\n\n        if (fontStyle === 'italic') {\n          markups.push(builder.createMarkup('em'));\n        }\n        if (fontWeight === 'bold' || fontWeight === '700') {\n          markups.push(builder.createMarkup('strong'));\n        }\n        return markups;\n      }\n    }, {\n      key: '_createMarker',\n      value: function _createMarker() {\n        var state = this.state;\n\n        var text = (0, _mobiledocKitParsersDom.transformHTMLText)(state.text);\n        var marker = this.builder.createMarker(text, state.markups);\n        state.section.markers.append(marker);\n        state.text = '';\n      }\n    }, {\n      key: '_getSectionDetails',\n      value: function _getSectionDetails(element) {\n        var sectionType = undefined,\n            tagName = undefined,\n            inferredTagName = false;\n\n        if ((0, _mobiledocKitUtilsDomUtils.isTextNode)(element)) {\n          tagName = _mobiledocKitModelsMarkupSection.DEFAULT_TAG_NAME;\n          sectionType = _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE;\n          inferredTagName = true;\n        } else {\n          tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(element.tagName);\n\n          // blockquote>p is valid html and should be treated as a blockquote section\n          // rather than a plain markup section\n          if (tagName === 'p' && element.parentElement && (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(element.parentElement.tagName) === 'blockquote') {\n            tagName = 'blockquote';\n          }\n\n          if ((0, _mobiledocKitUtilsArrayUtils.contains)(_mobiledocKitModelsListSection.VALID_LIST_SECTION_TAGNAMES, tagName)) {\n            sectionType = _mobiledocKitModelsTypes.LIST_SECTION_TYPE;\n          } else if ((0, _mobiledocKitUtilsArrayUtils.contains)(_mobiledocKitModelsListItem.VALID_LIST_ITEM_TAGNAMES, tagName)) {\n            sectionType = _mobiledocKitModelsTypes.LIST_ITEM_TYPE;\n          } else if ((0, _mobiledocKitUtilsArrayUtils.contains)(_mobiledocKitModelsMarkupSection.VALID_MARKUP_SECTION_TAGNAMES, tagName)) {\n            sectionType = _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE;\n          } else {\n            sectionType = _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE;\n            tagName = _mobiledocKitModelsMarkupSection.DEFAULT_TAG_NAME;\n            inferredTagName = true;\n          }\n        }\n\n        return { sectionType: sectionType, tagName: tagName, inferredTagName: inferredTagName };\n      }\n    }, {\n      key: '_createSectionFromElement',\n      value: function _createSectionFromElement(element) {\n        if ((0, _mobiledocKitUtilsDomUtils.isCommentNode)(element)) {\n          return;\n        }\n\n        var builder = this.builder;\n\n        var section = undefined;\n\n        var _getSectionDetails2 = this._getSectionDetails(element);\n\n        var tagName = _getSectionDetails2.tagName;\n        var sectionType = _getSectionDetails2.sectionType;\n        var inferredTagName = _getSectionDetails2.inferredTagName;\n\n        switch (sectionType) {\n          case _mobiledocKitModelsTypes.LIST_SECTION_TYPE:\n            section = builder.createListSection(tagName);\n            break;\n          case _mobiledocKitModelsTypes.LIST_ITEM_TYPE:\n            section = builder.createListItem();\n            break;\n          case _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE:\n            section = builder.createMarkupSection(tagName);\n            section._inferredTagName = inferredTagName;\n            break;\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Cannot parse section from element', false);\n        }\n\n        return section;\n      }\n    }, {\n      key: '_isSkippable',\n      value: function _isSkippable(element) {\n        return element.nodeType === _mobiledocKitUtilsDomUtils.NODE_TYPES.ELEMENT && (0, _mobiledocKitUtilsArrayUtils.contains)(SKIPPABLE_ELEMENT_TAG_NAMES, (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(element.tagName));\n      }\n    }]);\n\n    return SectionParser;\n  })();\n\n  exports['default'] = SectionParser;\n});","define('mobiledoc-kit/parsers/text', ['exports', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/models/types', 'mobiledoc-kit/models/markup-section'], function (exports, _mobiledocKitUtilsAssert, _mobiledocKitModelsTypes, _mobiledocKitModelsMarkupSection) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var UL_LI_REGEX = /^\\* (.*)$/;\n  var OL_LI_REGEX = /^\\d\\.? (.*)$/;\n  var CR = '\\r';\n  var LF = '\\n';\n  var CR_REGEX = new RegExp(CR, 'g');\n  var CR_LF_REGEX = new RegExp(CR + LF, 'g');\n\n  var SECTION_BREAK = LF;\n\n  exports.SECTION_BREAK = SECTION_BREAK;\n  function normalizeLineEndings(text) {\n    return text.replace(CR_LF_REGEX, LF).replace(CR_REGEX, LF);\n  }\n\n  var TextParser = (function () {\n    function TextParser(builder, options) {\n      _classCallCheck(this, TextParser);\n\n      this.builder = builder;\n      this.options = options;\n\n      this.post = this.builder.createPost();\n      this.prevSection = null;\n    }\n\n    /**\n     * @param {String} text to parse\n     * @return {Post} a post abstract\n     */\n\n    _createClass(TextParser, [{\n      key: 'parse',\n      value: function parse(text) {\n        var _this = this;\n\n        text = normalizeLineEndings(text);\n        text.split(SECTION_BREAK).forEach(function (text) {\n          var section = _this._parseSection(text);\n          _this._appendSection(section);\n        });\n\n        return this.post;\n      }\n    }, {\n      key: '_parseSection',\n      value: function _parseSection(text) {\n        var tagName = _mobiledocKitModelsMarkupSection.DEFAULT_TAG_NAME,\n            type = _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE,\n            section = undefined;\n\n        if (UL_LI_REGEX.test(text)) {\n          tagName = 'ul';\n          type = _mobiledocKitModelsTypes.LIST_SECTION_TYPE;\n          text = text.match(UL_LI_REGEX)[1];\n        } else if (OL_LI_REGEX.test(text)) {\n          tagName = 'ol';\n          type = _mobiledocKitModelsTypes.LIST_SECTION_TYPE;\n          text = text.match(OL_LI_REGEX)[1];\n        }\n\n        var markers = [this.builder.createMarker(text)];\n\n        switch (type) {\n          case _mobiledocKitModelsTypes.LIST_SECTION_TYPE:\n            {\n              var item = this.builder.createListItem(markers);\n              var list = this.builder.createListSection(tagName, [item]);\n              section = list;\n              break;\n            }\n          case _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE:\n            section = this.builder.createMarkupSection(tagName, markers);\n            break;\n          default:\n            (0, _mobiledocKitUtilsAssert['default'])('Unknown type encountered ' + type, false);\n        }\n\n        return section;\n      }\n    }, {\n      key: '_appendSection',\n      value: function _appendSection(section) {\n        var _this2 = this;\n\n        var isSameListSection = section.isListSection && this.prevSection && this.prevSection.isListSection && this.prevSection.tagName === section.tagName;\n\n        if (isSameListSection) {\n          section.items.forEach(function (item) {\n            _this2.prevSection.items.append(item.clone());\n          });\n        } else {\n          this.post.sections.insertAfter(section, this.prevSection);\n          this.prevSection = section;\n        }\n      }\n    }]);\n\n    return TextParser;\n  })();\n\n  exports['default'] = TextParser;\n});","define('mobiledoc-kit/renderers/editor-dom', ['exports', 'mobiledoc-kit/models/card-node', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/models/atom-node', 'mobiledoc-kit/models/types', 'mobiledoc-kit/utils/string-utils', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/models/markup-section', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/utils/characters'], function (exports, _mobiledocKitModelsCardNode, _mobiledocKitUtilsArrayUtils, _mobiledocKitModelsAtomNode, _mobiledocKitModelsTypes, _mobiledocKitUtilsStringUtils, _mobiledocKitUtilsDomUtils, _mobiledocKitModelsMarkupSection, _mobiledocKitUtilsAssert, _mobiledocKitUtilsCharacters) {\n  'use strict';\n\n  var _destroyHooks;\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var CARD_ELEMENT_CLASS_NAME = '__mobiledoc-card';\n  exports.CARD_ELEMENT_CLASS_NAME = CARD_ELEMENT_CLASS_NAME;\n  var NO_BREAK_SPACE = ' ';\n  exports.NO_BREAK_SPACE = NO_BREAK_SPACE;\n  var TAB_CHARACTER = ' ';\n  exports.TAB_CHARACTER = TAB_CHARACTER;\n  var SPACE = ' ';\n  exports.SPACE = SPACE;\n  var ZWNJ = '‌';\n  exports.ZWNJ = ZWNJ;\n  var ATOM_CLASS_NAME = '-mobiledoc-kit__atom';\n  exports.ATOM_CLASS_NAME = ATOM_CLASS_NAME;\n  var EDITOR_HAS_NO_CONTENT_CLASS_NAME = '__has-no-content';\n  exports.EDITOR_HAS_NO_CONTENT_CLASS_NAME = EDITOR_HAS_NO_CONTENT_CLASS_NAME;\n  var EDITOR_ELEMENT_CLASS_NAME = '__mobiledoc-editor';\n\n  exports.EDITOR_ELEMENT_CLASS_NAME = EDITOR_ELEMENT_CLASS_NAME;\n  function createElementFromMarkup(doc, markup) {\n    var element = doc.createElement(markup.tagName);\n    Object.keys(markup.attributes).forEach(function (k) {\n      element.setAttribute(k, markup.attributes[k]);\n    });\n    return element;\n  }\n\n  var TWO_SPACES = '' + SPACE + SPACE;\n  var SPACE_AND_NO_BREAK = '' + SPACE + NO_BREAK_SPACE;\n  var SPACES_REGEX = new RegExp(TWO_SPACES, 'g');\n  var TAB_REGEX = new RegExp(_mobiledocKitUtilsCharacters.TAB, 'g');\n  var endsWithSpace = function endsWithSpace(text) {\n    return (0, _mobiledocKitUtilsStringUtils.endsWith)(text, SPACE);\n  };\n  var startsWithSpace = function startsWithSpace(text) {\n    return (0, _mobiledocKitUtilsStringUtils.startsWith)(text, SPACE);\n  };\n\n  // FIXME: This can be done more efficiently with a single pass\n  // building a correct string based on the original.\n  function renderHTMLText(marker) {\n    var text = marker.value;\n    text = text.replace(SPACES_REGEX, SPACE_AND_NO_BREAK).replace(TAB_REGEX, TAB_CHARACTER);\n\n    // If the first marker has a leading space or the last marker has a\n    // trailing space, the browser will collapse the space when we position\n    // the cursor.\n    // See https://github.com/bustle/mobiledoc-kit/issues/68\n    //   and https://github.com/bustle/mobiledoc-kit/issues/75\n    if (marker.isMarker && endsWithSpace(text) && !marker.next) {\n      text = text.substr(0, text.length - 1) + NO_BREAK_SPACE;\n    }\n    if (marker.isMarker && startsWithSpace(text) && (!marker.prev || marker.prev.isMarker && endsWithSpace(marker.prev.value))) {\n      text = NO_BREAK_SPACE + text.substr(1);\n    }\n    return text;\n  }\n\n  // ascends from element upward, returning the last parent node that is not\n  // parentElement\n  function penultimateParentOf(element, parentElement) {\n    while (parentElement && element.parentNode !== parentElement && element.parentNode !== document.body // ensure the while loop stops\n    ) {\n      element = element.parentNode;\n    }\n    return element;\n  }\n\n  function setSectionAttributesOnElement(section, element) {\n    section.eachAttribute(function (key, value) {\n      element.setAttribute(key, value);\n    });\n  }\n\n  function renderMarkupSection(section) {\n    var element = undefined;\n    if (_mobiledocKitModelsMarkupSection.MARKUP_SECTION_ELEMENT_NAMES.indexOf(section.tagName) !== -1) {\n      element = document.createElement(section.tagName);\n    } else {\n      element = document.createElement('div');\n      (0, _mobiledocKitUtilsDomUtils.addClassName)(element, section.tagName);\n    }\n\n    setSectionAttributesOnElement(section, element);\n\n    return element;\n  }\n\n  function renderListSection(section) {\n    var element = document.createElement(section.tagName);\n\n    setSectionAttributesOnElement(section, element);\n\n    return element;\n  }\n\n  function renderListItem() {\n    return document.createElement('li');\n  }\n\n  function renderCursorPlaceholder() {\n    return document.createElement('br');\n  }\n\n  function renderInlineCursorPlaceholder() {\n    return document.createTextNode(ZWNJ);\n  }\n\n  function renderCard() {\n    var wrapper = document.createElement('div');\n    var cardElement = document.createElement('div');\n    cardElement.contentEditable = false;\n    (0, _mobiledocKitUtilsDomUtils.addClassName)(cardElement, CARD_ELEMENT_CLASS_NAME);\n    wrapper.appendChild(renderInlineCursorPlaceholder());\n    wrapper.appendChild(cardElement);\n    wrapper.appendChild(renderInlineCursorPlaceholder());\n    return { wrapper: wrapper, cardElement: cardElement };\n  }\n\n  /**\n   * Wrap the element in all of the opened markups\n   * @return {DOMElement} the wrapped element\n   * @private\n   */\n  function wrapElement(element, openedMarkups) {\n    var wrappedElement = element;\n\n    for (var i = openedMarkups.length - 1; i >= 0; i--) {\n      var markup = openedMarkups[i];\n      var openedElement = createElementFromMarkup(document, markup);\n      openedElement.appendChild(wrappedElement);\n      wrappedElement = openedElement;\n    }\n\n    return wrappedElement;\n  }\n\n  // Attach the element to its parent element at the correct position based on the\n  // previousRenderNode\n  function attachElementToParent(element, parentElement) {\n    var previousRenderNode = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2];\n\n    if (previousRenderNode) {\n      var previousSibling = previousRenderNode.element;\n      var previousSiblingPenultimate = penultimateParentOf(previousSibling, parentElement);\n      parentElement.insertBefore(element, previousSiblingPenultimate.nextSibling);\n    } else {\n      parentElement.insertBefore(element, parentElement.firstChild);\n    }\n  }\n\n  function renderAtom(atom, element, previousRenderNode) {\n    var atomElement = document.createElement('span');\n    atomElement.contentEditable = false;\n\n    var wrapper = document.createElement('span');\n    (0, _mobiledocKitUtilsDomUtils.addClassName)(wrapper, ATOM_CLASS_NAME);\n    var headTextNode = renderInlineCursorPlaceholder();\n    var tailTextNode = renderInlineCursorPlaceholder();\n\n    wrapper.appendChild(headTextNode);\n    wrapper.appendChild(atomElement);\n    wrapper.appendChild(tailTextNode);\n\n    var wrappedElement = wrapElement(wrapper, atom.openedMarkups);\n    attachElementToParent(wrappedElement, element, previousRenderNode);\n\n    return {\n      markupElement: wrappedElement,\n      wrapper: wrapper,\n      atomElement: atomElement,\n      headTextNode: headTextNode,\n      tailTextNode: tailTextNode\n    };\n  }\n\n  function getNextMarkerElement(renderNode) {\n    var element = renderNode.element.parentNode;\n    var marker = renderNode.postNode;\n    var closedCount = marker.closedMarkups.length;\n\n    while (closedCount--) {\n      element = element.parentNode;\n    }\n    return element;\n  }\n\n  /**\n   * Render the marker\n   * @param {Marker} marker the marker to render\n   * @param {DOMNode} element the element to attach the rendered marker to\n   * @param {RenderNode} [previousRenderNode] The render node before this one, which\n   *        affects the determination of where to insert this rendered marker.\n   * @return {Object} With properties `element` and `markupElement`.\n   *         The element (textNode) that has the text for\n   *         this marker, and the outermost rendered element. If the marker has no\n   *         markups, element and markupElement will be the same textNode\n   * @private\n   */\n  function renderMarker(marker, parentElement, previousRenderNode) {\n    var text = renderHTMLText(marker);\n\n    var element = document.createTextNode(text);\n    var markupElement = wrapElement(element, marker.openedMarkups);\n    attachElementToParent(markupElement, parentElement, previousRenderNode);\n\n    return { element: element, markupElement: markupElement };\n  }\n\n  // Attach the render node's element to the DOM,\n  // replacing the originalElement if it exists\n  function attachRenderNodeElementToDOM(renderNode) {\n    var originalElement = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];\n\n    var element = renderNode.element;\n    var hasRendered = !!originalElement;\n\n    if (hasRendered) {\n      var parentElement = renderNode.parent.element;\n      parentElement.replaceChild(element, originalElement);\n    } else {\n      var parentElement = undefined,\n          nextSiblingElement = undefined;\n      if (renderNode.prev) {\n        var previousElement = renderNode.prev.element;\n        parentElement = previousElement.parentNode;\n        nextSiblingElement = previousElement.nextSibling;\n      } else {\n        parentElement = renderNode.parent.element;\n        nextSiblingElement = parentElement.firstChild;\n      }\n      parentElement.insertBefore(element, nextSiblingElement);\n    }\n  }\n\n  function removeRenderNodeSectionFromParent(renderNode, section) {\n    var parent = renderNode.parent.postNode;\n    parent.sections.remove(section);\n  }\n\n  function removeRenderNodeElementFromParent(renderNode) {\n    if (renderNode.element && renderNode.element.parentNode) {\n      renderNode.element.parentNode.removeChild(renderNode.element);\n    }\n  }\n\n  function validateCards() {\n    var cards = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\n    (0, _mobiledocKitUtilsArrayUtils.forEach)(cards, function (card) {\n      (0, _mobiledocKitUtilsAssert['default'])('Card \"' + card.name + '\" must define type \"dom\", has: \"' + card.type + '\"', card.type === 'dom');\n      (0, _mobiledocKitUtilsAssert['default'])('Card \"' + card.name + '\" must define `render` method', !!card.render);\n    });\n    return cards;\n  }\n\n  function validateAtoms() {\n    var atoms = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\n    (0, _mobiledocKitUtilsArrayUtils.forEach)(atoms, function (atom) {\n      (0, _mobiledocKitUtilsAssert['default'])('Atom \"' + atom.name + '\" must define type \"dom\", has: \"' + atom.type + '\"', atom.type === 'dom');\n      (0, _mobiledocKitUtilsAssert['default'])('Atom \"' + atom.name + '\" must define `render` method', !!atom.render);\n    });\n    return atoms;\n  }\n\n  var Visitor = (function () {\n    function Visitor(editor, cards, atoms, unknownCardHandler, unknownAtomHandler, options) {\n      _classCallCheck(this, Visitor);\n\n      this.editor = editor;\n      this.cards = validateCards(cards);\n      this.atoms = validateAtoms(atoms);\n      this.unknownCardHandler = unknownCardHandler;\n      this.unknownAtomHandler = unknownAtomHandler;\n      this.options = options;\n    }\n\n    _createClass(Visitor, [{\n      key: '_findCard',\n      value: function _findCard(cardName) {\n        var card = (0, _mobiledocKitUtilsArrayUtils.detect)(this.cards, function (card) {\n          return card.name === cardName;\n        });\n        return card || this._createUnknownCard(cardName);\n      }\n    }, {\n      key: '_createUnknownCard',\n      value: function _createUnknownCard(cardName) {\n        (0, _mobiledocKitUtilsAssert['default'])('Unknown card \"' + cardName + '\" found, but no unknownCardHandler is defined', !!this.unknownCardHandler);\n\n        return {\n          name: cardName,\n          type: 'dom',\n          render: this.unknownCardHandler,\n          edit: this.unknownCardHandler\n        };\n      }\n    }, {\n      key: '_findAtom',\n      value: function _findAtom(atomName) {\n        var atom = (0, _mobiledocKitUtilsArrayUtils.detect)(this.atoms, function (atom) {\n          return atom.name === atomName;\n        });\n        return atom || this._createUnknownAtom(atomName);\n      }\n    }, {\n      key: '_createUnknownAtom',\n      value: function _createUnknownAtom(atomName) {\n        (0, _mobiledocKitUtilsAssert['default'])('Unknown atom \"' + atomName + '\" found, but no unknownAtomHandler is defined', !!this.unknownAtomHandler);\n\n        return {\n          name: atomName,\n          type: 'dom',\n          render: this.unknownAtomHandler\n        };\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.POST_TYPE,\n      value: function value(renderNode, post, visit) {\n        if (!renderNode.element) {\n          renderNode.element = document.createElement('div');\n        }\n        (0, _mobiledocKitUtilsDomUtils.addClassName)(renderNode.element, EDITOR_ELEMENT_CLASS_NAME);\n        if (post.hasContent) {\n          (0, _mobiledocKitUtilsDomUtils.removeClassName)(renderNode.element, EDITOR_HAS_NO_CONTENT_CLASS_NAME);\n        } else {\n          (0, _mobiledocKitUtilsDomUtils.addClassName)(renderNode.element, EDITOR_HAS_NO_CONTENT_CLASS_NAME);\n        }\n        visit(renderNode, post.sections);\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE,\n      value: function value(renderNode, section, visit) {\n        var originalElement = renderNode.element;\n\n        // Always rerender the section -- its tag name or attributes may have changed.\n        // TODO make this smarter, only rerendering and replacing the element when necessary\n        renderNode.element = renderMarkupSection(section);\n        renderNode.cursorElement = null;\n        attachRenderNodeElementToDOM(renderNode, originalElement);\n\n        if (section.isBlank) {\n          var cursorPlaceholder = renderCursorPlaceholder();\n          renderNode.element.appendChild(cursorPlaceholder);\n          renderNode.cursorElement = cursorPlaceholder;\n        } else {\n          var visitAll = true;\n          visit(renderNode, section.markers, visitAll);\n        }\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.LIST_SECTION_TYPE,\n      value: function value(renderNode, section, visit) {\n        var originalElement = renderNode.element;\n\n        renderNode.element = renderListSection(section);\n        attachRenderNodeElementToDOM(renderNode, originalElement);\n\n        var visitAll = true;\n        visit(renderNode, section.items, visitAll);\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.LIST_ITEM_TYPE,\n      value: function value(renderNode, item, visit) {\n        // FIXME do we need to do anything special for rerenders?\n        renderNode.element = renderListItem();\n        renderNode.cursorElement = null;\n        attachRenderNodeElementToDOM(renderNode, null);\n\n        if (item.isBlank) {\n          var cursorPlaceholder = renderCursorPlaceholder();\n          renderNode.element.appendChild(cursorPlaceholder);\n          renderNode.cursorElement = cursorPlaceholder;\n        } else {\n          var visitAll = true;\n          visit(renderNode, item.markers, visitAll);\n        }\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.MARKER_TYPE,\n      value: function value(renderNode, marker) {\n        var parentElement = undefined;\n\n        if (renderNode.prev) {\n          parentElement = getNextMarkerElement(renderNode.prev);\n        } else {\n          parentElement = renderNode.parent.element;\n        }\n\n        var _renderMarker = renderMarker(marker, parentElement, renderNode.prev);\n\n        var element = _renderMarker.element;\n        var markupElement = _renderMarker.markupElement;\n\n        renderNode.element = element;\n        renderNode.markupElement = markupElement;\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.IMAGE_SECTION_TYPE,\n      value: function value(renderNode, section) {\n        if (renderNode.element) {\n          if (renderNode.element.src !== section.src) {\n            renderNode.element.src = section.src;\n          }\n        } else {\n          var element = document.createElement('img');\n          element.src = section.src;\n          if (renderNode.prev) {\n            var previousElement = renderNode.prev.element;\n            var nextElement = previousElement.nextSibling;\n            if (nextElement) {\n              nextElement.parentNode.insertBefore(element, nextElement);\n            }\n          }\n          if (!element.parentNode) {\n            renderNode.parent.element.appendChild(element);\n          }\n          renderNode.element = element;\n        }\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.CARD_TYPE,\n      value: function value(renderNode, section) {\n        var originalElement = renderNode.element;\n        var editor = this.editor;\n        var options = this.options;\n\n        var card = this._findCard(section.name);\n\n        var _renderCard = renderCard();\n\n        var wrapper = _renderCard.wrapper;\n        var cardElement = _renderCard.cardElement;\n\n        renderNode.element = wrapper;\n        attachRenderNodeElementToDOM(renderNode, originalElement);\n\n        var cardNode = new _mobiledocKitModelsCardNode['default'](editor, card, section, cardElement, options);\n        renderNode.cardNode = cardNode;\n\n        var initialMode = section._initialMode;\n        cardNode[initialMode]();\n      }\n    }, {\n      key: _mobiledocKitModelsTypes.ATOM_TYPE,\n      value: function value(renderNode, atomModel) {\n        var parentElement = undefined;\n\n        if (renderNode.prev) {\n          parentElement = getNextMarkerElement(renderNode.prev);\n        } else {\n          parentElement = renderNode.parent.element;\n        }\n\n        var editor = this.editor;\n        var options = this.options;\n\n        var _renderAtom = renderAtom(atomModel, parentElement, renderNode.prev);\n\n        var wrapper = _renderAtom.wrapper;\n        var markupElement = _renderAtom.markupElement;\n        var atomElement = _renderAtom.atomElement;\n        var headTextNode = _renderAtom.headTextNode;\n        var tailTextNode = _renderAtom.tailTextNode;\n\n        var atom = this._findAtom(atomModel.name);\n\n        var atomNode = renderNode.atomNode;\n        if (!atomNode) {\n          // create new AtomNode\n          atomNode = new _mobiledocKitModelsAtomNode['default'](editor, atom, atomModel, atomElement, options);\n        } else {\n          // retarget atomNode to new atom element\n          atomNode.element = atomElement;\n        }\n\n        atomNode.render();\n\n        renderNode.atomNode = atomNode;\n        renderNode.element = wrapper;\n        renderNode.headTextNode = headTextNode;\n        renderNode.tailTextNode = tailTextNode;\n        renderNode.markupElement = markupElement;\n      }\n    }]);\n\n    return Visitor;\n  })();\n\n  var destroyHooks = (_destroyHooks = {}, _defineProperty(_destroyHooks, _mobiledocKitModelsTypes.POST_TYPE, function () /*renderNode, post*/{\n    (0, _mobiledocKitUtilsAssert['default'])('post destruction is not supported by the renderer', false);\n  }), _defineProperty(_destroyHooks, _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE, function (renderNode, section) {\n    removeRenderNodeSectionFromParent(renderNode, section);\n    removeRenderNodeElementFromParent(renderNode);\n  }), _defineProperty(_destroyHooks, _mobiledocKitModelsTypes.LIST_SECTION_TYPE, function (renderNode, section) {\n    removeRenderNodeSectionFromParent(renderNode, section);\n    removeRenderNodeElementFromParent(renderNode);\n  }), _defineProperty(_destroyHooks, _mobiledocKitModelsTypes.LIST_ITEM_TYPE, function (renderNode, li) {\n    removeRenderNodeSectionFromParent(renderNode, li);\n    removeRenderNodeElementFromParent(renderNode);\n  }), _defineProperty(_destroyHooks, _mobiledocKitModelsTypes.MARKER_TYPE, function (renderNode, marker) {\n    // FIXME before we render marker, should delete previous renderNode's element\n    // and up until the next marker element\n\n    // If an atom throws during render we may end up later destroying a renderNode\n    // that has not rendered yet, so exit early here if so.\n    if (!renderNode.isRendered) {\n      return;\n    }\n    var markupElement = renderNode.markupElement;\n\n    if (marker.section) {\n      marker.section.markers.remove(marker);\n    }\n\n    if (markupElement.parentNode) {\n      // if no parentNode, the browser already removed this element\n      markupElement.parentNode.removeChild(markupElement);\n    }\n  }), _defineProperty(_destroyHooks, _mobiledocKitModelsTypes.IMAGE_SECTION_TYPE, function (renderNode, section) {\n    removeRenderNodeSectionFromParent(renderNode, section);\n    removeRenderNodeElementFromParent(renderNode);\n  }), _defineProperty(_destroyHooks, _mobiledocKitModelsTypes.CARD_TYPE, function (renderNode, section) {\n    if (renderNode.cardNode) {\n      renderNode.cardNode.teardown();\n    }\n    removeRenderNodeSectionFromParent(renderNode, section);\n    removeRenderNodeElementFromParent(renderNode);\n  }), _defineProperty(_destroyHooks, _mobiledocKitModelsTypes.ATOM_TYPE, function (renderNode, atom) {\n    if (renderNode.atomNode) {\n      renderNode.atomNode.teardown();\n    }\n\n    // an atom is a kind of marker so just call its destroy hook vs copying here\n    destroyHooks[_mobiledocKitModelsTypes.MARKER_TYPE](renderNode, atom);\n  }), _destroyHooks);\n\n  // removes children from parentNode (a RenderNode) that are scheduled for removal\n  function removeDestroyedChildren(parentNode) {\n    var forceRemoval = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];\n\n    var child = parentNode.childNodes.head;\n    var nextChild = undefined,\n        method = undefined;\n    while (child) {\n      nextChild = child.next;\n      if (child.isRemoved || forceRemoval) {\n        removeDestroyedChildren(child, true);\n        method = child.postNode.type;\n        (0, _mobiledocKitUtilsAssert['default'])('editor-dom cannot destroy \"' + method + '\"', !!destroyHooks[method]);\n        destroyHooks[method](child, child.postNode);\n        parentNode.childNodes.remove(child);\n      }\n      child = nextChild;\n    }\n  }\n\n  // Find an existing render node for the given postNode, or\n  // create one, insert it into the tree, and return it\n  function lookupNode(renderTree, parentNode, postNode, previousNode) {\n    if (postNode.renderNode) {\n      return postNode.renderNode;\n    } else {\n      var renderNode = renderTree.buildRenderNode(postNode);\n      parentNode.childNodes.insertAfter(renderNode, previousNode);\n      return renderNode;\n    }\n  }\n\n  var Renderer = (function () {\n    function Renderer(editor, cards, atoms, unknownCardHandler, unknownAtomHandler, options) {\n      _classCallCheck(this, Renderer);\n\n      this.editor = editor;\n      this.visitor = new Visitor(editor, cards, atoms, unknownCardHandler, unknownAtomHandler, options);\n      this.nodes = [];\n      this.hasRendered = false;\n    }\n\n    _createClass(Renderer, [{\n      key: 'destroy',\n      value: function destroy() {\n        if (!this.hasRendered) {\n          return;\n        }\n        var renderNode = this.renderTree.rootNode;\n        var force = true;\n        removeDestroyedChildren(renderNode, force);\n      }\n    }, {\n      key: 'visit',\n      value: function visit(renderTree, parentNode, postNodes) {\n        var _this = this;\n\n        var visitAll = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3];\n\n        var previousNode = undefined;\n        postNodes.forEach(function (postNode) {\n          var node = lookupNode(renderTree, parentNode, postNode, previousNode);\n          if (node.isDirty || visitAll) {\n            _this.nodes.push(node);\n          }\n          previousNode = node;\n        });\n      }\n    }, {\n      key: 'render',\n      value: function render(renderTree) {\n        var _this2 = this;\n\n        this.hasRendered = true;\n        this.renderTree = renderTree;\n        var renderNode = renderTree.rootNode;\n        var method = undefined,\n            postNode = undefined;\n\n        while (renderNode) {\n          removeDestroyedChildren(renderNode);\n          postNode = renderNode.postNode;\n\n          method = postNode.type;\n          (0, _mobiledocKitUtilsAssert['default'])('EditorDom visitor cannot handle type ' + method, !!this.visitor[method]);\n          this.visitor[method](renderNode, postNode, function () {\n            for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n              args[_key] = arguments[_key];\n            }\n\n            return _this2.visit.apply(_this2, [renderTree].concat(args));\n          });\n          renderNode.markClean();\n          renderNode = this.nodes.shift();\n        }\n      }\n    }]);\n\n    return Renderer;\n  })();\n\n  exports['default'] = Renderer;\n});","define('mobiledoc-kit/renderers/mobiledoc/0-2', ['exports', 'mobiledoc-kit/utils/compiler', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/models/types'], function (exports, _mobiledocKitUtilsCompiler, _mobiledocKitUtilsArrayUtils, _mobiledocKitModelsTypes) {\n  'use strict';\n\n  var _visitor;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  var MOBILEDOC_VERSION = '0.2.0';\n  exports.MOBILEDOC_VERSION = MOBILEDOC_VERSION;\n  var MOBILEDOC_MARKUP_SECTION_TYPE = 1;\n  exports.MOBILEDOC_MARKUP_SECTION_TYPE = MOBILEDOC_MARKUP_SECTION_TYPE;\n  var MOBILEDOC_IMAGE_SECTION_TYPE = 2;\n  exports.MOBILEDOC_IMAGE_SECTION_TYPE = MOBILEDOC_IMAGE_SECTION_TYPE;\n  var MOBILEDOC_LIST_SECTION_TYPE = 3;\n  exports.MOBILEDOC_LIST_SECTION_TYPE = MOBILEDOC_LIST_SECTION_TYPE;\n  var MOBILEDOC_CARD_SECTION_TYPE = 10;\n\n  exports.MOBILEDOC_CARD_SECTION_TYPE = MOBILEDOC_CARD_SECTION_TYPE;\n  var visitor = (_visitor = {}, _defineProperty(_visitor, _mobiledocKitModelsTypes.POST_TYPE, function (node, opcodes) {\n    opcodes.push(['openPost']);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.sections, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarkupSection', node.tagName]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.markers, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.LIST_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openListSection', node.tagName]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.items, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.LIST_ITEM_TYPE, function (node, opcodes) {\n    opcodes.push(['openListItem']);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.markers, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.IMAGE_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openImageSection', node.src]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.CARD_TYPE, function (node, opcodes) {\n    opcodes.push(['openCardSection', node.name, node.payload]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKER_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarker', node.closedMarkups.length, node.value]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.openedMarkups, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKUP_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarkup', node.tagName, (0, _mobiledocKitUtilsArrayUtils.objectToSortedKVArray)(node.attributes)]);\n  }), _visitor);\n\n  var postOpcodeCompiler = {\n    openMarker: function openMarker(closeCount, value) {\n      this.markupMarkerIds = [];\n      this.markers.push([this.markupMarkerIds, closeCount, value || '']);\n    },\n    openMarkupSection: function openMarkupSection(tagName) {\n      this.markers = [];\n      this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers]);\n    },\n    openListSection: function openListSection(tagName) {\n      this.items = [];\n      this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items]);\n    },\n    openListItem: function openListItem() {\n      this.markers = [];\n      this.items.push(this.markers);\n    },\n    openImageSection: function openImageSection(url) {\n      this.sections.push([MOBILEDOC_IMAGE_SECTION_TYPE, url]);\n    },\n    openCardSection: function openCardSection(name, payload) {\n      this.sections.push([MOBILEDOC_CARD_SECTION_TYPE, name, payload]);\n    },\n    openPost: function openPost() {\n      this.markerTypes = [];\n      this.sections = [];\n      this.result = {\n        version: MOBILEDOC_VERSION,\n        sections: [this.markerTypes, this.sections]\n      };\n    },\n    openMarkup: function openMarkup(tagName, attributes) {\n      var index = this._findOrAddMarkerTypeIndex(tagName, attributes);\n      this.markupMarkerIds.push(index);\n    },\n    _findOrAddMarkerTypeIndex: function _findOrAddMarkerTypeIndex(tagName, attributesArray) {\n      if (!this._markerTypeCache) {\n        this._markerTypeCache = {};\n      }\n      var key = tagName + '-' + attributesArray.join('-');\n\n      var index = this._markerTypeCache[key];\n      if (index === undefined) {\n        var markerType = [tagName];\n        if (attributesArray.length) {\n          markerType.push(attributesArray);\n        }\n        this.markerTypes.push(markerType);\n\n        index = this.markerTypes.length - 1;\n        this._markerTypeCache[key] = index;\n      }\n\n      return index;\n    }\n  };\n\n  /**\n   * Render from post -> mobiledoc\n   */\n  exports['default'] = {\n    /**\n     * @param {Post}\n     * @return {Mobiledoc}\n     */\n    render: function render(post) {\n      var opcodes = [];\n      (0, _mobiledocKitUtilsCompiler.visit)(visitor, post, opcodes);\n      var compiler = Object.create(postOpcodeCompiler);\n      (0, _mobiledocKitUtilsCompiler.compile)(compiler, opcodes);\n      return compiler.result;\n    }\n  };\n});","define('mobiledoc-kit/renderers/mobiledoc/0-3-1', ['exports', 'mobiledoc-kit/utils/compiler', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/models/types'], function (exports, _mobiledocKitUtilsCompiler, _mobiledocKitUtilsArrayUtils, _mobiledocKitModelsTypes) {\n  'use strict';\n\n  var _visitor;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  var MOBILEDOC_VERSION = '0.3.1';\n  exports.MOBILEDOC_VERSION = MOBILEDOC_VERSION;\n  var MOBILEDOC_MARKUP_SECTION_TYPE = 1;\n  exports.MOBILEDOC_MARKUP_SECTION_TYPE = MOBILEDOC_MARKUP_SECTION_TYPE;\n  var MOBILEDOC_IMAGE_SECTION_TYPE = 2;\n  exports.MOBILEDOC_IMAGE_SECTION_TYPE = MOBILEDOC_IMAGE_SECTION_TYPE;\n  var MOBILEDOC_LIST_SECTION_TYPE = 3;\n  exports.MOBILEDOC_LIST_SECTION_TYPE = MOBILEDOC_LIST_SECTION_TYPE;\n  var MOBILEDOC_CARD_SECTION_TYPE = 10;\n\n  exports.MOBILEDOC_CARD_SECTION_TYPE = MOBILEDOC_CARD_SECTION_TYPE;\n  var MOBILEDOC_MARKUP_MARKER_TYPE = 0;\n  exports.MOBILEDOC_MARKUP_MARKER_TYPE = MOBILEDOC_MARKUP_MARKER_TYPE;\n  var MOBILEDOC_ATOM_MARKER_TYPE = 1;\n\n  exports.MOBILEDOC_ATOM_MARKER_TYPE = MOBILEDOC_ATOM_MARKER_TYPE;\n  var visitor = (_visitor = {}, _defineProperty(_visitor, _mobiledocKitModelsTypes.POST_TYPE, function (node, opcodes) {\n    opcodes.push(['openPost']);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.sections, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarkupSection', node.tagName]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.markers, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.LIST_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openListSection', node.tagName]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.items, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.LIST_ITEM_TYPE, function (node, opcodes) {\n    opcodes.push(['openListItem']);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.markers, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.IMAGE_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openImageSection', node.src]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.CARD_TYPE, function (node, opcodes) {\n    opcodes.push(['openCardSection', node.name, node.payload]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKER_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarker', node.closedMarkups.length, node.value]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.openedMarkups, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKUP_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarkup', node.tagName, (0, _mobiledocKitUtilsArrayUtils.objectToSortedKVArray)(node.attributes)]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.ATOM_TYPE, function (node, opcodes) {\n    opcodes.push(['openAtom', node.closedMarkups.length, node.name, node.value, node.payload]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.openedMarkups, opcodes);\n  }), _visitor);\n\n  var postOpcodeCompiler = {\n    openMarker: function openMarker(closeCount, value) {\n      this.markupMarkerIds = [];\n      this.markers.push([MOBILEDOC_MARKUP_MARKER_TYPE, this.markupMarkerIds, closeCount, value || '']);\n    },\n    openMarkupSection: function openMarkupSection(tagName) {\n      this.markers = [];\n      this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers]);\n    },\n    openListSection: function openListSection(tagName) {\n      this.items = [];\n      this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items]);\n    },\n    openListItem: function openListItem() {\n      this.markers = [];\n      this.items.push(this.markers);\n    },\n    openImageSection: function openImageSection(url) {\n      this.sections.push([MOBILEDOC_IMAGE_SECTION_TYPE, url]);\n    },\n    openCardSection: function openCardSection(name, payload) {\n      var index = this._addCardTypeIndex(name, payload);\n      this.sections.push([MOBILEDOC_CARD_SECTION_TYPE, index]);\n    },\n    openAtom: function openAtom(closeCount, name, value, payload) {\n      var index = this._addAtomTypeIndex(name, value, payload);\n      this.markupMarkerIds = [];\n      this.markers.push([MOBILEDOC_ATOM_MARKER_TYPE, this.markupMarkerIds, closeCount, index]);\n    },\n    openPost: function openPost() {\n      this.atomTypes = [];\n      this.cardTypes = [];\n      this.markerTypes = [];\n      this.sections = [];\n      this.result = {\n        version: MOBILEDOC_VERSION,\n        atoms: this.atomTypes,\n        cards: this.cardTypes,\n        markups: this.markerTypes,\n        sections: this.sections\n      };\n    },\n    openMarkup: function openMarkup(tagName, attributes) {\n      var index = this._findOrAddMarkerTypeIndex(tagName, attributes);\n      this.markupMarkerIds.push(index);\n    },\n    _addCardTypeIndex: function _addCardTypeIndex(cardName, payload) {\n      var cardType = [cardName, payload];\n      this.cardTypes.push(cardType);\n      return this.cardTypes.length - 1;\n    },\n    _addAtomTypeIndex: function _addAtomTypeIndex(atomName, atomValue, payload) {\n      var atomType = [atomName, atomValue, payload];\n      this.atomTypes.push(atomType);\n      return this.atomTypes.length - 1;\n    },\n    _findOrAddMarkerTypeIndex: function _findOrAddMarkerTypeIndex(tagName, attributesArray) {\n      if (!this._markerTypeCache) {\n        this._markerTypeCache = {};\n      }\n      var key = tagName + '-' + attributesArray.join('-');\n\n      var index = this._markerTypeCache[key];\n      if (index === undefined) {\n        var markerType = [tagName];\n        if (attributesArray.length) {\n          markerType.push(attributesArray);\n        }\n        this.markerTypes.push(markerType);\n\n        index = this.markerTypes.length - 1;\n        this._markerTypeCache[key] = index;\n      }\n\n      return index;\n    }\n  };\n\n  /**\n   * Render from post -> mobiledoc\n   */\n  exports['default'] = {\n    /**\n     * @param {Post}\n     * @return {Mobiledoc}\n     */\n    render: function render(post) {\n      var opcodes = [];\n      (0, _mobiledocKitUtilsCompiler.visit)(visitor, post, opcodes);\n      var compiler = Object.create(postOpcodeCompiler);\n      (0, _mobiledocKitUtilsCompiler.compile)(compiler, opcodes);\n      return compiler.result;\n    }\n  };\n});","define('mobiledoc-kit/renderers/mobiledoc/0-3-2', ['exports', 'mobiledoc-kit/utils/compiler', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/models/types'], function (exports, _mobiledocKitUtilsCompiler, _mobiledocKitUtilsArrayUtils, _mobiledocKitModelsTypes) {\n  'use strict';\n\n  var _visitor;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  var MOBILEDOC_VERSION = '0.3.2';\n  exports.MOBILEDOC_VERSION = MOBILEDOC_VERSION;\n  var MOBILEDOC_MARKUP_SECTION_TYPE = 1;\n  exports.MOBILEDOC_MARKUP_SECTION_TYPE = MOBILEDOC_MARKUP_SECTION_TYPE;\n  var MOBILEDOC_IMAGE_SECTION_TYPE = 2;\n  exports.MOBILEDOC_IMAGE_SECTION_TYPE = MOBILEDOC_IMAGE_SECTION_TYPE;\n  var MOBILEDOC_LIST_SECTION_TYPE = 3;\n  exports.MOBILEDOC_LIST_SECTION_TYPE = MOBILEDOC_LIST_SECTION_TYPE;\n  var MOBILEDOC_CARD_SECTION_TYPE = 10;\n\n  exports.MOBILEDOC_CARD_SECTION_TYPE = MOBILEDOC_CARD_SECTION_TYPE;\n  var MOBILEDOC_MARKUP_MARKER_TYPE = 0;\n  exports.MOBILEDOC_MARKUP_MARKER_TYPE = MOBILEDOC_MARKUP_MARKER_TYPE;\n  var MOBILEDOC_ATOM_MARKER_TYPE = 1;\n\n  exports.MOBILEDOC_ATOM_MARKER_TYPE = MOBILEDOC_ATOM_MARKER_TYPE;\n  var visitor = (_visitor = {}, _defineProperty(_visitor, _mobiledocKitModelsTypes.POST_TYPE, function (node, opcodes) {\n    opcodes.push(['openPost']);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.sections, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarkupSection', node.tagName, (0, _mobiledocKitUtilsArrayUtils.objectToSortedKVArray)(node.attributes)]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.markers, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.LIST_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openListSection', node.tagName, (0, _mobiledocKitUtilsArrayUtils.objectToSortedKVArray)(node.attributes)]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.items, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.LIST_ITEM_TYPE, function (node, opcodes) {\n    opcodes.push(['openListItem']);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.markers, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.IMAGE_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openImageSection', node.src]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.CARD_TYPE, function (node, opcodes) {\n    opcodes.push(['openCardSection', node.name, node.payload]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKER_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarker', node.closedMarkups.length, node.value]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.openedMarkups, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKUP_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarkup', node.tagName, (0, _mobiledocKitUtilsArrayUtils.objectToSortedKVArray)(node.attributes)]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.ATOM_TYPE, function (node, opcodes) {\n    opcodes.push(['openAtom', node.closedMarkups.length, node.name, node.value, node.payload]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.openedMarkups, opcodes);\n  }), _visitor);\n\n  var postOpcodeCompiler = {\n    openMarker: function openMarker(closeCount, value) {\n      this.markupMarkerIds = [];\n      this.markers.push([MOBILEDOC_MARKUP_MARKER_TYPE, this.markupMarkerIds, closeCount, value || '']);\n    },\n    openMarkupSection: function openMarkupSection(tagName, attributes) {\n      this.markers = [];\n      if (attributes && attributes.length !== 0) {\n        this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers, attributes]);\n      } else {\n        this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers]);\n      }\n    },\n    openListSection: function openListSection(tagName, attributes) {\n      this.items = [];\n      if (attributes && attributes.length !== 0) {\n        this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items, attributes]);\n      } else {\n        this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items]);\n      }\n    },\n    openListItem: function openListItem() {\n      this.markers = [];\n      this.items.push(this.markers);\n    },\n    openImageSection: function openImageSection(url) {\n      this.sections.push([MOBILEDOC_IMAGE_SECTION_TYPE, url]);\n    },\n    openCardSection: function openCardSection(name, payload) {\n      var index = this._addCardTypeIndex(name, payload);\n      this.sections.push([MOBILEDOC_CARD_SECTION_TYPE, index]);\n    },\n    openAtom: function openAtom(closeCount, name, value, payload) {\n      var index = this._addAtomTypeIndex(name, value, payload);\n      this.markupMarkerIds = [];\n      this.markers.push([MOBILEDOC_ATOM_MARKER_TYPE, this.markupMarkerIds, closeCount, index]);\n    },\n    openPost: function openPost() {\n      this.atomTypes = [];\n      this.cardTypes = [];\n      this.markerTypes = [];\n      this.sections = [];\n      this.result = {\n        version: MOBILEDOC_VERSION,\n        atoms: this.atomTypes,\n        cards: this.cardTypes,\n        markups: this.markerTypes,\n        sections: this.sections\n      };\n    },\n    openMarkup: function openMarkup(tagName, attributes) {\n      var index = this._findOrAddMarkerTypeIndex(tagName, attributes);\n      this.markupMarkerIds.push(index);\n    },\n    _addCardTypeIndex: function _addCardTypeIndex(cardName, payload) {\n      var cardType = [cardName, payload];\n      this.cardTypes.push(cardType);\n      return this.cardTypes.length - 1;\n    },\n    _addAtomTypeIndex: function _addAtomTypeIndex(atomName, atomValue, payload) {\n      var atomType = [atomName, atomValue, payload];\n      this.atomTypes.push(atomType);\n      return this.atomTypes.length - 1;\n    },\n    _findOrAddMarkerTypeIndex: function _findOrAddMarkerTypeIndex(tagName, attributesArray) {\n      if (!this._markerTypeCache) {\n        this._markerTypeCache = {};\n      }\n      var key = tagName + '-' + attributesArray.join('-');\n\n      var index = this._markerTypeCache[key];\n      if (index === undefined) {\n        var markerType = [tagName];\n        if (attributesArray.length) {\n          markerType.push(attributesArray);\n        }\n        this.markerTypes.push(markerType);\n\n        index = this.markerTypes.length - 1;\n        this._markerTypeCache[key] = index;\n      }\n\n      return index;\n    }\n  };\n\n  /**\n   * Render from post -> mobiledoc\n   */\n  exports['default'] = {\n    /**\n     * @param {Post}\n     * @return {Mobiledoc}\n     */\n    render: function render(post) {\n      var opcodes = [];\n      (0, _mobiledocKitUtilsCompiler.visit)(visitor, post, opcodes);\n      var compiler = Object.create(postOpcodeCompiler);\n      (0, _mobiledocKitUtilsCompiler.compile)(compiler, opcodes);\n      return compiler.result;\n    }\n  };\n});","define('mobiledoc-kit/renderers/mobiledoc/0-3', ['exports', 'mobiledoc-kit/utils/compiler', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/models/types'], function (exports, _mobiledocKitUtilsCompiler, _mobiledocKitUtilsArrayUtils, _mobiledocKitModelsTypes) {\n  'use strict';\n\n  var _visitor;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  var MOBILEDOC_VERSION = '0.3.0';\n  exports.MOBILEDOC_VERSION = MOBILEDOC_VERSION;\n  var MOBILEDOC_MARKUP_SECTION_TYPE = 1;\n  exports.MOBILEDOC_MARKUP_SECTION_TYPE = MOBILEDOC_MARKUP_SECTION_TYPE;\n  var MOBILEDOC_IMAGE_SECTION_TYPE = 2;\n  exports.MOBILEDOC_IMAGE_SECTION_TYPE = MOBILEDOC_IMAGE_SECTION_TYPE;\n  var MOBILEDOC_LIST_SECTION_TYPE = 3;\n  exports.MOBILEDOC_LIST_SECTION_TYPE = MOBILEDOC_LIST_SECTION_TYPE;\n  var MOBILEDOC_CARD_SECTION_TYPE = 10;\n\n  exports.MOBILEDOC_CARD_SECTION_TYPE = MOBILEDOC_CARD_SECTION_TYPE;\n  var MOBILEDOC_MARKUP_MARKER_TYPE = 0;\n  exports.MOBILEDOC_MARKUP_MARKER_TYPE = MOBILEDOC_MARKUP_MARKER_TYPE;\n  var MOBILEDOC_ATOM_MARKER_TYPE = 1;\n\n  exports.MOBILEDOC_ATOM_MARKER_TYPE = MOBILEDOC_ATOM_MARKER_TYPE;\n  var visitor = (_visitor = {}, _defineProperty(_visitor, _mobiledocKitModelsTypes.POST_TYPE, function (node, opcodes) {\n    opcodes.push(['openPost']);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.sections, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKUP_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarkupSection', node.tagName]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.markers, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.LIST_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openListSection', node.tagName]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.items, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.LIST_ITEM_TYPE, function (node, opcodes) {\n    opcodes.push(['openListItem']);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.markers, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.IMAGE_SECTION_TYPE, function (node, opcodes) {\n    opcodes.push(['openImageSection', node.src]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.CARD_TYPE, function (node, opcodes) {\n    opcodes.push(['openCardSection', node.name, node.payload]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKER_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarker', node.closedMarkups.length, node.value]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.openedMarkups, opcodes);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.MARKUP_TYPE, function (node, opcodes) {\n    opcodes.push(['openMarkup', node.tagName, (0, _mobiledocKitUtilsArrayUtils.objectToSortedKVArray)(node.attributes)]);\n  }), _defineProperty(_visitor, _mobiledocKitModelsTypes.ATOM_TYPE, function (node, opcodes) {\n    opcodes.push(['openAtom', node.closedMarkups.length, node.name, node.value, node.payload]);\n    (0, _mobiledocKitUtilsCompiler.visitArray)(visitor, node.openedMarkups, opcodes);\n  }), _visitor);\n\n  var postOpcodeCompiler = {\n    openMarker: function openMarker(closeCount, value) {\n      this.markupMarkerIds = [];\n      this.markers.push([MOBILEDOC_MARKUP_MARKER_TYPE, this.markupMarkerIds, closeCount, value || '']);\n    },\n    openMarkupSection: function openMarkupSection(tagName) {\n      this.markers = [];\n      this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers]);\n    },\n    openListSection: function openListSection(tagName) {\n      this.items = [];\n      this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items]);\n    },\n    openListItem: function openListItem() {\n      this.markers = [];\n      this.items.push(this.markers);\n    },\n    openImageSection: function openImageSection(url) {\n      this.sections.push([MOBILEDOC_IMAGE_SECTION_TYPE, url]);\n    },\n    openCardSection: function openCardSection(name, payload) {\n      var index = this._addCardTypeIndex(name, payload);\n      this.sections.push([MOBILEDOC_CARD_SECTION_TYPE, index]);\n    },\n    openAtom: function openAtom(closeCount, name, value, payload) {\n      var index = this._addAtomTypeIndex(name, value, payload);\n      this.markupMarkerIds = [];\n      this.markers.push([MOBILEDOC_ATOM_MARKER_TYPE, this.markupMarkerIds, closeCount, index]);\n    },\n    openPost: function openPost() {\n      this.atomTypes = [];\n      this.cardTypes = [];\n      this.markerTypes = [];\n      this.sections = [];\n      this.result = {\n        version: MOBILEDOC_VERSION,\n        atoms: this.atomTypes,\n        cards: this.cardTypes,\n        markups: this.markerTypes,\n        sections: this.sections\n      };\n    },\n    openMarkup: function openMarkup(tagName, attributes) {\n      var index = this._findOrAddMarkerTypeIndex(tagName, attributes);\n      this.markupMarkerIds.push(index);\n    },\n    _addCardTypeIndex: function _addCardTypeIndex(cardName, payload) {\n      var cardType = [cardName, payload];\n      this.cardTypes.push(cardType);\n      return this.cardTypes.length - 1;\n    },\n    _addAtomTypeIndex: function _addAtomTypeIndex(atomName, atomValue, payload) {\n      var atomType = [atomName, atomValue, payload];\n      this.atomTypes.push(atomType);\n      return this.atomTypes.length - 1;\n    },\n    _findOrAddMarkerTypeIndex: function _findOrAddMarkerTypeIndex(tagName, attributesArray) {\n      if (!this._markerTypeCache) {\n        this._markerTypeCache = {};\n      }\n      var key = tagName + '-' + attributesArray.join('-');\n\n      var index = this._markerTypeCache[key];\n      if (index === undefined) {\n        var markerType = [tagName];\n        if (attributesArray.length) {\n          markerType.push(attributesArray);\n        }\n        this.markerTypes.push(markerType);\n\n        index = this.markerTypes.length - 1;\n        this._markerTypeCache[key] = index;\n      }\n\n      return index;\n    }\n  };\n\n  /**\n   * Render from post -> mobiledoc\n   */\n  exports['default'] = {\n    /**\n     * @param {Post}\n     * @return {Mobiledoc}\n     */\n    render: function render(post) {\n      var opcodes = [];\n      (0, _mobiledocKitUtilsCompiler.visit)(visitor, post, opcodes);\n      var compiler = Object.create(postOpcodeCompiler);\n      (0, _mobiledocKitUtilsCompiler.compile)(compiler, opcodes);\n      return compiler.result;\n    }\n  };\n});","define('mobiledoc-kit/renderers/mobiledoc', ['exports', 'mobiledoc-kit/renderers/mobiledoc/0-2', 'mobiledoc-kit/renderers/mobiledoc/0-3', 'mobiledoc-kit/renderers/mobiledoc/0-3-1', 'mobiledoc-kit/renderers/mobiledoc/0-3-2', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitRenderersMobiledoc02, _mobiledocKitRenderersMobiledoc03, _mobiledocKitRenderersMobiledoc031, _mobiledocKitRenderersMobiledoc032, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var MOBILEDOC_VERSION = _mobiledocKitRenderersMobiledoc032.MOBILEDOC_VERSION;\n\n  exports.MOBILEDOC_VERSION = MOBILEDOC_VERSION;\n  exports['default'] = {\n    render: function render(post, version) {\n      switch (version) {\n        case _mobiledocKitRenderersMobiledoc02.MOBILEDOC_VERSION:\n          return _mobiledocKitRenderersMobiledoc02['default'].render(post);\n        case _mobiledocKitRenderersMobiledoc03.MOBILEDOC_VERSION:\n          return _mobiledocKitRenderersMobiledoc03['default'].render(post);\n        case _mobiledocKitRenderersMobiledoc031.MOBILEDOC_VERSION:\n          return _mobiledocKitRenderersMobiledoc031['default'].render(post);\n        case undefined:\n        case null:\n        case _mobiledocKitRenderersMobiledoc032.MOBILEDOC_VERSION:\n          return _mobiledocKitRenderersMobiledoc032['default'].render(post);\n        default:\n          (0, _mobiledocKitUtilsAssert['default'])('Unknown version of mobiledoc renderer requested: ' + version, false);\n      }\n    }\n  };\n});","define(\"mobiledoc-kit/utils/array-utils\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  function detect(enumerable, callback) {\n    if (enumerable.detect) {\n      return enumerable.detect(callback);\n    } else {\n      for (var i = 0; i < enumerable.length; i++) {\n        if (callback(enumerable[i])) {\n          return enumerable[i];\n        }\n      }\n    }\n  }\n\n  function any(enumerable, callback) {\n    if (enumerable.any) {\n      return enumerable.any(callback);\n    }\n\n    for (var i = 0; i < enumerable.length; i++) {\n      if (callback(enumerable[i])) {\n        return true;\n      }\n    }\n\n    return false;\n  }\n\n  function every(enumerable, callback) {\n    if (enumerable.every) {\n      return enumerable.every(callback);\n    }\n\n    for (var i = 0; i < enumerable.length; i++) {\n      if (!callback(enumerable[i])) {\n        return false;\n      }\n    }\n    return true;\n  }\n\n  function toArray(arrayLike) {\n    return Array.prototype.slice.call(arrayLike);\n  }\n\n  /**\n   * Useful for array-like things that aren't\n   * actually arrays, like NodeList\n   * @private\n   */\n  function forEach(enumerable, callback) {\n    if (enumerable.forEach) {\n      enumerable.forEach(callback);\n    } else {\n      for (var i = 0; i < enumerable.length; i++) {\n        callback(enumerable[i], i);\n      }\n    }\n  }\n\n  function filter(enumerable, conditionFn) {\n    var filtered = [];\n    forEach(enumerable, function (i) {\n      if (conditionFn(i)) {\n        filtered.push(i);\n      }\n    });\n    return filtered;\n  }\n\n  /**\n   * @return {Integer} the number of items that are the same, starting from the 0th index, in a and b\n   * @private\n   */\n  function commonItemLength(listA, listB) {\n    var offset = 0;\n    while (offset < listA.length && offset < listB.length) {\n      if (listA[offset] !== listB[offset]) {\n        break;\n      }\n      offset++;\n    }\n    return offset;\n  }\n\n  /**\n   * @return {Array} the items that are the same, starting from the 0th index, in a and b\n   * @private\n   */\n  function commonItems(listA, listB) {\n    var offset = 0;\n    while (offset < listA.length && offset < listB.length) {\n      if (listA[offset] !== listB[offset]) {\n        break;\n      }\n      offset++;\n    }\n    return listA.slice(0, offset);\n  }\n\n  // return new array without falsy items like ruby's `compact`\n  function compact(enumerable) {\n    return filter(enumerable, function (i) {\n      return !!i;\n    });\n  }\n\n  function reduce(enumerable, callback, initialValue) {\n    var previousValue = initialValue;\n    forEach(enumerable, function (val, index) {\n      previousValue = callback(previousValue, val, index);\n    });\n    return previousValue;\n  }\n\n  /**\n   * @param {Array} array of key1,value1,key2,value2,...\n   * @return {Object} {key1:value1, key2:value2, ...}\n   * @private\n   */\n  function kvArrayToObject(array) {\n    var obj = {};\n    for (var i = 0; i < array.length; i += 2) {\n      var key = array[i];\n      var value = array[i + 1];\n\n      obj[key] = value;\n    }\n    return obj;\n  }\n\n  function objectToSortedKVArray(obj) {\n    var keys = Object.keys(obj).sort();\n    var result = [];\n    keys.forEach(function (k) {\n      result.push(k);\n      result.push(obj[k]);\n    });\n    return result;\n  }\n\n  // check shallow equality of two non-nested arrays\n  function isArrayEqual(arr1, arr2) {\n    var l1 = arr1.length,\n        l2 = arr2.length;\n    if (l1 !== l2) {\n      return false;\n    }\n\n    for (var i = 0; i < l1; i++) {\n      if (arr1[i] !== arr2[i]) {\n        return false;\n      }\n    }\n    return true;\n  }\n\n  // return an object with only the valid keys\n  function filterObject(object) {\n    var validKeys = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n\n    var result = {};\n    forEach(filter(Object.keys(object), function (key) {\n      return validKeys.indexOf(key) !== -1;\n    }), function (key) {\n      return result[key] = object[key];\n    });\n    return result;\n  }\n\n  function contains(array, item) {\n    return array.indexOf(item) !== -1;\n  }\n\n  function values(object) {\n    return Object.keys(object).map(function (key) {\n      return object[key];\n    });\n  }\n\n  exports.detect = detect;\n  exports.forEach = forEach;\n  exports.any = any;\n  exports.every = every;\n  exports.filter = filter;\n  exports.commonItemLength = commonItemLength;\n  exports.commonItems = commonItems;\n  exports.compact = compact;\n  exports.reduce = reduce;\n  exports.objectToSortedKVArray = objectToSortedKVArray;\n  exports.kvArrayToObject = kvArrayToObject;\n  exports.isArrayEqual = isArrayEqual;\n  exports.toArray = toArray;\n  exports.filterObject = filterObject;\n  exports.contains = contains;\n  exports.values = values;\n});","define('mobiledoc-kit/utils/assert', ['exports', 'mobiledoc-kit/utils/mobiledoc-error'], function (exports, _mobiledocKitUtilsMobiledocError) {\n  'use strict';\n\n  exports['default'] = function (message, conditional) {\n    if (!conditional) {\n      throw new _mobiledocKitUtilsMobiledocError['default'](message);\n    }\n  };\n});","define('mobiledoc-kit/utils/browser', ['exports'], function (exports) {\n  'use strict';\n\n  exports['default'] = {\n    isMac: function isMac() {\n      return typeof window !== 'undefined' && window.navigator && /Mac/.test(window.navigator.platform);\n    },\n    isWin: function isWin() {\n      return typeof window !== 'undefined' && window.navigator && /Win/.test(window.navigator.platform);\n    },\n    isChrome: function isChrome() {\n      return typeof window !== 'undefined' && 'chrome' in window;\n    }\n  };\n});","define('mobiledoc-kit/utils/characters', ['exports'], function (exports) {\n  'use strict';\n\n  var TAB = '\\t';\n  exports.TAB = TAB;\n  var ENTER = '\\n';\n  exports.ENTER = ENTER;\n  var SPACE = ' ';\n  exports.SPACE = SPACE;\n});","define('mobiledoc-kit/utils/compiler', ['exports', 'mobiledoc-kit/utils/array-utils', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsArrayUtils, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  exports.visit = visit;\n  exports.compile = compile;\n  exports.visitArray = visitArray;\n\n  function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); }\n\n  function visit(visitor, node, opcodes) {\n    var method = node.type;\n    (0, _mobiledocKitUtilsAssert['default'])('Cannot visit unknown type ' + method, !!visitor[method]);\n    visitor[method](node, opcodes);\n  }\n\n  function compile(compiler, opcodes) {\n    for (var i = 0, l = opcodes.length; i < l; i++) {\n      var _opcodes$i = _toArray(opcodes[i]);\n\n      var method = _opcodes$i[0];\n\n      var params = _opcodes$i.slice(1);\n\n      var _length = params.length;\n      if (_length === 0) {\n        compiler[method].call(compiler);\n      } else if (_length === 1) {\n        compiler[method].call(compiler, params[0]);\n      } else if (_length === 2) {\n        compiler[method].call(compiler, params[0], params[1]);\n      } else {\n        compiler[method].apply(compiler, params);\n      }\n    }\n  }\n\n  function visitArray(visitor, nodes, opcodes) {\n    if (!nodes || nodes.length === 0) {\n      return;\n    }\n    (0, _mobiledocKitUtilsArrayUtils.forEach)(nodes, function (node) {\n      visit(visitor, node, opcodes);\n    });\n  }\n});","define(\"mobiledoc-kit/utils/copy\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  function shallowCopyObject(object) {\n    var copy = {};\n    Object.keys(object).forEach(function (key) {\n      copy[key] = object[key];\n    });\n    return copy;\n  }\n\n  exports.shallowCopyObject = shallowCopyObject;\n});","define('mobiledoc-kit/utils/cursor', ['exports', 'mobiledoc-kit/utils/selection-utils', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/cursor/position', 'mobiledoc-kit/utils/cursor/range', 'mobiledoc-kit/utils/key'], function (exports, _mobiledocKitUtilsSelectionUtils, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsCursorPosition, _mobiledocKitUtilsCursorRange, _mobiledocKitUtilsKey) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  exports.Position = _mobiledocKitUtilsCursorPosition['default'];\n  exports.Range = _mobiledocKitUtilsCursorRange['default'];\n\n  var Cursor = (function () {\n    function Cursor(editor) {\n      _classCallCheck(this, Cursor);\n\n      this.editor = editor;\n      this.renderTree = editor._renderTree;\n      this.post = editor.post;\n    }\n\n    _createClass(Cursor, [{\n      key: 'clearSelection',\n      value: function clearSelection() {\n        (0, _mobiledocKitUtilsSelectionUtils.clearSelection)();\n      }\n\n      /**\n       * @return {Boolean} true when there is either a collapsed cursor in the\n       * editor's element or a selection that is contained in the editor's element\n       */\n    }, {\n      key: 'hasCursor',\n      value: function hasCursor() {\n        return this.editor.hasRendered && (this._hasCollapsedSelection() || this._hasSelection());\n      }\n    }, {\n      key: 'hasSelection',\n      value: function hasSelection() {\n        return this.editor.hasRendered && this._hasSelection();\n      }\n\n      /**\n       * @return {Boolean} Can the cursor be on this element?\n       */\n    }, {\n      key: 'isAddressable',\n      value: function isAddressable(element) {\n        var renderTree = this.renderTree;\n\n        var renderNode = renderTree.findRenderNodeFromElement(element);\n        if (renderNode && renderNode.postNode.isCardSection) {\n          var renderedElement = renderNode.element;\n\n          // card sections have addressable text nodes containing &zwnj;\n          // as their first and last child\n          if (element !== renderedElement && element !== renderedElement.firstChild && element !== renderedElement.lastChild) {\n            return false;\n          }\n        }\n\n        return !!renderNode;\n      }\n\n      /*\n       * @return {Range} Cursor#Range object\n       */\n    }, {\n      key: '_findNodeForPosition',\n      value: function _findNodeForPosition(position) {\n        var section = position.section;\n\n        var node = undefined,\n            offset = undefined;\n        if (section.isCardSection) {\n          offset = 0;\n          if (position.offset === 0) {\n            node = section.renderNode.element.firstChild;\n          } else {\n            node = section.renderNode.element.lastChild;\n          }\n        } else if (section.isBlank) {\n          node = section.renderNode.cursorElement;\n          offset = 0;\n        } else {\n          var marker = position.marker;\n          var offsetInMarker = position.offsetInMarker;\n\n          if (marker.isAtom) {\n            if (offsetInMarker > 0) {\n              // FIXME -- if there is a next marker, focus on it?\n              offset = 0;\n              node = marker.renderNode.tailTextNode;\n            } else {\n              offset = 0;\n              node = marker.renderNode.headTextNode;\n            }\n          } else {\n            node = marker.renderNode.element;\n            offset = offsetInMarker;\n          }\n        }\n\n        return { node: node, offset: offset };\n      }\n    }, {\n      key: 'selectRange',\n      value: function selectRange(range) {\n        if (range.isBlank) {\n          this.clearSelection();\n          return;\n        }\n\n        var head = range.head;\n        var tail = range.tail;\n        var direction = range.direction;\n\n        var _findNodeForPosition2 = this._findNodeForPosition(head);\n\n        var headNode = _findNodeForPosition2.node;\n        var headOffset = _findNodeForPosition2.offset;\n\n        var _findNodeForPosition3 = this._findNodeForPosition(tail);\n\n        var tailNode = _findNodeForPosition3.node;\n        var tailOffset = _findNodeForPosition3.offset;\n\n        this._moveToNode(headNode, headOffset, tailNode, tailOffset, direction);\n\n        // Firefox sometimes doesn't keep focus in the editor after adding a card\n        this.editor._ensureFocus();\n      }\n    }, {\n      key: 'selectedText',\n      value: function selectedText() {\n        // FIXME remove this\n        return this.selection.toString();\n      }\n\n      /**\n       * @param {textNode} node\n       * @param {integer} offset\n       * @param {textNode} endNode\n       * @param {integer} endOffset\n       * @param {integer} direction forward or backward, default forward\n       * @private\n       */\n    }, {\n      key: '_moveToNode',\n      value: function _moveToNode(node, offset, endNode, endOffset) {\n        var direction = arguments.length <= 4 || arguments[4] === undefined ? _mobiledocKitUtilsKey.DIRECTION.FORWARD : arguments[4];\n\n        this.clearSelection();\n\n        if (direction === _mobiledocKitUtilsKey.DIRECTION.BACKWARD) {\n          var _ref = [endNode, endOffset, node, offset];\n          node = _ref[0];\n          offset = _ref[1];\n          endNode = _ref[2];\n          endOffset = _ref[3];\n        }\n\n        var range = document.createRange();\n        range.setStart(node, offset);\n        if (direction === _mobiledocKitUtilsKey.DIRECTION.BACKWARD && !!this.selection.extend) {\n          this.selection.addRange(range);\n          this.selection.extend(endNode, endOffset);\n        } else {\n          range.setEnd(endNode, endOffset);\n          this.selection.addRange(range);\n        }\n      }\n    }, {\n      key: '_hasSelection',\n      value: function _hasSelection() {\n        var element = this.editor.element;\n        var _selectionRange = this._selectionRange;\n\n        if (!_selectionRange || _selectionRange.collapsed) {\n          return false;\n        }\n\n        return (0, _mobiledocKitUtilsDomUtils.containsNode)(element, this.selection.anchorNode) && (0, _mobiledocKitUtilsDomUtils.containsNode)(element, this.selection.focusNode);\n      }\n    }, {\n      key: '_hasCollapsedSelection',\n      value: function _hasCollapsedSelection() {\n        var _selectionRange = this._selectionRange;\n\n        if (!_selectionRange) {\n          return false;\n        }\n\n        var element = this.editor.element;\n        return (0, _mobiledocKitUtilsDomUtils.containsNode)(element, this.selection.anchorNode);\n      }\n    }, {\n      key: 'offsets',\n      get: function get() {\n        if (!this.hasCursor()) {\n          return _mobiledocKitUtilsCursorRange['default'].blankRange();\n        }\n\n        var selection = this.selection;\n        var renderTree = this.renderTree;\n\n        var parentNode = this.editor.element;\n        selection = (0, _mobiledocKitUtilsSelectionUtils.constrainSelectionTo)(selection, parentNode);\n\n        var _comparePosition = (0, _mobiledocKitUtilsSelectionUtils.comparePosition)(selection);\n\n        var headNode = _comparePosition.headNode;\n        var headOffset = _comparePosition.headOffset;\n        var tailNode = _comparePosition.tailNode;\n        var tailOffset = _comparePosition.tailOffset;\n        var direction = _comparePosition.direction;\n\n        var headPosition = _mobiledocKitUtilsCursorPosition['default'].fromNode(renderTree, headNode, headOffset);\n        var tailPosition = _mobiledocKitUtilsCursorPosition['default'].fromNode(renderTree, tailNode, tailOffset);\n\n        return new _mobiledocKitUtilsCursorRange['default'](headPosition, tailPosition, direction);\n      }\n    }, {\n      key: 'selection',\n      get: function get() {\n        return window.getSelection();\n      }\n    }, {\n      key: '_selectionRange',\n      get: function get() {\n        var selection = this.selection;\n\n        if (selection.rangeCount === 0) {\n          return null;\n        }\n        return selection.getRangeAt(0);\n      }\n    }]);\n\n    return Cursor;\n  })();\n\n  exports['default'] = Cursor;\n});","define('mobiledoc-kit/utils/cursor/position', ['exports', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/assert', 'mobiledoc-kit/models/marker', 'mobiledoc-kit/utils/selection-utils', 'mobiledoc-kit/utils/key', 'mobiledoc-kit/utils/cursor/range'], function (exports, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsAssert, _mobiledocKitModelsMarker, _mobiledocKitUtilsSelectionUtils, _mobiledocKitUtilsKey, _mobiledocKitUtilsCursorRange) {\n  'use strict';\n\n  var _get = function get(_x5, _x6, _x7) { var _again = true; _function: while (_again) { var object = _x5, property = _x6, receiver = _x7; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x5 = parent; _x6 = property; _x7 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var FORWARD = _mobiledocKitUtilsKey.DIRECTION.FORWARD;\n  var BACKWARD = _mobiledocKitUtilsKey.DIRECTION.BACKWARD;\n\n  // generated via http://xregexp.com/ to cover chars that \\w misses\n  // (new XRegExp('\\\\p{Alphabetic}|[0-9]|_|:')).toString()\n  var WORD_CHAR_REGEX = /[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͅͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևְ-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-ٗٙ-ٟٮ-ۓە-ۜۡ-ۭۨ-ۯۺ-ۼۿܐ-ܿݍ-ޱߊ-ߪߴߵߺࠀ-ࠗࠚ-ࠬࡀ-ࡘࢠ-ࢴࣣ-ࣰࣩ-ऻऽ-ौॎ-ॐॕ-ॣॱ-ঃঅ-ঌএঐও-নপ-রলশ-হঽ-ৄেৈোৌৎৗড়ঢ়য়-ৣৰৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਾ-ੂੇੈੋੌੑਖ਼-ੜਫ਼ੰ-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽ-ૅે-ૉોૌૐૠ-ૣૹଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽ-ୄେୈୋୌୖୗଡ଼ଢ଼ୟ-ୣୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-ௌௐௗఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-ౌౕౖౘ-ౚౠ-ౣಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೄೆ-ೈೊ-ೌೕೖೞೠ-ೣೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൌൎൗൟ-ൣൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆා-ුූෘ-ෟෲෳก-ฺเ-ๆํກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆໍໜ-ໟༀཀ-ཇཉ-ཬཱ-ཱྀྈ-ྗྙ-ྼက-ံးျ-ဿၐ-ၢၥ-ၨၮ-ႆႎႜႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፟ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜓᜠ-ᜳᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-ឳា-ៈៗៜᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-ᤸᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨛᨠ-ᩞᩡ-ᩴᪧᬀ-ᬳᬵ-ᭃᭅ-ᭋᮀ-ᮩᮬ-ᮯᮺ-ᯥᯧ-ᯱᰀ-ᰵᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳳᳵᳶᴀ-ᶿᷧ-ᷴḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙴ-ꙻꙿ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠧꡀ-ꡳꢀ-ꣃꣲ-ꣷꣻꣽꤊ-ꤪꤰ-ꥒꥠ-ꥼꦀ-ꦲꦴ-ꦿꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨶꩀ-ꩍꩠ-ꩶꩺꩾ-ꪾꫀꫂꫛ-ꫝꫠ-ꫯꫲ-ꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯪ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ]|[0-9]|_|:/;\n\n  function findParentSectionFromNode(renderTree, node) {\n    var renderNode = renderTree.findRenderNodeFromElement(node, function (renderNode) {\n      return renderNode.postNode.isSection;\n    });\n\n    return renderNode && renderNode.postNode;\n  }\n\n  function findOffsetInMarkerable(markerable, node, offset) {\n    var offsetInSection = 0;\n    var marker = markerable.markers.head;\n    while (marker) {\n      var markerNode = marker.renderNode.element;\n      if (markerNode === node) {\n        return offsetInSection + offset;\n      } else if (marker.isAtom) {\n        if (marker.renderNode.headTextNode === node) {\n          return offsetInSection;\n        } else if (marker.renderNode.tailTextNode === node) {\n          return offsetInSection + 1;\n        }\n      }\n\n      offsetInSection += marker.length;\n      marker = marker.next;\n    }\n\n    return offsetInSection;\n  }\n\n  function findOffsetInSection(section, node, offset) {\n    if (section.isMarkerable) {\n      return findOffsetInMarkerable(section, node, offset);\n    } else {\n      (0, _mobiledocKitUtilsAssert['default'])('findOffsetInSection must be called with markerable or card section', section.isCardSection);\n\n      var wrapperNode = section.renderNode.element;\n      var endTextNode = wrapperNode.lastChild;\n      if (node === endTextNode) {\n        return 1;\n      }\n      return 0;\n    }\n  }\n\n  var Position = undefined,\n      BlankPosition = undefined;\n\n  Position = (function () {\n    /**\n     * A position is a logical location (zero-width, or \"collapsed\") in a post,\n     * typically between two characters in a section.\n     * Two positions (a head and a tail) make up a {@link Range}.\n     * @constructor\n     */\n\n    function Position(section) {\n      var offset = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];\n      var isBlank = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2];\n\n      _classCallCheck(this, Position);\n\n      if (!isBlank) {\n        (0, _mobiledocKitUtilsAssert['default'])('Position must have a section that is addressable by the cursor', section && section.isLeafSection);\n        (0, _mobiledocKitUtilsAssert['default'])('Position must have numeric offset', typeof offset === 'number');\n      }\n\n      this.section = section;\n      this.offset = offset;\n      this.isBlank = isBlank;\n    }\n\n    /**\n     * @param {integer} x x-position in current viewport\n     * @param {integer} y y-position in current viewport\n     * @param {Editor} editor\n     * @return {Position|null}\n     */\n\n    _createClass(Position, [{\n      key: 'toRange',\n\n      /**\n       * Returns a range from this position to the given tail. If no explicit\n       * tail is given this returns a collapsed range focused on this position.\n       * @param {Position} [tail=this] The ending position\n       * @return {Range}\n       * @public\n       */\n      value: function toRange() {\n        var tail = arguments.length <= 0 || arguments[0] === undefined ? this : arguments[0];\n        var direction = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];\n\n        return new _mobiledocKitUtilsCursorRange['default'](this, tail, direction);\n      }\n    }, {\n      key: 'markerIn',\n\n      /**\n       * Returns the marker in `direction` from this position.\n       * If the position is in the middle of a marker, the direction is irrelevant.\n       * Otherwise, if the position is at a boundary between two markers, returns the\n       * marker to the left if `direction` === BACKWARD and the marker to the right\n       * if `direction` === FORWARD (assuming left-to-right text direction).\n       * @param {Direction}\n       * @return {Marker|undefined}\n       */\n      value: function markerIn(direction) {\n        if (!this.isMarkerable) {\n          return;\n        }\n\n        var marker = this.marker;\n        var offsetInMarker = this.offsetInMarker;\n\n        if (!marker) {\n          return;\n        }\n\n        if (offsetInMarker > 0 && offsetInMarker < marker.length) {\n          return marker;\n        } else if (offsetInMarker === 0) {\n          return direction === BACKWARD ? marker : marker.prev;\n        } else if (offsetInMarker === marker.length) {\n          return direction === FORWARD ? marker.next : marker;\n        }\n      }\n    }, {\n      key: 'isEqual',\n      value: function isEqual(position) {\n        return this.section === position.section && this.offset === position.offset;\n      }\n\n      /**\n       * @return {Boolean} If this position is at the head of the post\n       */\n    }, {\n      key: 'isHeadOfPost',\n      value: function isHeadOfPost() {\n        return this.move(BACKWARD).isEqual(this);\n      }\n\n      /**\n       * @return {Boolean} If this position is at the tail of the post\n       */\n    }, {\n      key: 'isTailOfPost',\n      value: function isTailOfPost() {\n        return this.move(FORWARD).isEqual(this);\n      }\n\n      /**\n       * @return {Boolean} If this position is at the head of its section\n       */\n    }, {\n      key: 'isHead',\n      value: function isHead() {\n        return this.isEqual(this.section.headPosition());\n      }\n\n      /**\n       * @return {Boolean} If this position is at the tail of its section\n       */\n    }, {\n      key: 'isTail',\n      value: function isTail() {\n        return this.isEqual(this.section.tailPosition());\n      }\n\n      /**\n       * Move the position 1 unit in `direction`.\n       *\n       * @param {Number} units to move. > 0 moves right, < 0 moves left\n       * @return {Position} Return a new position one unit in the given\n       * direction. If the position is moving left and at the beginning of the post,\n       * the same position will be returned. Same if the position is moving right and\n       * at the end of the post.\n       */\n    }, {\n      key: 'move',\n      value: function move(units) {\n        (0, _mobiledocKitUtilsAssert['default'])('Must pass integer to Position#move', typeof units === 'number');\n\n        if (units < 0) {\n          return this.moveLeft().move(++units);\n        } else if (units > 0) {\n          return this.moveRight().move(--units);\n        } else {\n          return this;\n        }\n      }\n\n      /**\n       * @param {Number} direction (FORWARD or BACKWARD)\n       * @return {Position} The result of moving 1 \"word\" unit in `direction`\n       */\n    }, {\n      key: 'moveWord',\n      value: function moveWord(direction) {\n        var isPostBoundary = direction === BACKWARD ? this.isHeadOfPost() : this.isTailOfPost();\n        if (isPostBoundary) {\n          return this;\n        }\n\n        if (!this.isMarkerable) {\n          return this.move(direction);\n        }\n\n        var pos = this;\n\n        // Helper fn to check if the pos is at the `dir` boundary of its section\n        var isBoundary = function isBoundary(pos, dir) {\n          return dir === BACKWARD ? pos.isHead() : pos.isTail();\n        };\n        // Get the char at this position (looking forward/right)\n        var getChar = function getChar(pos) {\n          var marker = pos.marker;\n          var offsetInMarker = pos.offsetInMarker;\n\n          return marker.charAt(offsetInMarker);\n        };\n        // Get the char in `dir` at this position\n        var peekChar = function peekChar(pos, dir) {\n          return dir === BACKWARD ? getChar(pos.move(BACKWARD)) : getChar(pos);\n        };\n        // Whether there is an atom in `dir` from this position\n        var isAtom = function isAtom(pos, dir) {\n          // Special case when position is at end, the marker associated with it is\n          // the marker to its left. Normally `pos#marker` is the marker to the right of the pos's offset.\n          if (dir === BACKWARD && pos.isTail() && pos.marker.isAtom) {\n            return true;\n          }\n          return dir === BACKWARD ? pos.move(BACKWARD).marker.isAtom : pos.marker.isAtom;\n        };\n\n        if (isBoundary(pos, direction)) {\n          // extend movement into prev/next section\n          return pos.move(direction).moveWord(direction);\n        }\n\n        var seekWord = function seekWord(pos) {\n          return !isBoundary(pos, direction) && !isAtom(pos, direction) && !WORD_CHAR_REGEX.test(peekChar(pos, direction));\n        };\n\n        // move(dir) while we are seeking the first word char\n        while (seekWord(pos)) {\n          pos = pos.move(direction);\n        }\n\n        if (isAtom(pos, direction)) {\n          return pos.move(direction);\n        }\n\n        var seekBoundary = function seekBoundary(pos) {\n          return !isBoundary(pos, direction) && !isAtom(pos, direction) && WORD_CHAR_REGEX.test(peekChar(pos, direction));\n        };\n\n        // move(dir) while we are seeking the first boundary position\n        while (seekBoundary(pos)) {\n          pos = pos.move(direction);\n        }\n\n        return pos;\n      }\n\n      /**\n       * The position to the left of this position.\n       * If this position is the post's headPosition it returns itself.\n       * @return {Position}\n       * @private\n       */\n    }, {\n      key: 'moveLeft',\n      value: function moveLeft() {\n        if (this.isHead()) {\n          var prev = this.section.previousLeafSection();\n          return prev ? prev.tailPosition() : this;\n        } else {\n          var offset = this.offset - 1;\n          if (this.isMarkerable && this.marker) {\n            var code = this.marker.value.charCodeAt(offset);\n            if (code >= _mobiledocKitModelsMarker.LOW_SURROGATE_RANGE[0] && code <= _mobiledocKitModelsMarker.LOW_SURROGATE_RANGE[1]) {\n              offset = offset - 1;\n            }\n          }\n          return new Position(this.section, offset);\n        }\n      }\n\n      /**\n       * The position to the right of this position.\n       * If this position is the post's tailPosition it returns itself.\n       * @return {Position}\n       * @private\n       */\n    }, {\n      key: 'moveRight',\n      value: function moveRight() {\n        if (this.isTail()) {\n          var next = this.section.nextLeafSection();\n          return next ? next.headPosition() : this;\n        } else {\n          var offset = this.offset + 1;\n          if (this.isMarkerable && this.marker) {\n            var code = this.marker.value.charCodeAt(offset - 1);\n            if (code >= _mobiledocKitModelsMarker.HIGH_SURROGATE_RANGE[0] && code <= _mobiledocKitModelsMarker.HIGH_SURROGATE_RANGE[1]) {\n              offset = offset + 1;\n            }\n          }\n          return new Position(this.section, offset);\n        }\n      }\n    }, {\n      key: 'leafSectionIndex',\n      get: function get() {\n        var _this = this;\n\n        var post = this.section.post;\n        var leafSectionIndex = undefined;\n        post.walkAllLeafSections(function (section, index) {\n          if (section === _this.section) {\n            leafSectionIndex = index;\n          }\n        });\n        return leafSectionIndex;\n      }\n    }, {\n      key: 'isMarkerable',\n      get: function get() {\n        return this.section && this.section.isMarkerable;\n      }\n\n      /**\n       * Returns the marker at this position, in the backward direction\n       * (i.e., the marker to the left of the cursor if the cursor is on a marker boundary and text is left-to-right)\n       * @return {Marker|undefined}\n       */\n    }, {\n      key: 'marker',\n      get: function get() {\n        return this.isMarkerable && this.markerPosition.marker;\n      }\n    }, {\n      key: 'offsetInMarker',\n      get: function get() {\n        return this.markerPosition.offset;\n      }\n    }, {\n      key: 'markerPosition',\n\n      /**\n       * @private\n       */\n      get: function get() {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot get markerPosition without a section', !!this.section);\n        (0, _mobiledocKitUtilsAssert['default'])('cannot get markerPosition of a non-markerable', !!this.section.isMarkerable);\n        return this.section.markerPositionAtOffset(this.offset);\n      }\n    }], [{\n      key: 'atPoint',\n      value: function atPoint(x, y, editor) {\n        var _renderTree = editor._renderTree;\n        var rootElement = editor.element;\n\n        var elementFromPoint = document.elementFromPoint(x, y);\n        if (!(0, _mobiledocKitUtilsDomUtils.containsNode)(rootElement, elementFromPoint)) {\n          return;\n        }\n\n        var _findOffsetInNode = (0, _mobiledocKitUtilsSelectionUtils.findOffsetInNode)(elementFromPoint, { left: x, top: y });\n\n        var node = _findOffsetInNode.node;\n        var offset = _findOffsetInNode.offset;\n\n        return Position.fromNode(_renderTree, node, offset);\n      }\n    }, {\n      key: 'blankPosition',\n      value: function blankPosition() {\n        return new BlankPosition();\n      }\n    }, {\n      key: 'fromNode',\n      value: function fromNode(renderTree, node, offset) {\n        if ((0, _mobiledocKitUtilsDomUtils.isTextNode)(node)) {\n          return Position.fromTextNode(renderTree, node, offset);\n        } else {\n          return Position.fromElementNode(renderTree, node, offset);\n        }\n      }\n    }, {\n      key: 'fromTextNode',\n      value: function fromTextNode(renderTree, textNode, offsetInNode) {\n        var renderNode = renderTree.getElementRenderNode(textNode);\n        var section = undefined,\n            offsetInSection = undefined;\n\n        if (renderNode) {\n          var marker = renderNode.postNode;\n          section = marker.section;\n\n          (0, _mobiledocKitUtilsAssert['default'])('Could not find parent section for mapped text node \"' + textNode.textContent + '\"', !!section);\n          offsetInSection = section.offsetOfMarker(marker, offsetInNode);\n        } else {\n          // all text nodes should be rendered by markers except:\n          //   * text nodes inside cards\n          //   * text nodes created by the browser during text input\n          // both of these should have rendered parent sections, though\n          section = findParentSectionFromNode(renderTree, textNode);\n          (0, _mobiledocKitUtilsAssert['default'])('Could not find parent section for un-mapped text node \"' + textNode.textContent + '\"', !!section);\n\n          offsetInSection = findOffsetInSection(section, textNode, offsetInNode);\n        }\n\n        return new Position(section, offsetInSection);\n      }\n    }, {\n      key: 'fromElementNode',\n      value: function fromElementNode(renderTree, elementNode, offset) {\n        var position = undefined;\n\n        // The browser may change the reported selection to equal the editor's root\n        // element if the user clicks an element that is immediately removed,\n        // which can happen when clicking to remove a card.\n        if (elementNode === renderTree.rootElement) {\n          var post = renderTree.rootNode.postNode;\n          position = offset === 0 ? post.headPosition() : post.tailPosition();\n        } else {\n          var section = findParentSectionFromNode(renderTree, elementNode);\n          (0, _mobiledocKitUtilsAssert['default'])('Could not find parent section from element node', !!section);\n\n          if (section.isCardSection) {\n            // Selections in cards are usually made on a text node\n            // containing a &zwnj;  on one side or the other of the card but\n            // some scenarios (Firefox) will result in selecting the\n            // card's wrapper div. If the offset is 2 we've selected\n            // the final zwnj and should consider the cursor at the\n            // end of the card (offset 1). Otherwise,  the cursor is at\n            // the start of the card\n            position = offset < 2 ? section.headPosition() : section.tailPosition();\n          } else {\n\n            // In Firefox it is possible for the cursor to be on an atom's wrapper\n            // element. (In Chrome/Safari, the browser corrects this to be on\n            // one of the text nodes surrounding the wrapper).\n            // This code corrects for when the browser reports the cursor position\n            // to be on the wrapper element itself\n            var renderNode = renderTree.getElementRenderNode(elementNode);\n            var postNode = renderNode && renderNode.postNode;\n            if (postNode && postNode.isAtom) {\n              var sectionOffset = section.offsetOfMarker(postNode);\n              if (offset > 1) {\n                // we are on the tail side of the atom\n                sectionOffset += postNode.length;\n              }\n              position = new Position(section, sectionOffset);\n            } else if (offset >= elementNode.childNodes.length) {\n\n              // This is to deal with how Firefox handles triple-click selections.\n              // See https://stackoverflow.com/a/21234837/1269194 for an\n              // explanation.\n              position = section.tailPosition();\n            } else {\n              // The offset is 0 if the cursor is on a non-atom-wrapper element node\n              // (e.g., a <br> tag in a blank markup section)\n              position = section.headPosition();\n            }\n          }\n        }\n\n        return position;\n      }\n    }]);\n\n    return Position;\n  })();\n\n  BlankPosition = (function (_Position) {\n    _inherits(BlankPosition, _Position);\n\n    function BlankPosition() {\n      _classCallCheck(this, BlankPosition);\n\n      _get(Object.getPrototypeOf(BlankPosition.prototype), 'constructor', this).call(this, null, 0, true);\n    }\n\n    _createClass(BlankPosition, [{\n      key: 'isEqual',\n      value: function isEqual(other) {\n        return other && other.isBlank;\n      }\n    }, {\n      key: 'toRange',\n      value: function toRange() {\n        return _mobiledocKitUtilsCursorRange['default'].blankRange();\n      }\n    }, {\n      key: 'isHeadOfPost',\n      value: function isHeadOfPost() {\n        return false;\n      }\n    }, {\n      key: 'isTailOfPost',\n      value: function isTailOfPost() {\n        return false;\n      }\n    }, {\n      key: 'isHead',\n      value: function isHead() {\n        return false;\n      }\n    }, {\n      key: 'isTail',\n      value: function isTail() {\n        return false;\n      }\n    }, {\n      key: 'move',\n      value: function move() {\n        return this;\n      }\n    }, {\n      key: 'moveWord',\n      value: function moveWord() {\n        return this;\n      }\n    }, {\n      key: 'leafSectionIndex',\n      get: function get() {\n        (0, _mobiledocKitUtilsAssert['default'])('must implement get leafSectionIndex', false);\n      }\n    }, {\n      key: 'isMarkerable',\n      get: function get() {\n        return false;\n      }\n    }, {\n      key: 'marker',\n      get: function get() {\n        return false;\n      }\n    }, {\n      key: 'markerPosition',\n      get: function get() {\n        return {};\n      }\n    }]);\n\n    return BlankPosition;\n  })(Position);\n\n  exports['default'] = Position;\n});","define('mobiledoc-kit/utils/cursor/range', ['exports', 'mobiledoc-kit/utils/cursor/position', 'mobiledoc-kit/utils/key', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsCursorPosition, _mobiledocKitUtilsKey, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /**\n   * A logical range of a {@link Post}.\n   * Usually an instance of Range will be read from the {@link Editor#range} property,\n   * but it may be useful to instantiate a range directly when programmatically modifying a Post.\n   */\n\n  var Range = (function () {\n    /**\n     * @param {Position} head\n     * @param {Position} [tail=head]\n     * @param {Direction} [direction=null]\n     * @return {Range}\n     * @private\n     */\n\n    function Range(head) {\n      var tail = arguments.length <= 1 || arguments[1] === undefined ? head : arguments[1];\n      var direction = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2];\n      return (function () {\n        _classCallCheck(this, Range);\n\n        /** @property {Position} head */\n        this.head = head;\n\n        /** @property {Position} tail */\n        this.tail = tail;\n\n        /** @property {Direction} direction */\n        this.direction = direction;\n      }).apply(this, arguments);\n    }\n\n    /**\n     * Shorthand to create a new range from a section(s) and offset(s).\n     * When given only a head section and offset, creates a collapsed range.\n     * @param {Section} headSection\n     * @param {number} headOffset\n     * @param {Section} [tailSection=headSection]\n     * @param {number} [tailOffset=headOffset]\n     * @param {Direction} [direction=null]\n     * @return {Range}\n     */\n\n    _createClass(Range, [{\n      key: 'trimTo',\n\n      /**\n       * @param {Markerable} section\n       * @return {Range} A range that is constrained to only the part that\n       * includes the section.\n       * FIXME -- if the section isn't the head or tail, it's assumed to be\n       * wholly contained. It's possible to call `trimTo` with a selection that is\n       * outside of the range, though, which would invalidate that assumption.\n       * There's no efficient way to determine if a section is within a range, yet.\n       * @private\n       */\n      value: function trimTo(section) {\n        var length = section.length;\n\n        var headOffset = section === this.head.section ? Math.min(this.head.offset, length) : 0;\n        var tailOffset = section === this.tail.section ? Math.min(this.tail.offset, length) : length;\n\n        return Range.create(section, headOffset, section, tailOffset);\n      }\n\n      /**\n       * Expands the range 1 unit in the given direction\n       * If the range is expandable in the given direction, always returns a\n       * non-collapsed range.\n       * @param {Number} units If units is > 0, the range is extended to the right,\n       *                 otherwise range is extended to the left.\n       * @return {Range}\n       * @public\n       */\n    }, {\n      key: 'extend',\n      value: function extend(units) {\n        (0, _mobiledocKitUtilsAssert['default'])('Must pass integer to Range#extend', typeof units === 'number');\n\n        if (units === 0) {\n          return this;\n        }\n\n        var head = this.head;\n        var tail = this.tail;\n        var currentDirection = this.direction;\n\n        switch (currentDirection) {\n          case _mobiledocKitUtilsKey.DIRECTION.FORWARD:\n            return new Range(head, tail.move(units), currentDirection);\n          case _mobiledocKitUtilsKey.DIRECTION.BACKWARD:\n            return new Range(head.move(units), tail, currentDirection);\n          default:\n            {\n              var newDirection = units > 0 ? _mobiledocKitUtilsKey.DIRECTION.FORWARD : _mobiledocKitUtilsKey.DIRECTION.BACKWARD;\n              return new Range(head, tail, newDirection).extend(units);\n            }\n        }\n      }\n\n      /**\n       * Moves this range 1 unit in the given direction.\n       * If the range is collapsed, returns a collapsed range shifted by 1 unit,\n       * otherwise collapses this range to the position at the `direction` end of the range.\n       * Always returns a collapsed range.\n       * @param {Direction} direction\n       * @return {Range}\n       * @public\n       */\n    }, {\n      key: 'move',\n      value: function move(direction) {\n        (0, _mobiledocKitUtilsAssert['default'])('Must pass DIRECTION.FORWARD (' + _mobiledocKitUtilsKey.DIRECTION.FORWARD + ') or DIRECTION.BACKWARD (' + _mobiledocKitUtilsKey.DIRECTION.BACKWARD + ') to Range#move', direction === _mobiledocKitUtilsKey.DIRECTION.FORWARD || direction === _mobiledocKitUtilsKey.DIRECTION.BACKWARD);\n\n        var focusedPosition = this.focusedPosition;\n        var isCollapsed = this.isCollapsed;\n\n        if (isCollapsed) {\n          return new Range(focusedPosition.move(direction));\n        } else {\n          return this._collapse(direction);\n        }\n      }\n\n      /**\n       * expand a range to all markers matching a given check\n       *\n       * @param {Function} detectMarker\n       * @return {Range} The expanded range\n       *\n       * @public\n       */\n    }, {\n      key: 'expandByMarker',\n      value: function expandByMarker(detectMarker) {\n        var head = this.head;\n        var tail = this.tail;\n        var direction = this.direction;\n        var headSection = head.section;\n\n        if (headSection !== tail.section) {\n          throw new Error('#expandByMarker does not work across sections. Perhaps you should confirm the range is collapsed');\n        }\n\n        var firstNotMatchingDetect = function firstNotMatchingDetect(i) {\n          return !detectMarker(i);\n        };\n\n        var headMarker = headSection.markers.detect(firstNotMatchingDetect, head.marker, true);\n        if (!headMarker && detectMarker(headSection.markers.head)) {\n          headMarker = headSection.markers.head;\n        } else {\n          headMarker = headMarker.next || head.marker;\n        }\n        var headPosition = new _mobiledocKitUtilsCursorPosition['default'](headSection, headSection.offsetOfMarker(headMarker));\n\n        var tailMarker = tail.section.markers.detect(firstNotMatchingDetect, tail.marker);\n        if (!tailMarker && detectMarker(headSection.markers.tail)) {\n          tailMarker = headSection.markers.tail;\n        } else {\n          tailMarker = tailMarker.prev || tail.marker;\n        }\n        var tailPosition = new _mobiledocKitUtilsCursorPosition['default'](tail.section, tail.section.offsetOfMarker(tailMarker) + tailMarker.length);\n\n        return headPosition.toRange(tailPosition, direction);\n      }\n    }, {\n      key: '_collapse',\n      value: function _collapse(direction) {\n        return new Range(direction === _mobiledocKitUtilsKey.DIRECTION.BACKWARD ? this.head : this.tail);\n      }\n    }, {\n      key: 'isEqual',\n      value: function isEqual(other) {\n        return other && this.head.isEqual(other.head) && this.tail.isEqual(other.tail);\n      }\n    }, {\n      key: 'focusedPosition',\n      get: function get() {\n        return this.direction === _mobiledocKitUtilsKey.DIRECTION.BACKWARD ? this.head : this.tail;\n      }\n    }, {\n      key: 'isBlank',\n      get: function get() {\n        return this.head.isBlank && this.tail.isBlank;\n      }\n\n      // \"legacy\" APIs\n    }, {\n      key: 'headSection',\n      get: function get() {\n        return this.head.section;\n      }\n    }, {\n      key: 'tailSection',\n      get: function get() {\n        return this.tail.section;\n      }\n    }, {\n      key: 'headSectionOffset',\n      get: function get() {\n        return this.head.offset;\n      }\n    }, {\n      key: 'tailSectionOffset',\n      get: function get() {\n        return this.tail.offset;\n      }\n    }, {\n      key: 'isCollapsed',\n      get: function get() {\n        return this.head.isEqual(this.tail);\n      }\n    }, {\n      key: 'headMarker',\n      get: function get() {\n        return this.head.marker;\n      }\n    }, {\n      key: 'tailMarker',\n      get: function get() {\n        return this.tail.marker;\n      }\n    }, {\n      key: 'headMarkerOffset',\n      get: function get() {\n        return this.head.offsetInMarker;\n      }\n    }, {\n      key: 'tailMarkerOffset',\n      get: function get() {\n        return this.tail.offsetInMarker;\n      }\n    }], [{\n      key: 'create',\n      value: function create(headSection, headOffset) {\n        var tailSection = arguments.length <= 2 || arguments[2] === undefined ? headSection : arguments[2];\n        var tailOffset = arguments.length <= 3 || arguments[3] === undefined ? headOffset : arguments[3];\n        var direction = arguments.length <= 4 || arguments[4] === undefined ? null : arguments[4];\n        return (function () {\n          return new Range(new _mobiledocKitUtilsCursorPosition['default'](headSection, headOffset), new _mobiledocKitUtilsCursorPosition['default'](tailSection, tailOffset), direction);\n        })();\n      }\n    }, {\n      key: 'blankRange',\n      value: function blankRange() {\n        return new Range(_mobiledocKitUtilsCursorPosition['default'].blankPosition(), _mobiledocKitUtilsCursorPosition['default'].blankPosition());\n      }\n    }]);\n\n    return Range;\n  })();\n\n  exports['default'] = Range;\n});","define(\"mobiledoc-kit/utils/deprecate\", [\"exports\"], function (exports) {\n  /**\n   * Usage:\n   * Without a conditional, always prints deprecate message:\n   *   `deprecate('This is deprecated')`\n   *\n   * Conditional deprecation, works similarly to `assert`, prints deprecation if\n   * conditional is false:\n   *   `deprecate('Deprecated only if foo !== bar', foo === bar)`\n   */\n  \"use strict\";\n\n  exports[\"default\"] = deprecate;\n\n  function deprecate(message) {\n    var conditional = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];\n\n    if (!conditional) {\n      // eslint-disable-next-line no-console\n      console.log(\"[mobiledoc-kit] [DEPRECATED]: \" + message);\n    }\n  }\n});","define('mobiledoc-kit/utils/dom-utils', ['exports', 'mobiledoc-kit/utils/array-utils'], function (exports, _mobiledocKitUtilsArrayUtils) {\n  'use strict';\n\n  var NODE_TYPES = {\n    ELEMENT: 1,\n    TEXT: 3,\n    COMMENT: 8\n  };\n\n  exports.NODE_TYPES = NODE_TYPES;\n  function isTextNode(node) {\n    return node.nodeType === NODE_TYPES.TEXT;\n  }\n\n  function isCommentNode(node) {\n    return node.nodeType === NODE_TYPES.COMMENT;\n  }\n\n  function isElementNode(node) {\n    return node.nodeType === NODE_TYPES.ELEMENT;\n  }\n\n  // perform a pre-order tree traversal of the dom, calling `callbackFn(node)`\n  // for every node for which `conditionFn(node)` is true\n  function walkDOM(topNode) {\n    var callbackFn = arguments.length <= 1 || arguments[1] === undefined ? function () {} : arguments[1];\n    var conditionFn = arguments.length <= 2 || arguments[2] === undefined ? function () {\n      return true;\n    } : arguments[2];\n\n    var currentNode = topNode;\n\n    if (conditionFn(currentNode)) {\n      callbackFn(currentNode);\n    }\n\n    currentNode = currentNode.firstChild;\n\n    while (currentNode) {\n      walkDOM(currentNode, callbackFn, conditionFn);\n      currentNode = currentNode.nextSibling;\n    }\n  }\n\n  function walkTextNodes(topNode) {\n    var callbackFn = arguments.length <= 1 || arguments[1] === undefined ? function () {} : arguments[1];\n\n    var conditionFn = function conditionFn(node) {\n      return isTextNode(node);\n    };\n    walkDOM(topNode, callbackFn, conditionFn);\n  }\n\n  function clearChildNodes(element) {\n    while (element.childNodes.length) {\n      element.removeChild(element.childNodes[0]);\n    }\n  }\n\n  /**\n   * @return {Boolean} true when the child node is contained or the same as\n   * (e.g., inclusive containment)  the parent node\n   *  see https://github.com/webmodules/node-contains/blob/master/index.js\n   *  Mimics the behavior of `Node.contains`, which is broken in IE 10\n   *  @private\n   */\n  function containsNode(parentNode, childNode) {\n    if (parentNode === childNode) {\n      return true;\n    }\n    var position = parentNode.compareDocumentPosition(childNode);\n    return !!(position & Node.DOCUMENT_POSITION_CONTAINED_BY);\n  }\n\n  /**\n   * converts the element's NamedNodeMap of attrs into\n   * an object with key-value pairs\n   * @param {DOMNode} element\n   * @return {Object} key-value pairs\n   * @private\n   */\n  function getAttributes(element) {\n    var result = {};\n    if (element.hasAttributes()) {\n      (0, _mobiledocKitUtilsArrayUtils.forEach)(element.attributes, function (_ref) {\n        var name = _ref.name;\n        var value = _ref.value;\n\n        result[name] = value;\n      });\n    }\n    return result;\n  }\n\n  function addClassName(element, className) {\n    element.classList.add(className);\n  }\n\n  function removeClassName(element, className) {\n    element.classList.remove(className);\n  }\n\n  function normalizeTagName(tagName) {\n    return tagName.toLowerCase();\n  }\n\n  function parseHTML(html) {\n    var div = document.createElement('div');\n    div.innerHTML = html;\n    return div;\n  }\n\n  function serializeHTML(node) {\n    var div = document.createElement('div');\n    div.appendChild(node);\n    return div.innerHTML;\n  }\n\n  exports.containsNode = containsNode;\n  exports.clearChildNodes = clearChildNodes;\n  exports.getAttributes = getAttributes;\n  exports.walkDOM = walkDOM;\n  exports.walkTextNodes = walkTextNodes;\n  exports.addClassName = addClassName;\n  exports.removeClassName = removeClassName;\n  exports.normalizeTagName = normalizeTagName;\n  exports.isTextNode = isTextNode;\n  exports.isCommentNode = isCommentNode;\n  exports.isElementNode = isElementNode;\n  exports.parseHTML = parseHTML;\n  exports.serializeHTML = serializeHTML;\n});","define('mobiledoc-kit/utils/element-map', ['exports', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  // start at one to make the falsy semantics easier\n  var uuidGenerator = 1;\n\n  var ElementMap = (function () {\n    function ElementMap() {\n      _classCallCheck(this, ElementMap);\n\n      this._map = {};\n    }\n\n    _createClass(ElementMap, [{\n      key: 'set',\n      value: function set(key, value) {\n        var uuid = key._uuid;\n        if (!uuid) {\n          key._uuid = uuid = '' + uuidGenerator++;\n        }\n        this._map[uuid] = value;\n      }\n    }, {\n      key: 'get',\n      value: function get(key) {\n        if (key._uuid) {\n          return this._map[key._uuid];\n        }\n        return null;\n      }\n    }, {\n      key: 'remove',\n      value: function remove(key) {\n        (0, _mobiledocKitUtilsAssert['default'])('tried to fetch a value for an element not seen before', !!key._uuid);\n        delete this._map[key._uuid];\n      }\n    }]);\n\n    return ElementMap;\n  })();\n\n  exports['default'] = ElementMap;\n});","define('mobiledoc-kit/utils/element-utils', ['exports', 'mobiledoc-kit/utils/string-utils', 'mobiledoc-kit/utils/dom-utils'], function (exports, _mobiledocKitUtilsStringUtils, _mobiledocKitUtilsDomUtils) {\n  'use strict';\n\n  function getEventTargetMatchingTag(tagName, target, container) {\n    tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(tagName);\n    // Traverses up DOM from an event target to find the node matching specifed tag\n    while (target && target !== container) {\n      if ((0, _mobiledocKitUtilsDomUtils.normalizeTagName)(target.tagName) === tagName) {\n        return target;\n      }\n      target = target.parentNode;\n    }\n  }\n\n  function getElementRelativeOffset(element) {\n    var offset = { left: 0, top: -window.pageYOffset };\n    var offsetParent = element.offsetParent;\n    var offsetParentPosition = window.getComputedStyle(offsetParent).position;\n    var offsetParentRect;\n\n    if (offsetParentPosition === 'relative') {\n      offsetParentRect = offsetParent.getBoundingClientRect();\n      offset.left = offsetParentRect.left;\n      offset.top = offsetParentRect.top;\n    }\n    return offset;\n  }\n\n  function getElementComputedStyleNumericProp(element, prop) {\n    return parseFloat(window.getComputedStyle(element)[prop]);\n  }\n\n  function positionElementToRect(element, rect, topOffset, leftOffset) {\n    var relativeOffset = getElementRelativeOffset(element);\n    var style = element.style;\n    var round = Math.round;\n    var left, top;\n\n    topOffset = topOffset || 0;\n    leftOffset = leftOffset || 0;\n    left = round(rect.left - relativeOffset.left - leftOffset);\n    top = round(rect.top - relativeOffset.top - topOffset);\n    style.left = left + 'px';\n    style.top = top + 'px';\n    return { left: left, top: top };\n  }\n\n  function positionElementHorizontallyCenteredToRect(element, rect, topOffset) {\n    var horizontalCenter = element.offsetWidth / 2 - rect.width / 2;\n    return positionElementToRect(element, rect, topOffset, horizontalCenter);\n  }\n\n  function positionElementCenteredBelow(element, belowElement) {\n    var elementMargin = getElementComputedStyleNumericProp(element, 'marginTop');\n    return positionElementHorizontallyCenteredToRect(element, belowElement.getBoundingClientRect(), -element.offsetHeight - elementMargin);\n  }\n\n  function setData(element, name, value) {\n    if (element.dataset) {\n      element.dataset[name] = value;\n    } else {\n      var dataName = (0, _mobiledocKitUtilsStringUtils.dasherize)(name);\n      return element.setAttribute(dataName, value);\n    }\n  }\n\n  function whenElementIsNotInDOM(element, callback) {\n    var isCanceled = false;\n    var observerFn = function observerFn() {\n      if (isCanceled) {\n        return;\n      }\n      if (!element.parentNode) {\n        callback();\n      } else {\n        window.requestAnimationFrame(observerFn);\n      }\n    };\n    observerFn();\n    return { cancel: function cancel() {\n        return isCanceled = true;\n      } };\n  }\n\n  exports.setData = setData;\n  exports.getEventTargetMatchingTag = getEventTargetMatchingTag;\n  exports.getElementRelativeOffset = getElementRelativeOffset;\n  exports.getElementComputedStyleNumericProp = getElementComputedStyleNumericProp;\n  exports.positionElementToRect = positionElementToRect;\n  exports.positionElementHorizontallyCenteredToRect = positionElementHorizontallyCenteredToRect;\n  exports.positionElementCenteredBelow = positionElementCenteredBelow;\n  exports.whenElementIsNotInDOM = whenElementIsNotInDOM;\n});","define('mobiledoc-kit/utils/environment', ['exports'], function (exports) {\n  'use strict';\n\n  exports['default'] = {\n    hasDOM: function hasDOM() {\n      return typeof document !== 'undefined';\n    }\n  };\n});","define(\"mobiledoc-kit/utils/fixed-queue\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n  var FixedQueue = (function () {\n    function FixedQueue() {\n      var length = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0];\n\n      _classCallCheck(this, FixedQueue);\n\n      this._maxLength = length;\n      this._items = [];\n    }\n\n    _createClass(FixedQueue, [{\n      key: \"pop\",\n      value: function pop() {\n        return this._items.pop();\n      }\n    }, {\n      key: \"push\",\n      value: function push(item) {\n        this._items.push(item);\n        if (this.length > this._maxLength) {\n          this._items.shift();\n        }\n      }\n    }, {\n      key: \"clear\",\n      value: function clear() {\n        this._items = [];\n      }\n    }, {\n      key: \"toArray\",\n      value: function toArray() {\n        return this._items;\n      }\n    }, {\n      key: \"length\",\n      get: function get() {\n        return this._items.length;\n      }\n    }]);\n\n    return FixedQueue;\n  })();\n\n  exports[\"default\"] = FixedQueue;\n});","define('mobiledoc-kit/utils/key', ['exports', 'mobiledoc-kit/utils/keycodes', 'mobiledoc-kit/utils/keys', 'mobiledoc-kit/utils/characters', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsKeycodes, _mobiledocKitUtilsKeys, _mobiledocKitUtilsCharacters, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  exports.modifierMask = modifierMask;\n  exports.specialCharacterToCode = specialCharacterToCode;\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /**\n   * @typedef Direction\n   * @enum {number}\n   * @property {number} FORWARD\n   * @property {number} BACKWARD\n   */\n  var DIRECTION = {\n    FORWARD: 1,\n    BACKWARD: -1\n  };\n  exports.DIRECTION = DIRECTION;\n  var MODIFIERS = {\n    META: 1, // also called \"command\" on OS X\n    CTRL: 2,\n    SHIFT: 4,\n    ALT: 8 // also called \"option\" on OS X\n  };\n\n  exports.MODIFIERS = MODIFIERS;\n\n  function modifierMask(event) {\n    var metaKey = event.metaKey;\n    var shiftKey = event.shiftKey;\n    var ctrlKey = event.ctrlKey;\n    var altKey = event.altKey;\n\n    var modVal = function modVal(val, modifier) {\n      return val && modifier || 0;\n    };\n    return modVal(metaKey, MODIFIERS.META) + modVal(shiftKey, MODIFIERS.SHIFT) + modVal(ctrlKey, MODIFIERS.CTRL) + modVal(altKey, MODIFIERS.ALT);\n  }\n\n  var SPECIAL_KEYS = {\n    BACKSPACE: _mobiledocKitUtilsKeycodes['default'].BACKSPACE,\n    TAB: _mobiledocKitUtilsKeycodes['default'].TAB,\n    ENTER: _mobiledocKitUtilsKeycodes['default'].ENTER,\n    ESC: _mobiledocKitUtilsKeycodes['default'].ESC,\n    SPACE: _mobiledocKitUtilsKeycodes['default'].SPACE,\n    PAGEUP: _mobiledocKitUtilsKeycodes['default'].PAGEUP,\n    PAGEDOWN: _mobiledocKitUtilsKeycodes['default'].PAGEDOWN,\n    END: _mobiledocKitUtilsKeycodes['default'].END,\n    HOME: _mobiledocKitUtilsKeycodes['default'].HOME,\n    LEFT: _mobiledocKitUtilsKeycodes['default'].LEFT,\n    UP: _mobiledocKitUtilsKeycodes['default'].UP,\n    RIGHT: _mobiledocKitUtilsKeycodes['default'].RIGHT,\n    DOWN: _mobiledocKitUtilsKeycodes['default'].DOWN,\n    INS: _mobiledocKitUtilsKeycodes['default'].INS,\n    DEL: _mobiledocKitUtilsKeycodes['default'].DELETE\n  };\n\n  function specialCharacterToCode(specialCharacter) {\n    return SPECIAL_KEYS[specialCharacter];\n  }\n\n  // heuristic for determining if `event` is a key event\n  function isKeyEvent(event) {\n    return (/^key/.test(event.type)\n    );\n  }\n\n  /**\n   * An abstraction around a KeyEvent\n   * that key listeners in the editor can use\n   * to determine what sort of key was pressed\n   */\n  var Key = (function () {\n    function Key(event) {\n      _classCallCheck(this, Key);\n\n      this.key = event.key;\n      this.keyCode = event.keyCode;\n      this.charCode = event.charCode;\n      this.event = event;\n      this.modifierMask = modifierMask(event);\n    }\n\n    _createClass(Key, [{\n      key: 'toString',\n      value: function toString() {\n        if (this.isTab()) {\n          return _mobiledocKitUtilsCharacters.TAB;\n        }\n        return String.fromCharCode(this.charCode);\n      }\n\n      // See https://caniuse.com/#feat=keyboardevent-key for browser support.\n    }, {\n      key: 'isKeySupported',\n      value: function isKeySupported() {\n        return this.key;\n      }\n    }, {\n      key: 'isKey',\n      value: function isKey(identifier) {\n        if (this.isKeySupported()) {\n          (0, _mobiledocKitUtilsAssert['default'])('Must define Keys.' + identifier + '.', _mobiledocKitUtilsKeys['default'][identifier]);\n          return this.key === _mobiledocKitUtilsKeys['default'][identifier];\n        } else {\n          (0, _mobiledocKitUtilsAssert['default'])('Must define Keycodes.' + identifier + '.', _mobiledocKitUtilsKeycodes['default'][identifier]);\n          return this.keyCode === _mobiledocKitUtilsKeycodes['default'][identifier];\n        }\n      }\n    }, {\n      key: 'isEscape',\n      value: function isEscape() {\n        return this.isKey('ESC');\n      }\n    }, {\n      key: 'isDelete',\n      value: function isDelete() {\n        return this.isKey('BACKSPACE') || this.isForwardDelete();\n      }\n    }, {\n      key: 'isForwardDelete',\n      value: function isForwardDelete() {\n        return this.isKey('DELETE');\n      }\n    }, {\n      key: 'isArrow',\n      value: function isArrow() {\n        return this.isHorizontalArrow() || this.isVerticalArrow();\n      }\n    }, {\n      key: 'isHorizontalArrow',\n      value: function isHorizontalArrow() {\n        return this.isLeftArrow() || this.isRightArrow();\n      }\n    }, {\n      key: 'isHorizontalArrowWithoutModifiersOtherThanShift',\n      value: function isHorizontalArrowWithoutModifiersOtherThanShift() {\n        return this.isHorizontalArrow() && !(this.ctrlKey || this.metaKey || this.altKey);\n      }\n    }, {\n      key: 'isVerticalArrow',\n      value: function isVerticalArrow() {\n        return this.isKey('UP') || this.isKey('DOWN');\n      }\n    }, {\n      key: 'isLeftArrow',\n      value: function isLeftArrow() {\n        return this.isKey('LEFT');\n      }\n    }, {\n      key: 'isRightArrow',\n      value: function isRightArrow() {\n        return this.isKey('RIGHT');\n      }\n    }, {\n      key: 'isHome',\n      value: function isHome() {\n        return this.isKey('HOME');\n      }\n    }, {\n      key: 'isEnd',\n      value: function isEnd() {\n        return this.isKey('END');\n      }\n    }, {\n      key: 'isPageUp',\n      value: function isPageUp() {\n        return this.isKey('PAGEUP');\n      }\n    }, {\n      key: 'isPageDown',\n      value: function isPageDown() {\n        return this.isKey('PAGEDOWN');\n      }\n    }, {\n      key: 'isInsert',\n      value: function isInsert() {\n        return this.isKey('INS');\n      }\n    }, {\n      key: 'isClear',\n      value: function isClear() {\n        return this.isKey('CLEAR');\n      }\n    }, {\n      key: 'isPause',\n      value: function isPause() {\n        return this.isKey('PAUSE');\n      }\n    }, {\n      key: 'isSpace',\n      value: function isSpace() {\n        return this.isKey('SPACE');\n      }\n\n      // In Firefox, pressing ctrl-TAB will switch to another open browser tab, but\n      // it will also fire a keydown event for the tab+modifier (ctrl). This causes\n      // Mobiledoc to erroneously insert a tab character before FF switches to the\n      // new browser tab.  Chrome doesn't fire this event so the issue doesn't\n      // arise there. Fix this by returning false when the TAB key event includes a\n      // modifier.\n      // See: https://github.com/bustle/mobiledoc-kit/issues/565\n    }, {\n      key: 'isTab',\n      value: function isTab() {\n        return !this.hasAnyModifier() && this.isKey('TAB');\n      }\n    }, {\n      key: 'isEnter',\n      value: function isEnter() {\n        return this.isKey('ENTER');\n      }\n\n      /*\n       * If the key is the actual shift key. This is false when the shift key\n       * is held down and the source `event` is not the shift key.\n       * @see {isShift}\n       * @return {bool}\n       */\n    }, {\n      key: 'isShiftKey',\n      value: function isShiftKey() {\n        return this.isKey('SHIFT');\n      }\n\n      /*\n       * If the key is the actual alt key (aka \"option\" on mac). This is false when the alt key\n       * is held down and the source `event` is not the alt key.\n       * @return {bool}\n       */\n    }, {\n      key: 'isAltKey',\n      value: function isAltKey() {\n        return this.isKey('ALT');\n      }\n\n      /*\n       * If the key is the actual ctrl key. This is false when the ctrl key\n       * is held down and the source `event` is not the ctrl key.\n       * @return {bool}\n       */\n    }, {\n      key: 'isCtrlKey',\n      value: function isCtrlKey() {\n        return this.isKey('CTRL');\n      }\n    }, {\n      key: 'isIME',\n      value: function isIME() {\n        // FIXME the IME action seems to get lost when we issue an\n        // `editor.deleteSelection` before it (in Chrome)\n        return this.keyCode === _mobiledocKitUtilsKeycodes['default'].IME;\n      }\n    }, {\n      key: 'isShift',\n\n      /**\n       * If the shift key is depressed.\n       * For example, while holding down meta+shift, pressing the \"v\"\n       * key would result in an event whose `Key` had `isShift()` with a truthy value,\n       * because the shift key is down when pressing the \"v\".\n       * @see {isShiftKey} which checks if the key is actually the shift key itself.\n       * @return {bool}\n       */\n      value: function isShift() {\n        return this.shiftKey;\n      }\n    }, {\n      key: 'hasModifier',\n      value: function hasModifier(modifier) {\n        return modifier & this.modifierMask;\n      }\n    }, {\n      key: 'hasAnyModifier',\n      value: function hasAnyModifier() {\n        return !!this.modifierMask;\n      }\n    }, {\n      key: 'isPrintableKey',\n      value: function isPrintableKey() {\n        return !(this.isArrow() || this.isHome() || this.isEnd() || this.isPageUp() || this.isPageDown() || this.isInsert() || this.isClear() || this.isPause() || this.isEscape());\n      }\n    }, {\n      key: 'isNumberKey',\n      value: function isNumberKey() {\n        if (this.isKeySupported()) {\n          return this.key >= '0' && this.key <= '9';\n        } else {\n          var code = this.keyCode;\n          return code >= _mobiledocKitUtilsKeycodes['default']['0'] && code <= _mobiledocKitUtilsKeycodes['default']['9'] || code >= _mobiledocKitUtilsKeycodes['default'].NUMPAD_0 && code <= _mobiledocKitUtilsKeycodes['default'].NUMPAD_9; // numpad keys\n        }\n      }\n    }, {\n      key: 'isLetterKey',\n      value: function isLetterKey() {\n        if (this.isKeySupported()) {\n          var key = this.key;\n          return key >= 'a' && key <= 'z' || key >= 'A' && key <= 'Z';\n        } else {\n          var code = this.keyCode;\n          return code >= _mobiledocKitUtilsKeycodes['default'].A && code <= _mobiledocKitUtilsKeycodes['default'].Z || code >= _mobiledocKitUtilsKeycodes['default'].a && code <= _mobiledocKitUtilsKeycodes['default'].z;\n        }\n      }\n    }, {\n      key: 'isPunctuation',\n      value: function isPunctuation() {\n        if (this.isKeySupported()) {\n          var key = this.key;\n          return key >= ';' && key <= '`' || key >= '[' && key <= '\"';\n        } else {\n          var code = this.keyCode;\n          return code >= _mobiledocKitUtilsKeycodes['default'][';'] && code <= _mobiledocKitUtilsKeycodes['default']['`'] || code >= _mobiledocKitUtilsKeycodes['default']['['] && code <= _mobiledocKitUtilsKeycodes['default']['\"'];\n        }\n      }\n\n      /**\n       * See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode#Printable_keys_in_standard_position\n       *   and http://stackoverflow.com/a/12467610/137784\n       */\n    }, {\n      key: 'isPrintable',\n      value: function isPrintable() {\n        if (this.ctrlKey || this.metaKey) {\n          return false;\n        }\n\n        // Firefox calls keypress events for some keys that should not be printable\n        if (!this.isPrintableKey()) {\n          return false;\n        }\n\n        return this.keyCode !== 0 || this.toString().length > 0 || this.isNumberKey() || this.isSpace() || this.isTab() || this.isEnter() || this.isLetterKey() || this.isPunctuation() || this.isIME();\n      }\n    }, {\n      key: 'direction',\n      get: function get() {\n        switch (true) {\n          case this.isDelete():\n            return this.isForwardDelete() ? DIRECTION.FORWARD : DIRECTION.BACKWARD;\n          case this.isHorizontalArrow():\n            return this.isRightArrow() ? DIRECTION.FORWARD : DIRECTION.BACKWARD;\n        }\n      }\n    }, {\n      key: 'ctrlKey',\n      get: function get() {\n        return MODIFIERS.CTRL & this.modifierMask;\n      }\n    }, {\n      key: 'metaKey',\n      get: function get() {\n        return MODIFIERS.META & this.modifierMask;\n      }\n    }, {\n      key: 'shiftKey',\n      get: function get() {\n        return MODIFIERS.SHIFT & this.modifierMask;\n      }\n    }, {\n      key: 'altKey',\n      get: function get() {\n        return MODIFIERS.ALT & this.modifierMask;\n      }\n    }], [{\n      key: 'fromEvent',\n      value: function fromEvent(event) {\n        (0, _mobiledocKitUtilsAssert['default'])('Must pass a Key event to Key.fromEvent', event && isKeyEvent(event));\n        return new Key(event);\n      }\n    }]);\n\n    return Key;\n  })();\n\n  exports['default'] = Key;\n});","define('mobiledoc-kit/utils/keycodes', ['exports'], function (exports) {\n  'use strict';\n\n  exports['default'] = {\n    BACKSPACE: 8,\n    SPACE: 32,\n    ENTER: 13,\n    SHIFT: 16,\n    ESC: 27,\n    DELETE: 46,\n    '0': 48,\n    '9': 57,\n    A: 65,\n    Z: 90,\n    a: 97,\n    z: 122,\n    'NUMPAD_0': 186,\n    'NUMPAD_9': 111,\n    ';': 186,\n    '.': 190,\n    '`': 192,\n    '[': 219,\n    '\"': 222,\n\n    // Input Method Editor uses multiple keystrokes to display characters.\n    // Example on mac: press option-i then i. This fires 2 key events in Chrome\n    // with keyCode 229 and displays ˆ and then î.\n    // See http://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html#fixed-virtual-key-codes\n    IME: 229,\n\n    TAB: 9,\n    CLEAR: 12,\n    PAUSE: 19,\n    PAGEUP: 33,\n    PAGEDOWN: 34,\n    END: 35,\n    HOME: 36,\n    LEFT: 37,\n    UP: 38,\n    RIGHT: 39,\n    DOWN: 40,\n    INS: 45,\n    META: 91,\n    ALT: 18,\n    CTRL: 17\n  };\n});","define('mobiledoc-kit/utils/keys', ['exports'], function (exports) {\n  'use strict';\n\n  exports['default'] = {\n    BACKSPACE: 'Backspace',\n    SPACE: ' ',\n    ENTER: 'Enter',\n    SHIFT: 'Shift',\n    ESC: 'Escape',\n    DELETE: 'Delete',\n    INS: 'Insert',\n    HOME: 'Home',\n    END: 'End',\n    PAGEUP: 'PageUp',\n    PAGEDOWN: 'PageDown',\n    CLEAR: 'Clear',\n    PAUSE: 'Pause',\n    TAB: 'Tab',\n    ALT: 'Alt',\n    CTRL: 'Control',\n\n    LEFT: 'ArrowLeft',\n    RIGHT: 'ArrowRight',\n    UP: 'ArrowUp',\n    DOWN: 'ArrowDown'\n  };\n});","define(\"mobiledoc-kit/utils/linked-item\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n  var LinkedItem = function LinkedItem() {\n    _classCallCheck(this, LinkedItem);\n\n    this.next = null;\n    this.prev = null;\n  };\n\n  exports[\"default\"] = LinkedItem;\n});","define('mobiledoc-kit/utils/linked-list', ['exports', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var PARENT_PROP = '__parent';\n\n  var LinkedList = (function () {\n    function LinkedList(options) {\n      _classCallCheck(this, LinkedList);\n\n      this.head = null;\n      this.tail = null;\n      this.length = 0;\n\n      if (options) {\n        var adoptItem = options.adoptItem;\n        var freeItem = options.freeItem;\n\n        this._adoptItem = adoptItem;\n        this._freeItem = freeItem;\n      }\n    }\n\n    _createClass(LinkedList, [{\n      key: 'adoptItem',\n      value: function adoptItem(item) {\n        item[PARENT_PROP] = this;\n        this.length++;\n        if (this._adoptItem) {\n          this._adoptItem(item);\n        }\n      }\n    }, {\n      key: 'freeItem',\n      value: function freeItem(item) {\n        item[PARENT_PROP] = null;\n        this.length--;\n        if (this._freeItem) {\n          this._freeItem(item);\n        }\n      }\n    }, {\n      key: 'prepend',\n      value: function prepend(item) {\n        this.insertBefore(item, this.head);\n      }\n    }, {\n      key: 'append',\n      value: function append(item) {\n        this.insertBefore(item, null);\n      }\n    }, {\n      key: 'insertAfter',\n      value: function insertAfter(item, prevItem) {\n        var nextItem = prevItem ? prevItem.next : this.head;\n        this.insertBefore(item, nextItem);\n      }\n    }, {\n      key: '_ensureItemIsNotAlreadyInList',\n      value: function _ensureItemIsNotAlreadyInList(item) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot insert an item into a list if it is already in a list', !item.next && !item.prev && this.head !== item);\n      }\n    }, {\n      key: 'insertBefore',\n      value: function insertBefore(item, nextItem) {\n        this._ensureItemIsNotInList(item);\n        this.adoptItem(item);\n\n        var insertPos = undefined;\n        if (nextItem && nextItem.prev) {\n          insertPos = 'middle';\n        } else if (nextItem) {\n          insertPos = 'start';\n        } else {\n          insertPos = 'end';\n        }\n\n        switch (insertPos) {\n          case 'start':\n            if (this.head) {\n              item.next = this.head;\n              this.head.prev = item;\n            }\n            this.head = item;\n\n            break;\n          case 'middle':\n            {\n              var prevItem = nextItem.prev;\n              item.next = nextItem;\n              item.prev = prevItem;\n              nextItem.prev = item;\n              prevItem.next = item;\n\n              break;\n            }\n          case 'end':\n            {\n              var tail = this.tail;\n              item.prev = tail;\n\n              if (tail) {\n                tail.next = item;\n              } else {\n                this.head = item;\n              }\n              this.tail = item;\n\n              break;\n            }\n        }\n      }\n    }, {\n      key: 'remove',\n      value: function remove(item) {\n        if (!item[PARENT_PROP]) {\n          return;\n        }\n        this._ensureItemIsInThisList(item);\n        this.freeItem(item);\n\n        var prev = item.prev;\n        var next = item.next;\n\n        item.prev = null;\n        item.next = null;\n\n        if (prev) {\n          prev.next = next;\n        } else {\n          this.head = next;\n        }\n\n        if (next) {\n          next.prev = prev;\n        } else {\n          this.tail = prev;\n        }\n      }\n    }, {\n      key: 'forEach',\n      value: function forEach(callback) {\n        var item = this.head;\n        var index = 0;\n        while (item) {\n          callback(item, index++);\n          item = item.next;\n        }\n      }\n    }, {\n      key: 'map',\n      value: function map(callback) {\n        var result = [];\n        this.forEach(function (i) {\n          return result.push(callback(i));\n        });\n        return result;\n      }\n    }, {\n      key: 'walk',\n      value: function walk(startItem, endItem, callback) {\n        var item = startItem || this.head;\n        while (item) {\n          callback(item);\n          if (item === endItem) {\n            break;\n          }\n          item = item.next;\n        }\n      }\n    }, {\n      key: 'readRange',\n      value: function readRange(startItem, endItem) {\n        var items = [];\n        this.walk(startItem, endItem, function (item) {\n          items.push(item);\n        });\n        return items;\n      }\n    }, {\n      key: 'toArray',\n      value: function toArray() {\n        return this.readRange();\n      }\n    }, {\n      key: 'detect',\n      value: function detect(callback) {\n        var item = arguments.length <= 1 || arguments[1] === undefined ? this.head : arguments[1];\n        var reverse = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2];\n\n        while (item) {\n          if (callback(item)) {\n            return item;\n          }\n          item = reverse ? item.prev : item.next;\n        }\n      }\n    }, {\n      key: 'any',\n      value: function any(callback) {\n        return !!this.detect(callback);\n      }\n    }, {\n      key: 'every',\n      value: function every(callback) {\n        var item = this.head;\n        while (item) {\n          if (!callback(item)) {\n            return false;\n          }\n          item = item.next;\n        }\n        return true;\n      }\n    }, {\n      key: 'objectAt',\n      value: function objectAt(targetIndex) {\n        var index = -1;\n        return this.detect(function () {\n          index++;\n          return targetIndex === index;\n        });\n      }\n    }, {\n      key: 'splice',\n      value: function splice(targetItem, removalCount, newItems) {\n        var _this = this;\n\n        var item = targetItem;\n        var nextItem = item.next;\n        var count = 0;\n        while (item && count < removalCount) {\n          count++;\n          nextItem = item.next;\n          this.remove(item);\n          item = nextItem;\n        }\n        newItems.forEach(function (newItem) {\n          _this.insertBefore(newItem, nextItem);\n        });\n      }\n    }, {\n      key: 'removeBy',\n      value: function removeBy(conditionFn) {\n        var item = this.head;\n        while (item) {\n          var nextItem = item.next;\n\n          if (conditionFn(item)) {\n            this.remove(item);\n          }\n\n          item = nextItem;\n        }\n      }\n    }, {\n      key: '_ensureItemIsNotInList',\n      value: function _ensureItemIsNotInList(item) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot insert an item into a list if it is already in a list', !item[PARENT_PROP]);\n      }\n    }, {\n      key: '_ensureItemIsInThisList',\n      value: function _ensureItemIsInThisList(item) {\n        (0, _mobiledocKitUtilsAssert['default'])('Cannot remove item that is in another list', item[PARENT_PROP] === this);\n      }\n    }, {\n      key: 'isEmpty',\n      get: function get() {\n        return this.length === 0;\n      }\n    }]);\n\n    return LinkedList;\n  })();\n\n  exports['default'] = LinkedList;\n});","define(\"mobiledoc-kit/utils/log-manager\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n  var Logger = (function () {\n    function Logger(type, manager) {\n      _classCallCheck(this, Logger);\n\n      this.type = type;\n      this.manager = manager;\n    }\n\n    _createClass(Logger, [{\n      key: \"isEnabled\",\n      value: function isEnabled() {\n        return this.manager.isEnabled(this.type);\n      }\n    }, {\n      key: \"log\",\n      value: function log() {\n        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n          args[_key] = arguments[_key];\n        }\n\n        args.unshift(\"[\" + this.type + \"]\");\n        if (this.isEnabled()) {\n          var _window$console;\n\n          (_window$console = window.console).log.apply(_window$console, args);\n        }\n      }\n    }]);\n\n    return Logger;\n  })();\n\n  var LogManager = (function () {\n    function LogManager() {\n      _classCallCheck(this, LogManager);\n\n      this.enabledTypes = [];\n      this.allEnabled = false;\n    }\n\n    _createClass(LogManager, [{\n      key: \"for\",\n      value: function _for(type) {\n        return new Logger(type, this);\n      }\n    }, {\n      key: \"enableAll\",\n      value: function enableAll() {\n        this.allEnabled = true;\n      }\n    }, {\n      key: \"enableTypes\",\n      value: function enableTypes(types) {\n        this.enabledTypes = this.enabledTypes.concat(types);\n      }\n    }, {\n      key: \"disable\",\n      value: function disable() {\n        this.enabledTypes = [];\n        this.allEnabled = false;\n      }\n    }, {\n      key: \"isEnabled\",\n      value: function isEnabled(type) {\n        return this.allEnabled || this.enabledTypes.indexOf(type) !== -1;\n      }\n    }]);\n\n    return LogManager;\n  })();\n\n  exports[\"default\"] = LogManager;\n});","define('mobiledoc-kit/utils/markuperable', ['exports', 'mobiledoc-kit/utils/dom-utils', 'mobiledoc-kit/utils/array-utils'], function (exports, _mobiledocKitUtilsDomUtils, _mobiledocKitUtilsArrayUtils) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var Markerupable = (function () {\n    function Markerupable() {\n      _classCallCheck(this, Markerupable);\n    }\n\n    _createClass(Markerupable, [{\n      key: 'clearMarkups',\n      value: function clearMarkups() {\n        this.markups = [];\n      }\n    }, {\n      key: 'addMarkup',\n      value: function addMarkup(markup) {\n        this.markups.push(markup);\n      }\n    }, {\n      key: 'addMarkupAtIndex',\n      value: function addMarkupAtIndex(markup, index) {\n        this.markups.splice(index, 0, markup);\n      }\n    }, {\n      key: 'removeMarkup',\n      value: function removeMarkup(markupOrMarkupCallback) {\n        var _this = this;\n\n        var callback = undefined;\n        if (typeof markupOrMarkupCallback === 'function') {\n          callback = markupOrMarkupCallback;\n        } else {\n          (function () {\n            var markup = markupOrMarkupCallback;\n            callback = function (_markup) {\n              return _markup === markup;\n            };\n          })();\n        }\n\n        (0, _mobiledocKitUtilsArrayUtils.forEach)((0, _mobiledocKitUtilsArrayUtils.filter)(this.markups, callback), function (m) {\n          return _this._removeMarkup(m);\n        });\n      }\n    }, {\n      key: '_removeMarkup',\n      value: function _removeMarkup(markup) {\n        var index = this.markups.indexOf(markup);\n        if (index !== -1) {\n          this.markups.splice(index, 1);\n        }\n      }\n    }, {\n      key: 'hasMarkup',\n      value: function hasMarkup(tagNameOrMarkup) {\n        return !!this.getMarkup(tagNameOrMarkup);\n      }\n    }, {\n      key: 'getMarkup',\n      value: function getMarkup(tagNameOrMarkup) {\n        var _this2 = this;\n\n        if (typeof tagNameOrMarkup === 'string') {\n          var _ret2 = (function () {\n            var tagName = (0, _mobiledocKitUtilsDomUtils.normalizeTagName)(tagNameOrMarkup);\n            return {\n              v: (0, _mobiledocKitUtilsArrayUtils.detect)(_this2.markups, function (markup) {\n                return markup.tagName === tagName;\n              })\n            };\n          })();\n\n          if (typeof _ret2 === 'object') return _ret2.v;\n        } else {\n          var _ret3 = (function () {\n            var targetMarkup = tagNameOrMarkup;\n            return {\n              v: (0, _mobiledocKitUtilsArrayUtils.detect)(_this2.markups, function (markup) {\n                return markup === targetMarkup;\n              })\n            };\n          })();\n\n          if (typeof _ret3 === 'object') return _ret3.v;\n        }\n      }\n    }, {\n      key: 'openedMarkups',\n      get: function get() {\n        var count = 0;\n        if (this.prev) {\n          count = (0, _mobiledocKitUtilsArrayUtils.commonItemLength)(this.markups, this.prev.markups);\n        }\n\n        return this.markups.slice(count);\n      }\n    }, {\n      key: 'closedMarkups',\n      get: function get() {\n        var count = 0;\n        if (this.next) {\n          count = (0, _mobiledocKitUtilsArrayUtils.commonItemLength)(this.markups, this.next.markups);\n        }\n\n        return this.markups.slice(count);\n      }\n    }]);\n\n    return Markerupable;\n  })();\n\n  exports['default'] = Markerupable;\n});","define(\"mobiledoc-kit/utils/merge\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  function mergeWithOptions(original, updates, options) {\n    options = options || {};\n    for (var prop in updates) {\n      if (options.hasOwnProperty(prop)) {\n        original[prop] = options[prop];\n      } else if (updates.hasOwnProperty(prop)) {\n        original[prop] = updates[prop];\n      }\n    }\n    return original;\n  }\n\n  /**\n   * Merges properties of one object into another\n   * @private\n   */\n  function merge(original, updates) {\n    return mergeWithOptions(original, updates);\n  }\n\n  exports.mergeWithOptions = mergeWithOptions;\n  exports.merge = merge;\n});","define('mobiledoc-kit/utils/mixin', ['exports'], function (exports) {\n  'use strict';\n\n  exports['default'] = mixin;\n  var CONSTRUCTOR_FN_NAME = 'constructor';\n\n  function mixin(target, source) {\n    target = target.prototype;\n    // Fallback to just `source` to allow mixing in a plain object (pojo)\n    source = source.prototype || source;\n\n    Object.getOwnPropertyNames(source).forEach(function (name) {\n      if (name !== CONSTRUCTOR_FN_NAME) {\n        var descriptor = Object.getOwnPropertyDescriptor(source, name);\n\n        Object.defineProperty(target, name, descriptor);\n      }\n    });\n  }\n});","define('mobiledoc-kit/utils/mobiledoc-error', ['exports'], function (exports) {\n  'use strict';\n\n  var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\n  function MobiledocError() {\n    var tmp = Error.apply(this, arguments);\n\n    if (Error.captureStackTrace) {\n      Error.captureStackTrace(this, this.constructor);\n    }\n    // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n    for (var idx = 0; idx < errorProps.length; idx++) {\n      this[errorProps[idx]] = tmp[errorProps[idx]];\n    }\n  }\n\n  MobiledocError.prototype = Object.create(Error.prototype);\n\n  exports['default'] = MobiledocError;\n});","define(\"mobiledoc-kit/utils/object-utils\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  exports.entries = entries;\n\n  function entries(obj) {\n    var ownProps = Object.keys(obj);\n    var i = ownProps.length;\n    var resArray = new Array(i);\n\n    while (i--) {\n      resArray[i] = [ownProps[i], obj[ownProps[i]]];\n    }\n\n    return resArray;\n  }\n});","define('mobiledoc-kit/utils/parse-utils', ['exports', 'mobiledoc-kit/parsers/mobiledoc', 'mobiledoc-kit/parsers/html', 'mobiledoc-kit/parsers/text'], function (exports, _mobiledocKitParsersMobiledoc, _mobiledocKitParsersHtml, _mobiledocKitParsersText) {\n  /* global JSON */\n  'use strict';\n\n  exports.getContentFromPasteEvent = getContentFromPasteEvent;\n  exports.setClipboardData = setClipboardData;\n  exports.parsePostFromPaste = parsePostFromPaste;\n  exports.parsePostFromDrop = parsePostFromDrop;\n  var MIME_TEXT_PLAIN = 'text/plain';\n  exports.MIME_TEXT_PLAIN = MIME_TEXT_PLAIN;\n  var MIME_TEXT_HTML = 'text/html';\n  exports.MIME_TEXT_HTML = MIME_TEXT_HTML;\n  var NONSTANDARD_IE_TEXT_TYPE = 'Text';\n\n  exports.NONSTANDARD_IE_TEXT_TYPE = NONSTANDARD_IE_TEXT_TYPE;\n  var MOBILEDOC_REGEX = new RegExp(/data\\-mobiledoc='(.*?)'>/);\n\n  /**\n   * @return {Post}\n   * @private\n   */\n  function parsePostFromHTML(html, builder, plugins) {\n    var post = undefined;\n\n    if (MOBILEDOC_REGEX.test(html)) {\n      var mobiledocString = html.match(MOBILEDOC_REGEX)[1];\n      var mobiledoc = JSON.parse(mobiledocString);\n      post = _mobiledocKitParsersMobiledoc['default'].parse(builder, mobiledoc);\n    } else {\n      post = new _mobiledocKitParsersHtml['default'](builder, { plugins: plugins }).parse(html);\n    }\n\n    return post;\n  }\n\n  /**\n   * @return {Post}\n   * @private\n   */\n  function parsePostFromText(text, builder, plugins) {\n    var parser = new _mobiledocKitParsersText['default'](builder, { plugins: plugins });\n    var post = parser.parse(text);\n    return post;\n  }\n\n  /**\n   * @return {{html: String, text: String}}\n   * @private\n   */\n\n  function getContentFromPasteEvent(event, window) {\n    var html = '',\n        text = '';\n\n    var clipboardData = event.clipboardData;\n\n    if (clipboardData && clipboardData.getData) {\n      html = clipboardData.getData(MIME_TEXT_HTML);\n      text = clipboardData.getData(MIME_TEXT_PLAIN);\n    } else if (window.clipboardData && window.clipboardData.getData) {\n      // IE\n      // The Internet Explorers (including Edge) have a non-standard way of interacting with the\n      // Clipboard API (see http://caniuse.com/#feat=clipboard). In short, they expose a global window.clipboardData\n      // object instead of the per-event event.clipboardData object on the other browsers.\n      html = window.clipboardData.getData(NONSTANDARD_IE_TEXT_TYPE);\n    }\n\n    return { html: html, text: text };\n  }\n\n  /**\n   * @return {{html: String, text: String}}\n   * @private\n   */\n  function getContentFromDropEvent(event, logger) {\n    var html = '',\n        text = '';\n\n    try {\n      html = event.dataTransfer.getData(MIME_TEXT_HTML);\n      text = event.dataTransfer.getData(MIME_TEXT_PLAIN);\n    } catch (e) {\n      // FIXME IE11 does not include any data in the 'text/html' or 'text/plain'\n      // mimetypes. It throws an error 'Invalid argument' when attempting to read\n      // these properties.\n      if (logger) {\n        logger.log('Error getting drop data: ', e);\n      }\n    }\n\n    return { html: html, text: text };\n  }\n\n  /**\n   * @param {CopyEvent|CutEvent}\n   * @param {Editor}\n   * @param {Window}\n   * @private\n   */\n\n  function setClipboardData(event, _ref, window) {\n    var mobiledoc = _ref.mobiledoc;\n    var html = _ref.html;\n    var text = _ref.text;\n\n    if (mobiledoc && html) {\n      html = '<div data-mobiledoc=\\'' + JSON.stringify(mobiledoc) + '\\'>' + html + '</div>';\n    }\n\n    var clipboardData = event.clipboardData;\n    var nonstandardClipboardData = window.clipboardData;\n\n    if (clipboardData && clipboardData.setData) {\n      clipboardData.setData(MIME_TEXT_HTML, html);\n      clipboardData.setData(MIME_TEXT_PLAIN, text);\n    } else if (nonstandardClipboardData && nonstandardClipboardData.setData) {\n      // The Internet Explorers (including Edge) have a non-standard way of interacting with the\n      // Clipboard API (see http://caniuse.com/#feat=clipboard). In short, they expose a global window.clipboardData\n      // object instead of the per-event event.clipboardData object on the other browsers.\n      nonstandardClipboardData.setData(NONSTANDARD_IE_TEXT_TYPE, html);\n    }\n  }\n\n  /**\n   * @param {PasteEvent}\n   * @param {{builder: Builder, _parserPlugins: Array}} options\n   * @return {Post}\n   * @private\n   */\n\n  function parsePostFromPaste(pasteEvent, _ref2) {\n    var builder = _ref2.builder;\n    var plugins = _ref2._parserPlugins;\n\n    var _ref3 = arguments.length <= 2 || arguments[2] === undefined ? { targetFormat: 'html' } : arguments[2];\n\n    var targetFormat = _ref3.targetFormat;\n\n    var _getContentFromPasteEvent = getContentFromPasteEvent(pasteEvent, window);\n\n    var html = _getContentFromPasteEvent.html;\n    var text = _getContentFromPasteEvent.text;\n\n    if (targetFormat === 'html' && html && html.length) {\n      return parsePostFromHTML(html, builder, plugins);\n    } else if (text && text.length) {\n      return parsePostFromText(text, builder, plugins);\n    }\n  }\n\n  /**\n   * @param {DropEvent}\n   * @param {Editor} editor\n   * @param {Object} [options={}] Can pass a logger\n   * @return {Post}\n   * @private\n   */\n\n  function parsePostFromDrop(dropEvent, editor) {\n    var _ref4 = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];\n\n    var logger = _ref4.logger;\n    var builder = editor.builder;\n    var plugins = editor._parserPlugins;\n\n    var _getContentFromDropEvent = getContentFromDropEvent(dropEvent, logger);\n\n    var html = _getContentFromDropEvent.html;\n    var text = _getContentFromDropEvent.text;\n\n    if (html && html.length) {\n      return parsePostFromHTML(html, builder, plugins);\n    } else if (text && text.length) {\n      return parsePostFromText(text, builder, plugins);\n    }\n  }\n});","define(\"mobiledoc-kit/utils/placeholder-image-src\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  var placeholderImageSrc = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAMFBMVEXp7vG6vsHm6+63u77Hy868wMPe4+bO09bh5unr8fTR1djAxMfM0NPX3N/c4eTBxcjXRf5TAAACh0lEQVR4nO3b6ZKqMBSFUSQMYZL3f9tbBq/NEEDiqUqOfusn1ZXKbjcQlGQZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACC6RkbsGHuabChEtHmiGYfS3EQYM+Sxw/gMQvmcNnYaj6oTDHi73WPn2eqnj9B8zo3TJXcq5uNjXmVff86VwSR3JtryMa1BYqi7S1hJDCVpSigyLcGhJJEwzlCSNtPKrbVhVwsdCfOhH7uuaG3ARV9DwsaOzxt3N1yPqCHhvXytTUz92VDpmE/LLhZwl++R6Sds6sUa/PL6K/2E2fIhw1xdRKefsFolrPc+xNx/N0k/4fpBsdhL2HfeiN+TsDCms8dDpeRyS3P3QDl6Iqaf8L0rTf+80m6Lmn7Ct+4Wxf+/2RY1/YRv3PHz/u+fsCmqgoTnq7Z+8SGviqoh4dnKu1ieqauiakh4/PQ0r6ivqDoSHj0B97eNRVG1JNxV+L4bnxdVecJtRTdFVZ7QU9F1UXUn9FZ0VVRlCav5ob2KLouqKmFjy676u2HsVnRRVFUJq3J+8KCi86IqSthMvyl209Hjijqm3RsqAZ5pNfa5PJ2KelJRjQmr1/r7cfy0ouoSNvOfvbvhvKLaEr4qOin9kTQnrN7LpDZhE/Zmhp6Eq4p+YcKgiipKGFhRRQkDK6ooYfgLbiSMioQkJGF8P5XwHv4O+7AaKiXzaeXh1kMl5AffTUxiKEm/krD94BR8Gdxl1fceSlR58ZhXKbEpyD2amNiBtmrJLTMHL1LF8/rpXkSZXEmz8K8uvAFFNm6Iq0aBLUFOmeCuJ6exrcCmoLpN7kYx891bSAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgh/wDdr8peyRHLogAAAAASUVORK5CYII=\";\n\n  exports[\"default\"] = placeholderImageSrc;\n});","define('mobiledoc-kit/utils/selection-utils', ['exports', 'mobiledoc-kit/utils/key', 'mobiledoc-kit/utils/dom-utils'], function (exports, _mobiledocKitUtilsKey, _mobiledocKitUtilsDomUtils) {\n  'use strict';\n\n  function clearSelection() {\n    window.getSelection().removeAllRanges();\n  }\n\n  function textNodeRects(node) {\n    var range = document.createRange();\n    range.setEnd(node, node.nodeValue.length);\n    range.setStart(node, 0);\n    return range.getClientRects();\n  }\n\n  function findOffsetInTextNode(node, coords) {\n    var len = node.nodeValue.length;\n    var range = document.createRange();\n    for (var i = 0; i < len; i++) {\n      range.setEnd(node, i + 1);\n      range.setStart(node, i);\n      var rect = range.getBoundingClientRect();\n      if (rect.top === rect.bottom) {\n        continue;\n      }\n      if (rect.left <= coords.left && rect.right >= coords.left && rect.top <= coords.top && rect.bottom >= coords.top) {\n        return { node: node, offset: i + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0) };\n      }\n    }\n    return { node: node, offset: 0 };\n  }\n\n  /*\n   * @param {Object} coords with `top` and `left`\n   * @see https://github.com/ProseMirror/prosemirror/blob/4c22e3fe97d87a355a0534e25d65aaf0c0d83e57/src/edit/dompos.js\n   * @return {Object} {node, offset}\n   */\n  /* eslint-disable complexity */\n  function findOffsetInNode(_x, _x2) {\n    var _again = true;\n\n    _function: while (_again) {\n      var node = _x,\n          coords = _x2;\n      _again = false;\n\n      var closest = undefined,\n          dyClosest = 1e8,\n          coordsClosest = undefined,\n          offset = 0;\n      for (var child = node.firstChild; child; child = child.nextSibling) {\n        var rects = undefined;\n        if ((0, _mobiledocKitUtilsDomUtils.isElementNode)(child)) {\n          rects = child.getClientRects();\n        } else if ((0, _mobiledocKitUtilsDomUtils.isTextNode)(child)) {\n          rects = textNodeRects(child);\n        } else {\n          continue;\n        }\n\n        for (var i = 0; i < rects.length; i++) {\n          var rect = rects[i];\n          if (rect.left <= coords.left && rect.right >= coords.left) {\n            var dy = rect.top > coords.top ? rect.top - coords.top : rect.bottom < coords.top ? coords.top - rect.bottom : 0;\n            if (dy < dyClosest) {\n              closest = child;\n              dyClosest = dy;\n              coordsClosest = dy ? { left: coords.left, top: rect.top } : coords;\n              if ((0, _mobiledocKitUtilsDomUtils.isElementNode)(child) && !child.firstChild) {\n                offset = i + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0);\n              }\n              continue;\n            }\n          }\n          if (!closest && (coords.top >= rect.bottom || coords.top >= rect.top && coords.left >= rect.right)) {\n            offset = i + 1;\n          }\n        }\n      }\n      if (!closest) {\n        return { node: node, offset: offset };\n      }\n      if ((0, _mobiledocKitUtilsDomUtils.isTextNode)(closest)) {\n        return findOffsetInTextNode(closest, coordsClosest);\n      }\n      if (closest.firstChild) {\n        _x = closest;\n        _x2 = coordsClosest;\n        _again = true;\n        closest = dyClosest = coordsClosest = offset = child = rects = i = rect = dy = undefined;\n        continue _function;\n      }\n      return { node: node, offset: offset };\n    }\n  }\n  /* eslint-enable complexity */\n\n  function constrainNodeTo(node, parentNode, existingOffset) {\n    var compare = parentNode.compareDocumentPosition(node);\n    if (compare & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n      // the node is inside parentNode, do nothing\n      return { node: node, offset: existingOffset };\n    } else if (compare & Node.DOCUMENT_POSITION_CONTAINS) {\n      // the node contains parentNode. This shouldn't happen.\n      return { node: node, offset: existingOffset };\n    } else if (compare & Node.DOCUMENT_POSITION_PRECEDING) {\n      // node is before parentNode. return start of deepest first child\n      var child = parentNode.firstChild;\n      while (child.firstChild) {\n        child = child.firstChild;\n      }\n      return { node: child, offset: 0 };\n    } else if (compare & Node.DOCUMENT_POSITION_FOLLOWING) {\n      // node is after parentNode. return end of deepest last child\n      var child = parentNode.lastChild;\n      while (child.lastChild) {\n        child = child.lastChild;\n      }\n\n      var offset = (0, _mobiledocKitUtilsDomUtils.isTextNode)(child) ? child.textContent.length : 1;\n      return { node: child, offset: offset };\n    } else {\n      return { node: node, offset: existingOffset };\n    }\n  }\n\n  /*\n   * Returns a new selection that is constrained within parentNode.\n   * If the anchorNode or focusNode are outside the parentNode, they are replaced with the beginning\n   * or end of the parentNode's children\n   */\n  function constrainSelectionTo(selection, parentNode) {\n    var _constrainNodeTo = constrainNodeTo(selection.anchorNode, parentNode, selection.anchorOffset);\n\n    var anchorNode = _constrainNodeTo.node;\n    var anchorOffset = _constrainNodeTo.offset;\n\n    var _constrainNodeTo2 = constrainNodeTo(selection.focusNode, parentNode, selection.focusOffset);\n\n    var focusNode = _constrainNodeTo2.node;\n    var focusOffset = _constrainNodeTo2.offset;\n\n    return { anchorNode: anchorNode, anchorOffset: anchorOffset, focusNode: focusNode, focusOffset: focusOffset };\n  }\n\n  function comparePosition(_x3) {\n    var _again2 = true;\n\n    _function2: while (_again2) {\n      var selection = _x3;\n      _again2 = false;\n      var anchorNode = selection.anchorNode;\n      var focusNode = selection.focusNode;\n      var anchorOffset = selection.anchorOffset;\n      var focusOffset = selection.focusOffset;\n\n      var headNode = undefined,\n          tailNode = undefined,\n          headOffset = undefined,\n          tailOffset = undefined,\n          direction = undefined;\n\n      var position = anchorNode.compareDocumentPosition(focusNode);\n\n      // IE may select return focus and anchor nodes far up the DOM tree instead of\n      // picking the deepest, most specific possible node. For example in\n      //\n      //     <div><span>abc</span><span>def</span></div>\n      //\n      // with a cursor between c and d, IE might say the focusNode is <div> with\n      // an offset of 1. However the anchorNode for a selection might still be\n      // <span> 2 if there was a selection.\n      //\n      // This code walks down the DOM tree until a good comparison of position can be\n      // made.\n      //\n      if (position & Node.DOCUMENT_POSITION_CONTAINS) {\n        if (focusOffset < focusNode.childNodes.length) {\n          focusNode = focusNode.childNodes[focusOffset];\n          focusOffset = 0;\n        } else {\n          // This situation happens on IE when triple-clicking to select.\n          // Set the focus to the very last character inside the node.\n          while (focusNode.lastChild) {\n            focusNode = focusNode.lastChild;\n          }\n          focusOffset = focusNode.textContent.length;\n        }\n\n        _x3 = {\n          focusNode: focusNode,\n          focusOffset: focusOffset,\n          anchorNode: anchorNode, anchorOffset: anchorOffset\n        };\n        _again2 = true;\n        anchorNode = focusNode = anchorOffset = focusOffset = headNode = tailNode = headOffset = tailOffset = direction = position = undefined;\n        continue _function2;\n      } else if (position & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n        var offset = anchorOffset - 1;\n        if (offset < 0) {\n          offset = 0;\n        }\n        _x3 = {\n          anchorNode: anchorNode.childNodes[offset],\n          anchorOffset: 0,\n          focusNode: focusNode, focusOffset: focusOffset\n        };\n        _again2 = true;\n        anchorNode = focusNode = anchorOffset = focusOffset = headNode = tailNode = headOffset = tailOffset = direction = position = offset = undefined;\n        continue _function2;\n\n        // The meat of translating anchor and focus nodes to head and tail nodes\n      } else if (position & Node.DOCUMENT_POSITION_FOLLOWING) {\n          headNode = anchorNode;tailNode = focusNode;\n          headOffset = anchorOffset;tailOffset = focusOffset;\n          direction = _mobiledocKitUtilsKey.DIRECTION.FORWARD;\n        } else if (position & Node.DOCUMENT_POSITION_PRECEDING) {\n          headNode = focusNode;tailNode = anchorNode;\n          headOffset = focusOffset;tailOffset = anchorOffset;\n          direction = _mobiledocKitUtilsKey.DIRECTION.BACKWARD;\n        } else {\n          // same node\n          headNode = tailNode = anchorNode;\n          headOffset = anchorOffset;\n          tailOffset = focusOffset;\n          if (tailOffset < headOffset) {\n            // Swap the offset order\n            headOffset = focusOffset;\n            tailOffset = anchorOffset;\n            direction = _mobiledocKitUtilsKey.DIRECTION.BACKWARD;\n          } else if (headOffset < tailOffset) {\n            direction = _mobiledocKitUtilsKey.DIRECTION.FORWARD;\n          } else {\n            direction = null;\n          }\n        }\n\n      return { headNode: headNode, headOffset: headOffset, tailNode: tailNode, tailOffset: tailOffset, direction: direction };\n    }\n  }\n\n  exports.clearSelection = clearSelection;\n  exports.comparePosition = comparePosition;\n  exports.findOffsetInNode = findOffsetInNode;\n  exports.constrainSelectionTo = constrainSelectionTo;\n});","define(\"mobiledoc-kit/utils/set\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n  var Set = (function () {\n    function Set() {\n      var _this = this;\n\n      var items = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\n      _classCallCheck(this, Set);\n\n      this.items = [];\n      items.forEach(function (i) {\n        return _this.add(i);\n      });\n    }\n\n    _createClass(Set, [{\n      key: \"add\",\n      value: function add(item) {\n        if (!this.has(item)) {\n          this.items.push(item);\n        }\n      }\n    }, {\n      key: \"has\",\n      value: function has(item) {\n        return this.items.indexOf(item) !== -1;\n      }\n    }, {\n      key: \"toArray\",\n      value: function toArray() {\n        return this.items;\n      }\n    }, {\n      key: \"length\",\n      get: function get() {\n        return this.items.length;\n      }\n    }]);\n\n    return Set;\n  })();\n\n  exports[\"default\"] = Set;\n});","define('mobiledoc-kit/utils/string-utils', ['exports'], function (exports) {\n  /*\n   * @param {String} string\n   * @return {String} a dasherized string. 'modelIndex' -> 'model-index', etc\n   */\n  'use strict';\n\n  exports.dasherize = dasherize;\n  exports.capitalize = capitalize;\n  exports.startsWith = startsWith;\n  exports.endsWith = endsWith;\n\n  function dasherize(string) {\n    return string.replace(/[A-Z]/g, function (match, offset) {\n      var lower = match.toLowerCase();\n\n      return offset === 0 ? lower : '-' + lower;\n    });\n  }\n\n  function capitalize(string) {\n    return string.charAt(0).toUpperCase() + string.slice(1);\n  }\n\n  function startsWith(string, character) {\n    return string.charAt(0) === character;\n  }\n\n  function endsWith(string, endString) {\n    var index = string.lastIndexOf(endString);\n    return index !== -1 && index === string.length - endString.length;\n  }\n});","define('mobiledoc-kit/utils/to-range', ['exports', 'mobiledoc-kit/utils/cursor/range', 'mobiledoc-kit/utils/cursor/position', 'mobiledoc-kit/utils/assert'], function (exports, _mobiledocKitUtilsCursorRange, _mobiledocKitUtilsCursorPosition, _mobiledocKitUtilsAssert) {\n  'use strict';\n\n  exports['default'] = toRange;\n\n  function toRange(rangeLike) {\n    (0, _mobiledocKitUtilsAssert['default'])('Must pass non-blank object to \"toRange\"', !!rangeLike);\n\n    if (rangeLike instanceof _mobiledocKitUtilsCursorRange['default']) {\n      return rangeLike;\n    } else if (rangeLike instanceof _mobiledocKitUtilsCursorPosition['default']) {\n      return rangeLike.toRange();\n    }\n\n    (0, _mobiledocKitUtilsAssert['default'])('Incorrect structure for rangeLike: ' + rangeLike, false);\n  }\n});","define('mobiledoc-kit/version', ['exports'], function (exports) {\n  'use strict';\n\n  exports['default'] = '##VERSION##';\n});","define('mobiledoc-kit/views/tooltip', ['exports', 'mobiledoc-kit/views/view', 'mobiledoc-kit/utils/element-utils'], function (exports, _mobiledocKitViewsView, _mobiledocKitUtilsElementUtils) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n  var DELAY = 200;\n\n  var Tooltip = (function (_View) {\n    _inherits(Tooltip, _View);\n\n    function Tooltip(options) {\n      var _this = this;\n\n      _classCallCheck(this, Tooltip);\n\n      var rootElement = options.rootElement;\n\n      var timeout = undefined;\n      options.classNames = ['__mobiledoc-tooltip'];\n      _get(Object.getPrototypeOf(Tooltip.prototype), 'constructor', this).call(this, options);\n\n      this.addEventListener(rootElement, 'mouseover', function (e) {\n        var target = (0, _mobiledocKitUtilsElementUtils.getEventTargetMatchingTag)(options.showForTag, e.target, rootElement);\n        if (target && target.isContentEditable) {\n          timeout = setTimeout(function () {\n            _this.showLink(target.href, target);\n          }, DELAY);\n        }\n      });\n\n      this.addEventListener(rootElement, 'mouseout', function (e) {\n        clearTimeout(timeout);\n        if (_this.elementObserver) {\n          _this.elementObserver.cancel();\n        }\n        var toElement = e.toElement || e.relatedTarget;\n        if (toElement && toElement.className !== _this.element.className) {\n          _this.hide();\n        }\n      });\n    }\n\n    _createClass(Tooltip, [{\n      key: 'showMessage',\n      value: function showMessage(message, element) {\n        var tooltipElement = this.element;\n        tooltipElement.innerHTML = message;\n        this.show();\n        (0, _mobiledocKitUtilsElementUtils.positionElementCenteredBelow)(tooltipElement, element);\n      }\n    }, {\n      key: 'showLink',\n      value: function showLink(link, element) {\n        var _this2 = this;\n\n        var message = '<a href=\"' + link + '\" target=\"_blank\">' + link + '</a>';\n        this.showMessage(message, element);\n        this.elementObserver = (0, _mobiledocKitUtilsElementUtils.whenElementIsNotInDOM)(element, function () {\n          return _this2.hide();\n        });\n      }\n    }]);\n\n    return Tooltip;\n  })(_mobiledocKitViewsView['default']);\n\n  exports['default'] = Tooltip;\n});","define('mobiledoc-kit/views/view', ['exports', 'mobiledoc-kit/utils/dom-utils'], function (exports, _mobiledocKitUtilsDomUtils) {\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var View = (function () {\n    function View() {\n      var _this = this;\n\n      var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n      _classCallCheck(this, View);\n\n      options.tagName = options.tagName || 'div';\n      options.container = options.container || document.body;\n\n      this.element = document.createElement(options.tagName);\n      this.container = options.container;\n      this.isShowing = false;\n\n      var classNames = options.classNames || [];\n      classNames.forEach(function (name) {\n        return (0, _mobiledocKitUtilsDomUtils.addClassName)(_this.element, name);\n      });\n      this._eventListeners = [];\n    }\n\n    _createClass(View, [{\n      key: 'addEventListener',\n      value: function addEventListener(element, type, listener) {\n        element.addEventListener(type, listener);\n        this._eventListeners.push([element, type, listener]);\n      }\n    }, {\n      key: 'removeAllEventListeners',\n      value: function removeAllEventListeners() {\n        this._eventListeners.forEach(function (_ref) {\n          var _ref2 = _slicedToArray(_ref, 3);\n\n          var element = _ref2[0];\n          var type = _ref2[1];\n          var listener = _ref2[2];\n\n          element.removeEventListener(type, listener);\n        });\n      }\n    }, {\n      key: 'show',\n      value: function show() {\n        if (!this.isShowing) {\n          this.container.appendChild(this.element);\n          this.isShowing = true;\n          return true;\n        }\n      }\n    }, {\n      key: 'hide',\n      value: function hide() {\n        if (this.isShowing) {\n          this.container.removeChild(this.element);\n          this.isShowing = false;\n          return true;\n        }\n      }\n    }, {\n      key: 'destroy',\n      value: function destroy() {\n        this.removeAllEventListeners();\n        this.hide();\n        this.isDestroyed = true;\n      }\n    }]);\n\n    return View;\n  })();\n\n  exports['default'] = View;\n});","define('mobiledoc-text-renderer/cards/image', ['exports'], function (exports) {\n  'use strict';\n\n  exports['default'] = {\n    name: 'image-card',\n    type: 'text',\n    render: function render() {}\n  };\n});","define('mobiledoc-text-renderer', ['exports', 'mobiledoc-text-renderer/renderer-factory', 'mobiledoc-text-renderer/utils/render-type'], function (exports, _mobiledocTextRendererRendererFactory, _mobiledocTextRendererUtilsRenderType) {\n  'use strict';\n\n  exports.registerGlobal = registerGlobal;\n\n  function registerGlobal(window) {\n    window.MobiledocTextRenderer = _mobiledocTextRendererRendererFactory['default'];\n  }\n\n  exports.RENDER_TYPE = _mobiledocTextRendererUtilsRenderType['default'];\n  exports['default'] = _mobiledocTextRendererRendererFactory['default'];\n});","define('mobiledoc-text-renderer/renderer-factory', ['exports', 'mobiledoc-text-renderer/renderers/0-2', 'mobiledoc-text-renderer/renderers/0-3', 'mobiledoc-text-renderer/utils/render-type'], function (exports, _mobiledocTextRendererRenderers02, _mobiledocTextRendererRenderers03, _mobiledocTextRendererUtilsRenderType) {\n  'use strict';\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  /**\n   * runtime Text renderer\n   * renders a mobiledoc to Text\n   *\n   * input: mobiledoc\n   * output: Text (string)\n   */\n\n  function validateCards(cards) {\n    if (!Array.isArray(cards)) {\n      throw new Error('`cards` must be passed as an array');\n    }\n    for (var i = 0; i < cards.length; i++) {\n      var card = cards[i];\n      if (card.type !== _mobiledocTextRendererUtilsRenderType['default']) {\n        throw new Error('Card \"' + card.name + '\" must be type \"' + _mobiledocTextRendererUtilsRenderType['default'] + '\", was \"' + card.type + '\"');\n      }\n      if (!card.render) {\n        throw new Error('Card \"' + card.name + '\" must define `render`');\n      }\n    }\n  }\n\n  function validateAtoms(atoms) {\n    if (!Array.isArray(atoms)) {\n      throw new Error('`atoms` must be passed as an array');\n    }\n    for (var i = 0; i < atoms.length; i++) {\n      var atom = atoms[i];\n      if (atom.type !== _mobiledocTextRendererUtilsRenderType['default']) {\n        throw new Error('Atom \"' + atom.name + '\" must be type \"' + _mobiledocTextRendererUtilsRenderType['default'] + '\", was \"' + atom.type + '\"');\n      }\n      if (!atom.render) {\n        throw new Error('Atom \"' + atom.name + '\" must define `render`');\n      }\n    }\n  }\n\n  var RendererFactory = (function () {\n    function RendererFactory() {\n      var _ref = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n      var cards = _ref.cards;\n      var atoms = _ref.atoms;\n      var cardOptions = _ref.cardOptions;\n      var unknownCardHandler = _ref.unknownCardHandler;\n      var unknownAtomHandler = _ref.unknownAtomHandler;\n\n      _classCallCheck(this, RendererFactory);\n\n      cards = cards || [];\n      validateCards(cards);\n      atoms = atoms || [];\n      validateAtoms(atoms);\n      cardOptions = cardOptions || {};\n\n      this.state = { cards: cards, atoms: atoms, cardOptions: cardOptions, unknownCardHandler: unknownCardHandler, unknownAtomHandler: unknownAtomHandler };\n    }\n\n    _createClass(RendererFactory, [{\n      key: 'render',\n      value: function render(mobiledoc) {\n        var version = mobiledoc.version;\n\n        switch (version) {\n          case _mobiledocTextRendererRenderers02.MOBILEDOC_VERSION:\n            return new _mobiledocTextRendererRenderers02['default'](mobiledoc, this.state).render();\n          case undefined:\n          case null:\n          case _mobiledocTextRendererRenderers03.MOBILEDOC_VERSION_0_3:\n          case _mobiledocTextRendererRenderers03.MOBILEDOC_VERSION_0_3_1:\n          case _mobiledocTextRendererRenderers03.MOBILEDOC_VERSION_0_3_2:\n            return new _mobiledocTextRendererRenderers03['default'](mobiledoc, this.state).render();\n          default:\n            throw new Error('Unexpected Mobiledoc version \"' + version + '\"');\n        }\n      }\n    }]);\n\n    return RendererFactory;\n  })();\n\n  exports['default'] = RendererFactory;\n});","define('mobiledoc-text-renderer/renderers/0-2', ['exports', 'mobiledoc-text-renderer/cards/image', 'mobiledoc-text-renderer/utils/render-type', 'mobiledoc-text-renderer/utils/section-types'], function (exports, _mobiledocTextRendererCardsImage, _mobiledocTextRendererUtilsRenderType, _mobiledocTextRendererUtilsSectionTypes) {\n  /**\n   * runtime Text renderer\n   * renders a mobiledoc to Text\n   *\n   * input: mobiledoc\n   * output: Text (string)\n   */\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var LINE_BREAK = '\\n';\n\n  var MOBILEDOC_VERSION = '0.2.0';\n\n  exports.MOBILEDOC_VERSION = MOBILEDOC_VERSION;\n  function validateVersion(version) {\n    if (version !== MOBILEDOC_VERSION) {\n      throw new Error('Unexpected Mobiledoc version \"' + version + '\"');\n    }\n  }\n\n  var Renderer = (function () {\n    function Renderer(mobiledoc, state) {\n      _classCallCheck(this, Renderer);\n\n      var cards = state.cards;\n      var cardOptions = state.cardOptions;\n      var atoms = state.atoms;\n      var unknownCardHandler = state.unknownCardHandler;\n      var version = mobiledoc.version;\n      var sectionData = mobiledoc.sections;\n\n      validateVersion(version);\n\n      var _sectionData = _slicedToArray(sectionData, 2);\n\n      var sections = _sectionData[1];\n\n      this.root = [];\n      this.sections = sections;\n      this.cards = cards;\n      this.atoms = atoms;\n      this.cardOptions = cardOptions;\n      this.unknownCardHandler = unknownCardHandler || this._defaultUnknownCardHandler;\n\n      this._teardownCallbacks = [];\n    }\n\n    _createClass(Renderer, [{\n      key: 'render',\n      value: function render() {\n        var _this = this;\n\n        this.sections.forEach(function (section) {\n          _this.root.push(_this.renderSection(section));\n        });\n\n        var result = this.root.join(LINE_BREAK);\n        return { result: result, teardown: function teardown() {\n            return _this.teardown();\n          } };\n      }\n    }, {\n      key: 'teardown',\n      value: function teardown() {\n        for (var i = 0; i < this._teardownCallbacks.length; i++) {\n          this._teardownCallbacks[i]();\n        }\n      }\n    }, {\n      key: 'renderSection',\n\n      // for the text renderer, a missing card is a no-op\n      value: function renderSection(section) {\n        var _section = _slicedToArray(section, 1);\n\n        var type = _section[0];\n\n        switch (type) {\n          case _mobiledocTextRendererUtilsSectionTypes.MARKUP_SECTION_TYPE:\n            return this.renderMarkupSection(section);\n          case _mobiledocTextRendererUtilsSectionTypes.IMAGE_SECTION_TYPE:\n            return this.renderImageSection(section);\n          case _mobiledocTextRendererUtilsSectionTypes.LIST_SECTION_TYPE:\n            return this.renderListSection(section);\n          case _mobiledocTextRendererUtilsSectionTypes.CARD_SECTION_TYPE:\n            return this.renderCardSection(section);\n          default:\n            throw new Error('Unimplemented renderer for type ' + type);\n        }\n      }\n    }, {\n      key: 'renderImageSection',\n      value: function renderImageSection() {\n        return '';\n      }\n    }, {\n      key: 'renderListSection',\n      value: function renderListSection(_ref) {\n        var _this2 = this;\n\n        var _ref2 = _slicedToArray(_ref, 3);\n\n        var type = _ref2[0];\n        var tagName = _ref2[1];\n        var items = _ref2[2];\n\n        return items.map(function (li) {\n          return _this2.renderListItem(li);\n        }).join(LINE_BREAK);\n      }\n    }, {\n      key: 'renderListItem',\n      value: function renderListItem(markers) {\n        return this.renderMarkers(markers);\n      }\n    }, {\n      key: 'findCard',\n      value: function findCard(name) {\n        for (var i = 0; i < this.cards.length; i++) {\n          if (this.cards[i].name === name) {\n            return this.cards[i];\n          }\n        }\n        if (name === _mobiledocTextRendererCardsImage['default'].name) {\n          return _mobiledocTextRendererCardsImage['default'];\n        }\n        return this._createUnknownCard(name);\n      }\n    }, {\n      key: '_createUnknownCard',\n      value: function _createUnknownCard(name) {\n        return {\n          name: name,\n          type: _mobiledocTextRendererUtilsRenderType['default'],\n          render: this.unknownCardHandler\n        };\n      }\n    }, {\n      key: 'renderCardSection',\n      value: function renderCardSection(_ref3) {\n        var _ref32 = _slicedToArray(_ref3, 3);\n\n        var type = _ref32[0];\n        var name = _ref32[1];\n        var payload = _ref32[2];\n\n        var card = this.findCard(name);\n\n        var cardArg = this._createCardArgument(card, payload);\n        var rendered = card.render(cardArg);\n\n        this._validateCardRender(rendered, card.name);\n\n        return rendered || '';\n      }\n    }, {\n      key: '_validateCardRender',\n      value: function _validateCardRender(rendered, cardName) {\n        if (!rendered) {\n          return;\n        }\n\n        if (typeof rendered !== 'string') {\n          throw new Error('Card \"' + cardName + '\" must render ' + _mobiledocTextRendererUtilsRenderType['default'] + ', but result was ' + typeof rendered + '\"');\n        }\n      }\n    }, {\n      key: '_registerTeardownCallback',\n      value: function _registerTeardownCallback(callback) {\n        this._teardownCallbacks.push(callback);\n      }\n    }, {\n      key: '_createCardArgument',\n      value: function _createCardArgument(card) {\n        var _this3 = this;\n\n        var payload = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n        var env = {\n          name: card.name,\n          isInEditor: false,\n          onTeardown: function onTeardown(callback) {\n            return _this3._registerTeardownCallback(callback);\n          }\n        };\n\n        var options = this.cardOptions;\n\n        return { env: env, options: options, payload: payload };\n      }\n    }, {\n      key: 'renderMarkupSection',\n      value: function renderMarkupSection(_ref4) {\n        var _ref42 = _slicedToArray(_ref4, 3);\n\n        var type = _ref42[0];\n        var tagName = _ref42[1];\n        var markers = _ref42[2];\n\n        return this.renderMarkers(markers);\n      }\n    }, {\n      key: 'renderMarkers',\n      value: function renderMarkers(markers) {\n        var str = '';\n        markers.forEach(function (m) {\n          var _m = _slicedToArray(m, 3);\n\n          var text = _m[2];\n\n          str += text;\n        });\n        return str;\n      }\n    }, {\n      key: '_defaultUnknownCardHandler',\n      get: function get() {\n        return function () {};\n      }\n    }]);\n\n    return Renderer;\n  })();\n\n  exports['default'] = Renderer;\n});","define('mobiledoc-text-renderer/renderers/0-3', ['exports', 'mobiledoc-text-renderer/cards/image', 'mobiledoc-text-renderer/utils/render-type', 'mobiledoc-text-renderer/utils/section-types', 'mobiledoc-text-renderer/utils/marker-types'], function (exports, _mobiledocTextRendererCardsImage, _mobiledocTextRendererUtilsRenderType, _mobiledocTextRendererUtilsSectionTypes, _mobiledocTextRendererUtilsMarkerTypes) {\n  /**\n   * runtime Text renderer\n   * renders a mobiledoc to Text\n   *\n   * input: mobiledoc\n   * output: Text (string)\n   */\n  'use strict';\n\n  var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\n  var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\n  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\n  var LINE_BREAK = '\\n';\n\n  var MOBILEDOC_VERSION_0_3 = '0.3.0';\n  exports.MOBILEDOC_VERSION_0_3 = MOBILEDOC_VERSION_0_3;\n  var MOBILEDOC_VERSION_0_3_1 = '0.3.1';\n  exports.MOBILEDOC_VERSION_0_3_1 = MOBILEDOC_VERSION_0_3_1;\n  var MOBILEDOC_VERSION_0_3_2 = '0.3.2';\n\n  exports.MOBILEDOC_VERSION_0_3_2 = MOBILEDOC_VERSION_0_3_2;\n  function validateVersion(version) {\n    if (version !== MOBILEDOC_VERSION_0_3 && version !== MOBILEDOC_VERSION_0_3_1 && version !== MOBILEDOC_VERSION_0_3_2) {\n      throw new Error('Unexpected Mobiledoc version \"' + version + '\"');\n    }\n  }\n\n  var Renderer = (function () {\n    function Renderer(mobiledoc, state) {\n      _classCallCheck(this, Renderer);\n\n      var cards = state.cards;\n      var cardOptions = state.cardOptions;\n      var atoms = state.atoms;\n      var unknownCardHandler = state.unknownCardHandler;\n      var unknownAtomHandler = state.unknownAtomHandler;\n      var version = mobiledoc.version;\n      var sections = mobiledoc.sections;\n      var atomTypes = mobiledoc.atoms;\n      var cardTypes = mobiledoc.cards;\n\n      validateVersion(version);\n\n      this.root = [];\n      this.sections = sections;\n      this.atomTypes = atomTypes;\n      this.cardTypes = cardTypes;\n      this.cards = cards;\n      this.atoms = atoms;\n      this.cardOptions = cardOptions;\n      this.unknownCardHandler = unknownCardHandler || this._defaultUnknownCardHandler;\n      this.unknownAtomHandler = unknownAtomHandler || this._defaultUnknownAtomHandler;\n\n      this._teardownCallbacks = [];\n    }\n\n    _createClass(Renderer, [{\n      key: 'render',\n      value: function render() {\n        var _this = this;\n\n        this.sections.forEach(function (section) {\n          _this.root.push(_this.renderSection(section));\n        });\n\n        var result = this.root.join(LINE_BREAK);\n        return { result: result, teardown: function teardown() {\n            return _this.teardown();\n          } };\n      }\n    }, {\n      key: 'teardown',\n      value: function teardown() {\n        for (var i = 0; i < this._teardownCallbacks.length; i++) {\n          this._teardownCallbacks[i]();\n        }\n      }\n    }, {\n      key: 'renderSection',\n      value: function renderSection(section) {\n        var _section = _slicedToArray(section, 1);\n\n        var type = _section[0];\n\n        switch (type) {\n          case _mobiledocTextRendererUtilsSectionTypes.MARKUP_SECTION_TYPE:\n            return this.renderMarkupSection(section);\n          case _mobiledocTextRendererUtilsSectionTypes.IMAGE_SECTION_TYPE:\n            return this.renderImageSection(section);\n          case _mobiledocTextRendererUtilsSectionTypes.LIST_SECTION_TYPE:\n            return this.renderListSection(section);\n          case _mobiledocTextRendererUtilsSectionTypes.CARD_SECTION_TYPE:\n            return this.renderCardSection(section);\n          default:\n            throw new Error('Unimplemented renderer for type ' + type);\n        }\n      }\n    }, {\n      key: 'renderImageSection',\n      value: function renderImageSection() {\n        return '';\n      }\n    }, {\n      key: 'renderListSection',\n      value: function renderListSection(_ref) {\n        var _this2 = this;\n\n        var _ref2 = _slicedToArray(_ref, 3);\n\n        var type = _ref2[0];\n        var tagName = _ref2[1];\n        var items = _ref2[2];\n\n        return items.map(function (li) {\n          return _this2.renderListItem(li);\n        }).join(LINE_BREAK);\n      }\n    }, {\n      key: 'renderListItem',\n      value: function renderListItem(markers) {\n        return this.renderMarkers(markers);\n      }\n    }, {\n      key: 'findCard',\n      value: function findCard(name) {\n        for (var i = 0; i < this.cards.length; i++) {\n          if (this.cards[i].name === name) {\n            return this.cards[i];\n          }\n        }\n        if (name === _mobiledocTextRendererCardsImage['default'].name) {\n          return _mobiledocTextRendererCardsImage['default'];\n        }\n        return this._createUnknownCard(name);\n      }\n    }, {\n      key: '_findCardByIndex',\n      value: function _findCardByIndex(index) {\n        var cardType = this.cardTypes[index];\n        if (!cardType) {\n          throw new Error('No card definition found at index ' + index);\n        }\n\n        var _cardType = _slicedToArray(cardType, 2);\n\n        var name = _cardType[0];\n        var payload = _cardType[1];\n\n        var card = this.findCard(name);\n\n        return {\n          card: card,\n          payload: payload\n        };\n      }\n    }, {\n      key: '_createUnknownCard',\n      value: function _createUnknownCard(name) {\n        return {\n          name: name,\n          type: _mobiledocTextRendererUtilsRenderType['default'],\n          render: this.unknownCardHandler\n        };\n      }\n    }, {\n      key: 'renderCardSection',\n      value: function renderCardSection(_ref3) {\n        var _ref32 = _slicedToArray(_ref3, 2);\n\n        var type = _ref32[0];\n        var index = _ref32[1];\n\n        var _findCardByIndex2 = this._findCardByIndex(index);\n\n        var card = _findCardByIndex2.card;\n        var payload = _findCardByIndex2.payload;\n\n        var cardArg = this._createCardArgument(card, payload);\n        var rendered = card.render(cardArg);\n\n        this._validateCardRender(rendered, card.name);\n\n        return rendered || '';\n      }\n    }, {\n      key: '_validateCardRender',\n      value: function _validateCardRender(rendered, cardName) {\n        if (!rendered) {\n          return;\n        }\n\n        if (typeof rendered !== 'string') {\n          throw new Error('Card \"' + cardName + '\" must render ' + _mobiledocTextRendererUtilsRenderType['default'] + ', but result was ' + typeof rendered + '\"');\n        }\n      }\n    }, {\n      key: '_registerTeardownCallback',\n      value: function _registerTeardownCallback(callback) {\n        this._teardownCallbacks.push(callback);\n      }\n    }, {\n      key: '_createCardArgument',\n      value: function _createCardArgument(card) {\n        var _this3 = this;\n\n        var payload = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n        var env = {\n          name: card.name,\n          isInEditor: false,\n          onTeardown: function onTeardown(callback) {\n            return _this3._registerTeardownCallback(callback);\n          }\n        };\n\n        var options = this.cardOptions;\n\n        return { env: env, options: options, payload: payload };\n      }\n    }, {\n      key: 'renderMarkupSection',\n      value: function renderMarkupSection(_ref4) {\n        var _ref42 = _slicedToArray(_ref4, 3);\n\n        var type = _ref42[0];\n        var tagName = _ref42[1];\n        var markers = _ref42[2];\n\n        return this.renderMarkers(markers);\n      }\n    }, {\n      key: 'findAtom',\n      value: function findAtom(name) {\n        for (var i = 0; i < this.atoms.length; i++) {\n          if (this.atoms[i].name === name) {\n            return this.atoms[i];\n          }\n        }\n        return this._createUnknownAtom(name);\n      }\n    }, {\n      key: '_createUnknownAtom',\n      value: function _createUnknownAtom(name) {\n        return {\n          name: name,\n          type: _mobiledocTextRendererUtilsRenderType['default'],\n          render: this.unknownAtomHandler\n        };\n      }\n    }, {\n      key: '_createAtomArgument',\n      value: function _createAtomArgument(atom, value, payload) {\n        var _this4 = this;\n\n        var env = {\n          name: atom.name,\n          onTeardown: function onTeardown(callback) {\n            return _this4._registerTeardownCallback(callback);\n          }\n        };\n\n        var options = this.cardOptions;\n\n        return { env: env, options: options, value: value, payload: payload };\n      }\n    }, {\n      key: '_validateAtomRender',\n      value: function _validateAtomRender(rendered, atomName) {\n        if (!rendered) {\n          return;\n        }\n\n        if (typeof rendered !== 'string') {\n          throw new Error('Atom \"' + atomName + '\" must render ' + _mobiledocTextRendererUtilsRenderType['default'] + ', but result was ' + typeof rendered + '\"');\n        }\n      }\n    }, {\n      key: '_findAtomByIndex',\n      value: function _findAtomByIndex(index) {\n        var atomType = this.atomTypes[index];\n        if (!atomType) {\n          throw new Error('No atom definition found at index ' + index);\n        }\n\n        var _atomType = _slicedToArray(atomType, 3);\n\n        var name = _atomType[0];\n        var value = _atomType[1];\n        var payload = _atomType[2];\n\n        var atom = this.findAtom(name);\n\n        return {\n          atom: atom,\n          value: value,\n          payload: payload\n        };\n      }\n    }, {\n      key: '_renderAtom',\n      value: function _renderAtom(index) {\n        var _findAtomByIndex2 = this._findAtomByIndex(index);\n\n        var atom = _findAtomByIndex2.atom;\n        var value = _findAtomByIndex2.value;\n        var payload = _findAtomByIndex2.payload;\n\n        var atomArg = this._createAtomArgument(atom, value, payload);\n        var rendered = atom.render(atomArg);\n\n        this._validateAtomRender(rendered, atom.name);\n\n        return rendered || '';\n      }\n    }, {\n      key: 'renderMarkers',\n      value: function renderMarkers(markers) {\n        var _this5 = this;\n\n        var str = '';\n        markers.forEach(function (m) {\n          var _m = _slicedToArray(m, 4);\n\n          var type = _m[0];\n          var value = _m[3];\n\n          switch (type) {\n            case _mobiledocTextRendererUtilsMarkerTypes.MARKUP_MARKER_TYPE:\n              str += value;\n              break;\n            case _mobiledocTextRendererUtilsMarkerTypes.ATOM_MARKER_TYPE:\n              str += _this5._renderAtom(value);\n              break;\n            default:\n              throw new Error('Unknown markup type (' + type + ')');\n          }\n        });\n        return str;\n      }\n    }, {\n      key: '_defaultUnknownCardHandler',\n      get: function get() {\n        return function () {\n          // for the text renderer, a missing card is a no-op\n        };\n      }\n    }, {\n      key: '_defaultUnknownAtomHandler',\n      get: function get() {\n        return function (_ref5) {\n          var value = _ref5.value;\n\n          return value || '';\n        };\n      }\n    }]);\n\n    return Renderer;\n  })();\n\n  exports['default'] = Renderer;\n});","define(\"mobiledoc-text-renderer/utils/marker-types\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  var MARKUP_MARKER_TYPE = 0;\n  exports.MARKUP_MARKER_TYPE = MARKUP_MARKER_TYPE;\n  var ATOM_MARKER_TYPE = 1;\n  exports.ATOM_MARKER_TYPE = ATOM_MARKER_TYPE;\n});","define('mobiledoc-text-renderer/utils/render-type', ['exports'], function (exports) {\n  'use strict';\n\n  exports['default'] = 'text';\n});","define(\"mobiledoc-text-renderer/utils/section-types\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  var MARKUP_SECTION_TYPE = 1;\n  exports.MARKUP_SECTION_TYPE = MARKUP_SECTION_TYPE;\n  var IMAGE_SECTION_TYPE = 2;\n  exports.IMAGE_SECTION_TYPE = IMAGE_SECTION_TYPE;\n  var LIST_SECTION_TYPE = 3;\n  exports.LIST_SECTION_TYPE = LIST_SECTION_TYPE;\n  var CARD_SECTION_TYPE = 10;\n  exports.CARD_SECTION_TYPE = CARD_SECTION_TYPE;\n});","/**\n  reframe.js - Reframe.js: responsive iframes for embedded content\n  @version v3.0.2\n  @link https://github.com/yowainwright/reframe.ts#readme\n  @author Jeff Wainwright <yowainwright@gmail.com> (http://jeffry.in)\n  @license MIT\n**/\n(function (global, factory) {\n    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n    typeof define === 'function' && define.amd ? define(factory) :\n    (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.noframe = factory());\n}(this, (function () { 'use strict';\n\n    /*! *****************************************************************************\r\n    Copyright (c) Microsoft Corporation.\r\n\r\n    Permission to use, copy, modify, and/or distribute this software for any\r\n    purpose with or without fee is hereby granted.\r\n\r\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\n    PERFORMANCE OF THIS SOFTWARE.\r\n    ***************************************************************************** */\r\n\r\n    function __spreadArrays() {\r\n        for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n        for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n                r[k] = a[j];\r\n        return r;\r\n    }\n\n    /* noframe.js () 🖼\n      -------------\n      takes 2 arguments:\n      => target: targeted <element>\n      => container: optional targeted <parent> of targeted <element>\n      -------------\n      defines the height/width ratio of the targeted <element>\n      based on the targeted <parent> width\n    */\n    function noframe(target, container) {\n        var frames = typeof target === 'string' ? __spreadArrays(document.querySelectorAll(target)) : 'length' in target ? __spreadArrays(target) : [target];\n        return frames.forEach(function (frame) {\n            var isContainerElement = typeof container !== 'undefined' && document.querySelector(container);\n            var parent = isContainerElement ? document.querySelector(container) : frame.parentElement;\n            var h = frame.offsetHeight;\n            var w = frame.offsetWidth;\n            var styles = frame.style;\n            // => If a targeted <container> element is defined\n            if (isContainerElement) {\n                // gets/sets the height/width ratio\n                var maxW = window.getComputedStyle(parent, null).getPropertyValue('max-width');\n                styles.width = '100%';\n                // calc is needed here b/c the maxW measurement type is unknown\n                styles.maxHeight = \"calc(\" + maxW + \" * \" + h + \" / \" + w + \")\";\n            }\n            else {\n                // gets/sets the height/width ratio\n                // => if a targeted <element> closest parent <element> is NOT defined\n                styles.display = 'block';\n                styles.marginLeft = 'auto';\n                styles.marginRight = 'auto';\n                var fullW = w > parent.offsetWidth ? parent.offsetWidth : w;\n                var maxH = w > parent.offsetWidth ? (fullW * h) / w : w * (h / w);\n                // if targeted <element> width is > than it's parent <element>\n                // => set the targeted <element> maxheight/fullwidth to it's parent <element>\n                styles.maxHeight = maxH + \"px\";\n                styles.width = fullW + \"px\";\n            }\n            // set a calculated height of the targeted <element>\n            var cssHeight = (100 * h) / w; // eslint-disable-line no-mixed-operators\n            styles.height = cssHeight + \"vw\";\n            styles.maxWidth = '100%';\n        });\n    }\n\n    return noframe;\n\n})));\n","define('@ember-data/adapter/-private', ['exports', 'require', 'ember-inflector'], function (exports, require, emberInflector) { 'use strict';\n\n  var require__default = 'default' in require ? require['default'] : require;\n\n  var newline = /\\r?\\n/;\n  function parseResponseHeaders(headersString) {\n    var headers = Object.create(null);\n\n    if (!headersString) {\n      return headers;\n    }\n\n    var headerPairs = headersString.split(newline);\n\n    for (var i = 0; i < headerPairs.length; i++) {\n      var header = headerPairs[i];\n      var j = 0;\n      var foundSep = false;\n\n      for (; j < header.length; j++) {\n        if (header.charCodeAt(j) === 58\n        /* ':' */\n        ) {\n          foundSep = true;\n          break;\n        }\n      }\n\n      if (foundSep === false) {\n        continue;\n      }\n\n      var field = header.substring(0, j).trim();\n      var value = header.substring(j + 1, header.length).trim();\n\n      if (value) {\n        var lowerCasedField = field.toLowerCase();\n        headers[lowerCasedField] = value;\n        headers[field] = value;\n      }\n    }\n\n    return headers;\n  }\n\n  function continueOnReject(promise) {\n    return Ember.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\n    if (!response.ok) {\n      return payload;\n    }\n\n    try {\n      ret = JSON.parse(payload);\n    } catch (e) {\n      if (!(e instanceof SyntaxError)) {\n        return e;\n      }\n\n      e.payload = payload;\n      error = e;\n    }\n\n    var status = response.status;\n\n    if (response.ok && (status === 204 || status === 205 || requestData.method === 'HEAD')) {\n      return;\n    }\n\n    {\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\n      if (payload === '') {\n        ( Ember.warn(message, true, {\n          id: 'ds.adapter.returned-empty-string-as-JSON'\n        }));\n      }\n    }\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\n      return error;\n    }\n\n    return ret;\n  }\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\n  function isPlainObject(obj) {\n    return Object.prototype.toString.call(obj) === '[object Object]';\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\n\n  function serializeQueryParams(queryParamsObject) {\n    var s = [];\n\n    function buildParams(prefix, obj) {\n      var i, len, key;\n\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 (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\n      return s;\n    }\n\n    return buildParams('', queryParamsObject).join('&').replace(/%20/g, '+');\n  }\n  /*\n   * Part of the `serializeQueryParams` helper function.\n   */\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\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\n    if (require.has('fetch')) {\n      // use `fetch` module by default, this is commonly provided by ember-fetch\n      var fetchFn = require__default('fetch').default;\n\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\n    return _fetch();\n  }\n\n  /**\n    @module @ember-data/adapter\n  */\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 Adapter.extend(BuildURLMixin, {\n      findRecord: function(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  */\n\n  var buildUrlMixin = Ember.Mixin.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      @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\n        case 'findAll':\n          return this.urlForFindAll(modelName, snapshot);\n\n        case 'query':\n          return this.urlForQuery(query, modelName);\n\n        case 'queryRecord':\n          return this.urlForQueryRecord(query, modelName);\n\n        case 'findMany':\n          return this.urlForFindMany(id, modelName, snapshot);\n\n        case 'findHasMany':\n          return this.urlForFindHasMany(id, modelName, snapshot);\n\n        case 'findBelongsTo':\n          return this.urlForFindBelongsTo(id, modelName, snapshot);\n\n        case 'createRecord':\n          return this.urlForCreateRecord(modelName, snapshot);\n\n        case 'updateRecord':\n          return this.urlForUpdateRecord(id, modelName, snapshot);\n\n        case 'deleteRecord':\n          return this.urlForDeleteRecord(id, modelName, snapshot);\n\n        default:\n          return this._buildURL(modelName, id);\n      }\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 = Ember.get(this, 'host');\n      var prefix = this.urlPrefix();\n\n      if (modelName) {\n        path = this.pathForType(modelName);\n\n        if (path) {\n          url.push(path);\n        }\n      }\n\n      if (id) {\n        url.push(encodeURIComponent(id));\n      }\n\n      if (prefix) {\n        url.unshift(prefix);\n      }\n\n      url = url.join('/');\n\n      if (!host && url && url.charAt(0) !== '/') {\n        url = '/' + url;\n      }\n\n      return url;\n    },\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 JSONAPIAdapter.extend({\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     @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    /**\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 JSONAPIAdapter.extend({\n       urlForFindAll(modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName);\n         return `${baseUrl}/data/comments.json`;\n       }\n     });\n     ```\n      @method urlForFindAll\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    /**\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 RESTAdapter.extend({\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 this._super(...arguments);\n         }\n       }\n     });\n     ```\n      @method urlForQuery\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    /**\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 RESTAdapter.extend({\n       urlForQueryRecord({ slug }, modelName) {\n         let baseUrl = this.buildURL();\n         return `${baseUrl}/${encodeURIComponent(slug)}`;\n       }\n     });\n     ```\n      @method urlForQueryRecord\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    /**\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 RESTAdapter.extend({\n       urlForFindMany(ids, modelName) {\n         let baseUrl = this.buildURL();\n         return `${baseUrl}/coalesce`;\n       }\n     });\n     ```\n      @method urlForFindMany\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    /**\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 JSONAPIAdapter.extend({\n       urlForFindHasMany(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id);\n         return `${baseUrl}/relationships`;\n       }\n     });\n     ```\n      @method urlForFindHasMany\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    /**\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 JSONAPIAdapter.extend({\n       urlForFindBelongsTo(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id);\n         return `${baseUrl}/relationships`;\n       }\n     });\n     ```\n      @method urlForFindBelongsTo\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    /**\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 RESTAdapter.extend({\n       urlForCreateRecord(modelName, snapshot) {\n         return this._super(...arguments) + '/new';\n       }\n     });\n     ```\n      @method urlForCreateRecord\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    /**\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 RESTAdapter.extend({\n       urlForUpdateRecord(id, modelName, snapshot) {\n         return `/${id}/feed?access_token=${snapshot.adapterOptions.token}`;\n       }\n     });\n     ```\n      @method urlForUpdateRecord\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    /**\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 RESTAdapter.extend({\n       urlForDeleteRecord(id, modelName, snapshot) {\n         return this._super(...arguments) + '/destroy';\n       }\n     });\n     ```\n      @method urlForDeleteRecord\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    /**\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 = Ember.get(this, 'host');\n      var namespace = Ember.get(this, 'namespace');\n\n      if (!host || host === '/') {\n        host = '';\n      }\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; // Absolute path\n        } else if (path.charAt(0) === '/') {\n          return `${host}${path}`; // Relative path\n        } else {\n          return `${parentURL}/${path}`;\n        }\n      } // No path provided\n\n\n      var url = [];\n\n      if (host) {\n        url.push(host);\n      }\n\n      if (namespace) {\n        url.push(namespace);\n      }\n\n      return url.join('/');\n    },\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 RESTAdapter.extend({\n        pathForType: function(modelName) {\n          var decamelized = decamelize(modelName);\n          return pluralize(decamelized);\n        }\n      });\n      ```\n       @method pathForType\n      @param {String} modelName\n      @return {String} path\n    **/\n    pathForType(modelName) {\n      var camelized = Ember.String.camelize(modelName);\n      return emberInflector.pluralize(camelized);\n    }\n\n  });\n\n  function serializeIntoHash(store, modelClass, snapshot, options = {\n    includeId: true\n  }) {\n    var serializer = store.serializerFor(modelClass.modelName);\n\n    if (typeof serializer.serializeIntoHash === 'function') {\n      var data = {};\n      serializer.serializeIntoHash(data, modelClass, snapshot, options);\n      return data;\n    }\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-data/store/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"errorsHashToArray\", {\n    enumerable: true,\n    get: function () {\n      return _private.errorsHashToArray;\n    }\n  });\n  Object.defineProperty(_exports, \"errorsArrayToHash\", {\n    enumerable: true,\n    get: function () {\n      return _private.errorsArrayToHash;\n    }\n  });\n  _exports.ServerError = _exports.ConflictError = _exports.NotFoundError = _exports.ForbiddenError = _exports.UnauthorizedError = _exports.AbortError = _exports.TimeoutError = _exports.InvalidError = _exports.default = void 0;\n\n  /**\n    @module @ember-data/adapter\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 JSONAPIAdapter.extend({\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 Route.extend({\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    @class AdapterError\n  */\n  function AdapterError(errors, message = 'Adapter operation failed') {\n    this.isAdapterError = true;\n    var error = Ember.Error.call(this, message); // in ember 3.8+ Error is a Native Error and we don't\n    // gain these automatically from the EmberError.call\n\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\n    this.errors = errors || [{\n      title: 'Adapter Error',\n      detail: message\n    }];\n  }\n\n  var _default = AdapterError;\n  _exports.default = _default;\n\n  function extendFn(ErrorClass) {\n    return function ({\n      message: defaultMessage\n    } = {}) {\n      return extend(ErrorClass, defaultMessage);\n    };\n  }\n\n  function extend(ParentErrorClass, defaultMessage) {\n    var ErrorClass = function (errors, message) {\n      (true && !(Array.isArray(errors || [])) && Ember.assert('`AdapterError` expects json-api formatted errors array.', Array.isArray(errors || [])));\n      ParentErrorClass.call(this, errors, message || defaultMessage);\n    };\n\n    ErrorClass.prototype = Object.create(ParentErrorClass.prototype);\n    ErrorClass.extend = extendFn(ErrorClass);\n    return ErrorClass;\n  }\n\n  AdapterError.prototype = Object.create(Ember.Error.prototype);\n  AdapterError.prototype.code = 'AdapterError';\n  AdapterError.extend = extendFn(AdapterError);\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 Model.extend({\n      title: attr('string'),\n      content: attr('string')\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 RESTAdapter.extend({\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    @extends AdapterError\n  */\n\n  var InvalidError = extend(AdapterError, 'The adapter rejected the commit because it was invalid');\n  _exports.InvalidError = InvalidError;\n  InvalidError.prototype.code = 'InvalidError';\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    @extends AdapterError\n  */\n\n  var TimeoutError = extend(AdapterError, 'The adapter operation timed out');\n  _exports.TimeoutError = TimeoutError;\n  TimeoutError.prototype.code = 'TimeoutError';\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    @extends AdapterError\n  */\n\n  var AbortError = extend(AdapterError, 'The adapter operation was aborted');\n  _exports.AbortError = AbortError;\n  AbortError.prototype.code = 'AbortError';\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    @extends AdapterError\n  */\n\n  var UnauthorizedError = extend(AdapterError, 'The adapter operation is unauthorized');\n  _exports.UnauthorizedError = UnauthorizedError;\n  UnauthorizedError.prototype.code = 'UnauthorizedError';\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    @extends AdapterError\n  */\n\n  var ForbiddenError = extend(AdapterError, 'The adapter operation is forbidden');\n  _exports.ForbiddenError = ForbiddenError;\n  ForbiddenError.prototype.code = 'ForbiddenError';\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    @extends AdapterError\n  */\n\n  var NotFoundError = extend(AdapterError, 'The adapter could not find the resource');\n  _exports.NotFoundError = NotFoundError;\n  NotFoundError.prototype.code = 'NotFoundError';\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    @extends AdapterError\n  */\n\n  var ConflictError = extend(AdapterError, 'The adapter operation failed due to a conflict');\n  _exports.ConflictError = ConflictError;\n  ConflictError.prototype.code = 'ConflictError';\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    @extends AdapterError\n  */\n\n  var ServerError = extend(AdapterError, 'The adapter operation failed due to a server error');\n  _exports.ServerError = ServerError;\n  ServerError.prototype.code = 'ServerError';\n});","define(\"@ember-data/adapter/index\", [\"exports\", \"@ember-data/adapter/-private\"], function (_exports, _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  /**\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    @module @ember-data/adapter\n    @class Adapter\n    @extends EmberObject\n  */\n  var _default = Ember.Object.extend({\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      @type {String}\n    */\n    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 Adapter.extend({\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    */\n    findRecord: null,\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 Adapter.extend({\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    */\n    findAll: null,\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 Adapter.extend({\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      @return {Promise} promise\n    */\n    query: null,\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 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      @return {Promise} promise\n    */\n    queryRecord: null,\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 Adapter.extend({\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    */\n    generateIdForRecord: null,\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 Adapter.extend({\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    */\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 Adapter.extend({\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    */\n    createRecord: null,\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 Adapter.extend({\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    */\n    updateRecord: null,\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 Adapter.extend({\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    */\n    deleteRecord: null,\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      @type {boolean}\n    */\n    coalesceFindRequests: true,\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 Adapter.extend({\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    */\n    findMany: null,\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      @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    */\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    */\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    */\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    */\n    shouldBackgroundReloadAll(store, snapshotRecordArray) {\n      return true;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"@ember-data/adapter/json-api\", [\"exports\", \"ember-inflector\", \"@ember-data/adapter/-private\", \"@ember-data/adapter/rest\"], function (_exports, _emberInflector, _private, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\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 JSONAPIAdapter.extend({\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 JSONAPIAdapter.extend({\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    @constructor\n    @extends RESTAdapter\n  */\n  var JSONAPIAdapter = _rest.default.extend({\n    defaultSerializer: '-json-api',\n    _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 = this._super(url, type, options);\n\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      @type {boolean}\n    */\n    coalesceFindRequests: false,\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\n    pathForType(modelName) {\n      var dasherized = Ember.String.dasherize(modelName);\n      return (0, _emberInflector.pluralize)(dasherized);\n    },\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  });\n\n  var _default = JSONAPIAdapter;\n  _exports.default = _default;\n});","define(\"@ember-data/adapter/rest\", [\"exports\", \"@ember-data/adapter\", \"@ember-data/adapter/error\", \"@ember-data/adapter/-private\"], function (_exports, _adapter, _error, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.fetchOptions = fetchOptions;\n  _exports.default = void 0;\n  var hasJQuery = typeof jQuery !== 'undefined';\n  var hasNajax = typeof najax !== 'undefined';\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 RESTAdapter.extend({\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 RESTAdapter.extend({\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 RESTAdapter.extend({\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 RESTAdapter.extend({\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 RESTAdapter.extend({\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    @constructor\n    @extends Adapter\n    @uses BuildURLMixin\n  */\n\n  var RESTAdapter = _adapter.default.extend(_adapter.BuildURLMixin, {\n    defaultSerializer: '-rest',\n    _defaultContentType: 'application/json; charset=utf-8',\n    fastboot: Ember.computed({\n      // Avoid computed property override deprecation in fastboot as suggested by:\n      // https://deprecations.emberjs.com/v3.x/#toc_computed-property-override\n      get() {\n        if (this._fastboot) {\n          return this._fastboot;\n        }\n\n        return this._fastboot = Ember.getOwner(this).lookup('service:fastboot');\n      },\n\n      set(key, value) {\n        return this._fastboot = value;\n      }\n\n    }),\n    useFetch: Ember.computed(function () {\n      var ENV = Ember.getOwner(this).resolveRegistration('config:environment'); // TODO: https://github.com/emberjs/data/issues/6093\n\n      var jQueryIntegrationDisabled = ENV && ENV.EmberENV && ENV.EmberENV._JQUERY_INTEGRATION === false;\n\n      if (jQueryIntegrationDisabled) {\n        return true;\n      } else if (hasNajax || hasJQuery) {\n        return false;\n      } else {\n        return true;\n      }\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 RESTAdapter.extend({\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    */\n    sortQueryParams(obj) {\n      var keys = Object.keys(obj);\n      var len = keys.length;\n\n      if (len < 2) {\n        return obj;\n      }\n\n      var newQueryParams = {};\n      var sortedKeys = keys.sort();\n\n      for (var i = 0; i < len; i++) {\n        newQueryParams[sortedKeys[i]] = obj[sortedKeys[i]];\n      }\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      @type {boolean}\n    */\n    coalesceFindRequests: false,\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 RESTAdapter.extend({\n        namespace: 'api/1'\n      });\n      ```\n       Requests for the `Post` model would now target `/api/1/post/`.\n       @property namespace\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 RESTAdapter.extend({\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      @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 RESTAdapter.extend({\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      @type {Object}\n     */\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      @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      @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\n      if (sinceToken) {\n        query.since = sinceToken;\n      }\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      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @return {Promise} promise\n    */\n    query(store, type, query) {\n      var url = this.buildURL(type.modelName, null, null, 'query', query);\n\n      if (this.sortQueryParams) {\n        query = this.sortQueryParams(query);\n      }\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      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @return {Promise} promise\n    */\n    queryRecord(store, type, query) {\n      var url = this.buildURL(type.modelName, null, null, 'queryRecord', query);\n\n      if (this.sortQueryParams) {\n        query = this.sortQueryParams(query);\n      }\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      @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      @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      @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      @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, _private.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      @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, _private.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      @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\n    _stripIDFromURL(store, snapshot) {\n      var url = this.buildURL(snapshot.modelName, snapshot.id, snapshot);\n      var expandedURL = url.split('/'); // 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\n      var lastSegment = expandedURL[expandedURL.length - 1];\n      var id = snapshot.id;\n\n      if (decodeURIComponent(lastSegment) === id) {\n        expandedURL[expandedURL.length - 1] = '';\n      } else if (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\n      return expandedURL.join('/');\n    },\n\n    // http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers\n    maxURLLength: 2048,\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      @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\n        if (!groups.has(baseUrl)) {\n          groups.set(baseUrl, []);\n        }\n\n        groups.get(baseUrl).push(snapshot);\n      });\n\n      function splitGroupToFitInUrl(group, maxURLLength, paramNameLength) {\n        var idsSize = 0;\n\n        var baseUrl = adapter._stripIDFromURL(store, group[0]);\n\n        var splitGroups = [[]];\n        group.forEach(snapshot => {\n          var additionalLength = encodeURIComponent(snapshot.id).length + paramNameLength;\n\n          if (baseUrl.length + idsSize + additionalLength >= maxURLLength) {\n            idsSize = 0;\n            splitGroups.push([]);\n          }\n\n          idsSize += additionalLength;\n          var lastGroupIndex = splitGroups.length - 1;\n          splitGroups[lastGroupIndex].push(snapshot);\n        });\n        return splitGroups;\n      }\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      @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(payload.errors);\n      }\n\n      var errors = this.normalizeErrorResponse(status, headers, payload);\n      var detailedMessage = this.generatedDetailedMessage(status, headers, payload, requestData);\n\n      switch (status) {\n        case 401:\n          return new _error.UnauthorizedError(errors, detailedMessage);\n\n        case 403:\n          return new _error.ForbiddenError(errors, detailedMessage);\n\n        case 404:\n          return new _error.NotFoundError(errors, detailedMessage);\n\n        case 409:\n          return new _error.ConflictError(errors, detailedMessage);\n\n        default:\n          if (status >= 500) {\n            return new _error.ServerError(errors, detailedMessage);\n          }\n\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      @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      @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 useFetch = Ember.get(this, 'useFetch');\n      var requestData = {\n        url: url,\n        method: type\n      };\n      var hash = adapter.ajaxOptions(url, type, options);\n\n      if (useFetch) {\n        var _response;\n\n        return this._fetchRequest(hash).then(response => {\n          _response = response;\n          return (0, _private.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      }\n\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        hash.success = function (payload, textStatus, jqXHR) {\n          var response = ajaxSuccessHandler(adapter, payload, jqXHR, requestData);\n          Ember.run.join(null, resolve, response);\n        };\n\n        hash.error = function (jqXHR, textStatus, errorThrown) {\n          var error = ajaxErrorHandler(adapter, jqXHR, errorThrown, requestData);\n          Ember.run.join(null, reject, error);\n        };\n\n        adapter._ajax(hash);\n      }, 'DS: RESTAdapter#ajax ' + type + ' to ' + url);\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      jQuery.ajax(options);\n    },\n\n    /**\n      @method _najaxRequest\n      @private\n      @param {Object} options jQuery ajax options to be used for the najax request\n    */\n    _najaxRequest(options) {\n      if (hasNajax) {\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\n    _fetchRequest(options) {\n      var fetchFunction = (0, _private.fetch)();\n\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\n    _ajax(options) {\n      if (Ember.get(this, 'useFetch')) {\n        this._fetchRequest(options);\n      } else if (Ember.get(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      options = Ember.assign({\n        url,\n        method,\n        type: method\n      }, options);\n      var headers = Ember.get(this, 'headers');\n\n      if (headers !== undefined) {\n        options.headers = Ember.assign({}, headers, options.headers);\n      } else if (!options.headers) {\n        options.headers = {};\n      }\n\n      var contentType = options.contentType || this._defaultContentType;\n\n      if (Ember.get(this, 'useFetch')) {\n        if (options.data && options.type !== 'GET') {\n          if (!options.headers['Content-Type'] && !options.headers['content-type']) {\n            options.headers['content-type'] = contentType;\n          }\n        }\n\n        options = fetchOptions(options, 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 (options.data && options.type !== 'GET') {\n          options = Ember.assign(options, {\n            contentType\n          });\n        }\n\n        options = ajaxOptions(options, this);\n      }\n\n      options.url = this._ajaxURL(options.url);\n      return options;\n    },\n\n    _ajaxURL(url) {\n      if (Ember.get(this, 'fastboot.isFastBoot')) {\n        var httpRegex = /^https?:\\/\\//;\n        var protocolRelativeRegex = /^\\/\\//;\n        var protocol = Ember.get(this, 'fastboot.request.protocol');\n        var host = Ember.get(this, 'fastboot.request.host');\n\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\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\n      try {\n        json = JSON.parse(responseText);\n      } catch (e) {// ignored\n      }\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) {\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: function (status, headers, payload, requestData) {\n      var shortenedPayload;\n      var payloadContentType = headers['content-type'] || 'Empty Content-Type';\n\n      if (payloadContentType === 'text/html' && payload.length > 250) {\n        shortenedPayload = '[Omitted Lengthy HTML]';\n      } else {\n        shortenedPayload = payload;\n      }\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    // @since 2.5.0\n    buildQuery(snapshot) {\n      var query = {};\n\n      if (snapshot) {\n        var {\n          include\n        } = snapshot;\n\n        if (include) {\n          query.include = include;\n        }\n      }\n\n      return query;\n    }\n\n  });\n\n  function ajaxSuccess(adapter, payload, requestData, responseData) {\n    var response;\n\n    try {\n      response = adapter.handleResponse(responseData.status, responseData.headers, payload, requestData);\n    } catch (error) {\n      return Ember.RSVP.Promise.reject(error);\n    }\n\n    if (response && response.isAdapterError) {\n      return Ember.RSVP.Promise.reject(response);\n    } else {\n      return response;\n    }\n  }\n\n  function ajaxError(adapter, payload, requestData, responseData) {\n    var error;\n\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\n    return error;\n  } // Adapter abort error to include any relevent info, e.g. request/response:\n\n\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  } //From http://stackoverflow.com/questions/280634/endswith-in-javascript\n\n\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\n  function fetchSuccessHandler(adapter, payload, response, requestData) {\n    var responseData = fetchResponseData(response);\n    return ajaxSuccess(adapter, payload, requestData, responseData);\n  }\n\n  function fetchErrorHandler(adapter, payload, response, errorThrown, requestData) {\n    var responseData = fetchResponseData(response);\n\n    if (responseData.status === 200 && payload instanceof Error) {\n      responseData.errorThrown = payload;\n      payload = responseData.errorThrown.payload;\n    } else {\n      responseData.errorThrown = errorThrown;\n      payload = adapter.parseErrorResponse(payload);\n    }\n\n    return ajaxError(adapter, payload, requestData, responseData);\n  }\n\n  function ajaxSuccessHandler(adapter, payload, jqXHR, requestData) {\n    var responseData = ajaxResponseData(jqXHR);\n    return ajaxSuccess(adapter, payload, requestData, responseData);\n  }\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\n    if (true\n    /* DEBUG */\n    ) {\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 && Ember.warn(message, validJSONString, {\n        id: 'ds.adapter.returned-empty-string-as-JSON'\n      }));\n    }\n\n    return ajaxError(adapter, payload, requestData, responseData);\n  }\n\n  function fetchResponseData(response) {\n    return {\n      status: response.status,\n      textStatus: response.textStatus,\n      headers: headersToObject(response.headers)\n    };\n  }\n\n  function ajaxResponseData(jqXHR) {\n    return {\n      status: jqXHR.status,\n      textStatus: jqXHR.statusText,\n      headers: (0, _private.parseResponseHeaders)(jqXHR.getAllResponseHeaders())\n    };\n  }\n\n  function headersToObject(headers) {\n    var headersObject = {};\n\n    if (headers) {\n      headers.forEach((value, key) => headersObject[key] = value);\n    }\n\n    return headersObject;\n  }\n  /**\n   * Helper function that translates the options passed to `jQuery.ajax` into a format that `fetch` expects.\n   * @param {Object} _options\n   * @param {Adapter} adapter\n   * @returns {Object}\n   */\n\n\n  function fetchOptions(options, adapter) {\n    options.credentials = 'same-origin';\n\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) {\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, _private.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\n    return options;\n  }\n\n  function ajaxOptions(options, adapter) {\n    options.dataType = 'json';\n    options.context = adapter;\n\n    if (options.data && options.type !== 'GET') {\n      options.data = JSON.stringify(options.data);\n    }\n\n    options.beforeSend = function (xhr) {\n      Object.keys(options.headers).forEach(key => xhr.setRequestHeader(key, options.headers[key]));\n    };\n\n    return options;\n  }\n\n  var _default = RESTAdapter;\n  _exports.default = _default;\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  /**\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  /*\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 = {\n    SAMPLE_FEATURE_FLAG: null,\n    RECORD_DATA_ERRORS: null,\n    RECORD_DATA_STATE: null,\n    IDENTIFIERS: true,\n    REQUEST_SERVICE: null,\n    CUSTOM_MODEL_CLASS: null,\n    FULL_LINKS_ON_RELATIONSHIPS: true\n  };\n  _exports.default = _default;\n});","define(\"@ember-data/canary-features/index\", [\"exports\", \"@ember-data/canary-features/default-features\"], function (_exports, _defaultFeatures) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.FULL_LINKS_ON_RELATIONSHIPS = _exports.CUSTOM_MODEL_CLASS = _exports.IDENTIFIERS = _exports.REQUEST_SERVICE = _exports.RECORD_DATA_STATE = _exports.RECORD_DATA_ERRORS = _exports.SAMPLE_FEATURE_FLAG = _exports.FEATURES = void 0;\n  const ENV = typeof EmberDataENV !== 'undefined' && EmberDataENV !== null ? EmberDataENV : {};\n\n  function featureValue(value) {\n    if (ENV.ENABLE_OPTIONAL_FEATURES && value === null) {\n      return true;\n    }\n\n    return value;\n  }\n\n  const FEATURES = Ember.assign({}, _defaultFeatures.default, ENV.FEATURES);\n  _exports.FEATURES = FEATURES;\n  const SAMPLE_FEATURE_FLAG = featureValue(FEATURES.SAMPLE_FEATURE_FLAG);\n  _exports.SAMPLE_FEATURE_FLAG = SAMPLE_FEATURE_FLAG;\n  const RECORD_DATA_ERRORS = featureValue(FEATURES.RECORD_DATA_ERRORS);\n  _exports.RECORD_DATA_ERRORS = RECORD_DATA_ERRORS;\n  const RECORD_DATA_STATE = featureValue(FEATURES.RECORD_DATA_STATE);\n  _exports.RECORD_DATA_STATE = RECORD_DATA_STATE;\n  const REQUEST_SERVICE = featureValue(FEATURES.REQUEST_SERVICE);\n  _exports.REQUEST_SERVICE = REQUEST_SERVICE;\n  const IDENTIFIERS = featureValue(FEATURES.IDENTIFIERS);\n  _exports.IDENTIFIERS = IDENTIFIERS;\n  const CUSTOM_MODEL_CLASS = featureValue(FEATURES.CUSTOM_MODEL_CLASS);\n  _exports.CUSTOM_MODEL_CLASS = CUSTOM_MODEL_CLASS;\n  const FULL_LINKS_ON_RELATIONSHIPS = featureValue(FEATURES.FULL_LINKS_ON_RELATIONSHIPS);\n  _exports.FULL_LINKS_ON_RELATIONSHIPS = FULL_LINKS_ON_RELATIONSHIPS;\n});","define(\"@ember-data/debug/index\", [\"exports\", \"@ember-data/debug/setup\"], function (_exports, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\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 = Ember.DataAdapter.extend({\n    store: Ember.inject.service('store'),\n\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\n    _nameToClass(type) {\n      return Ember.get(this, 'store').modelFor(type);\n    },\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      @public\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 = Ember.get(this, 'store');\n      var __createRecordData = store._createRecordData;\n      var _releaseMethods = [];\n      var discoveredTypes = (0, _setup.typesMapFor)(store); // Add any models that were added during initialization of the app, before the inspector was opened\n\n      discoveredTypes.forEach((_, type) => {\n        this.watchTypeIfUnseen(store, discoveredTypes, type, typesAdded, typesUpdated, _releaseMethods);\n      }); // Overwrite _createRecordData so newly added models will get added to the list\n\n      store._createRecordData = identifier => {\n        this.watchTypeIfUnseen(store, discoveredTypes, identifier.type, typesAdded, typesUpdated, _releaseMethods);\n        return __createRecordData.call(store, identifier);\n      };\n\n      var release = () => {\n        _releaseMethods.forEach(fn => fn());\n\n        store._createRecordData = __createRecordData; // 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\n        discoveredTypes.forEach((value, key) => {\n          discoveredTypes.set(key, false);\n        });\n        this.releaseMethods.removeObject(release);\n      };\n\n      this.releaseMethods.pushObject(release);\n      return release;\n    },\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     * @param {store} store\n     * @internal\n     * @param {Map} discoveredTypes\n     * @param {String} type\n     * @param {Function} typesAdded\n     * @param {Function} typesUpdated\n     * @param {Array} releaseMethods\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    /**\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 Ember.String.capitalize(Ember.String.underscore(name).replace(/_/g, ' ').trim());\n    },\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      Ember.get(typeClass, 'attributes').forEach((meta, name) => {\n        if (count++ > self.attributeLimit) {\n          return false;\n        }\n\n        var desc = this.columnNameToDesc(name);\n        columns.push({\n          name: name,\n          desc: desc\n        });\n      });\n      return columns;\n    },\n\n    /**\n      Fetches all loaded records for a given type\n       @method getRecords\n      @internal\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\n        if (containerKey) {\n          var match = containerKey.match(/model:(.*)/);\n\n          if (match !== null) {\n            modelName = match[1];\n          }\n        }\n      }\n\n      (true && !(!!modelName) && Ember.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    /**\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: Ember.get(record, 'id')\n      };\n      record.eachAttribute(key => {\n        if (count++ > this.attributeLimit) {\n          return false;\n        }\n\n        columnValues[key] = Ember.get(record, key);\n      });\n      return columnValues;\n    },\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 = Ember.A(['id']);\n      record.eachAttribute(key => keys.push(key));\n      keys.forEach(key => keywords.push(Ember.get(record, key)));\n      return keywords;\n    },\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    /**\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\n      if (record.get('isNew')) {\n        color = 'green';\n      } else if (record.get('hasDirtyAttributes')) {\n        color = 'blue';\n      }\n\n      return color;\n    },\n\n    /**\n      Observes all relevant properties and re-sends the wrapped record\n      when a change occurs\n       @method observeRecord\n      @internal\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 = Ember.A();\n      var keysToObserve = Ember.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\n        Ember.addObserver(record, key, handler);\n        releaseMethods.push(function () {\n          Ember.removeObserver(record, key, handler);\n        });\n      });\n\n      var release = function () {\n        releaseMethods.forEach(fn => fn());\n      };\n\n      return release;\n    }\n\n  });\n\n  _exports.default = _default;\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.typesMapFor = typesMapFor;\n  _exports.default = void 0;\n  var StoreTypesMap = new WeakMap();\n\n  function typesMapFor(store) {\n    var typesMap = StoreTypesMap.get(store);\n\n    if (typesMap === undefined) {\n      typesMap = new Map();\n      StoreTypesMap.set(store, typesMap);\n    }\n\n    return typesMap;\n  } // override _createRecordData to add the known models to the typesMap\n\n\n  var __createRecordData = _store.default.prototype._createRecordData;\n\n  _store.default.prototype._createRecordData = function (identifier) {\n    var typesMap = typesMapFor(this);\n\n    if (!typesMap.has(identifier.type)) {\n      typesMap.set(identifier.type, false);\n    }\n\n    return __createRecordData.call(this, identifier);\n  };\n\n  var _default = {\n    name: '@ember-data/data-adapter',\n\n    initialize() {}\n\n  };\n  _exports.default = _default;\n});","define('@ember-data/model/-private', ['exports', '@ember-data/store/-private', '@ember-data/store'], function (exports, Private, store) { 'use strict';\n\n  function isElementDescriptor(args) {\n    var [maybeTarget, maybeKey, maybeDesc] = args;\n    return (// Ensure we have the right number of args\n      args.length === 3 && (typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) && // Make sure the key is a string\n      typeof maybeKey === 'string' && (typeof maybeDesc === 'object' && maybeDesc !== null && 'enumerable' in maybeDesc && 'configurable' in maybeDesc || // 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) && Ember.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  function hasValue(internalModel, key) {\n    return Private.recordDataFor(internalModel).hasAttr(key);\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 Model.extend({\n      username: attr('string'),\n      email: attr('string'),\n      verified: attr('boolean', { defaultValue: false })\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 Model.extend({\n      username: attr('string'),\n      email: attr('string'),\n      settings: attr({\n        defaultValue() {\n          return {};\n        }\n      })\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 Model.extend({\n      text: attr('text', {\n        uppercase: true\n      })\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\n\n  function attr(type, options) {\n    if (typeof type === 'object') {\n      options = type;\n      type = undefined;\n    } else {\n      options = options || {};\n    }\n\n    var meta = {\n      type: type,\n      isAttribute: true,\n      kind: 'attribute',\n      options: options\n    };\n    return Ember.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 attr on ${this.constructor.toString()}`);\n          }\n        }\n\n        var internalModel = this._internalModel;\n\n        if (hasValue(internalModel, key)) {\n          return internalModel.getAttributeValue(key);\n        } else {\n          return getDefaultValue(this, options, key);\n        }\n      },\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 attr on ${this.constructor.toString()}`);\n          }\n        }\n\n        return this._internalModel.setDirtyAttribute(key, value);\n      }\n\n    }).meta(meta);\n  }\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 Model.extend({\n      profile: belongsTo('profile')\n    });\n    ```\n\n    ```app/models/profile.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      user: belongsTo('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 Model.extend({\n      comments: hasMany('comment')\n    });\n    ```\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      post: belongsTo('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 Model.extend({\n      post: belongsTo()\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 Model.extend({\n      post: belongsTo('post', {\n        async: false\n      })\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\n  function belongsTo(modelName, options) {\n    var opts, userEnteredModelName;\n\n    if (typeof modelName === 'object') {\n      opts = modelName;\n      userEnteredModelName = undefined;\n    } else {\n      opts = options;\n      userEnteredModelName = modelName;\n    }\n\n    if (typeof userEnteredModelName === 'string') {\n      userEnteredModelName = store.normalizeModelName(userEnteredModelName);\n    }\n\n    ( !(typeof userEnteredModelName === 'string' || typeof userEnteredModelName === 'undefined') && Ember.assert('The first argument to belongsTo must be a string representing a model type key, not an instance of ' + Ember.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 Ember.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\n          if (Object.prototype.hasOwnProperty.call(opts, 'serialize')) {\n            ( Ember.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\n          if (Object.prototype.hasOwnProperty.call(opts, 'embedded')) {\n            ( Ember.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\n        return this._internalModel.getBelongsTo(key);\n      },\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\n        this._internalModel.setDirtyBelongsTo(key, value);\n\n        return this._internalModel.getBelongsTo(key);\n      }\n\n    }).meta(meta);\n  }\n\n  var belongsTo$1 = computedMacroWithOptionalParams(belongsTo);\n\n  /**\n    @module @ember-data/model\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 Model.extend({\n      comments: hasMany('comment')\n    });\n    ```\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      post: belongsTo('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 Model.extend({\n      tags: hasMany('tag')\n    });\n    ```\n\n    ```app/models/tag.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      posts: hasMany('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 singularized key name.\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      tags: hasMany()\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 Model.extend({\n      onePost: belongsTo('post'),\n      twoPost: belongsTo('post'),\n      redPost: belongsTo('post'),\n      bluePost: belongsTo('post')\n    });\n    ```\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      comments: hasMany('comment', {\n        inverse: 'redPost'\n      })\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 Model.extend({\n      comments: hasMany('comment', {\n        async: false\n      })\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\n  function hasMany(type, options) {\n    if (typeof type === 'object') {\n      options = type;\n      type = undefined;\n    }\n\n    ( !(typeof type === 'string' || typeof type === 'undefined') && Ember.assert(`The first argument to hasMany must be a string representing a model type key, not an instance of ${Ember.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    if (typeof type === 'string') {\n      type = store.normalizeModelName(type);\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\n\n    var meta = {\n      type,\n      options,\n      isRelationship: true,\n      kind: 'hasMany',\n      name: 'Has Many',\n      key: null\n    };\n    return Ember.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\n        return this._internalModel.getHasMany(key);\n      },\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\n        var internalModel = this._internalModel;\n        internalModel.setDirtyHasMany(key, records);\n        return internalModel.getHasMany(key);\n      }\n\n    }).meta(meta);\n  }\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    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 Model.extend({\n      username: attr('string'),\n      email: attr('string')\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=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=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    @extends ArrayProxy\n    @uses Evented\n   */\n\n  var Errors = Ember.ArrayProxy.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    /**\n      @property errorsByAttributeName\n      @type {MapWithDefault}\n      @private\n    */\n    errorsByAttributeName: Ember.computed(function () {\n      return new Map();\n    }),\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      @param {String} attribute\n      @return {Array}\n    */\n    errorsFor(attribute) {\n      var map = Ember.get(this, 'errorsByAttributeName');\n      var errors = map.get(attribute);\n\n      if (errors === undefined) {\n        errors = Ember.A();\n        map.set(attribute, errors);\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\n\n      Ember.get(errors, '[]');\n      return errors;\n    },\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      @type {Array}\n    */\n    messages: Ember.computed.mapBy('content', 'message'),\n\n    /**\n      @property content\n      @type {Array}\n      @private\n    */\n    content: Ember.computed(function () {\n      return Ember.A();\n    }),\n\n    /**\n      @method unknownProperty\n      @private\n    */\n    unknownProperty(attribute) {\n      var errors = this.errorsFor(attribute);\n\n      if (errors.length === 0) {\n        return undefined;\n      }\n\n      return errors;\n    },\n\n    /**\n      Total number of errors.\n       @property length\n      @type {Number}\n      @readOnly\n    */\n\n    /**\n      @property isEmpty\n      @type {Boolean}\n      @readOnly\n    */\n    isEmpty: Ember.computed.not('length').readOnly(),\n\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('password');\n      // =>\n      // [\n      //   { attribute: 'username', message: 'This field is required' },\n      // ]\n     ```\n    @method add\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 = Ember.get(this, 'isEmpty');\n\n      this._add(attribute, messages);\n\n      if (wasEmpty && !Ember.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    /**\n      @method _findOrCreateMessages\n      @private\n    */\n    _findOrCreateMessages(attribute, messages) {\n      var errors = this.errorsFor(attribute);\n      var messagesArray = Ember.makeArray(messages);\n\n      var _messages = new Array(messagesArray.length);\n\n      for (var i = 0; i < messagesArray.length; i++) {\n        var message = messagesArray[i];\n        var err = errors.findBy('message', message);\n\n        if (err) {\n          _messages[i] = err;\n        } else {\n          _messages[i] = {\n            attribute: attribute,\n            message: message\n          };\n        }\n      }\n\n      return _messages;\n    },\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     @param {string} member - the property name of an attribute or relationship\n     */\n    remove(attribute) {\n      if (Ember.get(this, 'isEmpty')) {\n        return;\n      }\n\n      this._remove(attribute);\n\n      if (Ember.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 (Ember.get(this, 'isEmpty')) {\n        return;\n      }\n\n      var content = this.rejectBy('attribute', attribute);\n      Ember.get(this, 'content').setObjects(content); // Although errorsByAttributeName.delete is technically enough to sync errors state, we also\n      // must mutate the array as well for autotracking\n\n      var errors = this.errorsFor(attribute);\n\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\n      Ember.get(this, 'errorsByAttributeName').delete(attribute);\n      this.notifyPropertyChange(attribute);\n      this.notifyPropertyChange('length');\n    },\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 remove\n     */\n    clear() {\n      if (Ember.get(this, 'isEmpty')) {\n        return;\n      }\n\n      this._clear();\n\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 (Ember.get(this, 'isEmpty')) {\n        return;\n      }\n\n      var errorsByAttributeName = Ember.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      Ember.ArrayProxy.prototype.clear.call(this);\n    },\n\n    /**\n      Checks if there are error messages for the given attribute.\n       ```app/routes/user/edit.js\n      import Route from '@ember/routing/route';\n       export default Route.extend({\n        actions: {\n          save: function(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      ```\n       @method has\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\n  /**\n    @module @ember-data/model\n  */\n\n  var relationshipsDescriptor = Ember.computed(function () {\n    var map = new Map();\n    var relationshipsByName = Ember.get(this, 'relationshipsByName'); // Loop through each computed property on the class\n\n    relationshipsByName.forEach(desc => {\n      var {\n        type\n      } = desc;\n\n      if (!map.has(type)) {\n        map.set(type, []);\n      }\n\n      map.get(type).push(desc);\n    });\n    return map;\n  }).readOnly();\n  var relatedTypesDescriptor = Ember.computed(function () {\n    var parentModelName = this.modelName;\n    var types = Ember.A(); // Loop through each computed property on the class,\n    // and create an array of the unique types involved\n    // in relationships\n\n    this.eachComputedProperty((name, meta) => {\n      if (meta.isRelationship) {\n        meta.key = name;\n        var modelName = Private.typeForRelationshipMeta(meta);\n        ( !(modelName) && Ember.assert(`You specified a hasMany (${meta.type}) on ${parentModelName} but ${meta.type} was not found.`, modelName));\n\n        if (!types.includes(modelName)) {\n          ( !(!!modelName) && Ember.assert(`Trying to sideload ${name} on ${this.toString()} but the type doesn't exist.`, !!modelName));\n          types.push(modelName);\n        }\n      }\n    });\n    return types;\n  }).readOnly();\n  var relationshipsObjectDescriptor = Ember.computed(function () {\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] = Private.relationshipFromMeta(meta);\n      }\n    });\n    return relationships;\n  });\n  var relationshipsByNameDescriptor = Ember.computed(function () {\n    var map = new Map();\n    var rels = Ember.get(this, 'relationshipsObject');\n    var relationships = Object.keys(rels);\n\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\n    return map;\n  }).readOnly();\n\n  var {\n    changeProperties\n  } = Ember;\n\n  function findPossibleInverses(type, inverseType, name, relationshipsSoFar) {\n    var possibleRelationships = relationshipsSoFar || [];\n    var relationshipMap = Ember.get(inverseType, 'relationships');\n\n    if (!relationshipMap) {\n      return possibleRelationships;\n    }\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\n      if (!optionsForRelationship.inverse && optionsForRelationship.inverse !== null) {\n        return true;\n      }\n\n      return name === optionsForRelationship.inverse;\n    }) : null;\n\n    if (relationships) {\n      possibleRelationships.push.apply(possibleRelationships, relationships);\n    } //Recurse to support polymorphism\n\n\n    if (type.superclass) {\n      findPossibleInverses(type.superclass, inverseType, name, possibleRelationships);\n    }\n\n    return possibleRelationships;\n  }\n\n  var retrieveFromCurrentState = Ember.computed('currentState', function (key) {\n    return Ember.get(this._internalModel.currentState, key);\n  }).readOnly();\n  var isValidRecordData = Ember.computed('errors.length', function (key) {\n    return !(this.get('errors.length') > 0);\n  }).readOnly();\n  var isValid =  retrieveFromCurrentState;\n  var isDeletedCP;\n\n  {\n    isDeletedCP = retrieveFromCurrentState;\n  }\n\n  var isNewCP;\n\n  {\n    isNewCP = retrieveFromCurrentState;\n  }\n\n  var adapterError;\n\n  {\n    adapterError = null;\n  }\n\n  var isError;\n\n  {\n    isError = false;\n  }\n\n  var isReloading;\n\n  {\n    isReloading = false;\n  }\n  /**\n    @class Model\n    @module @ember-data/model\n    @extends EmberObject\n    @uses EmberData.DeprecatedEvented\n  */\n\n\n  var Model = Ember.Object.extend(Private.DeprecatedEvented, {\n    init() {\n      this._super(...arguments);\n\n      {\n        if (!this._internalModel) {\n          throw new Ember.Error('You should not call `create` on a model. Instead, call `store.createRecord` with the attributes you would like to set.');\n        }\n      }\n    },\n\n    _notifyNetworkChanges: function () {\n      {\n        ['isValid'].forEach(key => this.notifyPropertyChange(key));\n      }\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      @type {Boolean}\n      @readOnly\n    */\n    isEmpty: retrieveFromCurrentState,\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      @type {Boolean}\n      @readOnly\n    */\n    isLoading: retrieveFromCurrentState,\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      @type {Boolean}\n      @readOnly\n    */\n    isLoaded: retrieveFromCurrentState,\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      @type {Boolean}\n      @readOnly\n    */\n    hasDirtyAttributes: Ember.computed('currentState.isDirty', function () {\n      return this.get('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      @type {Boolean}\n      @readOnly\n    */\n    isSaving: retrieveFromCurrentState,\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      @type {Boolean}\n      @readOnly\n    */\n    isDeleted: isDeletedCP,\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      @type {Boolean}\n      @readOnly\n    */\n    isNew: isNewCP,\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      @type {Boolean}\n      @readOnly\n    */\n    isValid: isValid,\n\n    _markInvalidRequestAsClean() {\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      @type {String}\n      @readOnly\n    */\n    dirtyType: retrieveFromCurrentState,\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      @type {Boolean}\n      @readOnly\n    */\n    isError: isError,\n\n    _markErrorRequestAsClean() {\n      this._errorRequests = [];\n      this._lastError = null;\n\n      this._notifyNetworkChanges();\n    },\n\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      @type {Boolean}\n      @readOnly\n    */\n    isReloading: isReloading,\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      @type {String}\n    */\n\n    /**\n      @property currentState\n      @private\n      @type {Object}\n    */\n    currentState: Private.RootState.empty,\n    // defined here to avoid triggering setUnknownProperty\n\n    /**\n     @property _internalModel\n     @private\n     @type {Object}\n     */\n    _internalModel: null,\n    // defined here to avoid triggering setUnknownProperty\n\n    /**\n     @property recordData\n     @private\n     @type undefined (reserved)\n     */\n    // will be defined here to avoid triggering setUnknownProperty\n\n    /**\n     @property store\n     */\n    store: null,\n    // defined here to avoid triggering setUnknownProperty\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 us useful for displaying error messages to\n      the user.\n       ```handlebars\n      <label>Username: {{input value=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=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      @type {Errors}\n    */\n    errors: Ember.computed(function () {\n      var errors = Errors.create();\n\n      errors._registerHandlers(() => {\n        this.send('becameInvalid');\n      }, () => {\n        this.send('becameValid');\n      });\n\n      return errors;\n    }).readOnly(),\n\n    invalidErrorsChanged(jsonApiErrors) {\n    },\n\n    _addErrorMessageToAttribute(attribute, message) {\n      this.get('errors')._add(attribute, message);\n    },\n\n    _clearErrorMessages() {\n      this.get('errors')._clear();\n    },\n\n    /**\n      This property holds the `AdapterError` object with which\n      last adapter operation was rejected.\n       @property adapterError\n      @type {AdapterError}\n    */\n    adapterError: adapterError,\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      @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       @event ready\n    */\n    ready: null,\n\n    /**\n      Fired when the record is loaded from the server.\n       @event didLoad\n    */\n    didLoad: null,\n\n    /**\n      Fired when the record is updated.\n       @event didUpdate\n    */\n    didUpdate: null,\n\n    /**\n      Fired when a new record is commited to the server.\n       @event didCreate\n    */\n    didCreate: null,\n\n    /**\n      Fired when the record is deleted.\n       @event didDelete\n    */\n    didDelete: null,\n\n    /**\n      Fired when the record becomes invalid.\n       @event becameInvalid\n    */\n    becameInvalid: null,\n\n    /**\n      Fired when the record enters the error state.\n       @event becameError\n    */\n    becameError: null,\n\n    /**\n      Fired when the record is rolled back.\n       @event rolledBack\n    */\n    rolledBack: null,\n\n    //TODO Do we want to deprecate these?\n\n    /**\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      @method transitionTo\n      @private\n      @param {String} name\n    */\n    transitionTo(name) {\n      return this._internalModel.transitionTo(name);\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/routes/model/delete.js\n      import Route from '@ember/routing/route';\n       export default Route.extend({\n        actions: {\n          softDelete() {\n            this.get('controller.model').deleteRecord();\n          },\n          confirm() {\n            this.get('controller.model').save();\n          },\n          undo() {\n            this.get('controller.model').rollbackAttributes();\n          }\n        }\n      });\n      ```\n       @method deleteRecord\n    */\n    deleteRecord() {\n      this._internalModel.deleteRecord();\n    },\n\n    /**\n      Same as `deleteRecord`, but saves the record immediately.\n       Example\n       ```app/routes/model/delete.js\n      import Route from '@ember/routing/route';\n       export default Route.extend({\n        actions: {\n          delete() {\n            this.get('controller.model').destroyRecord().then(function() {\n              controller.transitionToRoute('model.index');\n            });\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 MyCustomAdapter.extend({\n        deleteRecord(store, type, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      });\n      ```\n       @method destroyRecord\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);\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    */\n    unloadRecord() {\n      if (this.isDestroyed) {\n        return;\n      }\n\n      this._internalModel.unloadRecord();\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\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 Model.extend({\n        name: attr('string'),\n        isAdmin: attr('boolean', {\n          defaultValue: false\n        })\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      @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    */\n    rollbackAttributes() {\n      this._internalModel.rollbackAttributes();\n    },\n\n    /*\n      @method _createSnapshot\n      @private\n    */\n    _createSnapshot() {\n      return this._internalModel.createSnapshot();\n    },\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 MyCustomAdapter.extend({\n        updateRecord(store, type, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      });\n      ```\n       @method save\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/routes/model/view.js\n      import Route from '@ember/routing/route';\n       export default Route.extend({\n        actions: {\n          reload() {\n            this.controller.get('model').reload().then(function(model) {\n              // do something with the reloaded model\n            });\n          }\n        }\n      });\n      ```\n       @method reload\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\n      if (typeof options === 'object' && options !== null && options.adapterOptions) {\n        wrappedAdapterOptions = {\n          adapterOptions: options.adapterOptions\n        };\n      }\n\n      return Private.PromiseObject.create({\n        promise: this._internalModel.reload(wrappedAdapterOptions).then(() => this)\n      });\n    },\n\n    attr() {\n      ( Ember.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 Model.extend({\n        user: belongsTo({ async: true })\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      @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 Model.extend({\n        comments: hasMany({ async: true })\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      @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     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    _debugInfo() {\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\n        if (properties === undefined) {\n          properties = relationships[relationship.kind] = [];\n          groups.push({\n            name: relationship.kind,\n            properties,\n            expand: true\n          });\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    notifyBelongsToChange(key) {\n      this.notifyPropertyChange(key);\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 JSONSerializer.extend({\n      serialize: function(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     @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\n    relationshipFor(name) {\n      return Ember.get(this.constructor, 'relationshipsByName').get(name);\n    },\n\n    inverseFor(key) {\n      return this.constructor.inverseFor(key, this._internalModel.store);\n    },\n\n    notifyHasManyAdded(key) {\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      this.notifyPropertyChange(key);\n    },\n\n    eachAttribute(callback, binding) {\n      this.constructor.eachAttribute(callback, binding);\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({\n      trigger(name) {\n        {\n          var fn = this[name];\n\n          if (typeof fn === 'function') {\n            var length = arguments.length;\n            var args = new Array(length - 1);\n\n            for (var i = 1; i < length; i++) {\n              args[i - 1] = arguments[i];\n            }\n\n            fn.apply(this, args);\n          }\n        }\n\n        var _hasEvent =  this._has(name) ;\n\n        if (_hasEvent) {\n          this._super(...arguments);\n        }\n      }\n\n    });\n  }\n\n  {\n    /**\n    @property data\n    @private\n    @deprecated\n    @type {Object}\n    */\n    Object.defineProperty(Model.prototype, 'data', {\n      configurable: false,\n\n      get() {\n        ( Ember.deprecate(`Model.data was private and it's use has been deprecated. For public access, use the RecordData API or iterate attributes`, false, {\n          id: 'ember-data:Model.data',\n          until: '3.9'\n        }));\n        return Private.recordDataFor(this)._data;\n      }\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      @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        ( Ember.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        }));\n\n        var serializer = this._internalModel.store.serializerFor('-default');\n\n        var snapshot = this._internalModel.createSnapshot();\n\n        return serializer.serialize(snapshot, options);\n      }\n\n    });\n  }\n\n  var ID_DESCRIPTOR = {\n    configurable: false,\n\n    set(id) {\n      var normalizedId = Private.coerceId(id);\n\n      if (normalizedId !== null) {\n        this._internalModel.setId(normalizedId);\n      }\n    },\n\n    get() {\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;\n        }\n      }\n\n      Ember.get(this._internalModel, '_tag');\n      return this._internalModel.id;\n    }\n\n  };\n  Object.defineProperty(Model.prototype, 'id', ID_DESCRIPTOR);\n\n  {\n    var lookupDescriptor = function lookupDescriptor(obj, keyName) {\n      var current = obj;\n\n      do {\n        var 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    var isBasicDesc = function isBasicDesc(desc) {\n      return !desc || !desc.get && !desc.set && desc.enumerable === true && desc.writable === true && desc.configurable === true;\n    };\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\n    var lookupDeprecations;\n\n    var _deprecatedLifecycleMethods;\n\n    {\n      var INSTANCE_DEPRECATIONS = new WeakMap();\n      _deprecatedLifecycleMethods = ['becameError', 'becameInvalid', 'didCreate', 'didDelete', 'didLoad', 'didUpdate', 'ready', 'rolledBack'];\n\n      lookupDeprecations = function lookupInstanceDeprecations(instance) {\n        var deprecations = INSTANCE_DEPRECATIONS.get(instance);\n\n        if (!deprecations) {\n          deprecations = new Set();\n          INSTANCE_DEPRECATIONS.set(instance, deprecations);\n        }\n\n        return deprecations;\n      };\n    }\n\n    Model.reopen({\n      init() {\n        this._super(...arguments);\n\n        {\n          this._getDeprecatedEventedInfo = () => `${this._internalModel.modelName}#${this.id}`;\n        }\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\n        if (!isDefaultEmptyDescriptor(this, 'currentState') || this.get('currentState') !== this._internalModel.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\n        var idDesc = lookupDescriptor(this, 'id');\n\n        if (idDesc.get !== ID_DESCRIPTOR.get) {\n          throw new Ember.Error(`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        {\n          var lifecycleDeprecations = lookupDeprecations(this.constructor);\n\n          _deprecatedLifecycleMethods.forEach(methodName => {\n            if (typeof this[methodName] === 'function' && !lifecycleDeprecations.has(methodName)) {\n              ( Ember.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              }));\n              lifecycleDeprecations.add(methodName);\n            }\n          });\n        }\n      }\n\n    });\n  }\n\n  Model.reopenClass({\n    isModel: true,\n\n    /**\n      Create should only ever be called by the store. To create an instance of a\n      `Model` in a dirty state use `store.createRecord`.\n      To create instances of `Model` in a clean state, use `store.push`\n       @method create\n      @private\n      @static\n    */\n\n    /**\n     Represents the model's class name as a string. This can be used to look up the model's class name through\n     `Store`'s modelFor method.\n      `modelName` is generated for you by Ember Data. It will be a lowercased, dasherized string.\n     For example:\n      ```javascript\n     store.modelFor('post').modelName; // 'post'\n     store.modelFor('blog-post').modelName; // 'blog-post'\n     ```\n      The most common place you'll want to access `modelName` is in your serializer's `payloadKeyFromModelName` method. For example, to change payload\n     keys to underscore (instead of dasherized), you might use the following code:\n      ```javascript\n     import RESTSerializer from '@ember-data/serializer/rest';\n     import { underscore } from '@ember/string';\n      export default const PostSerializer = RESTSerializer.extend({\n       payloadKeyFromModelName(modelName) {\n         return underscore(modelName);\n       }\n     });\n     ```\n     @property modelName\n     @type String\n     @readonly\n     @static\n    */\n    modelName: null,\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    /**\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 Model.extend({\n        comments: hasMany('comment')\n      });\n     ```\n      Calling `store.modelFor('post').typeForRelationship('comments', store)` will return `Comment`.\n      @method typeForRelationship\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    typeForRelationship(name, store) {\n      var relationship = Ember.get(this, 'relationshipsByName').get(name);\n      return relationship && store.modelFor(relationship.type);\n    },\n\n    inverseMap: Ember.computed(function () {\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 Model.extend({\n        comments: hasMany('message')\n      });\n     ```\n      ```app/models/message.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default Model.extend({\n        owner: belongsTo('post')\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     @static\n     @param {String} name the name of the relationship\n     @param {Store} store\n     @return {Object} the inverse relationship, or null\n     */\n    inverseFor(name, store) {\n      var inverseMap = Ember.get(this, 'inverseMap');\n\n      if (inverseMap[name]) {\n        return inverseMap[name];\n      } else {\n        var inverse = this._findInverseFor(name, store);\n\n        inverseMap[name] = inverse;\n        return inverse;\n      }\n    },\n\n    //Calculate the inverse, ignoring the cache\n    _findInverseFor(name, store) {\n      var inverseType = this.typeForRelationship(name, store);\n\n      if (!inverseType) {\n        return null;\n      }\n\n      var propertyMeta = this.metaForProperty(name); //If inverse is manually specified to be null, like  `comments: hasMany('message', { inverse: null })`\n\n      var options = propertyMeta.options;\n\n      if (options.inverse === null) {\n        return null;\n      }\n\n      var inverseName, inverseKind, inverse, inverseOptions; //If inverse is specified manually, return the inverse\n\n      if (options.inverse) {\n        inverseName = options.inverse;\n        inverse = Ember.get(inverseType, 'relationshipsByName').get(inverseName);\n        ( !(!Ember.isNone(inverse)) && Ember.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.\", !Ember.isNone(inverse))); // TODO probably just return the whole inverse here\n\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          ( Ember.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\n        var possibleRelationships = findPossibleInverses(this, inverseType, name);\n\n        if (possibleRelationships.length === 0) {\n          return null;\n        }\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) && Ember.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\n        if (filteredRelationships.length === 1) {\n          possibleRelationships = filteredRelationships;\n        }\n\n        ( !(possibleRelationships.length === 1) && Ember.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\n      ( !(!inverseOptions || inverseOptions.inverse !== null) && Ember.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 Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n        posts: hasMany('post')\n      });\n     ```\n      This computed property would return a map describing these\n     relationships, like this:\n      ```javascript\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n     import User from 'app/models/user';\n     import Post from 'app/models/post';\n      let relationships = Ember.get(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     @static\n     @type Map\n     @readOnly\n     */\n    relationships: relationshipsDescriptor,\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 Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n         posts: hasMany('post')\n      });\n     ```\n      This property would contain the following:\n      ```javascript\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n      let relationshipNames = Ember.get(Blog, 'relationshipNames');\n     relationshipNames.hasMany;\n     //=> ['users', 'posts']\n     relationshipNames.belongsTo;\n     //=> ['owner']\n     ```\n      @property relationshipNames\n     @static\n     @type Object\n     @readOnly\n     */\n    relationshipNames: Ember.computed(function () {\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 Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n         posts: hasMany('post')\n      });\n     ```\n      This property would contain the following:\n      ```javascript\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n      let relatedTypes = Ember.get(Blog, 'relatedTypes');\n     //=> [ User, Post ]\n     ```\n      @property relatedTypes\n     @static\n     @type Ember.Array\n     @readOnly\n     */\n    relatedTypes: relatedTypesDescriptor,\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 Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n         posts: hasMany('post')\n      });\n     ```\n      This property would contain the following:\n      ```javascript\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n      let relationshipsByName = Ember.get(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     @static\n     @type Map\n     @readOnly\n     */\n    relationshipsByName: relationshipsByNameDescriptor,\n    relationshipsObject: relationshipsObjectDescriptor,\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 Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n         posts: hasMany('post'),\n         title: attr('string')\n      });\n     ```\n      ```js\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n      let fields = Ember.get(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     @static\n     @type Map\n     @readOnly\n     */\n    fields: Ember.computed(function () {\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    }).readOnly(),\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     @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    eachRelationship(callback, binding) {\n      Ember.get(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     @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    eachRelatedType(callback, binding) {\n      var relationshipTypes = Ember.get(this, 'relatedTypes');\n\n      for (var i = 0; i < relationshipTypes.length; i++) {\n        var type = relationshipTypes[i];\n        callback.call(binding, type);\n      }\n    },\n\n    determineRelationshipType(knownSide, store) {\n      var knownKey = knownSide.key;\n      var knownKind = knownSide.kind;\n      var inverse = this.inverseFor(knownKey, store); // let key;\n\n      var otherKind;\n\n      if (!inverse) {\n        return knownKind === 'belongsTo' ? 'oneToNone' : 'manyToNone';\n      } // key = inverse.name;\n\n\n      otherKind = inverse.kind;\n\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 Model.extend({\n        firstName: attr('string'),\n        lastName: attr('string'),\n        birthday: attr('date')\n      });\n     ```\n      ```javascript\n     import Ember from 'ember';\n     import Person from 'app/models/person';\n      let attributes = Ember.get(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     @static\n     @type {Map}\n     @readOnly\n     */\n    attributes: Ember.computed(function () {\n      var map = new Map();\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isAttribute) {\n          ( !(name !== 'id') && Ember.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    }).readOnly(),\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 Model.extend({\n        firstName: attr(),\n        lastName: attr('string'),\n        birthday: attr('date')\n      });\n     ```\n      ```javascript\n     import Ember from 'ember';\n     import Person from 'app/models/person';\n      let transformedAttributes = Ember.get(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     @static\n     @type {Map}\n     @readOnly\n     */\n    transformedAttributes: Ember.computed(function () {\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    }).readOnly(),\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      let Person = Model.extend({\n        firstName: attr('string'),\n        lastName: attr('string'),\n        birthday: attr('date')\n      });\n      Person.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     @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    eachAttribute(callback, binding) {\n      Ember.get(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     @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    eachTransformedAttribute(callback, binding) {\n      Ember.get(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     @static\n     */\n    toString() {\n      return `model:${Ember.get(this, 'modelName')}`;\n    }\n\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    ### 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 Model.extend({\n      comments: hasMany('comment')\n    });\n    ```\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      post: belongsTo('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    @extends EmberObject\n    @uses Ember.MutableArray, DeprecatedEvented\n  */\n\n  var manyArray = Ember.Object.extend(Ember.MutableArray, Private.DeprecatedEvented, {\n    // here to make TS happy\n    _inverseIsAsync: false,\n    isLoaded: false,\n\n    init() {\n      this._super(...arguments);\n      /**\n      The loading state of this array\n       @property {Boolean} isLoaded\n      */\n\n\n      this.isLoaded = this.isLoaded || false;\n      this.length = 0;\n      /**\n      Used for async `hasMany` arrays\n      to keep track of when they will resolve.\n       @property {Ember.RSVP.Promise} promise\n      @private\n      */\n\n      this.promise = null;\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 metadata via the `meta` property:\n       ```js\n      post.get('comments').then(function(comments) {\n        var meta = comments.get('meta');\n       // meta.page => 1\n      // meta.total => 5\n      });\n      ```\n       @property {Object} meta\n      @public\n      */\n      // TODO this is likely broken in our refactor\n\n      this.meta = this.meta || null;\n      /**\n      `true` if the relationship is polymorphic, `false` otherwise.\n       @property {Boolean} isPolymorphic\n      @private\n      */\n\n      this.isPolymorphic = this.isPolymorphic || false;\n      /**\n      The relationship which manages this array.\n       @property {ManyRelationship} relationship\n      @private\n      */\n\n      this.currentState = [];\n      this.flushCanonical(this.initialState, false); // we don't need this anymore, it just prevents garbage collection the records in the initialState\n\n      this.initialState = undefined;\n    },\n\n    // TODO: if(DEBUG)\n    anyUnloaded() {\n      // Use `filter[0]` as opposed to `find` because of IE11\n      var unloaded = this.currentState.filter(im => im._isDematerializing || !im.isLoaded())[0];\n      return !!unloaded;\n    },\n\n    removeUnloadedInternalModel() {\n      for (var i = 0; i < this.currentState.length; ++i) {\n        var internalModel = this.currentState[i];\n        var shouldRemove = void 0;\n\n        {\n          shouldRemove = internalModel._isDematerializing || !internalModel.isLoaded();\n        }\n\n        if (shouldRemove) {\n          this.arrayContentWillChange(i, 1, 0);\n          this.currentState.splice(i, 1);\n          this.set('length', this.currentState.length);\n          this.arrayContentDidChange(i, 1, 0);\n          return true;\n        }\n      }\n\n      return false;\n    },\n\n    objectAt(index) {\n      // TODO we likely need to force flush here\n\n      /*\n      if (this.relationship._willUpdateManyArray) {\n        this.relationship._flushPendingManyArrayUpdates();\n      }\n      */\n      var internalModel = this.currentState[index];\n\n      if (internalModel === undefined) {\n        return;\n      }\n\n      return internalModel.getRecord();\n    },\n\n    flushCanonical(toSet, isInitialized = true) {\n      // It’s possible the parent side of the relationship may have been unloaded by this point\n      if (!Private._objectIsAlive(this)) {\n        return;\n      } // diff to find changes\n\n\n      var diff = Private.diffArray(this.currentState, toSet);\n\n      if (diff.firstChangeIndex !== null) {\n        // it's null if no change found\n        // we found a change\n        this.arrayContentWillChange(diff.firstChangeIndex, diff.removedCount, diff.addedCount);\n        this.set('length', toSet.length);\n        this.currentState = toSet.slice();\n        this.arrayContentDidChange(diff.firstChangeIndex, diff.removedCount, diff.addedCount);\n\n        if (isInitialized && diff.addedCount > 0) {\n          //notify only on additions\n          //TODO only notify if unloaded\n          this.internalModel.manyArrayRecordAdded(this.get('key'));\n        }\n      }\n    },\n\n    replace(idx, amt, objects) {\n      var internalModels;\n\n      if (amt > 0) {\n        internalModels = this.currentState.slice(idx, idx + amt);\n        this.get('recordData').removeFromHasMany(this.get('key'), internalModels.map(im => Private.recordDataFor(im)));\n      }\n\n      if (objects) {\n        ( !(Array.isArray(objects) || Ember.Array.detect(objects)) && Ember.assert('The third argument to replace needs to be an array.', Array.isArray(objects) || Ember.Array.detect(objects)));\n        this.get('recordData').addToHasMany(this.get('key'), objects.map(obj => Private.recordDataFor(obj)), idx);\n      }\n\n      this.retrieveLatest();\n    },\n\n    // Ok this is kinda funky because if buggy we might lose positions, etc.\n    // but current code is this way so shouldn't be too big of a problem\n    retrieveLatest() {\n      var jsonApi = this.get('recordData').getHasMany(this.get('key')); // TODO this is odd, why should ManyArray ever tell itself to resync?\n\n      var internalModels = this.store._getHasManyByJsonApiResource(jsonApi);\n\n      if (jsonApi.meta) {\n        this.set('meta', jsonApi.meta);\n      }\n\n      {\n        if (jsonApi.links) {\n          this.set('links', jsonApi.links);\n        }\n      }\n\n      this.flushCanonical(internalModels, true);\n    },\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      var user = store.peekRecord('user', 1)\n      user.login().then(function() {\n        user.get('permissions').then(function(permissions) {\n          return permissions.reload();\n        });\n      });\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.get('store').reloadManyArray(this, this.get('internalModel'), this.get('key'), options);\n    },\n\n    /**\n      Saves all of the records in the `ManyArray`.\n       Example\n       ```javascript\n      store.findRecord('inbox', 1).then(function(inbox) {\n        inbox.get('messages').then(function(messages) {\n          messages.forEach(function(message) {\n            message.set('isRead', true);\n          });\n          messages.save()\n        });\n      });\n      ```\n       @method save\n      @return {PromiseArray} promise\n    */\n    save() {\n      var manyArray = this;\n      var promiseLabel = 'DS: ManyArray#save ' + Ember.get(this, 'type');\n      var promise = Ember.RSVP.all(this.invoke('save'), promiseLabel).then(() => manyArray, null, 'DS: ManyArray#save return ManyArray');\n      return Private.PromiseArray.create({\n        promise\n      });\n    },\n\n    /**\n      Create a child record within the owner\n       @method createRecord\n      @private\n      @param {Object} hash\n      @return {Model} record\n    */\n    createRecord(hash) {\n      var store = Ember.get(this, 'store');\n      var type = Ember.get(this, 'type');\n      ( !(!Ember.get(this, 'isPolymorphic')) && Ember.assert(`You cannot add '${type.modelName}' records to this polymorphic relationship.`, !Ember.get(this, 'isPolymorphic')));\n      var record = store.createRecord(type.modelName, hash);\n      this.pushObject(record);\n      return record;\n    }\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\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: Ember.computed(function () {\n      ( Ember.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\n    reload(options) {\n      ( !(this.get('content') !== undefined) && Ember.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\n  /**\n   @module @ember-data/model\n   */\n\n  /**\n    A PromiseManyArray is a PromiseArray that also proxies certain method calls\n    to the underlying manyArray.\n    Right now we proxy:\n\n      * `reload()`\n      * `createRecord()`\n      * `on()`\n      * `one()`\n      * `trigger()`\n      * `off()`\n      * `has()`\n\n    @class PromiseManyArray\n    @extends Ember.ArrayProxy\n    @private\n  */\n\n  var PromiseManyArray = Private.PromiseArray.extend({\n    links:  Ember.computed.reads('content.links') ,\n\n    reload(options) {\n      ( !(Ember.get(this, 'content')) && Ember.assert('You are trying to reload an async manyArray before it has been created', Ember.get(this, 'content')));\n      this.set('promise', this.get('content').reload(options));\n      return this;\n    },\n\n    createRecord: proxyToContent('createRecord'),\n    on: proxyToContent('on'),\n    one: proxyToContent('one'),\n    trigger: proxyToContent('trigger'),\n    off: proxyToContent('off'),\n    has: proxyToContent('has')\n  });\n\n  function proxyToContent(method) {\n    return function () {\n      return Ember.get(this, 'content')[method](...arguments);\n    };\n  }\n\n  /*\n      In case someone defined a relationship to a mixin, for example:\n      ```\n        let Comment = Model.extend({\n          owner: belongsTo('commentable'. { polymorphic: true })\n        });\n        let Commentable = Ember.Mixin.create({\n          comments: hasMany('comment')\n        });\n      ```\n      we want to look up a Commentable class which has all the necessary\n      relationship metadata. 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 = Ember.getOwner(store);\n    var MaybeMixin = owner.factoryFor(`mixin:${normalizedModelName}`);\n    var mixin = MaybeMixin && MaybeMixin.class;\n\n    if (mixin) {\n      var ModelForMixin = Model.extend(mixin);\n      ModelForMixin.reopenClass({\n        __isMixin: true,\n        __mixin: mixin\n      }); //Cache the class as a model\n\n      owner.register('model:' + normalizedModelName, ModelForMixin);\n    }\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.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, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _private.Model;\n    }\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, \"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 = {\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  _exports.default = _default;\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  /**\n   * ## Deprecations\n   *\n   * EmberData allows users to 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 abvoe `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 = {\n    DEPRECATE_CATCH_ALL: '99.0',\n    DEPRECATE_EVENTED_API_USAGE: '3.12',\n    DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS: '3.12',\n    DEPRECATE_MODEL_DATA: '3.8',\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_SERIALIZER_QUERY_RECORD_ARRAY_RESPONSE: '3.4',\n    DEPRECATE_BELONGS_TO_REFERENCE_PUSH: '3.16',\n    DEPRECATE_REFERENCE_INTERNAL_MODEL: '3.19'\n  };\n  _exports.default = _default;\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_BELONGS_TO_REFERENCE_PUSH = _exports.DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA = _exports.DEPRECATE_SERIALIZER_QUERY_RECORD_ARRAY_RESPONSE = _exports.DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE = _exports.DEPRECATE_DEFAULT_ADAPTER = _exports.DEPRECATE_DEFAULT_SERIALIZER = _exports.DEPRECATE_LEGACY_TEST_REGISTRATIONS = _exports.DEPRECATE_LEGACY_TEST_HELPER_SUPPORT = _exports.DEPRECATE_MODEL_TOJSON = _exports.DEPRECATE_MODEL_DATA = _exports.DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS = _exports.DEPRECATE_EVENTED_API_USAGE = _exports.DEPRECATE_CATCH_ALL = void 0;\n\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  } // deprecations\n\n\n  const DEPRECATE_CATCH_ALL = deprecationState('DEPRECATE_CATCH_ALL');\n  _exports.DEPRECATE_CATCH_ALL = DEPRECATE_CATCH_ALL;\n  const DEPRECATE_EVENTED_API_USAGE = deprecationState('DEPRECATE_EVENTED_API_USAGE');\n  _exports.DEPRECATE_EVENTED_API_USAGE = DEPRECATE_EVENTED_API_USAGE;\n  const DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS = deprecationState('DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS');\n  _exports.DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS = DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS;\n  const DEPRECATE_MODEL_DATA = deprecationState('DEPRECATE_MODEL_DATA');\n  _exports.DEPRECATE_MODEL_DATA = DEPRECATE_MODEL_DATA;\n  const DEPRECATE_MODEL_TOJSON = deprecationState('DEPRECATE_MODEL_TOJSON');\n  _exports.DEPRECATE_MODEL_TOJSON = DEPRECATE_MODEL_TOJSON;\n  const DEPRECATE_LEGACY_TEST_HELPER_SUPPORT = deprecationState('DEPRECATE_LEGACY_TEST_HELPER_SUPPORT');\n  _exports.DEPRECATE_LEGACY_TEST_HELPER_SUPPORT = DEPRECATE_LEGACY_TEST_HELPER_SUPPORT;\n  const DEPRECATE_LEGACY_TEST_REGISTRATIONS = deprecationState('DEPRECATE_LEGACY_TEST_REGISTRATIONS');\n  _exports.DEPRECATE_LEGACY_TEST_REGISTRATIONS = DEPRECATE_LEGACY_TEST_REGISTRATIONS;\n  const DEPRECATE_DEFAULT_SERIALIZER = deprecationState('DEPRECATE_DEFAULT_SERIALIZER');\n  _exports.DEPRECATE_DEFAULT_SERIALIZER = DEPRECATE_DEFAULT_SERIALIZER;\n  const DEPRECATE_DEFAULT_ADAPTER = deprecationState('DEPRECATE_DEFAULT_ADAPTER');\n  _exports.DEPRECATE_DEFAULT_ADAPTER = DEPRECATE_DEFAULT_ADAPTER;\n  const DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE = deprecationState('DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE');\n  _exports.DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE = DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE;\n  const DEPRECATE_SERIALIZER_QUERY_RECORD_ARRAY_RESPONSE = deprecationState('DEPRECATE_SERIALIZER_QUERY_RECORD_ARRAY_RESPONSE');\n  _exports.DEPRECATE_SERIALIZER_QUERY_RECORD_ARRAY_RESPONSE = DEPRECATE_SERIALIZER_QUERY_RECORD_ARRAY_RESPONSE;\n  const DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA = deprecationState('DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA');\n  _exports.DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA = DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA;\n  const DEPRECATE_BELONGS_TO_REFERENCE_PUSH = deprecationState('DEPRECATE_BELONGS_TO_REFERENCE_PUSH');\n  _exports.DEPRECATE_BELONGS_TO_REFERENCE_PUSH = DEPRECATE_BELONGS_TO_REFERENCE_PUSH;\n  const DEPRECATE_REFERENCE_INTERNAL_MODEL = deprecationState('DEPRECATE_REFERENCE_INTERNAL_MODEL');\n  _exports.DEPRECATE_REFERENCE_INTERNAL_MODEL = DEPRECATE_REFERENCE_INTERNAL_MODEL;\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_RECORD_DATA_PACKAGE = _exports.HAS_DEBUG_PACKAGE = _exports.HAS_SERIALIZER_PACKAGE = _exports.HAS_ADAPTER_PACKAGE = _exports.HAS_MODEL_PACKAGE = _exports.HAS_STORE_PACKAGE = _exports.HAS_EMBER_DATA_PACKAGE = void 0;\n\n  function flagState(flag) {\n    const packageName = _availablePackages.default[flag];\n    return (0, _require.has)(packageName) || false;\n  }\n\n  const HAS_EMBER_DATA_PACKAGE = flagState('HAS_EMBER_DATA_PACKAGE');\n  _exports.HAS_EMBER_DATA_PACKAGE = HAS_EMBER_DATA_PACKAGE;\n  const HAS_STORE_PACKAGE = flagState('HAS_STORE_PACKAGE');\n  _exports.HAS_STORE_PACKAGE = HAS_STORE_PACKAGE;\n  const HAS_MODEL_PACKAGE = flagState('HAS_MODEL_PACKAGE');\n  _exports.HAS_MODEL_PACKAGE = HAS_MODEL_PACKAGE;\n  const HAS_ADAPTER_PACKAGE = flagState('HAS_ADAPTER_PACKAGE');\n  _exports.HAS_ADAPTER_PACKAGE = HAS_ADAPTER_PACKAGE;\n  const HAS_SERIALIZER_PACKAGE = flagState('HAS_SERIALIZER_PACKAGE');\n  _exports.HAS_SERIALIZER_PACKAGE = HAS_SERIALIZER_PACKAGE;\n  const HAS_DEBUG_PACKAGE = flagState('HAS_DEBUG_PACKAGE');\n  _exports.HAS_DEBUG_PACKAGE = HAS_DEBUG_PACKAGE;\n  const HAS_RECORD_DATA_PACKAGE = flagState('HAS_RECORD_DATA_PACKAGE');\n  _exports.HAS_RECORD_DATA_PACKAGE = HAS_RECORD_DATA_PACKAGE;\n});","define('@ember-data/record-data/-private', ['exports', '@ember-data/store/-private', '@ember-data/store/-debug', '@ember/ordered-set'], function (exports, Private, Debug, EmberOrderedSet) { 'use strict';\n\n  EmberOrderedSet = EmberOrderedSet && Object.prototype.hasOwnProperty.call(EmberOrderedSet, 'default') ? EmberOrderedSet['default'] : EmberOrderedSet;\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\n    if (typeof id === 'string') {\n      return id;\n    }\n\n    if (typeof id === 'symbol') {\n      return id.toString();\n    }\n\n    return '' + id;\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    @method _normalizeLink\n    @internal\n    @param {String} link\n    @return {Object|null}\n  */\n  function _normalizeLink(link) {\n    switch (typeof link) {\n      case 'object':\n        return link;\n\n      case 'string':\n        return {\n          href: link\n        };\n    }\n\n    return null;\n  }\n\n  class EmberDataOrderedSet extends EmberOrderedSet {\n    static create() {\n      return new this();\n    }\n\n    addWithIndex(obj, idx) {\n      var guid = Ember.guidFor(obj);\n      var presenceSet = this.presenceSet;\n      var list = this.list;\n\n      if (presenceSet[guid] === true) {\n        return;\n      }\n\n      presenceSet[guid] = true;\n\n      if (idx === undefined || idx === null) {\n        list.push(obj);\n      } else {\n        list.splice(idx, 0, obj);\n      }\n\n      this.size += 1;\n      return this;\n    }\n\n    deleteWithIndex(obj, idx) {\n      var guid = Ember.guidFor(obj);\n      var presenceSet = this.presenceSet;\n      var list = this.list;\n\n      if (presenceSet[guid] === true) {\n        delete presenceSet[guid];\n        ( !(idx === undefined || list[idx] === obj) && Ember.assert('object is not present at specified index', idx === undefined || list[idx] === obj));\n        var index = idx !== undefined ? idx : list.indexOf(obj);\n\n        if (index > -1) {\n          list.splice(index, 1);\n        }\n\n        this.size = list.length;\n        return true;\n      } else {\n        return false;\n      }\n    }\n\n  }\n\n  function relationshipsFor(instance) {\n    var recordData = Private.recordDataFor(instance) || instance;\n    return recordData._relationships;\n  }\n  function relationshipStateFor(instance, propertyName) {\n    return relationshipsFor(instance).get(propertyName);\n  }\n  function implicitRelationshipsFor(instance) {\n    var recordData = Private.recordDataFor(instance) || instance;\n    return recordData._implicitRelationships;\n  }\n  function implicitRelationshipStateFor(instance, propertyName) {\n    return implicitRelationshipsFor(instance)[propertyName];\n  }\n\n  class Relationship {\n    constructor(store, inverseKey, relationshipMeta, recordData, inverseIsAsync) {\n      this.inverseIsAsync = void 0;\n      this.kind = void 0;\n      this.recordData = void 0;\n      this.members = void 0;\n      this.canonicalMembers = void 0;\n      this.store = void 0;\n      this.key = void 0;\n      this.inverseKey = void 0;\n      this.isAsync = void 0;\n      this.isPolymorphic = void 0;\n      this.relationshipMeta = void 0;\n      this.inverseKeyForImplicit = void 0;\n      this.meta = void 0;\n      this.__inverseMeta = void 0;\n      this._tempModelName = void 0;\n      this.shouldForceReload = false;\n      this.relationshipIsStale = void 0;\n      this.hasDematerializedInverse = void 0;\n      this.hasAnyRelationshipData = void 0;\n      this.relationshipIsEmpty = void 0;\n      this.hasFailedLoadAttempt = false;\n      this.links = void 0;\n      this.willSync = void 0;\n      this.inverseIsAsync = inverseIsAsync;\n      this.kind = relationshipMeta.kind;\n      var async = relationshipMeta.options.async;\n      var polymorphic = relationshipMeta.options.polymorphic;\n      this.recordData = recordData;\n      this.members = new EmberDataOrderedSet();\n      this.canonicalMembers = new EmberDataOrderedSet();\n      this.store = store;\n      this.key = relationshipMeta.key || null;\n      this.inverseKey = inverseKey;\n      this.isAsync = typeof async === 'undefined' ? true : async;\n      this.isPolymorphic = typeof polymorphic === 'undefined' ? false : polymorphic;\n      this.relationshipMeta = relationshipMeta; //This probably breaks for polymorphic relationship in complex scenarios, due to\n      //multiple possible modelNames\n\n      this.inverseKeyForImplicit = this._tempModelName + this.key;\n      this.meta = null;\n      this.__inverseMeta = undefined;\n      /*\n       This flag forces fetch. `true` for a single request once `reload()`\n         has been called `false` at all other times.\n      */\n      // this.shouldForceReload = false;\n\n      /*\n         This flag indicates whether we should\n          re-fetch the relationship the next time\n          it is accessed.\n           The difference between this flag and `shouldForceReload`\n          is in how we treat the presence of partially missing data:\n            - for a forced reload, we will reload the link or EVERY record\n            - for a stale reload, we will reload the link (if present) else only MISSING records\n           Ideally these flags could be merged, but because we don't give the\n          request layer the option of deciding how to resolve the data being queried\n          we are forced to differentiate for now.\n           It is also possible for a relationship to remain stale after a forced reload; however,\n          in this case `hasFailedLoadAttempt` ought to be `true`.\n         false when\n          => recordData.isNew() on initial setup\n          => a previously triggered request has resolved\n          => we get relationship data via push\n         true when\n          => !recordData.isNew() on initial setup\n          => an inverse has been unloaded\n          => we get a new link for the relationship\n         TODO @runspired unskip the acceptance tests and fix these flags\n       */\n\n      this.relationshipIsStale = false;\n      /*\n       This flag indicates whether we should\n        **partially** re-fetch the relationship the\n        next time it is accessed.\n       false when\n        => initial setup\n        => a previously triggered request has resolved\n       true when\n        => an inverse has been unloaded\n      */\n\n      this.hasDematerializedInverse = false;\n      /*\n        This flag indicates whether we should consider the content\n         of this relationship \"known\".\n         If we have no relationship knowledge, and the relationship\n         is `async`, we will attempt to fetch the relationship on\n         access if it is also stale.\n        Snapshot uses this to tell the difference between unknown\n        (`undefined`) or empty (`null`). The reason for this is that\n        we wouldn't want to serialize  unknown relationships as `null`\n        as that might overwrite remote state.\n         All relationships for a newly created (`store.createRecord()`) are\n         considered known (`hasAnyRelationshipData === true`).\n         true when\n          => we receive a push with either new data or explicit empty (`[]` or `null`)\n          => the relationship is a belongsTo and we have received data from\n               the other side.\n         false when\n          => we have received no signal about what data belongs in this relationship\n          => the relationship is a hasMany and we have only received data from\n              the other side.\n       */\n\n      this.hasAnyRelationshipData = false;\n      /*\n        Flag that indicates whether an empty relationship is explicitly empty\n          (signaled by push giving us an empty array or null relationship)\n          e.g. an API response has told us that this relationship is empty.\n         Thus far, it does not appear that we actually need this flag; however,\n          @runspired has found it invaluable when debugging relationship tests\n          to determine whether (and why if so) we are in an incorrect state.\n         true when\n          => we receive a push with explicit empty (`[]` or `null`)\n          => we have received no signal about what data belongs in this relationship\n          => on initial create (as no signal is known yet)\n         false at all other times\n       */\n\n      this.relationshipIsEmpty = true;\n      /*\n        Flag def here for reference, defined as getter in has-many.js / belongs-to.js\n         true when\n          => hasAnyRelationshipData is true\n          AND\n          => members (NOT canonicalMembers) @each !isEmpty\n         TODO, consider changing the conditional here from !isEmpty to !hiddenFromRecordArrays\n      */\n      // TODO do we want this anymore? Seems somewhat useful\n      //   especially if we rename to `hasUpdatedLink`\n      //   which would tell us slightly more about why the\n      //   relationship is stale\n      // this.updatedLink = false;\n    }\n\n    get isNew() {\n      return this.recordData.isNew();\n    }\n\n    _inverseIsAsync() {\n      return !!this.inverseIsAsync;\n    }\n\n    _inverseIsSync() {\n      return !!(this.inverseKey && !this.inverseIsAsync);\n    }\n\n    _hasSupportForImplicitRelationships(recordData) {\n      return recordData._implicitRelationships !== undefined && recordData._implicitRelationships !== null;\n    }\n\n    _hasSupportForRelationships(recordData) {\n      return recordData._relationships !== undefined && recordData._relationships !== null;\n    }\n\n    get _inverseMeta() {\n      if (this.__inverseMeta === undefined) {\n        var inverseMeta = null;\n\n        if (this.inverseKey) {\n          // We know we have a full inverse relationship\n          var type = this.relationshipMeta.type;\n          var inverseModelClass = this.store.modelFor(type);\n          var inverseRelationships = Ember.get(inverseModelClass, 'relationshipsByName');\n          inverseMeta = inverseRelationships.get(this.inverseKey);\n        }\n\n        this.__inverseMeta = inverseMeta;\n      }\n\n      return this.__inverseMeta;\n    }\n\n    recordDataDidDematerialize() {\n      var inverseKey = this.inverseKey;\n\n      if (!inverseKey) {\n        return;\n      } // we actually want a union of members and canonicalMembers\n      // they should be disjoint but currently are not due to a bug\n\n\n      this.forAllMembers(inverseRecordData => {\n        if (!this._hasSupportForRelationships(inverseRecordData)) {\n          return;\n        }\n\n        var relationship = relationshipStateFor(inverseRecordData, inverseKey);\n\n        var belongsToRelationship = inverseRecordData.getBelongsTo(inverseKey)._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\n\n        if (!belongsToRelationship || !belongsToRelationship.inverseRecordData || this.recordData === belongsToRelationship.inverseRecordData) {\n          relationship.inverseDidDematerialize(this.recordData);\n        }\n      });\n    }\n\n    forAllMembers(callback) {\n      var seen = Object.create(null);\n\n      for (var i = 0; i < this.members.list.length; i++) {\n        var inverseInternalModel = this.members.list[i];\n        var id = Ember.guidFor(inverseInternalModel);\n\n        if (!seen[id]) {\n          seen[id] = true;\n          callback(inverseInternalModel);\n        }\n      }\n\n      for (var _i = 0; _i < this.canonicalMembers.list.length; _i++) {\n        var _inverseInternalModel = this.canonicalMembers.list[_i];\n\n        var _id = Ember.guidFor(_inverseInternalModel);\n\n        if (!seen[_id]) {\n          seen[_id] = true;\n          callback(_inverseInternalModel);\n        }\n      }\n    }\n\n    inverseDidDematerialize(inverseRecordData) {\n      if (!this.isAsync || inverseRecordData && inverseRecordData.isNew()) {\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.removeRecordDataFromOwn(inverseRecordData);\n        this.removeCanonicalRecordDataFromOwn(inverseRecordData);\n        this.setRelationshipIsEmpty(true);\n      } else {\n        this.setHasDematerializedInverse(true);\n      }\n    }\n\n    updateMeta(meta) {\n      this.meta = meta;\n    }\n\n    clear() {\n      var members = this.members.list;\n\n      while (members.length > 0) {\n        var member = members[0];\n        this.removeRecordData(member);\n      }\n\n      var canonicalMembers = this.canonicalMembers.list;\n\n      while (canonicalMembers.length > 0) {\n        var _member = canonicalMembers[0];\n        this.removeCanonicalRecordData(_member);\n      }\n    }\n\n    removeAllRecordDatasFromOwn() {\n      this.setRelationshipIsStale(true);\n      this.members.clear();\n    }\n\n    removeAllCanonicalRecordDatasFromOwn() {\n      this.canonicalMembers.clear();\n      this.flushCanonicalLater();\n    }\n\n    removeRecordDatas(recordDatas) {\n      recordDatas.forEach(recordData => this.removeRecordData(recordData));\n    }\n\n    addRecordDatas(recordDatas, idx) {\n      recordDatas.forEach(recordData => {\n        this.addRecordData(recordData, idx);\n\n        if (idx !== undefined) {\n          idx++;\n        }\n      });\n    }\n\n    addCanonicalRecordDatas(recordDatas, idx) {\n      for (var i = 0; i < recordDatas.length; i++) {\n        if (idx !== undefined) {\n          this.addCanonicalRecordData(recordDatas[i], i + idx);\n        } else {\n          this.addCanonicalRecordData(recordDatas[i]);\n        }\n      }\n    }\n\n    addCanonicalRecordData(recordData, idx) {\n      if (!this.canonicalMembers.has(recordData)) {\n        this.canonicalMembers.add(recordData);\n        this.setupInverseRelationship(recordData);\n      }\n\n      this.flushCanonicalLater();\n      this.setHasAnyRelationshipData(true);\n    }\n\n    setupInverseRelationship(recordData) {\n      if (this.inverseKey) {\n        if (!this._hasSupportForRelationships(recordData)) {\n          return;\n        }\n\n        var relationship = relationshipStateFor(recordData, this.inverseKey); // if we have only just initialized the inverse relationship, then it\n        // already has this.recordData in its canonicalMembers, so skip the\n        // unnecessary work.  The exception to this is polymorphic\n        // relationships whose members are determined by their inverse, as those\n        // relationships cannot efficiently find their inverse payloads.\n\n        relationship.addCanonicalRecordData(this.recordData);\n      } else {\n        if (!this._hasSupportForImplicitRelationships(recordData)) {\n          return;\n        }\n\n        var relationships = recordData._implicitRelationships;\n        var _relationship = relationships[this.inverseKeyForImplicit];\n\n        if (!_relationship) {\n          _relationship = relationships[this.inverseKeyForImplicit] = new Relationship(this.store, this.key, {\n            options: {\n              async: this.isAsync\n            }\n          }, recordData);\n        }\n\n        _relationship.addCanonicalRecordData(this.recordData);\n      }\n    }\n\n    removeCanonicalRecordDatas(recordDatas, idx) {\n      for (var i = 0; i < recordDatas.length; i++) {\n        if (idx !== undefined) {\n          this.removeCanonicalRecordData(recordDatas[i], i + idx);\n        } else {\n          this.removeCanonicalRecordData(recordDatas[i]);\n        }\n      }\n    }\n\n    removeCanonicalRecordData(recordData, idx) {\n      if (this.canonicalMembers.has(recordData)) {\n        this.removeCanonicalRecordDataFromOwn(recordData, idx);\n\n        if (this.inverseKey) {\n          this.removeCanonicalRecordDataFromInverse(recordData);\n        } else {\n          if (this._hasSupportForImplicitRelationships(recordData) && recordData._implicitRelationships[this.inverseKeyForImplicit]) {\n            recordData._implicitRelationships[this.inverseKeyForImplicit].removeCanonicalRecordData(this.recordData);\n          }\n        }\n      }\n\n      this.flushCanonicalLater();\n    }\n\n    addRecordData(recordData, idx) {\n      if (!this.members.has(recordData)) {\n        this.members.addWithIndex(recordData, idx);\n        this.notifyRecordRelationshipAdded(recordData, idx);\n\n        if (this._hasSupportForRelationships(recordData) && this.inverseKey) {\n          relationshipStateFor(recordData, this.inverseKey).addRecordData(this.recordData);\n        } else {\n          if (this._hasSupportForImplicitRelationships(recordData)) {\n            if (!recordData._implicitRelationships[this.inverseKeyForImplicit]) {\n              recordData._implicitRelationships[this.inverseKeyForImplicit] = new Relationship(this.store, this.key, {\n                options: {\n                  async: this.isAsync\n                }\n              }, recordData, this.isAsync);\n            }\n\n            recordData._implicitRelationships[this.inverseKeyForImplicit].addRecordData(this.recordData);\n          }\n        }\n      }\n\n      this.setHasAnyRelationshipData(true);\n    }\n\n    removeRecordData(recordData) {\n      if (this.members.has(recordData)) {\n        this.removeRecordDataFromOwn(recordData);\n\n        if (this.inverseKey) {\n          this.removeRecordDataFromInverse(recordData);\n        } else {\n          if (this._hasSupportForImplicitRelationships(recordData) && recordData._implicitRelationships[this.inverseKeyForImplicit]) {\n            recordData._implicitRelationships[this.inverseKeyForImplicit].removeRecordData(this.recordData);\n          }\n        }\n      }\n    }\n\n    removeRecordDataFromInverse(recordData) {\n      if (!this._hasSupportForRelationships(recordData)) {\n        return;\n      }\n\n      if (this.inverseKey) {\n        var inverseRelationship = relationshipStateFor(recordData, this.inverseKey); //Need to check for existence, as the record might unloading at the moment\n\n        if (inverseRelationship) {\n          inverseRelationship.removeRecordDataFromOwn(this.recordData);\n        }\n      }\n    }\n\n    removeRecordDataFromOwn(recordData, idx) {\n      this.members.delete(recordData);\n    }\n\n    removeCanonicalRecordDataFromInverse(recordData) {\n      if (!this._hasSupportForRelationships(recordData)) {\n        return;\n      }\n\n      if (this.inverseKey) {\n        var inverseRelationship = relationshipStateFor(recordData, this.inverseKey); //Need to check for existence, as the record might unloading at the moment\n\n        if (inverseRelationship) {\n          inverseRelationship.removeCanonicalRecordDataFromOwn(this.recordData);\n        }\n      }\n    }\n\n    removeCanonicalRecordDataFromOwn(recordData, idx) {\n      this.canonicalMembers.deleteWithIndex(recordData, idx);\n      this.flushCanonicalLater();\n    }\n    /*\n      Call this method once a record deletion has been persisted\n      to purge it from BOTH current and canonical state of all\n      relationships.\n       @method removeCompletelyFromInverse\n      @private\n     */\n\n\n    removeCompletelyFromInverse() {\n      if (!this.inverseKey && !this.inverseKeyForImplicit) {\n        return;\n      } // we actually want a union of members and canonicalMembers\n      // they should be disjoint but currently are not due to a bug\n\n\n      var seen = Object.create(null);\n      var recordData = this.recordData;\n      var unload;\n\n      if (this.inverseKey) {\n        unload = inverseRecordData => {\n          var id = Ember.guidFor(inverseRecordData);\n\n          if (this._hasSupportForRelationships(inverseRecordData) && seen[id] === undefined) {\n            if (this.inverseKey) {\n              var relationship = relationshipStateFor(inverseRecordData, this.inverseKey);\n              relationship.removeCompletelyFromOwn(recordData);\n            }\n\n            seen[id] = true;\n          }\n        };\n      } else {\n        unload = inverseRecordData => {\n          var id = Ember.guidFor(inverseRecordData);\n\n          if (this._hasSupportForImplicitRelationships(inverseRecordData) && seen[id] === undefined) {\n            var relationship = implicitRelationshipStateFor(inverseRecordData, this.inverseKeyForImplicit);\n            relationship.removeCompletelyFromOwn(recordData);\n            seen[id] = true;\n          }\n        };\n      }\n\n      this.members.forEach(unload);\n      this.canonicalMembers.forEach(unload);\n\n      if (!this.isAsync) {\n        this.clear();\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\n\n    removeCompletelyFromOwn(recordData) {\n      this.canonicalMembers.delete(recordData);\n      this.members.delete(recordData);\n    }\n\n    flushCanonical() {\n      var list = this.members.list;\n      this.willSync = false; //a hack for not removing new RecordDatas\n      //TODO remove once we have proper diffing\n\n      var newRecordDatas = [];\n\n      for (var i = 0; i < list.length; i++) {\n        // TODO Igor deal with this\n        if (list[i].isNew()) {\n          newRecordDatas.push(list[i]);\n        }\n      } //TODO(Igor) make this less abysmally slow\n\n\n      this.members = this.canonicalMembers.copy();\n\n      for (var _i2 = 0; _i2 < newRecordDatas.length; _i2++) {\n        this.members.add(newRecordDatas[_i2]);\n      }\n    }\n\n    flushCanonicalLater() {\n      if (this.willSync) {\n        return;\n      }\n\n      this.willSync = true; // Reaching back into the store to use ED's runloop\n\n      this.store._updateRelationshipState(this);\n    }\n\n    updateLinks(links) {\n      this.links = links;\n    }\n\n    updateRecordDatasFromAdapter(recordDatas) {\n      this.setHasAnyRelationshipData(true); //TODO(Igor) move this to a proper place\n      //TODO Once we have adapter support, we need to handle updated and canonical changes\n\n      this.computeChanges(recordDatas);\n    }\n\n    computeChanges(recordDatas) {}\n\n    notifyRecordRelationshipAdded(recordData, idxs) {}\n\n    setHasAnyRelationshipData(value) {\n      this.hasAnyRelationshipData = value;\n    }\n\n    setHasDematerializedInverse(value) {\n      this.hasDematerializedInverse = value;\n    }\n\n    setRelationshipIsStale(value) {\n      this.relationshipIsStale = value;\n    }\n\n    setRelationshipIsEmpty(value) {\n      this.relationshipIsEmpty = value;\n    }\n\n    setShouldForceReload(value) {\n      this.shouldForceReload = value;\n    }\n\n    setHasFailedLoadAttempt(value) {\n      this.hasFailedLoadAttempt = value;\n    }\n    /*\n     `push` for a relationship allows the store to push a JSON API Relationship\n     Object onto the relationship. The relationship will then extract and set the\n     meta, data and links of that relationship.\n      `push` use `updateMeta`, `updateData` and `updateLink` to update the state\n     of the relationship.\n     */\n\n\n    push(payload, initial) {\n      var hasRelationshipDataProperty = false;\n      var hasLink = false;\n\n      if (payload.meta) {\n        this.updateMeta(payload.meta);\n      }\n\n      if (payload.data !== undefined) {\n        hasRelationshipDataProperty = true;\n        this.updateData(payload.data, initial);\n      } else if (this.isAsync === false && !this.hasAnyRelationshipData) {\n        hasRelationshipDataProperty = true;\n        var data = this.kind === 'hasMany' ? [] : null;\n        this.updateData(data, initial);\n      }\n\n      if (payload.links) {\n        var originalLinks = this.links;\n        this.updateLinks(payload.links);\n\n        if (payload.links.related) {\n          var relatedLink = _normalizeLink(payload.links.related);\n\n          var currentLink = originalLinks && originalLinks.related ? _normalizeLink(originalLinks.related) : null;\n          var currentLinkHref = currentLink ? currentLink.href : null;\n\n          if (relatedLink && relatedLink.href && relatedLink.href !== currentLinkHref) {\n            ( Ember.warn(`You pushed a record of type '${this.recordData.modelName}' with a relationship '${this.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.`, this.isAsync || this.hasAnyRelationshipData, {\n              id: 'ds.store.push-link-for-sync-relationship'\n            }));\n            ( !(typeof relatedLink.href === 'string' || relatedLink.href === null) && Ember.assert(`You have pushed a record of type '${this.recordData.modelName}' with '${this.key}' as a link, but the value of that link is not a string.`, typeof relatedLink.href === 'string' || relatedLink.href === null));\n            hasLink = true;\n          }\n        }\n      }\n      /*\n       Data being pushed into the relationship might contain only data or links,\n       or a combination of both.\n        IF contains only data\n       IF contains both links and data\n        relationshipIsEmpty -> true if is empty array (has-many) or is null (belongs-to)\n        hasAnyRelationshipData -> true\n        hasDematerializedInverse -> false\n        relationshipIsStale -> false\n        allInverseRecordsAreLoaded -> run-check-to-determine\n        IF contains only links\n        relationshipIsStale -> true\n       */\n\n\n      this.setHasFailedLoadAttempt(false);\n\n      if (hasRelationshipDataProperty) {\n        var relationshipIsEmpty = payload.data === null || Array.isArray(payload.data) && payload.data.length === 0;\n        this.setHasAnyRelationshipData(true);\n        this.setRelationshipIsStale(false);\n        this.setHasDematerializedInverse(false);\n        this.setRelationshipIsEmpty(relationshipIsEmpty);\n      } else if (hasLink) {\n        this.setRelationshipIsStale(true);\n\n        if (!initial) {\n          var recordData = this.recordData;\n          var storeWrapper = this.recordData.storeWrapper;\n\n          {\n            storeWrapper.notifyPropertyChange(recordData.modelName, recordData.id, recordData.clientId, // We know we are not an implicit relationship here\n            this.key);\n          }\n        }\n      }\n    }\n\n    localStateIsEmpty() {}\n\n    updateData(payload, initial) {}\n\n    destroy() {}\n\n  }\n\n  class BelongsToRelationship extends Relationship {\n    constructor(store, inverseKey, relationshipMeta, recordData, inverseIsAsync) {\n      super(store, inverseKey, relationshipMeta, recordData, inverseIsAsync);\n      this.inverseRecordData = void 0;\n      this.canonicalState = void 0;\n      this.key = void 0;\n      this.key = relationshipMeta.key;\n      this.inverseRecordData = null;\n      this.canonicalState = null;\n      this.key = relationshipMeta.key;\n    }\n\n    setRecordData(recordData) {\n      if (recordData) {\n        this.addRecordData(recordData);\n      } else if (this.inverseRecordData) {\n        this.removeRecordData(this.inverseRecordData);\n      }\n\n      this.setHasAnyRelationshipData(true);\n      this.setRelationshipIsStale(false);\n      this.setRelationshipIsEmpty(false);\n    }\n\n    setCanonicalRecordData(recordData) {\n      if (recordData) {\n        this.addCanonicalRecordData(recordData);\n      } else if (this.canonicalState) {\n        this.removeCanonicalRecordData(this.canonicalState);\n      }\n\n      this.flushCanonicalLater();\n    }\n\n    setInitialCanonicalRecordData(recordData) {\n      if (!recordData) {\n        return;\n      } // When we initialize a belongsTo relationship, we want to avoid work like\n      // notifying our internalModel that we've \"changed\" and excessive thrash on\n      // setting up inverse relationships\n\n\n      this.canonicalMembers.add(recordData);\n      this.members.add(recordData);\n      this.inverseRecordData = this.canonicalState = recordData;\n      this.setupInverseRelationship(recordData);\n    }\n\n    addCanonicalRecordData(recordData) {\n      if (this.canonicalMembers.has(recordData)) {\n        return;\n      }\n\n      if (this.canonicalState) {\n        this.removeCanonicalRecordData(this.canonicalState);\n      }\n\n      this.canonicalState = recordData;\n      super.addCanonicalRecordData(recordData);\n      this.setHasAnyRelationshipData(true);\n      this.setRelationshipIsEmpty(false);\n    }\n\n    inverseDidDematerialize() {\n      super.inverseDidDematerialize(this.inverseRecordData);\n      this.notifyBelongsToChange();\n    }\n\n    removeCompletelyFromOwn(recordData) {\n      super.removeCompletelyFromOwn(recordData);\n\n      if (this.canonicalState === recordData) {\n        this.canonicalState = null;\n      }\n\n      if (this.inverseRecordData === recordData) {\n        this.inverseRecordData = null;\n        this.notifyBelongsToChange();\n      }\n    }\n\n    removeCompletelyFromInverse() {\n      super.removeCompletelyFromInverse();\n      this.inverseRecordData = null;\n    }\n\n    flushCanonical() {\n      //temporary fix to not remove newly created records if server returned null.\n      //TODO remove once we have proper diffing\n      if (this.inverseRecordData && this.inverseRecordData.isNew() && !this.canonicalState) {\n        this.willSync = false;\n        return;\n      }\n\n      if (this.inverseRecordData !== this.canonicalState) {\n        this.inverseRecordData = this.canonicalState;\n        this.notifyBelongsToChange();\n      }\n\n      super.flushCanonical();\n    }\n\n    addRecordData(recordData) {\n      if (this.members.has(recordData)) {\n        return;\n      } // TODO Igor cleanup\n\n\n      Debug.assertPolymorphicType(this.recordData, this.relationshipMeta, recordData, this.store);\n\n      if (this.inverseRecordData) {\n        this.removeRecordData(this.inverseRecordData);\n      }\n\n      this.inverseRecordData = recordData;\n      super.addRecordData(recordData);\n      this.notifyBelongsToChange();\n    }\n\n    removeRecordDataFromOwn(recordData) {\n      if (!this.members.has(recordData)) {\n        return;\n      }\n\n      this.inverseRecordData = null;\n      super.removeRecordDataFromOwn(recordData);\n      this.notifyBelongsToChange();\n    }\n\n    removeAllRecordDatasFromOwn() {\n      super.removeAllRecordDatasFromOwn();\n      this.inverseRecordData = null;\n      this.notifyBelongsToChange();\n    }\n\n    notifyBelongsToChange() {\n      var recordData = this.recordData;\n      var storeWrapper = this.recordData.storeWrapper;\n      storeWrapper.notifyBelongsToChange(recordData.modelName, recordData.id, recordData.clientId, this.key);\n    }\n\n    removeCanonicalRecordDataFromOwn(recordData, idx) {\n      if (!this.canonicalMembers.has(recordData)) {\n        return;\n      }\n\n      this.canonicalState = null;\n      this.setHasAnyRelationshipData(true);\n      this.setRelationshipIsEmpty(true);\n      super.removeCanonicalRecordDataFromOwn(recordData, idx);\n    }\n\n    removeAllCanonicalRecordDatasFromOwn() {\n      super.removeAllCanonicalRecordDatasFromOwn();\n      this.canonicalState = null;\n    }\n\n    getData() {\n      var data;\n      var payload = {};\n\n      if (this.inverseRecordData) {\n        data = this.inverseRecordData.getResourceIdentifier();\n      }\n\n      if (this.inverseRecordData === null && this.hasAnyRelationshipData) {\n        data = null;\n      }\n\n      if (this.links) {\n        payload.links = this.links;\n      }\n\n      if (data !== undefined) {\n        payload.data = data;\n      }\n\n      if (this.meta) {\n        payload.meta = this.meta;\n      }\n\n      payload._relationship = this;\n      return payload;\n    }\n\n    updateData(data, initial) {\n      var recordData;\n\n      if (Ember.isNone(data)) {\n        recordData = null;\n      }\n\n      ( !(data === null || data.id !== undefined && data.type !== undefined) && Ember.assert(`Ember Data expected the data for the ${this.key} relationship on a ${this.recordData.toString()} to be in a JSON API format and include an \\`id\\` and \\`type\\` property but it found ${Ember.inspect(data)}. Please check your serializer and make sure it is serializing the relationship payload into a JSON API format.`, data === null || data.id !== undefined && data.type !== undefined));\n\n      if (recordData !== null) {\n        recordData = this.recordData.storeWrapper.recordDataFor(data.type, data.id);\n      }\n\n      if (initial) {\n        this.setInitialCanonicalRecordData(recordData);\n      } else {\n        this.setCanonicalRecordData(recordData);\n      }\n    }\n\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  class ManyRelationship extends Relationship {\n    constructor(store, inverseKey, relationshipMeta, recordData, inverseIsAsync) {\n      super(store, inverseKey, relationshipMeta, recordData, inverseIsAsync);\n      this.canonicalState = void 0;\n      this.currentState = void 0;\n      this._willUpdateManyArray = void 0;\n      this._pendingManyArrayUpdates = void 0;\n      this.key = void 0;\n      this.canonicalState = [];\n      this.currentState = [];\n      this._willUpdateManyArray = false;\n      this._pendingManyArrayUpdates = null;\n      this.key = relationshipMeta.key;\n    }\n\n    addCanonicalRecordData(recordData, idx) {\n      if (this.canonicalMembers.has(recordData)) {\n        return;\n      }\n\n      if (idx !== undefined) {\n        this.canonicalState.splice(idx, 0, recordData);\n      } else {\n        this.canonicalState.push(recordData);\n      }\n\n      super.addCanonicalRecordData(recordData, idx);\n    }\n\n    inverseDidDematerialize(inverseRecordData) {\n      super.inverseDidDematerialize(inverseRecordData);\n\n      if (this.isAsync) {\n        this.notifyManyArrayIsStale();\n      }\n    }\n\n    addRecordData(recordData, idx) {\n      if (this.members.has(recordData)) {\n        return;\n      } // TODO Type this\n\n\n      Debug.assertPolymorphicType(this.recordData, this.relationshipMeta, recordData, this.store);\n      super.addRecordData(recordData, idx); // make lazy later\n\n      if (idx === undefined) {\n        idx = this.currentState.length;\n      }\n\n      this.currentState.splice(idx, 0, recordData); // TODO Igor consider making direct to remove the indirection\n      // We are not lazily accessing the manyArray here because the change is coming from app side\n      // this.manyArray.flushCanonical(this.currentState);\n\n      this.notifyHasManyChange();\n    }\n\n    removeCanonicalRecordDataFromOwn(recordData, idx) {\n      var i = idx;\n\n      if (!this.canonicalMembers.has(recordData)) {\n        return;\n      }\n\n      if (i === undefined) {\n        i = this.canonicalState.indexOf(recordData);\n      }\n\n      if (i > -1) {\n        this.canonicalState.splice(i, 1);\n      }\n\n      super.removeCanonicalRecordDataFromOwn(recordData, idx); //TODO(Igor) Figure out what to do here\n    }\n\n    removeAllCanonicalRecordDatasFromOwn() {\n      super.removeAllCanonicalRecordDatasFromOwn();\n      this.canonicalMembers.clear();\n      this.canonicalState.splice(0, this.canonicalState.length);\n      super.removeAllCanonicalRecordDatasFromOwn();\n    } //TODO(Igor) DO WE NEED THIS?\n\n\n    removeCompletelyFromOwn(recordData) {\n      super.removeCompletelyFromOwn(recordData); // TODO SkEPTICAL\n\n      var canonicalIndex = this.canonicalState.indexOf(recordData);\n\n      if (canonicalIndex !== -1) {\n        this.canonicalState.splice(canonicalIndex, 1);\n      }\n\n      this.removeRecordDataFromOwn(recordData);\n    }\n\n    flushCanonical() {\n      var toSet = this.canonicalState; //a hack for not removing new records\n      //TODO remove once we have proper diffing\n\n      var newRecordDatas = this.currentState.filter( // only add new internalModels which are not yet in the canonical state of this\n      // relationship (a new internalModel can be in the canonical state if it has\n      // been 'acknowleged' to be in the relationship via a store.push)\n      //TODO Igor deal with this\n      recordData => recordData.isNew() && toSet.indexOf(recordData) === -1);\n      toSet = toSet.concat(newRecordDatas);\n      /*\n      if (this._manyArray) {\n        this._manyArray.flushCanonical(toSet);\n      }\n      */\n\n      this.currentState = toSet;\n      super.flushCanonical(); // Once we clean up all the flushing, we will be left with at least the notifying part\n\n      this.notifyHasManyChange();\n    } //TODO(Igor) idx not used currently, fix\n\n\n    removeRecordDataFromOwn(recordData, idx) {\n      super.removeRecordDataFromOwn(recordData, idx);\n      var index = idx || this.currentState.indexOf(recordData); //TODO IGOR DAVID INVESTIGATE\n\n      if (index === -1) {\n        return;\n      }\n\n      this.currentState.splice(index, 1); // TODO Igor consider making direct to remove the indirection\n      // We are not lazily accessing the manyArray here because the change is coming from app side\n\n      this.notifyHasManyChange(); // this.manyArray.flushCanonical(this.currentState);\n    }\n\n    notifyRecordRelationshipAdded() {\n      this.notifyHasManyChange();\n    }\n\n    computeChanges(recordDatas = []) {\n      var members = this.canonicalMembers.toArray();\n\n      for (var i = members.length - 1; i >= 0; i--) {\n        this.removeCanonicalRecordData(members[i], i);\n      }\n\n      for (var _i = 0, l = recordDatas.length; _i < l; _i++) {\n        this.addCanonicalRecordData(recordDatas[_i], _i);\n      }\n    }\n\n    setInitialRecordDatas(recordDatas) {\n      if (Array.isArray(recordDatas) === false || !recordDatas || recordDatas.length === 0) {\n        return;\n      }\n\n      for (var i = 0; i < recordDatas.length; i++) {\n        var recordData = recordDatas[i];\n\n        if (this.canonicalMembers.has(recordData)) {\n          continue;\n        }\n\n        this.canonicalMembers.add(recordData);\n        this.members.add(recordData);\n        this.setupInverseRelationship(recordData);\n      }\n\n      this.canonicalState = this.canonicalMembers.toArray();\n    }\n    /*\n      This is essentially a \"sync\" version of\n        notifyHasManyChange. We should work to unify\n        these worlds\n         - @runspired\n    */\n\n\n    notifyManyArrayIsStale() {\n      var recordData = this.recordData;\n      var storeWrapper = recordData.storeWrapper;\n\n      {\n        storeWrapper.notifyPropertyChange(recordData.modelName, recordData.id, recordData.clientId, this.key);\n      }\n    }\n\n    notifyHasManyChange() {\n      var recordData = this.recordData;\n      var storeWrapper = recordData.storeWrapper;\n      storeWrapper.notifyHasManyChange(recordData.modelName, recordData.id, recordData.clientId, this.key);\n    }\n\n    getData() {\n      var payload = {};\n\n      if (this.hasAnyRelationshipData) {\n        payload.data = this.currentState.map(recordData => recordData.getResourceIdentifier());\n      }\n\n      if (this.links) {\n        payload.links = this.links;\n      }\n\n      if (this.meta) {\n        payload.meta = this.meta;\n      } // TODO @runspired: the @igor refactor is too limiting for relationship state\n      //   we should reconsider where we fetch from.\n\n\n      payload._relationship = this;\n      return payload;\n    }\n\n    updateData(data, initial) {\n      var recordDatas;\n\n      if (Ember.isNone(data)) {\n        recordDatas = undefined;\n      } else {\n        recordDatas = new Array(data.length);\n\n        for (var i = 0; i < data.length; i++) {\n          recordDatas[i] = this.recordData.storeWrapper.recordDataFor(data[i].type, data[i].id);\n        }\n      }\n\n      if (initial) {\n        this.setInitialRecordDatas(recordDatas);\n      } else {\n        this.updateRecordDatasFromAdapter(recordDatas);\n      }\n    }\n\n  }\n\n  function createRelationshipFor(relationshipMeta, store, recordData, key) {\n    var inverseKey = recordData.storeWrapper.inverseForRelationship(recordData.modelName, key);\n    var inverseIsAsync = recordData.storeWrapper.inverseIsAsyncForRelationship(recordData.modelName, key);\n\n    if (relationshipMeta.kind === 'hasMany') {\n      return new ManyRelationship(store, inverseKey, relationshipMeta, recordData, inverseIsAsync);\n    } else {\n      return new BelongsToRelationship(store, inverseKey, relationshipMeta, recordData, inverseIsAsync);\n    }\n  }\n\n  class Relationships {\n    constructor(recordData) {\n      this.recordData = recordData;\n      this._store = void 0;\n      this._storeWrapper = void 0;\n      this.initializedRelationships = void 0;\n      this.initializedRelationships = Object.create(null);\n      this._storeWrapper = Private.upgradeForInternal(recordData.storeWrapper);\n      this._store = this._storeWrapper._store;\n    }\n\n    has(key) {\n      return !!this.initializedRelationships[key];\n    }\n\n    forEach(cb) {\n      var rels = this.initializedRelationships;\n      Object.keys(rels).forEach(name => {\n        cb(name, rels[name]);\n      });\n    }\n\n    get(key) {\n      var relationships = this.initializedRelationships;\n      var relationship = relationships[key];\n\n      if (!relationship) {\n        var _recordData = this.recordData;\n        var rel = this.recordData.storeWrapper.relationshipsDefinitionFor(this.recordData.modelName)[key];\n\n        if (rel) {\n          relationship = relationships[key] = createRelationshipFor(rel, this._store, _recordData, key);\n        }\n      }\n\n      return relationship;\n    }\n\n  }\n\n  /**\n    @module @ember-data/record-data\n  */\n  var nextBfsId = 1;\n  class RecordDataDefault {\n    constructor(identifier, storeWrapper) {\n      this.identifier = identifier;\n      this.storeWrapper = storeWrapper;\n      this._errors = void 0;\n      this.__relationships = void 0;\n      this.__implicitRelationships = void 0;\n      this.modelName = void 0;\n      this.clientId = void 0;\n      this.id = void 0;\n      this.isDestroyed = void 0;\n      this._isNew = void 0;\n      this._bfsId = void 0;\n      this.__attributes = void 0;\n      this.__inFlightAttributes = void 0;\n      this.__data = void 0;\n      this._scheduledDestroy = void 0;\n      this._isDeleted = void 0;\n      this._isDeletionCommited = void 0;\n\n      this._directlyRelatedRecordDatasIterable = () => {\n        var initializedRelationships = this._relationships.initializedRelationships;\n        var relationships = Object.keys(initializedRelationships).map(key => initializedRelationships[key]);\n        var i = 0;\n        var j = 0;\n        var k = 0;\n\n        var findNext = () => {\n          while (i < relationships.length) {\n            while (j < 2) {\n              var members = j === 0 ? relationships[i].members.list : relationships[i].canonicalMembers.list;\n\n              while (k < members.length) {\n                return members[k++];\n              }\n\n              k = 0;\n              j++;\n            }\n\n            j = 0;\n            i++;\n          }\n\n          return undefined;\n        };\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      };\n\n      this.modelName = identifier.type;\n      this.clientId = identifier.lid;\n      this.id = identifier.id;\n      this.__relationships = null;\n      this.__implicitRelationships = null;\n      this.isDestroyed = false;\n      this._isNew = false;\n      this._isDeleted = false; // Used during the mark phase of unloading to avoid checking the same internal\n      // model twice in the same scan\n\n      this._bfsId = 0;\n      this.reset();\n    } // PUBLIC API\n\n\n    getResourceIdentifier() {\n      return this.identifier;\n    }\n\n    pushData(data, calculateChange) {\n      var changedKeys;\n\n      if (this._isNew) {\n        this._isNew = false;\n        this.notifyStateChange();\n      }\n\n      if (calculateChange) {\n        changedKeys = this._changedKeys(data.attributes);\n      }\n\n      Ember.assign(this._data, data.attributes);\n\n      if (this.__attributes) {\n        // only do if we have attribute changes\n        this._updateChangedAttributes();\n      }\n\n      if (data.relationships) {\n        this._setupRelationships(data);\n      }\n\n      if (data.id) {\n        this.id = coerceId(data.id);\n      }\n\n      return changedKeys;\n    }\n\n    willCommit() {\n      this._inFlightAttributes = this._attributes;\n      this._attributes = null;\n    }\n\n    hasChangedAttributes() {\n      return this.__attributes !== null && Object.keys(this.__attributes).length > 0;\n    }\n\n    _clearErrors() {\n    }\n\n    getErrors() {\n      ( Ember.assert('Can not call getErrors unless the RECORD_DATA_ERRORS feature flag is on', !!false));\n\n      {\n        return [];\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\n\n    isEmpty() {\n      return this.__attributes === null && this.__inFlightAttributes === null && this.__data === null;\n    }\n\n    deleteRecord() {\n      this._isDeleted = true;\n      this.notifyStateChange();\n    }\n\n    isDeleted() {\n      return this._isDeleted;\n    }\n\n    setIsDeleted(isDeleted) {\n      this._isDeleted = isDeleted;\n\n      if (this._isNew) {\n        this._deletionConfirmed();\n      }\n\n      this.notifyStateChange();\n    }\n\n    isDeletionCommitted() {\n      return this._isDeletionCommited;\n    }\n\n    reset() {\n      this.__attributes = null;\n      this.__inFlightAttributes = null;\n      this.__data = null;\n      this._errors = undefined;\n    }\n\n    _setupRelationships(data) {\n      var relationships = this.storeWrapper.relationshipsDefinitionFor(this.modelName);\n      var keys = Object.keys(relationships);\n\n      for (var i = 0; i < keys.length; i++) {\n        var relationshipName = keys[i];\n\n        if (!data.relationships[relationshipName]) {\n          continue;\n        } // in debug, assert payload validity eagerly\n\n\n        var relationshipData = data.relationships[relationshipName];\n\n        {\n          var _storeWrapper = this.storeWrapper;\n          var recordData = this;\n          var relationshipMeta = relationships[relationshipName];\n\n          if (!relationshipData || !relationshipMeta) {\n            continue;\n          }\n\n          if (relationshipData.links) {\n            var isAsync = relationshipMeta.options && relationshipMeta.options.async !== false;\n\n            var _relationship = this._relationships.get(relationshipName);\n\n            ( Ember.warn(`You pushed a record of type '${this.modelName}' with a relationship '${relationshipName}' 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 || relationshipData.data || _relationship.hasAnyRelationshipData, {\n              id: 'ds.store.push-link-for-sync-relationship'\n            }));\n          } else if (relationshipData.data) {\n            if (relationshipMeta.kind === 'belongsTo') {\n              ( !(!Array.isArray(relationshipData.data)) && Ember.assert(`A ${this.modelName} record was pushed into the store with the value of ${relationshipName} being ${Ember.inspect(relationshipData.data)}, but ${relationshipName} is a belongsTo relationship so the value must not be an array. You should probably check your data payload or serializer.`, !Array.isArray(relationshipData.data)));\n              assertRelationshipData(_storeWrapper, recordData, relationshipData.data, relationshipMeta);\n            } else if (relationshipMeta.kind === 'hasMany') {\n              ( !(Array.isArray(relationshipData.data)) && Ember.assert(`A ${this.modelName} record was pushed into the store with the value of ${relationshipName} being '${Ember.inspect(relationshipData.data)}', but ${relationshipName} is a hasMany relationship so the value must be an array. You should probably check your data payload or serializer.`, Array.isArray(relationshipData.data)));\n\n              if (Array.isArray(relationshipData.data)) {\n                for (var _i = 0; _i < relationshipData.data.length; _i++) {\n                  assertRelationshipData(_storeWrapper, recordData, relationshipData.data[_i], relationshipMeta);\n                }\n              }\n            }\n          }\n        }\n\n        var relationship = this._relationships.get(relationshipName);\n\n        relationship.push(relationshipData);\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\n\n    _updateChangedAttributes() {\n      var changedAttributes = this.changedAttributes();\n      var changedAttributeNames = Object.keys(changedAttributes);\n      var attrs = this._attributes;\n\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\n        if (oldData === newData) {\n          delete attrs[attribute];\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\n\n    changedAttributes() {\n      var oldData = this._data;\n      var currentData = this._attributes;\n      var inFlightData = this._inFlightAttributes;\n      var newData = Ember.assign({}, inFlightData, currentData);\n      var diffData = Object.create(null);\n      var newDataKeys = Object.keys(newData);\n\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\n      return diffData;\n    }\n\n    isNew() {\n      return this._isNew;\n    }\n\n    rollbackAttributes() {\n      var dirtyKeys;\n      this._isDeleted = false;\n\n      if (this.hasChangedAttributes()) {\n        dirtyKeys = Object.keys(this._attributes);\n        this._attributes = null;\n      }\n\n      if (this.isNew()) {\n        this.removeFromInverseRelationships(true);\n        this._isDeleted = true;\n        this._isNew = false;\n      }\n\n      this._inFlightAttributes = null;\n\n      this._clearErrors();\n\n      this.notifyStateChange();\n      return dirtyKeys;\n    }\n\n    _deletionConfirmed() {\n      this.removeFromInverseRelationships();\n    }\n\n    didCommit(data) {\n      if (this._isDeleted) {\n        this._deletionConfirmed();\n\n        this._isDeletionCommited = true;\n      }\n\n      this._isNew = false;\n      var newCanonicalAttributes = null;\n\n      if (data) {\n        // this.store._internalModelDidReceiveRelationshipData(this.modelName, this.id, data.relationships);\n        if (data.relationships) {\n          this._setupRelationships(data);\n        }\n\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\n        newCanonicalAttributes = data.attributes || null;\n      }\n\n      var changedKeys = this._changedKeys(newCanonicalAttributes);\n\n      Ember.assign(this._data, this.__inFlightAttributes, newCanonicalAttributes);\n      this._inFlightAttributes = null;\n\n      this._updateChangedAttributes();\n\n      this._clearErrors();\n\n      this.notifyStateChange();\n      return changedKeys;\n    }\n\n    notifyStateChange() {\n    } // get ResourceIdentifiers for \"current state\"\n\n\n    getHasMany(key) {\n      return this._relationships.get(key).getData();\n    } // set a new \"current state\" via ResourceIdentifiers\n\n\n    setDirtyHasMany(key, recordDatas) {\n      var relationship = this._relationships.get(key);\n\n      relationship.clear();\n      relationship.addRecordDatas(recordDatas);\n    } // append to \"current state\" via RecordDatas\n\n\n    addToHasMany(key, recordDatas, idx) {\n      this._relationships.get(key).addRecordDatas(recordDatas, idx);\n    } // remove from \"current state\" via RecordDatas\n\n\n    removeFromHasMany(key, recordDatas) {\n      this._relationships.get(key).removeRecordDatas(recordDatas);\n    }\n\n    commitWasRejected(identifier, errors) {\n      var keys = Object.keys(this._inFlightAttributes);\n\n      if (keys.length > 0) {\n        var attrs = this._attributes;\n\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\n      this._inFlightAttributes = null;\n    }\n\n    getBelongsTo(key) {\n      return this._relationships.get(key).getData();\n    }\n\n    setDirtyBelongsTo(key, recordData) {\n      this._relationships.get(key).setRecordData(recordData);\n    }\n\n    setDirtyAttribute(key, value) {\n      var originalValue; // Add the new value to the changed attributes hash\n\n      this._attributes[key] = value;\n\n      if (key in this._inFlightAttributes) {\n        originalValue = this._inFlightAttributes[key];\n      } else {\n        originalValue = this._data[key];\n      } // If we went back to our original value, we shouldn't keep the attribute around anymore\n\n\n      if (value === originalValue) {\n        delete this._attributes[key];\n      }\n    } // internal set coming from the model\n\n\n    __setId(id) {\n      if (this.id !== id) {\n        this.id = id;\n      }\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\n    hasAttr(key) {\n      return key in this._attributes || key in this._inFlightAttributes || key in this._data;\n    }\n\n    unloadRecord() {\n      if (this.isDestroyed) {\n        return;\n      }\n\n      this._destroyRelationships();\n\n      this.reset();\n\n      if (!this._scheduledDestroy) {\n        this._scheduledDestroy = Ember.run.backburner.schedule('destroy', this, '_cleanupOrphanedRecordDatas');\n      }\n    }\n\n    _cleanupOrphanedRecordDatas() {\n      var relatedRecordDatas = this._allRelatedRecordDatas();\n\n      if (areAllModelsUnloaded(relatedRecordDatas)) {\n        for (var i = 0; i < relatedRecordDatas.length; ++i) {\n          var recordData = relatedRecordDatas[i];\n\n          if (!recordData.isDestroyed) {\n            recordData.destroy();\n          }\n        }\n      }\n\n      this._scheduledDestroy = null;\n    }\n\n    destroy() {\n      this._relationships.forEach((name, rel) => rel.destroy());\n\n      this.isDestroyed = true;\n      this.storeWrapper.disconnectRecord(this.modelName, this.id, this.clientId);\n    }\n\n    isRecordInUse() {\n      return this.storeWrapper.isRecordInUse(this.modelName, this.id, this.clientId);\n    }\n    /**\n      Iterates over the set of internal models reachable from `this` across exactly one\n      relationship.\n    */\n\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       @return {Array} 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\n      while (queue.length > 0) {\n        var node = queue.shift();\n        array.push(node);\n\n        var iterator = this._directlyRelatedRecordDatasIterable().iterator();\n\n        for (var obj = iterator.next(); !obj.done; obj = iterator.next()) {\n          var recordData = obj.value;\n\n          if (recordData instanceof RecordDataDefault) {\n            ( !(recordData._bfsId <= bfsId) && Ember.assert('Internal Error: seen a future bfs iteration', recordData._bfsId <= bfsId));\n\n            if (recordData._bfsId < bfsId) {\n              queue.push(recordData);\n              recordData._bfsId = bfsId;\n            }\n          }\n        }\n      }\n\n      return array;\n    }\n\n    isAttrDirty(key) {\n      if (this._attributes[key] === undefined) {\n        return false;\n      }\n\n      var originalValue;\n\n      if (this._inFlightAttributes[key] !== undefined) {\n        originalValue = this._inFlightAttributes[key];\n      } else {\n        originalValue = this._data[key];\n      }\n\n      return originalValue !== this._attributes[key];\n    }\n\n    get _attributes() {\n      if (this.__attributes === null) {\n        this.__attributes = Object.create(null);\n      }\n\n      return this.__attributes;\n    }\n\n    set _attributes(v) {\n      this.__attributes = v;\n    }\n\n    get _relationships() {\n      if (this.__relationships === null) {\n        this.__relationships = new Relationships(this);\n      }\n\n      return this.__relationships;\n    }\n\n    get _data() {\n      if (this.__data === null) {\n        this.__data = Object.create(null);\n      }\n\n      return this.__data;\n    }\n\n    set _data(v) {\n      this.__data = v;\n    }\n    /*\n     implicit relationships are relationship which have not been declared but the inverse side exists on\n     another record somewhere\n     For example if there was\n      ```app/models/comment.js\n     import Model, { attr } from '@ember-data/model';\n      export default Model.extend({\n       name: attr()\n     });\n     ```\n      but there is also\n      ```app/models/post.js\n     import Model, { attr, hasMany } from '@ember-data/model';\n      export default Model.extend({\n       name: attr(),\n       comments: hasMany('comment')\n     });\n     ```\n      would have a implicit post relationship in order to be do things like remove ourselves from the post\n     when we are deleted\n    */\n\n\n    get _implicitRelationships() {\n      if (this.__implicitRelationships === null) {\n        var relationships = Object.create(null);\n        this.__implicitRelationships = relationships;\n        return relationships;\n      }\n\n      return this.__implicitRelationships;\n    }\n\n    get _inFlightAttributes() {\n      if (this.__inFlightAttributes === null) {\n        this.__inFlightAttributes = Object.create(null);\n      }\n\n      return this.__inFlightAttributes;\n    }\n\n    set _inFlightAttributes(v) {\n      this.__inFlightAttributes = v;\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     * @param options\n     * @private\n     */\n\n\n    _initRecordCreateOptions(options) {\n      var createOptions = {};\n\n      if (options !== undefined) {\n        var {\n          modelName,\n          storeWrapper: _storeWrapper2\n        } = this;\n\n        var attributeDefs = _storeWrapper2.attributesDefinitionFor(modelName);\n\n        var relationshipDefs = _storeWrapper2.relationshipsDefinitionFor(modelName);\n\n        var relationships = this._relationships;\n        var propertyNames = Object.keys(options);\n\n        for (var i = 0; i < propertyNames.length; i++) {\n          var name = propertyNames[i];\n          var propertyValue = options[name];\n\n          if (name === 'id') {\n            this.id = propertyValue;\n            continue;\n          }\n\n          var fieldType = relationshipDefs[name] || attributeDefs[name];\n          var kind = fieldType !== undefined ? fieldType.kind : null;\n          var relationship = void 0;\n\n          switch (kind) {\n            case 'attribute':\n              this.setDirtyAttribute(name, propertyValue);\n              break;\n\n            case 'belongsTo':\n              this.setDirtyBelongsTo(name, propertyValue);\n              relationship = relationships.get(name);\n              relationship.setHasAnyRelationshipData(true);\n              relationship.setRelationshipIsEmpty(false);\n              break;\n\n            case 'hasMany':\n              this.setDirtyHasMany(name, propertyValue);\n              relationship = relationships.get(name);\n              relationship.setHasAnyRelationshipData(true);\n              relationship.setRelationshipIsEmpty(false);\n              break;\n\n            default:\n              // reflect back (pass-thru) unknown properties\n              createOptions[name] = propertyValue;\n          }\n        }\n      }\n\n      return createOptions;\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\n\n    removeFromInverseRelationships(isNew = false) {\n      this._relationships.forEach((name, rel) => {\n        rel.removeCompletelyFromInverse();\n\n        if (isNew === true) {\n          rel.clear();\n        }\n      });\n\n      this.__relationships = null;\n      var implicitRelationships = this._implicitRelationships;\n      this.__implicitRelationships = null;\n      Object.keys(implicitRelationships).forEach(key => {\n        var rel = implicitRelationships[key];\n        rel.removeCompletelyFromInverse();\n\n        if (isNew === true) {\n          rel.clear();\n        }\n      });\n    }\n\n    _destroyRelationships() {\n      var relationships = this._relationships;\n      relationships.forEach((name, rel) => destroyRelationship(rel));\n      var implicitRelationships = this._implicitRelationships;\n      this.__implicitRelationships = null;\n      Object.keys(implicitRelationships).forEach(key => {\n        var rel = implicitRelationships[key];\n        destroyRelationship(rel);\n      });\n    }\n\n    clientDidCreate() {\n      this._isNew = true;\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    /*\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\n\n    _changedKeys(updates) {\n      var changedKeys = [];\n\n      if (updates) {\n        var original, i, value, _key2;\n\n        var keys = Object.keys(updates);\n        var length = keys.length;\n        var hasAttrs = this.hasChangedAttributes();\n        var attrs;\n\n        if (hasAttrs) {\n          attrs = this._attributes;\n        }\n\n        original = Ember.assign(Object.create(null), this._data, this.__inFlightAttributes);\n\n        for (i = 0; i < length; i++) {\n          _key2 = keys[i];\n          value = updates[_key2]; // 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\n          if (hasAttrs === true && attrs[_key2] !== undefined) {\n            continue;\n          }\n\n          if (!Ember.isEqual(original[_key2], value)) {\n            changedKeys.push(_key2);\n          }\n        }\n      }\n\n      return changedKeys;\n    }\n\n    toString() {\n      return `<${this.modelName}:${this.id}>`;\n    }\n\n  }\n\n  function assertRelationshipData(store, recordData, data, meta) {\n    ( !(!Array.isArray(data)) && Ember.assert(`A ${recordData.modelName} 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) && Ember.assert(`Encountered a relationship identifier without a type for the ${meta.kind} relationship '${meta.key}' on ${recordData}, 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 || !!coerceId(data.id)) && Ember.assert(`Encountered a relationship identifier without an id for the ${meta.kind} relationship '${meta.key}' on ${recordData}, 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 || !!coerceId(data.id)));\n    ( !(data === null || !data.type || store._hasModelFor(data.type)) && Ember.assert(`Encountered a relationship identifier with type '${data.type}' for the ${meta.kind} relationship '${meta.key}' on ${recordData}, 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  } // 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\n\n  function destroyRelationship(rel) {\n    rel.recordDataDidDematerialize();\n\n    if (rel._inverseIsSync()) {\n      rel.removeAllRecordDatasFromOwn();\n      rel.removeAllCanonicalRecordDatasFromOwn();\n    }\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\n    return true;\n  }\n\n  exports.BelongsToRelationship = BelongsToRelationship;\n  exports.ManyRelationship = ManyRelationship;\n  exports.RecordData = RecordDataDefault;\n  exports.Relationship = Relationship;\n  exports.relationshipStateFor = relationshipStateFor;\n  exports.relationshipsFor = relationshipsFor;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n});\n","define('@ember-data/serializer/-private', ['exports'], function (exports) { 'use strict';\n\n  /**\n    @module @ember-data/serializer\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 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  */\n  var embeddedRecordsMixin = Ember.Mixin.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     @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\n      return this._extractEmbeddedRecords(this, this.store, typeClass, normalizedHash);\n    },\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    /**\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 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      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeBelongsTo(snapshot, json, relationship) {\n      var attr = relationship.key;\n\n      if (this.noSerializeOptionSpecified(attr)) {\n        this._super(snapshot, json, relationship);\n\n        return;\n      }\n\n      var includeIds = this.hasSerializeIdsOption(attr);\n      var includeRecords = this.hasSerializeRecordsOption(attr);\n      var embeddedSnapshot = snapshot.belongsTo(attr);\n\n      if (includeIds) {\n        var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n\n        if (serializedKey === relationship.key && this.keyForRelationship) {\n          serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n        }\n\n        if (!embeddedSnapshot) {\n          json[serializedKey] = null;\n        } else {\n          json[serializedKey] = embeddedSnapshot.id;\n\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\n    _serializeEmbeddedBelongsTo(snapshot, json, relationship) {\n      var embeddedSnapshot = snapshot.belongsTo(relationship.key);\n\n      var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n\n      if (serializedKey === relationship.key && this.keyForRelationship) {\n        serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n      }\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\n        if (relationship.options.polymorphic) {\n          this.serializePolymorphicType(snapshot, json, relationship);\n        }\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 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 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 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      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeHasMany(snapshot, json, relationship) {\n      var attr = relationship.key;\n\n      if (this.noSerializeOptionSpecified(attr)) {\n        this._super(snapshot, json, relationship);\n\n        return;\n      }\n\n      if (this.hasSerializeIdsOption(attr)) {\n        var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n\n        if (serializedKey === relationship.key && this.keyForRelationship) {\n          serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n        }\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    /*\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] = Ember.A(hasMany).map(function (recordSnapshot) {\n        //\n        // I'm sure I'm being utterly naive here. Propably id is a configurate 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\n    _serializeEmbeddedHasMany(snapshot, json, relationship) {\n      var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n\n      if (serializedKey === relationship.key && this.keyForRelationship) {\n        serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n      }\n\n      ( Ember.warn(`The embedded relationship '${serializedKey}' is undefined for '${snapshot.modelName}' with id '${snapshot.id}'. Please include it in your original payload.`, Ember.typeOf(snapshot.hasMany(relationship.key)) !== 'undefined', {\n        id: 'ds.serializer.embedded-relationship-undefined'\n      }));\n      json[serializedKey] = this._generateSerializedHasMany(snapshot, relationship);\n    },\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 = Ember.A(hasMany);\n      var ret = new Array(manyArray.length);\n\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\n      return ret;\n    },\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      @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\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\n          if (parentKey) {\n            delete json[parentKey];\n          }\n        }\n      }\n      /*else if (relationship.kind === 'hasMany') {\n      return;\n      }*/\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\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\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\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\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\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\n    attrsOption(attr) {\n      var attrs = this.get('attrs');\n      return attrs && (attrs[Ember.String.camelize(attr)] || attrs[attr]);\n    },\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\n          if (relationship.kind === 'belongsTo') {\n            this._extractEmbeddedBelongsTo(store, key, partial, relationship);\n          }\n        }\n      });\n      return partial;\n    },\n\n    /**\n     @method _extractEmbeddedHasMany\n     @private\n    */\n    _extractEmbeddedHasMany(store, key, hash, relationshipMeta) {\n      var relationshipHash = Ember.get(hash, `data.relationships.${key}.data`);\n\n      if (!relationshipHash) {\n        return;\n      }\n\n      var hasMany = new Array(relationshipHash.length);\n\n      for (var i = 0; i < relationshipHash.length; i++) {\n        var item = relationshipHash[i];\n\n        var {\n          data,\n          included\n        } = this._normalizeEmbeddedRelationship(store, relationshipMeta, item);\n\n        hash.included = hash.included || [];\n        hash.included.push(data);\n\n        if (included) {\n          hash.included.push(...included);\n        }\n\n        hasMany[i] = {\n          id: data.id,\n          type: data.type\n        };\n      }\n\n      var relationship = {\n        data: hasMany\n      };\n      Ember.set(hash, `data.relationships.${key}`, relationship);\n    },\n\n    /**\n     @method _extractEmbeddedBelongsTo\n     @private\n    */\n    _extractEmbeddedBelongsTo(store, key, hash, relationshipMeta) {\n      var relationshipHash = Ember.get(hash, `data.relationships.${key}.data`);\n\n      if (!relationshipHash) {\n        return;\n      }\n\n      var {\n        data,\n        included\n      } = this._normalizeEmbeddedRelationship(store, relationshipMeta, relationshipHash);\n\n      hash.included = hash.included || [];\n      hash.included.push(data);\n\n      if (included) {\n        hash.included.push(...included);\n      }\n\n      var belongsTo = {\n        id: data.id,\n        type: data.type\n      };\n      var relationship = {\n        data: belongsTo\n      };\n      Ember.set(hash, `data.relationships.${key}`, relationship);\n    },\n\n    /**\n     @method _normalizeEmbeddedRelationship\n     @private\n    */\n    _normalizeEmbeddedRelationship(store, relationshipMeta, relationshipHash) {\n      var modelName = relationshipMeta.type;\n\n      if (relationshipMeta.options.polymorphic) {\n        modelName = relationshipHash.type;\n      }\n\n      var modelClass = store.modelFor(modelName);\n      var serializer = store.serializerFor(modelName);\n      return serializer.normalize(modelClass, relationshipHash, null);\n    },\n\n    isEmbeddedRecordsMixin: true\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /*\n    Check if the passed model has a `type` attribute or a relationship named `type`.\n\n    @method modelHasAttributeOrRelationshipNamedType\n    @param modelClass\n   */\n  function modelHasAttributeOrRelationshipNamedType(modelClass) {\n    return Ember.get(modelClass, 'attributes').has('type') || Ember.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 Transform.extend({\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 Model.extend({\n      name: attr('string'),\n      temperature: attr('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 Model.extend({\n      title: attr('string'),\n      markdown: attr('markdown', {\n        markdown: {\n          gfm: false,\n          sanitize: true\n        }\n      })\n    });\n    ```\n\n    ```app/transforms/markdown.js\n    import Transform from '@ember-data/serializer/transform';\n\n    export default Transform.extend({\n      serialize(deserialized, options) {\n        return deserialized.raw;\n      },\n\n      deserialize(serialized, options) {\n        var markdownOptions = options.markdown || {};\n\n        return marked(serialized, markdownOptions);\n      }\n    });\n    ```\n\n    @class Transform\n   */\n  var Transform = Ember.Object.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      @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    /**\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      @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 Model.extend({\n      isAdmin: attr('boolean'),\n      name: attr('string'),\n      email: attr('string')\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 Model.extend({\n      email: attr('string'),\n      username: attr('string'),\n      wantsWeeklyEmail: attr('boolean', { allowNull: true })\n    });\n    ```\n\n    @class BooleanTransform\n    @extends Transform\n   */\n\n  var boolean = Transform.extend({\n    deserialize(serialized, options) {\n      if (Ember.isNone(serialized) && options.allowNull === true) {\n        return null;\n      }\n\n      var type = typeof serialized;\n\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\n    serialize(deserialized, options) {\n      if (Ember.isNone(deserialized) && options.allowNull === true) {\n        return null;\n      }\n\n      return Boolean(deserialized);\n    }\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 Model.extend({\n      value: attr('number'),\n      player: belongsTo('player'),\n      date: attr('date')\n    });\n   ```\n\n   @class DateTransform\n   @extends Transform\n   */\n\n  var date = Transform.extend({\n    deserialize(serialized) {\n      var type = typeof serialized;\n\n      if (type === 'string') {\n        var offset = serialized.indexOf('+');\n\n        if (offset !== -1 && serialized.length - 5 === offset) {\n          offset += 3;\n          return new Date(serialized.slice(0, offset) + ':' + serialized.slice(offset));\n        }\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\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  /**\n    @module @ember-data/serializer\n  */\n\n  function isNumber(value) {\n    return value === value && value !== Infinity && value !== -Infinity;\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 Model.extend({\n      value: attr('number'),\n      player: belongsTo('player'),\n      date: attr('date')\n    });\n    ```\n\n    @class NumberTransform\n    @extends Transform\n   */\n\n\n  var number = Transform.extend({\n    deserialize(serialized) {\n      var transformed;\n\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\n    serialize(deserialized) {\n      var transformed;\n\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  /**\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 Model.extend({\n      isAdmin: attr('boolean'),\n      name: attr('string'),\n      email: attr('string')\n    });\n    ```\n\n    @class StringTransform\n    @extends Transform\n   */\n\n  var string = Transform.extend({\n    deserialize(serialized) {\n      return Ember.isNone(serialized) ? null : String(serialized);\n    },\n\n    serialize(deserialized) {\n      return Ember.isNone(deserialized) ? null : String(deserialized);\n    }\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\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\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    @extends EmberObject\n  */\n  var _default = Ember.Object.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          var modelClass = this.store.modelFor(relationshipModelName);\n          var 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      @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    /**\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          var 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      @param {Snapshot} snapshot\n      @param {Object} [options]\n      @return {Object}\n    */\n    serialize: null,\n\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          var data = {\n            id:            resourceHash.id,\n            type:          modelClass.modelName,\n            attributes:    resourceHash\n          };\n          return { data: data };\n        }\n      })\n      ```\n       @method normalize\n      @param {Model} typeClass\n      @param {Object} hash\n      @return {Object}\n    */\n    normalize(typeClass, hash) {\n      return hash;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"@ember-data/serializer/json-api\", [\"exports\", \"ember-inflector\", \"@ember-data/serializer/json\", \"@ember-data/store\"], function (_exports, _emberInflector, _json, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n    @module @ember-data/serializer\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    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    @since 1.13.0\n    @class JSONAPISerializer\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 (Ember.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\n        for (var i = 0; i < documentHash.data.length; i++) {\n          var data = documentHash.data[i];\n          ret[i] = this._normalizeResourceHelper(data);\n        }\n\n        documentHash.data = ret;\n      }\n\n      if (Array.isArray(documentHash.included)) {\n        var _ret = new Array();\n\n        for (var _i = 0; _i < documentHash.included.length; _i++) {\n          var included = documentHash.included[_i];\n\n          var normalized = this._normalizeResourceHelper(included);\n\n          if (normalized !== null) {\n            // can be null when unknown type is encountered\n            _ret.push(normalized);\n          }\n        }\n\n        documentHash.included = _ret;\n      }\n\n      return documentHash;\n    },\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    /**\n      @method _normalizeResourceHelper\n      @param {Object} resourceHash\n      @return {Object}\n      @private\n    */\n    _normalizeResourceHelper(resourceHash) {\n      (true && !(!Ember.isNone(resourceHash.type)) && Ember.assert(this.warnMessageForUndefinedType(), !Ember.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\n      if (!this.store._hasModelFor(modelName)) {\n        (true && Ember.warn(this.warnMessageNoModelForType(modelName, resourceHash.type, usedLookup), false, {\n          id: 'ds.serializer.model-for-type-missing'\n        }));\n        return null;\n      }\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    /**\n      @method pushPayload\n      @param {Store} store\n      @param {Object} payload\n    */\n    pushPayload(store, payload) {\n      var normalizedPayload = this._normalizeDocumentHelper(payload);\n\n      store.push(normalizedPayload);\n    },\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\n      return normalizedPayload;\n    },\n\n    normalizeQueryRecordResponse() {\n      var normalized = this._super(...arguments);\n\n      (true && !(!Array.isArray(normalized.data)) && Ember.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\n    extractAttributes(modelClass, resourceHash) {\n      var attributes = {};\n\n      if (resourceHash.attributes) {\n        modelClass.eachAttribute(key => {\n          var attributeKey = this.keyForAttribute(key, 'deserialize');\n\n          if (resourceHash.attributes[attributeKey] !== undefined) {\n            attributes[key] = resourceHash.attributes[attributeKey];\n          }\n\n          if (true\n          /* DEBUG */\n          ) {\n            if (resourceHash.attributes[attributeKey] === undefined && resourceHash.attributes[key] !== undefined) {\n              (true && !(false) && Ember.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\n      return attributes;\n    },\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       @param {Object} relationshipHash\n       @return {Object}\n    */\n    extractRelationship(relationshipHash) {\n      if (Ember.typeOf(relationshipHash.data) === 'object') {\n        relationshipHash.data = this._normalizeRelationshipDataHelper(relationshipHash.data);\n      }\n\n      if (Array.isArray(relationshipHash.data)) {\n        var ret = new Array(relationshipHash.data.length);\n\n        for (var i = 0; i < relationshipHash.data.length; i++) {\n          var data = relationshipHash.data[i];\n          ret[i] = this._normalizeRelationshipDataHelper(data);\n        }\n\n        relationshipHash.data = ret;\n      }\n\n      return relationshipHash;\n    },\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       @param {Object} modelClass\n       @param {Object} resourceHash\n       @return {Object}\n    */\n    extractRelationships(modelClass, resourceHash) {\n      var relationships = {};\n\n      if (resourceHash.relationships) {\n        modelClass.eachRelationship((key, relationshipMeta) => {\n          var relationshipKey = this.keyForRelationship(key, relationshipMeta.kind, 'deserialize');\n\n          if (resourceHash.relationships[relationshipKey] !== undefined) {\n            var relationshipHash = resourceHash.relationships[relationshipKey];\n            relationships[key] = this.extractRelationship(relationshipHash);\n          }\n\n          if (true\n          /* DEBUG */\n          ) {\n            if (resourceHash.relationships[relationshipKey] === undefined && resourceHash.relationships[key] !== undefined) {\n              (true && !(false) && Ember.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\n      return relationships;\n    },\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    /**\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      @param {String} key\n      @return {String} the model's modelName\n    */\n    // TODO @deprecated Use modelNameFromPayloadType instead\n    modelNameFromPayloadKey(key) {\n      return (0, _emberInflector.singularize)((0, _store.normalizeModelName)(key));\n    },\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      @param {String} modelName\n      @return {String}\n    */\n    // TODO @deprecated Use payloadTypeFromModelName instead\n    payloadKeyFromModelName(modelName) {\n      return (0, _emberInflector.pluralize)(modelName);\n    },\n\n    normalize(modelClass, resourceHash) {\n      if (resourceHash.attributes) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash.attributes);\n      }\n\n      if (resourceHash.relationships) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash.relationships);\n      }\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    /**\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      @param {String} key\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForAttribute(key, method) {\n      return Ember.String.dasherize(key);\n    },\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     @param {String} key\n     @param {String} typeClass\n     @param {String} method\n     @return {String} normalized key\n    */\n    keyForRelationship(key, typeClass, method) {\n      return Ember.String.dasherize(key);\n    },\n\n    serialize(snapshot, options) {\n      var data = this._super(...arguments);\n\n      data.type = this.payloadKeyFromModelName(snapshot.modelName);\n      return {\n        data\n      };\n    },\n\n    serializeAttribute(snapshot, json, key, attribute) {\n      var type = attribute.type;\n\n      if (this._canSerialize(key)) {\n        json.attributes = json.attributes || {};\n        var value = snapshot.attr(key);\n\n        if (type) {\n          var transform = this.transformFor(type);\n          value = transform.serialize(value, attribute.options);\n        }\n\n        var payloadKey = this._getMappedKey(key, snapshot.type);\n\n        if (payloadKey === key) {\n          payloadKey = this.keyForAttribute(key, 'serialize');\n        }\n\n        json.attributes[payloadKey] = value;\n      }\n    },\n\n    serializeBelongsTo(snapshot, json, relationship) {\n      var key = relationship.key;\n\n      if (this._canSerialize(key)) {\n        var belongsTo = snapshot.belongsTo(key);\n        var belongsToIsNotNew;\n\n        if (false\n        /* CUSTOM_MODEL_CLASS */\n        ) {\n          belongsToIsNotNew = belongsTo && !belongsTo.isNew;\n        } else {\n          belongsToIsNotNew = belongsTo && belongsTo.record && !belongsTo.record.get('isNew');\n        }\n\n        if (belongsTo === null || belongsToIsNotNew) {\n          json.relationships = json.relationships || {};\n\n          var payloadKey = this._getMappedKey(key, snapshot.type);\n\n          if (payloadKey === key) {\n            payloadKey = this.keyForRelationship(key, 'belongsTo', 'serialize');\n          }\n\n          var data = null;\n\n          if (belongsTo) {\n            var payloadType = this.payloadKeyFromModelName(belongsTo.modelName);\n            data = {\n              type: payloadType,\n              id: belongsTo.id\n            };\n          }\n\n          json.relationships[payloadKey] = {\n            data\n          };\n        }\n      }\n    },\n\n    serializeHasMany(snapshot, json, relationship) {\n      var key = relationship.key;\n\n      if (this.shouldSerializeHasMany(snapshot, key, relationship)) {\n        var hasMany = snapshot.hasMany(key);\n\n        if (hasMany !== undefined) {\n          json.relationships = json.relationships || {};\n\n          var payloadKey = this._getMappedKey(key, snapshot.type);\n\n          if (payloadKey === key && this.keyForRelationship) {\n            payloadKey = this.keyForRelationship(key, 'hasMany', 'serialize');\n          } // only serialize has many relationships that are not new\n\n\n          var nonNewHasMany = hasMany.filter(item => item.record && !item.record.get('isNew'));\n          var data = new Array(nonNewHasMany.length);\n\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\n          json.relationships[payloadKey] = {\n            data\n          };\n        }\n      }\n    }\n\n  });\n\n  if (true\n  /* DEBUG */\n  ) {\n    JSONAPISerializer.reopen({\n      init(...args) {\n        this._super(...args);\n\n        (true && !(!this.isEmbeddedRecordsMixin || this.isEmbeddedRecordsMixinCompatible === true) && Ember.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 && Ember.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\n      warnMessageForUndefinedType() {\n        return 'Encountered a resource object with an undefined type (resolved resource using ' + this.constructor.toString() + ')';\n      },\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  }\n\n  var _default = JSONAPISerializer;\n  _exports.default = _default;\n});","define(\"@ember-data/serializer/json\", [\"exports\", \"@ember-data/serializer\", \"@ember-data/store\", \"@ember-data/store/-private\", \"@ember-data/serializer/-private\"], function (_exports, _serializer, _store, _private, _private2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n    @module @ember-data/serializer\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 Model.extend({\n      friends: hasMany('user'),\n      house: belongsTo('location'),\n  \n      name: attr('string')\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      - `normalizeResponse` - entry method to the serializer.\n      - `normalizeCreateRecordResponse` - a `normalizeResponse` for a specific operation is called.\n      - `normalizeSingleResponse`|`normalizeArrayResponse` - for methods like `createRecord` we expect\n        a single record back, while for methods like `findAll` we expect multiple records back.\n      - `normalize` - `normalizeArray` 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      - `extractId` | `extractAttributes` | `extractRelationships` - `normalize` delegates to these methods to\n        turn the record payload into the JSON API format.\n  \n    @class JSONSerializer\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 JSONSerializer.extend({\n        primaryKey: '_id'\n      });\n      ```\n       @property primaryKey\n      @type {String}\n      @default 'id'\n    */\n    primaryKey: 'id',\n\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 Model.extend({\n        firstName: attr('string'),\n        lastName: attr('string'),\n        occupation: attr('string'),\n        admin: attr('boolean')\n      });\n      ```\n       ```app/serializers/person.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default JSONSerializer.extend({\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 JSONSerializer.extend({\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      @type {Object}\n    */\n    mergedProperties: ['attrs'],\n\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 = Ember.get(typeClass, 'attributes');\n      typeClass.eachTransformedAttribute((key, typeClass) => {\n        if (data[key] === undefined) {\n          return;\n        }\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    /**\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        var data = message.data;\n        var modelClass = store.modelFor(data.modelName);\n        var serializer = store.serializerFor(data.modelName);\n        var normalized = serializer.normalizeSingleResponse(store, modelClass, data, data.id);\n         store.push(normalized);\n      });\n      ```\n       @since 1.13.0\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      @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\n        case 'queryRecord':\n          return this.normalizeQueryRecordResponse(...arguments);\n\n        case 'findAll':\n          return this.normalizeFindAllResponse(...arguments);\n\n        case 'findBelongsTo':\n          return this.normalizeFindBelongsToResponse(...arguments);\n\n        case 'findHasMany':\n          return this.normalizeFindHasManyResponse(...arguments);\n\n        case 'findMany':\n          return this.normalizeFindManyResponse(...arguments);\n\n        case 'query':\n          return this.normalizeQueryResponse(...arguments);\n\n        case 'createRecord':\n          return this.normalizeCreateRecordResponse(...arguments);\n\n        case 'deleteRecord':\n          return this.normalizeDeleteRecordResponse(...arguments);\n\n        case 'updateRecord':\n          return this.normalizeUpdateRecordResponse(...arguments);\n      }\n    },\n\n    /**\n      @since 1.13.0\n      @method normalizeFindRecordResponse\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    /**\n      @since 1.13.0\n      @method normalizeQueryRecordResponse\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    /**\n      @since 1.13.0\n      @method normalizeFindAllResponse\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    /**\n      @since 1.13.0\n      @method normalizeFindBelongsToResponse\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    /**\n      @since 1.13.0\n      @method normalizeFindHasManyResponse\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    /**\n      @since 1.13.0\n      @method normalizeFindManyResponse\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    /**\n      @since 1.13.0\n      @method normalizeQueryResponse\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    /**\n      @since 1.13.0\n      @method normalizeCreateRecordResponse\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    /**\n      @since 1.13.0\n      @method normalizeDeleteRecordResponse\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    /**\n      @since 1.13.0\n      @method normalizeUpdateRecordResponse\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    /**\n      @since 1.13.0\n      @method normalizeSaveResponse\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    /**\n      @since 1.13.0\n      @method normalizeSingleResponse\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    /**\n      @since 1.13.0\n      @method normalizeArrayResponse\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    /**\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\n      if (meta) {\n        (true && !(Ember.typeOf(meta) === 'object') && Ember.assert('The `meta` returned from `extractMeta` has to be an object, not \"' + Ember.typeOf(meta) + '\".', Ember.typeOf(meta) === 'object'));\n        documentHash.meta = meta;\n      }\n\n      if (isSingle) {\n        var {\n          data,\n          included\n        } = this.normalize(primaryModelClass, payload);\n        documentHash.data = data;\n\n        if (included) {\n          documentHash.included = included;\n        }\n      } else {\n        var ret = new Array(payload.length);\n\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\n          if (_included) {\n            documentHash.included.push(..._included);\n          }\n\n          ret[i] = _data;\n        }\n\n        documentHash.data = ret;\n      }\n\n      return documentHash;\n    },\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 JSONSerializer.extend({\n        normalize(typeClass, hash) {\n          var fields = get(typeClass, 'fields');\n           fields.forEach(function(type, field) {\n            var 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      @param {Model} typeClass\n      @param {Object} hash\n      @return {Object}\n    */\n    normalize(modelClass, resourceHash) {\n      var data = null;\n\n      if (resourceHash) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash);\n\n        if (Ember.typeOf(resourceHash.links) === 'object') {\n          this.normalizeUsingDeclaredMapping(modelClass, resourceHash.links);\n        }\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\n      return {\n        data\n      };\n    },\n\n    /**\n      Returns the resource's ID.\n       @method extractId\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {String}\n    */\n    extractId(modelClass, resourceHash) {\n      var primaryKey = Ember.get(this, 'primaryKey');\n      var id = resourceHash[primaryKey];\n      return (0, _private.coerceId)(id);\n    },\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      @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\n        if (resourceHash[attributeKey] !== undefined) {\n          attributes[key] = resourceHash[attributeKey];\n        }\n      });\n      return attributes;\n    },\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      @param {Object} relationshipModelName\n      @param {Object} relationshipHash\n      @return {Object}\n    */\n    extractRelationship(relationshipModelName, relationshipHash) {\n      if (Ember.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\n\n      if (Ember.typeOf(relationshipHash) === 'object') {\n        if (relationshipHash.id) {\n          relationshipHash.id = (0, _private.coerceId)(relationshipHash.id);\n        }\n\n        var modelClass = this.store.modelFor(relationshipModelName);\n\n        if (relationshipHash.type && !(0, _private2.modelHasAttributeOrRelationshipNamedType)(modelClass)) {\n          relationshipHash.type = this.modelNameFromPayloadKey(relationshipHash.type);\n        }\n\n        return relationshipHash;\n      }\n\n      return {\n        id: (0, _private.coerceId)(relationshipHash),\n        type: relationshipModelName\n      };\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      @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    /**\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      @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\n        if (resourceHash[relationshipKey] !== undefined) {\n          var data = null;\n          var relationshipHash = resourceHash[relationshipKey];\n\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 (!Ember.isNone(relationshipHash)) {\n              data = new Array(relationshipHash.length);\n\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\n          relationship = {\n            data\n          };\n        }\n\n        var linkKey = this.keyForLink(key, relationshipMeta.kind);\n\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\n        if (relationship) {\n          relationships[key] = relationship;\n        }\n      });\n      return relationships;\n    },\n\n    /**\n      @method modelNameFromPayloadKey\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    // TODO @deprecated Use modelNameFromPayloadType instead\n    modelNameFromPayloadKey(key) {\n      return (0, _store.normalizeModelName)(key);\n    },\n\n    /**\n      @method normalizeRelationships\n      @private\n    */\n    normalizeRelationships(typeClass, hash) {\n      var payloadKey;\n\n      if (this.keyForRelationship) {\n        typeClass.eachRelationship((key, relationship) => {\n          payloadKey = this.keyForRelationship(key, relationship.kind, 'deserialize');\n\n          if (key === payloadKey) {\n            return;\n          }\n\n          if (hash[payloadKey] === undefined) {\n            return;\n          }\n\n          hash[key] = hash[payloadKey];\n          delete hash[payloadKey];\n        });\n      }\n    },\n\n    /**\n      @method normalizeUsingDeclaredMapping\n      @private\n    */\n    normalizeUsingDeclaredMapping(modelClass, hash) {\n      var attrs = Ember.get(this, 'attrs');\n      var normalizedKey;\n      var payloadKey;\n\n      if (attrs) {\n        for (var key in attrs) {\n          normalizedKey = payloadKey = this._getMappedKey(key, modelClass);\n\n          if (hash[payloadKey] === undefined) {\n            continue;\n          }\n\n          if (Ember.get(modelClass, 'attributes').has(key)) {\n            normalizedKey = this.keyForAttribute(key);\n          }\n\n          if (Ember.get(modelClass, 'relationshipsByName').has(key)) {\n            normalizedKey = this.keyForRelationship(key);\n          }\n\n          if (payloadKey !== normalizedKey) {\n            hash[normalizedKey] = hash[payloadKey];\n            delete hash[payloadKey];\n          }\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 && Ember.warn('There is no attribute or relationship with the name `' + key + '` on `' + modelClass.modelName + '`. Check your serializers attrs hash.', Ember.get(modelClass, 'attributes').has(key) || Ember.get(modelClass, 'relationshipsByName').has(key), {\n        id: 'ds.serializer.no-mapped-attrs-key'\n      }));\n      var attrs = Ember.get(this, 'attrs');\n      var mappedKey;\n\n      if (attrs && attrs[key]) {\n        mappedKey = attrs[key]; //We need to account for both the { title: 'post_title' } and\n        //{ title: { key: 'post_title' }} forms\n\n        if (mappedKey.key) {\n          mappedKey = mappedKey.key;\n        }\n\n        if (typeof mappedKey === 'string') {\n          key = mappedKey;\n        }\n      }\n\n      return key;\n    },\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 = Ember.get(this, 'attrs');\n      return !attrs || !attrs[key] || attrs[key].serialize !== false;\n    },\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 = Ember.get(this, 'attrs');\n      return attrs && attrs[key] && attrs[key].serialize === true;\n    },\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      @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\n      if (this._mustSerialize(key)) {\n        return true;\n      }\n\n      return this._canSerialize(key) && (relationshipType === 'manyToNone' || relationshipType === 'manyToMany');\n    },\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 Model.extend({\n        title: attr(),\n        body: attr(),\n         author: belongsTo('user')\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 JSONSerializer.extend({\n        serialize(snapshot, options) {\n          var 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 JSONSerializer.extend({\n        serialize(snapshot, options) {\n          var 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       ```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 first and make the tweaks on the returned\n      JSON.\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default JSONSerializer.extend({\n        serialize(snapshot, options) {\n          var json = this._super(...arguments);\n           json.subject = json.title;\n          delete json.title;\n           return json;\n        }\n      });\n      ```\n       @method serialize\n      @param {Snapshot} snapshot\n      @param {Object} options\n      @return {Object} json\n    */\n    serialize(snapshot, options) {\n      var json = {};\n\n      if (options && options.includeId) {\n        var id = snapshot.id;\n\n        if (id) {\n          json[Ember.get(this, 'primaryKey')] = id;\n        }\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    /**\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 RESTSerializer.extend({\n        serializeIntoHash(data, type, snapshot, options) {\n          var root = decamelize(type.modelName);\n          data[root] = this.serialize(snapshot, options);\n        }\n      });\n      ```\n       @method serializeIntoHash\n      @param {Object} hash\n      @param {Model} typeClass\n      @param {Snapshot} snapshot\n      @param {Object} options\n    */\n    serializeIntoHash(hash, typeClass, snapshot, options) {\n      Ember.assign(hash, this.serialize(snapshot, options));\n    },\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 JSONSerializer.extend({\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      @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\n        if (type) {\n          var transform = this.transformFor(type);\n          value = transform.serialize(value, attribute.options);\n        } // if provided, use the mapping provided by `attrs` in\n        // the serializer\n\n\n        var payloadKey = this._getMappedKey(key, snapshot.type);\n\n        if (payloadKey === key && this.keyForAttribute) {\n          payloadKey = this.keyForAttribute(key, 'serialize');\n        }\n\n        json[payloadKey] = value;\n      }\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 JSONSerializer.extend({\n        serializeBelongsTo(snapshot, json, relationship) {\n          var key = relationship.key;\n          var 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      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeBelongsTo(snapshot, json, relationship) {\n      var key = relationship.key;\n\n      if (this._canSerialize(key)) {\n        var belongsToId = snapshot.belongsTo(key, {\n          id: true\n        }); // if provided, use the mapping provided by `attrs` in\n        // the serializer\n\n        var payloadKey = this._getMappedKey(key, snapshot.type);\n\n        if (payloadKey === key && this.keyForRelationship) {\n          payloadKey = this.keyForRelationship(key, 'belongsTo', 'serialize');\n        } //Need to check whether the id is there for new&async records\n\n\n        if (Ember.isNone(belongsToId)) {\n          json[payloadKey] = null;\n        } else {\n          json[payloadKey] = belongsToId;\n        }\n\n        if (relationship.options.polymorphic) {\n          this.serializePolymorphicType(snapshot, json, relationship);\n        }\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 JSONSerializer.extend({\n       serializeHasMany(snapshot, json, relationship) {\n         var key = relationship.key;\n         if (key === 'comments') {\n           return;\n         } else {\n           this._super(...arguments);\n         }\n       }\n     });\n     ```\n      @method serializeHasMany\n     @param {Snapshot} snapshot\n     @param {Object} json\n     @param {Object} relationship\n    */\n    serializeHasMany(snapshot, json, relationship) {\n      var key = relationship.key;\n\n      if (this.shouldSerializeHasMany(snapshot, key, relationship)) {\n        var hasMany = snapshot.hasMany(key, {\n          ids: true\n        });\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\n          if (payloadKey === key && this.keyForRelationship) {\n            payloadKey = this.keyForRelationship(key, 'hasMany', 'serialize');\n          }\n\n          json[payloadKey] = hasMany; // 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 JSONSerializer.extend({\n        serializePolymorphicType(snapshot, json, relationship) {\n          var key = relationship.key;\n          var 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      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializePolymorphicType() {},\n\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 JSONSerializer.extend({\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      @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    /**\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 JSONSerializer.extend({\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      @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\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\n          if (key !== name && payload[key] !== undefined) {\n            payload[name] = payload[key];\n            delete payload[key];\n          }\n        });\n      }\n\n      return payload;\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       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { underscore } from '@ember/string';\n       export default JSONSerializer.extend({\n        keyForAttribute(attr, method) {\n          return underscore(attr).toUpperCase();\n        }\n      });\n      ```\n       @method keyForAttribute\n      @param {String} key\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForAttribute(key, method) {\n      return key;\n    },\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 JSONSerializer.extend({\n          keyForRelationship(key, relationship, method) {\n            return `rel_${underscore(key)}`;\n          }\n        });\n        ```\n       @method keyForRelationship\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    /**\n     `keyForLink` can be used to define a custom key when deserializing link\n     properties.\n      @method keyForLink\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\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 = Ember.getOwner(this).lookup('transform:' + attributeType);\n      (true && !(skipAssertion || !!transform) && Ember.assert(`Unable to find the transform for \\`attr('${attributeType}')\\``, skipAssertion || !!transform));\n      return transform;\n    }\n\n  });\n\n  var _default = JSONSerializer;\n  _exports.default = _default;\n});","define(\"@ember-data/serializer/rest\", [\"exports\", \"ember-inflector\", \"@ember-data/serializer/json\", \"@ember-data/store\", \"@ember-data/store/-private\", \"@ember-data/serializer/-private\"], function (_exports, _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  /**\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    @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          var relationshipKey = this.keyForRelationship(key);\n           return 'type-' + relationshipKey;\n        }\n      }\n      ```\n      @method keyForPolymorphicType\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    /**\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      @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      Ember.makeArray(arrayHash).forEach(hash => {\n        var {\n          data,\n          included\n        } = this._normalizePolymorphicRecord(store, hash, prop, modelClass, serializer);\n\n        documentHash.data.push(data);\n\n        if (included) {\n          documentHash.included.push(...included);\n        }\n      });\n      return documentHash;\n    },\n\n    _normalizePolymorphicRecord(store, hash, prop, primaryModelClass, primarySerializer) {\n      var serializer = primarySerializer;\n      var modelClass = primaryModelClass;\n      var primaryHasTypeAttribute = (0, _private2.modelHasAttributeOrRelationshipNamedType)(primaryModelClass);\n\n      if (!primaryHasTypeAttribute && hash.type) {\n        // Support polymorphic records in async relationships\n        var modelName = this.modelNameFromPayloadKey(hash.type);\n\n        if (store._hasModelFor(modelName)) {\n          serializer = store.serializerFor(modelName);\n          modelClass = store.modelFor(modelName);\n        }\n      }\n\n      return serializer.normalize(modelClass, hash, prop);\n    },\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\n      if (meta) {\n        (true && !(Ember.typeOf(meta) === 'object') && Ember.assert('The `meta` returned from `extractMeta` has to be an object, not \"' + Ember.typeOf(meta) + '\".', Ember.typeOf(meta) === 'object'));\n        documentHash.meta = meta;\n      }\n\n      var keys = Object.keys(payload);\n\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          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\n        if (prop.charAt(0) === '_') {\n          forcedSecondary = true;\n          modelName = prop.substr(1);\n        }\n\n        var typeName = this.modelNameFromPayloadKey(modelName);\n\n        if (!store._hasModelFor(typeName)) {\n          (true && Ember.warn(this.warnMessageNoModelForKey(modelName, typeName), false, {\n            id: 'ds.serializer.model-for-key-missing'\n          }));\n          continue;\n        }\n\n        var isPrimary = !forcedSecondary && this.isPrimaryType(store, typeName, primaryModelClass);\n        var value = payload[prop];\n\n        if (value === null) {\n          continue;\n        }\n\n        if (true\n        /* DEBUG */\n        ) {\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) && Ember.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          }));\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\n\n        if (isPrimary && !Array.isArray(value)) {\n          var {\n            data: _data,\n            included: _included\n          } = this._normalizePolymorphicRecord(store, value, prop, primaryModelClass, this);\n\n          documentHash.data = _data;\n\n          if (_included) {\n            documentHash.included.push(..._included);\n          }\n\n          continue;\n        }\n\n        var {\n          data,\n          included\n        } = this._normalizeArray(store, typeName, value, prop);\n\n        if (included) {\n          documentHash.included.push(...included);\n        }\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\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\n      return documentHash;\n    },\n\n    isPrimaryType(store, modelName, primaryModelClass) {\n      return (0, _store.normalizeModelName)(modelName) === primaryModelClass.modelName;\n    },\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      @param {Store} store\n      @param {Object} payload\n    */\n    pushPayload(store, payload) {\n      var documentHash = {\n        data: [],\n        included: []\n      };\n\n      for (var prop in payload) {\n        var modelName = this.modelNameFromPayloadKey(prop);\n\n        if (!store._hasModelFor(modelName)) {\n          (true && Ember.warn(this.warnMessageNoModelForKey(prop, modelName), false, {\n            id: 'ds.serializer.model-for-key-missing'\n          }));\n          continue;\n        }\n\n        var type = store.modelFor(modelName);\n        var typeSerializer = store.serializerFor(type.modelName);\n        Ember.makeArray(payload[prop]).forEach(hash => {\n          var {\n            data,\n            included\n          } = typeSerializer.normalize(type, hash, prop);\n          documentHash.data.push(data);\n\n          if (included) {\n            documentHash.included.push(...included);\n          }\n        });\n      }\n\n      store.push(documentHash);\n    },\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      @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    // 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          var 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          var 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          var json = super.serialize(snapshot, options);\n           json.subject = json.title;\n          delete json.title;\n           return json;\n        }\n      }\n      ```\n       @method serialize\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    /**\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          var root = decamelize(type.modelName);\n          data[root] = this.serialize(record, options);\n        }\n      }\n      ```\n       @method serializeIntoHash\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    /**\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      @param {String} modelName\n      @return {String}\n    */\n    payloadKeyFromModelName(modelName) {\n      return Ember.String.camelize(modelName);\n    },\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      @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\n      if (Ember.isNone(belongsTo)) {\n        json[typeKey] = null;\n      } else {\n        json[typeKey] = Ember.String.camelize(belongsTo.modelName);\n      }\n    },\n\n    /**\n      You can use this method to customize how a polymorphic relationship should\n      be extracted.\n       @method extractPolymorphicRelationship\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; // 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\n      var isPolymorphic = relationshipMeta.options.polymorphic;\n      var typeProperty = this.keyForPolymorphicType(key, relationshipType, 'deserialize');\n\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\n      return this._super(...arguments);\n    }\n\n  });\n\n  if (true\n  /* DEBUG */\n  ) {\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  }\n\n  var _default = RESTSerializer;\n  _exports.default = _default;\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  /**\n    @module @ember-data/serializer\n  */\n  var _default = _private.Transform;\n  _exports.default = _default;\n});","define(\"@ember-data/store/-debug/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.assertPolymorphicType = void 0;\n\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    @method assertPolymorphicType\n    @param {InternalModel} internalModel\n    @param {RelationshipMeta} relationshipMeta retrieved via\n           `record.relationshipFor(key)`\n    @param {InternalModel} addedRecord record which\n           should be added/set for the relationship\n  */\n  var assertPolymorphicType;\n  _exports.assertPolymorphicType = assertPolymorphicType;\n\n  if (true\n  /* DEBUG */\n  ) {\n    var checkPolymorphic = function checkPolymorphic(modelClass, addedModelClass) {\n      if (modelClass.__isMixin) {\n        return modelClass.__mixin.detect(addedModelClass.PrototypeMixin) || // handle native class extension e.g. `class Post extends Model.extend(Commentable) {}`\n        modelClass.__mixin.detect(Object.getPrototypeOf(addedModelClass).PrototypeMixin);\n      }\n\n      return addedModelClass.prototype instanceof modelClass || modelClass.detect(addedModelClass);\n    };\n\n    _exports.assertPolymorphicType = assertPolymorphicType = function assertPolymorphicType(parentInternalModel, relationshipMeta, addedInternalModel, store) {\n      var addedModelName = addedInternalModel.modelName;\n      var parentModelName = parentInternalModel.modelName;\n      var key = relationshipMeta.key;\n      var relationshipModelName = relationshipMeta.type;\n      var relationshipClass = store.modelFor(relationshipModelName);\n      var addedClass = store.modelFor(addedInternalModel.modelName);\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      (true && !(checkPolymorphic(relationshipClass, addedClass)) && Ember.assert(assertionMessage, checkPolymorphic(relationshipClass, addedClass)));\n    };\n  }\n});","define('@ember-data/store/-private', ['exports', 'require', '@ember-data/store/-debug', 'ember-inflector'], function (exports, require$1, Debug, emberInflector) { 'use strict';\n\n  require$1 = require$1 && Object.prototype.hasOwnProperty.call(require$1, 'default') ? require$1['default'] : require$1;\n\n  /**\n    @module @ember-data/store\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\n    if (typeof id === 'string') {\n      return id;\n    }\n\n    if (typeof id === 'symbol') {\n      return id.toString();\n    }\n\n    return '' + id;\n  }\n\n  function ensureStringId(id) {\n    var normalized = null;\n\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\n    if (normalized === null) {\n      throw new Error(`Expected id to be a string or number, received ${String(id)}`);\n    }\n\n    return normalized;\n  }\n\n  /**\n    @module @ember-data/store\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.\n\n    @function normalizeModelName\n    @for @ember-data/store\n    @param {String} modelName\n    @return {String} normalizedModelName\n  */\n  function normalizeModelName(modelName) {\n    return Ember.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  var DEBUG_CLIENT_ORIGINATED = symbol('record-originated-on-client');\n  var DEBUG_IDENTIFIER_BUCKET = symbol('identifier-bucket');\n\n  function isNonEmptyString(str) {\n    return typeof str === 'string' && str.length > 0;\n  }\n\n  /**\n    @module @ember-data/store\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  // support IE11\n  var CRYPTO = (() => {\n    var hasWindow = typeof window !== 'undefined';\n    var isFastBoot = typeof FastBoot !== 'undefined';\n\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      };\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  })(); // we might be able to optimize this by requesting more bytes than we need at a time\n\n\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   * Convert array of 16 byte values to UUID string format of the form:\n   * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n   */\n\n\n  var byteToHex = [];\n\n  for (var i = 0; i < 256; ++i) {\n    byteToHex[i] = (i + 0x100).toString(16).substr(1);\n  }\n\n  function bytesToUuid(buf) {\n    var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n\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\n  function uuidv4() {\n    var rnds = rng(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n    rnds[6] = rnds[6] & 0x0f | 0x40;\n    rnds[8] = rnds[8] & 0x3f | 0x80;\n    return bytesToUuid(rnds);\n  }\n\n  function freeze(obj) {\n    if (typeof Object.freeze === 'function') {\n      return Object.freeze(obj);\n    }\n\n    return obj;\n  }\n  /**\n    @module @ember-data/store\n  */\n\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\n  function defaultGenerationMethod(data, bucket) {\n    if (isNonEmptyString(data.lid)) {\n      return data.lid;\n    }\n\n    var {\n      type,\n      id\n    } = data;\n\n    if (isNonEmptyString(id)) {\n      return `@ember-data:lid-${normalizeModelName(type)}-${id}`;\n    }\n\n    return uuidv4();\n  }\n\n  var IdentifierCaches = new WeakMap();\n  function identifierCacheFor(store) {\n    var cache = IdentifierCaches.get(store);\n\n    if (cache === undefined) {\n      cache = new IdentifierCache();\n      IdentifierCaches.set(store, cache);\n    }\n\n    return cache;\n  }\n\n  function defaultEmptyCallback(...args) {}\n\n  var DEBUG_MAP;\n\n  {\n    DEBUG_MAP = new WeakMap();\n  }\n\n  class IdentifierCache {\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    constructor() {\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     * 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     * @internal\n     */\n\n\n    __configureMerge(method) {\n      this._merge = method || defaultEmptyCallback;\n    }\n    /**\n     * @internal\n     */\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\n        return resource;\n      }\n\n      var lid = coerceId(resource.lid);\n      var identifier = lid !== null ? this._cache.lids[lid] : undefined;\n\n      if (identifier !== undefined) {\n        return identifier;\n      }\n\n      var type = normalizeModelName(resource.type);\n      var id = coerceId(resource.id);\n\n      if (shouldGenerate === false) {\n        if (!type || !id) {\n          return;\n        }\n      } // `type` must always be present\n\n\n      {\n        if (!isNonEmptyString(resource.type)) {\n          throw new Error('resource.type needs to be a string');\n        }\n      }\n\n      var keyOptions = getTypeIndex(this._cache.types, type); // go straight for the stable RecordIdentifier key'd to `lid`\n\n      if (lid !== null) {\n        identifier = keyOptions.lid[lid];\n      } // we may have not seen this resource before\n      // but just in case we check our own secondary lookup (`id`)\n\n\n      if (identifier === undefined && id !== null) {\n        identifier = keyOptions.id[id];\n      }\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'); // 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\n\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\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); // populate our unique table\n\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\n            this._cache.lids[identifier.lid] = identifier; // populate our primary lookup table\n            // TODO consider having the `lid` cache be\n            // one level up\n\n            keyOptions.lid[identifier.lid] = identifier; // TODO exists temporarily to support `peekAll`\n            // but likely to move\n\n            keyOptions._allIdentifiers.push(identifier);\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\n\n          if (identifier.id !== null) {\n            keyOptions.id[identifier.id] = identifier; // 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     * 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     * @internal\n     */\n\n\n    peekRecordIdentifier(resource) {\n      return this._getRecordIdentifier(resource, false);\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    */\n\n\n    getOrCreateRecordIdentifier(resource) {\n      return this._getRecordIdentifier(resource, true);\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     */\n\n\n    createIdentifierForNewRecord(data) {\n      var newLid = this._generate(data, 'record');\n\n      var identifier = makeStableRecordIdentifier(data.id || null, data.type, newLid, 'record', true);\n      var keyOptions = getTypeIndex(this._cache.types, data.type); // populate our unique table\n\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\n      this._cache.lids[identifier.lid] = identifier; // populate the type+lid cache\n\n      keyOptions.lid[newLid] = identifier; // ensure a peekAll sees our new identifier too\n      // TODO move this outta here?\n\n      keyOptions._allIdentifiers.push(identifier);\n\n      return identifier;\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    */\n\n\n    updateRecordIdentifier(identifierObject, data) {\n      var identifier = this.getOrCreateRecordIdentifier(identifierObject);\n      var id = identifier.id;\n      var newId = coerceId(data.id);\n      var keyOptions = getTypeIndex(this._cache.types, identifier.type);\n      var existingIdentifier = detectMerge(this._cache.types, identifier, data, newId, this._cache.lids);\n\n      if (existingIdentifier) {\n        identifier = this._mergeRecordIdentifiers(keyOptions, identifier, existingIdentifier, data, newId);\n      }\n\n      id = identifier.id;\n      performRecordIdentifierUpdate(identifier, data, this._update);\n      newId = identifier.id; // add to our own secondary lookup table\n\n      if (id !== newId && newId !== null) {\n        var _keyOptions = getTypeIndex(this._cache.types, identifier.type);\n\n        _keyOptions.id[newId] = identifier;\n\n        if (id !== null) {\n          delete _keyOptions.id[id];\n        }\n      }\n\n      return identifier;\n    }\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\n      var abandoned = kept === identifier ? existingIdentifier : identifier; // cleanup the identifier we no longer need\n\n      this.forgetRecordIdentifier(abandoned); // ensure a secondary cache entry for this id for the identifier we do keep\n\n      keyOptions.id[newId] = kept; // ensure a secondary cache entry for this id for the abandoned identifier's type we do keep\n\n      var baseKeyOptions = getTypeIndex(this._cache.types, existingIdentifier.type);\n      baseKeyOptions.id[newId] = kept; // make sure that the `lid` on the data we are processing matches the lid we kept\n\n      data.lid = kept.lid;\n      return kept;\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    */\n\n\n    forgetRecordIdentifier(identifierObject) {\n      var identifier = this.getOrCreateRecordIdentifier(identifierObject);\n      var keyOptions = getTypeIndex(this._cache.types, identifier.type);\n\n      if (identifier.id !== null) {\n        delete keyOptions.id[identifier.id];\n      }\n\n      delete this._cache.lids[identifier.lid];\n      delete keyOptions.lid[identifier.lid];\n\n      var index = keyOptions._allIdentifiers.indexOf(identifier);\n\n      keyOptions._allIdentifiers.splice(index, 1);\n\n      unmarkStableIdentifier(identifierObject);\n\n      this._forget(identifier, 'record');\n    }\n\n    destroy() {\n      this._reset();\n    }\n\n  }\n\n  function getTypeIndex(typeMap, type) {\n    var typeIndex = typeMap[type];\n\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\n    return typeIndex;\n  }\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    {\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\n        get id() {\n          return recordIdentifier.id;\n        },\n\n        get type() {\n          return recordIdentifier.type;\n        },\n\n        toString() {\n          var {\n            type,\n            id,\n            lid\n          } = recordIdentifier;\n          return `${clientOriginated ? '[CLIENT_ORIGINATED] ' : ''}${type}:${id} (${lid})`;\n        }\n\n      };\n      addSymbol(wrapper, DEBUG_CLIENT_ORIGINATED, clientOriginated);\n      addSymbol(wrapper, DEBUG_IDENTIFIER_BUCKET, bucket);\n      wrapper = freeze(wrapper);\n      markStableIdentifier(wrapper);\n      DEBUG_MAP.set(wrapper, recordIdentifier);\n      return wrapper;\n    }\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    {\n      // get the mutable instance behind our proxy wrapper\n      var wrapper = identifier;\n      identifier = DEBUG_MAP.get(wrapper);\n\n      if (lid !== undefined) {\n        var newLid = coerceId(lid);\n\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\n      if (id !== undefined) {\n        var newId = coerceId(id);\n\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          ( Ember.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      } // TODO consider just ignoring here to allow flexible polymorphic support\n\n\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\n      updateFn(wrapper, data, 'record');\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\n\n    if (id !== undefined) {\n      identifier.id = coerceId(id);\n    }\n  }\n\n  function detectMerge(typesCache, identifier, data, newId, lids) {\n    var {\n      id,\n      type,\n      lid\n    } = identifier;\n\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); // If the ids and type are the same but lid is not the same, we should trigger a merge of the identifiers\n\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; // 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\n        var _existingIdentifier2 = _keyOptions2.id[id];\n        return _existingIdentifier2 !== undefined ? _existingIdentifier2 : false;\n      }\n    }\n\n    return false;\n  }\n\n  function constructResource(type, id, lid) {\n    var trueId = coerceId(id);\n\n    if (!isNonEmptyString(trueId)) {\n      if (isNonEmptyString(lid)) {\n        return {\n          type,\n          id: trueId,\n          lid\n        };\n      }\n\n      throw new Error(`Expected either id or lid to be a valid string`);\n    }\n\n    if (isNonEmptyString(lid)) {\n      return {\n        type,\n        id: trueId,\n        lid\n      };\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    For more information see the [Ember.PromiseProxyMixin\n    documentation](/api/classes/Ember.PromiseProxyMixin.html).\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    @extends Ember.ArrayProxy\n    @uses Ember.PromiseProxyMixin\n  */\n  var PromiseArray = Ember.ArrayProxy.extend(Ember.PromiseProxyMixin, {\n    meta: Ember.computed.reads('content.meta')\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    For more information see the [Ember.PromiseProxyMixin\n    documentation](/api/classes/Ember.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    @extends Ember.ObjectProxy\n    @uses Ember.PromiseProxyMixin\n  */\n\n  var PromiseObject = Ember.ObjectProxy.extend(Ember.PromiseProxyMixin);\n  function promiseObject(promise, label) {\n    return PromiseObject.create({\n      promise: Ember.RSVP.Promise.resolve(promise, label)\n    });\n  }\n  function promiseArray(promise, label) {\n    return PromiseArray.create({\n      promise: Ember.RSVP.Promise.resolve(promise, label)\n    });\n  }\n\n  /**\n    @module @ember-data/store\n  */\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  var backburner = new Ember._Backburner(['normalizeRelationships', 'syncRelationships', 'finished']);\n\n  {\n    Ember.Test.registerWaiter(() => {\n      return !backburner.currentInstance && !backburner.hasTimers();\n    });\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  var SOURCE_POINTER_REGEXP = /^\\/?data\\/(attributes|relationships)\\/(.*)/;\n  var SOURCE_POINTER_PRIMARY_REGEXP = /^\\/?data/;\n  var PRIMARY_ATTRIBUTE_KEY = 'base';\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     const { errorsHashToArray } = DS;\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    @public\n    @param {Object} errors hash with errors as properties\n    @return {Array} array of errors in JSON-API format\n  */\n\n  function errorsHashToArray(errors) {\n    var out = [];\n\n    if (Ember.isPresent(errors)) {\n      Object.keys(errors).forEach(key => {\n        var messages = Ember.makeArray(errors[key]);\n\n        for (var i = 0; i < messages.length; i++) {\n          var title = 'Invalid Attribute';\n          var pointer = `/data/attributes/${key}`;\n\n          if (key === PRIMARY_ATTRIBUTE_KEY) {\n            title = 'Invalid Document';\n            pointer = `/data`;\n          }\n\n          out.push({\n            title: title,\n            detail: messages[i],\n            source: {\n              pointer: pointer\n            }\n          });\n        }\n      });\n    }\n\n    return out;\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    @public\n    @param {Array} errors array of errors in JSON-API format\n    @return {Object}\n  */\n\n  function errorsArrayToHash(errors) {\n    var out = {};\n\n    if (Ember.isPresent(errors)) {\n      errors.forEach(error => {\n        if (error.source && error.source.pointer) {\n          var key = error.source.pointer.match(SOURCE_POINTER_REGEXP);\n\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\n          if (key) {\n            out[key] = out[key] || [];\n            out[key].push(error.detail || error.title);\n          }\n        }\n      });\n    }\n\n    return out;\n  }\n\n  var RequestStateEnum;\n\n  (function (RequestStateEnum) {\n    RequestStateEnum[\"pending\"] = \"pending\";\n    RequestStateEnum[\"fulfilled\"] = \"fulfilled\";\n    RequestStateEnum[\"rejected\"] = \"rejected\";\n  })(RequestStateEnum || (RequestStateEnum = {}));\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  function recordDataFor(instance) {\n    var internalModel = instance._internalModel || instance.internalModel || instance;\n    return internalModel._recordData || null;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function relationshipsFor(instance) {\n    var i = instance; // TODO this cast is not safe but it is the assumption of the current\n    // state of the code. We need to update this class to handle CUSTOM_MODEL_CLASS\n    // requirements.\n\n    var recordData = i._internalModel._recordData;\n    return recordData._relationships;\n  }\n\n  function relationshipStateFor(instance, propertyName) {\n    return relationshipsFor(instance).get(propertyName);\n  }\n\n  /**\n    @class Snapshot\n    @private\n    @constructor\n    @param {Model} internalModel The model to create a snapshot from\n  */\n  class Snapshot {\n    constructor(options, identifier, _store) {\n      this._store = _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\n      var internalModel = this._internalModel = _store._internalModelForResource(identifier);\n\n      this.modelName = identifier.type;\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\n\n      if (internalModel.hasRecord) {\n        this._attributes;\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       */\n\n\n      this.id = identifier.id;\n      /**\n       A hash of adapter options\n       @property adapterOptions\n       @type {Object}\n       */\n\n      this.adapterOptions = options.adapterOptions;\n      this.include = options.include;\n      /**\n       The name of the type of the underlying record for this snapshot, as a string.\n        @property modelName\n       @type {String}\n       */\n\n      this.modelName = internalModel.modelName;\n\n      if (internalModel.hasRecord) {\n        this._changedAttributes = recordDataFor(internalModel).changedAttributes();\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     */\n\n\n    get record() {\n      return this._internalModel.getRecord();\n    }\n\n    get _attributes() {\n      if (this.__attributes !== null) {\n        return this.__attributes;\n      }\n\n      var record = this.record;\n      var attributes = this.__attributes = Object.create(null);\n      var attrs;\n\n      {\n        attrs = Object.keys(this._store._attributesDefinitionFor(this.modelName));\n      }\n\n      {\n        // When CUSTOM_MODEL_CLASS is false `record` must be DSModel\n        record.eachAttribute(keyName => attributes[keyName] = Ember.get(record, keyName));\n      }\n\n      return attributes;\n    }\n    /**\n     The type of the underlying record for this snapshot, as a Model.\n      @property type\n     @type {Model}\n     */\n\n\n    get type() {\n      return this._internalModel.modelClass;\n    }\n\n    get isNew() {\n      {\n        throw new Error('isNew is only available when custom model class ff is on');\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     */\n\n\n    attr(keyName) {\n      if (keyName in this._attributes) {\n        return this._attributes[keyName];\n      }\n\n      ( Ember.assert(`Model '${this.identifier}' has no attribute named '${keyName}' defined.`, false));\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     */\n\n\n    attributes() {\n      return Ember.assign({}, this._attributes);\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     */\n\n\n    changedAttributes() {\n      var changedAttributes = Object.create(null);\n\n      if (!this._changedAttributes) {\n        return changedAttributes;\n      }\n\n      var changedAttributeKeys = Object.keys(this._changedAttributes);\n\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\n      return changedAttributes;\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     @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\n\n    belongsTo(keyName, options) {\n      var returnModeIsId = !!(options && options.id);\n      var relationship;\n      var inverseInternalModel;\n      var result;\n      var store = this._internalModel.store;\n\n      if (returnModeIsId === true && keyName in this._belongsToIds) {\n        return this._belongsToIds[keyName];\n      }\n\n      if (returnModeIsId === false && keyName in this._belongsToRelationships) {\n        return this._belongsToRelationships[keyName];\n      }\n\n      var relationshipMeta = store._relationshipMetaFor(this.modelName, null, keyName);\n\n      ( !(relationshipMeta && relationshipMeta.kind === 'belongsTo') && Ember.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      // TODO @runspired instead of casting here either generify relationship state or\n      // provide a mechanism on relationship state by which to narrow.\n\n      relationship = relationshipStateFor(this, keyName);\n      var value = relationship.getData();\n      var data = value && value.data;\n      inverseInternalModel = data ? store._internalModelForResource(data) : null;\n\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\n      if (returnModeIsId) {\n        this._belongsToIds[keyName] = result;\n      } else {\n        this._belongsToRelationships[keyName] = result;\n      }\n\n      return result;\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     @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\n\n    hasMany(keyName, options) {\n      var returnModeIsIds = !!(options && options.ids);\n      var relationship;\n      var results;\n      var cachedIds = this._hasManyIds[keyName];\n      var cachedSnapshots = this._hasManyRelationships[keyName];\n\n      if (returnModeIsIds === true && keyName in this._hasManyIds) {\n        return cachedIds;\n      }\n\n      if (returnModeIsIds === false && keyName in this._hasManyRelationships) {\n        return cachedSnapshots;\n      }\n\n      var store = this._internalModel.store;\n\n      var relationshipMeta = store._relationshipMetaFor(this.modelName, null, keyName);\n\n      ( !(relationshipMeta && relationshipMeta.kind === 'hasMany') && Ember.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      // TODO @runspired instead of casting here either generify relationship state or\n      // provide a mechanism on relationship state by which to narrow.\n\n      relationship = relationshipStateFor(this, keyName);\n      var value = relationship.getData();\n\n      if (value.data) {\n        results = [];\n        value.data.forEach(member => {\n          var internalModel = store._internalModelForResource(member);\n\n          if (!internalModel.isDeleted()) {\n            if (returnModeIsIds) {\n              results.push(member.id);\n            } else {\n              results.push(internalModel.createSnapshot());\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\n\n      if (returnModeIsIds) {\n        this._hasManyIds[keyName] = results;\n      } else {\n        this._hasManyRelationships[keyName] = results;\n      }\n\n      return results;\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    */\n\n\n    eachAttribute(callback, binding) {\n      {\n        // in the non CUSTOM_MODEL_CLASS world we only have DSModel instances\n        this.record.eachAttribute(callback, binding);\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    */\n\n\n    eachRelationship(callback, binding) {\n      {\n        // in the non CUSTOM_MODEL_CLASS world we only have DSModel instances\n        this.record.eachRelationship(callback, binding);\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          var data = snapshot.serialize({ includeId: true });\n          var 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     */\n\n\n    serialize(options) {\n      return this._store.serializerFor(this.modelName).serialize(this, options);\n    }\n\n  }\n\n  /**\n    @module @ember-data/store\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) {\n    return !(Ember.get(object, 'isDestroyed') || Ember.get(object, 'isDestroying'));\n  }\n  function guardDestroyedStore(promise, store, label) {\n    var token;\n\n    {\n      token = store._trackAsyncRequestStart(label);\n    }\n\n    var wrapperPromise = Ember.RSVP.resolve(promise, label).then(v => promise);\n    return _guard(wrapperPromise, () => {\n      {\n        store._trackAsyncRequestEnd(token);\n      }\n\n      return _objectIsAlive(store);\n    });\n  }\n\n  /**\n    @module @ember-data/store\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    @method validateDocumentStructure\n    @param {Object} doc JSON API document\n    @return {array} An array of errors found in the document structure\n  */\n  function validateDocumentStructure(doc) {\n    var errors = [];\n\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\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\n      if ('meta' in doc) {\n        if (typeof doc.meta !== 'object') {\n          errors.push('meta must be an object');\n        }\n      }\n\n      if ('errors' in doc) {\n        if (!Array.isArray(doc.errors)) {\n          errors.push('errors must be an array');\n        }\n      }\n\n      if ('links' in doc) {\n        if (typeof doc.links !== 'object') {\n          errors.push('links must be an object');\n        }\n      }\n\n      if ('jsonapi' in doc) {\n        if (typeof doc.jsonapi !== 'object') {\n          errors.push('jsonapi must be an object');\n        }\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\n    return errors;\n  }\n  /*\n    This is a helper method that always returns a JSON-API Document.\n\n    @method normalizeResponseHelper\n    @param {Serializer} serializer\n    @param {Store} store\n    @param {subclass of Model} modelClass\n    @param {Object} payload\n    @param {String|Number} id\n    @param {String} requestType\n    @return {Object} JSON-API Document\n  */\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    {\n      validationErrors = validateDocumentStructure(normalizedResponse);\n    }\n\n    ( !(validationErrors.length === 0) && Ember.assert(`normalizeResponse must return a valid JSON API document:\\n\\t* ${validationErrors.join('\\n\\t* ')}`, validationErrors.length === 0));\n    return normalizedResponse;\n  }\n\n  // TODO @runspired symbol shouldn't be in ts-interfaces\n\n  var emberRun = Ember.run.backburner;\n\n  /**\n    @module @ember-data/store\n  */\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   @private\n   */\n  class InternalModelMap {\n    constructor(modelName) {\n      this.modelName = modelName;\n      this._idToModel = Object.create(null);\n      this._models = [];\n      this._metadata = null;\n    }\n    /**\n     * @method get\n     * @param id {String}\n     * @return {InternalModel}\n     */\n\n\n    get(id) {\n      return this._idToModel[id] || null;\n    }\n\n    has(id) {\n      return !!this._idToModel[id];\n    }\n\n    get length() {\n      return this._models.length;\n    }\n\n    set(id, internalModel) {\n      ( !(typeof id === 'string' && id.length > 0) && Ember.assert(`You cannot index an internalModel by an empty id'`, typeof id === 'string' && id.length > 0));\n      ( !(internalModel instanceof InternalModel) && Ember.assert(`You cannot set an index for an internalModel to something other than an internalModel`, internalModel instanceof InternalModel));\n      ( !(this.contains(internalModel)) && Ember.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) && Ember.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\n    add(internalModel, id) {\n      ( !(!this.contains(internalModel)) && Ember.assert(`You cannot re-add an already present InternalModel to the InternalModelMap.`, !this.contains(internalModel)));\n\n      if (id) {\n        ( !(!this.has(id) || this.get(id) === internalModel) && Ember.assert(`Duplicate InternalModel for ${this.modelName}:${id} detected.`, !this.has(id) || this.get(id) === internalModel));\n        this._idToModel[id] = internalModel;\n      }\n\n      this._models.push(internalModel);\n    }\n\n    remove(internalModel, id) {\n      delete this._idToModel[id];\n\n      var loc = this._models.indexOf(internalModel);\n\n      if (loc !== -1) {\n        this._models.splice(loc, 1);\n      }\n    }\n\n    contains(internalModel) {\n      return this._models.indexOf(internalModel) !== -1;\n    }\n    /**\n     An array of all models of this modelName\n     @property models\n     @type Array\n     */\n\n\n    get models() {\n      return this._models;\n    }\n    /**\n     * meta information about internalModels\n     * @property metadata\n     * @type Object\n     */\n\n\n    get metadata() {\n      return this._metadata || (this._metadata = Object.create(null));\n    }\n    /**\n     Destroy all models in the internalModelTest and wipe metadata.\n      @method clear\n     */\n\n\n    clear() {\n      var internalModels = this._models;\n      this._models = [];\n\n      for (var i = 0; i < internalModels.length; i++) {\n        var internalModel = internalModels[i];\n        internalModel.unloadRecord();\n      }\n\n      this._metadata = null;\n    }\n\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   `IdentityMap` is a custom storage map for records by modelName\n   used by `Store`.\n\n   @class IdentityMap\n   @private\n   */\n  class IdentityMap {\n    constructor() {\n      this._map = Object.create(null);\n    }\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     @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\n      if (map === undefined) {\n        map = this._map[modelName] = new InternalModelMap(modelName);\n      }\n\n      return map;\n    }\n    /**\n     Clears the contents of all known `RecordMaps`, but does\n     not remove the InternalModelMap instances.\n      @method clear\n     */\n\n\n    clear() {\n      var map = this._map;\n      var keys = Object.keys(map);\n\n      for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        map[key].clear();\n      }\n    }\n\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  var FactoryCache = new WeakMap();\n  var RecordCache = new WeakMap();\n  function peekRecordIdentifier(record) {\n    return RecordCache.get(record);\n  }\n  function recordIdentifierFor(record) {\n    var identifier = RecordCache.get(record);\n\n    if ( identifier === undefined) {\n      throw new Error(`${record} is not a record instantiated by @ember-data/store`);\n    }\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    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\n    RecordCache.set(record, identifier);\n  }\n  function internalModelFactoryFor(store) {\n    var factory = FactoryCache.get(store);\n\n    if (factory === undefined) {\n      factory = new InternalModelFactory(store);\n      FactoryCache.set(store, factory);\n    }\n\n    return factory;\n  }\n  /**\n   * The InternalModelFactory handles the lifecyle of\n   * instantiating, caching, and destroying InternalModel\n   * instances.\n   *\n   * @internal\n   */\n\n  class InternalModelFactory {\n    constructor(store) {\n      this.store = store;\n      this._identityMap = void 0;\n      this._newlyCreated = void 0;\n      this.identifierCache = void 0;\n      this.identifierCache = identifierCacheFor(store);\n\n      this.identifierCache.__configureMerge((identifier, matchedIdentifier, resourceData) => {\n        var intendedIdentifier = identifier;\n\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\n        var altIdentifier = identifier === intendedIdentifier ? matchedIdentifier : identifier; // check for duplicate InternalModel's\n\n        var map = this.modelMapFor(identifier.type);\n        var im = map.get(intendedIdentifier.lid);\n        var otherIm = map.get(altIdentifier.lid); // 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\n        if (im && otherIm && im.hasRecord && otherIm.hasRecord) {\n          throw new Error(`Failed to update the 'id' for the RecordIdentifier '${identifier}' to '${resourceData.id}', because that id is already in use by '${matchedIdentifier}'`);\n        } // remove otherIm from cache\n\n\n        if (otherIm) {\n          map.remove(otherIm, altIdentifier.lid);\n        }\n\n        if (im === null && otherIm === null) {\n          // nothing more to do\n          return intendedIdentifier; // 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); // im.destroy();\n          }\n\n          im = otherIm; // TODO do we need to notify the id change?\n\n          im._id = intendedIdentifier.id;\n          map.add(im, intendedIdentifier.lid); // just use im\n        }\n\n        return intendedIdentifier;\n      });\n\n      this._identityMap = new IdentityMap();\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     * @internal\n     */\n\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\n      var identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      var internalModel = this.peek(identifier);\n\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\n        return internalModel;\n      }\n\n      return this._build(identifier, false);\n    }\n    /**\n     * Peek the InternalModel for a given { type, id, lid }.\n     *\n     * If an InternalModel does not exist, return `null`.\n     *\n     * @internal\n     */\n\n\n    peek(identifier) {\n      return this.modelMapFor(identifier.type).get(identifier.lid);\n    }\n\n    getByResource(resource) {\n      var normalizedResource = constructResource(resource.type, resource.id, resource.lid);\n      return this.lookup(normalizedResource);\n    }\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\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\n      var oldId = internalModel.id;\n      var modelName = internalModel.modelName; // ID absolutely can't be missing if the oldID is empty (missing Id in response for a new record)\n\n      ( !(!(id === null && oldId === null)) && Ember.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\n      ( !(!(oldId !== null && id !== oldId)) && Ember.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\n      if (oldId !== null && id === null) {\n        ( Ember.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\n      var existingInternalModel = this.peekById(modelName, id);\n      ( !(Ember.isNone(existingInternalModel) || existingInternalModel === internalModel) && Ember.assert(`'${modelName}' was saved to the server, but the response returned the new id '${id}', which has already been used with another record.'`, Ember.isNone(existingInternalModel) || existingInternalModel === internalModel));\n\n      if (identifier.id === null) {\n        this.identifierCache.updateRecordIdentifier(identifier, {\n          type,\n          id\n        });\n      }\n\n      internalModel.setId(id);\n    }\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\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\n      return internalModel;\n    }\n\n    build(newResourceInfo) {\n      return this._build(newResourceInfo, true);\n    }\n\n    _build(resource, isCreate = false) {\n      if (isCreate === true && resource.id) {\n        var existingInternalModel = this.peekById(resource.type, resource.id);\n        ( !(!existingInternalModel) && Ember.assert(`The id ${resource.id} has already been used with another '${resource.type}' record.`, !existingInternalModel));\n      }\n\n      var {\n        identifierCache\n      } = this;\n      var identifier;\n\n      if (isCreate === true) {\n        identifier = identifierCache.createIdentifierForNewRecord(resource);\n      } else {\n        identifier = resource;\n      } // lookupFactory should really return an object that creates\n      // instances with the injections applied\n\n\n      var internalModel = new InternalModel(this.store, identifier);\n      this.modelMapFor(resource.type).add(internalModel, identifier.lid);\n      return internalModel;\n    }\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\n    modelMapFor(type) {\n      return this._identityMap.retrieve(type);\n    }\n\n    _newlyCreatedModelsFor(type) {\n      return this._newlyCreated.retrieve(type);\n    }\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  function isResourceIdentiferWithRelatedLinks(value) {\n    return value && value.links && value.links.related;\n  }\n\n  var INTERNAL_MODELS = new WeakMap();\n  /**\n    This is the baseClass for the different References\n    like RecordReference/HasManyReference/BelongsToReference\n\n   @class Reference\n   */\n\n  class Reference {\n    constructor(store, internalModel) {\n      this.store = store;\n      this.recordData = void 0;\n      INTERNAL_MODELS.set(this, internalModel);\n    }\n\n    _resource() {}\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     @return {String} The name of the remote type. This should either be \"link\" or \"ids\"\n     */\n\n\n    remoteType() {\n      var value = this._resource();\n\n      if (isResourceIdentiferWithRelatedLinks(value)) {\n        return 'link';\n      }\n\n      return 'id';\n    }\n    /**\n     The link Ember Data will use to fetch or reload this belongs-to\n     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: '/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     @return {String} The link Ember Data will use to fetch or reload this belongs-to relationship.\n     */\n\n\n    link() {\n      var link;\n\n      var resource = this._resource();\n\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\n      return link || null;\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     @return {Object} The meta information for the belongs-to relationship.\n     */\n\n\n    meta() {\n      var meta = null;\n\n      var resource = this._resource();\n\n      if (resource && resource.meta && typeof resource.meta === 'object') {\n        meta = resource.meta;\n      }\n\n      return meta;\n    }\n\n  }\n\n  {\n    Reference.prototype.links = function links() {\n      var resource = this._resource();\n\n      return resource && resource.links ? resource.links : null;\n    };\n  }\n\n  {\n    Object.defineProperty(Reference.prototype, 'internalModel', {\n      get() {\n        ( Ember.deprecate('Accessing the internalModel property of Reference is deprecated', false, {\n          id: 'ember-data:reference-internal-model',\n          until: '3.21'\n        }));\n        return INTERNAL_MODELS.get(this);\n      }\n\n    });\n  }\n\n  /**\n    @module @ember-data/store\n  */\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   @extends Reference\n   */\n\n  class BelongsToReference extends Reference {\n    constructor(store, parentInternalModel, belongsToRelationship, key) {\n      super(store, parentInternalModel);\n      this.key = key;\n      this.belongsToRelationship = belongsToRelationship;\n      this.type = belongsToRelationship.relationshipMeta.type;\n      this.parent = parentInternalModel.recordReference;\n      this.parentInternalModel = parentInternalModel; // TODO inverse\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     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              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     @return {String} The id of the record in this belongsTo relationship.\n     */\n\n\n    id() {\n      var id = null;\n\n      var resource = this._resource();\n\n      if (resource && resource.data) {\n        id = resource.data.id;\n      }\n\n      return id;\n    }\n\n    _resource() {\n      var _INTERNAL_MODELS$get;\n\n      return (_INTERNAL_MODELS$get = INTERNAL_MODELS.get(this)) === null || _INTERNAL_MODELS$get === void 0 ? void 0 : _INTERNAL_MODELS$get._recordData.getBelongsTo(this.key);\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 conanical 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 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              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     @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\n\n    push(objectOrPromise) {\n      // TODO deprecate thenable support\n      return Ember.RSVP.resolve(objectOrPromise).then(data => {\n        var record;\n\n        if ( peekRecordIdentifier(data)) {\n          ( Ember.deprecate('Pushing a record into a BelongsToReference is deprecated', false, {\n            id: 'ember-data:belongs-to-reference-push-record',\n            until: '4.0'\n          }));\n          record = data;\n        } else {\n          record = this.store.push(data);\n        }\n\n        Debug.assertPolymorphicType(INTERNAL_MODELS.get(this), this.belongsToRelationship.relationshipMeta, record._internalModel, this.store); //TODO Igor cleanup, maybe move to relationship push\n\n        this.belongsToRelationship.setCanonicalRecordData(recordDataFor(record));\n        return record;\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 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              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     @return {Model} the record in this relationship\n     */\n\n\n    value() {\n      var store = this.parentInternalModel.store;\n\n      var resource = this._resource();\n\n      if (resource && resource.data) {\n        var inverseInternalModel = store._internalModelForResource(resource.data);\n\n        if (inverseInternalModel && inverseInternalModel.isLoaded()) {\n          return inverseInternalModel.getRecord();\n        }\n      }\n\n      return null;\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 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              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     export default ApplicationAdapter.extend({\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     @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\n\n    load(options) {\n      return this.parentInternalModel.getBelongsTo(this.key, options);\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 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              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     @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\n\n    reload(options) {\n      return this.parentInternalModel.reloadBelongsTo(this.key, options).then(internalModel => {\n        return this.value();\n      });\n    }\n\n  }\n\n  /**\n    @module @ember-data/store\n  */\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   @extends Reference\n   */\n\n  class HasManyReference extends Reference {\n    constructor(store, parentInternalModel, hasManyRelationship, key) {\n      super(store, parentInternalModel);\n      this.key = key;\n      this.hasManyRelationship = hasManyRelationship;\n      this.type = hasManyRelationship.relationshipMeta.type;\n      this.parent = parentInternalModel.recordReference;\n      this.parentInternalModel = parentInternalModel; // TODO inverse\n    }\n\n    _resource() {\n      var _INTERNAL_MODELS$get;\n\n      return (_INTERNAL_MODELS$get = INTERNAL_MODELS.get(this)) === null || _INTERNAL_MODELS$get === void 0 ? void 0 : _INTERNAL_MODELS$get._recordData.getHasMany(this.key);\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     @return {String} The name of the remote type. This should either be `link` or `ids`\n     */\n\n\n    remoteType() {\n      var value = this._resource();\n\n      if (value && value.links && value.links.related) {\n        return 'link';\n      }\n\n      return 'ids';\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 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      commentsRef.ids(); // ['1']\n     ```\n      @method ids\n     @return {Array} The ids in this has-many relationship\n     */\n\n\n    ids() {\n      var resource = this._resource();\n\n      var ids = [];\n\n      if (resource.data) {\n        ids = resource.data.map(data => data.id);\n      }\n\n      return ids;\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 Model.extend({\n       comments: hasMany({ async: true })\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     @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\n\n    push(objectOrPromise) {\n      return Ember.RSVP.resolve(objectOrPromise).then(payload => {\n        var array = payload;\n\n        if (typeof payload === 'object' && payload.data) {\n          array = payload.data;\n        }\n\n        var internalModel = INTERNAL_MODELS.get(this);\n        var internalModels = array.map(obj => {\n          var record = this.store.push(obj);\n\n          {\n            var relationshipMeta = this.hasManyRelationship.relationshipMeta;\n            Debug.assertPolymorphicType(internalModel, relationshipMeta, record._internalModel, this.store);\n          }\n\n          return recordDataFor(record);\n        });\n        this.hasManyRelationship.computeChanges(internalModels);\n        return internalModel.getHasMany(this.hasManyRelationship.key); // TODO IGOR it seems wrong that we were returning the many array here\n        //return this.hasManyRelationship.manyArray;\n      });\n    }\n\n    _isLoaded() {\n      var hasRelationshipDataProperty = this.hasManyRelationship.hasAnyRelationshipData;\n\n      if (!hasRelationshipDataProperty) {\n        return false;\n      }\n\n      var members = this.hasManyRelationship.members.toArray(); //TODO Igor cleanup\n\n      return members.every(recordData => {\n        var store = this.parentInternalModel.store;\n\n        var internalModel = store._internalModelForResource(recordData.getResourceIdentifier());\n\n        return internalModel.isLoaded() === true;\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 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      post.get('comments').then(function(comments) {\n       commentsRef.value() === comments\n     })\n     ```\n      @method value\n     @return {ManyArray}\n     */\n\n\n    value() {\n      var internalModel = INTERNAL_MODELS.get(this);\n\n      if (this._isLoaded()) {\n        return internalModel.getManyArray(this.key);\n      }\n\n      return null;\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 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      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     @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\n\n    load(options) {\n      var internalModel = INTERNAL_MODELS.get(this);\n      return internalModel.getHasMany(this.key, options);\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 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      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     @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\n\n    reload(options) {\n      var internalModel = INTERNAL_MODELS.get(this);\n      return internalModel.reloadHasMany(this.key, options);\n    }\n\n  }\n\n  /**\n    @module @ember-data/store\n  */\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     @extends Reference\n  */\n  class RecordReference extends Reference {\n    get type() {\n      return INTERNAL_MODELS.get(this).modelName;\n    }\n\n    get _id() {\n      return INTERNAL_MODELS.get(this).id;\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       @return {String} The id of the record.\n    */\n\n\n    id() {\n      return this._id;\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       @return {String} 'identity'\n    */\n\n\n    remoteType() {\n      return 'identity';\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      @param objectOrPromise a JSON:API ResourceDocument or a promise resolving to one\n      @return a promise for the value (record or relationship)\n    */\n\n\n    push(objectOrPromise) {\n      return Ember.RSVP.resolve(objectOrPromise).then(data => {\n        return this.store.push(data);\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       @return {Model} the record for this RecordReference\n    */\n\n\n    value() {\n      if (this._id !== null) {\n        var internalModel = INTERNAL_MODELS.get(this);\n\n        if (internalModel && internalModel.isLoaded()) {\n          return internalModel.getRecord();\n        }\n      }\n\n      return null;\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       @return {Promise<record>} the record for this RecordReference\n    */\n\n\n    load() {\n      if (this._id !== null) {\n        return this.store.findRecord(this.type, this._id);\n      }\n\n      throw new Error(`Unable to fetch record of type ${this.type} without an id`);\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       @return {Promise<record>} the record for this RecordReference\n    */\n\n\n    reload() {\n      if (this._id !== null) {\n        return this.store.findRecord(this.type, this._id, {\n          reload: true\n        });\n      }\n\n      throw new Error(`Unable to fetch record of type ${this.type} without an id`);\n    }\n\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /*\n    This file encapsulates the various states that a record can transition\n    through during its lifecycle.\n  */\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  */\n  function didSetProperty(internalModel, context) {\n    if (context.isDirty) {\n      internalModel.send('becomeDirty');\n    } else {\n      internalModel.send('propertyWasReset');\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  // 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\n\n  var DirtyState = {\n    initialState: 'uncommitted',\n    // FLAGS\n    isDirty: true,\n    // SUBSTATES\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\n      //TODO(Igor) reloading now triggers a\n      //loadingData event, though it seems fine?\n      loadingData() {},\n\n      propertyWasReset(internalModel, name) {\n        if (!internalModel.hasChangedAttributes()) {\n          internalModel.send('rolledBack');\n        }\n      },\n\n      pushedData(internalModel) {\n        if (!internalModel.hasChangedAttributes()) {\n          internalModel.transitionTo('loaded.saved');\n        }\n      },\n\n      becomeDirty() {},\n\n      willCommit(internalModel) {\n        internalModel.transitionTo('inFlight');\n      },\n\n      reloadRecord(internalModel, {\n        resolve,\n        options\n      }) {\n        resolve(internalModel.store._reloadRecord(internalModel, options));\n      },\n\n      rolledBack(internalModel) {\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('rolledBack');\n      },\n\n      becameInvalid(internalModel) {\n        internalModel.transitionTo('invalid');\n      },\n\n      rollback(internalModel) {\n        internalModel.rollbackAttributes();\n        internalModel.triggerLater('ready');\n      }\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\n      becomeDirty() {},\n\n      pushedData() {},\n\n      unloadRecord: assertAgainstUnloadRecord,\n\n      // TODO: More robust semantics around save-while-in-flight\n      willCommit() {},\n\n      didCommit(internalModel) {\n        internalModel.transitionTo('saved');\n        internalModel.send('invokeLifecycleCallbacks', this.dirtyType);\n      },\n\n      rolledBack(internalModel) {\n        internalModel.triggerLater('rolledBack');\n      },\n\n      becameInvalid(internalModel) {\n        internalModel.transitionTo('invalid');\n        internalModel.send('invokeLifecycleCallbacks');\n      },\n\n      becameError(internalModel) {\n        internalModel.transitionTo('uncommitted');\n        internalModel.triggerLater('becameError', internalModel);\n      }\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\n      // EVENTS\n      deleteRecord(internalModel) {\n        internalModel.transitionTo('deleted.uncommitted');\n      },\n\n      didSetProperty(internalModel, context) {\n        internalModel.removeErrorMessageFromAttribute(context.name);\n        didSetProperty(internalModel, context);\n\n        if (!internalModel.hasErrors()) {\n          this.becameValid(internalModel);\n        }\n      },\n\n      becameInvalid() {},\n\n      becomeDirty() {},\n\n      pushedData() {},\n\n      willCommit(internalModel) {\n        internalModel.clearErrorMessages();\n        internalModel.transitionTo('inFlight');\n      },\n\n      rolledBack(internalModel) {\n        internalModel.clearErrorMessages();\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('ready');\n      },\n\n      becameValid(internalModel) {\n        internalModel.transitionTo('uncommitted');\n      },\n\n      invokeLifecycleCallbacks(internalModel) {\n        internalModel.triggerLater('becameInvalid', internalModel);\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\n    for (var prop in object) {\n      value = object[prop];\n\n      if (value && typeof value === 'object') {\n        clone[prop] = deepClone(value);\n      } else {\n        clone[prop] = value;\n      }\n    }\n\n    return clone;\n  }\n\n  function mixin(original, hash) {\n    for (var prop in hash) {\n      original[prop] = hash[prop];\n    }\n\n    return original;\n  }\n\n  function dirtyState(options) {\n    var newState = deepClone(DirtyState);\n    return mixin(newState, options);\n  }\n\n  var createdState = dirtyState({\n    dirtyType: 'created',\n    // FLAGS\n    isNew: true,\n\n    setup(internalModel) {\n      internalModel.updateRecordArrays();\n    }\n\n  });\n\n  createdState.invalid.rolledBack = function (internalModel) {\n    internalModel.transitionTo('deleted.saved');\n    internalModel.triggerLater('rolledBack');\n  };\n\n  createdState.uncommitted.rolledBack = function (internalModel) {\n    internalModel.transitionTo('deleted.saved');\n    internalModel.triggerLater('rolledBack');\n  };\n\n  var updatedState = dirtyState({\n    dirtyType: 'updated'\n  });\n\n  function createdStateDeleteRecord(internalModel) {\n    internalModel.transitionTo('deleted.saved');\n    internalModel.send('invokeLifecycleCallbacks');\n  }\n\n  createdState.uncommitted.deleteRecord = createdStateDeleteRecord;\n  createdState.invalid.deleteRecord = createdStateDeleteRecord;\n\n  createdState.uncommitted.rollback = function (internalModel) {\n    DirtyState.uncommitted.rollback.apply(this, arguments);\n    internalModel.transitionTo('deleted.saved');\n  };\n\n  createdState.uncommitted.pushedData = function (internalModel) {\n    internalModel.transitionTo('loaded.updated.uncommitted');\n    internalModel.triggerLater('didLoad');\n  };\n\n  createdState.uncommitted.propertyWasReset = function () {};\n\n  function assertAgainstUnloadRecord(internalModel) {\n    ( Ember.assert('You can only unload a record which is not inFlight. `' + internalModel + '`', false));\n  }\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\n  updatedState.inFlight.unloadRecord = assertAgainstUnloadRecord;\n\n  updatedState.uncommitted.deleteRecord = function (internalModel) {\n    internalModel.transitionTo('deleted.uncommitted');\n  };\n\n  updatedState.invalid.rolledBack = function (internalModel) {\n    internalModel.clearErrorMessages();\n    internalModel.transitionTo('loaded.saved');\n    internalModel.triggerLater('rolledBack');\n  };\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\n    // DEFAULT EVENTS\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\n    unloadRecord(internalModel) {},\n\n    propertyWasReset() {},\n\n    // SUBSTATES\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\n      // EVENTS\n      loadingData(internalModel, promise) {\n        {\n          internalModel._promiseProxy = promise;\n        }\n\n        internalModel.transitionTo('loading');\n      },\n\n      loadedData(internalModel) {\n        internalModel.transitionTo('loaded.created.uncommitted');\n        internalModel.triggerLater('ready');\n      },\n\n      pushedData(internalModel) {\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('didLoad');\n        internalModel.triggerLater('ready');\n      },\n\n      // Record is already in an empty state, triggering transition to empty here\n      // produce an error.\n      notFound() {}\n\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\n      exit(internalModel) {\n        internalModel._promiseProxy = null;\n      },\n\n      loadingData() {},\n\n      // EVENTS\n      pushedData(internalModel) {\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('didLoad');\n        internalModel.triggerLater('ready'); //TODO this seems out of place here\n\n        internalModel.didCleanError();\n      },\n\n      becameError(internalModel) {\n        internalModel.triggerLater('becameError', internalModel);\n      },\n\n      notFound(internalModel) {\n        internalModel.transitionTo('empty');\n      }\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\n      //TODO(Igor) Reloading now triggers a loadingData event,\n      //but it should be ok?\n      loadingData() {},\n\n      // SUBSTATES\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\n        // EVENTS\n        didSetProperty,\n\n        pushedData() {},\n\n        becomeDirty(internalModel) {\n          internalModel.transitionTo('updated.uncommitted');\n        },\n\n        willCommit(internalModel) {\n          internalModel.transitionTo('updated.inFlight');\n        },\n\n        reloadRecord(internalModel, {\n          resolve,\n          options\n        }) {\n          {\n            resolve(internalModel.store._reloadRecord(internalModel, options));\n          }\n        },\n\n        deleteRecord(internalModel) {\n          internalModel.transitionTo('deleted.uncommitted');\n        },\n\n        unloadRecord(internalModel) {},\n\n        didCommit() {},\n\n        // loaded.saved.notFound would be triggered by a failed\n        // `reload()` on an unchanged record\n        notFound() {}\n\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\n      // TRANSITIONS\n      setup(internalModel) {\n        internalModel.updateRecordArrays();\n      },\n\n      // SUBSTATES\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        willCommit(internalModel) {\n          internalModel.transitionTo('inFlight');\n        },\n\n        rollback(internalModel) {\n          internalModel.rollbackAttributes();\n          internalModel.triggerLater('ready');\n        },\n\n        pushedData() {},\n\n        becomeDirty() {},\n\n        deleteRecord() {},\n\n        rolledBack(internalModel) {\n          internalModel.transitionTo('loaded.saved');\n          internalModel.triggerLater('ready');\n          internalModel.triggerLater('rolledBack');\n        }\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        unloadRecord: assertAgainstUnloadRecord,\n\n        // TODO: More robust semantics around save-while-in-flight\n        willCommit() {},\n\n        didCommit(internalModel) {\n          internalModel.transitionTo('saved');\n          internalModel.send('invokeLifecycleCallbacks');\n        },\n\n        becameError(internalModel) {\n          internalModel.transitionTo('uncommitted');\n          internalModel.triggerLater('becameError', internalModel);\n        },\n\n        becameInvalid(internalModel) {\n          internalModel.transitionTo('invalid');\n          internalModel.triggerLater('becameInvalid', internalModel);\n        }\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\n        setup(internalModel) {\n          internalModel.removeFromInverseRelationships();\n        },\n\n        invokeLifecycleCallbacks(internalModel) {\n          internalModel.triggerLater('didDelete', internalModel);\n          internalModel.triggerLater('didCommit', internalModel);\n        },\n\n        willCommit() {},\n\n        didCommit() {},\n\n        pushedData() {}\n\n      },\n      invalid: {\n        isValid: false,\n\n        didSetProperty(internalModel, context) {\n          internalModel.removeErrorMessageFromAttribute(context.name);\n          didSetProperty(internalModel, context);\n\n          if (!internalModel.hasErrors()) {\n            this.becameValid(internalModel);\n          }\n        },\n\n        becameInvalid() {},\n\n        becomeDirty() {},\n\n        deleteRecord() {},\n\n        willCommit() {},\n\n        rolledBack(internalModel) {\n          internalModel.clearErrorMessages();\n          internalModel.transitionTo('loaded.saved');\n          internalModel.triggerLater('ready');\n        },\n\n        becameValid(internalModel) {\n          internalModel.transitionTo('uncommitted');\n        }\n\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\n      internalModel.triggerLater('didCommit', internalModel);\n    }\n\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\n    for (var prop in object) {\n      if (!Object.prototype.hasOwnProperty.call(object, prop) || prop === 'parentState' || prop === 'stateName') {\n        continue;\n      }\n\n      if (typeof object[prop] === 'object') {\n        object[prop] = wireState(object[prop], object, name + '.' + prop);\n      }\n    }\n\n    return object;\n  }\n\n  var RootState$1 = wireState(RootState, null, 'root');\n\n  /**\n    @module @ember-data/store\n  */\n  // once the presentation logic is moved into the Model package we can make\n  // eliminate these lossy and redundant helpers\n  function relationshipsFor$1(instance) {\n    var recordData = recordDataFor(instance);\n    return recordData._relationships;\n  }\n\n  function relationshipStateFor$1(instance, propertyName) {\n    return relationshipsFor$1(instance).get(propertyName);\n  }\n\n  var {\n    hasOwnProperty\n  } = Object.prototype;\n  var ManyArray;\n  var PromiseBelongsTo;\n  var PromiseManyArray;\n  var _found = false;\n\n  var _getModelPackage;\n\n  {\n    _getModelPackage = function () {\n      if (!_found) {\n        var modelPackage = require('@ember-data/model/-private');\n\n        ({\n          ManyArray,\n          PromiseBelongsTo,\n          PromiseManyArray\n        } = modelPackage);\n\n        if (ManyArray && PromiseBelongsTo && PromiseManyArray) {\n          _found = true;\n        }\n      }\n\n      return _found;\n    };\n  } // TODO this should be integrated with the code removal so we can use it together with the if condition\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\n  var _extractPivotNameCache = Object.create(null);\n\n  var _splitOnDotCache = Object.create(null);\n\n  function splitOnDot(name) {\n    return _splitOnDotCache[name] || (_splitOnDotCache[name] = name.split('.'));\n  }\n\n  function extractPivotName(name) {\n    return _extractPivotNameCache[name] || (_extractPivotNameCache[name] = splitOnDot(name)[0]);\n  }\n  /*\n    `InternalModel` is the Model class that we use internally inside Ember Data to represent models.\n    Internal ED methods should only deal with `InternalModel` objects. It is a fast, plain Javascript class.\n\n    We expose `Model` to application code, by materializing a `Model` from `InternalModel` lazily, as\n    a performance optimization.\n\n    `InternalModel` should never be exposed to application code. At the boundaries of the system, in places\n    like `find`, `push`, etc. we convert between Models and InternalModels.\n\n    We need to make sure that the properties from `InternalModel` are correctly exposed/proxied on `Model`\n    if they are needed.\n\n    @private\n    @class InternalModel\n  */\n\n\n  class InternalModel {\n    // Not typed yet\n    // The previous ManyArrays for this relationship which will be destroyed when\n    // we create a new ManyArray, but in the interim the retained version will be\n    // updated if inverse internal models are unloaded.\n    constructor(store, identifier) {\n      this.store = store;\n      this.identifier = identifier;\n      this._id = void 0;\n      this._tag = 0;\n      this.modelName = void 0;\n      this.clientId = void 0;\n      this.__recordData = void 0;\n      this._isDestroyed = void 0;\n      this.isError = void 0;\n      this._pendingRecordArrayManagerFlush = void 0;\n      this._isDematerializing = void 0;\n      this.isReloading = void 0;\n      this._doNotDestroy = void 0;\n      this.isDestroying = void 0;\n      this._promiseProxy = void 0;\n      this._record = void 0;\n      this._scheduledDestroy = void 0;\n      this._modelClass = void 0;\n      this.__deferredTriggers = void 0;\n      this.__recordArrays = void 0;\n      this._references = void 0;\n      this._recordReference = void 0;\n      this._manyArrayCache = Object.create(null);\n      this._retainedManyArrayCache = Object.create(null);\n      this._relationshipPromisesCache = Object.create(null);\n      this._relationshipProxyCache = Object.create(null);\n      this.currentState = void 0;\n      this.error = void 0;\n\n      {\n        _getModelPackage();\n      }\n\n      this._id = identifier.id;\n      this.modelName = identifier.type;\n      this.clientId = identifier.lid;\n      this.__recordData = null; // this ensure ordered set can quickly identify this as unique\n\n      this[Ember.GUID_KEY] = identifier.lid;\n      this._promiseProxy = null;\n      this._record = null;\n      this._isDestroyed = false;\n      this.isError = false;\n      this._pendingRecordArrayManagerFlush = false; // used by the recordArrayManager\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\n      this._isDematerializing = false;\n      this._scheduledDestroy = null;\n      this.resetRecord(); // caches for lazy getters\n\n      this._modelClass = null;\n      this.__deferredTriggers = null;\n      this.__recordArrays = null;\n      this._references = null;\n      this._recordReference = null;\n    }\n\n    get id() {\n      return this.identifier.id;\n    }\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        Ember.set(this, '_tag', this._tag + 1); // TODO Show deprecation for private api\n      }\n    }\n\n    get modelClass() {\n      if (this.store.modelFor) {\n        return this._modelClass || (this._modelClass = this.store.modelFor(this.modelName));\n      }\n    }\n\n    get type() {\n      return this.modelClass;\n    }\n\n    get recordReference() {\n      if (this._recordReference === null) {\n        this._recordReference = new RecordReference(this.store, this);\n      }\n\n      return this._recordReference;\n    }\n\n    get _recordData() {\n      if (this.__recordData === null) {\n        var recordData = this.store._createRecordData(this.identifier);\n\n        this._recordData = recordData;\n        return recordData;\n      }\n\n      return this.__recordData;\n    }\n\n    set _recordData(newValue) {\n      this.__recordData = newValue;\n    }\n\n    get _recordArrays() {\n      if (this.__recordArrays === null) {\n        this.__recordArrays = new Set();\n      }\n\n      return this.__recordArrays;\n    }\n\n    get references() {\n      if (this._references === null) {\n        this._references = Object.create(null);\n      }\n\n      return this._references;\n    }\n\n    get _deferredTriggers() {\n      if (this.__deferredTriggers === null) {\n        this.__deferredTriggers = [];\n      }\n\n      return this.__deferredTriggers;\n    }\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      // eager checks to avoid instantiating record data if we are empty or loading\n      if (this.isEmpty()) {\n        return true;\n      }\n\n      var isRecordFullyDeleted;\n\n      {\n        isRecordFullyDeleted = this.currentState.stateName === 'root.deleted.saved';\n      }\n\n      return this._isDematerializing || this.hasScheduledDestroy() || this.isDestroyed || isRecordFullyDeleted;\n    }\n\n    _isRecordFullyDeleted() {\n      {\n        // assert here\n        return false;\n      }\n    }\n\n    isRecordInUse() {\n      var record = this._record;\n      return record && !(record.get('isDestroyed') || record.get('isDestroying'));\n    }\n\n    isEmpty() {\n      return this.currentState.isEmpty;\n    }\n\n    isLoading() {\n      return this.currentState.isLoading;\n    }\n\n    isLoaded() {\n      return this.currentState.isLoaded;\n    }\n\n    hasDirtyAttributes() {\n      return this.currentState.hasDirtyAttributes;\n    }\n\n    isSaving() {\n      return this.currentState.isSaving;\n    }\n\n    isDeleted() {\n      {\n        return this.currentState.isDeleted;\n      }\n    }\n\n    isNew() {\n      {\n        return this.currentState.isNew;\n      }\n    }\n\n    isValid() {\n      {\n        return this.currentState.isValid;\n      }\n    }\n\n    dirtyType() {\n      return this.currentState.dirtyType;\n    }\n\n    getRecord(properties) {\n      if (!this._record && !this._isDematerializing) {\n        var {\n          store: _store\n        } = this;\n\n        {\n          {\n            // lookupFactory should really return an object that creates\n            // instances with the injections applied\n            var createOptions = {\n              store: _store,\n              _internalModel: this,\n              currentState: this.currentState\n            };\n\n            {\n              createOptions.isError = this.isError;\n              createOptions.adapterError = this.error;\n            }\n\n            if (properties !== undefined) {\n              ( !(typeof properties === 'object' && properties !== null) && Ember.assert(`You passed '${properties}' as properties for record creation instead of an object.`, typeof properties === 'object' && properties !== null));\n\n              if ('id' in properties) {\n                var id = coerceId(properties.id);\n\n                if (id !== null) {\n                  this.setId(id);\n                }\n              } // convert relationship Records to RecordDatas before passing to RecordData\n\n\n              var defs = _store._relationshipsDefinitionFor(this.modelName);\n\n              if (defs !== null) {\n                var keys = Object.keys(properties);\n                var relationshipValue;\n\n                for (var i = 0; i < keys.length; i++) {\n                  var prop = keys[i];\n                  var def = defs[prop];\n\n                  if (def !== undefined) {\n                    if (def.kind === 'hasMany') {\n                      {\n                        assertRecordsPassedToHasMany(properties[prop]);\n                      }\n\n                      relationshipValue = extractRecordDatasFromRecords(properties[prop]);\n                    } else {\n                      relationshipValue = extractRecordDataFromRecord(properties[prop]);\n                    }\n\n                    properties[prop] = relationshipValue;\n                  }\n                }\n              }\n            }\n\n            var additionalCreateOptions = this._recordData._initRecordCreateOptions(properties);\n\n            Ember.assign(createOptions, additionalCreateOptions); // ensure that `getOwner(this)` works inside a model instance\n\n            Ember.setOwner(createOptions, Ember.getOwner(_store));\n            this._record = _store._modelFactoryFor(this.modelName).create(createOptions);\n            setRecordIdentifier(this._record, this.identifier);\n          }\n        }\n\n        this._triggerDeferredTriggers();\n      }\n\n      return this._record;\n    }\n\n    resetRecord() {\n      this._record = null;\n      this.isReloading = false;\n      this.error = null;\n      this.currentState = RootState$1.empty;\n    }\n\n    dematerializeRecord() {\n      this._isDematerializing = true; // TODO IGOR add a test that fails when this is missing, something that involves canceliing a destroy\n      // and the destroy not happening, and then later on trying to destroy\n\n      this._doNotDestroy = false;\n\n      if (this._record) {\n        {\n          this._record.destroy();\n        }\n\n        Object.keys(this._relationshipProxyCache).forEach(key => {\n          if (this._relationshipProxyCache[key].destroy) {\n            this._relationshipProxyCache[key].destroy();\n          }\n\n          delete this._relationshipProxyCache[key];\n        });\n        Object.keys(this._manyArrayCache).forEach(key => {\n          var manyArray = this._retainedManyArrayCache[key] = this._manyArrayCache[key];\n          delete this._manyArrayCache[key];\n\n          if (manyArray && !manyArray._inverseIsAsync) {\n            /*\n              If the manyArray is for a sync relationship, we should clear it\n                to preserve the semantics of client-side delete.\n               It is likely in this case instead of retaining we should destroy\n                - @runspired\n            */\n            manyArray.clear();\n          }\n        });\n      } // move to an empty never-loaded state\n\n\n      this._recordData.unloadRecord();\n\n      this.resetRecord();\n      this.updateRecordArrays();\n    }\n\n    deleteRecord() {\n\n      this.send('deleteRecord');\n    }\n\n    save(options) {\n      var promiseLabel = 'DS: Model#save ' + this;\n      var resolver = Ember.RSVP.defer(promiseLabel);\n\n      {\n        this.store.scheduleSave(this, resolver, options);\n        return resolver.promise;\n      }\n    }\n\n    startedReloading() {\n      this.isReloading = true;\n\n      if (this.hasRecord) {\n        Ember.set(this._record, 'isReloading', true);\n      }\n    }\n\n    finishedReloading() {\n      this.isReloading = false;\n\n      if (this.hasRecord) {\n        Ember.set(this._record, 'isReloading', false);\n      }\n    }\n\n    reload(options) {\n      {\n        this.startedReloading();\n\n        var _internalModel = this;\n\n        var promiseLabel = 'DS: Model#reload of ' + this;\n        return new Ember.RSVP.Promise(function (resolve) {\n          _internalModel.send('reloadRecord', {\n            resolve,\n            options\n          });\n        }, promiseLabel).then(function () {\n          _internalModel.didCleanError();\n\n          return _internalModel;\n        }, function (error) {\n          _internalModel.didError(error);\n\n          throw error;\n        }, 'DS: Model#reload complete, update flags').finally(function () {\n          _internalModel.finishedReloading();\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\n\n    unloadRecord() {\n      if (this.isDestroyed) {\n        return;\n      }\n\n      this.send('unloadRecord');\n      this.dematerializeRecord();\n\n      if (this._scheduledDestroy === null) {\n        this._scheduledDestroy = Ember.run.backburner.schedule('destroy', this, '_checkForOrphanedInternalModels');\n      }\n    }\n\n    hasScheduledDestroy() {\n      return !!this._scheduledDestroy;\n    }\n\n    cancelDestroy() {\n      ( !(!this.isDestroyed) && Ember.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      Ember.run.cancel(this._scheduledDestroy);\n      this._scheduledDestroy = null;\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.find(‘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\n\n    destroySync() {\n      if (this._isDematerializing) {\n        this.cancelDestroy();\n      }\n\n      this._checkForOrphanedInternalModels();\n\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      } // just in-case we are not one of the orphaned, we should still\n      // still destroy ourselves\n\n\n      this.destroy();\n    }\n\n    _checkForOrphanedInternalModels() {\n      this._isDematerializing = false;\n      this._scheduledDestroy = null;\n\n      if (this.isDestroyed) {\n        return;\n      }\n    }\n\n    eachRelationship(callback, binding) {\n      return this.modelClass.eachRelationship(callback, binding);\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\n    getBelongsTo(key, options) {\n      var resource = this._recordData.getBelongsTo(key);\n\n      var identifier = resource && resource.data ? identifierCacheFor(this.store).getOrCreateRecordIdentifier(resource.data) : null;\n\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n\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\n      if (isAsync) {\n        var internalModel = identifier !== null ? store._internalModelForResource(identifier) : null;\n\n        if (resource._relationship.hasFailedLoadAttempt) {\n          return this._relationshipProxyCache[key];\n        }\n\n        var promise = this._findBelongsTo(key, resource, relationshipMeta, options);\n\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\n          var toReturn = _internalModel2.getRecord();\n\n          ( !(toReturn === null || !toReturn.get('isEmpty')) && Ember.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.get('isEmpty')));\n          return toReturn;\n        }\n      }\n    } // TODO Igor consider getting rid of initial state\n\n\n    getManyArray(key, isAsync = false) {\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n\n      var jsonApi = this._recordData.getHasMany(key);\n\n      var manyArray = this._manyArrayCache[key];\n      ( !(!manyArray || !this._retainedManyArrayCache[key]) && Ember.assert(`Error: relationship ${this.modelName}:${key} has both many array and retained many array`, !manyArray || !this._retainedManyArrayCache[key]));\n\n      if (!manyArray) {\n        var initialState = this.store._getHasManyByJsonApiResource(jsonApi); // TODO move this to a public api\n\n\n        var inverseIsAsync = jsonApi._relationship ? jsonApi._relationship._inverseIsAsync() : false;\n        manyArray = ManyArray.create({\n          store: this.store,\n          type: this.store.modelFor(relationshipMeta.type),\n          recordData: this._recordData,\n          meta: jsonApi.meta,\n          links:  jsonApi.links ,\n          key,\n          isPolymorphic: relationshipMeta.options.polymorphic,\n          initialState: initialState.slice(),\n          _inverseIsAsync: inverseIsAsync,\n          internalModel: this,\n          isLoaded: !isAsync\n        });\n        this._manyArrayCache[key] = manyArray;\n      }\n\n      if (this._retainedManyArrayCache[key]) {\n        this._retainedManyArrayCache[key].destroy();\n\n        delete this._retainedManyArrayCache[key];\n      }\n\n      return manyArray;\n    }\n\n    fetchAsyncHasMany(key, relationshipMeta, jsonApi, manyArray, options) {\n      // TODO @runspired follow up if parent isNew then we should not be attempting load here\n      var loadingPromise = this._relationshipPromisesCache[key];\n\n      if (loadingPromise) {\n        return loadingPromise;\n      }\n\n      loadingPromise = this.store._findHasManyByJsonApiResource(jsonApi, this, relationshipMeta, options).then(() => {\n        // TODO why don't we do this in the store method\n        manyArray.retrieveLatest();\n        manyArray.set('isLoaded', true);\n        return manyArray;\n      }).then(manyArray => handleCompletedRelationshipRequest(this, key, jsonApi._relationship, manyArray, null), e => handleCompletedRelationshipRequest(this, key, jsonApi._relationship, null, e));\n      this._relationshipPromisesCache[key] = loadingPromise;\n      return loadingPromise;\n    }\n\n    getHasMany(key, options) {\n      var jsonApi = this._recordData.getHasMany(key);\n\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n\n      var async = relationshipMeta.options.async;\n      var isAsync = typeof async === 'undefined' ? true : async;\n      var manyArray = this.getManyArray(key, isAsync);\n\n      if (isAsync) {\n        if (jsonApi._relationship.hasFailedLoadAttempt) {\n          return this._relationshipProxyCache[key];\n        }\n\n        var promise = this.fetchAsyncHasMany(key, relationshipMeta, jsonApi, manyArray, options);\n        return this._updatePromiseProxyFor('hasMany', key, {\n          promise,\n          content: manyArray\n        });\n      } else {\n        ( !(!manyArray.anyUnloaded()) && Ember.assert(`You looked up the '${key}' relationship on a '${this.type.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 })')`, !manyArray.anyUnloaded()));\n        return manyArray;\n      }\n    }\n\n    _updatePromiseProxyFor(kind, key, args) {\n      var promiseProxy = this._relationshipProxyCache[key];\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\n        promiseProxy.set('promise', args.promise);\n      } else {\n        var klass = kind === 'hasMany' ? PromiseManyArray : PromiseBelongsTo; // this usage of `any` can be removed when `@types/ember_object` proxy allows `null` for content\n\n        this._relationshipProxyCache[key] = klass.create(args);\n      }\n\n      return this._relationshipProxyCache[key];\n    }\n\n    reloadHasMany(key, options) {\n      var loadingPromise = this._relationshipPromisesCache[key];\n\n      if (loadingPromise) {\n        return loadingPromise;\n      }\n\n      var jsonApi = this._recordData.getHasMany(key); // TODO move this to a public api\n\n\n      if (jsonApi._relationship) {\n        jsonApi._relationship.setHasFailedLoadAttempt(false);\n\n        jsonApi._relationship.setShouldForceReload(true);\n      }\n\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n\n      var manyArray = this.getManyArray(key);\n      var promise = this.fetchAsyncHasMany(key, relationshipMeta, jsonApi, manyArray, options);\n\n      if (this._relationshipProxyCache[key]) {\n        return this._updatePromiseProxyFor('hasMany', key, {\n          promise\n        });\n      }\n\n      return promise;\n    }\n\n    reloadBelongsTo(key, options) {\n      var loadingPromise = this._relationshipPromisesCache[key];\n\n      if (loadingPromise) {\n        return loadingPromise;\n      }\n\n      var resource = this._recordData.getBelongsTo(key); // TODO move this to a public api\n\n\n      if (resource._relationship) {\n        resource._relationship.setHasFailedLoadAttempt(false);\n\n        resource._relationship.setShouldForceReload(true);\n      }\n\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n\n      var promise = this._findBelongsTo(key, resource, relationshipMeta, options);\n\n      if (this._relationshipProxyCache[key]) {\n        return this._updatePromiseProxyFor('belongsTo', key, {\n          promise\n        });\n      }\n\n      return promise;\n    }\n\n    destroyFromRecordData() {\n      if (this._doNotDestroy) {\n        this._doNotDestroy = false;\n        return;\n      }\n\n      this.destroy();\n    }\n\n    destroy() {\n      ( !(!this._record || this._record.get('isDestroyed') || this._record.get('isDestroying')) && Ember.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      Object.keys(this._retainedManyArrayCache).forEach(key => {\n        this._retainedManyArrayCache[key].destroy();\n\n        delete this._retainedManyArrayCache[key];\n      });\n      internalModelFactoryFor(this.store).remove(this);\n      this._isDestroyed = true;\n    }\n\n    eachAttribute(callback, binding) {\n      return this.modelClass.eachAttribute(callback, binding);\n    }\n\n    inverseFor(key) {\n      return this.modelClass.inverseFor(key);\n    }\n\n    setupData(data) {\n      var changedKeys = this._recordData.pushData(data, this.hasRecord);\n\n      if (this.hasRecord) {\n        this._record._notifyProperties(changedKeys);\n      }\n\n      this.pushedData();\n    }\n\n    getAttributeValue(key) {\n      return this._recordData.getAttr(key);\n    }\n\n    setDirtyHasMany(key, records) {\n      assertRecordsPassedToHasMany(records);\n      return this._recordData.setDirtyHasMany(key, extractRecordDatasFromRecords(records));\n    }\n\n    setDirtyBelongsTo(key, value) {\n      return this._recordData.setDirtyBelongsTo(key, extractRecordDataFromRecord(value));\n    }\n\n    setDirtyAttribute(key, value) {\n      if (this.isDeleted()) {\n        throw new Ember.Error(`Attempted to set '${key}' to '${value}' on the deleted record ${this}`);\n      }\n\n      var currentValue = this.getAttributeValue(key);\n\n      if (currentValue !== value) {\n        this._recordData.setDirtyAttribute(key, value);\n\n        var isDirty = this._recordData.isAttrDirty(key);\n\n        this.send('didSetProperty', {\n          name: key,\n          isDirty: isDirty\n        });\n      }\n\n      return value;\n    }\n\n    get isDestroyed() {\n      return this._isDestroyed;\n    }\n\n    get hasRecord() {\n      return !!this._record;\n    }\n    /*\n      @method createSnapshot\n      @private\n    */\n\n\n    createSnapshot(options) {\n      return new Snapshot(options || {}, this.identifier, this.store);\n    }\n    /*\n      @method loadingData\n      @private\n      @param {Promise} promise\n    */\n\n\n    loadingData(promise) {\n      {\n        this.send('loadingData', promise);\n      }\n    }\n    /*\n      @method loadedData\n      @private\n    */\n\n\n    loadedData() {\n      this.send('loadedData');\n    }\n    /*\n      @method notFound\n      @private\n    */\n\n\n    notFound() {\n      this.send('notFound');\n    }\n    /*\n      @method pushedData\n      @private\n    */\n\n\n    pushedData() {\n      this.send('pushedData');\n    }\n\n    hasChangedAttributes() {\n      {\n        if (this.isLoading() && !this.isReloading) {\n          // no need to calculate changed attributes when calling `findRecord`\n          return false;\n        }\n      }\n\n      return this._recordData.hasChangedAttributes();\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\n\n    changedAttributes() {\n      {\n        if (this.isLoading() && !this.isReloading) {\n          // no need to calculate changed attributes when calling `findRecord`\n          return {};\n        }\n      }\n\n      return this._recordData.changedAttributes();\n    }\n    /*\n      @method adapterWillCommit\n      @private\n    */\n\n\n    adapterWillCommit() {\n      this._recordData.willCommit();\n\n      this.send('willCommit');\n    }\n    /*\n      @method adapterDidDirty\n      @private\n    */\n\n\n    adapterDidDirty() {\n      this.send('becomeDirty');\n    }\n    /*\n      @method send\n      @private\n      @param {String} name\n      @param {Object} context\n    */\n\n\n    send(name, context) {\n      var currentState = this.currentState;\n\n      if (!currentState[name]) {\n        this._unhandledEvent(currentState, name, context);\n      }\n\n      return currentState[name](this, context);\n    }\n\n    manyArrayRecordAdded(key) {\n      if (this.hasRecord) {\n        {\n          this._record.notifyHasManyAdded(key);\n        }\n      }\n    }\n\n    notifyHasManyChange(key) {\n      if (this.hasRecord) {\n        {\n          var manyArray = this._manyArrayCache[key];\n\n          if (manyArray) {\n            // TODO: this will \"resurrect\" previously unloaded records\n            // see test '1:many async unload many side'\n            //  in `tests/integration/records/unload-test.js`\n            //  probably we don't want to retrieve latest eagerly when notifyhasmany changed\n            //  but rather lazily when someone actually asks for a manyarray\n            //\n            //  that said, also not clear why we haven't moved this to retainedmanyarray so maybe that's the bit that's just not workign\n            manyArray.retrieveLatest();\n          }\n        }\n      }\n    }\n\n    notifyBelongsToChange(key) {\n      if (this.hasRecord) {\n        {\n          this._record.notifyBelongsToChange(key, this._record);\n        }\n      }\n    }\n\n    hasManyRemovalCheck(key) {\n      var manyArray = this._manyArrayCache[key] || this._retainedManyArrayCache[key];\n      var didRemoveUnloadedModel = false;\n\n      if (manyArray) {\n        didRemoveUnloadedModel = manyArray.removeUnloadedInternalModel();\n\n        if (this._manyArrayCache[key] && didRemoveUnloadedModel) {\n          this._retainedManyArrayCache[key] = this._manyArrayCache[key];\n          delete this._manyArrayCache[key];\n        }\n      }\n\n      return didRemoveUnloadedModel;\n    }\n\n    notifyPropertyChange(key) {\n      if (this.hasRecord) {\n        {\n          this._record.notifyPropertyChange(key);\n        }\n      }\n\n      {\n        var manyArray = this._manyArrayCache[key] || this._retainedManyArrayCache[key];\n\n        if (manyArray) {\n          var didRemoveUnloadedModel = manyArray.removeUnloadedInternalModel();\n\n          if (this._manyArrayCache[key] && didRemoveUnloadedModel) {\n            this._retainedManyArrayCache[key] = this._manyArrayCache[key];\n            delete this._manyArrayCache[key];\n          }\n        }\n      }\n    }\n\n    notifyStateChange(key) {\n      ( Ember.assert('Cannot notify state change if Record Data State flag is not on', !!false));\n\n      if (this.hasRecord) {\n        {\n          if (!key || key === 'isNew') {\n            this.getRecord().notifyPropertyChange('isNew');\n          }\n\n          if (!key || key === 'isDeleted') {\n            this.getRecord().notifyPropertyChange('isDeleted');\n          }\n        }\n      }\n\n      if (!key || key === 'isDeletionCommitted') {\n        this.updateRecordArrays();\n      }\n    }\n\n    didCreateRecord() {\n      this._recordData.clientDidCreate();\n    }\n\n    rollbackAttributes() {\n      var dirtyKeys = this._recordData.rollbackAttributes();\n\n      if (Ember.get(this, 'isError')) {\n        this.didCleanError();\n      }\n\n      this.send('rolledBack');\n\n      if (this._record && dirtyKeys && dirtyKeys.length > 0) {\n        this._record._notifyProperties(dirtyKeys);\n      }\n    }\n    /*\n      @method transitionTo\n      @private\n      @param {String} name\n    */\n\n\n    transitionTo(name) {\n      // POSSIBLE TODO: Remove this code and replace with\n      // always having direct reference to state objects\n      var pivotName = extractPivotName(name);\n      var state = this.currentState;\n      var transitionMapId = `${state.stateName}->${name}`;\n\n      do {\n        if (state.exit) {\n          state.exit(this);\n        }\n\n        state = state.parentState;\n      } while (!state[pivotName]);\n\n      var setups;\n      var enters;\n      var i;\n      var l;\n      var map = TransitionChainMap[transitionMapId];\n\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\n        for (i = 0, l = path.length; i < l; i++) {\n          state = state[path[i]];\n\n          if (state.enter) {\n            enters.push(state);\n          }\n\n          if (state.setup) {\n            setups.push(state);\n          }\n        }\n\n        TransitionChainMap[transitionMapId] = {\n          setups,\n          enters,\n          state\n        };\n      }\n\n      for (i = 0, l = enters.length; i < l; i++) {\n        enters[i].enter(this);\n      }\n\n      this.currentState = state;\n\n      if (this.hasRecord) {\n        Ember.set(this._record, 'currentState', state);\n      }\n\n      for (i = 0, l = setups.length; i < l; i++) {\n        setups[i].setup(this);\n      }\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\n      if (context !== undefined) {\n        errorMessage += 'Called with ' + Ember.inspect(context) + '.';\n      }\n\n      throw new Ember.Error(errorMessage);\n    }\n\n    triggerLater(...args) {\n      if (this._deferredTriggers.push(args) !== 1) {\n        return;\n      }\n\n      this.store._updateInternalModel(this);\n    }\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\n      var triggers = this._deferredTriggers;\n      var record = this._record;\n      var trigger = record.trigger; // TODO Igor make nicer check\n\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\n      triggers.length = 0;\n    }\n\n    removeFromInverseRelationships(isNew = false) {\n      this._recordData.removeFromInverseRelationships(isNew);\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       @method preloadData\n      @private\n      @param {Object} preload\n    */\n\n\n    preloadData(preload) {\n      var jsonPayload = {}; //TODO(Igor) consider the polymorphic case\n\n      Object.keys(preload).forEach(key => {\n        var preloadValue = Ember.get(preload, key);\n        var relationshipMeta = this.modelClass.metaForProperty(key);\n\n        if (relationshipMeta.isRelationship) {\n          if (!jsonPayload.relationships) {\n            jsonPayload.relationships = {};\n          }\n\n          jsonPayload.relationships[key] = this._preloadRelationship(key, preloadValue);\n        } else {\n          if (!jsonPayload.attributes) {\n            jsonPayload.attributes = {};\n          }\n\n          jsonPayload.attributes[key] = preloadValue;\n        }\n      });\n\n      this._recordData.pushData(jsonPayload);\n    }\n\n    _preloadRelationship(key, preloadValue) {\n      var relationshipMeta = this.modelClass.metaForProperty(key);\n      var modelClass = relationshipMeta.type;\n      var data;\n\n      if (relationshipMeta.kind === 'hasMany') {\n        ( !(Array.isArray(preloadValue)) && Ember.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\n      return {\n        data\n      };\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\n      var internalModel;\n\n      if (value._internalModel) {\n        internalModel = value._internalModel;\n      } else {\n        internalModel = value;\n      } // TODO IGOR DAVID assert if no id is present\n\n\n      return {\n        type: internalModel.modelName,\n        id: internalModel.id\n      };\n    }\n    /*\n      Used to notify the store to update FilteredRecordArray membership.\n       @method updateRecordArrays\n      @private\n    */\n\n\n    updateRecordArrays() {\n      // @ts-ignore: Store is untyped and typescript does not detect instance props set in `init`\n      this.store.recordArrayManager.recordDidChange(this);\n    }\n\n    setId(id) {\n      var didChange = id !== this._id;\n      this._id = id;\n      Ember.set(this, '_tag', this._tag + 1);\n\n      if (didChange && id !== null) {\n        this.store.setRecordId(this.modelName, id, this.clientId); // internal set of ID to get it to RecordData from DS.Model\n\n        if (this._recordData.__setId) {\n          this._recordData.__setId(id);\n        }\n      }\n\n      if (didChange && this.hasRecord) {\n        {\n          this.notifyPropertyChange('id');\n        }\n      }\n    }\n\n    didError(error) {\n      {\n        this.error = error;\n        this.isError = true;\n\n        if (this.hasRecord) {\n          this._record.setProperties({\n            isError: true,\n            adapterError: error\n          });\n        }\n      }\n    }\n\n    didCleanError() {\n      {\n        this.error = null;\n        this.isError = false;\n\n        if (this.hasRecord) {\n          this._record.setProperties({\n            isError: false,\n            adapterError: null\n          });\n        }\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       @method adapterDidCommit\n    */\n\n\n    adapterDidCommit(data) {\n      this.didCleanError();\n\n      var changedKeys = this._recordData.didCommit(data);\n\n      this.send('didCommit');\n      this.updateRecordArrays();\n\n      if (!data) {\n        return;\n      }\n\n      {\n        this._record._notifyProperties(changedKeys);\n      }\n    }\n\n    addErrorMessageToAttribute(attribute, message) {\n      Ember.get(this.getRecord(), 'errors')._add(attribute, message);\n    }\n\n    removeErrorMessageFromAttribute(attribute) {\n      Ember.get(this.getRecord(), 'errors')._remove(attribute);\n    }\n\n    clearErrorMessages() {\n      Ember.get(this.getRecord(), 'errors')._clear();\n    }\n\n    hasErrors() {\n      {\n        var _errors = Ember.get(this.getRecord(), 'errors');\n\n        return _errors.get('length') > 0;\n      }\n    } // FOR USE DURING COMMIT PROCESS\n\n    /*\n      @method adapterDidInvalidate\n      @private\n    */\n\n\n    adapterDidInvalidate(parsedErrors, error) {\n      {\n        var _attribute;\n\n        for (_attribute in parsedErrors) {\n          if (hasOwnProperty.call(parsedErrors, _attribute)) {\n            this.addErrorMessageToAttribute(_attribute, parsedErrors[_attribute]);\n          }\n        }\n\n        this.send('becameInvalid');\n\n        this._recordData.commitWasRejected();\n      }\n    }\n\n    notifyErrorsChange() {\n      var invalidErrors;\n\n      if (this._recordData.getErrors) {\n        invalidErrors = this._recordData.getErrors(this.identifier) || [];\n      } else {\n        return;\n      }\n\n      this.notifyInvalidErrorsChange(invalidErrors);\n    }\n\n    notifyInvalidErrorsChange(jsonApiErrors) {\n      {\n        this.getRecord().invalidErrorsChanged(jsonApiErrors);\n      }\n    }\n    /*\n      @method adapterDidError\n      @private\n    */\n\n\n    adapterDidError(error) {\n      this.send('becameError');\n      this.didError(error);\n\n      this._recordData.commitWasRejected();\n    }\n\n    toString() {\n      return `<${this.modelName}:${this.id}>`;\n    }\n\n    referenceFor(kind, name) {\n      var reference = this.references[name];\n\n      if (!reference) {\n        // TODO IGOR AND DAVID REFACTOR\n        var relationship = relationshipStateFor$1(this, name);\n\n        if ( kind) {\n          var modelName = this.modelName;\n          ( !(!!relationship) && Ember.assert(`There is no ${kind} relationship named '${name}' on a model of modelClass '${modelName}'`, !!relationship));\n          var actualRelationshipKind = relationship.relationshipMeta.kind;\n          ( !(actualRelationshipKind === kind) && Ember.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\n        var relationshipKind = relationship.relationshipMeta.kind;\n\n        if (relationshipKind === 'belongsTo') {\n          reference = new BelongsToReference(this.store, this, relationship, name);\n        } else if (relationshipKind === 'hasMany') {\n          reference = new HasManyReference(this.store, this, relationship, name);\n        }\n\n        this.references[name] = reference;\n      }\n\n      return reference;\n    }\n\n  }\n\n  function handleCompletedRelationshipRequest(internalModel, key, relationship, value, error) {\n    delete internalModel._relationshipPromisesCache[key];\n    relationship.setShouldForceReload(false);\n\n    if (error) {\n      relationship.setHasFailedLoadAttempt(true);\n      var proxy = internalModel._relationshipProxyCache[key]; // 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\n      if (proxy && relationship.kind === 'belongsTo') {\n        if (proxy.content && proxy.content.isDestroying) {\n          proxy.set('content', null);\n        }\n      }\n\n      throw error;\n    }\n\n    relationship.setHasFailedLoadAttempt(false); // only set to not stale if no error is thrown\n\n    relationship.setRelationshipIsStale(false);\n    return value;\n  }\n\n  function assertRecordsPassedToHasMany(records) {\n    // TODO only allow native arrays\n    ( !(Array.isArray(records) || Ember.Array.detect(records)) && Ember.assert(`You must pass an array of records to set a hasMany relationship`, Array.isArray(records) || Ember.Array.detect(records)));\n    ( !(function () {\n      return Ember.A(records).every(record => hasOwnProperty.call(record, '_internalModel') === true);\n    }()) && Ember.assert(`All elements of a hasMany relationship must be instances of Model, you passed ${Ember.inspect(records)}`, function () {\n      return Ember.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\n    if (recordOrPromiseRecord.then) {\n      var content = recordOrPromiseRecord.get && recordOrPromiseRecord.get('content');\n      ( !(content !== undefined) && Ember.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\n    return recordDataFor(recordOrPromiseRecord);\n  }\n\n  var AvailableShims = new WeakMap();\n  function getShimClass(store, modelName) {\n    var shims = AvailableShims.get(store);\n\n    if (shims === undefined) {\n      shims = Object.create(null);\n      AvailableShims.set(store, shims);\n    }\n\n    var shim = shims[modelName];\n\n    if (shim === undefined) {\n      shim = shims[modelName] = new ShimModelClass(store, modelName);\n    }\n\n    return shim;\n  } // Mimics the static apis of DSModel\n\n  class ShimModelClass {\n    // TODO Maybe expose the class here?\n    constructor(__store, modelName) {\n      this.__store = __store;\n      this.modelName = modelName;\n    }\n\n    get fields() {\n      var attrs = this.__store._attributesDefinitionFor(this.modelName);\n\n      var relationships = this.__store._relationshipsDefinitionFor(this.modelName);\n\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\n    get attributes() {\n      var attrs = this.__store._attributesDefinitionFor(this.modelName);\n\n      return new Map(Object.entries(attrs));\n    }\n\n    get relationshipsByName() {\n      var relationships = this.__store._relationshipsDefinitionFor(this.modelName);\n\n      return new Map(Object.entries(relationships));\n    }\n\n    eachAttribute(callback, binding) {\n      var attrDefs = this.__store._attributesDefinitionFor(this.modelName);\n\n      Object.keys(attrDefs).forEach(key => {\n        callback.call(binding, key, attrDefs[key]);\n      });\n    }\n\n    eachRelationship(callback, binding) {\n      var relationshipDefs = this.__store._relationshipsDefinitionFor(this.modelName);\n\n      Object.keys(relationshipDefs).forEach(key => {\n        callback.call(binding, key, relationshipDefs[key]);\n      });\n    }\n\n    eachTransformedAttribute(callback, binding) {\n      var relationshipDefs = this.__store._relationshipsDefinitionFor(this.modelName);\n\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  /**\n    @module @ember-data/store\n  */\n  var INSTANCE_DEPRECATIONS;\n  var lookupDeprecations;\n  var DeprecatedEvented;\n\n  {\n    INSTANCE_DEPRECATIONS = new WeakMap();\n\n    lookupDeprecations = function lookupInstanceDrecations(instance) {\n      var deprecations = INSTANCE_DEPRECATIONS.get(instance);\n\n      if (!deprecations) {\n        deprecations = {};\n        INSTANCE_DEPRECATIONS.set(instance, deprecations);\n      }\n\n      return deprecations;\n    };\n\n    DeprecatedEvented = Ember.Mixin.create(Ember.Evented, {\n      /**\n       * Provides a way to call Evented without logging deprecation warnings\n       * @param {String} name\n       */\n      _has(name) {\n        return Ember.Evented.mixins[0].properties.has.call(this, name);\n      },\n\n      _on() {\n        return Ember.Evented.mixins[0].properties.on.call(this, ...arguments);\n      },\n\n      _deprecateEvented(eventName) {\n        var deprecations = lookupDeprecations(this);\n\n        var _deprecationData = this._getDeprecatedEventedInfo ? `on ${this._getDeprecatedEventedInfo()}` : '';\n\n        var deprecationMessage = _deprecationData ? `Called ${eventName} ${_deprecationData}` : eventName;\n        ( !(deprecations[eventName]) && Ember.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        }));\n        deprecations[eventName] = true;\n      },\n\n      has(name) {\n        this._deprecateEvented(name);\n\n        return this._super(...arguments);\n      },\n\n      off(name, target, method) {\n        this._deprecateEvented(name);\n\n        return this._super(...arguments);\n      },\n\n      on(name, target, method) {\n        this._deprecateEvented(name);\n\n        return this._super(...arguments);\n      },\n\n      one(name, target, method) {\n        this._deprecateEvented(name);\n\n        return this._super(...arguments);\n      },\n\n      trigger(name) {\n        this._deprecateEvented(name);\n\n        return this._super(...arguments);\n      }\n\n    });\n  }\n\n  var DeprecatedEvented$1 =   DeprecatedEvented  ;\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    @class SnapshotRecordArray\n    @private\n    @constructor\n    @param {Array} snapshots An array of snapshots\n    @param {Object} meta\n  */\n  class SnapshotRecordArray {\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      /**\n        An array of snapshots\n        @private\n        @property _snapshots\n        @type {Array}\n      */\n      this._snapshots = null;\n      /**\n        An array of records\n        @private\n        @property _recordArray\n        @type {Array}\n      */\n\n      this._recordArray = recordArray;\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 JSONAPIAdapter.extend({\n          shouldReloadAll(store, snapshotRecordArray) {\n            return !snapshotRecordArray.length;\n          },\n        });\n        ```\n         @property length\n        @type {Number}\n      */\n\n      this.length = recordArray.get('length');\n      this._type = null;\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 JSONAPIAdapter.extend({\n          shouldReloadAll(store, snapshotRecordArray) {\n            var lastRequestTime = snapshotRecordArray.meta.lastRequestTime;\n            var twentyMinutes = 20 * 60 * 1000;\n            return Date.now() > lastRequestTime + twentyMinutes;\n          },\n        });\n        ```\n         @property meta\n        @type {Object}\n      */\n\n      this.meta = meta;\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 MyCustomAdapter.extend({\n          findAll(store, type, sinceToken, snapshotRecordArray) {\n            if (snapshotRecordArray.adapterOptions.subscribe) {\n              // ...\n            }\n            // ...\n          }\n        });\n        ```\n         @property adapterOptions\n        @type {Object}\n      */\n\n      this.adapterOptions = options.adapterOptions;\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 Adapter.extend({\n          findAll(store, type, snapshotRecordArray) {\n            var url = `/${type.modelName}?include=${encodeURIComponent(snapshotRecordArray.include)}`;\n             return fetch(url).then((response) => response.json())\n          }\n        });\n        ```\n         @property include\n        @type {String|Array}\n      */\n\n      this.include = options.include;\n    }\n    /**\n      The type of the underlying records for the snapshots in the array, as a Model\n      @property type\n      @type {Model}\n    */\n\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 type\n      @type {Model}\n    */\n\n\n    get modelName() {\n      return this._recordArray.modelName;\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 JSONAPIAdapter.extend({\n        shouldReloadAll(store, snapshotArray) {\n          var snapshots = snapshotArray.snapshots();\n           return snapshots.any(function(ticketSnapshot) {\n            var 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      @return {Array} Array of snapshots\n    */\n\n\n    snapshots() {\n      if (this._snapshots !== null) {\n        return this._snapshots;\n      }\n\n      this._snapshots = this._recordArray._takeSnapshot();\n      return this._snapshots;\n    }\n\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    @class RecordArray\n    @extends ArrayProxy\n    @uses Ember.Evented\n  */\n\n  var RecordArray = Ember.ArrayProxy.extend(DeprecatedEvented$1, {\n    init() {\n      this._super(...arguments);\n\n      {\n        this._getDeprecatedEventedInfo = () => `RecordArray containing ${this.modelName}`;\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\n\n      this.set('content', this.content || null);\n      /**\n      The flag to signal a `RecordArray` is finished loading data.\n       Example\n       ```javascript\n      var people = store.peekAll('person');\n      people.get('isLoaded'); // true\n      ```\n       @property isLoaded\n      @type Boolean\n      */\n\n      this.isLoaded = this.isLoaded || false;\n      /**\n      The flag to signal a `RecordArray` is currently loading data.\n       Example\n       ```javascript\n      var people = store.peekAll('person');\n      people.get('isUpdating'); // false\n      people.update();\n      people.get('isUpdating'); // true\n      ```\n       @property isUpdating\n      @type Boolean\n      */\n\n      this.isUpdating = false;\n      /**\n      The store that created this record array.\n       @property store\n      @private\n      @type Store\n      */\n\n      this.store = this.store || null;\n      this._updatingPromise = null;\n    },\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    /**\n     The modelClass represented by this record array.\n      @property type\n     @type Model\n     */\n    type: Ember.computed('modelName', function () {\n      if (!this.modelName) {\n        return null;\n      }\n\n      return this.store.modelFor(this.modelName);\n    }).readOnly(),\n\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 internalModel = Ember.get(this, 'content').objectAt(index);\n      return internalModel && internalModel.getRecord();\n    },\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      var 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    */\n    update() {\n      if (Ember.get(this, 'isUpdating')) {\n        return this._updatingPromise;\n      }\n\n      this.set('isUpdating', true);\n\n      var updatingPromise = this._update().finally(() => {\n        this._updatingPromise = null;\n\n        if (this.get('isDestroying') || this.get('isDestroyed')) {\n          return;\n        }\n\n        this.set('isUpdating', false);\n      });\n\n      this._updatingPromise = updatingPromise;\n      return updatingPromise;\n    },\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    /**\n      Adds an internal model to the `RecordArray` without duplicates\n       @method _pushInternalModels\n      @private\n      @param {InternalModel} internalModel\n    */\n    _pushInternalModels(internalModels) {\n      // pushObjects because the internalModels._recordArrays set was already\n      // consulted for inclusion, so addObject and its on .contains call is not\n      // required.\n      Ember.get(this, 'content').pushObjects(internalModels);\n    },\n\n    /**\n      Removes an internalModel to the `RecordArray`.\n       @method removeInternalModel\n      @private\n      @param {InternalModel} internalModel\n    */\n    _removeInternalModels(internalModels) {\n      Ember.get(this, 'content').removeObjects(internalModels);\n    },\n\n    /**\n      Saves all of the records in the `RecordArray`.\n       Example\n       ```javascript\n      var messages = store.peekAll('message');\n      messages.forEach(function(message) {\n        message.set('hasBeenSeen', true);\n      });\n      messages.save();\n      ```\n       @method save\n      @return {PromiseArray} promise\n    */\n    save() {\n      var promiseLabel = `DS: RecordArray#save ${this.modelName}`;\n      var promise = Ember.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    _dissociateFromOwnRecords() {\n      this.get('content').forEach(internalModel => {\n        var recordArrays = internalModel.__recordArrays;\n\n        if (recordArrays) {\n          recordArrays.delete(this);\n        }\n      });\n    },\n\n    /**\n      @method _unregisterFromManager\n      @private\n    */\n    _unregisterFromManager() {\n      this.manager.unregisterRecordArray(this);\n    },\n\n    willDestroy() {\n      this._unregisterFromManager();\n\n      this._dissociateFromOwnRecords(); // 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\n\n      Ember.set(this, 'content', null);\n      Ember.set(this, 'length', 0);\n\n      this._super(...arguments);\n    },\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    /*\n      @method _takeSnapshot\n      @private\n    */\n    _takeSnapshot() {\n      return Ember.get(this, 'content').map(internalModel => internalModel.createSnapshot());\n    }\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    ---\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    @extends RecordArray\n  */\n\n  var AdapterPopulatedRecordArray = RecordArray.extend({\n    init() {\n      // yes we are touching `this` before super, but ArrayProxy has a bug that requires this.\n      this.set('content', this.get('content') || Ember.A());\n\n      this._super(...arguments);\n\n      this.query = this.query || null;\n      this.links = this.links || null;\n\n      {\n        this._getDeprecatedEventedInfo = () => `AdapterPopulatedRecordArray containing ${this.modelName} for query: ${this.query}`;\n      }\n    },\n\n    replace() {\n      throw new Error(`The result of a server query (on ${this.modelName}) is immutable.`);\n    },\n\n    _update() {\n      var store = Ember.get(this, 'store');\n      var query = Ember.get(this, 'query');\n      return store._query(this.modelName, query, this);\n    },\n\n    /**\n      @method _setInternalModels\n      @param {Array} internalModels\n      @param {Object} payload normalized payload\n      @private\n    */\n    _setInternalModels(internalModels, 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(internalModels);\n      this.setProperties({\n        isLoaded: true,\n        isUpdating: false,\n        meta: Ember.assign({}, payload.meta),\n        links: Ember.assign({}, payload.links)\n      });\n\n      this.manager._associateWithRecordArray(internalModels, this);\n\n      {\n        var _hasDidLoad =  this._has('didLoad') ;\n\n        if (_hasDidLoad) {\n          // TODO: should triggering didLoad event be the last action of the runLoop?\n          Ember.run.once(this, 'trigger', 'didLoad');\n        }\n      }\n    }\n\n  });\n\n  var emberRun$1 = Ember.run.backburner;\n  /**\n    @class RecordArrayManager\n    @private\n  */\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._pending = Object.create(null);\n      this._adapterPopulatedRecordArrays = [];\n    }\n\n    recordDidChange(internalModel) {\n      var modelName = internalModel.modelName;\n\n      if (internalModel._pendingRecordArrayManagerFlush) {\n        return;\n      }\n\n      internalModel._pendingRecordArrayManagerFlush = true;\n      var pending = this._pending;\n      var models = pending[modelName] = pending[modelName] || [];\n\n      if (models.push(internalModel) !== 1) {\n        return;\n      }\n\n      emberRun$1.schedule('actions', this, this._flush);\n    }\n\n    _flushPendingInternalModelsForModelName(modelName, internalModels) {\n      var modelsToRemove = [];\n\n      for (var j = 0; j < internalModels.length; j++) {\n        var internalModel = internalModels[j]; // mark internalModels, so they can once again be processed by the\n        // recordArrayManager\n\n        internalModel._pendingRecordArrayManagerFlush = false; // build up a set of models to ensure we have purged correctly;\n\n        if (internalModel.isHiddenFromRecordArrays()) {\n          modelsToRemove.push(internalModel);\n        }\n      }\n\n      var array = this._liveRecordArrays[modelName];\n\n      if (array) {\n        // TODO: skip if it only changed\n        // process liveRecordArrays\n        updateLiveRecordArray(array, internalModels);\n      } // process adapterPopulatedRecordArrays\n\n\n      if (modelsToRemove.length > 0) {\n        removeFromAdapterPopulatedRecordArrays(modelsToRemove);\n      }\n    }\n\n    _flush() {\n      var pending = this._pending;\n      this._pending = Object.create(null);\n\n      for (var modelName in pending) {\n        this._flushPendingInternalModelsForModelName(modelName, pending[modelName]);\n      }\n    }\n\n    _syncLiveRecordArray(array, modelName) {\n      ( !(typeof modelName === 'string') && Ember.assert(`recordArrayManger.syncLiveRecordArray expects modelName not modelClass as the second param`, typeof modelName === 'string'));\n      var pending = this._pending[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 = Ember.get(map, 'length') === Ember.get(array, 'length');\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\n      if (hasNoPotentialDeletions && hasNoInsertionsOrRemovals) {\n        return;\n      }\n\n      if (hasPendingChanges) {\n        this._flushPendingInternalModelsForModelName(modelName, pending);\n\n        delete this._pending[modelName];\n      }\n\n      var internalModels = this._visibleInternalModelsByType(modelName);\n\n      var modelsToAdd = [];\n\n      for (var i = 0; i < internalModels.length; i++) {\n        var internalModel = internalModels[i];\n        var recordArrays = internalModel._recordArrays;\n\n        if (recordArrays.has(array) === false) {\n          recordArrays.add(array);\n          modelsToAdd.push(internalModel);\n        }\n      }\n\n      if (modelsToAdd.length) {\n        array._pushInternalModels(modelsToAdd);\n      }\n    }\n\n    _didUpdateAll(modelName) {\n      var recordArray = this._liveRecordArrays[modelName];\n\n      if (recordArray) {\n        Ember.set(recordArray, 'isUpdating', false);\n      }\n    }\n    /**\n      Get the `RecordArray` for a modelName, which contains all loaded records of\n      given modelName.\n       @method liveRecordArrayFor\n      @param {String} modelName\n      @return {RecordArray}\n    */\n\n\n    liveRecordArrayFor(modelName) {\n      ( !(typeof modelName === 'string') && Ember.assert(`recordArrayManger.liveRecordArrayFor expects modelName not modelClass as the param`, typeof modelName === 'string'));\n      var array = this._liveRecordArrays[modelName];\n\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 internalModels = this._visibleInternalModelsByType(modelName);\n\n        array = this.createRecordArray(modelName, internalModels);\n        this._liveRecordArrays[modelName] = array;\n      }\n\n      return array;\n    }\n\n    _visibleInternalModelsByType(modelName) {\n      var all = internalModelFactoryFor(this.store).modelMapFor(modelName)._models;\n\n      var visible = [];\n\n      for (var i = 0; i < all.length; i++) {\n        var model = all[i];\n\n        if (model.isHiddenFromRecordArrays() === false) {\n          visible.push(model);\n        }\n      }\n\n      return visible;\n    }\n    /**\n      Create a `RecordArray` for a modelName.\n       @method createRecordArray\n      @param {String} modelName\n      @param {Array} _content (optional|private)\n      @return {RecordArray}\n    */\n\n\n    createRecordArray(modelName, content) {\n      ( !(typeof modelName === 'string') && Ember.assert(`recordArrayManger.createRecordArray expects modelName not modelClass as the param`, typeof modelName === 'string'));\n      var array = RecordArray.create({\n        modelName,\n        content: Ember.A(content || []),\n        store: this.store,\n        isLoaded: true,\n        manager: this\n      });\n\n      if (Array.isArray(content)) {\n        associateWithRecordArray(content, array);\n      }\n\n      return array;\n    }\n    /**\n      Create a `AdapterPopulatedRecordArray` for a modelName with given query.\n       @method createAdapterPopulatedRecordArray\n      @param {String} modelName\n      @param {Object} query\n      @return {AdapterPopulatedRecordArray}\n    */\n\n\n    createAdapterPopulatedRecordArray(modelName, query, internalModels, payload) {\n      ( !(typeof modelName === 'string') && Ember.assert(`recordArrayManger.createAdapterPopulatedRecordArray expects modelName not modelClass as the first param, received ${modelName}`, typeof modelName === 'string'));\n      var array;\n\n      if (Array.isArray(internalModels)) {\n        array = AdapterPopulatedRecordArray.create({\n          modelName,\n          query: query,\n          content: Ember.A(internalModels),\n          store: this.store,\n          manager: this,\n          isLoaded: true,\n          isUpdating: false,\n          meta: Ember.assign({}, payload.meta),\n          links: Ember.assign({}, payload.links)\n        });\n        associateWithRecordArray(internalModels, array);\n      } else {\n        array = AdapterPopulatedRecordArray.create({\n          modelName,\n          query: query,\n          content: Ember.A(),\n          store: this.store,\n          manager: this\n        });\n      }\n\n      this._adapterPopulatedRecordArrays.push(array);\n\n      return array;\n    }\n    /**\n      Unregister a RecordArray.\n      So manager will not update this array.\n       @method unregisterRecordArray\n      @param {RecordArray} array\n    */\n\n\n    unregisterRecordArray(array) {\n      var modelName = array.modelName; // remove from adapter populated record array\n\n      var removedFromAdapterPopulated = remove(this._adapterPopulatedRecordArrays, array);\n\n      if (!removedFromAdapterPopulated) {\n        var liveRecordArrayForType = this._liveRecordArrays[modelName]; // unregister live record array\n\n        if (liveRecordArrayForType) {\n          if (array === liveRecordArrayForType) {\n            delete this._liveRecordArrays[modelName];\n          }\n        }\n      }\n    }\n\n    _associateWithRecordArray(internalModels, array) {\n      associateWithRecordArray(internalModels, array);\n    }\n\n    willDestroy() {\n      Object.keys(this._liveRecordArrays).forEach(modelName => this._liveRecordArrays[modelName].destroy());\n\n      this._adapterPopulatedRecordArrays.forEach(destroy);\n\n      this.isDestroyed = true;\n    }\n\n    destroy() {\n      this.isDestroying = true;\n      emberRun$1.schedule('actions', this, this.willDestroy);\n    }\n\n  }\n\n  function destroy(entry) {\n    entry.destroy();\n  }\n\n  function remove(array, item) {\n    var index = array.indexOf(item);\n\n    if (index !== -1) {\n      array.splice(index, 1);\n      return true;\n    }\n\n    return false;\n  }\n\n  function updateLiveRecordArray(array, internalModels) {\n    var modelsToAdd = [];\n    var modelsToRemove = [];\n\n    for (var i = 0; i < internalModels.length; i++) {\n      var internalModel = internalModels[i];\n      var isDeleted = internalModel.isHiddenFromRecordArrays();\n      var recordArrays = internalModel._recordArrays;\n\n      if (!isDeleted && !internalModel.isEmpty()) {\n        if (!recordArrays.has(array)) {\n          modelsToAdd.push(internalModel);\n          recordArrays.add(array);\n        }\n      }\n\n      if (isDeleted) {\n        modelsToRemove.push(internalModel);\n        recordArrays.delete(array);\n      }\n    }\n\n    if (modelsToAdd.length > 0) {\n      array._pushInternalModels(modelsToAdd);\n    }\n\n    if (modelsToRemove.length > 0) {\n      array._removeInternalModels(modelsToRemove);\n    }\n  }\n\n  function removeFromAdapterPopulatedRecordArrays(internalModels) {\n    for (var i = 0; i < internalModels.length; i++) {\n      removeFromAll(internalModels[i]);\n    }\n  }\n\n  function removeFromAll(internalModel) {\n    var recordArrays = internalModel._recordArrays;\n    recordArrays.forEach(function (recordArray) {\n      recordArray._removeInternalModels([internalModel]);\n    });\n    recordArrays.clear();\n  }\n\n  function associateWithRecordArray(internalModels, array) {\n    for (var i = 0, l = internalModels.length; i < l; i++) {\n      var internalModel = internalModels[i];\n\n      internalModel._recordArrays.add(array);\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\n  function _find(adapter, store, modelClass, id, internalModel, options) {\n\n    var snapshot = internalModel.createSnapshot(options);\n    var {\n      modelName\n    } = internalModel;\n    var promise = Ember.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)) && Ember.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)) && Ember.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      ( Ember.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\n      payload.data.lid = identifier.lid;\n      return store._push(payload);\n    }, error => {\n      internalModel.notFound();\n\n      if (internalModel.isEmpty()) {\n        internalModel.unloadRecord();\n      }\n\n      throw error;\n    }, `DS: Extract payload of '${modelName}'`);\n  }\n  function _findMany(adapter, store, modelName, ids, internalModels, optionsMap) {\n    var snapshots = Ember.A(internalModels.map(internalModel => internalModel.createSnapshot(optionsMap.get(internalModel))));\n    var modelClass = store.modelFor(modelName); // `adapter.findMany` gets the modelClass still\n\n    var promise = adapter.findMany(store, modelClass, ids, snapshots);\n    var label = `DS: Handle Adapter#findMany of '${modelName}'`;\n\n    if (promise === undefined) {\n      throw new Error('adapter.findMany returned undefined, this was very likely a mistake');\n    }\n\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      ( !(payloadIsNotBlank(adapterPayload)) && Ember.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\n  function iterateData(data, fn) {\n    if (Array.isArray(data)) {\n      return data.map(fn);\n    } else {\n      return fn(data);\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\n\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 = 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    }); // 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\n    var parentPayload = {\n      id: parentInternalModel.id,\n      type: parentInternalModel.modelName,\n      relationships: {\n        [relationship.key]: {\n          meta: payload.meta,\n          links: payload.links,\n          data: relationshipData\n        }\n      }\n    };\n\n    if (!Array.isArray(payload.included)) {\n      payload.included = [];\n    }\n\n    payload.included.push(parentPayload);\n    return payload;\n  }\n\n  function ensureRelationshipIsSetToParent(payload, parentInternalModel, store, parentRelationship, index) {\n    var {\n      id,\n      type\n    } = payload;\n\n    if (!payload.relationships) {\n      payload.relationships = {};\n    }\n\n    var {\n      relationships\n    } = payload;\n    var inverse = getInverse(store, parentInternalModel, parentRelationship, type);\n\n    if (inverse) {\n      var {\n        inverseKey,\n        kind\n      } = inverse;\n      var relationshipData = relationships[inverseKey] && relationships[inverseKey].data;\n\n      if ( typeof relationshipData !== 'undefined' && !relationshipDataPointsToParent(relationshipData, parentInternalModel)) {\n        var inspect = function inspect(thing) {\n          return `'${JSON.stringify(thing)}'`;\n        };\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'); // this should eventually throw instead of deprecating.\n\n        ( Ember.deprecate(message + '\\n', false, {\n          id: 'mismatched-inverse-relationship-data-from-payload',\n          until: '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\n  function getInverse(store, parentInternalModel, parentRelationship, type) {\n    return recordDataFindInverseRelationshipInfo(store, parentInternalModel, parentRelationship, type);\n  }\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\n    var inverseKey = _storeWrapper.inverseForRelationship(modelName, lhs_relationshipName);\n\n    if (inverseKey) {\n      var {\n        meta: {\n          kind\n        }\n      } = _storeWrapper.relationshipsDefinitionFor(type)[inverseKey];\n\n      return {\n        inverseKey,\n        kind\n      };\n    }\n  }\n\n  function relationshipDataPointsToParent(relationshipData, internalModel) {\n    if (relationshipData === null) {\n      return false;\n    }\n\n    if (Array.isArray(relationshipData)) {\n      if (relationshipData.length === 0) {\n        return false;\n      }\n\n      for (var i = 0; i < relationshipData.length; i++) {\n        var entry = relationshipData[i];\n\n        if (validateRelationshipEntry(entry, internalModel)) {\n          return true;\n        }\n      }\n    } else {\n      return validateRelationshipEntry(relationshipData, internalModel);\n    }\n\n    return false;\n  }\n\n  function fixRelationshipData(relationshipData, relationshipKind, {\n    id,\n    modelName\n  }) {\n    var parentRelationshipData = {\n      id,\n      type: modelName\n    };\n    var payload;\n\n    if (relationshipKind === 'hasMany') {\n      payload = relationshipData || [];\n      payload.push(parentRelationshipData);\n    } else {\n      payload = relationshipData || {};\n      Ember.assign(payload, parentRelationshipData);\n    }\n\n    return payload;\n  }\n\n  function validateRelationshipEntry({\n    id\n  }, {\n    id: parentModelID\n  }) {\n    return id && id.toString() === parentModelID;\n  }\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)) && Ember.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      payload = syncRelationshipDataFromLink(store, payload, internalModel, relationship);\n\n      var internalModelArray = store._push(payload);\n\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\n      if (!payload.data) {\n        return null;\n      }\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\n    var recordArray = store.peekAll(modelName);\n\n    var snapshotArray = recordArray._createSnapshot(options);\n\n    var promise = Ember.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)) && Ember.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\n      store._push(payload);\n\n      store._didUpdateAll(modelName);\n\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 = Ember.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\n      var internalModels = store._push(payload);\n\n      ( !(Array.isArray(internalModels)) && Ember.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\n      if (recordArray) {\n        recordArray._setInternalModels(internalModels, payload);\n      } else {\n        recordArray = store.recordArrayManager.createAdapterPopulatedRecordArray(modelName, query, internalModels, payload);\n      }\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\n    var promise = Ember.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)) && Ember.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        id: 'ds.store.queryRecord-array-response'\n      }));\n      return store._push(payload);\n    }, null, `DS: Extract payload of queryRecord ${modelName}`);\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   * Use this brand to assign a string key to an interface\n   * for mapping the interface to a tightly coupled internal\n   * class implementation.\n   *\n   * This allows us to expose the interface publicly but\n   * seamlessly upgrade these interfaces for our own use\n   * internally when internal methods and properties are\n   * needed.\n   *\n   * @internal\n   */\n\n  var BRAND_SYMBOL = symbol('DEBUG-ts-brand');\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   * Casts a public interface to the matching internal class implementation\n   *\n   * @internal\n   */\n  function upgradeForInternal(external) {\n    return external;\n  }\n\n  class RecordDataStoreWrapper {\n    constructor(_store) {\n      this._store = _store;\n      this[BRAND_SYMBOL] = void 0;\n      this._willUpdateManyArrays = void 0;\n      this._pendingManyArrayUpdates = void 0;\n      this._willUpdateManyArrays = false;\n      this._pendingManyArrayUpdates = [];\n    }\n\n    get identifierCache() {\n      return identifierCacheFor(this._store);\n    }\n    /**\n     * Exists so that DefaultRecordData can check for model types\n     * in DEBUG for relationships. Should be refactored away.\n     *\n     * @internal\n     */\n\n\n    _hasModelFor(type) {\n      return this._store._hasModelFor(type);\n    }\n    /**\n     * @internal\n     */\n\n\n    _scheduleManyArrayUpdate(identifier, key) {\n      var pending = this._pendingManyArrayUpdates = this._pendingManyArrayUpdates || [];\n      pending.push(identifier, key);\n\n      if (this._willUpdateManyArrays === true) {\n        return;\n      }\n\n      this._willUpdateManyArrays = true;\n      var backburner = this._store._backburner;\n      backburner.join(() => {\n        backburner.schedule('syncRelationships', this, this._flushPendingManyArrayUpdates);\n      });\n    }\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\n      if (internalModel) {\n        internalModel.notifyErrorsChange();\n      }\n    }\n\n    _flushPendingManyArrayUpdates() {\n      if (this._willUpdateManyArrays === false) {\n        return;\n      }\n\n      var pending = this._pendingManyArrayUpdates;\n      this._pendingManyArrayUpdates = [];\n      this._willUpdateManyArrays = false;\n      var factory = internalModelFactoryFor(this._store);\n\n      for (var i = 0; i < pending.length; i += 2) {\n        var identifier = pending[i];\n        var _key = pending[i + 1];\n        var internalModel = factory.peek(identifier);\n\n        if (internalModel) {\n          internalModel.notifyHasManyChange(_key);\n        }\n      }\n    }\n\n    attributesDefinitionFor(type) {\n      return this._store._attributesDefinitionFor(type);\n    }\n\n    relationshipsDefinitionFor(type) {\n      return this._store._relationshipsDefinitionFor(type);\n    }\n\n    inverseForRelationship(type, key) {\n      var modelClass = this._store.modelFor(type);\n\n      var definition = upgradeForInternal(this.relationshipsDefinitionFor(type)[key]);\n\n      {\n        return definition._inverseKey(this._store, modelClass);\n      }\n    }\n\n    inverseIsAsyncForRelationship(type, key) {\n      var modelClass = this._store.modelFor(type);\n\n      var definition = upgradeForInternal(this.relationshipsDefinitionFor(type)[key]);\n\n      {\n        return definition._inverseIsAsync(this._store, modelClass);\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\n      if (internalModel) {\n        internalModel.notifyPropertyChange(key);\n      }\n    }\n\n    notifyHasManyChange(type, id, lid, key) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n\n      this._scheduleManyArrayUpdate(identifier, key);\n    }\n\n    notifyBelongsToChange(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\n      if (internalModel) {\n        internalModel.notifyBelongsToChange(key);\n      }\n    }\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\n      if (internalModel) {\n        internalModel.notifyStateChange(key);\n      }\n    }\n\n    recordDataFor(type, id, lid) {\n      var identifier;\n      var isCreate = false;\n\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\n      return this._store.recordDataFor(identifier, isCreate);\n    }\n\n    setRecordId(type, id, lid) {\n      this._store.setRecordId(type, id, lid);\n    }\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\n      if (!internalModel) {\n        return false;\n      }\n\n      return internalModel.isRecordInUse();\n    }\n\n    disconnectRecord(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\n      if (internalModel) {\n        internalModel.destroyFromRecordData();\n      }\n    }\n\n  }\n\n  var _RecordData;\n\n  var emberRun$2 = Ember.run.backburner;\n  var {\n    ENV\n  } = Ember;\n\n  function freeze$1(obj) {\n    if (typeof Object.freeze === 'function') {\n      return Object.freeze(obj);\n    }\n\n    return obj;\n  }\n\n  function deprecateTestRegistration(factoryType, factoryName) {\n    ( Ember.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    }));\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 Store.extend({\n    });\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 Adapter.extend({\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](../classes/Store/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](../classes/Store/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](../classes/Store/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    @class Store\n    @extends Ember.Service\n  */\n\n\n  class CoreStore extends Ember.Service {\n    /**\n     * EmberData specific backburner instance\n     */\n\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    // used for coalescing relationship updates\n    // used for coalescing internal model updates\n    // used to keep track of all the find requests that need to be coalesced\n    // DEBUG-only properties\n\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        init() {\n          this._super(...arguments);\n          this.adapter = 'custom';\n        }\n      });\n      ```\n       @property adapter\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    /**\n      @method init\n      @private\n    */\n    constructor() {\n      super(...arguments);\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      this._pendingSave = [];\n      this._updatedRelationships = [];\n      this._updatedInternalModels = [];\n      this._pendingFetch = new Map();\n      this._fetchManager = void 0;\n      this._schemaDefinitionService = void 0;\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      {\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 = Ember.getOwner(this);\n          Object.keys(Mapping).forEach(attributeType => {\n            var transformFactory = owner.factoryFor(`transform:${attributeType}`);\n\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$1(`@ember-data/serializer/-private`)[Mapping[attributeType]];\n\n              owner.register(`transform:${attributeType}`, Transform);\n              shouldWarn = true;\n            }\n          });\n\n          if (shouldWarn) {\n            ( Ember.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            }));\n          }\n        }\n\n        this.shouldAssertMethodCallsOnDestroyedStore = this.shouldAssertMethodCallsOnDestroyedStore || false;\n\n        if (this.shouldTrackAsyncRequests === undefined) {\n          this.shouldTrackAsyncRequests = false;\n        }\n\n        if (this.generateStackTracesForTrackedRequests === undefined) {\n          this.generateStackTracesForTrackedRequests = false;\n        }\n\n        this._trackedAsyncRequests = [];\n\n        this._trackAsyncRequestStart = label => {\n          var trace = 'set `store.generateStackTracesForTrackedRequests = true;` to get a detailed trace for where this request originated';\n\n          if (this.generateStackTracesForTrackedRequests) {\n            try {\n              throw new Error(`EmberData TrackedRequest: ${label}`);\n            } catch (e) {\n              trace = e;\n            }\n          }\n\n          var token = freeze$1({\n            label,\n            trace\n          });\n\n          this._trackedAsyncRequests.push(token);\n\n          return token;\n        };\n\n        this._trackAsyncRequestEnd = token => {\n          var index = this._trackedAsyncRequests.indexOf(token);\n\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\n          this._trackedAsyncRequests.splice(index, 1);\n        };\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\n        Ember.Test.registerWaiter(this.__asyncWaiter);\n      }\n    }\n\n    getRequestStateService() {\n\n      assertInDebug('RequestService is not available unless the feature flag is on and running on a canary build', false);\n    }\n\n    get identifierCache() {\n      return identifierCacheFor(this);\n    }\n\n    _instantiateRecord(internalModel, modelName, recordData, identifier, properties) {\n\n      assertInDebug('should not be here, custom model class ff error', false);\n    }\n\n    _internalDeleteRecord(internalModel) {\n      internalModel.deleteRecord();\n    } // FeatureFlagged in the DSModelStore claas\n\n\n    _attributesDefinitionFor(modelName, identifier) {\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      if (identifier) {\n        return this.getSchemaDefinitionService().relationshipsDefinitionFor(identifier);\n      } else {\n        return this.getSchemaDefinitionService().relationshipsDefinitionFor(modelName);\n      }\n    }\n\n    registerSchemaDefinitionService(schema) {\n      this._schemaDefinitionService = schema;\n    }\n\n    getSchemaDefinitionService() {\n\n      assertInDebug('need to enable CUSTOM_MODEL_CLASS feature flag in order to access SchemaDefinitionService', false);\n    } // TODO Double check this return value is correct\n\n\n    _relationshipMetaFor(modelName, id, key) {\n      return this._relationshipsDefinitionFor(modelName)[key];\n    }\n\n    modelFor(modelName) {\n      {\n        assertDestroyedStoreOnly(this, 'modelFor');\n      }\n\n      return getShimClass(this, modelName);\n    } // Feature Flagged in DSModelStore\n\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     @private\n    */\n\n\n    _hasModelFor(modelName) {\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's hasModelFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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    // . 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      @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\n\n    createRecord(modelName, inputProperties) {\n      {\n        assertDestroyingStore(this, 'createRecord');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's createRecord method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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\n      return emberRun$2.join(() => {\n        return this._backburner.join(() => {\n          var normalizedModelName = normalizeModelName(modelName);\n          var properties = Ember.assign({}, inputProperties); // 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 (Ember.isNone(properties.id)) {\n            properties.id = this._generateId(normalizedModelName, properties);\n          } // Coerce ID to a string\n\n\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.loadedData(); // TODO this exists just to proxy `isNew` to RecordData which is weird\n\n          internalModel.didCreateRecord();\n          return internalModel.getRecord(properties);\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\n\n    _generateId(modelName, properties) {\n      var adapter = this.adapterFor(modelName);\n\n      if (adapter && adapter.generateIdForRecord) {\n        return adapter.generateIdForRecord(this, modelName, properties);\n      }\n\n      return null;\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      @param {Model} record\n    */\n\n\n    deleteRecord(record) {\n      {\n        assertDestroyingStore(this, 'deleteRecord');\n      }\n\n      {\n        record.deleteRecord();\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      @param {Model} record\n    */\n\n\n    unloadRecord(record) {\n      {\n        assertDestroyingStore(this, 'unloadRecord');\n      }\n\n      {\n        record.unloadRecord();\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\n\n    find(modelName, id, options) {\n      {\n        assertDestroyingStore(this, 'find');\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\n\n      ( !(arguments.length !== 1) && Ember.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) && Ember.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) && Ember.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') && Ember.assert(`You cannot pass '${id}' as id to the store's find method`, typeof id === 'string' || typeof id === 'number'));\n      ( !(typeof id !== 'object') && Ember.assert(`Calling store.find() with a query object is no longer supported. Use store.query() instead.`, typeof id !== 'object'));\n      ( !(typeof modelName === 'string') && Ember.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      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 Route.extend({\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 ApplicationAdapter.extend({\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 Route.extend({\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 Route.extend({\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 MyCustomAdapter.extend({\n        findRecord(store, type, id, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      });\n      ```\n       See [peekRecord](../classes/Store/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()` 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 Route.extend({\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 Route.extend({\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { include: 'comments,comments.author' });\n        }\n      });\n       ```\n       @since 1.13.0\n      @method findRecord\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\n\n    findRecord(modelName, id, options) {\n      {\n        assertDestroyingStore(this, 'findRecord');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's findRecord method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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\n      if (!this.hasRecordForId(type, normalizedId)) {\n        return this._findByInternalModel(internalModel, options);\n      }\n\n      var fetchedInternalModel = this._findRecord(internalModel, options);\n\n      return promiseRecord(fetchedInternalModel, `DS: Store#findRecord ${type} with id: ${id}`);\n    }\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\n      var snapshot = internalModel.createSnapshot(options);\n      var adapter = this.adapterFor(internalModel.modelName); // Refetch the record if the adapter thinks the record is stale\n\n      if (typeof options.reload === 'undefined' && adapter.shouldReloadRecord && adapter.shouldReloadRecord(this, snapshot)) {\n        return this._scheduleFetch(internalModel, options);\n      }\n\n      if (options.backgroundReload === false) {\n        return Ember.RSVP.Promise.resolve(internalModel);\n      } // Trigger the background refetch if backgroundReload option is passed\n\n\n      if (options.backgroundReload || !adapter.shouldBackgroundReloadRecord || adapter.shouldBackgroundReloadRecord(this, snapshot)) {\n        this._scheduleFetch(internalModel, options);\n      } // Return the cached record\n\n\n      return Ember.RSVP.Promise.resolve(internalModel);\n    }\n\n    _findByInternalModel(internalModel, options = {}) {\n      if (options.preload) {\n        internalModel.preloadData(options.preload);\n      }\n\n      var fetchedInternalModel = this._findEmptyInternalModel(internalModel, options);\n\n      return promiseRecord(fetchedInternalModel, `DS: Store#findRecord ${internalModel.modelName} with id: ${internalModel.id}`);\n    }\n\n    _findEmptyInternalModel(internalModel, options) {\n      if (internalModel.isEmpty()) {\n        return this._scheduleFetch(internalModel, options);\n      } //TODO double check about reloading\n\n\n      {\n        if (internalModel.isLoading()) {\n          return internalModel._promiseProxy;\n        }\n      }\n\n      return Ember.RSVP.Promise.resolve(internalModel);\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\n\n    findByIds(modelName, ids) {\n      {\n        assertDestroyingStore(this, 'findByIds');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's findByIds method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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\n      for (var i = 0; i < ids.length; i++) {\n        promises[i] = this.findRecord(normalizedModelName, ids[i]);\n      }\n\n      return promiseArray(Ember.RSVP.all(promises).then(Ember.A, null, `DS: Store#findByIds of ${normalizedModelName} complete`));\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\n\n    _fetchRecord(internalModel, options) {\n      var modelName = internalModel.modelName;\n      var adapter = this.adapterFor(modelName);\n      ( !(adapter) && Ember.assert(`You tried to find a record but you have no adapter (for ${modelName})`, adapter));\n      ( !(typeof adapter.findRecord === 'function') && Ember.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.type, internalModel.id, internalModel, options);\n    }\n\n    _scheduleFetchMany(internalModels, options) {\n      var fetches = new Array(internalModels.length);\n\n      for (var i = 0; i < internalModels.length; i++) {\n        fetches[i] = this._scheduleFetch(internalModels[i], options);\n      }\n\n      return Ember.RSVP.Promise.all(fetches);\n    }\n\n    _scheduleFetchThroughFetchManager(internalModel, options = {}) {\n      var generateStackTrace = this.generateStackTracesForTrackedRequests; // TODO  remove this once we dont rely on state machine\n\n      internalModel.loadingData();\n      var identifier = internalModel.identifier;\n      assertIdentifierHasId(identifier);\n\n      var promise = this._fetchManager.scheduleFetch(identifier, options, generateStackTrace);\n\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        } // Returning this._push here, breaks typing but not any tests, invesstigate potential missing tests\n\n\n        var potentiallyNewIm = this._push(payload);\n\n        if (potentiallyNewIm && !Array.isArray(potentiallyNewIm)) {\n          return potentiallyNewIm;\n        } else {\n          return internalModel;\n        }\n      }, error => {\n        // TODO  remove this once we dont rely on state machine\n        internalModel.notFound();\n\n        if (internalModel.isEmpty()) {\n          internalModel.unloadRecord();\n        }\n\n        throw error;\n      });\n    }\n\n    _scheduleFetch(internalModel, options) {\n      {\n        if (internalModel._promiseProxy) {\n          return internalModel._promiseProxy;\n        }\n\n        var {\n          id,\n          modelName\n        } = internalModel;\n        var resolver = Ember.RSVP.defer(`Fetching ${modelName}' with id: ${id}`);\n        var pendingFetchItem = {\n          internalModel,\n          resolver,\n          options\n        };\n\n        {\n          if (this.generateStackTracesForTrackedRequests === true) {\n            var trace;\n\n            try {\n              throw new Error(`Trace Origin for scheduled fetch for ${modelName}:${id}.`);\n            } catch (e) {\n              trace = e;\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\n\n            pendingFetchItem.trace = trace;\n          }\n        }\n\n        var promise = resolver.promise;\n        internalModel.loadingData(promise);\n\n        if (this._pendingFetch.size === 0) {\n          emberRun$2.schedule('actions', this, this.flushAllPendingFetches);\n        }\n\n        var fetches = this._pendingFetch;\n        var pending = fetches.get(modelName);\n\n        if (pending === undefined) {\n          pending = [];\n          fetches.set(modelName, pending);\n        }\n\n        pending.push(pendingFetchItem);\n        return promise;\n      }\n    }\n\n    flushAllPendingFetches() {\n      {\n        if (this.isDestroyed || this.isDestroying) {\n          return;\n        }\n\n        this._pendingFetch.forEach(this._flushPendingFetchForType, this);\n\n        this._pendingFetch.clear();\n      }\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\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); // We can remove this \"not null\" cast once we have enough typing\n        // to know we are only dealing with ExistingResourceIdentifierObjects\n\n        seeking[_internalModel.id] = pendingItem;\n      }\n\n      function _fetchRecord(recordResolverPair) {\n        var recordFetch = store._fetchRecord(recordResolverPair.internalModel, recordResolverPair.options);\n\n        recordResolverPair.resolver.resolve(recordFetch);\n      }\n\n      function handleFoundRecords(foundInternalModels, expectedInternalModels) {\n        // resolve found records\n        var found = Object.create(null);\n\n        for (var _i2 = 0, _l = foundInternalModels.length; _i2 < _l; _i2++) {\n          var _internalModel2 = foundInternalModels[_i2]; // We can remove this \"not null\" cast once we have enough typing\n          // to know we are only dealing with ExistingResourceIdentifierObjects\n\n          var _pair = seeking[_internalModel2.id];\n          found[_internalModel2.id] = _internalModel2;\n\n          if (_pair) {\n            var resolver = _pair.resolver;\n            resolver.resolve(_internalModel2);\n          }\n        } // reject missing records\n\n\n        var missingInternalModels = [];\n\n        for (var _i3 = 0, _l2 = expectedInternalModels.length; _i3 < _l2; _i3++) {\n          var _internalModel3 = expectedInternalModels[_i3]; // We can remove this \"not null\" cast once we have enough typing\n          // to know we are only dealing with ExistingResourceIdentifierObjects\n\n          if (!found[_internalModel3.id]) {\n            missingInternalModels.push(_internalModel3);\n          }\n        }\n\n        if (missingInternalModels.length) {\n          ( Ember.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\n      function rejectInternalModels(internalModels, error) {\n        for (var _i4 = 0, _l3 = internalModels.length; _i4 < _l3; _i4++) {\n          var _internalModel4 = internalModels[_i4]; // We can remove this \"not null\" cast once we have enough typing\n          // to know we are only dealing with ExistingResourceIdentifierObjects\n\n          var _pair2 = seeking[_internalModel4.id];\n\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\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\n        for (var _i5 = 0; _i5 < totalItems; _i5++) {\n          snapshots[_i5] = internalModels[_i5].createSnapshot(optionsMap.get(internalModel));\n        }\n\n        var groups;\n\n        if (adapter.groupRecordsForFindMany) {\n          groups = adapter.groupRecordsForFindMany(this, snapshots);\n        } else {\n          groups = [snapshots];\n        }\n\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\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\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\n            _fetchRecord(pair);\n          } else {\n            ( Ember.assert(\"You cannot return an empty array from adapter's method groupRecordsForFindMany\", false));\n          }\n        }\n      } else {\n        for (var _i6 = 0; _i6 < totalItems; _i6++) {\n          _fetchRecord(pendingFetchItems[_i6]);\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      @param {String} modelName\n      @param {String|Integer} id\n      @since 2.5.0\n      @return {RecordReference}\n    */\n\n\n    getReference(modelName, id) {\n      {\n        assertDestroyingStore(this, 'getReference');\n      }\n\n      var type = normalizeModelName(modelName);\n      var normalizedId = ensureStringId(id);\n      var resource = constructResource(type, normalizedId);\n      return internalModelFactoryFor(this).lookup(resource).recordReference;\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](../classes/Store/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      @param {String} modelName\n      @param {String|Integer} id\n      @return {Model|null} record\n    */\n\n\n    peekRecord(modelName, id) {\n      {\n        assertDestroyingStore(this, 'peekRecord');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's peekRecord method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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\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      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\n\n    _reloadRecord(internalModel, options) {\n\n      var {\n        id,\n        modelName\n      } = internalModel;\n      var adapter = this.adapterFor(modelName);\n      ( !(id) && Ember.assert(`You cannot reload a record without an ID`, id));\n      ( !(adapter) && Ember.assert(`You tried to reload a record but you have no adapter (for ${modelName})`, adapter));\n      ( !(typeof adapter.findRecord === 'function' || typeof adapter.find === 'function') && Ember.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     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      @param {String} modelName\n      @param {(String|Integer)} id\n      @return {Boolean}\n    */\n\n\n    hasRecordForId(modelName, id) {\n      {\n        assertDestroyingStore(this, 'hasRecordForId');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's hasRecordForId method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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.isLoaded();\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\n\n    recordForId(modelName, id) {\n      {\n        assertDestroyingStore(this, 'recordForId');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's recordForId method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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      @method findMany\n      @private\n      @param {Array} internalModels\n      @return {Promise} promise\n    */\n\n\n    findMany(internalModels, options) {\n      {\n        assertDestroyingStore(this, 'findMany');\n      }\n\n      var finds = new Array(internalModels.length);\n\n      for (var i = 0; i < internalModels.length; i++) {\n        finds[i] = this._findEmptyInternalModel(internalModels[i], options);\n      }\n\n      return Ember.RSVP.Promise.all(finds);\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\n\n    findHasMany(internalModel, link, relationship, options) {\n      {\n        assertDestroyingStore(this, 'findHasMany');\n      }\n\n      var adapter = this.adapterFor(internalModel.modelName);\n      ( !(adapter) && Ember.assert(`You tried to load a hasMany relationship but you have no adapter (for ${internalModel.modelName})`, adapter));\n      ( !(typeof adapter.findHasMany === 'function') && Ember.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\n    _findHasManyByJsonApiResource(resource, parentInternalModel, relationshipMeta, options) {\n      if (!resource) {\n        return Ember.RSVP.resolve([]);\n      }\n\n      var adapter = this.adapterFor(relationshipMeta.type);\n      var {\n        relationshipIsStale,\n        hasDematerializedInverse,\n        hasAnyRelationshipData,\n        relationshipIsEmpty,\n        shouldForceReload\n      } = resource._relationship;\n      var allInverseRecordsAreLoaded = areAllInverseRecordsLoaded(this, resource);\n      var shouldFindViaLink = resource.links && resource.links.related && (typeof adapter.findHasMany === 'function' || typeof resource.data === 'undefined') && (shouldForceReload || hasDematerializedInverse || relationshipIsStale || !allInverseRecordsAreLoaded && !relationshipIsEmpty); // fetch via link\n\n      if (shouldFindViaLink) {\n        return this.findHasMany(parentInternalModel, resource.links.related, relationshipMeta, options);\n      }\n\n      var preferLocalCache = hasAnyRelationshipData && !relationshipIsEmpty;\n      var hasLocalPartialData = hasDematerializedInverse || relationshipIsEmpty && Array.isArray(resource.data) && resource.data.length > 0; // fetch using data, pulling from local cache if possible\n\n      if (!shouldForceReload && !relationshipIsStale && (preferLocalCache || hasLocalPartialData)) {\n        var internalModels = resource.data.map(json => this._internalModelForResource(json));\n        return this.findMany(internalModels, options);\n      }\n\n      var hasData = hasAnyRelationshipData && !relationshipIsEmpty; // fetch by data\n\n      if (hasData || hasLocalPartialData) {\n        var _internalModels = resource.data.map(json => this._internalModelForResource(json));\n\n        return this._scheduleFetchMany(_internalModels, options);\n      } // we were explicitly told we have no data and no links.\n      //   TODO if the relationshipIsStale, should we hit the adapter anyway?\n\n\n      return Ember.RSVP.resolve([]);\n    }\n\n    _getHasManyByJsonApiResource(resource) {\n      var internalModels = [];\n\n      if (resource && resource.data) {\n        internalModels = resource.data.map(reference => this._internalModelForResource(reference));\n      }\n\n      return internalModels;\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\n\n    findBelongsTo(internalModel, link, relationship, options) {\n      {\n        assertDestroyingStore(this, 'findBelongsTo');\n      }\n\n      var adapter = this.adapterFor(internalModel.modelName);\n      ( !(adapter) && Ember.assert(`You tried to load a belongsTo relationship but you have no adapter (for ${internalModel.modelName})`, adapter));\n      ( !(typeof adapter.findBelongsTo === 'function') && Ember.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\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 Ember.RSVP.resolve(null);\n      }\n\n      return this.findBelongsTo(parentInternalModel, resource.links.related, relationshipMeta, options).then(internalModel => {\n        return internalModel ? internalModel.getRecord() : null;\n      });\n    }\n\n    _findBelongsToByJsonApiResource(resource, parentInternalModel, relationshipMeta, options) {\n      if (!resource) {\n        return Ember.RSVP.resolve(null);\n      }\n\n      var internalModel = resource.data ? this._internalModelForResource(resource.data) : null;\n      var {\n        relationshipIsStale,\n        hasDematerializedInverse,\n        hasAnyRelationshipData,\n        relationshipIsEmpty,\n        shouldForceReload\n      } = resource._relationship;\n      var allInverseRecordsAreLoaded = areAllInverseRecordsLoaded(this, resource);\n      var shouldFindViaLink = resource.links && resource.links.related && (shouldForceReload || hasDematerializedInverse || relationshipIsStale || !allInverseRecordsAreLoaded && !relationshipIsEmpty);\n\n      if (internalModel) {\n        // short circuit if we are already loading\n        {\n          if (internalModel.isLoading()) {\n            return internalModel._promiseProxy.then(() => {\n              return internalModel.getRecord();\n            });\n          }\n        }\n      } // fetch via link\n\n\n      if (shouldFindViaLink) {\n        return this._fetchBelongsToLinkFromResource(resource, parentInternalModel, relationshipMeta, options);\n      }\n\n      var preferLocalCache = hasAnyRelationshipData && allInverseRecordsAreLoaded && !relationshipIsEmpty;\n      var hasLocalPartialData = hasDematerializedInverse || relationshipIsEmpty && resource.data; // null is explicit empty, undefined is \"we don't know anything\"\n\n      var localDataIsEmpty = resource.data === undefined || resource.data === null; // fetch using data, pulling from local cache if possible\n\n      if (!shouldForceReload && !relationshipIsStale && (preferLocalCache || hasLocalPartialData)) {\n        /*\n          We have canonical data, but our local state is empty\n         */\n        if (localDataIsEmpty) {\n          return Ember.RSVP.resolve(null);\n        }\n\n        return this._findByInternalModel(internalModel, options);\n      }\n\n      var resourceIsLocal = !localDataIsEmpty && resource.data.id === null;\n\n      if (internalModel && resourceIsLocal) {\n        return Ember.RSVP.resolve(internalModel.getRecord());\n      } // fetch by data\n\n\n      if (internalModel && !localDataIsEmpty) {\n        return this._scheduleFetch(internalModel, options).then(() => {\n          return internalModel.getRecord();\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\n\n      return Ember.RSVP.resolve(null);\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      @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\n\n    query(modelName, query, options) {\n      {\n        assertDestroyingStore(this, 'query');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's query method`, Ember.isPresent(modelName)));\n      ( !(query) && Ember.assert(`You need to pass a query hash to the store's query method`, query));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var adapterOptionsWrapper = {};\n\n      if (options && options.adapterOptions) {\n        adapterOptionsWrapper.adapterOptions = options.adapterOptions;\n      }\n\n      var normalizedModelName = normalizeModelName(modelName);\n      return this._query(normalizedModelName, query, null, adapterOptionsWrapper);\n    }\n\n    _query(modelName, query, array, options) {\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's query method`, Ember.isPresent(modelName)));\n      ( !(query) && Ember.assert(`You need to pass a query hash to the store's query method`, query));\n      ( !(typeof modelName === 'string') && Ember.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) && Ember.assert(`You tried to load a query but you have no adapter (for ${modelName})`, adapter));\n      ( !(typeof adapter.query === 'function') && Ember.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      This method makes a request for one record, where the `id` is not known\n      beforehand (if the `id` is known, use [`findRecord`](../classes/Store/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 $ from 'jquery';\n      import Adapter from '@ember-data/adapter';\n       export default Adapter.extend({\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      @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\n\n    queryRecord(modelName, query, options) {\n      {\n        assertDestroyingStore(this, 'queryRecord');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's queryRecord method`, Ember.isPresent(modelName)));\n      ( !(query) && Ember.assert(`You need to pass a query hash to the store's queryRecord method`, query));\n      ( !(typeof modelName === 'string') && Ember.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\n      if (options && options.adapterOptions) {\n        adapterOptionsWrapper.adapterOptions = options.adapterOptions;\n      }\n\n      ( !(adapter) && Ember.assert(`You tried to make a query but you have no adapter (for ${normalizedModelName})`, adapter));\n      ( !(typeof adapter.queryRecord === 'function') && Ember.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\n        return null;\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 Route.extend({\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 Adapter.extend({\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 Route.extend({\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 Route.extend({\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 MyCustomAdapter.extend({\n        findAll(store, type, sinceToken, snapshotRecordArray) {\n          if (snapshotRecordArray.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      });\n      ```\n       See [peekAll](../classes/Store/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 Route.extend({\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 Route.extend({\n        model() {\n          return this.store.findAll('post', { include: 'comments,comments.author' });\n        }\n      });\n       ```\n       See [query](../classes/Store/methods/query?anchor=query) to only get a subset of records from the server.\n       @since 1.13.0\n      @method findAll\n      @param {String} modelName\n      @param {Object} options\n      @return {Promise} promise\n    */\n\n\n    findAll(modelName, options) {\n      {\n        assertDestroyingStore(this, 'findAll');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's findAll method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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\n      var fetch = this._fetchAll(normalizedModelName, this.peekAll(normalizedModelName), options);\n\n      return fetch;\n    }\n    /**\n      @method _fetchAll\n      @private\n      @param {Model} modelName\n      @param {RecordArray} array\n      @return {Promise} promise\n    */\n\n\n    _fetchAll(modelName, array, options = {}) {\n      var adapter = this.adapterFor(modelName);\n      ( !(adapter) && Ember.assert(`You tried to load all records but you have no adapter (for ${modelName})`, adapter));\n      ( !(typeof adapter.findAll === 'function') && Ember.assert(`You tried to load all records but your adapter does not implement 'findAll'`, typeof adapter.findAll === 'function'));\n\n      if (options.reload) {\n        Ember.set(array, 'isUpdating', true);\n        return promiseArray(_findAll(adapter, this, modelName, options));\n      }\n\n      var snapshotArray = array._createSnapshot(options);\n\n      if (options.reload !== false) {\n        if (adapter.shouldReloadAll && adapter.shouldReloadAll(this, snapshotArray) || !adapter.shouldReloadAll && snapshotArray.length === 0) {\n          Ember.set(array, 'isUpdating', true);\n          return promiseArray(_findAll(adapter, this, modelName, options));\n        }\n      }\n\n      if (options.backgroundReload === false) {\n        return promiseArray(Ember.RSVP.Promise.resolve(array));\n      }\n\n      if (options.backgroundReload || !adapter.shouldBackgroundReloadAll || adapter.shouldBackgroundReloadAll(this, snapshotArray)) {\n        Ember.set(array, 'isUpdating', true);\n\n        _findAll(adapter, this, modelName, options);\n      }\n\n      return promiseArray(Ember.RSVP.Promise.resolve(array));\n    }\n    /**\n      @method _didUpdateAll\n      @param {String} modelName\n      @private\n    */\n\n\n    _didUpdateAll(modelName) {\n      this.recordArrayManager._didUpdateAll(modelName);\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](../classes/Store/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      @param {String} modelName\n      @return {RecordArray}\n    */\n\n\n    peekAll(modelName) {\n      {\n        assertDestroyingStore(this, 'peekAll');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's peekAll method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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      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      @param {String} modelName\n    */\n\n\n    unloadAll(modelName) {\n      {\n        assertDestroyedStoreOnly(this, 'unloadAll');\n      }\n\n      ( !(!modelName || typeof modelName === 'string') && Ember.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\n      if (modelName === undefined) {\n        factory.clear();\n      } else {\n        var normalizedModelName = normalizeModelName(modelName);\n        factory.clear(normalizedModelName);\n      }\n    }\n\n    filter() {\n      ( Ember.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    // . 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\n\n    scheduleSave(internalModel, resolver, options) {\n      var snapshot = internalModel.createSnapshot(options);\n\n      if (internalModel._isRecordFullyDeleted()) {\n        resolver.resolve();\n        return resolver.promise;\n      }\n\n      internalModel.adapterWillCommit();\n\n      this._pendingSave.push({\n        snapshot: snapshot,\n        resolver: resolver\n      });\n\n      emberRun$2.scheduleOnce('actions', this, this.flushPendingSave);\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\n\n    flushPendingSave() {\n\n      var pending = this._pendingSave.slice();\n\n      this._pendingSave = [];\n\n      for (var i = 0, j = pending.length; i < j; i++) {\n        var pendingItem = pending[i];\n        var snapshot = pendingItem.snapshot;\n        var resolver = pendingItem.resolver; // 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\n        var internalModel = snapshot._internalModel;\n        var adapter = this.adapterFor(internalModel.modelName);\n        var operation = void 0;\n\n        {\n          if (internalModel.currentState.stateName === 'root.deleted.saved') {\n            resolver.resolve();\n            continue;\n          } else if (internalModel.isNew()) {\n            operation = 'createRecord';\n          } else if (internalModel.isDeleted()) {\n            operation = 'deleteRecord';\n          } else {\n            operation = 'updateRecord';\n          }\n        }\n\n        resolver.resolve(_commit(adapter, this, operation, snapshot));\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\n\n    didSaveRecord(internalModel, dataArg, op) {\n      {\n        assertDestroyingStore(this, 'didSaveRecord');\n      }\n\n      var data;\n\n      if (dataArg) {\n        data = dataArg.data;\n      }\n\n      if (!data) {\n        ( !(internalModel.id) && Ember.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\n      var cache = identifierCacheFor(this);\n      var identifier = internalModel.identifier;\n\n      if (op !== 'deleteRecord' && data) {\n        cache.updateRecordIdentifier(identifier, data);\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\n\n      internalModel.adapterDidCommit(data);\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\n\n    recordWasInvalid(internalModel, parsedErrors, error) {\n      {\n        assertDestroyingStore(this, 'recordWasInvalid');\n      }\n\n      {\n        internalModel.adapterDidInvalidate(parsedErrors);\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\n\n    recordWasError(internalModel, error) {\n      {\n        assertDestroyingStore(this, 'recordWasError');\n      }\n\n      internalModel.adapterDidError(error);\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\n\n    setRecordId(modelName, newId, clientId) {\n      {\n        assertDestroyingStore(this, 'setRecordId');\n      }\n\n      internalModelFactoryFor(this).setRecordId(modelName, newId, clientId);\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\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); // store.push will be from empty\n      // findRecord will be from root.loading\n      // all else will be updates\n\n      var isLoading = internalModel.currentState.stateName === 'root.loading';\n      var isUpdate = internalModel.currentState.isEmpty === false && !isLoading; // exclude store.push (root.empty) case\n\n      if (isUpdate || isLoading) {\n        var _identifier3 = internalModel.identifier;\n        var updatedIdentifier = identifierCacheFor(this).updateRecordIdentifier(_identifier3, data);\n\n        if (updatedIdentifier !== _identifier3) {\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          _identifier3 = updatedIdentifier;\n          internalModel = internalModelFactoryFor(this).lookup(_identifier3);\n        }\n      }\n\n      internalModel.setupData(data);\n\n      if (!isUpdate) {\n        this.recordArrayManager.recordDidChange(internalModel);\n      }\n\n      return internalModel;\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 Model.extend({\n        firstName: attr('string'),\n        lastName: attr('string'),\n         children: hasMany('person')\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](../classes/Store/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      @param {Object} data\n      @return the record(s) that was created or\n        updated.\n    */\n\n\n    push(data) {\n      {\n        assertDestroyingStore(this, 'push');\n      }\n\n      var pushed = this._push(data);\n\n      if (Array.isArray(pushed)) {\n        var records = pushed.map(internalModel => internalModel.getRecord());\n        return records;\n      }\n\n      if (pushed === null) {\n        return null;\n      }\n\n      var record = pushed.getRecord();\n      return record;\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\n\n    _push(jsonApiDoc) {\n      {\n        assertDestroyingStore(this, '_push');\n      }\n\n      var internalModelOrModels = this._backburner.join(() => {\n        var included = jsonApiDoc.included;\n        var i, length;\n\n        if (included) {\n          for (i = 0, length = included.length; i < length; i++) {\n            this._pushInternalModel(included[i]);\n          }\n        }\n\n        if (Array.isArray(jsonApiDoc.data)) {\n          length = jsonApiDoc.data.length;\n          var internalModels = new Array(length);\n\n          for (i = 0; i < length; i++) {\n            internalModels[i] = this._pushInternalModel(jsonApiDoc.data[i]);\n          }\n\n          return internalModels;\n        }\n\n        if (jsonApiDoc.data === null) {\n          return null;\n        }\n\n        ( !(Ember.typeOf(jsonApiDoc.data) === 'object') && Ember.assert(`Expected an object in the 'data' property in a call to 'push' for ${jsonApiDoc.type}, but was ${Ember.typeOf(jsonApiDoc.data)}`, Ember.typeOf(jsonApiDoc.data) === 'object'));\n        return this._pushInternalModel(jsonApiDoc.data);\n      }); // this typecast is necessary because `backburner.join` is mistyped to return void\n\n\n      return internalModelOrModels;\n    }\n\n    _pushInternalModel(data) {\n      var modelName = data.type;\n      ( !(data.id !== null && data.id !== undefined && data.id !== '') && Ember.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)) && Ember.assert(`You tried to push data with a type '${modelName}' but no model could be found with that name.`, this._hasModelFor(modelName)));\n\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        if (ENV.DS_WARN_ON_UNKNOWN_KEYS) {\n          var unknownAttributes, unknownRelationships;\n\n          {\n            var modelClass = this.modelFor(modelName); // Check unknown attributes\n\n            unknownAttributes = Object.keys(data.attributes || {}).filter(key => {\n              return !Ember.get(modelClass, 'fields').has(key);\n            }); // Check unknown relationships\n\n            unknownRelationships = Object.keys(data.relationships || {}).filter(key => {\n              return !Ember.get(modelClass, 'fields').has(key);\n            });\n          }\n\n          var unknownAttributesMessage = `The payload for '${modelName}' contains these unknown attributes: ${unknownAttributes}. Make sure they've been defined in your model.`;\n          ( Ember.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          ( Ember.warn(unknownRelationshipsMessage, unknownRelationships.length === 0, {\n            id: 'ds.store.unknown-keys-in-payload'\n          }));\n        }\n      } // Actually load the record into the store.\n\n\n      var internalModel = this._load(data); //    this._setupRelationshipsForModel(internalModel, data);\n\n\n      return internalModel;\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 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 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      @param {String} modelName Optionally, a model type used to determine which serializer will be used\n      @param {Object} inputPayload\n    */\n\n\n    pushPayload(modelName, inputPayload) {\n      {\n        assertDestroyingStore(this, 'pushPayload');\n      }\n\n      var serializer;\n      var payload;\n\n      if (!inputPayload) {\n        payload = modelName;\n        serializer = this.serializerFor('application');\n        ( !(typeof serializer.pushPayload === 'function') && Ember.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') && Ember.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\n      ( !(serializer.pushPayload) && Ember.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\n    reloadManyArray(manyArray, internalModel, key, options) {\n      return internalModel.reloadHasMany(key, options);\n    }\n\n    reloadBelongsTo(belongsToProxy, internalModel, key, options) {\n      return internalModel.reloadBelongsTo(key, options);\n    }\n\n    _internalModelForResource(resource) {\n      return internalModelFactoryFor(this).getByResource(resource);\n    }\n    /**\n     * TODO Only needed temporarily for test support\n     *\n     * @internal\n     */\n\n\n    _internalModelForId(type, id, lid) {\n      var resource = constructResource(type, id, lid);\n      return internalModelFactoryFor(this).lookup(resource);\n    }\n\n    serializeRecord(record, options) {\n\n      assertInDebug('serializeRecord is only available when CUSTOM_MODEL_CLASS ff is on', false);\n    }\n\n    saveRecord(record, options) {\n\n      assertInDebug('saveRecord is only available when CUSTOM_MODEL_CLASS ff is on', false);\n    }\n\n    relationshipReferenceFor(identifier, key) {\n\n      assertInDebug('relationshipReferenceFor is only available when CUSTOM_MODEL_CLASS ff is on', false);\n    }\n    /**\n     * @internal\n     */\n\n\n    _createRecordData(identifier) {\n      return this.createRecordDataFor(identifier.type, identifier.id, identifier.lid, this._storeWrapper);\n    }\n    /**\n     * Instantiation hook allowing applications or addons to configure the store\n     * to utilize a custom RecordData implementation.\n     *\n     * @param modelName\n     * @param id\n     * @param clientId\n     * @param storeWrapper\n     */\n\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$1('@ember-data/record-data/-private').RecordData;\n        }\n\n        var _identifier6 = identifierCacheFor(this).getOrCreateRecordIdentifier({\n          type: modelName,\n          id,\n          lid: clientId\n        });\n\n        return new _RecordData(_identifier6, storeWrapper);\n      }\n    }\n    /**\n     * @internal\n     */\n\n\n    __recordDataFor(resource) {\n      var identifier = identifierCacheFor(this).getOrCreateRecordIdentifier(resource);\n      return this.recordDataFor(identifier, false);\n    }\n    /**\n     * @internal\n     */\n\n\n    recordDataFor(identifier, isCreate) {\n      var internalModel;\n\n      if (isCreate === true) {\n        internalModel = internalModelFactoryFor(this).build({\n          type: identifier.type,\n          id: null\n        });\n        internalModel.loadedData();\n        internalModel.didCreateRecord();\n      } else {\n        internalModel = internalModelFactoryFor(this).lookup(identifier);\n      }\n\n      return recordDataFor(internalModel);\n    }\n    /**\n      `normalize` converts a json payload into the normalized form that\n      [push](../classes/Store/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      @param {String} modelName The name of the model type for this payload\n      @param {Object} payload\n      @return {Object} The normalized payload\n    */\n\n\n    normalize(modelName, payload) {\n      {\n        assertDestroyingStore(this, 'normalize');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's normalize method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${Ember.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) && Ember.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\n    newClientId() {\n      assertInDebug(`Private API Removed`, false);\n    } // ...............\n    // . DESTRUCTION .\n    // ...............\n\n    /**\n     * TODO remove test usage\n     *\n     * @internal\n     */\n\n\n    _internalModelsFor(modelName) {\n      return internalModelFactoryFor(this).modelMapFor(modelName);\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\n\n    adapterFor(modelName) {\n      {\n        assertDestroyingStore(this, 'adapterFor');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's adapterFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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\n      if (adapter) {\n        return adapter;\n      }\n\n      var owner = Ember.getOwner(this);\n      adapter = owner.lookup(`adapter:${normalizedModelName}`); // in production this is handled by the re-export\n\n      if ( adapter === undefined) {\n        if (normalizedModelName === '-json-api') {\n          var Adapter = require$1('@ember-data/adapter/json-api').default;\n\n          owner.register(`adapter:-json-api`, Adapter);\n          adapter = owner.lookup(`adapter:-json-api`);\n          deprecateTestRegistration('adapter', '-json-api');\n        }\n      }\n\n      if (adapter !== undefined) {\n        Ember.set(adapter, 'store', this);\n        _adapterCache[normalizedModelName] = adapter;\n        return adapter;\n      } // no adapter found for the specific model, fallback and check for application adapter\n\n\n      adapter = _adapterCache.application || owner.lookup('adapter:application');\n\n      if (adapter !== undefined) {\n        Ember.set(adapter, 'store', this);\n        _adapterCache[normalizedModelName] = adapter;\n        _adapterCache.application = adapter;\n        return adapter;\n      } // no model specific adapter or application adapter, check for an `adapter`\n      // property defined on the store\n\n\n      var adapterName = this.adapter || '-json-api';\n      adapter = adapterName ? _adapterCache[adapterName] || owner.lookup(`adapter:${adapterName}`) : undefined; // in production this is handled by the re-export\n\n      if ( adapter === undefined) {\n        if (adapterName === '-json-api') {\n          var _Adapter = require$1('@ember-data/adapter/json-api').default;\n\n          owner.register(`adapter:-json-api`, _Adapter);\n          adapter = owner.lookup(`adapter:-json-api`);\n          deprecateTestRegistration('adapter', '-json-api');\n        }\n      }\n\n      if (adapter !== undefined) {\n        Ember.set(adapter, 'store', this);\n        _adapterCache[normalizedModelName] = adapter;\n        _adapterCache[adapterName] = adapter;\n        return adapter;\n      } // final fallback, no model specific adapter, no application adapter, no\n      // `adapter` property on store: use json-api adapter\n\n\n      adapter = _adapterCache['-json-api'] || owner.lookup('adapter:-json-api');\n      ( !(adapter !== undefined) && Ember.assert(`No adapter was found for '${modelName}' and no 'application' adapter was found as a fallback.`, adapter !== undefined));\n      Ember.set(adapter, 'store', this);\n      _adapterCache[normalizedModelName] = adapter;\n      _adapterCache['-json-api'] = adapter;\n      return adapter;\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\n\n    serializerFor(modelName) {\n      {\n        assertDestroyingStore(this, 'serializerFor');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's serializerFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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\n      if (serializer) {\n        return serializer;\n      }\n\n      var owner = Ember.getOwner(this);\n      serializer = owner.lookup(`serializer:${normalizedModelName}`);\n\n      {\n        // in production this is handled by the re-export\n        if ( serializer === undefined) {\n          if (normalizedModelName === '-json-api') {\n            var Serializer = require$1('@ember-data/serializer/json-api').default;\n\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$1('@ember-data/serializer/rest').default;\n\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$1('@ember-data/serializer/json').default;\n\n            owner.register(`serializer:-default`, _Serializer2);\n            serializer = owner.lookup(`serializer:-default`);\n            serializer && deprecateTestRegistration('serializer', '-default');\n          }\n        }\n      }\n\n      if (serializer !== undefined) {\n        Ember.set(serializer, 'store', this);\n        _serializerCache[normalizedModelName] = serializer;\n        return serializer;\n      } // no serializer found for the specific model, fallback and check for application serializer\n\n\n      serializer = _serializerCache.application || owner.lookup('serializer:application');\n\n      if (serializer !== undefined) {\n        Ember.set(serializer, 'store', this);\n        _serializerCache[normalizedModelName] = serializer;\n        _serializerCache.application = serializer;\n        return serializer;\n      }\n\n      var serializerName;\n\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 = Ember.get(adapter, 'defaultSerializer');\n        ( !(!serializerName) && Ember.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        }));\n        serializer = serializerName ? _serializerCache[serializerName] || owner.lookup(`serializer:${serializerName}`) : undefined;\n      }\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$1('@ember-data/serializer/json-api').default;\n\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$1('@ember-data/serializer/rest').default;\n\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$1('@ember-data/serializer/json').default;\n\n            owner.register(`serializer:-default`, _Serializer5);\n            serializer = owner.lookup(`serializer:-default`);\n            serializer && deprecateTestRegistration('serializer', '-default');\n          }\n        }\n\n        if (serializer !== undefined) {\n          Ember.set(serializer, 'store', this);\n          _serializerCache[normalizedModelName] = serializer;\n          _serializerCache[serializerName] = serializer;\n          return serializer;\n        }\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\n        if ( serializer === undefined) {\n          var JSONSerializer = require$1('@ember-data/serializer/json').default;\n\n          owner.register('serializer:-default', JSONSerializer);\n          serializer = owner.lookup('serializer:-default');\n          serializer && deprecateTestRegistration('serializer', '-default');\n        }\n\n        ( !(!serializer) && Ember.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        }));\n        ( !(serializer !== undefined) && Ember.assert(`No serializer was found for '${modelName}' and no 'application' serializer was found as a fallback`, serializer !== undefined));\n        Ember.set(serializer, 'store', this);\n        _serializerCache[normalizedModelName] = serializer;\n        _serializerCache['-default'] = serializer;\n        return serializer;\n      }\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\n        if (typeof adapter.destroy === 'function') {\n          adapter.destroy();\n        }\n      }\n\n      for (var serializerName in this._serializerCache) {\n        var serializer = this._serializerCache[serializerName];\n\n        if (typeof serializer.destroy === 'function') {\n          serializer.destroy();\n        }\n      }\n\n      return super.destroy();\n    }\n\n    willDestroy() {\n      super.willDestroy();\n      this.recordArrayManager.destroy();\n      identifierCacheFor(this).destroy();\n      this.unloadAll();\n\n      {\n        Ember.Test.unregisterWaiter(this.__asyncWaiter);\n        var shouldTrack = this.shouldTrackAsyncRequests;\n        var tracked = this._trackedAsyncRequests;\n        var isSettled = tracked.length === 0;\n\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            ( Ember.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\n    _updateRelationshipState(relationship) {\n      if (this._updatedRelationships.push(relationship) !== 1) {\n        return;\n      }\n\n      this._backburner.join(() => {\n        this._backburner.schedule('syncRelationships', this, this._flushUpdatedRelationships);\n      });\n    }\n\n    _flushUpdatedRelationships() {\n      var updated = this._updatedRelationships;\n\n      for (var i = 0, l = updated.length; i < l; i++) {\n        updated[i].flushCanonical();\n      }\n\n      updated.length = 0;\n    }\n\n    _updateInternalModel(internalModel) {\n      if (this._updatedInternalModels.push(internalModel) !== 1) {\n        return;\n      }\n\n      emberRun$2.schedule('actions', this, this._flushUpdatedInternalModels);\n    }\n\n    _flushUpdatedInternalModels() {\n      var updated = this._updatedInternalModels;\n\n      for (var i = 0, l = updated.length; i < l; i++) {\n        updated[i]._triggerDeferredTriggers();\n      }\n\n      updated.length = 0;\n    }\n\n  }\n\n  {\n    Ember.defineProperty(CoreStore.prototype, 'defaultAdapter', Ember.computed('adapter', function () {\n      ( Ember.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      }));\n      var adapter = this.adapter || '-json-api';\n      ( !(typeof adapter === 'string') && Ember.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\n  function _commit(adapter, store, operation, snapshot) {\n    var internalModel = snapshot._internalModel;\n    var modelName = snapshot.modelName;\n    var modelClass = store.modelFor(modelName);\n    ( !(adapter) && Ember.assert(`You tried to update a record but you have no adapter (for ${modelName})`, adapter));\n    ( !(typeof adapter[operation] === 'function') && Ember.assert(`You tried to update a record but your adapter (for ${modelName}) does not implement '${operation}'`, typeof adapter[operation] === 'function'));\n    var promise = Ember.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) && Ember.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    return promise.then(adapterPayload => {\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      store._backburner.join(() => {\n        var payload, data, sideloaded;\n\n        if (adapterPayload) {\n          payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, snapshot.id, operation);\n\n          if (payload.included) {\n            sideloaded = payload.included;\n          }\n\n          data = payload.data;\n        }\n\n        store.didSaveRecord(internalModel, {\n          data\n        }, operation); // seems risky, but if the tests pass might be fine?\n\n        if (sideloaded) {\n          store._push({\n            data: null,\n            included: sideloaded\n          });\n        }\n      });\n\n      return internalModel;\n    }, function (error) {\n      if (error && error.isAdapterError === true && error.code === 'InvalidError') {\n        var parsedErrors;\n\n        if (typeof serializer.extractErrors === 'function') {\n          parsedErrors = serializer.extractErrors(store, modelClass, error, snapshot.id);\n        } else {\n          parsedErrors = errorsArrayToHash(error.errors);\n        }\n\n        store.recordWasInvalid(internalModel, parsedErrors, error);\n      } else {\n        store.recordWasError(internalModel, error);\n      }\n\n      throw error;\n    }, label);\n  }\n\n  var assertDestroyingStore;\n  var assertDestroyedStoreOnly;\n\n  {\n    assertDestroyingStore = function assertDestroyedStore(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        ( !(!(store.isDestroying || store.isDestroyed)) && Ember.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        }));\n      } else {\n        ( !(!(store.isDestroying || store.isDestroyed)) && Ember.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed)));\n      }\n    };\n\n    assertDestroyedStoreOnly = function assertDestroyedStoreOnly(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        ( !(!store.isDestroyed) && Ember.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        }));\n      } else {\n        ( !(!store.isDestroyed) && Ember.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed));\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   * @return {boolean}\n   */\n\n\n  function areAllInverseRecordsLoaded(store, resource) {\n    var cache = identifierCacheFor(store);\n\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).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.isEmpty();\n      }\n    }\n  }\n\n  function internalModelForRelatedResource(store, cache, resource) {\n    var identifier = cache.getOrCreateRecordIdentifier(resource);\n    return store._internalModelForResource(identifier);\n  }\n\n  function assertInDebug(msg, cond = false) {\n    if ( cond) {\n      throw new Error(msg);\n    }\n  }\n\n  function assertIdentifierHasId(identifier) {\n    assertInDebug(`Attempted to schedule a fetch for a record without an id.`, identifier.id === null);\n  }\n\n  function notifyChanges(identifier, value, record, store) {\n    if (value === 'attributes') {\n      record.eachAttribute(key => {\n        var currentValue = Ember.cacheFor(record, key);\n\n        var internalModel = store._internalModelForResource(identifier);\n\n        if (currentValue !== internalModel._recordData.getAttr(key)) {\n          record.notifyPropertyChange(key);\n        }\n      });\n    } else if (value === 'relationships') {\n      record.eachRelationship((key, meta) => {\n        var internalModel = store._internalModelForResource(identifier);\n\n        if (meta.kind === 'belongsTo') {\n          record.notifyPropertyChange(key);\n        } else if (meta.kind === 'hasMany') {\n          if (meta.options.async) {\n            record.notifyPropertyChange(key);\n            internalModel.hasManyRemovalCheck(key);\n          }\n\n          if (internalModel._manyArrayCache[key]) {\n            internalModel._manyArrayCache[key].retrieveLatest();\n          }\n        }\n      });\n    } else if (value === 'errors') {\n      var internalModel = store._internalModelForResource(identifier); //TODO guard\n\n\n      var errors = internalModel._recordData.getErrors(identifier);\n\n      record.invalidErrorsChanged(errors);\n    } else if (value === 'state') {\n      record.notifyPropertyChange('isNew');\n      record.notifyPropertyChange('isDeleted');\n    } else if (value === 'identity') {\n      record.notifyPropertyChange('id');\n    }\n  }\n\n  var _modelForMixin;\n\n  {\n    var _found$1;\n\n    _modelForMixin = function () {\n      if (!_found$1) {\n        _found$1 = require$1('@ember-data/model/-private')._modelForMixin;\n      }\n\n      return _found$1(...arguments);\n    };\n  }\n  /**\n   *\n   * @param store\n   * @param cache modelFactoryCache\n   * @param normalizedModelName already normalized modelName\n   * @return {*}\n   */\n\n  function getModelFactory(store, cache, normalizedModelName) {\n    var factory = cache[normalizedModelName];\n\n    if (!factory) {\n      factory = _lookupModelFactory(store, normalizedModelName);\n\n      if (!factory && true\n      /* HAS_MODEL_PACKAGE */\n      ) {\n        //Support looking up mixins as base types for polymorphic relationships\n        factory = _modelForMixin(store, normalizedModelName);\n      }\n\n      if (!factory) {\n        // we don't cache misses in case someone wants to register a missing model\n        return null;\n      }\n\n      var klass = factory.class;\n\n      if (klass.isModel) {\n        var hasOwnModelNameSet = klass.modelName && Object.prototype.hasOwnProperty.call(klass, 'modelName');\n\n        if (!hasOwnModelNameSet) {\n          Object.defineProperty(klass, 'modelName', {\n            value: normalizedModelName\n          });\n        }\n      }\n\n      cache[normalizedModelName] = factory;\n    }\n\n    return factory;\n  }\n  function _lookupModelFactory(store, normalizedModelName) {\n    var owner = Ember.getOwner(store);\n    return owner.factoryFor(`model:${normalizedModelName}`);\n  }\n\n  /**\n    The store service 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    By default, applications will have a single `Store` service that is\n    automatically created.\n\n    The store can be customized by extending the service in the following manner:\n\n    ```app/services/store.js\n    import Store from '@ember-data/store';\n\n    export default class MyStore extends Store {}\n    ```\n\n    You can retrieve models from the store in several ways. To retrieve a record\n    for a specific id, use the `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 DS from 'ember-data';\n\n    export default Adapter.extend({\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](../classes/Store/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](../classes/Store/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](../classes/Store/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    @class Store\n    @main @ember-data/store\n    @extends Ember.Service\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\n    instantiateRecord(identifier, createRecordArgs, recordDataFor, notificationManager) {\n      var modelName = identifier.type;\n\n      var internalModel = this._internalModelForResource(identifier);\n\n      var createOptions = {\n        store: this,\n        _internalModel: internalModel,\n        currentState: internalModel.currentState,\n        container: null\n      };\n      Ember.assign(createOptions, createRecordArgs); // ensure that `getOwner(this)` works inside a model instance\n\n      Ember.setOwner(createOptions, Ember.getOwner(this));\n      delete createOptions.container;\n\n      var record = this._modelFactoryFor(modelName).create(createOptions); //todo optimize\n\n\n      notificationManager.subscribe(identifier, (identifier, value) => notifyChanges(identifier, value, record, this));\n      return record;\n    }\n\n    teardownRecord(record) {\n      record.destroy();\n    }\n    /**\n    Returns the model class for the particular `modelName`.\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    @param {String} modelName\n    @return {Model}\n      */\n\n\n    modelFor(modelName) {\n      {\n        assertDestroyedStoreOnly$1(this, 'modelFor');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's modelFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n\n      var maybeFactory = this._modelFactoryFor(modelName); // for factorFor factory/class split\n\n\n      var klass = maybeFactory && maybeFactory.class ? maybeFactory.class : maybeFactory;\n\n      if (!klass || !klass.isModel) {\n        {\n          throw new Ember.Error(`No model was found for '${modelName}' and no schema handles the type`);\n        }\n      } else {\n        return klass;\n      }\n    }\n\n    _modelFactoryFor(modelName) {\n      {\n        assertDestroyedStoreOnly$1(this, '_modelFactoryFor');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's _modelFactoryFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.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    /*\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     @private\n    */\n\n\n    _hasModelFor(modelName) {\n      {\n        assertDestroyingStore$1(this, '_hasModelFor');\n      }\n\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's hasModelFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n\n      {\n        ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's hasModelFor method`, Ember.isPresent(modelName)));\n        ( !(typeof modelName === 'string') && Ember.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 !== null;\n      }\n    }\n\n    _relationshipMetaFor(modelName, id, key) {\n      {\n        var modelClass = this.modelFor(modelName);\n        var relationshipsByName = Ember.get(modelClass, 'relationshipsByName');\n        return relationshipsByName.get(key);\n      }\n    }\n\n    _attributesDefinitionFor(modelName, identifier) {\n      {\n        var attributes = this._attributesDefCache[modelName];\n\n        if (attributes === undefined) {\n          var modelClass = this.modelFor(modelName);\n          var attributeMap = Ember.get(modelClass, 'attributes');\n          attributes = Object.create(null);\n          attributeMap.forEach((meta, name) => attributes[name] = meta);\n          this._attributesDefCache[modelName] = attributes;\n        }\n\n        return attributes;\n      }\n    }\n\n    _relationshipsDefinitionFor(modelName, identifier) {\n      {\n        var relationships = this._relationshipsDefCache[modelName];\n\n        if (relationships === undefined) {\n          var modelClass = this.modelFor(modelName);\n          relationships = Ember.get(modelClass, 'relationshipsObject') || null;\n          this._relationshipsDefCache[modelName] = relationships;\n        }\n\n        return relationships;\n      }\n    }\n\n    getSchemaDefinitionService() {\n      {\n        throw 'schema service is only available when custom model class feature flag is on';\n      }\n    }\n\n  }\n\n  var assertDestroyingStore$1;\n  var assertDestroyedStoreOnly$1;\n\n  {\n    assertDestroyingStore$1 = function assertDestroyedStore(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        ( !(!(store.isDestroying || store.isDestroyed)) && Ember.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        }));\n      } else {\n        ( !(!(store.isDestroying || store.isDestroyed)) && Ember.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed)));\n      }\n    };\n\n    assertDestroyedStoreOnly$1 = function assertDestroyedStoreOnly(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        ( !(!store.isDestroyed) && Ember.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        }));\n      } else {\n        ( !(!store.isDestroyed) && Ember.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed));\n      }\n    };\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    @method diffArray\n    @private\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    // find the first change\n\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\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\n    var addedCount = 0;\n    var removedCount = 0;\n\n    if (firstChangeIndex !== null) {\n      // we found a change, find the end of the change\n      var unchangedEndBlockLength = shortestLength - firstChangeIndex; // walk back from the end of both arrays until we find a change\n\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\n      addedCount = newLength - unchangedEndBlockLength - firstChangeIndex;\n      removedCount = oldLength - unchangedEndBlockLength - firstChangeIndex;\n    }\n\n    return {\n      firstChangeIndex,\n      addedCount,\n      removedCount\n    };\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  function typeForRelationshipMeta(meta) {\n    var modelName;\n    modelName = meta.type || meta.key;\n    modelName = normalizeModelName(modelName);\n\n    if (meta.kind === 'hasMany') {\n      modelName = emberInflector.singularize(modelName);\n    }\n\n    return modelName;\n  }\n\n  function shouldFindInverse(relationshipMeta) {\n    var options = relationshipMeta.options;\n    return !(options && options.inverse === null);\n  }\n\n  class RelationshipDefinition {\n    constructor(meta) {\n      this.meta = meta;\n      this[BRAND_SYMBOL] = void 0;\n      this._type = '';\n      this.__inverseKey = '';\n      this.__inverseIsAsync = true;\n      this.__hasCalculatedInverse = false;\n      this.parentModelName = void 0;\n      this.inverse = void 0;\n      this.inverseIsAsync = void 0;\n      this.parentModelName = meta.parentModelName;\n    }\n\n    get key() {\n      return this.meta.key;\n    }\n\n    get kind() {\n      return this.meta.kind;\n    }\n\n    get type() {\n      if (this._type) {\n        return this._type;\n      }\n\n      this._type = typeForRelationshipMeta(this.meta);\n      return this._type;\n    }\n\n    get options() {\n      return this.meta.options;\n    }\n\n    get name() {\n      return this.meta.name;\n    }\n\n    _inverseKey(store, modelClass) {\n      if (this.__hasCalculatedInverse === false) {\n        this._calculateInverse(store, modelClass);\n      }\n\n      return this.__inverseKey;\n    }\n\n    _inverseIsAsync(store, modelClass) {\n      if (this.__hasCalculatedInverse === false) {\n        this._calculateInverse(store, modelClass);\n      }\n\n      return this.__inverseIsAsync;\n    }\n\n    _calculateInverse(store, modelClass) {\n      this.__hasCalculatedInverse = true;\n      var inverseKey, inverseIsAsync;\n      var inverse = null;\n\n      if (shouldFindInverse(this.meta)) {\n        inverse = modelClass.inverseFor(this.key, store);\n      } else {\n        modelClass.typeForRelationship(this.key, store);\n      }\n\n      if (inverse) {\n        inverseKey = inverse.name;\n        inverseIsAsync = isInverseAsync(inverse);\n      } else {\n        inverseKey = null;\n        inverseIsAsync = false;\n      }\n\n      this.__inverseKey = inverseKey;\n      this.__inverseIsAsync = inverseIsAsync;\n    }\n\n  }\n\n  function isInverseAsync(meta) {\n    var inverseAsync = meta.options && meta.options.async;\n    return typeof inverseAsync === 'undefined' ? true : inverseAsync;\n  }\n\n  function relationshipFromMeta(meta) {\n    return new RelationshipDefinition(meta);\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._bind = _bind;\n  exports._guard = _guard;\n  exports._objectIsAlive = _objectIsAlive;\n  exports.coerceId = coerceId;\n  exports.diffArray = diffArray;\n  exports.errorsArrayToHash = errorsArrayToHash;\n  exports.errorsHashToArray = errorsHashToArray;\n  exports.guardDestroyedStore = guardDestroyedStore;\n  exports.identifierCacheFor = identifierCacheFor;\n  exports.normalizeModelName = normalizeModelName;\n  exports.recordDataFor = recordDataFor;\n  exports.recordIdentifierFor = recordIdentifierFor;\n  exports.relationshipFromMeta = relationshipFromMeta;\n  exports.setIdentifierForgetMethod = setIdentifierForgetMethod;\n  exports.setIdentifierGenerationMethod = setIdentifierGenerationMethod;\n  exports.setIdentifierResetMethod = setIdentifierResetMethod;\n  exports.setIdentifierUpdateMethod = setIdentifierUpdateMethod;\n  exports.typeForRelationshipMeta = typeForRelationshipMeta;\n  exports.upgradeForInternal = upgradeForInternal;\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, \"setIdentifierGenerationMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierGenerationMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierUpdateMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierUpdateMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierForgetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierForgetMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierResetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierResetMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"recordIdentifierFor\", {\n    enumerable: true,\n    get: function () {\n      return _private.recordIdentifierFor;\n    }\n  });\n});","define(\"@ember-decorators/component/index\", [\"exports\", \"@ember-decorators/utils/collapse-proto\", \"@ember-decorators/utils/decorator\"], function (_exports, _collapseProto, _decorator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.layout = _exports.tagName = _exports.attributeBindings = _exports.classNameBindings = _exports.classNames = _exports.className = _exports.attribute = void 0;\n\n  /**\n    Decorator which indicates that the field or computed should be bound\n    to an attribute value on the component. This replaces `attributeBindings`\n    by directly allowing you to specify which properties should be bound.\n    ```js\n    export default class AttributeDemoComponent extends Component {\n      @attribute role = 'button';\n      // With provided attribute name\n      @attribute('data-foo') foo = 'lol';\n      @attribute\n      @computed\n      get id() {\n        // return generated id\n      }\n    }\n    ```\n    @function\n    @param {string} name? - The name of the attribute to bind the value to if it is truthy\n  */\n  const attribute = (0, _decorator.decoratorWithParams)((target, key, desc, params = []) => {\n    (true && !(params.length <= 1) && Ember.assert(`The @attribute decorator may take up to one parameter, the bound attribute name. Received: ${params.length}`, params.length <= 1));\n    (true && !(params.every(s => typeof s === 'string')) && Ember.assert(`The @attribute decorator may only receive strings as parameters. Received: ${params}`, params.every(s => typeof s === 'string')));\n    (0, _collapseProto.default)(target);\n\n    if (!target.hasOwnProperty('attributeBindings')) {\n      let parentValue = target.attributeBindings;\n      target.attributeBindings = Array.isArray(parentValue) ? parentValue.slice() : [];\n    }\n\n    let binding = params[0] ? `${key}:${params[0]}` : key;\n    target.attributeBindings.push(binding);\n\n    if (desc) {\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      desc.configurable = true;\n    }\n\n    return desc;\n  });\n  /**\n    Decorator which indicates that the field or computed should be bound to\n    the component class names. This replaces `classNameBindings` by directly\n    allowing you to specify which properties should be bound.\n    ```js\n    export default class ClassNameDemoComponent extends Component {\n      @className boundField = 'default-class';\n      // With provided true/false class names\n      @className('active', 'inactive') isActive = true;\n      @className\n      @computed\n      get boundComputed() {\n        // return generated class\n      }\n    }\n    ```\n    @function\n    @param {string} truthyName? - The class to be applied if the value the field\n                                  is truthy, defaults to the name of the field.\n    @param {string} falsyName? - The class to be applied if the value of the field\n                                 is falsy.\n  */\n\n  _exports.attribute = attribute;\n  const className = (0, _decorator.decoratorWithParams)((target, key, desc, params = []) => {\n    (true && !(params.length <= 2) && Ember.assert(`The @className decorator may take up to two parameters, the truthy class and falsy class for the class binding. Received: ${params.length}`, params.length <= 2));\n    (true && !(params.every(s => typeof s === 'string')) && Ember.assert(`The @className decorator may only receive strings as parameters. Received: ${params}`, params.every(s => typeof s === 'string')));\n    (0, _collapseProto.default)(target);\n\n    if (!target.hasOwnProperty('classNameBindings')) {\n      let parentValue = target.classNameBindings;\n      target.classNameBindings = Array.isArray(parentValue) ? parentValue.slice() : [];\n    }\n\n    let binding = params.length > 0 ? `${key}:${params.join(':')}` : key;\n    target.classNameBindings.push(binding);\n\n    if (desc) {\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      desc.configurable = true;\n    }\n\n    return desc;\n  });\n  _exports.className = className;\n\n  function concattedPropDecorator(propName) {\n    return (0, _decorator.decoratorWithRequiredParams)((target, propValues) => {\n      (true && !(propValues.reduce((allStrings, name) => allStrings && typeof name === 'string', true)) && Ember.assert(`The @${propName} decorator must be provided strings, received: ${propValues}`, propValues.reduce((allStrings, name) => allStrings && typeof name === 'string', true)));\n      (0, _collapseProto.default)(target.prototype);\n\n      if (propName in target.prototype) {\n        let parentValues = target.prototype[propName];\n        propValues.unshift(...parentValues);\n      }\n\n      target.prototype[propName] = propValues;\n      return target;\n    }, propName);\n  }\n  /**\n    Class decorator which specifies the class names to be applied to a component.\n    This replaces the `classNames` property on components in the traditional Ember\n    object model.\n    ```js\n    @classNames('a-static-class', 'another-static-class')\n    export default class ClassNamesDemoComponent extends Component {}\n    ```\n    @function\n    @param {...string} classNames - The list of classes to be applied to the component\n  */\n\n\n  const classNames = concattedPropDecorator('classNames');\n  /**\n    Class decorator which specifies the class name bindings to be applied to a\n    component. This replaces the `classNameBindings` property on components in the\n    traditional Ember object model.\n    ```js\n    @classNameBindings('aDynamicProperty:truthy-class-name:falsy-class-name')\n    export default class ClassNamesDemoComponent extends Component {}\n    ```\n    @function\n    @param {...string} classNameBindings - The list of class name bindings to be applied to the component\n  */\n\n  _exports.classNames = classNames;\n  const classNameBindings = concattedPropDecorator('classNameBindings');\n  /**\n    Class decorator which specifies the attribute bindings to be applied to a\n    component. This replaces the `attributeBindings` property on components in the\n    traditional Ember object model.\n    ```js\n    @attributeBindings('role', 'aProperty:a-different-attribute')\n    export default class ClassNamesDemoComponent extends Component {}\n    ```\n    @function\n    @param {...string} attributeBindings - The list of attribute bindings to be applied to the component\n  */\n\n  _exports.classNameBindings = classNameBindings;\n  const attributeBindings = concattedPropDecorator('attributeBindings');\n  /**\n    Class decorator which specifies the tag name of the component. This replaces\n    the `tagName` property on components in the traditional Ember object model.\n    ```js\n    @tagName('button')\n    export default class TagNameDemoComponent extends Component {}\n    ```\n    @function\n    @param {string} tagName - The HTML tag to be used for the component\n  */\n\n  _exports.attributeBindings = attributeBindings;\n  const tagName = (0, _decorator.decoratorWithRequiredParams)((target, params) => {\n    let [tagName] = params;\n    (true && !(params.length === 1) && Ember.assert(`The @tagName decorator must be provided exactly one argument, received: ${tagName}`, params.length === 1));\n    (true && !(typeof tagName === 'string') && Ember.assert(`The @tagName decorator must be provided a string, received: ${tagName}`, typeof tagName === 'string'));\n    target.prototype.tagName = tagName;\n    return target;\n  }, 'tagName');\n  /**\n    Class decorator which specifies the layout for the component. This replaces\n    the `layout` property on components in the traditional Ember object model.\n    ```js\n    import template from '../templates/components/x-foo';\n    @layout(template)\n    export default class TagNameDemoComponent extends Component {}\n    ```\n    ```js\n    import hbs from 'htmlbars-inline-precompile';\n    @layout(hbs`<h1>Hello {{ name }}</h1>`)\n    export default class TagNameDemoComponent extends Component {\n      constructor() {\n        super(...arguments);\n        this.set('name', 'Tomster');\n      }\n    }\n    ```\n    @function\n    @param {TemplateFactory} template - The compiled template to be used for the component\n  */\n\n  _exports.tagName = tagName;\n\n  const layout = (...params) => target => {\n    let [template] = params;\n    (true && !(params.length === 1) && Ember.assert(`The @layout decorator must be provided exactly one argument, received: ${params.length}`, params.length === 1));\n    (true && !(typeof template !== 'string') && Ember.assert(`The @layout decorator must be provided a template, received: ${template}. If you want to compile strings to templates, be sure to use 'htmlbars-inline-precompile'`, typeof template !== 'string'));\n    (true && !(typeof template === 'function' || typeof template === 'object' && typeof template.indexOf === 'undefined') && Ember.assert(`The @layout decorator must be provided a template, received: ${template}`, typeof template === 'function' || typeof template === 'object' && typeof template.indexOf === 'undefined'));\n    target.prototype.layout = template;\n    return target;\n  };\n\n  _exports.layout = layout;\n});","define(\"@ember-decorators/object/index\", [\"exports\", \"@ember-decorators/utils/decorator\"], function (_exports, _decorator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.off = _exports.on = _exports.unobserves = _exports.observes = void 0;\n\n  /**\n    Triggers the target function when the dependent properties have changed. Note,\n    `@observes` _must_ be used on EmberObject based classes only, otherwise there\n    may be subtle issues and breakage.\n  \n    ```javascript\n    import { observes } from '@ember-decorators/object';\n  \n    class Foo {\n      @observes('foo')\n      bar() {\n        //...\n      }\n    }\n    ```\n  \n    @function\n    @param {...String} propertyNames - Names of the properties that trigger the function\n   */\n  const observes = (0, _decorator.decoratorWithRequiredParams)((target, key, desc, params) => {\n    (true && !(desc && typeof desc.value === 'function') && Ember.assert('The @observes decorator must be applied to functions', desc && typeof desc.value === 'function'));\n    (true && !(target instanceof Ember.Object) && Ember.assert(`You attempted to use @observes on ${target.constructor.name}#${key}, which does not extend from EmberObject. Unfortunately this does not work with stage 1 decorator transforms, and will break in subtle ways. You must rewrite your class to extend from EmberObject.`, target instanceof Ember.Object));\n\n    for (let path of params) {\n      Ember.expandProperties(path, expandedPath => {\n        Ember.addObserver(target, expandedPath, null, key);\n      });\n    }\n\n    return desc;\n  }, 'observes');\n  /**\n    Removes observers from the target function.\n  \n    ```javascript\n    import { observes, unobserves } from '@ember-decorators/object';\n  \n    class Foo {\n      @observes('foo')\n      bar() {\n        //...\n      }\n    }\n  \n    class Bar extends Foo {\n      @unobserves('foo') bar;\n    }\n    ```\n  \n    @function\n    @param {...String} propertyNames - Names of the properties that no longer trigger the function\n   */\n\n  _exports.observes = observes;\n  const unobserves = (0, _decorator.decoratorWithRequiredParams)((target, key, desc, params) => {\n    for (let path of params) {\n      Ember.expandProperties(path, expandedPath => {\n        Ember.removeObserver(target, expandedPath, null, key);\n      });\n    }\n\n    return desc;\n  }, 'unobserves');\n  /**\n    Adds an event listener to the target function.\n  \n    ```javascript\n    import { on } from '@ember-decorators/object';\n  \n    class Foo {\n      @on('fooEvent', 'barEvent')\n      bar() {\n        //...\n      }\n    }\n    ```\n  \n    @function\n    @param {...String} eventNames - Names of the events that trigger the function\n   */\n\n  _exports.unobserves = unobserves;\n  const on = (0, _decorator.decoratorWithRequiredParams)((target, key, desc, params) => {\n    (true && !(desc && typeof desc.value === 'function') && Ember.assert('The @on decorator must be applied to functions', desc && typeof desc.value === 'function'));\n\n    for (let eventName of params) {\n      Ember.addListener(target, eventName, null, key);\n    }\n\n    return desc;\n  }, 'on');\n  /**\n    Removes an event listener from the target function.\n  \n    ```javascript\n    import { on, off } from '@ember-decorators/object';\n  \n    class Foo {\n      @on('fooEvent', 'barEvent')\n      bar() {\n        //...\n      }\n    }\n  \n    class Bar extends Foo {\n      @off('fooEvent', 'barEvent') bar;\n    }\n    ```\n  \n    @function\n    @param {...String} eventNames - Names of the events that no longer trigger the function\n   */\n\n  _exports.on = on;\n  const off = (0, _decorator.decoratorWithRequiredParams)((target, key, desc, params) => {\n    for (let eventName of params) {\n      Ember.removeListener(target, eventName, null, key);\n    }\n\n    return desc;\n  }, 'off');\n  _exports.off = off;\n});","define(\"@ember-decorators/utils/-private/class-field-descriptor\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isFieldDescriptor = isFieldDescriptor;\n  _exports.isDescriptor = isDescriptor;\n\n  function isClassDescriptor(possibleDesc) {\n    let [target] = possibleDesc;\n    return possibleDesc.length === 1 && typeof target === 'function' && 'prototype' in target && !target.__isComputedDecorator;\n  }\n\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 isDescriptor(possibleDesc) {\n    return isFieldDescriptor(possibleDesc) || isClassDescriptor(possibleDesc);\n  }\n});","define(\"@ember-decorators/utils/collapse-proto\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = collapseProto;\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-decorators/utils/decorator\", [\"exports\", \"@ember-decorators/utils/-private/class-field-descriptor\"], function (_exports, _classFieldDescriptor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.decoratorWithParams = decoratorWithParams;\n  _exports.decoratorWithRequiredParams = decoratorWithRequiredParams;\n\n  /**\n   * A macro that takes a decorator function and allows it to optionally\n   * receive parameters\n   *\n   * ```js\n   * let foo = decoratorWithParams((target, desc, key, params) => {\n   *   console.log(params);\n   * });\n   *\n   * class {\n   *   @foo bar; // undefined\n   *   @foo('bar') baz; // ['bar']\n   * }\n   * ```\n   *\n   * @param {Function} fn - decorator function\n   */\n  function decoratorWithParams(fn) {\n    return function (...params) {\n      // determine if user called as @computed('blah', 'blah') or @computed\n      if ((0, _classFieldDescriptor.isDescriptor)(params)) {\n        return fn(...params);\n      } else {\n        return (...desc) => fn(...desc, params);\n      }\n    };\n  }\n  /**\n   * A macro that takes a decorator function and requires it to receive\n   * parameters:\n   *\n   * ```js\n   * let foo = decoratorWithRequiredParams((target, desc, key, params) => {\n   *   console.log(params);\n   * });\n   *\n   * class {\n   *   @foo('bar') baz; // ['bar']\n   *   @foo bar; // Error\n   * }\n   * ```\n   *\n   * @param {Function} fn - decorator function\n   */\n\n\n  function decoratorWithRequiredParams(fn, name) {\n    return function (...params) {\n      (true && !(!(0, _classFieldDescriptor.isDescriptor)(params) && params.length > 0) && Ember.assert(`The @${name || fn.name} decorator requires parameters`, !(0, _classFieldDescriptor.isDescriptor)(params) && params.length > 0));\n      return (...desc) => fn(...desc, params);\n    };\n  }\n});","define('@ember/ordered-set/index', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  const NEEDS_CUSTOM_ORDERED_SET = true;\n\n  let OrderedSet;\n\n  if (NEEDS_CUSTOM_ORDERED_SET) {\n    /**\n    @class OrderedSet\n    @constructor\n    */\n    OrderedSet = class OrderedSet {\n      constructor() {\n        this.clear();\n      }\n\n      /**\n      @method create\n      @static\n      @return {OrderedSet}\n      */\n      static create() {\n        let Constructor = this;\n        return new Constructor();\n      }\n\n      /**\n      @method clear\n      */\n      clear() {\n        this.presenceSet = Object.create(null);\n        this.list = [];\n        this.size = 0;\n      }\n\n      /**\n      @method add\n      @param {*} obj\n      @param {string} [_guid] (for internal use)\n      @return {OrderedSet}\n      */\n      add(obj, _guid) {\n        let guid = _guid || Ember.guidFor(obj);\n        let presenceSet = this.presenceSet;\n        let list = this.list;\n\n        if (presenceSet[guid] !== true) {\n          presenceSet[guid] = true;\n          this.size = list.push(obj);\n        }\n\n        return this;\n      }\n\n      /**\n      @method delete\n      @param {*} obj\n      @param {string} [_guid] (for internal use)\n      @return {Boolean}\n      */\n      delete(obj, _guid) {\n        let guid = _guid || Ember.guidFor(obj);\n        let presenceSet = this.presenceSet;\n        let list = this.list;\n\n        if (presenceSet[guid] === true) {\n          delete presenceSet[guid];\n          let index = list.indexOf(obj);\n          if (index > -1) {\n            list.splice(index, 1);\n          }\n          this.size = list.length;\n          return true;\n        } else {\n          return false;\n        }\n      }\n\n      /**\n      @method isEmpty\n      @return {Boolean}\n      */\n      isEmpty() {\n        return this.size === 0;\n      }\n\n      /**\n      @method has\n      @param {*} obj\n      @return {Boolean}\n      */\n      has(obj) {\n        if (this.size === 0) {\n          return false;\n        }\n\n        let guid = Ember.guidFor(obj);\n        let presenceSet = this.presenceSet;\n\n        return presenceSet[guid] === true;\n      }\n\n      /**\n      @method forEach\n      @param {Function} fn\n      @param self\n      */\n      forEach(fn /*, ...thisArg*/) {\n        (true && !(typeof fn === 'function') && Ember.assert(`${Object.prototype.toString.call(fn)} is not a function`, typeof fn === 'function'));\n\n\n        if (this.size === 0) {\n          return;\n        }\n\n        let list = this.list;\n\n        if (arguments.length === 2) {\n          for (let i = 0; i < list.length; i++) {\n            fn.call(arguments[1], list[i]);\n          }\n        } else {\n          for (let i = 0; i < list.length; i++) {\n            fn(list[i]);\n          }\n        }\n      }\n\n      /**\n      @method toArray\n      @return {Array}\n      */\n      toArray() {\n        return this.list.slice();\n      }\n\n      /**\n      @method copy\n      @return {OrderedSet}\n      */\n      copy() {\n        let Constructor = this.constructor;\n        let set = new Constructor();\n\n        set.presenceSet = Object.create(null);\n\n        for (let prop in this.presenceSet) {\n          // hasOwnPropery is not needed because obj is Object.create(null);\n          set.presenceSet[prop] = this.presenceSet[prop];\n        }\n\n        set.list = this.toArray();\n        set.size = this.size;\n\n        return set;\n      }\n    };\n  } else {\n    OrderedSet = Ember.__OrderedSet__ || Ember.OrderedSet;\n  }\n\n  exports.default = OrderedSet;\n});","define(\"@ember/render-modifiers/modifiers/did-insert\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\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 = Ember._setModifierManager(() => ({\n    capabilities: Ember._modifierManagerCapabilities('3.13', {\n      disableAutoTracking: true\n    }),\n\n    createModifier() {},\n\n    installModifier(_state, element, args) {\n      let [fn, ...positional] = args.positional;\n      fn(element, positional, args.named);\n    },\n\n    updateModifier() {},\n\n    destroyModifier() {}\n\n  }), class DidInsertModifier {});\n\n  _exports.default = _default;\n});","define(\"@ember/render-modifiers/modifiers/did-update\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\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 = Ember._setModifierManager(() => ({\n    capabilities: Ember._modifierManagerCapabilities('3.13', {\n      disableAutoTracking: true\n    }),\n\n    createModifier() {\n      return {\n        element: null\n      };\n    },\n\n    installModifier(state, element) {\n      // save element into state bucket\n      state.element = element;\n    },\n\n    updateModifier({\n      element\n    }, args) {\n      let [fn, ...positional] = args.positional;\n      fn(element, positional, args.named);\n    },\n\n    destroyModifier() {}\n\n  }), class DidUpdateModifier {});\n\n  _exports.default = _default;\n});","define(\"@ember/render-modifiers/modifiers/will-destroy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\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 = Ember._setModifierManager(() => ({\n    capabilities: Ember._modifierManagerCapabilities('3.13', {\n      disableAutoTracking: true\n    }),\n\n    createModifier() {\n      return {\n        element: null\n      };\n    },\n\n    installModifier(state, element) {\n      state.element = element;\n    },\n\n    updateModifier() {},\n\n    destroyModifier({\n      element\n    }, args) {\n      let [fn, ...positional] = args.positional;\n      fn(element, positional, args.named);\n    }\n\n  }), class WillDestroyModifier {});\n\n  _exports.default = _default;\n});","define(\"@ember/test-waiters/build-waiter\", [\"exports\", \"@ember/test-waiters/token\", \"@ember/test-waiters/waiter-manager\"], function (_exports, _token, _waiterManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports._resetWaiterNames = _resetWaiterNames;\n  _exports.default = buildWaiter;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  const WAITER_NAME_PATTERN = /^[^:]*:?.*/;\n  let WAITER_NAMES = true\n  /* DEBUG */\n  ? new Set() : undefined;\n\n  function _resetWaiterNames() {\n    WAITER_NAMES = new Set();\n  }\n\n  function getNextToken() {\n    return new _token.default();\n  }\n\n  class TestWaiterImpl {\n    constructor(name, nextToken) {\n      _defineProperty(this, \"name\", void 0);\n\n      _defineProperty(this, \"nextToken\", void 0);\n\n      _defineProperty(this, \"isRegistered\", false);\n\n      _defineProperty(this, \"items\", new Map());\n\n      _defineProperty(this, \"completedOperationsForTokens\", new WeakMap());\n\n      _defineProperty(this, \"completedOperationsForPrimitives\", new Map());\n\n      this.name = name; // @ts-ignore\n\n      this.nextToken = nextToken || getNextToken;\n    }\n\n    beginAsync(token = this.nextToken(), label) {\n      this._register();\n\n      if (this.items.has(token)) {\n        throw new Error(`beginAsync called for ${token} but it is already pending.`);\n      }\n\n      let error = new Error();\n      this.items.set(token, {\n        get stack() {\n          return error.stack;\n        },\n\n        label\n      });\n      return token;\n    }\n\n    endAsync(token) {\n      if (!this.items.has(token) && !this._getCompletedOperations(token).has(token)) {\n        throw new Error(`endAsync called with no preceding beginAsync call.`);\n      }\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\n    waitUntil() {\n      return this.items.size === 0;\n    }\n\n    debugInfo() {\n      let result = [];\n      this.items.forEach(value => {\n        result.push(value);\n      });\n      return result;\n    }\n\n    reset() {\n      this.items.clear();\n    }\n\n    _register() {\n      if (!this.isRegistered) {\n        (0, _waiterManager.register)(this);\n        this.isRegistered = true;\n      }\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  }\n\n  class NoopTestWaiter {\n    constructor(name) {\n      _defineProperty(this, \"name\", void 0);\n\n      this.name = name;\n    }\n\n    beginAsync() {\n      return this;\n    }\n\n    endAsync() {}\n\n    waitUntil() {\n      return true;\n    }\n\n    debugInfo() {\n      return [];\n    }\n\n    reset() {}\n\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\n  function buildWaiter(name) {\n    if (true\n    /* DEBUG */\n    ) {\n      (true && Ember.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\n    if (!true\n    /* DEBUG */\n    ) {\n      return new NoopTestWaiter(name);\n    }\n\n    (true && Ember.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});","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, \"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, \"getWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"_reset\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager._reset;\n    }\n  });\n  Object.defineProperty(_exports, \"getPendingWaiterState\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getPendingWaiterState;\n    }\n  });\n  Object.defineProperty(_exports, \"hasPendingWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.hasPendingWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"buildWaiter\", {\n    enumerable: true,\n    get: function () {\n      return _buildWaiter.default;\n    }\n  });\n  Object.defineProperty(_exports, \"_resetWaiterNames\", {\n    enumerable: true,\n    get: function () {\n      return _buildWaiter._resetWaiterNames;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForPromise\", {\n    enumerable: true,\n    get: function () {\n      return _waitForPromise.default;\n    }\n  });\n  Object.defineProperty(_exports, \"waitFor\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.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  /**\n   * A class representing a test waiter token.\n   *\n   * @public\n   * @class\n   */\n  class Token {}\n\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\n    if (true\n    /* DEBUG */\n    ) {\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\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\n  function waitFor(...args) {\n    let isFunction = args.length < 3;\n\n    if (isFunction) {\n      let [fn, label] = args;\n      return wrapFunction(fn, label);\n    } else {\n      let [,, descriptor, label] = args;\n\n      if (!true\n      /* DEBUG */\n      ) {\n        return descriptor;\n      }\n\n      let fn = descriptor.value;\n      descriptor.value = wrapFunction(fn, label);\n      return descriptor;\n    }\n  }\n\n  function wrapFunction(fn, label) {\n    if (!true\n    /* DEBUG */\n    ) {\n      return fn;\n    }\n\n    return function (...args) {\n      let result = fn.call(this, ...args);\n\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\n  function isThenable(maybePromise) {\n    let type = typeof maybePromise;\n    return (maybePromise !== null && type === 'object' || type === 'function') && typeof maybePromise.then === 'function';\n  }\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\n  const GENERATOR_WAITER = (0, _buildWaiter.default)('@ember/test-waiters:generator-waiter');\n\n  function waitForGenerator(generator, label) {\n    GENERATOR_WAITER.beginAsync(generator, label);\n    let isWaiting = true;\n\n    function stopWaiting() {\n      if (isWaiting) {\n        GENERATOR_WAITER.endAsync(generator);\n        isWaiting = false;\n      }\n    }\n\n    return {\n      next(...args) {\n        let hasErrored = true;\n\n        try {\n          let val = generator.next(...args);\n          hasErrored = false;\n\n          if (val.done) {\n            stopWaiting();\n          }\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\n      return(...args) {\n        stopWaiting();\n        return generator.return(...args);\n      },\n\n      throw(...args) {\n        stopWaiting();\n        return generator.throw(...args);\n      }\n\n    };\n  }\n});","define(\"@ember/test-waiters/waiter-manager\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.register = register;\n  _exports.unregister = unregister;\n  _exports.getWaiters = getWaiters;\n  _exports._reset = _reset;\n  _exports.getPendingWaiterState = getPendingWaiterState;\n  _exports.hasPendingWaiters = hasPendingWaiters;\n  const WAITERS = new Map();\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.Test) {\n    Ember.Test.registerWaiter(() => !hasPendingWaiters());\n  }\n  /**\n   * Registers a waiter.\n   *\n   * @public\n   * @param waiter {Waiter} A test waiter instance\n   */\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\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\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\n  function _reset() {\n    for (let waiter of getWaiters()) {\n      waiter.isRegistered = false;\n    }\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\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\n  function hasPendingWaiters() {\n    let state = getPendingWaiterState();\n    return state.pending > 0;\n  }\n});","define(\"@embroider/macros/runtime\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.each = each;\n  _exports.macroCondition = macroCondition;\n  _exports.config = config;\n  _exports.getGlobalConfig = getGlobalConfig;\n  _exports.isTesting = isTesting;\n\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  function each(array) {\n    if (!Array.isArray(array)) {\n      throw new Error(`the argument to the each() macro must be an array`);\n    }\n\n    return array;\n  }\n\n  function macroCondition(predicate) {\n    return predicate;\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\n\n  function config(packageRoot) {\n    return runtimeConfig.packages[packageRoot];\n  }\n\n  function getGlobalConfig() {\n    return runtimeConfig.global;\n  }\n\n  function isTesting() {\n    let g = runtimeConfig.global;\n    let e = g && g['@embroider/macros'];\n    return Boolean(e && e.isTesting);\n  }\n\n  const runtimeConfig = initializeRuntimeMacrosConfig(); // this exists to be targeted by our babel plugin\n\n  function initializeRuntimeMacrosConfig() {\n    return {\n      \"packages\": {\n        \"/vercel/path0/apps/cms/admin/node_modules/@sentry/ember\": {\n          \"sentryConfig\": {\n            \"disablePerformance\": true,\n            \"sentry\": {}\n          }\n        }\n      },\n      \"global\": {\n        \"@embroider/macros\": {\n          \"isTesting\": false\n        }\n      }\n    };\n  }\n\n  function updaterMethods() {\n    return {\n      config,\n      getGlobalConfig,\n\n      setConfig(packageRoot, value) {\n        runtimeConfig.packages[packageRoot] = value;\n      },\n\n      setGlobalConfig(key, value) {\n        runtimeConfig.global[key] = value;\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\n\n  let updaters = typeof window !== 'undefined' ? window._embroider_macros_runtime_config : undefined;\n\n  if (updaters) {\n    let methods = updaterMethods();\n\n    for (let updater of updaters) {\n      updater(methods);\n    }\n  }\n});","define(\"@embroider/util/ember-private-api\", [\"exports\", \"@embroider/macros/runtime\"], function (_exports, _runtime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.lookupCurriedComponentDefinition = lookupCurriedComponentDefinition;\n  _exports.isCurriedComponentDefinition = void 0;\n\n  /* global Ember */\n  let {\n    isCurriedComponentDefinition,\n    CurriedComponentDefinition,\n    curry,\n    CurriedValue\n  } = Ember.__loader.require('@glimmer/runtime'); // older embers have isCurriedComponentDefinition, new ones have CurriedValue\n  // and instanceof CurriedValue seems good enough.\n\n\n  _exports.isCurriedComponentDefinition = isCurriedComponentDefinition;\n\n  if (!isCurriedComponentDefinition) {\n    _exports.isCurriedComponentDefinition = isCurriedComponentDefinition = function (value) {\n      return value instanceof CurriedValue;\n    };\n  }\n\n  function runtimeResolver(owner) {\n    let resolver = owner.lookup('renderer:-dom')._runtimeResolver;\n\n    if (resolver) {\n      return resolver;\n    }\n\n    let entry = Object.entries(owner.__container__.cache).find(e => e[0].startsWith('template-compiler:main-'));\n\n    if (entry) {\n      return entry[1].resolver.resolver;\n    }\n\n    throw new Error(`@embroider/util couldn't locate the runtime resolver on this ember version`);\n  }\n\n  function lookupCurriedComponentDefinition(name, owner) {\n    let resolver = runtimeResolver(owner);\n\n    if (typeof resolver.lookupComponentHandle === 'function') {\n      let handle = resolver.lookupComponentHandle(name, contextForLookup(owner));\n\n      if (handle != null) {\n        return new CurriedComponentDefinition(resolver.resolve(handle), null);\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\n\n    let resolvedDefinition = resolver.lookupComponent(name, owner);\n\n    if (!resolvedDefinition) {\n      throw new Error(`Attempted to resolve \\`${name}\\` via ensureSafeComponent, but nothing was found.`);\n    }\n\n    return curry(0, name, owner, {\n      named: {},\n      positional: []\n    });\n  }\n\n  function contextForLookup(owner) {\n    if ((0, _runtime.macroCondition)(false)) {\n      return owner;\n    } else {\n      return {\n        owner\n      };\n    }\n  }\n});","define(\"@embroider/util/index\", [\"exports\", \"@embroider/util/ember-private-api\"], function (_exports, _emberPrivateApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.ensureSafeComponent = ensureSafeComponent;\n  _exports.EnsureSafeComponentHelper = void 0;\n\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\n  class EnsureSafeComponentHelper extends Ember.Helper {\n    compute([value]) {\n      return ensureSafeComponent(value, this);\n    }\n\n  }\n\n  _exports.EnsureSafeComponentHelper = EnsureSafeComponentHelper;\n\n  function handleString(name, thingWithOwner) {\n    (true && !(false) && Ember.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/master/ADDON-AUTHOR-GUIDE.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 = Ember.getOwner(thingWithOwner);\n    return (0, _emberPrivateApi.lookupCurriedComponentDefinition)(name, owner);\n  }\n\n  function ensureRegistered(klass, owner) {\n    let service = owner.lookup('service:-ensure-registered');\n    (true && !(service) && Ember.assert('Could not lookup private -ensure-registered service', service));\n    return service.register(klass, owner);\n  }\n\n  function handleClass(klass, thingWithOwner) {\n    let owner = Ember.getOwner(thingWithOwner);\n    let nonce = ensureRegistered(klass, owner);\n    return (0, _emberPrivateApi.lookupCurriedComponentDefinition)(nonce, owner);\n  }\n});","define(\"@embroider/util/services/ensure-registered\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  class EnsureRegisteredService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"classNonces\", new WeakMap());\n\n      _defineProperty(this, \"nonceCounter\", 0);\n    }\n\n    register(klass, owner = Ember.getOwner(this)) {\n      let nonce = this.classNonces.get(klass);\n\n      if (nonce == null) {\n        nonce = `-ensure${this.nonceCounter++}`;\n        this.classNonces.set(klass, nonce);\n        owner.register(`component:${nonce}`, klass);\n      }\n\n      return nonce;\n    }\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\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\n      constructor(owner) {\n        _defineProperty(this, \"capabilities\", capabilities);\n\n        setOwner(this, owner);\n      }\n\n      createComponent(ComponentClass, args) {\n        if (true\n        /* DEBUG */\n        ) {\n          _component.ARGS_SET.set(args.named, true);\n        }\n\n        return new ComponentClass(getOwner(this), args.named);\n      }\n\n      getContext(component) {\n        return component;\n      }\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  let ARGS_SET;\n  _exports.ARGS_SET = ARGS_SET;\n\n  if (true\n  /* DEBUG */\n  ) {\n    _exports.ARGS_SET = ARGS_SET = new WeakMap();\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\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      _defineProperty(this, \"args\", void 0);\n\n      if (true\n      /* DEBUG */\n      && !(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\n      this.args = args;\n      (0, _owner.setOwner)(this, owner);\n    }\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\n\n    get isDestroying() {\n      return (0, _destroyables.isDestroying)(this);\n    }\n\n    get isDestroyed() {\n      return (0, _destroyables.isDestroyed)(this);\n    }\n    /**\n     * Called before the component has been removed from the DOM.\n     */\n\n\n    willDestroy() {}\n\n  }\n\n  _exports.default = BaseComponent;\n});","define(\"@glimmer/component/-private/destroyables\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isDestroyed = _exports.isDestroying = void 0;\n\n  const isDestroying = Ember.__loader.require('@glimmer/runtime').isDestroying;\n\n  _exports.isDestroying = isDestroying;\n\n  const isDestroyed = Ember.__loader.require('@glimmer/runtime').isDestroyed;\n\n  _exports.isDestroyed = isDestroyed;\n});","define(\"@glimmer/component/-private/ember-component-manager\", [\"exports\", \"@glimmer/component/-private/base-component-manager\", \"@glimmer/component/-private/destroyables\"], function (_exports, _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  ? Ember._componentManagerCapabilities('3.13', {\n    destructor: true,\n    asyncLifecycleCallbacks: false,\n    updateHook: false\n  }) : Ember._componentManagerCapabilities('3.4', {\n    destructor: true,\n    asyncLifecycleCallbacks: false\n  });\n  const scheduledDestroyComponent = true ? undefined : (component, meta) => {\n    if (component.isDestroyed) {\n      return;\n    }\n\n    Ember.destroy(component);\n    meta.setSourceDestroyed();\n    setDestroyed(component);\n  };\n  const destroy = true ? Ember.destroy : component => {\n    if (component.isDestroying) {\n      return;\n    }\n\n    let meta = Ember.meta(component);\n    meta.setSourceDestroying();\n    setDestroying(component);\n    Ember.run.schedule('actions', component, component.willDestroy);\n    Ember.run.schedule('destroy', void 0, scheduledDestroyComponent, component, meta);\n  };\n  const registerDestructor = false // @ts-ignore\n  ? Ember._registerDestructor : true ? Ember.__loader.require('@glimmer/runtime').registerDestructor : undefined;\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\n  class EmberGlimmerComponentManager extends (0, _baseComponentManager.default)(Ember.setOwner, Ember.getOwner, CAPABILITIES) {\n    createComponent(ComponentClass, args) {\n      const component = super.createComponent(ComponentClass, args);\n\n      if (true) {\n        registerDestructor(component, () => {\n          component.willDestroy();\n        });\n      }\n\n      return component;\n    }\n\n    destroyComponent(component) {\n      destroy(component);\n    }\n\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\n      if (true\n      /* DEBUG */\n      ) {\n        argSnapshot = Object.freeze(argSnapshot);\n      }\n\n      Ember.set(component, 'args', argSnapshot);\n    };\n  }\n\n  var _default = EmberGlimmerComponentManager;\n  _exports.default = _default;\n});","define(\"@glimmer/component/-private/owner\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.setOwner = void 0;\n  var setOwner = Ember.setOwner;\n  _exports.setOwner = setOwner;\n});","define(\"@glimmer/component/index\", [\"exports\", \"@glimmer/component/-private/ember-component-manager\", \"@glimmer/component/-private/component\"], function (_exports, _emberComponentManager, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let GlimmerComponent = _component.default;\n\n  if (true\n  /* DEBUG */\n  ) {\n    // Add assertions against using Glimmer.js only APIs\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\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\n    GlimmerComponent = class GlimmerDebugComponent extends GlimmerComponent {\n      constructor(owner, args) {\n        super(owner, args);\n\n        if (typeof this['didInsertElement'] === 'function') {\n          throwMethodUseError('didInsertElement');\n        }\n\n        if (typeof this['didUpdate'] === 'function') {\n          throwMethodUseError('didUpdate');\n        }\n      }\n\n    };\n    let proto = GlimmerComponent.prototype;\n\n    function defineErrorProp(proto, key, getterMethod) {\n      Object.defineProperty(proto, key, {\n        get: () => getterMethod(key),\n\n        set(value) {\n          Object.defineProperty(this, key, {\n            value\n          });\n        }\n\n      });\n    } // Methods should still throw whenever they are accessed\n\n\n    defineErrorProp(proto, 'bounds', throwPropertyUseError);\n    defineErrorProp(proto, 'element', throwPropertyUseError);\n    defineErrorProp(proto, 'debugName', throwPropertyUseError);\n  }\n\n  if (true) {\n    Ember._setComponentManager(owner => {\n      return new _emberComponentManager.default(owner);\n    }, GlimmerComponent);\n  } else {\n    Ember._setComponentManager('glimmer', GlimmerComponent);\n  }\n\n  var _default = GlimmerComponent;\n  _exports.default = _default;\n});","define(\"@html-next/vertical-collection/-debug/edge-visualization/debug-mixin\", [\"exports\", \"@html-next/vertical-collection/-debug/edge-visualization/visualization\", \"@html-next/vertical-collection/-private\", \"@html-next/vertical-collection/-debug/utils/validate-style\"], function (_exports, _visualization, _private, _validateStyle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    debugVis: false,\n    debugCSS: false,\n    __visualization: null,\n\n    init() {\n      this._super(...arguments);\n\n      this._radar._debugDidUpdate = () => {\n        this.updateVisualization();\n        this.detectIssuesWithCSS();\n      };\n    },\n\n    detectIssuesWithCSS() {\n      if (this.get('debugCSS') === false) {\n        return;\n      }\n\n      let radar = this._radar;\n      let styles; // check telescope\n\n      if (radar.scrollContainer !== _private.ViewportContainer) {\n        styles = window.getComputedStyle(radar.scrollContainer);\n      } else {\n        styles = window.getComputedStyle(document.body);\n      }\n\n      (true && !((0, _validateStyle.styleIsOneOf)(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])) && Ember.assert(`scrollContainer cannot be inline.`, (0, _validateStyle.styleIsOneOf)(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])));\n      (true && !((0, _validateStyle.styleIsOneOf)(styles, 'position', ['static', 'relative', 'absolute'])) && Ember.assert(`scrollContainer must define position`, (0, _validateStyle.styleIsOneOf)(styles, 'position', ['static', 'relative', 'absolute'])));\n      (true && !((0, _validateStyle.hasStyleWithNonZeroValue)(styles, 'height') || (0, _validateStyle.hasStyleWithNonZeroValue)(styles, 'max-height')) && Ember.assert(`scrollContainer must define height or max-height`, (0, _validateStyle.hasStyleWithNonZeroValue)(styles, 'height') || (0, _validateStyle.hasStyleWithNonZeroValue)(styles, 'max-height'))); // conditional perf check for non-body scrolling\n\n      if (radar.scrollContainer !== _private.ViewportContainer) {\n        (true && !((0, _validateStyle.hasStyleValue)(styles, 'overflow-y', 'scroll') || (0, _validateStyle.hasStyleValue)(styles, 'overflow', 'scroll')) && Ember.assert(`scrollContainer must define overflow-y`, (0, _validateStyle.hasStyleValue)(styles, 'overflow-y', 'scroll') || (0, _validateStyle.hasStyleValue)(styles, 'overflow', 'scroll')));\n      } // check itemContainer\n\n\n      styles = window.getComputedStyle(radar.itemContainer);\n      (true && !((0, _validateStyle.styleIsOneOf)(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])) && Ember.assert(`itemContainer cannot be inline.`, (0, _validateStyle.styleIsOneOf)(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])));\n      (true && !((0, _validateStyle.styleIsOneOf)(styles, 'position', ['static', 'relative', 'absolute'])) && Ember.assert(`itemContainer must define position`, (0, _validateStyle.styleIsOneOf)(styles, 'position', ['static', 'relative', 'absolute']))); // check item defaults\n\n      (true && !(this.get('items.length')) && Ember.assert(`You must supply at least one item to the collection to debug it's CSS.`, this.get('items.length')));\n      let element = radar._itemContainer.firstElementChild;\n      styles = window.getComputedStyle(element);\n      (true && !((0, _validateStyle.styleIsOneOf)(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])) && Ember.assert(`Item cannot be inline.`, (0, _validateStyle.styleIsOneOf)(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])));\n      (true && !((0, _validateStyle.styleIsOneOf)(styles, 'position', ['static', 'relative', 'absolute'])) && Ember.assert(`Item must define position`, (0, _validateStyle.styleIsOneOf)(styles, 'position', ['static', 'relative', 'absolute'])));\n    },\n\n    updateVisualization() {\n      if (this.get('debugVis') === false) {\n        if (this.__visualization !== null) {\n          console.info('tearing down existing visualization'); // eslint-disable-line no-console\n\n          this.__visualization.destroy();\n\n          this.__visualization = null;\n        }\n\n        return;\n      }\n\n      if (this.__visualization === null) {\n        this.__visualization = new _visualization.default(this._radar);\n      }\n\n      this.__visualization.render();\n    },\n\n    willDestroy() {\n      this._super();\n\n      if (this.__visualization) {\n        console.info('destroying visualization'); // eslint-disable-line no-console\n\n        this.__visualization.destroy();\n\n        this.__visualization = null;\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"@html-next/vertical-collection/-debug/edge-visualization/visualization\", [\"exports\", \"@html-next/vertical-collection/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function applyVerticalStyles(element, geography) {\n    element.style.height = `${geography.height}px`;\n    element.style.top = `${geography.top}px`;\n  }\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\n    render() {\n      this.styleViewport();\n      this.updateSatellites();\n    }\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\n    makeSatellite() {\n      let satellite;\n\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\n      this.satellites.push(satellite);\n      this.itemContainer.append(satellite);\n    }\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\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\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\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\n      this.itemContainer.style.paddingTop = `${totalBefore}px`;\n      this.itemContainer.style.paddingBottom = `${totalAfter}px`;\n    }\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\n  _exports.default = Visualization;\n});","define(\"@html-next/vertical-collection/-debug/index\", [\"@html-next/vertical-collection/-debug/edge-visualization/debug-mixin\", \"@html-next/vertical-collection/components/vertical-collection/component\"], function (_debugMixin, _component) {\n  \"use strict\";\n\n  _component.default.reopen(_debugMixin.default);\n});","define(\"@html-next/vertical-collection/-debug/utils/validate-css\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.hasCSSRule = hasCSSRule;\n\n  function hasCSSRule(rules, prop, value) {\n    let styleStr = `${prop}:\\\\s*${value}`;\n    let expr = new RegExp(styleStr, ['i']);\n\n    for (let i = 0; i < rules.length; i++) {\n      if (expr.test(rules[i].cssText)) {\n        return true;\n      }\n    }\n\n    return false;\n  }\n});","define(\"@html-next/vertical-collection/-debug/utils/validate-rect\", [\"exports\", \"@html-next/vertical-collection/-debug/utils/validate-style\"], function (_exports, _validateStyle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.hasDimension = hasDimension;\n  _exports.hasDimensionAbove = hasDimensionAbove;\n  _exports.hasDimensionEqual = hasDimensionEqual;\n\n  function hasDimension(rect, prop) {\n    return (0, _validateStyle.isNonZero)(rect[prop]);\n  }\n\n  function hasDimensionAbove(rect, prop, amount) {\n    return hasDimension(rect, prop) && rect[prop] >= amount;\n  }\n\n  function hasDimensionEqual(rect, prop, amount) {\n    return hasDimension(rect, prop) && rect[prop] === amount;\n  }\n});","define(\"@html-next/vertical-collection/-debug/utils/validate-style\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.hasStyleValue = hasStyleValue;\n  _exports.isNonZero = isNonZero;\n  _exports.hasStyleWithNonZeroValue = hasStyleWithNonZeroValue;\n  _exports.styleIsOneOf = styleIsOneOf;\n  _exports.containsStyleValue = containsStyleValue;\n\n  function hasStyleValue(styles, key, value) {\n    return styles[key] === value;\n  }\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\n  function hasStyleWithNonZeroValue(styles, key) {\n    return isNonZero(styles[key]);\n  }\n\n  function styleIsOneOf(styles, key, values) {\n    return styles[key] && values.indexOf(styles[key]) !== -1;\n  }\n\n  function containsStyleValue(styles, key, value) {\n    return styles[key] && styles[key].indexOf(value) !== -1;\n  }\n});","define('@html-next/vertical-collection/-private', ['exports', 'ember-raf-scheduler'], function (exports, emberRafScheduler) { 'use strict';\n\n  function identity(item) {\n    let key;\n    const type = typeof item;\n\n    if (type === 'string' || type === 'number') {\n      key = item;\n    } else {\n      key = Ember.guidFor(item);\n    }\n\n    return key;\n  }\n\n  function keyForItem(item, keyPath, index) {\n    let key;\n    ( !(typeof keyPath === 'string') && Ember.assert(`keyPath must be a string, received: ${keyPath}`, typeof keyPath === 'string'));\n\n    switch (keyPath) {\n      case '@index':\n        ( !(typeof index === 'number') && Ember.assert(`A numerical index must be supplied for keyForItem when keyPath is @index, received: ${index}`, typeof index === 'number'));\n        key = index;\n        break;\n\n      case '@identity':\n        key = identity(item);\n        break;\n\n      default:\n        key = Ember.get(item, keyPath);\n    }\n\n    if (typeof key === 'number') {\n      key = String(key);\n    }\n\n    return key;\n  }\n\n  const VENDOR_MATCH_FNS = ['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'];\n  let ELEMENT_MATCH_FN;\n\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\n  function closest(el, selector) {\n    if (ELEMENT_MATCH_FN === undefined) {\n      setElementMatchFn(el);\n    }\n\n    while (el) {\n      // TODO add explicit test\n      if (el[ELEMENT_MATCH_FN](selector)) {\n        return el;\n      }\n\n      el = el.parentElement;\n    }\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; // 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\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      {\n        Object.preventExtensions(this);\n      }\n    }\n\n    get realUpperBound() {\n      return  this.upperBound ;\n    }\n\n    get realLowerBound() {\n      return  this.lowerBound ;\n    }\n\n    getBoundingClientRect() {\n      let {\n        upperBound,\n        lowerBound\n      } = this;\n      let top = Infinity;\n      let bottom = -Infinity;\n\n      while (upperBound !== lowerBound) {\n        upperBound = upperBound.nextSibling;\n\n        if (upperBound instanceof Element) {\n          top = Math.min(top, upperBound.getBoundingClientRect().top);\n          bottom = Math.max(bottom, upperBound.getBoundingClientRect().bottom);\n        }\n\n        {\n          if (upperBound instanceof Element) {\n            continue;\n          }\n\n          const text = upperBound.textContent;\n          ( !(text === '' || text.match(/^\\s+$/)) && Ember.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\n      ( !(top !== Infinity && bottom !== -Infinity) && Ember.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\n    recycle(newContent, newIndex) {\n      ( !(newContent) && Ember.assert(`You cannot set an item's content to undefined`, newContent));\n\n      if (this.index !== newIndex) {\n        Ember.set(this, 'index', newIndex);\n      }\n\n      if (this.content !== newContent) {\n        Ember.set(this, 'content', newContent);\n      }\n    }\n\n    destroy() {\n      Ember.set(this, 'upperBound', null);\n      Ember.set(this, 'lowerBound', null);\n      Ember.set(this, 'content', null);\n      Ember.set(this, 'index', null);\n    }\n\n  }\n\n  let OC_IDENTITY = 0;\n  class OccludedContent {\n    constructor(tagName) {\n      this.id = `OC-${OC_IDENTITY++}`;\n      this.isOccludedContent = true; // 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\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\n      this.isOccludedContent = true;\n      this.rendered = false;\n\n      {\n        Object.preventExtensions(this);\n      }\n    }\n\n    getBoundingClientRect() {\n      if (this.element !== null) {\n        return this.element.getBoundingClientRect();\n      }\n    }\n\n    addEventListener(event, listener) {\n      if (this.element !== null) {\n        this.element.addEventListener(event, listener);\n      }\n    }\n\n    removeEventListener(event, listener) {\n      if (this.element !== null) {\n        this.element.removeEventListener(event, listener);\n      }\n    }\n\n    get realUpperBound() {\n      return  this.upperBound ;\n    }\n\n    get realLowerBound() {\n      return  this.lowerBound ;\n    }\n\n    get parentNode() {\n      return this.element !== null ? this.element.parentNode : null;\n    }\n\n    get style() {\n      return this.element !== null ? this.element.style : {};\n    }\n\n    set innerHTML(value) {\n      if (this.element !== null) {\n        this.element.innerHTML = value;\n      }\n    }\n\n    destroy() {\n      Ember.set(this, 'element', null);\n    }\n\n  }\n\n  function insertRangeBefore(parent, element, firstNode, lastNode) {\n    let nextNode;\n\n    while (firstNode) {\n      nextNode = firstNode.nextSibling;\n      parent.insertBefore(firstNode, element);\n\n      if (firstNode === lastNode) {\n        break;\n      }\n\n      firstNode = nextNode;\n    }\n  }\n\n  function objectAt(arr, index) {\n    ( !(Array.isArray(arr) || typeof arr.objectAt === 'function') && Ember.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 = Ember.get(newItems, 'length');\n\n    if (lenDiff <= 0 || lenDiff >= newItemsLength || newItemsLength === 0) {\n      return false;\n    }\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 = Ember.get(newItems, 'length');\n\n    if (lenDiff <= 0 || lenDiff >= newItemsLength || newItemsLength === 0) {\n      return false;\n    }\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\n  try {\n    let opts = Object.defineProperty({}, 'passive', {\n      get() {\n        supportsPassive = true;\n        return supportsPassive;\n      }\n\n    });\n    window.addEventListener('test', null, opts);\n  } catch (e) {// do nothing\n  }\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\n    addScrollHandler(element, handler) {\n      let index = this.elements.indexOf(element);\n      let handlers, cache;\n\n      if (index === -1) {\n        index = this.length++;\n\n        if (index === this.maxLength) {\n          this.maxLength *= 2;\n          this.elements.length = this.maxLength;\n          this.handlers.length = this.maxLength;\n        }\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        }; // TODO add explicit test\n\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      } // TODO add explicit test\n\n\n      if (this.isUsingPassive && handlers.length === 1) {\n        element.addEventListener('scroll', cache.passiveHandler, {\n          capture: true,\n          passive: true\n        }); // TODO add explicit test\n      } else if (!this.isPolling) {\n        this.poll();\n      }\n    }\n\n    removeScrollHandler(element, handler) {\n      let index = this.elements.indexOf(element);\n      let elementCache = this.handlers[index]; // TODO add explicit test\n\n      if (elementCache && elementCache.handlers) {\n        let index = elementCache.handlers.indexOf(handler);\n\n        if (index === -1) {\n          throw new Error('Attempted to remove an unknown handler');\n        }\n\n        elementCache.handlers.splice(index, 1); // cleanup element entirely if needed\n        // TODO add explicit test\n\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\n          if (this.length === 0) {\n            this.isPolling = false;\n          } // TODO add explicit test\n\n\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\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      }; // TODO add explicit test\n\n      if (topChanged || leftChanged) {\n        Ember.run.begin();\n\n        for (let j = 0; j < meta.handlers.length; j++) {\n          meta.handlers[j](event);\n        }\n\n        Ember.run.end();\n      }\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\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\n        this.isPolling = this.length > 0; // TODO add explicit test\n\n        if (this.isPolling) {\n          this.poll();\n        }\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\n      set(v) {\n        document.body.scrollTop = document.documentElement.scrollTop = v;\n      }\n\n    });\n    Object.defineProperty(this, 'scrollLeft', {\n      get() {\n        return window.scrollX || window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft;\n      },\n\n      set(v) {\n        window.scrollX = window.pageXOffset = document.body.scrollLeft = document.documentElement.scrollLeft = v;\n      }\n\n    });\n    Object.defineProperty(this, 'offsetHeight', {\n      get() {\n        return window.innerHeight;\n      }\n\n    });\n  }\n\n  ViewportContainer.prototype.addEventListener = function addEventListener(event, handler, options) {\n    return window.addEventListener(event, handler, options);\n  };\n\n  ViewportContainer.prototype.removeEventListener = function addEventListener(event, handler, options) {\n    return window.removeEventListener(event, handler, options);\n  };\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\n  var ViewportContainer$1 = new ViewportContainer();\n\n  function estimateElementHeight(element, fallbackHeight) {\n    ( !(fallbackHeight) && Ember.assert(`You called estimateElement height without a fallbackHeight`, fallbackHeight));\n    ( !(element) && Ember.assert(`You called estimateElementHeight without an element`, element));\n\n    if (fallbackHeight.indexOf('%') !== -1) {\n      return getPercentageHeight(element, fallbackHeight);\n    }\n\n    if (fallbackHeight.indexOf('em') !== -1) {\n      return getEmHeight(element, fallbackHeight);\n    }\n\n    return parseInt(fallbackHeight, 10);\n  }\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\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\n    if (scale === 1) {\n      return rect;\n    }\n\n    const scaled = {};\n\n    for (let key in rect) {\n      scaled[key] = rect[key] * scale;\n    }\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); // Public API\n\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; // defaults to a no-op intentionally, actions will only be sent if they\n      // are passed into the component\n\n      this.sendAction = () => {}; // Calculated constants\n\n\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; // Event handler\n\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\n      this._resizeHandler = this.scheduleUpdate.bind(this); // Run state\n\n      this._nextUpdate = null;\n      this._nextLayout = null;\n      this._started = false;\n      this._didReset = true;\n      this._didUpdateItems = false; // Cache state\n\n      this._scrollTop = 0; // 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\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 = []; // Boundaries\n\n      this._occludedContentBefore = new OccludedContent(occlusionTagName);\n      this._occludedContentAfter = new OccludedContent(occlusionTagName);\n      this._pageUpHandler = this.pageUp.bind(this);\n\n      this._occludedContentBefore.addEventListener('click', this._pageUpHandler);\n\n      this._pageDownHandler = this.pageDown.bind(this);\n\n      this._occludedContentAfter.addEventListener('click', this._pageDownHandler); // Element to hold pooled component DOM when not in use\n\n\n      if (document$1) {\n        this._domPool = document$1.createDocumentFragment();\n      } // Initialize virtual components\n\n\n      this.virtualComponents = Ember.A([this._occludedContentBefore, this._occludedContentAfter]);\n      this.orderedComponents = [];\n\n      this._updateVirtualComponents(); // In older versions of Ember/IE, binding anything on an object in the template\n      // adds observers which creates __ember_meta__\n\n\n      this.__ember_meta__ = null; // eslint-disable-line camelcase\n\n      {\n        this._debugDidUpdate = null;\n      }\n    }\n\n    destroy() {\n      this.token.cancel();\n\n      for (let i = 0; i < this.orderedComponents.length; i++) {\n        this.orderedComponents[i].destroy();\n      } // Boundaries\n\n\n      this._occludedContentBefore.removeEventListener('click', this._pageUpHandler);\n\n      this._occludedContentAfter.removeEventListener('click', this._pageDownHandler);\n\n      this._occludedContentBefore.destroy();\n\n      this._occludedContentAfter.destroy();\n\n      this.orderedComponents = null;\n      Ember.set(this, 'virtualComponents', null);\n\n      if (this._started) {\n        removeScrollHandler(this._scrollContainer, this._scrollHandler);\n        ViewportContainer$1.removeEventListener('resize', this._resizeHandler);\n      }\n    }\n\n    schedule(queueName, job) {\n      return emberRafScheduler.scheduler.schedule(queueName, job, this.token);\n    }\n    /**\n     * Start the Radar. Does initial measurements, adds event handlers,\n     * sets up initial scroll state, and\n     */\n\n\n    start() {\n      const {\n        startingIndex,\n        containerSelector,\n        _occludedContentBefore\n      } = this; // Use the occluded content element, which has been inserted into the DOM,\n      // to find the item container and the scroll container\n\n      this._itemContainer = _occludedContentBefore.element.parentNode;\n      this._scrollContainer = containerSelector === 'body' ? ViewportContainer$1 : closest(this._itemContainer, containerSelector);\n\n      this._updateConstants(); // Setup initial scroll state\n\n\n      if (startingIndex !== 0) {\n        const {\n          renderFromLast,\n          _calculatedEstimateHeight,\n          _collectionOffset,\n          _calculatedScrollContainerHeight\n        } = this;\n        let startingScrollTop = startingIndex * _calculatedEstimateHeight;\n\n        if (renderFromLast) {\n          startingScrollTop -= _calculatedScrollContainerHeight - _calculatedEstimateHeight;\n        } // initialize the scrollTop value, which will be applied to the\n        // scrollContainer after the collection has been initialized\n\n\n        this._scrollTop = startingScrollTop + _collectionOffset;\n        this._prevFirstVisibleIndex = startingIndex;\n      } else {\n        this._scrollTop = this._scrollContainer.scrollTop;\n      }\n\n      this._started = true;\n      this.update(); // Setup event handlers\n\n      addScrollHandler(this._scrollContainer, this._scrollHandler);\n      ViewportContainer$1.addEventListener('resize', this._resizeHandler);\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\n\n    scheduleUpdate(didUpdateItems) {\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\n      if (this._nextUpdate !== null || this._started === false) {\n        return;\n      }\n\n      this._nextUpdate = this.schedule('sync', () => {\n        this._nextUpdate = null;\n        this._scrollTop = this._scrollContainer.scrollTop;\n        this.update();\n      });\n    }\n\n    update() {\n      if (this._didUpdateItems === true) {\n        this._determineUpdateType();\n\n        this._didUpdateItems = false;\n      }\n\n      this._updateConstants();\n\n      this._updateIndexes();\n\n      this._updateVirtualComponents();\n\n      this.schedule('measure', this.afterUpdate.bind(this));\n    }\n\n    afterUpdate() {\n      const {\n        _prevTotalItems: totalItems\n      } = this;\n\n      const scrollDiff = this._calculateScrollDiff();\n\n      if (scrollDiff !== 0) {\n        this._scrollContainer.scrollTop += scrollDiff;\n      } // Re-sync scrollTop, since Chrome may have intervened\n\n\n      this._scrollTop = this._scrollContainer.scrollTop; // Unset prepend offset, we're done with any prepend changes at this point\n\n      this._prependOffset = 0;\n\n      if (totalItems !== 0) {\n        this._sendActions();\n      } // Cache previous values\n\n\n      this._prevFirstItemIndex = this.firstItemIndex;\n      this._prevLastItemIndex = this.lastItemIndex;\n      this._prevFirstVisibleIndex = this.firstVisibleIndex;\n      this._prevLastVisibleIndex = this.lastVisibleIndex; // Clear the reset flag\n\n      this._didReset = false;\n\n      if ( this._debugDidUpdate !== null) {\n        // Hook to update the visual debugger\n        this._debugDidUpdate(this);\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\n\n    _calculateScrollDiff() {\n      return this._prependOffset + this._scrollTop - this._scrollContainer.scrollTop;\n    }\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\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\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\n    _updateConstants() {\n      const {\n        estimateHeight,\n        _occludedContentBefore,\n        _itemContainer,\n        _scrollContainer\n      } = this;\n      ( !(estimateHeight !== null) && Ember.assert('Must provide a `estimateHeight` value to vertical-collection', estimateHeight !== null));\n      ( !(_itemContainer !== null) && Ember.assert('itemContainer must be set on Radar before scheduling an update', _itemContainer !== null));\n      ( !(_scrollContainer !== null) && Ember.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\n      const scrollContainerOffsetHeight = _scrollContainer.offsetHeight;\n\n      const {\n        height: scrollContainerRenderedHeight\n      } = _scrollContainer.getBoundingClientRect();\n\n      let transformScale; // 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\n      if (scrollContainerOffsetHeight === scrollContainerRenderedHeight || scrollContainerRenderedHeight === 0) {\n        transformScale = 1;\n      } else {\n        transformScale = scrollContainerOffsetHeight / scrollContainerRenderedHeight;\n      }\n\n      const {\n        top: scrollContentTop\n      } = getScaledClientRect(_occludedContentBefore, transformScale);\n      const {\n        top: scrollContainerTop\n      } = getScaledClientRect(_scrollContainer, transformScale);\n      let scrollContainerMaxHeight = 0;\n\n      if (_scrollContainer instanceof Element) {\n        const maxHeightStyle = window.getComputedStyle(_scrollContainer).maxHeight;\n\n        if (maxHeightStyle !== 'none') {\n          scrollContainerMaxHeight = estimateElementHeight(_scrollContainer.parentElement, maxHeightStyle);\n        }\n      }\n\n      const calculatedEstimateHeight = typeof estimateHeight === 'string' ? estimateElementHeight(_itemContainer, estimateHeight) : estimateHeight;\n      ( !(calculatedEstimateHeight > 0) && Ember.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)); // 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\n      this._collectionOffset = roundTo(_scrollContainer.scrollTop + scrollContentTop - scrollContainerTop);\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\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\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      } // If there are less items available than rendered, we drop the last rendered item index\n\n\n      renderedLastItemIndex = Math.min(renderedLastItemIndex, totalItems - 1); // Add components to be recycled to the pool\n\n      while (orderedComponents.length > 0 && orderedComponents[0].index < renderedFirstItemIndex) {\n        _componentPool.push(orderedComponents.shift());\n      }\n\n      while (orderedComponents.length > 0 && orderedComponents[orderedComponents.length - 1].index > renderedLastItemIndex) {\n        _componentPool.unshift(orderedComponents.pop());\n      }\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\n      let firstIndexInList = orderedComponents.length > 0 ? orderedComponents[0].index : renderedFirstItemIndex;\n      let lastIndexInList = orderedComponents.length > 0 ? orderedComponents[orderedComponents.length - 1].index : renderedFirstItemIndex - 1; // Append as many items as needed to the rendered components\n\n      while (lastIndexInList < renderedLastItemIndex) {\n        let component;\n\n        if (shouldRecycle === true) {\n          component = _componentPool.pop() || new VirtualComponent();\n        } else {\n          component = new VirtualComponent();\n        }\n\n        const itemIndex = ++lastIndexInList;\n        component.recycle(objectAt(items, itemIndex), itemIndex);\n\n        this._appendComponent(component);\n\n        orderedComponents.push(component);\n      } // Prepend as many items as needed to the rendered components\n\n\n      while (firstIndexInList > renderedFirstItemIndex) {\n        let component;\n\n        if (shouldRecycle === true) {\n          component = _componentPool.pop() || new VirtualComponent();\n        } else {\n          component = new VirtualComponent();\n        }\n\n        const itemIndex = --firstIndexInList;\n        component.recycle(objectAt(items, itemIndex), itemIndex);\n\n        this._prependComponent(component);\n\n        orderedComponents.unshift(component);\n      } // If there are any items remaining in the pool, remove them\n\n\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 we end up using these components again, we'll grab their DOM and put it back\n          for (let i = 0; i < _componentPool.length; i++) {\n            const component = _componentPool[i];\n            insertRangeBefore(this._domPool, null, component.realUpperBound, component.realLowerBound);\n          }\n        } else {\n          virtualComponents.removeObjects(_componentPool);\n          _componentPool.length = 0;\n        }\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'; // Set padding element heights.\n\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\n    _appendComponent(component) {\n      const {\n        virtualComponents,\n        _occludedContentAfter,\n        _itemContainer\n      } = this;\n      const relativeNode = _occludedContentAfter.realUpperBound;\n\n      if (component.rendered === true) {\n        insertRangeBefore(_itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n      } else {\n        virtualComponents.insertAt(virtualComponents.get('length') - 1, component);\n        component.rendered = true;\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\n      if (component.rendered === true) {\n        insertRangeBefore(_itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n      } else {\n        virtualComponents.insertAt(virtualComponents.get('length') - 1, component);\n        component.rendered = true; // 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\n        _prependComponentPool.unshift(component);\n\n        if (this._nextLayout === null) {\n          this._nextLayout = this.schedule('layout', () => {\n            this._nextLayout = null;\n\n            while (_prependComponentPool.length > 0) {\n              const component = _prependComponentPool.pop(); // Changes with each inserted component\n\n\n              const relativeNode = _occludedContentBefore.realLowerBound.nextSibling;\n              insertRangeBefore(_itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n            }\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\n      if (_didReset || firstVisibleIndex !== _prevFirstVisibleIndex) {\n        this.sendAction('firstVisibleChanged', firstVisibleIndex);\n      }\n\n      if (_didReset || lastVisibleIndex !== _prevLastVisibleIndex) {\n        this.sendAction('lastVisibleChanged', lastVisibleIndex);\n      }\n\n      if (_firstReached === false && firstItemIndex === 0) {\n        this.sendAction('firstReached', firstItemIndex);\n        this._firstReached = true;\n      }\n\n      if (_lastReached === false && lastItemIndex === totalItems - 1) {\n        this.sendAction('lastReached', lastItemIndex);\n        this._lastReached = true;\n      }\n    }\n\n    prepend(numPrepended) {\n      this._prevFirstItemIndex += numPrepended;\n      this._prevLastItemIndex += numPrepended;\n      this.orderedComponents.forEach(c => Ember.set(c, 'index', Ember.get(c, 'index') + numPrepended));\n      this._firstReached = false;\n      this._prependOffset = numPrepended * this._calculatedEstimateHeight;\n    }\n\n    append() {\n      this._lastReached = false;\n    }\n\n    reset() {\n      this._firstReached = false;\n      this._lastReached = false;\n      this._didReset = true;\n    }\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\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\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\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\n    get totalComponents() {\n      return Math.min(this.totalItems, this.lastItemIndex - this.firstItemIndex + 1);\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\n\n    get visibleTop() {\n      return Math.max(this._scrollTop - this._collectionOffset + this._prependOffset, 0);\n    }\n\n    get visibleMiddle() {\n      return this.visibleTop + this._calculatedScrollContainerHeight / 2;\n    }\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\n    get totalItems() {\n      return this.items ? Ember.get(this.items, 'length') : 0;\n    }\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\n      return array;\n    }\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\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\n      this._initializeLayers(values, defaultValue);\n\n      {\n        Object.preventExtensions(this);\n      }\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\n      while (length > 2) {\n        length = Math.ceil(length / 2);\n        layer = new Float32Array(new ArrayBuffer(length * 4));\n\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; // 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\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\n        layers.unshift(layer);\n        prevLayer = layer;\n      }\n\n      this.total = layer.length > 0 ? layer.length > 1 ? layer[0] + layer[1] : layer[0] : 0;\n      ( !(typeof this.total === 'number') && Ember.assert('total must be a number', typeof this.total === 'number'));\n      this.layers = layers;\n      this.values = values;\n    }\n\n    find(targetValue) {\n      const {\n        layers,\n        total,\n        length,\n        values\n      } = this;\n      const numLayers = layers.length;\n\n      if (length === 0) {\n        return {\n          index: 0,\n          totalBefore: 0,\n          totalAfter: 0\n        };\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') && Ember.assert('targetValue must be a number', typeof targetValue === 'number'));\n      ( !(targetValue >= 0) && Ember.assert('targetValue must be greater than or equal to 0', targetValue >= 0));\n      ( !(targetValue < total) && Ember.assert('targetValue must be no more than total', targetValue < total));\n\n      for (i = 0; i < numLayers; i++) {\n        layer = layers[i];\n        leftIndex = index;\n        rightIndex = index + 1;\n        left = layer[leftIndex];\n\n        if (targetValue >= totalBefore + left) {\n          totalBefore = totalBefore + left;\n          index = rightIndex * 2;\n        } else {\n          index = leftIndex * 2;\n        }\n      }\n\n      index = index / 2;\n      ( !(typeof index === 'number') && Ember.assert('index must be a number', typeof index === 'number'));\n      ( !(index >= 0 && index < this.values.length) && Ember.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\n    getOffset(targetIndex) {\n      const {\n        layers,\n        length,\n        values\n      } = this;\n      const numLayers = layers.length;\n\n      if (length === 0) {\n        return 0;\n      }\n\n      let index = 0;\n      let offset = 0;\n\n      for (let i = 0; i < numLayers - 1; i++) {\n        const layer = layers[i];\n        const leftIndex = index;\n        const rightIndex = index + 1;\n\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\n      if (index + 1 === targetIndex) {\n        offset += values[index];\n      }\n\n      return offset;\n    }\n\n    set(index, value) {\n      ( !(typeof value === 'number') && Ember.assert('value must be a number', typeof value === 'number'));\n      ( !(value >= 0) && Ember.assert('value must non-negative', value >= 0));\n      ( !(typeof index === 'number') && Ember.assert('index must be a number', typeof index === 'number'));\n      ( !(index >= 0 && index < this.values.length) && Ember.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\n      if (delta === 0) {\n        return delta;\n      }\n\n      let i, layer;\n\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\n      this.total += delta;\n      return delta;\n    }\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\n      this._initializeLayers(newValues);\n    }\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\n      this._initializeLayers(newValues);\n    }\n\n    reset(newLength) {\n      const {\n        values: oldValues,\n        length: oldLength,\n        defaultValue\n      } = this;\n\n      if (oldLength === newLength) {\n        return;\n      }\n\n      const newValues = new Float32Array(new ArrayBuffer(newLength * 4));\n\n      if (oldLength < newLength) {\n        newValues.set(oldValues);\n        fill(newValues, defaultValue, oldLength);\n      } else {\n        newValues.set(subarray(oldValues, 0, newLength));\n      }\n\n      this.length = newLength;\n\n      if (oldLength === 0) {\n        this._initializeLayers(newValues, defaultValue);\n      } else {\n        this._initializeLayers(newValues);\n      }\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      {\n        Object.preventExtensions(this);\n      }\n    }\n\n    destroy() {\n      super.destroy();\n      this.skipList = null;\n    }\n\n    scheduleUpdate(didUpdateItems) {\n      // Cancel incremental render check, since we'll be remeasuring anyways\n      if (this._nextIncrementalRender !== null) {\n        this._nextIncrementalRender.cancel();\n\n        this._nextIncrementalRender = null;\n      }\n\n      super.scheduleUpdate(didUpdateItems);\n    }\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\n          if (this._shouldScheduleRerender()) {\n            this.update();\n          }\n        });\n      }\n\n      super.afterUpdate();\n    }\n\n    _updateConstants() {\n      super._updateConstants();\n\n      if (this._calculatedEstimateHeight < this._minHeight) {\n        this._minHeight = this._calculatedEstimateHeight;\n      } // Create the SkipList only after the estimateHeight has been calculated the first time\n\n\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\n    _updateIndexes() {\n      const {\n        bufferSize,\n        skipList,\n        visibleTop,\n        visibleBottom,\n        totalItems,\n        _didReset\n      } = this;\n\n      if (totalItems === 0) {\n        this._firstItemIndex = 0;\n        this._lastItemIndex = -1;\n        this._totalBefore = 0;\n        this._totalAfter = 0;\n        return;\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\n\n      if (_didReset === false) {\n        this._measure();\n      }\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; // Add buffers\n\n      for (let i = bufferSize; i > 0 && firstItemIndex > 0; i--) {\n        firstItemIndex--;\n        totalBefore -= values[firstItemIndex];\n      }\n\n      for (let i = bufferSize; i > 0 && lastItemIndex < maxIndex; i--) {\n        lastItemIndex++;\n        totalAfter -= values[lastItemIndex];\n      }\n\n      this._firstItemIndex = firstItemIndex;\n      this._lastItemIndex = lastItemIndex;\n      this._totalBefore = totalBefore;\n      this._totalAfter = totalAfter;\n    }\n\n    _calculateScrollDiff() {\n      const {\n        firstItemIndex,\n        _prevFirstVisibleIndex,\n        _prevFirstItemIndex\n      } = this;\n      let beforeVisibleDiff = 0;\n\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\n      return beforeVisibleDiff + super._calculateScrollDiff();\n    }\n\n    _shouldScheduleRerender() {\n      const {\n        firstItemIndex,\n        lastItemIndex\n      } = this;\n\n      this._updateConstants();\n\n      this._measure(); // These indexes could change after the measurement, and in the incremental render\n      // case we want to check them _after_ the change.\n\n\n      const {\n        firstVisibleIndex,\n        lastVisibleIndex\n      } = this;\n      return firstVisibleIndex < firstItemIndex || lastVisibleIndex > lastItemIndex;\n    }\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\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\n        if (previousItem !== undefined) {\n          margin = currentItemTop - getScaledClientRect(previousItem, _transformScale).bottom;\n        } else {\n          margin = currentItemTop - getScaledClientRect(_occludedContentBefore, _transformScale).bottom;\n        }\n\n        const newHeight = roundTo(currentItemHeight + margin);\n        const itemDelta = skipList.set(itemIndex, newHeight);\n\n        if (newHeight < this._minHeight) {\n          this._minHeight = newHeight;\n        }\n\n        if (itemDelta !== 0) {\n          totalDelta += itemDelta;\n        }\n      }\n\n      return totalDelta;\n    }\n\n    _didEarthquake(scrollDiff) {\n      return scrollDiff > this._minHeight / 2;\n    }\n\n    get total() {\n      return this.skipList.total;\n    }\n\n    get totalBefore() {\n      return this._totalBefore;\n    }\n\n    get totalAfter() {\n      return this._totalAfter;\n    }\n\n    get firstItemIndex() {\n      return this._firstItemIndex;\n    }\n\n    get lastItemIndex() {\n      return this._lastItemIndex;\n    }\n\n    get firstVisibleIndex() {\n      const {\n        visibleTop\n      } = this;\n      const {\n        index\n      } = this.skipList.find(visibleTop);\n      return index;\n    }\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\n    prepend(numPrepended) {\n      super.prepend(numPrepended);\n      this.skipList.prepend(numPrepended);\n    }\n\n    append(numAppended) {\n      super.append(numAppended);\n      this.skipList.append(numAppended);\n    }\n\n    reset() {\n      super.reset();\n      this.skipList.reset(this.totalItems);\n    }\n    /*\n     * Public API to query the skiplist for the offset of an item\n     */\n\n\n    getOffsetForIndex(index) {\n      this._measure();\n\n      return this.skipList.getOffset(index);\n    }\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      {\n        Object.preventExtensions(this);\n      }\n    }\n\n    _updateIndexes() {\n      const {\n        bufferSize,\n        totalItems,\n        visibleMiddle,\n        _calculatedEstimateHeight,\n        _calculatedScrollContainerHeight\n      } = this;\n\n      if (totalItems === 0) {\n        this._firstItemIndex = 0;\n        this._lastItemIndex = -1;\n        return;\n      }\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\n      if (firstItemIndex < 0) {\n        firstItemIndex = 0;\n        lastItemIndex = shouldRenderCount - 1;\n      }\n\n      if (lastItemIndex > maxIndex) {\n        lastItemIndex = maxIndex;\n        firstItemIndex = maxIndex - (shouldRenderCount - 1);\n      }\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\n    _didEarthquake(scrollDiff) {\n      return scrollDiff > this._calculatedEstimateHeight / 2;\n    }\n\n    get total() {\n      return this.totalItems * this._calculatedEstimateHeight;\n    }\n\n    get totalBefore() {\n      return this.firstItemIndex * this._calculatedEstimateHeight;\n    }\n\n    get totalAfter() {\n      return this.total - (this.lastItemIndex + 1) * this._calculatedEstimateHeight;\n    }\n\n    get firstItemIndex() {\n      return this._firstItemIndex;\n    }\n\n    get lastItemIndex() {\n      return this._lastItemIndex;\n    }\n\n    get firstVisibleIndex() {\n      return Math.ceil(this.visibleTop / this._calculatedEstimateHeight);\n    }\n\n    get lastVisibleIndex() {\n      return Math.min(Math.ceil(this.visibleBottom / this._calculatedEstimateHeight), this.totalItems) - 1;\n    }\n    /*\n     * Public API to query for the offset of an item\n     */\n\n\n    getOffsetForIndex(index) {\n      return index * this._calculatedEstimateHeight + 1;\n    }\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\", \"@html-next/vertical-collection/components/vertical-collection/template\", \"ember-raf-scheduler\", \"@html-next/vertical-collection/-private\"], function (_exports, _template, _emberRafScheduler, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const VerticalCollection = Ember.Component.extend({\n    layout: _template.default,\n    tagName: '',\n\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    /**\n     * List of objects to svelte-render.\n     * Can be called like `{{#vertical-collection <items-array>}}`, since it's the first positional parameter of this component.\n     *\n     * @property items\n     * @type Array\n     * @required\n     */\n    items: null,\n    // –––––––––––––– Optional Settings\n\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    /**\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    /*\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    /**\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    /**\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    /**\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    /**\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    /**\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: Ember.computed.empty('items'),\n    shouldYieldToInverse: Ember.computed.readOnly('isEmpty'),\n    virtualComponents: Ember.computed('items.[]', 'renderAll', 'estimateHeight', 'bufferSize', function () {\n      const {\n        _radar\n      } = this;\n      const items = this.get('items');\n      _radar.items = items === null || items === undefined ? [] : items;\n      _radar.estimateHeight = this.get('estimateHeight');\n      _radar.renderAll = this.get('renderAll');\n      _radar.bufferSize = this.get('bufferSize');\n\n      _radar.scheduleUpdate(true);\n\n      return _radar.virtualComponents;\n    }),\n\n    schedule(queueName, job) {\n      return _emberRafScheduler.scheduler.schedule(queueName, job, this.token);\n    },\n\n    _scheduleSendAction(action, index) {\n      this._scheduledActions.push([action, index]);\n\n      if (this._nextSendActions === null) {\n        this._nextSendActions = setTimeout(() => {\n          this._nextSendActions = null;\n          Ember.run(() => {\n            const items = this.get('items');\n            const keyPath = this.get('key');\n\n            this._scheduledActions.forEach(([action, index]) => {\n              const item = (0, _private.objectAt)(items, index);\n              const key = (0, _private.keyForItem)(item, keyPath, index); // this.sendAction will be deprecated in ember 4.0\n\n              const _action = Ember.get(this, action);\n\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\n            this._scheduledActions.length = 0;\n          });\n        });\n      }\n    },\n\n    // –––––––––––––– Setup/Teardown\n    didInsertElement() {\n      this.schedule('sync', () => {\n        this._radar.start();\n      });\n    },\n\n    willDestroy() {\n      this.token.cancel();\n\n      this._radar.destroy();\n\n      clearTimeout(this._nextSendActions);\n    },\n\n    init() {\n      this._super();\n\n      this.token = new _emberRafScheduler.Token();\n      const RadarClass = this.staticHeight ? _private.StaticRadar : _private.DynamicRadar;\n      const items = this.get('items') || [];\n      const bufferSize = this.get('bufferSize');\n      const containerSelector = this.get('containerSelector');\n      const estimateHeight = this.get('estimateHeight');\n      const initialRenderCount = this.get('initialRenderCount');\n      const renderAll = this.get('renderAll');\n      const renderFromLast = this.get('renderFromLast');\n      const shouldRecycle = this.get('shouldRecycle');\n      const occlusionTagName = this.get('occlusionTagName');\n      const idForFirstItem = this.get('idForFirstItem');\n      const key = this.get('key');\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\n      if (any) {\n        this._hasAction = {\n          lastReached: a,\n          firstReached: b,\n          lastVisibleChanged: c,\n          firstVisibleChanged: d\n        };\n\n        this._radar.sendAction = (action, index) => {\n          if (this._hasAction[action]) {\n            this._scheduleSendAction(action, index);\n          }\n        };\n      }\n    }\n\n  });\n  VerticalCollection.reopenClass({\n    positionalParams: ['items']\n  });\n\n  function calculateStartingIndex(items, idForFirstItem, key, renderFromLast) {\n    const totalItems = Ember.get(items, 'length');\n    let startingIndex = 0;\n\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\n    return startingIndex;\n  }\n\n  var _default = VerticalCollection;\n  _exports.default = _default;\n});","define(\"@html-next/vertical-collection/components/vertical-collection/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Mbw37hOt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"virtualComponent\\\",\\\"&else\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,[\\\"virtualComponents\\\"]]],null]],null]],[[\\\"key\\\"],[\\\"id\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[1,[30,[36,0],[[32,1,[\\\"upperBound\\\"]]],null]],[6,[37,1],[[32,1,[\\\"isOccludedContent\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,[30,[36,0],[[32,1,[\\\"element\\\"]]],null]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[18,3,[[32,1,[\\\"content\\\"]],[32,1,[\\\"index\\\"]]]]],\\\"parameters\\\":[]}]]],[1,[30,[36,0],[[32,1,[\\\"lowerBound\\\"]]],null]]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\"],[6,[37,1],[[32,0,[\\\"shouldYieldToInverse\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[18,2,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"unbound\\\",\\\"if\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"@html-next/vertical-collection/components/vertical-collection/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"@sentry/ember/ember.d\", [], function () {\n  \"use strict\";\n});","define(\"@sentry/ember/index\", [\"exports\", \"@sentry/browser\", \"@sentry/utils\", \"@embroider/macros/runtime\"], function (_exports, Sentry, _utils, _runtime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  var _exportNames = {\n    InitSentryForEmber: true,\n    getActiveTransaction: true,\n    instrumentRoutePerformance: true,\n    init: true\n  };\n  _exports.InitSentryForEmber = InitSentryForEmber;\n  _exports.init = _exports.instrumentRoutePerformance = _exports.getActiveTransaction = void 0;\n  Object.keys(Sentry).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] === Sentry[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return Sentry[key];\n      }\n    });\n  });\n\n  function _getSentryInitConfig() {\n    var _global$__sentryEmber;\n\n    const _global = (0, _utils.getGlobalObject)();\n\n    _global.__sentryEmberConfig = (_global$__sentryEmber = _global.__sentryEmberConfig) !== null && _global$__sentryEmber !== void 0 ? _global$__sentryEmber : {};\n    return _global.__sentryEmberConfig;\n  }\n\n  function InitSentryForEmber(_runtimeConfig) {\n    const environmentConfig = (0, _runtime.config)(\"/vercel/path0/apps/cms/admin/node_modules/@sentry/ember\").sentryConfig;\n    (true && !(environmentConfig) && Ember.assert('Missing configuration.', environmentConfig));\n    (true && !(environmentConfig.sentry || _runtimeConfig) && Ember.assert('Missing configuration for Sentry.', environmentConfig.sentry || _runtimeConfig));\n\n    if (!environmentConfig.sentry) {\n      // If environment config is not specified but the above assertion passes, use runtime config.\n      environmentConfig.sentry = { ..._runtimeConfig\n      };\n    } // Merge runtime config into environment config, preferring runtime.\n\n\n    Object.assign(environmentConfig.sentry, _runtimeConfig || {});\n    const initConfig = Object.assign({}, environmentConfig.sentry);\n    initConfig._metadata = initConfig._metadata || {};\n    initConfig._metadata.sdk = {\n      name: 'sentry.javascript.ember',\n      packages: [{\n        name: 'npm:@sentry/ember',\n        version: Sentry.SDK_VERSION\n      }],\n      version: Sentry.SDK_VERSION\n    }; // Persist Sentry init options so they are identical when performance initializers call init again.\n\n    const sentryInitConfig = _getSentryInitConfig();\n\n    Object.assign(sentryInitConfig, initConfig);\n    Sentry.init(initConfig);\n\n    if ((0, _runtime.macroCondition)(true)) {\n      if (environmentConfig.ignoreEmberOnErrorWarning) {\n        return;\n      }\n\n      Ember.run.next(null, function () {\n        (true && Ember.warn('Ember.onerror found. Using Ember.onerror can hide some errors (such as flushed runloop errors) from Sentry. Use Sentry.captureException to capture errors within Ember.onError or remove it to have errors caught by Sentry directly. This error can be silenced via addon configuration.', !Ember.onerror, {\n          id: '@sentry/ember.ember-onerror-detected'\n        }));\n      });\n    }\n  }\n\n  const getActiveTransaction = () => {\n    var _Sentry$getCurrentHub, _Sentry$getCurrentHub2;\n\n    return (_Sentry$getCurrentHub = Sentry.getCurrentHub()) === null || _Sentry$getCurrentHub === void 0 ? void 0 : (_Sentry$getCurrentHub2 = _Sentry$getCurrentHub.getScope()) === null || _Sentry$getCurrentHub2 === void 0 ? void 0 : _Sentry$getCurrentHub2.getTransaction();\n  };\n\n  _exports.getActiveTransaction = getActiveTransaction;\n\n  const instrumentRoutePerformance = BaseRoute => {\n    const instrumentFunction = async (op, description, fn, args) => {\n      const startTimestamp = (0, _utils.timestampWithMs)();\n      const result = await fn(...args);\n      const currentTransaction = getActiveTransaction();\n\n      if (!currentTransaction) {\n        return result;\n      }\n\n      currentTransaction.startChild({\n        op,\n        description,\n        startTimestamp\n      }).finish();\n      return result;\n    };\n\n    return {\n      [BaseRoute.name]: class extends BaseRoute {\n        beforeModel(...args) {\n          return instrumentFunction('ember.route.beforeModel', this.fullRouteName, super.beforeModel.bind(this), args);\n        }\n\n        async model(...args) {\n          return instrumentFunction('ember.route.model', this.fullRouteName, super.model.bind(this), args);\n        }\n\n        async afterModel(...args) {\n          return instrumentFunction('ember.route.afterModel', this.fullRouteName, super.afterModel.bind(this), args);\n        }\n\n        async setupController(...args) {\n          return instrumentFunction('ember.route.setupController', this.fullRouteName, super.setupController.bind(this), args);\n        }\n\n      }\n    }[BaseRoute.name];\n  };\n\n  _exports.instrumentRoutePerformance = instrumentRoutePerformance;\n  // init is now the preferred way to call initialization for this addon.\n  const init = InitSentryForEmber;\n  _exports.init = init;\n});","define(\"@sentry/ember/instance-initializers/sentry-performance\", [\"exports\", \"@sentry/browser\", \"@sentry/ember\", \"@sentry/utils\", \"@embroider/macros/runtime\"], function (_exports, Sentry, _ember, _utils, _runtime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports._instrumentEmberRouter = _instrumentEmberRouter;\n  _exports.instrumentForPerformance = instrumentForPerformance;\n  _exports.default = void 0;\n\n  function getSentryConfig() {\n    var _global$__sentryEmber;\n\n    const _global = (0, _utils.getGlobalObject)();\n\n    _global.__sentryEmberConfig = (_global$__sentryEmber = _global.__sentryEmberConfig) !== null && _global$__sentryEmber !== void 0 ? _global$__sentryEmber : {};\n    const environmentConfig = (0, _runtime.config)(\"/vercel/path0/apps/cms/admin/node_modules/@sentry/ember\").sentryConfig;\n    Object.assign(environmentConfig.sentry, _global.__sentryEmberConfig);\n    return environmentConfig;\n  }\n\n  function initialize(appInstance) {\n    const config = getSentryConfig();\n\n    if (config['disablePerformance']) {\n      return;\n    }\n\n    const performancePromise = instrumentForPerformance(appInstance);\n\n    if ((0, _runtime.macroCondition)((0, _runtime.isTesting)())) {\n      window._sentryPerformanceLoad = performancePromise;\n    }\n  }\n\n  function getBackburner() {\n    if (Ember.run.backburner) {\n      return Ember.run.backburner;\n    }\n\n    return Ember.run.backburner;\n  }\n\n  function getTransitionInformation(transition, router) {\n    var _transition$from;\n\n    const fromRoute = transition === null || transition === void 0 ? void 0 : (_transition$from = transition.from) === null || _transition$from === void 0 ? void 0 : _transition$from.name;\n    const toRoute = transition && transition.to ? transition.to.name : router.currentRouteName;\n    return {\n      fromRoute,\n      toRoute\n    };\n  }\n\n  function getLocationURL(location) {\n    if (!location || !location.getURL || !location.formatURL) {\n      return '';\n    }\n\n    const url = location.formatURL(location.getURL());\n\n    if (location.implementation === 'hash') {\n      return `${location.rootURL}${url}`;\n    }\n\n    return url;\n  }\n\n  function _instrumentEmberRouter(routerService, routerMain, config, startTransaction, startTransactionOnPageLoad) {\n    const {\n      disableRunloopPerformance\n    } = config;\n    const location = routerMain.location;\n    let activeTransaction;\n    let transitionSpan;\n    const url = getLocationURL(location);\n\n    if ((0, _runtime.macroCondition)((0, _runtime.isTesting)())) {\n      routerService._sentryInstrumented = true;\n      routerService._startTransaction = startTransaction;\n    }\n\n    if (startTransactionOnPageLoad && url) {\n      const routeInfo = routerService.recognize(url);\n      activeTransaction = startTransaction({\n        name: `route:${routeInfo.name}`,\n        op: 'pageload',\n        tags: {\n          url,\n          toRoute: routeInfo.name,\n          'routing.instrumentation': '@sentry/ember'\n        }\n      });\n    }\n\n    const finishActiveTransaction = function (_, nextInstance) {\n      if (nextInstance) {\n        return;\n      }\n\n      activeTransaction.finish();\n      getBackburner().off('end', finishActiveTransaction);\n    };\n\n    routerService.on('routeWillChange', transition => {\n      var _activeTransaction;\n\n      const {\n        fromRoute,\n        toRoute\n      } = getTransitionInformation(transition, routerService);\n      (_activeTransaction = activeTransaction) === null || _activeTransaction === void 0 ? void 0 : _activeTransaction.finish();\n      activeTransaction = startTransaction({\n        name: `route:${toRoute}`,\n        op: 'navigation',\n        tags: {\n          fromRoute,\n          toRoute,\n          'routing.instrumentation': '@sentry/ember'\n        }\n      });\n      transitionSpan = activeTransaction.startChild({\n        op: 'ui.ember.transition',\n        description: `route:${fromRoute} -> route:${toRoute}`\n      });\n    });\n    routerService.on('routeDidChange', () => {\n      if (!transitionSpan || !activeTransaction) {\n        return;\n      }\n\n      transitionSpan.finish();\n\n      if (disableRunloopPerformance) {\n        activeTransaction.finish();\n        return;\n      }\n\n      getBackburner().on('end', finishActiveTransaction);\n    });\n    return {\n      startTransaction\n    };\n  }\n\n  function _instrumentEmberRunloop(config) {\n    const {\n      disableRunloopPerformance,\n      minimumRunloopQueueDuration\n    } = config;\n\n    if (disableRunloopPerformance) {\n      return;\n    }\n\n    let currentQueueStart;\n    let currentQueueSpan;\n    const instrumentedEmberQueues = ['actions', 'routerTransitions', 'render', 'afterRender', 'destroy'];\n    getBackburner().on('begin', (_, previousInstance) => {\n      if (previousInstance) {\n        return;\n      }\n\n      const activeTransaction = (0, _ember.getActiveTransaction)();\n\n      if (!activeTransaction) {\n        return;\n      }\n\n      if (currentQueueSpan) {\n        currentQueueSpan.finish();\n      }\n\n      currentQueueStart = (0, _utils.timestampWithMs)();\n      instrumentedEmberQueues.forEach(queue => {\n        Ember.run.scheduleOnce(queue, null, () => {\n          Ember.run.scheduleOnce(queue, null, () => {\n            // Process this queue using the end of the previous queue.\n            if (currentQueueStart) {\n              const now = (0, _utils.timestampWithMs)();\n              const minQueueDuration = minimumRunloopQueueDuration !== null && minimumRunloopQueueDuration !== void 0 ? minimumRunloopQueueDuration : 5;\n\n              if ((now - currentQueueStart) * 1000 >= minQueueDuration) {\n                activeTransaction === null || activeTransaction === void 0 ? void 0 : activeTransaction.startChild({\n                  op: `ui.ember.runloop.${queue}`,\n                  startTimestamp: currentQueueStart,\n                  endTimestamp: now\n                }).finish();\n              }\n\n              currentQueueStart = undefined;\n            } // Setup for next queue\n\n\n            const stillActiveTransaction = (0, _ember.getActiveTransaction)();\n\n            if (!stillActiveTransaction) {\n              return;\n            }\n\n            currentQueueStart = (0, _utils.timestampWithMs)();\n          });\n        });\n      });\n    });\n    getBackburner().on('end', (_, nextInstance) => {\n      if (nextInstance) {\n        return;\n      }\n\n      if (currentQueueSpan) {\n        currentQueueSpan.finish();\n        currentQueueSpan = undefined;\n      }\n    });\n  }\n\n  function processComponentRenderBefore(payload, beforeEntries) {\n    const info = {\n      payload,\n      now: (0, _utils.timestampWithMs)()\n    };\n    beforeEntries[payload.object] = info;\n  }\n\n  function processComponentRenderAfter(payload, beforeEntries, op, minComponentDuration) {\n    const begin = beforeEntries[payload.object];\n\n    if (!begin) {\n      return;\n    }\n\n    const now = (0, _utils.timestampWithMs)();\n    const componentRenderDuration = now - begin.now;\n\n    if (componentRenderDuration * 1000 >= minComponentDuration) {\n      const activeTransaction = (0, _ember.getActiveTransaction)();\n      activeTransaction === null || activeTransaction === void 0 ? void 0 : activeTransaction.startChild({\n        op,\n        description: payload.containerKey || payload.object,\n        startTimestamp: begin.now,\n        endTimestamp: now\n      });\n    }\n  }\n\n  function _instrumentComponents(config) {\n    const {\n      disableInstrumentComponents,\n      minimumComponentRenderDuration,\n      enableComponentDefinitions\n    } = config;\n\n    if (disableInstrumentComponents) {\n      return;\n    }\n\n    const minComponentDuration = minimumComponentRenderDuration !== null && minimumComponentRenderDuration !== void 0 ? minimumComponentRenderDuration : 2;\n    const beforeEntries = {};\n    const beforeComponentDefinitionEntries = {};\n    const subscribe = Ember.subscribe;\n\n    function _subscribeToRenderEvents() {\n      subscribe('render.component', {\n        before(_name, _timestamp, payload) {\n          processComponentRenderBefore(payload, beforeEntries);\n        },\n\n        after(_name, _timestamp, payload, _beganIndex) {\n          processComponentRenderAfter(payload, beforeEntries, 'ui.ember.component.render', minComponentDuration);\n        }\n\n      });\n\n      if (enableComponentDefinitions) {\n        subscribe('render.getComponentDefinition', {\n          before(_name, _timestamp, payload) {\n            processComponentRenderBefore(payload, beforeComponentDefinitionEntries);\n          },\n\n          after(_name, _timestamp, payload, _beganIndex) {\n            processComponentRenderAfter(payload, beforeComponentDefinitionEntries, 'ui.ember.component.definition', 0);\n          }\n\n        });\n      }\n    }\n\n    _subscribeToRenderEvents();\n  }\n\n  function _instrumentInitialLoad(config) {\n    const startName = '@sentry/ember:initial-load-start';\n    const endName = '@sentry/ember:initial-load-end';\n    const {\n      performance\n    } = window;\n    const HAS_PERFORMANCE = performance && performance.clearMarks && performance.clearMeasures;\n\n    if (!HAS_PERFORMANCE) {\n      return;\n    }\n\n    if (config.disableInitialLoadInstrumentation) {\n      performance.clearMarks(startName);\n      performance.clearMarks(endName);\n      return;\n    } // Split performance check in two so clearMarks still happens even if timeOrigin isn't available.\n\n\n    const HAS_PERFORMANCE_TIMING = performance.measure && performance.getEntriesByName && _utils.browserPerformanceTimeOrigin !== undefined;\n\n    if (!HAS_PERFORMANCE_TIMING) {\n      return;\n    }\n\n    const measureName = '@sentry/ember:initial-load';\n    const startMarkExists = performance.getEntriesByName(startName).length > 0;\n    const endMarkExists = performance.getEntriesByName(endName).length > 0;\n\n    if (!startMarkExists || !endMarkExists) {\n      return;\n    }\n\n    performance.measure(measureName, startName, endName);\n    const measures = performance.getEntriesByName(measureName);\n    const measure = measures[0];\n    const startTimestamp = (measure.startTime + _utils.browserPerformanceTimeOrigin) / 1000;\n    const endTimestamp = startTimestamp + measure.duration / 1000;\n    const transaction = (0, _ember.getActiveTransaction)();\n    const span = transaction === null || transaction === void 0 ? void 0 : transaction.startChild({\n      op: 'ui.ember.init',\n      startTimestamp\n    });\n    span === null || span === void 0 ? void 0 : span.finish(endTimestamp);\n    performance.clearMarks(startName);\n    performance.clearMarks(endName);\n    performance.clearMeasures(measureName);\n  }\n\n  async function instrumentForPerformance(appInstance) {\n    var _Sentry$getCurrentHub;\n\n    const config = getSentryConfig();\n    const sentryConfig = config.sentry; // Maintaining backwards compatibility with config.browserTracingOptions, but passing it with Sentry options is preferred.\n\n    const browserTracingOptions = config.browserTracingOptions || config.sentry.browserTracingOptions || {};\n    const tracing = await emberAutoImportDynamic(\"@sentry/tracing\");\n    const idleTimeout = config.transitionTimeout || 5000;\n    const existingIntegrations = sentryConfig['integrations'] || [];\n    sentryConfig['integrations'] = [...existingIntegrations, new tracing.Integrations.BrowserTracing({\n      routingInstrumentation: (customStartTransaction, startTransactionOnPageLoad) => {\n        const routerMain = appInstance.lookup('router:main');\n        const routerService = appInstance.lookup('service:router');\n\n        _instrumentEmberRouter(routerService, routerMain, config, customStartTransaction, startTransactionOnPageLoad);\n      },\n      idleTimeout,\n      ...browserTracingOptions\n    })];\n\n    if ((0, _runtime.isTesting)() && (_Sentry$getCurrentHub = Sentry.getCurrentHub()) !== null && _Sentry$getCurrentHub !== void 0 && _Sentry$getCurrentHub.getIntegration(tracing.Integrations.BrowserTracing)) {\n      // Initializers are called more than once in tests, causing the integrations to not be setup correctly.\n      return;\n    }\n\n    Sentry.init(sentryConfig); // Call init again to rebind client with new integration list in addition to the defaults\n\n    _instrumentEmberRunloop(config);\n\n    _instrumentComponents(config);\n\n    _instrumentInitialLoad(config);\n  }\n\n  var _default = {\n    initialize\n  };\n  _exports.default = _default;\n});","define(\"@sentry/ember/runloop.d\", [], function () {\n  \"use strict\";\n});","define(\"@sentry/ember/types\", [], function () {\n  \"use strict\";\n});","define(\"ember-ajax/-private/promise\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\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 Ember.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\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  }\n\n  _exports.default = AJAXPromise;\n});","define(\"ember-ajax/-private/types\", [], function () {\n  \"use strict\";\n});","define(\"ember-ajax/-private/utils/get-header\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getHeader;\n\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 (Ember.isNone(headers) || Ember.isNone(name)) {\n      return undefined;\n    }\n\n    const matchedKey = Ember.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\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.default = parseResponseHeaders;\n  _exports.CRLF = void 0;\n  const CRLF = '\\u000d\\u000a';\n  _exports.CRLF = CRLF;\n\n  function parseResponseHeaders(headersString) {\n    const headers = {};\n\n    if (!headersString) {\n      return headers;\n    }\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\n      if (valueString) {\n        hash[field] = valueString;\n      }\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.parseURL = parseURL;\n  _exports.isFullURL = isFullURL;\n  _exports.haveSameHost = haveSameHost;\n\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\n  function parseURL(str) {\n    let fullObject;\n\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\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\n  function isFullURL(url) {\n    return !!url.match(completeUrlRegex);\n  }\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-ajax/mixins/ajax-request\"], function (_exports, _ajaxRequest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Object.extend(_ajaxRequest.default);\n\n  _exports.default = _default;\n});","define(\"ember-ajax/errors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isAjaxError = isAjaxError;\n  _exports.isUnauthorizedError = isUnauthorizedError;\n  _exports.isForbiddenError = isForbiddenError;\n  _exports.isInvalidError = isInvalidError;\n  _exports.isBadRequestError = isBadRequestError;\n  _exports.isNotFoundError = isNotFoundError;\n  _exports.isGoneError = isGoneError;\n  _exports.isTimeoutError = isTimeoutError;\n  _exports.isAbortError = isAbortError;\n  _exports.isConflictError = isConflictError;\n  _exports.isServerError = isServerError;\n  _exports.isSuccess = isSuccess;\n  _exports.ServerError = _exports.ConflictError = _exports.AbortError = _exports.TimeoutError = _exports.GoneError = _exports.NotFoundError = _exports.BadRequestError = _exports.ForbiddenError = _exports.UnauthorizedError = _exports.InvalidError = _exports.AjaxError = void 0;\n\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  }\n\n  _exports.AjaxError = AjaxError;\n\n  class InvalidError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Request was rejected because it was invalid', 422);\n    }\n\n  }\n\n  _exports.InvalidError = InvalidError;\n\n  class UnauthorizedError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Ajax authorization failed', 401);\n    }\n\n  }\n\n  _exports.UnauthorizedError = UnauthorizedError;\n\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  }\n\n  _exports.ForbiddenError = ForbiddenError;\n\n  class BadRequestError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Request was formatted incorrectly.', 400);\n    }\n\n  }\n\n  _exports.BadRequestError = BadRequestError;\n\n  class NotFoundError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Resource was not found.', 404);\n    }\n\n  }\n\n  _exports.NotFoundError = NotFoundError;\n\n  class GoneError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Resource is no longer available.', 410);\n    }\n\n  }\n\n  _exports.GoneError = GoneError;\n\n  class TimeoutError extends AjaxError {\n    constructor() {\n      super(null, 'The ajax operation timed out', -1);\n    }\n\n  }\n\n  _exports.TimeoutError = TimeoutError;\n\n  class AbortError extends AjaxError {\n    constructor() {\n      super(null, 'The ajax operation was aborted', 0);\n    }\n\n  }\n\n  _exports.AbortError = AbortError;\n\n  class ConflictError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'The ajax operation failed due to a conflict', 409);\n    }\n\n  }\n\n  _exports.ConflictError = ConflictError;\n\n  class ServerError extends AjaxError {\n    constructor(payload, status) {\n      super(payload, 'Request was rejected due to server error', status);\n    }\n\n  }\n  /**\n   * Checks if the given error is or inherits from AjaxError\n   */\n\n\n  _exports.ServerError = ServerError;\n\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\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\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\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\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\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\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\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\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\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\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\n\n  function isSuccess(status) {\n    let s = status;\n\n    if (typeof status === 'string') {\n      s = parseInt(status, 10);\n    }\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-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, _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;\n  const JSONContentType = /^application\\/(?:vnd\\.api\\+)?json/i;\n\n  function isJSONContentType(header) {\n    if (!(0, _isString.default)(header)) {\n      return false;\n    }\n\n    return !!header.match(JSONContentType);\n  }\n\n  function isJSONStringifyable(method, {\n    contentType,\n    data,\n    headers\n  }) {\n    if (method === 'GET') {\n      return false;\n    }\n\n    if (!isJSONContentType(contentType) && !isJSONContentType((0, _getHeader.default)(headers, 'Content-Type'))) {\n      return false;\n    }\n\n    if (typeof data !== 'object') {\n      return false;\n    }\n\n    return true;\n  }\n\n  function startsWithSlash(string) {\n    return string.charAt(0) === '/';\n  }\n\n  function endsWithSlash(string) {\n    return string.charAt(string.length - 1) === '/';\n  }\n\n  function removeLeadingSlash(string) {\n    return string.substring(1);\n  }\n\n  function removeTrailingSlash(string) {\n    return string.slice(0, -1);\n  }\n\n  function stripSlashes(path) {\n    // make sure path starts with `/`\n    if (startsWithSlash(path)) {\n      path = removeLeadingSlash(path);\n    } // remove end `/`\n\n\n    if (endsWithSlash(path)) {\n      path = removeTrailingSlash(path);\n    }\n\n    return path;\n  }\n\n  let pendingRequestCount = 0;\n\n  if (Ember.testing) {\n    Test.registerWaiter(function () {\n      return pendingRequestCount === 0;\n    });\n  }\n  /**\n   * AjaxRequest Mixin\n   */\n\n\n  var _default = Ember.Mixin.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    /**\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    /**\n     * @property {string} host\n     * @public\n     */\n    host: undefined,\n\n    /**\n     * @property {string} namespace\n     * @public\n     */\n    namespace: undefined,\n\n    /**\n     * @property {Matcher[]} trustedHosts\n     * @public\n     */\n    trustedHosts: undefined,\n\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\n      const internalPromise = this._makeRequest(hash);\n\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    /**\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    /**\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\n      if (isJSONStringifyable(method, hash)) {\n        hash.data = JSON.stringify(hash.data);\n      }\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\n          if ((0, _errors.isAjaxError)(response)) {\n            const rejectionParam = {\n              payload,\n              textStatus,\n              jqXHR,\n              response\n            };\n            Ember.run.join(null, reject, rejectionParam);\n          } else {\n            const resolutionParam = {\n              payload,\n              textStatus,\n              jqXHR,\n              response\n            };\n            Ember.run.join(null, resolve, resolutionParam);\n          }\n        }).fail((jqXHR, textStatus, errorThrown) => {\n          Ember.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 && Ember.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\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\n          const rejectionParam = {\n            payload,\n            textStatus,\n            jqXHR,\n            errorThrown,\n            response\n          };\n          Ember.run.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    /**\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    /**\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    /**\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    /**\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    /**\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    /**\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 Ember.Error('It seems you tried to use `.get` to make a request! Use the `.request` method instead.');\n      }\n\n      return this._super(...arguments);\n    },\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    /**\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 = Ember.get(this, 'headers');\n      return Ember.assign({}, classHeaders, headers);\n    },\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 = Ember.assign({}, options);\n      options.url = this._buildURL(url, options);\n      options.type = options.type || 'GET';\n      options.dataType = options.dataType || 'json';\n      options.contentType = Ember.isEmpty(options.contentType) ? Ember.get(this, 'contentType') : options.contentType;\n\n      if (this._shouldSendHeaders(options)) {\n        options.headers = this._getFullHeadersHash(options.headers);\n      } else {\n        options.headers = options.headers || {};\n      }\n\n      return options;\n    },\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\n      const urlParts = [];\n      let host = options.host || Ember.get(this, 'host');\n\n      if (host) {\n        host = endsWithSlash(host) ? removeTrailingSlash(host) : host;\n        urlParts.push(host);\n      }\n\n      let namespace = options.namespace || Ember.get(this, 'namespace');\n\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        } // If the URL has already been constructed (presumably, by Ember Data), then we should just leave it alone\n\n\n        const hasNamespaceRegex = new RegExp(`^(/)?${stripSlashes(namespace)}/`);\n\n        if (!hasNamespaceRegex.test(url)) {\n          urlParts.push(namespace);\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\n\n      if (startsWithSlash(url) && urlParts.length !== 0) {\n        url = removeLeadingSlash(url);\n      }\n\n      urlParts.push(url);\n      return urlParts.join('/');\n    },\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      } // Allow overriding of error payload\n\n\n      payload = this.normalizeErrorResponse(status, headers, payload);\n      return this._createCorrectError(status, headers, payload, requestData);\n    },\n\n    _createCorrectError(status, headers, payload, requestData) {\n      let error;\n\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\n      return error;\n    },\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\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    /**\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 || Ember.get(this, 'host') || '';\n      const trustedHosts = Ember.get(this, 'trustedHosts') || Ember.A();\n      const {\n        hostname\n      } = (0, _urlHelpers.parseURL)(url); // Add headers on relative URLs\n\n      if (!(0, _urlHelpers.isFullURL)(url)) {\n        return true;\n      } else if (trustedHosts.find(matcher => this._matchHosts(hostname, matcher))) {\n        return true;\n      } // Add headers on matching host\n\n\n      return (0, _urlHelpers.haveSameHost)(url, host);\n    },\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\n      if (payloadContentType.toLowerCase() === 'text/html' && payload.length > 250) {\n        shortenedPayload = '[Omitted Lengthy HTML]';\n      } else {\n        shortenedPayload = JSON.stringify(payload);\n      }\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    /**\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    /**\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    /**\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    /**\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    /**\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    /**\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    /**\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    /**\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    /**\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    /**\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\n    parseErrorResponse(responseText) {\n      try {\n        return JSON.parse(responseText);\n      } catch (e) {\n        return responseText;\n      }\n    },\n\n    normalizeErrorResponse(_status, _headers, payload) {\n      return payload;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-ajax/mixins/ajax-support\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    /**\n     * The AJAX service to send requests through\n     *\n     * @property {AjaxService} ajaxService\n     * @public\n     */\n    ajaxService: Ember.inject.service('ajax'),\n\n    /**\n     * @property {string} host\n     * @public\n     */\n    host: Ember.computed.alias('ajaxService.host'),\n\n    /**\n     * @property {string} namespace\n     * @public\n     */\n    namespace: Ember.computed.alias('ajaxService.namespace'),\n\n    /**\n     * @property {object} headers\n     * @public\n     */\n    headers: Ember.computed.alias('ajaxService.headers'),\n\n    ajax(url, _method, _options) {\n      // @ts-ignore\n      const augmentedOptions = this.ajaxOptions(...arguments);\n      return Ember.get(this, 'ajaxService').request(url, augmentedOptions);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-ajax/mixins/legacy/normalize-error-response\", [\"exports\", \"ember-ajax/-private/utils/is-string\"], function (_exports, _isString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function isObject(object) {\n    return typeof object === 'object';\n  }\n\n  function isJsonApiErrorResponse(object) {\n    if (!isObject(object)) {\n      return false;\n    }\n\n    const payloadAsErrorResponse = object;\n\n    if (payloadAsErrorResponse.errors) {\n      return Ember.isArray(payloadAsErrorResponse.errors);\n    }\n\n    return false;\n  }\n\n  function isJsonApiErrorObjectArray(object) {\n    return Ember.isArray(object);\n  }\n\n  var _default = Ember.Mixin.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 = Ember.isNone(payload) ? {} : payload;\n\n      if (isJsonApiErrorResponse(payload)) {\n        return payload.errors.map(function (error) {\n          if (isObject(error)) {\n            const ret = Ember.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  });\n\n  _exports.default = _default;\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  /**\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\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  /**\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\n    return ajax.request(url, options);\n  }\n});","define(\"ember-ajax/services/ajax\", [\"exports\", \"ember-ajax/mixins/ajax-request\"], function (_exports, _ajaxRequest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.AjaxServiceClass = _exports.default = void 0;\n  const AjaxService = Ember.Service.extend(_ajaxRequest.default);\n  var _default = AjaxService; // DO NOT DELETE: this is how TypeScript knows how to look up your services.\n\n  _exports.default = _default;\n\n  class AjaxServiceClass extends AjaxService {}\n\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 = ajax;\n  _exports.default = _default;\n});","define(\"ember-apollo-client/-private/apollo/query-manager\", [\"exports\", \"ember-apollo-client/-private/apollo/setup-hooks\"], function (_exports, _setupHooks) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.queryManager = queryManager;\n  _exports.default = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  // https://github.com/emberjs/ember.js/blob/70bcd9facdaf37ba19f60e6a10a511a34724f0f4/packages/%40ember/-internals/metal/lib/decorator.ts#L20-L41\n  function isElementDescriptor(args) {\n    let [maybeTarget, maybeKey, maybeDesc] = args;\n    return (// Ensure we have the right number of args\n      args.length === 3 && (typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) && // Make sure the key is a string\n      typeof maybeKey === 'string' && (typeof maybeDesc === 'object' && maybeDesc !== null && 'enumerable' in maybeDesc && 'configurable' in maybeDesc || // TS compatibility\n      maybeDesc === undefined)\n    );\n  }\n\n  function queryManager(...theArgs) {\n    let serviceName = 'apollo';\n    let [options] = theArgs;\n\n    if (typeof options === 'object' && options.service) {\n      serviceName = options.service;\n    }\n\n    let setupQueryManager = Ember.computed(function () {\n      const service = Ember.getOwner(this).lookup(`service:${serviceName}`);\n      const queryManager = new QueryManager(service);\n      (0, _setupHooks.default)(queryManager, this);\n      return queryManager;\n    });\n\n    if (isElementDescriptor(theArgs)) {\n      // Needed to suport @queryManager apollo; (no arguments)\n      return setupQueryManager(...theArgs);\n    } else {\n      return setupQueryManager;\n    }\n  }\n\n  class QueryManager {\n    constructor(apolloService) {\n      _defineProperty(this, \"apollo\", undefined);\n\n      _defineProperty(this, \"activeSubscriptions\", []);\n\n      this.apollo = apolloService;\n    }\n\n    get apolloClient() {\n      return this.apollo.client;\n    }\n    /**\n     * Executes a mutation on the Apollo service. The resolved object will\n     * never be updated and does not have to be unsubscribed.\n     *\n     * @method mutate\n     * @param {!Object} opts The query options used in the Apollo Client mutate.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @public\n     */\n\n\n    mutate(opts, resultKey) {\n      return this.apollo.mutate(opts, resultKey);\n    }\n    /**\n     * Executes a single `query` on the Apollo service. The resolved object will\n     * never be updated and does not have to be unsubscribed.\n     *\n     * @method query\n     * @param {!Object} opts The query options used in the Apollo Client query.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @public\n     */\n\n\n    query(opts, resultKey) {\n      return this.apollo.query(opts, resultKey);\n    }\n    /**\n     * Executes a `watchQuery` on the Apollo service. If updated data for this\n     * query is loaded into the store by another query, the resolved object will\n     * be updated with the new data.\n     *\n     * This watch query is tracked by the QueryManager and will be unsubscribed\n     * (and no longer updated with new data) when unsubscribeAll() is called.\n     *\n     * @method watchQuery\n     * @param {!Object} opts The query options used in the Apollo Client watchQuery.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @public\n     */\n\n\n    watchQuery(opts, resultKey) {\n      return this.apollo.managedWatchQuery(this, opts, resultKey);\n    }\n    /**\n     * Executes a `subscribe` on the Apollo service.\n     *\n     * This subscription is tracked by the QueryManager and will be unsubscribed\n     * (and no longer updated with new data) when unsubscribeAll() is called.\n     *\n     * The Promise will contain a Subscription object which will contain events\n     * as they come in. It will also trigger `event` messages which can be listened for.\n     *\n     * @method subscribe\n     * @param {!Object} opts The query options used in the Apollo Client watchQuery.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @public\n     */\n\n\n    subscribe(opts, resultKey) {\n      return this.apollo.managedSubscribe(this, opts, resultKey);\n    }\n    /**\n     * Tracks a subscription in the list of active subscriptions, which will all be\n     * cancelled when `unsubcribeAll` is called.\n     *\n     * @method trackSubscription\n     * @param {!Object} subscription The Apollo Client Subscription to be tracked for future unsubscription.\n     * @private\n     */\n\n\n    trackSubscription(subscription) {\n      this.activeSubscriptions.push({\n        subscription,\n        stale: false\n      });\n    }\n    /**\n     * Marks all tracked subscriptions as being stale, such that they will be\n     * unsubscribed in `unsubscribeAll` even if `onlyStale` is true.\n     *\n     * @method markSubscriptionsStale\n     * @private\n     */\n\n\n    markSubscriptionsStale() {\n      this.activeSubscriptions.forEach(subscription => {\n        subscription.stale = true;\n      });\n    }\n    /**\n     * Unsubscribes from all actively tracked subscriptions initiated by calls to\n     * `watchQuery`. This is normally called automatically by the\n     * queryManager decorator when a component is torn down, or qhen `resetController`\n     * is called on the route.\n     *\n     * @method unsubscribeAll\n     * @param {Boolean} onlyStale Whether to unsubscribe only from subscriptions which were previously marked as stale.\n     * @public\n     */\n\n\n    unsubscribeAll(onlyStale = false) {\n      this.activeSubscriptions.forEach(subscription => {\n        if (!onlyStale || subscription.stale) {\n          subscription.subscription.unsubscribe();\n        }\n      });\n      this.activeSubscriptions = onlyStale ? this.activeSubscriptions.filter(subscription => {\n        return !subscription.stale;\n      }) : [];\n    }\n\n  }\n\n  _exports.default = QueryManager;\n});","define(\"ember-apollo-client/-private/apollo/setup-hooks\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = setupHooks;\n  const hooks = {\n    willDestroyElement() {\n      this.unsubscribeAll(false);\n    },\n\n    beforeModel() {\n      this.markSubscriptionsStale();\n    },\n\n    resetController(_, isExiting) {\n      this.unsubscribeAll(!isExiting);\n    },\n\n    willDestroy() {\n      if (this.unsubscribeAll) {\n        this.unsubscribeAll(false);\n      }\n    }\n\n  };\n\n  function installHook(queryManager, context, hookName) {\n    let hook = hooks[hookName].bind(queryManager);\n    let originalHook = context[hookName];\n\n    context[hookName] = function () {\n      if (typeof originalHook === 'function') {\n        originalHook.call(this, ...arguments);\n      }\n\n      hook.call(queryManager, ...arguments);\n    };\n  }\n\n  function setupHooks(queryManager, context) {\n    if (context instanceof Ember.Component) {\n      installHook(queryManager, context, 'willDestroyElement');\n    } else if (context instanceof Ember.Route) {\n      installHook(queryManager, context, 'beforeModel');\n      installHook(queryManager, context, 'resetController');\n      installHook(queryManager, context, 'willDestroy');\n    } else {\n      installHook(queryManager, context, 'willDestroy');\n    }\n  }\n});","define(\"ember-apollo-client/index\", [\"exports\", \"ember-apollo-client/-private/apollo/query-manager\", \"ember-apollo-client/services/apollo\"], function (_exports, _queryManager, _apollo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"QueryManager\", {\n    enumerable: true,\n    get: function () {\n      return _queryManager.default;\n    }\n  });\n  Object.defineProperty(_exports, \"queryManager\", {\n    enumerable: true,\n    get: function () {\n      return _queryManager.queryManager;\n    }\n  });\n  Object.defineProperty(_exports, \"getObservable\", {\n    enumerable: true,\n    get: function () {\n      return _apollo.getObservable;\n    }\n  });\n  Object.defineProperty(_exports, \"unsubscribe\", {\n    enumerable: true,\n    get: function () {\n      return _apollo.unsubscribe;\n    }\n  });\n});","define(\"ember-apollo-client/services/apollo\", [\"exports\", \"fetch\", \"@apollo/client/core\", \"ember-apollo-client/index\", \"@ember/test-waiters\"], function (_exports, _fetch, _core, _index, _testWaiters) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getObservable = getObservable;\n  _exports.unsubscribe = unsubscribe;\n  _exports.ApolloErrorWithResponse = _exports.default = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  const apolloObservableWeakMap = new WeakMap();\n  const apolloUnsubscribeWeakMap = new WeakMap();\n\n  function getObservable(queryResult) {\n    return apolloObservableWeakMap.get(queryResult);\n  }\n\n  function unsubscribe(queryResult) {\n    let fn = apolloUnsubscribeWeakMap.get(queryResult);\n\n    if (typeof fn === 'function') {\n      return fn();\n    }\n  }\n\n  class EmberApolloSubscription {\n    constructor() {\n      _defineProperty(this, \"lastEvent\", null);\n\n      _defineProperty(this, \"_apolloClientSubscription\", null);\n    }\n\n    apolloUnsubscribe() {\n      this._apolloClientSubscription.unsubscribe();\n    }\n\n    _onNewData(newData) {\n      Ember.set(this, 'lastEvent', newData);\n      Ember.sendEvent(this, 'event', [newData]);\n    }\n\n  }\n\n  class TrackedObject {\n    constructor() {\n      Ember.defineProperty(this, 'setUnknownProperty', {\n        configurable: false,\n        enumerable: false,\n        value: function (key, value) {\n          Ember.defineProperty(this, key, Ember._tracked());\n          this[key] = value;\n        },\n        writable: false\n      });\n    }\n\n  }\n\n  function extractNewData(resultKey, {\n    data,\n    loading\n  }) {\n    if (loading && Ember.isNone(data)) {\n      // This happens when the cache has no data and the data is still loading\n      // from the server. We don't want to resolve the promise with empty data\n      // so we instead just bail out.\n      //\n      // See https://github.com/bgentry/ember-apollo-client/issues/45\n      return null;\n    }\n\n    let keyedData = Ember.isNone(resultKey) ? data : data && Ember.get(data, resultKey);\n    return keyedData || {};\n  }\n\n  function newDataFunc(observable, resultKey, resolve, unsubscribeFn = null) {\n    let obj;\n    return newData => {\n      let dataToSend = extractNewData(resultKey, newData);\n\n      if (dataToSend === null) {\n        // see comment in extractNewData\n        return;\n      }\n\n      if (Ember.isNone(obj)) {\n        if (Ember.isArray(dataToSend)) {\n          obj = Ember.A([...dataToSend]);\n        } else {\n          obj = new TrackedObject();\n          Ember.setProperties(obj, dataToSend);\n        }\n\n        if (!apolloObservableWeakMap.has(obj)) {\n          apolloObservableWeakMap.set(obj, observable);\n        }\n\n        if (unsubscribeFn && !apolloUnsubscribeWeakMap.has(obj)) {\n          apolloUnsubscribeWeakMap.set(obj, unsubscribeFn);\n        }\n\n        return resolve(obj);\n      }\n\n      Ember.run(() => {\n        Ember.isArray(obj) ? obj.setObjects(dataToSend) : Ember.setProperties(obj, dataToSend);\n      });\n    };\n  }\n\n  class ApolloService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"client\", null);\n    }\n\n    init() {\n      super.init(...arguments);\n      this.client = new _core.ApolloClient(this.clientOptions());\n    }\n\n    willDestroy() {\n      // Ensure watch queries are not refeteched anymore\n      // See: https://www.apollographql.com/docs/react/v2.6/api/apollo-client/#ApolloClient.clearStore\n      // We guard against non-existance mostly to simplify tests a bit here\n      if (typeof this.client.clearStore === 'function') {\n        this.client.clearStore();\n      }\n    } // options are configured in your environment.js.\n\n\n    get options() {\n      // config:environment not injected into tests, so try to handle that gracefully.\n      let config = Ember.getOwner(this).resolveRegistration('config:environment');\n\n      if (config && config.apollo) {\n        return config.apollo;\n      } else if (Ember.testing) {\n        return {\n          apiURL: 'http://testserver.example/v1/graph'\n        };\n      }\n\n      throw new Error('no Apollo service options defined');\n    }\n\n    cache() {\n      return new _core.InMemoryCache();\n    }\n\n    link() {\n      const {\n        apiURL,\n        requestCredentials\n      } = this.options;\n      const linkOptions = {\n        uri: apiURL,\n        fetch: _fetch.default\n      };\n\n      if (Ember.isPresent(requestCredentials)) {\n        linkOptions.credentials = requestCredentials;\n      }\n\n      return (0, _core.createHttpLink)(linkOptions);\n    }\n    /**\n     * This is the options hash that will be passed to the ApolloClient constructor.\n     * You can override it if you wish to customize the ApolloClient.\n     *\n     * @method clientOptions\n     * @return {!Object}\n     * @public\n     */\n\n\n    clientOptions() {\n      return {\n        link: this.link(),\n        cache: this.cache()\n      };\n    }\n    /**\n     * Executes a mutation on the Apollo client. The resolved object will\n     * never be updated and does not have to be unsubscribed.\n     *\n     * @method mutate\n     * @param {!Object} opts The query options used in the Apollo Client mutate.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @public\n     */\n\n\n    mutate(opts, resultKey) {\n      return (0, _testWaiters.waitForPromise)(new Ember.RSVP.Promise((resolve, reject) => {\n        this.client.mutate(opts).then(result => {\n          let dataToSend = Ember.isNone(resultKey) ? result.data : Ember.get(result.data, resultKey);\n          return resolve(dataToSend);\n        }).catch(error => {\n          let errors;\n\n          if (Ember.isPresent(error.networkError)) {\n            error.networkError.code = 'network_error';\n            errors = [error.networkError];\n          } else if (Ember.isPresent(error.graphQLErrors)) {\n            errors = error.graphQLErrors;\n          }\n\n          if (errors) {\n            return reject({\n              errors\n            });\n          }\n\n          throw error;\n        });\n      }));\n    }\n    /**\n     * Executes a `watchQuery` on the Apollo client. If updated data for this\n     * query is loaded into the store by another query, the resolved object will\n     * be updated with the new data.\n     *\n     * When using this method, it is important to call `apolloUnsubscribe()` on\n     * the resolved data when the route or component is torn down. That tells\n     * Apollo to stop trying to send updated data to a non-existent listener.\n     *\n     * @method watchQuery\n     * @param {!Object} opts The query options used in the Apollo Client watchQuery.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @public\n     */\n\n\n    watchQuery(opts, resultKey) {\n      let observable = this.client.watchQuery(opts);\n      let subscription;\n\n      function unsubscribe() {\n        subscription && subscription.unsubscribe();\n      }\n\n      return (0, _testWaiters.waitForPromise)(new Ember.RSVP.Promise((resolve, reject) => {\n        // TODO: add an error function here for handling errors\n        subscription = observable.subscribe({\n          next: newDataFunc(observable, resultKey, resolve, unsubscribe),\n\n          error(e) {\n            reject(e);\n          }\n\n        });\n      }));\n    }\n    /**\n     * Executes a `subscribe` on the Apollo client. If this subscription receives\n     * data, the resolved object will be updated with the new data.\n     *\n     * When using this method, it is important to call `apolloUnsubscribe()` on\n     * the resolved data when the route or component is torn down. That tells\n     * Apollo to stop trying to send updated data to a non-existent listener.\n     *\n     * @method subscribe\n     * @param {!Object} opts The query options used in the Apollo Client subscribe.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @public\n     */\n\n\n    subscribe(opts, resultKey = null) {\n      const observable = this.client.subscribe(opts);\n      const obj = new EmberApolloSubscription();\n      return (0, _testWaiters.waitForPromise)(new Ember.RSVP.Promise((resolve, reject) => {\n        let subscription = observable.subscribe({\n          next: newData => {\n            let dataToSend = extractNewData(resultKey, newData);\n\n            if (dataToSend === null) {\n              // see comment in extractNewData\n              return;\n            }\n\n            Ember.run(() => obj._onNewData(dataToSend));\n          },\n\n          error(e) {\n            reject(e);\n          }\n\n        });\n        obj._apolloClientSubscription = subscription;\n        resolve(obj);\n      }));\n    }\n    /**\n     * Executes a single `query` on the Apollo client. The resolved object will\n     * never be updated and does not have to be unsubscribed.\n     *\n     * @method query\n     * @param {!Object} opts The query options used in the Apollo Client query.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @public\n     */\n\n\n    query(opts, resultKey) {\n      return (0, _testWaiters.waitForPromise)(new Ember.RSVP.Promise((resolve, reject) => {\n        this.client.query(opts).then(result => {\n          let response = result.data;\n\n          if (!Ember.isNone(resultKey) && response) {\n            response = Ember.get(response, resultKey);\n          }\n\n          if (opts.errorPolicy === 'all' && result.errors && result.errors.length > 0) {\n            return reject(new ApolloErrorWithResponse({\n              response,\n              errors: result.errors\n            }));\n          }\n\n          return resolve(response);\n        }).catch(error => {\n          return reject(error);\n        });\n      }));\n    }\n    /**\n     * Executes a `watchQuery` on the Apollo client and tracks the resulting\n     * subscription on the provided query manager.\n     *\n     * @method managedWatchQuery\n     * @param {!Object} manager A QueryManager that should track this active watchQuery.\n     * @param {!Object} opts The query options used in the Apollo Client watchQuery.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @private\n     */\n\n\n    managedWatchQuery(manager, opts, resultKey) {\n      let observable = this.client.watchQuery(opts);\n      let subscription;\n\n      function unsubscribe() {\n        subscription && subscription.unsubscribe();\n      }\n\n      return (0, _testWaiters.waitForPromise)(new Ember.RSVP.Promise((resolve, reject) => {\n        subscription = observable.subscribe({\n          next: newDataFunc(observable, resultKey, resolve, unsubscribe),\n\n          error(e) {\n            reject(e);\n          }\n\n        });\n        manager.trackSubscription(subscription);\n      }));\n    }\n    /**\n     * Executes a `subscribe` on the Apollo client and tracks the resulting\n     * subscription on the provided query manager.\n     *\n     * @method managedSubscribe\n     * @param {!Object} manager A QueryManager that should track this active subscribe.\n     * @param {!Object} opts The query options used in the Apollo Client subscribe.\n     * @param {String} resultKey The key that will be returned from the resulting response data. If null or undefined, the entire response data will be returned.\n     * @return {!Promise}\n     * @private\n     */\n\n\n    managedSubscribe(manager, opts, resultKey = null) {\n      return this.subscribe(opts, resultKey).then(obj => {\n        manager.trackSubscription(obj._apolloClientSubscription);\n        return obj;\n      });\n    }\n\n    createQueryManager() {\n      return new _index.QueryManager(this);\n    }\n\n  }\n\n  _exports.default = ApolloService;\n\n  class ApolloErrorWithResponse extends Error {\n    constructor({\n      response,\n      errors\n    }) {\n      let message = 'The server responded with an error.';\n      super(message);\n      this.name = 'ApolloErrorWithResponse';\n      this.response = response;\n      this.errors = errors || [];\n    }\n\n  }\n\n  _exports.ApolloErrorWithResponse = ApolloErrorWithResponse;\n});","define(\"ember-apollo-client/utils/inject\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(registry, factoryNameOrType, property, injectionName) {\n    const inject = registry.inject || registry.injection;\n    inject.call(registry, factoryNameOrType, property, injectionName);\n  }\n});","define(\"ember-assign-helper/helpers/assign\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.assign = assign;\n  _exports.default = void 0;\n\n  function assign(params) {\n    return Ember.assign({}, ...params);\n  }\n\n  var _default = Ember.Helper.helper(assign);\n\n  _exports.default = _default;\n});","define(\"ember-basic-dropdown/components/basic-dropdown-content\", [\"exports\", \"@glimmer/component\", \"ember-basic-dropdown/utils/calculate-position\", \"ember-basic-dropdown/utils/scroll-helpers\", \"ember-basic-dropdown/utils/has-moved\", \"@embroider/macros/runtime\"], function (_exports, _component, _calculatePosition, _scrollHelpers, _hasMoved, _runtime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let BasicDropdownContent = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, (_class = class BasicDropdownContent extends _component.default {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"transitioningInClass\", this.args.transitioningInClass || 'ember-basic-dropdown--transitioning-in');\n\n      _defineProperty(this, \"transitionedInClass\", this.args.transitionedInClass || 'ember-basic-dropdown--transitioned-in');\n\n      _defineProperty(this, \"transitioningOutClass\", this.args.transitioningOutClass || 'ember-basic-dropdown--transitioning-out');\n\n      _defineProperty(this, \"isTouchDevice\", this.args.isTouchDevice || Boolean(!!window && 'ontouchstart' in window));\n\n      _defineProperty(this, \"dropdownId\", `ember-basic-dropdown-content-${this.args.dropdown.uniqueId}`);\n\n      _defineProperty(this, \"touchMoveEvent\", void 0);\n\n      _defineProperty(this, \"handleRootMouseDown\", void 0);\n\n      _defineProperty(this, \"scrollableAncestors\", []);\n\n      _defineProperty(this, \"mutationObserver\", void 0);\n\n      _initializerDefineProperty(this, \"animationClass\", _descriptor, this);\n    }\n\n    get destinationElement() {\n      return document.getElementById(this.args.destination);\n    }\n\n    get animationEnabled() {\n      return !(0, _runtime.isTesting)();\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\n\n    noop() {}\n\n    setup(dropdownElement) {\n      let triggerElement = document.querySelector(`[data-ebd-id=${this.args.dropdown.uniqueId}-trigger]`);\n\n      this.handleRootMouseDown = e => {\n        if (e.target === null) return;\n        let target = e.target;\n\n        if ((0, _hasMoved.default)(e, this.touchMoveEvent) || dropdownElement.contains(target) || triggerElement && triggerElement.contains(target)) {\n          this.touchMoveEvent = undefined;\n          return;\n        }\n\n        if (dropdownIsValidParent(target, this.dropdownId)) {\n          this.touchMoveEvent = undefined;\n          return;\n        }\n\n        this.args.dropdown.actions.close(e, true);\n      };\n\n      document.addEventListener(this.args.rootEventType, this.handleRootMouseDown, true);\n      window.addEventListener('resize', this.runloopAwareReposition);\n      window.addEventListener('orientationchange', this.runloopAwareReposition);\n\n      if (this.isTouchDevice) {\n        document.addEventListener('touchstart', this.touchStartHandler, true);\n        document.addEventListener('touchend', this.handleRootMouseDown, true);\n      }\n\n      if (triggerElement !== null) {\n        this.scrollableAncestors = getScrollableAncestors(triggerElement);\n      }\n\n      this.addScrollHandling(dropdownElement);\n    }\n\n    teardown() {\n      this.removeGlobalEvents();\n      this.removeScrollHandling();\n      this.scrollableAncestors = [];\n      document.removeEventListener(this.args.rootEventType, this.handleRootMouseDown, true);\n\n      if (this.isTouchDevice) {\n        document.removeEventListener('touchstart', this.touchStartHandler, true);\n        document.removeEventListener('touchend', this.handleRootMouseDown, true);\n      }\n    }\n\n    animateIn(dropdownElement) {\n      if (!this.animationEnabled) return;\n      waitForAnimations(dropdownElement, () => {\n        this.animationClass = this.transitionedInClass;\n      });\n    }\n\n    animateOut(dropdownElement) {\n      if (!this.animationEnabled) return;\n      let parentElement = dropdownElement.parentElement;\n      if (parentElement === null) return;\n\n      if (this.args.renderInPlace) {\n        parentElement = parentElement.parentElement;\n      }\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.transitionedInClass;\n      waitForAnimations(clone, function () {\n        parentElement.removeChild(clone);\n      });\n    }\n\n    setupMutationObserver(dropdownElement) {\n      this.mutationObserver = new MutationObserver(mutations => {\n        let shouldReposition = mutations.some(record => containsRelevantMutation(record.addedNodes) || containsRelevantMutation(record.removedNodes));\n\n        if (shouldReposition && this.args.shouldReposition) {\n          shouldReposition = this.args.shouldReposition(mutations, this.args.dropdown);\n        }\n\n        if (shouldReposition) {\n          this.runloopAwareReposition();\n        }\n      });\n      this.mutationObserver.observe(dropdownElement, {\n        childList: true,\n        subtree: true\n      });\n    }\n\n    teardownMutationObserver() {\n      if (this.mutationObserver !== undefined) {\n        this.mutationObserver.disconnect();\n        this.mutationObserver = undefined;\n      }\n    }\n\n    touchStartHandler() {\n      document.addEventListener('touchmove', this.touchMoveHandler, true);\n    }\n\n    touchMoveHandler(e) {\n      this.touchMoveEvent = e;\n      document.removeEventListener('touchmove', this.touchMoveHandler, true);\n    }\n\n    runloopAwareReposition() {\n      Ember.run.join(this.args.dropdown.actions.reposition);\n    }\n\n    removeGlobalEvents() {\n      window.removeEventListener('resize', this.runloopAwareReposition);\n      window.removeEventListener('orientationchange', this.runloopAwareReposition);\n    } // Methods\n\n\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\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); // Calculate what the event's desired change to that scrollable canvas is.\n\n            let {\n              deltaX,\n              deltaY\n            } = (0, _scrollHelpers.getScrollDeltas)(event); // 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\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            } // 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            // Also, don't attempt to do this if both of `deltaX` or `deltaY` are 0.\n\n\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\n        document.addEventListener('wheel', wheelHandler, {\n          capture: true,\n          passive: false\n        });\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    } // Assigned at runtime to ensure that changes to the `preventScroll` property\n    // don't result in not cleaning up after ourselves.\n\n\n    removeScrollHandling() {} // These two functions wire up scroll handling if `preventScroll` is false.\n    // These trigger reposition of the dropdown.\n\n\n    addScrollEvents() {\n      window.addEventListener('scroll', this.runloopAwareReposition);\n      this.scrollableAncestors.forEach(el => {\n        el.addEventListener('scroll', this.runloopAwareReposition);\n      });\n    }\n\n    removeScrollEvents() {\n      window.removeEventListener('scroll', this.runloopAwareReposition);\n      this.scrollableAncestors.forEach(el => {\n        el.removeEventListener('scroll', this.runloopAwareReposition);\n      });\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"animationClass\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.animationEnabled ? this.transitioningInClass : '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"teardown\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"teardown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"animateIn\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"animateIn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"animateOut\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"animateOut\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupMutationObserver\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setupMutationObserver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"teardownMutationObserver\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"teardownMutationObserver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"touchStartHandler\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"touchStartHandler\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"touchMoveHandler\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"touchMoveHandler\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"runloopAwareReposition\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"runloopAwareReposition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeGlobalEvents\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"removeGlobalEvents\"), _class.prototype)), _class));\n  _exports.default = BasicDropdownContent;\n\n  function containsRelevantMutation(nodeList) {\n    for (let i = 0; i < nodeList.length; i++) {\n      const node = nodeList[i];\n\n      if (node.nodeName !== '#comment' && !(node.nodeName === '#text' && node.nodeValue === '')) {\n        return true;\n      }\n    }\n\n    return false;\n  } // All ancestors with scroll (except the BODY, which is treated differently)\n\n\n  function getScrollableAncestors(triggerElement) {\n    let scrollableAncestors = [];\n\n    if (triggerElement) {\n      let parent = triggerElement.parentNode;\n\n      if (parent !== null) {\n        let nextScrollable = (0, _calculatePosition.getScrollParent)(parent);\n\n        while (nextScrollable && nextScrollable.tagName.toUpperCase() !== 'BODY' && nextScrollable.tagName.toUpperCase() !== 'HTML') {\n          scrollableAncestors.push(nextScrollable);\n          let nextParent = nextScrollable.parentNode;\n\n          if (nextParent === null) {\n            nextScrollable = undefined;\n          } else {\n            nextScrollable = (0, _calculatePosition.getScrollParent)(nextParent);\n          }\n        }\n      }\n    }\n\n    return scrollableAncestors;\n  }\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\n    return el;\n  }\n\n  function waitForAnimations(element, callback) {\n    window.requestAnimationFrame(function () {\n      let computedStyle = window.getComputedStyle(element);\n\n      if (computedStyle.animationName !== 'none' && computedStyle.animationPlayState === 'running') {\n        let eventCallback = function () {\n          element.removeEventListener('animationend', eventCallback);\n          callback();\n        };\n\n        element.addEventListener('animationend', eventCallback);\n      } else {\n        callback();\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\n\n  function dropdownIsValidParent(el, dropdownId) {\n    let closestDropdown = closestContent(el);\n\n    if (closestDropdown === null) {\n      return false;\n    } else {\n      let closestAttrs = closestDropdown.attributes;\n      let trigger = document.querySelector(`[aria-owns=${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});","define(\"ember-basic-dropdown/components/basic-dropdown-trigger\", [\"exports\", \"@glimmer/component\", \"ember-basic-dropdown/utils/has-moved\"], function (_exports, _component, _hasMoved) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  let BasicDropdownTrigger = (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, (_class = class BasicDropdownTrigger extends _component.default {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"toggleIsBeingHandledByTouchEvents\", false);\n\n      _defineProperty(this, \"touchMoveEvent\", void 0);\n    }\n\n    // Actions\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\n    handleMouseDown(e) {\n      if (this.args.dropdown.disabled) {\n        return;\n      }\n\n      if (this.args.eventType !== 'mousedown' || e.button !== 0) return;\n\n      if (this.args.stopPropagation) {\n        e.stopPropagation();\n      }\n\n      this._stopTextSelectionUntilMouseup();\n\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\n      this.args.dropdown.actions.toggle(e);\n    }\n\n    handleClick(e) {\n      if (typeof document === 'undefined') return;\n\n      if (this.isDestroyed || !this.args.dropdown || this.args.dropdown.disabled) {\n        return;\n      }\n\n      if (this.args.eventType !== undefined && this.args.eventType !== 'click' || e.button !== 0) return;\n\n      if (this.args.stopPropagation) {\n        e.stopPropagation();\n      }\n\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\n      this.args.dropdown.actions.toggle(e);\n    }\n\n    handleKeyDown(e) {\n      if (this.args.dropdown.disabled) {\n        return;\n      }\n\n      if (e.keyCode === 13) {\n        // Enter\n        this.args.dropdown.actions.toggle(e);\n      } else if (e.keyCode === 32) {\n        // Space\n        e.preventDefault(); // prevents the space to trigger a scroll page-next\n\n        this.args.dropdown.actions.toggle(e);\n      } else if (e.keyCode === 27) {\n        this.args.dropdown.actions.close(e);\n      }\n    }\n\n    handleTouchStart() {\n      document.addEventListener('touchmove', this._touchMoveHandler);\n    }\n\n    handleTouchEnd(e) {\n      this.toggleIsBeingHandledByTouchEvents = true;\n\n      if (e && e.defaultPrevented || this.args.dropdown.disabled) {\n        return;\n      }\n\n      if (!(0, _hasMoved.default)(e, this.touchMoveEvent)) {\n        this.args.dropdown.actions.toggle(e);\n      }\n\n      this.touchMoveEvent = undefined;\n      document.removeEventListener('touchmove', this._touchMoveHandler); // 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\n      let target = e.target;\n\n      if (target !== null) {\n        target.focus();\n      }\n\n      setTimeout(function () {\n        if (!e.target) {\n          return;\n        }\n\n        try {\n          let 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          event = new Event('click');\n          e.target.dispatchEvent(event);\n        }\n      }, 0);\n      e.preventDefault();\n    }\n\n    removeGlobalHandlers() {\n      if (typeof document === 'undefined') return;\n      document.removeEventListener('touchmove', this._touchMoveHandler);\n      document.removeEventListener('mouseup', this._mouseupHandler, true);\n    }\n\n    _mouseupHandler() {\n      document.removeEventListener('mouseup', this._mouseupHandler, true);\n      document.body.classList.remove('ember-basic-dropdown-text-select-disabled');\n    }\n\n    _touchMoveHandler(e) {\n      this.touchMoveEvent = e;\n      document.removeEventListener('touchmove', this._touchMoveHandler);\n    } // Methods\n\n\n    _stopTextSelectionUntilMouseup() {\n      document.addEventListener('mouseup', this._mouseupHandler, true);\n      document.body.classList.add('ember-basic-dropdown-text-select-disabled');\n    }\n\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleMouseDown\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeyDown\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeyDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleTouchStart\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"handleTouchStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleTouchEnd\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"handleTouchEnd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeGlobalHandlers\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"removeGlobalHandlers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_mouseupHandler\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"_mouseupHandler\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_touchMoveHandler\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"_touchMoveHandler\"), _class.prototype)), _class));\n  _exports.default = BasicDropdownTrigger;\n});","define(\"ember-basic-dropdown/components/basic-dropdown\", [\"exports\", \"@glimmer/component\", \"ember-basic-dropdown/utils/calculate-position\", \"@embroider/macros/runtime\"], function (_exports, _component, _calculatePosition, _runtime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const UNINITIALIZED = {};\n  const IGNORED_STYLES = ['top', 'left', 'right', 'width', 'height'];\n  let BasicDropdown = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, (_class = class BasicDropdown extends _component.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\n    get disabled() {\n      let newVal = this.args.disabled || false;\n\n      if (this._previousDisabled !== UNINITIALIZED && this._previousDisabled !== newVal) {\n        Ember.run.schedule('actions', () => {\n          if (newVal && this.publicAPI.isOpen) {\n            this.isOpen = false;\n          }\n\n          this.args.registerAPI && this.args.registerAPI(this.publicAPI);\n        });\n      }\n\n      this._previousDisabled = newVal;\n      return newVal;\n    }\n\n    get publicAPI() {\n      return {\n        uniqueId: this._uid,\n        isOpen: this.isOpen,\n        disabled: this.disabled,\n        actions: this._actions\n      };\n    } // Lifecycle hooks\n\n\n    constructor(owner, args) {\n      super(owner, args);\n\n      _initializerDefineProperty(this, \"hPosition\", _descriptor, this);\n\n      _initializerDefineProperty(this, \"vPosition\", _descriptor2, this);\n\n      _initializerDefineProperty(this, \"top\", _descriptor3, this);\n\n      _initializerDefineProperty(this, \"left\", _descriptor4, this);\n\n      _initializerDefineProperty(this, \"right\", _descriptor5, this);\n\n      _initializerDefineProperty(this, \"width\", _descriptor6, this);\n\n      _initializerDefineProperty(this, \"height\", _descriptor7, this);\n\n      _initializerDefineProperty(this, \"otherStyles\", _descriptor8, this);\n\n      _initializerDefineProperty(this, \"isOpen\", _descriptor9, this);\n\n      _initializerDefineProperty(this, \"renderInPlace\", _descriptor10, this);\n\n      _defineProperty(this, \"previousVerticalPosition\", void 0);\n\n      _defineProperty(this, \"previousHorizontalPosition\", void 0);\n\n      _defineProperty(this, \"destinationElement\", void 0);\n\n      _defineProperty(this, \"_uid\", Ember.guidFor(this));\n\n      _defineProperty(this, \"_dropdownId\", this.args.dropdownId || `ember-basic-dropdown-content-${this._uid}`);\n\n      _defineProperty(this, \"_previousDisabled\", UNINITIALIZED);\n\n      _defineProperty(this, \"_actions\", {\n        open: this.open,\n        close: this.close,\n        toggle: this.toggle,\n        reposition: this.reposition\n      });\n\n      if (this.args.onInit) {\n        this.args.onInit(this.publicAPI);\n      }\n\n      this.args.registerAPI && this.args.registerAPI(this.publicAPI);\n    }\n\n    willDestroy() {\n      super.willDestroy();\n\n      if (this.args.registerAPI) {\n        this.args.registerAPI(null);\n      }\n    } // Actions\n\n\n    open(e) {\n      if (this.isDestroyed) {\n        return;\n      }\n\n      if (this.publicAPI.disabled || this.publicAPI.isOpen) {\n        return;\n      }\n\n      if (this.args.onOpen && this.args.onOpen(this.publicAPI, e) === false) {\n        return;\n      }\n\n      this.isOpen = true;\n      this.args.registerAPI && this.args.registerAPI(this.publicAPI);\n    }\n\n    close(e, skipFocus) {\n      if (this.isDestroyed) {\n        return;\n      }\n\n      if (this.publicAPI.disabled || !this.publicAPI.isOpen) {\n        return;\n      }\n\n      if (this.args.onClose && this.args.onClose(this.publicAPI, e) === false) {\n        return;\n      }\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\n      if (skipFocus) {\n        return;\n      }\n\n      let trigger = document.querySelector(`[data-ebd-id=${this.publicAPI.uniqueId}-trigger]`);\n\n      if (trigger && trigger.tabIndex > -1) {\n        trigger.focus();\n      }\n    }\n\n    toggle(e) {\n      if (this.publicAPI.isOpen) {\n        this.close(e);\n      } else {\n        this.open(e);\n      }\n    }\n\n    reposition() {\n      if (!this.publicAPI.isOpen) {\n        return;\n      }\n\n      let dropdownElement = document.getElementById(this._dropdownId);\n      let triggerElement = document.querySelector(`[data-ebd-id=${this.publicAPI.uniqueId}-trigger]`);\n\n      if (!dropdownElement || !triggerElement) {\n        return;\n      }\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\n    applyReposition(_trigger, dropdown, positions) {\n      let changes = {\n        hPosition: positions.horizontalPosition,\n        vPosition: positions.verticalPosition,\n        otherStyles: Ember.assign({}, this.otherStyles)\n      };\n\n      if (positions.style) {\n        if (positions.style.top !== undefined) {\n          changes.top = `${positions.style.top}px`;\n        } // The component can be aligned from the right or from the left, but not from both.\n\n\n        if (positions.style.left !== undefined) {\n          changes.left = `${positions.style.left}px`;\n          changes.right = undefined; // Since we set the first run manually we may need to unset the `right` property.\n\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\n        if (positions.style.width !== undefined) {\n          changes.width = `${positions.style.width}px`;\n        }\n\n        if (positions.style.height !== undefined) {\n          changes.height = `${positions.style.height}px`;\n        }\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\n      for (let prop in positions.style) {\n        // Array.includes is not available for IE11\n        if (IGNORED_STYLES.indexOf(prop) === -1) {\n          changes.otherStyles;\n          changes.otherStyles[prop] = positions.style[prop];\n        }\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\n    _getDestinationId() {\n      let config = Ember.getOwner(this).resolveRegistration(\"config:environment\"); // This takes care of stripping this code out if not running tests\n\n      if ((0, _runtime.macroCondition)((0, _runtime.isTesting)())) {\n        if (typeof FastBoot === \"undefined\" && true) {\n          let getRootElement = require(\"@ember/test-helpers/dom/get-root-element\");\n\n          return getRootElement.default().id;\n        }\n\n        let rootView = document.querySelector('#ember-testing > .ember-view');\n\n        if (rootView) {\n          return rootView.id;\n        }\n\n        return '';\n      }\n\n      return config[\"ember-basic-dropdown\"] && config[\"ember-basic-dropdown\"].destination || \"ember-basic-dropdown-wormhole\";\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"hPosition\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"vPosition\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"top\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"left\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"right\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"width\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"height\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"otherStyles\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_dec9], {\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\", [_dec10], {\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\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"open\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reposition\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"reposition\"), _class.prototype)), _class));\n  _exports.default = BasicDropdown;\n});","define(\"ember-basic-dropdown/templates/components/basic-dropdown-content\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"1M2BUT85\",\n    \"block\": \"{\\\"symbols\\\":[\\\"Element\\\",\\\"Element\\\",\\\"@defaultClass\\\",\\\"@renderInPlace\\\",\\\"@vPosition\\\",\\\"@hPosition\\\",\\\"@dir\\\",\\\"&attrs\\\",\\\"@height\\\",\\\"@width\\\",\\\"@right\\\",\\\"@left\\\",\\\"@top\\\",\\\"@otherStyles\\\",\\\"@dropdown\\\",\\\"@onFocusIn\\\",\\\"@onFocusOut\\\",\\\"@onMouseEnter\\\",\\\"@onMouseLeave\\\",\\\"&default\\\",\\\"@htmlTag\\\",\\\"@overlay\\\"],\\\"statements\\\":[[6,[37,2],[[32,15,[\\\"isOpen\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[10,\\\"div\\\"],[14,0,\\\"ember-basic-dropdown-content-wormhole-origin\\\"],[12],[2,\\\"\\\\n\\\"],[8,\\\"maybe-in-element\\\",[],[[\\\"@destinationElement\\\",\\\"@renderInPlace\\\"],[[32,0,[\\\"destinationElement\\\"]],[32,4]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,2],[[32,22]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"div\\\"],[14,0,\\\"ember-basic-dropdown-overlay\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,2],[[30,[36,11],[[32,21],[29]],null]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,10],[[30,[36,9],[[30,[36,8],[\\\"div\\\"],null]],[[\\\"tagName\\\"],[\\\"div\\\"]]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,[32,2],[[16,1,[32,0,[\\\"dropdownId\\\"]]],[16,0,[31,[\\\"ember-basic-dropdown-content ember-basic-dropdown-content--\\\",[32,6],\\\" ember-basic-dropdown-content--\\\",[32,5],\\\" \\\",[32,0,[\\\"animationClass\\\"]],[30,[36,2],[[32,4],\\\" ember-basic-dropdown-content--in-place\\\"],null],\\\" \\\",[32,3]]]],[16,\\\"dir\\\",[32,7]],[17,8],[4,[38,1],[[32,14],[30,[36,0],null,[[\\\"top\\\",\\\"left\\\",\\\"right\\\",\\\"width\\\",\\\"height\\\"],[[32,13],[32,12],[32,11],[32,10],[32,9]]]]],null],[4,[38,3],[[32,0,[\\\"setup\\\"]]],null],[4,[38,3],[[32,15,[\\\"actions\\\",\\\"reposition\\\"]]],null],[4,[38,3],[[32,0,[\\\"setupMutationObserver\\\"]]],null],[4,[38,3],[[32,0,[\\\"animateIn\\\"]]],null],[4,[38,4],[[32,0,[\\\"teardownMutationObserver\\\"]]],null],[4,[38,4],[[32,0,[\\\"animateOut\\\"]]],null],[4,[38,4],[[32,0,[\\\"teardown\\\"]]],null],[4,[38,7],[\\\"focusin\\\",[30,[36,6],[[30,[36,5],[[32,16],[32,0,[\\\"noop\\\"]]],null],[32,15]],null]],null],[4,[38,7],[\\\"focusout\\\",[30,[36,6],[[30,[36,5],[[32,17],[32,0,[\\\"noop\\\"]]],null],[32,15]],null]],null],[4,[38,7],[\\\"mouseenter\\\",[30,[36,6],[[30,[36,5],[[32,18],[32,0,[\\\"noop\\\"]]],null],[32,15]],null]],null],[4,[38,7],[\\\"mouseleave\\\",[30,[36,6],[[30,[36,5],[[32,19],[32,0,[\\\"noop\\\"]]],null],[32,15]],null]],null]],[[],[]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n          \\\"],[18,20,null],[2,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,10],[[30,[36,9],[[30,[36,8],[[32,21]],null]],[[\\\"tagName\\\"],[[32,21]]]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,[32,1],[[16,1,[32,0,[\\\"dropdownId\\\"]]],[16,0,[31,[\\\"ember-basic-dropdown-content ember-basic-dropdown-content--\\\",[32,6],\\\" ember-basic-dropdown-content--\\\",[32,5],\\\" \\\",[32,0,[\\\"animationClass\\\"]],[30,[36,2],[[32,4],\\\" ember-basic-dropdown-content--in-place\\\"],null],\\\" \\\",[32,3]]]],[16,\\\"dir\\\",[32,7]],[17,8],[4,[38,1],[[32,14],[30,[36,0],null,[[\\\"top\\\",\\\"left\\\",\\\"right\\\",\\\"width\\\",\\\"height\\\"],[[32,13],[32,12],[32,11],[32,10],[32,9]]]]],null],[4,[38,3],[[32,0,[\\\"setup\\\"]]],null],[4,[38,3],[[32,15,[\\\"actions\\\",\\\"reposition\\\"]]],null],[4,[38,3],[[32,0,[\\\"setupMutationObserver\\\"]]],null],[4,[38,3],[[32,0,[\\\"animateIn\\\"]]],null],[4,[38,4],[[32,0,[\\\"teardownMutationObserver\\\"]]],null],[4,[38,4],[[32,0,[\\\"animateOut\\\"]]],null],[4,[38,4],[[32,0,[\\\"teardown\\\"]]],null],[4,[38,7],[\\\"focusin\\\",[30,[36,6],[[30,[36,5],[[32,16],[32,0,[\\\"noop\\\"]]],null],[32,15]],null]],null],[4,[38,7],[\\\"focusout\\\",[30,[36,6],[[30,[36,5],[[32,17],[32,0,[\\\"noop\\\"]]],null],[32,15]],null]],null],[4,[38,7],[\\\"mouseenter\\\",[30,[36,6],[[30,[36,5],[[32,18],[32,0,[\\\"noop\\\"]]],null],[32,15]],null]],null],[4,[38,7],[\\\"mouseleave\\\",[30,[36,6],[[30,[36,5],[[32,19],[32,0,[\\\"noop\\\"]]],null],[32,15]],null]],null]],[[],[]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n          \\\"],[18,20,null],[2,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"  \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[11,\\\"div\\\"],[16,1,[32,0,[\\\"dropdownId\\\"]]],[24,0,\\\"ember-basic-dropdown-content-placeholder\\\"],[4,[38,1],[[30,[36,0],null,[[\\\"display\\\"],[\\\"none\\\"]]]],null],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"hash\\\",\\\"style\\\",\\\"if\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"or\\\",\\\"fn\\\",\\\"on\\\",\\\"-element\\\",\\\"component\\\",\\\"let\\\",\\\"eq\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-basic-dropdown/templates/components/basic-dropdown-content.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-basic-dropdown/templates/components/basic-dropdown-trigger\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"zJhC8I4E\",\n    \"block\": \"{\\\"symbols\\\":[\\\"Element\\\",\\\"Element\\\",\\\"@defaultClass\\\",\\\"@vPosition\\\",\\\"@hPosition\\\",\\\"@renderInPlace\\\",\\\"@dropdown\\\",\\\"&attrs\\\",\\\"@onKeyDown\\\",\\\"@onMouseDown\\\",\\\"@onTouchEnd\\\",\\\"@onClick\\\",\\\"@onMouseEnter\\\",\\\"@onMouseLeave\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@onFocusIn\\\",\\\"@onFocusOut\\\",\\\"&default\\\",\\\"@htmlTag\\\"],\\\"statements\\\":[[6,[37,1],[[30,[36,10],[[32,20],[29]],null]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,9],[[30,[36,8],[[30,[36,7],[\\\"div\\\"],null]],[[\\\"tagName\\\"],[\\\"div\\\"]]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[8,[32,2],[[16,0,[31,[\\\"ember-basic-dropdown-trigger\\\\n        \\\",[30,[36,1],[[32,6],\\\" ember-basic-dropdown-trigger--in-place\\\"],null],\\\"\\\\n        \\\",[30,[36,1],[[32,5],[30,[36,0],[\\\" ember-basic-dropdown-trigger--\\\",[32,5]],null]],null],\\\"\\\\n        \\\",[30,[36,1],[[32,4],[30,[36,0],[\\\" ember-basic-dropdown-trigger--\\\",[32,4]],null]],null],\\\"\\\\n\\\\n        \\\",[32,3]]]],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"tabindex\\\",[30,[36,2],[[32,7,[\\\"disabled\\\"]],\\\"0\\\"],null]],[16,\\\"data-ebd-id\\\",[31,[[32,7,[\\\"uniqueId\\\"]],\\\"-trigger\\\"]]],[16,\\\"aria-owns\\\",[31,[\\\"ember-basic-dropdown-content-\\\",[32,7,[\\\"uniqueId\\\"]]]]],[16,\\\"aria-expanded\\\",[31,[[32,7,[\\\"isOpen\\\"]]]]],[16,\\\"aria-disabled\\\",[30,[36,1],[[32,7,[\\\"disabled\\\"]],\\\"true\\\"],null]],[17,8],[4,[38,3],[[32,0,[\\\"removeGlobalHandlers\\\"]]],null],[4,[38,4],[\\\"mousedown\\\",[32,0,[\\\"handleMouseDown\\\"]]],null],[4,[38,4],[\\\"click\\\",[32,0,[\\\"handleClick\\\"]]],null],[4,[38,4],[\\\"keydown\\\",[32,0,[\\\"handleKeyDown\\\"]]],null],[4,[38,4],[\\\"touchstart\\\",[32,0,[\\\"handleTouchStart\\\"]]],null],[4,[38,4],[\\\"touchend\\\",[32,0,[\\\"handleTouchEnd\\\"]]],null],[4,[38,4],[\\\"keydown\\\",[30,[36,6],[[30,[36,5],[[32,9],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"mousedown\\\",[30,[36,6],[[30,[36,5],[[32,10],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"touchend\\\",[30,[36,6],[[30,[36,5],[[32,11],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"click\\\",[30,[36,6],[[30,[36,5],[[32,12],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"mouseenter\\\",[30,[36,6],[[30,[36,5],[[32,13],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"mouseleave\\\",[30,[36,6],[[30,[36,5],[[32,14],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"focus\\\",[30,[36,6],[[30,[36,5],[[32,15],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"blur\\\",[30,[36,6],[[30,[36,5],[[32,16],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"focusin\\\",[30,[36,6],[[30,[36,5],[[32,17],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"focusout\\\",[30,[36,6],[[30,[36,5],[[32,18],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null]],[[],[]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n      \\\"],[18,19,null],[2,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,9],[[30,[36,8],[[30,[36,7],[[32,20]],null]],[[\\\"tagName\\\"],[[32,20]]]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[8,[32,1],[[16,0,[31,[\\\"ember-basic-dropdown-trigger\\\\n        \\\",[30,[36,1],[[32,6],\\\" ember-basic-dropdown-trigger--in-place\\\"],null],\\\"\\\\n        \\\",[30,[36,1],[[32,5],[30,[36,0],[\\\" ember-basic-dropdown-trigger--\\\",[32,5]],null]],null],\\\"\\\\n        \\\",[30,[36,1],[[32,4],[30,[36,0],[\\\" ember-basic-dropdown-trigger--\\\",[32,4]],null]],null],\\\"\\\\n\\\\n        \\\",[32,3]]]],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"tabindex\\\",[30,[36,2],[[32,7,[\\\"disabled\\\"]],\\\"0\\\"],null]],[16,\\\"data-ebd-id\\\",[31,[[32,7,[\\\"uniqueId\\\"]],\\\"-trigger\\\"]]],[16,\\\"aria-owns\\\",[31,[\\\"ember-basic-dropdown-content-\\\",[32,7,[\\\"uniqueId\\\"]]]]],[16,\\\"aria-expanded\\\",[31,[[32,7,[\\\"isOpen\\\"]]]]],[16,\\\"aria-disabled\\\",[30,[36,1],[[32,7,[\\\"disabled\\\"]],\\\"true\\\"],null]],[17,8],[4,[38,3],[[32,0,[\\\"removeGlobalHandlers\\\"]]],null],[4,[38,4],[\\\"mousedown\\\",[32,0,[\\\"handleMouseDown\\\"]]],null],[4,[38,4],[\\\"click\\\",[32,0,[\\\"handleClick\\\"]]],null],[4,[38,4],[\\\"keydown\\\",[32,0,[\\\"handleKeyDown\\\"]]],null],[4,[38,4],[\\\"touchstart\\\",[32,0,[\\\"handleTouchStart\\\"]]],null],[4,[38,4],[\\\"touchend\\\",[32,0,[\\\"handleTouchEnd\\\"]]],null],[4,[38,4],[\\\"keydown\\\",[30,[36,6],[[30,[36,5],[[32,9],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"mousedown\\\",[30,[36,6],[[30,[36,5],[[32,10],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"touchend\\\",[30,[36,6],[[30,[36,5],[[32,11],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"click\\\",[30,[36,6],[[30,[36,5],[[32,12],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"mouseenter\\\",[30,[36,6],[[30,[36,5],[[32,13],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"mouseleave\\\",[30,[36,6],[[30,[36,5],[[32,14],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"focus\\\",[30,[36,6],[[30,[36,5],[[32,15],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"blur\\\",[30,[36,6],[[30,[36,5],[[32,16],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"focusin\\\",[30,[36,6],[[30,[36,5],[[32,17],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null],[4,[38,4],[\\\"focusout\\\",[30,[36,6],[[30,[36,5],[[32,18],[32,0,[\\\"noop\\\"]]],null],[32,7]],null]],null]],[[],[]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n      \\\"],[18,19,null],[2,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"concat\\\",\\\"if\\\",\\\"unless\\\",\\\"will-destroy\\\",\\\"on\\\",\\\"or\\\",\\\"fn\\\",\\\"-element\\\",\\\"component\\\",\\\"let\\\",\\\"eq\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-basic-dropdown/templates/components/basic-dropdown-trigger.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-basic-dropdown/templates/components/basic-dropdown\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ywIj04f8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"api\\\",\\\"&default\\\",\\\"&attrs\\\",\\\"@rootEventType\\\",\\\"@preventScroll\\\",\\\"@contentComponent\\\",\\\"@triggerComponent\\\"],\\\"statements\\\":[[6,[37,7],[[30,[36,6],null,[[\\\"uniqueId\\\",\\\"isOpen\\\",\\\"disabled\\\",\\\"actions\\\",\\\"Trigger\\\",\\\"Content\\\"],[[32,0,[\\\"publicAPI\\\",\\\"uniqueId\\\"]],[32,0,[\\\"publicAPI\\\",\\\"isOpen\\\"]],[32,0,[\\\"publicAPI\\\",\\\"disabled\\\"]],[32,0,[\\\"publicAPI\\\",\\\"actions\\\"]],[30,[36,0],[[30,[36,5],[[32,7],[29]],null],[30,[36,4],[\\\"basic-dropdown-trigger\\\"],[[\\\"dropdown\\\",\\\"hPosition\\\",\\\"renderInPlace\\\",\\\"vPosition\\\"],[[30,[36,1],[[32,0,[\\\"publicAPI\\\"]]],null],[30,[36,1],[[32,0,[\\\"hPosition\\\"]]],null],[30,[36,1],[[32,0,[\\\"renderInPlace\\\"]]],null],[30,[36,1],[[32,0,[\\\"vPosition\\\"]]],null]]]],[30,[36,4],[[30,[36,3],[[32,7]],null]],[[\\\"dropdown\\\",\\\"hPosition\\\",\\\"renderInPlace\\\",\\\"vPosition\\\"],[[30,[36,1],[[32,0,[\\\"publicAPI\\\"]]],null],[30,[36,1],[[32,0,[\\\"hPosition\\\"]]],null],[30,[36,1],[[32,0,[\\\"renderInPlace\\\"]]],null],[30,[36,1],[[32,0,[\\\"vPosition\\\"]]],null]]]]],null],[30,[36,0],[[30,[36,5],[[32,6],[29]],null],[30,[36,4],[\\\"basic-dropdown-content\\\"],[[\\\"dropdown\\\",\\\"hPosition\\\",\\\"renderInPlace\\\",\\\"preventScroll\\\",\\\"rootEventType\\\",\\\"vPosition\\\",\\\"destination\\\",\\\"top\\\",\\\"left\\\",\\\"right\\\",\\\"width\\\",\\\"height\\\",\\\"otherStyles\\\"],[[30,[36,1],[[32,0,[\\\"publicAPI\\\"]]],null],[30,[36,1],[[32,0,[\\\"hPosition\\\"]]],null],[30,[36,1],[[32,0,[\\\"renderInPlace\\\"]]],null],[30,[36,1],[[32,5]],null],[30,[36,2],[[32,4],\\\"click\\\"],null],[30,[36,1],[[32,0,[\\\"vPosition\\\"]]],null],[30,[36,1],[[32,0,[\\\"destination\\\"]]],null],[30,[36,1],[[32,0,[\\\"top\\\"]]],null],[30,[36,1],[[32,0,[\\\"left\\\"]]],null],[30,[36,1],[[32,0,[\\\"right\\\"]]],null],[30,[36,1],[[32,0,[\\\"width\\\"]]],null],[30,[36,1],[[32,0,[\\\"height\\\"]]],null],[30,[36,1],[[32,0,[\\\"otherStyles\\\"]]],null]]]],[30,[36,4],[[30,[36,3],[[32,6]],null]],[[\\\"dropdown\\\",\\\"hPosition\\\",\\\"renderInPlace\\\",\\\"preventScroll\\\",\\\"rootEventType\\\",\\\"vPosition\\\",\\\"destination\\\",\\\"top\\\",\\\"left\\\",\\\"right\\\",\\\"width\\\",\\\"height\\\",\\\"otherStyles\\\"],[[30,[36,1],[[32,0,[\\\"publicAPI\\\"]]],null],[30,[36,1],[[32,0,[\\\"hPosition\\\"]]],null],[30,[36,1],[[32,0,[\\\"renderInPlace\\\"]]],null],[30,[36,1],[[32,5]],null],[30,[36,2],[[32,4],\\\"click\\\"],null],[30,[36,1],[[32,0,[\\\"vPosition\\\"]]],null],[30,[36,1],[[32,0,[\\\"destination\\\"]]],null],[30,[36,1],[[32,0,[\\\"top\\\"]]],null],[30,[36,1],[[32,0,[\\\"left\\\"]]],null],[30,[36,1],[[32,0,[\\\"right\\\"]]],null],[30,[36,1],[[32,0,[\\\"width\\\"]]],null],[30,[36,1],[[32,0,[\\\"height\\\"]]],null],[30,[36,1],[[32,0,[\\\"otherStyles\\\"]]],null]]]]],null]]]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"renderInPlace\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[11,\\\"div\\\"],[24,0,\\\"ember-basic-dropdown\\\"],[17,3],[12],[18,2,[[32,1]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"    \\\"],[18,2,[[32,1]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"readonly\\\",\\\"or\\\",\\\"ensure-safe-component\\\",\\\"component\\\",\\\"eq\\\",\\\"hash\\\",\\\"with\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-basic-dropdown/templates/components/basic-dropdown.hbs\"\n    }\n  });\n\n  _exports.default = _default;\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.getScrollParent = getScrollParent;\n  _exports.default = _exports.calculateInPlacePosition = _exports.calculateWormholedPosition = void 0;\n\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 = {}; // Apply containers' offset\n\n    let anchorElement = destination.parentNode;\n    let anchorPosition = window.getComputedStyle(anchorElement).position;\n\n    while (anchorPosition !== 'relative' && anchorPosition !== 'absolute' && anchorElement.tagName.toUpperCase() !== 'BODY') {\n      anchorElement = anchorElement.parentNode;\n      anchorPosition = window.getComputedStyle(anchorElement).position;\n    }\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\n      if (offsetParent) {\n        triggerLeft -= offsetParent.scrollLeft;\n        triggerTop -= offsetParent.scrollTop;\n      }\n    } // Calculate drop down width\n\n\n    dropdownWidth = matchTriggerWidth ? triggerWidth : dropdownWidth;\n\n    if (matchTriggerWidth) {\n      style.width = dropdownWidth;\n    } // Calculate horizontal position\n\n\n    let triggerLeftWithScroll = triggerLeft + scroll.left;\n\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\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\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\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    } // Calculate vertical position\n\n\n    let triggerTopWithScroll = triggerTop;\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\n    let isBodyPositionRelative = window.getComputedStyle(document.body).getPropertyValue('position') === 'relative';\n\n    if (!isBodyPositionRelative) {\n      triggerTopWithScroll += scroll.top;\n    }\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\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\n      style.top = triggerTopWithScroll + (verticalPosition === 'below' ? triggerHeight : -dropdownHeight);\n    }\n\n    return {\n      horizontalPosition,\n      verticalPosition,\n      style\n    };\n  };\n\n  _exports.calculateWormholedPosition = calculateWormholedPosition;\n\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\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\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\n    return positionData;\n  };\n\n  _exports.calculateInPlacePosition = calculateInPlacePosition;\n\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\n    for (let parent = element; parent = parent.parentElement;) {\n      style = window.getComputedStyle(parent);\n\n      if (excludeStaticParent && style.position === \"static\") {\n        continue;\n      }\n\n      if (overflowRegex.test(style.overflow + style.overflowY + style.overflowX)) {\n        return parent;\n      }\n    }\n\n    return document.body;\n  }\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\n  var _default = calculatePosition;\n  _exports.default = _default;\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\n  function hasMoved(endEvent, moveEvent) {\n    var _endEvent$changedTouc;\n\n    if (!moveEvent) {\n      return false;\n    }\n\n    if (!((_endEvent$changedTouc = endEvent.changedTouches) !== null && _endEvent$changedTouc !== void 0 && _endEvent$changedTouc[0]) || moveEvent.changedTouches[0].touchType !== 'stylus') {\n      return true;\n    } // Distinguish stylus scroll and tap: if touch \"distance\" < 5px, we consider it a tap\n\n\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.getScrollDeltas = getScrollDeltas;\n  _exports.getScrollLineHeight = getScrollLineHeight;\n  _exports.getAvailableScroll = getAvailableScroll;\n  _exports.distributeScroll = distributeScroll;\n  _exports.LINES_PER_PAGE = _exports.DOM_DELTA_PAGE = _exports.DOM_DELTA_LINE = _exports.DOM_DELTA_PIXEL = void 0;\n\n  /**\n   * Mode that expresses the deltas in pixels.\n   */\n  const 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\n  _exports.DOM_DELTA_PIXEL = DOM_DELTA_PIXEL;\n  const 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\n  _exports.DOM_DELTA_LINE = DOM_DELTA_LINE;\n  const DOM_DELTA_PAGE = 2;\n  /**\n   * Number of lines per page considered for\n   * DOM_DELTA_PAGE.\n   *\n   */\n\n  _exports.DOM_DELTA_PAGE = DOM_DELTA_PAGE;\n  const LINES_PER_PAGE = 3;\n  _exports.LINES_PER_PAGE = LINES_PER_PAGE;\n  let scrollLineHeight = undefined;\n\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\n      const scrollLineHeight = getScrollLineHeight();\n\n      if (scrollLineHeight !== undefined) {\n        deltaX *= scrollLineHeight;\n        deltaY *= scrollLineHeight;\n      }\n    }\n\n    return {\n      deltaX,\n      deltaY\n    };\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\n    return scrollLineHeight;\n  }\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\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\n    return availableScroll;\n  }\n  /**\n   * Calculates the scroll distribution for `element` inside` container.\n   */\n\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\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\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\n    if (elementStyle.overflowY !== 'hidden') {\n      scrollInformation.scrollTop = element.scrollTop + deltaY;\n\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\n    if (element !== container && (deltaX || deltaY)) {\n      return calculateScrollDistribution(deltaX, deltaY, element.parentNode, container, accumulator.concat([scrollInformation]));\n    }\n\n    return accumulator.concat([scrollInformation]);\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\n\n  function distributeScroll(deltaX, deltaY, element, container) {\n    const scrollInfos = calculateScrollDistribution(deltaX, deltaY, element, container);\n    let info;\n\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-cli-app-version/initializer-factory\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = initializerFactory;\n  const {\n    libraries\n  } = Ember;\n\n  function initializerFactory(name, version) {\n    let registered = false;\n    return function () {\n      if (!registered && name && version) {\n        let appName = Ember.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.shaRegExp = _exports.versionExtendedRegExp = _exports.versionRegExp = void 0;\n  const versionRegExp = /\\d+[.]\\d+[.]\\d+/; // Match any number of 3 sections of digits separated by .\n\n  _exports.versionRegExp = versionRegExp;\n  const 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\n  _exports.versionExtendedRegExp = versionExtendedRegExp;\n  const 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\n  _exports.shaRegExp = shaRegExp;\n});","define(\"ember-cli-chart/components/ember-chart\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: \"canvas\",\n    attributeBindings: [\"width\", \"height\"],\n\n    init() {\n      this._super(...arguments);\n\n      this.plugins = this.plugins || [];\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\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\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this.chart.destroy();\n    },\n\n    didUpdateAttrs() {\n      this._super(...arguments);\n\n      this.updateChart();\n    },\n\n    updateChart() {\n      let chart = this.chart;\n      let data = this.data;\n      let options = this.options;\n      let animate = this.animate;\n\n      if (chart) {\n        chart.data = data;\n        chart.options = options;\n\n        if (animate) {\n          chart.update();\n        } else {\n          chart.update(0);\n        }\n\n        if (this.customLegendElement) {\n          this.customLegendElement.innerHTML = chart.generateLegend();\n        }\n      }\n    }\n\n  });\n\n  _exports.default = _default;\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});","define(\"ember-cli-mirage/association\", [\"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.association;\n    }\n  });\n});","define(\"ember-cli-mirage/db-collection\", [\"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._dbCollection;\n    }\n  });\n});","define(\"ember-cli-mirage/db\", [\"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._Db;\n    }\n  });\n});","define(\"ember-cli-mirage/ember-data\", [\"exports\", \"require\", \"ember-get-config\", \"ember-cli-mirage/assert\", \"ember-cli-mirage/utils/ember-data\", \"ember-cli-mirage\", \"ember-cli-mirage/serializers/ember-data-serializer\", \"ember-cli-mirage/utils/inflector\"], function (_exports, _require, _emberGetConfig, _assert, _emberData, _emberCliMirage, _emberDataSerializer, _inflector) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getDsModels = getDsModels;\n  _exports.discoverEmberDataModels = discoverEmberDataModels;\n  _exports.modelFor = modelFor;\n  _exports.getDsSerializers = getDsSerializers;\n  _exports.applyEmberDataSerializers = applyEmberDataSerializers;\n\n  /* global requirejs */\n  const {\n    modulePrefix,\n    podModulePrefix\n  } = _emberGetConfig.default; // Caches\n\n  let DsModels, Models;\n  let DsSerializers, Serializers;\n  /**\n   * Get all ember data models under the app's namespaces\n   *\n   * @method getDsModels\n   * @private\n   * @hide\n   * @return {Object} models\n   */\n\n  function getDsModels() {\n    if (DsModels) {\n      return DsModels;\n    }\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\n    if (!_emberData.hasEmberData) {\n      return DsModels;\n    }\n\n    Object.keys(moduleMap).forEach(path => {\n      let matches = path.match(classicModelMatchRegex) || path.match(podModelMatchRegex);\n\n      if (matches && matches[1]) {\n        let modelName = matches[1];\n        let model = (0, _require.default)(path, null, null, true).default;\n\n        if ((0, _emberData.isDsModel)(model)) {\n          DsModels[modelName] = model;\n        }\n      }\n    });\n    return DsModels;\n  }\n  /**\n   * Get all mirage models for each of the ember-data models\n   *\n   * @method discoverEmberDataModels\n   * @return {Object} models\n   */\n\n\n  function discoverEmberDataModels() {\n    if (Models) {\n      return Models;\n    }\n\n    let emberDataModels = getDsModels();\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, _emberCliMirage.belongsTo)(r.type, r.options);\n        } else if (r.kind === 'hasMany') {\n          attrs[name] = (0, _emberCliMirage.hasMany)(r.type, r.options);\n        }\n      });\n      Models[modelName] = _emberCliMirage.Model.extend(attrs);\n    });\n    return Models;\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\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   * Get all ember data serializers under the app's namespaces\n   *\n   * @method getDsSerializers\n   * @private\n   * @hide\n   * @return {Object} serializers\n   */\n\n\n  function getDsSerializers() {\n    if (DsSerializers) {\n      return DsSerializers;\n    }\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\n    if (!_emberData.hasEmberData) {\n      return DsSerializers;\n    }\n\n    Object.keys(moduleMap).forEach(path => {\n      let matches = path.match(classicSerializerMatchRegex) || path.match(podSerializerMatchRegex);\n\n      if (matches && matches[1]) {\n        let serializerName = matches[1];\n        let serializer = (0, _require.default)(path, null, null, true).default; // in mirage, registering models takes care of camelize, serializers do not\n\n        DsSerializers[(0, _inflector.camelize)(serializerName)] = serializer;\n      }\n    });\n    return DsSerializers;\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\n\n  function applyEmberDataSerializers(mirageSerializers = {}) {\n    if (Serializers) {\n      return Serializers;\n    }\n\n    let emberDataSerializers = getDsSerializers(); // Start off with the mirage serializers,\n    // so if there are any mirage serializers with no ED counterpart, they are in the list\n\n    Serializers = mirageSerializers;\n    Object.keys(emberDataSerializers).forEach(serializerName => {\n      let dsSerializer = emberDataSerializers[serializerName]; // Seems I have to create it to get access to some of the properties\n\n      dsSerializer = dsSerializer.create ? dsSerializer.create() : new dsSerializer();\n      let transforms;\n      let primaryKey = dsSerializer.primaryKey;\n      let attrs = dsSerializer.attrs;\n\n      if (primaryKey || attrs) {\n        let Serializer = mirageSerializers[serializerName] || mirageSerializers.application || _emberDataSerializer.default;\n\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\n            if (transform.serialize !== undefined) {\n              resolvedTransform.deserialize = transform.serialize;\n            }\n\n            if (transform.deserialize !== undefined) {\n              resolvedTransform.serialize = transform.deserialize;\n            }\n\n            transforms[key] = Object.assign(resolvedTransform, serializerTransform);\n          });\n        }\n\n        Serializers[serializerName] = Serializer.extend({\n          primaryKey,\n          transforms\n        });\n      }\n    });\n    return Serializers;\n  }\n});","define(\"ember-cli-mirage/factory\", [\"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.Factory;\n    }\n  });\n});","define(\"ember-cli-mirage/get-rfc232-test-context\", [\"exports\", \"require\"], function (_exports, _require) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getRfc232TestContext;\n\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 (_require.default.has('@ember/test-helpers')) {\n      let {\n        getContext\n      } = (0, _require.default)(\"@ember/test-helpers\");\n      return getContext();\n    }\n  }\n});","define(\"ember-cli-mirage/identity-manager\", [\"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.IdentityManager;\n    }\n  });\n});","define(\"ember-cli-mirage/index\", [\"exports\", \"miragejs\", \"ember-cli-mirage/ember-data\", \"ember-cli-mirage/serializers/ember-data-serializer\"], function (_exports, _miragejs, _emberData, _emberDataSerializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  var _exportNames = {\n    discoverEmberDataModels: true,\n    applyEmberDataSerializers: true,\n    EmberDataSerializer: true\n  };\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _miragejs.default;\n    }\n  });\n  Object.defineProperty(_exports, \"discoverEmberDataModels\", {\n    enumerable: true,\n    get: function () {\n      return _emberData.discoverEmberDataModels;\n    }\n  });\n  Object.defineProperty(_exports, \"applyEmberDataSerializers\", {\n    enumerable: true,\n    get: function () {\n      return _emberData.applyEmberDataSerializers;\n    }\n  });\n  Object.defineProperty(_exports, \"EmberDataSerializer\", {\n    enumerable: true,\n    get: function () {\n      return _emberDataSerializer.default;\n    }\n  });\n  Object.keys(_miragejs).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] === _miragejs[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _miragejs[key];\n      }\n    });\n  });\n});","define(\"ember-cli-mirage/instance-initializers/ember-cli-mirage-autostart\", [\"exports\", \"ember-cli-mirage/get-rfc232-test-context\", \"ember-cli-mirage/start-mirage\"], function (_exports, _getRfc232TestContext, _startMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n  // An object we can register with the container to ensure that mirage is shut\n  // down when the application is destroyed\n  const MirageShutdown = Ember.Object.extend({\n    testContext: null,\n\n    willDestroy() {\n      let testContext = this.get('testContext');\n      testContext.server.shutdown();\n      delete testContext.server;\n    }\n\n  });\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\n  function initialize(appInstance) {\n    let testContext = (0, _getRfc232TestContext.default)();\n\n    if (testContext) {\n      let {\n        'ember-cli-mirage': {\n          autostart\n        } = {}\n      } = appInstance.resolveRegistration('config:environment');\n\n      if (autostart) {\n        let server = (0, _startMirage.default)(appInstance);\n        testContext.server = server; // To ensure that the server is shut down when the application is\n        // destroyed, register and create a singleton object that shuts the server\n        // down in its willDestroy() hook.\n\n        appInstance.register('mirage:shutdown', MirageShutdown);\n        let shutdown = appInstance.lookup('mirage:shutdown');\n        shutdown.set('testContext', testContext);\n      }\n    }\n  }\n\n  var _default = {\n    initialize\n  };\n  _exports.default = _default;\n});","define(\"ember-cli-mirage/orm/associations/association\", [\"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._ormAssociationsAssociation;\n    }\n  });\n});","define(\"ember-cli-mirage/orm/associations/belongs-to\", [\"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._ormAssociationsBelongsTo;\n    }\n  });\n});","define(\"ember-cli-mirage/orm/associations/has-many\", [\"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._ormAssociationsHasMany;\n    }\n  });\n});","define(\"ember-cli-mirage/orm/collection\", [\"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.Collection;\n    }\n  });\n});","define(\"ember-cli-mirage/orm/model\", [\"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.Model;\n    }\n  });\n});","define(\"ember-cli-mirage/orm/polymorphic-collection\", [\"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._ormPolymorphicCollection;\n    }\n  });\n});","define(\"ember-cli-mirage/orm/schema\", [\"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._ormSchema;\n    }\n  });\n});","define(\"ember-cli-mirage/response\", [\"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.Response;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handler\", [\"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._RouteHandler;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handlers/base\", [\"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._routeHandlersBase;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handlers/function\", [\"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._routeHandlersFunction;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handlers/object\", [\"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._routeHandlersObject;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handlers/shorthands/base\", [\"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._routeHandlersShorthandsBase;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handlers/shorthands/delete\", [\"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._routeHandlersShorthandsDelete;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handlers/shorthands/get\", [\"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._routeHandlersShorthandsGet;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handlers/shorthands/head\", [\"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._routeHandlersShorthandsHead;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handlers/shorthands/post\", [\"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._routeHandlersShorthandsPost;\n    }\n  });\n});","define(\"ember-cli-mirage/route-handlers/shorthands/put\", [\"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._routeHandlersShorthandsPut;\n    }\n  });\n});","define(\"ember-cli-mirage/serializer-registry\", [\"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._SerializerRegistry;\n    }\n  });\n});","define(\"ember-cli-mirage/serializer\", [\"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.Serializer;\n    }\n  });\n});","define(\"ember-cli-mirage/serializers/active-model-serializer\", [\"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.ActiveModelSerializer;\n    }\n  });\n});","define(\"ember-cli-mirage/serializers/ember-data-serializer\", [\"exports\", \"miragejs\", \"lodash-es\"], function (_exports, _miragejs, _lodashEs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\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    /**\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\n    // These are the defaults\n    // include: []\n    keyForId() {\n      return this.primaryKey;\n    },\n\n    getKeysForIncluded() {\n      return (0, _lodashEs.isFunction)(this.include) ? this.include(this.request, this.primaryResource) : this.include;\n    },\n\n    getTransforms() {\n      return this.transforms || {};\n    },\n\n    getResolvedTransforms() {\n      if (!this._resolvedTransforms) {\n        this._resolvedTransforms = {\n          serialize: {},\n          normalize: {}\n        };\n      }\n\n      return this._resolvedTransforms;\n    },\n\n    getTransformForSerialize(key) {\n      let resolvedTransforms = this.getResolvedTransforms();\n      let transforms = this.getTransforms();\n\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\n      return resolvedTransforms.serialize[key];\n    },\n\n    getTransformForNormalize(key) {\n      let resolvedTransforms = this.getResolvedTransforms();\n\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\n      return resolvedTransforms.normalize[key];\n    },\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\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\n        if (transform.serialize) {\n          let associatedResource = model[key];\n          let serializeOption = transform.serialize;\n\n          if (associatedResource && Ember.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\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\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\n    _keyForProperty(attr) {\n      let transform = this.getTransformForSerialize(attr);\n      return transform.key;\n    },\n\n    keyForAttribute(attr) {\n      if (attr === \"id\") {\n        return this.keyForId();\n      }\n\n      return this._keyForProperty(attr) || _miragejs.RestSerializer.prototype.keyForAttribute.apply(this, arguments);\n    },\n\n    keyForRelationship(type) {\n      return this._keyForProperty(type) || _miragejs.RestSerializer.prototype.keyForRelationship.apply(this, arguments);\n    },\n\n    keyForEmbeddedRelationship(attributeName) {\n      return this._keyForProperty(attributeName) || _miragejs.RestSerializer.prototype.keyForEmbeddedRelationship.apply(this, arguments);\n    },\n\n    keyForRelationshipIds(type) {\n      return this._keyForProperty(type) || _miragejs.RestSerializer.prototype.keyForRelationshipIds.apply(this, arguments);\n    },\n\n    keyForForeignKey(relationshipName) {\n      return this._keyForProperty(relationshipName) || _miragejs.RestSerializer.prototype.keyForForeignKey.apply(this, arguments);\n    },\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\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\n      if (attrs[this.primaryKey]) {\n        jsonApiPayload.data.id = attrs[this.primaryKey];\n      }\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\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\n      if (Object.keys(relationships).length) {\n        jsonApiPayload.data.relationships = relationships;\n      }\n\n      return jsonApiPayload;\n    }\n\n  });\n\n  var _default = EmberDataSerializer;\n  _exports.default = _default;\n});","define(\"ember-cli-mirage/serializers/json-api-serializer\", [\"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.JSONAPISerializer;\n    }\n  });\n});","define(\"ember-cli-mirage/serializers/rest-serializer\", [\"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.ActiveModelSerializer;\n    }\n  });\n});","define(\"ember-cli-mirage/server\", [\"exports\", \"miragejs\", \"ember-cli-mirage/ember-data\", \"ember-cli-mirage/utils/ember-data\"], function (_exports, _miragejs, _emberData, _emberData2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"defaultPassthroughs\", {\n    enumerable: true,\n    get: function () {\n      return _miragejs.defaultPassthroughs;\n    }\n  });\n  _exports.default = void 0;\n\n  /**\n    @hide\n  */\n  class EmberServer extends _miragejs.Server {\n    constructor(options) {\n      // Merge models from autogenerated Ember Data models with user defined models\n      if (_emberData2.hasEmberData && options.discoverEmberDataModels) {\n        options.models = Object.assign({}, (0, _emberData.discoverEmberDataModels)(), options.models);\n      }\n\n      super(options);\n\n      if (typeof location !== 'undefined' && location.search.indexOf('mirageLogging') !== -1) {\n        this.logging = true;\n      }\n    }\n\n  }\n\n  _exports.default = EmberServer;\n});","define(\"ember-cli-mirage/start-mirage\", [\"exports\", \"ember-cli-mirage/utils/read-modules\", \"ember-cli-mirage/server\", \"ember-inflector\"], function (_exports, _readModules, _server, _emberInflector) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = startMirage;\n\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. In legacy tests that call `startMirage` directly, this\n    should be called via the `startMirage` method exported from\n    `<app>/initializers/ember-cli-mirage`.\n  \n    This is intended to be called with only the `owner` argument (which would be\n    `this.owner` in an rfc232/rfc268 test, or the application instance if called\n    from an instance initializer). However, to support the legacy initializer, it\n    can instead accept a hash of the environment and config objects.\n  \n    @hide\n  */\n  function startMirage(owner, {\n    env,\n    baseConfig,\n    testConfig,\n    makeServer\n  } = {}) {\n    if (!env || !baseConfig) {\n      if (!owner) {\n        throw new Error('You must pass `owner` to startMirage()');\n      }\n\n      env = env || resolveRegistration(owner, 'config:environment'); // These are set from `<app>/initializers/ember-cli-mirage`\n\n      baseConfig = baseConfig || resolveRegistration(owner, 'mirage:base-config');\n      testConfig = testConfig || resolveRegistration(owner, 'mirage:test-config');\n      makeServer = makeServer || resolveRegistration(owner, 'mirage:make-server');\n    }\n\n    let environment = env.environment;\n    let mirageEnvironment = env['ember-cli-mirage'] || {};\n    let discoverEmberDataModels = mirageEnvironment.discoverEmberDataModels;\n\n    if (discoverEmberDataModels === undefined) {\n      discoverEmberDataModels = true;\n    }\n\n    let modules = (0, _readModules.default)(env.modulePrefix);\n    let options = Object.assign(modules, {\n      environment,\n      routes: baseConfig,\n      testConfig,\n      discoverEmberDataModels\n    });\n    options.trackRequests = mirageEnvironment.trackRequests;\n    options.inflector = {\n      singularize: _emberInflector.singularize,\n      pluralize: _emberInflector.pluralize\n    };\n    let server;\n\n    if (makeServer) {\n      server = makeServer(options);\n\n      if (typeof location !== 'undefined' && location.search.indexOf('mirageLogging') !== -1) {\n        server.logging = true;\n      }\n    } else {\n      server = new _server.default(options);\n    }\n\n    return server;\n  } // Support Ember 1.13\n\n\n  function resolveRegistration(owner, ...args) {\n    if (owner.resolveRegistration) {\n      return owner.resolveRegistration(...args);\n    } else if (owner.__container__) {\n      return owner.__container__.lookupFactory(...args);\n    } else {\n      return owner.container.lookupFactory(...args);\n    }\n  }\n});","define(\"ember-cli-mirage/trait\", [\"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.trait;\n    }\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.isDsModel = isDsModel;\n  _exports.hasEmberData = void 0;\n\n  /* global requirejs */\n  function _hasEmberData() {\n    let matchRegex1 = /^ember-data/i;\n    let matchRegex2 = /^@ember-data/i;\n    return !!Object.keys(requirejs.entries).find(e => !!e.match(matchRegex2) || !!e.match(matchRegex1));\n  }\n  /**\n    @hide\n  */\n\n\n  const hasEmberData = _hasEmberData();\n  /**\n    @hide\n  */\n\n\n  _exports.hasEmberData = hasEmberData;\n\n  function isDsModel(m) {\n    return m && typeof m.eachRelationship === 'function';\n  }\n});","define(\"ember-cli-mirage/utils/extend\", [\"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._utilsExtend;\n    }\n  });\n});","define(\"ember-cli-mirage/utils/inflector\", [\"exports\", \"miragejs\", \"ember-inflector\"], function (_exports, _miragejs, _emberInflector) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"camelize\", {\n    enumerable: true,\n    get: function () {\n      return _miragejs._utilsInflectorCamelize;\n    }\n  });\n  Object.defineProperty(_exports, \"dasherize\", {\n    enumerable: true,\n    get: function () {\n      return _miragejs._utilsInflectorDasherize;\n    }\n  });\n  Object.defineProperty(_exports, \"underscore\", {\n    enumerable: true,\n    get: function () {\n      return _miragejs._utilsInflectorUnderscore;\n    }\n  });\n  Object.defineProperty(_exports, \"capitalize\", {\n    enumerable: true,\n    get: function () {\n      return _miragejs._utilsInflectorCapitalize;\n    }\n  });\n  Object.defineProperty(_exports, \"singularize\", {\n    enumerable: true,\n    get: function () {\n      return _emberInflector.singularize;\n    }\n  });\n  Object.defineProperty(_exports, \"pluralize\", {\n    enumerable: true,\n    get: function () {\n      return _emberInflector.pluralize;\n    }\n  });\n});","define(\"ember-cli-mirage/utils/is-association\", [\"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._utilsIsAssociation;\n    }\n  });\n});","define(\"ember-cli-mirage/utils/read-modules\", [\"exports\", \"ember-cli-mirage/assert\", \"ember-cli-mirage/utils/inflector\", \"require\"], function (_exports, _assert, _inflector, _require) {\n  /* global requirejs */\n\n  /* eslint-env node */\n  'use strict';\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\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, _inflector.camelize)(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\n      let moduleParts = moduleName.split('/');\n      let moduleTypeIndex = moduleParts.indexOf('mirage') + 1;\n      let moduleType = (0, _inflector.camelize)(moduleParts[moduleTypeIndex]);\n      let moduleKey = moduleParts.slice([moduleTypeIndex + 1]).join('/');\n\n      if (moduleType === 'scenario') {\n        (0, _assert.default)('Only scenario/default.js is supported at this time.', moduleKey !== 'default');\n      }\n      /*\n        Ensure fixture keys are pluralized\n      */\n\n\n      if (moduleType === 'fixtures') {\n        moduleKey = (0, _inflector.pluralize)(moduleKey);\n      }\n\n      let module = (0, _require.default)(moduleName, null, null, true);\n\n      if (!module) {\n        throw new Error(`${moduleName} must export a ${moduleType}`);\n      }\n\n      let data = module.default;\n      modulesMap[moduleType][(0, _inflector.camelize)(moduleKey)] = data;\n    });\n    return modulesMap;\n  }\n});","define(\"ember-cli-mirage/utils/reference-sort\", [\"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._utilsReferenceSort;\n    }\n  });\n});","define(\"ember-cli-mirage/utils/uuid\", [\"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._utilsUuid;\n    }\n  });\n});","define(\"ember-cli-string-helpers/-private/create-string-helper\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(stringFunction) {\n    return function ([string]) {\n      if (Ember.String.isHTMLSafe(string)) {\n        string = string.string;\n      }\n\n      string = string || '';\n      return stringFunction(string);\n    };\n  }\n});","define(\"ember-cli-string-helpers/helpers/camelize\", [\"exports\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.camelize = void 0;\n  const camelize = (0, _createStringHelper.default)(Ember.String.camelize);\n  _exports.camelize = camelize;\n\n  var _default = Ember.Helper.helper(camelize);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/capitalize\", [\"exports\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.capitalize = void 0;\n  const capitalize = (0, _createStringHelper.default)(Ember.String.capitalize);\n  _exports.capitalize = capitalize;\n\n  var _default = Ember.Helper.helper(capitalize);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/classify\", [\"exports\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.classify = void 0;\n  const classify = (0, _createStringHelper.default)(Ember.String.classify);\n  _exports.classify = classify;\n\n  var _default = Ember.Helper.helper(classify);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/dasherize\", [\"exports\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.dasherize = void 0;\n  const dasherize = (0, _createStringHelper.default)(Ember.String.dasherize);\n  _exports.dasherize = dasherize;\n\n  var _default = Ember.Helper.helper(dasherize);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/html-safe\", [\"exports\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.htmlSafe = void 0;\n  const htmlSafe = (0, _createStringHelper.default)(Ember.String.htmlSafe);\n  _exports.htmlSafe = htmlSafe;\n\n  var _default = Ember.Helper.helper(htmlSafe);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/humanize\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.humanize = humanize;\n  _exports.default = void 0;\n  const regex = /_+|-+/g;\n  const replacement = ' '; // The substituted value will be contained in the result variable\n\n  function humanize([string]) {\n    if (Ember.String.isHTMLSafe(string)) {\n      string = string.string;\n    }\n\n    if (string === undefined || string === null) {\n      return '';\n    }\n\n    let result = string.toLowerCase().replace(regex, replacement);\n    return result.charAt(0).toUpperCase() + result.slice(1);\n  }\n\n  var _default = Ember.Helper.helper(humanize);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/lowercase\", [\"exports\", \"ember-cli-string-helpers/utils/lowercase\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _lowercase, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.lowercase = void 0;\n  const lowercase = (0, _createStringHelper.default)(_lowercase.default);\n  _exports.lowercase = lowercase;\n\n  var _default = Ember.Helper.helper(lowercase);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/titleize\", [\"exports\", \"ember-cli-string-helpers/utils/titleize\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _titleize, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.titleize = void 0;\n  const titleize = (0, _createStringHelper.default)(_titleize.default);\n  _exports.titleize = titleize;\n\n  var _default = Ember.Helper.helper(titleize);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/trim\", [\"exports\", \"ember-cli-string-helpers/utils/trim\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _trim, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.trim = void 0;\n  const trim = (0, _createStringHelper.default)(_trim.default);\n  _exports.trim = trim;\n\n  var _default = Ember.Helper.helper(trim);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/truncate\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.truncate = truncate;\n  _exports.default = void 0;\n\n  function truncate([string, characterLimit = 140, useEllipsis = true]) {\n    let limit = useEllipsis ? characterLimit - 3 : characterLimit;\n\n    if (Ember.String.isHTMLSafe(string)) {\n      string = string.string;\n    }\n\n    if (string && string.length > limit) {\n      return useEllipsis ? `${string.substring(0, limit)}...` : string.substring(0, limit);\n    } else {\n      return string;\n    }\n  }\n\n  var _default = Ember.Helper.helper(truncate);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/underscore\", [\"exports\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.underscore = void 0;\n  const underscore = (0, _createStringHelper.default)(Ember.String.underscore);\n  _exports.underscore = underscore;\n\n  var _default = Ember.Helper.helper(underscore);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/uppercase\", [\"exports\", \"ember-cli-string-helpers/utils/uppercase\", \"ember-cli-string-helpers/-private/create-string-helper\"], function (_exports, _uppercase, _createStringHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.uppercase = void 0;\n  const uppercase = (0, _createStringHelper.default)(_uppercase.default);\n  _exports.uppercase = uppercase;\n\n  var _default = Ember.Helper.helper(uppercase);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/helpers/w\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.w = w;\n  _exports.default = void 0;\n\n  function w([...wordStrings]) {\n    return wordStrings.map(Ember.String.w).reduce((words, moreWords) => {\n      return words.concat(moreWords);\n    }, []);\n  }\n\n  var _default = Ember.Helper.helper(w);\n\n  _exports.default = _default;\n});","define(\"ember-cli-string-helpers/utils/lowercase\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = lowercase;\n\n  function lowercase(string = '') {\n    if (typeof string !== 'string') {\n      throw new TypeError(`Expected a string, got a ${typeof string}`);\n    }\n\n    return string.toLowerCase();\n  }\n});","define(\"ember-cli-string-helpers/utils/titleize\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = titleize;\n\n  function titleize(string = '') {\n    if (typeof string !== 'string') {\n      throw new TypeError(`Expected a string, got a ${typeof string}`);\n    }\n\n    return string.toLowerCase().replace(/(?:^|\\s|-|\\/)\\S/g, function (m) {\n      return m.toUpperCase();\n    });\n  }\n});","define(\"ember-cli-string-helpers/utils/trim\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = trim;\n\n  function trim(string = '') {\n    if (typeof string !== 'string') {\n      throw new TypeError(`Expected a string, got a ${typeof string}`);\n    }\n\n    return string.trim();\n  }\n});","define(\"ember-cli-string-helpers/utils/uppercase\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = uppercase;\n\n  function uppercase(string = '') {\n    if (typeof string !== 'string') {\n      throw new TypeError(`Expected a string, got a ${typeof string}`);\n    }\n\n    return string.toUpperCase();\n  }\n});","define(\"ember-cognito/authenticators/cognito\", [\"exports\", \"ember-simple-auth/authenticators/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let CognitoAuthenticator = (_dec = Ember.inject.service, _dec2 = Ember.computed.readOnly('cognito.auth'), _dec3 = Ember.computed.readOnly('cognito.poolId'), _dec4 = Ember.computed.readOnly('cognito.clientId'), _dec5 = Ember.computed.readOnly('cognito.authenticationFlowType'), (_class = class CognitoAuthenticator extends _base.default {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"cognito\", _descriptor, this);\n\n      _initializerDefineProperty(this, \"auth\", _descriptor2, this);\n\n      _initializerDefineProperty(this, \"poolId\", _descriptor3, this);\n\n      _initializerDefineProperty(this, \"clientId\", _descriptor4, this);\n\n      _initializerDefineProperty(this, \"authenticationFlowType\", _descriptor5, this);\n    }\n\n    async restore({\n      poolId,\n      clientId\n    }) {\n      this.cognito.configure({\n        userPoolId: poolId,\n        userPoolWebClientId: clientId\n      });\n      const user = await this.auth.currentAuthenticatedUser();\n      return this._resolveAuth(user);\n    }\n\n    _makeAuthData(user, session) {\n      return {\n        poolId: user.pool.getUserPoolId(),\n        clientId: user.pool.getClientId(),\n        access_token: session.getIdToken().getJwtToken()\n      };\n    }\n\n    async _resolveAuth(user) {\n      const {\n        cognito\n      } = this;\n\n      cognito._setUser(user); // Now pull out the (promisified) user\n\n\n      const session = await cognito.user.getSession();\n      cognito.startRefreshTask(session);\n      return this._makeAuthData(user, session);\n    }\n\n    _handleSignIn(user) {\n      // console.log(user);\n      if (user.challengeName) {\n        // This is mainly for backward compat\n        if (user.challengeName === 'NEW_PASSWORD_REQUIRED') {\n          throw {\n            state: {\n              name: 'newPasswordRequired',\n              user\n            }\n          };\n        } else {\n          throw {\n            state: {\n              name: user.challengeName,\n              user\n            }\n          };\n        }\n      } else {\n        return this._resolveAuth(user);\n      }\n    }\n\n    async _handleNewPasswordRequired({\n      password,\n      state: {\n        user\n      }\n    }) {\n      const user2 = await this.auth.completeNewPassword(user, password);\n      return this._handleSignIn(user2);\n    }\n\n    async _handleRefresh() {\n      const {\n        cognito\n      } = this;\n      const {\n        auth,\n        user\n      } = cognito; // Get the session, which will refresh it if necessary\n\n      const session = await user.getSession();\n\n      if (session.isValid()) {\n        cognito.startRefreshTask(session);\n        const awsUser = await auth.currentAuthenticatedUser();\n        return this._makeAuthData(awsUser, session);\n      } else {\n        throw new Error('session is invalid');\n      }\n    }\n\n    _handleState(name, params) {\n      if (name === 'refresh') {\n        return this._handleRefresh();\n      } else if (name === 'newPasswordRequired') {\n        return this._handleNewPasswordRequired(params);\n      } else {\n        throw new Error('invalid state');\n      }\n    }\n\n    async authenticate(params) {\n      const {\n        username,\n        password,\n        state\n      } = params;\n\n      if (state) {\n        return this._handleState(state.name, params);\n      }\n\n      const {\n        auth,\n        authenticationFlowType,\n        cognito\n      } = this;\n      cognito.configure({\n        authenticationFlowType\n      });\n      const user = await auth.signIn(username, password);\n      return this._handleSignIn(user);\n    }\n\n    async invalidate(data) {\n      await this.cognito.user.signOut();\n      this.set('cognito.user', undefined);\n      return data;\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"cognito\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"auth\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"poolId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"clientId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"authenticationFlowType\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class));\n  _exports.default = CognitoAuthenticator;\n});","define(\"ember-cognito/services/cognito\", [\"exports\", \"ember-cognito/utils/cognito-user\", \"ember-cognito/utils/utils\", \"@aws-amplify/auth\"], function (_exports, _cognitoUser, _utils, _auth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _class, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  /**\n   * @public\n   * This is a container for easily accessing the logged-in CognitoUser object,\n   * as well as creating others using signUp().\n   */\n  let CognitoService = (_dec = Ember.inject.service, (_class = class CognitoService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n\n      _defineProperty(this, \"auth\", _auth.default);\n    }\n\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.stopRefreshTask();\n    }\n    /**\n     * Configures the Amplify library with the pool & client IDs, and any additional\n     * configuration.\n     * @param awsconfig Extra AWS configuration.\n     */\n\n\n    configure(awsconfig) {\n      const {\n        poolId,\n        clientId\n      } = this;\n      const params = Object.assign({\n        userPoolId: poolId,\n        userPoolWebClientId: clientId\n      }, awsconfig);\n      this.auth.configure(params);\n    }\n    /**\n     * Method for signing up a user.\n     *\n     * @param username User's username\n     * @param password Plain-text initial password entered by user.\n     * @param attributes New user attributes.\n     * @param validationData Application metadata.\n     */\n\n\n    async signUp(username, password, attributes, validationData) {\n      this.configure();\n      const result = await this.auth.signUp({\n        username,\n        password,\n        attributes: (0, _utils.normalizeAttributes)(attributes),\n        validationData\n      }); // Replace the user with a wrapped user.\n\n      result.user = this._setUser(result.user);\n      return result;\n    }\n    /**\n     * Confirm signup for user.\n     * @param username User's username.\n     * @param code The confirmation code.\n     * @returns {Promise<any>}\n     */\n\n\n    confirmSignUp(username, code, options) {\n      this.configure();\n      return this.auth.confirmSignUp(username, code, options);\n    }\n    /**\n     * Resends the sign up code.\n     * @param username User's username.\n     * @returns {*|Promise<string>}\n     */\n\n\n    resendSignUp(username) {\n      this.configure();\n      return this.auth.resendSignUp(username);\n    }\n    /**\n     * Sends a user a code to reset their password.\n     * @param username\n     * @returns {*|Promise<any>|RSVP.Promise|void}\n     */\n\n\n    forgotPassword(username) {\n      this.configure();\n      return this.auth.forgotPassword(username);\n    }\n    /**\n     * Submits a new password.\n     * @param username User's username.\n     * @param code The verification code sent by forgotPassword.\n     * @param newPassword The user's new password.\n     * @returns {*|Promise<void>|void}\n     */\n\n\n    forgotPasswordSubmit(username, code, newPassword) {\n      this.configure();\n      return this.auth.forgotPasswordSubmit(username, code, newPassword);\n    }\n    /**\n     * Enable the token refresh timer.\n     */\n\n\n    startRefreshTask(session) {\n      if (!this.autoRefreshSession) {\n        return;\n      } // Schedule a task for just past when the token expires.\n\n\n      const now = Math.floor(new Date() / 1000);\n      const exp = session.getIdToken().getExpiration();\n      const adjusted = now - session.getClockDrift();\n      const duration = (exp - adjusted) * 1000 + 100;\n      this.set('_taskDuration', duration);\n      this.set('task', Ember.run.later(this, 'refreshSession', duration));\n    }\n    /**\n     * Disable the token refresh timer.\n     */\n\n\n    stopRefreshTask() {\n      Ember.run.cancel(this.task);\n      this.set('task', undefined);\n      this.set('_taskDuration', undefined);\n    }\n\n    refreshSession() {\n      let user = this.user;\n\n      if (user) {\n        return this.session.authenticate('authenticator:cognito', {\n          state: {\n            name: 'refresh'\n          }\n        });\n      }\n    }\n    /**\n     * A helper that resolves to the logged in user's id token.\n     */\n\n\n    async getIdToken() {\n      const user = this.user;\n\n      if (user) {\n        const session = await user.getSession();\n        return session.getIdToken().getJwtToken();\n      } else {\n        return Ember.RSVP.reject('user not authenticated');\n      }\n    }\n\n    _setUser(awsUser) {\n      // Creates and sets the Cognito user.\n      const user = _cognitoUser.default.create({\n        auth: this.auth,\n        user: awsUser\n      });\n\n      this.set('user', user);\n      return user;\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class));\n  _exports.default = CognitoService;\n});","define(\"ember-cognito/utils/cognito-storage\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * @private\n   * CognitoStorage is used to wrap the Cognito SDK's use of local storage.\n   * Rather than directly writing to localStorage, this is captured in memory and then\n   * persisted in ember-simple-auth's \"authenticated\" data.\n   * Effectively, this is a wrapper to ember-simple-auth's authenticated data designed\n   * to look like window.localStorage\n   * It's also based on https://github.com/aws/amazon-cognito-identity-js/blob/master/src/StorageHelper.js\n   * but converted to be a true non-static object.\n   */\n  class CognitoStorage {\n    constructor(data = {}) {\n      (true && !(false) && Ember.deprecate('The CognitoStorage object has been deprecated.', false, {\n        id: 'ember-cognito-storage',\n        until: '1.0'\n      }));\n      this.data = data;\n    }\n\n    getData() {\n      return this.data;\n    }\n    /**\n     * @public\n     * This is used to set a specific item in storage\n     * @param {string} key - the key for the item\n     * @param {object} value - the value\n     * @returns {string} value that was set\n     */\n\n\n    setItem(key, value) {\n      this.data[key] = value;\n      return this.data[key];\n    }\n    /**\n     * @public\n     * This is used to get a specific key from storage\n     * @param {string} key - the key for the item\n     * This is used to clear the storage\n     * @returns {string} the data item\n     */\n\n\n    getItem(key) {\n      return Object.prototype.hasOwnProperty.call(this.data, key) ? this.data[key] : undefined;\n    }\n    /**\n     * @public\n     * This is used to remove an item from storage\n     * @param {string} key - the key being set\n     * @returns {string} value - value that was deleted\n     */\n\n\n    removeItem(key) {\n      let value = this.data[key];\n      delete this.data[key];\n      return value;\n    }\n    /**\n     * @public\n     * This is used to clear the storage\n     * @returns {string} nothing\n     */\n\n\n    clear() {\n      this.data = {};\n      return this.data;\n    }\n\n  }\n\n  _exports.default = CognitoStorage;\n});","define(\"ember-cognito/utils/cognito-user\", [\"exports\", \"ember-cognito/utils/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _class, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\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\n  //\n  // Wraps an AWS CognitoUser.\n  //\n  let CognitoUser = (_dec = Ember.computed('user'), _dec2 = Ember.computed.readOnly('user.attributes'), (_class = class CognitoUser extends Ember.Object {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"attributes\", _descriptor, this);\n    }\n\n    get username() {\n      return this.user.getUsername();\n    }\n\n    _callback(method, ...args) {\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        try {\n          this.user[method](...args, (err, result) => {\n            if (err) {\n              reject(err);\n            } else {\n              resolve(result);\n            }\n          });\n        } catch (error) {\n          reject(error);\n        }\n      }, `cognito-user#${method}`);\n    }\n\n    changePassword(oldPassword, newPassword) {\n      const {\n        auth,\n        user\n      } = this;\n      return auth.changePassword(user, oldPassword, newPassword);\n    }\n\n    confirmPassword(verificationCode, newPassword) {\n      (true && !(false) && Ember.deprecate('This functionality has moved to forgotPasswordSubmit() on the Cognito service.', false, {\n        id: 'ember-cognito-confirm-password',\n        until: '1.0'\n      }));\n      const {\n        auth,\n        username\n      } = this;\n      return auth.forgotPasswordSubmit(username, verificationCode, newPassword);\n    }\n\n    confirmRegistration(confirmationCode, forceAliasCreation) {\n      (true && !(false) && Ember.deprecate('This functionality has moved to confirmSignUp() on the Cognito service.', false, {\n        id: 'ember-cognito-confirm-registration',\n        until: '1.0'\n      }));\n      const {\n        auth,\n        username\n      } = this;\n      const options = forceAliasCreation ? {\n        forceAliasCreation: true\n      } : undefined;\n      return auth.confirmSignUp(username, confirmationCode, options);\n    }\n\n    deleteAttributes(attributeList) {\n      return this._callback('deleteAttributes', attributeList);\n    }\n\n    deleteUser() {\n      return this._callback('deleteUser');\n    }\n\n    forgotPassword() {\n      (true && !(false) && Ember.deprecate('This functionality has moved to forgotPassword() on the Cognito service.', false, {\n        id: 'ember-cognito-forgot-password',\n        until: '1.0'\n      }));\n      const {\n        auth,\n        username\n      } = this;\n      return auth.forgotPassword(username);\n    }\n\n    getAttributeVerificationCode(attributeName) {\n      const {\n        auth,\n        user\n      } = this;\n      return auth.verifyUserAttribute(user, attributeName);\n    }\n\n    getSession() {\n      return this.auth.currentSession();\n    }\n\n    getUserAttributes() {\n      const {\n        auth,\n        user\n      } = this;\n      return auth.userAttributes(user);\n    }\n\n    async getUserAttributesHash() {\n      const {\n        auth,\n        user\n      } = this;\n      const result = await auth.userAttributes(user);\n      return (0, _utils.normalizeAttributes)(result, false);\n    }\n\n    resendConfirmationCode() {\n      (true && !(false) && Ember.deprecate('This functionality has moved to resendSignUp() on the Cognito service.', false, {\n        id: 'ember-cognito-resend-confirmation-code',\n        until: '1.0'\n      }));\n      const {\n        auth,\n        username\n      } = this;\n      return auth.resendSignUp(username);\n    }\n\n    signOut() {\n      return this.auth.signOut();\n    }\n\n    updateAttributes(attributes) {\n      const {\n        auth,\n        user\n      } = this;\n      const normalized = (0, _utils.normalizeAttributes)(attributes);\n      return auth.updateUserAttributes(user, normalized);\n    }\n\n    verifyAttribute(attributeName, confirmationCode) {\n      const {\n        auth,\n        user\n      } = this;\n      return auth.verifyUserAttributeSubmit(user, attributeName, confirmationCode);\n    } // Non-AWS method\n\n\n    async getGroups() {\n      const session = await this.getSession();\n      let payload = session.getIdToken().payload || {};\n      return payload['cognito:groups'] || [];\n    }\n\n    getStorageData() {\n      (true && !(false) && Ember.deprecate('getStorageData() no longer used, and always returns an empty object.', false, {\n        id: 'ember-cognito-get-storage-data',\n        until: '1.0'\n      }));\n      return {};\n    }\n\n  }, (_applyDecoratedDescriptor(_class.prototype, \"username\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"username\"), _class.prototype), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"attributes\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class));\n  _exports.default = CognitoUser;\n});","define(\"ember-cognito/utils/utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.normalizeAttributes = normalizeAttributes;\n\n  /**\n   * This takes a hash of attributes or a list of CognitoUserAttributes list,\n   * and returns a hash. It also deprecates the CognitoUserAttributes path.\n   *\n   * @param attributes\n   */\n  function normalizeAttributes(attributes, showDeprecation = true) {\n    // If the attributeList is an object, then it is treated as\n    // a hash of attributes, otherwise it is treated as a list of CognitoUserAttributes,\n    // for backward compatibility.\n    if (Ember.typeOf(attributes) === 'array') {\n      (true && !(!showDeprecation) && Ember.deprecate('You can pass a hash to this function rather than a list of CognitoUserAttribute objects.', !showDeprecation, {\n        id: 'ember-cognito-attribute-list',\n        until: '1.0'\n      }));\n      let newAttrs = {};\n\n      for (const attr of attributes) {\n        newAttrs[attr.getName()] = attr.getValue();\n      }\n\n      attributes = newAttrs;\n    }\n\n    return attributes;\n  }\n});","define(\"ember-composable-helpers/-private/closure-action\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    __loader\n  } = Ember;\n  let ClosureActionModule = {\n    ACTION: null\n  };\n\n  if ('ember-htmlbars/keywords/closure-action' in __loader.registry) {\n    ClosureActionModule = __loader.require('ember-htmlbars/keywords/closure-action');\n  } else if ('ember-routing-htmlbars/keywords/closure-action' in __loader.registry) {\n    ClosureActionModule = __loader.require('ember-routing-htmlbars/keywords/closure-action');\n  }\n\n  var _default = ClosureActionModule.ACTION;\n  _exports.default = _default;\n});","define(\"ember-composable-helpers/-private/get-value-array-and-use-deep-equal-from-params\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getValueArrayAndUseDeepEqualFromParams;\n\n  function getValueArrayAndUseDeepEqualFromParams(params) {\n    let currentValue = params[0];\n    let array;\n    let useDeepEqual = false;\n\n    if (params.length === 2) {\n      array = params[1];\n    } else {\n      useDeepEqual = params[1];\n      array = params[2];\n    }\n\n    return {\n      currentValue,\n      array,\n      useDeepEqual\n    };\n  }\n});","define(\"ember-composable-helpers/helpers/optional\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.optional = optional;\n  _exports.default = void 0;\n\n  function optional([action]) {\n    if (typeof action === 'function') {\n      return action;\n    }\n\n    return i => i;\n  }\n\n  var _default = Ember.Helper.helper(optional);\n\n  _exports.default = _default;\n});","define(\"ember-composable-helpers/helpers/toggle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.toggle = toggle;\n  _exports.default = void 0;\n\n  function nextIndex(length, currentIdx) {\n    if (currentIdx === -1 || currentIdx + 1 === length) {\n      return 0;\n    }\n\n    return currentIdx + 1;\n  }\n\n  function toggle([prop, obj, ...values]) {\n    return function () {\n      let currentValue = Ember.get(obj, prop);\n\n      if (Ember.isPresent(values)) {\n        let currentIdx = values.indexOf(currentValue);\n        let nextIdx = nextIndex(values.length, currentIdx);\n        return Ember.set(obj, prop, values[nextIdx]);\n      }\n\n      return Ember.set(obj, prop, !currentValue);\n    };\n  }\n\n  var _default = Ember.Helper.helper(toggle);\n\n  _exports.default = _default;\n});","define(\"ember-composable-helpers/index\", [\"exports\", \"ember-composable-helpers/helpers/optional\", \"ember-composable-helpers/helpers/toggle\"], function (_exports, _optional, _toggle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"OptionalHelper\", {\n    enumerable: true,\n    get: function () {\n      return _optional.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ToggleHelper\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.default;\n    }\n  });\n});","define(\"ember-composable-helpers/utils/as-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = asArray;\n\n  function isIterable(value) {\n    return Symbol.iterator in Object(value);\n  } // from https://github.com/flexyford/ember-power-select/blob/78a5430c1ac89daf315d0801fd5201e444e82434/addon/components/power-select.ts\n\n\n  function isArrayable(thing) {\n    return typeof thing.toArray === 'function';\n  }\n\n  function isPromiseLike(thing) {\n    return typeof thing.then === 'function';\n  }\n\n  function isPromiseProxyLike(thing) {\n    return isPromiseLike(thing) && Object.hasOwnProperty.call(thing, 'content');\n  }\n\n  function toExtendable(array) {\n    if (!Object.isExtensible(array)) {\n      return Array.from(array);\n    } else {\n      return array;\n    }\n  }\n\n  function asArray(maybeArray) {\n    return toExtendable(_asArray(maybeArray));\n  }\n\n  function _asArray(maybeArray) {\n    if (typeof maybeArray === 'number') {\n      throw new Error('Numbers not supported as arrays [ember-composable-helpers]');\n    }\n\n    if (typeof maybeArray === 'string') {\n      return maybeArray.split('');\n    } // for perf-reasons falling back to e-array, instead of using it first\n\n\n    if (Array.isArray(maybeArray)) {\n      return maybeArray;\n    } else if (Ember.isArray(maybeArray)) {\n      return maybeArray;\n    } else if (typeof maybeArray === 'object' && maybeArray === null) {\n      return [];\n    } else if (typeof maybeArray === 'undefined') {\n      return [];\n    } else if (maybeArray instanceof Set) {\n      return Array.from(maybeArray.values());\n    } else if (maybeArray instanceof Map) {\n      return Array.from(maybeArray.values());\n    } else if (maybeArray instanceof WeakMap) {\n      throw new Error('WeakMaps is not supported as arrays [ember-composable-helpers]');\n    } else if (maybeArray instanceof WeakSet) {\n      throw new Error('WeakSets is not supported as arrays [ember-composable-helpers]');\n    }\n\n    if (typeof maybeArray === 'object') {\n      if (isPromiseProxyLike(maybeArray)) {\n        const content = Ember.get(maybeArray, 'content');\n\n        if (typeof content !== 'object' || content === null) {\n          throw new Error('Unknown content type in array-like object [ember-composable-helpers]');\n        }\n\n        if (isArrayable(content)) {\n          return content.toArray();\n        } else {\n          return _asArray(content);\n        }\n      }\n\n      if (isPromiseLike(maybeArray)) {\n        throw new Error('Promise-like objects is not supported as arrays [ember-composable-helpers]');\n      }\n\n      if (isArrayable(maybeArray)) {\n        return maybeArray.toArray();\n      }\n\n      if (maybeArray instanceof Ember.Object) {\n        throw new Error('EmberObjects is not supported as arrays [ember-composable-helpers]');\n      }\n\n      return Array.from(Object.values(maybeArray));\n    }\n\n    if (!maybeArray) {\n      return [];\n    }\n\n    if (!isIterable(maybeArray)) {\n      throw new Error('Argument, passed as array is not iterable [ember-composable-helpers]');\n    }\n\n    return maybeArray;\n  }\n});","define(\"ember-composable-helpers/utils/comparison\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.lte = lte;\n  _exports.lt = lt;\n  _exports.gte = gte;\n  _exports.gt = gt;\n\n  function lte(a, b) {\n    return a <= b;\n  }\n\n  function lt(a, b) {\n    return a < b;\n  }\n\n  function gte(a, b) {\n    return a >= b;\n  }\n\n  function gt(a, b) {\n    return a > b;\n  }\n});","define(\"ember-composable-helpers/utils/get-index\", [\"exports\", \"ember-composable-helpers/utils/is-equal\"], function (_exports, _isEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getIndex;\n\n  function getIndex(array, currentValue, useDeepEqual) {\n    let needle = currentValue;\n\n    if (useDeepEqual) {\n      needle = Ember.A(array).find(object => {\n        return (0, _isEqual.default)(object, currentValue, useDeepEqual);\n      });\n    }\n\n    let index = Ember.A(array).indexOf(needle);\n    return index >= 0 ? index : null;\n  }\n});","define(\"ember-composable-helpers/utils/is-equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isEqual;\n\n  function isEqual(firstValue, secondValue, useDeepEqual = false) {\n    if (useDeepEqual) {\n      return JSON.stringify(firstValue) === JSON.stringify(secondValue);\n    } else {\n      return Ember.isEqual(firstValue, secondValue) || Ember.isEqual(secondValue, firstValue);\n    }\n  }\n});","define(\"ember-composable-helpers/utils/is-object\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isObject;\n\n  function isObject(val) {\n    return Ember.typeOf(val) === 'object' || Ember.typeOf(val) === 'instance';\n  }\n});","define(\"ember-composable-helpers/utils/is-promise\", [\"exports\", \"ember-composable-helpers/utils/is-object\"], function (_exports, _isObject) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isPromise;\n\n  function isPromiseLike(obj = {}) {\n    return Ember.typeOf(obj.then) === 'function' && Ember.typeOf(obj.catch) === 'function';\n  }\n\n  function isPromise(obj) {\n    return (0, _isObject.default)(obj) && isPromiseLike(obj);\n  }\n});","define(\"ember-concurrency-decorators/index\", [\"exports\", \"@ember-decorators/utils/decorator\", \"ember-concurrency\", \"ember-concurrency-decorators/last-value\"], function (_exports, _decorator, _emberConcurrency, _lastValue) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"lastValue\", {\n    enumerable: true,\n    get: function () {\n      return _lastValue.default;\n    }\n  });\n  _exports.enqueueTaskGroup = _exports.keepLatestTaskGroup = _exports.dropTaskGroup = _exports.restartableTaskGroup = _exports.taskGroup = _exports.enqueueTask = _exports.keepLatestTask = _exports.dropTask = _exports.restartableTask = _exports.task = void 0;\n\n  /**\n   * This utility function assures compatibility with the Ember object model style\n   * and initializer syntax required by Babel 6.\n   *\n   * For native classes using the method shorthand style (TypeScript & Babel 7),\n   * this function will access the `value`. For legacy code it will get the value\n   * from the initializer.\n   *\n   * // Ember object model\n   * export default EmberObject.extend({\n   *   @task\n   *   someTask: function*() {}\n   * });\n   *\n   * // Class syntax with initializers\n   * export default class extends EmberObject {\n   *   @task\n   *   someTask = function*() {}\n   * }\n   *\n   * @param desc\n   * @returns {object|null}\n   * @private\n   */\n  function extractValue(desc) {\n    if (typeof desc.initializer === 'function') {\n      return desc.initializer.call(undefined);\n    }\n\n    if (typeof desc.get === 'function') {\n      return desc.get.call(undefined);\n    }\n\n    if (desc.value) {\n      return desc.value;\n    }\n\n    return undefined;\n  }\n\n  function isTaskFunction(value) {\n    return typeof value === 'function';\n  }\n\n  function isEncapsulatedTask(value) {\n    return typeof value === 'object' && value !== null && isTaskFunction(value.perform);\n  }\n  /**\n   * Takes a `PropertyDescriptor` and turns it into an ember-concurrency\n   * `TaskProperty`.\n   *\n   * @param desc\n   * @returns {TaskProperty}\n   * @private\n   */\n\n\n  function createTaskFromDescriptor(desc) {\n    const value = extractValue(desc);\n\n    if (isTaskFunction(value)) {\n      return (0, _emberConcurrency.task)(value);\n    }\n\n    if (isEncapsulatedTask(value)) {\n      return (0, _emberConcurrency.task)(value);\n    }\n\n    (true && !(false) && Ember.assert('ember-concurrency-decorators: Can only decorate a generator function as a task or an object with a generator method `perform` as an encapsulated task.'));\n  }\n  /**\n   * Takes a `PropertyDescriptor` and turns it into an ember-concurrency\n   * `TaskGroupProperty`.\n   *\n   * @param desc\n   * @returns {TaskGroupProperty}\n   * @private\n   */\n\n\n  function createTaskGroupFromDescriptor(_desc) {\n    return (0, _emberConcurrency.taskGroup)();\n  }\n  /**\n   * Applies the `options` provided using the chaining API on the given `task`.\n   *\n   * @param options\n   * @param {TaskProperty|TaskGroupProperty} task\n   * @private\n   */\n\n\n  function applyOptions(options, task) {\n    const keys = Object.keys(options);\n\n    for (const key of keys) {\n      const value = options[key];\n      (true && !(value !== undefined) && Ember.assert(`ember-concurrency-decorators: Option '${key}' is not a valid value`, value !== undefined));\n      (true && !(typeof task[key] === 'function') && Ember.assert(`ember-concurrency-decorators: Option '${key}' is not a valid function`, typeof task[key] === 'function'));\n\n      if (value === true) {\n        task[key]();\n      } else {\n        task[key](value);\n      }\n    } // The CP decorator gets executed in `createDecorator`\n\n\n    return task;\n  }\n\n  function createDecorator(propertyCreator, baseOptions = {}) {\n    return (0, _decorator.decoratorWithParams)((target, key, desc, [userOptions] = []) => {\n      const {\n        initializer,\n        value\n      } = desc;\n      delete desc.initializer;\n      delete desc.value;\n      return applyOptions({ ...baseOptions,\n        ...userOptions\n      }, propertyCreator({ ...desc,\n        initializer,\n        value\n      }))(target, key, desc);\n    });\n  }\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   * ```js\n   * import EmberObject from '@ember/object';\n   * import { task } from 'ember-concurrency-decorators';\n   *\n   * class extends EmberObject {\n   *   @task\n   *   *plainTask() {}\n   *\n   *   @task({ maxConcurrency: 5, keepLatest: true, cancelOn: 'click' })\n   *   *taskWithModifiers() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}]\n   * @return {TaskProperty}\n   */\n\n\n  const task = createDecorator(createTaskFromDescriptor);\n  /**\n   * Turns the decorated generator function into a task 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.\n   *\n   * @function\n   * @param {object?} [options={}]\n   * @return {TaskProperty}\n   */\n\n  _exports.task = task;\n  const restartableTask = createDecorator(createTaskFromDescriptor, {\n    restartable: true\n  });\n  /**\n   * Turns the decorated generator function into a task 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.\n   *\n   * @function\n   * @param {object?} [options={}]\n   * @return {TaskProperty}\n   */\n\n  _exports.restartableTask = restartableTask;\n  const dropTask = createDecorator(createTaskFromDescriptor, {\n    drop: true\n  });\n  /**\n   * Turns the decorated generator function into a task 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.\n   *\n   * @function\n   * @param {object?} [options={}]\n   * @return {TaskProperty}\n   */\n\n  _exports.dropTask = dropTask;\n  const keepLatestTask = createDecorator(createTaskFromDescriptor, {\n    keepLatest: true\n  });\n  /**\n   * Turns the decorated generator function into a task 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.\n   *\n   * @function\n   * @param {object?} [options={}]\n   * @return {TaskProperty}\n   */\n\n  _exports.keepLatestTask = keepLatestTask;\n  const enqueueTask = createDecorator(createTaskFromDescriptor, {\n    enqueue: true\n  });\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 EmberObject from '@ember/object';\n   * import { task taskGroup } from 'ember-concurrency-decorators';\n   *\n   * class extends EmberObject {\n   *   @taskGroup({ maxConcurrency: 5 }) someTaskGroup;\n   *\n   *   @task({ group: 'someTaskGroup' })\n   *   *someTask() {}\n   *\n   *   @task({ group: 'someTaskGroup' })\n   *   *anotherTask() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}]\n   * @return {TaskGroupProperty}\n   */\n\n  _exports.enqueueTask = enqueueTask;\n  const taskGroup = createDecorator(createTaskGroupFromDescriptor);\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={}]\n   * @return {TaskGroupProperty}\n   */\n\n  _exports.taskGroup = taskGroup;\n  const restartableTaskGroup = createDecorator(createTaskGroupFromDescriptor, {\n    restartable: true\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={}]\n   * @return {TaskGroupProperty}\n   */\n\n  _exports.restartableTaskGroup = restartableTaskGroup;\n  const dropTaskGroup = createDecorator(createTaskGroupFromDescriptor, {\n    drop: true\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={}]\n   * @return {TaskGroupProperty}\n   */\n\n  _exports.dropTaskGroup = dropTaskGroup;\n  const keepLatestTaskGroup = createDecorator(createTaskGroupFromDescriptor, {\n    keepLatest: true\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={}]\n   * @return {TaskGroupProperty}\n   */\n\n  _exports.keepLatestTaskGroup = keepLatestTaskGroup;\n  const enqueueTaskGroup = createDecorator(createTaskGroupFromDescriptor, {\n    enqueue: true\n  });\n  _exports.enqueueTaskGroup = enqueueTaskGroup;\n});","define(\"ember-concurrency-decorators/last-value\", [\"exports\", \"@ember-decorators/utils/decorator\"], function (_exports, _decorator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * This decorator allows you to alias a property to the result of a task. You can also provide a default value to use before the task has completed.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task } from 'ember-concurrency-decorators';\n   * import { lastValue } from 'ember-concurrency-decorators';\n   *\n   * export default class ExampleComponent extends Component {\n   *   @task\n   *   someTask = function*() {\n   *     // ...\n   *   };\n   *\n   *   @lastValue('someTask')\n   *   someTaskValue;\n   *\n   *   @lastValue('someTask')\n   *   someTaskValueWithDefault = 'A default value';\n   * }\n   * ```\n   *\n   * @function\n   * @param {string} taskName the name of the task to read a value from\n   */\n  // eslint-disable-next-line func-names\n  var _default = (0, _decorator.decoratorWithRequiredParams)(function lastValue(target, key, desc, [taskName]) {\n    (true && !(typeof taskName === 'string') && Ember.assert(`ember-concurrency-decorators: @lastValue expects a task name as the first parameter.`, typeof taskName === 'string'));\n    const {\n      initializer\n    } = desc;\n    delete desc.initializer;\n    const cp = Ember.computed(`${taskName}.lastSuccessful`, function () {\n      const lastInstance = Ember.get(this, `${taskName}.lastSuccessful`);\n\n      if (lastInstance) {\n        return Ember.get(lastInstance, 'value');\n      }\n\n      if (initializer) {\n        return initializer.call(this);\n      }\n\n      return undefined;\n    }); // @ts-ignore\n\n    return cp(target, key, desc);\n  });\n\n  _exports.default = _default;\n});","define(\"ember-concurrency/-buffer-policy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dropButKeepLatestPolicy = _exports.cancelOngoingTasksPolicy = _exports.dropQueuedTasksPolicy = _exports.enqueueTasksPolicy = void 0;\n\n  const saturateActiveQueue = scheduler => {\n    while (scheduler.activeTaskInstances.length < scheduler.maxConcurrency) {\n      let taskInstance = scheduler.queuedTaskInstances.shift();\n\n      if (!taskInstance) {\n        break;\n      }\n\n      scheduler.activeTaskInstances.push(taskInstance);\n    }\n  };\n\n  function numPerformSlots(scheduler) {\n    return scheduler.maxConcurrency - scheduler.queuedTaskInstances.length - scheduler.activeTaskInstances.length;\n  }\n\n  const enqueueTasksPolicy = {\n    requiresUnboundedConcurrency: true,\n\n    schedule(scheduler) {\n      // [a,b,_] [c,d,e,f] becomes\n      // [a,b,c] [d,e,f]\n      saturateActiveQueue(scheduler);\n    },\n\n    getNextPerformStatus(scheduler) {\n      return numPerformSlots(scheduler) > 0 ? 'succeed' : 'enqueue';\n    }\n\n  };\n  _exports.enqueueTasksPolicy = enqueueTasksPolicy;\n  const dropQueuedTasksPolicy = {\n    cancelReason: `it belongs to a 'drop' Task that was already running`,\n\n    schedule(scheduler) {\n      // [a,b,_] [c,d,e,f] becomes\n      // [a,b,c] []\n      saturateActiveQueue(scheduler);\n      scheduler.spliceTaskInstances(this.cancelReason, scheduler.queuedTaskInstances, 0, scheduler.queuedTaskInstances.length);\n    },\n\n    getNextPerformStatus(scheduler) {\n      return numPerformSlots(scheduler) > 0 ? 'succeed' : 'drop';\n    }\n\n  };\n  _exports.dropQueuedTasksPolicy = dropQueuedTasksPolicy;\n  const cancelOngoingTasksPolicy = {\n    cancelReason: `it belongs to a 'restartable' Task that was .perform()ed again`,\n\n    schedule(scheduler) {\n      // [a,b,_] [c,d,e,f] becomes\n      // [d,e,f] []\n      let activeTaskInstances = scheduler.activeTaskInstances;\n      let queuedTaskInstances = scheduler.queuedTaskInstances;\n      activeTaskInstances.push(...queuedTaskInstances);\n      queuedTaskInstances.length = 0;\n      let numToShift = Math.max(0, activeTaskInstances.length - scheduler.maxConcurrency);\n      scheduler.spliceTaskInstances(this.cancelReason, activeTaskInstances, 0, numToShift);\n    },\n\n    getNextPerformStatus(scheduler) {\n      return numPerformSlots(scheduler) > 0 ? 'succeed' : 'cancel_previous';\n    }\n\n  };\n  _exports.cancelOngoingTasksPolicy = cancelOngoingTasksPolicy;\n  const dropButKeepLatestPolicy = {\n    cancelReason: `it belongs to a 'keepLatest' Task that was already running`,\n\n    schedule(scheduler) {\n      // [a,b,_] [c,d,e,f] becomes\n      // [d,e,f] []\n      saturateActiveQueue(scheduler);\n      scheduler.spliceTaskInstances(this.cancelReason, scheduler.queuedTaskInstances, 0, scheduler.queuedTaskInstances.length - 1);\n    }\n\n  };\n  _exports.dropButKeepLatestPolicy = dropButKeepLatestPolicy;\n});","define(\"ember-concurrency/-cancelable-promise-helpers\", [\"exports\", \"ember-concurrency/-task-instance\", \"ember-concurrency/utils\"], function (_exports, _taskInstance, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.hashSettled = _exports.hash = _exports.race = _exports.allSettled = _exports.all = void 0;\n  const asyncAll = taskAwareVariantOf(Ember.RSVP.Promise, 'all', identity);\n\n  function* resolver(value) {\n    return value;\n  }\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\n\n  const all = things => {\n    // Extra assertion here to circumvent the `things.length` short circuit.\n    (true && !(Array.isArray(things)) && Ember.assert(`'all' expects an array.`, Array.isArray(things)));\n\n    if (things.length === 0) {\n      return Ember.RSVP.Promise.resolve(things);\n    }\n\n    for (let i = 0; i < things.length; ++i) {\n      let t = things[i];\n\n      if (!(t && t[_utils.yieldableSymbol])) {\n        return asyncAll(things);\n      }\n    }\n\n    let isAsync = false;\n    let taskInstances = things.map(thing => {\n      let ti = _taskInstance.default.create({\n        // TODO: consider simpler iterator than full on generator fn?\n        fn: resolver,\n        args: [thing]\n      })._start();\n\n      if (ti._completionState !== 1) {\n        isAsync = true;\n      }\n\n      return ti;\n    });\n\n    if (isAsync) {\n      return asyncAll(taskInstances);\n    } else {\n      return Ember.RSVP.Promise.resolve(taskInstances.map(ti => ti.value));\n    }\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\n\n  _exports.all = all;\n  const allSettled = taskAwareVariantOf(Ember.RSVP, 'allSettled', identity);\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\n  _exports.allSettled = allSettled;\n  const race = taskAwareVariantOf(Ember.RSVP.Promise, 'race', identity);\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\n  _exports.race = race;\n  const hash = taskAwareVariantOf(Ember.RSVP, 'hash', getValues);\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\n  _exports.hash = hash;\n  const hashSettled = taskAwareVariantOf(Ember.RSVP, 'hashSettled', getValues);\n  _exports.hashSettled = hashSettled;\n\n  function identity(obj) {\n    return obj;\n  }\n\n  function getValues(obj) {\n    return Object.keys(obj).map(k => obj[k]);\n  }\n\n  function taskAwareVariantOf(obj, method, getItems) {\n    return function (thing) {\n      let items = getItems(thing);\n      (true && !(Array.isArray(items)) && Ember.assert(`'${method}' expects an array.`, Array.isArray(items)));\n      let defer = Ember.RSVP.defer();\n      obj[method](thing).then(defer.resolve, defer.reject);\n      let hasCancelled = false;\n\n      let cancelAll = () => {\n        if (hasCancelled) {\n          return;\n        }\n\n        hasCancelled = true;\n        items.forEach(it => {\n          if (it) {\n            if (it instanceof _taskInstance.default) {\n              it.cancel();\n            } else if (typeof it[_utils.cancelableSymbol] === 'function') {\n              it[_utils.cancelableSymbol]();\n            }\n          }\n        });\n      };\n\n      let promise = defer.promise.finally(cancelAll);\n      promise[_utils.cancelableSymbol] = cancelAll;\n      return promise;\n    };\n  }\n});","define(\"ember-concurrency/-encapsulated-task\", [\"exports\", \"ember-concurrency/-task-instance\"], function (_exports, _taskInstance) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _taskInstance.default.extend({\n    _makeIterator() {\n      let perform = this.perform;\n      (true && !(typeof perform === 'function') && Ember.assert(\"The object passed to `task()` must define a `perform` generator function, e.g. `perform: function * (a,b,c) {...}`, or better yet `*perform(a,b,c) {...}`\", typeof perform === 'function'));\n      return perform.apply(this, this.args);\n    },\n\n    perform: null\n  });\n\n  _exports.default = _default;\n});","define(\"ember-concurrency/-helpers\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.taskHelperClosure = taskHelperClosure;\n\n  function taskHelperClosure(helperName, taskMethod, _args, hash) {\n    let task = _args[0];\n\n    let outerArgs = _args.slice(1);\n\n    return Ember.run.bind(null, function (...innerArgs) {\n      if (!task || typeof task[taskMethod] !== 'function') {\n        (true && !(false) && Ember.assert(`The first argument passed to the \\`${helperName}\\` helper should be a Task object (without quotes); you passed ${task}`, false));\n        return;\n      }\n\n      if (hash && hash.value) {\n        let event = innerArgs.pop();\n        innerArgs.push(Ember.get(event, hash.value));\n      }\n\n      return task[taskMethod](...outerArgs, ...innerArgs);\n    });\n  }\n});","define(\"ember-concurrency/-private/cancelable-promise-helpers\", [\"exports\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/external/yieldables\"], function (_exports, _taskInstance, _yieldables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.hashSettled = _exports.hash = _exports.race = _exports.allSettled = _exports.all = void 0;\n\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 = taskAwareVariantOf(Ember.RSVP.Promise, 'all', identity);\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\n  _exports.all = all;\n  const allSettled = taskAwareVariantOf(Ember.RSVP, 'allSettled', identity);\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\n  _exports.allSettled = allSettled;\n  const race = taskAwareVariantOf(Ember.RSVP.Promise, 'race', identity);\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\n  _exports.race = race;\n  const hash = taskAwareVariantOf(Ember.RSVP, 'hash', getValues);\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\n  _exports.hash = hash;\n  const hashSettled = taskAwareVariantOf(Ember.RSVP, 'hashSettled', getValues);\n  _exports.hashSettled = hashSettled;\n\n  function identity(obj) {\n    return obj;\n  }\n\n  function getValues(obj) {\n    return Object.keys(obj).map(k => obj[k]);\n  }\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\n    return castable;\n  }\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\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)) && Ember.assert(`'${method}' expects an array.`, Array.isArray(items)));\n      let defer = Ember.RSVP.defer();\n      obj[method](awaitables).then(defer.resolve, defer.reject);\n      let hasCancelled = false;\n\n      let cancelAll = () => {\n        if (hasCancelled) {\n          return;\n        }\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\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-concurrency/-private/external/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EMBER_ENVIRONMENT = _exports.EmberEnvironment = void 0;\n\n  class EmberEnvironment extends _environment.Environment {\n    assert(...args) {\n      (true && !(false) && Ember.assert(...args));\n    }\n\n    async(callback) {\n      Ember.run.join(() => Ember.run.once(null, callback));\n    }\n\n    reportUncaughtRejection(error) {\n      Ember.run.next(null, function () {\n        if (Ember.onerror) {\n          Ember.onerror(error);\n        } else {\n          throw error;\n        }\n      });\n    }\n\n    defer() {\n      return Ember.RSVP.defer();\n    }\n\n    globalDebuggingEnabled() {\n      return Ember.ENV.DEBUG_TASKS;\n    }\n\n  }\n\n  _exports.EmberEnvironment = EmberEnvironment;\n  const EMBER_ENVIRONMENT = new EmberEnvironment();\n  _exports.EMBER_ENVIRONMENT = EMBER_ENVIRONMENT;\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 = void 0;\n\n  class Environment {\n    assert() {}\n\n    async() {}\n\n    reportUncaughtRejection() {}\n\n    defer() {}\n\n    globalDebuggingEnabled() {}\n\n  }\n\n  _exports.Environment = 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.GeneratorState = _exports.GeneratorStepResult = void 0;\n\n  class GeneratorStepResult {\n    constructor(value, done, errored) {\n      this.value = value;\n      this.done = done;\n      this.errored = errored;\n    }\n\n  }\n\n  _exports.GeneratorStepResult = GeneratorStepResult;\n\n  class GeneratorState {\n    constructor(generatorFactory) {\n      this.done = false;\n      this.generatorFactory = generatorFactory;\n      this.iterator = null;\n    }\n\n    step(resolvedValue, iteratorMethod) {\n      try {\n        let iterator = this.getIterator();\n        let {\n          value,\n          done\n        } = iterator[iteratorMethod](resolvedValue);\n\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\n    getIterator() {\n      if (!this.iterator && !this.done) {\n        this.iterator = this.generatorFactory();\n      }\n\n      return this.iterator;\n    }\n\n    finalize(value, errored) {\n      this.done = true;\n      this.iterator = null;\n      return new GeneratorStepResult(value, true, errored);\n    }\n\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\n  class BoundedPolicy {\n    constructor(maxConcurrency) {\n      this.maxConcurrency = maxConcurrency || 1;\n    }\n\n  }\n\n  var _default = BoundedPolicy;\n  _exports.default = _default;\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\n  class DropReducer {\n    constructor(remainingSlots) {\n      this.remainingSlots = remainingSlots;\n    }\n\n    step() {\n      if (this.remainingSlots > 0) {\n        this.remainingSlots--;\n        return _executionStates.STARTED;\n      }\n\n      return CANCELLED;\n    }\n\n  }\n\n  class DropPolicy extends _boundedPolicy.default {\n    makeReducer() {\n      return new DropReducer(this.maxConcurrency);\n    }\n\n  }\n\n  var _default = DropPolicy;\n  _exports.default = _default;\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\n  class EnqueuedReducer {\n    constructor(remainingSlots) {\n      this.remainingSlots = remainingSlots;\n    }\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  }\n\n  class EnqueuedPolicy extends _boundedPolicy.default {\n    makeReducer() {\n      return new EnqueuedReducer(this.maxConcurrency);\n    }\n\n  }\n\n  var _default = EnqueuedPolicy;\n  _exports.default = _default;\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.QUEUED = _exports.STARTED = _exports.TYPE_QUEUED = _exports.TYPE_STARTED = _exports.TYPE_CANCELLED = void 0;\n  const TYPE_CANCELLED = \"CANCELLED\";\n  _exports.TYPE_CANCELLED = TYPE_CANCELLED;\n  const TYPE_STARTED = \"STARTED\";\n  _exports.TYPE_STARTED = TYPE_STARTED;\n  const TYPE_QUEUED = \"QUEUED\";\n  _exports.TYPE_QUEUED = TYPE_QUEUED;\n  const STARTED = {\n    type: TYPE_STARTED\n  };\n  _exports.STARTED = STARTED;\n  const QUEUED = {\n    type: TYPE_QUEUED\n  };\n  _exports.QUEUED = QUEUED;\n\n  const makeCancelState = reason => ({\n    type: TYPE_CANCELLED,\n    reason\n  });\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`); // 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  // 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\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  }\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  }\n\n  var _default = KeepLatestPolicy;\n  _exports.default = _default;\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\n  class RestartableReducer {\n    constructor(numToCancel) {\n      this.numToCancel = numToCancel;\n    }\n\n    step() {\n      if (this.numToCancel > 0) {\n        this.numToCancel--;\n        return CANCELLED;\n      } else {\n        return _executionStates.STARTED;\n      }\n    }\n\n  }\n\n  class RestartablePolicy extends _boundedPolicy.default {\n    makeReducer(numRunning, numQueued) {\n      return new RestartableReducer(numRunning + numQueued - this.maxConcurrency);\n    }\n\n  }\n\n  var _default = RestartablePolicy;\n  _exports.default = _default;\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\n  class UnboundedReducer {\n    step() {\n      return _executionStates.STARTED;\n    }\n\n  }\n\n  const SINGLETON_REDUCER = new UnboundedReducer();\n\n  class UnboundedPolicy {\n    makeReducer() {\n      return SINGLETON_REDUCER;\n    }\n\n  }\n\n  var _default = UnboundedPolicy;\n  _exports.default = _default;\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\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\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\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\n        if (executorState.isFinished) {\n          taskState.onCompletion(taskInstance);\n          return false;\n        }\n\n        if (executorState.hasStarted) {\n          numRunning += 1;\n        } else {\n          numQueued += 1;\n        }\n\n        return true;\n      });\n      return [taskInstances, numRunning, numQueued];\n    }\n\n    setTaskInstanceExecutionState(taskInstance, desiredState) {\n      let taskState = this.stateTracker.stateFor(taskInstance.task);\n\n      if (!taskInstance.executor.counted) {\n        taskInstance.executor.counted = true;\n        taskState.onPerformed(taskInstance);\n      }\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\n        case _executionStates.TYPE_STARTED:\n          if (!taskInstance.executor.state.hasStarted) {\n            this.startingInstances.push(taskInstance);\n            taskState.onStart(taskInstance);\n          }\n\n          taskState.onRunning(taskInstance);\n          return true;\n\n        case _executionStates.TYPE_QUEUED:\n          taskState.onQueued(taskInstance); // TODO: assert taskInstance hasn't started?\n          // Or perhaps this can be a way to pause a task?\n\n          return true;\n      }\n    }\n\n    applyState(state) {\n      let {\n        taskable\n      } = state;\n\n      if (!taskable.onState) {\n        return;\n      }\n\n      const {\n        guid\n      } = taskable;\n\n      if (LAST_APPLIED_TAGS.has(guid) && state.tag < LAST_APPLIED_TAGS.get(guid)) {\n        return;\n      }\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  }\n\n  var _default = Refresh;\n  _exports.default = _default;\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\n  // Scheduler base class\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  // 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\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\n    perform(taskInstance) {\n      taskInstance.onFinalize(() => this.scheduleRefresh());\n      this.taskInstances.push(taskInstance);\n      this.refresh();\n    } // override\n\n\n    scheduleRefresh() {}\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  }\n\n  var _default = Scheduler;\n  _exports.default = _default;\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\n  class NullStateTracker {\n    stateFor() {\n      return NULL_STATE;\n    }\n\n    computeFinalStates() {}\n\n  }\n\n  var _default = NullStateTracker;\n  _exports.default = _default;\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\n  class NullState {\n    onCompletion() {}\n\n    onPerformed() {}\n\n    onStart() {}\n\n    onRunning() {}\n\n    onQueued() {}\n\n  }\n\n  var _default = NullState;\n  _exports.default = _default;\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\n  class StateTracker {\n    constructor() {\n      this.states = new Map();\n    }\n\n    stateFor(taskable) {\n      let guid = taskable.guid;\n      let taskState = this.states.get(guid);\n\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\n      return taskState;\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\n\n    computeFinalStates(callback) {\n      this.computeRecursiveState();\n      this.forEachState(state => callback(state));\n    }\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\n    forEachState(callback) {\n      this.states.forEach(state => callback(state));\n    }\n\n  }\n\n  var _default = StateTracker;\n  _exports.default = _default;\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\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\n    onCompletion(taskInstance) {\n      let state = taskInstance.completionState;\n      this.attrs.lastRunning = null;\n      this.attrs.lastComplete = taskInstance;\n\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\n        this.attrs.lastIncomplete = taskInstance;\n      }\n    }\n\n    onPerformed(taskInstance) {\n      this.numPerformedInc += 1;\n      this.attrs.lastPerformed = taskInstance;\n    }\n\n    onStart(taskInstance) {\n      // a.k.a. lastStarted\n      this.attrs.last = taskInstance;\n    }\n\n    onRunning(taskInstance) {\n      this.attrs.lastRunning = taskInstance;\n      this.numRunning += 1;\n    }\n\n    onQueued() {\n      this.numQueued += 1;\n    }\n\n    recurseTaskGroups(callback) {\n      let group = this.group;\n\n      while (group) {\n        callback(group);\n        group = group.group;\n      }\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  }\n\n  var _default = RefreshState;\n  _exports.default = _default;\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\"], function (_exports, _scheduler, _unboundedPolicy, _enqueuedPolicy, _dropPolicy, _keepLatestPolicy, _restartablePolicy, _task, _taskGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.registerModifier = registerModifier;\n  _exports.getModifier = getModifier;\n  _exports.hasModifier = hasModifier;\n  _exports.TaskFactory = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\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\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\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   * 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\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\n    MODIFIER_REGISTRY[name] = callback;\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\n\n  function getModifier(name) {\n    return MODIFIER_REGISTRY[name];\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\n\n  function hasModifier(name) {\n    return name in MODIFIER_REGISTRY;\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\n\n  class TaskFactory {\n    constructor(name = '<unknown>', taskDefinition = null, options = {}) {\n      _defineProperty(this, \"_debug\", null);\n\n      _defineProperty(this, \"_enabledModifiers\", []);\n\n      _defineProperty(this, \"_hasSetConcurrencyConstraint\", false);\n\n      _defineProperty(this, \"_hasSetBufferPolicy\", false);\n\n      _defineProperty(this, \"_hasEnabledEvents\", false);\n\n      _defineProperty(this, \"_maxConcurrency\", null);\n\n      _defineProperty(this, \"_onStateCallback\", (state, taskable) => taskable.setState(state));\n\n      _defineProperty(this, \"_schedulerPolicyClass\", _unboundedPolicy.default);\n\n      _defineProperty(this, \"_taskGroupPath\", null);\n\n      this.name = name;\n      this.taskDefinition = taskDefinition;\n      this.options = options;\n\n      this._processModifierOptions(options);\n    }\n    /**\n     * Returns a new Task bound to the given context\n     *\n     * @protected\n     * @param {*} context\n     * @returns {Task}\n     */\n\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     * Returns a new TaskGroup bound to the given context\n     *\n     * @protected\n     * @param {*} context\n     * @returns {Task}\n     */\n\n\n    createTaskGroup(context) {\n      let options = this.getTaskOptions(context);\n      return new _taskGroup.TaskGroup(options);\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\n\n    getModifier(name) {\n      if (hasModifier(name)) {\n        return MODIFIER_REGISTRY[name].bind(null, this);\n      }\n    }\n    /**\n     * Returns the options provided to TaskFactory\n     *\n     * @public\n     * @returns {object}\n     */\n\n\n    getOptions() {\n      return this.options;\n    }\n    /**\n     * Returns a new Scheduler instance\n     *\n     * @protected\n     * @param {*} schedulerPolicy\n     * @param {boolean} stateTrackingEnabled\n     * @returns {Scheduler}\n     */\n\n\n    getScheduler(schedulerPolicy, stateTrackingEnabled) {\n      return new _scheduler.default(schedulerPolicy, stateTrackingEnabled);\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\n\n    getTaskOptions(context) {\n      let group, scheduler;\n      let onStateCallback = this._onStateCallback;\n\n      if (this._taskGroupPath) {\n        group = context[this._taskGroupPath];\n\n        if (!(group instanceof _taskGroup.TaskGroup)) {\n          throw new Error(`Expected group '${this._taskGroupPath}' to be defined but was not found.`);\n        }\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\n      return {\n        context,\n        debug: this._debug,\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     * 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\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     * Sets debug mode\n     *\n     * @param {boolean} enabled\n     * @returns {TaskFactory}\n     */\n\n\n    setDebug(enabled) {\n      this._debug = enabled;\n      return this;\n    }\n    /**\n     * Sets whether Task will dispatch Task events or not\n     *\n     * @param {boolean} enabled\n     * @returns {TaskFactory}\n     */\n\n\n    setEvented(enabled) {\n      this._hasEnabledEvents = enabled;\n      return this;\n    }\n    /**\n     * Sets Scheduling policy's `maxConcurrency`\n     *\n     * @param {number} maxConcurrency\n     * @returns {TaskFactory}\n     */\n\n\n    setMaxConcurrency(maxConcurrency) {\n      this._hasSetConcurrencyConstraint = true;\n      this._maxConcurrency = maxConcurrency;\n      return this;\n    }\n    /**\n     * Assigns Task created from this factory to the specified group name\n     *\n     * @param {string} group\n     * @returns {TaskFactory}\n     */\n\n\n    setGroup(group) {\n      this._taskGroupPath = group;\n      return this;\n    }\n    /**\n     * Sets the name of tasks created from this factory\n     *\n     * @param {string} name\n     * @returns {TaskFactory}\n     */\n\n\n    setName(name) {\n      this.name = name;\n      return this;\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\n\n    setOnState(onStateCallback) {\n      this._onStateCallback = onStateCallback;\n      return this;\n    }\n    /**\n     * Sets the definition for tasks created from this factory\n     *\n     * @param {*} taskDefinition\n     * @returns {TaskFactory}\n     */\n\n\n    setTaskDefinition(taskDefinition) {\n      this.taskDefinition = taskDefinition;\n      return this;\n    }\n\n    _processModifierOptions(options) {\n      for (let key of Object.keys(options)) {\n        let value = options[key];\n        let modifier = this.getModifier(key);\n\n        if (typeof modifier === 'function' && modifier(value)) {\n          this._enabledModifiers.push(key);\n        }\n      }\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\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\n    setState() {}\n\n    onStarted() {}\n\n    onSuccess() {}\n\n    onError() {}\n\n    onCancel() {}\n\n    formatCancelReason() {}\n\n    selfCancelLoopWarning() {}\n\n    onFinalize(callback) {\n      this.executor.onFinalize(callback);\n    }\n\n    proceed(index, yieldResumeType, value) {\n      this.executor.proceedChecked(index, yieldResumeType, value);\n    }\n\n    [_yieldables.yieldableSymbol](parentTaskInstance, resumeIndex) {\n      return this.executor.onYielded(parentTaskInstance, resumeIndex);\n    }\n\n    cancel(cancelReason = EXPLICIT_CANCEL_REASON) {\n      this.executor.cancel(new _cancelation.CancelRequest(_cancelation.CANCEL_KIND_EXPLICIT, cancelReason));\n    }\n\n    then(...args) {\n      return this.executor.promise().then(...args);\n    }\n\n    catch(...args) {\n      return this.executor.promise().catch(...args);\n    }\n\n    finally(...args) {\n      return this.executor.promise().finally(...args);\n    }\n\n    toString() {\n      return `${this.task} TaskInstance`;\n    }\n\n    start() {\n      this.executor.start();\n      return this;\n    }\n\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.didCancel = didCancel;\n  _exports.CancelRequest = _exports.CANCEL_KIND_PARENT_CANCEL = _exports.CANCEL_KIND_LIFESPAN_END = _exports.CANCEL_KIND_YIELDABLE_CANCEL = _exports.CANCEL_KIND_EXPLICIT = _exports.TASK_CANCELATION_NAME = void 0;\n  const TASK_CANCELATION_NAME = \"TaskCancelation\";\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\n  _exports.TASK_CANCELATION_NAME = TASK_CANCELATION_NAME;\n\n  function didCancel(e) {\n    return e && e.name === TASK_CANCELATION_NAME;\n  }\n\n  const CANCEL_KIND_EXPLICIT = \"explicit\";\n  _exports.CANCEL_KIND_EXPLICIT = CANCEL_KIND_EXPLICIT;\n  const CANCEL_KIND_YIELDABLE_CANCEL = \"yielded\";\n  _exports.CANCEL_KIND_YIELDABLE_CANCEL = CANCEL_KIND_YIELDABLE_CANCEL;\n  const CANCEL_KIND_LIFESPAN_END = \"lifespan_end\";\n  _exports.CANCEL_KIND_LIFESPAN_END = CANCEL_KIND_LIFESPAN_END;\n  const CANCEL_KIND_PARENT_CANCEL = \"parent_cancel\";\n  _exports.CANCEL_KIND_PARENT_CANCEL = CANCEL_KIND_PARENT_CANCEL;\n\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  }\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_CANCEL = _exports.COMPLETION_ERROR = _exports.COMPLETION_SUCCESS = _exports.COMPLETION_PENDING = void 0;\n  const COMPLETION_PENDING = 0;\n  _exports.COMPLETION_PENDING = COMPLETION_PENDING;\n  const COMPLETION_SUCCESS = 1;\n  _exports.COMPLETION_SUCCESS = COMPLETION_SUCCESS;\n  const COMPLETION_ERROR = 2;\n  _exports.COMPLETION_ERROR = COMPLETION_ERROR;\n  const COMPLETION_CANCEL = 3;\n  _exports.COMPLETION_CANCEL = COMPLETION_CANCEL;\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.getRunningInstance = getRunningInstance;\n  _exports.TaskInstanceExecutor = _exports.PERFORM_TYPE_LINKED = _exports.PERFORM_TYPE_UNLINKED = _exports.PERFORM_TYPE_DEFAULT = void 0;\n  const PERFORM_TYPE_DEFAULT = \"PERFORM_TYPE_DEFAULT\";\n  _exports.PERFORM_TYPE_DEFAULT = PERFORM_TYPE_DEFAULT;\n  const PERFORM_TYPE_UNLINKED = \"PERFORM_TYPE_UNLINKED\";\n  _exports.PERFORM_TYPE_UNLINKED = PERFORM_TYPE_UNLINKED;\n  const PERFORM_TYPE_LINKED = \"PERFORM_TYPE_LINKED\";\n  _exports.PERFORM_TYPE_LINKED = PERFORM_TYPE_LINKED;\n  const CANCEL_RETURN_VALUE_SENTINEL = {};\n  let TASK_INSTANCE_STACK = [];\n\n  function getRunningInstance() {\n    return TASK_INSTANCE_STACK[TASK_INSTANCE_STACK.length - 1];\n  }\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\n    start() {\n      if (this.state.hasStarted || this.cancelRequest) {\n        return;\n      }\n\n      this.setState({\n        hasStarted: true\n      });\n      this.proceedSync(_yieldables.YIELDABLE_CONTINUE, undefined);\n      this.taskInstance.onStarted();\n    }\n\n    cancel(cancelRequest) {\n      if (!this.requestCancel(cancelRequest)) {\n        cancelRequest.finalize();\n        return cancelRequest.promise;\n      }\n\n      if (this.state.hasStarted) {\n        this.proceedWithCancelAsync();\n      } else {\n        this.finalizeWithCancel();\n      }\n\n      return this.cancelRequest.promise;\n    }\n\n    setState(state) {\n      Object.assign(this.state, state);\n      this.taskInstance.setState(this.state);\n    }\n\n    proceedChecked(index, yieldResumeType, value) {\n      if (this.state.isFinished) {\n        return;\n      }\n\n      if (!this.advanceIndex(index)) {\n        return;\n      }\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\n    proceedWithCancelAsync() {\n      this.proceedAsync(_yieldables.YIELDABLE_RETURN, CANCEL_RETURN_VALUE_SENTINEL);\n    }\n\n    proceedAsync(yieldResumeType, value) {\n      this.advanceIndex(this.index);\n      this.env.async(() => this.proceedSync(yieldResumeType, value));\n    }\n\n    proceedSync(yieldResumeType, value) {\n      if (this.state.isFinished) {\n        return;\n      }\n\n      this.dispose();\n\n      if (this.generatorState.done) {\n        this.handleResolvedReturnedValue(yieldResumeType, value);\n      } else {\n        this.handleResolvedContinueValue(yieldResumeType, value);\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\n\n    handleResolvedContinueValue(iteratorMethod, resumeValue) {\n      let beforeIndex = this.index;\n      let stepResult = this.generatorStep(resumeValue, iteratorMethod); // TODO: what is this doing? write breaking test.\n\n      if (!this.advanceIndex(beforeIndex)) {\n        return;\n      }\n\n      if (stepResult.errored) {\n        this.finalize(stepResult.value, _completionStates.COMPLETION_ERROR);\n        return;\n      }\n\n      this.handleYieldedValue(stepResult);\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\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\n        case _yieldables.YIELDABLE_THROW:\n          this.finalize(value, _completionStates.COMPLETION_ERROR);\n          break;\n      }\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     * 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\n\n    advanceIndex(index) {\n      if (this.index === index) {\n        return ++this.index;\n      }\n    }\n\n    handleYieldedValue(stepResult) {\n      let yieldedValue = stepResult.value;\n\n      if (!yieldedValue) {\n        this.proceedWithSimpleValue(yieldedValue);\n        return;\n      }\n\n      this.addDisposer(yieldedValue[_yieldables.cancelableSymbol]);\n\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\n    proceedWithSimpleValue(yieldedValue) {\n      this.proceedAsync(_yieldables.YIELDABLE_CONTINUE, yieldedValue);\n    }\n\n    addDisposer(maybeDisposer) {\n      if (typeof maybeDisposer !== \"function\") {\n        return;\n      }\n\n      this.disposers.push(maybeDisposer);\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\n\n    dispose() {\n      let disposers = this.disposers;\n\n      if (disposers.length === 0) {\n        return;\n      }\n\n      this.disposers = [];\n      disposers.forEach(disposer => disposer());\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\n\n    generatorStep(nextValue, iteratorMethod) {\n      TASK_INSTANCE_STACK.push(this);\n      let stepResult = this.generatorState.step(nextValue, iteratorMethod);\n      TASK_INSTANCE_STACK.pop(); // TODO: fix this!\n\n      if (this._expectsLinkedYield) {\n        let value = stepResult.value;\n\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\n        this._expectsLinkedYield = false;\n      }\n\n      return stepResult;\n    }\n\n    maybeResolveDefer() {\n      if (!this.defer || !this.state.isFinished) {\n        return;\n      }\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\n    onFinalize(callback) {\n      this.finalizeCallbacks.push(callback);\n\n      if (this.state.isFinished) {\n        this.runFinalizeCallbacks();\n      }\n    }\n\n    runFinalizeCallbacks() {\n      this.finalizeCallbacks.forEach(cb => cb());\n      this.finalizeCallbacks = [];\n      this.maybeResolveDefer();\n      this.maybeThrowUnhandledTaskErrorLater();\n    }\n\n    promise() {\n      if (!this.defer) {\n        this.defer = this.env.defer();\n        this.asyncErrorsHandled = true;\n        this.maybeResolveDefer();\n      }\n\n      return this.defer.promise;\n    }\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\n    requestCancel(request) {\n      if (this.cancelRequest || this.state.isFinished) {\n        return false;\n      }\n\n      this.cancelRequest = request;\n      return true;\n    }\n\n    finalize(value, completionState) {\n      if (this.cancelRequest) {\n        return this.finalizeWithCancel();\n      }\n\n      let state = {\n        completionState\n      };\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\n      this.finalizeShared(state);\n    }\n\n    finalizeWithCancel() {\n      let cancelReason = this.taskInstance.formatCancelReason(this.cancelRequest.reason);\n      let error = new Error(cancelReason);\n\n      if (this.debugEnabled()) {\n        // eslint-disable-next-line no-console\n        console.log(cancelReason);\n      }\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\n    debugEnabled() {\n      return this.debug || this.env.globalDebuggingEnabled();\n    }\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\n    dispatchFinalizeEvents(completionState) {\n      switch (completionState) {\n        case _completionStates.COMPLETION_SUCCESS:\n          this.taskInstance.onSuccess();\n          break;\n\n        case _completionStates.COMPLETION_ERROR:\n          this.taskInstance.onError(this.state.error);\n          break;\n\n        case _completionStates.COMPLETION_CANCEL:\n          this.taskInstance.onCancel(this.state.cancelReason);\n          break;\n      }\n    }\n\n    invokeYieldable(yieldedValue) {\n      try {\n        let maybeDisposer = yieldedValue[_yieldables.yieldableSymbol](this.taskInstance, this.index);\n\n        this.addDisposer(maybeDisposer);\n      } catch (e) {\n        this.env.reportUncaughtRejection(e);\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\n\n    onYielded(parent, resumeIndex) {\n      this.asyncErrorsHandled = true;\n      this.onFinalize(() => {\n        let completionState = this.state.completionState;\n\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\n      if (performType === PERFORM_TYPE_UNLINKED) {\n        return;\n      }\n\n      return () => {\n        this.detectSelfCancelLoop(performType, parent);\n        this.cancel(new _cancelation.CancelRequest(_cancelation.CANCEL_KIND_PARENT_CANCEL));\n      };\n    }\n\n    getPerformType() {\n      return this.taskInstance.performType || PERFORM_TYPE_DEFAULT;\n    }\n\n    detectSelfCancelLoop(performType, parent) {\n      if (performType !== PERFORM_TYPE_DEFAULT) {\n        return;\n      }\n\n      let parentCancelRequest = parent.executor && parent.executor.cancelRequest; // Detect that the parent was cancelled by a lifespan ending and\n      // that the child is still running and not cancelled.\n\n      if (parentCancelRequest && parentCancelRequest.kind === _cancelation.CANCEL_KIND_LIFESPAN_END && !this.cancelRequest && !this.state.isFinished) {\n        this.taskInstance.selfCancelLoopWarning(parent);\n      }\n    }\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 = {\n    completionState: _completionStates.COMPLETION_PENDING,\n\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    /**\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    /**\n     * True if the task instance is fulfilled.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isSuccessful: false,\n\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    /**\n     * True if the task instance is canceled\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isCanceled: false,\n\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    /**\n     * True if the task has run to completion.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isFinished: false\n  };\n  _exports.INITIAL_STATE = INITIAL_STATE;\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 = {\n    last: null,\n    lastRunning: null,\n    lastStarted: null,\n    lastPerformed: null,\n    lastSuccessful: null,\n    lastComplete: null,\n    lastErrored: null,\n    lastCanceled: null,\n    lastIncomplete: null,\n    performCount: 0\n  };\n  _exports.DEFAULT_STATE = DEFAULT_STATE;\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\n  class TaskGroup extends _taskable.Taskable {}\n\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\n  class TaskLinkProxy {\n    constructor(task, performType, linkedObject) {\n      this.task = task;\n      this.performType = performType;\n      this.linkedObject = linkedObject;\n    }\n\n    perform(...args) {\n      return this.task._performShared(args, this.performType, this.linkedObject);\n    }\n\n  }\n\n  class Task extends _taskable.Taskable {\n    constructor(options) {\n      super(options);\n      this.perform = this._perform.bind(this);\n    }\n\n    linked() {\n      let linkedObject = (0, _executor.getRunningInstance)();\n\n      if (!linkedObject) {\n        throw new Error(`You can only call .linked() from within a task.`);\n      }\n\n      return new TaskLinkProxy(this, _executor.PERFORM_TYPE_LINKED, linkedObject);\n    }\n\n    unlinked() {\n      return new TaskLinkProxy(this, _executor.PERFORM_TYPE_UNLINKED, null);\n    }\n\n    _perform() {}\n\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\n  function makeGuid() {\n    return `ec_${guidId++}`;\n  }\n\n  class Taskable {\n    constructor(options) {\n      this.options = options;\n      Object.assign(this, options);\n      this.guid = makeGuid();\n      this.guids = {};\n      this.guids[this.guid] = true;\n\n      if (this.group) {\n        Object.assign(this.guids, this.group.guids);\n      }\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\n    _resetState() {\n      this.setState(_defaultState.DEFAULT_STATE);\n    } // override\n\n\n    setState() {}\n\n  }\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.animationFrame = animationFrame;\n  _exports.rawTimeout = rawTimeout;\n  _exports.forever = _exports.Yieldable = _exports.YIELDABLE_CANCEL = _exports.YIELDABLE_RETURN = _exports.YIELDABLE_THROW = _exports.YIELDABLE_CONTINUE = _exports.yieldableSymbol = _exports.cancelableSymbol = void 0;\n  const cancelableSymbol = \"__ec_cancel__\";\n  _exports.cancelableSymbol = cancelableSymbol;\n  const yieldableSymbol = \"__ec_yieldable__\";\n  _exports.yieldableSymbol = yieldableSymbol;\n  const YIELDABLE_CONTINUE = \"next\";\n  _exports.YIELDABLE_CONTINUE = YIELDABLE_CONTINUE;\n  const YIELDABLE_THROW = \"throw\";\n  _exports.YIELDABLE_THROW = YIELDABLE_THROW;\n  const YIELDABLE_RETURN = \"return\";\n  _exports.YIELDABLE_RETURN = YIELDABLE_RETURN;\n  const YIELDABLE_CANCEL = \"cancel\";\n  /**\n   * @class YieldableState\n   * @hideconstructor\n   */\n\n  _exports.YIELDABLE_CANCEL = YIELDABLE_CANCEL;\n\n  class YieldableState {\n    constructor(taskInstance, resumeIndex) {\n      this._taskInstance = taskInstance;\n      this._resumeIndex = resumeIndex;\n    }\n    /**\n     * Return yielded TaskInstance. Useful for introspection on instance state.\n     * @method getTaskInstance\n     * @memberof YieldableState\n     * @public\n     * @instance\n     */\n\n\n    getTaskInstance() {\n      return this._taskInstance;\n    }\n    /**\n     * Cancel the yielded TaskInstance.\n     * @method cancel\n     * @memberof YieldableState\n     * @public\n     * @instance\n     */\n\n\n    cancel() {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_CANCEL);\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\n\n    next(value) {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_CONTINUE, value);\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\n\n    return(value) {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_RETURN, value);\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\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\n\n  class Yieldable {\n    constructor() {\n      this[yieldableSymbol] = this[yieldableSymbol].bind(this);\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\n\n    onYield() {}\n\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\n    _toPromise() {\n      let def = this._deferable();\n\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      };\n      let maybeDisposer = this[yieldableSymbol](thinInstance, 0);\n      def.promise[cancelableSymbol] = maybeDisposer;\n      return def.promise;\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\n\n    then(...args) {\n      return this._toPromise().then(...args);\n    }\n    /**\n     * @method catch\n     * @memberof Yieldable\n     * @instance\n     * @return {Promise}\n     */\n\n\n    catch(...args) {\n      return this._toPromise().catch(...args);\n    }\n    /**\n     * @method finally\n     * @memberof Yieldable\n     * @instance\n     * @return {Promise}\n     */\n\n\n    finally(...args) {\n      return this._toPromise().finally(...args);\n    }\n\n    [yieldableSymbol](taskInstance, resumeIndex) {\n      let state = new YieldableState(taskInstance, resumeIndex);\n      return this.onYield(state);\n    }\n\n  }\n\n  _exports.Yieldable = Yieldable;\n\n  class AnimationFrameYieldable extends Yieldable {\n    onYield(state) {\n      let timerId = requestAnimationFrame(() => state.next());\n      return () => cancelAnimationFrame(timerId);\n    }\n\n  }\n\n  class ForeverYieldable extends Yieldable {\n    onYield() {}\n\n  }\n\n  class RawTimeoutYieldable extends Yieldable {\n    constructor(ms) {\n      super();\n      this.ms = ms;\n    }\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\n\n  function animationFrame() {\n    return new AnimationFrameYieldable();\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\n\n  const forever = new ForeverYieldable();\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\n  _exports.forever = forever;\n\n  function rawTimeout(ms) {\n    return new RawTimeoutYieldable(ms);\n  }\n});","define(\"ember-concurrency/-private/helpers\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.taskHelperClosure = taskHelperClosure;\n\n  function taskHelperClosure(helperName, taskMethod, _args, hash) {\n    let task = _args[0];\n\n    let outerArgs = _args.slice(1);\n\n    return function (...innerArgs) {\n      if (!task || typeof task[taskMethod] !== 'function') {\n        (true && !(false) && Ember.assert(`The first argument passed to the \\`${helperName}\\` helper should be a Task object (without quotes); you passed ${task}`, false));\n        return;\n      }\n\n      if (hash && hash.value) {\n        let event = innerArgs.pop();\n        innerArgs.push(Ember.get(event, hash.value));\n      }\n\n      return task[taskMethod](...outerArgs, ...innerArgs);\n    };\n  }\n});","define(\"ember-concurrency/-private/scheduler/ember-scheduler\", [\"exports\", \"ember-concurrency/-private/external/scheduler/scheduler\"], function (_exports, _scheduler) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class EmberScheduler extends _scheduler.default {\n    scheduleRefresh() {\n      Ember.run.once(this, this.refresh);\n    }\n\n  }\n\n  var _default = EmberScheduler;\n  _exports.default = _default;\n});","define(\"ember-concurrency/-private/task-decorators\", [\"exports\", \"ember-concurrency/-private/task-factory\", \"ember-concurrency/-private/utils\"], function (_exports, _taskFactory, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.restartableTaskGroup = _exports.keepLatestTaskGroup = _exports.enqueueTaskGroup = _exports.dropTaskGroup = _exports.taskGroup = _exports.restartableTask = _exports.keepLatestTask = _exports.enqueueTask = _exports.dropTask = _exports.task = _exports.lastValue = void 0;\n\n  function taskFromPropertyDescriptor(target, key, descriptor, params = []) {\n    let {\n      initializer,\n      get,\n      value\n    } = descriptor;\n    let taskFn;\n\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\n    taskFn.displayName = `${key} (task)`;\n    let tasks = new WeakMap();\n    let options = params[0] || {};\n    let factory = new _taskFactory.TaskFactory(key, taskFn, options);\n\n    factory._setupEmberKVO(target);\n\n    return {\n      get() {\n        let task = tasks.get(this);\n\n        if (!task) {\n          task = factory.createTask(this);\n          tasks.set(this, task);\n        }\n\n        return task;\n      }\n\n    };\n  }\n\n  function taskGroupPropertyDescriptor(target, key, _descriptor, params = []) {\n    let taskGroups = new WeakMap();\n    let options = params[0] || {};\n    let factory = new _taskFactory.TaskGroupFactory(key, null, options);\n    return {\n      get() {\n        let task = taskGroups.get(this);\n\n        if (!task) {\n          task = factory.createTaskGroup(this);\n          taskGroups.set(this, task);\n        }\n\n        return task;\n      }\n\n    };\n  } // Cribbed from @ember-decorators/utils\n\n\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\n  function createDecorator(fn, baseOptions = {}) {\n    return decoratorWithParams((target, key, descriptor, [userOptions] = []) => {\n      let mergedOptions = Object.assign({}, { ...baseOptions,\n        ...userOptions\n      });\n      return fn(target, key, descriptor, [mergedOptions]);\n    });\n  }\n\n  const lastValue = decoratorWithParams((target, key, descriptor, [taskName] = []) => {\n    const {\n      initializer\n    } = descriptor;\n    delete descriptor.initializer;\n\n    if (_utils.USE_TRACKED) {\n      return {\n        get() {\n          let lastInstance = this[taskName].lastSuccessful;\n\n          if (lastInstance) {\n            return lastInstance.value;\n          }\n\n          if (initializer) {\n            return initializer.call(this);\n          }\n\n          return undefined;\n        }\n\n      };\n    } else {\n      let cp = Ember.computed(`${taskName}.lastSuccessful`, function () {\n        let lastInstance = Ember.get(this, `${taskName}.lastSuccessful`);\n\n        if (lastInstance) {\n          return Ember.get(lastInstance, 'value');\n        }\n\n        if (initializer) {\n          return initializer.call(this);\n        }\n\n        return undefined;\n      });\n      return cp(target, key, descriptor);\n    }\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/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/task-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\n  _exports.lastValue = lastValue;\n  const task = createDecorator(taskFromPropertyDescriptor);\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/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\n  _exports.task = task;\n  const dropTask = createDecorator(taskFromPropertyDescriptor, {\n    drop: true\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/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\n  _exports.dropTask = dropTask;\n  const enqueueTask = createDecorator(taskFromPropertyDescriptor, {\n    enqueue: true\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/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\n  _exports.enqueueTask = enqueueTask;\n  const keepLatestTask = createDecorator(taskFromPropertyDescriptor, {\n    keepLatest: true\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/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\n  _exports.keepLatestTask = keepLatestTask;\n  const restartableTask = createDecorator(taskFromPropertyDescriptor, {\n    restartable: true\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\n  _exports.restartableTask = restartableTask;\n  const taskGroup = createDecorator(taskGroupPropertyDescriptor);\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\n  _exports.taskGroup = taskGroup;\n  const dropTaskGroup = createDecorator(taskGroupPropertyDescriptor, {\n    drop: true\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\n  _exports.dropTaskGroup = dropTaskGroup;\n  const enqueueTaskGroup = createDecorator(taskGroupPropertyDescriptor, {\n    enqueue: true\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\n  _exports.enqueueTaskGroup = enqueueTaskGroup;\n  const keepLatestTaskGroup = createDecorator(taskGroupPropertyDescriptor, {\n    keepLatest: true\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\n  _exports.keepLatestTaskGroup = keepLatestTaskGroup;\n  const restartableTaskGroup = createDecorator(taskGroupPropertyDescriptor, {\n    restartable: true\n  });\n  _exports.restartableTaskGroup = restartableTaskGroup;\n});","define(\"ember-concurrency/-private/task-factory\", [\"exports\", \"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/task\", \"ember-concurrency/-private/task-properties\", \"ember-concurrency/-private/task-group\", \"ember-concurrency/-private/scheduler/ember-scheduler\"], function (_exports, _unboundedPolicy, _enqueuedPolicy, _dropPolicy, _keepLatestPolicy, _restartablePolicy, _task, _taskProperties, _taskGroup, _emberScheduler) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskGroupFactory = _exports.TaskFactory = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  let handlerCounter = 0;\n\n  function assertModifiersNotMixedWithGroup(obj) {\n    (true && !(!obj._hasUsedModifier || !obj._taskGroupPath) && Ember.assert(`ember-concurrency does not currently support using both 'group' with other task modifiers (e.g. 'drop', 'enqueue', 'restartable')`, !obj._hasUsedModifier || !obj._taskGroupPath));\n  }\n\n  function assertUnsetBufferPolicy(obj) {\n    (true && !(!obj._hasSetBufferPolicy) && Ember.assert(`Cannot set multiple buffer policies on a task or task group. ${obj._schedulerPolicyClass} has already been set for task or task group '${obj.name}'`, !obj._hasSetBufferPolicy));\n  }\n\n  function registerOnPrototype(addListenerOrObserver, proto, names, taskName, taskMethod, once) {\n    if (names) {\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\n  function makeTaskCallback(taskName, method, once) {\n    return function () {\n      let task = Ember.get(this, taskName);\n\n      if (once) {\n        Ember.run.scheduleOnce(\"actions\", task, method, ...arguments);\n      } else {\n        task[method].apply(task, arguments);\n      }\n    };\n  }\n\n  const ensureArray = possibleArr => Array.isArray(possibleArr) ? possibleArr : [possibleArr];\n\n  const optionRegistry = {\n    cancelOn: (factory, eventNames) => factory.addCancelEvents(...ensureArray(eventNames)),\n    enqueue: factory => factory.setBufferPolicy(_enqueuedPolicy.default),\n    evented: factory => factory.setEvented(true),\n    debug: factory => factory.setDebug(true),\n    drop: factory => factory.setBufferPolicy(_dropPolicy.default),\n    group: (factory, groupName) => factory.setGroup(groupName),\n    keepLatest: factory => factory.setBufferPolicy(_keepLatestPolicy.default),\n    maxConcurrency: (factory, maxConcurrency) => factory.setMaxConcurrency(maxConcurrency),\n    observes: (factory, propertyPaths) => factory.addObserverKeys(...ensureArray(propertyPaths)),\n    on: (factory, eventNames) => factory.addPerformEvents(...ensureArray(eventNames)),\n    onState: (factory, onStateCallback) => factory.setOnState(onStateCallback),\n    restartable: factory => factory.setBufferPolicy(_restartablePolicy.default)\n  };\n\n  class TaskFactory {\n    constructor(name = \"<unknown>\", taskDefinition = null, options = {}) {\n      _defineProperty(this, \"_cancelEventNames\", []);\n\n      _defineProperty(this, \"_debug\", null);\n\n      _defineProperty(this, \"_eventNames\", []);\n\n      _defineProperty(this, \"_hasUsedModifier\", false);\n\n      _defineProperty(this, \"_hasSetBufferPolicy\", false);\n\n      _defineProperty(this, \"_hasEnabledEvents\", false);\n\n      _defineProperty(this, \"_maxConcurrency\", null);\n\n      _defineProperty(this, \"_observes\", []);\n\n      _defineProperty(this, \"_onStateCallback\", (state, taskable) => taskable.setState(state));\n\n      _defineProperty(this, \"_schedulerPolicyClass\", _unboundedPolicy.default);\n\n      _defineProperty(this, \"_taskGroupPath\", null);\n\n      this.name = name;\n      this.taskDefinition = taskDefinition;\n\n      this._processOptions(options);\n    }\n\n    createTask(context) {\n      (true && !(this.taskDefinition) && Ember.assert(`Cannot create task if a task definition is not provided as generator function or encapsulated task.`, this.taskDefinition));\n\n      let options = this._sharedTaskProperties(context);\n\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\n    addCancelEvents(...cancelEventNames) {\n      this._cancelEventNames.push(...cancelEventNames);\n\n      return this;\n    }\n\n    addObserverKeys(...keys) {\n      this._observes.push(...keys);\n\n      return this;\n    }\n\n    addPerformEvents(...eventNames) {\n      this._eventNames.push(...eventNames);\n\n      return this;\n    }\n\n    setBufferPolicy(policy) {\n      assertUnsetBufferPolicy(this);\n      this._hasSetBufferPolicy = true;\n      this._hasUsedModifier = true;\n      this._schedulerPolicyClass = policy;\n      assertModifiersNotMixedWithGroup(this);\n      return this;\n    }\n\n    setDebug(debug) {\n      this._debug = debug;\n      return this;\n    }\n\n    setEvented(evented) {\n      this._hasEnabledEvents = evented;\n      return this;\n    }\n\n    setMaxConcurrency(maxConcurrency) {\n      (true && !(Number.isInteger(maxConcurrency)) && Ember.assert(`maxConcurrency must be an integer (Task '${this.name}')`, Number.isInteger(maxConcurrency)));\n      this._hasUsedModifier = true;\n      this._maxConcurrency = maxConcurrency;\n      assertModifiersNotMixedWithGroup(this);\n      return this;\n    }\n\n    setGroup(group) {\n      this._taskGroupPath = group;\n      assertModifiersNotMixedWithGroup(this);\n      return this;\n    }\n\n    setName(name) {\n      this.name = name;\n      return this;\n    }\n\n    setOnState(onStateCallback) {\n      this._onStateCallback = onStateCallback;\n      return this;\n    }\n\n    setTaskDefinition(taskDefinition) {\n      (true && !(typeof taskDefinition === \"function\" || typeof taskDefinition === \"object\" && typeof taskDefinition.perform === \"function\") && Ember.assert(`Task definition must be a generator function or encapsulated task.`, typeof taskDefinition === \"function\" || typeof taskDefinition === \"object\" && typeof taskDefinition.perform === \"function\"));\n      this.taskDefinition = taskDefinition;\n      return this;\n    }\n\n    _processOptions(options) {\n      for (let key of Object.keys(options)) {\n        let value = options[key];\n\n        if (optionRegistry[key]) {\n          optionRegistry[key].call(null, this, value);\n        } else if (typeof _taskProperties.TaskProperty.prototype[key] === \"function\") {\n          // Shim for compatibility with user-defined TaskProperty prototype\n          // extensions. To be removed when replaced with proper public API.\n          _taskProperties.TaskProperty.prototype[key].call(this, value);\n        } else {\n          (true && !(false) && Ember.assert(`Task option '${key}' is not recognized as a supported option.`, false));\n        }\n      }\n    }\n\n    _setupEmberKVO(proto) {\n      // TODO: Does this make sense in a post-Ember object world?\n      registerOnPrototype(Ember.addListener, proto, this._eventNames, this.name, \"perform\", false);\n      registerOnPrototype(Ember.addListener, proto, this._cancelEventNames, this.name, \"cancelAll\", false);\n      registerOnPrototype(Ember.addObserver, proto, this._observes, this.name, \"perform\", true);\n    }\n\n    _sharedTaskProperties(context) {\n      let group, scheduler;\n      let onStateCallback = this._onStateCallback;\n\n      if (this._taskGroupPath) {\n        group = context[this._taskGroupPath];\n        (true && !(group instanceof _taskGroup.TaskGroup) && Ember.assert(`ember-concurrency: Expected group '${this._taskGroupPath}' to be defined but was not found.`, group instanceof _taskGroup.TaskGroup));\n        scheduler = group.scheduler;\n      } else {\n        let schedulerPolicy = new this._schedulerPolicyClass(this._maxConcurrency);\n        scheduler = new _emberScheduler.default(schedulerPolicy, onStateCallback);\n      }\n\n      return {\n        context,\n        debug: this._debug,\n        name: this.name,\n        group,\n        scheduler,\n        hasEnabledEvents: this._hasEnabledEvents,\n        onStateCallback\n      };\n    } // Provided for compatibility with ember-concurrency TaskProperty extension\n    // methods\n\n\n    get taskFn() {\n      return this.taskDefinition;\n    }\n\n    set taskFn(fn) {\n      this.setTaskDefinition(fn);\n    }\n\n  }\n\n  _exports.TaskFactory = TaskFactory;\n\n  class TaskGroupFactory extends TaskFactory {\n    createTaskGroup(context) {\n      (true && !(!this.taskDefinition) && Ember.assert(`A task definition is not expected for a task group.`, !this.taskDefinition));\n\n      let options = this._sharedTaskProperties(context);\n\n      return new _taskGroup.TaskGroup(options);\n    }\n\n  }\n\n  _exports.TaskGroupFactory = TaskGroupFactory;\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  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    /**\n    * `true` if any current task instances are running.\n    *\n    * @memberof TaskGroup\n    * @member {boolean} isRunning\n    * @instance\n    * @readOnly\n    */\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    /**\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    /**\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    /**\n     * The most recently started task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} last\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The most recently performed task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastPerformed\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The most recently completed task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastComplete\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The most recently canceled task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastCanceled\n     * @instance\n     * @readOnly\n     */\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    /**\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\n  _exports.TaskGroup = TaskGroup;\n\n  if (_trackedState.TRACKED_INITIAL_TASK_STATE) {\n    Object.defineProperties(TaskGroup.prototype, _trackedState.TRACKED_INITIAL_TASK_STATE);\n  }\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  /**\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  class TaskInstance extends _base.BaseTaskInstance {\n    setState(props) {\n      let state = this._recomputeState(props);\n\n      (0, _utils.assignProperties)(this, { ...props,\n        isRunning: !props.isFinished,\n        isDropped: state === 'dropped',\n        state\n      });\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\n    onStarted() {\n      this.triggerEvent(\"started\", this);\n    }\n\n    onSuccess() {\n      this.triggerEvent(\"succeeded\", this);\n    }\n\n    onError(error) {\n      this.triggerEvent(\"errored\", this, error);\n    }\n\n    onCancel(cancelReason) {\n      this.triggerEvent(\"canceled\", this, cancelReason);\n    }\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\n    getName() {\n      if (!this.name) {\n        this.name = this.task && this.task.name || \"<unknown>\";\n      }\n\n      return this.name;\n    }\n\n    selfCancelLoopWarning(parent) {\n      let parentName = `\\`${parent.getName()}\\``;\n      let childName = `\\`${this.getName()}\\``; // eslint-disable-next-line no-console\n\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\n    triggerEvent(...allArgs) {\n      if (!this.hasEnabledEvents) {\n        return;\n      }\n\n      let taskInstance = this;\n      let task = taskInstance.task;\n      let host = task.context;\n      let eventNamespace = task && task.name;\n\n      if (host && host.trigger && eventNamespace) {\n        let [eventType, ...args] = allArgs;\n        host.trigger(`${eventNamespace}:${eventType}`, ...args);\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\n  }\n\n  _exports.TaskInstance = TaskInstance;\n\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-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/task-decorators\", \"ember-concurrency/-private/task-factory\"], function (_exports, _enqueuedPolicy, _dropPolicy, _keepLatestPolicy, _restartablePolicy, _taskDecorators, _taskFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.taskComputed = taskComputed;\n  _exports.task = task;\n  _exports.taskGroup = taskGroup;\n  _exports.TaskGroupProperty = _exports.TaskProperty = _exports.propertyModifiers = void 0;\n  let taskFactorySymbol = \"__ec_task_factory\";\n  const 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    /**\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    /**\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    /**\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    /**\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    /**\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    /**\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    /**\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    /**\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  _exports.propertyModifiers = propertyModifiers;\n\n  function isDecoratorOptions(possibleOptions) {\n    if (!possibleOptions) {\n      return false;\n    }\n\n    if (typeof possibleOptions === \"function\") {\n      return false;\n    }\n\n    if (typeof possibleOptions === \"object\" && 'perform' in possibleOptions && typeof possibleOptions.perform === \"function\") {\n      return false;\n    }\n\n    return Object.getPrototypeOf(possibleOptions) === Object.prototype;\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    @hideconstructor\n  */\n\n\n  let TaskProperty;\n  _exports.TaskProperty = TaskProperty;\n  let TaskGroupProperty;\n  _exports.TaskGroupProperty = TaskGroupProperty;\n\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 Ember.ComputedProperty {\n      callSuperSetup() {\n        if (super.setup) {\n          super.setup(...arguments);\n        }\n      }\n\n    };\n    _exports.TaskGroupProperty = TaskGroupProperty = class extends Ember.ComputedProperty {};\n  }\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\n      this[taskFactorySymbol].setName(key);\n\n      this[taskFactorySymbol]._setupEmberKVO(proto);\n    },\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    /**\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    /**\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  });\n  const setDecorator = Ember._setClassicDecorator || Ember._setComputedDecorator;\n\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\n        return Ember.computed(fn)(...arguments);\n      };\n\n      setDecorator(cp);\n      return cp;\n    } else {\n      return Ember.computed(fn);\n    }\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   * 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/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\n\n  function task(taskFnOrProtoOrDecoratorOptions, key, descriptor) {\n    if (isDecoratorOptions(taskFnOrProtoOrDecoratorOptions) || key && descriptor) {\n      return (0, _taskDecorators.task)(...arguments);\n    } else {\n      let tp = taskComputed(function () {\n        tp[taskFactorySymbol].setTaskDefinition(tp.taskFn);\n        return tp[taskFactorySymbol].createTask(this);\n      });\n      tp.taskFn = taskFnOrProtoOrDecoratorOptions;\n      tp[taskFactorySymbol] = new _taskFactory.TaskFactory();\n      Object.setPrototypeOf(tp, TaskProperty.prototype);\n      return tp;\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\n\n  function taskGroup(possibleDecoratorOptions, key, descriptor) {\n    if (isDecoratorOptions(possibleDecoratorOptions) || key && descriptor) {\n      return (0, _taskDecorators.taskGroup)(...arguments);\n    } else {\n      let tp = taskComputed(function (key) {\n        tp[taskFactorySymbol].setName(key);\n        return tp[taskFactorySymbol].createTaskGroup(this);\n      });\n      tp[taskFactorySymbol] = new _taskFactory.TaskGroupFactory();\n      Object.setPrototypeOf(tp, TaskGroupProperty.prototype);\n      return tp;\n    }\n  }\n});","define(\"ember-concurrency/-private/task\", [\"exports\", \"ember-concurrency/-private/external/task/task\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/external/task-instance/executor\", \"ember-concurrency/-private/ember-environment\", \"ember-concurrency/-private/taskable-mixin\", \"ember-concurrency/-private/tracked-state\", \"ember-concurrency/-private/external/task-instance/cancelation\"], function (_exports, _task, _taskInstance, _executor, _emberEnvironment, _taskableMixin, _trackedState, _cancelation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EncapsulatedTask = _exports.Task = void 0;\n\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    constructor(options) {\n      super(options);\n\n      if (!Ember._isDestroying(this.context)) {\n        Ember._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     * 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\n    _perform(...args) {\n      return this._performShared(args, _executor.PERFORM_TYPE_DEFAULT, null);\n    }\n\n    _performShared(args, performType, linkedObject) {\n      let fullArgs = this._curryArgs ? [...this._curryArgs, ...args] : args;\n\n      let taskInstance = this._taskInstanceFactory(fullArgs, performType, linkedObject);\n\n      if (performType === _executor.PERFORM_TYPE_LINKED) {\n        linkedObject._expectsLinkedYield = true;\n      }\n\n      if (Ember._isDestroying(this.context)) {\n        // TODO: express this in terms of lifetimes; a task linked to\n        // a dead lifetime should immediately cancel.\n        taskInstance.cancel();\n      }\n\n      this.scheduler.perform(taskInstance);\n      return taskInstance;\n    }\n\n    _taskInstanceFactory(args, performType) {\n      let generatorFactory = () => this.generatorFactory(args);\n\n      let taskInstance = new _taskInstance.TaskInstance({\n        task: this,\n        args,\n        executor: new _executor.TaskInstanceExecutor({\n          generatorFactory,\n          env: _emberEnvironment.EMBER_ENVIRONMENT,\n          debug: this.debug\n        }),\n        performType,\n        hasEnabledEvents: this.hasEnabledEvents\n      });\n      return taskInstance;\n    }\n\n    _curry(...args) {\n      let task = this._clone();\n\n      task._curryArgs = [...(this._curryArgs || []), ...args];\n      return task;\n    }\n\n    _clone() {\n      return new Task(this.options);\n    }\n\n    toString() {\n      return `<Task:${this.name}>`;\n    }\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    /**\n     * `true` if any future task instances are queued.\n     *\n     * @memberof Task\n     * @member {boolean} isQueued\n     * @instance\n     * @readOnly\n     */\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    /**\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    /**\n     * The most recently started task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} last\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The most recently performed task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastPerformed\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The most recently completed task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastComplete\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The most recently canceled task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastCanceled\n     * @instance\n     * @readOnly\n     */\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    /**\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\n  }\n\n  _exports.Task = Task;\n\n  if (_trackedState.TRACKED_INITIAL_TASK_STATE) {\n    Object.defineProperties(Task.prototype, _trackedState.TRACKED_INITIAL_TASK_STATE);\n  }\n\n  Object.assign(Task.prototype, _taskableMixin.TASKABLE_MIXIN);\n\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\n    _taskInstanceFactory(args, performType) {\n      let owner = Ember.getOwner(this.context);\n      let encapsulatedTaskImpl = Ember.Object.extend(this.taskObj).create({\n        context: this.context\n      });\n      Ember.setOwner(encapsulatedTaskImpl, owner);\n\n      let generatorFactory = () => encapsulatedTaskImpl.perform.apply(encapsulatedTaskImpl, args);\n\n      let taskInstance = new _taskInstance.TaskInstance({\n        task: this,\n        args,\n        executor: new _executor.TaskInstanceExecutor({\n          generatorFactory,\n          env: _emberEnvironment.EMBER_ENVIRONMENT,\n          debug: this.debug\n        }),\n        performType,\n        hasEnabledEvents: this.hasEnabledEvents\n      });\n\n      this._encapsulatedTaskStates.set(taskInstance, encapsulatedTaskImpl);\n\n      return this._wrappedEncapsulatedTaskInstance(taskInstance);\n    }\n\n    _wrappedEncapsulatedTaskInstance(taskInstance) {\n      if (!taskInstance) {\n        return null;\n      }\n\n      let _encapsulatedTaskInstanceProxies = this._encapsulatedTaskInstanceProxies;\n\n      let proxy = _encapsulatedTaskInstanceProxies.get(taskInstance);\n\n      if (!proxy) {\n        let encapsulatedTaskImpl = this._encapsulatedTaskStates.get(taskInstance);\n\n        proxy = new Proxy(taskInstance, {\n          get(obj, prop) {\n            return prop in obj ? obj[prop] : Ember.get(encapsulatedTaskImpl, prop.toString());\n          },\n\n          has(obj, prop) {\n            return prop in obj || prop in encapsulatedTaskImpl;\n          },\n\n          ownKeys(obj) {\n            return Reflect.ownKeys(obj).concat(Reflect.ownKeys(encapsulatedTaskImpl));\n          },\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\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\n            return prop in obj ? Reflect.defineProperty(obj, prop, descriptor) : Reflect.defineProperty(encapsulatedTaskImpl, prop, descriptor);\n          },\n\n          getOwnPropertyDescriptor(obj, prop) {\n            return prop in obj ? Reflect.getOwnPropertyDescriptor(obj, prop) : Reflect.getOwnPropertyDescriptor(encapsulatedTaskImpl, prop);\n          }\n\n        });\n\n        _encapsulatedTaskInstanceProxies.set(taskInstance, proxy);\n      }\n\n      return proxy;\n    }\n\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 = {\n    _performCount: 0,\n\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\n    onState(state, task) {\n      if (task.onStateCallback) {\n        task.onStateCallback(state, task);\n      }\n    }\n\n  };\n  _exports.TASKABLE_MIXIN = TASKABLE_MIXIN;\n});","define(\"ember-concurrency/-private/tracked-state\", [\"exports\", \"ember-concurrency/-private/external/task/default-state\", \"ember-concurrency/-private/external/task-instance/initial-state\", \"ember-concurrency/-private/utils\"], function (_exports, _defaultState, _initialState, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TRACKED_INITIAL_INSTANCE_STATE = _exports.TRACKED_INITIAL_TASK_STATE = void 0;\n\n  function trackMixin(proto, obj, key) {\n    const propDesc = Object.getOwnPropertyDescriptor(proto, key);\n\n    propDesc.initializer = propDesc.initializer || (() => proto[key]);\n\n    delete propDesc.value;\n\n    const desc = Ember._tracked(obj, key, propDesc);\n\n    obj[key] = desc;\n    return obj;\n  }\n\n  function applyTracked(proto, initial) {\n    return Object.keys(proto).reduce((acc, key) => {\n      return trackMixin(proto, acc, key);\n    }, initial);\n  }\n\n  let TRACKED_INITIAL_TASK_STATE;\n  _exports.TRACKED_INITIAL_TASK_STATE = TRACKED_INITIAL_TASK_STATE;\n  let TRACKED_INITIAL_INSTANCE_STATE;\n  _exports.TRACKED_INITIAL_INSTANCE_STATE = TRACKED_INITIAL_INSTANCE_STATE;\n\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-concurrency/-private/ember-environment\", \"ember-concurrency/-private/external/yieldables\"], function (_exports, _emberEnvironment, _yieldables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isEventedObject = isEventedObject;\n  _exports.timeout = timeout;\n  _exports.deprecatePrivateModule = deprecatePrivateModule;\n  _exports.EmberYieldable = _exports.assignProperties = _exports.USE_TRACKED = void 0;\n  const USE_TRACKED = true;\n  _exports.USE_TRACKED = USE_TRACKED;\n  const assignProperties = USE_TRACKED ? Object.assign : Ember.setProperties;\n  _exports.assignProperties = assignProperties;\n\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\n  class EmberYieldable extends _yieldables.Yieldable {\n    _deferable() {\n      return _emberEnvironment.EMBER_ENVIRONMENT.defer();\n    }\n\n  }\n\n  _exports.EmberYieldable = EmberYieldable;\n\n  class TimeoutYieldable extends EmberYieldable {\n    constructor(ms) {\n      super();\n      this.ms = ms;\n    }\n\n    onYield(state) {\n      let timerId = Ember.run.later(() => state.next(), this.ms);\n      return () => Ember.run.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\n\n  function timeout(ms) {\n    return new TimeoutYieldable(ms);\n  }\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-concurrency/-private/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.waitForQueue = waitForQueue;\n  _exports.waitForEvent = waitForEvent;\n  _exports.waitForProperty = waitForProperty;\n\n  class WaitForQueueYieldable extends _utils.EmberYieldable {\n    constructor(queueName) {\n      super();\n      this.queueName = queueName;\n    }\n\n    onYield(state) {\n      let timerId;\n\n      try {\n        timerId = Ember.run.schedule(this.queueName, () => state.next());\n      } catch (error) {\n        state.throw(error);\n      }\n\n      return () => Ember.run.cancel(timerId);\n    }\n\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\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\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\n    onYield(state) {\n      let fn = null;\n\n      let disposer = () => {\n        fn && this.off(fn);\n        fn = null;\n      };\n\n      fn = event => {\n        disposer();\n        state.next(event);\n      };\n\n      this.on(fn);\n      return disposer;\n    }\n\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\n      if (typeof predicateCallback === \"function\") {\n        this.predicateCallback = predicateCallback;\n      } else {\n        this.predicateCallback = v => v === predicateCallback;\n      }\n    }\n\n    onYield(state) {\n      let observerBound = false;\n\n      let observerFn = () => {\n        let value = Ember.get(this.object, this.key);\n        let predicateValue = this.predicateCallback(value);\n\n        if (predicateValue) {\n          state.next(value);\n          return true;\n        }\n      };\n\n      if (!observerFn()) {\n        Ember.addObserver(this.object, this.key, null, observerFn);\n        observerBound = true;\n      }\n\n      return () => {\n        if (observerBound && observerFn) {\n          Ember.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\n\n  function waitForQueue(queueName) {\n    return new WaitForQueueYieldable(queueName);\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\n\n  function waitForEvent(object, eventName) {\n    (true && !((0, _utils.isEventedObject)(object)) && Ember.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   * 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\n\n  function waitForProperty(object, key, predicateCallback) {\n    return new WaitForPropertyYieldable(object, key, predicateCallback);\n  }\n});","define(\"ember-concurrency/-property-modifiers-mixin\", [\"exports\", \"ember-concurrency/-scheduler\", \"ember-concurrency/-buffer-policy\"], function (_exports, _scheduler, _bufferPolicy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.resolveScheduler = resolveScheduler;\n  _exports.propertyModifiers = void 0;\n  const propertyModifiers = {\n    // by default, task(...) expands to task(...).enqueue().maxConcurrency(Infinity)\n    _bufferPolicy: _bufferPolicy.enqueueTasksPolicy,\n    _maxConcurrency: Infinity,\n    _taskGroupPath: null,\n    _hasUsedModifier: false,\n    _hasSetBufferPolicy: false,\n    _hasEnabledEvents: false,\n\n    restartable() {\n      return setBufferPolicy(this, _bufferPolicy.cancelOngoingTasksPolicy);\n    },\n\n    enqueue() {\n      return setBufferPolicy(this, _bufferPolicy.enqueueTasksPolicy);\n    },\n\n    drop() {\n      return setBufferPolicy(this, _bufferPolicy.dropQueuedTasksPolicy);\n    },\n\n    keepLatest() {\n      return setBufferPolicy(this, _bufferPolicy.dropButKeepLatestPolicy);\n    },\n\n    maxConcurrency(n) {\n      this._hasUsedModifier = true;\n      this._maxConcurrency = n;\n      assertModifiersNotMixedWithGroup(this);\n      return this;\n    },\n\n    group(taskGroupPath) {\n      this._taskGroupPath = taskGroupPath;\n      assertModifiersNotMixedWithGroup(this);\n      return this;\n    },\n\n    evented() {\n      this._hasEnabledEvents = true;\n      return this;\n    },\n\n    debug() {\n      this._debug = true;\n      return this;\n    }\n\n  };\n  _exports.propertyModifiers = propertyModifiers;\n\n  function setBufferPolicy(obj, policy) {\n    obj._hasSetBufferPolicy = true;\n    obj._hasUsedModifier = true;\n    obj._bufferPolicy = policy;\n    assertModifiersNotMixedWithGroup(obj);\n\n    if (obj._maxConcurrency === Infinity) {\n      obj._maxConcurrency = 1;\n    }\n\n    return obj;\n  }\n\n  function assertModifiersNotMixedWithGroup(obj) {\n    (true && !(!obj._hasUsedModifier || !obj._taskGroupPath) && Ember.assert(`ember-concurrency does not currently support using both .group() with other task modifiers (e.g. drop(), enqueue(), restartable())`, !obj._hasUsedModifier || !obj._taskGroupPath));\n  }\n\n  function resolveScheduler(propertyObj, obj, TaskGroup) {\n    if (propertyObj._taskGroupPath) {\n      let taskGroup = Ember.get(obj, propertyObj._taskGroupPath);\n      (true && !(taskGroup instanceof TaskGroup) && Ember.assert(`Expected path '${propertyObj._taskGroupPath}' to resolve to a TaskGroup object, but instead was ${taskGroup}`, taskGroup instanceof TaskGroup));\n      return taskGroup._scheduler;\n    } else {\n      return _scheduler.default.create({\n        bufferPolicy: propertyObj._bufferPolicy,\n        maxConcurrency: propertyObj._maxConcurrency\n      });\n    }\n  }\n});","define(\"ember-concurrency/-scheduler\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let SEEN_INDEX = 0;\n  const Scheduler = Ember.Object.extend({\n    lastPerformed: null,\n    lastStarted: null,\n    lastRunning: null,\n    lastSuccessful: null,\n    lastComplete: null,\n    lastErrored: null,\n    lastCanceled: null,\n    lastIncomplete: null,\n    performCount: 0,\n    boundHandleFulfill: null,\n    boundHandleReject: null,\n\n    init() {\n      this._super(...arguments);\n\n      this.activeTaskInstances = [];\n      this.queuedTaskInstances = [];\n    },\n\n    cancelAll(reason) {\n      let seen = [];\n      this.spliceTaskInstances(reason, this.activeTaskInstances, 0, this.activeTaskInstances.length, seen);\n      this.spliceTaskInstances(reason, this.queuedTaskInstances, 0, this.queuedTaskInstances.length, seen);\n      flushTaskCounts(seen);\n    },\n\n    spliceTaskInstances(cancelReason, taskInstances, index, count, seen) {\n      for (let i = index; i < index + count; ++i) {\n        let taskInstance = taskInstances[i];\n\n        if (!taskInstance.hasStarted) {\n          // This tracking logic is kinda spread all over the place...\n          // maybe TaskInstances themselves could notify\n          // some delegate of queued state changes upon cancelation?\n          Ember.set(taskInstance.task, 'numQueued', taskInstance.task.numQueued - 1);\n        }\n\n        taskInstance.cancel(cancelReason);\n\n        if (seen) {\n          seen.push(taskInstance.task);\n        }\n      }\n\n      taskInstances.splice(index, count);\n    },\n\n    schedule(taskInstance) {\n      Ember.set(this, 'lastPerformed', taskInstance);\n      Ember.set(this, 'performCount', this.performCount + 1);\n      Ember.set(taskInstance.task, 'numQueued', taskInstance.task.numQueued + 1);\n      this.queuedTaskInstances.push(taskInstance);\n\n      this._flushQueues();\n    },\n\n    _flushQueues() {\n      let seen = [];\n\n      for (let i = 0; i < this.activeTaskInstances.length; ++i) {\n        seen.push(this.activeTaskInstances[i].task);\n      }\n\n      this.activeTaskInstances = filterFinished(this.activeTaskInstances);\n      this.bufferPolicy.schedule(this);\n      var lastStarted = null;\n\n      for (let i = 0; i < this.activeTaskInstances.length; ++i) {\n        let taskInstance = this.activeTaskInstances[i];\n\n        if (!taskInstance.hasStarted) {\n          this._startTaskInstance(taskInstance);\n\n          lastStarted = taskInstance;\n        }\n\n        seen.push(taskInstance.task);\n      }\n\n      if (lastStarted) {\n        Ember.set(this, 'lastStarted', lastStarted);\n      }\n\n      Ember.set(this, 'lastRunning', lastStarted);\n\n      for (let i = 0; i < this.queuedTaskInstances.length; ++i) {\n        seen.push(this.queuedTaskInstances[i].task);\n      }\n\n      flushTaskCounts(seen);\n      Ember.set(this, 'concurrency', this.activeTaskInstances.length);\n    },\n\n    _startTaskInstance(taskInstance) {\n      let task = taskInstance.task;\n      Ember.set(task, 'numQueued', task.numQueued - 1);\n      Ember.set(task, 'numRunning', task.numRunning + 1);\n\n      taskInstance._start()._onFinalize(() => {\n        Ember.set(task, 'numRunning', task.numRunning - 1);\n        var state = taskInstance._completionState;\n        Ember.set(this, 'lastComplete', taskInstance);\n\n        if (state === 1) {\n          Ember.set(this, 'lastSuccessful', taskInstance);\n        } else {\n          if (state === 2) {\n            Ember.set(this, 'lastErrored', taskInstance);\n          } else if (state === 3) {\n            Ember.set(this, 'lastCanceled', taskInstance);\n          }\n\n          Ember.set(this, 'lastIncomplete', taskInstance);\n        }\n\n        Ember.run.once(this, this._flushQueues);\n      });\n    }\n\n  });\n\n  function flushTaskCounts(tasks) {\n    SEEN_INDEX++;\n\n    for (let i = 0, l = tasks.length; i < l; ++i) {\n      let task = tasks[i];\n\n      if (task._seenIndex < SEEN_INDEX) {\n        task._seenIndex = SEEN_INDEX;\n        updateTaskChainCounts(task);\n      }\n    }\n  }\n\n  function updateTaskChainCounts(task) {\n    let numRunning = task.numRunning;\n    let numQueued = task.numQueued;\n    let taskGroup = Ember.get(task, 'group');\n\n    while (taskGroup) {\n      Ember.set(taskGroup, 'numRunning', numRunning);\n      Ember.set(taskGroup, 'numQueued', numQueued);\n      taskGroup = Ember.get(taskGroup, 'group');\n    }\n  }\n\n  function filterFinished(taskInstances) {\n    let ret = [];\n\n    for (let i = 0, l = taskInstances.length; i < l; ++i) {\n      let taskInstance = taskInstances[i];\n\n      if (taskInstance.isFinished === false) {\n        ret.push(taskInstance);\n      }\n    }\n\n    return ret;\n  }\n\n  var _default = Scheduler;\n  _exports.default = _default;\n});","define(\"ember-concurrency/-task-group\", [\"exports\", \"ember-concurrency/utils\", \"ember-concurrency/-task-state-mixin\", \"ember-concurrency/-property-modifiers-mixin\"], function (_exports, _utils, _taskStateMixin, _propertyModifiersMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskGroupProperty = _exports.TaskGroup = void 0;\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 Controller.extend({\n   *   chores: taskGroup().drop(),\n   *\n   *   mowLawn:       task(taskFn).group('chores'),\n   *   doDishes:      task(taskFn).group('chores'),\n   *   changeDiapers: task(taskFn).group('chores')\n   * });\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  const TaskGroup = Ember.Object.extend(_taskStateMixin.default, {\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    /**\n     * `true` if any future task instances are queued.\n     *\n     * @memberof TaskGroup\n     * @member {boolean} isQueued\n     * @instance\n     * @readOnly\n     */\n\n    /**\n     * `true` if the task group is not in the running or queued state.\n     *\n     * @memberof TaskGroup\n     * @member {boolean} isIdle\n     * @instance\n     * @readOnly\n     */\n\n    /**\n     * The current state of the task group: `\"running\"`, `\"queued\"` or `\"idle\"`.\n     *\n     * @memberof TaskGroup\n     * @member {string} state\n     * @instance\n     * @readOnly\n     */\n\n    /**\n     * The most recently started task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} last\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The most recently performed task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastPerformed\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The most recently completed task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastComplete\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The most recently canceled task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastCanceled\n     * @instance\n     * @readOnly\n     */\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    /**\n     * The number of times this task group has been performed.\n     *\n     * @memberof TaskGroup\n     * @member {number} performCount\n     * @instance\n     * @readOnly\n     */\n\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 {Object} [options]\n     * @param {string} [options.reason=.cancelAll() was explicitly called on the Task] - a descriptive reason the task group was cancelled\n     * @param {boolean} [options.resetState] - if true, will clear the task group state (`last*` and `performCount` properties will be set to initial values)\n     * @instance\n     */\n    isTaskGroup: true,\n\n    toString() {\n      return `<TaskGroup:${this._propertyName}>`;\n    },\n\n    _numRunningOrNumQueued: Ember.computed.or('numRunning', 'numQueued'),\n    isRunning: Ember.computed.bool('_numRunningOrNumQueued'),\n    isQueued: false\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 Controller.extend({\n   *   chores: taskGroup().drop(),\n   *\n   *   mowLawn:       task(taskFn).group('chores'),\n   *   doDishes:      task(taskFn).group('chores'),\n   *   changeDiapers: task(taskFn).group('chores')\n   * });\n   * ```\n   *\n   *\n   * <style>\n   *   .ignore-this--this-is-here-to-hide-constructor,\n   *   #TaskGroupProperty{ display: none }\n   * </style>\n   *\n   * @class TaskGroupProperty\n   */\n\n  _exports.TaskGroup = TaskGroup;\n  let TaskGroupProperty;\n  _exports.TaskGroupProperty = TaskGroupProperty;\n\n  if (true) {\n    _exports.TaskGroupProperty = TaskGroupProperty = class {};\n  } else {\n    _exports.TaskGroupProperty = TaskGroupProperty = class extends _utils._ComputedProperty {};\n  }\n  /**\n   * Configures the task group to cancel old currently task\n   * instances to make room for a new one to perform. Sets\n   * default maxConcurrency to 1.\n   *\n   * [See the Live Example](/#/docs/examples/route-tasks/1)\n   *\n   * @method restartable\n   * @memberof TaskGroupProperty\n   * @instance\n   */\n\n  /**\n   * Configures the task group to run task instances\n   * one-at-a-time in the order they were `.perform()`ed.\n   * Sets default maxConcurrency to 1.\n   *\n   * @method enqueue\n   * @memberof TaskGroupProperty\n   * @instance\n   */\n\n  /**\n   * Configures the task group to immediately cancel (i.e.\n   * drop) any task instances performed when the task group\n   * is already running at maxConcurrency. Sets default\n   * maxConcurrency to 1.\n   *\n   * @method drop\n   * @memberof TaskGroupProperty\n   * @instance\n   */\n\n  /**\n   * Configures the task group to drop all but the most\n   * recently performed {@linkcode TaskInstance }.\n   *\n   * @method keepLatest\n   * @memberof TaskGroupProperty\n   * @instance\n   */\n\n  /**\n   * Sets the maximum number of task instances that are\n   * allowed to run in this task group at the same time.\n   * By default, with no task modifiers applied, this number\n   * is Infinity (there is no limit to the number of tasks\n   * that can run at the same time).\n   * {@linkcode TaskGroupProperty#restartable .restartable()},\n   * {@linkcode TaskGroupProperty#enqueue .enqueue()}, and\n   * {@linkcode TaskGroupProperty#drop .drop()} set the\n   * default maxConcurrency to 1, but you can override this\n   * value to set the maximum number of concurrently running\n   * tasks 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 group with `maxConcurrency(3)`\n   * to limit the number of concurrent AJAX requests (for anyone\n   * using tasks in this group) to 3.\n   *\n   * ```js\n   * ajax: taskGroup().maxConcurrency(3),\n   *\n   * doSomeAjax: task(function * (url) {\n   *   return Ember.$.getJSON(url).promise();\n   * }).group('ajax'),\n   *\n   * doSomeAjax: task(function * (url) {\n   *   return Ember.$.getJSON(url).promise();\n   * }).group('ajax'),\n   *\n   * elsewhere() {\n   *   this.get('doSomeAjax').perform(\"http://www.example.com/json\");\n   * },\n   * ```\n   *\n   * @method maxConcurrency\n   * @memberof TaskGroupProperty\n   * @param {Number} n The maximum number of concurrently running tasks\n   * @instance\n   */\n\n\n  (0, _utils.objectAssign)(TaskGroupProperty.prototype, _propertyModifiersMixin.propertyModifiers);\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 = _taskInstance.TaskInstance;\n  _exports.default = _default;\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/-task-state-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    alias\n  } = Ember.computed; // this is a mixin of properties/methods shared between Tasks and TaskGroups\n\n  var _default = Ember.Mixin.create({\n    isRunning: Ember.computed.gt('numRunning', 0),\n    isQueued: Ember.computed.gt('numQueued', 0),\n    isIdle: Ember.computed('isRunning', 'isQueued', function () {\n      return !this.get('isRunning') && !this.get('isQueued');\n    }),\n    state: Ember.computed('isRunning', 'isQueued', function () {\n      if (this.get('isRunning')) {\n        return 'running';\n      } else if (this.get('isQueued')) {\n        return 'queued';\n      } else {\n        return 'idle';\n      }\n    }),\n    _propertyName: null,\n    _origin: null,\n    name: alias('_propertyName'),\n    concurrency: alias('numRunning'),\n    last: alias('_scheduler.lastStarted'),\n    lastRunning: alias('_scheduler.lastRunning'),\n    lastPerformed: alias('_scheduler.lastPerformed'),\n    lastSuccessful: alias('_scheduler.lastSuccessful'),\n    lastComplete: alias('_scheduler.lastComplete'),\n    lastErrored: alias('_scheduler.lastErrored'),\n    lastCanceled: alias('_scheduler.lastCanceled'),\n    lastIncomplete: alias('_scheduler.lastIncomplete'),\n    performCount: alias('_scheduler.performCount'),\n    numRunning: 0,\n    numQueued: 0,\n    _seenIndex: 0,\n\n    cancelAll(options) {\n      let {\n        reason,\n        resetState\n      } = options || {};\n      reason = reason || \".cancelAll() was explicitly called on the Task\";\n\n      this._scheduler.cancelAll(reason);\n\n      if (resetState) {\n        this._resetState();\n      }\n    },\n\n    group: Ember.computed(function () {\n      return this._taskGroupPath && Ember.get(this.context, this._taskGroupPath);\n    }),\n    _scheduler: null,\n\n    _resetState() {\n      this.setProperties({\n        'last': null,\n        'lastRunning': null,\n        'lastStarted': null,\n        'lastPerformed': null,\n        'lastSuccessful': null,\n        'lastComplete': null,\n        'lastErrored': null,\n        'lastCanceled': null,\n        'lastIncomplete': null,\n        'performCount': 0\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-concurrency/-wait-for\", [\"exports\", \"ember-concurrency/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.waitForQueue = waitForQueue;\n  _exports.waitForEvent = waitForEvent;\n  _exports.waitForProperty = waitForProperty;\n\n  class WaitForQueueYieldable extends _utils.Yieldable {\n    constructor(queueName) {\n      super();\n      this.queueName = queueName;\n      this.timerId = null;\n    }\n\n    [_utils.yieldableSymbol](taskInstance, resumeIndex) {\n      try {\n        this.timerId = Ember.run.schedule(this.queueName, () => {\n          taskInstance.proceed(resumeIndex, _utils.YIELDABLE_CONTINUE, null);\n        });\n      } catch (error) {\n        taskInstance.proceed(resumeIndex, _utils.YIELDABLE_THROW, error);\n      }\n    }\n\n    [_utils.cancelableSymbol]() {\n      Ember.run.cancel(this.timerId);\n      this.timerId = null;\n    }\n\n  }\n\n  class WaitForEventYieldable extends _utils.Yieldable {\n    constructor(object, eventName) {\n      super();\n      this.object = object;\n      this.eventName = eventName;\n      this.fn = null;\n      this.didFinish = false;\n      this.usesDOMEvents = false;\n      this.requiresCleanup = false;\n    }\n\n    [_utils.yieldableSymbol](taskInstance, resumeIndex) {\n      this.fn = event => {\n        this.didFinish = true;\n\n        this[_utils.cancelableSymbol]();\n\n        taskInstance.proceed(resumeIndex, _utils.YIELDABLE_CONTINUE, event);\n      };\n\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, this.fn);\n      } else if (typeof this.object.one === 'function') {\n        // assume that we're dealing with either `Ember.Evented` or a compatible\n        // interface, like jQuery.\n        this.object.one(this.eventName, this.fn);\n      } else {\n        this.requiresCleanup = true;\n        this.object.on(this.eventName, this.fn);\n      }\n    }\n\n    [_utils.cancelableSymbol]() {\n      if (this.fn) {\n        if (this.usesDOMEvents) {\n          // unfortunately this is required, because IE 11 does not support the\n          // `once` option: https://caniuse.com/#feat=once-event-listener\n          this.object.removeEventListener(this.eventName, this.fn);\n        } else if (!this.didFinish || this.requiresCleanup) {\n          this.object.off(this.eventName, this.fn);\n        }\n\n        this.fn = null;\n      }\n    }\n\n  }\n\n  class WaitForPropertyYieldable extends _utils.Yieldable {\n    constructor(object, key, predicateCallback = Boolean) {\n      super();\n      this.object = object;\n      this.key = key;\n\n      if (typeof predicateCallback === 'function') {\n        this.predicateCallback = predicateCallback;\n      } else {\n        this.predicateCallback = v => v === predicateCallback;\n      }\n\n      this.observerBound = false;\n    }\n\n    [_utils.yieldableSymbol](taskInstance, resumeIndex) {\n      this.observerFn = () => {\n        let value = Ember.get(this.object, this.key);\n        let predicateValue = this.predicateCallback(value);\n\n        if (predicateValue) {\n          taskInstance.proceed(resumeIndex, _utils.YIELDABLE_CONTINUE, value);\n          return true;\n        }\n      };\n\n      if (!this.observerFn()) {\n        Ember.addObserver(this.object, this.key, null, this.observerFn);\n        this.observerBound = true;\n      }\n    }\n\n    [_utils.cancelableSymbol]() {\n      if (this.observerBound && this.observerFn) {\n        Ember.removeObserver(this.object, this.key, null, this.observerFn);\n        this.observerFn = null;\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 Component.extend({\n   *   myTask: task(function * () {\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\n\n  function waitForQueue(queueName) {\n    return new WaitForQueueYieldable(queueName);\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 Component.extend({\n   *   myTask: task(function * () {\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\n\n  function waitForEvent(object, eventName) {\n    (true && !((0, _utils.isEventedObject)(object)) && Ember.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   * 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 Component.extend({\n   *   foo: 0,\n   *\n   *   myTask: task(function * () {\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.set('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\n\n  function waitForProperty(object, key, predicateCallback) {\n    return new WaitForPropertyYieldable(object, key, predicateCallback);\n  }\n});","define(\"ember-concurrency/helpers/cancel-all\", [\"exports\", \"ember-concurrency/-private/helpers\"], function (_exports, _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\n  function cancelHelper(args) {\n    let cancelable = args[0];\n\n    if (!cancelable || typeof cancelable.cancelAll !== 'function') {\n      (true && !(false) && Ember.assert(`The first argument passed to the \\`cancel-all\\` helper should be a Task or TaskGroup (without quotes); you passed ${cancelable}`, false));\n    }\n\n    return (0, _helpers.taskHelperClosure)('cancel-all', 'cancelAll', [cancelable, {\n      reason: CANCEL_REASON\n    }]);\n  }\n\n  var _default = Ember.Helper.helper(cancelHelper);\n\n  _exports.default = _default;\n});","define(\"ember-concurrency/helpers/perform\", [\"exports\", \"ember-concurrency/-private/helpers\"], function (_exports, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.performHelper = performHelper;\n  _exports.default = void 0;\n\n  function performHelper(args, hash) {\n    return (0, _helpers.taskHelperClosure)('perform', 'perform', args, hash);\n  }\n\n  var _default = Ember.Helper.helper(performHelper);\n\n  _exports.default = _default;\n});","define(\"ember-concurrency/helpers/task\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function taskHelper([task, ...args]) {\n    return task._curry(...args);\n  }\n\n  var _default = Ember.Helper.helper(taskHelper);\n\n  _exports.default = _default;\n});","define(\"ember-concurrency/index\", [\"exports\", \"ember-concurrency/-private/utils\", \"ember-concurrency/-private/task-properties\", \"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\"], function (_exports, _utils, _taskProperties, _taskInstance, _cancelablePromiseHelpers, _waitFor, _cancelation, _yieldables, _task, _taskGroup, _taskDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"timeout\", {\n    enumerable: true,\n    get: function () {\n      return _utils.timeout;\n    }\n  });\n  Object.defineProperty(_exports, \"Yieldable\", {\n    enumerable: true,\n    get: function () {\n      return _utils.EmberYieldable;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskProperty\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.TaskProperty;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskGroupProperty\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.TaskGroupProperty;\n    }\n  });\n  Object.defineProperty(_exports, \"task\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.task;\n    }\n  });\n  Object.defineProperty(_exports, \"taskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.taskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskInstance\", {\n    enumerable: true,\n    get: function () {\n      return _taskInstance.TaskInstance;\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, \"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, \"race\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.race;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForQueue\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.waitForQueue;\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, \"didCancel\", {\n    enumerable: true,\n    get: function () {\n      return _cancelation.didCancel;\n    }\n  });\n  Object.defineProperty(_exports, \"animationFrame\", {\n    enumerable: true,\n    get: function () {\n      return _yieldables.animationFrame;\n    }\n  });\n  Object.defineProperty(_exports, \"forever\", {\n    enumerable: true,\n    get: function () {\n      return _yieldables.forever;\n    }\n  });\n  Object.defineProperty(_exports, \"rawTimeout\", {\n    enumerable: true,\n    get: function () {\n      return _yieldables.rawTimeout;\n    }\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, \"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, \"lastValue\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.lastValue;\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, \"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});","define(\"ember-concurrency/initializers/ember-concurrency\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // This initializer exists only to make sure that the following\n  // imports happen before the app boots.\n  var _default = {\n    name: 'ember-concurrency',\n    initialize: function () {}\n  };\n  _exports.default = _default;\n});","define(\"ember-concurrency/utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isEventedObject = isEventedObject;\n  _exports._cleanupOnDestroy = _cleanupOnDestroy;\n  _exports.timeout = timeout;\n  _exports.raw = raw;\n  _exports.rawTimeout = rawTimeout;\n  _exports.animationFrame = animationFrame;\n  _exports.yieldableToPromise = yieldableToPromise;\n  _exports.RawValue = _exports.forever = _exports.Yieldable = _exports._ComputedProperty = _exports.YIELDABLE_CANCEL = _exports.YIELDABLE_RETURN = _exports.YIELDABLE_THROW = _exports.YIELDABLE_CONTINUE = _exports.yieldableSymbol = _exports.cancelableSymbol = _exports.INVOKE = _exports.objectAssign = _exports.Arguments = void 0;\n\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\n  class Arguments {\n    constructor(args, defer) {\n      this.args = args;\n      this.defer = defer;\n    }\n\n    resolve(value) {\n      if (this.defer) {\n        this.defer.resolve(value);\n      }\n    }\n\n  }\n\n  _exports.Arguments = Arguments;\n\n  let objectAssign = Object.assign || function objectAssign(target) {\n    'use strict';\n\n    if (target == null) {\n      throw new TypeError('Cannot convert undefined or null to object');\n    }\n\n    target = Object(target);\n\n    for (var index = 1; index < arguments.length; index++) {\n      var source = arguments[index];\n\n      if (source != null) {\n        for (var key in source) {\n          if (Object.prototype.hasOwnProperty.call(source, key)) {\n            target[key] = source[key];\n          }\n        }\n      }\n    }\n\n    return target;\n  };\n\n  _exports.objectAssign = objectAssign;\n\n  function _cleanupOnDestroy(owner, object, cleanupMethodName, ...args) {\n    // TODO: find a non-mutate-y, non-hacky way of doing this.\n    if (!owner.willDestroy) {\n      // we're running in non Ember object (possibly in a test mock)\n      return;\n    }\n\n    if (!owner.willDestroy.__ember_processes_destroyers__) {\n      let oldWillDestroy = owner.willDestroy;\n      let disposers = [];\n\n      owner.willDestroy = function () {\n        for (let i = 0, l = disposers.length; i < l; i++) {\n          disposers[i]();\n        }\n\n        oldWillDestroy.apply(owner, arguments);\n      };\n\n      owner.willDestroy.__ember_processes_destroyers__ = disposers;\n    }\n\n    owner.willDestroy.__ember_processes_destroyers__.push(() => {\n      object[cleanupMethodName](...args);\n    });\n  }\n\n  let INVOKE = \"__invoke_symbol__\";\n  _exports.INVOKE = INVOKE;\n  let locations = ['@ember/-internals/glimmer/index', '@ember/-internals/glimmer', 'ember-glimmer', 'ember-glimmer/helpers/action', 'ember-htmlbars/keywords/closure-action', 'ember-routing-htmlbars/keywords/closure-action', 'ember-routing/keywords/closure-action'];\n\n  for (let i = 0; i < locations.length; i++) {\n    if (locations[i] in Ember.__loader.registry) {\n      _exports.INVOKE = INVOKE = Ember.__loader.require(locations[i])['INVOKE'];\n      break;\n    }\n  } // TODO: Symbol polyfill?\n\n\n  const cancelableSymbol = \"__ec_cancel__\";\n  _exports.cancelableSymbol = cancelableSymbol;\n  const yieldableSymbol = \"__ec_yieldable__\";\n  _exports.yieldableSymbol = yieldableSymbol;\n  const YIELDABLE_CONTINUE = \"next\";\n  _exports.YIELDABLE_CONTINUE = YIELDABLE_CONTINUE;\n  const YIELDABLE_THROW = \"throw\";\n  _exports.YIELDABLE_THROW = YIELDABLE_THROW;\n  const YIELDABLE_RETURN = \"return\";\n  _exports.YIELDABLE_RETURN = YIELDABLE_RETURN;\n  const YIELDABLE_CANCEL = \"cancel\";\n  _exports.YIELDABLE_CANCEL = YIELDABLE_CANCEL;\n  const _ComputedProperty = Ember.ComputedProperty;\n  _exports._ComputedProperty = _ComputedProperty;\n\n  class Yieldable {\n    constructor() {\n      this[yieldableSymbol] = this[yieldableSymbol].bind(this);\n      this[cancelableSymbol] = this[cancelableSymbol].bind(this);\n    }\n\n    then(...args) {\n      return yieldableToPromise(this).then(...args);\n    }\n\n    [yieldableSymbol]() {}\n\n    [cancelableSymbol]() {}\n\n  }\n\n  _exports.Yieldable = Yieldable;\n\n  class TimeoutYieldable extends Yieldable {\n    constructor(ms) {\n      super();\n      this.ms = ms;\n      this.timerId = null;\n    }\n\n    [yieldableSymbol](taskInstance, resumeIndex) {\n      this.timerId = Ember.run.later(() => {\n        taskInstance.proceed(resumeIndex, YIELDABLE_CONTINUE, taskInstance._result);\n      }, this.ms);\n    }\n\n    [cancelableSymbol]() {\n      Ember.run.cancel(this.timerId);\n      this.timerId = null;\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 Component.extend({\n   *   myTask: task(function * () {\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\n\n  function timeout(ms) {\n    return new TimeoutYieldable(ms);\n  }\n  /**\n   *\n   * Yielding `forever` will pause a task indefinitely until\n   * it is cancelled (i.e. via host object destruction, .restartable(),\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   *\n   * export default Component.extend({\n   *   myService: service(),\n   *   myTask: task(function * () {\n   *     yield this.myService.doSomethingThatCausesATransition();\n   *     yield forever;\n   *   })\n   * });\n   * ```\n   */\n\n\n  class ForeverYieldable extends Yieldable {\n    [yieldableSymbol]() {}\n\n    [cancelableSymbol]() {}\n\n  }\n\n  const forever = new ForeverYieldable();\n  _exports.forever = forever;\n\n  class RawValue {\n    constructor(value) {\n      this.value = value;\n    }\n\n  }\n\n  _exports.RawValue = RawValue;\n\n  function raw(value) {\n    return new RawValue(value);\n  }\n\n  class RawTimeoutYieldable extends Yieldable {\n    constructor(ms) {\n      super();\n      this.ms = ms;\n      this.timerId = null;\n    }\n\n    [yieldableSymbol](taskInstance, resumeIndex) {\n      this.timerId = setTimeout(() => {\n        taskInstance.proceed(resumeIndex, YIELDABLE_CONTINUE, taskInstance._result);\n      }, this.ms);\n    }\n\n    [cancelableSymbol]() {\n      clearTimeout(this.timerId);\n      this.timerId = null;\n    }\n\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 Component.extend({\n   *   myTask: task(function * () {\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\n\n  function rawTimeout(ms) {\n    return new RawTimeoutYieldable(ms);\n  }\n\n  class AnimationFrameYieldable extends Yieldable {\n    constructor() {\n      super();\n      this.timerId = null;\n    }\n\n    [yieldableSymbol](taskInstance, resumeIndex) {\n      this.timerId = requestAnimationFrame(() => {\n        taskInstance.proceed(resumeIndex, YIELDABLE_CONTINUE, taskInstance._result);\n      });\n    }\n\n    [cancelableSymbol]() {\n      cancelAnimationFrame(this.timerId);\n      this.timerId = null;\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 Component.extend({\n   *   myTask: task(function * () {\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\n\n  function animationFrame() {\n    return new AnimationFrameYieldable();\n  }\n\n  function yieldableToPromise(yieldable) {\n    let def = Ember.RSVP.defer();\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    };\n    let maybeDisposer = yieldable[yieldableSymbol](thinInstance, 0);\n    def.promise[cancelableSymbol] = maybeDisposer || yieldable[cancelableSymbol];\n    return def.promise;\n  }\n});","define(\"ember-cookies/services/cookies\", [\"exports\", \"ember-cookies/utils/serialize-cookie\"], function (_exports, _serializeCookie) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    keys\n  } = Object;\n  const assign = Object.assign || Ember.assign || Ember.merge;\n  const DEFAULTS = {\n    raw: false\n  };\n  const MAX_COOKIE_BYTE_LENGTH = 4096;\n\n  var _default = Ember.Service.extend({\n    init() {\n      this._super(...arguments);\n\n      this._document = this._document || window.document;\n\n      if (typeof this._fastBoot === 'undefined') {\n        let owner = Ember.getOwner(this);\n        this._fastBoot = owner.lookup('service:fastboot');\n      }\n    },\n\n    _getDocumentCookies() {\n      let all = this._document.cookie.split(';');\n\n      let filtered = this._filterDocumentCookies(all);\n\n      return filtered.reduce((acc, cookie) => {\n        if (!Ember.isEmpty(cookie)) {\n          let [key, value] = cookie;\n          acc[key.trim()] = (value || '').trim();\n        }\n\n        return acc;\n      }, {});\n    },\n\n    _getFastBootCookies() {\n      let fastBootCookies = Ember.get(this._fastBoot, 'request.cookies');\n      fastBootCookies = keys(fastBootCookies).reduce((acc, name) => {\n        let value = fastBootCookies[name];\n        acc[name] = {\n          value\n        };\n        return acc;\n      }, {});\n      let fastBootCookiesCache = this._fastBootCookiesCache || {};\n      fastBootCookies = assign({}, fastBootCookies, fastBootCookiesCache);\n      this._fastBootCookiesCache = fastBootCookies;\n      return this._filterCachedFastBootCookies(fastBootCookies);\n    },\n\n    read(name, options = {}) {\n      options = assign({}, DEFAULTS, options || {});\n      (true && !(Ember.isEmpty(options.domain) && Ember.isEmpty(options.expires) && Ember.isEmpty(options.maxAge) && Ember.isEmpty(options.path)) && Ember.assert('Domain, Expires, Max-Age, and Path options cannot be set when reading cookies', Ember.isEmpty(options.domain) && Ember.isEmpty(options.expires) && Ember.isEmpty(options.maxAge) && Ember.isEmpty(options.path)));\n      let all;\n\n      if (this._isFastBoot()) {\n        all = this._getFastBootCookies();\n      } else {\n        all = this._getDocumentCookies();\n      }\n\n      if (name) {\n        return this._decodeValue(all[name], options.raw);\n      } else {\n        keys(all).forEach(name => all[name] = this._decodeValue(all[name], options.raw));\n        return all;\n      }\n    },\n\n    write(name, value, options = {}) {\n      options = assign({}, DEFAULTS, options || {});\n      (true && !(!options.signed) && Ember.assert(\"Cookies cannot be set as signed as signed cookies would not be modifyable in the browser as it has no knowledge of the express server's signing key!\", !options.signed));\n      (true && !(Ember.isEmpty(options.expires) || Ember.isEmpty(options.maxAge)) && Ember.assert('Cookies cannot be set with both maxAge and an explicit expiration time!', Ember.isEmpty(options.expires) || Ember.isEmpty(options.maxAge)));\n      value = this._encodeValue(value, options.raw);\n      (true && !(this._isCookieSizeAcceptable(value)) && Ember.assert(`Cookies larger than ${MAX_COOKIE_BYTE_LENGTH} bytes are not supported by most browsers!`, this._isCookieSizeAcceptable(value)));\n\n      if (this._isFastBoot()) {\n        this._writeFastBootCookie(name, value, options);\n      } else {\n        (true && !(!options.httpOnly) && Ember.assert('Cookies cannot be set to be HTTP-only from a browser!', !options.httpOnly));\n        options.path = options.path || this._normalizedDefaultPath();\n\n        this._writeDocumentCookie(name, value, options);\n      }\n    },\n\n    clear(name, options = {}) {\n      options = assign({}, options || {});\n      (true && !(Ember.isEmpty(options.expires) && Ember.isEmpty(options.maxAge) && Ember.isEmpty(options.raw)) && Ember.assert('Expires, Max-Age, and raw options cannot be set when clearing cookies', Ember.isEmpty(options.expires) && Ember.isEmpty(options.maxAge) && Ember.isEmpty(options.raw)));\n      options.expires = new Date('1970-01-01');\n      options.path = options.path || this._normalizedDefaultPath();\n      this.write(name, null, options);\n    },\n\n    exists(name) {\n      let all;\n\n      if (this._isFastBoot()) {\n        all = this._getFastBootCookies();\n      } else {\n        all = this._getDocumentCookies();\n      }\n\n      return all.hasOwnProperty(name);\n    },\n\n    _writeDocumentCookie(name, value, options = {}) {\n      let serializedCookie = this._serializeCookie(name, value, options);\n\n      this._document.cookie = serializedCookie;\n    },\n\n    _writeFastBootCookie(name, value, options = {}) {\n      let responseHeaders = Ember.get(this._fastBoot, 'response.headers');\n\n      let serializedCookie = this._serializeCookie(...arguments);\n\n      if (!Ember.isEmpty(options.maxAge)) {\n        options.maxAge *= 1000;\n      }\n\n      this._cacheFastBootCookie(...arguments);\n\n      let replaced = false;\n      let existing = responseHeaders.getAll('set-cookie');\n\n      for (let i = 0; i < existing.length; i++) {\n        if (existing[i].startsWith(`${name}=`)) {\n          existing[i] = serializedCookie;\n          replaced = true;\n          break;\n        }\n      }\n\n      if (!replaced) {\n        responseHeaders.append('set-cookie', serializedCookie);\n      }\n    },\n\n    _cacheFastBootCookie(name, value, options = {}) {\n      let fastBootCache = this._fastBootCookiesCache || {};\n      let cachedOptions = assign({}, options);\n\n      if (cachedOptions.maxAge) {\n        let expires = new Date();\n        expires.setSeconds(expires.getSeconds() + options.maxAge);\n        cachedOptions.expires = expires;\n        delete cachedOptions.maxAge;\n      }\n\n      fastBootCache[name] = {\n        value,\n        options: cachedOptions\n      };\n      this._fastBootCookiesCache = fastBootCache;\n    },\n\n    _filterCachedFastBootCookies(fastBootCookies) {\n      let {\n        path: requestPath,\n        protocol\n      } = Ember.get(this._fastBoot, 'request'); // cannot use deconstruct here\n\n      let host = Ember.get(this._fastBoot, 'request.host');\n      return keys(fastBootCookies).reduce((acc, name) => {\n        let {\n          value,\n          options\n        } = fastBootCookies[name];\n        options = options || {};\n        let {\n          path: optionsPath,\n          domain,\n          expires,\n          secure\n        } = options;\n\n        if (optionsPath && requestPath.indexOf(optionsPath) !== 0) {\n          return acc;\n        }\n\n        if (domain && host.indexOf(domain) + domain.length !== host.length) {\n          return acc;\n        }\n\n        if (expires && expires < new Date()) {\n          return acc;\n        }\n\n        if (secure && !(protocol || '').match(/^https/)) {\n          return acc;\n        }\n\n        acc[name] = value;\n        return acc;\n      }, {});\n    },\n\n    _encodeValue(value, raw) {\n      if (Ember.isNone(value)) {\n        return '';\n      } else if (raw) {\n        return value;\n      } else {\n        return encodeURIComponent(value);\n      }\n    },\n\n    _decodeValue(value, raw) {\n      if (Ember.isNone(value) || raw) {\n        return value;\n      } else {\n        return decodeURIComponent(value);\n      }\n    },\n\n    _filterDocumentCookies(unfilteredCookies) {\n      return unfilteredCookies.map(c => {\n        let separatorIndex = c.indexOf('=');\n        return [c.substring(0, separatorIndex), c.substring(separatorIndex + 1)];\n      }).filter(c => c.length === 2 && Ember.isPresent(c[0]));\n    },\n\n    _serializeCookie(name, value, options = {}) {\n      return (0, _serializeCookie.serializeCookie)(name, value, options);\n    },\n\n    _isCookieSizeAcceptable(value) {\n      // Counting bytes varies Pre-ES6 and in ES6\n      // This snippet counts the bytes in the value\n      // about to be stored as the cookie:\n      // See https://stackoverflow.com/a/25994411/6657064\n      let _byteCount = 0;\n      let i = 0;\n      let c;\n\n      while (c = value.charCodeAt(i++)) {\n        /* eslint-disable no-bitwise */\n        _byteCount += c >> 11 ? 3 : c >> 7 ? 2 : 1;\n        /* eslint-enable no-bitwise */\n      }\n\n      return _byteCount < MAX_COOKIE_BYTE_LENGTH;\n    },\n\n    _normalizedDefaultPath() {\n      if (!this._isFastBoot()) {\n        let pathname = window.location.pathname;\n        return pathname.substring(0, pathname.lastIndexOf('/'));\n      }\n    },\n\n    _isFastBoot() {\n      return this._fastBoot && this._fastBoot.isFastBoot;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-cookies/utils/serialize-cookie\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.serializeCookie = void 0;\n\n  const serializeCookie = (name, value, options = {}) => {\n    let cookie = `${name}=${value}`;\n\n    if (!Ember.isEmpty(options.domain)) {\n      cookie = `${cookie}; domain=${options.domain}`;\n    }\n\n    if (Ember.typeOf(options.expires) === 'date') {\n      cookie = `${cookie}; expires=${options.expires.toUTCString()}`;\n    }\n\n    if (!Ember.isEmpty(options.maxAge)) {\n      cookie = `${cookie}; max-age=${options.maxAge}`;\n    }\n\n    if (options.secure) {\n      cookie = `${cookie}; secure`;\n    }\n\n    if (options.httpOnly) {\n      cookie = `${cookie}; httpOnly`;\n    }\n\n    if (!Ember.isEmpty(options.path)) {\n      cookie = `${cookie}; path=${options.path}`;\n    }\n\n    if (!Ember.isEmpty(options.sameSite)) {\n      cookie = `${cookie}; SameSite=${options.sameSite}`;\n    }\n\n    return cookie;\n  };\n\n  _exports.serializeCookie = serializeCookie;\n});","define('ember-data/-private', ['exports', '@ember-data/store', 'ember-data/version', '@ember-data/model/-private', '@ember-data/store/-private', '@ember-data/record-data/-private'], function (exports, store, VERSION, Private, Private$1, Private$2) { 'use strict';\n\n  store = store && Object.prototype.hasOwnProperty.call(store, 'default') ? store['default'] : store;\n  VERSION = VERSION && Object.prototype.hasOwnProperty.call(VERSION, 'default') ? VERSION['default'] : VERSION;\n\n  var DS = Ember.Namespace.create({\n    VERSION: VERSION,\n    name: 'DS'\n  });\n\n  if (Ember.libraries) {\n    Ember.libraries.registerCoreLibrary('Ember Data', VERSION);\n  }\n\n  exports.Store = store;\n  Object.defineProperty(exports, 'Errors', {\n    enumerable: true,\n    get: function () {\n      return Private.Errors;\n    }\n  });\n  Object.defineProperty(exports, 'ManyArray', {\n    enumerable: true,\n    get: function () {\n      return Private.ManyArray;\n    }\n  });\n  Object.defineProperty(exports, 'PromiseManyArray', {\n    enumerable: true,\n    get: function () {\n      return Private.PromiseManyArray;\n    }\n  });\n  Object.defineProperty(exports, 'AdapterPopulatedRecordArray', {\n    enumerable: true,\n    get: function () {\n      return Private$1.AdapterPopulatedRecordArray;\n    }\n  });\n  Object.defineProperty(exports, 'InternalModel', {\n    enumerable: true,\n    get: function () {\n      return Private$1.InternalModel;\n    }\n  });\n  Object.defineProperty(exports, 'PromiseArray', {\n    enumerable: true,\n    get: function () {\n      return Private$1.PromiseArray;\n    }\n  });\n  Object.defineProperty(exports, 'PromiseObject', {\n    enumerable: true,\n    get: function () {\n      return Private$1.PromiseObject;\n    }\n  });\n  Object.defineProperty(exports, 'RecordArray', {\n    enumerable: true,\n    get: function () {\n      return Private$1.RecordArray;\n    }\n  });\n  Object.defineProperty(exports, 'RecordArrayManager', {\n    enumerable: true,\n    get: function () {\n      return Private$1.RecordArrayManager;\n    }\n  });\n  Object.defineProperty(exports, 'RootState', {\n    enumerable: true,\n    get: function () {\n      return Private$1.RootState;\n    }\n  });\n  Object.defineProperty(exports, 'Snapshot', {\n    enumerable: true,\n    get: function () {\n      return Private$1.Snapshot;\n    }\n  });\n  Object.defineProperty(exports, 'SnapshotRecordArray', {\n    enumerable: true,\n    get: function () {\n      return Private$1.SnapshotRecordArray;\n    }\n  });\n  Object.defineProperty(exports, 'coerceId', {\n    enumerable: true,\n    get: function () {\n      return Private$1.coerceId;\n    }\n  });\n  Object.defineProperty(exports, 'normalizeModelName', {\n    enumerable: true,\n    get: function () {\n      return Private$1.normalizeModelName;\n    }\n  });\n  Object.defineProperty(exports, 'RecordData', {\n    enumerable: true,\n    get: function () {\n      return Private$2.RecordData;\n    }\n  });\n  Object.defineProperty(exports, 'Relationship', {\n    enumerable: true,\n    get: function () {\n      return Private$2.Relationship;\n    }\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-data/adapter\", \"@ember-data/adapter/error\", \"@ember-data/adapter/json-api\", \"@ember-data/adapter/rest\", \"@ember-data/debug\", \"@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, _adapter, _error, _jsonApi, _rest, _debug, _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\n  if (Ember.VERSION.match(/^1\\.([0-9]|1[0-2])\\./)) {\n    throw new Ember.Error('Ember Data requires at least Ember 1.13.0, but you have ' + Ember.VERSION + '. Please upgrade your version of Ember, then upgrade Ember Data.');\n  }\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 = _error.default;\n  _private2.DS.InvalidError = _error.InvalidError;\n  _private2.DS.TimeoutError = _error.TimeoutError;\n  _private2.DS.AbortError = _error.AbortError;\n  _private2.DS.UnauthorizedError = _error.UnauthorizedError;\n  _private2.DS.ForbiddenError = _error.ForbiddenError;\n  _private2.DS.NotFoundError = _error.NotFoundError;\n  _private2.DS.ConflictError = _error.ConflictError;\n  _private2.DS.ServerError = _error.ServerError;\n  _private2.DS.errorsHashToArray = _error.errorsHashToArray;\n  _private2.DS.errorsArrayToHash = _error.errorsArrayToHash;\n  _private2.DS.Serializer = _serializer.default;\n  _private2.DS.DebugAdapter = _debug.default;\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 = _private2.DS;\n  _exports.default = _default;\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-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = setupContainer;\n\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\n    /* DEBUG */\n    && !application.registerOptionsForType) {\n      (true && !(false) && Ember.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      }));\n      application.optionsForType('serializer', {\n        singleton: false\n      });\n      application.optionsForType('adapter', {\n        singleton: false\n      });\n\n      if (!application.has('service:store')) {\n        application.register('service:store', _store.default);\n      }\n\n      return;\n    }\n\n    application.registerOptionsForType('serializer', {\n      singleton: false\n    });\n    application.registerOptionsForType('adapter', {\n      singleton: false\n    });\n\n    if (!application.hasRegistration('service:store')) {\n      application.register('service:store', _store.default);\n    }\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\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 = \"3.21.2\";\n  _exports.default = _default;\n});","define(\"ember-drag-drop/components/draggable-object-target\", [\"exports\", \"ember-drag-drop/mixins/droppable\"], function (_exports, _droppable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_droppable.default, {\n    classNameBindings: ['overrideClass'],\n    overrideClass: 'draggable-object-target',\n    isOver: false,\n\n    handlePayload(payload, event) {\n      let obj = this.get('coordinator').getObject(payload, {\n        target: this\n      });\n      this.get('action')(obj, {\n        target: this,\n        event: event\n      });\n    },\n\n    handleDrop(event) {\n      let dataTransfer = event.dataTransfer;\n      let payload = dataTransfer.getData(\"Text\");\n\n      if (payload === '') {\n        return;\n      }\n\n      this.handlePayload(payload, event);\n    },\n\n    acceptDrop(event) {\n      this.handleDrop(event); //Firefox is navigating to a url on drop sometimes, this prevents that from happening\n\n      event.preventDefault();\n    },\n\n    handleDragOver(event) {\n      if (!this.get('isOver')) {\n        //only send once per hover event\n        this.set('isOver', true);\n\n        if (this.get('dragOverAction')) {\n          this.get('dragOverAction')(event);\n        }\n      }\n    },\n\n    handleDragOut(event) {\n      this.set('isOver', false);\n\n      if (this.get('dragOutAction')) {\n        this.get('dragOutAction')(event);\n      }\n    },\n\n    click(e) {\n      let onClick = this.get('onClick');\n\n      if (onClick) {\n        onClick(e);\n      }\n    },\n\n    mouseDown(e) {\n      let mouseDown = this.get('onMouseDown');\n\n      if (mouseDown) {\n        mouseDown(e);\n      }\n    },\n\n    handleMouseEnter(e) {\n      let mouseEnter = this.get('onMouseEnter');\n\n      if (mouseEnter) {\n        mouseEnter(e);\n      }\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      this.element.addEventListener('mouseenter', this.boundHandleMouseEnter);\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this.element.removeEventListener('mouseenter', this.boundHandleMouseEnter);\n    },\n\n    actions: {\n      acceptForDrop() {\n        let hashId = this.get('coordinator.clickedId');\n        this.handlePayload(hashId);\n      }\n\n    },\n\n    init() {\n      this._super(...arguments);\n\n      this.set('boundHandleMouseEnter', this.handleMouseEnter.bind(this));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-drag-drop/components/draggable-object\", [\"exports\", \"ember-drag-drop/utils/proxy-unproxy-objects\"], function (_exports, _proxyUnproxyObjects) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    dragCoordinator: Ember.inject.service('drag-coordinator'),\n    overrideClass: 'draggable-object',\n    classNameBindings: [':js-draggableObject', 'isDraggingObject:is-dragging-object:', 'overrideClass'],\n    attributeBindings: ['dragReady:draggable'],\n    isDraggable: true,\n    dragReady: true,\n    isSortable: false,\n    sortingScope: 'drag-objects',\n    title: Ember.computed.alias('content.title'),\n    draggable: Ember.computed('isDraggable', function () {\n      let isDraggable = this.get('isDraggable');\n      return isDraggable || null;\n    }),\n    proxyContent: Ember.computed('content', function () {\n      return (0, _proxyUnproxyObjects.wrapper)(this.get('content'));\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      if (this.get('dragHandle')) {\n        this.set('dragReady', false);\n      }\n\n      this.mouseOverHandler = function () {\n        this.set('dragReady', true);\n      }.bind(this);\n\n      this.mouseOutHandler = function () {\n        this.set('dragReady', false);\n      }.bind(this);\n    },\n\n    didInsertElement() {\n      Ember.run.scheduleOnce('afterRender', () => {\n        //if there is a drag handle watch the mouse up and down events to trigger if drag is allowed\n        let dragHandle = this.get('dragHandle');\n\n        if (dragHandle) {\n          //only start when drag handle is activated\n          if (this.element.querySelector(dragHandle)) {\n            this.element.querySelector(dragHandle).addEventListener('mouseover', this.mouseOverHandler);\n            this.element.querySelector(dragHandle).addEventListener('mouseout', this.mouseOutHandler);\n          }\n        }\n      });\n    },\n\n    willDestroyElement() {\n      let dragHandle = this.get('dragHandle');\n\n      if (this.element.querySelector(dragHandle)) {\n        this.element.querySelector(dragHandle).removeEventListener('mouseover', this.mouseOverHandler);\n        this.element.querySelector(dragHandle).removeEventListener('mouseout', this.mouseOutHandler);\n      }\n    },\n\n    dragStart(event) {\n      if (!this.get('isDraggable') || !this.get('dragReady')) {\n        event.preventDefault();\n        return;\n      }\n\n      let dataTransfer = event.dataTransfer;\n      let obj = this.get('proxyContent');\n      let id = null;\n      let coordinator = this.get('coordinator');\n\n      if (coordinator) {\n        id = coordinator.setObject(obj, {\n          source: this\n        });\n      }\n\n      dataTransfer.setData('Text', id);\n\n      if (obj && typeof obj === 'object') {\n        Ember.set(obj, 'isDraggingObject', true);\n      }\n\n      this.set('isDraggingObject', true);\n\n      if (!this.get('dragCoordinator.enableSort') && this.get('dragCoordinator.sortComponentController')) {\n        //disable drag if sorting is disabled this is not used for regular\n        event.preventDefault();\n        return;\n      } else {\n        Ember.run.next(() => {\n          this.dragStartHook(event);\n        });\n        this.get('dragCoordinator').dragStarted(obj, event, this);\n      }\n\n      if (this.get('dragStartAction')) {\n        this.get('dragStartAction')(obj, event);\n      }\n\n      if (this.get('isSortable') && this.get('draggingSortItem')) {\n        this.get('draggingSortItem')(obj, event);\n      }\n    },\n\n    dragEnd(event) {\n      if (!this.get('isDraggingObject')) {\n        return;\n      }\n\n      let obj = this.get('proxyContent');\n\n      if (obj && typeof obj === 'object') {\n        Ember.set(obj, 'isDraggingObject', false);\n      }\n\n      this.set('isDraggingObject', false);\n      this.dragEndHook(event);\n      this.get('dragCoordinator').dragEnded();\n\n      if (this.get('dragEndAction')) {\n        this.get('dragEndAction')(obj, event);\n      }\n\n      if (this.get('dragHandle')) {\n        this.set('dragReady', false);\n      }\n    },\n\n    drag(event) {\n      if (this.get('dragMoveAction')) {\n        this.get('dragMoveAction')(event);\n      }\n    },\n\n    dragOver(event) {\n      if (this.get('isSortable')) {\n        this.get('dragCoordinator').draggingOver(event, this);\n      }\n\n      return false;\n    },\n\n    dragStartHook(event) {\n      event.target.style.opacity = '0.5';\n    },\n\n    dragEndHook(event) {\n      event.target.style.opacity = '1';\n    },\n\n    drop(event) {\n      //Firefox is navigating to a url on drop, this prevents that from happening\n      event.preventDefault();\n    },\n\n    actions: {\n      selectForDrag() {\n        let obj = this.get('proxyContent');\n        let hashId = this.get('coordinator').setObject(obj, {\n          source: this\n        });\n        this.set('coordinator.clickedId', hashId);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-drag-drop/components/object-bin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function removeOne(arr, obj) {\n    var l = arr.get('length');\n    arr.removeObject(obj);\n    var l2 = arr.get('length');\n\n    if (l - 1 !== l2) {\n      throw new Error(\"bad length \" + l + \" \" + l2);\n    }\n  }\n\n  var _default = Ember.Component.extend({\n    model: Ember.A(),\n    classNames: ['draggable-object-bin'],\n    manageList: true,\n\n    objectMoved() {},\n\n    actions: {\n      handleObjectDropped(obj) {\n        if (this.get('manageList')) {\n          this.get(\"model\").pushObject(obj);\n        }\n\n        this.trigger(\"objectDroppedInternal\", obj);\n        this.get('objectDropped')({\n          obj: obj,\n          bin: this\n        });\n      },\n\n      handleObjectDragged(obj) {\n        if (this.get('manageList')) {\n          removeOne(this.get('model'), obj);\n        }\n\n        this.trigger(\"objectDraggedInternal\", obj);\n        this.get('objectDragged')();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-drag-drop/components/sortable-objects\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    dragCoordinator: Ember.inject.service('drag-coordinator'),\n    overrideClass: 'sortable-objects',\n    classNameBindings: ['overrideClass'],\n    enableSort: true,\n    useSwap: true,\n    inPlace: false,\n    sortingScope: 'drag-objects',\n    sortableObjectList: Ember.A(),\n\n    init() {\n      this._super(...arguments);\n\n      if (this.get('enableSort')) {\n        this.get('dragCoordinator').pushSortComponent(this);\n      }\n    },\n\n    willDestroyElement() {\n      if (this.get('enableSort')) {\n        this.get('dragCoordinator').removeSortComponent(this);\n      }\n    },\n\n    dragStart(event) {\n      event.stopPropagation();\n\n      if (!this.get('enableSort')) {\n        return false;\n      }\n\n      this.set('dragCoordinator.sortComponentController', this);\n    },\n\n    dragEnter(event) {\n      //needed so drop event will fire\n      event.stopPropagation();\n      return false;\n    },\n\n    dragOver(event) {\n      //needed so drop event will fire\n      event.stopPropagation();\n      return false;\n    },\n\n    drop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      this.set('dragCoordinator.sortComponentController', undefined);\n\n      if (this.get('enableSort') && this.get('sortEndAction')) {\n        this.get('sortEndAction')(event);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-drag-drop/mixins/droppable\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Wraps the native drop events to make your components droppable.\n   *\n   * @mixin Droppable\n   */\n  var Droppable = Ember.Mixin.create({\n    _currentDrag: null,\n    classNameBindings: ['accepts-drag', 'self-drop'],\n\n    /**\n     * Read-only className property that is set to true when the component is\n     * receiving a valid drag event. You can style your element with\n     * `.accepts-drag`.\n     *\n     * @property accepts-drag\n     * @private\n     */\n    'accepts-drag': false,\n\n    /**\n     * Will be true when the component is dragged over itself. Can use\n     * `.self-drop` in your css to style (or more common, unstyle) the component.\n     *\n     * @property self-drop\n     * @private\n     */\n    'self-drop': false,\n\n    /**\n      * Validates drag events. Override this to restrict which data types your\n      * component accepts.\n      *\n      * Example:\n      *\n      * ```js\n      * validateDragEvent(event) {\n      *   return event.dataTransfer.types.contains('text/x-foo');\n      * }\n      * ```\n      *\n      * @method validateDragEvent\n      * @public\n      */\n    validateDragEvent() {\n      return true;\n    },\n\n    /**\n     * Called when a valid drag event is dropped on the component. Override to\n     * actually make something happen.\n     *\n     * ```js\n     * acceptDrop: function(event) {\n     *   var data = event.dataTransfer.getData('text/plain');\n     *   doSomethingWith(data);\n     * }\n     * ```\n     *\n     * @method acceptDrop\n     * @public\n     */\n    acceptDrop() {},\n\n    handleDragOver() {},\n\n    handleDragOut() {},\n\n    /**\n     * @method dragOver\n     * @private\n     */\n    dragOver(event) {\n      if (this._droppableIsDraggable(event)) {\n        this.set('self-drop', true);\n      }\n\n      if (this.get('accepts-drag')) {\n        return this._allowDrop(event);\n      }\n\n      if (this.validateDragEvent(event)) {\n        this.set('accepts-drag', true);\n\n        this._allowDrop(event);\n      } else {\n        this._resetDroppability();\n      }\n    },\n\n    /**\n     * @method dragEnter\n     * @private\n     */\n    dragEnter() {\n      return false;\n    },\n\n    /**\n     * @method drop\n     * @private\n     */\n    drop(event) {\n      // have to validate on drop because you may have nested sortables the\n      // parent allows the drop but the child receives it, revalidating allows\n      // the event to bubble up to the parent to handle it\n      if (!this.validateDragEvent(event)) {\n        return;\n      }\n\n      this.acceptDrop(event);\n\n      this._resetDroppability(); // TODO: might not need this? I can't remember why its here\n\n\n      event.stopPropagation();\n      return false;\n    },\n\n    /**\n     * Tells the browser we have an acceptable drag event.\n     *\n     * @method _allowDrop\n     * @private\n     */\n    _allowDrop(event) {\n      this.handleDragOver(event);\n      event.stopPropagation();\n      event.preventDefault();\n      return false;\n    },\n\n    /**\n     * We want to be able to know if the current drop target is the original\n     * element being dragged or a child of it.\n     *\n     * @method _droppableIsDraggable\n     * @private\n     */\n    _droppableIsDraggable(event) {\n      return Droppable._currentDrag && (Droppable._currentDrag === event.target || Droppable._currentDrag.contains(event.target));\n    },\n\n    /**\n     * @method _resetDroppability\n     * @private\n     */\n    _resetDroppability(event) {\n      this.handleDragOut(event);\n      this.set('accepts-drag', false);\n      this.set('self-drop', false);\n    },\n\n    dragLeave() {\n      this._resetDroppability();\n    },\n\n    // Need to track this so we can determine `self-drop`.\n    // It's on `Droppable` so we can test :\\\n    dragStart(event) {\n      this.set('_currentDrag', event.target);\n    }\n\n  });\n  var _default = Droppable;\n  _exports.default = _default;\n});","define(\"ember-drag-drop/services/drag-coordinator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function indexOf(items, a) {\n    return items.findIndex(function (element) {\n      return Ember.isEqual(element, a);\n    });\n  }\n\n  function swapInPlace(items, a, b) {\n    const aPos = indexOf(items, a);\n    const bPos = indexOf(items, b);\n    items.replace(aPos, 1, [b]);\n    items.replace(bPos, 1, [a]);\n  }\n\n  function shiftInPlace(items, a, b) {\n    const aPos = indexOf(items, a);\n    const bPos = indexOf(items, b);\n    items.removeAt(aPos);\n    items.insertAt(bPos, a);\n  }\n\n  var _default = Ember.Service.extend({\n    sortComponentController: null,\n    currentDragObject: null,\n    currentDragEvent: null,\n    currentDragItem: null,\n    currentOffsetItem: null,\n    isMoving: false,\n    lastEvent: null,\n\n    init() {\n      this._super(...arguments); // Use object for sortComponents so that we can scope per sortingScope\n\n\n      this.set('sortComponents', {});\n    },\n\n    arrayList: Ember.computed.alias('sortComponentController.sortableObjectList'),\n    enableSort: Ember.computed.alias('sortComponentController.enableSort'),\n    useSwap: Ember.computed.alias('sortComponentController.useSwap'),\n    inPlace: Ember.computed.alias('sortComponentController.inPlace'),\n\n    pushSortComponent(component) {\n      const sortingScope = component.get('sortingScope');\n\n      if (!this.get('sortComponents')[sortingScope]) {\n        this.get('sortComponents')[sortingScope] = Ember.A();\n      }\n\n      this.get('sortComponents')[sortingScope].pushObject(component);\n    },\n\n    removeSortComponent(component) {\n      const sortingScope = component.get('sortingScope');\n      this.get('sortComponents')[sortingScope].removeObject(component);\n    },\n\n    dragStarted(object, event, emberObject) {\n      this.set('currentDragObject', object);\n      this.set('currentDragEvent', event);\n      this.set('currentDragItem', emberObject);\n      event.dataTransfer.effectAllowed = 'move';\n    },\n\n    dragEnded() {\n      this.set('currentDragObject', null);\n      this.set('currentDragEvent', null);\n      this.set('currentDragItem', null);\n      this.set('currentOffsetItem', null);\n    },\n\n    draggingOver(event, emberObject) {\n      const currentOffsetItem = this.get('currentOffsetItem');\n      const pos = this.relativeClientPosition(emberObject.element, event);\n      const hasSameSortingScope = this.get('currentDragItem.sortingScope') === emberObject.get('sortingScope');\n      let moveDirections = [];\n\n      if (!this.get('lastEvent')) {\n        this.set('lastEvent', event);\n      }\n\n      if (event.clientY < this.get('lastEvent').clientY) {\n        moveDirections.push('up');\n      }\n\n      if (event.clientY > this.get('lastEvent').clientY) {\n        moveDirections.push('down');\n      }\n\n      if (event.clientX < this.get('lastEvent').clientX) {\n        moveDirections.push('left');\n      }\n\n      if (event.clientX > this.get('lastEvent').clientX) {\n        moveDirections.push('right');\n      }\n\n      this.set('lastEvent', event);\n\n      if (!this.get('isMoving') && this.get('currentDragEvent')) {\n        if (event.target !== this.get('currentDragEvent').target && hasSameSortingScope) {\n          //if not dragging over self\n          if (currentOffsetItem !== emberObject) {\n            if (pos.py < 0.67 && moveDirections.indexOf('up') >= 0 || pos.py > 0.33 && moveDirections.indexOf('down') >= 0 || pos.px < 0.67 && moveDirections.indexOf('left') >= 0 || pos.px > 0.33 && moveDirections.indexOf('right') >= 0) {\n              this.moveElements(emberObject);\n              this.set('currentOffsetItem', emberObject);\n            }\n          }\n        } else {\n          //reset because the node moved under the mouse with a move\n          this.set('currentOffsetItem', null);\n        }\n      }\n    },\n\n    moveObjectPositions(a, b, sortComponents) {\n      const aSortable = sortComponents.find(component => {\n        return component.get('sortableObjectList').find(sortable => {\n          return Ember.isEqual(sortable, a);\n        });\n      });\n      const bSortable = sortComponents.find(component => {\n        return component.get('sortableObjectList').find(sortable => {\n          return Ember.isEqual(sortable, b);\n        });\n      });\n      const swap = aSortable === bSortable;\n\n      if (swap) {\n        let list = aSortable.get('sortableObjectList');\n\n        if (!this.get('inPlace')) {\n          list = Ember.A(list.toArray());\n        }\n\n        if (this.get('useSwap')) {\n          swapInPlace(list, a, b);\n        } else {\n          shiftInPlace(list, a, b);\n        }\n\n        if (!this.get('inPlace')) {\n          aSortable.set('sortableObjectList', list);\n        }\n      } else {\n        // Move if items are in different sortable-objects component\n        const aList = aSortable.get('sortableObjectList');\n        const bList = bSortable.get('sortableObjectList'); // Remove from aList and insert into bList\n\n        aList.removeObject(a);\n        bList.insertAt(indexOf(bList, b), a);\n      }\n    },\n\n    moveElements(overElement) {\n      const isEnabled = Object.keys(this.get('sortComponents')).length;\n      const draggingItem = this.get('currentDragItem');\n      const sortComponents = this.get('sortComponents')[draggingItem.get('sortingScope')];\n\n      if (!isEnabled) {\n        return;\n      }\n\n      this.moveObjectPositions(draggingItem.get('content'), overElement.get('content'), sortComponents);\n      sortComponents.forEach(component => {\n        component.rerender();\n      });\n    },\n\n    relativeClientPosition(el, event) {\n      const rect = el.getBoundingClientRect();\n      const x = event.clientX - rect.left;\n      const y = event.clientY - rect.top;\n      return {\n        x: x,\n        y: y,\n        px: x / rect.width,\n        py: y / rect.height\n      };\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-drag-drop/utils/proxy-unproxy-objects\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.wrapper = wrapper;\n  _exports.unwrapper = unwrapper;\n\n  /**\n   * On drag action we need to provide a property `isDraggingObject` to the UI.\n   * This utility is used to create a wrapper object around the object passed to the proxy function.\n   * We use this wrapper to prevent the `draggable-object` from mutating the original object by appending\n   * `isDraggingObject` to the content.\n   * \n   * This unexpected mutation causes problems when the targeted content is not prepared to handle\n   * the additional property, and potentially leaks local state onto an object that likely holds state\n   * for the route or application more generally.\n   */\n\n  /**\n   * @access public\n   * Returns the passed object wrapped within new object.\n   * Used to proxy draggable objects.\n   * @param objectToProxy Object to proxy.\n   * @returns {Object} Proxy object.\n   */\n  function wrapper(objectToProxy) {\n    // If we do not have any content for the object to proxy, \n    // we do not wish to render that item.\n    if (!Ember.isNone(objectToProxy)) {\n      const guidKey = Ember.guidFor(objectToProxy);\n      return {\n        [guidKey]: objectToProxy,\n        unwrappingKey: guidKey,\n        id: objectToProxy.id\n      };\n    }\n\n    return null;\n  }\n  /**\n   * @access public\n   * Returns the content of the passed object.\n   * Used to un-proxy draggable objects.\n   * @param objectToUnproxy Object to un-proxy.\n   * @returns {Object} Content of the proxy object.\n   */\n\n\n  function unwrapper(objectToUnproxy) {\n    if (!Ember.isNone(objectToUnproxy)) {\n      return objectToUnproxy[objectToUnproxy.unwrappingKey];\n    }\n\n    return null;\n  }\n});","define(\"ember-element-helper/helpers/-element\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function UNINITIALIZED() {}\n\n  var _default = Ember.Helper.extend({\n    init() {\n      this._super(...arguments);\n\n      this.tagName = UNINITIALIZED;\n      this.componentName = null;\n    },\n\n    compute(params, hash) {\n      (true && !(params.length === 1) && Ember.assert('The `element` helper takes a single positional argument', params.length === 1));\n      (true && !(Object.keys(hash).length === 0) && Ember.assert('The `element` helper does not take any named arguments', Object.keys(hash).length === 0));\n      let tagName = params[0];\n\n      if (tagName !== this.tagName) {\n        this.tagName = tagName;\n\n        if (typeof tagName === 'string') {\n          // return a different component name to force a teardown\n          if (this.componentName === '-dynamic-element') {\n            this.componentName = '-dynamic-element-alt';\n          } else {\n            this.componentName = '-dynamic-element';\n          }\n        } else {\n          this.componentName = null;\n          Ember.runInDebug(() => {\n            let message = 'The argument passed to the `element` helper must be a string';\n\n            try {\n              message += ` (you passed \\`${tagName}\\`)`;\n            } catch (e) {// ignore\n            }\n\n            (true && !(tagName === undefined || tagName === null) && Ember.assert(message, tagName === undefined || tagName === null));\n          });\n        }\n      }\n\n      return this.componentName;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-element-helper/helpers/element\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.helper(function () {\n    // This helper (`element`, as opposed to `-element`) mostly exists to satisfy\n    // things like `owner.hasRegistration('helper:element')`. The AST transform\n    // replaces all usages of `(element ...)` into `(component (-element ...))`\n    // so if this helper is invoked directly, something is wrong.\n    (true && !(false) && Ember.assert('The `element` helper polyfill encountered an unexpected error. ' + 'Please report the issue at http://github.com/tildeio/ember-element-helper ' + 'with the usage and conditions that caused this error.'));\n    return null;\n  });\n\n  _exports.default = _default;\n});","define(\"ember-ella-sparse/instance-initializers/ella-sparse-array\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n  const DEFAULT_TTL = 36000000;\n\n  const ON_FETCH_FN = function () {\n    (true && !(false) && Ember.assert('Provide a custom `on-fetch` method to populate data into this sparse array'));\n    return {\n      data: Ember.A(),\n      total: 0\n    };\n  };\n  /**\n   * Sometimes in the course of creating ambitious web applications, we find\n   * ourselves (potentially) needing to fetch hundreds or thousands of records\n   * to display in a large list. Most APIs place limits on how many records can\n   * be fetched in a single request. In most cases, the complete list of records\n   * won't be entirely visible on screen at the same time.\n   *\n   * `EllaSparseArray` allows data to be retrieved on an as-needed basis. It\n   * imitates the basic functionality of an array, and fetches \"blocks\" of data,\n   * using a custom \"on-fetch\" function, when code or a template asks for the\n   * first item on a \"page.\"\n   *\n   * For example, with the default `limit` of `10` and a collection size of 765,\n   * `sparseInstance.objectAt(102)` would request records with the indexes of\n   * 100 through 109 and return the record with the index of 102.\n   *\n   * @class EllaSparseArray\n   * @constructor\n   * @extends {Ember.Object}\n   * @uses Ember.Array\n   * @public\n   */\n\n\n  const EllaSparseArray = Ember.Object.extend(Ember.Array, {\n    __onFetch__: Ember.computed(function () {\n      return ON_FETCH_FN;\n    }),\n\n    /**\n     * The internal length property.\n     *\n     * @property _length\n     * @type {Number|Null}\n     * @default null\n     * @private\n     */\n    _length: null,\n\n    /**\n     * When `true`, the `enabled` property allows the `EllaSparseArray` instance\n     * to request content. When `enabled` is `false`, empty placeholder objects\n     * will be provided when getting a particular index, but no async requests\n     * for data will be triggered.\n     *\n     * @property enabled\n     * @type {Boolean}\n     * @default true\n     * @public\n     */\n    enabled: true,\n\n    /**\n     * A Javascript timestamp. Any items last resolved before the timestamp\n     * stored in the `expired` property will be considered stale.\n     *\n     * @property expired\n     * @type {Number}\n     * @default 0\n     * @public\n     */\n    expired: 0,\n\n    /**\n     * The number of items to fetch together on a \"page.\"\n     *\n     * @property limit\n     * @type {Number}\n     * @default 10\n     * @public\n     */\n    limit: 10,\n\n    /**\n     * The number of ms to wait until previously fetched content gets marked\n     * as stale. For best results, set this value at init.\n     *\n     * @property ttl\n     * @type {Number}\n     * @default 36000000\n     * @public\n     */\n    ttl: DEFAULT_TTL,\n\n    /**\n     * The content of this sparse array. Plot twist: it's actually an object.\n     *\n     * @property data\n     * @type {Object}\n     * @default {}\n     * @public\n     * @readOnly\n     */\n    data: Ember.computed(function () {\n      return {};\n    }).readOnly(),\n\n    /**\n     * Indicates if the provided length of this \"array\" is available and valid.\n     *\n     * @property isLength\n     * @type {Boolean}\n     * @default false\n     * @public\n     * @readOnly\n     */\n    isLength: Ember.computed('_length', function () {\n      let _length = parseInt(Ember.get(this, '_length'), 10);\n\n      return !isNaN(_length);\n    }).readOnly(),\n\n    /**\n     * This is a \"quacks like a duck\" property to help quickly identify instances\n     * of this class.\n     *\n     * @property isSparseArray\n     * @type {Boolean}\n     * @default true\n     * @public\n     * @readOnly\n     * @final\n     */\n    isSparseArray: Ember.computed(function () {\n      return true;\n    }).readOnly(),\n\n    /**\n     * Returns the item at the index `length - 1`.\n     *\n     * @property lastObject\n     * @default undefined\n     * @public\n     * @readOnly\n     */\n    lastObject: Ember.computed('length', function () {\n      let len = Ember.get(this, 'length');\n\n      if (len === 0) {\n        return undefined;\n      }\n\n      return this.objectAt(len - 1);\n    }).readOnly(),\n\n    /**\n     * Reports the expected length of this sparse array.\n     *\n     * @property length\n     * @type {Number}\n     * @default 0\n     * @public\n     */\n    length: Ember.computed('_length', 'loading', 'remoteQuery', {\n      get() {\n        if (Ember.get(this, 'loading')) {\n          this.fetchObjectAt(0);\n          return 0;\n        }\n\n        return Ember.get(this, '_length');\n      },\n\n      set(key, value) {\n        this.notifyPropertyChange('[]');\n        return Ember.set(this, '_length', value);\n      }\n\n    }),\n\n    /**\n     * The array itself is considered `loading` when the `length` is unknown.\n     *\n     * @property loading\n     * @type {Boolean}\n     * @default true\n     * @readOnly\n     * @public\n     */\n    loading: Ember.computed.not('isLength').readOnly(),\n\n    /**\n     * The on-fetch function is called each time a block of records must be\n     * retrieved. This hook is provided with two parameters, both objects, a\n     * `range` and a `query`.\n     *\n     * The `range` object contains three properties:\n     *\n     * + `length`: the number of items to fetch; the page size or limit\n     * + `start`: the index of the first item to fetch; the offset\n     * + `page`: the page number to retrieve\n     *\n     * The query object passes along any additional filter parameters you've\n     * set on this `EllaSparseArray` instance.\n     *\n     * @property on-fetch\n     * @type {Function}\n     * @public\n     */\n    'on-fetch': Ember.computed.reads('__onFetch__'),\n\n    init() {\n      this._super();\n\n      (true && !(typeof Ember.get(this, 'on-fetch') === 'function') && Ember.assert('`on-fetch` must be a function', typeof Ember.get(this, 'on-fetch') === 'function'));\n      Ember.get(this, 'length');\n      return this;\n    },\n\n    /**\n     * Mark all items as stale. Useful when `length` changes or it seems likely\n     * the previously fetched content is outdated.\n     *\n     * @method expire\n     * @chainable\n     * @public\n     */\n    expire() {\n      Ember.get(this, 'fetchTask').cancelAll();\n      Ember.set(this, 'expired', Date.now());\n      return this;\n    },\n\n    /**\n     * Initiate the retrieval of content at a specified index. If\n     * `this.get('enabled')` is `false` or the options param indicates\n     * `noFetch: true` then data retrieval will be skipped.\n     *\n     * @method fetchObjectAt\n     * @param {Number} idx The index of the object to retreive or reload\n     * @param {Object} options Additional options (i.e. `{ noFetch: true }`)\n     * @return {EllaSparseItem} The proxy object at the specified index\n     * @public\n     */\n    fetchObjectAt(idx, options = {}) {\n      let {\n        noFetch\n      } = options;\n      idx = parseInt(idx, 10);\n\n      if (noFetch || !Ember.get(this, 'enabled')) {\n        return this.sparseObjectAt(idx);\n      }\n\n      return this._fetchObjectAt(idx);\n    },\n\n    filter() {\n      (true && !(false) && Ember.assert('filter() not supported in sparse arrays. Use filterBy instead.'));\n      return this;\n    },\n\n    /**\n     * Set query parameters to pass along to the data fetching function. Updating\n     * this filter will expire previously fetched content.\n     *\n     * @method filterBy\n     * @param {Object} obj Query parameters to pass along to the `on-fetch` hook\n     * @chainable\n     * @public\n     */\n    filterBy(obj = {}) {\n      (true && !(Ember.typeOf(obj) === 'object') && Ember.assert(\"filterBy only supports objects.\", Ember.typeOf(obj) === 'object'));\n\n      if (this.isCurrentFilter(obj)) {\n        return this;\n      }\n\n      Ember.setProperties(this.expire(), {\n        remoteQuery: obj,\n        _length: null\n      });\n      Ember.get(this, 'length');\n      return this;\n    },\n\n    /**\n     * Inject data into the sparse array at the specified range.\n     *\n     * @method fulfill\n     * @param {Object} range An object with `start` and `length` properties\n     * @param {Array} array Data to inject into the items in the range\n     * @chainable\n     * @public\n     */\n    fulfill(range, array) {\n      array = Ember.A(array);\n\n      for (let i = 0; i < range.length; i++) {\n        let itemIndex = range.start + i;\n        let item = this.sparseObjectAt(itemIndex);\n\n        if (item && typeof item.resolveContent === 'function') {\n          item.resolveContent(array.objectAt(i));\n        }\n      }\n\n      this.notifyPropertyChange('[]');\n      return this;\n    },\n\n    /**\n     * Compare an object with the current `remoteQuery` value.\n     *\n     * @method isCurrentFilter\n     * @param {Object} obj An object to compare with the current `remoteQuery`\n     * @return {Boolean} `true` if current `remoteQuery` and object provided are a match\n     * @public\n     */\n    isCurrentFilter(obj) {\n      let current = Ember.get(this, 'remoteQuery');\n      return JSON.stringify(obj) === JSON.stringify(current);\n    },\n\n    /**\n     * Get the content at a specified index.\n     *\n     * If the content at the given index is present and up to date,\n     * `this.get('enabled')` is `false`, or the options param indicates\n     * `noFetch: true` then data retrieval will be skipped.\n     *\n     * @method objectAt\n     * @param {Number} idx The index of the object to get\n     * @param {Object} options Additional options (i.e. `{ noFetch: true }`)\n     * @return {EllaSparseItem} The content available at the specified index\n     * @public\n     */\n    objectAt(idx, options = {}) {\n      idx = parseInt(idx, 10); // Arrays and negative indexes don't mix\n\n      if (isNaN(idx) || idx < 0) {\n        return undefined;\n      }\n\n      let {\n        isLength,\n        length\n      } = Ember.getProperties(this, 'isLength', 'length');\n      let item;\n\n      if (isLength && idx >= length) {\n        return undefined;\n      }\n\n      item = this.sparseObjectAt(idx);\n\n      if (item && item.shouldFetchContent(Ember.get(this, 'expired')) !== true) {\n        return item;\n      }\n\n      return this.fetchObjectAt(idx, options);\n    },\n\n    /**\n     * Return a dot-delimited path to use with `Ember.get`.\n     *\n     * @method pathToIndex\n     * @param {Number} idx The index of the object to get\n     * @return {String} A dot-delimited path to use with `Ember.get`\n     * @public\n     */\n    pathToIndex(idx) {\n      return ['data', idx].join('.');\n    },\n\n    /**\n     * Return the `EllaSparseItem` instance at the given index.\n     *\n     * If nothing is found at the given index, generate an empty, new\n     * `EllaSparseItem` at the given index and return it.\n     *\n     * @method sparseObjectAt\n     * @param {Number} idx The index of the object to get\n     * @return {EllaSparseItem} The content available at the specified index\n     * @public\n     */\n    sparseObjectAt(idx) {\n      return Ember.get(this, 'data')[idx] || this._insertSparseItem(idx);\n    },\n\n    /**\n     * Eject the content at the specified index(es). Accepts multiple arguments.\n     *\n     * @method unset\n     * @param {Number} ...idx The index(es) to clear content from\n     * @chainable\n     * @public\n     */\n    unset(...idx) {\n      let indexes = Ember.A([].concat.apply([], idx));\n      indexes.forEach(i => {\n        this._unset(i);\n      });\n      return this;\n    },\n\n    /**\n     * Assemble the range and query objects. Place the items in the specified\n     * range into a loading state. Call the `on-fetch` hook.\n     *\n     * @method _didRequestRange\n     * @param {Object} range A range object\n     * @return {Promise} The promise returned from the `on-fetch` hook\n     * @private\n     */\n    _didRequestRange(range) {\n      let fn = Ember.get(this, 'on-fetch');\n      let query = Ember.get(this, 'remoteQuery');\n\n      this._startFetchingContentInRange(range);\n\n      if (typeof fn !== 'function') {\n        fn = ON_FETCH_FN;\n      }\n\n      return fn(range, query);\n    },\n\n    /**\n     * Trigger a `fetchTask` to retrieve data for a given index.\n     *\n     * @method _fetchObjectAt\n     * @param {Number} idx The index to fetch\n     * @return {EllaSparseItem} The content available at the specified index\n     * @private\n     */\n    _fetchObjectAt(idx) {\n      let limit = parseInt(Ember.get(this, 'limit'), 10) || 1;\n      let pageIdx = Math.floor(idx / limit);\n      let start = pageIdx * limit;\n      start = Math.max(start, 0);\n      Ember.get(this, 'fetchTask').perform({\n        start: start,\n        length: limit,\n        page: pageIdx + 1\n      });\n      return this.sparseObjectAt(idx);\n    },\n\n    /**\n     * Create a new `EllaSparseItem` at a specified index.\n     *\n     * @method _insertSparseItem\n     * @param {Number} idx The index to make an `EllaSparseItem` for\n     * @return {EllaSparseItem} The content added at the specified index\n     * @private\n     */\n    _insertSparseItem(idx) {\n      Ember.get(this, 'data')[idx] = EllaSparseItem.create({\n        __ttl__: Ember.get(this, 'ttl')\n      });\n      return Ember.get(this, this.pathToIndex(idx));\n    },\n\n    /**\n     * Handle data fetching errors.\n     *\n     * @method _requestRangeFailed\n     * @param {Object} range The range that failed to be retrieved\n     * @param {Error} err The fetch error\n     * @private\n     */\n    _requestRangeFailed(range, err) {\n      let data = Ember.get(this, 'data');\n      let from = range.start;\n      let until = Math.min(range.start + range.length, data.length);\n\n      for (let i = from; i < until; i++) {\n        let item = data[i];\n\n        if (item && typeof item.reportError === 'function') {\n          item.reportError(err);\n        }\n      }\n    },\n\n    /**\n     * Marks items in the specified range as in progress.\n     *\n     * @method _startFetchingContentInRange\n     * @param {Object} range The range to place into a loading state\n     * @private\n     */\n    _startFetchingContentInRange(range) {\n      for (let i = range.start; i < range.start + range.length; i++) {\n        let item = this.sparseObjectAt(i);\n\n        if (item) {\n          Ember.get(item, 'fetchingContent').perform();\n        }\n      }\n    },\n\n    /**\n     * Clears the content of the item at the specified index.\n     *\n     * @method _unset\n     * @param {Number} idx The index of the item to reset\n     * @chainable\n     * @private\n     */\n    _unset(idx) {\n      idx = parseInt(idx, 10);\n\n      if (isNaN(idx)) {\n        return this;\n      }\n\n      let item = Ember.get(this, this.pathToIndex(idx));\n\n      if (typeof item.resetContent === 'function') {\n        item.resetContent();\n      }\n\n      return this;\n    },\n\n    fetchTask: (0, _emberConcurrency.task)(function* (range) {\n      try {\n        let {\n          data,\n          total\n        } = yield this._didRequestRange(range);\n        total = parseInt(total, 10);\n\n        if (!isNaN(total) && total >= 0 && total !== Infinity) {\n          Ember.set(this, 'length', total);\n        } else {\n          (true && !(false) && Ember.assert(`Numeric, non-negative \"total\" is required! ({ total: ${total} })`));\n        }\n\n        this.fulfill(range, data);\n      } catch (e) {\n        this._requestRangeFailed(range, e);\n      }\n    })\n  });\n  /**\n   * An individual item for an `EllaSparseArray`. Each item offers an\n   * `is_loading` property to indicate when it is waiting for content to be\n   * resolved.\n   *\n   * @class EllaSparseItem\n   * @constructor\n   * @extends {Ember.ObjectProxy}\n   * @private\n   */\n\n  const EllaSparseItem = Ember.ObjectProxy.extend({\n    /**\n     * A Javascript timestamp indicating the last time this item's content was\n     * resolved. Used along with the `__ttl__` property to identify and refetch\n     * stale content.\n     *\n     * @property __lastFetch__\n     * @type {Number}\n     * @default 0\n     * @public\n     */\n    __lastFetch__: 0,\n\n    /**\n     * The number of ms to wait until previously fetched content gets marked\n     * as stale.\n     *\n     * @property __ttl__\n     * @type {Number}\n     * @default 36000000\n     * @public\n     */\n    __ttl__: DEFAULT_TTL,\n\n    /**\n     * Hook for rejecting the content retrieval promise. The `fetchingContent`\n     * task places the content retrieval promise's `reject` handler here.\n     *\n     * @property reportError\n     * @type {Null|Function}\n     * @default null\n     * @public\n     */\n    reportError: null,\n\n    /**\n     * Hook for resolving the content retrieval promise. The `fetchingContent`\n     * task places the content retrieval promise's `resolve` handler here.\n     *\n     * @property resolveContent\n     * @type {Null|Function}\n     * @default null\n     * @public\n     */\n    resolveContent: null,\n\n    /**\n     * Returns `true` when the `fetchingContent` task has never been performed\n     * or is in the `isRunning` state. Otherwise, returns `false`.\n     *\n     * @property is_loading\n     * @type {Boolean}\n     * @default true\n     * @public\n     * @readOnly\n     */\n    is_loading: Ember.computed('fetchingContent.{performCount,isRunning}', function () {\n      return Boolean(Ember.get(this, 'fetchingContent.isRunning') || Ember.get(this, 'fetchingContent.performCount') === 0);\n    }).readOnly(),\n\n    /**\n     * This is a \"quacks like a duck\" property to help quickly identify instances\n     * of this class.\n     *\n     * @property isSparseItem\n     * @type {Boolean}\n     * @default true\n     * @public\n     * @readOnly\n     * @final\n     */\n    isSparseItem: Ember.computed(function () {\n      return true;\n    }).readOnly(),\n\n    /**\n     * Determines if content managed by this object proxy is valid, stale,\n     * or outdated. If the content appears to be present and valid, this method\n     * returns `false` (no content should be fetched for this item). If the\n     * content is already in the process of being retrieved, this method returns\n     * `false`. If no content retrieval processes have been initiated for this\n     * item or the content appears to be \"stale,\" then this method returns `true`\n     * to indicate that content (or updated content) should be acquired.\n     *\n     * @param  {Number} timestamp A Javascript timestamp\n     * @return {Boolean} `true` if content is missing or stale, otherwise false\n     * @public\n     */\n    shouldFetchContent(timestamp = 0) {\n      if (Ember.get(this, 'fetchingContent.isRunning')) {\n        return false;\n      }\n\n      return Boolean(Ember.get(this, '__stale__') || Ember.get(this, '__lastFetch__') <= timestamp);\n    },\n\n    /**\n     * Remove the content managed by this item instance and ensure the item\n     * becomes \"stale.\"\n     *\n     * @chainable\n     * @public\n     */\n    resetContent() {\n      Ember.setProperties(this, {\n        content: null,\n        __lastFetch__: 0\n      });\n      return this;\n    },\n\n    __fetchContent() {\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        this.reportError = reject;\n        this.resolveContent = resolve;\n      });\n    },\n\n    fetchingContent: (0, _emberConcurrency.task)(function* () {\n      Ember.setProperties(this, {\n        content: null\n      });\n      let content = yield this.__fetchContent();\n      Ember.setProperties(this, {\n        content: content,\n        __lastFetch__: Date.now()\n      });\n    }).drop()\n  });\n  /**\n   * Indicates the content managed by this item should be refetched.\n   *\n   * @property __stale__\n   * @type {Boolean}\n   * @default true\n   * @readOnly\n   * @public\n   */\n\n  Object.defineProperty(EllaSparseItem.prototype, '__stale__', {\n    get() {\n      return Boolean(Ember.get(this, '__lastFetch__') + Ember.get(this, '__ttl__') <= Date.now());\n    }\n\n  });\n\n  function initialize(appInstance) {\n    appInstance.register('ella-sparse:array', EllaSparseArray);\n  }\n\n  var _default = {\n    name: 'ella-sparse-arrays',\n    initialize\n  };\n  _exports.default = _default;\n});","define(\"ember-ella-sparse/services/ella-sparse\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const emberAssign = typeof Ember.assign === 'function' ? Ember.assign : Ember.merge;\n  /**\n   * The `EllaSparseService` makes it easy to materialize new `EllaSparseArray`\n   * instances from your routes and controllers.\n   *\n   * A simple example of usage:\n   *\n   * ```javascript\n   * export default Ember.Route.extend({\n   *   // Inject the `ella-sparse` service into the route\n   *   ellaSparse: Ember.inject.service('ella-sparse'),\n   *\n   *   model() {\n   *     let store = this.get('store');\n   *\n   *     return this.get('ellaSparse').array((range = {}, query = {}) => {\n   *       // Combine the pagination and filter parameters into one object\n   *       query = Ember.assign({\n   *         limit: Ember.get(range, 'length'),\n   *         offset: Ember.get(range, 'start')\n   *       }, query);\n   *\n   *       // Return a Promise that resolves with the array of fetched data\n   *       // and the total available records\n   *       return store.query('word', query).then((result) => {\n   *         return {\n   *           data: result,\n   *           total: Ember.get(result, 'meta.total')\n   *         }\n   *       });\n   *     });\n   *   }\n   * });\n   * ```\n   *\n   * @class EllaSparseService\n   * @constructor\n   * @extends {Ember.Service}\n   * @public\n   */\n\n  var _default = Ember.Service.extend({\n    /**\n     * Instantiates a new `EllaSparseArray`.\n     *\n     * The specified function parameter will be called upon to fetch data. When\n     * called, this function will be provided a `range` and `query` argument.\n     *\n     * The `range` object contains three properties:\n     *\n     * + `length`: the number of items to fetch; the page size or limit\n     * + `start`: the index of the first item to fetch; the offset\n     * + `page`: the page number to retrieve\n     *\n     * The query object contains any additional filter parameters set on the\n     * `EllaSparseArray` instance.\n     *\n     * The function should return a `Promise` that resolves with an object in the\n     * following structure:\n     *\n     * ```javascript\n     * return {\n     *   data: [ //a \"page\" of results ],\n     *   total: 1111 // The grand total number of available records\n     * }\n     * ```\n     *\n     * `data`:  contains an array of records to use in fulfilling the\n     *          specified range\n     *\n     * `total`: indicates the number of records available overall (that match\n     *          the current query parameters)\n     *\n     * @method array\n     * @param {Function} fn A function to call to fetch data\n     * @param {Object} options Properties to set on the sparse array instance\n     * @return {EllaSparseArray} A new instance of `EllaSparseArray`\n     * @public\n     */\n    array(fn, options = {}) {\n      let owner = Ember.getOwner(this);\n      let factory = owner.factoryFor('ella-sparse:array');\n      return factory.create(emberAssign({\n        'on-fetch': fn\n      }, options));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-fetch/errors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isUnauthorizedResponse = isUnauthorizedResponse;\n  _exports.isForbiddenResponse = isForbiddenResponse;\n  _exports.isInvalidResponse = isInvalidResponse;\n  _exports.isBadRequestResponse = isBadRequestResponse;\n  _exports.isNotFoundResponse = isNotFoundResponse;\n  _exports.isGoneResponse = isGoneResponse;\n  _exports.isAbortError = isAbortError;\n  _exports.isConflictResponse = isConflictResponse;\n  _exports.isServerErrorResponse = isServerErrorResponse;\n\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   * Checks if the given response represents a forbidden request error\n   */\n\n\n  function isForbiddenResponse(response) {\n    return response.status === 403;\n  }\n  /**\n   * Checks if the given response represents an invalid request error\n   */\n\n\n  function isInvalidResponse(response) {\n    return response.status === 422;\n  }\n  /**\n   * Checks if the given response represents a bad request error\n   */\n\n\n  function isBadRequestResponse(response) {\n    return response.status === 400;\n  }\n  /**\n   * Checks if the given response represents a \"not found\" error\n   */\n\n\n  function isNotFoundResponse(response) {\n    return response.status === 404;\n  }\n  /**\n   * Checks if the given response represents a \"gone\" error\n   */\n\n\n  function isGoneResponse(response) {\n    return response.status === 410;\n  }\n  /**\n   * Checks if the given error is an \"abort\" error\n   */\n\n\n  function isAbortError(error) {\n    return error.name == 'AbortError';\n  }\n  /**\n   * Checks if the given response represents a conflict error\n   */\n\n\n  function isConflictResponse(response) {\n    return response.status === 409;\n  }\n  /**\n   * Checks if the given response represents a server error\n   */\n\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\n  function isPlainObject(obj) {\n    return Object.prototype.toString.call(obj) === '[object Object]';\n  }\n});","define(\"ember-fetch/utils/determine-body-promise\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = determineBodyPromise;\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 determineBodyPromise(response, requestData) {\n    return response.text().then(function (payload) {\n      let ret = payload;\n\n      try {\n        ret = JSON.parse(payload);\n      } catch (error) {\n        if (!(error instanceof SyntaxError)) {\n          throw error;\n        }\n\n        const status = response.status;\n\n        if (response.ok && (status === 204 || status === 205 || requestData.method === 'HEAD')) {\n          ret = undefined;\n        } else {\n          Ember.debug(`This response was unable to be parsed as json: ${payload}`);\n        }\n      }\n\n      return ret;\n    });\n  }\n});","define(\"ember-fetch/utils/mung-options-for-fetch\", [\"exports\", \"ember-fetch/utils/serialize-query-params\", \"ember-fetch/types\"], function (_exports, _serializeQueryParams, _types) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = mungOptionsForFetch;\n\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 = Ember.assign({\n      credentials: 'same-origin'\n    }, options); // Default to 'GET' in case `type` is not passed in (mimics jQuery.ajax).\n\n    hash.method = (hash.method || hash.type || 'GET').toUpperCase();\n\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\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.serializeQueryParams = serializeQueryParams;\n  _exports.default = void 0;\n  const RBRACKET = /\\[\\]$/;\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\n  function serializeQueryParams(queryParamsObject) {\n    var s = [];\n\n    function buildParams(prefix, obj) {\n      var i, len, key;\n\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\n      return s;\n    }\n\n    return buildParams('', queryParamsObject).join('&').replace(/%20/g, '+');\n  }\n  /**\n   * Part of the `serializeQueryParams` helper function.\n   */\n\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\n    v = typeof v === 'function' ? v() : v;\n    s[s.length] = `${encodeURIComponent(k)}=${encodeURIComponent(v)}`;\n  }\n\n  var _default = serializeQueryParams;\n  _exports.default = _default;\n});","define(\"ember-get-config/index\", [\"exports\", \"ghost-admin/config/environment\"], function (_exports, _environment) {\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 _environment.default;\n    }\n  });\n});","define(\"ember-in-viewport/-private/observer-admin\", [\"exports\", \"intersection-observer-admin\"], function (_exports, _intersectionObserverAdmin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Static administrator to ensure use one IntersectionObserver per combination of root + observerOptions\n   * Use `root` (viewport) as lookup property and weakly referenced\n   * `root` will have many keys with each value being and object containing one IntersectionObserver instance and all the elements to observe\n   * Provided callbacks will ensure consumer of this service is able to react to enter or exit of intersection observer\n   * This provides important optimizations since we are not instantiating a new IntersectionObserver instance for every element and\n   * instead reusing the instance.\n   *\n   * @class ObserverAdmin\n   */\n  class ObserverAdmin {\n    /** @private **/\n    constructor() {\n      this.instance = new _intersectionObserverAdmin.default();\n    }\n    /**\n     * @method add\n     * @param HTMLElement element\n     * @param Object observerOptions\n     * @param Function enterCallback\n     * @param Function exitCallback\n     * @void\n     */\n\n\n    add(element, observerOptions, enterCallback, exitCallback) {\n      if (enterCallback) {\n        this.addEnterCallback(element, enterCallback);\n      }\n\n      if (exitCallback) {\n        this.addExitCallback(element, exitCallback);\n      }\n\n      return this.instance.observe(element, observerOptions);\n    }\n\n    addEnterCallback(element, enterCallback) {\n      this.instance.addEnterCallback(element, enterCallback);\n    }\n\n    addExitCallback(element, exitCallback) {\n      this.instance.addExitCallback(element, exitCallback);\n    }\n    /**\n     * This method takes a target element, observerOptions and a the scrollable area.\n     * The latter two act as unique identifiers to figure out which intersection observer instance\n     * needs to be used to call `unobserve`\n     *\n     * @method unobserve\n     * @param HTMLElement target\n     * @param Object observerOptions\n     * @param String scrollableArea\n     * @void\n     */\n\n\n    unobserve(...args) {\n      this.instance.unobserve(...args);\n    }\n\n    destroy(...args) {\n      this.instance.destroy(...args);\n    }\n\n  }\n\n  _exports.default = ObserverAdmin;\n});","define(\"ember-in-viewport/-private/raf-admin\", [\"exports\", \"raf-pool\", \"ember-in-viewport/utils/is-in-viewport\"], function (_exports, _rafPool, _isInViewport) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.startRAF = startRAF;\n  _exports.default = void 0;\n\n  /**\n   * ensure use on requestAnimationFrame, no matter how many components\n   * on the page are using this mixin\n   *\n   * @class RAFAdmin\n   */\n  class RAFAdmin {\n    /** @private **/\n    constructor() {\n      this._rafPool = new _rafPool.default();\n      this.elementRegistry = new WeakMap();\n    }\n\n    add(...args) {\n      return this._rafPool.add(...args);\n    }\n\n    flush() {\n      return this._rafPool.flush();\n    }\n\n    remove(...args) {\n      return this._rafPool.remove(...args);\n    }\n\n    reset(...args) {\n      this._rafPool.reset(...args);\n\n      this._rafPool.stop(...args);\n    }\n    /**\n     * We provide our own element registry to add callbacks the user creates\n     *\n     * @method addEnterCallback\n     * @param {HTMLElement} element\n     * @param {Function} enterCallback\n     */\n\n\n    addEnterCallback(element, enterCallback) {\n      this.elementRegistry.set(element, Object.assign({}, this.elementRegistry.get(element), {\n        enterCallback\n      }));\n    }\n    /**\n     * We provide our own element registry to add callbacks the user creates\n     *\n     * @method addExitCallback\n     * @param {HTMLElement} element\n     * @param {Function} exitCallback\n     */\n\n\n    addExitCallback(element, exitCallback) {\n      this.elementRegistry.set(element, Object.assign({}, this.elementRegistry.get(element), {\n        exitCallback\n      }));\n    }\n\n  }\n  /**\n   * This is a recursive function that adds itself to raf-pool to be executed on a set schedule\n   *\n   * @method startRAF\n   * @param {HTMLElement} element\n   * @param {Object} configurationOptions\n   * @param {Function} enterCallback\n   * @param {Function} exitCallback\n   * @param {Function} addRAF\n   * @param {Function} removeRAF\n   */\n\n\n  _exports.default = RAFAdmin;\n\n  function startRAF(element, {\n    scrollableArea,\n    viewportTolerance,\n    viewportSpy = false\n  }, enterCallback, exitCallback, addRAF, // bound function from service to add elementId to raf pool\n  removeRAF // bound function from service to remove elementId to raf pool\n  ) {\n    const domScrollableArea = typeof scrollableArea === 'string' && scrollableArea ? document.querySelector(scrollableArea) : scrollableArea instanceof HTMLElement ? scrollableArea : undefined;\n    const height = domScrollableArea ? domScrollableArea.offsetHeight + domScrollableArea.getBoundingClientRect().top : window.innerHeight;\n    const width = scrollableArea ? domScrollableArea.offsetWidth + domScrollableArea.getBoundingClientRect().left : window.innerWidth;\n    const boundingClientRect = element.getBoundingClientRect();\n\n    if (boundingClientRect) {\n      const viewportEntered = element.getAttribute('data-in-viewport-entered');\n      triggerDidEnterViewport(element, (0, _isInViewport.default)(boundingClientRect, height, width, viewportTolerance), viewportSpy, enterCallback, exitCallback, viewportEntered);\n\n      if (viewportSpy || viewportEntered !== 'true') {\n        // recursive\n        // add to pool of requestAnimationFrame listeners and executed on set schedule\n        addRAF(startRAF.bind(this, element, {\n          scrollableArea,\n          viewportTolerance,\n          viewportSpy\n        }, enterCallback, exitCallback, addRAF, removeRAF));\n      } else {\n        removeRAF();\n      }\n    }\n  }\n\n  function triggerDidEnterViewport(element, hasEnteredViewport, viewportSpy, enterCallback, exitCallback, viewportEntered = false) {\n    const didEnter = (!viewportEntered || viewportEntered === 'false') && hasEnteredViewport;\n    const didLeave = viewportEntered === 'true' && !hasEnteredViewport;\n\n    if (didEnter) {\n      element.setAttribute('data-in-viewport-entered', true);\n      enterCallback();\n    }\n\n    if (didLeave) {\n      exitCallback(); // reset so we can call again\n\n      if (viewportSpy) {\n        element.setAttribute('data-in-viewport-entered', false);\n      }\n    }\n  }\n});","define(\"ember-in-viewport/breakpoints\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    mobile: '(max-width: 767px)',\n    tablet: '(min-width: 768px) and (max-width: 991px)',\n    desktop: '(min-width: 992px) and (max-width: 1200px)'\n  };\n  _exports.default = _default;\n});","define(\"ember-in-viewport/index\", [\"exports\", \"ember-in-viewport/mixins/in-viewport\"], function (_exports, _inViewport) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // eslint-disable-next-line ember/no-mixins\n  var _default = _inViewport.default;\n  _exports.default = _default;\n});","define(\"ember-in-viewport/initializers/viewport-config\", [\"exports\", \"ember-in-viewport/utils/can-use-dom\"], function (_exports, _canUseDom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n  const defaultConfig = {\n    viewportEnabled: true,\n    viewportDidScroll: true,\n    viewportSpy: false,\n    viewportScrollSensitivity: 1,\n    viewportRefreshRate: 100,\n    viewportListeners: [{\n      context: window,\n      event: 'scroll'\n    }, {\n      context: window,\n      event: 'resize'\n    }],\n    viewportTolerance: {\n      top: 0,\n      left: 0,\n      bottom: 0,\n      right: 0\n    },\n    intersectionThreshold: 0,\n    scrollableArea: null // defaults to layout view (document.documentElement)\n\n  };\n\n  if (_canUseDom.default) {\n    defaultConfig.viewportListeners.push({\n      context: document,\n      event: 'touchmove'\n    });\n  }\n\n  function initialize() {\n    const application = arguments[1] || arguments[0];\n    const config = application.resolveRegistration('config:environment');\n    const {\n      viewportConfig = {}\n    } = config;\n    const mergedConfig = Ember.assign({}, defaultConfig, viewportConfig);\n    application.register('config:in-viewport', mergedConfig, {\n      instantiate: false\n    });\n  }\n\n  var _default = {\n    name: 'viewport-config',\n    initialize: initialize\n  };\n  _exports.default = _default;\n});","define(\"ember-in-viewport/mixins/in-viewport\", [\"exports\", \"ember-in-viewport/-private/raf-admin\", \"ember-in-viewport/utils/can-use-dom\", \"ember-in-viewport/utils/can-use-raf\", \"ember-in-viewport/utils/find-elem\", \"ember-in-viewport/utils/can-use-intersection-observer\", \"ember-in-viewport/utils/check-scroll-direction\"], function (_exports, _rafAdmin, _canUseDom, _canUseRaf, _findElem, _canUseIntersectionObserver, _checkScrollDirection) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const lastDirection = {};\n  const lastPosition = {};\n\n  var _default = Ember.Mixin.create({\n    /**\n     * @property _debouncedEventHandler\n     * @default null\n     */\n    _debouncedEventHandler: null,\n\n    /**\n     * unbinding listeners will short circuit rAF\n     *\n     * @property _stopListening\n     * @default false\n     */\n    _stopListening: false,\n    inViewport: Ember.inject.service(),\n\n    /**\n     * @property viewportExited\n     * @type Boolean\n     */\n    viewportExited: Ember.computed.not('viewportEntered').readOnly(),\n\n    init() {\n      // ensure this mixin runs first, then your component can override the options\n      this._super(...arguments);\n\n      let options = Ember.assign({\n        viewportUseRAF: (0, _canUseRaf.default)(),\n        viewportEntered: false,\n        viewportListeners: []\n      }, this._buildOptions()); // set viewportUseIntersectionObserver after merging users config to avoid errors in browsers that lack support (https://github.com/DockYard/ember-in-viewport/issues/146)\n\n      options = Ember.assign(options, {\n        viewportUseIntersectionObserver: (0, _canUseIntersectionObserver.default)()\n      });\n      Ember.setProperties(this, options);\n      Ember.set(this, '_evtListenerClosures', []);\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      (true && !(false) && Ember.deprecate('This mixin is deprecated. We suggest you migrate to the inViewport service or use the {{in-viewport}} modifier', false, {\n        id: 'ember-in-viewport.mixin',\n        until: '4.0.0',\n        url: 'https://github.com/DockYard/ember-in-viewport#readme'\n      }));\n\n      if (!_canUseDom.default) {\n        return;\n      }\n\n      const viewportEnabled = Ember.get(this, 'viewportEnabled');\n\n      if (viewportEnabled) {\n        this.watchElement(Ember.get(this, 'element'));\n      }\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this._unbindListeners(Ember.get(this, 'element'));\n    },\n\n    _buildOptions(defaultOptions = {}) {\n      const owner = Ember.getOwner(this);\n\n      if (owner) {\n        return Ember.assign(defaultOptions, owner.lookup('config:in-viewport'));\n      }\n    },\n\n    watchElement(element) {\n      this._setInitialViewport(element);\n\n      this._addObserverIfNotSpying(element);\n\n      const viewportDidScroll = Ember.get(this, 'viewportDidScroll');\n\n      if (viewportDidScroll) {\n        Ember.debug('[viewportDidScroll] This will be false by default in the next major release');\n\n        this._bindScrollDirectionListener(Ember.get(this, 'viewportScrollSensitivity'));\n      }\n\n      if (!Ember.get(this, 'viewportUseIntersectionObserver') && !Ember.get(this, 'viewportUseRAF')) {\n        Ember.get(this, 'viewportListeners').forEach(listener => {\n          let {\n            context,\n            event\n          } = listener;\n          context = Ember.get(this, 'scrollableArea') || context;\n\n          this._bindListeners(context, event, element);\n        });\n      }\n    },\n\n    _addObserverIfNotSpying(element) {\n      if (!Ember.get(this, 'viewportSpy')) {\n        this.addObserver('viewportEntered', this, Ember.run.bind(this, '_unbindIfEntered', element));\n      }\n    },\n\n    _setInitialViewport(element) {\n      const isTearingDown = this.isDestroyed || this.isDestroying;\n\n      if (!element || isTearingDown) {\n        return;\n      }\n\n      const inViewport = Ember.get(this, 'inViewport');\n\n      if (Ember.get(this, 'viewportUseIntersectionObserver')) {\n        return Ember.run.scheduleOnce('afterRender', this, () => {\n          const scrollableArea = Ember.get(this, 'scrollableArea');\n          const viewportTolerance = Ember.get(this, 'viewportTolerance');\n          const intersectionThreshold = Ember.get(this, 'intersectionThreshold');\n          inViewport.watchElement(element, {\n            intersectionThreshold,\n            viewportTolerance,\n            scrollableArea\n          }, Ember.run.bind(this, this._onEnterIntersection), Ember.run.bind(this, this._onExitIntersection));\n        });\n      } else if (Ember.get(this, 'viewportUseRAF')) {\n        inViewport.startRAF();\n        const scrollableArea = Ember.get(this, 'scrollableArea');\n        const viewportTolerance = Ember.get(this, 'viewportTolerance');\n        const viewportSpy = Ember.get(this, 'viewportSpy');\n\n        const enterCallback = () => {\n          const isTearingDown = this.isDestroyed || this.isDestroying;\n          const viewportEntered = element.getAttribute('data-in-viewport-entered') === 'true';\n\n          if (!isTearingDown && (viewportSpy || viewportEntered)) {\n            Ember.set(this, 'viewportEntered', true);\n            this.trigger('didEnterViewport');\n          }\n        };\n\n        const exitCallback = () => {\n          const isTearingDown = this.isDestroyed || this.isDestroying;\n\n          if (!isTearingDown && viewportSpy) {\n            Ember.set(this, 'viewportEntered', false);\n            this.trigger('didExitViewport');\n          }\n        };\n\n        (0, _rafAdmin.startRAF)(element, {\n          scrollableArea,\n          viewportTolerance,\n          viewportSpy\n        }, enterCallback, exitCallback, inViewport.addRAF.bind(inViewport, element.id), inViewport.removeRAF.bind(inViewport, element.id));\n      } else {\n        return Ember.run.scheduleOnce('afterRender', this, () => {\n          this._setViewportEntered(element);\n        });\n      }\n    },\n\n    /**\n     * used by rAF and scroll event listeners to determine if mixin is in viewport\n     * Remember to set `viewportSpy` to true if you want to continuously observe your element\n     *\n     * @method _setViewportEntered\n     */\n    _setViewportEntered(element) {\n      const scrollableArea = Ember.get(this, 'scrollableArea') ? document.querySelector(Ember.get(this, 'scrollableArea')) : undefined;\n      const height = scrollableArea ? scrollableArea.offsetHeight + scrollableArea.getBoundingClientRect().top : window.innerHeight;\n      const width = scrollableArea ? scrollableArea.offsetWidth + scrollableArea.getBoundingClientRect().left : window.innerWidth;\n      const boundingClientRect = element.getBoundingClientRect();\n\n      if (boundingClientRect) {\n        this._triggerDidAccessViewport(Ember.get(this, 'inViewport').isInViewport(boundingClientRect, height, width, Ember.get(this, 'viewportTolerance')), Ember.get(this, 'viewportEntered'));\n\n        if (Ember.get(this, 'viewportUseRAF') && !Ember.get(this, '_stopListening')) {\n          Ember.get(this, 'inViewport').addRAF(Ember.get(this, 'elementId'), Ember.run.bind(this, this._setViewportEntered, element));\n        }\n      }\n    },\n\n    /**\n     * Callback provided to IntersectionObserver\n     * trigger didEnterViewport callback\n     *\n     * @method _onEnterIntersection\n     */\n    _onEnterIntersection() {\n      const isTearingDown = this.isDestroyed || this.isDestroying;\n\n      if (!isTearingDown) {\n        Ember.set(this, 'viewportEntered', true);\n      }\n\n      this.trigger('didEnterViewport');\n    },\n\n    /**\n     * trigger didExitViewport callback\n     *\n     * @method _onExitIntersection\n     */\n    _onExitIntersection() {\n      const isTearingDown = this.isDestroyed || this.isDestroying;\n\n      if (!isTearingDown) {\n        Ember.set(this, 'viewportEntered', false);\n      }\n\n      this.trigger('didExitViewport');\n    },\n\n    /**\n     * @method _triggerDidScrollDirection\n     * @param contextEl\n     * @param sensitivity\n     */\n    _triggerDidScrollDirection(contextEl = null, sensitivity = 1) {\n      (true && !(contextEl) && Ember.assert('You must pass a valid context element to _triggerDidScrollDirection', contextEl));\n      (true && !(sensitivity) && Ember.assert('sensitivity cannot be 0', sensitivity));\n      const elementId = Ember.get(this, 'elementId');\n      const lastDirectionForEl = lastDirection[elementId];\n      const lastPositionForEl = lastPosition[elementId];\n      const newPosition = {\n        top: contextEl.scrollTop,\n        left: contextEl.scrollLeft\n      };\n      const scrollDirection = (0, _checkScrollDirection.default)(lastPositionForEl, newPosition, sensitivity);\n      const directionChanged = scrollDirection !== lastDirectionForEl;\n\n      if (scrollDirection && directionChanged && Ember.get(this, 'viewportDidScroll')) {\n        this.trigger('didScroll', scrollDirection);\n        lastDirection[elementId] = scrollDirection;\n      }\n\n      lastPosition[elementId] = newPosition;\n    },\n\n    /**\n     * @method _triggerDidAccessViewport\n     * @param hasEnteredViewport\n     * @param viewportEntered\n     */\n    _triggerDidAccessViewport(hasEnteredViewport = false, viewportEntered) {\n      const isTearingDown = this.isDestroyed || this.isDestroying;\n\n      if (isTearingDown) {\n        return;\n      }\n\n      const didEnter = !viewportEntered && hasEnteredViewport;\n      const didLeave = viewportEntered && !hasEnteredViewport;\n      let triggeredEventName = '';\n\n      if (didEnter) {\n        triggeredEventName = 'didEnterViewport';\n      }\n\n      if (didLeave) {\n        triggeredEventName = 'didExitViewport';\n      }\n\n      if (Ember.get(this, 'viewportSpy') || !viewportEntered) {\n        Ember.set(this, 'viewportEntered', hasEnteredViewport);\n      }\n\n      if (triggeredEventName) {\n        this.trigger(triggeredEventName);\n      }\n    },\n\n    /**\n     * Unbind when enter viewport only if viewportSpy is false\n     *\n     * @method _unbindIfEntered\n     */\n    _unbindIfEntered(element) {\n      if (Ember.get(this, 'viewportEntered')) {\n        this._unbindListeners(element);\n\n        this.removeObserver('viewportEntered', this, '_unbindIfEntered');\n        Ember.set(this, 'viewportEntered', false);\n      }\n    },\n\n    /**\n     * General utility function\n     *\n     * @method _debouncedEvent\n     */\n    _debouncedEvent(methodName, ...args) {\n      (true && !(methodName) && Ember.assert('You must pass a methodName to _debouncedEvent', methodName));\n      (true && !(Ember.typeOf(methodName) === 'string') && Ember.assert('methodName must be a string', Ember.typeOf(methodName) === 'string'));\n      Ember.run.debounce(this, () => this[methodName](...args), Ember.get(this, 'viewportRefreshRate'));\n    },\n\n    _bindScrollDirectionListener(sensitivity = 1) {\n      (true && !(sensitivity) && Ember.assert('sensitivity cannot be 0', sensitivity));\n      const contextEl = Ember.get(this, 'scrollableArea') || window;\n      const elem = (0, _findElem.default)(contextEl);\n      this._debouncedEventHandler = this._debouncedEvent.bind(this, '_triggerDidScrollDirection', elem, sensitivity);\n      elem.addEventListener('scroll', this._debouncedEventHandler, {\n        passive: true\n      });\n    },\n\n    _unbindScrollDirectionListener() {\n      const elementId = Ember.get(this, 'elementId');\n      const context = Ember.get(this, 'scrollableArea') || window;\n      const elem = (0, _findElem.default)(context);\n\n      if (elem) {\n        elem.removeEventListener('scroll', this._debouncedEventHandler, {\n          passive: true\n        });\n        delete lastPosition[elementId];\n        delete lastDirection[elementId];\n      }\n    },\n\n    /**\n     * Only if not using IntersectionObserver and rAF\n     *\n     * @method _bindListeners\n     */\n    _bindListeners(context = null, event = null, element = null) {\n      (true && !(context) && Ember.assert('You must pass a valid context to _bindListeners', context));\n      (true && !(event) && Ember.assert('You must pass a valid event to _bindListeners', event));\n      let elem = (0, _findElem.default)(context);\n\n      let evtListener = () => this._debouncedEvent('_setViewportEntered', element);\n\n      this._evtListenerClosures.push({\n        event: event,\n        evtListener\n      });\n\n      elem.addEventListener(event, evtListener, false);\n    },\n\n    /**\n     * Remove listeners for rAF or scroll event listeners\n     * Either from component destroy or viewport entered and\n     * need to turn off listening\n     *\n     * @method _unbindListeners\n     */\n    _unbindListeners(element) {\n      Ember.set(this, '_stopListening', true); // if IntersectionObserver\n\n      if (Ember.get(this, 'viewportUseIntersectionObserver') && Ember.get(this, 'viewportEnabled')) {\n        Ember.get(this, 'inViewport').unobserveIntersectionObserver(element);\n      } // if rAF\n\n\n      if (!Ember.get(this, 'viewportUseIntersectionObserver') && Ember.get(this, 'viewportUseRAF')) {\n        const elementId = Ember.get(this, 'elementId');\n        Ember.get(this, 'inViewport').removeRAF(elementId);\n      } // if scroll event listeners\n\n\n      if (!Ember.get(this, 'viewportUseIntersectionObserver') && !Ember.get(this, 'viewportUseRAF')) {\n        Ember.get(this, 'viewportListeners').forEach(listener => {\n          let {\n            context,\n            event\n          } = listener;\n          context = Ember.get(this, 'scrollableArea') || context;\n          let elem = (0, _findElem.default)(context);\n          let {\n            evtListener\n          } = this._evtListenerClosures.find(closure => event === closure.event) || {};\n          elem.removeEventListener(event, evtListener, false);\n        });\n      } // 4. last but not least\n\n\n      const viewportDidScroll = Ember.get(this, 'viewportDidScroll');\n\n      if (viewportDidScroll) {\n        this._unbindScrollDirectionListener();\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-in-viewport/modifiers/in-viewport\", [\"exports\", \"ember-modifier\", \"fast-deep-equal\"], function (_exports, _emberModifier, _fastDeepEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _class, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const WATCHED_ELEMENTS = true\n  /* DEBUG */\n  ? new WeakSet() : undefined;\n  let InViewportModifier = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, (_class = class InViewportModifier extends _emberModifier.default {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"inViewport\", _descriptor, this);\n\n      _defineProperty(this, \"name\", 'in-viewport');\n\n      _defineProperty(this, \"lastOptions\", void 0);\n    }\n\n    get options() {\n      // eslint-disable-next-line no-unused-vars\n      const {\n        onEnter,\n        onExit,\n        ...options\n      } = this.args.named;\n      return options;\n    }\n\n    get hasStaleOptions() {\n      return !(0, _fastDeepEqual.default)(this.options, this.lastOptions);\n    }\n\n    validateArguments() {\n      (true && !(this.args.positional.length === 0) && Ember.assert(`'{{in-viewport}}' does not accept positional parameters. Specify listeners via 'onEnter' / 'onExit'.`, this.args.positional.length === 0));\n      (true && !(typeof this.args.named.onEnter === 'function' || typeof this.args.named.onExit === 'function') && Ember.assert(`'{{in-viewport}}' either expects 'onEnter', 'onExit' or both to be present.`, typeof this.args.named.onEnter === 'function' || typeof this.args.named.onExit === 'function'));\n    }\n\n    onEnter() {\n      if (this.args.named.onEnter) {\n        this.args.named.onEnter.call(null, this.element);\n      }\n\n      if (!this.options.viewportSpy) {\n        this.inViewport.stopWatching(this.element);\n      }\n    }\n\n    onExit() {\n      if (this.args.named.onExit) {\n        this.args.named.onExit.call(null, this.element);\n      }\n    }\n\n    setupWatcher() {\n      (true && !(!WATCHED_ELEMENTS.has(this.element)) && Ember.assert(`'${this.element}' is already being watched. Make sure that '{{in-viewport}}' is only used once on this element and that you are not calling 'inViewport.watchElement(element)' in other places.`, !WATCHED_ELEMENTS.has(this.element)));\n      if (true\n      /* DEBUG */\n      ) WATCHED_ELEMENTS.add(this.element);\n      this.inViewport.watchElement(this.element, this.options, this.onEnter, this.onExit);\n      this.lastOptions = this.options;\n    }\n\n    destroyWatcher() {\n      if (true\n      /* DEBUG */\n      ) WATCHED_ELEMENTS.delete(this.element);\n      this.inViewport.stopWatching(this.element);\n    }\n\n    didInstall() {\n      this.setupWatcher();\n    }\n\n    didUpdateArguments() {\n      if (this.hasStaleOptions) {\n        this.destroyWatcher();\n        this.setupWatcher();\n      }\n    }\n\n    didReceiveArguments() {\n      this.validateArguments();\n    }\n\n    willRemove() {\n      this.destroyWatcher();\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"inViewport\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onEnter\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onExit\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onExit\"), _class.prototype)), _class));\n  _exports.default = InViewportModifier;\n});","define(\"ember-in-viewport/services/in-viewport\", [\"exports\", \"ember-in-viewport/utils/is-in-viewport\", \"ember-in-viewport/utils/can-use-raf\", \"ember-in-viewport/utils/can-use-intersection-observer\", \"ember-in-viewport/-private/observer-admin\", \"ember-in-viewport/-private/raf-admin\"], function (_exports, _isInViewport, _canUseRaf, _canUseIntersectionObserver, _observerAdmin, _rafAdmin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const noop = () => {};\n  /**\n   * ensure use on requestAnimationFrame, no matter how many components\n   * on the page are using this mixin\n   *\n   * @class InViewport\n   * @module Ember.Service\n   */\n\n\n  class InViewport extends Ember.Service {\n    constructor() {\n      super(...arguments);\n      Ember.set(this, 'registry', new WeakMap());\n      let options = Ember.assign({\n        viewportUseRAF: (0, _canUseRaf.default)()\n      }, this._buildOptions()); // set viewportUseIntersectionObserver after merging users config to avoid errors in browsers that lack support (https://github.com/DockYard/ember-in-viewport/issues/146)\n\n      options = Ember.assign(options, {\n        viewportUseIntersectionObserver: (0, _canUseIntersectionObserver.default)()\n      });\n      Ember.setProperties(this, options);\n    }\n\n    startIntersectionObserver() {\n      this.observerAdmin = new _observerAdmin.default();\n    }\n\n    startRAF() {\n      this.rafAdmin = new _rafAdmin.default();\n    }\n    /** Any strategy **/\n\n    /**\n     * @method watchElement\n     * @param HTMLElement element\n     * @param Object configOptions\n     * @param Function enterCallback - support mixin approach\n     * @param Function exitCallback - support mixin approach\n     * @void\n     */\n\n\n    watchElement(element, configOptions = {}, enterCallback, exitCallback) {\n      if (this.viewportUseIntersectionObserver) {\n        if (!this.observerAdmin) {\n          this.startIntersectionObserver();\n        }\n\n        const observerOptions = this.buildObserverOptions(configOptions);\n        Ember.run.schedule('afterRender', this, this.setupIntersectionObserver, element, observerOptions, enterCallback, exitCallback);\n      } else {\n        if (!this.rafAdmin) {\n          this.startRAF();\n        }\n\n        Ember.run.schedule('afterRender', this, this._startRaf, element, configOptions, enterCallback, exitCallback);\n      }\n\n      return {\n        onEnter: this.addEnterCallback.bind(this, element),\n        onExit: this.addExitCallback.bind(this, element)\n      };\n    }\n    /**\n     * @method addEnterCallback\n     * @void\n     */\n\n\n    addEnterCallback(element, enterCallback) {\n      if (this.viewportUseIntersectionObserver) {\n        this.observerAdmin.addEnterCallback(element, enterCallback);\n      } else {\n        this.rafAdmin.addEnterCallback(element, enterCallback);\n      }\n    }\n    /**\n     * @method addExitCallback\n     * @void\n     */\n\n\n    addExitCallback(element, exitCallback) {\n      if (this.viewportUseIntersectionObserver) {\n        this.observerAdmin.addExitCallback(element, exitCallback);\n      } else {\n        this.rafAdmin.addExitCallback(element, exitCallback);\n      }\n    }\n    /** IntersectionObserver **/\n\n    /**\n     * In order to track elements and the state that comes with them, we need to keep track\n     * of elements in order to get at them at a later time, specifically to unobserve\n     *\n     * @method addToRegistry\n     * @void\n     */\n\n\n    addToRegistry(element, observerOptions) {\n      if (this.registry) {\n        this.registry.set(element, {\n          observerOptions\n        });\n      } else {\n        (true && Ember.warn('in-viewport Service has already been destroyed'));\n      }\n    }\n    /**\n     * @method setupIntersectionObserver\n     * @param HTMLElement element\n     * @param Object observerOptions\n     * @param Function enterCallback\n     * @param Function exitCallback\n     * @void\n     */\n\n\n    setupIntersectionObserver(element, observerOptions, enterCallback, exitCallback) {\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n\n      this.addToRegistry(element, observerOptions);\n      this.observerAdmin.add(element, observerOptions, enterCallback, exitCallback);\n    }\n\n    buildObserverOptions({\n      intersectionThreshold = 0,\n      scrollableArea = null,\n      viewportTolerance = {}\n    }) {\n      const domScrollableArea = typeof scrollableArea === 'string' && scrollableArea ? document.querySelector(scrollableArea) : scrollableArea instanceof HTMLElement ? scrollableArea : undefined; // https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API\n      // IntersectionObserver takes either a Document Element or null for `root`\n\n      const {\n        top = 0,\n        left = 0,\n        bottom = 0,\n        right = 0\n      } = viewportTolerance;\n      return {\n        root: domScrollableArea,\n        rootMargin: `${top}px ${right}px ${bottom}px ${left}px`,\n        threshold: intersectionThreshold\n      };\n    }\n\n    unobserveIntersectionObserver(target) {\n      if (!target) {\n        return;\n      }\n\n      const registeredTarget = this.registry.get(target);\n\n      if (typeof registeredTarget === 'object') {\n        this.observerAdmin.unobserve(target, registeredTarget.observerOptions);\n      }\n    }\n    /** RAF **/\n\n\n    addRAF(elementId, fn) {\n      this.rafAdmin.add(elementId, fn);\n    }\n\n    removeRAF(elementId) {\n      if (this.rafAdmin) {\n        this.rafAdmin.remove(elementId);\n      }\n    }\n\n    isInViewport(...args) {\n      return (0, _isInViewport.default)(...args);\n    }\n    /** other **/\n\n\n    stopWatching(target) {\n      if (this.observerAdmin) {\n        this.unobserveIntersectionObserver(target);\n      }\n\n      if (this.rafAdmin) {\n        this.removeRAF(target);\n      }\n    }\n\n    willDestroy() {\n      Ember.set(this, 'registry', null);\n\n      if (this.observerAdmin) {\n        this.observerAdmin.destroy();\n        Ember.set(this, 'observerAdmin', null);\n      }\n\n      if (this.rafAdmin) {\n        this.rafAdmin.reset();\n        Ember.set(this, 'rafAdmin', null);\n      }\n    }\n\n    _buildOptions(defaultOptions = {}) {\n      const owner = Ember.getOwner(this);\n\n      if (owner) {\n        return Ember.assign(defaultOptions, owner.lookup('config:in-viewport'));\n      }\n    }\n\n    _startRaf(element, configOptions, enterCallback, exitCallback) {\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n\n      enterCallback = enterCallback || noop;\n      exitCallback = exitCallback || noop; // this isn't using the same functions as the mixin case, but that is b/c it is a bit harder to unwind.\n      // So just rewrote it with pure functions for now\n\n      (0, _rafAdmin.startRAF)(element, configOptions, enterCallback, exitCallback, this.addRAF.bind(this, element.id), this.removeRAF.bind(this, element.id));\n    }\n\n  }\n\n  _exports.default = InViewport;\n});","define(\"ember-in-viewport/utils/can-use-dom\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n  var _default = canUseDOM;\n  _exports.default = _default;\n});","define(\"ember-in-viewport/utils/can-use-intersection-observer\", [\"exports\", \"ember-in-viewport/utils/can-use-dom\"], function (_exports, _canUseDom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = canUseIntersectionObserver;\n\n  // Adapted from WC3's intersection polyfill\n  // https://github.com/w3c/IntersectionObserver/blob/master/polyfill/intersection-observer.js\n  function checkIntersectionObserver(window) {\n    if ('IntersectionObserver' in window && 'IntersectionObserverEntry' in window && 'intersectionRatio' in window.IntersectionObserverEntry.prototype) {\n      // Minimal polyfill for Edge 15's lack of `isIntersecting`\n      // See: https://github.com/w3c/IntersectionObserver/issues/211\n      if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) {\n        Object.defineProperty(window.IntersectionObserverEntry.prototype, 'isIntersecting', {\n          get: function () {\n            return this.intersectionRatio > 0;\n          }\n        });\n      }\n\n      return true;\n    }\n\n    return false;\n  }\n\n  function canUseIntersectionObserver() {\n    if (!_canUseDom.default) {\n      return false;\n    }\n\n    return checkIntersectionObserver(window);\n  }\n});","define(\"ember-in-viewport/utils/can-use-raf\", [\"exports\", \"ember-in-viewport/utils/can-use-dom\"], function (_exports, _canUseDom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = canUseRAF;\n\n  // Adapted from Paul Irish's rAF polyfill\n  // http://paulirish.com/2011/requestanimationframe-for-smart-animating/\n  // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating\n  // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel\n  // MIT license\n  function checkRAF(window, rAF, cAF) {\n    let x;\n    let vendors = ['ms', 'moz', 'webkit', 'o'];\n\n    for (x = 0; x < vendors.length && !window[rAF]; ++x) {\n      window[rAF] = window[`${vendors[x]}RequestAnimationFrame`];\n      window[cAF] = window[`${vendors[x]}CancelAnimationFrame`] || window[`${vendors[x]}CancelRequestAnimationFrame`];\n    }\n\n    if (window[rAF] && window[cAF]) {\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  function canUseRAF() {\n    if (!_canUseDom.default) {\n      return false;\n    }\n\n    return checkRAF(window, 'requestAnimationFrame', 'cancelAnimationFrame');\n  }\n});","define(\"ember-in-viewport/utils/check-scroll-direction\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = checkScrollDirection;\n  const {\n    floor\n  } = Math;\n\n  function checkScrollDirection(lastPosition = null, newPosition = {}, sensitivity = 1) {\n    if (!lastPosition) {\n      return 'none';\n    }\n\n    (true && !(sensitivity) && Ember.assert('sensitivity cannot be 0', sensitivity));\n    const {\n      top,\n      left\n    } = newPosition;\n    const {\n      top: lastTop,\n      left: lastLeft\n    } = lastPosition;\n    const delta = {\n      top: floor((top - lastTop) / sensitivity) * sensitivity,\n      left: floor((left - lastLeft) / sensitivity) * sensitivity\n    };\n\n    if (delta.top > 0) {\n      return 'down';\n    }\n\n    if (delta.top < 0) {\n      return 'up';\n    }\n\n    if (delta.left > 0) {\n      return 'right';\n    }\n\n    if (delta.left < 0) {\n      return 'left';\n    }\n  }\n});","define(\"ember-in-viewport/utils/find-elem\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(context) {\n    let elem;\n\n    if (context.nodeType === Node.ELEMENT_NODE || context.nodeType === Node.DOCUMENT_NODE || context instanceof Window) {\n      elem = context;\n    } else {\n      elem = document.querySelector(context);\n    }\n\n    return elem;\n  }\n});","define(\"ember-in-viewport/utils/is-in-viewport\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isInViewport;\n  const defaultTolerance = {\n    top: 0,\n    left: 0,\n    bottom: 0,\n    right: 0\n  };\n\n  function isInViewport(boundingClientRect = {}, height = 0, width = 0, tolerance = defaultTolerance) {\n    const {\n      top,\n      left,\n      bottom,\n      right,\n      height: h,\n      width: w\n    } = boundingClientRect;\n    const tolerances = Ember.assign(Ember.assign({}, defaultTolerance), tolerance);\n    const {\n      top: topTolerance,\n      left: leftTolerance,\n      bottom: bottomTolerance,\n      right: rightTolerance\n    } = tolerances;\n    return top + topTolerance >= 0 && left + leftTolerance >= 0 && Math.round(bottom) - bottomTolerance - h <= Math.round(height) && Math.round(right) - rightTolerance - w <= Math.round(width);\n  }\n});","define(\"ember-infinity/-private/defaults\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DEFAULTS = void 0;\n  const DEFAULTS = {\n    /**\n      Increases or decreases depending on scroll direction\n       @private\n      @property currentPage\n      @type Integer\n      @default 0\n    */\n    currentPage: 0,\n\n    /**\n      @private\n      @property extraParams\n      @type Object\n      @default null\n    */\n    extraParams: null,\n\n    /**\n      Used as a marker for the page the route starts on\n       @private\n      @property firstPage\n      @type Integer\n      @default 0\n    */\n    firstPage: 0,\n\n    /**\n      @public\n      @property isError\n      @type Boolean\n      @default false\n    */\n    isError: false,\n\n    /**\n      @public\n      @property isLoaded\n      @type Boolean\n      @default false\n    */\n    isLoaded: false,\n\n    /**\n      @public\n      @property loadingMore\n      @type Boolean\n      @default false\n    */\n    loadingMore: false,\n\n    /**\n      Arbitrary meta copied over from\n      the HTTP response, to maintain the\n      default behavior of ember-data requests\n      @type objects\n      @default null\n    */\n    meta: null,\n\n    /**\n      @private\n      @property _perPage\n      @type Integer\n      @default 25\n    */\n    perPage: 25,\n\n    /**\n      @public\n      @property reachedInfinity\n      @default false\n     */\n    reachedInfinity: false,\n\n    /**\n      @public\n      @property store\n      @default null\n     */\n    store: null,\n\n    /**\n      Name of the \"per page\" param in the\n      resource request payload\n      @type {String}\n      @default  \"per_page\"\n     */\n    perPageParam: 'per_page',\n\n    /**\n      Name of the \"page\" param in the\n      resource request payload\n      @type {String}\n      @default \"page\"\n     */\n    pageParam: 'page',\n\n    /**\n      Path of the \"total pages\" param in\n      the HTTP response\n      @type {String}\n      @default \"meta.total_pages\"\n     */\n    totalPagesParam: 'meta.total_pages',\n\n    /**\n      Path of the \"count\" param in indicating\n      number of records from HTTP response\n      @type {String}\n      @default \"meta.count\"\n     */\n    countParam: 'meta.count',\n\n    /**\n      The supported findMethod name for\n      the developers Ember Data version.\n      Provided here for backwards compat.\n      @public\n      @property storeFindMethod\n      @default null\n     */\n    storeFindMethod: null,\n\n    /**\n      @private\n      @property _count\n      @type Integer\n      @default 0\n    */\n    _count: 0,\n\n    /**\n      @private\n      @property _totalPages\n      @type Integer\n      @default 0\n    */\n    _totalPages: 0,\n\n    /**\n      @private\n      @property _infinityModelName\n      @type String\n      @default null\n    */\n    _infinityModelName: null,\n\n    /**\n      @private\n      @property _firstPageLoaded\n      @type Boolean\n      @default false\n    */\n    _firstPageLoaded: false,\n\n    /**\n      @private\n      @property _increment\n      @type Integer\n      @default 1\n    */\n    _increment: 1,\n\n    /**\n      simply used for previous page scrolling abilities and passed from\n      infinity-loader component and set on infinityModel\n      @private\n      @property _scrollable\n      @type Integer\n      @default null\n    */\n    _scrollable: null,\n\n    /**\n      determines if can load next page or previous page (if applicable)\n       @private\n      @property _canLoadMore\n      @type Boolean\n    */\n    _canLoadMore: null\n  };\n  _exports.DEFAULTS = DEFAULTS;\n});","define(\"ember-infinity/-private/evented\", [\"exports\", \"ember-infinity/-private/notifier\"], function (_exports, _notifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addEvented = addEvented;\n\n  // in lieue of a decorator, lets just use Mixin/composition pattern\n  function addEvented(Base) {\n    return class extends Base {\n      on(eventName, listener) {\n        return notifierForEvent(this, eventName).addListener(listener);\n      }\n\n      off(eventName, listener) {\n        return notifierForEvent(this, eventName).removeListener(listener);\n      }\n\n      trigger(eventName, ...args) {\n        const notifier = notifierForEvent(this, eventName);\n\n        if (notifier) {\n          notifier.trigger.apply(notifier, args);\n        }\n      }\n\n    };\n  }\n\n  function notifierForEvent(object, eventName) {\n    if (object._eventedNotifiers === undefined) {\n      object._eventedNotifiers = {};\n    }\n\n    let notifier = object._eventedNotifiers[eventName];\n\n    if (!notifier) {\n      notifier = object._eventedNotifiers[eventName] = new _notifier.default();\n    }\n\n    return notifier;\n  }\n});","define(\"ember-infinity/-private/notifier\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class Notifier {\n    constructor() {\n      this.listeners = [];\n    }\n    /**\n     * Add a callback as a listener, which will be triggered when sending\n     * notifications.\n     */\n\n\n    addListener(listener) {\n      this.listeners.push(listener);\n      return () => this.removeListener(listener);\n    }\n    /**\n     * Remove a listener so that it will no longer receive notifications.\n     */\n\n\n    removeListener(listener) {\n      const listeners = this.listeners;\n\n      for (let i = 0, len = listeners.length; i < len; i++) {\n        if (listeners[i] === listener) {\n          listeners.splice(i, 1);\n          return;\n        }\n      }\n    }\n    /**\n     * Notify registered listeners.\n     */\n\n\n    trigger(...args) {\n      this.listeners.slice(0).forEach(listener => listener(...args));\n    }\n\n  }\n\n  _exports.default = Notifier;\n});","define(\"ember-infinity/components/infinity-loader\", [\"exports\", \"ember-infinity/templates/components/infinity-loader\"], function (_exports, _infinityLoader) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const InfinityLoaderComponent = Ember.Component.extend({\n    layout: _infinityLoader.default,\n    infinity: Ember.inject.service(),\n    inViewport: Ember.inject.service(),\n    tagName: '',\n\n    /**\n     * @public\n     * @property eventDebounce\n     * @default 50\n     */\n    eventDebounce: 50,\n\n    /**\n     * @public\n     * @property loadingText\n     */\n    loadingText: 'Loading Infinity Model...',\n\n    /**\n     * @public\n     * @property loadedText\n     */\n    loadedText: 'Infinity Model Entirely Loaded.',\n\n    /**\n     * @public\n     * @property hideOnInfinity\n     * @default false\n     */\n    hideOnInfinity: false,\n\n    /**\n     * @public\n     * @property isDoneLoading\n     * @default false\n     */\n    isDoneLoading: false,\n\n    /**\n     * @public\n     * @property developmentMode\n     * @default false\n     */\n    developmentMode: false,\n\n    /**\n     * indicate to infinity-loader to load previous page\n     *\n     * @public\n     * @property loadPrevious\n     * @default false\n     */\n    loadPrevious: false,\n\n    /**\n     * set if have scrollable area\n     *\n     * @public\n     * @property scrollable\n     */\n    scrollable: null,\n\n    /**\n     * offset from bottom of target and viewport\n     *\n     * @public\n     * @property triggerOffset\n     * @defaul 0\n     */\n    triggerOffset: 0,\n\n    /**\n     * https://emberjs.com/api/ember/3.0/classes/Component/properties/isVisible?anchor=isVisible\n     *\n     * @property isVisible\n     */\n    isVisible: true,\n    loaderClassNames: Ember.computed('classNames', function () {\n      return 'infinity-loader '.concat(this.classNames).trim();\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      Ember.defineProperty(this, 'infinityModelContent', Ember.computed('infinityModel', function () {\n        return Promise.resolve(this.infinityModel);\n      }));\n      this.addObserver('infinityModel', this, this._initialInfinityModelSetup);\n\n      this._initialInfinityModelSetup();\n\n      this.addObserver('hideOnInfinity', this, this._loadStatusDidChange);\n      this.addObserver('reachedInfinity', this, this._loadStatusDidChange);\n    },\n\n    /**\n     * setup ember-in-viewport properties\n     *\n     * @method didInsertElement\n     */\n    didInsertLoader(element, [instance]) {\n      /**\n       * @public\n       * @property loadingText\n       */\n      Ember.set(instance, 'loadingText', instance.loadingText || 'Loading Infinity Model...');\n      /**\n       * @public\n       * @property loadedText\n       */\n\n      Ember.set(instance, 'loadedText', instance.loadedText || 'Infinity Model Entirely Loaded.');\n      instance.elem = element;\n      let options = {\n        viewportSpy: true,\n        viewportTolerance: {\n          top: 0,\n          right: 0,\n          bottom: instance.triggerOffset,\n          left: 0\n        },\n        scrollableArea: instance.scrollable\n      };\n      const {\n        onEnter,\n        onExit\n      } = instance.inViewport.watchElement(element, options);\n      onEnter(instance.didEnterViewport.bind(instance));\n      onExit(instance.didExitViewport.bind(instance));\n    },\n\n    willDestroy() {\n      this._cancelTimers();\n\n      Ember.get(this, 'infinityModelContent').then(infinityModel => {\n        infinityModel.off('infinityModelLoaded', this, this._loadStatusDidChange.bind(this));\n      });\n      this.removeObserver('infinityModel', this, this._initialInfinityModelSetup);\n      this.removeObserver('hideOnInfinity', this, this._loadStatusDidChange);\n      this.removeObserver('reachedInfinity', this, this._loadStatusDidChange);\n    },\n\n    /**\n     * https://github.com/DockYard/ember-in-viewport#didenterviewport-didexitviewport\n     *\n     * @method didEnterViewport\n     */\n    didEnterViewport() {\n      if (this.developmentMode || typeof FastBoot !== 'undefined' || this.isDestroying || this.isDestroyed) {\n        return false;\n      }\n\n      if (Ember.get(this, 'loadPrevious')) {\n        return this._debounceScrolledToTop();\n      }\n\n      return this._debounceScrolledToBottom();\n    },\n\n    /**\n     * https://github.com/DockYard/ember-in-viewport#didenterviewport-didexitviewport\n     *\n     * @method didExitViewport\n     */\n    didExitViewport() {\n      this._cancelTimers();\n    },\n\n    /**\n     * @method _initialInfinityModelSetup\n     */\n    _initialInfinityModelSetup() {\n      Ember.get(this, 'infinityModelContent').then(infinityModel => {\n        if (this.isDestroyed || this.isDestroying) {\n          return;\n        }\n\n        infinityModel.on('infinityModelLoaded', this._loadStatusDidChange.bind(this));\n        Ember.set(infinityModel, '_scrollable', Ember.get(this, 'scrollable'));\n        Ember.set(this, 'isDoneLoading', false);\n\n        if (!Ember.get(this, 'hideOnInfinity')) {\n          Ember.set(this, 'isVisible', true);\n        }\n\n        this._loadStatusDidChange();\n      });\n    },\n\n    /**\n     * @method _loadStatusDidChange\n     */\n    _loadStatusDidChange() {\n      Ember.get(this, 'infinityModelContent').then(infinityModel => {\n        if (this.isDestroyed || this.isDestroying) {\n          return;\n        }\n\n        if (Ember.get(infinityModel, 'reachedInfinity')) {\n          Ember.set(this, 'isDoneLoading', true);\n\n          if (Ember.get(this, 'hideOnInfinity')) {\n            Ember.set(this, 'isVisible', false);\n          }\n        } else {\n          Ember.set(this, 'isVisible', true);\n        }\n      });\n    },\n\n    /**\n     * only load previous page if route started on a page greater than 1 && currentPage is > 0\n     *\n     * @method _debounceScrolledToTop\n     */\n    _debounceScrolledToTop() {\n      /*\n       This debounce is needed when there is not enough delay between onScrolledToBottom calls.\n       Without this debounce, all rows will be rendered causing immense performance problems\n       */\n      function loadPreviousPage(content) {\n        if (typeof Ember.get(this, 'infinityLoad') === 'function') {\n          // closure action\n          return Ember.get(this, 'infinityLoad')(content, -1);\n        } else {\n          Ember.get(this, 'infinity').infinityLoad(content, -1);\n        }\n      }\n\n      Ember.get(this, 'infinityModelContent').then(content => {\n        if (Ember.get(content, 'firstPage') > 1 && Ember.get(content, 'currentPage') > 0) {\n          this._debounceTimer = Ember.run.debounce(this, loadPreviousPage, content, Ember.get(this, 'eventDebounce'));\n        }\n      });\n    },\n\n    /**\n     * @method _debounceScrolledToBottom\n     */\n    _debounceScrolledToBottom() {\n      /*\n       This debounce is needed when there is not enough delay between onScrolledToBottom calls.\n       Without this debounce, all rows will be rendered causing immense performance problems\n       */\n      function loadMore() {\n        // resolve to create thennable\n        // type is <InfinityModel|Promise|null>\n        Ember.get(this, 'infinityModelContent').then(content => {\n          if (typeof Ember.get(this, 'infinityLoad') === 'function') {\n            // closure action (if you need to perform some other logic)\n            return Ember.get(this, 'infinityLoad')(content);\n          } else {\n            // service action\n            Ember.get(this, 'infinity').infinityLoad(content, 1).then(() => {\n              if (Ember.get(content, 'canLoadMore')) {\n                this._checkScrollableHeight();\n              }\n            });\n          }\n        });\n      }\n\n      this._debounceTimer = Ember.run.debounce(this, loadMore, Ember.get(this, 'eventDebounce'));\n    },\n\n    /**\n     * recursive function to fill page with records\n     *\n     * @method _checkScrollableHeight\n     */\n    _checkScrollableHeight() {\n      if (this.isDestroying || this.isDestroyed) {\n        return false;\n      }\n\n      if (this._viewportBottom() > this.elem.getBoundingClientRect().top) {\n        // load again\n        this._debounceScrolledToBottom();\n      }\n    },\n\n    /**\n     * @method _cancelTimers\n     */\n    _cancelTimers() {\n      Ember.run.cancel(this._debounceTimer);\n    },\n\n    /**\n      calculate the bottom of the viewport\n       @private\n      @method _viewportBottom\n      @return Integer\n     */\n    _viewportBottom() {\n      if (typeof FastBoot === 'undefined') {\n        let isScrollable = !!this.scrollable;\n        let viewportElem = isScrollable ? document.querySelector(this.scrollable) : window;\n        return isScrollable ? viewportElem.getBoundingClientRect().bottom : viewportElem.innerHeight;\n      }\n    }\n\n  });\n  var _default = InfinityLoaderComponent;\n  _exports.default = _default;\n});","define(\"ember-infinity/lib/infinity-model\", [\"exports\", \"ember-infinity/-private/evented\", \"ember-infinity/-private/defaults\", \"ember-infinity/utils\"], function (_exports, _evented, _defaults, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n    @class InfinityModel\n    @namespace EmberInfinity\n    @module ember-infinity/lib/infinity-model\n    @extends Ember.ArrayProxy\n  */\n  class InfinityModel extends (0, _evented.addEvented)(Ember.ArrayProxy) {\n    init(...args) {\n      super.init(...args);\n      Ember.setProperties(this, { ..._defaults.DEFAULTS\n      });\n    }\n    /**\n      determines if can load next page or previous page (if applicable)\n       @public\n      @property canLoadMore\n      @type Boolean\n      @default false\n      @overridable\n    */\n\n\n    get canLoadMore() {\n      if (typeof this._canLoadMore === 'boolean') {\n        return this._canLoadMore;\n      }\n\n      let {\n        _count,\n        _totalPages,\n        currentPage,\n        perPage,\n        _increment\n      } = this;\n      let shouldCheck = _increment === 1 && currentPage !== undefined;\n\n      if (shouldCheck) {\n        if (_totalPages) {\n          return currentPage < _totalPages ? true : false;\n        } else if (_count) {\n          return currentPage < _count / perPage ? true : false;\n        }\n      }\n\n      if (this.firstPage > 1) {\n        // load previous page if starting page was not 1.  Otherwise ignore this block\n        return this.firstPage > 1 ? true : false;\n      }\n\n      return false;\n    }\n\n    set canLoadMore(value) {\n      Ember.set(this, '_canLoadMore', value);\n    }\n    /**\n      build the params for the next page request\n      if param does not exist (user set to null or not defined) it will not be sent with request\n      @private\n      @method buildParams\n      @return {Object} The query params for the next page of results\n     */\n\n\n    buildParams(increment) {\n      const pageParams = {};\n      let {\n        perPageParam,\n        pageParam\n      } = this;\n\n      if (typeof perPageParam === 'string') {\n        pageParams[perPageParam] = Ember.get(this, 'perPage');\n      }\n\n      if (typeof pageParam === 'string') {\n        pageParams[pageParam] = Ember.get(this, 'currentPage') + increment;\n      }\n\n      return (0, _utils.objectAssign)(pageParams, Ember.get(this, 'extraParams'));\n    }\n    /**\n      abstract after-model hook, can be overridden in subclasses\n      Used to keep shape for optimization\n       @method afterInfinityModel\n      @param {Ember.Array} newObjects the new objects added to the model\n      @param {Ember.ArrayProxy} infinityModel (self)\n      @return {Ember.RSVP.Promise} A Promise that resolves the new objects\n      @return {Ember.Array} the new objects\n     */\n\n\n    afterInfinityModel(newObjects\n    /*, infinityModel*/\n    ) {\n      // override in your subclass to customize\n      return Ember.RSVP.resolve(newObjects);\n    }\n    /**\n      lifecycle hooks\n       @method infinityModelLoaded\n     */\n\n\n    infinityModelLoaded() {}\n    /**\n      lifecycle hooks\n       @method infinityModelUpdated\n     */\n\n\n    infinityModelUpdated() {}\n\n  }\n\n  _exports.default = InfinityModel;\n});","define(\"ember-infinity/lib/infinity-promise-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.ArrayProxy.extend(Ember.PromiseProxyMixin);\n\n  _exports.default = _default;\n});","define(\"ember-infinity/services/infinity\", [\"exports\", \"ember-infinity/lib/infinity-model\", \"ember-infinity/lib/infinity-promise-array\", \"ember-infinity/utils\"], function (_exports, _infinityModel, _infinityPromiseArray, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  /**\n   * { 'products': { future_timestamp: infinityModel } }\n   * contains an array of Array Proxies\n   * only called when need to re-cache the collection\n   *\n   * @method cacheInfinityCollection\n   * @param Ember.Array _cachedCollection\n   * @param Object infinityModel\n   * @param String identifier\n   * @param String timestamp\n   * @return Object\n   */\n  let cacheInfinityCollection = (_cachedCollection, infinityModel, identifier, timestamp) => {\n    if (_cachedCollection && _cachedCollection[identifier]) {\n      // 1. first clear out elements from object since we are expired\n      _cachedCollection[identifier] = {};\n    } // 2. Set new timestamp for identifier\n\n\n    let future_timestamp = new Date().getTime() + timestamp;\n    return _cachedCollection[identifier] = {\n      [future_timestamp]: infinityModel\n    };\n  };\n\n  const ALLOWED_KEYS = ['perPage', 'perPageParam', 'startingPage', 'firstPage', 'totalPagesParam', 'countParam', 'infinityCache', 'filter', 'storeFindMethod', 'meta'];\n  /**\n   * @method stringifyObjectValues\n   * @param Object options\n   * @param String identifier\n   * @return String\n   */\n\n  let stringifyObjectValues = (options, identifier = '') => {\n    return Object.keys(options).filter(key => {\n      return ALLOWED_KEYS.indexOf(key) > -1 || typeof options[key] === 'string' || typeof options[key] === 'number' || typeof options[key] === 'boolean';\n    }).reduce((acc, key) => {\n      const value = options[key];\n\n      if (!!value && typeof value === 'object') {\n        return stringifyObjectValues(value, acc);\n      }\n\n      return acc += '' + value;\n    }, identifier);\n  };\n\n  class Infinity extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"infinityModels\", void 0);\n\n      _defineProperty(this, \"_previousScrollHeight\", 0);\n    }\n\n    /**\n      Data fetching/caching service pull off of user's route\n      Optional for end user to have ember-data\n       @public\n      @property store\n      @type Ember.Service\n    */\n    get store() {\n      if (this._store) {\n        return this._store;\n      }\n\n      return Ember.getOwner(this).lookup('service:store') || Ember.Service.extend();\n    }\n\n    set store(value) {\n      this._store = value;\n    }\n    /**\n      Internal reference to manage collection throughout lifecycle of service\n       @public\n      @property infinityModels\n      @type Ember.Service\n    */\n\n\n    init(...args) {\n      super.init(...args);\n      this._cachedCollection = {};\n      Ember.set(this, 'infinityModels', Ember.A());\n    }\n    /**\n      @method pushObjects\n      @param {EmberInfinity.InfinityModel} infinityModel\n      @param {Array} queryObject - list of Store models\n     */\n\n\n    pushObjects(infinityModel, queryObject) {\n      if ((0, _utils.checkInstanceOf)(infinityModel)) {\n        return infinityModel.pushObjects((0, _utils.convertToArray)(queryObject));\n      }\n    }\n    /**\n      @method unshiftObjects\n      @param {EmberInfinity.InfinityModel} infinityModel\n      @param {Array} queryObject - list of Store models\n     */\n\n\n    unshiftObjects(infinityModel, queryObject) {\n      if ((0, _utils.checkInstanceOf)(infinityModel)) {\n        return infinityModel.unshiftObjects((0, _utils.convertToArray)(queryObject));\n      }\n    }\n    /**\n      - Useful for updating the infinity model with a new array\n      - For example, you fetch a new array from your backend based on search criteria and need to swap out what currently\n      exists with what was returned from your query\n      - HOWEVER, note this method can be particularly dangerous, for example, when using to filter a list.  If you are not using queryParams or\n      some other sort of state that is passed to your model hook, when your component goes to fetch the next page of documents, it will not include\n      the filter param.  This will lead to a list that partly does not represent what the user filtered.\n       @method replace\n      @param {EmberInfinity.InfinityModel} infinityModel\n      @param newCollection - Ember Data (or similar store) response\n     */\n\n\n    replace(infinityModel, newCollection) {\n      if ((0, _utils.checkInstanceOf)(infinityModel)) {\n        let len = infinityModel.get('length');\n        infinityModel.replace(0, len, (0, _utils.convertToArray)(newCollection));\n        return infinityModel;\n      }\n    }\n    /**\n      Useful for clearing out the collection\n       @method flush\n      @param {EmberInfinity.InfinityModel} infinityModel\n     */\n\n\n    flush(infinityModel) {\n      if ((0, _utils.checkInstanceOf)(infinityModel)) {\n        let len = infinityModel.get('length');\n        infinityModel.replace(0, len, []);\n        return infinityModel;\n      }\n    }\n    /**\n      Trigger a load of the next page of results while also checking if it can load more\n      Subsequent fetching.  Not used for initial request\n       @public\n      @method infinityLoad\n      @param {EmberInfinity.InfinityModel} infinityModel\n      @param {Integer} increment - to increase page by 1 or -1\n     */\n\n\n    infinityLoad(infinityModel, increment = 1) {\n      if (!infinityModel) {\n        return Ember.RSVP.resolve();\n      }\n\n      infinityModel = Ember.get(this, 'infinityModels').find(model => model === infinityModel);\n      let result;\n\n      if (infinityModel) {\n        // this is duplicated if this method is called from the route.\n        Ember.set(infinityModel, '_increment', increment);\n\n        if (Ember.get(infinityModel, 'loadingMore') || !Ember.get(infinityModel, 'canLoadMore')) {\n          return Ember.RSVP.resolve();\n        }\n\n        result = this.loadNextPage(infinityModel, increment);\n      } else {\n        result = true;\n      }\n\n      return Ember.RSVP.resolve(result);\n    }\n    /**\n      Use the model method in the place of `this.store.query('model')` to\n      initialize the Infinity Model for your route.\n      Main method used for initial load of infinity collection in route or top level component\n       @method model\n      @param {String} modelName The name of the model.\n      @param {Object} options - optional - the perPage and startingPage to load from.\n      @param {Object} ExtendedInfinityModel - optional -\n        params on route to be looked up on every route request or\n        instance of InfinityModel\n      @return {Ember.RSVP.Promise}\n    */\n\n\n    model(modelName, options, ExtendedInfinityModel) {\n      if (Ember.typeOf(ExtendedInfinityModel) === \"class\") {\n        if (!(ExtendedInfinityModel.prototype instanceof _infinityModel.default)) {\n          throw new Ember.Error(\"Ember Infinity: You must pass an Infinity Model instance as the third argument\");\n        }\n      }\n\n      if (!modelName) {\n        throw new Ember.Error(\"Ember Infinity: You must pass a Model Name to infinityModel\");\n      }\n\n      options = options ? (0, _utils.objectAssign)({}, options) : {};\n\n      if (options.store) {\n        Ember.get(this, '_ensureCustomStoreCompatibility')(options, options.store, options.storeFindMethod || 'query');\n      } // default is to start at 0, request next page and increment\n\n\n      const currentPage = options.startingPage === undefined ? 0 : options.startingPage - 1; // sets first page when route is loaded\n\n      const firstPage = currentPage === 0 ? 1 : currentPage + 1; // chunk requests by indicated perPage param\n\n      const perPage = options.perPage || 25; // store service methods (defaults to ember-data if nothing passed)\n\n      const store = options.store || Ember.get(this, 'store');\n      const storeFindMethod = options.storeFindMethod || 'query';\n      let infinityModel;\n\n      if (ExtendedInfinityModel) {\n        // if custom InfinityModel, then use as base for creating an instance\n        infinityModel = ExtendedInfinityModel.create();\n      } else {\n        infinityModel = _infinityModel.default.create();\n      } // check if user passed in param w/ infinityModel, else default\n\n\n      const perPageParam = (0, _utils.paramsCheck)('perPageParam', options, infinityModel);\n      const pageParam = (0, _utils.paramsCheck)('pageParam', options, infinityModel);\n      const totalPagesParam = (0, _utils.paramsCheck)('totalPagesParam', options, infinityModel);\n      const countParam = (0, _utils.paramsCheck)('countParam', options, infinityModel);\n      const infinityCache = (0, _utils.paramsCheck)('infinityCache', options, infinityModel); // create identifier for use in storing unique cached infinity model\n\n      let identifier = stringifyObjectValues(options);\n      delete options.startingPage;\n      delete options.perPage;\n      delete options.perPageParam;\n      delete options.pageParam;\n      delete options.totalPagesParam;\n      delete options.countParam;\n      delete options.infinityCache;\n      delete options.store;\n      delete options.storeFindMethod;\n      let initParams = {\n        container: Ember.getOwner(this),\n        currentPage,\n        firstPage,\n        perPage,\n        perPageParam,\n        pageParam,\n        totalPagesParam,\n        countParam,\n        extraParams: options,\n        _infinityModelName: modelName,\n        store,\n        storeFindMethod,\n        content: Ember.A()\n      };\n\n      for (let key in initParams) {\n        if (typeof initParams[key] === 'undefined') {\n          delete initParams[key];\n        }\n      }\n\n      Ember.setProperties(infinityModel, { ...initParams\n      });\n      Ember.get(this, '_ensureCompatibility')(Ember.get(infinityModel, 'store'), Ember.get(infinityModel, 'storeFindMethod')); // route specific (for backwards compat)\n\n      Ember.get(this, 'infinityModels').pushObject(infinityModel); // internal service specific\n\n      if (infinityCache) {\n        (true && !(infinityCache > 0) && Ember.assert('timestamp must be a positive integer in milliseconds', infinityCache > 0)); // 1. create identifier for storage in _cachedCollection\n\n        let uniqueIdentifier = modelName += identifier;\n\n        let _cachedCollection = Ember.get(this, '_cachedCollection');\n\n        let cachedModel = _cachedCollection[uniqueIdentifier];\n\n        if (cachedModel) {\n          // 2. If cachedModel, get future_timestamp (ms since 1970) and compare to now\n          let future_timestamp = Object.keys(cachedModel)[0];\n\n          if (future_timestamp > Date.now()) {\n            return cachedModel[future_timestamp];\n          } else {\n            // 3. cache collection based on new timestamp\n            cacheInfinityCollection(_cachedCollection, infinityModel, uniqueIdentifier, infinityCache);\n          }\n        } else {\n          // 2. if we are expired (future_timestamp < Date.now()) or cachedModel doesn't exist, cache a new infinityModel + future timestamp\n          cacheInfinityCollection(_cachedCollection, infinityModel, uniqueIdentifier, infinityCache);\n        }\n      }\n\n      return _infinityPromiseArray.default.create({\n        promise: this['loadNextPage'](infinityModel)\n      });\n    }\n    /**\n      load the next page from the adapter and update the model\n      set current height of elements.  If loadPrevious, we will use this value to scroll back down the page\n       @public\n      @method loadNextPage\n      @param {EmberInfinity.InfinityModel} infinityModel\n      @param {Integer} increment - to increase page by 1 or -1. Default to increase by one page\n      @return {Ember.RSVP.Promise} A Promise that resolves the model\n     */\n\n\n    loadNextPage(infinityModel, increment = 1) {\n      Ember.set(infinityModel, 'isLoaded', false);\n      Ember.set(infinityModel, 'loadingMore', true);\n      Ember.set(this, '_previousScrollHeight', this._calculateHeight(infinityModel));\n      return this._requestNextPage(infinityModel, increment).then(newObjects => this._afterInfinityModel(newObjects, infinityModel)).then(newObjects => this._doUpdate(newObjects, infinityModel)).then(infinityModel => {\n        if (increment === 1) {\n          // scroll down to load next page\n          infinityModel.incrementProperty('currentPage');\n        } else {\n          if (typeof FastBoot === 'undefined') {\n            let viewportElem = Ember.get(infinityModel, '_scrollable') ? document.querySelector(Ember.get(infinityModel, '_scrollable')) : document.scrollingElement || document.documentElement;\n            Ember.run.scheduleOnce('afterRender', this, '_updateScrollTop', {\n              infinityModel,\n              viewportElem\n            }); // scrolled up to load previous page\n\n            infinityModel.decrementProperty('currentPage');\n          }\n        }\n\n        Ember.set(infinityModel, '_firstPageLoaded', true);\n        let canLoadMore = Ember.get(infinityModel, 'canLoadMore');\n        Ember.set(infinityModel, 'reachedInfinity', !canLoadMore);\n\n        if (!canLoadMore) {\n          this._notifyInfinityModelLoaded(infinityModel);\n        }\n\n        return infinityModel;\n      }).catch(e => {\n        Ember.set(infinityModel, 'isError', true);\n        throw e;\n      }).finally(() => Ember.set(infinityModel, 'loadingMore', false));\n    }\n    /**\n      calculate the height of the scrollable viewport\n       @private\n      @method _calculateHeight\n      @param {Object} infinityModel\n      @return Integer\n     */\n\n\n    _calculateHeight(infinityModel) {\n      if (typeof FastBoot === 'undefined') {\n        let isScrollable = !!Ember.get(infinityModel, '_scrollable');\n        let viewportElem = isScrollable ? document.querySelector(Ember.get(infinityModel, '_scrollable')) : document.documentElement;\n        return viewportElem.scrollHeight;\n      }\n    }\n    /**\n      This method calculates the difference if loadPrevious=true\n      The browser by default will scroll to the top of the element list when the previous page\n      loads.  As a result, we need to scroll back down the page.\n      The math behind this is as follows:\n      (height after loading previous elems) - (old height)\n      So 150px - 100px === 150px\n      178px - 100px = 78px\n      120px - 10px = 110px\n      @private\n      @method _updateScrollTop\n      @return Integer\n     */\n\n\n    _updateScrollTop({\n      infinityModel,\n      viewportElem\n    }) {\n      let scrollDiff = this._calculateHeight(infinityModel) - Ember.get(this, '_previousScrollHeight');\n      viewportElem.scrollTop += scrollDiff;\n    }\n    /**\n      request the next page from the adapter\n       @private\n      @method _requestNextPage\n      @param {EmberInfinity.InfinityModel} infinityModel\n      @param {String} increment\n      @returns {Ember.RSVP.Promise} A Promise that resolves the next page of objects\n     */\n\n\n    _requestNextPage(infinityModel, increment) {\n      const modelName = Ember.get(infinityModel, '_infinityModelName');\n      const params = infinityModel.buildParams(increment);\n      return Ember.get(infinityModel, 'store')[Ember.get(infinityModel, 'storeFindMethod')](modelName, params);\n    }\n    /**\n      set _totalPages && count param on infinityModel\n      Update the infinity model with new objects with either adding to end or start of Array of objects\n       @private\n      @method _doUpdate\n      @param {Ember.Enumerable} queryObject The new objects to add to the model\n      @param {EmberInfinity.InfinityModel} infinityModel\n      @return {Ember.Array} returns the new objects\n     */\n\n\n    _doUpdate(queryObject, infinityModel) {\n      Ember.set(infinityModel, 'isLoaded', true);\n      const totalPages = queryObject.get(Ember.get(infinityModel, 'totalPagesParam'));\n      const count = queryObject.get(Ember.get(infinityModel, 'countParam'));\n      Ember.set(infinityModel, '_totalPages', totalPages);\n      Ember.set(infinityModel, '_count', count);\n      Ember.set(infinityModel, 'meta', Ember.get(queryObject, 'meta'));\n      let newObjects;\n\n      if (infinityModel.get('_increment') === 1) {\n        newObjects = infinityModel.pushObjects(queryObject.toArray());\n      } else {\n        newObjects = infinityModel.unshiftObjects(queryObject.toArray());\n      }\n\n      this._notifyInfinityModelUpdated(queryObject, infinityModel);\n\n      return newObjects;\n    }\n    /**\n      finish the loading cycle by notifying that infinity has been reached\n       @private\n      @method _notifyInfinityModelLoaded\n      @param {EmberInfinity.InfinityModel} infinityModel\n     */\n\n\n    _notifyInfinityModelLoaded(infinityModel) {\n      function loaded() {\n        infinityModel.infinityModelLoaded({\n          totalPages: Ember.get(this, 'totalPages')\n        });\n        infinityModel.trigger('infinityModelLoaded');\n      }\n\n      Ember.run.scheduleOnce('afterRender', this, loaded);\n    }\n    /**\n      finish the loading cycle by notifying that infinity has been updated\n       @private\n      @method _notifyInfinityModelUpdated\n      @param {Array} queryObject\n      @param {EmberInfinity.InfinityModel} infinityModel\n     */\n\n\n    _notifyInfinityModelUpdated(queryObject, infinityModel) {\n      const totalPages = Ember.get(infinityModel, '_totalPages');\n      const lastPageLoaded = Ember.get(infinityModel, 'currentPage');\n      Ember.run.scheduleOnce('afterRender', infinityModel, 'infinityModelUpdated', {\n        lastPageLoaded,\n        totalPages,\n        queryObject\n      });\n    }\n    /**\n      hook to modify results from response\n       @private\n      @method _afterInfinityModel\n     */\n\n\n    _afterInfinityModel(newObjects, infinityModel) {\n      let result = infinityModel.afterInfinityModel(newObjects, infinityModel);\n\n      if (result) {\n        return result;\n      }\n\n      return newObjects;\n    }\n    /**\n      If pass in custom store, ensure passed string\n      Ensure query method exists, otherwise pass method (that returns a promise) in as storeFindMethod in options\n       @method _ensureCustomStoreCompatibility\n      @param {Option} options\n    */\n\n\n    _ensureCustomStoreCompatibility(options, store, storeFindMethod) {\n      if (!store[storeFindMethod]) {\n        throw new Ember.Error('Ember Infinity: Custom data store must specify query method');\n      }\n    }\n    /**\n      Determine if Ember data is valid\n      Ensure _store is set on route with a query method\n      Ensure model passed to infinity model\n       @method _ensureCompatibility\n    */\n\n\n    _ensureCompatibility(store, storeFindMethod) {\n      if (!store || !store[storeFindMethod]) {\n        throw new Ember.Error('Ember Infinity: Store is not available to infinity.model');\n      }\n    }\n\n  }\n\n  _exports.default = Infinity;\n});","define(\"ember-infinity/templates/components/infinity-loader\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"FSqPhNF1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"isVisible\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[11,\\\"div\\\"],[16,0,[31,[[32,0,[\\\"loaderClassNames\\\"]],[30,[36,0],[[32,0,[\\\"viewportEntered\\\"]],\\\" in-viewport\\\"],null],[30,[36,0],[[32,0,[\\\"isDoneLoading\\\"]],\\\" reached-infinity\\\"],null]]]],[24,\\\"data-test-infinity-loader\\\",\\\"\\\"],[4,[38,1],[[32,0,[\\\"didInsertLoader\\\"]],[32,0]],null],[12],[2,\\\"\\\\n\\\"],[6,[37,0],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[18,1,[[32,0,[\\\"infinityModelContent\\\"]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"isDoneLoading\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"span\\\"],[12],[1,[32,0,[\\\"loadedText\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"span\\\"],[12],[1,[32,0,[\\\"loadingText\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"  \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"did-insert\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-infinity/templates/components/infinity-loader.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-infinity/utils\", [\"exports\", \"ember-infinity/lib/infinity-model\"], function (_exports, _infinityModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.paramsCheck = paramsCheck;\n  _exports.checkInstanceOf = checkInstanceOf;\n  _exports.convertToArray = convertToArray;\n  _exports.objectAssign = void 0;\n\n  let objectAssign = Object.assign || function objectAssign(target) {\n    'use strict';\n\n    if (target == null) {\n      throw new TypeError('Cannot convert undefined or null to object');\n    }\n\n    target = Object(target);\n\n    for (var index = 1; index < arguments.length; index++) {\n      var source = arguments[index];\n\n      if (source != null) {\n        for (var key in source) {\n          if (Object.prototype.hasOwnProperty.call(source, key)) {\n            target[key] = source[key];\n          }\n        }\n      }\n    }\n\n    return target;\n  };\n  /**\n   * determine param to set on infinityModel\n   * if user passes null, then don't send query param in request\n   * if user passes option, use it\n   * else set to default param\n   *\n   * @method paramsCheck\n   * @param {String} key - param name\n   * @param {Object} options - parameter overrides\n   * @param {Object} extendedInfinityModel - custom infinity model\n   * @return {String} parameter value\n   */\n\n\n  _exports.objectAssign = objectAssign;\n\n  function paramsCheck(key, options, extendedInfinityModel) {\n    const paramDefault = Ember.get(extendedInfinityModel, key);\n    const paramOverride = options[key];\n\n    if (paramOverride === null) {\n      // allow user to set to null if passed into infinityRoute explicitly\n      return null;\n    } else if (paramOverride) {\n      return paramOverride;\n    } else {\n      return paramDefault;\n    }\n  }\n  /**\n   * @method checkInstanceOf\n   * @param {Ember.Array}\n   * @return {Boolean}\n   */\n\n\n  function checkInstanceOf(infinityModel) {\n    if (!(infinityModel instanceof _infinityModel.default)) {\n      throw new Ember.Error(\"Ember Infinity: You must pass an Infinity Model instance as the first argument\");\n    }\n\n    return true;\n  }\n  /**\n   * @method convertToArray\n   * @param {Ember.Array}\n   * @return {Array}\n   */\n\n\n  function convertToArray(queryObject) {\n    if (queryObject.toArray) {\n      return queryObject.toArray();\n    }\n\n    return queryObject;\n  }\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  }, { configurable: true });\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  }, { configurable: true });\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  }, { configurable: true });\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    }, { configurable: true });\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    }, { configurable: true });\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  const BLANK_REGEX = /^\\s*$/;\n  const LAST_WORD_DASHED_REGEX = /([\\w/-]+[_/\\s-])([a-z\\d]+$)/;\n  const LAST_WORD_CAMELIZED_REGEX = /([\\w/\\s-]+)([A-Z][a-z\\d]*$)/;\n  const CAMELIZED_REGEX = /[A-Z][a-z\\d]*$/;\n\n  function loadUncountable(rules, uncountable) {\n    for (let i = 0, length = uncountable.length; i < length; i++) {\n      rules.uncountable[uncountable[i].toLowerCase()] = true;\n    }\n  }\n\n  function loadIrregular(rules, irregularPairs) {\n    let pair;\n\n    for (let 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    const 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() {\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() {\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() {\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(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(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(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(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() {\n      return this._pluralize(...arguments);\n    },\n\n    _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(word) {\n      return this._singularize(word);\n    },\n\n    _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(word, typeRules, irregular) {\n      let inflection, substitution, result, lowercase, wordSplit, lastWord, isBlank, isCamelized, rule, isUncountable;\n\n      isBlank = !word || BLANK_REGEX.test(word);\n      isCamelized = CAMELIZED_REGEX.test(word);\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        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 = Ember.String.capitalize(substitution);\n            rule = Ember.String.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-keyboard/decorators/key-responder\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = keyResponder;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  function populateKeyboardHandlers(responder) {\n    responder.keyboardHandlers = responder.keyboardHandlers || {};\n\n    if (!responder.keyboardHandlerNames) {\n      responder.keyboardHandlerNames = {};\n\n      for (let propertyName in responder) {\n        let propertyValue = responder[propertyName];\n\n        if (typeof propertyValue === 'function' && propertyValue._emberKeyboardOnKeyDecoratorData) {\n          for (let listenerName of propertyValue._emberKeyboardOnKeyDecoratorData.listenerNames || []) {\n            responder.keyboardHandlerNames[listenerName] = propertyName;\n          }\n        }\n      }\n    }\n\n    for (let [listenerName, methodName] of Object.entries(responder.keyboardHandlerNames || {})) {\n      responder.keyboardHandlers[listenerName] = responder[methodName].bind(responder);\n    }\n  }\n\n  function keyResponder(opts = {}) {\n    const createClass = function (DecoratedClass) {\n      var _dec, _class, _descriptor, _class2, _temp;\n\n      if (opts.priority === undefined) {\n        opts.priority = 0;\n      }\n\n      if (opts.activated === undefined) {\n        opts.activated = true;\n      }\n\n      return _dec = Ember.inject.service, (_class = (_temp = _class2 = class ClassAsKeyResponder extends DecoratedClass {\n        get keyboardPriority() {\n          if (super.keyboardPriority === undefined) {\n            return opts.priority;\n          }\n\n          return super.keyboardPriority;\n        }\n\n        set keyboardPriority(val) {\n          super.keyboardPriority = val;\n        }\n\n        get keyboardActivated() {\n          if (super.keyboardActivated === undefined) {\n            return opts.activated;\n          }\n\n          return super.keyboardActivated;\n        }\n\n        set keyboardActivated(val) {\n          super.keyboardActivated = val;\n        }\n\n        constructor() {\n          super(...arguments);\n\n          _initializerDefineProperty(this, \"keyboard\", _descriptor, this);\n\n          populateKeyboardHandlers(this);\n          this.keyboard.register(this);\n        }\n\n        willDestroy() {\n          this.keyboard.unregister(this);\n          super.willDestroy(...arguments);\n        }\n\n      }, _defineProperty(_class2, \"name\", `${DecoratedClass.name}WithKeyResponder`), _temp), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"keyboard\", [_dec], {\n        configurable: true,\n        enumerable: true,\n        writable: true,\n        initializer: null\n      })), _class);\n    };\n\n    if (typeof opts === \"function\") {\n      return createClass(opts);\n    } else {\n      return function (DecoratedClass) {\n        return createClass(DecoratedClass);\n      };\n    }\n  }\n});","define(\"ember-keyboard/decorators/on-key\", [\"exports\", \"ember-keyboard/utils/listener-name\"], function (_exports, _listenerName) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = onKey;\n  const DEFAULT_EVENT_NAME = 'keydown';\n\n  function onKey(keyCombo, opts = {}) {\n    if (typeof arguments[1] === 'function') {\n      return onKeyClassic(keyCombo, {\n        event: DEFAULT_EVENT_NAME\n      }, arguments[1]);\n    }\n\n    if (!opts.event) {\n      opts.event = DEFAULT_EVENT_NAME;\n    }\n\n    if (typeof arguments[2] === 'function') {\n      return onKeyClassic(keyCombo, opts, arguments[2]);\n    } else {\n      return onKeyDecorator(keyCombo, opts);\n    }\n  }\n\n  function onKeyDecorator(keyCombo, opts) {\n    // ES6 class\n    return function (target, property, descriptor) {\n      if (!Object.prototype.hasOwnProperty.call(target, 'keyboardHandlerNames')) {\n        let parentKeyboardHandlerNames = target.parentKeyboardHandlerNames; // we need to assign because of the way mixins copy actions down when inheriting\n\n        target.keyboardHandlerNames = parentKeyboardHandlerNames ? Object.assign({}, parentKeyboardHandlerNames) : {};\n      }\n\n      target.keyboardHandlerNames[(0, _listenerName.default)(opts.event, keyCombo)] = property;\n      return descriptor;\n    };\n  }\n\n  function onKeyClassic(keyCombo, opts, handler) {\n    if (!handler._emberKeyboardOnKeyDecoratorData) {\n      handler._emberKeyboardOnKeyDecoratorData = {\n        listenerNames: []\n      };\n    }\n\n    handler._emberKeyboardOnKeyDecoratorData.listenerNames.push((0, _listenerName.default)(opts.event, keyCombo));\n\n    return handler;\n  }\n});","define(\"ember-keyboard/deprecated/components/keyboard-press\", [\"exports\", \"ember-keyboard\"], function (_exports, _emberKeyboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /* This is a component to allow an Ember template to declaratively specify an\n   * action to run when a particular key event occurs. In the following example,\n   * we trigger an action button when the \"/\" key is pressed:\n   *\n   * {{keyboard-press\n   *    key='Slash'\n   *    onDown=(action 'onSlash')\n   *  }}\n   */\n  var _default = Ember.Component.extend(_emberKeyboard.EKMixin, _emberKeyboard.EKOnInsertMixin, {\n    didInsertElement() {\n      (true && !(false) && Ember.deprecate('The `keyboard-press` component of ember-keyboard is deprecated. Please use the `on-key` helper instead.', false, {\n        id: 'ember-keyboard.keyboard-press',\n        for: 'ember-keyboard',\n        since: '6.0.0-beta.0',\n        until: '7.0.0',\n        url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#keyboard-press'\n      }));\n\n      if (this.priority) {\n        this.set('keyboardPriority', this.priority);\n      }\n\n      this._super(...arguments);\n\n      if (this.onPress) {\n        this.on((0, _emberKeyboard.keyPress)(this.key), this.onPress);\n      }\n\n      if (this.onDown) {\n        this.on((0, _emberKeyboard.keyDown)(this.key), this.onDown);\n      }\n\n      if (this.onUp) {\n        this.on((0, _emberKeyboard.keyUp)(this.key), this.onUp);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-keyboard/deprecated/modifiers/keyboard-shortcut\", [\"exports\", \"ember-modifier\"], function (_exports, _emberModifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let Klass;\n\n  if (true) {\n    var _dec, _class, _descriptor;\n\n    /* This is an element modifier to trigger a click on the element when\n     * the specified key is pressed. In the following example, we trigger a\n     * click on the button when the B key is pressed:\n     *\n     * <button {{keyboard-shortcut 'KeyB'}}>Press me or press \"B\"</button>\n     */\n    Klass = (_dec = Ember.inject.service, (_class = class KeyboardShortcutModifier extends _emberModifier.default {\n      constructor(...args) {\n        super(...args);\n\n        _initializerDefineProperty(this, \"keyboard\", _descriptor, this);\n\n        _defineProperty(this, \"keyboardActivated\", true);\n\n        _defineProperty(this, \"keyboardPriority\", 0);\n\n        _defineProperty(this, \"keyboardFirstResponder\", false);\n\n        _defineProperty(this, \"keyboardEventType\", 'keypress');\n      }\n\n      didReceiveArguments() {\n        this.key = this.args.positional[0];\n\n        if ('keyboardActivated' in this.args.named) {\n          this.keyboardActivated = this.args.named.keyboardActivated;\n        }\n\n        if ('keyboardPriority' in this.args.named) {\n          this.keyboardPriority = this.args.named.keyboardPriority;\n        }\n\n        if ('keyboardFirstResponder' in this.args.named) {\n          this.keyboardFirstResponder = this.args.named.keyboardFirstResponder;\n        }\n\n        if ('keyboardEventType' in this.args.named) {\n          this.keyboardEventType = this.args.named.keyboardEventType;\n        }\n      }\n\n      didInstall() {\n        (true && !(false) && Ember.deprecate('The `keyboard-shortcut` modifier of ember-keyboard is deprecated. Please use the `on-key` modifier with no action instead.', false, {\n          id: 'ember-keyboard.keyboard-shortcut',\n          for: 'ember-keyboard',\n          since: '6.0.2',\n          until: '7.0.0',\n          url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#keyboard-shortcut'\n        }));\n\n        try {\n          this.keyboard.register(this);\n        } catch (e) {\n          if (false) {\n            console.warn('ember-keyboard\\'s modifiers are only supported in Ember 3.8+');\n          }\n\n          throw e;\n        }\n      }\n\n      willRemove() {\n        this.keyboard.unregister(this);\n      }\n\n      has(triggerName) {\n        return triggerName === this.keyboardEventName && this.keyboardActivated;\n      }\n\n      trigger(listenerName) {\n        if (this.keyboardActivated && listenerName === this.keyboardEventName) {\n          this.element.click();\n        }\n      }\n\n      get keyboardEventName() {\n        let {\n          key,\n          keyboardEventType\n        } = this;\n        return `${keyboardEventType}:${key}`;\n      }\n\n    }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"keyboard\", [_dec], {\n      configurable: true,\n      enumerable: true,\n      writable: true,\n      initializer: null\n    })), _class));\n  } else {\n    Klass = class OnKeyboardModifier extends _emberModifier.default {\n      didInstall() {\n        throw new Error('ember-keyboard only supports the keyboard-shortcut element modifier in Ember 3.8 and higher.');\n      }\n\n    };\n  }\n\n  var _default = Klass;\n  _exports.default = _default;\n});","define(\"ember-keyboard/deprecated/modifiers/on-keyboard\", [\"exports\", \"ember-modifier\"], function (_exports, _emberModifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let Klass;\n\n  if (true) {\n    var _dec, _dec2, _dec3, _class, _descriptor;\n\n    /* This is an element modifier to trigger a click on the element when\n     * the specified key is pressed. In the following example, we trigger a\n     * click on the button when the B key is pressed:\n     *\n     * <input\n     *    type=\"text\"\n     *    placeholder=\"Type and then press enter to save\"\n     *    {{on-keyboard 'Enter' (action this.saveChanges)}\n     * >\n     */\n    Klass = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, (_class = class OnKeyboardModifier extends _emberModifier.default {\n      constructor(...args) {\n        super(...args);\n\n        _initializerDefineProperty(this, \"keyboard\", _descriptor, this);\n\n        _defineProperty(this, \"keyboardActivated\", true);\n\n        _defineProperty(this, \"keyboardPriority\", 0);\n\n        _defineProperty(this, \"keyboardFirstResponder\", false);\n\n        _defineProperty(this, \"keyboardEventType\", 'keydown');\n\n        _defineProperty(this, \"onlyWhenFocused\", true);\n      }\n\n      didReceiveArguments() {\n        this.key = this.args.positional[0];\n        this.keyboardAction = this.args.positional[1];\n\n        if (this.args.named.onlyWhenFocused !== undefined) {\n          this.onlyWhenFocused = this.args.named.onlyWhenFocused;\n        } // Future TODO: support specifying keyboardEventType, keyboardActivated,\n        // keyboardPriority, and keyboardFirstResponder via named arguments.\n        // This should be straightforward, just needs test coverage and some API\n        // decisions.\n\n      }\n\n      didInstall() {\n        (true && !(false) && Ember.deprecate('The `on-keyboard` modifier of ember-keyboard is deprecated. Please use the `on-key` modifier instead.', false, {\n          id: 'ember-keyboard.on-keyboard',\n          for: 'ember-keyboard',\n          since: '6.0.2',\n          until: '7.0.0',\n          url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#on-keyboard'\n        }));\n        this.keyboard.register(this);\n\n        if (this.onlyWhenFocused) {\n          this.keyboardActivated = false;\n          this.keyboardFirstResponder = false;\n          this.element.addEventListener('click', this.onFocus, true);\n          this.element.addEventListener('focus', this.onFocus, true);\n          this.element.addEventListener('focusout', this.onFocusOut, true);\n        }\n      }\n\n      willRemove() {\n        if (this.onlyWhenFocused) {\n          this.element.removeEventListener('click', this.onFocus, true);\n          this.element.removeEventListener('focus', this.onFocus, true);\n          this.element.removeEventListener('focusout', this.onFocusOut, true);\n          this.keyboard.unregister(this);\n        }\n      }\n\n      onFocus() {\n        this.keyboardActivated = true;\n        this.keyboardFirstResponder = true;\n      }\n\n      onFocusOut() {\n        this.keyboardActivated = false;\n        this.keyboardFirstResponder = false;\n      }\n\n      has(triggerName) {\n        return triggerName === this.keyboardEventName;\n      }\n\n      trigger(listenerName) {\n        if (listenerName === this.keyboardEventName) {\n          this.keyboardAction();\n        }\n      }\n\n      get keyboardEventName() {\n        let {\n          key,\n          keyboardEventType\n        } = this;\n        return `${keyboardEventType}:${key}`;\n      }\n\n    }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"keyboard\", [_dec], {\n      configurable: true,\n      enumerable: true,\n      writable: true,\n      initializer: null\n    }), _applyDecoratedDescriptor(_class.prototype, \"onFocus\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onFocusOut\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onFocusOut\"), _class.prototype)), _class));\n  } else {\n    Klass = class OnKeyboardModifier extends _emberModifier.default {\n      didInstall() {\n        throw new Error('ember-keyboard only supports the on-keyboard element modifier in Ember 3.8 and higher.');\n      }\n\n    };\n  }\n\n  var _default = Klass;\n  _exports.default = _default;\n});","define(\"ember-keyboard/fixtures/key-maps\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.MAC_SHIFT_ALT_KEY_MAP = _exports.MAC_ALT_KEY_MAP = _exports.SHIFT_KEY_MAP = void 0;\n  const SHIFT_KEY_MAP = {\n    'A': 'a',\n    'B': 'b',\n    'C': 'c',\n    'D': 'd',\n    'E': 'e',\n    'F': 'f',\n    'G': 'g',\n    'H': 'h',\n    'I': 'i',\n    'J': 'j',\n    'K': 'k',\n    'L': 'l',\n    'M': 'm',\n    'N': 'n',\n    'O': 'o',\n    'P': 'p',\n    'Q': 'q',\n    'R': 'r',\n    'S': 's',\n    'T': 't',\n    'U': 'u',\n    'V': 'v',\n    'W': 'w',\n    'X': 'x',\n    'Y': 'y',\n    'Z': 'z',\n    '!': '1',\n    '@': '2',\n    '#': '3',\n    '$': '4',\n    '%': '5',\n    '^': '6',\n    '&': '7',\n    '*': '8',\n    '(': '9',\n    ')': '0',\n    '_': '-',\n    '+': '=',\n    '<': ',',\n    '>': '.',\n    '?': '/',\n    ':': ';',\n    '\"': \"'\",\n    '~': '`',\n    '{': '[',\n    '}': ']',\n    '|': '\\\\'\n  };\n  _exports.SHIFT_KEY_MAP = SHIFT_KEY_MAP;\n  const MAC_ALT_KEY_MAP = {\n    'å': 'a',\n    'b': 'b',\n    'ç': 'c',\n    '∂': 'd',\n    // 'Dead': 'e',\n    'ƒ': 'f',\n    '©': 'g',\n    '˙': 'h',\n    // 'Dead': 'i',\n    '∆': 'j',\n    '˚': 'k',\n    '¬': 'l',\n    'µ': 'm',\n    // 'Dead': 'n',\n    'ø': 'o',\n    'π': 'p',\n    'œ': 'q',\n    '®': 'r',\n    'ß': 's',\n    '†': 't',\n    // 'Dead': 'u',\n    '√': 'v',\n    '∑': 'w',\n    '≈': 'x',\n    '¥': 'y',\n    'Ω': 'z',\n    '¡': '1',\n    '™': '2',\n    '£': '3',\n    '¢': '4',\n    '∞': '5',\n    '§': '6',\n    '¶': '7',\n    '•': '8',\n    'ª': '9',\n    'º': '0',\n    '–': '-',\n    '≠': '=',\n    '≤': ',',\n    '≥': '.',\n    '÷': '/',\n    '…': ';',\n    'æ': \"'\",\n    // 'Dead': '`',\n    '“': '[',\n    '‘': ']',\n    '«': '\\\\'\n  };\n  _exports.MAC_ALT_KEY_MAP = MAC_ALT_KEY_MAP;\n  const MAC_SHIFT_ALT_KEY_MAP = {\n    'Å': 'a',\n    'ı': 'b',\n    // 'Dead': 'c',\n    'Î': 'd',\n    // 'Dead': 'e',\n    'Ï': 'f',\n    '˝': 'g',\n    'Ó': 'h',\n    'ˆ': 'i',\n    'Ô': 'j',\n    '': 'k',\n    'Ò': 'l',\n    'Â': 'm',\n    '˜': 'n',\n    'Ø': 'o',\n    // 'Dead': 'p',\n    'Œ': 'q',\n    '‰': 'r',\n    'Í': 's',\n    'ˇ': 't',\n    '¨': 'u',\n    '◊': 'v',\n    '„': 'w',\n    '˛': 'x',\n    'Á': 'y',\n    '¸': 'z',\n    '⁄': '1',\n    '€': '2',\n    '‹': '3',\n    '›': '4',\n    'ﬁ': '5',\n    'ﬂ': '6',\n    '‡': '7',\n    '°': '8',\n    '·': '9',\n    '‚': '0',\n    '—': '-',\n    '±': '=',\n    '¯': ',',\n    '˘': '.',\n    '¿': '/',\n    'Ú': ';',\n    'Æ': \"'\",\n    '`': '`',\n    '”': '[',\n    '’': ']',\n    '»': '\\\\'\n  };\n  _exports.MAC_SHIFT_ALT_KEY_MAP = MAC_SHIFT_ALT_KEY_MAP;\n});","define(\"ember-keyboard/fixtures/modifiers-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = ['alt', 'ctrl', 'meta', 'shift', 'cmd'];\n  _exports.default = _default;\n});","define(\"ember-keyboard/fixtures/mouse-buttons-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = ['left', 'middle', 'right'];\n  _exports.default = _default;\n});","define(\"ember-keyboard/helpers/if-key\", [\"exports\", \"ember-keyboard/utils/is-key\", \"ember-keyboard/utils/listener-name\"], function (_exports, _isKey, _listenerName) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.helper(function ifKey([keyCombo, callback]\n  /*, hash*/\n  ) {\n    return function (event) {\n      (true && !(typeof callback === 'function') && Ember.assert('ember-keyboard: You must pass a function as the second argument to the `if-key` helper', typeof callback === 'function'));\n      (true && !(event instanceof KeyboardEvent) && Ember.assert('ember-keyboard: The `if-key` helper expects to be invoked with a KeyboardEvent', event instanceof KeyboardEvent));\n\n      if ((0, _isKey.default)((0, _listenerName.default)(event.type, keyCombo), event)) {\n        callback(event);\n      }\n    };\n  });\n\n  _exports.default = _default;\n});","define(\"ember-keyboard/helpers/on-key\", [\"exports\", \"ember-keyboard/utils/listener-name\"], function (_exports, _listenerName) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _class2, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let _class = (_dec = Ember.inject.service, (_class2 = class _class2 extends Ember.Helper {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"keyboard\", _descriptor, this);\n\n      _defineProperty(this, \"keyCombo\", void 0);\n\n      _defineProperty(this, \"callback\", void 0);\n\n      _defineProperty(this, \"keyboardActivated\", true);\n\n      _defineProperty(this, \"keyboardPriority\", 0);\n\n      _defineProperty(this, \"eventName\", 'keydown');\n\n      _defineProperty(this, \"keyboardHandlers\", void 0);\n    }\n\n    compute([keyCombo, callback], {\n      event = 'keydown',\n      activated = true,\n      priority = 0\n    }) {\n      (true && !(typeof callback === 'function') && Ember.assert('ember-keyboard: You must pass a function as the second argument to the `on-key` helper', typeof callback === 'function'));\n      this.keyCombo = keyCombo;\n      this.callback = callback;\n      this.eventName = event;\n      this.keyboardActivated = activated;\n      this.keyboardPriority = priority;\n      this.keyboardHandlers = {};\n      this.keyboardHandlers[(0, _listenerName.default)(event, keyCombo)] = callback;\n      this.keyboard.register(this);\n    }\n\n    willDestroy() {\n      this.keyboard.unregister(this);\n      super.willDestroy(...arguments);\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"keyboard\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class2));\n\n  _exports.default = _class;\n});","define(\"ember-keyboard/index\", [\"exports\", \"ember-keyboard/utils/get-mouse-code\", \"ember-keyboard/mixins/ember-keyboard\", \"ember-keyboard/mixins/keyboard-first-responder-on-focus\", \"ember-keyboard/mixins/activate-keyboard-on-focus\", \"ember-keyboard/mixins/activate-keyboard-on-insert\", \"ember-keyboard/mixins/activate-keyboard-on-init\", \"ember-keyboard/decorators/key-responder\", \"ember-keyboard/decorators/on-key\", \"ember-keyboard/listeners/key-events\", \"ember-keyboard/listeners/mouse-events\", \"ember-keyboard/listeners/touch-events\", \"ember-keyboard/initializers/ember-keyboard-first-responder-inputs\", \"ember-keyboard/utils/trigger-event\"], function (_exports, _getMouseCode, _emberKeyboard, _keyboardFirstResponderOnFocus, _activateKeyboardOnFocus, _activateKeyboardOnInsert, _activateKeyboardOnInit, _keyResponder, _onKey, _keyEvents, _mouseEvents, _touchEvents, _emberKeyboardFirstResponderInputs, _triggerEvent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getCode = getCode;\n  _exports.getKeyCode = getKeyCode;\n  Object.defineProperty(_exports, \"getMouseCode\", {\n    enumerable: true,\n    get: function () {\n      return _getMouseCode.default;\n    }\n  });\n  Object.defineProperty(_exports, \"EKMixin\", {\n    enumerable: true,\n    get: function () {\n      return _emberKeyboard.default;\n    }\n  });\n  Object.defineProperty(_exports, \"EKFirstResponderOnFocusMixin\", {\n    enumerable: true,\n    get: function () {\n      return _keyboardFirstResponderOnFocus.default;\n    }\n  });\n  Object.defineProperty(_exports, \"EKOnFocusMixin\", {\n    enumerable: true,\n    get: function () {\n      return _activateKeyboardOnFocus.default;\n    }\n  });\n  Object.defineProperty(_exports, \"EKOnInsertMixin\", {\n    enumerable: true,\n    get: function () {\n      return _activateKeyboardOnInsert.default;\n    }\n  });\n  Object.defineProperty(_exports, \"EKOnInitMixin\", {\n    enumerable: true,\n    get: function () {\n      return _activateKeyboardOnInit.default;\n    }\n  });\n  Object.defineProperty(_exports, \"keyResponder\", {\n    enumerable: true,\n    get: function () {\n      return _keyResponder.default;\n    }\n  });\n  Object.defineProperty(_exports, \"onKey\", {\n    enumerable: true,\n    get: function () {\n      return _onKey.default;\n    }\n  });\n  Object.defineProperty(_exports, \"keyDown\", {\n    enumerable: true,\n    get: function () {\n      return _keyEvents.keyDown;\n    }\n  });\n  Object.defineProperty(_exports, \"keyUp\", {\n    enumerable: true,\n    get: function () {\n      return _keyEvents.keyUp;\n    }\n  });\n  Object.defineProperty(_exports, \"keyPress\", {\n    enumerable: true,\n    get: function () {\n      return _keyEvents.keyPress;\n    }\n  });\n  Object.defineProperty(_exports, \"click\", {\n    enumerable: true,\n    get: function () {\n      return _mouseEvents.click;\n    }\n  });\n  Object.defineProperty(_exports, \"mouseDown\", {\n    enumerable: true,\n    get: function () {\n      return _mouseEvents.mouseDown;\n    }\n  });\n  Object.defineProperty(_exports, \"mouseUp\", {\n    enumerable: true,\n    get: function () {\n      return _mouseEvents.mouseUp;\n    }\n  });\n  Object.defineProperty(_exports, \"touchStart\", {\n    enumerable: true,\n    get: function () {\n      return _touchEvents.touchStart;\n    }\n  });\n  Object.defineProperty(_exports, \"touchEnd\", {\n    enumerable: true,\n    get: function () {\n      return _touchEvents.touchEnd;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function () {\n      return _emberKeyboardFirstResponderInputs.initialize;\n    }\n  });\n  Object.defineProperty(_exports, \"triggerKeyDown\", {\n    enumerable: true,\n    get: function () {\n      return _triggerEvent.triggerKeyDown;\n    }\n  });\n  Object.defineProperty(_exports, \"triggerKeyPress\", {\n    enumerable: true,\n    get: function () {\n      return _triggerEvent.triggerKeyPress;\n    }\n  });\n  Object.defineProperty(_exports, \"triggerKeyUp\", {\n    enumerable: true,\n    get: function () {\n      return _triggerEvent.triggerKeyUp;\n    }\n  });\n\n  /* eslint-disable ember/no-mixins */\n  function getCode() {\n    throw new Error('ember-keyboard: `getCode` has been removed. There is no longer a need for this function as you can directly specify `key` and/or `code` values');\n  }\n\n  function getKeyCode() {\n    throw new Error('ember-keyboard: `getKeyCode` has been removed. There is no longer a need for this function as you can directly specify `key` and/or `code` values');\n  }\n});","define(\"ember-keyboard/initializers/ember-keyboard-first-responder-inputs\", [\"exports\", \"ember-keyboard\"], function (_exports, _emberKeyboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  function initialize(application) {\n    if (application) {\n      let config = application.resolveRegistration('config:environment') || {};\n      let emberKeyboardConfig = config.emberKeyboard || {};\n      let disableInputsInitializer = Boolean(emberKeyboardConfig.disableInputsInitializer);\n\n      if (disableInputsInitializer) {\n        return;\n      }\n    }\n\n    (true && !(false) && Ember.deprecate('The `ember-keyboard-first-responder-inputs` initializer is deprecated and will be removed in 7.0. Please use the `on-key` modifier with your text fields instead.', false, {\n      id: 'ember-keyboard.first-responder-inputs',\n      for: 'ember-keyboard',\n      since: '6.0.2',\n      until: '7.0.0',\n      url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#first-responder-inputs'\n    }));\n    Ember.TextField.reopen(_emberKeyboard.EKMixin, _emberKeyboard.EKFirstResponderOnFocusMixin);\n    Ember.TextArea.reopen(_emberKeyboard.EKMixin, _emberKeyboard.EKFirstResponderOnFocusMixin);\n  }\n\n  var _default = {\n    name: 'ember-keyboard-first-responder-inputs',\n    initialize: initialize\n  };\n  _exports.default = _default;\n});","define(\"ember-keyboard/listeners/key-events\", [\"exports\", \"ember-keyboard/utils/listener-name\"], function (_exports, _listenerName) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.keyDown = keyDown;\n  _exports.keyPress = keyPress;\n  _exports.keyUp = keyUp;\n\n  function keyDown(keyCombo) {\n    return (0, _listenerName.default)('keydown', keyCombo);\n  }\n\n  function keyPress(keyCombo) {\n    return (0, _listenerName.default)('keypress', keyCombo);\n  }\n\n  function keyUp(keyCombo) {\n    return (0, _listenerName.default)('keyup', keyCombo);\n  }\n});","define(\"ember-keyboard/listeners/mouse-events\", [\"exports\", \"ember-keyboard/utils/listener-name\", \"ember-keyboard/fixtures/mouse-buttons-array\", \"ember-keyboard/fixtures/modifiers-array\"], function (_exports, _listenerName, _mouseButtonsArray, _modifiersArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.click = click;\n  _exports.mouseDown = mouseDown;\n  _exports.mouseUp = mouseUp;\n\n  const validKeys = _mouseButtonsArray.default.concat(_modifiersArray.default);\n\n  const validateKeys = function validateKeys(keys) {\n    keys.forEach(key => {\n      if (validKeys.indexOf(key) === -1) {\n        /* eslint no-console: [\"error\", { allow: [\"error\"] }] */\n        console.error(`\\`${key}\\` is not a valid key name`);\n      }\n    });\n  };\n\n  const formattedListener = function formattedListener(type, keysString) {\n    const keys = keysString !== undefined ? keysString.split('+') : [];\n    validateKeys(keys);\n    return (0, _listenerName.default)(type, keys);\n  };\n\n  function click(keys) {\n    return formattedListener('click', keys);\n  }\n\n  function mouseDown(keys) {\n    return formattedListener('mousedown', keys);\n  }\n\n  function mouseUp(keys) {\n    return formattedListener('mouseup', keys);\n  }\n});","define(\"ember-keyboard/listeners/touch-events\", [\"exports\", \"ember-keyboard/utils/listener-name\", \"ember-keyboard/fixtures/modifiers-array\"], function (_exports, _listenerName, _modifiersArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.touchEnd = touchEnd;\n  _exports.touchStart = touchStart;\n\n  function validateKeys(keysString) {\n    const keys = keysString !== undefined ? keysString.split('+') : [];\n    keys.forEach(key => {\n      if (_modifiersArray.default.indexOf(key) === -1) {\n        /* eslint no-console: [\"error\", { allow: [\"error\"] }] */\n        console.error(`\\`${key}\\` is not a valid key name`);\n      }\n    });\n  }\n\n  const formattedListener = function formattedListener(type, keysString) {\n    validateKeys(keysString);\n    return (0, _listenerName.default)(type, keysString);\n  };\n\n  function touchEnd(keys) {\n    return formattedListener('touchEnd', keys);\n  }\n\n  function touchStart(keys) {\n    return formattedListener('touchstart', keys);\n  }\n});","define(\"ember-keyboard/mixins/activate-keyboard-on-focus\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    init(...args) {\n      (true && !(false) && Ember.deprecate('`EKOnFocusMixin` of ember-keyboard is deprecated. This behavior is now automatic when using the `on-key` modifier with a text field. For other use cases, implement manually.', false, {\n        id: 'ember-keyboard.activate-keyboard-on-focus-mixin',\n        for: 'ember-keyboard',\n        since: '6.0.2',\n        until: '7.0.0',\n        url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#activate-keyboard-on-focus-mixin'\n      }));\n      return this._super(...args);\n    },\n\n    activateKeyboardWhenFocused: Ember.on('click', 'focusIn', function () {\n      Ember.set(this, 'keyboardActivated', true);\n    }),\n    deactivateKeyboardWhenFocusOut: Ember.on('focusOut', function () {\n      Ember.set(this, 'keyboardActivated', false);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-keyboard/mixins/activate-keyboard-on-init\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    init(...args) {\n      (true && !(false) && Ember.deprecate('`EKOnInitMixin` mixin of ember-keyboard is deprecated. This behavior is now the default when using the @keyResponder decorator.', false, {\n        id: 'ember-keyboard.activate-keyboard-on-init-mixin',\n        for: 'ember-keyboard',\n        since: '6.0.2',\n        until: '7.0.0',\n        url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#activate-keyboard-on-init-mixin'\n      }));\n      return this._super(...args);\n    },\n\n    activateKeyboardWhenStarted: Ember.on('init', function () {\n      Ember.set(this, 'keyboardActivated', true);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-keyboard/mixins/activate-keyboard-on-insert\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    init(...args) {\n      (true && !(false) && Ember.deprecate('`EKOnInsertMixin` of ember-keyboard is deprecated. You can achieve this behavior by using the `on-key` helper, or by using `@keyResponder` in conjunction with a `did-insert` modifier.', false, {\n        id: 'ember-keyboard.activate-keyboard-on-insert-mixin',\n        for: 'ember-keyboard',\n        since: '6.0.2',\n        until: '7.0.0',\n        url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#activate-keyboard-on-insert-mixin'\n      }));\n      return this._super(...args);\n    },\n\n    activateKeyboardWhenPresent: Ember.on('didInsertElement', function () {\n      Ember.set(this, 'keyboardActivated', true);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-keyboard/mixins/ember-keyboard\", [\"exports\", \"ember-keyboard/utils/handle-key-event\"], function (_exports, _handleKeyEvent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create(Ember.Evented, {\n    keyboardPriority: 0,\n    keyboard: Ember.inject.service(),\n\n    init(...args) {\n      (true && !(false) && Ember.deprecate('`EKMixin` of ember-keyboard is deprecated. Please use the @keyResponder decorator instead.', false, {\n        id: 'ember-keyboard.ember-keyboard-mixin',\n        for: 'ember-keyboard',\n        since: '6.0.2',\n        until: '7.0.0',\n        url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#ember-keyboard-mixin'\n      }));\n      this.keyboard.register(this);\n      return this._super(...args);\n    },\n\n    willDestroyElement(...args) {\n      this._super(...args);\n\n      this.keyboard.unregister(this);\n    },\n\n    willDestroy(...args) {\n      this._super(...args);\n\n      this.keyboard.unregister(this);\n    },\n\n    // These next two methods adapt this mixin to conform to the new responder API.\n    // In the future, once we have good alternatives, we expect all of this addon's\n    // mixins to be deprecated and removed, but for now this will let it execute\n    // without triggering deprecation warnings.\n    canHandleKeyboardEvent(event) {\n      for (let listenerName of (0, _handleKeyEvent.getListenerNames)(event)) {\n        if (this.has(listenerName)) {\n          return true;\n        }\n      }\n\n      return false;\n    },\n\n    handleKeyboardEvent(event, ekEvent) {\n      (0, _handleKeyEvent.triggerViaLegacyResponderApi)(this, event, ekEvent);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-keyboard/mixins/keyboard-first-responder-on-focus\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    init(...args) {\n      (true && !(false) && Ember.deprecate('`EKFirstResponderOnFocusMixin` of ember-keyboard is deprecated. This behavior is now the default when using the `on-key` modifier with a text field. For other use cases, implement manually.', false, {\n        id: 'ember-keyboard.keyboard-first-responder-on-focus-mixin',\n        for: 'ember-keyboard',\n        since: '6.0.2',\n        until: '7.0.0',\n        url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#keyboard-first-responder-on-focus-mixin'\n      }));\n      return this._super(...args);\n    },\n\n    makeFirstResponderOnFocusIn: Ember.on('click', 'focusIn', function () {\n      Ember.setProperties(this, {\n        keyboardActivated: true,\n        keyboardFirstResponder: true\n      });\n    }),\n    resignFirstResponderOnFocusOut: Ember.on('focusOut', function () {\n      Ember.set(this, 'keyboardFirstResponder', false);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-keyboard/modifiers/on-key\", [\"exports\", \"ember-modifier\", \"ember-keyboard/utils/listener-name\", \"ember-keyboard/utils/is-key\"], function (_exports, _emberModifier, _listenerName, _isKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const ONLY_WHEN_FOCUSED_TAG_NAMES = ['input', 'select', 'textarea'];\n  let Klass;\n\n  if (true) {\n    var _dec, _dec2, _dec3, _class, _descriptor;\n\n    /* This is an element modifier to trigger some behavior when\n     * specified key combo is pressed. When used with a form element\n     * (input, textarea, or select), the action fires only when element\n     * has focus. When used with another element type, it will trigger the\n     * passed action, OR if no action is passed, it will trigger a `click`\n     * on the element. This allows for easy declaration of keyboard shortcuts\n     * for anything clickable: In the following example, we trigger a\n     * click on the button when the B key is pressed:\n     *\n     * <button\n     *    type=\"button\"\n     *    {{on-key 'b'}}>\n     *   Click me, or press \"B\"\n     * </button>\n     */\n    Klass = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, (_class = class OnKeyModifier extends _emberModifier.default {\n      constructor(...args) {\n        super(...args);\n\n        _initializerDefineProperty(this, \"keyboard\", _descriptor, this);\n\n        _defineProperty(this, \"keyboardPriority\", 0);\n\n        _defineProperty(this, \"activatedParamValue\", true);\n\n        _defineProperty(this, \"eventName\", 'keydown');\n\n        _defineProperty(this, \"onlyWhenFocused\", true);\n\n        _defineProperty(this, \"listenerName\", void 0);\n      }\n\n      didReceiveArguments() {\n        let [keyCombo, callback] = this.args.positional;\n        let {\n          activated,\n          event,\n          priority\n        } = this.args.named;\n        this.keyCombo = keyCombo;\n        this.callback = callback;\n        this.eventName = event || 'keydown';\n        this.activatedParamValue = Object.keys(this.args.named).includes('activated') ? !!activated : undefined;\n        this.keyboardPriority = priority ? parseInt(priority, 10) : 0;\n        this.listenerName = (0, _listenerName.default)(this.eventName, this.keyCombo);\n\n        if (this.args.named.onlyWhenFocused !== undefined) {\n          this.onlyWhenFocused = this.args.named.onlyWhenFocused;\n        } else {\n          this.onlyWhenFocused = ONLY_WHEN_FOCUSED_TAG_NAMES.includes(this.element.tagName.toLowerCase());\n        }\n      }\n\n      didInstall() {\n        this.keyboard.register(this);\n\n        if (this.onlyWhenFocused) {\n          this.element.addEventListener('click', this.onFocus, true);\n          this.element.addEventListener('focus', this.onFocus, true);\n          this.element.addEventListener('focusout', this.onFocusOut, true);\n        }\n      }\n\n      willRemove() {\n        if (this.onlyWhenFocused) {\n          this.element.removeEventListener('click', this.onFocus, true);\n          this.element.removeEventListener('focus', this.onFocus, true);\n          this.element.removeEventListener('focusout', this.onFocusOut, true);\n        }\n\n        this.keyboard.unregister(this);\n      }\n\n      onFocus() {\n        this.isFocused = true;\n      }\n\n      onFocusOut() {\n        this.isFocused = false;\n      }\n\n      get keyboardActivated() {\n        if (this.activatedParamValue === false) {\n          return false;\n        }\n\n        if (this.onlyWhenFocused) {\n          return this.isFocused;\n        }\n\n        return true;\n      }\n\n      get keyboardFirstResponder() {\n        if (this.onlyWhenFocused) {\n          return this.isFocused;\n        }\n\n        return false;\n      }\n\n      canHandleKeyboardEvent(event) {\n        return (0, _isKey.default)(this.listenerName, event);\n      }\n\n      handleKeyboardEvent(event, ekEvent) {\n        if ((0, _isKey.default)(this.listenerName, event)) {\n          if (this.callback) {\n            this.callback(event, ekEvent);\n          } else {\n            this.element.click();\n          }\n        }\n      }\n\n    }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"keyboard\", [_dec], {\n      configurable: true,\n      enumerable: true,\n      writable: true,\n      initializer: null\n    }), _applyDecoratedDescriptor(_class.prototype, \"onFocus\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onFocusOut\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onFocusOut\"), _class.prototype)), _class));\n  } else {\n    Klass = class OnKeyModifier extends _emberModifier.default {\n      didInstall() {\n        throw new Error('ember-keyboard only supports the on-key element modifier in Ember 3.8 and higher.');\n      }\n\n    };\n  }\n\n  var _default = Klass;\n  _exports.default = _default;\n});","define(\"ember-keyboard/services/keyboard\", [\"exports\", \"ember-keyboard/listeners/key-events\", \"ember-keyboard/utils/handle-key-event\", \"ember-keyboard/utils/sort\"], function (_exports, _keyEvents, _handleKeyEvent, _sort) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _class;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  let KeyboardService = (_dec = Ember._action, (_class = class KeyboardService extends Ember.Service {\n    get activeResponders() {\n      let {\n        registeredResponders\n      } = this;\n      return Array.from(registeredResponders).filter(r => r.keyboardActivated);\n    }\n\n    get sortedResponders() {\n      return this.activeResponders.sort((a, b) => {\n        if (this.isPropagationEnabled) {\n          return (0, _sort.reverseCompareProp)(a, b, 'keyboardPriority');\n        } else {\n          let compareValue = (0, _sort.reverseCompareProp)(a, b, 'keyboardFirstResponder', Boolean);\n\n          if (compareValue === 0) {\n            return (0, _sort.reverseCompareProp)(a, b, 'keyboardPriority');\n          }\n\n          return compareValue;\n        }\n      });\n    }\n\n    get firstResponders() {\n      return this.sortedResponders.filter(r => r.keyboardFirstResponder);\n    }\n\n    get normalResponders() {\n      return this.sortedResponders.filter(r => !r.keyboardFirstResponder);\n    }\n\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"isPropagationEnabled\", false);\n\n      _defineProperty(this, \"registeredResponders\", new Set());\n\n      if (typeof FastBoot !== 'undefined') {\n        return;\n      }\n\n      const config = Ember.getOwner(this).resolveRegistration('config:environment') || {};\n      let emberKeyboardConfig = config.emberKeyboard || {};\n      const isPropagationEnabled = Boolean(emberKeyboardConfig.propagation);\n      this.isPropagationEnabled = isPropagationEnabled;\n      this._listeners = emberKeyboardConfig.listeners || ['keyUp', 'keyDown', 'keyPress'];\n      this._listeners = this._listeners.map(listener => listener.toLowerCase());\n\n      this._listeners.forEach(type => {\n        document.addEventListener(type, this._respond);\n      });\n    }\n\n    willDestroy(...args) {\n      super.willDestroy(...args);\n\n      if (typeof FastBoot !== 'undefined') {\n        return;\n      }\n\n      this._listeners.forEach(type => {\n        document.removeEventListener(type, this._respond);\n      });\n    }\n\n    _respond(event) {\n      Ember.run(() => {\n        if (this.isPropagationEnabled) {\n          let {\n            firstResponders,\n            normalResponders\n          } = this;\n          (0, _handleKeyEvent.handleKeyEventWithPropagation)(event, {\n            firstResponders,\n            normalResponders\n          });\n        } else {\n          let {\n            sortedResponders\n          } = this;\n          (0, _handleKeyEvent.handleKeyEventWithLaxPriorities)(event, sortedResponders);\n        }\n      });\n    }\n\n    register(responder) {\n      this.registeredResponders.add(responder);\n    }\n\n    unregister(responder) {\n      this.registeredResponders.delete(responder);\n    }\n\n    keyDown(...args) {\n      return (0, _keyEvents.keyDown)(...args);\n    }\n\n    keyPress(...args) {\n      return (0, _keyEvents.keyPress)(...args);\n    }\n\n    keyUp(...args) {\n      return (0, _keyEvents.keyUp)(...args);\n    }\n\n  }, (_applyDecoratedDescriptor(_class.prototype, \"_respond\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"_respond\"), _class.prototype)), _class));\n  _exports.default = KeyboardService;\n});","define(\"ember-keyboard/utils/get-cmd-key\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(platform) {\n    if (typeof FastBoot === 'undefined') {\n      if (platform === undefined) {\n        platform = navigator.platform;\n      }\n\n      if (platform.indexOf('Mac') > -1) {\n        return 'meta';\n      } else {\n        return 'ctrl';\n      }\n    }\n  }\n});","define(\"ember-keyboard/utils/get-mouse-code\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getMouseName;\n\n  function getMouseName(buttonCode) {\n    if (Ember.isNone(buttonCode)) return;\n\n    switch (buttonCode) {\n      case 'left':\n        return 0;\n\n      case 'middle':\n        return 1;\n\n      case 'right':\n        return 2;\n    }\n  }\n});","define(\"ember-keyboard/utils/get-mouse-name\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getMouseName;\n\n  function getMouseName(buttonCode) {\n    if (Ember.isNone(buttonCode)) return;\n\n    switch (buttonCode) {\n      case 0:\n        return 'left';\n\n      case 1:\n        return 'middle';\n\n      case 2:\n        return 'right';\n    }\n  }\n});","define(\"ember-keyboard/utils/handle-key-event\", [\"exports\", \"ember-keyboard/utils/get-mouse-name\", \"ember-keyboard/utils/listener-name\", \"ember-keyboard/utils/is-key\"], function (_exports, _getMouseName, _listenerName, _isKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.handleKeyEventWithPropagation = handleKeyEventWithPropagation;\n  _exports.handleKeyEventWithLaxPriorities = handleKeyEventWithLaxPriorities;\n  _exports.getListenerNames = getListenerNames;\n  _exports.triggerViaLegacyResponderApi = triggerViaLegacyResponderApi;\n\n  function modifierStrings(event) {\n    if (event instanceof KeyboardEvent) {\n      return ['alt', 'ctrl', 'meta', 'shift'].reduce((result, keyName) => {\n        if (event[`${keyName}Key`]) {\n          result.push(keyName);\n        }\n\n        return result;\n      }, []);\n    } else if (event instanceof MouseEvent) {\n      let mouseButton = (0, _getMouseName.default)(event.button);\n\n      if (mouseButton) {\n        return [mouseButton];\n      }\n\n      return [];\n    }\n  }\n\n  function handleKeyEventWithPropagation(event, {\n    firstResponders,\n    normalResponders\n  }) {\n    let isImmediatePropagationStopped = false;\n    let isPropagationStopped = false;\n    const ekEvent = {\n      stopImmediatePropagation() {\n        isImmediatePropagationStopped = true;\n      },\n\n      stopPropagation() {\n        isPropagationStopped = true;\n      }\n\n    };\n    /* eslint-disable no-unused-vars */\n\n    for (const responder of firstResponders) {\n      triggerResponderListener(responder, event, ekEvent);\n\n      if (isImmediatePropagationStopped) {\n        break;\n      }\n    }\n\n    if (isPropagationStopped) {\n      return;\n    }\n\n    isImmediatePropagationStopped = false;\n    let previousPriorityLevel = Number.POSITIVE_INFINITY;\n\n    for (const responder of normalResponders) {\n      const currentPriorityLevel = Number(responder.keyboardPriority);\n\n      if (isImmediatePropagationStopped && currentPriorityLevel === previousPriorityLevel) {\n        continue;\n      }\n\n      if (currentPriorityLevel < previousPriorityLevel) {\n        if (isPropagationStopped) {\n          return;\n        }\n\n        isImmediatePropagationStopped = false;\n        previousPriorityLevel = currentPriorityLevel;\n      }\n\n      triggerResponderListener(responder, event, ekEvent);\n    }\n    /* eslint-enable no-unused-vars */\n\n  }\n\n  function handleKeyEventWithLaxPriorities(event, sortedResponders) {\n    let currentPriorityLevel;\n    let noFirstResponders = true;\n    let isLax = true;\n    sortedResponders.every(responder => {\n      const keyboardFirstResponder = responder.keyboardFirstResponder;\n      const keyboardPriority = responder.keyboardPriority;\n\n      if (keyboardFirstResponder || noFirstResponders && keyboardPriority >= currentPriorityLevel || isLax) {\n        if (!responder.keyboardLaxPriority) {\n          isLax = false;\n        }\n\n        if (keyboardFirstResponder) {\n          if (!isLax) {\n            noFirstResponders = false;\n          }\n        } else {\n          currentPriorityLevel = keyboardPriority;\n        }\n\n        triggerResponderListener(responder, event);\n        return true;\n      } else {\n        return false;\n      }\n    });\n  }\n\n  function triggerResponderListener(responder, event, ekEvent = null) {\n    if (responder.handleKeyboardEvent) {\n      if (responder.canHandleKeyboardEvent && !responder.canHandleKeyboardEvent(event)) {\n        return;\n      }\n\n      responder.handleKeyboardEvent(event, ekEvent);\n      return;\n    }\n\n    if (responder.keyboardHandlers) {\n      Object.keys(responder.keyboardHandlers).forEach(responderListenerName => {\n        if ((0, _isKey.default)(responderListenerName, event)) {\n          if (ekEvent) {\n            responder.keyboardHandlers[responderListenerName](event, ekEvent);\n          } else {\n            responder.keyboardHandlers[responderListenerName](event);\n          }\n        }\n      });\n      return;\n    }\n\n    if (responder.trigger) {\n      (true && !(false) && Ember.deprecate('ember-keyboard registered responders handling events via `trigger(listenerName, event)` is deprecated. A responder should have either `keyboardHandlers` (a property returning a dictionary of listenerNames to handler functions), or `handleKeyboardEvent(event)`.', false, {\n        id: 'ember-keyboard.responder-trigger',\n        for: 'ember-keyboard',\n        since: '6.0.2',\n        until: '7.0.0',\n        url: 'https://adopted-ember-addons.github.io/ember-keyboard/deprecations#responder-trigger'\n      }));\n      triggerViaLegacyResponderApi(responder, event, ekEvent);\n      return;\n    }\n\n    throw new Error('A responder registered with the ember-keyboard service must implement either `keyboardHandlers` (property returning a dictionary of listenerNames to handler functions), or `handleKeyboardEvent(event)`)');\n  }\n\n  function getListenerNames(event) {\n    let result = [];\n\n    if (event instanceof KeyboardEvent) {\n      if (event.key) {\n        result.push((0, _listenerName.default)(event.type, modifierStrings(event).concat([event.key]).join('+')));\n      }\n\n      if (event.code && event.key !== event.code) {\n        result.push((0, _listenerName.default)(event.type, modifierStrings(event).concat([event.code]).join('+')));\n      }\n    } else if (event instanceof MouseEvent) {\n      let modifiers = modifierStrings(event);\n\n      if (modifiers.length) {\n        result.push((0, _listenerName.default)(event.type, modifierStrings(event).join('+')));\n      }\n    }\n\n    result.push((0, _listenerName.default)(event.type));\n    return result;\n  }\n\n  function triggerViaLegacyResponderApi(responder, event, ekEvent) {\n    for (const listenerName of getListenerNames(event)) {\n      if (responder.has && !responder.has(listenerName)) {\n        continue;\n      }\n\n      if (ekEvent) {\n        responder.trigger(listenerName, event, ekEvent);\n      } else {\n        responder.trigger(listenerName, event);\n      }\n    }\n  }\n});","define(\"ember-keyboard/utils/is-key\", [\"exports\", \"ember-keyboard/utils/keyboard-listener\", \"ember-keyboard/utils/platform\", \"ember-keyboard/fixtures/key-maps\", \"ember-keyboard/fixtures/modifiers-array\", \"ember-keyboard/utils/get-mouse-name\"], function (_exports, _keyboardListener, _platform, _keyMaps, _modifiersArray, _getMouseName) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isKey;\n  const ALL_SYMBOL = '_all';\n\n  function isKey(listenerOrListenerName, event, platform = (0, _platform.default)()) {\n    let listener;\n\n    if (listenerOrListenerName instanceof _keyboardListener.default) {\n      listener = listenerOrListenerName;\n    } else if (typeof listenerOrListenerName === 'string') {\n      listener = _keyboardListener.default.parse(listenerOrListenerName, platform);\n    } else {\n      throw new Error('Expected a `string` or `KeyCombo` as `keyComboOrKeyComboString` argument to `isKey`');\n    }\n\n    if (listener.type !== event.type) {\n      return false;\n    }\n\n    if (isAll(listener)) {\n      return true;\n    }\n\n    if (modifiersMatch(listener, event) && (keyOrCodeMatches(listener, event) || mouseButtonMatches(listener, event))) {\n      return true;\n    }\n\n    return specialCaseMatches(listener, event, platform);\n  }\n\n  function isAll(listener) {\n    return listener.keyOrCode === ALL_SYMBOL && listener.altKey === false && listener.ctrlKey === false && listener.metaKey === false && listener.shiftKey === false;\n  }\n\n  function modifiersMatch(listener, keyboardEvent) {\n    return listener.type === keyboardEvent.type && listener.altKey === keyboardEvent.altKey && listener.ctrlKey === keyboardEvent.ctrlKey && listener.metaKey === keyboardEvent.metaKey && listener.shiftKey === keyboardEvent.shiftKey;\n  }\n\n  function keyOrCodeMatches(listener, keyboardEvent) {\n    if (!(keyboardEvent instanceof KeyboardEvent)) {\n      return false;\n    }\n\n    if (listener.keyOrCode === ALL_SYMBOL) {\n      return true;\n    }\n\n    return listener.keyOrCode === keyboardEvent.code || listener.keyOrCode === keyboardEvent.key;\n  }\n\n  function mouseButtonMatches(listener, mouseEvent) {\n    if (!(mouseEvent instanceof MouseEvent)) {\n      return false;\n    }\n\n    if (listener.keyOrCode === ALL_SYMBOL) {\n      return true;\n    }\n\n    return listener.keyOrCode === (0, _getMouseName.default)(mouseEvent.button);\n  }\n\n  function specialCaseMatches(keyboardListener, keyboardEvent, platform) {\n    if (onlyModifiers([], keyboardListener) && onlyModifiers(['shift'], keyboardEvent)) {\n      return keyboardEvent.key === keyboardListener.keyOrCode;\n    }\n\n    if (onlyModifiers(['shift'], keyboardListener) && onlyModifiers(['shift'], keyboardEvent)) {\n      return rootKeyForShiftKey(keyboardEvent.key) === keyboardListener.keyOrCode;\n    }\n\n    if (platform === 'Macintosh' && onlyModifiers(['alt'], keyboardListener) && onlyModifiers(['alt'], keyboardEvent)) {\n      return rootKeyForMacAltKey(keyboardEvent.key) === keyboardListener.keyOrCode;\n    }\n\n    if (platform === 'Macintosh' && onlyModifiers(['shift', 'alt'], keyboardListener) && onlyModifiers(['shift', 'alt'], keyboardEvent)) {\n      return rootKeyForMacShiftAltKey(keyboardEvent.key) === keyboardListener.keyOrCode;\n    }\n\n    return false;\n  }\n\n  const ALL_MODIFIERS_EXCEPT_CMD = _modifiersArray.default.filter(m => m != 'cmd');\n\n  function onlyModifiers(names, obj) {\n    for (let modifier of ALL_MODIFIERS_EXCEPT_CMD) {\n      if (names.includes(modifier) && !obj[`${modifier}Key`]) {\n        return false;\n      }\n\n      if (!names.includes(modifier) && obj[`${modifier}Key`]) {\n        return false;\n      }\n    }\n\n    return true;\n  }\n\n  function rootKeyForShiftKey(key) {\n    return _keyMaps.SHIFT_KEY_MAP[key] || key;\n  }\n\n  function rootKeyForMacAltKey(key) {\n    return _keyMaps.MAC_ALT_KEY_MAP[key] || key;\n  }\n\n  function rootKeyForMacShiftAltKey(key) {\n    return _keyMaps.MAC_SHIFT_ALT_KEY_MAP[key] || key;\n  }\n});","define(\"ember-keyboard/utils/keyboard-listener\", [\"exports\", \"ember-keyboard/utils/platform\"], function (_exports, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  const ALT_REGEX = /^alt$/i;\n  const SHIFT_REGEX = /^shift$/i;\n  const CTRL_REGEX = /^ctrl$/i;\n  const META_REGEX = /^meta$/i;\n  const CMD_REGEX = /^cmd$/i;\n\n  class KeyboardListener {\n    // keydown, keyup, keypress\n    constructor(platform = (0, _platform.default)()) {\n      _defineProperty(this, \"type\", void 0);\n\n      _defineProperty(this, \"altKey\", false);\n\n      _defineProperty(this, \"ctrlKey\", false);\n\n      _defineProperty(this, \"shiftKey\", false);\n\n      _defineProperty(this, \"metaKey\", false);\n\n      _defineProperty(this, \"keyOrCode\", void 0);\n\n      _defineProperty(this, \"platform\", void 0);\n\n      this.platform = platform;\n    }\n\n    static parse(s, platform = (0, _platform.default)()) {\n      let keyboardListener = new KeyboardListener(platform);\n      let [eventType, keyCombo] = s.split(':');\n      keyboardListener.type = eventType;\n\n      if (keyCombo === '+') {\n        keyboardListener.keyOrCode = keyCombo;\n        return keyboardListener;\n      }\n\n      keyCombo.split('+').forEach(part => {\n        if (ALT_REGEX.test(part)) {\n          keyboardListener.altKey = true;\n        } else if (CTRL_REGEX.test(part)) {\n          keyboardListener.ctrlKey = true;\n        } else if (META_REGEX.test(part)) {\n          keyboardListener.metaKey = true;\n        } else if (SHIFT_REGEX.test(part)) {\n          keyboardListener.shiftKey = true;\n        } else if (CMD_REGEX.test(part)) {\n          if (platform.indexOf('Mac') > -1) {\n            keyboardListener.metaKey = true;\n          } else {\n            keyboardListener.ctrlKey = true;\n          }\n        } else {\n          keyboardListener.keyOrCode = part;\n        }\n      });\n      return keyboardListener;\n    }\n\n    createMatchingKeyboardEvent(opts = {}) {\n      return new KeyboardEvent(this.type, Object.assign({\n        // one of these next two will be incorrect. For test usage, if usually\n        // doesn't matter, but you can pass in correct values via opts if needed.\n        key: this.keyOrCode,\n        code: this.keyOrCode,\n        altKey: this.altKey,\n        ctrlKey: this.ctrlKey,\n        metaKey: this.metaKey,\n        shiftKey: this.shiftKey\n      }, opts));\n    }\n\n  }\n\n  _exports.default = KeyboardListener;\n});","define(\"ember-keyboard/utils/listener-name\", [\"exports\", \"ember-keyboard/utils/get-cmd-key\"], function (_exports, _getCmdKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = listenerName;\n\n  function sortedKeys(keyArray) {\n    return keyArray.sort().join('+');\n  }\n\n  function listenerName(type, keyArrayOrString = []) {\n    let keyArray = keyArrayOrString;\n\n    if (typeof keyArrayOrString === 'string') {\n      keyArray = keyArrayOrString.split('+');\n    }\n\n    if (keyArray.indexOf('cmd') > -1) {\n      keyArray[keyArray.indexOf('cmd')] = (0, _getCmdKey.default)();\n    }\n\n    let keys = sortedKeys(keyArray || []);\n\n    if (keys === '') {\n      keys = '_all';\n    }\n\n    return `${type}:${keys}`;\n  }\n});","define(\"ember-keyboard/utils/platform\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getPlatform;\n  let platform;\n\n  function getPlatform(userAgent = navigator.userAgent) {\n    // allow mocking of userAgent in tests, memoize for speed in production\n    Ember.runInDebug(() => {\n      platform = null;\n    });\n\n    if (!platform) {\n      let osName = \"Unknown OS\";\n      if (userAgent.indexOf(\"Win\") != -1) osName = \"Windows\";\n      if (userAgent.indexOf(\"Mac\") != -1) osName = \"Macintosh\";\n      if (userAgent.indexOf(\"Linux\") != -1) osName = \"Linux\";\n      if (userAgent.indexOf(\"Android\") != -1) osName = \"Android\";\n      if (userAgent.indexOf(\"like Mac\") != -1) osName = \"iOS\";\n      platform = osName;\n    }\n\n    return platform;\n  }\n});","define(\"ember-keyboard/utils/sort\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.compare = compare;\n  _exports.compareProp = compareProp;\n  _exports.reverseCompareProp = reverseCompareProp;\n\n  function compare(a, b) {\n    let diff = a - b;\n    return (diff > 0) - (diff < 0);\n  }\n\n  function compareProp(a, b, propName, convertValue) {\n    return compare(convertValue ? convertValue(Ember.get(a, propName)) : Ember.get(a, propName), convertValue ? convertValue(Ember.get(b, propName)) : Ember.get(b, propName));\n  }\n\n  function reverseCompareProp(a, b, propName, convertValue = null) {\n    return compareProp(b, a, propName, convertValue);\n  }\n});","define(\"ember-keyboard/utils/trigger-event\", [\"exports\", \"ember-keyboard/utils/keyboard-listener\"], function (_exports, _keyboardListener) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.triggerKeyUp = _exports.triggerKeyPress = _exports.triggerKeyDown = void 0;\n\n  const triggerKeyEvent = function triggerKeyEvent(eventType, keyCombo, element) {\n    let keyboardListener = _keyboardListener.default.parse(`${eventType}:${keyCombo}`);\n\n    const event = keyboardListener.createMatchingKeyboardEvent();\n    element.dispatchEvent(event);\n  };\n\n  const triggerKeyDown = function triggerKeyDown(keyCombo, element = document) {\n    triggerKeyEvent('keydown', keyCombo, element);\n  };\n\n  _exports.triggerKeyDown = triggerKeyDown;\n\n  const triggerKeyPress = function triggerKeyPress(keyCombo, element = document) {\n    triggerKeyEvent('keypress', keyCombo, element);\n  };\n\n  _exports.triggerKeyPress = triggerKeyPress;\n\n  const triggerKeyUp = function triggerKeyUp(keyCombo, element = document) {\n    triggerKeyEvent('keyup', keyCombo, element);\n  };\n\n  _exports.triggerKeyUp = triggerKeyUp;\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\n  function resolveInitializer(moduleName) {\n    var module = (0, _require.default)(moduleName, null, null, true);\n\n    if (!module) {\n      throw new Error(moduleName + ' must export an initializer.');\n    }\n\n    var initializer = module['default'];\n\n    if (!initializer) {\n      throw new Error(moduleName + ' must have a default export');\n    }\n\n    if (!initializer.name) {\n      initializer.name = moduleName.slice(moduleName.lastIndexOf('/') + 1);\n    }\n\n    return initializer;\n  }\n\n  function registerInitializers(app, moduleNames) {\n    for (var i = 0; i < moduleNames.length; i++) {\n      app.initializer(resolveInitializer(moduleNames[i]));\n    }\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\n  function _endsWith(str, suffix) {\n    return str.indexOf(suffix, str.length - suffix.length) !== -1;\n  }\n  /**\n   * Configure your application as it boots\n   */\n\n\n  function loadInitializers(app, prefix) {\n    var initializerPrefix = prefix + '/initializers/';\n    var instanceInitializerPrefix = prefix + '/instance-initializers/';\n    var initializers = [];\n    var instanceInitializers = []; // this is 2 pass because generally the first pass is the problem\n    // and is reduced, and resolveInitializer has potential to deopt\n\n    var moduleNames = Object.keys(requirejs._eak_seen);\n\n    for (var i = 0; i < moduleNames.length; i++) {\n      var moduleName = moduleNames[i];\n\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\n    registerInitializers(app, initializers);\n    registerInstanceInitializers(app, instanceInitializers);\n  }\n});","define(\"ember-load/components/ember-load-remover\", [\"exports\", \"ember-load/templates/components/ember-load-remover\"], function (_exports, _emberLoadRemover) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    layout: _emberLoadRemover.default,\n    'ember-load-config': Ember.inject.service(),\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      this.removeLoadingIndicator();\n    },\n\n    /**\n     * remove the loading indicator. By default this\n     * removes all elements with the '.ember-load-indicator'\n     * found CSS class from the DOM\n     * @public\n     */\n    removeLoadingIndicator() {\n      let loadingIndicatorClass = this.get('ember-load-config.loadingIndicatorClass') || 'ember-load-indicator';\n      const elems = document.querySelectorAll(`.${loadingIndicatorClass}`);\n      /**\n       * Very important to iterate over the NodeList this way,\n       * and remove the DOM elements via removeChild to maintain ie11\n       * compatibility\n       */\n\n      for (let i = 0; i < elems.length; i++) {\n        elems[i].parentNode.removeChild(elems[i]);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-load/services/ember-load-config\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({});\n\n  _exports.default = _default;\n});","define(\"ember-load/templates/components/ember-load-remover\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"dScInNkP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-load/templates/components/ember-load-remover.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-maybe-in-element/components/maybe-in-element\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    {{#if @renderInPlace}}{{yield}}{{else}}{{#in-element @destinationElement insertBefore=null}}{{yield}}{{/in-element}}{{/if}}\n  */\n  {\n    \"id\": \"DCPjnm7R\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@destinationElement\\\",\\\"@renderInPlace\\\"],\\\"statements\\\":[[6,[37,2],[[32,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[18,1,null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[30,[36,0],[[32,2]],null]],[[\\\"guid\\\",\\\"insertBefore\\\"],[\\\"%cursor:0%\\\",null]],[[\\\"default\\\"],[{\\\"statements\\\":[[18,1,null]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-in-el-null\\\",\\\"in-element\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-maybe-in-element/components/maybe-in-element.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n  _exports.default = _default;\n});","define(\"ember-modifier/-private/class/modifier-manager\", [\"exports\", \"ember-modifier/-private/compat\"], function (_exports, _compat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  function destroyModifier(modifier) {\n    modifier.willRemove();\n    modifier.willDestroy();\n  }\n\n  class ClassBasedModifierManager {\n    constructor(owner) {\n      this.owner = owner;\n\n      _defineProperty(this, \"capabilities\", Ember._modifierManagerCapabilities(false ? '3.22' : '3.13'));\n    }\n\n    createModifier(factoryOrClass, args) {\n      const Modifier = (0, _compat.isFactory)(factoryOrClass) ? factoryOrClass.class : factoryOrClass;\n      const modifier = new Modifier(this.owner, args);\n\n      Ember._registerDestructor(modifier, destroyModifier);\n\n      return modifier;\n    }\n\n    installModifier(instance, element, args) {\n      instance.element = element;\n\n      if (false) {\n        (0, _compat.consumeArgs)(args);\n      }\n\n      instance.didReceiveArguments();\n      instance.didInstall();\n    }\n\n    updateModifier(instance, args) {\n      // TODO: this should be an args proxy\n      Ember.set(instance, 'args', args);\n\n      if (false) {\n        (0, _compat.consumeArgs)(args);\n      }\n\n      instance.didUpdateArguments();\n      instance.didReceiveArguments();\n    }\n\n    destroyModifier(instance) {\n      Ember.destroy(instance);\n    }\n\n  }\n\n  _exports.default = ClassBasedModifierManager;\n});","define(\"ember-modifier/-private/class/modifier\", [\"exports\", \"ember-modifier/-private/class/modifier-manager\"], function (_exports, _modifierManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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    /**\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\n    /**\n     * The element the modifier is applied to.\n     *\n     * @warning `element` is ***not*** available during `constructor` or\n     *   `willDestroy`.\n     */\n    // SAFETY: this is managed correctly by the class-based modifier. It is not\n    // available during the `constructor`.\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    constructor(owner, args) {\n      _defineProperty(this, \"args\", void 0);\n\n      _defineProperty(this, \"element\", null);\n\n      Ember.setOwner(this, owner);\n      this.args = args;\n    }\n    /**\n     * Called when the modifier is installed **and** anytime the arguments are\n     * updated.\n     */\n\n\n    didReceiveArguments() {\n      /* no op, for subclassing */\n    }\n    /**\n     * Called anytime the arguments are updated but **not** on the initial\n     * install. Called before `didReceiveArguments`.\n     */\n\n\n    didUpdateArguments() {\n      /* no op, for subclassing */\n    }\n    /**\n     * Called when the modifier is installed on the DOM element. Called after\n     * `didReceiveArguments`.\n     */\n\n\n    didInstall() {\n      /* no op, for subclassing */\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\n\n    willRemove() {\n      /* no op, for subclassing */\n    }\n    /**\n     * Called when the modifier itself is about to be destroyed; use for teardown\n     * code. Called after `willRemove`.\n     */\n\n\n    willDestroy() {\n      /* no op, for subclassing */\n    }\n\n    get isDestroying() {\n      return Ember._isDestroying(this);\n    }\n\n    get isDestroyed() {\n      return Ember._isDestroyed(this);\n    }\n\n  }\n\n  _exports.default = ClassBasedModifier;\n\n  Ember._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.isFactory = isFactory;\n  _exports.consumeArgs = void 0;\n\n  function isFactory( // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  _factoryOrClass) {\n    return !false;\n  } // eslint-disable-next-line @typescript-eslint/no-empty-function\n\n\n  const noop = () => {};\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\n\n  let consumeArgs = noop;\n  _exports.consumeArgs = consumeArgs;\n\n  if (false) {\n    _exports.consumeArgs = consumeArgs = function ({\n      positional,\n      named\n    }) {\n      for (let i = 0; i < positional.length; i++) {\n        positional[i];\n      }\n\n      Object.values(named);\n    };\n  }\n});","define(\"ember-modifier/-private/functional/modifier-manager\", [\"exports\", \"ember-modifier/-private/compat\"], function (_exports, _compat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  const MODIFIER_ELEMENTS = new WeakMap();\n  const MODIFIER_TEARDOWNS = new WeakMap();\n\n  function teardown(modifier) {\n    const teardown = MODIFIER_TEARDOWNS.get(modifier);\n\n    if (teardown && typeof teardown === 'function') {\n      teardown();\n    }\n  }\n\n  function setup(modifier, element, args) {\n    const {\n      positional,\n      named\n    } = args;\n    const teardown = modifier(element, positional, named);\n    MODIFIER_TEARDOWNS.set(modifier, teardown);\n  }\n\n  class FunctionalModifierManager {\n    constructor() {\n      _defineProperty(this, \"capabilities\", Ember._modifierManagerCapabilities(false ? '3.22' : '3.13'));\n    }\n\n    createModifier(factoryOrClass) {\n      const Modifier = (0, _compat.isFactory)(factoryOrClass) ? factoryOrClass.class : factoryOrClass; // This looks superfluous, but this is creating a new instance\n      // of a function -- this is important so that each instance of the\n      // created modifier can have its own state which is stored in\n      // the MODIFIER_ELEMENTS and MODIFIER_TEARDOWNS WeakMaps\n\n      return (...args) => Modifier(...args);\n    }\n\n    installModifier(modifier, element, args) {\n      MODIFIER_ELEMENTS.set(modifier, element);\n\n      if (false) {\n        (0, _compat.consumeArgs)(args);\n      }\n\n      setup(modifier, element, args);\n    }\n\n    updateModifier(modifier, args) {\n      const element = MODIFIER_ELEMENTS.get(modifier);\n      teardown(modifier);\n\n      if (false) {\n        (0, _compat.consumeArgs)(args);\n      }\n\n      setup(modifier, element, args);\n    }\n\n    destroyModifier(modifier) {\n      teardown(modifier);\n    }\n\n  }\n\n  var _default = new FunctionalModifierManager();\n\n  _exports.default = _default;\n});","define(\"ember-modifier/-private/functional/modifier\", [\"exports\", \"ember-modifier/-private/functional/modifier-manager\"], function (_exports, _modifierManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = 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, including the arguments it receives, and if\n   * any of them changes, the function will run again.\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   */\n  function modifier(fn) {\n    return Ember._setModifierManager(() => _modifierManager.default, fn);\n  }\n});","define(\"ember-modifier/-private/interfaces\", [], function () {\n  \"use strict\";\n});","define(\"ember-modifier/index\", [\"exports\", \"ember-modifier/-private/class/modifier\", \"ember-modifier/-private/functional/modifier\", \"ember-modifier/-private/interfaces\"], function (_exports, _modifier, _modifier2, _interfaces) {\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  Object.defineProperty(_exports, \"ModifierArgs\", {\n    enumerable: true,\n    get: function () {\n      return _interfaces.ModifierArgs;\n    }\n  });\n});","define(\"ember-moment/helpers/-base\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // eslint-disable-next-line ember/no-classic-classes\n  var _default = Ember.Helper.extend({\n    moment: Ember.inject.service(),\n    disableInterval: false,\n\n    get globalAllowEmpty() {\n      return this.moment.__config__.allowEmpty;\n    },\n\n    supportsGlobalAllowEmpty: true,\n    // eslint-disable-next-line ember/no-observers\n    localeOrTimeZoneChanged: Ember.observer('moment.locale', 'moment.timeZone', function () {\n      this.recompute();\n    }),\n\n    compute(value, {\n      interval\n    }) {\n      if (this.disableInterval) {\n        return;\n      }\n\n      this.clearTimer();\n\n      if (interval) {\n        /*\n         * NOTE: intentionally a setTimeout so tests do not block on it\n         * as the run loop queue is never clear so tests will stay locked waiting\n         * for queue to clear.\n         */\n        this.intervalTimer = setTimeout(() => {\n          Ember.run(() => this.recompute());\n        }, parseInt(interval, 10));\n      }\n    },\n\n    morphMoment(time, {\n      locale,\n      timeZone\n    }) {\n      const momentService = this.moment;\n      locale = locale || momentService.locale;\n      timeZone = timeZone || momentService.timeZone;\n\n      if (locale && time.locale) {\n        time = time.locale(locale);\n      }\n\n      if (timeZone && time.tz) {\n        time = time.tz(timeZone);\n      }\n\n      return time;\n    },\n\n    clearTimer() {\n      clearTimeout(this.intervalTimer);\n    },\n\n    destroy() {\n      this.clearTimer();\n\n      this._super(...arguments);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/is-after\", [\"exports\", \"ember-moment/helpers/-base\", \"ember-moment/utils/helper-compute\"], function (_exports, _base, _helperCompute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      precision,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      const {\n        length\n      } = params;\n      const args = [];\n      const comparisonArgs = [];\n\n      if (length === 1) {\n        comparisonArgs.push(params[0]);\n      } else if (length === 2) {\n        args.push(params[0]);\n        comparisonArgs.push(params[1]);\n      }\n\n      return this.morphMoment(moment.moment(...args), {\n        locale,\n        timeZone\n      }).isAfter(...comparisonArgs, precision);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/is-before\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      precision,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      const {\n        length\n      } = params;\n      const args = [];\n      const comparisonArgs = [];\n\n      if (length === 1) {\n        comparisonArgs.push(params[0]);\n      } else if (length === 2) {\n        args.push(params[0]);\n        comparisonArgs.push(params[1]);\n      }\n\n      return this.morphMoment(moment.moment(...args), {\n        locale,\n        timeZone\n      }).isBefore(...comparisonArgs, precision);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/is-between\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      precision,\n      inclusivity,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n\n      const _params = [].concat(params);\n\n      const {\n        length\n      } = params;\n\n      if (length < 2 || length > 3) {\n        throw new TypeError('ember-moment: Invalid Number of arguments, expected 2 or 3');\n      }\n\n      const args = [];\n\n      if (length > 2) {\n        args.push(_params.shift());\n      }\n\n      return this.morphMoment(moment.moment(...args), {\n        locale,\n        timeZone\n      }).isBetween(..._params, precision, inclusivity);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/is-same-or-after\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      precision,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      const {\n        length\n      } = params;\n      const args = [];\n      const comparisonArgs = [];\n\n      if (length === 1) {\n        comparisonArgs.push(params[0]);\n      } else if (length === 2) {\n        args.push(params[0]);\n        comparisonArgs.push(params[1]);\n      }\n\n      return this.morphMoment(moment.moment(...args), {\n        locale,\n        timeZone\n      }).isSameOrAfter(...comparisonArgs, precision);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/is-same-or-before\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      precision,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      const {\n        length\n      } = params;\n      const args = [];\n      const comparisonArgs = [];\n\n      if (length === 1) {\n        comparisonArgs.push(params[0]);\n      } else if (length === 2) {\n        args.push(params[0]);\n        comparisonArgs.push(params[1]);\n      }\n\n      return this.morphMoment(moment.moment(...args), {\n        locale,\n        timeZone\n      }).isSameOrBefore(...comparisonArgs, precision);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/is-same\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      precision,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      const {\n        length\n      } = params;\n      const args = [];\n      const comparisonArgs = [];\n\n      if (length === 1) {\n        comparisonArgs.push(params[0]);\n      } else if (length === 2) {\n        args.push(params[0]);\n        comparisonArgs.push(params[1]);\n      }\n\n      return this.morphMoment(moment.moment(...args), {\n        locale,\n        timeZone\n      }).isSame(...comparisonArgs, precision);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-add\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      precision,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      const {\n        length\n      } = params;\n      const args = [];\n      const additionArgs = [];\n\n      if (length === 1) {\n        additionArgs.push(params[0]);\n      } else if (length === 2 && Ember.typeOf(params[0]) === 'number' && Ember.typeOf(params[1]) === 'string') {\n        additionArgs.push(...params);\n      } else {\n        args.push(params[0]);\n        additionArgs.push(...params.slice(1));\n      }\n\n      return this.morphMoment(moment.moment(...args), {\n        locale,\n        timeZone\n      }).add(...additionArgs, precision);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-calendar\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, formatHash = {}) {\n      this._super(...arguments);\n\n      if (!params || params && params.length > 3) {\n        throw new TypeError('ember-moment: Invalid Number of arguments, at most 3');\n      }\n\n      const moment = this.moment;\n      const {\n        locale,\n        timeZone\n      } = formatHash;\n      const [date, referenceTime, formats] = params;\n      const clone = { ...formatHash\n      };\n      delete clone.locale;\n      delete clone.timeZone;\n      const mergedFormats = Ember.assign(clone, formats);\n      return this.morphMoment(moment.moment(date), {\n        locale,\n        timeZone\n      }).calendar(referenceTime, mergedFormats);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-diff\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      precision,\n      float,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      if (!params || params && params.length !== 2) {\n        throw new TypeError('ember-moment: Invalid Number of arguments, must be 2');\n      }\n\n      const moment = this.moment;\n      const [dateA, dateB] = params;\n      return this.morphMoment(moment.moment(dateB), {\n        locale,\n        timeZone\n      }).diff(dateA, precision, float);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-duration\", [\"exports\", \"moment\", \"ember-moment/helpers/-base\"], function (_exports, _moment, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute(params, {\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const momentService = this.moment;\n\n      if (!params || params && params.length > 2) {\n        throw new TypeError('ember-moment: Invalid Number of arguments, at most 2');\n      }\n\n      const result = momentService.moment(_moment.default.duration(...params));\n      return this.morphMoment(result._i, {\n        locale,\n        timeZone\n      }).humanize();\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-format\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    // eslint-disable-next-line ember/no-observers\n    defaultFormatDidChange: Ember.observer('moment.defaultFormat', function () {\n      this.recompute();\n    }),\n    compute: (0, _helperCompute.default)(function (params, {\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      const {\n        length\n      } = params;\n\n      if (length > 3) {\n        throw new TypeError('ember-moment: Invalid number of arguments, expected at most 3');\n      }\n\n      const args = [];\n      const formatArgs = []; // eslint-disable-next-line ember/no-get\n\n      const defaultFormat = Ember.get(this, 'moment.defaultFormat');\n      args.push(params[0]);\n\n      if (length === 1 && !Ember.isEmpty(defaultFormat)) {\n        formatArgs.push(defaultFormat);\n      } else if (length === 2) {\n        formatArgs.push(params[1]);\n      } else if (length > 2) {\n        args.push(params[2]);\n        formatArgs.push(params[1]);\n      }\n\n      return this.morphMoment(moment.moment(...args), {\n        locale,\n        timeZone\n      }).format(...formatArgs);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-from-now\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      hideAffix,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      return this.morphMoment(moment.moment(...params), {\n        locale,\n        timeZone\n      }).fromNow(hideAffix);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-from\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function ([datetime, ...params], {\n      hideAffix,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      return this.morphMoment(moment.moment(datetime), {\n        locale,\n        timeZone\n      }).from(...params, hideAffix);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-subtract\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      precision,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      const {\n        length\n      } = params;\n      const args = [];\n      const subtractionArgs = [];\n\n      if (length === 1) {\n        subtractionArgs.push(params[0]);\n      } else if (length === 2 && Ember.typeOf(params[0]) === 'number' && Ember.typeOf(params[1]) === 'string') {\n        subtractionArgs.push(...params);\n      } else {\n        args.push(params[0]);\n        subtractionArgs.push(...params.slice(1));\n      }\n\n      return this.morphMoment(moment.moment(...args), {\n        locale,\n        timeZone\n      }).subtract(...subtractionArgs, precision);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-to-date\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      hidePrefix,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      return this.morphMoment(moment.moment(), {\n        locale,\n        timeZone\n      }).to(...params, hidePrefix);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-to-now\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function (params, {\n      hideAffix,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      const hide = hideAffix;\n      return this.morphMoment(moment.moment(...params), {\n        locale,\n        timeZone\n      }).toNow(hide);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment-to\", [\"exports\", \"ember-moment/utils/helper-compute\", \"ember-moment/helpers/-base\"], function (_exports, _helperCompute, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute: (0, _helperCompute.default)(function ([datetime, ...params], {\n      hideAffix,\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      return this.morphMoment(moment.moment(datetime), {\n        locale,\n        timeZone\n      }).to(...params, hideAffix);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/moment\", [\"exports\", \"ember-moment/helpers/-base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute(params, {\n      locale,\n      timeZone\n    }) {\n      this._super(...arguments);\n\n      const moment = this.moment;\n      return this.morphMoment(moment.moment(...params), {\n        locale,\n        timeZone\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/now\", [\"exports\", \"moment\", \"ember-moment/helpers/-base\"], function (_exports, _moment, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute() {\n      this._super(...arguments);\n\n      const momentService = this.moment;\n      return momentService.moment(_moment.default.now());\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/unix\", [\"exports\", \"moment\", \"ember-moment/helpers/-base\"], function (_exports, _moment, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute([unixTimeStamp]) {\n      this._super(...arguments);\n\n      return this.moment.moment(_moment.default.unix(unixTimeStamp));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/helpers/utc\", [\"exports\", \"moment\", \"ember-moment/helpers/-base\"], function (_exports, _moment, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    compute([utcTime, format]) {\n      this._super(...arguments);\n\n      return this.moment.utc(_moment.default.utc(utcTime, format));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/services/moment\", [\"exports\", \"moment-timezone\"], function (_exports, _momentTimezone) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // eslint-disable-next-line ember/no-classic-classes\n  var _default = Ember.Service.extend(Ember.Evented, {\n    _timeZone: null,\n    locale: null,\n    localeOptions: null,\n    defaultFormat: null,\n    __config__: Ember.computed(function () {\n      let config = Ember.getOwner(this).factoryFor('config:environment').class || {};\n      return config.moment || {};\n    }).readOnly(),\n    timeZone: Ember.computed('_timeZone', {\n      get() {\n        return this._timeZone;\n      },\n\n      set(propertyKey, timeZone) {\n        if (!_momentTimezone.default.tz) {\n          /* eslint-disable no-console */\n          console.warn('[ember-moment] attempted to set timezone, but moment-timezone is not setup.');\n          return;\n        }\n\n        Ember.set(this, '_timeZone', timeZone);\n        return timeZone;\n      }\n\n    }),\n\n    setLocale(locale) {\n      this.changeLocale(locale);\n    },\n\n    updateLocale(locale, localeOptions = {}) {\n      this.changeLocale(locale, localeOptions);\n    },\n\n    changeLocale(locale, localeOptions = {}) {\n      Ember.setProperties(this, {\n        locale,\n        localeOptions\n      });\n\n      _momentTimezone.default.updateLocale(locale, localeOptions);\n\n      this.trigger('localeChanged', locale);\n    },\n\n    setTimeZone(timeZone) {\n      this.changeTimeZone(timeZone);\n    },\n\n    changeTimeZone(timeZone) {\n      Ember.set(this, 'timeZone', timeZone);\n      this.trigger('timeZoneChanged', timeZone);\n    },\n\n    isMoment(obj) {\n      return _momentTimezone.default.isMoment(obj);\n    },\n\n    moment() {\n      let momentObj = (0, _momentTimezone.default)(...arguments);\n      let {\n        locale,\n        timeZone\n      } = this;\n\n      if (locale && momentObj.locale) {\n        momentObj = momentObj.locale(locale);\n      }\n\n      if (timeZone && momentObj.tz) {\n        momentObj = momentObj.tz(timeZone);\n      }\n\n      return momentObj;\n    },\n\n    utc() {\n      let momentObj = _momentTimezone.default.utc(...arguments);\n\n      let {\n        locale\n      } = this;\n\n      if (locale && momentObj.locale) {\n        momentObj = momentObj.locale(locale);\n      }\n\n      return momentObj;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-moment/utils/helper-compute\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(cb) {\n    return function (params, hash) {\n      if (!params || params && params.length === 0) {\n        throw new TypeError('ember-moment: Invalid Number of arguments, expected at least 1');\n      }\n\n      const datetime = params[0];\n      let allowEmpty = hash.allowEmpty || hash['allow-empty'];\n\n      if (allowEmpty === undefined || allowEmpty === null) {\n        allowEmpty = this.globalAllowEmpty;\n      }\n\n      if (Ember.isBlank(datetime)) {\n        if (allowEmpty) {\n          return;\n        }\n        /* eslint-disable no-console */\n\n\n        console.warn(`ember-moment: an empty value (null, undefined, or \"\") was passed to ember-moment helper`);\n      }\n\n      return cb.apply(this, arguments);\n    };\n  }\n});","define(\"ember-one-way-select/components/one-way-select\", [\"exports\", \"ember-one-way-select/templates/components/one-way-select\"], function (_exports, _oneWaySelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const OneWaySelectComponent = Ember.Component.extend({\n    layout: _oneWaySelect.default,\n    tagName: 'select',\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    NON_ATTRIBUTE_BOUND_PROPS: ['value', 'update', 'options', 'paramValue', 'prompt', 'promptIsSelectable', 'includeBlank', 'optionValuePath', 'optionLabelPath', 'optionComponent', 'groupLabelPath', 'class', 'classNames'],\n    attributeBindings: ['multiple'],\n\n    didReceiveAttrs() {\n      this._super(...arguments);\n\n      let newAttributeBindings = []; // eslint-disable-next-line ember/no-attrs-in-components\n\n      for (let key in this.attrs) {\n        if (this.NON_ATTRIBUTE_BOUND_PROPS.indexOf(key) === -1 && this.attributeBindings.indexOf(key) === -1) {\n          newAttributeBindings.push(key);\n        }\n      }\n\n      Ember.set(this, 'attributeBindings', this.attributeBindings.concat(newAttributeBindings));\n      let value = Ember.get(this, 'paramValue');\n\n      if (value === undefined) {\n        value = Ember.get(this, 'value');\n      }\n\n      Ember.set(this, 'selectedValue', value);\n      let options = Ember.get(this, 'options');\n\n      if (typeof options === 'string') {\n        options = Ember.String.w(options);\n      }\n\n      let firstOption = Ember.get(Ember.A(options), 'firstObject');\n\n      if (firstOption && Ember.isPresent(Ember.get(firstOption, 'groupName')) && Ember.isArray(Ember.get(firstOption, 'options'))) {\n        Ember.set(this, 'optionsArePreGrouped', true);\n      }\n\n      if (Ember.isBlank(Ember.get(this, 'promptIsSelectable'))) {\n        Ember.set(this, 'promptIsSelectable', false);\n      }\n\n      Ember.set(this, 'options', Ember.A(options));\n    },\n\n    nothingSelected: Ember.computed.empty('selectedValue'),\n    promptIsDisabled: Ember.computed.not('promptIsSelectable'),\n    hasGrouping: Ember.computed.or('optionsArePreGrouped', 'groupLabelPath'),\n    computedOptionValuePath: Ember.computed.or('optionValuePath', 'optionTargetPath'),\n    optionGroups: Ember.computed('options.[]', function () {\n      let groupLabelPath = Ember.get(this, 'groupLabelPath');\n      let options = Ember.get(this, 'options');\n      let groups = Ember.A();\n\n      if (!groupLabelPath) {\n        return options;\n      }\n\n      options.forEach(item => {\n        let label = Ember.get(item, groupLabelPath);\n\n        if (label) {\n          let group = groups.findBy('groupName', label);\n\n          if (group == null) {\n            group = Ember.Object.create({\n              groupName: label,\n              options: Ember.A()\n            });\n            groups.pushObject(group);\n          }\n\n          Ember.get(group, 'options').pushObject(item);\n        } else {\n          groups.pushObject(item);\n        }\n      });\n      return groups;\n    }),\n\n    change() {\n      let value;\n\n      if (Ember.get(this, 'multiple') === true) {\n        value = this._selectedMultiple();\n      } else {\n        value = this._selectedSingle();\n      }\n\n      this.update(value);\n    },\n\n    prompt: Ember.computed.alias('includeBlank'),\n\n    _selectedMultiple() {\n      let options = this.element.options;\n      let selectedValues = [];\n\n      for (let i = 0; i < options.length; i++) {\n        if (options[i].selected) {\n          selectedValues.push(options[i].value);\n        }\n      }\n\n      return selectedValues.map(selectedValue => {\n        return this._findOption(selectedValue);\n      });\n    },\n\n    _selectedSingle() {\n      let selectedValue = this.element.value;\n      return this._findOption(selectedValue);\n    },\n\n    _findOption(value) {\n      let options = Ember.get(this, 'options');\n      let optionValuePath = Ember.get(this, 'computedOptionValuePath');\n      let optionTargetPath = Ember.get(this, 'optionTargetPath');\n      let optionsArePreGrouped = Ember.get(this, 'optionsArePreGrouped');\n\n      let findOption = item => {\n        if (optionValuePath) {\n          return `${Ember.get(item, optionValuePath)}` === value;\n        } else {\n          return `${item}` === value;\n        }\n      };\n\n      let foundOption;\n\n      if (optionsArePreGrouped) {\n        foundOption = options.reduce((found, group) => {\n          return found || Ember.get(group, 'options').find(findOption);\n        }, undefined);\n      } else {\n        foundOption = options.find(findOption);\n      }\n\n      if (optionTargetPath && !Ember.isNone(foundOption)) {\n        return Ember.get(foundOption, optionTargetPath);\n      } else {\n        return foundOption;\n      }\n    }\n\n  });\n  OneWaySelectComponent.reopenClass({\n    positionalParams: ['paramValue']\n  });\n  var _default = OneWaySelectComponent;\n  _exports.default = _default;\n});","define(\"ember-one-way-select/components/one-way-select/option\", [\"exports\", \"ember-one-way-select/templates/components/one-way-select/option\"], function (_exports, _option) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    layout: _option.default,\n    tagName: ''\n  });\n\n  _exports.default = _default;\n});","define(\"ember-one-way-select/helpers/one-way-select/contains\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.contains = contains;\n  _exports.default = void 0;\n\n  function contains([haystack, needle, valuePath, targetPath]) {\n    if (Ember.isArray(haystack)) {\n      haystack = Ember.A(haystack);\n\n      if (valuePath) {\n        haystack = targetPath ? haystack : haystack.mapBy(valuePath);\n        return Ember.A(haystack).includes(Ember.get(needle, valuePath));\n      } else {\n        return haystack.includes(needle);\n      }\n    } else {\n      if (valuePath && Ember.isPresent(haystack) && Ember.isPresent(needle)) {\n        haystack = targetPath ? haystack : Ember.get(haystack, valuePath);\n        return haystack === Ember.get(needle, valuePath);\n      } else {\n        return haystack === needle;\n      }\n    }\n  }\n\n  var _default = Ember.Helper.helper(contains);\n\n  _exports.default = _default;\n});","define(\"ember-one-way-select/index\", [\"exports\", \"ember-one-way-select/components/one-way-select\"], function (_exports, _oneWaySelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"OneWaySelect\", {\n    enumerable: true,\n    get: function () {\n      return _oneWaySelect.default;\n    }\n  });\n});","define(\"ember-one-way-select/templates/components/one-way-select\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"PZvxr9Cl\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\",\\\"index\\\",\\\"optionGroup\\\",\\\"groupIndex\\\",\\\"option\\\",\\\"index\\\",\\\"@optionComponent\\\",\\\"@optionTargetPath\\\",\\\"@optionLabelPath\\\",\\\"@option\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"includeBlank\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[15,\\\"disabled\\\",[32,0,[\\\"promptIsDisabled\\\"]]],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"nothingSelected\\\"]],\\\"selected\\\"],null]],[12],[2,\\\"\\\\n    \\\"],[1,[32,0,[\\\"prompt\\\"]]],[2,\\\"\\\\n  \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,0],[[32,0,[\\\"hasGrouping\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,2],[[30,[36,1],[[30,[36,1],[[32,0,[\\\"optionGroups\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"optgroup\\\"],[15,\\\"label\\\",[32,3,[\\\"groupName\\\"]]],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[30,[36,1],[[30,[36,1],[[32,3,[\\\"options\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[27,[32,11]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"          \\\"],[8,\\\"one-way-select/option\\\",[],[[\\\"@selected\\\",\\\"@option\\\",\\\"@optionValuePath\\\",\\\"@optionTargetPath\\\"],[[32,0,[\\\"selectedValue\\\"]],[32,5],[32,0,[\\\"computedOptionValuePath\\\"]],[32,8]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n            \\\"],[18,11,[[32,5],[32,6],[32,4]]],[2,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"          \\\"],[8,\\\"one-way-select/option\\\",[],[[\\\"@selected\\\",\\\"@option\\\",\\\"@index\\\",\\\"@groupIndex\\\",\\\"@optionComponent\\\",\\\"@optionValuePath\\\",\\\"@optionTargetPath\\\",\\\"@optionLabelPath\\\"],[[32,0,[\\\"selectedValue\\\"]],[32,5],[32,6],[32,4],[32,7],[32,0,[\\\"computedOptionValuePath\\\"]],[32,8],[32,9]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[5,6]}]]],[2,\\\"    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,2],[[30,[36,1],[[30,[36,1],[[32,0,[\\\"options\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[27,[32,11]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[8,\\\"one-way-select/option\\\",[],[[\\\"@selected\\\",\\\"@option\\\",\\\"@optionValuePath\\\",\\\"@optionTargetPath\\\"],[[32,0,[\\\"selectedValue\\\"]],[32,10],[32,0,[\\\"computedOptionValuePath\\\"]],[32,8]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n        \\\"],[18,11,[[32,1],[32,2]]],[2,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"      \\\"],[8,\\\"one-way-select/option\\\",[],[[\\\"@selected\\\",\\\"@option\\\",\\\"@index\\\",\\\"@optionComponent\\\",\\\"@optionValuePath\\\",\\\"@optionTargetPath\\\",\\\"@optionLabelPath\\\"],[[32,0,[\\\"selectedValue\\\"]],[32,1],[32,2],[32,7],[32,0,[\\\"computedOptionValuePath\\\"]],[32,8],[32,9]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1,2]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-one-way-select/templates/components/one-way-select.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-one-way-select/templates/components/one-way-select/option\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"s3tn9Fce\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@option\\\",\\\"@optionTargetPath\\\",\\\"@optionValuePath\\\",\\\"@optionLabelPath\\\",\\\"@groupIndex\\\",\\\"@index\\\",\\\"@optionComponent\\\",\\\"&default\\\",\\\"@selected\\\"],\\\"statements\\\":[[10,\\\"option\\\"],[15,2,[30,[36,1],[[32,3],[30,[36,0],[[32,1],[32,3]],null],[32,1]],null]],[15,\\\"selected\\\",[30,[36,3],[[32,9],[32,1],[32,3],[32,2]],null]],[12],[2,\\\"\\\\n\\\"],[6,[37,1],[[27,[32,8]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[18,8,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[32,7]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[1,[30,[36,2],[[32,7]],[[\\\"option\\\",\\\"index\\\",\\\"groupIndex\\\"],[[32,1],[32,6],[32,5]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[32,4]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[1,[30,[36,0],[[32,1],[32,4]],null]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[32,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[1,[30,[36,0],[[32,1],[32,3]],null]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[32,2]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[1,[30,[36,0],[[32,1],[32,2]],null]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"    \\\"],[1,[32,1]],[2,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"get\\\",\\\"if\\\",\\\"component\\\",\\\"one-way-select/contains\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-one-way-select/templates/components/one-way-select/option.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-power-calendar-utils/index\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.add = add;\n  _exports.formatDate = formatDate;\n  _exports.startOf = startOf;\n  _exports.endOf = endOf;\n  _exports.weekday = weekday;\n  _exports.isoWeekday = isoWeekday;\n  _exports.getWeekdaysShort = getWeekdaysShort;\n  _exports.getWeekdaysMin = getWeekdaysMin;\n  _exports.getWeekdays = getWeekdays;\n  _exports.isAfter = isAfter;\n  _exports.isBefore = isBefore;\n  _exports.isSame = isSame;\n  _exports.isBetween = isBetween;\n  _exports.diff = diff;\n  _exports.normalizeDate = normalizeDate;\n  _exports.normalizeRangeActionValue = normalizeRangeActionValue;\n  _exports.normalizeMultipleActionValue = normalizeMultipleActionValue;\n  _exports.normalizeCalendarDay = normalizeCalendarDay;\n  _exports.withLocale = withLocale;\n  _exports.normalizeCalendarValue = normalizeCalendarValue;\n  _exports.normalizeDuration = normalizeDuration;\n  _exports.getDefaultLocale = getDefaultLocale;\n  _exports.localeStartOfWeek = localeStartOfWeek;\n  _exports.startOfWeek = startOfWeek;\n  _exports.endOfWeek = endOfWeek;\n\n  function add(date, quantity, unit) {\n    return (0, _moment.default)(date).add(quantity, unit).toDate();\n  }\n\n  function formatDate(date, format, locale = null) {\n    if (locale) {\n      return withLocale(locale, () => (0, _moment.default)(date).format(format));\n    } else {\n      return (0, _moment.default)(date).format(format);\n    }\n  }\n\n  function startOf(date, unit) {\n    return (0, _moment.default)(date).startOf(unit).toDate();\n  }\n\n  function endOf(date, unit) {\n    return (0, _moment.default)(date).endOf(unit).toDate();\n  }\n\n  function weekday(date) {\n    return (0, _moment.default)(date).weekday();\n  }\n\n  function isoWeekday(date) {\n    return (0, _moment.default)(date).isoWeekday();\n  }\n\n  function getWeekdaysShort() {\n    return _moment.default.weekdaysShort();\n  }\n\n  function getWeekdaysMin() {\n    return _moment.default.weekdaysMin();\n  }\n\n  function getWeekdays() {\n    return _moment.default.weekdays();\n  }\n\n  function isAfter(date1, date2) {\n    return (0, _moment.default)(date1).isAfter(date2);\n  }\n\n  function isBefore(date1, date2) {\n    return (0, _moment.default)(date1).isBefore(date2);\n  }\n\n  function isSame(date1, date2, unit) {\n    return (0, _moment.default)(date1).isSame(date2, unit);\n  }\n\n  function isBetween(date, start, end, unit, inclusivity) {\n    return (0, _moment.default)(date).isBetween(start, end, unit, inclusivity);\n  }\n\n  function diff(date1, date2) {\n    return (0, _moment.default)(date1).diff(date2);\n  }\n\n  function normalizeDate(dateOrMoment) {\n    if (dateOrMoment === undefined || dateOrMoment === null || dateOrMoment === '' || dateOrMoment instanceof Date) {\n      return dateOrMoment;\n    } else {\n      return dateOrMoment.toDate();\n    }\n  }\n\n  function normalizeRangeActionValue(val) {\n    return {\n      date: val.date,\n      moment: {\n        start: val.date.start ? (0, _moment.default)(val.date.start) : val.date.start,\n        end: val.date.end ? (0, _moment.default)(val.date.end) : val.date.end\n      }\n    };\n  }\n\n  function normalizeMultipleActionValue(val) {\n    return {\n      date: val.date,\n      moment: val.date ? val.date.map(e => (0, _moment.default)(e)) : val.date\n    };\n  }\n\n  function normalizeCalendarDay(day) {\n    day.moment = (0, _moment.default)(day.date);\n    return day;\n  }\n\n  function withLocale(locale, fn) {\n    let returnValue;\n\n    if (locale) {\n      let previousLocale = _moment.default.locale();\n\n      _moment.default.locale(locale);\n\n      returnValue = fn();\n\n      _moment.default.locale(previousLocale);\n    } else {\n      returnValue = fn();\n    }\n\n    return returnValue;\n  }\n\n  function normalizeCalendarValue(value) {\n    if (value) {\n      return {\n        date: value.date,\n        moment: value.date ? (0, _moment.default)(value.date) : undefined\n      };\n    }\n\n    return {\n      date: undefined,\n      moment: undefined\n    };\n  }\n\n  function normalizeDuration(value) {\n    if (value === null) {\n      return null;\n    }\n\n    if (_moment.default.isDuration(value)) {\n      return value.asMilliseconds();\n    }\n\n    if (typeof value === \"number\") {\n      return value;\n    }\n\n    if (typeof value === \"string\") {\n      let [, quantity, units] = value.match(/(\\d+)(.*)/);\n      units = units.trim() || \"days\";\n      return _moment.default.duration(parseInt(quantity, 10), units).asMilliseconds();\n    }\n  }\n\n  function getDefaultLocale() {\n    return _moment.default.locale();\n  }\n\n  function localeStartOfWeek(locale) {\n    let now = new Date();\n    let day = withLocale(locale, () => formatDate(startOf(now, 'week'), 'dddd'));\n    let idx = withLocale(locale, getWeekdays).indexOf(day);\n    return idx >= 0 ? idx : 0;\n  }\n\n  function startOfWeek(day, startOfWeek) {\n    while (isoWeekday(day) % 7 !== startOfWeek) {\n      day = add(day, -1, \"day\");\n    }\n\n    return day;\n  }\n\n  function endOfWeek(day, startOfWeek) {\n    let eow = (startOfWeek + 6) % 7;\n\n    while (isoWeekday(day) % 7 !== eow) {\n      day = add(day, 1, \"day\");\n    }\n\n    return day;\n  }\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\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-power-calendar-utils\"], function (_exports, _powerCalendar, _emberPowerCalendarUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _class2;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  let _class = (_dec = Ember.computed, _dec2 = Ember.computed('center'), _dec3 = Ember._action, (_class2 = class _class2 extends _powerCalendar.default {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"daysComponent\", 'power-calendar-multiple/days');\n\n      _defineProperty(this, \"_calendarType\", 'multiple');\n    }\n\n    // CPs\n    get selected() {\n      return undefined;\n    }\n\n    set selected(v) {\n      return Ember.isArray(v) ? v.map(_emberPowerCalendarUtils.normalizeDate) : v;\n    }\n\n    get currentCenter() {\n      let center = this.center;\n\n      if (!center) {\n        center = (this.selected || [])[0] || this.powerCalendarService.getDate();\n      }\n\n      return (0, _emberPowerCalendarUtils.normalizeDate)(center);\n    } // Actions\n\n\n    select(dayOrDays, calendar, e) {\n      (true && !(Ember.isArray(dayOrDays) || dayOrDays instanceof Object && dayOrDays.date instanceof Date) && Ember.assert(`The select action expects an array of date objects, or a date object. ${typeof dayOrDays} was recieved instead.`, Ember.isArray(dayOrDays) || dayOrDays instanceof Object && dayOrDays.date instanceof Date));\n      let days;\n\n      if (Ember.isArray(dayOrDays)) {\n        days = dayOrDays;\n      } else if (dayOrDays instanceof Object && dayOrDays.date instanceof Date) {\n        days = [dayOrDays];\n      }\n\n      if (this.onSelect) {\n        this.onSelect(this._buildCollection(days), calendar, e);\n      }\n    } // Methods\n\n\n    _buildCollection(days) {\n      let selected = this.publicAPI.selected || [];\n\n      for (let day of days) {\n        let index = selected.findIndex(selectedDate => (0, _emberPowerCalendarUtils.isSame)(day.date, selectedDate, \"day\"));\n\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\n      return (0, _emberPowerCalendarUtils.normalizeMultipleActionValue)({\n        date: selected\n      });\n    }\n\n  }, (_applyDecoratedDescriptor(_class2.prototype, \"selected\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"selected\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"currentCenter\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"currentCenter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"select\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"select\"), _class2.prototype)), _class2));\n\n  _exports.default = _class;\n});","define(\"ember-power-calendar/components/power-calendar-multiple/days\", [\"exports\", \"ember-power-calendar/components/power-calendar/days\", \"ember-power-calendar/utils/computed-fallback-if-undefined\", \"ember-power-calendar-utils\"], function (_exports, _days, _computedFallbackIfUndefined, _emberPowerCalendarUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _class2, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let _class = (_dec = (0, _computedFallbackIfUndefined.default)(Infinity), (_class2 = class _class2 extends _days.default {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"maxLength\", _descriptor, this);\n    }\n\n    // Methods\n    dayIsSelected(date, calendar = this.calendar) {\n      let selected = calendar.selected || [];\n      return selected.some(d => (0, _emberPowerCalendarUtils.isSame)(date, d, 'day'));\n    }\n\n    dayIsDisabled(date) {\n      let numSelected = this.calendar.selected && this.calendar.selected.length || 0;\n      let maxLength = this.maxLength || Infinity;\n      return super.dayIsDisabled(...arguments) || numSelected >= maxLength && !this.dayIsSelected(date);\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"maxLength\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class2));\n\n  _exports.default = _class;\n});","define(\"ember-power-calendar/components/power-calendar-range\", [\"exports\", \"ember-power-calendar/components/power-calendar\", \"ember-power-calendar/utils/computed-fallback-if-undefined\", \"ember-power-calendar-utils\", \"ember-power-calendar/-private/utils/own-prop\"], function (_exports, _powerCalendar, _computedFallbackIfUndefined, _emberPowerCalendarUtils, _ownProp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let _class = (_dec = (0, _computedFallbackIfUndefined.default)(false), _dec2 = Ember.computed, _dec3 = Ember.computed, _dec4 = Ember.computed, _dec5 = Ember.computed('center'), _dec6 = Ember.computed('_publicAPI', 'minRange', 'maxRange'), _dec7 = Ember._action, (_class2 = class _class2 extends _powerCalendar.default {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"proximitySelection\", _descriptor, this);\n\n      _defineProperty(this, \"daysComponent\", 'power-calendar-range/days');\n\n      _defineProperty(this, \"_calendarType\", 'range');\n    }\n\n    // CPs\n    get minRange() {\n      return 86400000;\n    }\n\n    set minRange(v) {\n      if (typeof v === 'number') {\n        return v * 86400000;\n      }\n\n      return (0, _emberPowerCalendarUtils.normalizeDuration)(v === undefined ? 86400000 : v);\n    }\n\n    get maxRange() {\n      return null;\n    }\n\n    set maxRange(v) {\n      if (typeof v === 'number') {\n        return v * 86400000;\n      }\n\n      return (0, _emberPowerCalendarUtils.normalizeDuration)(v === undefined ? 86400000 : v);\n    }\n\n    get selected() {\n      return {\n        start: undefined,\n        end: undefined\n      };\n    }\n\n    set selected(v) {\n      if (v === undefined || v === null) {\n        v = {};\n      }\n\n      return {\n        start: (0, _emberPowerCalendarUtils.normalizeDate)(v.start),\n        end: (0, _emberPowerCalendarUtils.normalizeDate)(v.end)\n      };\n    }\n\n    get currentCenter() {\n      let center = this.center;\n\n      if (!center) {\n        center = this.selected.start || this.powerCalendarService.getDate();\n      }\n\n      return (0, _emberPowerCalendarUtils.normalizeDate)(center);\n    }\n\n    get publicAPI() {\n      let rangeOnlyAPI = this.getProperties('minRange', 'maxRange');\n      return Ember.assign(rangeOnlyAPI, this._publicAPI);\n    } // Actions\n\n\n    select({\n      date\n    }, calendar, e) {\n      (true && !(date && ((0, _ownProp.default)(date, 'start') || (0, _ownProp.default)(date, 'end') || date instanceof Date)) && Ember.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\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\n      let {\n        start,\n        end\n      } = range.date;\n\n      if (start && end) {\n        let {\n          minRange,\n          maxRange\n        } = this.publicAPI;\n        let diffInMs = Math.abs((0, _emberPowerCalendarUtils.diff)(end, start));\n\n        if (diffInMs < minRange || maxRange && diffInMs > maxRange) {\n          return;\n        }\n      }\n\n      if (this.onSelect) {\n        this.onSelect(range, calendar, e);\n      }\n    } // Methods\n\n\n    _buildRange(day) {\n      let selected = this.publicAPI.selected || {\n        start: null,\n        end: null\n      };\n      let {\n        start,\n        end\n      } = Ember.getProperties(selected, 'start', 'end');\n\n      if (this.proximitySelection) {\n        return this._buildRangeByProximity(day, start, end);\n      }\n\n      return this._buildDefaultRange(day, start, end);\n    }\n\n    _buildRangeByProximity(day, start, end) {\n      if (start && end) {\n        let changeStart = Math.abs((0, _emberPowerCalendarUtils.diff)(day.date, end)) > Math.abs((0, _emberPowerCalendarUtils.diff)(day.date, start));\n        return (0, _emberPowerCalendarUtils.normalizeRangeActionValue)({\n          date: {\n            start: changeStart ? day.date : start,\n            end: changeStart ? end : day.date\n          }\n        });\n      }\n\n      if ((0, _emberPowerCalendarUtils.isBefore)(day.date, start)) {\n        return (0, _emberPowerCalendarUtils.normalizeRangeActionValue)({\n          date: {\n            start: day.date,\n            end: null\n          }\n        });\n      }\n\n      return this._buildDefaultRange(day, start, end);\n    }\n\n    _buildDefaultRange(day, start, end) {\n      if (start && !end) {\n        if ((0, _emberPowerCalendarUtils.isAfter)(start, day.date)) {\n          return (0, _emberPowerCalendarUtils.normalizeRangeActionValue)({\n            date: {\n              start: day.date,\n              end: start\n            }\n          });\n        }\n\n        return (0, _emberPowerCalendarUtils.normalizeRangeActionValue)({\n          date: {\n            start: start,\n            end: day.date\n          }\n        });\n      }\n\n      return (0, _emberPowerCalendarUtils.normalizeRangeActionValue)({\n        date: {\n          start: day.date,\n          end: null\n        }\n      });\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"proximitySelection\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"minRange\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"minRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"maxRange\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"maxRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"selected\", [_dec4], Object.getOwnPropertyDescriptor(_class2.prototype, \"selected\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"currentCenter\", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, \"currentCenter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"publicAPI\", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, \"publicAPI\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"select\", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, \"select\"), _class2.prototype)), _class2));\n\n  _exports.default = _class;\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, _emberPowerCalendarUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\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      } = Ember.getProperties(calendar.selected || {\n        start: null,\n        end: null\n      }, 'start', 'end');\n\n      if (start && end) {\n        day.isSelected = (0, _emberPowerCalendarUtils.isBetween)(date, start, end, 'day', '[]');\n        day.isRangeStart = day.isSelected && (0, _emberPowerCalendarUtils.isSame)(date, start, 'day');\n        day.isRangeEnd = day.isSelected && (0, _emberPowerCalendarUtils.isSame)(date, end, 'day');\n      } else {\n        day.isRangeEnd = false;\n\n        if (!start) {\n          day.isRangeStart = false;\n        } else {\n          day.isRangeStart = day.isSelected = (0, _emberPowerCalendarUtils.isSame)(date, start, 'day');\n\n          if (!day.isDisabled) {\n            let diffInMs = Math.abs((0, _emberPowerCalendarUtils.diff)(day.date, start));\n            day.isDisabled = diffInMs < calendar.minRange || calendar.maxRange !== null && diffInMs > calendar.maxRange;\n          }\n        }\n      }\n\n      return day;\n    }\n\n    dayIsSelected() {\n      return false;\n    }\n\n  }\n\n  _exports.default = _default;\n});","define(\"ember-power-calendar/components/power-calendar\", [\"exports\", \"@ember-decorators/component\", \"ember-concurrency\", \"ember-power-calendar/templates/components/power-calendar\", \"ember-power-calendar-utils\"], function (_exports, _component, _emberConcurrency, _powerCalendar, _emberPowerCalendarUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class2, _class3, _descriptor, _descriptor2;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let _class = (_dec = (0, _component.layout)(_powerCalendar.default), _dec2 = (0, _component.tagName)(''), _dec3 = Ember.inject.service('power-calendar'), _dec4 = Ember.computed('onSelect', 'onCenterChange'), _dec5 = Ember.computed, _dec6 = Ember.computed('center'), _dec7 = Ember.computed('_publicAPI'), _dec8 = Ember.computed('selected', 'currentCenter', 'locale', 'powerCalendarService.locale', 'changeCenterTask.isRunning', 'publicActions'), _dec9 = Ember.computed('tag'), _dec10 = Ember._action, _dec11 = (0, _emberConcurrency.task)(function* (newCenter, calendar, e) {\n    (true && !(typeof this.onCenterChange === 'function') && Ember.assert('You attempted to move the center of a calendar that doesn\\'t receive an `@onCenterChange` action.', typeof this.onCenterChange === 'function'));\n    let value = (0, _emberPowerCalendarUtils.normalizeCalendarValue)({\n      date: newCenter\n    });\n    yield this.onCenterChange(value, calendar, e);\n  }), _dec(_class2 = _dec2(_class2 = (_class3 = class _class3 extends Ember.Component {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"powerCalendarService\", _descriptor, this);\n\n      _defineProperty(this, \"navComponent\", 'power-calendar/nav');\n\n      _defineProperty(this, \"daysComponent\", 'power-calendar/days');\n\n      _defineProperty(this, \"center\", null);\n\n      _defineProperty(this, \"_calendarType\", 'single');\n\n      _initializerDefineProperty(this, \"changeCenterTask\", _descriptor2, this);\n    }\n\n    // Lifecycle hooks\n    init() {\n      super.init(...arguments);\n      this.registerCalendar();\n\n      if (this.onInit) {\n        this.onInit(this.publicAPI);\n      }\n    }\n\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.unregisterCalendar();\n    } // CPs\n\n\n    get publicActions() {\n      let actions = {};\n\n      if (this.onSelect) {\n        actions.select = (...args) => this.select(...args);\n      }\n\n      if (this.onCenterChange) {\n        let changeCenter = (newCenter, calendar, e) => {\n          return this.changeCenterTask.perform(newCenter, calendar, e);\n        };\n\n        actions.changeCenter = changeCenter;\n\n        actions.moveCenter = (step, unit, calendar, e) => {\n          let newCenter = (0, _emberPowerCalendarUtils.add)(this.currentCenter, step, unit);\n          return changeCenter(newCenter, calendar, e);\n        };\n      }\n\n      return actions;\n    }\n\n    get selected() {\n      return undefined;\n    }\n\n    set selected(v) {\n      return (0, _emberPowerCalendarUtils.normalizeDate)(v);\n    }\n\n    get currentCenter() {\n      let center = this.center;\n\n      if (!center) {\n        center = this.selected || this.powerCalendarService.getDate();\n      }\n\n      return (0, _emberPowerCalendarUtils.normalizeDate)(center);\n    }\n\n    get publicAPI() {\n      return this._publicAPI;\n    }\n\n    get _publicAPI() {\n      return {\n        uniqueId: Ember.guidFor(this),\n        type: this._calendarType,\n        selected: this.selected,\n        loading: this.changeCenterTask.isRunning,\n        center: this.currentCenter,\n        locale: this.locale || this.powerCalendarService.locale,\n        actions: this.publicActions\n      };\n    }\n\n    get tagWithDefault() {\n      if (this.tag === undefined || this.tag === null) {\n        return 'div';\n      }\n\n      return this.tag;\n    } // Actions\n\n\n    select(day, calendar, e) {\n      if (this.onSelect) {\n        this.onSelect(day, calendar, e);\n      }\n    } // Tasks\n\n\n    // Methods\n    registerCalendar() {\n      if (window) {\n        window.__powerCalendars = window.__powerCalendars || {}; // TODO: weakmap??\n\n        window.__powerCalendars[this.publicAPI.uniqueId] = this;\n      }\n    }\n\n    unregisterCalendar() {\n      if (window) {\n        delete window.__powerCalendars[Ember.guidFor(this)];\n      }\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class3.prototype, \"powerCalendarService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class3.prototype, \"publicActions\", [_dec4], Object.getOwnPropertyDescriptor(_class3.prototype, \"publicActions\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"selected\", [_dec5], Object.getOwnPropertyDescriptor(_class3.prototype, \"selected\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"currentCenter\", [_dec6], Object.getOwnPropertyDescriptor(_class3.prototype, \"currentCenter\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"publicAPI\", [_dec7], Object.getOwnPropertyDescriptor(_class3.prototype, \"publicAPI\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"_publicAPI\", [_dec8], Object.getOwnPropertyDescriptor(_class3.prototype, \"_publicAPI\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"tagWithDefault\", [_dec9], Object.getOwnPropertyDescriptor(_class3.prototype, \"tagWithDefault\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"select\", [_dec10], Object.getOwnPropertyDescriptor(_class3.prototype, \"select\"), _class3.prototype), _descriptor2 = _applyDecoratedDescriptor(_class3.prototype, \"changeCenterTask\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class3)) || _class2) || _class2);\n\n  _exports.default = _class;\n});","define(\"ember-power-calendar/components/power-calendar/days\", [\"exports\", \"@ember-decorators/component\", \"ember-power-calendar/templates/components/power-calendar/days\", \"ember-power-calendar-utils\"], function (_exports, _component, _days, _emberPowerCalendarUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class2, _class3, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const WEEK_DAYS = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];\n\n  let _class = (_dec = (0, _component.layout)(_days.default), _dec2 = (0, _component.tagName)(''), _dec3 = Ember.inject.service('power-calendar'), _dec4 = Ember.computed('calendar.locale'), _dec5 = Ember.computed('calendar.locale'), _dec6 = Ember.computed('calendar.locale'), _dec7 = Ember.computed('weekdaysShort', 'startOfWeek'), _dec8 = Ember.computed('localeStartOfWeek', 'weekdayFormat', 'calendar.locale'), _dec9 = Ember.computed('calendar', 'focusedId', 'localeStartOfWeek', 'minDate', 'maxDate', 'disabledDates.[]', 'maxLength'), _dec10 = Ember.computed('showDaysAround', 'days'), _dec11 = Ember.computed('center', 'calendar.center'), _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec(_class2 = _dec2(_class2 = (_class3 = class _class3 extends Ember.Component {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"focusedId\", undefined);\n\n      _defineProperty(this, \"showDaysAround\", true);\n\n      _defineProperty(this, \"weekdayFormat\", 'short');\n\n      _initializerDefineProperty(this, \"powerCalendarService\", _descriptor, this);\n    }\n\n    // CPs\n    get weekdaysMin() {\n      return (0, _emberPowerCalendarUtils.withLocale)(this.calendar.locale, _emberPowerCalendarUtils.getWeekdaysMin);\n    }\n\n    get weekdaysShort() {\n      return (0, _emberPowerCalendarUtils.withLocale)(this.calendar.locale, _emberPowerCalendarUtils.getWeekdaysShort);\n    }\n\n    get weekdays() {\n      return (0, _emberPowerCalendarUtils.withLocale)(this.calendar.locale, _emberPowerCalendarUtils.getWeekdays);\n    }\n\n    get localeStartOfWeek() {\n      let forcedStartOfWeek = this.startOfWeek;\n\n      if (forcedStartOfWeek) {\n        return parseInt(forcedStartOfWeek, 10);\n      }\n\n      return (0, _emberPowerCalendarUtils.localeStartOfWeek)(this.calendar.locale);\n    }\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\n    get days() {\n      let today = this.powerCalendarService.getDate();\n      let lastDay = this.lastDay();\n      let day = this.firstDay();\n      let days = [];\n\n      while ((0, _emberPowerCalendarUtils.isBefore)(day, lastDay)) {\n        days.push(this.buildDay(day, today, this.calendar));\n        day = (0, _emberPowerCalendarUtils.add)(day, 1, \"day\");\n      }\n\n      return days;\n    }\n\n    get weeks() {\n      let {\n        showDaysAround,\n        days\n      } = this;\n      let weeks = [];\n      let i = 0;\n\n      while (days[i]) {\n        let daysOfWeek = days.slice(i, i + 7);\n\n        if (!showDaysAround) {\n          daysOfWeek = daysOfWeek.filter(d => d.isCurrentMonth);\n        }\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\n      return weeks;\n    }\n\n    get currentCenter() {\n      let center = this.center;\n\n      if (!center) {\n        center = this.selected || this.calendar.center;\n      }\n\n      return (0, _emberPowerCalendarUtils.normalizeDate)(center);\n    } // Actions\n\n\n    handleDayFocus(e) {\n      Ember.run.scheduleOnce('actions', this, this._updateFocused, e.target.dataset.date);\n    }\n\n    handleDayBlur() {\n      Ember.run.scheduleOnce('actions', this, this._updateFocused, null);\n    }\n\n    handleKeyDown(e) {\n      let {\n        focusedId\n      } = this;\n\n      if (focusedId) {\n        let days = this.days;\n        let day, index;\n\n        for (let i = 0; i < days.length; i++) {\n          if (days[i].id === focusedId) {\n            index = i;\n            break;\n          }\n        }\n\n        if (e.keyCode === 38) {\n          e.preventDefault();\n          let newIndex = Math.max(index - 7, 0);\n          day = days[newIndex];\n\n          if (day.isDisabled) {\n            for (let i = newIndex + 1; i <= index; i++) {\n              day = days[i];\n\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\n          if (day.isDisabled) {\n            for (let i = newIndex - 1; i >= index; i--) {\n              day = days[i];\n\n              if (!day.isDisabled) {\n                break;\n              }\n            }\n          }\n        } else if (e.keyCode === 37) {\n          day = days[Math.max(index - 1, 0)];\n\n          if (day.isDisabled) {\n            return;\n          }\n        } else if (e.keyCode === 39) {\n          day = days[Math.min(index + 1, days.length - 1)];\n\n          if (day.isDisabled) {\n            return;\n          }\n        } else {\n          return;\n        }\n\n        this.set('focusedId', day.id);\n        Ember.run.scheduleOnce('afterRender', this, '_focusDate', day.id);\n      }\n    } // Methods\n\n\n    buildDay(date, today, calendar) {\n      let id = (0, _emberPowerCalendarUtils.formatDate)(date, 'YYYY-MM-DD');\n      return (0, _emberPowerCalendarUtils.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, _emberPowerCalendarUtils.isSame)(date, today, 'day'),\n        isSelected: this.dayIsSelected(date, calendar)\n      });\n    }\n\n    buildonSelectValue(day) {\n      return day;\n    }\n\n    dayIsSelected(date, calendar = this.calendar) {\n      return calendar.selected ? (0, _emberPowerCalendarUtils.isSame)(date, calendar.selected, 'day') : false;\n    }\n\n    dayIsDisabled(date) {\n      let isDisabled = !this.calendar.actions.select;\n\n      if (isDisabled) {\n        return true;\n      }\n\n      if (this.minDate && (0, _emberPowerCalendarUtils.isBefore)(date, (0, _emberPowerCalendarUtils.startOf)(this.minDate, 'day'))) {\n        return true;\n      }\n\n      if (this.maxDate && (0, _emberPowerCalendarUtils.isAfter)(date, (0, _emberPowerCalendarUtils.endOf)(this.maxDate, 'day'))) {\n        return true;\n      }\n\n      if (this.disabledDates) {\n        let disabledInRange = this.disabledDates.some(d => {\n          let isSameDay = (0, _emberPowerCalendarUtils.isSame)(date, d, 'day');\n          let isWeekDayIncludes = WEEK_DAYS.indexOf(d) !== -1 && (0, _emberPowerCalendarUtils.formatDate)(date, 'ddd') === d;\n          return isSameDay || isWeekDayIncludes;\n        });\n\n        if (disabledInRange) {\n          return true;\n        }\n      }\n\n      return false;\n    }\n\n    firstDay() {\n      let firstDay = (0, _emberPowerCalendarUtils.startOf)(this.currentCenter, 'month');\n      return (0, _emberPowerCalendarUtils.startOfWeek)(firstDay, this.localeStartOfWeek);\n    }\n\n    lastDay() {\n      let localeStartOfWeek = this.localeStartOfWeek;\n      (true && !(!isNaN(this.currentCenter.getTime())) && Ember.assert(\"The center of the calendar is an invalid date.\", !isNaN(this.currentCenter.getTime())));\n      let lastDay = (0, _emberPowerCalendarUtils.endOf)(this.currentCenter, 'month');\n      return (0, _emberPowerCalendarUtils.endOfWeek)(lastDay, localeStartOfWeek);\n    }\n\n    _updateFocused(id) {\n      this.set('focusedId', id);\n    }\n\n    _focusDate(id) {\n      let dayElement = document.querySelector(`[data-power-calendar-id=\"${this.calendar.uniqueId}\"] [data-date=\"${id}\"]`);\n\n      if (dayElement) {\n        dayElement.focus();\n      }\n    }\n\n    handleClick(e) {\n      let dayEl = e.target.closest('[data-date]');\n\n      if (dayEl) {\n        let dateStr = dayEl.dataset.date;\n        let day = this.days.find(d => d.id === dateStr);\n\n        if (day) {\n          if (this.calendar.actions.select) {\n            this.calendar.actions.select(day, this.calendar, e);\n          }\n        }\n      }\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class3.prototype, \"powerCalendarService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class3.prototype, \"weekdaysMin\", [_dec4], Object.getOwnPropertyDescriptor(_class3.prototype, \"weekdaysMin\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"weekdaysShort\", [_dec5], Object.getOwnPropertyDescriptor(_class3.prototype, \"weekdaysShort\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"weekdays\", [_dec6], Object.getOwnPropertyDescriptor(_class3.prototype, \"weekdays\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"localeStartOfWeek\", [_dec7], Object.getOwnPropertyDescriptor(_class3.prototype, \"localeStartOfWeek\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"weekdaysNames\", [_dec8], Object.getOwnPropertyDescriptor(_class3.prototype, \"weekdaysNames\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"days\", [_dec9], Object.getOwnPropertyDescriptor(_class3.prototype, \"days\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"weeks\", [_dec10], Object.getOwnPropertyDescriptor(_class3.prototype, \"weeks\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"currentCenter\", [_dec11], Object.getOwnPropertyDescriptor(_class3.prototype, \"currentCenter\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"handleDayFocus\", [_dec12], Object.getOwnPropertyDescriptor(_class3.prototype, \"handleDayFocus\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"handleDayBlur\", [_dec13], Object.getOwnPropertyDescriptor(_class3.prototype, \"handleDayBlur\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"handleKeyDown\", [_dec14], Object.getOwnPropertyDescriptor(_class3.prototype, \"handleKeyDown\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"handleClick\", [_dec15], Object.getOwnPropertyDescriptor(_class3.prototype, \"handleClick\"), _class3.prototype)), _class3)) || _class2) || _class2);\n\n  _exports.default = _class;\n});","define(\"ember-power-calendar/components/power-calendar/nav\", [\"exports\", \"@ember-decorators/component\", \"ember-power-calendar/templates/components/power-calendar/nav\"], function (_exports, _component, _nav) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _class2;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  let _class = (_dec = (0, _component.layout)(_nav.default), _dec2 = (0, _component.tagName)(''), _dec(_class2 = _dec2(_class2 = class _class2 extends Ember.Component {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"unit\", 'month');\n\n      _defineProperty(this, \"format\", 'MMMM YYYY');\n    }\n\n  }) || _class2) || _class2);\n\n  _exports.default = _class;\n});","define(\"ember-power-calendar/helpers/ember-power-calendar-day-classes\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.emberPowerCalendarDayClasses = emberPowerCalendarDayClasses;\n  _exports.default = void 0;\n\n  function emberPowerCalendarDayClasses([day, calendar, weeks, dayClass]) {\n    let classes = ['ember-power-calendar-day'];\n\n    if (calendar.actions.select) {\n      classes.push('ember-power-calendar-day--interactive');\n    }\n\n    classes.push(`ember-power-calendar-day--${day.isCurrentMonth ? 'current' : 'other'}-month`);\n\n    if (day.isSelected) {\n      classes.push('ember-power-calendar-day--selected');\n    }\n\n    if (day.isToday) {\n      classes.push('ember-power-calendar-day--today');\n    }\n\n    if (day.isFocused) {\n      classes.push('ember-power-calendar-day--focused');\n    }\n\n    if (day.isRangeStart) {\n      classes.push('ember-power-calendar-day--range-start');\n    }\n\n    if (day.isRangeEnd) {\n      classes.push('ember-power-calendar-day--range-end');\n    }\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\n        if (k !== null && k !== undefined) {\n          classes.push(k);\n        }\n      }\n    }\n\n    return classes.join(' ');\n  }\n\n  var _default = Ember.Helper.helper(emberPowerCalendarDayClasses);\n\n  _exports.default = _default;\n});","define(\"ember-power-calendar/helpers/power-calendar-format-date\", [\"exports\", \"ember-power-calendar-utils\"], function (_exports, _emberPowerCalendarUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.powerCalendarFormatDate = powerCalendarFormatDate;\n  _exports.default = void 0;\n\n  function powerCalendarFormatDate([date, format], {\n    locale\n  }) {\n    return (0, _emberPowerCalendarUtils.formatDate)(date, format, locale);\n  }\n\n  var _default = Ember.Helper.helper(powerCalendarFormatDate);\n\n  _exports.default = _default;\n});","define(\"ember-power-calendar/services/power-calendar\", [\"exports\", \"ember-power-calendar-utils\"], function (_exports, _emberPowerCalendarUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _class2;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  let _class = (_dec = Ember.computed, (_class2 = class _class2 extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"date\", null);\n    }\n\n    // CPs\n    get locale() {\n      return (0, _emberPowerCalendarUtils.getDefaultLocale)();\n    }\n\n    set locale(value) {\n      return value;\n    } // Methods\n\n\n    getDate() {\n      return this.date || new Date();\n    }\n\n  }, (_applyDecoratedDescriptor(_class2.prototype, \"locale\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"locale\"), _class2.prototype)), _class2));\n\n  _exports.default = _class;\n});","define(\"ember-power-calendar/templates/components/power-calendar\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"5zsz2TXi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"calendar\\\",\\\"Tag\\\",\\\"&default\\\",\\\"&attrs\\\"],\\\"statements\\\":[[6,[37,7],[[30,[36,6],[[32,0,[\\\"publicAPI\\\"]],[30,[36,5],null,[[\\\"Nav\\\",\\\"Days\\\"],[[30,[36,2],[[32,0,[\\\"navComponent\\\"]]],[[\\\"calendar\\\"],[[30,[36,4],[[32,0,[\\\"publicAPI\\\"]]],null]]]],[30,[36,2],[[32,0,[\\\"daysComponent\\\"]]],[[\\\"calendar\\\"],[[30,[36,4],[[32,0,[\\\"publicAPI\\\"]]],null]]]]]]]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,3],[[30,[36,2],[[30,[36,1],[[32,0,[\\\"tagWithDefault\\\"]]],null]],[[\\\"tagName\\\"],[[32,0,[\\\"tagWithDefault\\\"]]]]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[8,[32,2],[[24,0,\\\"ember-power-calendar\\\"],[17,4],[16,1,[32,1,[\\\"uniqueId\\\"]]]],[[],[]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,0],[[27,[32,3]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[18,3,[[32,1]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[8,[32,1,[\\\"Nav\\\"]],[],[[],[]],null],[2,\\\"\\\\n        \\\"],[8,[32,1,[\\\"Days\\\"]],[],[[],[]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"    \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"-element\\\",\\\"component\\\",\\\"let\\\",\\\"readonly\\\",\\\"hash\\\",\\\"assign\\\",\\\"with\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-calendar/templates/components/power-calendar.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-power-calendar/templates/components/power-calendar/days\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"pmYZynK3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"week\\\",\\\"day\\\",\\\"wdn\\\",\\\"@calendar\\\",\\\"&default\\\",\\\"&attrs\\\"],\\\"statements\\\":[[11,\\\"div\\\"],[24,0,\\\"ember-power-calendar-days\\\"],[17,6],[16,\\\"data-power-calendar-id\\\",[30,[36,5],[[32,4,[\\\"calendarUniqueId\\\"]],[32,4,[\\\"uniqueId\\\"]]],null]],[4,[38,1],[\\\"click\\\",[32,0,[\\\"handleClick\\\"]]],null],[12],[2,\\\"\\\\n  \\\"],[10,\\\"div\\\"],[14,0,\\\"ember-power-calendar-row ember-power-calendar-weekdays\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,[\\\"weekdaysNames\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[10,\\\"div\\\"],[14,0,\\\"ember-power-calendar-weekday\\\"],[12],[1,[32,3]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]}]]],[2,\\\"  \\\"],[13],[2,\\\"\\\\n\\\"],[2,\\\"  \\\"],[11,\\\"div\\\"],[24,0,\\\"ember-power-calendar-day-grid\\\"],[4,[38,1],[\\\"keydown\\\",[32,0,[\\\"handleKeyDown\\\"]]],null],[12],[2,\\\"\\\\n\\\"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,[\\\"weeks\\\"]]],null]],null]],[[\\\"key\\\"],[\\\"id\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[10,\\\"div\\\"],[14,0,\\\"ember-power-calendar-row ember-power-calendar-week\\\"],[15,\\\"data-missing-days\\\",[32,1,[\\\"missingDays\\\"]]],[12],[2,\\\"\\\\n\\\"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,1,[\\\"days\\\"]]],null]],null]],[[\\\"key\\\"],[\\\"id\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"          \\\"],[11,\\\"button\\\"],[16,\\\"data-date\\\",[31,[[32,2,[\\\"id\\\"]]]]],[16,0,[30,[36,0],[[32,2],[32,4],[32,0,[\\\"weeks\\\"]],[32,0,[\\\"dayClass\\\"]]],null]],[16,\\\"disabled\\\",[32,2,[\\\"isDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,1],[\\\"focus\\\",[32,0,[\\\"handleDayFocus\\\"]]],null],[4,[38,1],[\\\"blur\\\",[32,0,[\\\"handleDayBlur\\\"]]],null],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[27,[32,5]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"              \\\"],[18,5,[[32,2],[32,4],[32,0,[\\\"weeks\\\"]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"              \\\"],[1,[32,2,[\\\"number\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"          \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}]]],[2,\\\"      \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\"  \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"ember-power-calendar-day-classes\\\",\\\"on\\\",\\\"if\\\",\\\"-track-array\\\",\\\"each\\\",\\\"or\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-calendar/templates/components/power-calendar/days.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-power-calendar/templates/components/power-calendar/nav\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"l1YvHKgX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@calendar\\\",\\\"&default\\\"],\\\"statements\\\":[[10,\\\"nav\\\"],[14,0,\\\"ember-power-calendar-nav\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,4],[[32,1,[\\\"actions\\\",\\\"changeCenter\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ember-power-calendar-nav-control ember-power-calendar-nav-control--previous\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,[36,0],[[35,3,[\\\"actions\\\",\\\"moveCenter\\\"]],-1,[32,0,[\\\"unit\\\"]],[32,1]],null]],null],[12],[2,\\\"«\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"  \\\"],[10,\\\"div\\\"],[14,0,\\\"ember-power-calendar-nav-title\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,4],[[27,[32,2]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[18,2,[[32,1]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"      \\\"],[1,[30,[36,2],[[32,1,[\\\"center\\\"]],[32,0,[\\\"format\\\"]]],[[\\\"locale\\\"],[[32,1,[\\\"locale\\\"]]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"  \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,4],[[35,3,[\\\"actions\\\",\\\"changeCenter\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ember-power-calendar-nav-control ember-power-calendar-nav-control--next\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,[36,0],[[32,1,[\\\"actions\\\",\\\"moveCenter\\\"]],1,[32,0,[\\\"unit\\\"]],[32,1]],null]],null],[12],[2,\\\"»\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"fn\\\",\\\"on\\\",\\\"power-calendar-format-date\\\",\\\"calendar\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-calendar/templates/components/power-calendar/nav.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-power-calendar/utils/computed-fallback-if-undefined\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(fallback) {\n    return Ember.computed({\n      get() {\n        return fallback;\n      },\n\n      set(_, v) {\n        return v === undefined ? fallback : v;\n      }\n\n    });\n  }\n});","define(\"ember-power-datepicker/components/power-datepicker\", [\"exports\", \"ember-power-datepicker/templates/components/power-datepicker\", \"@ember-decorators/component\", \"ember-power-datepicker/utils/computed-properties\"], function (_exports, _powerDatepicker, _component, _computedProperties) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _class2, _class3, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let _class = (_dec = (0, _component.layout)(_powerDatepicker.default), _dec2 = (0, _component.tagName)(''), _dec3 = (0, _computedProperties.fallbackAction)(function (day) {\n    Ember.set(this, 'center', day.date);\n  }), _dec4 = Ember._action, _dec(_class2 = _dec2(_class2 = (_class3 = class _class3 extends Ember.Component {\n    constructor(...args) {\n      super(...args);\n\n      _defineProperty(this, \"closeOnSelect\", true);\n\n      _defineProperty(this, \"format\", 'YYYY/MM/DD');\n\n      _initializerDefineProperty(this, \"onCenterChange\", _descriptor, this);\n    }\n\n    // Actions\n    handleSelect(day, datepicker, e) {\n      let {\n        onSelect,\n        closeOnSelect\n      } = this;\n      let value = onSelect(day, datepicker, e);\n\n      if (value === false || !closeOnSelect) {\n        return;\n      }\n\n      datepicker.actions.close();\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class3.prototype, \"onCenterChange\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class3.prototype, \"handleSelect\", [_dec4], Object.getOwnPropertyDescriptor(_class3.prototype, \"handleSelect\"), _class3.prototype)), _class3)) || _class2) || _class2);\n\n  _exports.default = _class;\n});","define(\"ember-power-datepicker/templates/components/power-datepicker\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"EckpKE7q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"dd\\\",\\\"cal\\\",\\\"datepicker\\\",\\\"&default\\\",\\\"@disabled\\\",\\\"@onOpen\\\",\\\"@onClose\\\",\\\"@onFocus\\\",\\\"@destination\\\",\\\"@initiallyOpened\\\",\\\"@horizontalPosition\\\",\\\"@calculatePosition\\\",\\\"@verticalPosition\\\",\\\"@renderInPlace\\\",\\\"@matchTriggerWidth\\\",\\\"&attrs\\\",\\\"@locale\\\",\\\"@selected\\\"],\\\"statements\\\":[[8,\\\"basic-dropdown\\\",[[17,16]],[[\\\"@disabled\\\",\\\"@onOpen\\\",\\\"@onClose\\\",\\\"@onFocus\\\",\\\"@destination\\\",\\\"@initiallyOpened\\\",\\\"@horizontalPosition\\\",\\\"@calculatePosition\\\",\\\"@verticalPosition\\\",\\\"@renderInPlace\\\",\\\"@matchTriggerWidth\\\"],[[32,5],[32,6],[32,7],[32,8],[32,9],[32,10],[32,11],[32,12],[32,13],[32,14],[32,15]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n  \\\"],[8,\\\"power-calendar\\\",[],[[\\\"@htmlTag\\\",\\\"@center\\\",\\\"@locale\\\",\\\"@onCenterChange\\\",\\\"@onSelect\\\",\\\"@selected\\\"],[\\\"\\\",[32,0,[\\\"center\\\"]],[32,17],[32,0,[\\\"onCenterChange\\\"]],[32,0,[\\\"handleSelect\\\"]],[32,18]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,3],[[30,[36,1],null,[[\\\"uniqueId\\\",\\\"calendarUniqueId\\\",\\\"isOpen\\\",\\\"disabled\\\",\\\"selected\\\",\\\"loading\\\",\\\"center\\\",\\\"locale\\\",\\\"actions\\\"],[[32,1,[\\\"uniqueId\\\"]],[32,2,[\\\"uniqueId\\\"]],[32,1,[\\\"isOpen\\\"]],[32,1,[\\\"disabled\\\"]],[32,2,[\\\"selected\\\"]],[32,2,[\\\"loading\\\"]],[32,2,[\\\"center\\\"]],[32,2,[\\\"locale\\\"]],[30,[36,2],[[32,1,[\\\"actions\\\"]],[32,2,[\\\"actions\\\"]]],null]]]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[18,4,[[30,[36,2],[[32,3],[30,[36,1],null,[[\\\"Trigger\\\",\\\"Content\\\",\\\"Nav\\\",\\\"Days\\\"],[[30,[36,0],[[32,1,[\\\"Trigger\\\"]]],[[\\\"dropdown\\\",\\\"defaultClass\\\"],[[32,3],\\\"ember-power-datepicker-trigger\\\"]]],[30,[36,0],[[32,1,[\\\"Content\\\"]]],[[\\\"dropdown\\\",\\\"defaultClass\\\"],[[32,3],\\\"ember-power-datepicker-content\\\"]]],[30,[36,0],[[32,2,[\\\"Nav\\\"]]],[[\\\"calendar\\\"],[[32,3]]]],[30,[36,0],[[32,2,[\\\"Days\\\"]]],[[\\\"calendar\\\"],[[32,3]]]]]]]],null]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]}]]],[2,\\\"  \\\"]],\\\"parameters\\\":[2]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"component\\\",\\\"hash\\\",\\\"assign\\\",\\\"with\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-datepicker/templates/components/power-datepicker.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-power-datepicker/utils/computed-properties\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.fallbackAction = fallbackAction;\n\n  function fallbackAction(fallback) {\n    return Ember.computed({\n      get() {\n        return fallback.bind(this);\n      },\n\n      set(_, v) {\n        return v === undefined ? fallback.bind(this) : v;\n      }\n\n    });\n  }\n});","define(\"ember-power-select/components/power-select-multiple\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _class;\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\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <PowerSelect\n    @animationEnabled={{@animationEnabled}}\n    @triggerRole={{@triggerRole}}\n    @ariaDescribedBy={{@ariaDescribedBy}}\n    @ariaInvalid={{@ariaInvalid}}\n    @ariaLabel={{@ariaLabel}}\n    @ariaLabelledBy={{@ariaLabelledBy}}\n    @afterOptionsComponent={{@afterOptionsComponent}}\n    @allowClear={{@allowClear}}\n    @beforeOptionsComponent={{or @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={{@groupComponent}}\n    @horizontalPosition={{@horizontalPosition}}\n    @initiallyOpened={{@initiallyOpened}}\n    @loadingMessage={{@loadingMessage}}\n    @matcher={{@matcher}}\n    @matchTriggerWidth={{@matchTriggerWidth}}\n    @noMatchesMessage={{@noMatchesMessage}}\n    @noMatchesMessageComponent={{@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={{@optionsComponent}}\n    @placeholder={{@placeholder}}\n    @placeholderComponent={{@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    @searchPlaceholder={{@searchPlaceholder}}\n    @selected={{@selected}}\n    @selectedItemComponent={{@selectedItemComponent}}\n    @eventType={{@eventType}}\n    @title={{@title}}\n    @triggerClass=\"ember-power-select-multiple-trigger {{@triggerClass}}\"\n    @triggerComponent={{component (or @triggerComponent \"power-select-multiple/trigger\") tabindex=@tabindex}}\n    @triggerId={{@triggerId}}\n    @verticalPosition={{@verticalPosition}}\n    @tabindex={{this.computedTabIndex}}\n    @ebdTriggerComponent={{@ebdTriggerComponent}}\n    @ebdContentComponent={{@ebdContentComponent}}\n    ...attributes as |option select|>\n    {{yield option select}}\n  </PowerSelect>\n  \n  */\n  {\n    \"id\": \"5hdPffrc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\",\\\"select\\\",\\\"@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\\\",\\\"@searchPlaceholder\\\",\\\"@selected\\\",\\\"@selectedItemComponent\\\",\\\"@eventType\\\",\\\"@title\\\",\\\"@triggerClass\\\",\\\"@tabindex\\\",\\\"@triggerComponent\\\",\\\"@triggerId\\\",\\\"@verticalPosition\\\",\\\"@ebdTriggerComponent\\\",\\\"@ebdContentComponent\\\",\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[8,\\\"power-select\\\",[[17,57]],[[\\\"@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\\\",\\\"@searchPlaceholder\\\",\\\"@selected\\\",\\\"@selectedItemComponent\\\",\\\"@eventType\\\",\\\"@title\\\",\\\"@triggerClass\\\",\\\"@triggerComponent\\\",\\\"@triggerId\\\",\\\"@verticalPosition\\\",\\\"@tabindex\\\",\\\"@ebdTriggerComponent\\\",\\\"@ebdContentComponent\\\"],[[32,3],[32,4],[32,5],[32,6],[32,7],[32,8],[32,9],[32,10],[30,[36,0],[[32,11],null],null],[30,[36,0],[[32,12],[32,0,[\\\"defaultBuildSelection\\\"]]],null],[32,13],[32,14],[32,15],[32,16],[32,17],[32,18],[32,19],[32,20],[32,21],[32,22],[32,23],[32,24],[32,25],[32,26],[32,27],[32,28],[32,29],[32,30],[32,0,[\\\"handleFocus\\\"]],[32,31],[32,0,[\\\"handleKeydown\\\"]],[32,0,[\\\"handleOpen\\\"]],[32,32],[32,33],[32,34],[32,35],[32,36],[32,37],[32,38],[32,39],[32,40],[32,41],[32,42],[32,43],[32,44],[32,45],[32,46],[32,47],[32,48],[32,49],[31,[\\\"ember-power-select-multiple-trigger \\\",[32,50]]],[30,[36,1],[[30,[36,0],[[32,52],\\\"power-select-multiple/trigger\\\"],null]],[[\\\"tabindex\\\"],[[32,51]]]],[32,53],[32,54],[32,0,[\\\"computedTabIndex\\\"]],[32,55],[32,56]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n  \\\"],[18,58,[[32,1],[32,2]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]}]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"or\\\",\\\"component\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select-multiple.hbs\"\n    }\n  });\n\n  let PowerSelectMultiple = (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, (_class = class PowerSelectMultiple extends _component.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    } // Actions\n\n\n    handleOpen(select, e) {\n      if (this.args.onOpen && this.args.onOpen(select, e) === false) {\n        return false;\n      }\n\n      this.focusInput(select);\n    }\n\n    handleFocus(select, e) {\n      if (this.args.onFocus) {\n        this.args.onFocus(select, e);\n      }\n\n      this.focusInput(select);\n    }\n\n    handleKeydown(select, e) {\n      if (this.args.onKeydown && this.args.onKeydown(select, e) === false) {\n        e.stopPropagation();\n        return false;\n      }\n\n      if (e.keyCode === 13 && select.isOpen) {\n        e.stopPropagation();\n\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\n    defaultBuildSelection(option, select) {\n      let newSelection = (select.selected || []).slice(0);\n      let idx = -1;\n\n      for (let i = 0; i < newSelection.length; i++) {\n        if (Ember.isEqual(newSelection[i], option)) {\n          idx = i;\n          break;\n        }\n      }\n\n      if (idx > -1) {\n        newSelection.splice(idx, 1);\n      } else {\n        newSelection.push(option);\n      }\n\n      return newSelection;\n    }\n\n    focusInput(select) {\n      if (select) {\n        let input = document.querySelector(`#ember-power-select-trigger-multiple-input-${select.uniqueId}`);\n\n        if (input) {\n          input.focus();\n        }\n      }\n    }\n\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleOpen\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"handleOpen\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocus\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeydown\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeydown\"), _class.prototype)), _class));\n  _exports.default = PowerSelectMultiple;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, PowerSelectMultiple);\n});","define(\"ember-power-select/components/power-select-multiple/trigger\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <ul\n    id=\"ember-power-select-multiple-options-{{@select.uniqueId}}\"\n    class=\"ember-power-select-multiple-options\"\n    role=\"button\"\n    {{did-update this.openChanged @select.isOpen}}\n    {{on \"touchstart\" this.chooseOption}}\n    {{on \"mousedown\" this.chooseOption}}\n    ...attributes>\n    {{#each @select.selected as |opt idx|}}\n      <li class=\"ember-power-select-multiple-option {{if opt.disabled \"ember-power-select-multiple-option--disabled\"}}\">\n        {{#unless @select.disabled}}\n          <span\n            {{! template-lint-disable \"no-nested-interactive\" }}\n            role=\"button\"\n            aria-label=\"remove element\"\n            class=\"ember-power-select-multiple-remove-btn\"\n            data-selected-index={{idx}}>\n            &times;\n          </span>\n        {{/unless}}\n        {{#if @selectedItemComponent}}\n          {{component @selectedItemComponent extra=@extra option=opt select=@select}}\n        {{else}}\n          {{yield opt @select}}\n        {{/if}}\n      </li>\n    {{else}}\n      {{#if (and @placeholder (not @searchEnabled))}}\n        <span class=\"ember-power-select-placeholder\">{{@placeholder}}</span>\n      {{/if}}\n    {{/each}}\n    {{#if @searchEnabled}}\n      <input\n        {{! template-lint-disable \"no-nested-interactive\" }}\n        type=\"search\"\n        class=\"ember-power-select-trigger-multiple-input\"\n        autocomplete=\"off\"\n        autocorrect=\"off\"\n        autocapitalize=\"off\"\n        spellcheck={{false}}\n        id=\"ember-power-select-trigger-multiple-input-{{@select.uniqueId}}\"\n        value={{@select.searchText}}\n        aria-controls={{@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    {{/if}}\n  </ul>\n  <span class=\"ember-power-select-status-icon\"></span>\n  \n  */\n  {\n    \"id\": \"7bcB8azz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"opt\\\",\\\"idx\\\",\\\"@select\\\",\\\"@listboxId\\\",\\\"@tabindex\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"&default\\\",\\\"@extra\\\",\\\"@selectedItemComponent\\\",\\\"&attrs\\\"],\\\"statements\\\":[[11,\\\"ul\\\"],[16,1,[31,[\\\"ember-power-select-multiple-options-\\\",[32,3,[\\\"uniqueId\\\"]]]]],[24,0,\\\"ember-power-select-multiple-options\\\"],[24,\\\"role\\\",\\\"button\\\"],[17,13],[4,[38,7],[[32,0,[\\\"openChanged\\\"]],[32,3,[\\\"isOpen\\\"]]],null],[4,[38,0],[\\\"touchstart\\\",[32,0,[\\\"chooseOption\\\"]]],null],[4,[38,0],[\\\"mousedown\\\",[32,0,[\\\"chooseOption\\\"]]],null],[12],[2,\\\"\\\\n\\\"],[6,[37,9],[[30,[36,8],[[30,[36,8],[[32,3,[\\\"selected\\\"]]],null]],null]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"li\\\"],[15,0,[31,[\\\"ember-power-select-multiple-option \\\",[30,[36,4],[[32,1,[\\\"disabled\\\"]],\\\"ember-power-select-multiple-option--disabled\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,6],[[32,3,[\\\"disabled\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"span\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"remove element\\\"],[14,0,\\\"ember-power-select-multiple-remove-btn\\\"],[15,\\\"data-selected-index\\\",[32,2]],[12],[2,\\\"\\\\n          ×\\\\n        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,4],[[32,12]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[1,[30,[36,5],[[32,12]],[[\\\"extra\\\",\\\"option\\\",\\\"select\\\"],[[32,11],[32,1],[32,3]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[18,10,[[32,1],[32,3]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},{\\\"statements\\\":[[6,[37,4],[[30,[36,3],[[32,8],[30,[36,2],[[32,9]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[10,\\\"span\\\"],[14,0,\\\"ember-power-select-placeholder\\\"],[12],[1,[32,8]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[6,[37,4],[[32,9]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[11,\\\"input\\\"],[24,0,\\\"ember-power-select-trigger-multiple-input\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,\\\"autocorrect\\\",\\\"off\\\"],[24,\\\"autocapitalize\\\",\\\"off\\\"],[16,\\\"spellcheck\\\",false],[16,1,[31,[\\\"ember-power-select-trigger-multiple-input-\\\",[32,3,[\\\"uniqueId\\\"]]]]],[16,2,[32,3,[\\\"searchText\\\"]]],[16,\\\"aria-controls\\\",[32,4]],[16,5,[32,0,[\\\"triggerMultipleInputStyle\\\"]]],[16,\\\"placeholder\\\",[32,0,[\\\"maybePlaceholder\\\"]]],[16,\\\"disabled\\\",[32,3,[\\\"disabled\\\"]]],[16,\\\"tabindex\\\",[32,5]],[24,\\\"form\\\",\\\"power-select-fake-form\\\"],[24,4,\\\"search\\\"],[4,[38,0],[\\\"focus\\\",[32,6]],null],[4,[38,0],[\\\"blur\\\",[32,7]],null],[4,[38,0],[\\\"input\\\",[32,0,[\\\"handleInput\\\"]]],null],[4,[38,0],[\\\"keydown\\\",[32,0,[\\\"handleKeydown\\\"]]],null],[4,[38,1],[[32,0,[\\\"storeInputStyles\\\"]]],null],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n\\\"],[10,\\\"span\\\"],[14,0,\\\"ember-power-select-status-icon\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"on\\\",\\\"did-insert\\\",\\\"not\\\",\\\"and\\\",\\\"if\\\",\\\"component\\\",\\\"unless\\\",\\\"did-update\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select-multiple/trigger.hbs\"\n    }\n  });\n\n  const isIndexAccesible = target => {\n    return typeof target.objectAt === 'function';\n  };\n\n  const ua = window && window.navigator ? window.navigator.userAgent : '';\n  const isIE = ua.indexOf('MSIE ') > -1 || ua.indexOf('Trident/') > -1;\n  let Trigger = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, (_class = class Trigger extends _component.default {\n    constructor() {\n      super(...arguments);\n\n      _defineProperty(this, \"inputFont\", void 0);\n\n      _defineProperty(this, \"_lastIsOpen\", this.args.select.isOpen);\n\n      _initializerDefineProperty(this, \"textMeasurer\", _descriptor, this);\n    }\n\n    // Properties\n    get triggerMultipleInputStyle() {\n      Ember.run.scheduleOnce('actions', null, this.args.select.actions.reposition);\n\n      if (!this.args.select.selected || Ember.get(this.args.select.selected, 'length') === 0) {\n        return Ember.String.htmlSafe('width: 100%;');\n      } else {\n        let textWidth = 0;\n\n        if (this.inputFont) {\n          textWidth = this.textMeasurer.width(this.args.select.searchText, this.inputFont);\n        }\n\n        return Ember.String.htmlSafe(`width: ${textWidth + 25}px`);\n      }\n    }\n\n    get maybePlaceholder() {\n      if (isIE) {\n        return undefined;\n      }\n\n      return !this.args.select.selected || Ember.get(this.args.select.selected, 'length') === 0 ? this.args.placeholder || '' : '';\n    } // Actions\n\n\n    openChanged(_el, _ref2) {\n      let [isOpen] = _ref2;\n\n      if (isOpen === false && this._lastIsOpen === true) {\n        Ember.run.scheduleOnce('actions', null, this.args.select.actions.search, '');\n      }\n\n      this._lastIsOpen = isOpen;\n    }\n\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\n    chooseOption(e) {\n      if (e.target === null) return;\n      let selectedIndex = e.target.getAttribute('data-selected-index');\n\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\n    handleInput(e) {\n      if (this.args.onInput && this.args.onInput(e) === false) {\n        return;\n      }\n\n      this.args.select.actions.open(e);\n    }\n\n    handleKeydown(e) {\n      if (e.target === null) return;\n\n      if (this.args.onKeydown && this.args.onKeydown(e) === false) {\n        e.stopPropagation();\n        return false;\n      }\n\n      if (e.keyCode === 8) {\n        e.stopPropagation();\n\n        if (Ember.isBlank(e.target.value)) {\n          let lastSelection = this.args.select.selected[this.args.select.selected.length - 1];\n\n          if (lastSelection) {\n            this.args.select.actions.select(this.args.buildSelection(lastSelection, this.args.select), e);\n\n            if (typeof lastSelection === 'string') {\n              this.args.select.actions.search(lastSelection);\n            } else {\n              (true && !(this.args.searchField) && Ember.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(Ember.get(lastSelection, this.args.searchField));\n            }\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\n    selectedObject(list, index) {\n      if (isIndexAccesible(list)) {\n        return list.objectAt(index);\n      } else {\n        return Ember.get(list, index);\n      }\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"textMeasurer\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openChanged\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"openChanged\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"storeInputStyles\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"storeInputStyles\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"chooseOption\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"chooseOption\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeydown\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeydown\"), _class.prototype)), _class));\n  _exports.default = Trigger;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Trigger);\n});","define(\"ember-power-select/components/power-select\", [\"exports\", \"@glimmer/component\", \"ember-power-select/utils/group-utils\", \"ember-concurrency-decorators\", \"ember-concurrency\"], function (_exports, _component, _groupUtils, _emberConcurrencyDecorators, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\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={{@ebdTriggerComponent}}\n    @contentComponent={{@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-describedby={{@ariaDescribedBy}}\n        aria-invalid={{@ariaInvalid}}\n        aria-label={{@ariaLabel}}\n        aria-labelledby={{@ariaLabelledBy}}\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 (component (or @triggerComponent \"power-select/trigger\")) as |Trigger|}}\n          <Trigger\n            @allowClear={{@allowClear}}\n            @buildSelection={{@buildSelection}}\n            @loadingMessage={{or @loadingMessage \"Loading options...\"}}\n            @selectedItemComponent={{@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={{this.placeholderComponent}}\n            as |opt term|>\n            {{yield opt term}}\n          </Trigger>\n        {{/let}}\n      </dropdown.Trigger>\n      <dropdown.Content class=\"ember-power-select-dropdown{{if publicAPI.isActive \" ember-power-select-dropdown--active\"}} {{@dropdownClass}}\">\n        {{#let (component (if (eq @beforeOptionsComponent undefined) \"power-select/before-options\" @beforeOptionsComponent)) 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={{this.placeholderComponent}}\n            @extra={{@extra}}\n            @listboxId={{listboxId}}\n            @selectedItemComponent={{@selectedItemComponent}}\n            @searchPlaceholder={{@searchPlaceholder}}\n            />\n        {{/let}}\n        {{#if this.mustShowSearchMessage}}\n          {{#let (component (or @searchMessageComponent \"power-select/search-message\")) as |SearchMessage|}}\n            <SearchMessage @searchMessage={{this.searchMessage}} @select={{publicAPI}}/>\n          {{/let}}\n        {{else if this.mustShowNoMessages}}\n          {{#let (component (or @noMatchesMessageComponent \"power-select/no-matches-message\")) as |NoMatchesMessage|}}\n            <NoMatchesMessage @noMatchesMessage={{this.noMatchesMessage}} @select={{publicAPI}} />\n          {{/let}}\n        {{else}}\n          {{#let (component (or @optionsComponent \"power-select/options\")) as |Options|}}\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={{or @groupComponent \"power-select/power-select-group\"}}\n              id={{listboxId}}\n              class=\"ember-power-select-options\" as |option select|>\n              {{yield option select}}\n            </Options>\n          {{/let}}\n        {{/if}}\n        {{#let (component @afterOptionsComponent) as |AfterOptions|}}\n          <AfterOptions\n            @extra={{@extra}}\n            @select={{publicAPI}}\n          />\n        {{/let}}\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\": \"jJ4h4FWE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"dropdown\\\",\\\"publicAPI\\\",\\\"listboxId\\\",\\\"AfterOptions\\\",\\\"Options\\\",\\\"option\\\",\\\"select\\\",\\\"NoMatchesMessage\\\",\\\"SearchMessage\\\",\\\"BeforeOptions\\\",\\\"Trigger\\\",\\\"opt\\\",\\\"term\\\",\\\"@extra\\\",\\\"@loadingMessage\\\",\\\"@groupComponent\\\",\\\"&default\\\",\\\"@optionsComponent\\\",\\\"@noMatchesMessageComponent\\\",\\\"@searchMessageComponent\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@selectedItemComponent\\\",\\\"@searchPlaceholder\\\",\\\"@allowClear\\\",\\\"@buildSelection\\\",\\\"@searchField\\\",\\\"@eventType\\\",\\\"@triggerClass\\\",\\\"@ariaDescribedBy\\\",\\\"@ariaInvalid\\\",\\\"@ariaLabel\\\",\\\"@ariaLabelledBy\\\",\\\"@required\\\",\\\"@triggerRole\\\",\\\"@title\\\",\\\"@triggerId\\\",\\\"@tabindex\\\",\\\"@disabled\\\",\\\"&attrs\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@triggerComponent\\\",\\\"@dropdownClass\\\",\\\"@beforeOptionsComponent\\\",\\\"@afterOptionsComponent\\\",\\\"@horizontalPosition\\\",\\\"@destination\\\",\\\"@initiallyOpened\\\",\\\"@preventScroll\\\",\\\"@renderInPlace\\\",\\\"@verticalPosition\\\",\\\"@calculatePosition\\\",\\\"@ebdTriggerComponent\\\",\\\"@ebdContentComponent\\\"],\\\"statements\\\":[[8,\\\"basic-dropdown\\\",[],[[\\\"@horizontalPosition\\\",\\\"@destination\\\",\\\"@initiallyOpened\\\",\\\"@matchTriggerWidth\\\",\\\"@preventScroll\\\",\\\"@onClose\\\",\\\"@onOpen\\\",\\\"@renderInPlace\\\",\\\"@verticalPosition\\\",\\\"@disabled\\\",\\\"@calculatePosition\\\",\\\"@triggerComponent\\\",\\\"@contentComponent\\\"],[[32,47],[32,48],[32,49],[32,0,[\\\"matchTriggerWidth\\\"]],[30,[36,0],[[32,50],false],null],[32,0,[\\\"handleClose\\\"]],[32,0,[\\\"handleOpen\\\"]],[32,51],[32,52],[32,39],[32,53],[32,54],[32,55]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,2],[[30,[36,11],[[32,1],[30,[36,12],null,[[\\\"selected\\\",\\\"highlighted\\\",\\\"options\\\",\\\"results\\\",\\\"resultsCount\\\",\\\"loading\\\",\\\"isActive\\\",\\\"searchText\\\",\\\"lastSearchedText\\\",\\\"actions\\\"],[[32,0,[\\\"selected\\\"]],[32,0,[\\\"highlighted\\\"]],[32,0,[\\\"options\\\"]],[32,0,[\\\"results\\\"]],[32,0,[\\\"resultsCount\\\"]],[32,0,[\\\"loading\\\"]],[32,0,[\\\"isActive\\\"]],[32,0,[\\\"searchText\\\"]],[32,0,[\\\"lastSearchedText\\\"]],[30,[36,11],[[32,1,[\\\"actions\\\"]],[32,0,[\\\"_publicAPIActions\\\"]]],null]]]]],null],[30,[36,10],[\\\"ember-power-select-options-\\\",[32,1,[\\\"uniqueId\\\"]]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[8,[32,1,[\\\"Trigger\\\"]],[[16,0,[31,[\\\"ember-power-select-trigger \\\",[32,29],[30,[36,3],[[32,2,[\\\"isActive\\\"]],\\\" ember-power-select-trigger--active\\\"],null]]]],[16,\\\"aria-describedby\\\",[32,30]],[16,\\\"aria-invalid\\\",[32,31]],[16,\\\"aria-label\\\",[32,32]],[16,\\\"aria-labelledby\\\",[32,33]],[16,\\\"aria-required\\\",[32,34]],[16,\\\"role\\\",[30,[36,0],[[32,35],\\\"button\\\"],null]],[16,\\\"title\\\",[32,36]],[16,1,[32,37]],[16,\\\"tabindex\\\",[30,[36,5],[[30,[36,4],[[32,39]],null],[30,[36,0],[[32,38],\\\"0\\\"],null]],null]],[17,40],[4,[38,6],[[32,0,[\\\"_updateOptions\\\"]],[32,41]],null],[4,[38,7],[[32,0,[\\\"_updateOptions\\\"]],[32,41]],null],[4,[38,6],[[32,0,[\\\"_updateSelected\\\"]],[32,42]],null],[4,[38,7],[[32,0,[\\\"_updateSelected\\\"]],[32,42]],null],[4,[38,6],[[32,0,[\\\"_registerAPI\\\"]],[32,2]],null],[4,[38,7],[[32,0,[\\\"_registerAPI\\\"]],[32,2]],null],[4,[38,7],[[32,0,[\\\"_performSearch\\\"]],[32,0,[\\\"searchText\\\"]]],null],[4,[38,8],[\\\"keydown\\\",[32,0,[\\\"handleTriggerKeydown\\\"]]],null],[4,[38,8],[\\\"focus\\\",[32,0,[\\\"handleFocus\\\"]]],null],[4,[38,8],[\\\"blur\\\",[32,0,[\\\"handleBlur\\\"]]],null]],[[\\\"@eventType\\\"],[[30,[36,0],[[32,28],\\\"mousedown\\\"],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,2],[[30,[36,1],[[30,[36,0],[[32,43],\\\"power-select/trigger\\\"],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,[32,11],[],[[\\\"@allowClear\\\",\\\"@buildSelection\\\",\\\"@loadingMessage\\\",\\\"@selectedItemComponent\\\",\\\"@select\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@extra\\\",\\\"@listboxId\\\",\\\"@onInput\\\",\\\"@onKeydown\\\",\\\"@placeholder\\\",\\\"@placeholderComponent\\\"],[[32,25],[32,26],[30,[36,0],[[32,15],\\\"Loading options...\\\"],null],[32,23],[32,2],[32,21],[32,27],[32,0,[\\\"handleFocus\\\"]],[32,0,[\\\"handleBlur\\\"]],[32,14],[32,3],[32,0,[\\\"handleInput\\\"]],[32,0,[\\\"handleKeydown\\\"]],[32,22],[32,0,[\\\"placeholderComponent\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n          \\\"],[18,17,[[32,12],[32,13]]],[2,\\\"\\\\n        \\\"]],\\\"parameters\\\":[12,13]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[11]}]]],[2,\\\"    \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n    \\\"],[8,[32,1,[\\\"Content\\\"]],[[16,0,[31,[\\\"ember-power-select-dropdown\\\",[30,[36,3],[[32,2,[\\\"isActive\\\"]],\\\" ember-power-select-dropdown--active\\\"],null],\\\" \\\",[32,44]]]]],[[],[]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,2],[[30,[36,1],[[30,[36,3],[[30,[36,9],[[32,45],[29]],null],\\\"power-select/before-options\\\",[32,45]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,[32,10],[],[[\\\"@select\\\",\\\"@searchEnabled\\\",\\\"@onInput\\\",\\\"@onKeydown\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@placeholder\\\",\\\"@placeholderComponent\\\",\\\"@extra\\\",\\\"@listboxId\\\",\\\"@selectedItemComponent\\\",\\\"@searchPlaceholder\\\"],[[32,2],[32,21],[32,0,[\\\"handleInput\\\"]],[32,0,[\\\"handleKeydown\\\"]],[32,0,[\\\"handleFocus\\\"]],[32,0,[\\\"handleBlur\\\"]],[32,22],[32,0,[\\\"placeholderComponent\\\"]],[32,14],[32,3],[32,23],[32,24]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]}]]],[6,[37,3],[[32,0,[\\\"mustShowSearchMessage\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,2],[[30,[36,1],[[30,[36,0],[[32,20],\\\"power-select/search-message\\\"],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"          \\\"],[8,[32,9],[],[[\\\"@searchMessage\\\",\\\"@select\\\"],[[32,0,[\\\"searchMessage\\\"]],[32,2]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,3],[[32,0,[\\\"mustShowNoMessages\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,2],[[30,[36,1],[[30,[36,0],[[32,19],\\\"power-select/no-matches-message\\\"],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"          \\\"],[8,[32,8],[],[[\\\"@noMatchesMessage\\\",\\\"@select\\\"],[[32,0,[\\\"noMatchesMessage\\\"]],[32,2]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,2],[[30,[36,1],[[30,[36,0],[[32,18],\\\"power-select/options\\\"],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"          \\\"],[8,[32,5],[[16,1,[32,3]],[24,0,\\\"ember-power-select-options\\\"]],[[\\\"@loadingMessage\\\",\\\"@select\\\",\\\"@options\\\",\\\"@groupIndex\\\",\\\"@optionsComponent\\\",\\\"@extra\\\",\\\"@highlightOnHover\\\",\\\"@groupComponent\\\"],[[30,[36,0],[[32,15],\\\"Loading options...\\\"],null],[32,2],[32,2,[\\\"results\\\"]],\\\"\\\",[32,5],[32,14],[32,0,[\\\"highlightOnHover\\\"]],[30,[36,0],[[32,16],\\\"power-select/power-select-group\\\"],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n            \\\"],[18,17,[[32,6],[32,7]]],[2,\\\"\\\\n          \\\"]],\\\"parameters\\\":[6,7]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]}]]],[2,\\\"      \\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[6,[37,2],[[30,[36,1],[[32,46]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,[32,4],[],[[\\\"@extra\\\",\\\"@select\\\"],[[32,14],[32,2]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]}]]],[2,\\\"    \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]}]]]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"or\\\",\\\"component\\\",\\\"let\\\",\\\"if\\\",\\\"not\\\",\\\"and\\\",\\\"did-insert\\\",\\\"did-update\\\",\\\"on\\\",\\\"eq\\\",\\\"concat\\\",\\\"assign\\\",\\\"hash\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select.hbs\"\n    }\n  });\n\n  const isArrayable = coll => {\n    return typeof coll.toArray === 'function';\n  };\n\n  const isPromiseLike = thing => {\n    return typeof thing.then === 'function';\n  };\n\n  const isPromiseProxyLike = thing => {\n    return isPromiseLike(thing) && Object.hasOwnProperty.call(thing, 'content');\n  };\n\n  const isCancellablePromise = thing => {\n    return typeof thing.cancel === 'function';\n  };\n\n  let PowerSelect = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, (_class = class PowerSelect extends _component.default {\n    // Untracked properties\n    // Tracked properties\n    // Lifecycle hooks\n    constructor(owner, args) {\n      super(owner, args);\n\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\n      _initializerDefineProperty(this, \"_resolvedOptions\", _descriptor, this);\n\n      _initializerDefineProperty(this, \"_resolvedSelected\", _descriptor2, this);\n\n      _initializerDefineProperty(this, \"_repeatingChar\", _descriptor3, this);\n\n      _initializerDefineProperty(this, \"_expirableSearchText\", _descriptor4, this);\n\n      _initializerDefineProperty(this, \"_searchResult\", _descriptor5, this);\n\n      _initializerDefineProperty(this, \"isActive\", _descriptor6, this);\n\n      _initializerDefineProperty(this, \"loading\", _descriptor7, this);\n\n      _initializerDefineProperty(this, \"searchText\", _descriptor8, this);\n\n      _initializerDefineProperty(this, \"lastSearchedText\", _descriptor9, this);\n\n      _initializerDefineProperty(this, \"highlighted\", _descriptor10, this);\n\n      _defineProperty(this, \"storedAPI\", void 0);\n\n      _defineProperty(this, \"_lastOptionsPromise\", void 0);\n\n      _defineProperty(this, \"_lastSelectedPromise\", void 0);\n\n      _defineProperty(this, \"_lastSearchPromise\", void 0);\n\n      _defineProperty(this, \"_filterResultsCache\", {\n        results: [],\n        options: [],\n        searchText: this.searchText\n      });\n\n      (true && !(this.args.onChange && typeof this.args.onChange === 'function') && Ember.assert('<PowerSelect> requires an `@onChange` function', this.args.onChange && typeof this.args.onChange === 'function'));\n    }\n\n    willDestroy() {\n      if (this._lastSelectedPromise && isPromiseProxyLike(this._lastSelectedPromise)) {\n        try {\n          Ember.removeObserver(this._lastSelectedPromise, 'content', this, this._selectedObserverCallback);\n        } catch {}\n\n        this._lastSelectedPromise = undefined;\n      }\n\n      super.willDestroy.apply(this, arguments);\n    } // Getters\n\n\n    get highlightOnHover() {\n      return this.args.highlightOnHover === undefined ? true : this.args.highlightOnHover;\n    }\n\n    get placeholderComponent() {\n      return this.args.placeholderComponent || 'power-select/placeholder';\n    }\n\n    get searchMessage() {\n      return this.args.searchMessage === undefined ? 'Type to search' : this.args.searchMessage;\n    }\n\n    get noMatchesMessage() {\n      return this.args.noMatchesMessage === undefined ? 'No results found' : this.args.noMatchesMessage;\n    }\n\n    get matchTriggerWidth() {\n      return this.args.matchTriggerWidth === undefined ? true : this.args.matchTriggerWidth;\n    }\n\n    get mustShowSearchMessage() {\n      return !this.loading && this.searchText.length === 0 && !!this.args.search && !!this.searchMessage && this.resultsCount === 0;\n    }\n\n    get mustShowNoMessages() {\n      return !this.loading && this.resultsCount === 0 && (!this.args.search || this.lastSearchedText.length > 0);\n    }\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\n          let results = this._filter(this.options, this.searchText);\n\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\n    get options() {\n      if (this._resolvedOptions) return toPlainArray(this._resolvedOptions);\n\n      if (this.args.options) {\n        return toPlainArray(this.args.options);\n      } else {\n        return [];\n      }\n    }\n\n    get resultsCount() {\n      return (0, _groupUtils.countOptions)(this.results);\n    }\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\n      return undefined;\n    } // Actions\n\n\n    handleOpen(_select, e) {\n      if (this.args.onOpen && this.args.onOpen(this.storedAPI, e) === false) {\n        return false;\n      }\n\n      if (e) {\n        if (e instanceof KeyboardEvent && e.type === 'keydown' && (e.keyCode === 38 || e.keyCode === 40)) {\n          e.preventDefault();\n        }\n      }\n\n      this._resetHighlighted();\n    }\n\n    handleClose(_select, e) {\n      if (this.args.onClose && this.args.onClose(this.storedAPI, e) === false) {\n        return false;\n      }\n\n      this._highlight(undefined);\n    }\n\n    handleInput(e) {\n      if (e.target === null) return;\n      let term = e.target.value;\n      let correctedTerm;\n\n      if (this.args.onInput) {\n        correctedTerm = this.args.onInput(term, this.storedAPI, e);\n\n        if (correctedTerm === false) {\n          return;\n        }\n      }\n\n      this._publicAPIActions.search(typeof correctedTerm === 'string' ? correctedTerm : term);\n    }\n\n    handleKeydown(e) {\n      if (this.args.onKeydown && this.args.onKeydown(this.storedAPI, e) === false) {\n        return false;\n      }\n\n      return this._routeKeydown(this.storedAPI, e);\n    }\n\n    handleTriggerKeydown(e) {\n      if (this.args.onKeydown && this.args.onKeydown(this.storedAPI, e) === false) {\n        e.stopImmediatePropagation();\n        return;\n      }\n\n      if (e.ctrlKey || e.metaKey) {\n        e.stopImmediatePropagation();\n        return;\n      }\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\n    handleFocus(event) {\n      if (!this.isDestroying) {\n        Ember.run.scheduleOnce('actions', this, this._updateIsActive, true);\n      }\n\n      if (this.args.onFocus) {\n        this.args.onFocus(this.storedAPI, event);\n      }\n    }\n\n    handleBlur(event) {\n      if (!this.isDestroying) {\n        Ember.run.scheduleOnce('actions', this, this._updateIsActive, false);\n      }\n\n      if (this.args.onBlur) {\n        this.args.onBlur(this.storedAPI, event);\n      }\n    } // Methods\n\n\n    _search(term) {\n      if (this.searchText === term) return;\n      this.searchText = term;\n\n      if (!this.args.search) {\n        this.lastSearchedText = term;\n\n        this._resetHighlighted();\n      }\n    }\n\n    _updateOptions() {\n      if (!this.args.options) return;\n\n      if (isPromiseLike(this.args.options)) {\n        if (this._lastOptionsPromise === this.args.options) return; // promise is still the same\n\n        let currentOptionsPromise = this.args.options;\n        this._lastOptionsPromise = currentOptionsPromise;\n        this.loading = true;\n\n        this._lastOptionsPromise.then(resolvedOptions => {\n          if (this._lastOptionsPromise === currentOptionsPromise) {\n            this.loading = false;\n            this._resolvedOptions = resolvedOptions;\n\n            this._resetHighlighted();\n          }\n        }).catch(() => {\n          if (this._lastOptionsPromise === currentOptionsPromise) {\n            this.loading = false;\n          }\n        });\n      } else {\n        Ember.run.scheduleOnce('actions', this, this._resetHighlighted);\n      }\n    }\n\n    _updateHighlighted() {\n      if (this.storedAPI.isOpen) {\n        this._resetHighlighted();\n      }\n    }\n\n    _updateSelected() {\n      if (!this.args.selected) return;\n\n      if (typeof this.args.selected.then === 'function') {\n        if (this._lastSelectedPromise === this.args.selected) return; // promise is still the same\n\n        if (this._lastSelectedPromise && isPromiseProxyLike(this._lastSelectedPromise)) {\n          Ember.removeObserver(this._lastSelectedPromise, 'content', this, this._selectedObserverCallback);\n        }\n\n        let currentSelectedPromise = this.args.selected;\n        currentSelectedPromise.then(() => {\n          if (this.isDestroyed || this.isDestroying) return;\n\n          if (isPromiseProxyLike(currentSelectedPromise)) {\n            Ember.addObserver(currentSelectedPromise, 'content', this, this._selectedObserverCallback);\n          }\n        });\n        this._lastSelectedPromise = currentSelectedPromise;\n\n        this._lastSelectedPromise.then(resolvedSelected => {\n          if (this._lastSelectedPromise === currentSelectedPromise) {\n            this._resolvedSelected = resolvedSelected;\n\n            this._highlight(resolvedSelected);\n          }\n        });\n      } else {\n        this._resolvedSelected = undefined; // Don't highlight args.selected array on multi-select\n\n        if (!Array.isArray(this.args.selected)) {\n          this._highlight(this.args.selected);\n        }\n      }\n    }\n\n    _selectedObserverCallback() {\n      this._resolvedSelected = this._lastSelectedPromise;\n\n      this._highlight(this._resolvedSelected);\n    }\n\n    _highlight(opt) {\n      if (opt && Ember.get(opt, 'disabled')) {\n        return;\n      }\n\n      this.highlighted = opt;\n    }\n\n    _select(selected, e) {\n      if (!Ember.isEqual(this.storedAPI.selected, selected)) {\n        this.args.onChange(selected, this.storedAPI, e);\n      }\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\n      if (this.args.closeOnSelect !== false) {\n        this.storedAPI.actions.close(e); // return false;\n      }\n    }\n\n    _scrollTo(option) {\n      let select = this.storedAPI;\n\n      if (!document || !option) {\n        return;\n      }\n\n      if (this.args.scrollTo) {\n        return this.args.scrollTo(option, select);\n      }\n\n      let optionsList = document.querySelector(`[aria-controls=\"ember-power-select-trigger-${select.uniqueId}\"]`);\n\n      if (!optionsList) {\n        return;\n      }\n\n      let index = (0, _groupUtils.indexOfOption)(select.results, option);\n\n      if (index === -1) {\n        return;\n      }\n\n      let optionElement = optionsList.querySelectorAll('[data-option-index]').item(index);\n\n      if (!optionElement) {\n        return;\n      }\n\n      let optionTopScroll = optionElement.offsetTop - optionsList.offsetTop;\n      let optionBottomScroll = optionTopScroll + optionElement.offsetHeight;\n\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\n    _registerAPI(_, _ref2) {\n      let [publicAPI] = _ref2;\n      this.storedAPI = publicAPI;\n\n      if (this.args.registerAPI) {\n        Ember.run.scheduleOnce('actions', null, this.args.registerAPI, publicAPI);\n      }\n    }\n\n    _performSearch(_, _ref3) {\n      let [term] = _ref3;\n      if (!this.args.search) return;\n\n      if (term === '') {\n        this.loading = false;\n        this.lastSearchedText = term;\n\n        if (this._lastSearchPromise !== undefined) {\n          if (isCancellablePromise(this._lastSearchPromise)) {\n            this._lastSearchPromise.cancel(); // Cancel ember-concurrency tasks\n\n          }\n\n          this._lastSearchPromise = undefined;\n        }\n\n        return;\n      }\n\n      let searchResult = this.args.search(term, this.storedAPI);\n\n      if (searchResult && isPromiseLike(searchResult)) {\n        this.loading = true;\n\n        if (this._lastSearchPromise !== undefined && isCancellablePromise(this._lastSearchPromise)) {\n          this._lastSearchPromise.cancel(); // Cancel ember-concurrency tasks\n\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            Ember.run.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        Ember.run.scheduleOnce('actions', this, this._resetHighlighted);\n      }\n    }\n\n    _defaultBuildSelection(option) {\n      return option;\n    }\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\n    _handleKeyTab(select, e) {\n      select.actions.close(e);\n    }\n\n    _handleKeyESC(select, e) {\n      select.actions.close(e);\n    }\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\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\n        select.actions.choose(select.highlighted, e);\n      }\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\n    _resetHighlighted() {\n      let highlighted;\n      let defHighlighted = this.args.defaultHighlighted || _groupUtils.defaultHighlighted;\n\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\n      this._highlight(highlighted);\n    }\n\n    _filter(options, term) {\n      let skipDisabled = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 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\n    _updateIsActive(value) {\n      this.isActive = value;\n    }\n\n    findWithOffset(options, term, offset) {\n      let skipDisabled = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 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    } // Tasks\n\n\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\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; // Check if user intends to cycle through results. _repeatingChar can only be the first character.\n\n      let c = String.fromCharCode(charCode);\n\n      if (c === this._repeatingChar) {\n        term = c;\n      } else {\n        term = this._expirableSearchText + c;\n      }\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      } // When the select is open, the \"selection\" is just highlighted.\n\n\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      } // The char is always appended. That way, searching for words like \"Aaron\" will work even\n      // if \"Aa\" would cycle through the results.\n\n\n      this._expirableSearchText = this._expirableSearchText + c;\n      this._repeatingChar = repeatingChar;\n      let match = this.findWithOffset(this.storedAPI.options, term, searchStartOffset, true);\n\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\n      yield (0, _emberConcurrency.timeout)(1000);\n      this._expirableSearchText = '';\n      this._repeatingChar = '';\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_resolvedOptions\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_resolvedSelected\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_repeatingChar\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_expirableSearchText\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_searchResult\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isActive\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"loading\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"searchText\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"lastSearchedText\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"highlighted\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleOpen\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"handleOpen\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleClose\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeydown\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleTriggerKeydown\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"handleTriggerKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocus\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBlur\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBlur\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_search\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"_search\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_updateOptions\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"_updateOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_updateHighlighted\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"_updateHighlighted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_updateSelected\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"_updateSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_highlight\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"_highlight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_select\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"_select\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_choose\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"_choose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_scrollTo\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"_scrollTo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_registerAPI\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"_registerAPI\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_performSearch\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"_performSearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerTypingTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerTypingTask\"), _class.prototype)), _class));\n  _exports.default = PowerSelect;\n\n  function getOptionMatcher(matcher, defaultMatcher, searchField) {\n    if (searchField && matcher === defaultMatcher) {\n      return (option, text) => matcher(Ember.get(option, searchField), text);\n    } else {\n      return (option, text) => {\n        (true && !(matcher !== defaultMatcher || typeof option === 'string') && Ember.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\n  function isNumpadKeyEvent(e) {\n    return e.keyCode >= 96 && e.keyCode <= 105;\n  }\n\n  const toPlainArray = collection => {\n    if (isArrayable(collection)) {\n      return collection.toArray();\n    } else {\n      return collection;\n    }\n  };\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, PowerSelect);\n});","define(\"ember-power-select/components/power-select/before-options\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _class;\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\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    {{#if @searchEnabled}}\n    <div class=\"ember-power-select-search\">\n      <input type=\"search\" autocomplete=\"off\"\n        autocorrect=\"off\" autocapitalize=\"off\"\n        spellcheck={{false}} role=\"combobox\"\n        class=\"ember-power-select-search-input\"\n        value={{@select.searchText}}\n        aria-controls={{@listboxId}}\n        placeholder={{@searchPlaceholder}}\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    \"id\": \"JCvYnh3q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@select\\\",\\\"@listboxId\\\",\\\"@searchPlaceholder\\\",\\\"@onInput\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@searchEnabled\\\"],\\\"statements\\\":[[6,[37,3],[[32,7]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[10,\\\"div\\\"],[14,0,\\\"ember-power-select-search\\\"],[12],[2,\\\"\\\\n    \\\"],[11,\\\"input\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,\\\"autocorrect\\\",\\\"off\\\"],[24,\\\"autocapitalize\\\",\\\"off\\\"],[16,\\\"spellcheck\\\",false],[24,\\\"role\\\",\\\"combobox\\\"],[24,0,\\\"ember-power-select-search-input\\\"],[16,2,[32,1,[\\\"searchText\\\"]]],[16,\\\"aria-controls\\\",[32,2]],[16,\\\"placeholder\\\",[32,3]],[24,4,\\\"search\\\"],[4,[38,0],[\\\"input\\\",[32,4]],null],[4,[38,0],[\\\"focus\\\",[32,5]],null],[4,[38,0],[\\\"blur\\\",[32,6]],null],[4,[38,0],[\\\"keydown\\\",[32,0,[\\\"handleKeydown\\\"]]],null],[4,[38,1],[[32,0,[\\\"focusInput\\\"]]],null],[4,[38,2],[[32,0,[\\\"clearSearch\\\"]]],null],[12],[13],[2,\\\"\\\\n  \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"on\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select/before-options.hbs\"\n    }\n  });\n\n  let BeforeOptions = (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, (_class = class BeforeOptions extends _component.default {\n    clearSearch() {\n      Ember.run.scheduleOnce('actions', this.args.select.actions, 'search', '');\n    }\n\n    handleKeydown(e) {\n      if (this.args.onKeydown(e) === false) {\n        return false;\n      }\n\n      if (e.keyCode === 13) {\n        this.args.select.actions.close(e);\n      }\n    }\n\n    focusInput(el) {\n      Ember.run.later(() => {\n        if (this.args.autofocus !== false) {\n          el.focus();\n        }\n      }, 0);\n    }\n\n  }, (_applyDecoratedDescriptor(_class.prototype, \"clearSearch\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeydown\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusInput\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"focusInput\"), _class.prototype)), _class));\n  _exports.default = BeforeOptions;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, BeforeOptions);\n});","define(\"ember-power-select/components/power-select/no-matches-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\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\">\n        {{@noMatchesMessage}}\n      </li>\n    </ul>\n  {{/if}}\n  */\n  {\n    \"id\": \"9kdvJj2b\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@noMatchesMessage\\\"],\\\"statements\\\":[[6,[37,0],[[32,1]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[10,\\\"ul\\\"],[14,0,\\\"ember-power-select-options\\\"],[14,\\\"role\\\",\\\"listbox\\\"],[12],[2,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"ember-power-select-option ember-power-select-option--no-matches-message\\\"],[14,\\\"role\\\",\\\"option\\\"],[12],[2,\\\"\\\\n      \\\"],[1,[32,1]],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n  \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select/no-matches-message.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n  _exports.default = _default;\n});","define(\"ember-power-select/components/power-select/options\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _class;\n\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <ul role=\"listbox\" aria-controls=\"ember-power-select-trigger-{{@select.uniqueId}}\" {{did-insert this.addHandlers}} {{will-destroy this.removeHandlers}} ...attributes>\n    {{! template-lint-disable no-unnecessary-concat }}\n    {{#if @select.loading}}\n      {{#if @loadingMessage}}\n        <li class=\"ember-power-select-option ember-power-select-option--loading-message\" role=\"option\">{{@loadingMessage}}</li>\n      {{/if}}\n    {{/if}}\n    {{#let (component @groupComponent) (component @optionsComponent) 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            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={{if (eq opt @select.highlighted) \"alert\" \"option\"}}>\n            {{yield opt @select}}\n          </li>\n        {{/if}}\n      {{/each}}\n    {{/let}}\n  </ul>\n  \n  */\n  {\n    \"id\": \"PR3uZfwY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"Group\\\",\\\"Options\\\",\\\"opt\\\",\\\"index\\\",\\\"option\\\",\\\"@select\\\",\\\"@groupIndex\\\",\\\"&default\\\",\\\"@extra\\\",\\\"@optionsComponent\\\",\\\"@groupComponent\\\",\\\"@options\\\",\\\"@loadingMessage\\\",\\\"&attrs\\\"],\\\"statements\\\":[[11,\\\"ul\\\"],[24,\\\"role\\\",\\\"listbox\\\"],[16,\\\"aria-controls\\\",[31,[\\\"ember-power-select-trigger-\\\",[32,6,[\\\"uniqueId\\\"]]]]],[17,14],[4,[38,6],[[32,0,[\\\"addHandlers\\\"]]],null],[4,[38,7],[[32,0,[\\\"removeHandlers\\\"]]],null],[12],[2,\\\"\\\\n\\\"],[6,[37,1],[[32,6,[\\\"loading\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,1],[[32,13]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"ember-power-select-option ember-power-select-option--loading-message\\\"],[14,\\\"role\\\",\\\"option\\\"],[12],[1,[32,13]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[6,[37,9],[[30,[36,8],[[32,11]],null],[30,[36,8],[[32,10]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,5],[[30,[36,4],[[30,[36,4],[[32,12]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,1],[[30,[36,3],[[32,3]],null]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,[32,1],[],[[\\\"@group\\\",\\\"@select\\\",\\\"@extra\\\"],[[32,3],[32,6],[32,9]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n          \\\"],[8,[32,2],[[24,\\\"role\\\",\\\"group\\\"],[24,0,\\\"ember-power-select-options\\\"]],[[\\\"@options\\\",\\\"@select\\\",\\\"@groupIndex\\\",\\\"@optionsComponent\\\",\\\"@groupComponent\\\",\\\"@extra\\\"],[[32,3,[\\\"options\\\"]],[32,6],[31,[[32,7],[32,4],\\\".\\\"]],[32,10],[32,11],[32,9]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n            \\\"],[18,8,[[32,5],[32,6]]],[2,\\\"\\\\n          \\\"]],\\\"parameters\\\":[5]}]]],[2,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"li\\\"],[14,0,\\\"ember-power-select-option\\\"],[15,\\\"aria-selected\\\",[31,[[30,[36,0],[[32,3],[32,6,[\\\"selected\\\"]]],null]]]],[15,\\\"aria-disabled\\\",[30,[36,1],[[32,3,[\\\"disabled\\\"]],\\\"true\\\"],null]],[15,\\\"aria-current\\\",[31,[[30,[36,2],[[32,3],[32,6,[\\\"highlighted\\\"]]],null]]]],[15,\\\"data-option-index\\\",[31,[[32,7],[32,4]]]],[15,\\\"role\\\",[30,[36,1],[[30,[36,2],[[32,3],[32,6,[\\\"highlighted\\\"]]],null],\\\"alert\\\",\\\"option\\\"],null]],[12],[2,\\\"\\\\n          \\\"],[18,8,[[32,3],[32,6]]],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[3,4]}]]]],\\\"parameters\\\":[1,2]}]]],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"ember-power-select-is-selected\\\",\\\"if\\\",\\\"eq\\\",\\\"ember-power-select-is-group\\\",\\\"-track-array\\\",\\\"each\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"component\\\",\\\"let\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select/options.hbs\"\n    }\n  });\n\n  const isTouchDevice = !!window && 'ontouchstart' in window;\n\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\n      if (typeof ElementProto.closest !== 'function') {\n        ElementProto.closest = function closest(selector) {\n          let element = this;\n\n          while (element !== null && element.nodeType === 1) {\n            if (element.matches(selector)) {\n              return element;\n            }\n\n            element = element.parentNode;\n          }\n\n          return null;\n        };\n      }\n    })(window.Element.prototype);\n  }\n\n  let Options = (_dec = Ember._action, _dec2 = Ember._action, (_class = class Options extends _component.default {\n    constructor() {\n      super(...arguments);\n\n      _defineProperty(this, \"isTouchDevice\", isTouchDevice);\n\n      _defineProperty(this, \"hasMoved\", false);\n\n      _defineProperty(this, \"mouseOverHandler\", _ => {});\n\n      _defineProperty(this, \"mouseUpHandler\", _ => {});\n\n      _defineProperty(this, \"touchEndHandler\", _ => {});\n\n      _defineProperty(this, \"touchMoveHandler\", _ => {});\n\n      _defineProperty(this, \"touchStartHandler\", _ => {});\n    }\n\n    addHandlers(element) {\n      let role = element.getAttribute('role');\n\n      if (role === 'group') {\n        return;\n      }\n\n      let findOptionAndPerform = (action, e) => {\n        if (e.target === null) return;\n        let optionItem = e.target.closest('[data-option-index]');\n\n        if (!optionItem) {\n          return;\n        }\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\n      this.mouseUpHandler = e => findOptionAndPerform(this.args.select.actions.choose, e);\n\n      element.addEventListener('mouseup', this.mouseUpHandler);\n\n      if (this.args.highlightOnHover) {\n        this.mouseOverHandler = e => findOptionAndPerform(this.args.select.actions.highlight, e);\n\n        element.addEventListener('mouseover', this.mouseOverHandler);\n      }\n\n      if (this.isTouchDevice) {\n        this.touchMoveHandler = _ => {\n          this.hasMoved = true;\n\n          if (element) {\n            element.removeEventListener('touchmove', this.touchMoveHandler);\n          }\n        }; // Add touch event handlers to detect taps\n\n\n        this.touchStartHandler = _ => {\n          element.addEventListener('touchmove', this.touchMoveHandler);\n        };\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\n          if (this.hasMoved) {\n            this.hasMoved = false;\n            return;\n          }\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\n        element.addEventListener('touchstart', this.touchStartHandler);\n        element.addEventListener('touchend', this.touchEndHandler);\n      }\n\n      if (role !== 'group') {\n        this.args.select.actions.scrollTo(this.args.select.highlighted);\n      }\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\n    _optionFromIndex(index) {\n      let parts = index.split('.');\n      let option = this.args.options[parseInt(parts[0], 10)];\n\n      for (let i = 1; i < parts.length; i++) {\n        option = option.options[parseInt(parts[i], 10)];\n      }\n\n      return option;\n    }\n\n  }, (_applyDecoratedDescriptor(_class.prototype, \"addHandlers\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"addHandlers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeHandlers\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"removeHandlers\"), _class.prototype)), _class));\n  _exports.default = Options;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Options);\n});","define(\"ember-power-select/components/power-select/placeholder\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    {{#if @placeholder}}\n    <span class=\"ember-power-select-placeholder\" ...attributes>{{@placeholder}}</span>\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"fyXJq24a\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"@placeholder\\\"],\\\"statements\\\":[[6,[37,0],[[32,2]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[11,\\\"span\\\"],[24,0,\\\"ember-power-select-placeholder\\\"],[17,1],[12],[1,[32,2]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select/placeholder.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n  _exports.default = _default;\n});","define(\"ember-power-select/components/power-select/power-select-group\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <li class=\"ember-power-select-group\" aria-disabled={{if @group.disabled \"true\"}} role=\"option\">\n    <span class=\"ember-power-select-group-name\">{{@group.groupName}}</span>\n    {{yield}}\n  </li>\n  */\n  {\n    \"id\": \"gRIzKR0I\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@group\\\",\\\"&default\\\"],\\\"statements\\\":[[10,\\\"li\\\"],[14,0,\\\"ember-power-select-group\\\"],[15,\\\"aria-disabled\\\",[30,[36,0],[[32,1,[\\\"disabled\\\"]],\\\"true\\\"],null]],[14,\\\"role\\\",\\\"option\\\"],[12],[2,\\\"\\\\n  \\\"],[10,\\\"span\\\"],[14,0,\\\"ember-power-select-group-name\\\"],[12],[1,[32,1,[\\\"groupName\\\"]]],[13],[2,\\\"\\\\n  \\\"],[18,2,null],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select/power-select-group.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n  _exports.default = _default;\n});","define(\"ember-power-select/components/power-select/search-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <ul class=\"ember-power-select-options\" role=\"listbox\">\n    <li class=\"ember-power-select-option ember-power-select-option--search-message\" role=\"option\">\n      {{@searchMessage}}\n    </li>\n  </ul>\n  */\n  {\n    \"id\": \"oe+4Lxk0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@searchMessage\\\"],\\\"statements\\\":[[10,\\\"ul\\\"],[14,0,\\\"ember-power-select-options\\\"],[14,\\\"role\\\",\\\"listbox\\\"],[12],[2,\\\"\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"ember-power-select-option ember-power-select-option--search-message\\\"],[14,\\\"role\\\",\\\"option\\\"],[12],[2,\\\"\\\\n    \\\"],[1,[32,1]],[2,\\\"\\\\n  \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select/search-message.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n  _exports.default = _default;\n});","define(\"ember-power-select/components/power-select/trigger\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _class;\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\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    {{#if @select.selected}}\n    {{#if @selectedItemComponent}}\n      {{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 @placeholderComponent placeholder=@placeholder}}\n  {{/if}}\n  <span class=\"ember-power-select-status-icon\"></span>\n  \n  */\n  {\n    \"id\": \"O0SmG1Wb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@placeholder\\\",\\\"@placeholderComponent\\\",\\\"@select\\\",\\\"&default\\\",\\\"@extra\\\",\\\"@selectedItemComponent\\\",\\\"@allowClear\\\"],\\\"statements\\\":[[6,[37,3],[[32,3,[\\\"selected\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,3],[[32,6]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[1,[30,[36,0],[[32,6]],[[\\\"extra\\\",\\\"option\\\",\\\"select\\\"],[[30,[36,2],[[32,5]],null],[30,[36,2],[[32,3,[\\\"selected\\\"]]],null],[30,[36,2],[[32,3]],null]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"span\\\"],[14,0,\\\"ember-power-select-selected-item\\\"],[12],[18,4,[[32,3,[\\\"selected\\\"]],[32,3]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,3],[[30,[36,5],[[32,7],[30,[36,4],[[32,3,[\\\"disabled\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[11,\\\"span\\\"],[24,0,\\\"ember-power-select-clear-btn\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,1],[\\\"mousedown\\\",[32,0,[\\\"clear\\\"]]],null],[4,[38,1],[\\\"touchstart\\\",[32,0,[\\\"clear\\\"]]],null],[12],[2,\\\"×\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"  \\\"],[1,[30,[36,0],[[32,2]],[[\\\"placeholder\\\"],[[32,1]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[10,\\\"span\\\"],[14,0,\\\"ember-power-select-status-icon\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"component\\\",\\\"on\\\",\\\"readonly\\\",\\\"if\\\",\\\"not\\\",\\\"and\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-power-select/components/power-select/trigger.hbs\"\n    }\n  });\n\n  let Trigger = (_dec = Ember._action, (_class = class Trigger extends _component.default {\n    clear(e) {\n      e.stopPropagation();\n      this.args.select.actions.select(null);\n\n      if (e.type === 'touchstart') {\n        return false;\n      }\n    }\n\n  }, (_applyDecoratedDescriptor(_class.prototype, \"clear\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"clear\"), _class.prototype)), _class));\n  _exports.default = Trigger;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Trigger);\n});","define(\"ember-power-select/helpers/ember-power-select-is-group\", [\"exports\", \"ember-power-select/utils/group-utils\"], function (_exports, _groupUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.emberPowerSelectIsGroup = emberPowerSelectIsGroup;\n  _exports.default = void 0;\n\n  function emberPowerSelectIsGroup(_ref) {\n    let [maybeGroup] = _ref;\n    return (0, _groupUtils.isGroup)(maybeGroup);\n  }\n\n  var _default = Ember.Helper.helper(emberPowerSelectIsGroup);\n\n  _exports.default = _default;\n});","define(\"ember-power-select/helpers/ember-power-select-is-selected\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.emberPowerSelectIsSelected = emberPowerSelectIsSelected;\n  _exports.default = void 0;\n\n  // TODO: Make it private or scoped to the component\n  function emberPowerSelectIsSelected(_ref) {\n    let [option, selected] = _ref;\n\n    if (selected === undefined || selected === null) {\n      return false;\n    }\n\n    if (Ember.isArray(selected)) {\n      for (let i = 0; i < selected.length; i++) {\n        if (Ember.isEqual(selected[i], option)) {\n          return true;\n        }\n      }\n\n      return false;\n    } else {\n      return Ember.isEqual(option, selected);\n    }\n  }\n\n  var _default = Ember.Helper.helper(emberPowerSelectIsSelected);\n\n  _exports.default = _default;\n});","define(\"ember-power-select/utils/computed-fallback-if-undefined\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = computedFallbackIfUndefined;\n\n  function computedFallbackIfUndefined(fallback) {\n    return Ember.computed({\n      get() {\n        return fallback;\n      },\n\n      set(_, v) {\n        return v === undefined ? fallback : v;\n      }\n\n    });\n  }\n});","define(\"ember-power-select/utils/group-utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isGroup = isGroup;\n  _exports.countOptions = countOptions;\n  _exports.indexOfOption = indexOfOption;\n  _exports.optionAtIndex = optionAtIndex;\n  _exports.findOptionWithOffset = findOptionWithOffset;\n  _exports.filterOptions = filterOptions;\n  _exports.defaultHighlighted = defaultHighlighted;\n  _exports.advanceSelectableOption = advanceSelectableOption;\n  _exports.stripDiacritics = stripDiacritics;\n  _exports.defaultMatcher = defaultMatcher;\n  _exports.defaultTypeAheadMatcher = defaultTypeAheadMatcher;\n\n  function isGroup(entry) {\n    return !!entry && !!Ember.get(entry, 'groupName') && !!Ember.get(entry, 'options');\n  }\n\n  function countOptions(collection) {\n    let counter = 0;\n\n    (function walk(collection) {\n      if (!collection) {\n        return;\n      }\n\n      for (let i = 0; i < Ember.get(collection, 'length'); i++) {\n        let entry = collection.objectAt ? collection.objectAt(i) : collection[i];\n\n        if (isGroup(entry)) {\n          walk(Ember.get(entry, 'options'));\n        } else {\n          counter++;\n        }\n      }\n    })(collection);\n\n    return counter;\n  }\n\n  function indexOfOption(collection, option) {\n    let index = 0;\n    return function walk(collection) {\n      if (!collection) {\n        return -1;\n      }\n\n      for (let i = 0; i < Ember.get(collection, 'length'); i++) {\n        let entry = collection.objectAt ? collection.objectAt(i) : collection[i];\n\n        if (isGroup(entry)) {\n          let result = walk(Ember.get(entry, 'options'));\n\n          if (result > -1) {\n            return result;\n          }\n        } else if (entry === option) {\n          return index;\n        } else {\n          index++;\n        }\n      }\n\n      return -1;\n    }(collection);\n  }\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\n      let localCounter = 0;\n      let length = Ember.get(collection, 'length');\n\n      while (counter <= index && localCounter < length) {\n        let entry = collection.objectAt ? collection.objectAt(localCounter) : collection[localCounter];\n\n        if (isGroup(entry)) {\n          let found = walk(Ember.get(entry, 'options'), ancestorIsDisabled || !!Ember.get(entry, 'disabled'));\n\n          if (found) {\n            return found;\n          }\n        } else if (counter === index) {\n          return {\n            disabled: ancestorIsDisabled || !!Ember.get(entry, 'disabled'),\n            option: entry\n          };\n        } else {\n          counter++;\n        }\n\n        localCounter++;\n      }\n    }(originalCollection, false) || {\n      disabled: false,\n      option: undefined\n    };\n  }\n\n  function copyGroup(group, suboptions) {\n    let groupCopy = {\n      groupName: group.groupName,\n      options: suboptions\n    };\n\n    if (group.hasOwnProperty('disabled')) {\n      groupCopy.disabled = group.disabled;\n    }\n\n    return groupCopy;\n  }\n\n  function findOptionWithOffset(options, text, matcher, offset) {\n    let skipDisabled = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n    let counter = 0;\n    let foundBeforeOffset;\n    let foundAfterOffset = false;\n\n    let canStop = () => !!foundAfterOffset;\n\n    (function walk(options, ancestorIsDisabled) {\n      let length = Ember.get(options, 'length');\n\n      for (let i = 0; i < length; i++) {\n        let entry = options.objectAt ? options.objectAt(i) : options[i];\n        let entryIsDisabled = !!Ember.get(entry, 'disabled');\n\n        if (!skipDisabled || !entryIsDisabled) {\n          if (isGroup(entry)) {\n            walk(Ember.get(entry, 'options'), ancestorIsDisabled || entryIsDisabled);\n\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\n            counter++;\n          } else {\n            counter++;\n          }\n\n          if (canStop()) {\n            return;\n          }\n        }\n      }\n    })(options, false);\n\n    return foundAfterOffset ? foundAfterOffset : foundBeforeOffset;\n  }\n\n  function filterOptions(options, text, matcher) {\n    let skipDisabled = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n    let opts = Ember.A();\n    let length = Ember.get(options, 'length');\n\n    for (let i = 0; i < length; i++) {\n      let entry = options.objectAt ? options.objectAt(i) : options[i];\n\n      if (!skipDisabled || !Ember.get(entry, 'disabled')) {\n        if (isGroup(entry)) {\n          let suboptions = filterOptions(Ember.get(entry, 'options'), text, matcher, skipDisabled);\n\n          if (Ember.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\n    return opts;\n  }\n\n  function defaultHighlighted(_ref) {\n    let {\n      results,\n      highlighted,\n      selected\n    } = _ref;\n    let option = highlighted || selected;\n\n    if (option === undefined || indexOfOption(results, option) === -1) {\n      return advanceSelectableOption(results, option, 1);\n    }\n\n    return option;\n  }\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\n    while (option && disabled) {\n      let next = optionAtIndex(options, startIndex += step);\n      disabled = next.disabled;\n      option = next.option;\n    }\n\n    return option;\n  }\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  }; // Copied from Select2\n\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\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\n  function defaultTypeAheadMatcher(value, text) {\n    return stripDiacritics(value).toUpperCase().startsWith(stripDiacritics(text).toUpperCase()) ? 1 : -1;\n  }\n});","define(\"ember-raf-scheduler/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.scheduler = _exports.Scheduler = _exports.Token = void 0;\n\n  class Token {\n    constructor(parent) {\n      this._parent = parent;\n      this._cancelled = false;\n\n      if (true\n      /* DEBUG */\n      ) {\n        Object.seal(this);\n      }\n    }\n\n    get cancelled() {\n      return this._cancelled || (this._cancelled = this._parent ? this._parent.cancelled : false);\n    }\n\n    cancel() {\n      this._cancelled = true;\n    }\n\n  }\n\n  _exports.Token = Token;\n\n  function job(cb, token) {\n    return function execJob() {\n      if (token.cancelled === false) {\n        cb();\n      }\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\n      if (true\n      /* DEBUG */\n      ) {\n        Object.seal(this);\n      }\n    }\n\n    schedule(queueName, cb, parent) {\n      (true && !(queueName in this) && Ember.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\n      this._flush();\n\n      return token;\n    }\n\n    forget(token) {\n      // TODO add explicit test\n      if (token) {\n        token.cancel();\n      }\n    }\n\n    _flush() {\n      if (this._nextFlush !== null) {\n        return;\n      }\n\n      this._nextFlush = requestAnimationFrame(() => {\n        this.flush();\n      });\n    }\n\n    flush() {\n      let i, q;\n      this.jobs = 0;\n\n      if (this.sync.length > 0) {\n        Ember.run.begin();\n        q = this.sync;\n        this.sync = [];\n\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n\n        Ember.run.end();\n      }\n\n      if (this.layout.length > 0) {\n        q = this.layout;\n        this.layout = [];\n\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n      }\n\n      if (this.measure.length > 0) {\n        q = this.measure;\n        this.measure = [];\n\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n      }\n\n      if (this.affect.length > 0) {\n        q = this.affect;\n        this.affect = [];\n\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n      }\n\n      this._nextFlush = null;\n\n      if (this.jobs > 0) {\n        this._flush();\n      }\n    }\n\n  }\n\n  _exports.Scheduler = Scheduler;\n  const scheduler = new Scheduler();\n  _exports.scheduler = scheduler;\n  var _default = scheduler;\n  _exports.default = _default;\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-resolver/resolvers/classic/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function getPod(type, key, prefix) {\n    let match = key.match(new RegExp('^/?' + prefix + '/(.+)/' + type + '$'));\n\n    if (match !== null) {\n      return match[1];\n    }\n  }\n  /*\n   * This module defines a subclass of Ember.ContainerDebugAdapter that adds\n   * support for resolving from modules.\n   *\n   */\n\n\n  var _default = Ember.ContainerDebugAdapter.extend({\n    _moduleRegistry: null,\n\n    init() {\n      this._super(...arguments);\n\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new _index.ModuleRegistry();\n      }\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\n      return this._super(...arguments);\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 classes.\n        */\n    catalogEntriesByType(type) {\n      let moduleNames = this._moduleRegistry.moduleNames();\n\n      let types = Ember.A();\n      let prefix = this.namespace.modulePrefix;\n\n      for (let i = 0, l = moduleNames.length; i < l; i++) {\n        let key = moduleNames[i];\n\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\n          if (!name) {\n            // Not pod\n            name = key.split(type + 's/').pop(); // 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            //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\n      return types;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-resolver/resolvers/classic/index\", [\"exports\", \"ember-resolver/utils/class-factory\"], function (_exports, _classFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ModuleRegistry = void 0;\n\n  if (typeof requirejs.entries === 'undefined') {\n    requirejs.entries = requirejs._eak_seen;\n  }\n\n  class ModuleRegistry {\n    constructor(entries) {\n      this._entries = entries || requirejs.entries;\n    }\n\n    moduleNames() {\n      return Object.keys(this._entries);\n    }\n\n    has(moduleName) {\n      return moduleName in this._entries;\n    }\n\n    get(moduleName) {\n      return require(moduleName);\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\n\n  _exports.ModuleRegistry = ModuleRegistry;\n\n  function parseName(fullName) {\n    if (fullName.parsedName === true) {\n      return fullName;\n    }\n\n    let prefix, type, name;\n    let fullNameParts = fullName.split('@');\n\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\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\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\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\n    let fullNameWithoutType = name;\n    let namespace = Ember.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\" + Ember.String.classify(type)\n    };\n  }\n\n  function resolveOther(parsedName) {\n    (true && !(this.namespace.modulePrefix) && Ember.assert('`modulePrefix` must be defined', this.namespace.modulePrefix));\n    let normalizedModuleName = this.findModuleName(parsedName);\n\n    if (normalizedModuleName) {\n      let defaultExport = this._extractDefaultExport(normalizedModuleName, parsedName);\n\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\n      if (this.shouldWrapInClassFactory(defaultExport, parsedName)) {\n        defaultExport = (0, _classFactory.default)(defaultExport);\n      }\n\n      return defaultExport;\n    }\n  }\n\n  const Resolver = Ember.Object.extend({\n    resolveOther,\n    parseName,\n    pluralizedTypes: null,\n    moduleRegistry: null,\n\n    makeToString(factory, fullName) {\n      return '' + this.namespace.modulePrefix + '@' + fullName + ':';\n    },\n\n    shouldWrapInClassFactory() {\n      return false;\n    },\n\n    init() {\n      this._super();\n\n      this.moduleBasedResolver = true;\n\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new ModuleRegistry();\n      }\n\n      this._normalizeCache = Object.create(null);\n      this.pluralizedTypes = this.pluralizedTypes || Object.create(null);\n\n      if (!this.pluralizedTypes.config) {\n        this.pluralizedTypes.config = 'config';\n      }\n\n      this._deprecatedPodModulePrefix = false;\n    },\n\n    normalize(fullName) {\n      return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this._normalize(fullName));\n    },\n\n    resolve(fullName) {\n      let parsedName = this.parseName(fullName);\n      let resolveMethodName = parsedName.resolveMethodName;\n      let resolved;\n\n      if (typeof this[resolveMethodName] === 'function') {\n        resolved = this[resolveMethodName](parsedName);\n      }\n\n      if (resolved == null) {\n        resolved = this.resolveOther(parsedName);\n      }\n\n      return resolved;\n    },\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      let split = fullName.split(':');\n\n      if (split.length > 1) {\n        let type = split[0];\n\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 + ':' + Ember.String.dasherize(split[1].replace(/\\./g, '/'));\n        }\n      } else {\n        return fullName;\n      }\n    },\n\n    pluralize(type) {\n      return this.pluralizedTypes[type] || (this.pluralizedTypes[type] = type + 's');\n    },\n\n    podBasedLookupWithPrefix(podPrefix, parsedName) {\n      let fullNameWithoutType = parsedName.fullNameWithoutType;\n\n      if (parsedName.type === 'template') {\n        fullNameWithoutType = fullNameWithoutType.replace(/^components\\//, '');\n      }\n\n      return podPrefix + '/' + fullNameWithoutType + '/' + parsedName.type;\n    },\n\n    podBasedModuleName(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n    },\n\n    podBasedComponentsInSubdir(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      podPrefix = podPrefix + '/components';\n\n      if (parsedName.type === 'component' || /^components/.test(parsedName.fullNameWithoutType)) {\n        return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n      }\n    },\n\n    resolveEngine(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineModule = engineName + '/engine';\n\n      if (this._moduleRegistry.has(engineModule)) {\n        return this._extractDefaultExport(engineModule);\n      }\n    },\n\n    resolveRouteMap(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineRoutesModule = engineName + '/routes';\n\n      if (this._moduleRegistry.has(engineRoutesModule)) {\n        let routeMap = this._extractDefaultExport(engineRoutesModule);\n\n        (true && !(routeMap.isRouteMap) && Ember.assert(`The route map for ${engineName} should be wrapped by 'buildRoutes' before exporting.`, routeMap.isRouteMap));\n        return routeMap;\n      }\n    },\n\n    resolveTemplate(parsedName) {\n      let resolved = this.resolveOther(parsedName);\n\n      if (resolved == null) {\n        resolved = Ember.TEMPLATES[parsedName.fullNameWithoutType];\n      }\n\n      return resolved;\n    },\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\n    defaultModuleName(parsedName) {\n      return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType;\n    },\n\n    nestedColocationComponentModuleName(parsedName) {\n      if (parsedName.type === 'component') {\n        return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType + '/index';\n      }\n    },\n\n    prefix(parsedName) {\n      let tmpPrefix = this.namespace.modulePrefix;\n\n      if (this.namespace[parsedName.type + 'Prefix']) {\n        tmpPrefix = this.namespace[parsedName.type + 'Prefix'];\n      }\n\n      return tmpPrefix;\n    },\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: Ember.computed(function () {\n      return [this.podBasedModuleName, this.podBasedComponentsInSubdir, this.mainModuleName, this.defaultModuleName, this.nestedColocationComponentModuleName];\n    }).readOnly(),\n\n    findModuleName(parsedName, loggingDisabled) {\n      let moduleNameLookupPatterns = this.get('moduleNameLookupPatterns');\n      let moduleName;\n\n      for (let index = 0, length = moduleNameLookupPatterns.length; index < length; index++) {\n        let item = moduleNameLookupPatterns[index];\n        let tmpModuleName = item.call(this, parsedName); // allow treat all dashed and all underscored as the same thing\n        // supports components with dashes and other stuff with underscores.\n\n        if (tmpModuleName) {\n          tmpModuleName = this.chooseModuleName(tmpModuleName, parsedName);\n        }\n\n        if (tmpModuleName && this._moduleRegistry.has(tmpModuleName)) {\n          moduleName = tmpModuleName;\n        }\n\n        if (!loggingDisabled) {\n          this._logLookup(moduleName, parsedName, tmpModuleName);\n        }\n\n        if (moduleName) {\n          return moduleName;\n        }\n      }\n    },\n\n    chooseModuleName(moduleName, parsedName) {\n      let underscoredModuleName = Ember.String.underscore(moduleName);\n\n      if (moduleName !== underscoredModuleName && this._moduleRegistry.has(moduleName) && this._moduleRegistry.has(underscoredModuleName)) {\n        throw new TypeError(`Ambiguous module names: '${moduleName}' and '${underscoredModuleName}'`);\n      }\n\n      if (this._moduleRegistry.has(moduleName)) {\n        return moduleName;\n      } else if (this._moduleRegistry.has(underscoredModuleName)) {\n        return underscoredModuleName;\n      } // workaround for dasherized partials:\n      // something/something/-something => something/something/_something\n\n\n      let partializedModuleName = moduleName.replace(/\\/-([^/]*)$/, '/_$1');\n\n      if (this._moduleRegistry.has(partializedModuleName)) {\n        (true && !(false) && Ember.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        }));\n        return partializedModuleName;\n      }\n\n      if (true\n      /* DEBUG */\n      ) {\n        let isCamelCaseHelper = parsedName.type === 'helper' && /[a-z]+[A-Z]+/.test(moduleName);\n\n        if (isCamelCaseHelper) {\n          this._camelCaseHelperWarnedNames = this._camelCaseHelperWarnedNames || [];\n          let alreadyWarned = this._camelCaseHelperWarnedNames.indexOf(parsedName.fullName) > -1;\n\n          if (!alreadyWarned && this._moduleRegistry.has(Ember.String.dasherize(moduleName))) {\n            this._camelCaseHelperWarnedNames.push(parsedName.fullName);\n\n            (true && Ember.warn('Attempted to lookup \"' + parsedName.fullName + '\" which ' + 'was not found. In previous versions of ember-resolver, a bug would have ' + 'caused the module at \"' + Ember.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\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\n    // only needed until 1.6.0-beta.2 can be required\n    _logLookup(found, parsedName, description) {\n      if (!Ember.ENV.LOG_MODULE_RESOLVER && !parsedName.root.LOG_RESOLVER) {\n        return;\n      }\n\n      let padding;\n      let symbol = found ? '[✓]' : '[ ]';\n\n      if (parsedName.fullName.length > 60) {\n        padding = '.';\n      } else {\n        padding = new Array(60 - parsedName.fullName.length).join('.');\n      }\n\n      if (!description) {\n        description = this.lookupDescription(parsedName);\n      }\n      /* eslint-disable no-console */\n\n\n      if (console && console.info) {\n        console.info(symbol, parsedName.fullName, padding, description);\n      }\n    },\n\n    knownForType(type) {\n      let moduleKeys = this._moduleRegistry.moduleNames();\n\n      let items = Object.create(null);\n\n      for (let index = 0, length = moduleKeys.length; index < length; index++) {\n        let moduleName = moduleKeys[index];\n        let fullname = this.translateToContainerFullname(type, moduleName);\n\n        if (fullname) {\n          items[fullname] = true;\n        }\n      }\n\n      return items;\n    },\n\n    translateToContainerFullname(type, moduleName) {\n      let prefix = this.prefix({\n        type\n      }); // Note: using string manipulation here rather than regexes for better performance.\n      // pod modules\n      // '^' + prefix + '/(.+)/' + type + '$'\n\n      let podPrefix = prefix + '/';\n      let podSuffix = '/' + type;\n      let start = moduleName.indexOf(podPrefix);\n      let end = moduleName.indexOf(podSuffix);\n\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      } // non-pod modules\n      // '^' + prefix + '/' + pluralizedType + '/(.+)$'\n\n\n      let pluralizedType = this.pluralize(type);\n      let nonPodPrefix = prefix + '/' + pluralizedType + '/';\n\n      if (moduleName.indexOf(nonPodPrefix) === 0 && moduleName.length > nonPodPrefix.length) {\n        return type + ':' + moduleName.slice(nonPodPrefix.length);\n      }\n    },\n\n    _extractDefaultExport(normalizedModuleName) {\n      let module = require(normalizedModuleName, null, null, true\n      /* force sync */\n      );\n\n      if (module && module['default']) {\n        module = module['default'];\n      }\n\n      return module;\n    }\n\n  });\n  Resolver.reopenClass({\n    moduleBasedResolver: true\n  });\n  var _default = Resolver;\n  _exports.default = _default;\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\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  }\n});","define('ember-route-action-helper/-private/internals', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  let ClosureActionModule;\n\n  if ('ember-htmlbars/keywords/closure-action' in Ember.__loader.registry) {\n    ClosureActionModule = Ember.__loader.require('ember-htmlbars/keywords/closure-action');\n  } else if ('ember-routing-htmlbars/keywords/closure-action' in Ember.__loader.registry) {\n    ClosureActionModule = Ember.__loader.require('ember-routing-htmlbars/keywords/closure-action');\n  } else {\n    ClosureActionModule = {};\n  }\n\n  const ACTION = exports.ACTION = ClosureActionModule.ACTION;\n});","define('ember-route-action-helper/helpers/route-action', ['exports', 'ember-route-action-helper/-private/internals'], function (exports, _internals) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  function getCurrentInfos(router) {\n    let routerLib = router._routerMicrolib || router.router;\n\n    return {\n      currentInfos: routerLib.currentRouteInfos || routerLib.currentHandlerInfos,\n      mapBy: routerLib.currentRouteInfos && 'route' || 'handler'\n    };\n  }\n\n  function getRoutes(router) {\n    var _getCurrentInfos = getCurrentInfos(router);\n\n    const currentInfos = _getCurrentInfos.currentInfos,\n          mapBy = _getCurrentInfos.mapBy;\n\n    return Ember.A(currentInfos).mapBy(mapBy).reverse();\n  }\n\n  function getRouteWithAction(router, actionName) {\n    let action;\n    let handler = Ember.A(getRoutes(router)).find(route => {\n      let actions = route.actions || route._actions;\n      action = actions[actionName];\n\n      return typeof action === 'function';\n    });\n\n    return { action, handler };\n  }\n\n  exports.default = Ember.Helper.extend({\n    router: Ember.computed(function () {\n      return Ember.getOwner(this).lookup('router:main');\n    }).readOnly(),\n\n    compute([actionName, ...params]) {\n      let router = Ember.get(this, 'router');\n      (true && !(router) && Ember.assert('[ember-route-action-helper] Unable to lookup router', router));\n\n\n      Ember.runInDebug(() => {\n        var _getRouteWithAction = getRouteWithAction(router, actionName);\n\n        let handler = _getRouteWithAction.handler;\n        (true && !(handler) && Ember.assert(`[ember-route-action-helper] Unable to find action ${actionName}`, handler));\n      });\n\n      let routeAction = function routeAction(...invocationArgs) {\n        var _getRouteWithAction2 = getRouteWithAction(router, actionName);\n\n        let action = _getRouteWithAction2.action,\n            handler = _getRouteWithAction2.handler;\n\n        let args = params.concat(invocationArgs);\n        return Ember.run.join(handler, action, ...args);\n      };\n\n      routeAction[_internals.ACTION] = true;\n\n      return routeAction;\n    }\n  });\n});","define(\"ember-simple-auth/-internals/routing\", [\"exports\", \"ember-simple-auth/utils/is-fastboot\", \"ember-simple-auth/utils/location\"], function (_exports, _isFastboot, _location) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.requireAuthentication = requireAuthentication;\n  _exports.triggerAuthentication = triggerAuthentication;\n  _exports.prohibitAuthentication = prohibitAuthentication;\n  _exports.handleSessionAuthenticated = handleSessionAuthenticated;\n  _exports.handleSessionInvalidated = handleSessionInvalidated;\n\n  function requireAuthentication(owner, transition) {\n    let sessionService = owner.lookup('service:session');\n    let isAuthenticated = sessionService.get('isAuthenticated');\n\n    if (!isAuthenticated) {\n      if (transition && (0, _isFastboot.default)(owner)) {\n        const fastbootService = owner.lookup('service:fastboot');\n        const cookiesService = owner.lookup('service:cookies');\n        cookiesService.write('ember_simple_auth-redirectTarget', transition.intent.url, {\n          path: '/',\n          secure: fastbootService.get('request.protocol') === 'https'\n        });\n      } else if (transition) {\n        sessionService.set('attemptedTransition', transition);\n      }\n    }\n\n    return isAuthenticated;\n  }\n\n  function triggerAuthentication(owner, authenticationRoute) {\n    let authRouter = owner.lookup('service:router') || owner.lookup('router:main');\n    authRouter.transitionTo(authenticationRoute);\n  }\n\n  function prohibitAuthentication(owner, routeIfAlreadyAuthenticated) {\n    let authRouter = owner.lookup('service:router') || owner.lookup('router:main');\n    authRouter.transitionTo(routeIfAlreadyAuthenticated);\n  }\n\n  function handleSessionAuthenticated(owner, routeAfterAuthentication) {\n    let sessionService = owner.lookup('service:session');\n    let attemptedTransition = sessionService.get('attemptedTransition');\n    let cookiesService = owner.lookup('service:cookies');\n    const redirectTarget = cookiesService.read('ember_simple_auth-redirectTarget');\n    let routerService = owner.lookup('service:router');\n\n    if (attemptedTransition) {\n      attemptedTransition.retry();\n      sessionService.set('attemptedTransition', null);\n    } else if (redirectTarget) {\n      routerService.transitionTo(redirectTarget);\n      cookiesService.clear('ember_simple_auth-redirectTarget');\n    } else {\n      routerService.transitionTo(routeAfterAuthentication);\n    }\n  }\n\n  function handleSessionInvalidated(owner, routeAfterInvalidation) {\n    if ((0, _isFastboot.default)(owner)) {\n      let routerService = owner.lookup('service:router');\n      routerService.transitionTo(routeAfterInvalidation);\n    } else {\n      if (!Ember.testing) {\n        (0, _location.default)().replace(routeAfterInvalidation);\n      }\n    }\n  }\n});","define(\"ember-simple-auth/authenticators/base\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n    The base class for all authenticators. __This serves as a starting point for\n    implementing custom authenticators and must not be used directly.__\n  \n    The authenticator authenticates the session. The actual mechanism used to do\n    this might, e.g., post a set of credentials to a server and in exchange\n    retrieve an access token, initiating authentication against an external\n    provider like Facebook, etc. The details depend on the specific authenticator.\n    Upon successful authentication, any data that the authenticator receives and\n    resolves via the promise returned from the\n    {{#crossLink \"BaseAuthenticator/authenticate:method\"}}{{/crossLink}}\n    method is stored in the session and can be accessed via the session service\n    to be used by the authorizer (see\n    {{#crossLink \"BaseAuthorizer/authorize:method\"}}{{/crossLink}}) to e.g.,\n    authorize outgoing requests.\n  \n    The authenticator also decides whether a set of data that was restored from\n    the session store (see\n    {{#crossLink \"BaseStore/restore:method\"}}{{/crossLink}}) makes up an\n    authenticated session or not.\n  \n    __Authenticators for an application are defined in the `app/authenticators`\n    directory__, e.g.:\n  \n    ```js\n    // app/authenticators/oauth2.js\n    import OAuth2PasswordGrantAuthenticator from 'ember-simple-auth/authenticators/oauth2-password-grant';\n  \n    export default class OAuth2Authenticator extends OAuth2PasswordGrantAuthenticator {\n      ...\n    }\n    ```\n  \n    and can then be used via the name Ember CLI automatically registers for them\n    within the Ember container.\n  \n    ```js\n    // app/components/login-form.js\n    import Component from '@ember/component';\n    import { inject as service } from '@ember/service';\n    import { action } from '@ember/object';\n  \n    export default class LoginFormComponent extends Component {\n      @service session;\n  \n      @action\n      authenticate() {\n        this.session.authenticate('authenticator:oauth2');\n      }\n    }\n    ```\n  \n    @class BaseAuthenticator\n    @module ember-simple-auth/authenticators/base\n    @extends Ember.Object\n    @uses Ember.Evented\n    @public\n  */\n  var _default = Ember.Object.extend(Ember.Evented, {\n    /**\n      __Triggered when the authentication data is updated by the authenticator\n      due to an external or scheduled event__. This might happen, e.g., if the\n      authenticator refreshes an expired token or an event is triggered from an\n      external authentication provider that the authenticator uses. The session\n      handles that event, passes the updated data back to the authenticator's\n      {{#crossLink \"BaseAuthenticator/restore:method\"}}{{/crossLink}}\n      method and handles the result of that invocation accordingly.\n       @event sessionDataUpdated\n      @param {Object} data The updated session data\n      @public\n    */\n\n    /**\n      __Triggered when the authentication data is invalidated by the authenticator\n      due to an external or scheduled event__. This might happen, e.g., if a token\n      expires or an event is triggered from an external authentication provider\n      that the authenticator uses. The session handles the event and will\n      invalidate itself when it is triggered.\n       @event sessionDataInvalidated\n      @public\n    */\n\n    /**\n      Restores the session from a session data object. __This method is invoked\n      by the session either on application startup if session data is restored\n      from the session store__ or when properties in the store change due to\n      external events (e.g. in another tab) and the new session data needs to be\n      validated for whether it constitutes an authenticated session.\n       __This method returns a promise. A resolving promise results in the session\n      becoming or remaining authenticated.__ Any data the promise resolves with\n      will be saved in and accessible via the session service's\n      `data.authenticated` property (see\n      {{#crossLink \"SessionService/data:property\"}}{{/crossLink}}). A rejecting\n      promise indicates that `data` does not constitute a valid session and will\n      result in the session being invalidated or remaining unauthenticated.\n       The `BaseAuthenticator`'s implementation always returns a rejecting\n      promise. __This method must be overridden in subclasses.__\n       @method restore\n      @param {Object} data The data to restore the session from\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming or remaining authenticated\n      @public\n    */\n    restore() {\n      return Ember.RSVP.reject();\n    },\n\n    /**\n      Authenticates the session with the specified `args`. These options vary\n      depending on the actual authentication mechanism the authenticator\n      implements (e.g. a set of credentials or a Facebook account id etc.). __The\n      session will invoke this method in order to authenticate itself__ (see\n      {{#crossLink \"SessionService/authenticate:method\"}}{{/crossLink}}).\n       __This method returns a promise. A resolving promise will result in the\n      session becoming authenticated.__ Any data the promise resolves with will\n      be saved in and accessible via the session service's `data.authenticated`\n      property (see {{#crossLink \"SessionService/data:property\"}}{{/crossLink}}).\n      A rejecting promise indicates that authentication failed and will result in\n      the session remaining unauthenticated.\n       The `BaseAuthenticator`'s implementation always returns a rejecting promise\n      and thus never authenticates the session. __This method must be overridden\n      in subclasses__.\n       @method authenticate\n      @param {Any} [...args] The arguments that the authenticator requires to authenticate the session\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming authenticated\n      @public\n    */\n    authenticate() {\n      return Ember.RSVP.reject();\n    },\n\n    /**\n      This method is invoked as a callback when the session is invalidated. While\n      the session will invalidate itself and clear all authenticated session data,\n      it might be necessary for some authenticators to perform additional tasks\n      (e.g. invalidating an access token on the server side).\n       __This method returns a promise. A resolving promise will result in the\n      session becoming unauthenticated.__ A rejecting promise will result in\n      invalidation being intercepted and the session remaining authenticated.\n       The `BaseAuthenticator`'s implementation always returns a resolving promise\n      and thus never intercepts session invalidation. __This method doesn't have\n      to be overridden in custom authenticators__ if no actions need to be\n      performed on session invalidation.\n       @method invalidate\n      @param {Object} data The current authenticated session data\n      @param {Array} ...args additional arguments as required by the authenticator\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session being invalidated\n      @public\n    */\n    invalidate() {\n      return Ember.RSVP.resolve();\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/authenticators/devise\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"fetch\"], function (_exports, _base, _fetch) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const assign = Ember.assign || Ember.merge;\n  const JSON_CONTENT_TYPE = 'application/json';\n  /**\n    Authenticator that works with the Ruby gem\n    [devise](https://github.com/plataformatec/devise).\n  \n    __As token authentication is not actually part of devise anymore, the server\n    needs to implement some customizations__ to work with this authenticator -\n    see [this gist](https://gist.github.com/josevalim/fb706b1e933ef01e4fb6).\n  \n    @class DeviseAuthenticator\n    @module ember-simple-auth/authenticators/devise\n    @extends BaseAuthenticator\n    @public\n  */\n\n  var _default = _base.default.extend({\n    /**\n      The endpoint on the server that the authentication request is sent to.\n       @property serverTokenEndpoint\n      @type String\n      @default '/users/sign_in'\n      @public\n    */\n    serverTokenEndpoint: '/users/sign_in',\n\n    /**\n      The devise resource name. __This will be used in the request and also be\n      expected in the server's response.__\n       @property resourceName\n      @type String\n      @default 'user'\n      @public\n    */\n    resourceName: 'user',\n\n    /**\n      The token attribute name. __This will be used in the request and also be\n      expected in the server's response.__\n       @property tokenAttributeName\n      @type String\n      @default 'token'\n      @public\n    */\n    tokenAttributeName: 'token',\n\n    /**\n      The identification attribute name. __This will be used in the request and\n      also be expected in the server's response.__\n       @property identificationAttributeName\n      @type String\n      @default 'email'\n      @public\n    */\n    identificationAttributeName: 'email',\n\n    /**\n      Restores the session from a session data object; __returns a resolving\n      promise when there are non-empty\n      {{#crossLink \"DeviseAuthenticator/tokenAttributeName:property\"}}token{{/crossLink}}\n      and\n      {{#crossLink \"DeviseAuthenticator/identificationAttributeName:property\"}}identification{{/crossLink}}\n      values in `data`__ and a rejecting promise otherwise.\n       @method restore\n      @param {Object} data The data to restore the session from\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming or remaining authenticated\n      @public\n    */\n    restore(data) {\n      // eslint-disable-next-line prefer-promise-reject-errors\n      return this._validate(data) ? Ember.RSVP.Promise.resolve(data) : Ember.RSVP.Promise.reject();\n    },\n\n    /**\n      Authenticates the session with the specified `identification` and\n      `password`; the credentials are `POST`ed to the\n      {{#crossLink \"DeviseAuthenticator/serverTokenEndpoint:property\"}}server{{/crossLink}}.\n      If the credentials are valid the server will responds with a\n      {{#crossLink \"DeviseAuthenticator/tokenAttributeName:property\"}}token{{/crossLink}}\n      and\n      {{#crossLink \"DeviseAuthenticator/identificationAttributeName:property\"}}identification{{/crossLink}}.\n      __If the credentials are valid and authentication succeeds, a promise that\n      resolves with the server's response is returned__, otherwise a promise that\n      rejects with the server error is returned.\n       @method authenticate\n      @param {String} identification The user's identification\n      @param {String} password The user's password\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming authenticated. If authentication fails, the promise will reject with the server response; however, the authenticator reads that response already so if you need to read it again you need to clone the response object first\n      @public\n    */\n    authenticate(identification, password) {\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        const {\n          resourceName,\n          identificationAttributeName,\n          tokenAttributeName\n        } = this.getProperties('resourceName', 'identificationAttributeName', 'tokenAttributeName');\n        const data = {};\n        data[resourceName] = {\n          password\n        };\n        data[resourceName][identificationAttributeName] = identification;\n        this.makeRequest(data).then(response => {\n          if (response.ok) {\n            response.json().then(json => {\n              if (this._validate(json)) {\n                const resourceName = this.get('resourceName');\n\n                const _json = json[resourceName] ? json[resourceName] : json;\n\n                Ember.run(null, resolve, _json);\n              } else {\n                Ember.run(null, reject, `Check that server response includes ${tokenAttributeName} and ${identificationAttributeName}`);\n              }\n            });\n          } else {\n            Ember.run(null, reject, response);\n          }\n        }).catch(error => Ember.run(null, reject, error));\n      });\n    },\n\n    /**\n      Does nothing\n       @method invalidate\n      @return {Ember.RSVP.Promise} A resolving promise\n      @public\n    */\n    invalidate() {\n      return Ember.RSVP.Promise.resolve();\n    },\n\n    /**\n      Makes a request to the Devise server using\n      [ember-fetch](https://github.com/stefanpenner/ember-fetch).\n       @method makeRequest\n      @param {Object} data The request data\n      @param {Object} options request options that are passed to `fetch`\n      @return {Promise} The promise returned by `fetch`\n      @protected\n    */\n    makeRequest(data, options = {}) {\n      let url = options.url || this.get('serverTokenEndpoint');\n      let requestOptions = {};\n      let body = JSON.stringify(data);\n      assign(requestOptions, {\n        body,\n        method: 'POST',\n        headers: {\n          'accept': JSON_CONTENT_TYPE,\n          'content-type': JSON_CONTENT_TYPE\n        }\n      });\n      assign(requestOptions, options || {});\n      return (0, _fetch.default)(url, requestOptions);\n    },\n\n    _validate(data) {\n      const tokenAttributeName = this.get('tokenAttributeName');\n      const identificationAttributeName = this.get('identificationAttributeName');\n      const resourceName = this.get('resourceName');\n\n      const _data = data[resourceName] ? data[resourceName] : data;\n\n      return !Ember.isEmpty(_data[tokenAttributeName]) && !Ember.isEmpty(_data[identificationAttributeName]);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/authenticators/oauth2-implicit-grant\", [\"exports\", \"ember-simple-auth/authenticators/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.parseResponse = parseResponse;\n  _exports.default = void 0;\n\n  /**\n    Parses the location hash (as received from `window.location.hash`) into an\n    object, e.g.:\n  \n    ```js\n    parseResponse('/routepath#access_token=secret-token&scope=something'); // => { access_token: 'secret-token', scope: 'something' }\n    ```\n  \n    @function parseResponse\n    @param {String} locationHash The location hash (as received from `window.location.hash`)\n    @return {Object} An obect with individual properties and values for the data parsed from the location hash\n  */\n  function parseResponse(locationHash) {\n    let params = {};\n    const query = locationHash.substring(locationHash.indexOf('?'));\n    const regex = /([^#?&=]+)=([^&]*)/g;\n    let match; // decode all parameter pairs\n\n    while ((match = regex.exec(query)) !== null) {\n      params[decodeURIComponent(match[1])] = decodeURIComponent(match[2]);\n    }\n\n    return params;\n  }\n  /**\n   Authenticator that conforms to OAuth 2\n   ([RFC 6749](http://tools.ietf.org/html/rfc6749)), specifically the _\"Implicit\n   Grant Type\"_.\n  \n   Use {{#crossLink \"OAuth2ImplicitGrantCallbackMixin\"}}{{/crossLink}} in your\n   OAuth 2.0 redirect route to parse authentication parameters from location\n   hash string into an object.\n  \n   @class OAuth2ImplicitGrantAuthenticator\n   @module ember-simple-auth/authenticators/oauth2-implicit-grant\n   @extends BaseAuthenticator\n   @public\n   */\n\n\n  var _default = _base.default.extend({\n    /**\n     Restores the session from a session data object; __will return a resolving\n     promise when there is a non-empty `access_token` in the session data__ and\n     a rejecting promise otherwise.\n      @method restore\n     @param {Object} data The data to restore the session from\n     @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming or remaining authenticated\n     @public\n     */\n    restore(data) {\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        if (!this._validateData(data)) {\n          return reject('Could not restore session - \"access_token\" missing.');\n        }\n\n        return resolve(data);\n      });\n    },\n\n    /**\n     Authenticates the session using the specified location `hash`\n     (see https://tools.ietf.org/html/rfc6749#section-4.2.2).\n      __If the access token is valid and thus authentication succeeds, a promise that\n     resolves with the access token is returned__, otherwise a promise that rejects\n     with the error code as returned by the server is returned\n     (see https://tools.ietf.org/html/rfc6749#section-4.2.2.1).\n      @method authenticate\n     @param {Object} hash The location hash\n     @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming authenticated\n     @public\n     */\n    authenticate(hash) {\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        if (hash.error) {\n          reject(hash.error);\n        } else if (!this._validateData(hash)) {\n          reject('Invalid auth params - \"access_token\" missing.');\n        } else {\n          resolve(hash);\n        }\n      });\n    },\n\n    /**\n     This method simply returns a resolving promise.\n      @method invalidate\n     @return {Ember.RSVP.Promise} A promise that when it resolves results in the session being invalidated\n     @public\n     */\n    invalidate() {\n      return Ember.RSVP.Promise.resolve();\n    },\n\n    _validateData(data) {\n      // see https://tools.ietf.org/html/rfc6749#section-4.2.2\n      return !Ember.isEmpty(data) && !Ember.isEmpty(data.access_token);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/authenticators/oauth2-password-grant\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"fetch\", \"ember-simple-auth/utils/is-fastboot\"], function (_exports, _base, _fetch, _isFastboot) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const assign = Ember.assign || Ember.merge;\n  const keys = Object.keys || Ember.keys; // Ember.keys deprecated in 1.13\n\n  /**\n    Authenticator that conforms to OAuth 2\n    ([RFC 6749](http://tools.ietf.org/html/rfc6749)), specifically the _\"Resource\n    Owner Password Credentials Grant Type\"_.\n  \n    This authenticator also automatically refreshes access tokens (see\n    [RFC 6749, section 6](http://tools.ietf.org/html/rfc6749#section-6)) if the\n    server supports it.\n  \n    @class OAuth2PasswordGrantAuthenticator\n    @module ember-simple-auth/authenticators/oauth2-password-grant\n    @extends BaseAuthenticator\n    @public\n  */\n\n  var _default = _base.default.extend({\n    /**\n      Triggered when the authenticator refreshed the access token (see\n      [RFC 6749, section 6](http://tools.ietf.org/html/rfc6749#section-6)).\n       @event sessionDataUpdated\n      @param {Object} data The updated session data\n      @public\n    */\n\n    /**\n      The client_id to be sent to the authentication server (see\n      https://tools.ietf.org/html/rfc6749#appendix-A.1). __This should only be\n      used for statistics or logging etc. as it cannot actually be trusted since\n      it could have been manipulated on the client!__\n       @property clientId\n      @type String\n      @default null\n      @public\n    */\n    clientId: null,\n\n    /**\n      The endpoint on the server that authentication and token refresh requests\n      are sent to.\n       @property serverTokenEndpoint\n      @type String\n      @default '/token'\n      @public\n    */\n    serverTokenEndpoint: '/token',\n\n    /**\n      The endpoint on the server that token revocation requests are sent to. Only\n      set this if the server actually supports token revocation. If this is\n      `null`, the authenticator will not revoke tokens on session invalidation.\n       __If token revocation is enabled but fails, session invalidation will be\n      intercepted and the session will remain authenticated (see\n      {{#crossLink \"OAuth2PasswordGrantAuthenticator/invalidate:method\"}}{{/crossLink}}).__\n       @property serverTokenRevocationEndpoint\n      @type String\n      @default null\n      @public\n    */\n    serverTokenRevocationEndpoint: null,\n\n    /**\n      Sets whether the authenticator automatically refreshes access tokens if the\n      server supports it.\n       @property refreshAccessTokens\n      @type Boolean\n      @default true\n      @public\n    */\n    refreshAccessTokens: true,\n\n    /**\n      The offset time in milliseconds to refresh the access token. This must\n      return a random number. This randomization is needed because in case of\n      multiple tabs, we need to prevent the tabs from sending refresh token\n      request at the same exact moment.\n       __When overriding this property, make sure to mark the overridden property\n      as volatile so it will actually have a different value each time it is\n      accessed.__\n       @property tokenRefreshOffset\n      @type Integer\n      @default a random number between 5 and 10\n      @public\n    */\n    get tokenRefreshOffset() {\n      const min = 5;\n      const max = 10;\n      return (Math.floor(Math.random() * (max - min)) + min) * 1000;\n    },\n\n    _refreshTokenTimeout: null,\n\n    /**\n      Restores the session from a session data object; __will return a resolving\n      promise when there is a non-empty `access_token` in the session data__ and\n      a rejecting promise otherwise.\n       If the server issues\n      [expiring access tokens](https://tools.ietf.org/html/rfc6749#section-5.1)\n      and there is an expired access token in the session data along with a\n      refresh token, the authenticator will try to refresh the access token and\n      return a promise that resolves with the new access token if the refresh was\n      successful. If there is no refresh token or the token refresh is not\n      successful, a rejecting promise will be returned.\n       @method restore\n      @param {Object} data The data to restore the session from\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming or remaining authenticated. If restoration fails, the promise will reject with the server response (in case the access token had expired and was refreshed using a refresh token); however, the authenticator reads that response already so if you need to read it again you need to clone the response object first\n      @public\n    */\n    restore(data) {\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        const now = new Date().getTime();\n        const refreshAccessTokens = this.get('refreshAccessTokens');\n\n        if (!Ember.isEmpty(data['expires_at']) && data['expires_at'] < now) {\n          if (refreshAccessTokens) {\n            this._refreshAccessToken(data['expires_in'], data['refresh_token']).then(resolve, reject);\n          } else {\n            reject();\n          }\n        } else {\n          if (!this._validate(data)) {\n            reject();\n          } else {\n            this._scheduleAccessTokenRefresh(data['expires_in'], data['expires_at'], data['refresh_token']);\n\n            resolve(data);\n          }\n        }\n      });\n    },\n\n    /**\n      Authenticates the session with the specified `identification`, `password`\n      and optional `scope`; issues a `POST` request to the\n      {{#crossLink \"OAuth2PasswordGrantAuthenticator/serverTokenEndpoint:property\"}}{{/crossLink}}\n      and receives the access token in response (see\n      http://tools.ietf.org/html/rfc6749#section-4.3).\n       __If the credentials are valid (and the optionally requested scope is\n      granted) and thus authentication succeeds, a promise that resolves with the\n      server's response is returned__, otherwise a promise that rejects with the\n      error as returned by the server is returned.\n       __If the\n      [server supports it](https://tools.ietf.org/html/rfc6749#section-5.1), this\n      method also schedules refresh requests for the access token before it\n      expires.__\n       The server responses are expected to look as defined in the spec (see\n      http://tools.ietf.org/html/rfc6749#section-5). The response to a successful\n      authentication request should be:\n       ```json\n      HTTP/1.1 200 OK\n      Content-Type: application/json;charset=UTF-8\n       {\n        \"access_token\":\"2YotnFZFEjr1zCsicMWpAA\",\n        \"token_type\":\"bearer\",\n        \"expires_in\":3600, // optional\n        \"refresh_token\":\"tGzv3JOkF0XG5Qx2TlKWIA\" // optional\n      }\n      ```\n       The response for a failing authentication request should be:\n       ```json\n      HTTP/1.1 400 Bad Request\n      Content-Type: application/json;charset=UTF-8\n       {\n        \"error\":\"invalid_grant\"\n      }\n      ```\n       A full list of error codes can be found\n      [here](https://tools.ietf.org/html/rfc6749#section-5.2).\n       @method authenticate\n      @param {String} identification The resource owner username\n      @param {String} password The resource owner password\n      @param {String|Array} scope The scope of the access request (see [RFC 6749, section 3.3](http://tools.ietf.org/html/rfc6749#section-3.3))\n      @param {Object} headers Optional headers that particular backends may require (for example sending 2FA challenge responses)\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming authenticated. If authentication fails, the promise will reject with the server response; however, the authenticator reads that response already so if you need to read it again you need to clone the response object first\n      @public\n    */\n    authenticate(identification, password, scope = [], headers = {}) {\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        const data = {\n          'grant_type': 'password',\n          username: identification,\n          password\n        };\n        const serverTokenEndpoint = this.get('serverTokenEndpoint');\n        const scopesString = Ember.makeArray(scope).join(' ');\n\n        if (!Ember.isEmpty(scopesString)) {\n          data.scope = scopesString;\n        }\n\n        this.makeRequest(serverTokenEndpoint, data, headers).then(response => {\n          Ember.run(() => {\n            if (!this._validate(response)) {\n              reject('access_token is missing in server response');\n            }\n\n            const expiresAt = this._absolutizeExpirationTime(response['expires_in']);\n\n            this._scheduleAccessTokenRefresh(response['expires_in'], expiresAt, response['refresh_token']);\n\n            if (!Ember.isEmpty(expiresAt)) {\n              response = assign(response, {\n                'expires_at': expiresAt\n              });\n            }\n\n            resolve(response);\n          });\n        }, response => {\n          Ember.run(null, reject, response);\n        });\n      });\n    },\n\n    /**\n      If token revocation is enabled, this will revoke the access token (and the\n      refresh token if present). If token revocation succeeds, this method\n      returns a resolving promise, otherwise it will return a rejecting promise,\n      thus intercepting session invalidation.\n       If token revocation is not enabled this method simply returns a resolving\n      promise.\n       @method invalidate\n      @param {Object} data The current authenticated session data\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session being invalidated. If invalidation fails, the promise will reject with the server response (in case token revocation is used); however, the authenticator reads that response already so if you need to read it again you need to clone the response object first\n      @public\n    */\n    invalidate(data) {\n      const serverTokenRevocationEndpoint = this.get('serverTokenRevocationEndpoint');\n\n      function success(resolve) {\n        Ember.run.cancel(this._refreshTokenTimeout);\n        delete this._refreshTokenTimeout;\n        resolve();\n      }\n\n      return new Ember.RSVP.Promise(resolve => {\n        if (Ember.isEmpty(serverTokenRevocationEndpoint)) {\n          success.apply(this, [resolve]);\n        } else {\n          const requests = [];\n          Ember.A(['access_token', 'refresh_token']).forEach(tokenType => {\n            const token = data[tokenType];\n\n            if (!Ember.isEmpty(token)) {\n              requests.push(this.makeRequest(serverTokenRevocationEndpoint, {\n                'token_type_hint': tokenType,\n                token\n              }));\n            }\n          });\n\n          const succeed = () => {\n            success.apply(this, [resolve]);\n          };\n\n          Ember.RSVP.all(requests).then(succeed, succeed);\n        }\n      });\n    },\n\n    /**\n      Makes a request to the OAuth 2.0 server.\n       @method makeRequest\n      @param {String} url The request URL\n      @param {Object} data The request data\n      @param {Object} headers Additional headers to send in request\n      @return {Promise} A promise that resolves with the response object\n      @protected\n    */\n    makeRequest(url, data, headers = {}) {\n      headers['Content-Type'] = 'application/x-www-form-urlencoded';\n      const clientId = this.get('clientId');\n\n      if (!Ember.isEmpty(clientId)) {\n        data['client_id'] = this.get('clientId');\n      }\n\n      const body = keys(data).map(key => {\n        return `${encodeURIComponent(key)}=${encodeURIComponent(data[key])}`;\n      }).join('&');\n      const options = {\n        body,\n        headers,\n        method: 'POST'\n      };\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        (0, _fetch.default)(url, options).then(response => {\n          response.text().then(text => {\n            try {\n              let json = JSON.parse(text);\n\n              if (!response.ok) {\n                response.responseJSON = json;\n                reject(response);\n              } else {\n                resolve(json);\n              }\n            } catch (SyntaxError) {\n              response.responseText = text;\n              reject(response);\n            }\n          });\n        }).catch(reject);\n      });\n    },\n\n    _scheduleAccessTokenRefresh(expiresIn, expiresAt, refreshToken) {\n      const refreshAccessTokens = this.get('refreshAccessTokens') && !(0, _isFastboot.default)(Ember.getOwner(this));\n\n      if (refreshAccessTokens) {\n        const now = new Date().getTime();\n\n        if (Ember.isEmpty(expiresAt) && !Ember.isEmpty(expiresIn)) {\n          expiresAt = new Date(now + expiresIn * 1000).getTime();\n        }\n\n        const offset = this.get('tokenRefreshOffset');\n\n        if (!Ember.isEmpty(refreshToken) && !Ember.isEmpty(expiresAt) && expiresAt > now - offset) {\n          Ember.run.cancel(this._refreshTokenTimeout);\n          delete this._refreshTokenTimeout;\n\n          if (!Ember.testing) {\n            this._refreshTokenTimeout = Ember.run.later(this, this._refreshAccessToken, expiresIn, refreshToken, expiresAt - now - offset);\n          }\n        }\n      }\n    },\n\n    _refreshAccessToken(expiresIn, refreshToken) {\n      const data = {\n        'grant_type': 'refresh_token',\n        'refresh_token': refreshToken\n      };\n      const serverTokenEndpoint = this.get('serverTokenEndpoint');\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        this.makeRequest(serverTokenEndpoint, data).then(response => {\n          Ember.run(() => {\n            expiresIn = response['expires_in'] || expiresIn;\n            refreshToken = response['refresh_token'] || refreshToken;\n\n            const expiresAt = this._absolutizeExpirationTime(expiresIn);\n\n            const data = assign(response, {\n              'expires_in': expiresIn,\n              'expires_at': expiresAt,\n              'refresh_token': refreshToken\n            });\n\n            this._scheduleAccessTokenRefresh(expiresIn, null, refreshToken);\n\n            this.trigger('sessionDataUpdated', data);\n            resolve(data);\n          });\n        }, response => {\n          (true && Ember.warn(`Access token could not be refreshed - server responded with ${response.responseJSON}.`, false, {\n            id: 'ember-simple-auth.failedOAuth2TokenRefresh'\n          }));\n          reject();\n        });\n      });\n    },\n\n    _absolutizeExpirationTime(expiresIn) {\n      if (!Ember.isEmpty(expiresIn)) {\n        return new Date(new Date().getTime() + expiresIn * 1000).getTime();\n      }\n    },\n\n    _validate(data) {\n      return !Ember.isEmpty(data['access_token']);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/authenticators/test\", [\"exports\", \"ember-simple-auth/authenticators/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _base.default.extend({\n    restore(data) {\n      return Ember.RSVP.resolve(data);\n    },\n\n    authenticate(data) {\n      return Ember.RSVP.resolve(data);\n    },\n\n    invalidate() {\n      return Ember.RSVP.resolve();\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/authenticators/torii\", [\"exports\", \"ember-simple-auth/authenticators/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n    Authenticator that wraps the\n    [Torii library](https://github.com/Vestorly/torii) and thus allows to connect\n    any external authentication provider that torii defines a provider for.\n  \n    In order to use this authenticator, __the application needs to have the\n    [torii addon](https://github.com/Vestorly/torii) installed and must inject\n    the torii service into the authenticator__:\n  \n    ```js\n    // app/authenticators/torii.js\n    import Torii from 'ember-simple-auth/authenticators/torii';\n    import { inject as service } from '@ember/service';\n  \n    export default class ToriiAuthenticator extends Torii {\n      @service torii;\n    }\n    ```\n  \n    @class ToriiAuthenticator\n    @module ember-simple-auth/authenticators/torii\n    @extends BaseAuthenticator\n    @public\n  */\n  var _default = _base.default.extend({\n    _provider: null,\n\n    /**\n      Restores the session by calling the torii provider's `fetch` method.\n       __Many torii providers do not implement the `fetch` method__. If the\n      provider in use does not implement the method simply add it as follows:\n       ```js\n      // app/torii-providers/facebook.js\n      import FacebookOauth2Provider from 'torii/providers/facebook-oauth2';\n       export default class FacebookToriiProvider extends FacebookOauth2Provider {\n        fetch(data) {\n          return data;\n        }\n      }\n      ```\n       @method restore\n      @param {Object} data The data to restore the session from\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming or remaining authenticated\n      @public\n    */\n    restore(data) {\n      this._assertToriiIsPresent();\n\n      data = data || {};\n\n      if (!Ember.isEmpty(data.provider)) {\n        const {\n          provider\n        } = data;\n        return this.get('torii').fetch(data.provider, data).then(fetchedData => {\n          this._authenticateWithProvider(provider, fetchedData);\n\n          return Ember.assign(data, fetchedData);\n        }, err => {\n          delete this._provider;\n          throw err;\n        });\n      } else {\n        delete this._provider;\n        return Ember.RSVP.reject();\n      }\n    },\n\n    /**\n      Authenticates the session by opening the specified torii provider. For more\n      documentation on torii and its providers abstraction, see the\n      [project's README](https://github.com/Vestorly/torii#readme), specifically\n      the\n      [section on providers](https://github.com/Vestorly/torii#configuring-a-torii-provider).\n       @method authenticate\n      @param {String} provider The torii provider to authenticate the session with\n      @param {Object} options The options to pass to the torii provider\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session becoming authenticated\n      @public\n    */\n    authenticate(provider, options) {\n      this._assertToriiIsPresent();\n\n      return this.get('torii').open(provider, options || {}).then(data => {\n        this._authenticateWithProvider(provider, data);\n\n        return data;\n      });\n    },\n\n    /**\n      Closes the torii provider. If the provider is successfully closed, this\n      method returns a resolving promise, otherwise it will return a rejecting\n      promise, thus intercepting session invalidation.\n       @method invalidate\n      @return {Ember.RSVP.Promise} A promise that when it resolves results in the session being invalidated\n      @public\n    */\n    invalidate(data) {\n      return this.get('torii').close(this._provider, data).then(() => {\n        delete this._provider;\n      });\n    },\n\n    _authenticateWithProvider(provider, data) {\n      data.provider = provider;\n      this._provider = data.provider;\n    },\n\n    _assertToriiIsPresent() {\n      const torii = this.get('torii');\n      (true && !(Ember.isPresent(torii)) && Ember.assert('You are trying to use the torii authenticator but torii is not available. Inject torii into the authenticator with \"torii: Ember.inject.service()\".', Ember.isPresent(torii)));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/configuration\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const DEFAULTS = {\n    rootURL: '',\n    routeAfterAuthentication: 'index'\n  };\n  /**\n    Ember Simple Auth's configuration object.\n  \n    @class Configuration\n    @extends Object\n    @module ember-simple-auth/configuration\n    @public\n  */\n\n  var _default = {\n    /**\n      The root URL of the application as configured in `config/environment.js`.\n       @property rootURL\n      @readOnly\n      @static\n      @type String\n      @default ''\n      @public\n    */\n    rootURL: DEFAULTS.rootURL,\n\n    /**\n      The route to transition to after successful authentication.\n       @property routeAfterAuthentication\n      @readOnly\n      @static\n      @type String\n      @default 'index'\n      @public\n    */\n    routeAfterAuthentication: DEFAULTS.routeAfterAuthentication,\n\n    load(config) {\n      this.rootURL = config.rootURL !== undefined ? config.rootURL : DEFAULTS.rootURL;\n      this.routeAfterAuthentication = config.routeAfterAuthentication !== undefined ? config.routeAfterAuthentication : DEFAULTS.routeAfterAuthentication;\n    }\n\n  };\n  _exports.default = _default;\n});","define(\"ember-simple-auth/initializers/setup-session-restoration\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = setupSessionRestoration;\n\n  function setupSessionRestoration(registry) {\n    const ApplicationRoute = registry.resolveRegistration ? registry.resolveRegistration('route:application') : registry.resolve('route:application');\n    ApplicationRoute.reopen({\n      init() {\n        this._super(...arguments);\n\n        const originalBeforeModel = this.beforeModel;\n\n        this.beforeModel = function () {\n          if (!this.__usesApplicationRouteMixn__) {\n            const sessionService = Ember.getOwner(this).lookup('service:session');\n\n            sessionService._setupHandlers();\n          }\n\n          const session = Ember.getOwner(this).lookup('session:main');\n          return session.restore().then(() => originalBeforeModel.apply(this, arguments), () => originalBeforeModel.apply(this, arguments));\n        };\n      }\n\n    });\n  }\n});","define(\"ember-simple-auth/initializers/setup-session-service\", [\"exports\", \"ember-simple-auth/utils/inject\"], function (_exports, _inject) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = setupSessionStore;\n\n  function setupSessionStore(registry) {\n    (0, _inject.default)(registry, 'service:session', 'session', 'session:main');\n  }\n});","define(\"ember-simple-auth/initializers/setup-session\", [\"exports\", \"ember-simple-auth/internal-session\", \"ember-simple-auth/session-stores/ephemeral\", \"ember-simple-auth/utils/inject\"], function (_exports, _internalSession, _ephemeral, _inject) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = setupSession;\n\n  function setupSession(registry) {\n    registry.register('session:main', _internalSession.default);\n    let store = 'session-store:application';\n\n    if (Ember.testing) {\n      store = 'session-store:test';\n      registry.register(store, _ephemeral.default);\n    }\n\n    (0, _inject.default)(registry, 'session:main', 'store', store);\n  }\n});","define(\"ember-simple-auth/internal-session\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const assign = Ember.assign || Ember.merge;\n\n  var _default = Ember.ObjectProxy.extend(Ember.Evented, {\n    authenticator: null,\n    store: null,\n    isAuthenticated: false,\n    attemptedTransition: null,\n\n    init() {\n      this._super(...arguments);\n\n      this.set('content', {\n        authenticated: {}\n      });\n      this._busy = false;\n\n      this._bindToStoreEvents();\n    },\n\n    authenticate(authenticatorFactory, ...args) {\n      this._busy = true;\n      (true && !(!Ember.isEmpty(authenticatorFactory)) && Ember.assert(`Session#authenticate requires the authenticator to be specified, was \"${authenticatorFactory}\"!`, !Ember.isEmpty(authenticatorFactory)));\n\n      const authenticator = this._lookupAuthenticator(authenticatorFactory);\n\n      (true && !(!Ember.isNone(authenticator)) && Ember.assert(`No authenticator for factory \"${authenticatorFactory}\" could be found!`, !Ember.isNone(authenticator)));\n      return authenticator.authenticate(...args).then(content => {\n        this._busy = false;\n        return this._setup(authenticatorFactory, content, true);\n      }, error => {\n        const rejectWithError = () => Ember.RSVP.Promise.reject(error);\n\n        this._busy = false;\n        return this._clear().then(rejectWithError, rejectWithError);\n      });\n    },\n\n    invalidate() {\n      this._busy = true;\n      this.set('attemptedTransition', null);\n\n      if (!this.get('isAuthenticated')) {\n        this._busy = false;\n        return Ember.RSVP.Promise.resolve();\n      }\n\n      let authenticator = this._lookupAuthenticator(this.authenticator);\n\n      return authenticator.invalidate(this.content.authenticated, ...arguments).then(() => {\n        authenticator.off('sessionDataUpdated', this, this._onSessionDataUpdated);\n        this._busy = false;\n        return this._clear(true);\n      }, error => {\n        this.trigger('sessionInvalidationFailed', error);\n        this._busy = false;\n        return Ember.RSVP.Promise.reject(error);\n      });\n    },\n\n    restore() {\n      this._busy = true;\n\n      const reject = () => Ember.RSVP.Promise.reject();\n\n      return this.store.restore().then(restoredContent => {\n        let {\n          authenticator: authenticatorFactory\n        } = restoredContent.authenticated || {};\n\n        if (authenticatorFactory) {\n          delete restoredContent.authenticated.authenticator;\n\n          const authenticator = this._lookupAuthenticator(authenticatorFactory);\n\n          return authenticator.restore(restoredContent.authenticated).then(content => {\n            this.set('content', restoredContent);\n            this._busy = false;\n            return this._setup(authenticatorFactory, content);\n          }, err => {\n            Ember.debug(`The authenticator \"${authenticatorFactory}\" rejected to restore the session - invalidating…`);\n\n            if (err) {\n              Ember.debug(err);\n            }\n\n            this._busy = false;\n            return this._clearWithContent(restoredContent).then(reject, reject);\n          });\n        } else {\n          delete (restoredContent || {}).authenticated;\n          this._busy = false;\n          return this._clearWithContent(restoredContent).then(reject, reject);\n        }\n      }, () => {\n        this._busy = false;\n        return this._clear().then(reject, reject);\n      });\n    },\n\n    _setup(authenticator, authenticatedContent, trigger) {\n      trigger = Boolean(trigger) && !this.get('isAuthenticated');\n      this.setProperties({\n        isAuthenticated: true,\n        authenticator,\n        'content.authenticated': authenticatedContent\n      });\n\n      this._bindToAuthenticatorEvents();\n\n      return this._updateStore().then(() => {\n        if (trigger) {\n          this.trigger('authenticationSucceeded');\n        }\n      }, () => {\n        this.setProperties({\n          isAuthenticated: false,\n          authenticator: null,\n          'content.authenticated': {}\n        });\n      });\n    },\n\n    _clear(trigger) {\n      trigger = Boolean(trigger) && this.get('isAuthenticated');\n      this.setProperties({\n        isAuthenticated: false,\n        authenticator: null,\n        'content.authenticated': {}\n      });\n      return this._updateStore().then(() => {\n        if (trigger) {\n          this.trigger('invalidationSucceeded');\n        }\n      });\n    },\n\n    _clearWithContent(content, trigger) {\n      this.set('content', content);\n      return this._clear(trigger);\n    },\n\n    setUnknownProperty(key, value) {\n      (true && !(key !== 'authenticated') && Ember.assert('\"authenticated\" is a reserved key used by Ember Simple Auth!', key !== 'authenticated'));\n\n      let result = this._super(key, value);\n\n      if (!/^_/.test(key)) {\n        this._updateStore();\n      }\n\n      return result;\n    },\n\n    _updateStore() {\n      let data = this.content;\n\n      if (!Ember.isEmpty(this.authenticator)) {\n        Ember.set(data, 'authenticated', assign({\n          authenticator: this.authenticator\n        }, data.authenticated || {}));\n      }\n\n      return this.store.persist(data);\n    },\n\n    _bindToAuthenticatorEvents() {\n      const authenticator = this._lookupAuthenticator(this.authenticator);\n\n      authenticator.on('sessionDataUpdated', this, this._onSessionDataUpdated);\n      authenticator.on('sessionDataInvalidated', this, this._onSessionDataInvalidated);\n    },\n\n    _onSessionDataUpdated(content) {\n      this._setup(this.authenticator, content);\n    },\n\n    _onSessionDataInvalidated() {\n      this._clear(true);\n    },\n\n    _bindToStoreEvents() {\n      this.store.on('sessionDataUpdated', content => {\n        if (!this._busy) {\n          this._busy = true;\n          let {\n            authenticator: authenticatorFactory\n          } = content.authenticated || {};\n\n          if (authenticatorFactory) {\n            delete content.authenticated.authenticator;\n\n            const authenticator = this._lookupAuthenticator(authenticatorFactory);\n\n            authenticator.restore(content.authenticated).then(authenticatedContent => {\n              this.set('content', content);\n              this._busy = false;\n\n              this._setup(authenticatorFactory, authenticatedContent, true);\n            }, err => {\n              Ember.debug(`The authenticator \"${authenticatorFactory}\" rejected to restore the session - invalidating…`);\n\n              if (err) {\n                Ember.debug(err);\n              }\n\n              this._busy = false;\n\n              this._clearWithContent(content, true);\n            });\n          } else {\n            this._busy = false;\n\n            this._clearWithContent(content, true);\n          }\n        }\n      });\n    },\n\n    _lookupAuthenticator(authenticatorName) {\n      let owner = Ember.getOwner(this);\n      let authenticator = owner.lookup(authenticatorName);\n      Ember.setOwner(authenticator, owner);\n      return authenticator;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/mixins/application-route-mixin\", [\"exports\", \"ember-simple-auth/configuration\", \"ember-simple-auth/utils/is-fastboot\"], function (_exports, _configuration, _isFastboot) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  (true && !(false) && Ember.deprecate('Ember Simple Auth: The ApplicationRouteMixin is now deprecated; it can be safely removed.', false, {\n    id: 'ember-simple-auth.mixins.application-route-mixin',\n    until: '4.0.0'\n  }));\n  /**\n    The mixin for the application route, __defining methods that are called when\n    the session is successfully authenticated (see\n    {{#crossLink \"SessionService/authenticationSucceeded:event\"}}{{/crossLink}})\n    or invalidated__ (see\n    {{#crossLink \"SessionService/invalidationSucceeded:event\"}}{{/crossLink}}).\n  \n    __Using this mixin is optional.__ The session events can also be handled\n    manually, e.g. in an instance initializer:\n  \n    ```js\n    // app/instance-initializers/session-events.js\n    export function initialize(instance) {\n      const applicationRoute = instance.container.lookup('route:application');\n      const session          = instance.container.lookup('service:session');\n      session.on('authenticationSucceeded', function() {\n        applicationRoute.transitionTo('index');\n      });\n      session.on('invalidationSucceeded', function() {\n        applicationRoute.transitionTo('bye');\n      });\n    };\n  \n    export default {\n      initialize,\n      name:  'session-events',\n      after: 'ember-simple-auth'\n    };\n    ```\n  \n    __When using the `ApplicationRouteMixin` you need to specify\n    `needs: ['service:session']` in the application route's unit test.__\n  \n    @class ApplicationRouteMixin\n    @deprecated Call the session service's setup method in the application route's constructor instead\n    @module ember-simple-auth/mixins/application-route-mixin\n    @extends Ember.Mixin\n    @public\n  */\n\n  var _default = Ember.Mixin.create({\n    /**\n      The session service.\n       @property session\n      @readOnly\n      @type SessionService\n      @public\n    */\n    session: Ember.inject.service('session'),\n\n    /**\n      The route to transition to after successful authentication.\n       @property routeAfterAuthentication\n      @type String\n      @default 'index'\n      @public\n    */\n    routeAfterAuthentication: 'index',\n\n    init() {\n      this._super(...arguments);\n\n      this.__usesApplicationRouteMixn__ = true;\n      this._isFastBoot = this.hasOwnProperty('_isFastBoot') ? this._isFastBoot : (0, _isFastboot.default)(Ember.getOwner(this));\n\n      this._subscribeToSessionEvents();\n    },\n\n    _subscribeToSessionEvents() {\n      Ember.A([['authenticationSucceeded', 'sessionAuthenticated'], ['invalidationSucceeded', 'sessionInvalidated']]).forEach(([event, method]) => {\n        this.get('session').on(event, (...args) => this[method](...args));\n      });\n    },\n\n    /**\n      This method handles the session's\n      {{#crossLink \"SessionService/authenticationSucceeded:event\"}}{{/crossLink}}\n      event. If there is a transition that was previously intercepted by the\n      {{#crossLink \"AuthenticatedRouteMixin/beforeModel:method\"}}\n      AuthenticatedRouteMixin's `beforeModel` method{{/crossLink}} it will retry\n      it. If there is no such transition, the `ember_simple_auth-redirectTarget`\n      cookie will be checked for a url that represents an attemptedTransition\n      that was aborted in Fastboot mode, otherwise this action transitions to the\n      {{#crossLink \"AuthenticatedRouteMixin/routeAfterAuthentication:property\"}}{{/crossLink}}.\n        @method sessionAuthenticated\n      @public\n    */\n    sessionAuthenticated() {\n      this.get('session').handleAuthentication(this.get('routeAfterAuthentication'));\n    },\n\n    /**\n      This method handles the session's\n      {{#crossLink \"SessionService/invalidationSucceeded:event\"}}{{/crossLink}}\n      event. __It reloads the Ember.js application__ by redirecting the browser\n      to the application's root URL so that all in-memory data (such as Ember\n      Data stores etc.) gets cleared.\n       If the Ember.js application will be used in an environment where the users\n      don't have direct access to any data stored on the client (e.g.\n      [cordova](http://cordova.apache.org)) this action can be overridden to e.g.\n      simply transition to the index route.\n       @method sessionInvalidated\n      @public\n    */\n    sessionInvalidated() {\n      if (!Ember.testing) {\n        this.get('session').handleInvalidation(_configuration.default.rootURL);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/mixins/authenticated-route-mixin\", [\"exports\", \"ember-simple-auth/-internals/routing\"], function (_exports, _routing) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  (true && !(false) && Ember.deprecate(\"Ember Simple Auth: The AuthenticatedRouteMixin is now deprecated; call the session service's requireAuthentication method in the respective route's beforeModel method instead.\", false, {\n    id: 'ember-simple-auth.mixins.authenticated-route-mixin',\n    until: '4.0.0'\n  }));\n  /**\n    __This mixin is used to make routes accessible only if the session is\n    authenticated.__ It defines a `beforeModel` method that aborts the current\n    transition and instead transitions to the\n    {{#crossLink \"AuthenticatedRouteMixin/authenticationRoute:property\"}}{{/crossLink}} if\n    the session is not authenticated.\n  \n    ```js\n    // app/routes/protected.js\n    import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';\n  \n    export default class ProtectedRoute extends Route.extend(AuthenticatedRouteMixin) {}\n    ```\n  \n    @class AuthenticatedRouteMixin\n    @deprecated Call the session service's requireAuthentication method in the respective route's beforeModel method instead\n    @module ember-simple-auth/mixins/authenticated-route-mixin\n    @extends Ember.Mixin\n    @public\n  */\n\n  var _default = Ember.Mixin.create({\n    /**\n      The session service.\n       @property session\n      @readOnly\n      @type SessionService\n      @public\n    */\n    session: Ember.inject.service('session'),\n\n    /**\n      The route to transition to for authentication. The\n      {{#crossLink \"AuthenticatedRouteMixin\"}}{{/crossLink}} will transition to\n      this route when a route that implements the mixin is accessed when the\n      route is not authenticated.\n       @property authenticationRoute\n      @type String\n      @default 'login'\n      @public\n    */\n    authenticationRoute: 'login',\n\n    /**\n      Checks whether the session is authenticated and if it is not aborts the\n      current transition and instead transitions to the\n      {{#crossLink \"AuthenticatedRouteMixin/authenticationRoute:property\"}}{{/crossLink}}.\n      If the current transition is aborted, this method will save it in the\n      session service's\n      {{#crossLink \"SessionService/attemptedTransition:property\"}}{{/crossLink}}\n      property so that  it can be retried after the session is authenticated\n      (see\n      {{#crossLink \"ApplicationRouteMixin/sessionAuthenticated:method\"}}{{/crossLink}}).\n      If the transition is aborted in Fastboot mode, the transition's target\n      URL will be saved in a `ember_simple_auth-redirectTarget` cookie for use by\n      the browser after authentication is complete.\n       __If `beforeModel` is overridden in a route that uses this mixin, the route's\n     implementation must call `super.beforeModel(...arguments)`__ so that the mixin's\n     `beforeModel` method is actually executed.\n       @method beforeModel\n      @param {Transition} transition The transition that lead to this route\n      @public\n    */\n    beforeModel(transition) {\n      let isAuthenticated = (0, _routing.requireAuthentication)(Ember.getOwner(this), transition);\n\n      if (!isAuthenticated) {\n        this.triggerAuthentication();\n      } else {\n        return this._super(...arguments);\n      }\n    },\n\n    /**\n      Triggers authentication; by default this method transitions to the\n      `authenticationRoute`. In case the application uses an authentication\n      mechanism that does not use an authentication route, this method can be\n      overridden.\n       @method triggerAuthentication\n      @protected\n    */\n    triggerAuthentication() {\n      let authenticationRoute = this.get('authenticationRoute');\n      (true && !(this.get('routeName') !== authenticationRoute) && Ember.assert('The route configured as AuthenticatedRouteMixin.authenticationRoute cannot implement the AuthenticatedRouteMixin mixin as that leads to an infinite transitioning loop!', this.get('routeName') !== authenticationRoute));\n      (0, _routing.triggerAuthentication)(Ember.getOwner(this), authenticationRoute);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/mixins/data-adapter-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  (true && !(false) && Ember.deprecate(\"Ember Simple Auth: The DataAdapterMixin is now deprecated; call the session service's invalidate method in the adapter's handleResponse method instead in case of a 401 response.\", false, {\n    id: 'ember-simple-auth.mixins.data-adapter-mixin',\n    until: '4.0.0'\n  }));\n  /**\n    __This mixin can be used to make Ember Data adapters authorize all outgoing\n    API requests by injecting a header.__ The adapter's `headers` property can be\n    set using data read from the `session` service that is injected by this\n    mixin.\n  \n    __The `DataAdapterMixin` will also invalidate the session whenever it\n    receives a 401 response for an API request.__\n  \n    ```js\n    // app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n    import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';\n    import { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter.extend(DataAdapterMixin) {\n      @computed('session.data.authenticated.token')\n      get headers() {\n        let headers = {};\n        if (this.session.isAuthenticated) {\n          headers['Authorization'] = `Bearer ${this.session.data.authenticated.token}`;\n        }\n  \n        return headers;\n      }\n    }\n    ```\n  \n    __The `DataAdapterMixin` requires Ember Data 1.13 or later.__\n  \n    @class DataAdapterMixin\n    @deprecated Call the session service's invalidate method in the adapter's handleResponse method instead in case of a 401 response\n    @module ember-simple-auth/mixins/data-adapter-mixin\n    @extends Ember.Mixin\n    @public\n  */\n\n  var _default = Ember.Mixin.create({\n    /**\n      The session service.\n       @property session\n      @readOnly\n      @type SessionService\n      @public\n    */\n    session: Ember.inject.service('session'),\n\n    /**\n      This method is called for every response that the adapter receives from the\n      API. If the response has a 401 status code it invalidates the session (see\n      {{#crossLink \"SessionService/invalidate:method\"}}{{/crossLink}}).\n       @method handleResponse\n      @param {Number} status The response status as received from the API\n      @param  {Object} headers HTTP headers as received from the API\n      @param {Any} payload The response body as received from the API\n      @param {Object} requestData the original request information\n      @protected\n    */\n    handleResponse(status, headers, payload, requestData) {\n      this.ensureResponseAuthorized(status, headers, payload, requestData);\n      return this._super(...arguments);\n    },\n\n    /**\n     The default implementation for handleResponse.\n     If the response has a 401 status code it invalidates the session (see\n      {{#crossLink \"SessionService/invalidate:method\"}}{{/crossLink}}).\n      Override this method if you want custom invalidation logic for incoming responses.\n     @method ensureResponseAuthorized\n     @param {Number} status The response status as received from the API\n     @param  {Object} headers HTTP headers as received from the API\n     @param {Any} payload The response body as received from the API\n     @param {Object} requestData the original request information\n    */\n    ensureResponseAuthorized(status\n    /* ,headers, payload, requestData */\n    ) {\n      if (status === 401 && this.get('session.isAuthenticated')) {\n        this.get('session').invalidate();\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/mixins/oauth2-implicit-grant-callback-route-mixin\", [\"exports\", \"ember-simple-auth/utils/location\", \"ember-simple-auth/utils/is-fastboot\", \"ember-simple-auth/authenticators/oauth2-implicit-grant\"], function (_exports, _location, _isFastboot, _oauth2ImplicitGrant) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  (true && !(false) && Ember.deprecate(\"Ember Simple Auth: The OAuth2ImplicitGrantCallbackRouteMixin is now deprecated; call the session service's authenticate method with the appropriate authenticator in the respective route's activate method instead.\", false, {\n    id: 'ember-simple-auth.mixins.oauth2-implicit-grant-callback-route-mixin',\n    until: '4.0.0'\n  }));\n  /**\n    __This mixin is used in the callback route when using OAuth 2.0 Implicit\n    Grant authentication.__ It implements the\n    {{#crossLink \"OAuth2ImplicitGrantCallbackRouteMixin/activate:method\"}}{{/crossLink}}\n    method that retrieves and processes authentication parameters, such as\n    `access_token`, from the hash parameters provided in the callback URL by\n    the authentication server. The parameters are then passed to the\n    {{#crossLink \"OAuth2ImplicitGrantAuthenticator\"}}{{/crossLink}}\n  \n    @class OAuth2ImplicitGrantCallbackRouteMixin\n    @deprecated Call the session service's authenticate method with the appropriate authenticator in the respective route's activate method instead\n    @module ember-simple-auth/mixins/oauth2-implicit-grant-callback-route-mixin\n    @extends Ember.Mixin\n    @public\n  */\n\n  var _default = Ember.Mixin.create({\n    /**\n     The session service.\n      @property session\n     @readOnly\n     @type SessionService\n     @public\n     */\n    session: Ember.inject.service('session'),\n\n    /**\n      The authenticator that should be used to authenticate the callback. This\n      must be a subclass of the\n      {{#crossLink \"OAuth2ImplicitGrantAuthenticator\"}}{{/crossLink}}\n      authenticator.\n       @property authenticator\n      @type String\n      @default null\n      @public\n    */\n    authenticator: null,\n\n    /**\n      Any error that potentially occurs during authentication will be stored in\n      this property.\n       @property error\n      @type String\n      @default null\n      @public\n    */\n    error: null,\n\n    /**\n      Passes the hash received with the redirection from the authentication\n      server to the\n      {{#crossLink \"OAuth2ImplicitGrantAuthenticator\"}}{{/crossLink}} and\n      authenticates the session with the authenticator.\n       @method activate\n      @public\n    */\n    activate() {\n      let _isFastBoot = this.hasOwnProperty('_isFastBoot') ? this._isFastBoot : (0, _isFastboot.default)(Ember.getOwner(this));\n\n      if (_isFastBoot) {\n        return;\n      }\n\n      let authenticator = this.get('authenticator');\n      let hash = (0, _oauth2ImplicitGrant.parseResponse)((0, _location.default)().hash);\n      this.get('session').authenticate(authenticator, hash).catch(err => {\n        this.set('error', err);\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/mixins/unauthenticated-route-mixin\", [\"exports\", \"ember-simple-auth/-internals/routing\"], function (_exports, _routing) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  (true && !(false) && Ember.deprecate(\"Ember Simple Auth: The UnauthenticatedRouteMixin is now deprecated; call the session service's prohibitAuthentication method in the respective route's beforeModel method instead.\", false, {\n    id: 'ember-simple-auth.mixins.unauthenticated-route-mixin',\n    until: '4.0.0'\n  }));\n  /**\n    __This mixin is used to make routes accessible only if the session is\n    not authenticated__ (e.g., login and registration routes). It defines a\n    `beforeModel` method that aborts the current transition and instead\n    transitions to the\n    {{#crossLink \"UnauthenticatedRouteMixin/routeIfAlreadyAuthenticated:property\"}}{{/crossLink}}\n    if the session is authenticated.\n  \n    ```js\n    // app/routes/login.js\n    import Route from '@ember/routing/route';\n    import UnauthenticatedRouteMixin from 'ember-simple-auth/mixins/unauthenticated-route-mixin';\n  \n    export default class LoginRoute extends Route.extend(UnauthenticatedRouteMixin) {}\n    ```\n  \n    @class UnauthenticatedRouteMixin\n    @deprecated Call the session service's prohibitAuthentication method in the respective route's beforeModel method instead\n    @module ember-simple-auth/mixins/unauthenticated-route-mixin\n    @extends Ember.Mixin\n    @public\n  */\n\n  var _default = Ember.Mixin.create({\n    /**\n      The session service.\n       @property session\n      @readOnly\n      @type SessionService\n      @public\n    */\n    session: Ember.inject.service('session'),\n\n    /**\n      The route to transition to if a route that implements the\n      {{#crossLink \"UnauthenticatedRouteMixin\"}}{{/crossLink}} is accessed when\n      the session is authenticated.\n       @property routeIfAlreadyAuthenticated\n      @type String\n      @default 'index'\n      @public\n    */\n    routeIfAlreadyAuthenticated: 'index',\n\n    /**\n      Checks whether the session is authenticated and if it is aborts the current\n      transition and instead transitions to the\n      {{#crossLink \"UnauthenticatedRouteMixin/routeIfAlreadyAuthenticated:property\"}}{{/crossLink}}.\n       __If `beforeModel` is overridden in a route that uses this mixin, the route's\n     implementation must call `this._super(...arguments)`__ so that the mixin's\n     `beforeModel` method is actually executed.\n       @method beforeModel\n      @public\n    */\n    beforeModel() {\n      let routeIfAlreadyAuthenticated = this.get('routeIfAlreadyAuthenticated');\n      (true && !(this.get('routeName') !== routeIfAlreadyAuthenticated) && Ember.assert('The route configured as UnauthenticatedRouteMixin.routeIfAlreadyAuthenticated cannot implement the UnauthenticatedRouteMixin mixin as that leads to an infinite transitioning loop!', this.get('routeName') !== routeIfAlreadyAuthenticated));\n      let owner = Ember.getOwner(this);\n      let sessionService = owner.lookup('service:session');\n\n      if (sessionService.get('isAuthenticated')) {\n        (0, _routing.prohibitAuthentication)(owner, routeIfAlreadyAuthenticated);\n      } else {\n        return this._super(...arguments);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/services/session\", [\"exports\", \"ember-simple-auth/configuration\", \"ember-simple-auth/-internals/routing\"], function (_exports, _configuration, _routing) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const SESSION_DATA_KEY_PREFIX = /^data\\./;\n  let enableEventsDeprecation = true;\n\n  function deprecateSessionEvents() {\n    if (enableEventsDeprecation) {\n      (true && !(false) && Ember.deprecate(\"Ember Simple Auth: The session service's events API is deprecated; to add custom behavior to the authentication or invalidation handling, override the handleAuthentication or handleInvalidation methods.\", false, {\n        id: 'ember-simple-auth.events.session-service',\n        until: '4.0.0'\n      }));\n    }\n  }\n  /**\n    __The session service provides access to the current session as well as\n    methods to authenticate it, invalidate it, etc.__ It is the main interface for\n    the application to Ember Simple Auth's functionality. It can be injected via\n  \n    ```js\n    // app/components/login-form.js\n    import Component from '@ember/component';\n    import { inject as service } from '@ember/service';\n  \n    export default class LoginFormComponent extends Component {\n      @service session;\n    }\n    ```\n  \n    @class SessionService\n    @module ember-simple-auth/services/session\n    @extends Ember.Service\n    @uses Ember.Evented\n    @public\n  */\n\n\n  var _default = Ember.Service.extend(Ember.Evented, {\n    /**\n      Triggered whenever the session is successfully authenticated. This happens\n      when the session gets authenticated via\n      {{#crossLink \"SessionService/authenticate:method\"}}{{/crossLink}} but also\n      when the session is authenticated in another tab or window of the same\n      application and the session state gets synchronized across tabs or windows\n      via the store (see\n      {{#crossLink \"BaseStore/sessionDataUpdated:event\"}}{{/crossLink}}).\n       When using the {{#crossLink \"ApplicationRouteMixin\"}}{{/crossLink}} this\n      event will automatically get handled (see\n      {{#crossLink \"ApplicationRouteMixin/sessionAuthenticated:method\"}}{{/crossLink}}).\n       @event authenticationSucceeded\n      @public\n    */\n\n    /**\n      Triggered whenever the session is successfully invalidated. This happens\n      when the session gets invalidated via\n      {{#crossLink \"SessionService/invalidate:method\"}}{{/crossLink}} but also\n      when the session is invalidated in another tab or window of the same\n      application and the session state gets synchronized across tabs or windows\n      via the store (see\n      {{#crossLink \"BaseStore/sessionDataUpdated:event\"}}{{/crossLink}}).\n       When using the {{#crossLink \"ApplicationRouteMixin\"}}{{/crossLink}} this\n      event will automatically get handled (see\n      {{#crossLink \"ApplicationRouteMixin/sessionInvalidated:method\"}}{{/crossLink}}).\n       @event invalidationSucceeded\n      @public\n    */\n\n    /**\n      Returns whether the session is currently authenticated.\n       @property isAuthenticated\n      @type Boolean\n      @readOnly\n      @default false\n      @public\n    */\n    isAuthenticated: Ember.computed.oneWay('session.isAuthenticated'),\n\n    /**\n      The current session data as a plain object. The\n      `authenticated` key holds the session data that the authenticator resolved\n      with when the session was authenticated (see\n      {{#crossLink \"BaseAuthenticator/authenticate:method\"}}{{/crossLink}}) and\n      that will be cleared when the session is invalidated. This data cannot be\n      written. All other session data is writable and will not be cleared when\n      the session is invalidated.\n       @property data\n      @type Object\n      @readOnly\n      @default { authenticated: {} }\n      @public\n    */\n    data: Ember.computed.oneWay('session.content'),\n\n    /**\n      The session store.\n       @property store\n      @type BaseStore\n      @readOnly\n      @default null\n      @public\n    */\n    store: Ember.computed.oneWay('session.store'),\n\n    /**\n      A previously attempted but intercepted transition (e.g. by the\n      {{#crossLink \"AuthenticatedRouteMixin\"}}{{/crossLink}}). If an attempted\n      transition is present, the\n      {{#crossLink \"ApplicationRouteMixin\"}}{{/crossLink}} will retry it when the\n      session becomes authenticated (see\n      {{#crossLink \"ApplicationRouteMixin/sessionAuthenticated:method\"}}{{/crossLink}}).\n       @property attemptedTransition\n      @type Transition\n      @default null\n      @public\n    */\n    attemptedTransition: Ember.computed.alias('session.attemptedTransition'),\n\n    init() {\n      this._super(...arguments);\n\n      this._forwardSessionEvents();\n    },\n\n    set(key, value) {\n      const setsSessionData = SESSION_DATA_KEY_PREFIX.test(key);\n\n      if (setsSessionData) {\n        const sessionDataKey = `session.${key.replace(SESSION_DATA_KEY_PREFIX, '')}`;\n        return this._super(sessionDataKey, value);\n      } else {\n        return this._super(...arguments);\n      }\n    },\n\n    _forwardSessionEvents() {\n      Ember.A(['authenticationSucceeded', 'invalidationSucceeded']).forEach(event => {\n        const session = this.get('session'); // the internal session won't be available in route unit tests\n\n        if (session) {\n          session.on(event, () => {\n            enableEventsDeprecation = false;\n            this.trigger(event, ...arguments);\n            enableEventsDeprecation = true;\n          });\n        }\n      });\n    },\n\n    on() {\n      deprecateSessionEvents();\n      return this._super(...arguments);\n    },\n\n    one() {\n      deprecateSessionEvents();\n      return this._super(...arguments);\n    },\n\n    off() {\n      deprecateSessionEvents();\n      return this._super(...arguments);\n    },\n\n    has() {\n      deprecateSessionEvents();\n      return this._super(...arguments);\n    },\n\n    trigger() {\n      deprecateSessionEvents();\n      return this._super(...arguments);\n    },\n\n    _setupHandlers() {\n      this.get('session').on('authenticationSucceeded', () => this.handleAuthentication(_configuration.default.routeAfterAuthentication));\n      this.get('session').on('invalidationSucceeded', () => this.handleInvalidation(_configuration.default.rootURL));\n    },\n\n    /**\n      __Authenticates the session with an `authenticator`__ and appropriate\n      arguments. The authenticator implements the actual steps necessary to\n      authenticate the session (see\n      {{#crossLink \"BaseAuthenticator/authenticate:method\"}}{{/crossLink}}) and\n      returns a promise after doing so. The session handles the returned promise\n      and when it resolves becomes authenticated, otherwise remains\n      unauthenticated. All data the authenticator resolves with will be\n      accessible via the\n      {{#crossLink \"SessionService/data:property\"}}session data's{{/crossLink}}\n      `authenticated` property.\n       __This method returns a promise. A resolving promise indicates that the\n      session was successfully authenticated__ while a rejecting promise\n      indicates that authentication failed and the session remains\n      unauthenticated. The promise does not resolve with a value; instead, the\n      data returned from the authenticator is available via the\n      {{#crossLink \"SessionService/data:property\"}}{{/crossLink}} property.\n       When authentication succeeds this will trigger the\n      {{#crossLink \"SessionService/authenticationSucceeded:event\"}}{{/crossLink}}\n      event.\n       @method authenticate\n      @param {String} authenticator The authenticator to use to authenticate the session\n      @param {Any} [...args] The arguments to pass to the authenticator; depending on the type of authenticator these might be a set of credentials, a Facebook OAuth Token, etc.\n      @return {Ember.RSVP.Promise} A promise that resolves when the session was authenticated successfully and rejects otherwise\n      @public\n    */\n    authenticate() {\n      const session = this.get('session');\n      return session.authenticate(...arguments);\n    },\n\n    /**\n      __Invalidates the session with the authenticator it is currently\n      authenticated with__ (see\n      {{#crossLink \"SessionService/authenticate:method\"}}{{/crossLink}}). This\n      invokes the authenticator's\n      {{#crossLink \"BaseAuthenticator/invalidate:method\"}}{{/crossLink}} method\n      and handles the returned promise accordingly.\n       This method returns a promise. A resolving promise indicates that the\n      session was successfully invalidated while a rejecting promise indicates\n      that invalidation failed and the session remains authenticated. Once the\n      session is successfully invalidated it clears all of its authenticated data\n      (see {{#crossLink \"SessionService/data:property\"}}{{/crossLink}}).\n       When invalidation succeeds this will trigger the\n      {{#crossLink \"SessionService/invalidationSucceeded:event\"}}{{/crossLink}}\n      event.\n       When calling the {{#crossLink \"BaseAuthenticator/invalidate:method\"}}{{/crossLink}}\n      on an already unauthenticated session, the method will return a resolved Promise\n      immediately.\n       @method invalidate\n      @param {Array} ...args arguments that will be passed to the authenticator\n      @return {Ember.RSVP.Promise} A promise that resolves when the session was invalidated successfully and rejects otherwise\n      @public\n    */\n    invalidate() {\n      const session = this.get('session');\n      return session.invalidate(...arguments);\n    },\n\n    /**\n      Checks whether the session is authenticated and if it is not, transitions\n      to the specified route or invokes the specified callback.\n       If a transition is in progress and is aborted, this method will save it in the\n      session service's\n      {{#crossLink \"SessionService/attemptedTransition:property\"}}{{/crossLink}}\n      property so that  it can be retried after the session is authenticated. If\n      the transition is aborted in Fastboot mode, the transition's target URL\n      will be saved in a `ember_simple_auth-redirectTarget` cookie for use by the\n      browser after authentication is complete.\n       @method requireAuthentication\n      @param {Transition} transition A transition that triggered the authentication requirement or null if the requirement originated independently of a transition\n      @param {String|Function} routeOrCallback The route to transition to in case that the session is not authenticated or a callback function to invoke in that case\n      @return {Boolean} true when the session is authenticated, false otherwise\n      @public\n    */\n    requireAuthentication(transition, routeOrCallback) {\n      let isAuthenticated = (0, _routing.requireAuthentication)(Ember.getOwner(this), transition);\n\n      if (!isAuthenticated) {\n        let argType = typeof routeOrCallback;\n\n        if (argType === 'string') {\n          (0, _routing.triggerAuthentication)(Ember.getOwner(this), routeOrCallback);\n        } else if (argType === 'function') {\n          routeOrCallback();\n        } else {\n          (true && !(false) && Ember.assert(`The second argument to requireAuthentication must be a String or Function, got \"${argType}\"!`, false));\n        }\n      }\n\n      return isAuthenticated;\n    },\n\n    /**\n      Checks whether the session is authenticated and if it is, transitions\n      to the specified route or invokes the specified callback.\n       @method prohibitAuthentication\n      @param {String|Function} routeOrCallback The route to transition to in case that the session is authenticated or a callback function to invoke in that case\n      @return {Boolean} true when the session is not authenticated, false otherwise\n      @public\n    */\n    prohibitAuthentication(routeOrCallback) {\n      let isAuthenticated = this.get('isAuthenticated');\n\n      if (isAuthenticated) {\n        let argType = typeof routeOrCallback;\n\n        if (argType === 'string') {\n          (0, _routing.prohibitAuthentication)(Ember.getOwner(this), routeOrCallback);\n        } else if (argType === 'function') {\n          routeOrCallback();\n        } else {\n          (true && !(false) && Ember.assert(`The first argument to prohibitAuthentication must be a String or Function, got \"${argType}\"!`, false));\n        }\n      }\n\n      return !isAuthenticated;\n    },\n\n    /**\n      This method is called whenever the session goes from being unauthenticated\n      to being authenticated. If there is a transition that was previously\n      intercepted by the\n      {{#crossLink \"SessionService/requireAuthentication:method\"}}{{/crossLink}},\n      it will retry it. If there is no such transition, the\n      `ember_simple_auth-redirectTarget` cookie will be checked for a url that\n      represents an attemptedTransition that was aborted in Fastboot mode,\n      otherwise this action transitions to the specified\n      routeAfterAuthentication.\n       @method handleAuthentication\n      @param {String} routeAfterAuthentication The route to transition to\n      @public\n    */\n    handleAuthentication(routeAfterAuthentication) {\n      (0, _routing.handleSessionAuthenticated)(Ember.getOwner(this), routeAfterAuthentication);\n    },\n\n    /**\n      This method is called whenever the session goes from being authenticated to\n      not being authenticated. __It reloads the Ember.js application__ by\n      redirecting the browser to the specified route so that all in-memory data\n      (such as Ember Data stores etc.) gets cleared.\n       If the Ember.js application will be used in an environment where the users\n      don't have direct access to any data stored on the client (e.g.\n      [cordova](http://cordova.apache.org)) this action can be overridden to e.g.\n      simply transition to the index route.\n       @method handleInvalidation\n      @param {String} routeAfterInvalidation The route to transition to\n      @public\n    */\n    handleInvalidation(routeAfterInvalidation) {\n      (0, _routing.handleSessionInvalidated)(Ember.getOwner(this), routeAfterInvalidation);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/session-stores/adaptive\", [\"exports\", \"ember-simple-auth/session-stores/base\", \"ember-simple-auth/session-stores/local-storage\", \"ember-simple-auth/session-stores/cookie\"], function (_exports, _base, _localStorage, _cookie) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const LOCAL_STORAGE_TEST_KEY = '_ember_simple_auth_test_key';\n\n  const proxyToInternalStore = function () {\n    return Ember.computed({\n      get(key) {\n        return this.get(`_${key}`);\n      },\n\n      set(key, value) {\n        this.set(`_${key}`, value);\n\n        let _store = this.get('_store');\n\n        if (_store) {\n          _store.set(key, value);\n        }\n\n        return value;\n      }\n\n    });\n  };\n  /**\n    Session store that persists data in the browser's `localStorage` (see\n    {{#crossLink \"LocalStorageStore\"}}{{/crossLink}}) if that is available or in\n    a cookie (see {{#crossLink \"CookieStore\"}}{{/crossLink}}) if it is not.\n  \n    __This is the default store that Ember Simple Auth will use when the\n    application doesn't define a custom store.__\n  \n    __This session store does not work with FastBoot. In order to use Ember\n    Simple Auth with FastBoot, configure the\n    {{#crossLink \"CookieStore\"}}{{/crossLink}} as the application's session\n    store.__\n  \n    @class AdaptiveStore\n    @module ember-simple-auth/session-stores/adaptive\n    @extends BaseStore\n    @public\n  */\n\n\n  var _default = _base.default.extend({\n    /**\n      The `localStorage` key the store persists data in if `localStorage` is\n      available.\n       @property localStorageKey\n      @type String\n      @default 'ember_simple_auth-session'\n      @public\n    */\n    localStorageKey: 'ember_simple_auth-session',\n\n    /**\n      The domain to use for the cookie if `localStorage` is not available, e.g.,\n      \"example.com\", \".example.com\" (which includes all subdomains) or\n      \"subdomain.example.com\". If not explicitly set, the cookie domain defaults\n      to the domain the session was authenticated on.\n       @property cookieDomain\n      @type String\n      @default null\n      @public\n    */\n    _cookieDomain: null,\n    cookieDomain: proxyToInternalStore(),\n\n    /**\n      The name of the cookie to use if `localStorage` is not available.\n       @property cookieName\n      @type String\n      @default ember_simple_auth-session\n      @public\n    */\n    _cookieName: 'ember_simple_auth-session',\n    cookieName: proxyToInternalStore(),\n\n    /**\n      The path to use for the cookie, e.g., \"/\", \"/something\".\n       @property cookiePath\n      @type String\n      @default '/'\n      @public\n    */\n    _cookiePath: '/',\n    cookiePath: proxyToInternalStore(),\n\n    /**\n      The expiration time for the cookie in seconds if `localStorage` is not\n      available. A value of `null` will make the cookie a session cookie that\n      expires and gets deleted when the browser is closed.\n       @property cookieExpirationTime\n      @default null\n      @type Integer\n      @public\n    */\n    _cookieExpirationTime: null,\n    cookieExpirationTime: proxyToInternalStore(),\n    _cookies: Ember.inject.service('cookies'),\n\n    init() {\n      this._super(...arguments);\n\n      let owner = Ember.getOwner(this);\n\n      if (owner && !this.hasOwnProperty('_fastboot')) {\n        this._fastboot = owner.lookup('service:fastboot');\n      }\n\n      this._isLocalStorageAvailable = this.hasOwnProperty('_isLocalStorageAvailable') ? this._isLocalStorageAvailable : testLocalStorageAvailable();\n      let store;\n\n      if (this.get('_isLocalStorageAvailable')) {\n        const options = {\n          key: this.get('localStorageKey')\n        };\n        options._isFastBoot = false;\n        store = this._createStore(_localStorage.default, options);\n      } else {\n        const options = this.getProperties('cookieDomain', 'cookieName', 'cookieExpirationTime', 'cookiePath');\n        options._fastboot = this.get('_fastboot');\n        options._cookies = this.get('_cookies');\n        store = this._createStore(_cookie.default, options);\n        this.set('cookieExpirationTime', store.get('cookieExpirationTime'));\n      }\n\n      this.set('_store', store);\n    },\n\n    _createStore(storeType, options) {\n      let owner = Ember.getOwner(this);\n      const store = storeType.create(owner.ownerInjection(), options);\n      store.on('sessionDataUpdated', data => {\n        this.trigger('sessionDataUpdated', data);\n      });\n      return store;\n    },\n\n    /**\n      Persists the `data` in the `localStorage` if it is available or in a cookie\n      if it is not.\n       @method persist\n      @param {Object} data The data to persist\n      @return {Ember.RSVP.Promise} A promise that resolves when the data has successfully been persisted and rejects otherwise.\n      @public\n    */\n    persist() {\n      return this.get('_store').persist(...arguments);\n    },\n\n    /**\n      Returns all data currently stored in the `localStorage` if that is\n      available - or if it is not, in the cookie - as a plain object.\n       @method restore\n      @return {Ember.RSVP.Promise} A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise.\n      @public\n    */\n    restore() {\n      return this.get('_store').restore();\n    },\n\n    /**\n      Clears the store by deleting the\n      {{#crossLink \"LocalStorageStore/key:property\"}}{{/crossLink}} from\n      `localStorage` if that is available or by deleting the cookie if it is not.\n       @method clear\n      @return {Ember.RSVP.Promise} A promise that resolves when the store has been cleared successfully and rejects otherwise.\n      @public\n    */\n    clear() {\n      return this.get('_store').clear();\n    }\n\n  });\n\n  _exports.default = _default;\n\n  function testLocalStorageAvailable() {\n    try {\n      localStorage.setItem(LOCAL_STORAGE_TEST_KEY, true);\n      localStorage.removeItem(LOCAL_STORAGE_TEST_KEY);\n      return true;\n    } catch (e) {\n      return false;\n    }\n  }\n});","define(\"ember-simple-auth/session-stores/base\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n    The base class for all session stores. __This serves as a starting point for\n    implementing custom session stores and must not be used directly.__\n  \n    Session Stores persist the session's state so that it survives a page reload\n    and is synchronized across multiple tabs or windows of the same application.\n  \n    @class BaseStore\n    @module ember-simple-auth/session-stores/base\n    @extends Ember.Object\n    @uses Ember.Evented\n    @public\n  */\n  var _default = Ember.Object.extend(Ember.Evented, {\n    /**\n      Triggered when the session store's data changes due to an external event,\n      e.g., from another tab or window of the same application. The session\n      handles that event, passes the updated data to its authenticator's\n      {{#crossLink \"BaseAuthenticator/restore:method\"}}{{/crossLink}} method and\n      handles the result of that invocation accordingly.\n       @event sessionDataUpdated\n      @param {Object} data The updated session data\n      @public\n    */\n\n    /**\n      Persists the `data`. This replaces all currently stored data.\n       `BaseStores`'s implementation always returns a rejecting promise. __This\n      method must be overridden in subclasses__.\n       @method persist\n      @param {Object} data The data to persist\n      @return {Ember.RSVP.Promise} A promise that resolves when the data has successfully been persisted and rejects otherwise.\n      @public\n    */\n    persist() {\n      return Ember.RSVP.reject();\n    },\n\n    /**\n      Returns all data currently stored as a plain object.\n       `BaseStores`'s implementation always returns a rejecting promise. __This\n      method must be overridden in subclasses__.\n       @method restore\n      @return {Ember.RSVP.Promise} A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise.\n      @public\n    */\n    restore() {\n      return Ember.RSVP.reject();\n    },\n\n    /**\n      Clears the store.\n       `BaseStores`'s implementation always returns a rejecting promise. __This\n      method must be overridden in subclasses__.\n       @method clear\n      @return {Ember.RSVP.Promise} A promise that resolves when the store has been cleared successfully and rejects otherwise.\n      @public\n    */\n    clear() {\n      return Ember.RSVP.reject();\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/session-stores/cookie\", [\"exports\", \"ember-simple-auth/session-stores/base\", \"ember-simple-auth/utils/objects-are-equal\"], function (_exports, _base, _objectsAreEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const persistingProperty = function (beforeSet = function () {}) {\n    return Ember.computed({\n      get(key) {\n        return this.get(`_${key}`);\n      },\n\n      set(key, value) {\n        beforeSet.apply(this, [key, value]);\n        this.set(`_${key}`, value);\n        Ember.run.scheduleOnce('actions', this, this.rewriteCookie);\n        return value;\n      }\n\n    });\n  };\n  /**\n    Session store that persists data in a cookie.\n  \n    By default the cookie session store uses a session cookie that expires and is\n    deleted when the browser is closed. The cookie expiration period can be\n    configured by setting the\n    {{#crossLink \"CookieStore/cookieExpirationTime:property\"}}{{/crossLink}}\n    property. This can be used to implement \"remember me\" functionality that will\n    either store the session persistently or in a session cookie depending on\n    whether the user opted in or not:\n  \n    ```js\n    // app/controllers/login.js\n    import Controller from '@ember/controller';\n    import { inject as service } from '@ember/service';\n  \n    export default class LoginController extends Controller {\n      @service session;\n      _rememberMe = false;\n  \n      get rememberMe() {\n        return this._rememberMe;\n      }\n  \n      set rememberMe(value) {\n        let expirationTime = value ? (14 * 24 * 60 * 60) : null;\n        this.set('session.store.cookieExpirationTime', expirationTime);\n        this._rememberMe = value;\n      }\n    }\n    ```\n  \n    __Applications that use FastBoot must use this session store by defining the\n    application session store like this:__\n  \n    ```js\n    // app/session-stores/application.js\n    import CookieStore from 'ember-simple-auth/session-stores/cookie';\n  \n    export default class ApplicationSessionStore extends CookieStore {}\n    ```\n  \n    @class CookieStore\n    @module ember-simple-auth/session-stores/cookie\n    @extends BaseStore\n    @public\n  */\n\n\n  var _default = _base.default.extend({\n    _syncDataTimeout: null,\n    _renewExpirationTimeout: null,\n\n    /**\n      The domain to use for the cookie, e.g., \"example.com\", \".example.com\"\n      (which includes all subdomains) or \"subdomain.example.com\". If not\n      explicitly set, the cookie domain defaults to the domain the session was\n      authenticated on.\n       @property cookieDomain\n      @type String\n      @default null\n      @public\n    */\n    _cookieDomain: null,\n    cookieDomain: persistingProperty(),\n\n    /**\n      Allows servers to assert that a cookie ought not to be sent along with cross-site requests,\n      which provides some protection against cross-site request forgery attacks (CSRF).\n      Available options:\n      - \"Strict\"\n      - \"Lax\"\n      @property sameSite\n      @type String\n      @default null\n      @public\n    */\n    _sameSite: null,\n    sameSite: persistingProperty(),\n\n    /**\n      The name of the cookie.\n       @property cookieName\n      @type String\n      @default ember_simple_auth-session\n      @public\n    */\n    _cookieName: 'ember_simple_auth-session',\n    cookieName: persistingProperty(function () {\n      this._oldCookieName = this._cookieName;\n    }),\n\n    /**\n      The path to use for the cookie, e.g., \"/\", \"/something\".\n       @property cookiePath\n      @type String\n      @default '/'\n      @public\n    */\n    _cookiePath: '/',\n    cookiePath: persistingProperty(),\n\n    /**\n      The expiration time for the cookie in seconds. A value of `null` will make\n      the cookie a session cookie that expires and gets deleted when the browser\n      is closed.\n       The recommended minimum value is 90 seconds. If your value is less than\n      that, the cookie may expire before its expiration time is extended\n      (expiration time is extended every 60 seconds).\n       @property cookieExpirationTime\n      @default null\n      @type Integer\n      @public\n    */\n    _cookieExpirationTime: null,\n    cookieExpirationTime: persistingProperty(function (key, value) {\n      // When nulling expiry time on purpose, we need to clear the cached value.\n      // Otherwise, `_calculateExpirationTime` will reuse it.\n      if (Ember.isNone(value)) {\n        this.get('_cookies').clear(`${this.get('cookieName')}-expiration_time`);\n      } else if (value < 90) {\n        (true && Ember.warn('The recommended minimum value for `cookieExpirationTime` is 90 seconds. If your value is less than that, the cookie may expire before its expiration time is extended (expiration time is extended every 60 seconds).', false, {\n          id: 'ember-simple-auth.cookieExpirationTime'\n        }));\n      }\n    }),\n    _cookies: Ember.inject.service('cookies'),\n\n    _secureCookies() {\n      if (this.get('_fastboot.isFastBoot')) {\n        return this.get('_fastboot.request.protocol') === 'https';\n      }\n\n      return window.location.protocol === 'https:';\n    },\n\n    _isPageVisible() {\n      if (this.get('_fastboot.isFastBoot')) {\n        return false;\n      } else {\n        const visibilityState = typeof document !== 'undefined' ? document.visibilityState || 'visible' : false;\n        return visibilityState === 'visible';\n      }\n    },\n\n    init() {\n      this._super(...arguments);\n\n      let owner = Ember.getOwner(this);\n\n      if (owner && !this.hasOwnProperty('_fastboot')) {\n        this._fastboot = owner.lookup('service:fastboot');\n      }\n\n      let cachedExpirationTime = this._read(`${this.get('cookieName')}-expiration_time`);\n\n      if (cachedExpirationTime) {\n        this.set('cookieExpirationTime', parseInt(cachedExpirationTime, 10));\n      }\n\n      if (!this.get('_fastboot.isFastBoot')) {\n        Ember.run.next(() => {\n          this._syncData().then(() => {\n            this._renewExpiration();\n          });\n        });\n      } else {\n        this._renew();\n      }\n    },\n\n    /**\n      Persists the `data` in the cookie.\n       @method persist\n      @param {Object} data The data to persist\n      @return {Ember.RSVP.Promise} A promise that resolves when the data has successfully been persisted and rejects otherwise.\n      @public\n    */\n    persist(data) {\n      this._lastData = data;\n      data = JSON.stringify(data || {});\n\n      let expiration = this._calculateExpirationTime();\n\n      this._write(data, expiration);\n\n      return Ember.RSVP.resolve();\n    },\n\n    /**\n      Returns all data currently stored in the cookie as a plain object.\n       @method restore\n      @return {Ember.RSVP.Promise} A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise.\n      @public\n    */\n    restore() {\n      let data = this._read(this.get('cookieName'));\n\n      if (Ember.isEmpty(data)) {\n        return Ember.RSVP.resolve({});\n      } else {\n        return Ember.RSVP.resolve(JSON.parse(data));\n      }\n    },\n\n    /**\n      Clears the store by deleting the cookie.\n       @method clear\n      @return {Ember.RSVP.Promise} A promise that resolves when the store has been cleared successfully and rejects otherwise.\n      @public\n    */\n    clear() {\n      this._write('', 0);\n\n      this._lastData = {};\n      return Ember.RSVP.resolve();\n    },\n\n    _read(name) {\n      return this.get('_cookies').read(name) || '';\n    },\n\n    _calculateExpirationTime() {\n      let cachedExpirationTime = this._read(`${this.get('cookieName')}-expiration_time`);\n\n      cachedExpirationTime = cachedExpirationTime ? new Date().getTime() + cachedExpirationTime * 1000 : null;\n      return this.get('cookieExpirationTime') ? new Date().getTime() + this.get('cookieExpirationTime') * 1000 : cachedExpirationTime;\n    },\n\n    _write(value, expiration) {\n      let cookieOptions = {\n        domain: this.get('cookieDomain'),\n        expires: Ember.isEmpty(expiration) ? null : new Date(expiration),\n        path: this.get('cookiePath'),\n        secure: this._secureCookies(),\n        sameSite: this.get('sameSite')\n      };\n\n      if (this._oldCookieName) {\n        Ember.A([this._oldCookieName, `${this._oldCookieName}-expiration_time`]).forEach(oldCookie => {\n          this.get('_cookies').clear(oldCookie);\n        });\n        delete this._oldCookieName;\n      }\n\n      this.get('_cookies').write(this.get('cookieName'), value, cookieOptions);\n\n      if (!Ember.isEmpty(expiration)) {\n        let expirationCookieName = `${this.get('cookieName')}-expiration_time`;\n        let cachedExpirationTime = this.get('_cookies').read(expirationCookieName);\n        this.get('_cookies').write(expirationCookieName, this.get('cookieExpirationTime') || cachedExpirationTime, cookieOptions);\n      }\n    },\n\n    _syncData() {\n      return this.restore().then(data => {\n        if (!(0, _objectsAreEqual.default)(data, this._lastData)) {\n          this._lastData = data;\n          this.trigger('sessionDataUpdated', data);\n        }\n\n        if (!Ember.testing) {\n          Ember.run.cancel(this._syncDataTimeout);\n          this._syncDataTimeout = Ember.run.later(this, this._syncData, 500);\n        }\n      });\n    },\n\n    _renew() {\n      return this.restore().then(data => {\n        if (!Ember.isEmpty(data) && !(data.constructor === Object && Object.keys(data).length === 0)) {\n          data = Ember.typeOf(data) === 'string' ? data : JSON.stringify(data || {});\n\n          let expiration = this._calculateExpirationTime();\n\n          this._write(data, expiration);\n        }\n      });\n    },\n\n    _renewExpiration() {\n      if (!Ember.testing) {\n        Ember.run.cancel(this._renewExpirationTimeout);\n        this._renewExpirationTimeout = Ember.run.later(this, this._renewExpiration, 60000);\n      }\n\n      if (this._isPageVisible()) {\n        return this._renew();\n      } else {\n        return Ember.RSVP.resolve();\n      }\n    },\n\n    rewriteCookie() {\n      // if `cookieName` has not been renamed, `oldCookieName` will be nil\n      const cookieName = this._oldCookieName || this._cookieName;\n\n      const data = this._read(cookieName);\n\n      if (Ember.isPresent(data)) {\n        const expiration = this._calculateExpirationTime();\n\n        this._write(data, expiration);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/session-stores/ephemeral\", [\"exports\", \"ember-simple-auth/session-stores/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n    Session store that __persists data in memory and thus is not actually\n    persistent__. It does also not synchronize the session's state across\n    multiple tabs or windows as those cannot share memory. __This store is mainly\n    useful for testing and will automatically be used when running tests.__\n  \n    @class EphemeralStore\n    @module ember-simple-auth/session-stores/ephemeral\n    @extends BaseStore\n    @public\n  */\n  var _default = _base.default.extend({\n    init() {\n      this._super(...arguments);\n\n      this.clear();\n    },\n\n    /**\n      Persists `data`. This replaces all currently stored data.\n       @method persist\n      @param {Object} data The data to persist\n      @return {Ember.RSVP.Promise} A promise that resolves when the data has successfully been persisted and rejects otherwise.\n      @public\n    */\n    persist(data) {\n      this._data = JSON.stringify(data || {});\n      return Ember.RSVP.resolve();\n    },\n\n    /**\n      Returns all data currently stored as a plain object.\n       @method restore\n      @return {Ember.RSVP.Promise} A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise.\n      @public\n    */\n    restore() {\n      const data = JSON.parse(this._data) || {};\n      return Ember.RSVP.resolve(data);\n    },\n\n    /**\n      Clears the store.\n       @method clear\n      @return {Ember.RSVP.Promise} A promise that resolves when the store has been cleared successfully and rejects otherwise.\n      @public\n    */\n    clear() {\n      delete this._data;\n      this._data = '{}';\n      return Ember.RSVP.resolve();\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/session-stores/local-storage\", [\"exports\", \"ember-simple-auth/session-stores/base\", \"ember-simple-auth/utils/objects-are-equal\", \"ember-simple-auth/utils/is-fastboot\"], function (_exports, _base, _objectsAreEqual, _isFastboot) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n    Session store that persists data in the browser's `localStorage`.\n  \n    __`localStorage` is not available in Safari when running in private mode. In\n    general it is better to use the\n    {{#crossLink \"AdaptiveStore\"}}{{/crossLink}} that automatically falls back to\n    the {{#crossLink \"CookieStore\"}}{{/crossLink}} when `localStorage` is not\n    available.__\n  \n    __This session store does not work with FastBoot. In order to use Ember\n    Simple Auth with FastBoot, configure the\n    {{#crossLink \"CookieStore\"}}{{/crossLink}} as the application's session\n    store.__\n  \n    @class LocalStorageStore\n    @module ember-simple-auth/session-stores/local-storage\n    @extends BaseStore\n    @public\n  */\n  var _default = _base.default.extend({\n    /**\n      The `localStorage` key the store persists data in.\n       @property key\n      @type String\n      @default 'ember_simple_auth-session'\n      @public\n    */\n    key: 'ember_simple_auth-session',\n\n    init() {\n      this._super(...arguments);\n\n      this._isFastBoot = this.hasOwnProperty('_isFastBoot') ? this._isFastBoot : (0, _isFastboot.default)(Ember.getOwner(this));\n      this._boundHandler = Ember.run.bind(this, this._handleStorageEvent);\n\n      if (!this.get('_isFastBoot')) {\n        window.addEventListener('storage', this._boundHandler);\n      }\n    },\n\n    willDestroy() {\n      if (!this.get('_isFastBoot')) {\n        window.removeEventListener('storage', this._boundHandler);\n      }\n    },\n\n    /**\n      Persists the `data` in the `localStorage`.\n       @method persist\n      @param {Object} data The data to persist\n      @return {Ember.RSVP.Promise} A promise that resolves when the data has successfully been persisted and rejects otherwise.\n      @public\n    */\n    persist(data) {\n      this._lastData = data;\n      data = JSON.stringify(data || {});\n      localStorage.setItem(this.key, data);\n      return Ember.RSVP.resolve();\n    },\n\n    /**\n      Returns all data currently stored in the `localStorage` as a plain object.\n       @method restore\n      @return {Ember.RSVP.Promise} A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise.\n      @public\n    */\n    restore() {\n      let data = localStorage.getItem(this.key);\n      return Ember.RSVP.resolve(JSON.parse(data) || {});\n    },\n\n    /**\n      Clears the store by deleting the\n      {{#crossLink \"LocalStorageStore/key:property\"}}{{/crossLink}} from\n      `localStorage`.\n       @method clear\n      @return {Ember.RSVP.Promise} A promise that resolves when the store has been cleared successfully and rejects otherwise.\n      @public\n    */\n    clear() {\n      localStorage.removeItem(this.key);\n      this._lastData = {};\n      return Ember.RSVP.resolve();\n    },\n\n    _handleStorageEvent(e) {\n      if (e.key === this.get('key')) {\n        this.restore().then(data => {\n          if (!(0, _objectsAreEqual.default)(data, this._lastData)) {\n            this._lastData = data;\n            this.trigger('sessionDataUpdated', data);\n          }\n        });\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/session-stores/session-storage\", [\"exports\", \"ember-simple-auth/session-stores/base\", \"ember-simple-auth/utils/objects-are-equal\", \"ember-simple-auth/utils/is-fastboot\"], function (_exports, _base, _objectsAreEqual, _isFastboot) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n    Session store that persists data in the browser's `sessionStorage`.\n  \n    __`sessionStorage` is not available in Safari when running in private mode.__\n  \n    __This session store does not work with FastBoot. In order to use Ember\n    Simple Auth with FastBoot, configure the\n    {{#crossLink \"CookieStore\"}}{{/crossLink}} as the application's session\n    store.__\n  \n    @class SessionStorageStore\n    @module ember-simple-auth/session-stores/session-storage\n    @extends BaseStore\n    @public\n  */\n  var _default = _base.default.extend({\n    /**\n      The `sessionStorage` key the store persists data in.\n       @property key\n      @type String\n      @default 'ember_simple_auth-session'\n      @public\n    */\n    key: 'ember_simple_auth-session',\n\n    init() {\n      this._super(...arguments);\n\n      this._isFastBoot = this.hasOwnProperty('_isFastBoot') ? this._isFastBoot : (0, _isFastboot.default)(Ember.getOwner(this));\n\n      if (!this.get('_isFastBoot')) {\n        window.addEventListener('storage', Ember.run.bind(this, this._handleStorageEvent));\n      }\n    },\n\n    willDestroy() {\n      if (!this.get('_isFastBoot')) {\n        window.removeEventListener('storage', Ember.run.bind(this, this._handleStorageEvent));\n      }\n    },\n\n    /**\n      Persists the `data` in the `sessionStorage`.\n       @method persist\n      @param {Object} data The data to persist\n      @return {Ember.RSVP.Promise} A promise that resolves when the data has successfully been persisted and rejects otherwise.\n      @public\n    */\n    persist(data) {\n      this._lastData = data;\n      data = JSON.stringify(data || {});\n      sessionStorage.setItem(this.key, data);\n      return Ember.RSVP.resolve();\n    },\n\n    /**\n      Returns all data currently stored in the `sessionStorage` as a plain object.\n       @method restore\n      @return {Ember.RSVP.Promise} A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise.\n      @public\n    */\n    restore() {\n      let data = sessionStorage.getItem(this.key);\n      return Ember.RSVP.resolve(JSON.parse(data) || {});\n    },\n\n    /**\n      Clears the store by deleting the\n      {{#crossLink \"sessionStorageStore/key:property\"}}{{/crossLink}} from\n      `sessionStorage`.\n       @method clear\n      @return {Ember.RSVP.Promise} A promise that resolves when the store has been cleared successfully and rejects otherwise.\n      @public\n    */\n    clear() {\n      sessionStorage.removeItem(this.key);\n      this._lastData = {};\n      return Ember.RSVP.resolve();\n    },\n\n    _handleStorageEvent(e) {\n      if (e.key === this.get('key')) {\n        this.restore().then(data => {\n          if (!(0, _objectsAreEqual.default)(data, this._lastData)) {\n            this._lastData = data;\n            this.trigger('sessionDataUpdated', data);\n          }\n        });\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/utils/inject\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(registry, factoryNameOrType, property, injectionName) {\n    const inject = registry.inject || registry.injection;\n    inject.call(registry, factoryNameOrType, property, injectionName);\n  }\n});","define(\"ember-simple-auth/utils/is-fastboot\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isFastBoot;\n\n  /* eslint-disable no-unused-vars */\n  // @ts-check\n  function isFastBoot(owner) {\n    (true && !(owner && typeof owner.lookup === 'function') && Ember.assert('You must pass in an owner to isFastBoot!', owner && typeof owner.lookup === 'function'));\n    const fastboot = owner.lookup('service:fastboot');\n    return fastboot ? fastboot.get('isFastBoot') : false;\n  }\n});","define(\"ember-simple-auth/utils/location\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = () => window.location;\n\n  _exports.default = _default;\n});","define(\"ember-simple-auth/utils/objects-are-equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = objectsAreEqual;\n\n  function objectsAreEqual(a, b) {\n    function compare(x, y) {\n      let property;\n\n      if (isNaN(x) && isNaN(y) && typeof x === 'number' && typeof y === 'number') {\n        return true;\n      }\n\n      if (x === y) {\n        return true;\n      }\n\n      if (!(x instanceof Object && y instanceof Object)) {\n        return false;\n      }\n\n      for (property in y) {\n        if (y.hasOwnProperty(property) !== x.hasOwnProperty(property)) {\n          return false;\n        } else if (typeof y[property] !== typeof x[property]) {\n          return false;\n        }\n      }\n\n      for (property in x) {\n        if (y.hasOwnProperty(property) !== x.hasOwnProperty(property)) {\n          return false;\n        } else if (typeof y[property] !== typeof x[property]) {\n          return false;\n        }\n\n        switch (typeof x[property]) {\n          case 'object':\n            if (!compare(x[property], y[property])) {\n              return false;\n            }\n\n            break;\n\n          default:\n            if (x[property] !== y[property]) {\n              return false;\n            }\n\n            break;\n        }\n      }\n\n      return true;\n    }\n\n    return compare(a, b);\n  }\n});","define(\"ember-style-modifier/modifiers/style\", [\"exports\", \"ember-modifier\"], function (_exports, _emberModifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function isObject(o) {\n    return typeof o === 'object' && Boolean(o);\n  }\n\n  class StyleModifier extends _emberModifier.default {\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    get styles() {\n      const {\n        positional,\n        named\n      } = this.args; // This is a workaround for the missing `Array#flat` in IE11.\n\n      return [].concat(...[...positional.filter(isObject), named].map(obj => Object.entries(obj).map(([k, v]) => [Ember.String.dasherize(k), v])));\n    }\n\n    setStyles(newStyles) {\n      const rulesToRemove = this._oldStyles || new Set();\n      newStyles.forEach(([property, value]) => {\n        (true && !(typeof value === 'undefined' || Ember.typeOf(value) === 'string') && Ember.assert(`Your given value for property '${property}' is ${value} (${Ember.typeOf(value)}). ` + 'Accepted types are string and undefined. Please change accordingly.', typeof value === 'undefined' || Ember.typeOf(value) === 'string')); // priority must be specified as separate argument\n        // value must not contain \"!important\"\n\n        let priority = '';\n\n        if (value && value.includes('!important')) {\n          priority = 'important';\n          value = value.replace('!important', '');\n        } // support camelCase property name\n\n\n        property = Ember.String.dasherize(property); // update CSSOM\n\n        this.element.style.setProperty(property, value, priority); // should not remove rules that have been updated in this cycle\n\n        rulesToRemove.delete(property);\n      }); // remove rules that were present in last cycle but aren't present in this one\n\n      rulesToRemove.forEach(rule => this.element.style.removeProperty(rule)); // cache styles that in this rendering cycle for the next one\n\n      this._oldStyles = new Set(newStyles.map(e => e[0]));\n    }\n\n    didReceiveArguments() {\n      this.setStyles(this.styles);\n    }\n\n  }\n\n  _exports.default = StyleModifier;\n});","define(\"ember-svg-jar/inlined/account-group\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#000\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"><path d=\\\"M4 6.609V8l-2.539.726C.933 8.877.5 9.45.5 10v.5H6m1-3.922V8l2.538.726c.529.151.962.724.962 1.274v.5H5\\\"/><ellipse cx=\\\"5.5\\\" cy=\\\"3.771\\\" rx=\\\"3\\\" ry=\\\"3.271\\\"/><path d=\\\"M8.469 3.198c-.5.5-1.93.476-2.469-.528-1 1-2.625 1-3.434.429M17 6.609V8l-2.539.726c-.528.151-.961.724-.961 1.274v.5H19m1-3.906V8l2.538.726c.529.151.962.724.962 1.274v.5H18\\\"/><ellipse cx=\\\"18.5\\\" cy=\\\"3.771\\\" rx=\\\"3\\\" ry=\\\"3.271\\\"/><path d=\\\"M21.453 3.195c-.5.5-1.914.479-2.453-.525-1 1-2.625 1-3.434.429M10.5 19.609V21l-2.539.726C7.433 21.877 7 22.45 7 23v.5h5.5m1-3.891V21l2.538.726c.529.151.962.724.962 1.274v.5h-5.5\\\"/><ellipse cx=\\\"12\\\" cy=\\\"16.771\\\" rx=\\\"3\\\" ry=\\\"3.271\\\"/><path d=\\\"M14.953 16.17c-.5.5-1.914.503-2.453-.5-1 1-2.625 1-3.434.429\\\"/><path stroke-linecap=\\\"round\\\" d=\\\"M4 12.5L6.5 15M20 12.5L17.5 15\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/add-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 1v22m11-11H1\\\" fill=\\\"none\\\" stroke=\\\"#000\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/add-view\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\"><path d=\\\"M8.25 17.25h-6c-1 0-1.5-.5-1.5-1.5V2.55c0-.414.146-.768.44-1.06a1.44 1.44 0 011.06-.44h13.5c1 0 1.5.5 1.5 1.5v5.7\\\"/><path d=\\\"M4.2 11.8c.001-1.2.601-1.8 1.8-1.8 1.2 0 1.8.6 1.8 1.8.001 1.2-.599 1.8-1.798 1.8-1.2 0-1.8-.6-1.801-1.8zM8.5 6c0 1.2.6 1.8 1.8 1.8 1.2 0 1.8-.6 1.8-1.8 0-1.2-.6-1.8-1.8-1.8-.496 0-.92.175-1.273.527A1.736 1.736 0 008.5 6zm14.75 11.25c0 1.657-.586 3.071-1.757 4.243-1.172 1.171-2.586 1.757-4.243 1.757-1.657 0-3.071-.586-4.243-1.757-1.171-1.172-1.757-2.586-1.757-4.243 0-1.657.586-3.071 1.757-4.243 1.172-1.171 2.586-1.757 4.243-1.757 1.657 0 3.071.586 4.243 1.757 1.171 1.172 1.757 2.586 1.757 4.243zm-6-3v6m-3-3h6M7.8 11.7h2.4M8.5 6H4.2m9.6 0h-1.2\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M30.688 14.688H17.375V1.313C17.375.625 16.75 0 16.062 0c-.75 0-1.375.625-1.375 1.313v13.375H1.312c-.688 0-1.313.563-1.313 1.313s.625 1.313 1.313 1.313h13.375v13.375A1.32 1.32 0 0016 32.002a1.32 1.32 0 001.313-1.313l.063-13.375h13.313c.75 0 1.313-.563 1.313-1.313s-.563-1.313-1.313-1.313z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/align-center\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path clip-rule=\\\"evenodd\\\" d=\\\"M1 6a1 1 0 011-1h20a1 1 0 110 2H2a1 1 0 01-1-1zm5 6.5a1 1 0 011-1h10a1 1 0 110 2H7a1 1 0 01-1-1zM1 19a1 1 0 011-1h20a1 1 0 110 2H2a1 1 0 01-1-1z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/align-left\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path clip-rule=\\\"evenodd\\\" d=\\\"M1 6a1 1 0 011-1h20a1 1 0 110 2H2a1 1 0 01-1-1zm0 6.5a1 1 0 011-1h12a1 1 0 110 2H2a1 1 0 01-1-1zM1 19a1 1 0 011-1h20a1 1 0 110 2H2a1 1 0 01-1-1z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/ambulance\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M18.75 24a3.017 3.017 0 01-2.594-1.5h-6.062C9.561 23.418 8.567 24 7.5 24s-2.061-.582-2.594-1.5H2.25A2.252 2.252 0 010 20.25V15.8a2.248 2.248 0 011.002-1.869l1.316-.877.41-2.299c.003-.016.006-.033.011-.05A2.245 2.245 0 014.921 9h2.708A2.258 2.258 0 019.75 7.5h1.5c0-1.654 1.346-3 3-3s3 1.346 3 3h4.5A2.252 2.252 0 0124 9.75v10.5a2.252 2.252 0 01-2.25 2.25h-.406A3.017 3.017 0 0118.75 24zm0-4.5c-.827 0-1.5.673-1.5 1.5s.673 1.5 1.5 1.5 1.5-.673 1.5-1.5-.673-1.5-1.5-1.5zm-11.25 0c-.827 0-1.5.673-1.5 1.5s.673 1.5 1.5 1.5S9 21.827 9 21s-.673-1.5-1.5-1.5zM21.75 21a.75.75 0 00.75-.75V9.75a.75.75 0 00-.75-.75h-12a.75.75 0 00-.75.75v8.656A3.017 3.017 0 0110.5 21h5.25c0-1.654 1.346-3 3-3s3 1.346 3 3zM3.738 13.632a.75.75 0 01-.323.492l-1.582 1.055a.75.75 0 00-.334.623v4.448c.001.414.337.75.751.75H4.5c0-1.654 1.346-3 3-3v-7.5H4.921a.749.749 0 00-.722.547l-.461 2.585zM15.75 7.5c0-.827-.673-1.5-1.5-1.5s-1.5.673-1.5 1.5h3z\\\"/><path d=\\\"M15.75 17.25a.75.75 0 01-.75-.75V15h-1.5a.75.75 0 010-1.5H15V12a.75.75 0 011.5 0v1.5H18a.75.75 0 010 1.5h-1.5v1.5a.75.75 0 01-.75.75zM14.25 3a.75.75 0 01-.75-.75V.75a.75.75 0 011.5 0v1.5a.75.75 0 01-.75.75zM18 4.5a.75.75 0 01-.67-1.085l.75-1.5a.744.744 0 011.004-.336.75.75 0 01.336 1.006l-.75 1.5A.744.744 0 0118 4.5zm-7.5 0a.747.747 0 01-.671-.414l-.75-1.5a.751.751 0 011.342-.671l.75 1.5A.751.751 0 0110.5 4.5z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-down-small\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M.469.18l11.5 13.143L23.469.18\\\" transform=\\\"translate(1 2)\\\" stroke-width=\\\"3\\\" stroke=\\\"#0B0B0A\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 26 17\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-down-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.25 7.311L12.53 18.03a.72.72 0 01-.53.22.72.72 0 01-.53-.22L.75 7.311\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\" fill=\\\"none\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-down\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path clip-rule=\\\"evenodd\\\" d=\\\"M1.043 6.604a1 1 0 011.414 0L13 17.146 23.543 6.604a1 1 0 011.414 1.414l-10.72 10.719a1.75 1.75 0 01-2.474 0L1.042 8.018a1 1 0 010-1.414zm11.78 10.72v-.001zm.355 0v-.001z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 26 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-left-small\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M13.54.426L.397 11.926l13.143 11.5\\\" transform=\\\"translate(2 2)\\\" stroke-width=\\\"3\\\" stroke=\\\"#0B0B0A\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 17 27\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-left-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M16.25 23.25L5.53 12.53a.72.72 0 01-.22-.53.72.72 0 01.22-.53L16.25.75\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\" fill=\\\"none\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-left-tail\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path clip-rule=\\\"evenodd\\\" d=\\\"M.75 8a.75.75 0 01.75-.75h12.857a.75.75 0 110 1.5H1.5A.75.75 0 01.75 8z\\\"/><path clip-rule=\\\"evenodd\\\" d=\\\"M8.03 1.47a.75.75 0 010 1.06L2.56 8l5.47 5.47a.75.75 0 11-1.06 1.06l-6-6a.75.75 0 010-1.06l6-6a.75.75 0 011.06 0z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-left\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12.05 1.303a1 1 0 01-.02 1.414L6.597 8l5.433 5.283a1 1 0 01-1.394 1.434L4.756 9a1.4 1.4 0 01-.423-1 1.39 1.39 0 01.423-1l5.88-5.717a1 1 0 011.414.02z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-right-small\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M.397 23.426l13.143-11.5L.397.426\\\" transform=\\\"translate(2 2)\\\" stroke-width=\\\"3\\\" stroke=\\\"#0B0B0A\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 18 27\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-right-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M5.5.75l10.72 10.72a.72.72 0 01.22.53.72.72 0 01-.22.53L5.5 23.25\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\" fill=\\\"none\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-right-tail\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path clip-rule=\\\"evenodd\\\" d=\\\"M.75 8a.75.75 0 01.75-.75h12.857a.75.75 0 110 1.5H1.5A.75.75 0 01.75 8z\\\"/><path clip-rule=\\\"evenodd\\\" d=\\\"M7.827 1.47a.75.75 0 011.06 0l6 6a.75.75 0 010 1.06l-6 6a.75.75 0 01-1.06-1.06L13.297 8l-5.47-5.47a.75.75 0 010-1.06z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-right\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M4.793 1.043a1 1 0 011.414 0l10.72 10.72a1.748 1.748 0 010 2.475l-10.72 10.72a1 1 0 01-1.414-1.415L15.336 13 4.793 2.457a1 1 0 010-1.414z\\\" fill=\\\"#15171a\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 26\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-up-small\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.469 13.323L11.969.18.469 13.323\\\" transform=\\\"translate(1 2)\\\" stroke-width=\\\"3\\\" stroke=\\\"#0B0B0A\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 26 17\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-up-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M.75 17.189L11.47 6.47a.72.72 0 01.53-.22.72.72 0 01.53.22l10.72 10.719\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\" fill=\\\"none\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow-up\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill=\\\"#010101\\\" d=\\\"M47.753 36.485l-23-26.285c-.381-.436-1.125-.436-1.506 0l-23 26.285a1 1 0 001.506 1.316L24 12.376l22.247 25.425a.996.996 0 001.411.095 1 1 0 00.095-1.411z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 48 48\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow2-down\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.831 10.623a.497.497 0 00-.705.045L13.001 22.173V.498a.5.5 0 00-1 0v21.675L1.876 10.668a.499.499 0 10-.75.66l11 12.5.011.008.123.091.04.027.201.043.201-.043.04-.027.123-.091.011-.008 11-12.5a.498.498 0 00-.045-.705z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/arrow2-right\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill=\\\"#010101\\\" d=\\\"M47.863 23.477c.015-.027.038-.047.05-.075.054-.123.087-.258.087-.402s-.033-.279-.087-.402c-.012-.028-.036-.048-.05-.075a.964.964 0 00-.186-.251c-.007-.007-.01-.017-.017-.023l-25-22a1 1 0 00-1.32 1.502L44.35 22H1a1 1 0 100 2h43.35L21.34 44.249a1 1 0 001.32 1.502l25-22c.007-.007.01-.017.017-.023.077-.072.134-.159.186-.251z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 48 48\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/book-open\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M11.962 22.112a2.307 2.307 0 01-.758-.137 12.916 12.916 0 00-4.771-.906c-1.181 0-2.35.16-3.474.475a2.351 2.351 0 01-2.271-.614A2.343 2.343 0 010 19.262V4.929a2.35 2.35 0 011.644-2.243 14.526 14.526 0 014.746-.792c1.837 0 3.634.339 5.342 1.008.047.017.11.029.186.035a.727.727 0 01.164.001.822.822 0 00.208-.043 14.51 14.51 0 015.316-1.001c1.628 0 3.232.268 4.768.798A2.339 2.339 0 0124 4.927v14.336a2.345 2.345 0 01-1.156 2.031 2.353 2.353 0 01-1.787.255 12.935 12.935 0 00-3.491-.478c-1.641 0-3.239.302-4.747.897-.256.093-.514.14-.777.145l-.041.002-.039-.003zM6.43 19.569c1.659 0 3.277.276 4.82.822V4.322l-.045-.016a13.145 13.145 0 00-9.09-.196.862.862 0 00-.615.82v14.332a.855.855 0 001.07.832 14.363 14.363 0 013.86-.525zm6.32.822a14.344 14.344 0 014.816-.822c1.319 0 2.624.178 3.879.53a.858.858 0 001.054-.835V4.929a.853.853 0 00-.597-.813 13.155 13.155 0 00-9.085.183l-.067.023v16.069z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/bookmark-article\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#000\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"><path d=\\\"M11.5 1.5h12v22H.5v-22h3\\\"/><path d=\\\"M11.5 13.5l-4-4-4 4V.5h8zm3-6h6m-6 3h6m-6 3h6m-17 3h17m-17 3h13\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/box-hands\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.67 6.467c-.071-.026-.732-.244-1.457.264-1.113.781-1.688 2.819-1.712 6.061l-1.594 1.594.298-1.301c.253-1.059-.213-1.78-.787-2.025-.532-.226-1.294-.095-1.808.702-.69 1.073-1.554 3.967-1.59 4.09l-.02.141V20h-.5a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h6a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5H20v-.823c.638-.631 3.146-3.115 3.854-3.824A.5.5 0 0024 15V6.938a.501.501 0 00-.33-.471zM20 23h-5v-2h5v2zm3-8.208c-.991.989-3.852 3.821-3.852 3.821a.506.506 0 00-.148.356V20h-3v-3.934c.256-.851.956-2.994 1.452-3.764.174-.271.398-.397.573-.323.182.078.324.384.206.877l-.688 3a.5.5 0 00.841.465l2.969-2.969A.492.492 0 0021.5 13c0-3.903.789-5.078 1.26-5.43l.24-.132v7.354zM9.5 20H9v-4.007l-.021-.142c-.036-.123-.899-3.017-1.59-4.09-.515-.798-1.273-.928-1.808-.702-.574.245-1.04.967-.788 2.021l.299 1.305-1.594-1.594C3.476 9.55 2.9 7.512 1.787 6.731 1.064 6.223.401 6.441.33 6.467a.501.501 0 00-.33.471V15c0 .15.067.293.185.388.843.686 3.217 3.156 3.815 3.781V20h-.5a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h6a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zm-4.638-1.376c-.116-.123-2.72-2.859-3.862-3.856v-7.33a.895.895 0 01.24.132C1.711 7.922 2.5 9.097 2.5 13a.5.5 0 00.147.354l2.969 2.969a.499.499 0 00.841-.465l-.688-3.004c-.117-.489.025-.795.207-.873.175-.072.399.052.573.323.496.77 1.196 2.913 1.452 3.764V20H5v-1.031a.497.497 0 00-.138-.345zM9 23H4v-2h5v2zm9-13.5v-6a.504.504 0 00-.066-.247l-.047-.049-.124-.13-.014-.004-.01-.009-5.5-3a.502.502 0 00-.479 0l-5.5 3-.003.003-.003.001-.084.084-.098.096-.036.12L6 3.49l.001.005L6 3.5v6a.5.5 0 00.243.429l5 3a.5.5 0 00.481.018l6-3A.5.5 0 0018 9.5zm-6-8.431l4.42 2.411-4.899 2.45-4.015-2.41L12 1.069zM7 4.383l4 2.399v4.834l-4-2.4V4.383zm10 4.808l-5 2.5V6.809l5-2.5v4.882z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/box\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M32 7.313c0-.063 0-.125-.063-.188v-.063c0-.063-.063-.125-.125-.188l-.125-.125h-.063L16.249.061a.685.685 0 00-.5 0L.374 6.749H.311l-.125.125c-.063.063-.125.125-.125.188v.063c-.063.063-.063.125-.063.188v17.375c0 .25.188.5.375.563l15.375 6.688c.063.063.188.063.25.063s.188 0 .25-.063l15.375-6.688c.188-.063.375-.313.375-.563V7.313zM16 1.375l13.688 5.938-6.188 2.688-12.375-6.5zm0 11.875L2.312 7.312l7.25-3.125 12.375 6.5zM1.313 8.375l14 6.063v15.875l-14-6.063zM30.688 24.25l-14 6.063V14.438l14-6.063zM12.25 16.063L4.937 12.75c-.188-.125-.438-.125-.625 0s-.313.375-.313.563v6.688c0 .25.125.5.375.625l7.375 3.313c.063.063.125.063.25.063s.25-.063.375-.125a.657.657 0 00.313-.563v-6.625c0-.313-.188-.5-.438-.625zm-.937 6.25l-6-2.75v-5.188l6 2.75z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/boxes\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M7.314 8.964l5 2L12.5 11l.186-.036 5-2A.499.499 0 0018 8.5V2l-.006-.024-.04-.166-.012-.039-.136-.163-.008-.01-.051-.021-.105-.056-5-1.5a.5.5 0 00-.287 0l-5 1.5-.105.056-.05.021-.008.01-.136.163-.011.039-.04.166L7 2v6.5c0 .205.124.388.314.464zM8 2.672l4 1.2v5.89l-4-1.6v-5.49zm9 5.49l-4 1.6v-5.89l4-1.2v5.49zm-4.5-7.14L15.76 2l-3.231.969-.029-.006-.029.006L9.24 2l3.26-.978zm10.498 11.469l-.052-.211-.031-.044-.107-.122-.022-.025-.046-.018-.063-.04-4-1.5a.507.507 0 00-.352 0l-4 1.5-.063.04-.046.018-.022.025-.107.122-.031.044-.052.211-.002.009V17a.5.5 0 00.276.447l4 2c.07.035.147.053.224.053l.224-.053 4-2A.502.502 0 0023 17v-4.5l-.002-.009zm-4.498-.957l2.576.966-2.571.964-.004-.001-.004.001-2.572-.964 2.575-.966zM15 13.222l3 1.125v3.844l-3-1.5v-3.469zm7 3.469l-3 1.5v-3.844l3-1.125v3.469zm-9.054-3.417l-.011-.014-.129-.15-.014-.016-.052-.021-.082-.047-6-2a.502.502 0 00-.316 0l-6 2-.082.047-.052.021-.014.016-.129.15-.011.014-.05.209L0 13.5v8a.5.5 0 00.342.474l6 2L6.5 24l.158-.026 6-2A.5.5 0 0013 21.5v-8l-.004-.017-.05-.209zM6.5 12.027l4.419 1.473-4.401 1.467-.018-.003-.018.003L2.081 13.5 6.5 12.027zM1 14.194l5 1.667v6.946L1 21.14v-6.946zm11 6.946l-5 1.667V15.86l5-1.667v6.947z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/brackets\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.brackets_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"brackets_svg__a\\\" d=\\\"M7.629 4.5l-6.44 6.439a1.5 1.5 0 000 2.121l6.44 6.44M16.371 4.5l6.44 6.439a1.5 1.5 0 010 2.121l-6.44 6.44\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/calendar\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.5 2H20V.5a.5.5 0 00-.5-.5h-3a.5.5 0 00-.5.5V2H8V.5a.5.5 0 00-.5-.5h-3a.5.5 0 00-.5.5V2H.5a.5.5 0 00-.5.5v21a.5.5 0 00.5.5h23a.5.5 0 00.5-.5v-21a.5.5 0 00-.5-.5zM17 1h2v3h-2V1zM5 1h2v3H5V1zM4 3v1.5a.5.5 0 00.5.5h3a.5.5 0 00.5-.5V3h8v1.5a.5.5 0 00.5.5h3a.5.5 0 00.5-.5V3h3v4H1V3h3zM1 23V8h22v15H1zm20.5-11a.5.5 0 000-1H17V9.5a.5.5 0 00-1 0V11h-4V9.5a.5.5 0 00-1 0V11H7V9.5a.5.5 0 00-1 0V11H2.5a.5.5 0 000 1H6v3H2.5a.5.5 0 000 1H6v3H2.5a.5.5 0 000 1H6v1.5a.5.5 0 001 0V20h4v1.5a.5.5 0 001 0V20h4v1.5a.5.5 0 001 0V20h4.5a.5.5 0 000-1H17v-3h4.5a.5.5 0 000-1H17v-3h4.5zM7 12h4v3H7v-3zm0 7v-3h4v3H7zm9 0h-4v-3h4v3zm0-4h-4v-3h4v3z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/cash\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M17.5 15a.496.496 0 00.277-.084l6-4a.5.5 0 00-.554-.832L17.349 14H13v-1h4.5a.496.496 0 00.277-.084l6-4a.5.5 0 00-.554-.832L17.349 12H13v-1h4.5a.496.496 0 00.277-.084l6-4A.499.499 0 0023.5 6h-4.834l.134-.1a.5.5 0 00-.3-.9h-7a.499.499 0 00-.3.1L10 6H6.5a.496.496 0 00-.277.084l-6 4A.499.499 0 00.5 11H5v1H.5a.5.5 0 000 1H5v1H.5a.5.5 0 000 1H5v1H.5a.5.5 0 000 1H5v1H.5a.5.5 0 000 1H5v.5a.5.5 0 00.5.5h7a.5.5 0 00.5-.5V19h4.5a.496.496 0 00.277-.084l6-4a.5.5 0 00-.554-.832L17.349 18H13v-1h4.5a.496.496 0 00.277-.084l6-4a.5.5 0 00-.554-.832L17.349 16H13v-1h4.5zm4.349-8l-4.5 3h-4.015l4-3h4.515zM2.151 10l4.5-3h2.016L5.2 9.6a.5.5 0 00-.2.4H2.151zM12 19H6v-8.75L11.667 6H17l-4.8 3.6a.5.5 0 00-.2.4v9zm-3-7.5c.552 0 1 .449 1 1a.5.5 0 001 0c0-.929-.64-1.705-1.5-1.929V10a.5.5 0 00-1 0v.571c-.86.224-1.5 1-1.5 1.929 0 1.103.898 2 2 2a1.001 1.001 0 11-1 1 .5.5 0 00-1 0c0 .929.64 1.705 1.5 1.929V18a.5.5 0 001 0v-.571c.86-.224 1.5-1 1.5-1.929 0-1.103-.898-2-2-2a1.001 1.001 0 010-2z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/chat-double-bubble\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M5.814 13.786l-3.669 1.468 1.289-2.255a.501.501 0 00-.122-.639C1.843 11.184 1 9.48 1 7.685 1 4.137 4.589 1.25 9 1.25s8 2.887 8 6.435h1C18 3.585 13.962.25 9 .25S0 3.585 0 7.685c0 1.962.855 3.827 2.36 5.178l-1.794 3.14A.498.498 0 001 16.75l.186-.036 4.839-1.936a9.95 9.95 0 001.348.281l.135-.991a8.773 8.773 0 01-1.362-.296.504.504 0 00-.332.014zm16.309 6.591C23.353 19.267 24 17.848 24 16.25c0-3.523-3.435-6.5-7.5-6.5S9 12.727 9 16.25c0 3.582 3.279 6.608 7.16 6.609.978 0 1.936-.192 2.852-.57l3.812 1.43.176.031a.5.5 0 00.448-.724l-1.325-2.649zm-2.947.905L19 21.25l-.203.043a6.447 6.447 0 01-2.636.566c-3.339 0-6.16-2.569-6.16-5.609 0-2.981 2.977-5.5 6.5-5.5s6.5 2.519 6.5 5.5c0 1.433-.61 2.647-1.812 3.61a.5.5 0 00-.135.614l.931 1.861-2.809-1.053z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/check-circle-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.check-circle-stroke_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"check-circle-stroke_svg__a\\\" d=\\\"M6.75 9l3.294 4.611a1.526 1.526 0 002.414.09L23.25.749M16.783 3.824A10.487 10.487 0 1020.8 8.377\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/check-circle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path class=\\\"check-circle_svg__animated-check-circle\\\" d=\\\"M19.6 2.715A11.928 11.928 0 0012 0C5.39 0 0 5.39 0 12s5.39 12 12 12 12-5.39 12-12c0-2.283-.637-4.407-1.726-6.212l-11.23 11.256-5.548-5.548\\\" stroke=\\\"#000\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"-1 -1 26 26\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/check\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.25.749L8.158 22.308a2.2 2.2 0 01-3.569.059L.75 17.249\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"1.5\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/cheeseburger\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<circle cx=\\\"7.5\\\" cy=\\\"4.506\\\" r=\\\".5\\\"/><circle cx=\\\"9.5\\\" cy=\\\"3.506\\\" r=\\\".5\\\"/><circle cx=\\\"14.5\\\" cy=\\\"3.506\\\" r=\\\".5\\\"/><circle cx=\\\"12\\\" cy=\\\"4.506\\\" r=\\\".5\\\"/><circle cx=\\\"16.542\\\" cy=\\\"4.506\\\" r=\\\".5\\\"/><path d=\\\"M24 14.506c0-.759-.347-1.432-.883-1.891.564-.34.883-.887.883-1.609 0-1.163-1.332-1.695-2.02-1.893C21.776 3.895 17.561.006 12 .006S2.224 3.895 2.02 9.113c-.688.198-2.02.73-2.02 1.893 0 .722.319 1.269.883 1.609A2.484 2.484 0 000 14.506c0 .821.403 1.544 1.015 2a2.491 2.491 0 00-1.015 2c0 1.207.86 2.217 2 2.449v.551c0 1.378 1.121 2.5 2.5 2.5h15c1.379 0 2.5-1.122 2.5-2.5v-.551c1.14-.232 2-1.242 2-2.449 0-.821-.403-1.544-1.015-2a2.491 2.491 0 001.015-2zm-12-13.5c4.953 0 8.73 3.405 8.986 8H3.014c.256-4.595 4.033-8 8.986-8zm-11 10c0-.503 1.041-.888 1.557-1h18.885c.514.109 1.558.492 1.558 1 0 .247 0 1-1.5 1-.462 0-.927-.146-1.156-.363a.502.502 0 00-.781.121c-.313.566-.927 1.242-2.062 1.242-1.065 0-1.676-.359-2.042-1.2a.5.5 0 00-.916 0c-.387.885-1.566 1.2-2.542 1.2-.977 0-2.156-.315-2.542-1.2a.5.5 0 00-.916 0c-.367.841-.977 1.2-2.042 1.2-1.137 0-1.749-.675-2.062-1.242a.502.502 0 00-.781-.121c-.231.217-.696.363-1.158.363-1.5 0-1.5-.753-1.5-1zm20 10.5c0 .827-.673 1.5-1.5 1.5h-15c-.827 0-1.5-.673-1.5-1.5v-.5h18v.5zm2-3c0 .827-.673 1.5-1.5 1.5h-19c-.827 0-1.5-.673-1.5-1.5s.673-1.5 1.5-1.5h9.382l5.895 2.947a.5.5 0 00.578-.093l2.854-2.854h.291c.827 0 1.5.673 1.5 1.5zm-8.882-1.5h5.675l-1.892 1.892-3.783-1.892zm7.382-1h-19c-.827 0-1.5-.673-1.5-1.5s.673-1.5 1.5-1.5c.495 0 .971-.109 1.357-.302.636.844 1.557 1.302 2.643 1.302 1.13 0 1.965-.352 2.529-1.071.747.776 1.95 1.071 2.971 1.071 1.019 0 2.223-.295 2.97-1.071.564.719 1.399 1.071 2.53 1.071 1.085 0 2.006-.458 2.643-1.302a3.07 3.07 0 001.357.302c.827 0 1.5.673 1.5 1.5s-.673 1.5-1.5 1.5z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/circle-ellipsis\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.circle-ellipsis_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><circle class=\\\"circle-ellipsis_svg__a\\\" cx=\\\"3.375\\\" cy=\\\"12.023\\\" r=\\\"2.625\\\"/><circle class=\\\"circle-ellipsis_svg__a\\\" cx=\\\"20.625\\\" cy=\\\"12.023\\\" r=\\\"2.625\\\"/><circle class=\\\"circle-ellipsis_svg__a\\\" cx=\\\"12\\\" cy=\\\"12.023\\\" r=\\\"2.625\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/clock\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M15 12h-3V7a.5.5 0 00-1 0v5.5a.5.5 0 00.5.5H15a.5.5 0 000-1zm4.5-12h-15A4.505 4.505 0 000 4.5v15C0 21.981 2.019 24 4.5 24h15c2.481 0 4.5-2.019 4.5-4.5v-15C24 2.019 21.981 0 19.5 0zM23 19.5c0 1.93-1.57 3.5-3.5 3.5h-15C2.57 23 1 21.43 1 19.5v-15C1 2.57 2.57 1 4.5 1h15C21.43 1 23 2.57 23 4.5v15zM12 3c-4.962 0-9 4.038-9 9s4.038 9 9 9 9-4.038 9-9-4.038-9-9-9zm0 17c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/clockface\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 .75c-3.098 0-5.764 1.104-7.955 3.295C1.855 6.236.75 8.902.75 12s1.104 5.764 3.295 7.955C6.236 22.145 8.902 23.25 12 23.25s5.764-1.104 7.955-3.295c2.19-2.191 3.295-4.857 3.295-7.955s-1.104-5.764-3.295-7.955C17.764 1.855 15.098.75 12 .75zm0 1.5c2.7 0 4.985.946 6.894 2.856 1.91 1.91 2.856 4.193 2.856 6.894 0 2.7-.946 4.985-2.856 6.894-1.91 1.91-4.193 2.856-6.894 2.856-2.7 0-4.985-.946-6.894-2.856C3.196 16.984 2.25 14.701 2.25 12c0-2.7.946-4.985 2.856-6.894C7.016 3.196 9.299 2.25 12 2.25z\\\"/><path d=\\\"M12 4.5a.75.75 0 01.743.648l.007.102V12a.75.75 0 01-1.493.102L11.25 12V5.25A.75.75 0 0112 4.5z\\\"/><path d=\\\"M16.759 11.25a.75.75 0 01.101 1.493l-.101.007H12a.75.75 0 01-.102-1.493L12 11.25h4.759z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/close-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.close-stroke_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"close-stroke_svg__a\\\" d=\\\"M.75 23.249l22.5-22.5M23.25 23.249L.75.749\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/close\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12.707 12L23.854.854a.5.5 0 00-.707-.707L12 11.293.854.146a.5.5 0 00-.707.707L11.293 12 .146 23.146a.5.5 0 00.708.708L12 12.707l11.146 11.146a.5.5 0 10.708-.706L12.707 12z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/cloud\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M18.628 8.006A7.535 7.535 0 0012 4a7.502 7.502 0 00-7.427 6.511C2.12 10.32 0 12.296 0 14.75c0 2.177 1.19 3.219 2.188 3.709A5.59 5.59 0 004.489 19l14.575-.004c.05-.007 4.936-.698 4.936-5.496a5.498 5.498 0 00-5.372-5.494zM19 18H4.494l-.005.5V18C4.132 18 1 17.909 1 14.75a3.252 3.252 0 013.92-3.182.498.498 0 00.6-.46A6.499 6.499 0 0112 5a6.526 6.526 0 015.868 3.723c.086.18.273.299.471.285l.173-.003A4.497 4.497 0 0123 13.5c0 3.912-3.899 4.482-4 4.5z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/compass-2\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.compass-2_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"compass-2_svg__a\\\" d=\\\"M9.58 14.42l1.853 3.336a.75.75 0 001.36-.108l3.132-8.612a.75.75 0 00-.961-.961l-8.612 3.132a.75.75 0 00-.108 1.36z\\\"/><circle class=\\\"compass-2_svg__a\\\" cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"11.25\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/compass\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22.375 8.75L5.687 17.438c-.25.125-.438.438-.313.75.063.25.313.5.625.5h7.313v7.313c0 .313.25.563.5.625.063.063.125.063.188.063.25 0 .5-.125.563-.375l8.688-16.688c.125-.25.125-.563-.125-.75-.188-.25-.5-.25-.75-.125zm-7.687 14.5V18a.694.694 0 00-.688-.688H8.75l12.375-6.438zM16 0C7.187 0 0 7.188 0 16s7.188 16 16 16c8.813 0 16-7.188 16-16S24.812 0 16 0zm0 30.688C7.937 30.688 1.312 24.063 1.312 16S7.937 1.312 16 1.312 30.688 7.937 30.688 16 24.063 30.688 16 30.688z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/computer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22 1H2C.897 1 0 1.898 0 3v15c0 1.103.897 2 2 2h6.806l-.666 2H5a.5.5 0 000 1h14a.5.5 0 000-1h-3.14l-.667-2H22c1.103 0 2-.897 2-2V3c0-1.102-.897-2-2-2zm-7.194 21H9.194l.667-2h4.279l.666 2zM23 18c0 .552-.449 1-1 1H2c-.551 0-1-.448-1-1V3c0-.552.449-1 1-1h20c.551 0 1 .448 1 1v15zM21.5 3h-19a.5.5 0 00-.5.5v12a.5.5 0 00.5.5h19a.5.5 0 00.5-.5v-12a.5.5 0 00-.5-.5zM21 15H3V4h18v11z\\\"/><circle cx=\\\"12\\\" cy=\\\"17.5\\\" r=\\\"1\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/confetti\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.confetti_svg__cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><ellipse class=\\\"confetti_svg__cls-1\\\" cx=\\\"11.531\\\" cy=\\\"12.469\\\" rx=\\\"2.625\\\" ry=\\\"5.25\\\" transform=\\\"rotate(-45 11.531 12.47)\\\"/><path class=\\\"confetti_svg__cls-1\\\" d=\\\"M7.4 9.7L.888 21.121a1.5 1.5 0 001.991 1.991L14.3 16.605M15.773 7.7a.375.375 0 010 .531M15.243 7.7a.375.375 0 01.53 0M15.243 8.227a.377.377 0 010-.531M15.773 8.227a.375.375 0 01-.53 0M20.016 3.454a.374.374 0 010 .53M19.486 3.454a.374.374 0 01.53 0M19.486 3.984a.374.374 0 010-.53M20.016 3.984a.375.375 0 01-.53 0M20.016 14.06a.375.375 0 010 .531M19.486 14.06a.375.375 0 01.53 0M19.486 14.591a.375.375 0 010-.531M20.016 14.591a.375.375 0 01-.53 0M8.349 4.514a.377.377 0 010 .531M7.819 4.514a.375.375 0 01.53 0M7.819 5.045a.375.375 0 010-.531M8.349 5.045a.375.375 0 01-.53 0M12.857.75a13.836 13.836 0 01-.531 5.62M16.569 2.128l-.53 2.651M23.25 11.143a13.836 13.836 0 00-5.62.531M21.872 7.431l-2.651.53\\\"/>\",\n    \"attrs\": {\n      \"id\": \"confetti_svg__Regular\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/content-bold\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12.75 5h-6a.75.75 0 000 1.5h6a.75.75 0 000-1.5zm.75 4.25a.75.75 0 00-.75-.75h-8a.75.75 0 000 1.5h8a.75.75 0 00.75-.75zM4.75 12a.75.75 0 000 1.5h5.5a.75.75 0 000-1.5z\\\"/><path d=\\\"M11.3 17.655a.252.252 0 00-.231-.155H2.5A.5.5 0 012 17V2.5a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v10.07a.25.25 0 00.427.176l1.28-1.28a1 1 0 00.293-.707V2a2 2 0 00-2-2H2a2 2 0 00-2 2v15.5a2 2 0 002 2h7.868a.5.5 0 00.478-.353 1.934 1.934 0 01.5-.819l.4-.4a.25.25 0 00.054-.273zm.762 2.476a.251.251 0 00-.422.128l-.628 3.141a.5.5 0 00.49.6.466.466 0 00.1-.01l3.143-.629a.25.25 0 00.127-.422zm11.166-8.366a2.62 2.62 0 00-3.7 0l-6.5 6.5a.5.5 0 000 .707l3 3a.5.5 0 00.707 0l6.5-6.5a2.621 2.621 0 00-.007-3.707z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/content\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M11.246 24a.743.743 0 01-.53-.22.745.745 0 01-.205-.677l.75-3.75a.748.748 0 01.205-.384l7.631-7.63a2.844 2.844 0 012.026-.839 2.873 2.873 0 012.03 4.899l-7.627 7.629a.74.74 0 01-.384.205l-3.749.75a.615.615 0 01-.147.017zm.956-1.706l2.424-.485 7.467-7.469a1.368 1.368 0 00.003-1.932l-.03-.03a1.33 1.33 0 00-.941-.379c-.366 0-.71.142-.968.401l-7.471 7.47-.484 2.424zM2.242 21a2.252 2.252 0 01-2.25-2.25V2.25A2.252 2.252 0 012.242 0h15a2.252 2.252 0 012.25 2.25V9a.75.75 0 01-1.5 0V2.25a.75.75 0 00-.75-.75h-15a.75.75 0 00-.75.75v16.5c0 .414.336.75.75.75h6a.75.75 0 010 1.5h-6z\\\"/><path d=\\\"M8.242 6a.75.75 0 010-1.5h6a.75.75 0 010 1.5h-6zm-3 4.5a.75.75 0 010-1.5h9a.75.75 0 010 1.5h-9zm0 4.5a.75.75 0 010-1.5h7.5a.75.75 0 010 1.5h-7.5z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/copy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M3.333 1.75A1.586 1.586 0 001.75 3.334v5.833a1.586 1.586 0 001.584 1.583h3.5a.75.75 0 010 1.5h-3.5A3.081 3.081 0 01.25 9.167V3.333A3.085 3.085 0 013.333.25h3.5a3.083 3.083 0 013.084 3.083V4.5a.75.75 0 01-1.5 0V3.333A1.586 1.586 0 006.833 1.75h-3.5z\\\" fill=\\\"#000\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M8.389 5.25a.806.806 0 00-.806.806v7.388c0 .445.361.806.806.806h5.055c.445 0 .806-.36.806-.806V6.056a.806.806 0 00-.806-.806H8.39zm-2.306.806A2.306 2.306 0 018.389 3.75h5.055a2.305 2.305 0 012.306 2.306v7.388a2.305 2.305 0 01-2.306 2.306H8.39a2.306 2.306 0 01-2.306-2.306V6.056z\\\" fill=\\\"#000\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/credit-card\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M1.594 3.156a.564.564 0 00-.563.563v9.562c0 .31.252.563.563.563h13.812c.31 0 .563-.252.563-.563V3.72a.564.564 0 00-.563-.563H1.594zM.03 3.72c0-.863.7-1.563 1.563-1.563h13.812c.863 0 1.563.7 1.563 1.563v9.562c0 .863-.7 1.563-1.563 1.563H1.594c-.863 0-1.563-.7-1.563-1.563V3.72z\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M6.375 6.344a2.156 2.156 0 100 4.313 2.156 2.156 0 000-4.313zM3.219 8.5a3.156 3.156 0 116.312 0 3.156 3.156 0 01-6.312 0z\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M9.68 5.492a3.157 3.157 0 11-1.582 4.884.501.501 0 01.805-.594 2.152 2.152 0 002.408.766 2.158 2.158 0 000-4.096 2.16 2.16 0 00-2.409.766.5.5 0 11-.804-.595c.395-.533.948-.93 1.581-1.13z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 17 17\",\n      \"fill\": \"currentColor\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/cross-circle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.cross-circle_svg__a{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><circle class=\\\"cross-circle_svg__a\\\" cx=\\\"11.998\\\" cy=\\\"12\\\" r=\\\"11.25\\\"/><path class=\\\"cross-circle_svg__a\\\" d=\\\"M7.498 16.5l8.999-9M16.498 16.5l-9.001-9\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/cycle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.858 13.539L20.44 9.744a.498.498 0 00-.796.071l-2.686 4.344a.499.499 0 10.85.526l1.977-3.197c.558 4.674-2.347 9.14-6.932 10.299a.5.5 0 00.123.985l.123-.015c4.988-1.262 8.178-6.049 7.704-11.115l2.312 2.566a.5.5 0 10.743-.669zm-6.199-6.91a.499.499 0 00.705.059.5.5 0 00.059-.705c-1.792-2.118-4.325-3.392-7.133-3.586a10.598 10.598 0 00-6.22 1.506L6.344.739a.5.5 0 00-.927-.373L3.509 5.102a.501.501 0 00.414.685l5.081.506.051.002a.5.5 0 00.049-.998l-3.777-.376a9.618 9.618 0 015.894-1.525c2.536.175 4.822 1.324 6.438 3.233zM5.602 17.409a.5.5 0 00-.908.417l1.578 3.445a9.493 9.493 0 01-4.313-4.331 9.207 9.207 0 01-.429-7.176.5.5 0 00-.944-.333 10.199 10.199 0 00.474 7.95 10.486 10.486 0 004.47 4.629l-3.38.495a.5.5 0 00.071.995l.073-.005 5.053-.74a.5.5 0 00.382-.703l-2.127-4.643z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/default-favicon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g clip-path=\\\"url(#default-favicon_svg__clip0)\\\" fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\"><path d=\\\"M80 160c22.401 0 49.478-1.164 64-16 14.121-14.426 16-42.218 16-64 0-22.125-1.484-49.518-16-64C129.528 1.562 102.057 0 80 0 57.933 0 30.473 1.55 16 16 1.495 30.48 0 57.885 0 80c0 22.387 1.18 49.48 16 64 14.429 14.137 42.204 16 64 16z\\\" fill=\\\"#15171A\\\"/><path d=\\\"M80.301 24.45C111.042 24.45 136 49.251 136 79.801c0 30.55-24.958 55.353-55.699 55.353s-55.699-24.803-55.699-55.353S49.56 24.45 80.302 24.45zM36.341 68.12c2.784-22.93 15.08-34.327 42.808-37.424 13.22-1.477 28.233 9.692 32.472 14.837C120.188 55.929 131 68.302 131 82.236c0 18.786-15.144 29.334-31.3 37.924-7.28 3.871-15.146 7.618-24.131 7.618-23.092 0-42.528-18.022-42.528-40.971 0-6.1 2.537-12.408 3.3-18.686z\\\" fill=\\\"#fff\\\"/><path d=\\\"M80 140.124c33.689 0 61-27.141 61-60.62 0-33.481-27.311-60.622-61-60.622-33.69 0-61 27.141-61 60.621 0 33.48 27.31 60.621 61 60.621zm0-6.735c29.946 0 54.222-24.126 54.222-53.886S109.946 25.618 80 25.618 25.778 49.743 25.778 79.503c0 29.76 24.276 53.886 54.222 53.886z\\\" fill=\\\"#fff\\\"/></g><defs><clipPath id=\\\"default-favicon_svg__clip0\\\"><path fill=\\\"#fff\\\" d=\\\"M0 0h160v160H0z\\\"/></clipPath></defs>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 160 160\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/desert\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><path d=\\\"M276.798 195.344v-36.751c-3.008-8.173-7.957-12.259-14.846-12.259-6.89 0-11.388 3.809-13.494 11.426v40.593c-2.54.208-4.596-.15-6.17-1.074-1.574-.923-1.756-7.78-.547-20.567-2.157-5.968-5.47-8.951-9.94-8.951s-7.597 2.357-9.381 7.072v39.487l-44.527 15.54-48.556-23.776-17.16 3.704H91.254l-30.81 10.305-60.21 17.361L17.63 90.173 71.475 7.43 250.817.808l129.273 42.65-24.055 191.01-57.86-43.878-15.257 2.618-6.12 2.136z\\\" id=\\\"desert_svg__a\\\"/></defs><g transform=\\\"translate(1 -9)\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><g transform=\\\"translate(25)\\\"><mask id=\\\"desert_svg__b\\\" fill=\\\"#fff\\\"><use xlink:href=\\\"#desert_svg__a\\\"/></mask><use fill-opacity=\\\"0\\\" fill=\\\"#4386AF\\\" fill-rule=\\\"nonzero\\\" xlink:href=\\\"#desert_svg__a\\\"/><circle fill=\\\"#E5EFF5\\\" fill-rule=\\\"nonzero\\\" opacity=\\\".5\\\" mask=\\\"url(#desert_svg__b)\\\" cx=\\\"180.5\\\" cy=\\\"170.5\\\" r=\\\"161.5\\\"/><circle stroke=\\\"#E5EFF5\\\" stroke-width=\\\"2\\\" fill=\\\"#FFF\\\" fill-rule=\\\"nonzero\\\" mask=\\\"url(#desert_svg__b)\\\" cx=\\\"114.5\\\" cy=\\\"81.5\\\" r=\\\"27.5\\\"/></g><g transform=\\\"translate(0 25)\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"2\\\"><path d=\\\"M20.228 221.944h60.85\\\" stroke=\\\"#9BAEB8\\\" opacity=\\\".8\\\"/><path d=\\\"M127.136 230.777h18.413M88.93 261.025h7.032M326.645 243.999h15.357M101.976 261.025h7.294\\\" stroke=\\\"#9BAEB8\\\"/><path d=\\\"M128.069 202.505h6.473M145.615 202.505h19.178M134.051 195.545h19.178\\\" stroke=\\\"#C5D2D9\\\"/><path d=\\\"M329.042 221.944h53.293\\\" stroke=\\\"#9BAEB8\\\" opacity=\\\".8\\\"/><path d=\\\"M281.91 239.387h29.491\\\" stroke=\\\"#9BAEB8\\\"/><path d=\\\"M201.472 204.61s19.836-7.021 39.527-13.47\\\" stroke=\\\"#C5D2D9\\\"/><path d=\\\"M264.061 239.387h11.674\\\" stroke=\\\"#9BAEB8\\\"/><path d=\\\"M321.548 221.944h-6.495M91.813 221.944h20.123M213.033 221.944h37.273\\\" stroke=\\\"#9BAEB8\\\" opacity=\\\".8\\\"/><path d=\\\"M22.035 213.263s63.107-17.023 91.364-27.866c6.675-2.562 18.056-.624 24-.815 8.842-.285 14.525-3.664 16.06-3.666 2.834-.004 13.448 5.643 24.868 12.234 15.994 9.23 33.569 15.733 33.569 15.733M307.311 168.294c8.612-1.819 14.355-3.43 16.935-1.957 6.181 3.53 60.157 46.87 60.157 46.87\\\" stroke=\\\"#C5D2D9\\\"/><path d=\\\"M273.276 239.11v-45.613h-19.635a6.416 6.416 0 01-6.418-6.418v-34.918a9.527 9.527 0 019.527-9.527h.13a9.527 9.527 0 019.527 9.527v17.335a3.816 3.816 0 003.817 3.817h3.052v-37.878c0-7.873 6.392-14.265 14.265-14.265s14.265 6.392 14.265 14.265v56.112h2.758a3.814 3.814 0 003.816-3.817v-2.016a7.656 7.656 0 017.656-7.656h.002a7.656 7.656 0 017.656 7.656v14.728a6.418 6.418 0 01-6.418 6.418h-15.47v32.25M257.13 142.044v-6.085M251.353 144.207l-4.211-5.105M262.517 144.132l3.306-3.305M279.072 123.986l-3.6-4.417M283.947 121.359l-2.223-7.232M275.335 128.022l-5.131-1.19M299.529 126.81l5.195-3.505M295.548 122.96l2.99-4.416M289.774 120.841l.747-5.407M310.434 180.392l-4.084-4.083M316.171 178.15v-5.64M321.451 179.754l3.63-3.63M323.366 183.706l5.018-.812M247.6 148.722l-5.269-2.45M92.782 260.972c1.21-.811 3.63-2.434 5.692-3.055 2.088-.629 5.323-1.186 6.834-.719 1.327.41 1.929 2.483 2.23 3.52M322.104 243.43c1.065-1.619 3.196-4.857 4.71-5.749 1.261-.742 3.086.383 4.372.399 1.121.013 2.509-1.049 3.349-.307 1.06.935 2.36 4.257 3.01 5.918\\\" stroke=\\\"#9BAEB8\\\"/><path d=\\\"M0 213.314h267.074M309.401 213.314h88.156\\\" stroke=\\\"#C5D2D9\\\"/></g></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 400 279\",\n      \"xmlns:xlink\": \"http://www.w3.org/1999/xlink\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/desktop\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M8.036 11.835a.5.5 0 01.463.534 5.524 5.524 0 01-1.1 2.932.5.5 0 11-.798-.602c.525-.697.838-1.53.9-2.401a.5.5 0 01.535-.463zm1.928 0a.5.5 0 01.535.463c.062.87.375 1.704.9 2.401a.5.5 0 01-.798.602 5.525 5.525 0 01-1.1-2.932.5.5 0 01.463-.534z\\\"/><path d=\\\"M5.5 15a.5.5 0 01.5-.5h6a.5.5 0 010 1H6a.5.5 0 01-.5-.5zM.834 10.334a.5.5 0 01.5-.5h15.333a.5.5 0 110 1H1.334a.5.5 0 01-.5-.5z\\\"/><path d=\\\"M2 1.5a.167.167 0 00-.166.167v10c0 .092.075.166.167.166h14a.167.167 0 00.166-.166v-10a.167.167 0 00-.166-.167H2zm-1.166.167C.834 1.022 1.356.5 2.001.5h14c.644 0 1.166.522 1.166 1.167v10c0 .644-.522 1.166-1.166 1.166H2a1.167 1.167 0 01-1.167-1.166v-10z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 18 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/diamond\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.999 7.504L24 7.501V7.5a.486.486 0 00-.083-.26l-.01-.03-5-7.001-.037-.032-.11-.095-.071-.037-.052-.027-.088-.007L18.5 0h-13l-.05.012-.088.007-.052.027-.07.037-.11.095-.037.031-5 7.001-.01.03A.486.486 0 000 7.5v.001l.001.004c.001.095.035.18.082.255l.01.032 11.5 16 .077.066.06.051c.081.054.171.091.27.091s.189-.038.27-.091l.06-.051.076-.066 11.5-16 .01-.032a.481.481 0 00.083-.256zM5.305 1.635L6.837 7H1.472l3.833-5.365zM15.84 8L12 21.654 8.16 8h7.68zM8.416 7L12 1.425 15.584 7H8.416zm4.5-6h4.921l-1.514 5.3L12.916 1zM7.677 6.3L6.162 1h4.921L7.677 6.3zM7.121 8l3.63 12.905L1.475 8h5.646zm9.758 0h5.646l-9.276 12.905L16.879 8zm.284-1l1.533-5.365L22.528 7h-5.365z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/dotdotdot\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>circle{fill:currentColor}</style></defs><circle cx=\\\"3.25\\\" cy=\\\"12\\\" r=\\\"2.6\\\"/><circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"2.6\\\"/><circle cx=\\\"20.75\\\" cy=\\\"12\\\" r=\\\"2.6\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/download-circle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M11.5 0C5.159 0 0 5.159 0 11.5S5.159 23 11.5 23 23 17.841 23 11.5 17.841 0 11.5 0zm0 22C5.71 22 1 17.29 1 11.5S5.71 1 11.5 1 22 5.71 22 11.5 17.29 22 11.5 22zm5.146-9.854L12 16.793V5a.5.5 0 00-1 0v11.793l-4.647-4.646a.5.5 0 00-.707.707l5.499 5.5.163.108.192.038.191-.039.163-.108 5.499-5.5a.5.5 0 00-.707-.707z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/download\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M20 5.5l-8 8-8-8m-3.5 13h23\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/eco-globe\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#000\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"><path d=\\\"M.5 14.5h4v8h-4z\\\"/><path stroke-linecap=\\\"round\\\" d=\\\"M4.5 21c10.729 3.577 6.771 3.613 19-2.5-1.063-1.062-1.903-1.313-3-1l-4.434 1.471M4.5 15.5h3c2.353 0 4 1.5 4.5 2h3c1.593 0 1.593 2 0 2H9.5m-2.649-7.279a8.001 8.001 0 1111.241 3.281m1.821-12.265s-.348 1.911-1.739 2.606c-1.391-.348-2.782.694-2.435.694.348 0 .695 1.392.695 1.392.349.348 1.044 0 1.044 0 .869.869-1.392 2.436-1.392 2.783s.87.521.347 1.044c-.521.521-1.042.694-1.042.694 0 1.739-1.74 1.739-2.087 1.739-.348 0-1.044-1.392-1.044-1.739s.349-.694.349-1.043c0-.348-.696-1.043-.696-1.043 0-1.392-1.043-1.044-2.087-1.044-1.043 0-1.043-1.392-1.043-1.392s0-2.434 1.739-2.781c1.738-.35 1.738.348 1.738.348.697.694 2.087 0 2.783 0 0 0 .348-2.436-.348-2.088-.695.35-1.319.079-1.39-.694C13.203 1.625 16.34.974 16.34.974\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/eco-lightbulb\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#000\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"><path d=\\\"M7.547 9.619c-.465 1.946.158 3.638 3.425 2.877 2.568 2.157 3.842 1.135 4.355-1.014.515-2.148-1.034-6.417-3.232-7.972C10.91 6.313 8.13 7.188 7.547 9.619zM9 20.5h5m-5 2h5m-2.5 0v1m0-5s-1.555-7.863.526-11.168\\\"/><path d=\\\"M20.5 9c0-4.693-4.03-8.5-9-8.5-4.971 0-9 3.807-9 8.5 0 3.874 2.747 7.137 6.5 8.161V18.5h5v-1.339c3.753-1.024 6.5-4.287 6.5-8.161z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/edit-view\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\"><path d=\\\"M8.25 17.25h-6c-1 0-1.5-.5-1.5-1.5V2.55c0-.414.146-.768.44-1.06a1.44 1.44 0 011.06-.44h13.5c1 0 1.5.5 1.5 1.5v5.7\\\"/><path d=\\\"M4.2 11.8c.001-1.2.601-1.8 1.8-1.8 1.2 0 1.8.6 1.8 1.8.001 1.2-.599 1.8-1.798 1.8-1.2 0-1.8-.6-1.801-1.8zM8.5 6c0 1.2.6 1.8 1.8 1.8 1.2 0 1.8-.6 1.8-1.8 0-1.2-.6-1.8-1.8-1.8-.496 0-.92.175-1.273.527A1.736 1.736 0 008.5 6zm13.131 7.87L14 21.5l-3.75.75.75-3.75 7.631-7.63c.997-.997 1.994-.997 2.991 0l.009.009c.997.997.997 1.994 0 2.991zM7.8 11.8h4.4M8.5 6H4.2m9.6 0h-1.2\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/ellipsis\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M3.375 15.398C1.514 15.398 0 13.884 0 12.023s1.514-3.375 3.375-3.375 3.375 1.514 3.375 3.375-1.514 3.375-3.375 3.375zm0-5.25c-1.034 0-1.875.841-1.875 1.875s.841 1.875 1.875 1.875 1.875-.841 1.875-1.875-.841-1.875-1.875-1.875zm17.25 5.25c-1.861 0-3.375-1.514-3.375-3.375s1.514-3.375 3.375-3.375S24 10.162 24 12.023s-1.514 3.375-3.375 3.375zm0-5.25c-1.034 0-1.875.841-1.875 1.875s.841 1.875 1.875 1.875 1.875-.841 1.875-1.875-.841-1.875-1.875-1.875zM12 15.398c-1.861 0-3.375-1.514-3.375-3.375S10.139 8.648 12 8.648s3.375 1.514 3.375 3.375-1.514 3.375-3.375 3.375zm0-5.25c-1.034 0-1.875.841-1.875 1.875s.841 1.875 1.875 1.875 1.875-.841 1.875-1.875-.841-1.875-1.875-1.875z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/email-love-letter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.991 11.464l-.036-.146-.028-.068-.011-.027-.115-.114-.018-.021-.008-.005h-.001L20 8.487V.5a.5.5 0 00-.5-.5h-15a.5.5 0 00-.5.5v7.987L.226 11.082l-.003.002-.006.004-.015.016-.118.118-.011.027-.028.068-.036.146L0 11.5V22c0 1.103.897 2 2 2h20c1.103 0 2-.897 2-2V11.5l-.009-.036zm-1.383.03L20 13.232V9.701l2.608 1.793zM4 13.232l-2.608-1.739L4 9.701v3.531zM22 23H2c-.551 0-1-.449-1-1v-9.566l5.223 3.482a.5.5 0 00.554-.832L5 13.899V1h14v12.899l-1.777 1.185a.5.5 0 10.554.832L23 12.434V22c0 .551-.449 1-1 1zm-6.188-6.891A.502.502 0 0015.5 16h-7a.502.502 0 00-.312.109l-5 4a.501.501 0 00.625.781L8.675 17h6.649l4.863 3.891a.505.505 0 00.704-.079.501.501 0 00-.078-.703l-5.001-4zm-4.106-3.33a.497.497 0 00.588 0C12.776 12.429 17 9.282 17 6.678c0-1.868-1.387-2.984-2.728-2.984-.772 0-1.674.379-2.272 1.368-.598-.988-1.5-1.368-2.272-1.368C8.387 3.693 7 4.81 7 6.678c0 2.604 4.224 5.751 4.706 6.101zM9.728 4.693c.844 0 1.511.681 1.786 1.822.108.45.864.45.973 0 .274-1.141.942-1.822 1.786-1.822.85 0 1.728.742 1.728 1.984 0 1.646-2.658 4.037-4 5.072-1.342-1.035-4-3.426-4-5.072C8 5.436 8.878 4.693 9.728 4.693z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/email-send\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.758 7.621C23.491 7.226 23.027 7 22.484 7h-12c-1.03 0-2.157.797-2.565 1.814l-2.8 7c-.229.572-.196 1.142.09 1.565.268.395.732.621 1.275.621h12c1.03 0 2.157-.797 2.564-1.815l2.8-6.999c.229-.572.196-1.143-.09-1.565zm-.839 1.193l-2.8 7c-.252.632-1.016 1.186-1.635 1.186h-12c-.148 0-.345-.031-.447-.181-.097-.143-.093-.374.011-.633l2.8-6.999C9.106 8.543 9.854 8 10.484 8h12c.147 0 .344.031.446.181.097.143.093.374-.011.633zm-1.981.25l-6.765 3.811-3.632-3.725a.5.5 0 10-.715.699l3.9 4a.501.501 0 00.604.087l7.1-4a.5.5 0 10-.492-.872zm-10.145 4.029l-3.5 2.5a.499.499 0 00.291.907c.101 0 .202-.03.29-.093l3.5-2.5a.5.5 0 00-.581-.814zm6.72.15a.5.5 0 10-.857.515l1.5 2.5a.5.5 0 10.857-.514l-1.5-2.501zM.5 8h5a.5.5 0 000-1h-5a.5.5 0 000 1zm2 8h-2a.5.5 0 000 1h2a.5.5 0 000-1zm1-5h-3a.5.5 0 000 1h3a.5.5 0 000-1z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/email-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.email-stroke_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><rect class=\\\"email-stroke_svg__a\\\" x=\\\"1.5\\\" y=\\\"4.75\\\" width=\\\"21\\\" height=\\\"15\\\" rx=\\\"1.5\\\" ry=\\\"1.5\\\"/><path class=\\\"email-stroke_svg__a\\\" d=\\\"M22.161 5.3l-8.144 6.264a3.308 3.308 0 01-4.034 0L1.839 5.3\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/email-unread\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M2.667 3.136a.833.833 0 00-.833.833v8c0 .46.373.833.833.833h12.667c.46 0 .833-.373.833-.833v-8a.833.833 0 00-.833-.833H2.667zm-1.833.833c0-1.012.82-1.833 1.833-1.833h12.667c1.012 0 1.833.82 1.833 1.833v8c0 1.013-.82 1.833-1.833 1.833H2.667A1.833 1.833 0 01.834 11.97v-8z\\\"/><path d=\\\"M1.34 2.708a.5.5 0 01.703-.071l6.958 5.687 6.957-5.687a.5.5 0 11.633.774L9.317 9.356a.5.5 0 01-.633 0L1.41 3.411a.5.5 0 01-.07-.703z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 18 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/email\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M2.25 20.25A2.252 2.252 0 010 18V6a2.25 2.25 0 01.599-1.524A2.255 2.255 0 012.25 3.75h19.5a2.253 2.253 0 011.703.784c.351.404.547.927.547 1.466v12a2.252 2.252 0 01-2.25 2.25H2.25zM1.5 18c0 .414.336.75.75.75h19.5a.75.75 0 00.75-.75V6.187l-5.616 3.873 3.125 2.889a.751.751 0 01-.509 1.301.75.75 0 01-.509-.199l-3.373-3.118-1.825 1.259a3.135 3.135 0 01-1.793.556 3.14 3.14 0 01-1.793-.556l-1.825-1.258-3.373 3.118a.754.754 0 01-1.06-.042.751.751 0 01.041-1.06l3.125-2.889L1.5 6.187V18zm9.559-7.043c.276.191.601.291.941.291.34 0 .665-.101.941-.291l8.276-5.707H2.783l8.276 5.707z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/expand\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M5.5 20c-.827 0-1.5-.673-1.5-1.5v-10C4 7.673 4.673 7 5.5 7h5a.5.5 0 010 1h-5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5v-4.97a.5.5 0 011 0v4.97c0 .827-.673 1.5-1.5 1.5h-10z\\\"/><path d=\\\"M7.5 17.014a.5.5 0 01-.354-.854L18.293 5.014H13.5a.5.5 0 010-1h6a.5.5 0 01.5.5v6a.5.5 0 01-1 0V5.721L7.854 16.867a.496.496 0 01-.354.147z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/external\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M22.707 1.293a1 1 0 010 1.414l-11 11a1 1 0 01-1.414-1.414l11-11a1 1 0 011.414 0z\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M13 2a1 1 0 011-1h8a1 1 0 011 1v8a1 1 0 11-2 0V3h-7a1 1 0 01-1-1zM1 2a1 1 0 011-1h7a1 1 0 010 2H3v18h18v-6a1 1 0 112 0v7a1 1 0 01-1 1H2a1 1 0 01-1-1V2z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/eye\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.eye_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"eye_svg__a\\\" d=\\\"M12 5.251C7.969 5.183 3.8 8 1.179 10.885a1.663 1.663 0 000 2.226C3.743 15.935 7.9 18.817 12 18.748c4.1.069 8.258-2.813 10.824-5.637a1.663 1.663 0 000-2.226C20.2 8 16.031 5.183 12 5.251z\\\"/><path class=\\\"eye_svg__a\\\" d=\\\"M15.75 12A3.75 3.75 0 1112 8.249 3.749 3.749 0 0115.75 12z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/facebook-heart\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M15 27c6.627 0 12-5.373 12-12S21.627 3 15 3 3 8.373 3 15s5.373 12 12 12z\\\" fill=\\\"#FF4F67\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15zm-3 0c0 6.627-5.373 12-12 12S3 21.627 3 15 8.373 3 15 3s12 5.373 12 12z\\\" fill=\\\"#fff\\\"/><path d=\\\"M14.5 11.441C15.434 9.811 16.375 9 18.25 9 20.317 9 22 11.49 22 13.28c0 3.252-4.484 6.777-7.5 8.72-2.713-1.678-7.5-5.468-7.5-8.72C7 11.49 8.684 9 10.75 9c1.875 0 2.809.811 3.75 2.441z\\\" fill=\\\"#FEFEFE\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 30 30\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/facebook-like\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M15 27c6.627 0 12-5.373 12-12S21.627 3 15 3 3 8.373 3 15s5.373 12 12 12z\\\" fill=\\\"#5E92FF\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15zm-3 0c0 6.627-5.373 12-12 12S3 21.627 3 15 8.373 3 15 3s12 5.373 12 12z\\\" fill=\\\"#fff\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M9.246 14.078h2.13c.17 0 .304.135.304.305v6.13c0 .17-.134.304-.304.304h-2.13a.31.31 0 01-.313-.305v-6.13a.31.31 0 01.313-.304zm3.687 5.88h6.506a.869.869 0 00.867-.868.887.887 0 00-.554-.806h.16c.457 0 .833-.501.833-.957a.838.838 0 00-.832-.842h-.161v-.071h.465a.844.844 0 00.841-.832.846.846 0 00-.841-.841h-.465v-.072h.465a.844.844 0 00.841-.832.846.846 0 00-.841-.841h-3.642c-.027-.01-.027-.036 0-.09.045-.09.143-.268.295-.537.152-.268.34-.617.439-1.065.098-.447.09-.993.009-1.423-.072-.42-.224-.733-.412-.93a.954.954 0 00-.653-.296c-.233-.008-.475.054-.645.206-.17.161-.259.403-.304.716-.036.322-.009.716-.018.958-.018.241-.062.34-.214.456-.161.116-.421.268-.663.474a5.221 5.221 0 00-.698.797c-.376.483-1.315 1.7-1.315 2.219v4.94c0 .295.242.537.537.537z\\\" fill=\\\"#FEFEFE\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 30 30\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/facebook\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M19 6h5V0h-5c-3.86 0-7 3.14-7 7v3H8v6h4v16h6V16h5l1-6h-6V7c0-.542.458-1 1-1z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/feature-image\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21.01 2.253h-18a1.5 1.5 0 00-1.5 1.5v16.5a1.5 1.5 0 001.5 1.5h18a1.5 1.5 0 001.5-1.5v-16.5a1.5 1.5 0 00-1.5-1.5zm-19.5 3.5h21\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M5 18.5L8.5 14l2.5 2 3.8-4.5 4.2 7H5zm5.25-6.5a1.25 1.25 0 100-2.5 1.25 1.25 0 000 2.5z\\\" stroke-miterlimit=\\\"10\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/file-tabular-data\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.file-tabular-data_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"file-tabular-data_svg__a\\\" d=\\\"M8.999 10.499v9M4.499 14.999h15M22.81 5.56a1.5 1.5 0 01.439 1.061V21A2.25 2.25 0 0121 23.249H3A2.25 2.25 0 01.749 21V3A2.251 2.251 0 013 .749h14.378a1.5 1.5 0 011.061.44z\\\"/><path class=\\\"file-tabular-data_svg__a\\\" d=\\\"M17.249.749v4.5a1.5 1.5 0 001.5 1.5h4.5M19.5 18.749a.75.75 0 01-.75.75H5.249a.75.75 0 01-.75-.75V10.5h14.25a.75.75 0 01.75.75zM13.5 10.5h-9V8.249a.75.75 0 01.75-.75h8.25\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/file-text-document\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21.961 6.308l-.108-.162L15.854.147l-.162-.108L15.5 0h-13a.5.5 0 00-.5.5v23a.5.5 0 00.5.5h19a.5.5 0 00.5-.5v-17l-.039-.192zM16 1.707L20.293 6H16V1.707zM3 23V1h12v5.5a.5.5 0 00.5.5H21v16H3zM7.5 8H12a.5.5 0 000-1H7.5a.5.5 0 000 1zm9 2h-9a.5.5 0 000 1h9a.5.5 0 000-1zm-6 3h-3a.5.5 0 000 1h3a.5.5 0 000-1zm0 3h-3a.5.5 0 000 1h3a.5.5 0 000-1zm0 3h-3a.5.5 0 000 1h3a.5.5 0 000-1zm6-6h-4a.5.5 0 00-.5.5v1a.5.5 0 001 0V14h1v5h-1a.5.5 0 000 1h3a.5.5 0 000-1h-1v-5h1v.5a.5.5 0 001 0v-1a.5.5 0 00-.5-.5z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/filter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M6.5 13.502H12M4 9.004L14 9M1.688 4.502h14.624\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 18 18\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/folder\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M31.313 8H28V6a.694.694 0 00-.688-.688H10.687v-2c0-.375-.313-.625-.688-.625H.686c-.375 0-.688.25-.688.625v22c0 2.25 1.813 4 4 4h23.313c2.625 0 4.688-2.063 4.688-4.625v-16a.694.694 0 00-.688-.688zm-24.625.688v16.625c0 1.5-1.188 2.688-2.688 2.688s-2.688-1.188-2.688-2.688V4h8v2c0 .375.313.688.688.688h16.688v1.313H7.313c-.375 0-.625.313-.625.688zm24 16c0 1.813-1.5 3.313-3.375 3.313H7c.625-.688 1-1.625 1-2.688v-16h22.688z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/gallery-placeholder\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#9BAEB8\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><path d=\\\"M116.564 6.731a6.215 6.215 0 00-6.831-5.532L6.731 12.025a6.216 6.216 0 00-5.532 6.831l11.244 106.98a6.217 6.217 0 006.831 5.532l103.002-10.826a6.215 6.215 0 005.532-6.831L116.564 6.73z\\\"/><path d=\\\"M109.22 13.398a4.003 4.003 0 00-4.397-3.561L13.33 19.453a4.005 4.005 0 00-3.562 4.398l9.19 87.44 99.453-10.453-9.191-87.44zM17.168 94.25l32.55-3.42M84.1 87.216l32.52-3.418\\\"/><g stroke-width=\\\"1.5\\\"><path d=\\\"M59.043 98.59c-9.3 1.04-6.382-12-19.314-16.619l52.269-5.493c-11.689 7.205-6.123 19.355-15.437 20.27l-17.518 1.841zm6.821-19.365C62.738 71.163 58.508 65.407 52.7 62.95m13.164 16.275c-2.227-13.332-1.061-23.69 8.078-32.121\\\"/><path d=\\\"M74.758 66.434c.627 3.041.077 5.81-1.648 8.306-1.725 2.496-4.12 3.989-7.186 4.478-.626-3.04-.076-5.809 1.649-8.305 1.724-2.496 4.12-3.989 7.185-4.479zm-12.174-21.1c2.198 1 3.686 2.615 4.464 4.844.778 2.228.618 4.418-.48 6.57-2.198-1.001-3.686-2.616-4.464-4.844-.778-2.229-.618-4.419.48-6.57zm29.191.643c-2.312 2.604-5.205 4.01-8.68 4.217-3.477.207-6.517-.845-9.12-3.156-2.605-2.312-4.01-5.205-4.218-8.68-.207-3.476.845-6.516 3.156-9.121l6.576-7.409c.658-.741 1.244-.539 1.303.45l.424 7.103 7.1-.422c1.2-.072 1.834.492 1.906 1.69l.424 7.101 7.101-.422c.99-.059 1.26.5.602 1.24l-6.575 7.409zm-42.39 3.888c2.249 1.404 3.672 3.398 4.27 5.982.597 2.583.194 5-1.21 7.249-1.405 2.25-3.4 3.673-5.983 4.27-2.583.597-5 .194-7.249-1.21l-6.4-3.997c-.64-.4-.563-.865.173-1.035l5.28-1.22-1.22-5.28c-.206-.89.136-1.439 1.027-1.645l5.278-1.221-1.22-5.279c-.17-.735.215-1.01.855-.61l6.399 3.996z\\\"/></g><path d=\\\"M20.698 98.047l4.933-.519m4.924-.518l4.933-.518m4.925-.517l4.933-.519M89.7 90.794l4.934-.518m4.924-.518l4.933-.518m4.925-.518l4.933-.518M21.65 107.106l4.933-.518m4.925-.518l4.933-.518m4.924-.518l4.933-.518m4.925-.518l4.933-.518m4.924-.518l4.933-.518m4.925-.518l4.933-.518m4.924-.518l4.933-.519m4.925-.517l4.933-.519m4.924-.517l4.933-.519m4.925-.517l4.933-.519m-97.226 5.617l3.061-.322m4.924-.518l4.934-.518m4.924-.517l4.933-.519m4.925-.517l4.933-.519m34.497-3.626l4.933-.518m4.924-.518l4.933-.518m4.925-.518l4.933-.518m4.925-.518l2.748-.289M64.504 126.583c19.467 1.362 53.066 4.343 62.482 5a6.215 6.215 0 006.634-5.766l7.503-107.307a6.215 6.215 0 00-5.766-6.634c-5.398-.377-18.289-1.224-18.289-1.224\\\" opacity=\\\".6\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 142 133\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/ghost-logo-orb\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 770 294\",\n      \"style\": \"background-size:100% 100%;background-repeat:no-repeat;background-image:url(assets/img/logos/ghost-logo-black-1.png)\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/ghost-logo\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M328.52 37.36c-27.017 0-40.97 19.323-40.97 43.16 0 23.837 13.61 43.162 40.97 43.162s40.968-19.325 40.968-43.163c0-23.84-13.954-43.16-40.97-43.16zm20.438 43.237c-.02 15.328-5.126 27.743-20.44 27.743-15.312 0-20.42-12.414-20.435-27.743v-.078c.016-15.33 5.124-27.74 20.437-27.74 15.312 0 20.42 12.41 20.438 27.74v.07zM207.553 5.19c0-1.103.885-2.124 1.984-2.282 0 0 13.577-1.95 14.784-2.115 1.37-.187 3.19.798 3.19 2.744v44.236c3.23-3.105 6.79-5.608 10.66-7.515 3.88-1.906 8.43-2.86 13.66-2.86 4.53 0 8.53.776 12.03 2.33 3.5 1.55 6.43 3.73 8.77 6.533 2.34 2.81 4.12 6.16 5.33 10.05 1.21 3.9 1.82 8.19 1.82 12.87v51.35a2 2 0 01-2 2h-15.95c-1.1 0-2-.9-2-1.99V69.18c0-5.118-1.17-9.08-3.51-11.888-2.35-2.804-5.86-4.207-10.544-4.207-3.45 0-6.677.79-9.69 2.37-3.02 1.58-5.87 3.73-8.564 6.46v58.617c0 1.102-.894 2-2.002 2h-15.94a2 2 0 01-2.005-2V5.188zm244.007 95.327v-43.68h-13.482c-1.1 0-1.742-.87-1.443-1.916l3-10.49c.262-.9.942-1.87 2.308-2.07l9.597-1.35 3.508-23.49c.163-1.09 1.18-2.1 2.274-2.26 0 0 9.192-1.31 10.963-1.58 1.673-.25 3.19.97 3.19 2.81v24.52h17.565c1.106 0 2.002.9 2.002 2.01v11.82c0 1.11-.89 2.01-2.002 2.01h-17.566v43.08c0 6.02 3.623 8.32 7.095 8.32 2.12 0 5.02-1.14 7.19-2.16 1.34-.62 3.41-.16 3.95 1.73l2.45 8.65c.3 1.07-.25 2.37-1.23 2.86 0 0-7.29 4.37-17.06 4.37-13.73 0-22.33-8.08-22.33-23.16zm-44.584-47.74c-7.084 0-12.657 2.476-12.657 8.433 0 7.44 12.01 9.606 20.23 12.64 5.49 2.027 20.24 5.98 20.24 22.016 0 19.48-16 27.807-33.06 27.807-17.06 0-25.4-5.465-25.4-5.465-.96-.527-1.5-1.822-1.2-2.89 0 0 2.1-7.52 2.64-9.386.48-1.68 2.41-2.27 3.64-1.792 4.39 1.712 12.32 4.092 21.28 4.092 9.07 0 13.46-2.803 13.46-8.777 0-7.95-12.26-10.38-20.36-12.967-5.59-1.78-20.36-5.93-20.36-23.566 0-17.373 15.08-25.524 31.2-25.524 13.64 0 23.5 4.69 23.5 4.69 1.01.427 1.58 1.635 1.28 2.698l-2.658 9.357c-.488 1.74-1.898 2.537-3.666 1.957-3.89-1.277-11.2-3.322-18.15-3.322zm-210.313-15.28c-6.695.775-11.472 3.962-14.562 6.93-6.06-4.81-14.49-7.106-23.94-7.106-18.95 0-33.76 9.26-33.76 29.43 0 11.58 4.88 19.56 12.62 24.26-5.75 2.75-9.57 8.59-9.57 14.34 0 9.61 7.5 12.61 7.5 12.61s-13.11 6.44-13.11 19.32c0 16.49 15.01 23.16 33.34 23.16 26.43 0 44.61-11.04 44.61-31.31 0-12.47-9.44-19.36-30.01-20.18-12.2-.48-20.11-.93-22.07-1.58-2.59-.87-3.86-2.96-3.86-5.28 0-2.55 2.08-4.98 5.35-6.65 2.86.516 5.87.768 8.99.768 18.97 0 33.76-9.223 33.76-29.425 0-4.897-.87-9.15-2.46-12.78 2.79-1.506 8.34-2.25 8.34-2.25 1.09-.17 1.975-1.21 1.974-2.31V40.3c0-1.88-1.59-2.955-3.1-2.78zm-49.13 85.132s9.954.38 19.9.84c11.172.52 14.654 2.96 14.654 8.81 0 7.15-9.71 14.1-23.28 14.1-12.88 0-19.314-4.54-19.314-12.08 0-4.33 2.26-9.18 8.04-11.69zm10.66-40.54c-8.978 0-15.983-4.83-15.983-15.35 0-10.53 7.01-15.35 15.983-15.35 8.974 0 15.984 4.81 15.984 15.34 0 10.53-7.002 15.34-15.984 15.34z\\\" fill=\\\"#2D3134\\\"/><g opacity=\\\".6\\\" transform=\\\"translate(0 36)\\\" fill=\\\"#2E3134\\\"><rect x=\\\".209\\\" y=\\\"69.017\\\" width=\\\"33.643\\\" height=\\\"17.014\\\" rx=\\\"4\\\"/><rect x=\\\"50.672\\\" y=\\\"69.017\\\" width=\\\"33.622\\\" height=\\\"17.014\\\" rx=\\\"4\\\"/><rect x=\\\".184\\\" y=\\\"34.99\\\" width=\\\"84.121\\\" height=\\\"17.014\\\" rx=\\\"4\\\"/><rect x=\\\".209\\\" y=\\\".964\\\" width=\\\"50.469\\\" height=\\\"17.013\\\" rx=\\\"4\\\"/><rect x=\\\"67.494\\\" y=\\\".964\\\" width=\\\"16.821\\\" height=\\\"17.013\\\" rx=\\\"4\\\"/></g></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 493 161\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/ghost-orb\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 400 400\",\n      \"style\": \"background-size:100% 100%;background-repeat:no-repeat;background-image:url(assets/img/logos/orb-black-1.png)\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/ghost-squircle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M200 400c56.003 0 123.694-2.909 160-40 35.302-36.066 40-105.546 40-160 0-55.313-3.709-123.794-40-160C323.82 3.905 255.143 0 200 0 144.832 0 76.183 3.877 40 40 3.738 76.202 0 144.711 0 200c0 55.967 2.95 123.699 40 160 36.072 35.342 105.511 40 160 40z\\\" fill=\\\"#15212A\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M136.317 242.721a4.002 4.002 0 014.007-4.005h43.045a4.007 4.007 0 014.007 4.005v17.805a4.002 4.002 0 01-4.007 4.005h-43.045a4.007 4.007 0 01-4.007-4.005v-17.805zm76.585 0a4 4 0 014.004-4.005h43.018a4.005 4.005 0 014.004 4.005v17.805a4 4 0 01-4.004 4.005h-43.018a4.006 4.006 0 01-4.004-4.005v-17.805z\\\" fill=\\\"#F6F8FA\\\"/><path d=\\\"M259.945 187.088H140.279a4 4 0 00-4 4v17.815a4 4 0 004 4h119.666a4 4 0 004-4v-17.815a4 4 0 00-4-4z\\\" fill=\\\"#F6F8FA\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M136.317 139.467a4.008 4.008 0 013.997-4.005h68.601a4.003 4.003 0 013.997 4.005v17.804a4.007 4.007 0 01-3.997 4.005h-68.601a4.003 4.003 0 01-3.997-4.005v-17.804z\\\" fill=\\\"#F6F8FA\\\"/><path d=\\\"M259.96 135.462h-17.528a4 4 0 00-4 4v17.813a4 4 0 004 4h17.528a4 4 0 004-4v-17.813a4 4 0 00-4-4z\\\" fill=\\\"#F6F8FA\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 400 400\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/gift\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 21.488H4v-10.75a.75.75 0 00-1.5 0v10.75c0 .914.586 1.5 1.5 1.5h8a.75.75 0 000-1.5z\\\"/><path d=\\\"M12.25 21.488h8v-10.75a.75.75 0 011.5 0v10.75c0 .914-.586 1.5-1.5 1.5h-8a.75.75 0 010-1.5z\\\"/><path d=\\\"M2.682 6.238h18.636c1.004 0 1.682.546 1.682 1.5v2.25c0 .954-.678 1.5-1.682 1.5H2.682c-1.004 0-1.682-.546-1.682-1.5v-2.25c0-.954.678-1.5 1.682-1.5zm0 1.5c-.239 0-.182-.046-.182 0v2.25c0 .046-.057 0 .182 0h18.636c.239 0 .182.046.182 0v-2.25c0-.046.057 0-.182 0H2.682z\\\"/><path d=\\\"M12.75 22.238V6.988a.75.75 0 00-1.5 0v15.25a.75.75 0 001.5 0z\\\"/><path d=\\\"M3.5 17.25h17a.75.75 0 000-1.5h-17a.75.75 0 000 1.5zM7.271 5.457a12.506 12.506 0 004.51 2.255.75.75 0 00.92-.918 12.473 12.473 0 00-2.256-4.511C8.947.777 7.705.657 6.671 1.683c-1.033 1.027-.908 2.273.533 3.714l.067.06zm.458-2.709c.397-.395.702-.366 1.596.528.587.755 1.079 1.6 1.456 2.516a11.002 11.002 0 01-2.549-1.487c-.865-.872-.89-1.173-.503-1.557z\\\"/><path d=\\\"M16.796 5.397l-.067.06a12.5 12.5 0 01-4.512 2.255.75.75 0 01-.918-.918 12.502 12.502 0 012.315-4.579c1.44-1.438 2.681-1.558 3.715-.531 1.033 1.026.908 2.272-.533 3.713zm-.525-2.649c-.397-.395-.702-.366-1.537.46a11.024 11.024 0 00-1.515 2.584 11.038 11.038 0 002.549-1.487c.865-.872.89-1.173.503-1.557z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/github-outline\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M11.999 0C5.383 0 0 5.383 0 12c0 5.177 3.298 9.754 8.276 11.406l.286.026c.623 0 1.059-.435 1.059-1.06l.001-.286c.001-.376.004-.988-.001-1.714a.5.5 0 00-.607-.486 5.037 5.037 0 01-1.061.123c-1.777 0-2.199-1.245-2.228-1.332a4.855 4.855 0 00-.626-1.143c.188.197.288.372.293.38.727 1.244 1.74 1.505 2.463 1.505a3.79 3.79 0 001.519-.345.5.5 0 00.29-.386c.076-.536.281-.984.564-1.228.15-.13.209-.336.15-.525s-.224-.327-.421-.35c-2.371-.271-4.795-1.1-4.795-5.189 0-1.06.355-1.984 1.053-2.749a.5.5 0 00.094-.526c-.104-.253-.39-1.136.009-2.374.362.026 1.179.205 2.522 1.116a.497.497 0 00.414.067 10.634 10.634 0 012.743-.369c.96.005 1.885.129 2.749.369.14.04.293.015.414-.067 1.342-.91 2.156-1.089 2.52-1.116.41 1.276.085 2.194.011 2.376a.501.501 0 00.094.527c.698.762 1.052 1.686 1.052 2.748 0 4.094-2.43 4.914-4.806 5.177a.502.502 0 00-.273.875c.185.16.614.65.614 1.742v3.184c0 .623.435 1.058 1.058 1.058.092 0 .193-.009.37-.047A11.987 11.987 0 0024 12c0-6.617-5.384-12-12.001-12zm3.55 22.421l-.118.013-.058-.058v-3.184c0-.767-.168-1.334-.38-1.745 2.285-.41 4.844-1.643 4.844-6.049 0-1.216-.375-2.289-1.116-3.195.165-.569.345-1.703-.216-3.118a.502.502 0 00-.312-.292 1.384 1.384 0 00-.407-.05c-.56 0-1.526.206-2.993 1.165a11.527 11.527 0 00-2.794-.347c-.969.005-1.905.122-2.789.347-1.467-.959-2.434-1.165-2.994-1.165a1.39 1.39 0 00-.409.05.5.5 0 00-.313.293c-.559 1.414-.38 2.548-.214 3.117-.741.908-1.117 1.981-1.117 3.195 0 4.406 2.56 5.643 4.842 6.06-.121.24-.215.51-.278.801a2.64 2.64 0 01-.871.162c-.68 0-1.203-.33-1.594-.998-.03-.055-.756-1.344-2.205-1.442-.532 0-.883.187-.988.529-.166.535.415.933.695 1.119.024.012.6.319 1.017 1.376.024.082.631 2.006 3.172 2.006.216 0 .439-.014.67-.043l-.001 1.115-.06.35-.039.007A10.987 10.987 0 011 12C1 5.935 5.935 1 11.999 1 18.065 1 23 5.935 23 12c0 4.743-3.021 8.938-7.451 10.421z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/github-star\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill=\\\"#010101\\\" d=\\\"M42.022 19.07l-11.799-1.704-5.27-10.614-5.269 10.614L7.885 19.07l8.538 8.273-2.013 11.673 10.543-5.511 10.544 5.511-2.013-11.673z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 48 48\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/github\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M16 .395c-8.836 0-16 7.163-16 16 0 7.069 4.585 13.067 10.942 15.182.8.148 1.094-.347 1.094-.77 0-.381-.015-1.642-.022-2.979-4.452.968-5.391-1.888-5.391-1.888-.728-1.849-1.776-2.341-1.776-2.341-1.452-.993.11-.973.11-.973 1.606.113 2.452 1.649 2.452 1.649 1.427 2.446 3.743 1.739 4.656 1.33.143-1.034.558-1.74 1.016-2.14-3.554-.404-7.29-1.777-7.29-7.907 0-1.747.625-3.174 1.649-4.295-.166-.403-.714-2.03.155-4.234 0 0 1.344-.43 4.401 1.64a15.353 15.353 0 014.005-.539c1.359.006 2.729.184 4.008.539 3.054-2.07 4.395-1.64 4.395-1.64.871 2.204.323 3.831.157 4.234 1.026 1.12 1.647 2.548 1.647 4.295 0 6.145-3.743 7.498-7.306 7.895.574.497 1.085 1.47 1.085 2.963 0 2.141-.019 3.864-.019 4.391 0 .426.288.925 1.099.768C27.421 29.457 32 23.462 32 16.395c0-8.837-7.164-16-16-16z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/globe\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M20.929 4.011a.504.504 0 00-.159-.175A12.003 12.003 0 0015.485.52l-.038-.01A11.977 11.977 0 0012 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12c0-3.07-1.169-5.865-3.071-7.989zm-.981.405c-.16.619-.699 2.294-2.02 3.056-1.772-.346-3.476.622-3.844 1.071-.237.289-.155.546-.109.643.066.14.239.257.405.298.167.188.46.938.636 1.638a.503.503 0 00.131.232c.485.485 1.177.399 1.629.266.064.535-.695 1.383-1.441 2.158-.556.578-.835.867-.835 1.222 0 .415.304.679.526.873.075.064.205.172.217.151l-.097.123c-.648.648-1.3.878-1.305.879a.5.5 0 00-.341.474c0 1.308-.817 1.98-2.429 2-.337-.25-1.051-1.632-1.071-2 0-.132.1-.333.197-.526.142-.284.303-.606.303-.974 0-.562-.621-1.304-1.005-1.708-.031-.618-.208-1.071-.537-1.382-.564-.532-1.407-.484-2.222-.438-.24.013-.488.028-.736.028-.979 0-.999-1.44-1-1.5 0-.031.024-3.095 2.098-3.51C8.545 7.201 8.97 7.471 9 7.5a.5.5 0 00.146.353c.894.894 2.25.579 3.339.325.396-.091.769-.178 1.015-.178a.5.5 0 00.495-.429c.189-1.327.279-3.007-.372-3.477-.242-.174-.55-.189-.847-.042-.362.182-.701.212-.926.087-.252-.14-.331-.45-.353-.686-.06-.643 1.948-1.519 3.837-1.934a11.03 11.03 0 014.614 2.897zM12 23C5.935 23 1 18.066 1 12 1 5.935 5.935 1 12 1c.425 0 .842.03 1.254.077-1.367.493-2.861 1.301-2.752 2.469.062.671.369 1.192.863 1.467.476.265 1.085.266 1.698.008.087.356.085 1.172-.008 2.018-.249.038-.518.101-.795.165-.84.196-1.783.414-2.309.026a1.097 1.097 0 00-.347-.484c-.511-.42-1.394-.498-2.702-.236C4.033 7.083 4 10.84 4 11c0 .865.418 2.5 2 2.5.267 0 .534-.015.793-.03.631-.036 1.227-.07 1.477.167.153.143.23.434.23.863 0 .132.053.26.146.354.424.424.831.975.854 1.146 0 .132-.1.333-.197.526-.142.284-.303.606-.303.974 0 .507 1.025 3 2 3 2.09 0 3.343-.966 3.486-2.665a5.124 5.124 0 001.367-.981c.266-.266.396-.546.386-.833-.015-.432-.328-.704-.557-.903l-.128-.105c.117-.144.332-.368.501-.542.939-.977 2.512-2.612 1.299-3.825a.5.5 0 00-.577-.094c-.209.105-.626.219-.838.145-.246-.928-.503-1.464-.733-1.774.547-.312 1.617-.703 2.674-.438a.504.504 0 00.345-.038c1.418-.709 2.147-2.157 2.494-3.13A10.939 10.939 0 0123 12c0 6.066-4.935 11-11 11z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/google-favicon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M533.5 278.4c0-18.5-1.5-37.1-4.7-55.3H272.1v104.8h147c-6.1 33.8-25.7 63.7-54.4 82.7v68h87.7c51.5-47.4 81.1-117.4 81.1-200.2z\\\" fill=\\\"#4285f4\\\"/><path d=\\\"M272.1 544.3c73.4 0 135.3-24.1 180.4-65.7l-87.7-68c-24.4 16.6-55.9 26-92.6 26-71 0-131.2-47.9-152.8-112.3H28.9v70.1c46.2 91.9 140.3 149.9 243.2 149.9z\\\" fill=\\\"#34a853\\\"/><path d=\\\"M119.3 324.3c-11.4-33.8-11.4-70.4 0-104.2V150H28.9c-38.6 76.9-38.6 167.5 0 244.4l90.4-70.1z\\\" fill=\\\"#fbbc04\\\"/><path d=\\\"M272.1 107.7c38.8-.6 76.3 14 104.4 40.8l77.7-77.7C405 24.6 339.7-.8 272.1 0 169.2 0 75.1 58 28.9 150l90.4 70.1c21.5-64.5 81.8-112.4 152.8-112.4z\\\" fill=\\\"#ea4335\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 533.5 544.3\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/google-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/google\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M39.15 15.898c0 4.303-3.378 7.473-7.525 7.473s-7.526-3.17-7.526-7.473c0-4.334 3.38-7.474 7.526-7.474 4.147 0 7.526 3.14 7.526 7.474zm-3.294 0c0-2.69-1.958-4.529-4.231-4.529-2.273 0-4.231 1.84-4.231 4.529 0 2.662 1.958 4.528 4.231 4.528 2.273 0 4.231-1.87 4.231-4.528z\\\" fill=\\\"#EA4335\\\"/><path d=\\\"M55.386 15.898c0 4.303-3.379 7.473-7.526 7.473-4.146 0-7.526-3.17-7.526-7.473 0-4.33 3.38-7.474 7.526-7.474 4.147 0 7.526 3.14 7.526 7.474zm-3.294 0c0-2.69-1.959-4.529-4.232-4.529s-4.231 1.84-4.231 4.529c0 2.662 1.958 4.528 4.231 4.528 2.273 0 4.232-1.87 4.232-4.528z\\\" fill=\\\"#FBBC05\\\"/><path d=\\\"M70.945 8.875v13.418c0 5.52-3.267 7.774-7.13 7.774-3.636 0-5.825-2.423-6.65-4.404l2.868-1.19c.511 1.217 1.763 2.652 3.779 2.652 2.472 0 4.004-1.52 4.004-4.38V21.67h-.115c-.737.906-2.158 1.698-3.95 1.698-3.751 0-7.188-3.255-7.188-7.443 0-4.22 3.437-7.501 7.188-7.501 1.789 0 3.21.792 3.95 1.671h.115V8.88h3.129v-.004zm-2.895 7.05c0-2.632-1.763-4.556-4.005-4.556-2.273 0-4.177 1.924-4.177 4.556 0 2.604 1.904 4.501 4.177 4.501 2.242 0 4.005-1.897 4.005-4.501z\\\" fill=\\\"#4285F4\\\"/><path d=\\\"M76.103 1.01v21.903H72.89V1.011h3.213z\\\" fill=\\\"#34A853\\\"/><path d=\\\"M88.624 18.357l2.558 1.699c-.826 1.216-2.815 3.312-6.251 3.312-4.262 0-7.445-3.282-7.445-7.474 0-4.444 3.21-7.473 7.076-7.473 3.893 0 5.798 3.086 6.42 4.754l.341.85-10.028 4.137c.768 1.5 1.962 2.264 3.636 2.264 1.678 0 2.841-.822 3.693-2.069zm-7.87-2.688l6.703-2.774c-.368-.933-1.478-1.583-2.783-1.583-1.674 0-4.005 1.472-3.92 4.357z\\\" fill=\\\"#EA4335\\\"/><path d=\\\"M11.936 13.953v-3.17h10.726c.105.552.159 1.206.159 1.914 0 2.378-.653 5.32-2.757 7.416-2.046 2.123-4.66 3.255-8.124 3.255-6.42 0-11.818-5.21-11.818-11.605C.122 5.368 5.52.158 11.94.158c3.551 0 6.081 1.389 7.982 3.198l-2.246 2.237c-1.363-1.273-3.21-2.264-5.74-2.264-4.688 0-8.354 3.764-8.354 8.434s3.666 8.434 8.354 8.434c3.041 0 4.773-1.216 5.882-2.322.9-.896 1.492-2.176 1.725-3.925l-7.607.003z\\\" fill=\\\"#4285F4\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 92 31\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/grab\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M9.125 27.438h4.563v4.563H9.125zm9.188 0h4.563v4.563h-4.563zm-9.188-9.125h4.563v4.563H9.125zm9.188 0h4.563v4.563h-4.563zM9.125 9.125h4.563v4.563H9.125zm9.188 0h4.563v4.563h-4.563zM9.125 0h4.563v4.563H9.125zm9.188 0h4.563v4.563h-4.563z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/graph-line\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#000\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"><path d=\\\"M.5.5h23v15H.5z\\\"/><path stroke-linecap=\\\"round\\\" d=\\\"M11.5 15.5v3m-5 5l5-5 5 5m-14-15h4l2-2.5 2 4.5 2.5-3 2 2 3.5-5\\\"/><path d=\\\"M2.5 2.5h19v11h-19z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/heart-beat\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.5 14H16a.5.5 0 00-.447.276l-.925 1.85-1.647-5.765a.501.501 0 00-.928-.087l-2.114 4.229-1.523-2.282a.502.502 0 00-.816-.023L6.25 14H.5a.5.5 0 000 1h6a.5.5 0 00.4-.2l1.075-1.435 1.608 2.411a.517.517 0 00.447.222.5.5 0 00.416-.275l1.925-3.85 1.647 5.765a.501.501 0 00.435.361L14.5 18a.499.499 0 00.447-.276L16.309 15H23.5a.5.5 0 000-1zM2.411 12.999l.19-.037a.5.5 0 00.273-.652C2.294 10.891 2 9.496 2 8.165c0-3.974 2.212-5.922 4.404-6.089 2.138-.168 4.537 1.313 5.102 4.982a.5.5 0 00.988-.001c.573-3.719 3.048-5.208 5.241-5.045C19.858 2.174 22 3.957 22 7.574c0 1.448-.402 3.033-1.197 4.712a.5.5 0 10.904.428C22.565 10.9 23 9.17 23 7.574c0-4.234-2.69-6.368-5.188-6.559C15.653.854 13.144 2.065 12 5.018 10.874 2.112 8.416.913 6.328 1.079 3.676 1.281 1 3.551 1 8.165c0 1.462.319 2.983.948 4.523a.5.5 0 00.463.311zm15.967 3.198c-2.469 3.257-5.475 5.816-6.399 6.572-1.002-.71-4.321-3.192-6.848-6.569a.5.5 0 10-.801.599c3.102 4.147 7.22 6.896 7.394 7.011a.498.498 0 00.582-.021c.156-.121 3.845-2.996 6.869-6.987a.498.498 0 00-.097-.7.498.498 0 00-.7.095z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/heart-circle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12S18.617 0 12 0zm0 23C5.935 23 1 18.065 1 12S5.935 1 12 1s11 4.935 11 11-4.935 11-11 11zm2.777-15.5c-.951 0-2.071.492-2.777 1.785C11.294 7.992 10.174 7.5 9.223 7.5 7.639 7.5 6 8.823 6 11.037c0 3.181 5.473 7.198 5.706 7.367a.497.497 0 00.588 0c.233-.169 5.706-4.186 5.706-7.367C18 8.823 16.361 7.5 14.777 7.5zM12 17.376c-1.63-1.246-5-4.252-5-6.339C7 9.449 8.13 8.5 9.223 8.5c1.087 0 1.943.865 2.291 2.313.109.45.863.45.973 0 .347-1.448 1.203-2.313 2.29-2.313C15.87 8.5 17 9.449 17 11.037c0 2.084-3.37 5.092-5 6.339z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/heart\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.651 5.357c-.878-1.717-2.269-2.728-4.173-3.034-1.904-.305-3.541.22-4.912 1.577L13 5.329 11.434 3.9c-1.371-1.356-3.009-1.881-4.913-1.575-1.904.306-3.295 1.317-4.172 3.035-1.222 2.42-.867 4.582 1.063 6.486L13 21.75l9.588-9.907c1.93-1.904 2.285-4.066 1.063-6.486z\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"1.5\\\" stroke=\\\"#000\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 26 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/help\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke=\\\"#343F44\\\"><path d=\\\"M6.875 8.118c-.003-1.94.963-2.98 2.897-3.122 1.934-.143 3.042.745 3.323 2.664.282 1.92-.525 3.088-2.418 3.507-.446.088-.671.358-.677.812v.928m0 2.086c.139 0 .208.07.208.209 0 .139-.07.208-.208.208-.139 0-.208-.07-.208-.208a.204.204 0 01.208-.208\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M19.5 10c0-2.629-.924-4.859-2.782-6.718C14.858 1.424 12.628.5 10 .5c-2.629 0-4.859.924-6.718 2.782C1.424 5.142.5 7.372.5 10c0 2.629.924 4.859 2.782 6.718C5.142 18.576 7.372 19.5 10 19.5c2.629 0 4.859-.924 6.718-2.782 1.858-1.86 2.782-4.09 2.782-6.718z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 20 20\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/hotspot\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M27.313 2.688c-.25-.25-.688-.25-.938 0s-.25.688 0 .938c2.75 2.75 4.313 6.438 4.313 10.375s-1.563 7.625-4.313 10.375a.68.68 0 000 .938.677.677 0 00.438.188.71.71 0 00.5-.188 15.99 15.99 0 000-22.626zm-3.75 3.75a.68.68 0 00-.938 0c-.313.313-.313.688 0 .938 1.75 1.813 2.688 4.125 2.688 6.625s-.938 4.813-2.688 6.625a.586.586 0 000 .938c.125.125.25.188.438.188s.375-.063.5-.188c2-2.063 3.125-4.688 3.125-7.563s-1.125-5.5-3.125-7.563zM1.313 14c0-3.938 1.563-7.625 4.313-10.375.25-.25.25-.688 0-.938s-.688-.25-.938 0a15.99 15.99 0 000 22.626.71.71 0 00.5.188.677.677 0 00.438-.188.68.68 0 000-.938C2.876 21.625 1.313 17.937 1.313 14zm5.375 0c0-2.5.938-4.813 2.688-6.625a.586.586 0 000-.938.68.68 0 00-.938 0C6.438 8.5 5.313 11.125 5.313 14s1.125 5.5 3.125 7.563c.125.125.313.188.5.188s.313-.063.438-.188a.586.586 0 000-.938C7.626 18.812 6.688 16.5 6.688 14zM16 9.313c-2.563 0-4.688 2.125-4.688 4.688a4.656 4.656 0 004 4.625v10.688c0 .375.313.688.688.688s.688-.313.688-.688V18.626c2.25-.313 4-2.25 4-4.625 0-2.563-2.125-4.688-4.688-4.688zm0 8c-1.813 0-3.313-1.5-3.313-3.313s1.5-3.313 3.313-3.313c1.813 0 3.313 1.5 3.313 3.313s-1.5 3.313-3.313 3.313z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/house-bold\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><path id=\\\"house-bold_svg__a\\\" d=\\\"M.005.046H24v21.878H.005z\\\"/></defs><g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M0-1h24v24H0z\\\"/><mask id=\\\"house-bold_svg__b\\\" fill=\\\"#fff\\\"><use xlink:href=\\\"#house-bold_svg__a\\\"/></mask><path d=\\\"M13.504 21.064A.449.449 0 0113.5 21v-5.904a.75.75 0 00-.746-.672h-1.5a.75.75 0 00-.75.75v6a.75.75 0 01-.75.75h-6a.75.75 0 01-.75-.75v-.11A.449.449 0 013 21v-8.5c0-.133.053-.26.146-.354l8.5-8.5a.502.502 0 01.708 0l8.5 8.5A.504.504 0 0121 12.5v.346a.68.68 0 01.004.078v8.25a.75.75 0 01-.75.75h-6a.75.75 0 01-.75-.75v-.11z\\\" fill=\\\"#000\\\" mask=\\\"url(#house-bold_svg__b)\\\"/><path d=\\\"M.754 12.174a.752.752 0 01-.53-1.281L10.414.704a2.235 2.235 0 011.591-.658c.601 0 1.166.234 1.591.658l2.206 2.206a.751.751 0 01.702-.487h3.75a.75.75 0 01.75.75v4.939l2.78 2.78a.752.752 0 01-.53 1.281.743.743 0 01-.53-.22L12.535 1.766a.748.748 0 00-1.061 0L1.284 11.955a.746.746 0 01-.53.219z\\\" fill=\\\"#000\\\" mask=\\\"url(#house-bold_svg__b)\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 22\",\n      \"xmlns:xlink\": \"http://www.w3.org/1999/xlink\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/house\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22.272 23.247a.981.981 0 00.978-.978V9.747a1.181 1.181 0 00-.377-.8L12 .747l-10.873 8.2a1.181 1.181 0 00-.377.8v12.522a.981.981 0 00.978.978z\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"1.5\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/icon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M80 160c44.183 0 80-35.817 80-80S124.183 0 80 0 0 35.817 0 80s35.817 80 80 80zM78.437 15.592C42.072 19.679 25.947 34.72 22.295 64.98c-.415 3.441-1.232 6.89-2.045 10.322-1.145 4.831-2.282 9.63-2.282 14.336 0 30.285 25.49 54.068 55.774 54.068 11.784 0 22.1-4.944 31.648-10.053 21.187-11.335 41.049-25.255 41.049-50.046 0-17.507-12.852-33.145-23.779-46.443a1336.4 1336.4 0 01-1.636-1.992c-5.56-6.79-25.248-21.53-42.587-19.58z\\\" fill=\\\"#15171A\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 160 160\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/id-card\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.5 5H15V3.5c0-1.654-1.346-3-3-3s-3 1.346-3 3V5H.5a.5.5 0 00-.5.5v17a.5.5 0 00.5.5h23a.5.5 0 00.5-.5v-17a.5.5 0 00-.5-.5zM10 3.5c0-1.103.897-2 2-2s2 .897 2 2V7h-4V3.5zM9 6v1.5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5V6h8v3H1V6h8zM1 22V10h22v12H1zm7.745-5.715A2.487 2.487 0 009.5 14.5C9.5 13.122 8.378 12 7 12s-2.5 1.122-2.5 2.5c0 .7.291 1.331.755 1.785C3.629 16.867 3 18.259 3 19.5a.5.5 0 00.5.5h7a.5.5 0 00.5-.5c0-1.241-.629-2.633-2.255-3.215zM5.5 14.5c0-.827.673-1.5 1.5-1.5s1.5.673 1.5 1.5S7.827 16 7 16s-1.5-.673-1.5-1.5zM4.047 19c.149-.791.74-2 2.953-2s2.803 1.209 2.953 2H4.047zM13 18h8v1h-8zm0-2h8v1h-8zm0-2h8v1h-8zm0-2h4v1h-4z\\\"/><circle cx=\\\"12\\\" cy=\\\"3.495\\\" r=\\\"1\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/idea\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M10.5 23.25a.75.75 0 010-1.5h3a.75.75 0 010 1.5h-3zm0-3a.75.75 0 01-.75-.75v-1.157a6.708 6.708 0 01-4.5-6.389C5.263 8.246 8.291 5.229 12 5.229a6.718 6.718 0 014.79 1.994 6.708 6.708 0 011.96 4.78 6.697 6.697 0 01-4.5 6.341V19.5a.75.75 0 01-.75.75h-3zm2.25-1.5v-.962a.75.75 0 01.564-.727 5.236 5.236 0 003.936-5.063 5.217 5.217 0 00-1.524-3.719 5.215 5.215 0 00-3.707-1.551l-.021-.375v.375a5.258 5.258 0 00-5.247 5.231 5.245 5.245 0 003.937 5.102.75.75 0 01.562.726v.962h1.5v.001zm-.75-15a.75.75 0 01-.75-.75V1.5a.75.75 0 011.5 0V3a.75.75 0 01-.75.75zm9 7.5a.75.75 0 010-1.5h1.5a.75.75 0 010 1.5H21zm-19.5 1.5a.75.75 0 010-1.5H3a.75.75 0 010 1.5H1.5zm4.136-7.114a.743.743 0 01-.53-.22L4.045 4.355a.743.743 0 01-.22-.53c0-.2.078-.389.22-.53a.743.743 0 01.53-.22c.2 0 .389.078.53.22l1.061 1.061c.142.141.22.33.22.53s-.078.389-.22.53a.743.743 0 01-.53.22zm12.728 0a.743.743 0 01-.53-.22.743.743 0 01-.22-.53c0-.2.078-.389.22-.53l1.061-1.061a.744.744 0 011.06 0c.142.141.22.33.22.53s-.078.389-.22.53l-1.061 1.061a.743.743 0 01-.53.22z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/info\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M13.5 17.25A2.252 2.252 0 0111.25 15v-3.75h-.75a.75.75 0 010-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 010 1.5h-.75z\\\"/><circle cx=\\\"11.625\\\" cy=\\\"7.125\\\" r=\\\"1.125\\\"/><path d=\\\"M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/instagram\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M16 2.881c4.275 0 4.781.019 6.462.094 1.563.069 2.406.331 2.969.55a4.952 4.952 0 011.837 1.194 5.015 5.015 0 011.2 1.838c.219.563.481 1.412.55 2.969.075 1.688.094 2.194.094 6.463s-.019 4.781-.094 6.463c-.069 1.563-.331 2.406-.55 2.969a4.94 4.94 0 01-1.194 1.837 5.02 5.02 0 01-1.837 1.2c-.563.219-1.413.481-2.969.55-1.688.075-2.194.094-6.463.094s-4.781-.019-6.463-.094c-1.563-.069-2.406-.331-2.969-.55a4.952 4.952 0 01-1.838-1.194 5.02 5.02 0 01-1.2-1.837c-.219-.563-.481-1.413-.55-2.969-.075-1.688-.094-2.194-.094-6.463s.019-4.781.094-6.463c.069-1.563.331-2.406.55-2.969a4.964 4.964 0 011.194-1.838 5.015 5.015 0 011.838-1.2c.563-.219 1.412-.481 2.969-.55 1.681-.075 2.188-.094 6.463-.094zM16 0c-4.344 0-4.887.019-6.594.094-1.7.075-2.869.35-3.881.744-1.056.412-1.95.956-2.837 1.85a7.833 7.833 0 00-1.85 2.831C.444 6.538.169 7.7.094 9.4.019 11.113 0 11.656 0 16s.019 4.887.094 6.594c.075 1.7.35 2.869.744 3.881.413 1.056.956 1.95 1.85 2.837a7.82 7.82 0 002.831 1.844c1.019.394 2.181.669 3.881.744 1.706.075 2.25.094 6.594.094s4.888-.019 6.594-.094c1.7-.075 2.869-.35 3.881-.744 1.05-.406 1.944-.956 2.831-1.844s1.438-1.781 1.844-2.831c.394-1.019.669-2.181.744-3.881.075-1.706.094-2.25.094-6.594s-.019-4.887-.094-6.594c-.075-1.7-.35-2.869-.744-3.881a7.506 7.506 0 00-1.831-2.844A7.82 7.82 0 0026.482.843C25.463.449 24.301.174 22.601.099c-1.712-.081-2.256-.1-6.6-.1z\\\"/><path d=\\\"M16 7.781c-4.537 0-8.219 3.681-8.219 8.219s3.681 8.219 8.219 8.219 8.219-3.681 8.219-8.219A8.221 8.221 0 0016 7.781zm0 13.55a5.331 5.331 0 110-10.663 5.331 5.331 0 010 10.663zM26.462 7.456a1.919 1.919 0 11-3.838 0 1.919 1.919 0 013.838 0z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/integration\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#343f44\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path stroke-opacity=\\\".012\\\" stroke-width=\\\"0\\\" d=\\\"M-1-3h48v48H-1z\\\"/><g stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><path d=\\\"M32.932 6.574c.713.428 1.069 1.057 1.068 1.888v9.278l-11 7.076-11-7.076V8.462c0-.831.355-1.46 1.068-1.888l8.8-5.28c.755-.453 1.51-.453 2.264 0l8.8 5.28zM23 13.816v11\\\"/><path d=\\\"M34 31.416l-11-6.6 11-7.076 10 6.426c.669.435 1.002 1.052 1 1.85v8.124c.002.798-.331 1.415-1 1.85l-8.8 5.66c-.793.51-1.587.51-2.38 0L23 35.34V24.816m11 6.6V42M23 24.816V35.34l-9.8 6.31c-.793.51-1.587.51-2.38 0l-8.8-5.66c-.678-.43-1.018-1.047-1.02-1.85v-8.124c-.002-.798.331-1.415 1-1.85l10-6.426 11 7.076-11 6.6m0 0L1.262 24.974M12 31.416V42m11-28.184L12.282 7.384m21.436 0L23 13.816m21.738 11.158L34 31.416\\\"/></g></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 46 43\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/card-indicator-email\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#879BA3\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><path d=\\\"M3.875 5.75h16.25c.833 0 1.25.417 1.25 1.25v10c0 .833-.417 1.25-1.25 1.25H3.875c-.833 0-1.25-.417-1.25-1.25V7c0-.833.417-1.25 1.25-1.25zm11.197 4.562l3.178 2.938m-9.323-2.938L5.75 13.25\\\"/><path d=\\\"M21.067 6.178l-7.928 5.467c-.76.524-1.519.524-2.278 0L2.933 6.178\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/card-indicator-html\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M1 12V7m3 5V7M1 9.472h2.364M14 12V7l-1.5 2.472L11 7v5m8 0h-2.5V7m-9 5V7M6 7h3\\\" stroke=\\\"#9BAEB8\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 20 20\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/card-indicator-markdown\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path stroke=\\\"#9BAEB8\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M2 14V6l4 4 4-4v8m6-7.93v7.916M13.5 11.5l2.48 2.525L18.5 11.5\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 20 20\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/code-block\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke=\\\"#738A94\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><path d=\\\"M2 2h19l9 9v19H2z\\\"/><path d=\\\"M11 21l-3-3 3-3m10 6l3-3-3-3m-7 6l4-6m3.041-12.863v8.913h8.904\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M9 7h5a1 1 0 010 2H9v5a1 1 0 01-2 0V9H2a1 1 0 010-2h5V2a1 1 0 012 0v5z\\\" fill=\\\"#FFF\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-bold\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M7.412 6.217h1.176c1.276 0 2.236-.773 2.236-1.608 0-.835-.96-1.609-2.236-1.609H5.765v3.217h1.647zM5.765 13H9.47c1.405 0 2.53-1.08 2.53-2.391s-1.124-2.392-2.53-2.392H5.766V13zm-2 0V3H3a1 1 0 010-2h5.588c2.297 0 4.236 1.563 4.236 3.609 0 .877-.357 1.666-.945 2.28C13.15 7.665 14 9.037 14 10.61 14 13.043 11.963 15 9.47 15H3a1 1 0 010-2h.765z\\\" fill=\\\"#FFF\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-bookmark\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><filter x=\\\"-10.3%\\\" y=\\\"-4.6%\\\" width=\\\"120.6%\\\" height=\\\"111.2%\\\" filterUnits=\\\"objectBoundingBox\\\" id=\\\"kg-card-type-bookmark_svg__a\\\"><feOffset dy=\\\"5\\\" in=\\\"SourceAlpha\\\" result=\\\"shadowOffsetOuter1\\\"/><feGaussianBlur stdDeviation=\\\"8.5\\\" in=\\\"shadowOffsetOuter1\\\" result=\\\"shadowBlurOuter1\\\"/><feColorMatrix values=\\\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0\\\" in=\\\"shadowBlurOuter1\\\"/></filter><rect id=\\\"kg-card-type-bookmark_svg__b\\\" width=\\\"272\\\" height=\\\"499\\\" rx=\\\"4\\\"/><path id=\\\"kg-card-type-bookmark_svg__c\\\" d=\\\"M.99 0H19v24H.99z\\\"/></defs><g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><use fill=\\\"#000\\\" filter=\\\"url(#kg-card-type-bookmark_svg__a)\\\" xlink:href=\\\"#kg-card-type-bookmark_svg__b\\\" transform=\\\"translate(-200 -135)\\\"/><path d=\\\"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z\\\" fill=\\\"#fb2d8d\\\"/><path stroke-opacity=\\\".012\\\" stroke=\\\"#000\\\" stroke-width=\\\"0\\\" d=\\\"M11 0h24v24H11z\\\"/><g transform=\\\"translate(13)\\\"><mask id=\\\"kg-card-type-bookmark_svg__d\\\" fill=\\\"#fff\\\"><use xlink:href=\\\"#kg-card-type-bookmark_svg__c\\\"/></mask><path d=\\\"M2.998-.01v18.674c-.054.558.175.951.687 1.18.525.2.965.084 1.322-.35l2.689-2.683a.403.403 0 01.294-.122c.116 0 .214.041.295.122l2.69 2.684c.245.274.552.417.92.428.139 0 .273-.026.401-.078.512-.23.741-.623.687-1.18V-.062l-9.985.05z\\\" fill=\\\"#FFF\\\" mask=\\\"url(#kg-card-type-bookmark_svg__d)\\\"/></g></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\",\n      \"xmlns:xlink\": \"http://www.w3.org/1999/xlink\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-codepen\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066a1.072 1.072 0 00-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063a.964.964 0 00-.058-.084c-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053a.96.96 0 00-.078-.065c-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231a1.374 1.374 0 00-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047a1.678 1.678 0 00-.133.119 1.192 1.192 0 00-.115.134c-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067a1.001 1.001 0 00-.036.1l-.022.065a1.465 1.465 0 00-.034.175c-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092a.657.657 0 00.04.062c.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053a.959.959 0 00.115-.135c.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066a.992.992 0 00.035-.1c.008-.023.016-.045.022-.067a1.49 1.49 0 00.024-.116c.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3v-4.6L6.19 16zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-divider\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><rect fill=\\\"#30cf43\\\" width=\\\"32\\\" height=\\\"32\\\" rx=\\\"2.5\\\"/><rect fill=\\\"#FFF\\\" x=\\\"3\\\" y=\\\"15\\\" width=\\\"26\\\" height=\\\"2\\\" rx=\\\"1\\\"/><rect fill=\\\"#FFF\\\" x=\\\"3\\\" y=\\\"3\\\" width=\\\"26\\\" height=\\\"7\\\" rx=\\\"1.5\\\"/><rect fill=\\\"#FFF\\\" x=\\\"3\\\" y=\\\"22\\\" width=\\\"26\\\" height=\\\"7\\\" rx=\\\"1.5\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-email-cta\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<rect width=\\\"32\\\" height=\\\"32\\\" rx=\\\"3\\\" fill=\\\"#FFB41F\\\"/><g clip-path=\\\"url(#kg-card-type-email-cta_svg__clip0)\\\" fill=\\\"#fff\\\"><path d=\\\"M14.536 15.568l2.68 8.931a.83.83 0 001.382.349l1.365-1.365 3.522 3.522a.83.83 0 001.174 0l2.348-2.348a.83.83 0 000-1.174l-3.522-3.522L24.85 18.6a.829.829 0 00-.348-1.382l-8.932-2.68a.83.83 0 00-1.034 1.03z\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M12.86 4.255a11.25 11.25 0 0113.61 10.192.75.75 0 01-1.496.106 9.75 9.75 0 10-10.421 10.42.75.75 0 01-.107 1.496 11.25 11.25 0 01-1.588-22.214z\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M13.305 8.785a6.75 6.75 0 018.203 3.934.75.75 0 11-1.39.562 5.25 5.25 0 10-6.837 6.835.75.75 0 11-.562 1.39 6.75 6.75 0 01.586-12.72z\\\"/></g><defs><clipPath id=\\\"kg-card-type-email-cta_svg__clip0\\\"><path fill=\\\"#fff\\\" transform=\\\"translate(4 4)\\\" d=\\\"M0 0h24v24H0z\\\"/></clipPath></defs>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-email\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\"><path d=\\\"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z\\\" fill=\\\"#14b8ff\\\"/><path d=\\\"M23.312 9.5H8.687c-1.233 0-2 .767-2 2v9c0 1.233.767 2 2 2h14.625c1.234 0 2-.767 2-2v-9c0-1.233-.766-2-2-2zM8.56 11.25h14.882c.1.004.118.022.121.122v9.256c-.004.116-.029.122-.178.122H8.56c-.1-.004-.118-.022-.121-.122v-9.256c.003-.1.022-.118.121-.122z\\\" fill=\\\"#FFF\\\"/><path d=\\\"M18.123 13.887c.3-.325.79-.37 1.144-.123l.092.075 2.86 2.643a.876.876 0 01-1.095 1.36l-.093-.074-2.86-2.644a.875.875 0 01-.048-1.237zm-5.483-.048a.875.875 0 011.27 1.198l-.081.087-2.86 2.644a.876.876 0 01-1.27-1.199l.082-.087 2.86-2.643z\\\" fill=\\\"#FFF\\\"/><path d=\\\"M23.663 10.04a.875.875 0 011.087 1.367l-.093.074-7.135 4.92c-.925.638-1.935.676-2.87.112l-.174-.112-7.135-4.92a.874.874 0 01.891-1.502l.103.061 7.135 4.92c.346.24.613.263.944.072l.113-.072 7.134-4.92z\\\" fill=\\\"#FFF\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-facebook\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path fill=\\\"#FFF\\\" fill-rule=\\\"nonzero\\\" d=\\\"M12 4h15v28H12z\\\"/><path d=\\\"M27.688 0H4.312A4.311 4.311 0 000 4.312v23.376A4.311 4.311 0 004.312 32H15.84l.02-11.435h-2.97a.7.7 0 01-.701-.698l-.015-3.686a.702.702 0 01.701-.704h2.966v-3.562c0-4.133 2.525-6.383 6.211-6.383h3.026a.7.7 0 01.701.7v3.109a.7.7 0 01-.7.7l-1.857.002c-2.006 0-2.394.952-2.394 2.35v3.084h4.406a.7.7 0 01.696.783l-.437 3.687a.7.7 0 01-.696.618h-3.949L20.828 32h6.86A4.311 4.311 0 0032 27.688V4.312A4.311 4.311 0 0027.688 0\\\" fill=\\\"#445281\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-gallery\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path fill=\\\"#FFF\\\" fill-rule=\\\"nonzero\\\" d=\\\"M1 2h25v24H1z\\\"/><path d=\\\"M27.333 24.667v-22C27.333.889 26.444 0 24.667 0h-22C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v22c0 1.777.889 2.666 2.667 2.666h22c1.777 0 2.666-.889 2.666-2.666z\\\" fill=\\\"#ffb41f\\\"/><path d=\\\"M19.113 12.933c-.126-.603-.497-.911-1.112-.925-.616-.014-1 .277-1.154.873l-2.123 4.667a.313.313 0 01-.26.192.313.313 0 01-.3-.117l-1.467-1.752c-.34-.462-.796-.67-1.368-.625-.571.044-.99.32-1.254.829L6.76 21.6a.624.624 0 00-.008.671.624.624 0 00.58.338H22c.236 0 .42-.097.552-.293a.632.632 0 00.067-.621l-3.506-8.762zM10.667 8c0 1.778-.89 2.667-2.667 2.667-1.778 0-2.667-.89-2.667-2.667 0-1.778.89-2.667 2.667-2.667 1.778 0 2.667.89 2.667 2.667z\\\" fill=\\\"#FFF\\\"/><path d=\\\"M30.667 8c-.369 0-.683.13-.943.39-.26.26-.39.575-.39.943v19.334c0 .444-.223.666-.667.666H9.333c-.889 0-1.333.445-1.333 1.334S8.444 32 9.333 32h20C31.111 32 32 31.111 32 29.333v-20C32 8.444 31.556 8 30.667 8z\\\" fill=\\\"#ffb41f\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-gen-embed\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z\\\" fill=\\\"#465961\\\" fill-rule=\\\"nonzero\\\"/><path stroke=\\\"#FFF\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M10.5 12l-4 4.333 4 3.667m11-8l4 4.333-4 3.667M18 11l-4 10\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-html\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path fill=\\\"#FFF\\\" d=\\\"M2 4h28v24H2z\\\"/><path d=\\\"M32 6c0-2.667-1.333-4-4-4H4c-1.105 0-2.047.39-2.828 1.172C.39 3.952 0 4.895 0 6v20c0 2.667 1.333 4 4 4h24c2.667 0 4-1.333 4-4V6zM4 6.667c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C4.444 8 4 7.556 4 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C8.444 8 8 7.556 8 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C12.444 8 12 7.556 12 6.667zM29.333 26c0 .889-.444 1.333-1.333 1.333H4c-.889 0-1.333-.444-1.333-1.333V12c0-.184.065-.341.195-.471a.643.643 0 01.471-.196h25.334c.444 0 .666.223.666.667v14z\\\" fill=\\\"#14b8ff\\\"/><path d=\\\"M10.333 16c0 .667.334 1 1 1 .223 0 .334.111.334.333v5.334c0 .666.333 1 1 1 .666 0 1-.334 1-1v-5.334a.32.32 0 01.097-.235A.322.322 0 0114 17c.667 0 1-.333 1-1s-.333-1-1-1h-2.667a.964.964 0 00-.707.293.963.963 0 00-.293.707zm-5 7.667c.667 0 1-.334 1-1v-1.334c0-.128.056-.224.167-.288a.313.313 0 01.333 0c.111.064.167.16.167.288v1.334c0 .666.333 1 1 1s1-.334 1-1V16a.938.938 0 00-.5-.866.94.94 0 00-1 0A.938.938 0 007 16v2.667c0 .222-.111.333-.333.333-.223 0-.334-.111-.334-.333V16a.936.936 0 00-.5-.866.94.94 0 00-1 0 .938.938 0 00-.5.866v6.667c0 .666.334 1 1 1zm18.334-2.334c.001 1.554.78 2.332 2.333 2.334h1.333c.667 0 1-.334 1-1 0-.667-.333-1-1-1H26c-.222 0-.333-.111-.333-.334V16a.938.938 0 00-.5-.866.94.94 0 00-1 0 .936.936 0 00-.5.866v5.333zm-6.334 2.334c.667 0 1-.334 1-1v-2.78c0-.039.02-.063.056-.073.037-.01.066 0 .086.034a.986.986 0 00.858.452c.366 0 .652-.15.859-.452.02-.033.048-.045.085-.034.038.01.056.034.056.073v2.78c0 .666.334 1 1 1 .667 0 1-.334 1-1V16c-.001-.506-.246-.827-.734-.962s-.863.014-1.124.447l-.856 1.428a.313.313 0 01-.286.161.313.313 0 01-.285-.16l-.856-1.429c-.262-.433-.636-.582-1.125-.447-.488.135-.732.456-.734.962v6.667c0 .666.334 1 1 1z\\\" fill=\\\"#14b8ff\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-image\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z\\\" fill=\\\"#30cf43\\\"/><path d=\\\"M23.778 12.111c0 3.111-1.556 4.667-4.667 4.667-3.111 0-4.667-1.556-4.667-4.667C14.444 9 16 7.444 19.111 7.444c3.111 0 4.667 1.556 4.667 4.667zM19.111 5.5c.778 0 1.167-.389 1.167-1.167v-.777c0-.45-.195-.786-.584-1.01-.388-.225-.777-.225-1.166 0-.39.224-.584.56-.584 1.01v.777c0 .778.39 1.167 1.167 1.167zm-6.323 1.935c.55.552 1.1.554 1.653.004.552-.55.553-1.1.003-1.653l-.549-.55c-.55-.552-1.101-.554-1.653-.004-.553.55-.554 1.101-.005 1.654l.55.55zm-2.232 5.843h.777c.778 0 1.167-.39 1.167-1.167 0-.778-.389-1.167-1.167-1.167h-.777c-.778 0-1.167.39-1.167 1.167 0 .778.389 1.167 1.167 1.167zm14.878 3.509c-.549-.512-1.089-.502-1.62.029-.53.53-.54 1.07-.028 1.62l.549.55c.55.55 1.1.55 1.65 0 .55-.55.55-1.1 0-1.65l-.55-.549zm.288-4.676c0 .778.39 1.167 1.167 1.167h.778c.777 0 1.166-.39 1.166-1.167 0-.778-.389-1.167-1.166-1.167h-.778c-.322 0-.597.114-.825.342a1.124 1.124 0 00-.342.825zM24.61 7.779c.323 0 .598-.114.824-.344l.551-.549c.55-.55.55-1.1 0-1.65-.55-.55-1.1-.55-1.65 0l-.55.55c-.366.368-.45.792-.251 1.271.198.48.557.72 1.076.722zm-2.699 14.577c-.771 0-1.522.12-2.254.364a.369.369 0 00-.25.254.369.369 0 00.063.35 11.968 11.968 0 012.362 5.684c.02.142.103.214.247.214h4.906c.836 0 1.492-.343 1.967-1.031-.737-3.89-3.084-5.835-7.042-5.835h.001zM9.644 19.968c-2.518-.004-4.758.783-6.72 2.362a.367.367 0 00-.146.31v4.2c.004 1.588.8 2.382 2.388 2.382H19.83a.371.371 0 00.3-.14.37.37 0 00.082-.319c-1.083-5.863-4.606-8.795-10.568-8.795z\\\" fill=\\\"#FFF\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-instagram\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><radialGradient cx=\\\"26.563%\\\" cy=\\\"107.702%\\\" fx=\\\"26.563%\\\" fy=\\\"107.702%\\\" r=\\\"99.107%\\\" gradientTransform=\\\"matrix(0 -1 .99991 0 -.811 1.343)\\\" id=\\\"kg-card-type-instagram_svg__a\\\"><stop stop-color=\\\"#FD5\\\" offset=\\\"0%\\\"/><stop stop-color=\\\"#FD5\\\" offset=\\\"10%\\\"/><stop stop-color=\\\"#FF543E\\\" offset=\\\"50%\\\"/><stop stop-color=\\\"#C837AB\\\" offset=\\\"100%\\\"/></radialGradient><radialGradient cx=\\\"-16.751%\\\" cy=\\\"7.204%\\\" fx=\\\"-16.751%\\\" fy=\\\"7.204%\\\" r=\\\"44.302%\\\" gradientTransform=\\\"scale(.99991 1) rotate(78.68 -.168 .072)\\\" id=\\\"kg-card-type-instagram_svg__b\\\"><stop stop-color=\\\"#3771C8\\\" offset=\\\"0%\\\"/><stop stop-color=\\\"#3771C8\\\" offset=\\\"12.8%\\\"/><stop stop-color=\\\"#60F\\\" stop-opacity=\\\"0\\\" offset=\\\"100%\\\"/></radialGradient></defs><g fill-rule=\\\"nonzero\\\" fill=\\\"none\\\"><path d=\\\"M16.005 0c-6.68 0-8.633.007-9.013.038-1.37.114-2.224.33-3.153.793a6.387 6.387 0 00-1.838 1.346C.985 3.231.37 4.527.147 6.069c-.108.748-.14.901-.146 4.723-.002 1.274 0 2.951 0 5.2 0 6.676.008 8.628.04 9.007.11 1.334.32 2.174.763 3.092a6.74 6.74 0 004.368 3.57c.66.169 1.388.262 2.323.307.396.017 4.435.03 8.476.03 4.041 0 8.082-.006 8.469-.025 1.083-.051 1.711-.136 2.407-.315a6.7 6.7 0 004.368-3.577c.434-.896.655-1.767.754-3.032.022-.276.031-4.671.031-9.06 0-4.391-.01-8.779-.031-9.054-.101-1.285-.322-2.15-.77-3.063a6.343 6.343 0 00-1.37-1.876C28.771.985 27.476.369 25.934.146 25.186.04 25.038.007 21.213 0h-5.208z\\\" fill=\\\"url(#kg-card-type-instagram_svg__a)\\\"/><path d=\\\"M16.005 0c-6.68 0-8.633.007-9.013.038-1.37.114-2.224.33-3.153.793A6.387 6.387 0 002 2.177C.985 3.231.37 4.527.147 6.069c-.108.748-.14.901-.146 4.723-.002 1.274 0 2.951 0 5.2 0 6.676.007 8.628.04 9.007.11 1.334.32 2.174.762 3.092a6.74 6.74 0 004.369 3.57c.66.169 1.388.262 2.323.307.396.017 4.435.03 8.476.03 4.041 0 8.082-.006 8.469-.025 1.082-.051 1.711-.136 2.407-.315a6.7 6.7 0 004.368-3.577c.434-.896.655-1.767.754-3.032.022-.276.031-4.671.031-9.06 0-4.391-.01-8.779-.032-9.054-.1-1.285-.32-2.15-.77-3.063a6.343 6.343 0 00-1.369-1.876C28.771.985 27.476.369 25.934.146 25.186.04 25.037.007 21.213 0h-5.208z\\\" fill=\\\"url(#kg-card-type-instagram_svg__b)\\\"/><path d=\\\"M15.726 4c-3.184 0-3.584.014-4.835.071-1.248.058-2.1.257-2.845.55a5.737 5.737 0 00-2.077 1.362 5.805 5.805 0 00-1.354 2.093c-.29.751-.488 1.61-.544 2.867C4.015 12.203 4 12.607 4 15.815c0 3.21.014 3.61.07 4.871.058 1.258.256 2.116.546 2.868.3.777.7 1.436 1.352 2.093a5.737 5.737 0 002.076 1.363c.746.293 1.599.492 2.847.55 1.25.057 1.65.07 4.834.07 3.184 0 3.583-.013 4.833-.07 1.249-.058 2.102-.257 2.848-.55a5.732 5.732 0 002.075-1.363 5.805 5.805 0 001.354-2.093c.288-.752.486-1.61.544-2.868.056-1.26.071-1.662.071-4.87 0-3.21-.015-3.612-.07-4.872-.06-1.258-.257-2.117-.545-2.868a5.804 5.804 0 00-1.354-2.093 5.726 5.726 0 00-2.076-1.363c-.748-.292-1.6-.491-2.848-.549C19.306 4.014 18.907 4 15.723 4h.003zm-1.052 2.13h1.052c3.13 0 3.502.01 4.738.067 1.143.053 1.764.245 2.177.407.547.214.937.47 1.348.884.41.413.664.807.877 1.359.16.416.352 1.04.404 2.193.056 1.245.068 1.62.068 4.773 0 3.153-.012 3.527-.068 4.773-.053 1.152-.244 1.777-.404 2.193a3.656 3.656 0 01-.877 1.357c-.41.414-.8.67-1.348.884-.413.162-1.034.354-2.177.407-1.236.057-1.607.069-4.738.069-3.13 0-3.502-.012-4.738-.069-1.143-.053-1.763-.246-2.177-.407a3.63 3.63 0 01-1.348-.884 3.665 3.665 0 01-.878-1.358c-.16-.416-.352-1.041-.404-2.193-.056-1.246-.067-1.62-.067-4.775 0-3.155.011-3.528.067-4.773.053-1.152.244-1.777.404-2.194.213-.551.467-.945.878-1.359.41-.413.8-.67 1.348-.884.413-.162 1.034-.354 2.177-.407 1.082-.05 1.501-.064 3.686-.067v.003zm7.311 1.961c-.777 0-1.407.634-1.407 1.417s.63 1.418 1.407 1.418 1.407-.635 1.407-1.418c0-.782-.63-1.417-1.407-1.417zm-6.259 1.657c-3.325 0-6.021 2.716-6.021 6.067s2.696 6.067 6.021 6.067c3.325 0 6.02-2.716 6.02-6.067 0-3.35-2.695-6.067-6.02-6.067zm0 2.129c2.159 0 3.909 1.763 3.909 3.938 0 2.175-1.75 3.939-3.909 3.939-2.158 0-3.908-1.764-3.908-3.939s1.75-3.938 3.908-3.938z\\\" fill=\\\"#FFF\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-markdown\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z\\\" fill=\\\"#fb2d8d\\\" fill-rule=\\\"nonzero\\\"/><path stroke=\\\"#FFF\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M8 20v-8l4 4 4-4v8m6-7.93v7.916M19.5 17.5l2.48 2.525L24.5 17.5\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-other\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><rect fill=\\\"#fb2d8d\\\" width=\\\"32\\\" height=\\\"32\\\" rx=\\\"2.5\\\"/><path d=\\\"M12 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zm6 0c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zm6 0c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2z\\\" fill=\\\"#FFF\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-paywall\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M30 0H2a2 2 0 00-2 2v28a2 2 0 002 2h28a2 2 0 002-2V2a2 2 0 00-2-2z\\\" fill=\\\"#30CF43\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M15.999 9.001c4.007-.06 7.962 2.737 10.366 5.425l.004.004a2.517 2.517 0 010 3.337l-.003.004c-2.349 2.628-6.294 5.49-10.367 5.428-4.073.061-8.018-2.8-10.365-5.429l-.003-.003a2.517 2.517 0 010-3.337l.003-.004C8.036 11.738 11.991 8.94 16 9.001h-.001zm-8.872 6.756a.517.517 0 000 .683c2.208 2.472 5.645 4.814 8.855 4.759h.034c3.209.055 6.647-2.287 8.857-4.759a.518.518 0 000-.683c-2.257-2.522-5.705-4.81-8.857-4.756h-.034c-3.152-.054-6.6 2.234-8.855 4.756z\\\" fill=\\\"#fff\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M16 18a2 2 0 100-4 2 2 0 000 4zm0 2a4 4 0 100-8 4 4 0 000 8z\\\" fill=\\\"#fff\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-snippet-block\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path data-selector=\\\"bg\\\" d=\\\"M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z\\\" fill=\\\"#F0F6F9\\\"/><path data-selector=\\\"fold\\\" d=\\\"M15 16v8l9-9h-8a1 1 0 00-1 1z\\\" fill=\\\"#DAE8F1\\\"/><rect data-selector=\\\"block\\\" x=\\\"5.25\\\" y=\\\"4.5\\\" width=\\\"13.5\\\" height=\\\"7.5\\\" rx=\\\"1\\\" fill=\\\"#23AAF4\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-snippet-combination\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path data-selector=\\\"bg\\\" d=\\\"M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z\\\" fill=\\\"#F0F6F9\\\"/><rect data-selector=\\\"block\\\" x=\\\"5.25\\\" y=\\\"4.5\\\" width=\\\"13.5\\\" height=\\\"4.5\\\" rx=\\\"1\\\" fill=\\\"#23AAF4\\\"/><path data-selector=\\\"fold\\\" d=\\\"M15 16v8l9-9h-8a1 1 0 00-1 1z\\\" fill=\\\"#DAE8F1\\\"/><rect data-selector=\\\"line\\\" x=\\\"5.25\\\" y=\\\"11.25\\\" width=\\\"8.25\\\" height=\\\"1.5\\\" rx=\\\".75\\\" fill=\\\"#738A94\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-snippet-text\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path data-selector=\\\"bg\\\" d=\\\"M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z\\\" fill=\\\"#F0F6F9\\\"/><path data-selector=\\\"fold\\\" d=\\\"M15 16v8l9-9h-8a1 1 0 00-1 1z\\\" fill=\\\"#DAE8F1\\\"/><rect data-selector=\\\"line\\\" x=\\\"5.25\\\" y=\\\"4.5\\\" width=\\\"10.5\\\" height=\\\"1.5\\\" rx=\\\".75\\\" fill=\\\"#738A94\\\"/><rect data-selector=\\\"line\\\" x=\\\"5.25\\\" y=\\\"8.25\\\" width=\\\"13.5\\\" height=\\\"1.5\\\" rx=\\\".75\\\" fill=\\\"#738A94\\\"/><rect data-selector=\\\"line\\\" x=\\\"5.25\\\" y=\\\"12\\\" width=\\\"7.5\\\" height=\\\"1.5\\\" rx=\\\".75\\\" fill=\\\"#738A94\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-soundcloud\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M15.924 9.922a.439.439 0 00-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867a.437.437 0 00-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306a6.947 6.947 0 00-9.434-5.86c-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006a3.936 3.936 0 100-7.873zM10.886 22.56v-.002l.226-3.338-.226-7.276a.328.328 0 00-.325-.323.327.327 0 00-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32a.328.328 0 00.325-.321v.001zm-2.952.32a.275.275 0 00.27-.267l.264-3.394-.265-6.497a.274.274 0 00-.27-.267.273.273 0 00-.269.267l-.234 6.497.234 3.395a.273.273 0 00.27.266zm5.297-10.868a.38.38 0 00-.38.377l-.169 6.832.17 3.287a.378.378 0 00.757-.002v.002l.19-3.287-.19-6.832a.38.38 0 00-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188a.22.22 0 00.214-.212l.302-3.418-.302-3.25a.218.218 0 00-.214-.211.218.218 0 00-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03a.354.354 0 00.351-.35v.003l.209-3.309-.209-7.09a.354.354 0 00-.351-.35.353.353 0 00-.352.35l-.185 7.09.185 3.308a.352.352 0 00.352.348zm2.69.013a.41.41 0 00.405-.404v.002-.002l.172-3.263-.172-8.13a.411.411 0 00-.406-.405.41.41 0 00-.406.405l-.153 8.127.153 3.268a.41.41 0 00.406.402zm-5.338-.016a.3.3 0 00.296-.294l.246-3.36-.246-7.039a.3.3 0 00-.296-.294.3.3 0 00-.297.295l-.218 7.038.218 3.361a.298.298 0 00.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39a.193.193 0 00.188.184c.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837a.247.247 0 00-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288a.25.25 0 00-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z\\\" fill=\\\"#EE7C25\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-spotify\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005a.992.992 0 01-1.367.33c-3.745-2.288-8.46-2.806-14.013-1.537a.994.994 0 01-.442-1.939c6.076-1.389 11.288-.79 15.493 1.779a.995.995 0 01.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86a1.246 1.246 0 01-1.552-.828 1.245 1.245 0 01.83-1.551c5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845a1.49 1.49 0 01-1.86-.994 1.49 1.49 0 01.994-1.86c5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044a1.49 1.49 0 01-2.044.522z\\\" fill=\\\"#1ED760\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-twitter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85A13.289 13.289 0 0032 6.076c-1.198.53-2.47.879-3.77 1.032a6.59 6.59 0 002.886-3.63c-1.29.764-2.7 1.303-4.17 1.593a6.57 6.57 0 00-11.187 5.988 18.64 18.64 0 01-13.532-6.86 6.57 6.57 0 002.033 8.764 6.504 6.504 0 01-2.98-.822v.084a6.566 6.566 0 005.267 6.435 6.54 6.54 0 01-2.964.113 6.573 6.573 0 006.133 4.56A13.17 13.17 0 010 26.054a18.582 18.582 0 0010.063 2.944\\\" fill=\\\"#1DA1F2\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-unsplash\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 122.43 122.41\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-vimeo\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M31.886 25.508a6.377 6.377 0 01-6.377 6.377H6.377A6.378 6.378 0 010 25.508V6.378A6.378 6.378 0 016.377 0H25.51a6.377 6.377 0 016.377 6.377v19.131\\\" fill=\\\"#0FB7FF\\\"/><path d=\\\"M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765\\\" fill=\\\"#FFFFFE\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-card-type-youtube\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M31.252 8.488a4.008 4.008 0 00-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665A4.006 4.006 0 00.665 8.488C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682a4.001 4.001 0 002.823 2.823c2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666a4.002 4.002 0 002.824-2.823c.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682\\\" fill=\\\"#D9252A\\\"/><path fill=\\\"#FFFFFE\\\" d=\\\"M12.77 20.958l8.291-4.788-8.291-4.788v9.576\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-cta-borderbottom\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M2 2h12c.265 0 .52.14.707.39.188.25.293.59.293.943v5.334c0 .353-.105.693-.293.943-.187.25-.442.39-.707.39H2c-.265 0-.52-.14-.707-.39A1.586 1.586 0 011 8.667V3.333c0-.353.105-.693.293-.943C1.48 2.14 1.735 2 2 2z\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M15 13a1 1 0 01-1 1H2a1 1 0 110-2h12a1 1 0 011 1z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-cta-bordertop\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M2 6h12c.265 0 .52.14.707.39.188.25.293.59.293.943v5.334c0 .354-.105.693-.293.943-.187.25-.442.39-.707.39H2c-.265 0-.52-.14-.707-.39A1.586 1.586 0 011 12.667V7.333c0-.353.105-.693.293-.943C1.48 6.14 1.735 6 2 6z\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M15 3a1 1 0 01-1 1H2a1 1 0 010-2h12a1 1 0 011 1z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M9.66 3.944c-.132-.125-.264-.125-.396 0L3.626 9.638c-.132.132-.132.264 0 .396l2.397 2.397c.132.132.264.132.396 0l5.638-5.693c.132-.132.132-.264 0-.396L9.66 3.944zm-6.98 6.974c-.074-.074-.162-.098-.263-.074a.262.262 0 00-.2.186l-1.2 3.595a.264.264 0 00.068.287c.082.08.178.103.287.067l3.595-1.198a.261.261 0 00.186-.2.263.263 0 00-.074-.264l-2.399-2.4zM13.862 2.13c-.931-.889-1.862-.889-2.793 0l-.399.399c-.132.132-.132.264 0 .396l2.396 2.397c.132.131.264.131.396 0l.4-.402c.927-.93.927-1.86 0-2.79z\\\" fill=\\\"#FFF\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-heading-1\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M4 7h8V2a1 1 0 012 0v5.897a1.165 1.165 0 010 .206V14a1 1 0 01-2 0V9H4v5a1 1 0 01-2 0V2a1 1 0 012 0v5z\\\" fill=\\\"#FFF\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-heading-2\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M6 8h4V5.483a1 1 0 012 0V13a1 1 0 01-2 0v-3H6v3a1 1 0 01-2 0V5.483a1 1 0 012 0V8z\\\" fill=\\\"#FFF\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-img-full\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"#FFF\\\" fill-rule=\\\"nonzero\\\"><path d=\\\"M0 2a1 1 0 012 0v12a1 1 0 01-2 0V2zm14 0a1 1 0 012 0v12a1 1 0 01-2 0V2z\\\" opacity=\\\".6\\\"/><path d=\\\"M10.626 7L9.312 5.691a1 1 0 111.411-1.417l3.029 3.017c.39.389.392 1.02.005 1.412l-3.029 3.059a1 1 0 01-1.421-1.407L10.648 9H5.415l1.342 1.355a1 1 0 01-1.422 1.407L2.307 8.703a1 1 0 01.005-1.412L5.34 4.274a1 1 0 011.412 1.417L5.438 7h5.188z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-img-regular\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"#FFF\\\" fill-rule=\\\"nonzero\\\"><path d=\\\"M2 3a1 1 0 010-2h12a1 1 0 010 2H2zm0 12a1 1 0 010-2h12a1 1 0 010 2H2z\\\" opacity=\\\".6\\\"/><path d=\\\"M2 5h12a1 1 0 011 1v4.001a1 1 0 01-1 1H2a1 1 0 01-1-1V6a1 1 0 011-1z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-img-wide\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"#FFF\\\" fill-rule=\\\"nonzero\\\"><path d=\\\"M6 3a1 1 0 010-2h4a1 1 0 010 2H6zm0 12a1 1 0 010-2h4a1 1 0 010 2H6z\\\" opacity=\\\".6\\\"/><path d=\\\"M2 5h12a1 1 0 011 1v4.001a1 1 0 01-1 1H2a1 1 0 01-1-1V6a1 1 0 011-1z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-italic\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12.15 3L6.104 13h.811a1 1 0 010 2H2a1 1 0 010-2h1.767L9.813 3H9a1 1 0 010-2h4.915a1 1 0 010 2H12.15z\\\" fill=\\\"#FFF\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-link\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M6.4 11.688a1.001 1.001 0 011.385 1.444l-1.055 1.01a3.096 3.096 0 01-4.38 0l-.494-.494a3.095 3.095 0 01.001-4.377L5.07 6.058a3.096 3.096 0 014.38 0 1 1 0 01-1.415 1.414 1.097 1.097 0 00-1.551 0l-3.213 3.213a1.098 1.098 0 000 1.55l.494.494a1.102 1.102 0 001.566-.015l1.07-1.026zm3.037-7.212a1 1 0 01-1.389-1.439l1.222-1.18a3.097 3.097 0 014.379 0l.493.494c1.21 1.209 1.21 3.17.013 4.366l-3.237 3.357a3.096 3.096 0 01-4.38 0A1.001 1.001 0 017.954 8.66a1.09 1.09 0 001.537.013l3.238-3.358a1.096 1.096 0 000-1.55l-.494-.493a1.1 1.1 0 00-1.563.012L9.437 4.476z\\\" fill=\\\"#FFF\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-quote\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M4 8h2a1 1 0 011 1v4a1 1 0 01-1 1H3a1 1 0 01-1-1V5.082c0-1.176.906-2.12 2.538-2.969a1 1 0 11.924 1.774c-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8zm9 0a1 1 0 011 1v4a1 1 0 01-1 1h-3a1 1 0 01-1-1V5.082c0-1.176.906-2.12 2.538-2.969a1 1 0 11.924 1.774c-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8h2z\\\" fill=\\\"#FFF\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-replace\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M2 9h5a1 1 0 011 1v4a1 1 0 01-1 1H2a1 1 0 01-1-1v-4a1 1 0 011-1zm7-8h5a1 1 0 011 1v4a1 1 0 01-1 1H9a1 1 0 01-1-1V2a1 1 0 011-1zM4.5 5.772l1.15-1.175a.5.5 0 11.714.699L4.382 7.322a.502.502 0 01-.739.03L1.61 5.298a.5.5 0 11.711-.703L3.5 5.785V3A1.5 1.5 0 015 1.5h1a.5.5 0 010 1H5a.5.5 0 00-.5.5v2.772zm7 4.456l-1.15 1.175a.5.5 0 11-.714-.699l1.982-2.026a.502.502 0 01.739-.03l2.032 2.054a.5.5 0 11-.711.703l-1.178-1.19V13a1.5 1.5 0 01-1.5 1.5h-1a.5.5 0 010-1h1a.5.5 0 00.5-.5v-2.772z\\\" fill=\\\"#FFF\\\" fill-rule=\\\"nonzero\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-snippet\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M3 3v10h5.786L13 8.786V3H3zM1.527 1.527A1.8 1.8 0 012.8 1h10.4A1.8 1.8 0 0115 2.8v6.069a1.8 1.8 0 01-.527 1.272l-4.332 4.332A1.8 1.8 0 018.87 15H2.8A1.8 1.8 0 011 13.2V2.8c0-.477.19-.935.527-1.273z\\\" fill=\\\"#fff\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M10 10h4a1 1 0 100-2H9.846A1.846 1.846 0 008 9.846V14a1 1 0 102 0v-4z\\\" fill=\\\"#fff\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-thin-delete\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path stroke-width=\\\"1.2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M1 4h13.5M13 4v9.5c0 1-.5 1.5-1.5 1.5H4c-1 0-1.5-.5-1.5-1.5V4m2.25 0V2.5c0-.414.146-.768.44-1.06A1.44 1.44 0 016.25 1h3c1 0 1.5.5 1.5 1.5V4m-4.5 2.75v5.5m3-5.5v5.5\\\" stroke=\\\"#FFF\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-thin-edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#FFF\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><path d=\\\"M5.255 13.644l-3.772.885.885-3.772 9.1-9.1a1.166 1.166 0 011.65 0l1.238 1.237a1.168 1.168 0 010 1.65l-9.101 9.1zm7.857-7.854l-2.881-2.896 2.881 2.896z\\\"/><path d=\\\"M5.402 13.497L2.514 10.61l2.888 2.887z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/koenig/kg-trash\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"#FFF\\\" fill-rule=\\\"nonzero\\\"><path d=\\\"M1.3 4.6a.6.6 0 010-1.2h13.5a.6.6 0 010 1.2H1.3z\\\"/><path d=\\\"M13.9 4v9.5c0 1.331-.769 2.1-2.1 2.1H4.3c-1.331 0-2.1-.769-2.1-2.1V4a.6.6 0 01.6-.6h10.5a.6.6 0 01.6.6zM5.95 6.75v5.5a.6.6 0 001.2 0v-5.5a.6.6 0 00-1.2 0zm3 0v5.5a.6.6 0 001.2 0v-5.5a.6.6 0 00-1.2 0z\\\"/><path d=\\\"M5.65 4a.6.6 0 01-1.2 0V2.5c0-.573.21-1.08.615-1.485S5.977.4 6.55.4h3c1.331 0 2.1.769 2.1 2.1V4a.6.6 0 01-1.2 0V2.5c0-.669-.231-.9-.9-.9h-3a.843.843 0 00-.636.264.846.846 0 00-.264.636V4z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 16\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/labs\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.labs_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"labs_svg__a\\\" d=\\\"M6.726.75h10.5M15.726 8.25V.75h-7.5v7.5L1.489 18.615A3 3 0 004 23.25h15.948a3 3 0 002.515-4.635zM5.301 12.75h13.35M14.226 17.25h3M15.726 15.75v3M6.726 19.125a.375.375 0 01.374.375M6.351 19.5a.375.375 0 01.375-.375M6.726 19.875a.375.375 0 01-.375-.375M7.1 19.5a.375.375 0 01-.375.375M9.726 16.125a.375.375 0 01.375.375M9.351 16.5a.375.375 0 01.375-.375M9.726 16.875a.375.375 0 01-.375-.375M10.1 16.5a.375.375 0 01-.375.375M15.726 3.75h-3M15.726 6.75h-3\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/laptop\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21 15.5v-10a.5.5 0 00-.5-.5h-17a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h17a.5.5 0 00.5-.5zm-1-.5H4V6h16v9zm3.5 2H23V5c0-1.102-.897-2-2-2H3c-1.103 0-2 .898-2 2v12H.5a.5.5 0 00-.5.5v2c0 .827.673 1.5 1.5 1.5h21c.827 0 1.5-.673 1.5-1.5v-2a.5.5 0 00-.5-.5zM2 5c0-.552.449-1 1-1h18c.551 0 1 .448 1 1v12h-7.5a.5.5 0 00-.5.5v.5h-4v-.5a.5.5 0 00-.5-.5H2V5zm21 14.5a.5.5 0 01-.5.5h-21a.5.5 0 01-.5-.5V18h8v.5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5V18h8v1.5z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/line\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M1 2h40\\\" stroke=\\\"#000\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"square\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 42 4\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/link\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M14.5 12.5l.086.086a2 2 0 002.828 0l3.965-3.964a3.01 3.01 0 000-4.243l-1.758-1.757a3.008 3.008 0 00-4.242 0l-3.965 3.964a2 2 0 000 2.829l.086.085m-2 2l-.086-.085a2 2 0 00-2.828 0l-3.965 3.964a3.01 3.01 0 000 4.243l1.758 1.757a3.008 3.008 0 004.242 0l3.965-3.964a2 2 0 000-2.829L12.5 14.5m-4.389 1.389l7.778-7.778\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/list-bullet\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#000\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"><circle cx=\\\"2.5\\\" cy=\\\"4.5\\\" r=\\\"2\\\"/><path d=\\\"M8.569 4.428H23.5\\\"/><circle cx=\\\"2.5\\\" cy=\\\"12.5\\\" r=\\\"2\\\"/><path d=\\\"M8.569 12.428H23.5\\\"/><circle cx=\\\"2.5\\\" cy=\\\"20.5\\\" r=\\\"2\\\"/><path d=\\\"M8.569 20.427H23.5\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/list-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M6.5 4.5h17m-17 8h17m-17 8h17M2 6.5V2.573L.5 4.037M2.569 14.5H.5c1.48-2 2-1.836 2-2.963a.986.986 0 00-1-.982.948.948 0 00-.965.974M.5 18.5h1.931l-1 1.537c.826 0 1 .481 1 .981s-.174.982-1 .982H.5\\\" stroke=\\\"#000\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/lock\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M5.25 24A2.252 2.252 0 013 21.75v-10.5A2.252 2.252 0 015.25 9H6V6c0-3.308 2.692-6 6-6s6 2.692 6 6v3h.75A2.252 2.252 0 0121 11.25v10.5A2.252 2.252 0 0118.75 24H5.25zm0-13.5a.75.75 0 00-.75.75v10.5c0 .414.336.75.75.75h13.5a.75.75 0 00.75-.75v-10.5a.75.75 0 00-.75-.75H5.25zM16.5 9V6c0-2.481-2.019-4.5-4.5-4.5A4.505 4.505 0 007.5 6v3h9z\\\"/><path d=\\\"M12 18.75a.75.75 0 01-.75-.75v-3a.75.75 0 011.5 0v3a.75.75 0 01-.75.75z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/lock2\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M13.889 9.168V5.722c0-3.16-2.601-5.72-5.81-5.72-.04 0-.068-.003-.108-.002l-.106.002c-3.209 0-5.809 2.561-5.809 5.72v3.446H0V21h16V9.168h-2.111zm-4.073 9.663H6.187l.89-3.825a1.779 1.779 0 01-.89-1.535c0-.987.813-1.787 1.815-1.787s1.814.8 1.814 1.787a1.78 1.78 0 01-.895 1.538l.895 3.822zm1.166-9.663h-6.02V5.722c0-1.575 1.302-2.857 2.903-2.857l.142-.003.073.002c1.6 0 2.902 1.282 2.902 2.858v3.446z\\\" fill=\\\"#000\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 16 21\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/locked-email-back\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M3.953 39.164L54.375 2.172a11.19 11.19 0 0113.25 0l50.422 36.992a9.698 9.698 0 013.953 7.82v68.336c0 5.346-4.312 9.68-9.632 9.68H9.632C4.312 125 0 120.666 0 115.32V46.983a9.7 9.7 0 013.953-7.819z\\\" fill=\\\"#C5D2D9\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 122 125\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/locked-email-front\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#C5D2D9\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M.5 3.023v64.28a9.161 9.161 0 002.642 6.463A9.209 9.209 0 009.58 76.5h102.431a8.983 8.983 0 005.093-1.593l-5.64-3.368C44.768 31.699 9.41 10.472 5.388 7.859 3.085 6.365 1.463 4.75.5 3.024z\\\" fill=\\\"#F2F4F7\\\"/><path d=\\\"M121.491 3.111c-.97 1.746-2.609 3.38-4.94 4.89-3.73 2.418-34.423 20.824-92.079 55.216L4.895 74.89c1.428.99 3.162 1.578 5.127 1.61l102.41-.001a9.014 9.014 0 006.052-2.35 9.186 9.186 0 002.962-5.806l.045-65.233z\\\" fill=\\\"#F8FAFC\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 122 77\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/locked-email-lock\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M8.75 16.25h22.5c1.667 0 2.5.833 2.5 2.5v17.5c0 1.667-.833 2.5-2.5 2.5H8.75c-1.667 0-2.5-.833-2.5-2.5v-17.5c0-1.667.833-2.5 2.5-2.5zm2.5 0V10c0-3.368 1.458-5.894 4.375-7.578 2.917-1.684 5.833-1.684 8.75 0S28.75 6.632 28.75 10v6.25M20 25v5\\\" stroke=\\\"#3EB0EF\\\" stroke-width=\\\"1.5\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 40 40\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/loop-infinite\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" stroke=\\\"#000\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\"><path d=\\\"M10.5 10S9 6.5 6 6.5.5 8.963.5 12s2.462 5.5 5.5 5.5c5 0 7-11 12-11 3 0 5.5 2.463 5.5 5.5S21 17.5 18 17.5 13.5 15 13.5 15\\\"/><path d=\\\"M7.025 9.344L10.5 10l.654-3.475\\\"/></g>\",\n    \"attrs\": {\n      \"version\": \"1.0\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/lotus\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21.098 13.951c1.201-2.187 1.505-4.565 1.522-4.705a.5.5 0 00-.357-.54c-.07-.02-1.597-.444-3.451-.281a15.204 15.204 0 00-.602-3.935.502.502 0 00-.613-.329c-.07.02-1.569.46-3.122 1.586-.896-1.817-2.036-3.014-2.115-3.095a.518.518 0 00-.718 0c-.078.081-1.217 1.278-2.113 3.093-1.555-1.126-3.054-1.564-3.125-1.584a.503.503 0 00-.613.329c-.037.115-.564 1.818-.602 3.934-1.855-.163-3.381.262-3.451.282a.501.501 0 00-.358.54c.017.138.307 2.433 1.454 4.587C1.33 14.81.5 16.03.5 17.312c0 3.26 4.836 5.718 11.25 5.718 2.104 0 4.836-.324 5.987-.943a.5.5 0 00.263-.441V19h4.875a.5.5 0 00.499-.463c.136-1.836-.657-3.41-2.276-4.586zm-2.309-4.524a9.635 9.635 0 012.767.141c-.214 1.179-.979 4.42-3.093 6.06-1.465 1.137-3.314 1.28-4.634 1.193 1.36-.699 3.197-1.98 4.188-4.123.488-1.055.705-2.19.772-3.271zM17.39 5.291c.298 1.217.899 4.434-.282 6.988-.809 1.752-2.315 2.87-3.506 3.523.898-1.342 1.95-3.416 1.95-5.782 0-1.205-.276-2.332-.663-3.329a10.603 10.603 0 012.501-1.4zM12 3.761c.779.947 2.553 3.419 2.553 6.26 0 2.842-1.774 5.313-2.553 6.261-.779-.947-2.553-3.419-2.553-6.261 0-2.841 1.774-5.313 2.553-6.26zm-5.39 1.53c.561.216 1.537.672 2.499 1.402-.386.997-.662 2.123-.662 3.328 0 2.369 1.055 4.444 1.953 5.786-1.191-.651-2.696-1.769-3.509-3.528-1.18-2.553-.579-5.771-.281-6.988zM5.211 9.426c.067 1.08.284 2.216.772 3.273.992 2.145 2.83 3.426 4.191 4.125-1.319.088-3.167-.053-4.637-1.194-2.109-1.638-2.876-4.882-3.092-6.061a9.641 9.641 0 012.766-.143zM17.5 18a.5.5 0 00-.5.5v2.826c-1.023.403-3.215.704-5.25.704-5.652 0-10.25-2.116-10.25-4.718 0-.925.656-1.845 1.85-2.626.431.643.946 1.246 1.574 1.733 1.468 1.139 3.211 1.432 4.616 1.432 1.185 0 2.121-.207 2.46-.293.339.086 1.275.293 2.46.293 1.405 0 3.148-.293 4.616-1.433a7.251 7.251 0 001.498-1.619c1.162.862 1.773 1.934 1.812 3.2H17.5z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/markdown\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><rect stroke=\\\"#000\\\" stroke-width=\\\"2\\\" x=\\\"2\\\" y=\\\"2\\\" width=\\\"39\\\" height=\\\"30\\\" rx=\\\"2\\\"/><path fill=\\\"#000\\\" d=\\\"M19.566 12.613l-.049-.01L14.917 24h-1.279l-4.6-11.387-.048.01.195 5.752v4.121l1.592.274V24H5.669v-1.23l1.592-.274V11.295L5.67 11.02v-1.24h4.053l4.531 11.553h.059l4.521-11.553h4.063v1.24l-1.592.274v11.201l1.592.274V24h-5.107v-1.23l1.591-.274v-4.121z\\\"/><path d=\\\"M36.077 18.501l-5.039 5.039L26 18.5m5.038 5.039v-13.1\\\" stroke=\\\"#000\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 43 34\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/members-all\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M6 1.25a2.5 2.5 0 100 5 2.5 2.5 0 000-5zm-3.5 2.5a3.5 3.5 0 117 0 3.5 3.5 0 01-7 0z\\\" fill=\\\"#000\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M1.934 9.434A5.75 5.75 0 0111.75 13.5v2.25a.5.5 0 01-.5.5H9.452l-.704 7.05a.5.5 0 01-.498.45h-4.5a.5.5 0 01-.498-.45l-.704-7.05H.75a.5.5 0 01-.5-.5V13.5a5.75 5.75 0 011.684-4.066zM6 8.75a4.75 4.75 0 00-4.75 4.75v1.75H3a.5.5 0 01.498.45l.704 7.05h3.596l.704-7.05A.5.5 0 019 15.25h1.75V13.5A4.75 4.75 0 006 8.75zm12-7.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5zm-3.5 2.5a3.5 3.5 0 117 0 3.5 3.5 0 01-7 0z\\\" fill=\\\"#000\\\"/><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M15.868 8.164A5.75 5.75 0 0123.75 13.5v2.25a.5.5 0 01-.5.5h-1.798l-.705 7.05a.5.5 0 01-.497.45h-4.5a.5.5 0 01-.498-.45l-.705-7.05H13.5a.5.5 0 110-1H15a.5.5 0 01.498.45l.704 7.05h3.595l.705-7.05a.5.5 0 01.498-.45h1.75V13.5a4.75 4.75 0 00-8.822-2.443.5.5 0 11-.857-.514 5.75 5.75 0 012.797-2.38z\\\" fill=\\\"#000\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/members-bold\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 24c10.7 0 11.851-2.072 11.851-2.963 0-.641 0-2.143-7.041-2.763a.987.987 0 00-.173 1.967 26.87 26.87 0 013.771.557.247.247 0 010 .481 38.972 38.972 0 01-8.408.746 38.961 38.961 0 01-8.406-.746.247.247 0 010-.481 26.713 26.713 0 013.731-.553.987.987 0 10-.174-1.967c-7 .622-7 2.12-7 2.759C.149 23.711 8.437 24 12 24z\\\"/><path d=\\\"M13.273 6.63a.25.25 0 01-.017-.466 3.21 3.21 0 10-2.512 0 .25.25 0 01-.017.466 3.957 3.957 0 00-2.677 3.74v2.963a.493.493 0 00.493.493h.882a.246.246 0 01.246.227l.356 4.259a.493.493 0 00.492.452h2.962a.493.493 0 00.492-.452l.356-4.259a.246.246 0 01.246-.227h.882a.493.493 0 00.493-.493V10.37a3.957 3.957 0 00-2.677-3.74zm-8.494.982a.251.251 0 01-.022-.462 2.716 2.716 0 10-2.3 0 .251.251 0 01-.021.462 3.463 3.463 0 00-2.287 3.251v1.483a.493.493 0 00.494.493h.819a.248.248 0 01.245.22l.42 3.786a.5.5 0 00.491.44h1.975a.494.494 0 00.491-.439l.421-3.787a.247.247 0 01.245-.22h.818a.493.493 0 00.494-.493v-1.484a3.46 3.46 0 00-2.283-3.25zm16.788 0a.251.251 0 01-.021-.462 2.716 2.716 0 10-2.3 0 .251.251 0 01-.021.462 3.461 3.461 0 00-2.284 3.251v1.483a.493.493 0 00.494.493h.818a.248.248 0 01.246.22l.42 3.786a.5.5 0 00.491.44h1.975a.494.494 0 00.491-.439l.421-3.787a.247.247 0 01.245-.22h.818a.493.493 0 00.494-.493v-1.484a3.46 3.46 0 00-2.287-3.25z\\\"/><path d=\\\"M12 24c10.7 0 11.851-2.072 11.851-2.963 0-.641 0-2.143-7.041-2.763a.987.987 0 00-.173 1.967 26.87 26.87 0 013.771.557.247.247 0 010 .481 38.972 38.972 0 01-8.408.746 38.961 38.961 0 01-8.406-.746.247.247 0 010-.481 26.713 26.713 0 013.731-.553.987.987 0 10-.174-1.967c-7 .622-7 2.12-7 2.759C.149 23.711 8.437 24 12 24z\\\"/><path d=\\\"M13.273 6.63a.25.25 0 01-.017-.466 3.21 3.21 0 10-2.512 0 .25.25 0 01-.017.466 3.957 3.957 0 00-2.677 3.74v2.963a.493.493 0 00.493.493h.882a.246.246 0 01.246.227l.356 4.259a.493.493 0 00.492.452h2.962a.493.493 0 00.492-.452l.356-4.259a.246.246 0 01.246-.227h.882a.493.493 0 00.493-.493V10.37a3.957 3.957 0 00-2.677-3.74zm-8.494.982a.251.251 0 01-.022-.462 2.716 2.716 0 10-2.3 0 .251.251 0 01-.021.462 3.463 3.463 0 00-2.287 3.251v1.483a.493.493 0 00.494.493h.819a.248.248 0 01.245.22l.42 3.786a.5.5 0 00.491.44h1.975a.494.494 0 00.491-.439l.421-3.787a.247.247 0 01.245-.22h.818a.493.493 0 00.494-.493v-1.484a3.46 3.46 0 00-2.283-3.25zm16.788 0a.251.251 0 01-.021-.462 2.716 2.716 0 10-2.3 0 .251.251 0 01-.021.462 3.461 3.461 0 00-2.284 3.251v1.483a.493.493 0 00.494.493h.818a.248.248 0 01.246.22l.42 3.786a.5.5 0 00.491.44h1.975a.494.494 0 00.491-.439l.421-3.787a.247.247 0 01.245-.22h.818a.493.493 0 00.494-.493v-1.484a3.46 3.46 0 00-2.287-3.25z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/members-outline\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.members-outline_svg__cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px}</style></defs><g class=\\\"members-outline_svg__g3\\\"><circle class=\\\"members-outline_svg__cls-1\\\" cx=\\\"4.5\\\" cy=\\\"6\\\" r=\\\"2.25\\\"/><path class=\\\"members-outline_svg__cls-1\\\" d=\\\"M4.5 9.75A3.75 3.75 0 00.75 13.5v2.25h1.5l.75 6h3\\\"/></g><g class=\\\"members-outline_svg__g2\\\"><circle class=\\\"members-outline_svg__cls-1\\\" cx=\\\"19.5\\\" cy=\\\"6\\\" r=\\\"2.25\\\"/><path class=\\\"members-outline_svg__cls-1\\\" d=\\\"M19.5 9.75a3.75 3.75 0 013.75 3.75v2.25h-1.5l-.75 6h-3\\\"/></g><g class=\\\"members-outline_svg__g1\\\"><circle class=\\\"members-outline_svg__cls-1\\\" cx=\\\"12\\\" cy=\\\"3.75\\\" r=\\\"3\\\"/><path class=\\\"members-outline_svg__cls-1\\\" d=\\\"M17.25 13.5a5.25 5.25 0 00-10.5 0v2.25H9l.75 7.5h4.5l.75-7.5h2.25z\\\"/></g>\",\n    \"attrs\": {\n      \"id\": \"members-outline_svg__Regular\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/members-paid\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M3.5 24a.502.502 0 01-.498-.458L2.54 18H.5a.5.5 0 01-.5-.5V14c0-3.033 2.467-5.5 5.5-5.5S11 10.967 11 14v3.5a.5.5 0 01-.5.5H8.46l-.462 5.542A.502.502 0 017.5 24h-4zm3.54-1l.462-5.542A.502.502 0 018 17h2v-3c0-2.481-2.019-4.5-4.5-4.5A4.505 4.505 0 001 14v3h2c.258 0 .477.201.498.458L3.96 23h3.08zM5.5 8c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4zm0-7c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3-1.346-3-3-3zm11.939 9.87a.502.502 0 01-.344-.137 4.48 4.48 0 00-5.006-.811.502.502 0 01-.423-.906 5.472 5.472 0 016.116.99.501.501 0 01-.343.864zM14 8c-1.93 0-3.5-1.57-3.5-3.5S12.07 1 14 1s3.5 1.57 3.5 3.5S15.93 8 14 8zm0-6a2.503 2.503 0 00-2.5 2.5C11.5 5.879 12.622 7 14 7s2.5-1.121 2.5-2.5S15.378 2 14 2zm4.5 22a5.506 5.506 0 01-5.5-5.5c0-3.033 2.467-5.5 5.5-5.5s5.5 2.467 5.5 5.5-2.467 5.5-5.5 5.5zm0-10a4.505 4.505 0 00-4.5 4.5c0 2.481 2.019 4.5 4.5 4.5s4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z\\\" fill=\\\"#000\\\"/><path d=\\\"M18.5 22a.5.5 0 01-.5-.5V21h-1.5a.5.5 0 010-1h3a.5.5 0 000-1h-2c-.827 0-1.5-.673-1.5-1.5s.673-1.5 1.5-1.5h.5v-.5a.5.5 0 011 0v.5h1.5a.5.5 0 010 1h-3a.5.5 0 000 1h2c.827 0 1.5.673 1.5 1.5s-.673 1.5-1.5 1.5H19v.5a.5.5 0 01-.5.5z\\\" fill=\\\"#000\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/members-placeholder\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M69 .5c37.832 0 68.5 30.668 68.5 68.5s-30.668 68.5-68.5 68.5S.5 106.832.5 69 31.168.5 69 .5zM24.82 98.183h50.347C75.025 88.69 70.84 81.579 62.58 76.79c-8.404-4.871-16.772-4.871-25.175 0-8.26 4.788-12.445 11.899-12.586 21.392zm50.347 0h.503l-.5.5c0-.168 0-.335-.003-.5zm-.663-21.045c5.182 5.666 8.348 12.685 9.498 21.044h28.848c-.14-9.492-4.325-16.603-12.585-21.391-8.404-4.871-16.772-4.871-25.176 0-.198.115-.393.23-.585.347zM49.994 37.58c-4.173 0-7.72 1.475-10.67 4.437s-4.42 6.525-4.42 10.714c0 4.19 1.47 7.752 4.42 10.714 2.95 2.962 6.497 4.437 10.67 4.437 4.171 0 7.718-1.475 10.669-4.437 2.95-2.962 4.42-6.524 4.42-10.714s-1.47-7.752-4.42-10.714c-2.95-2.962-6.498-4.437-10.67-4.437zm37.683 0c-4.172 0-7.719 1.475-10.67 4.437-2.95 2.962-4.42 6.525-4.42 10.714 0 4.19 1.47 7.752 4.42 10.714 2.951 2.962 6.498 4.437 10.67 4.437s7.72-1.475 10.67-4.437 4.42-6.524 4.42-10.714-1.47-7.752-4.42-10.714c-2.95-2.962-6.498-4.437-10.67-4.437z\\\" stroke=\\\"#9BAEB8\\\" fill-opacity=\\\".1\\\" fill=\\\"#9BAEB8\\\" stroke-linecap=\\\"square\\\"/><path stroke-opacity=\\\".012\\\" stroke=\\\"#000\\\" stroke-width=\\\"0\\\" d=\\\"M25 25h88v88H25z\\\"/><path d=\\\"M62.832 76.358C71.39 81.32 75.67 88.761 75.67 98.683H24.316c0-9.922 4.28-17.364 12.839-22.325 8.559-4.96 17.118-4.96 25.677 0zm37.684 0c8.559 4.961 12.838 12.403 12.838 22.325l-29.79-.001c-1.114-8.672-4.394-15.888-9.84-21.648.363-.23.734-.455 1.115-.676 8.559-4.96 17.118-4.96 25.677 0zM49.993 37.08c4.305 0 7.98 1.528 11.024 4.584 3.044 3.056 4.566 6.745 4.566 11.067s-1.522 8.01-4.566 11.067c-3.044 3.056-6.719 4.584-11.024 4.584-4.305 0-7.98-1.528-11.023-4.584-3.044-3.056-4.566-6.745-4.566-11.067s1.522-8.01 4.566-11.067c3.044-3.056 6.718-4.584 11.023-4.584zm37.684 0c4.305 0 7.98 1.528 11.024 4.584 3.044 3.056 4.566 6.745 4.566 11.067s-1.522 8.01-4.566 11.067c-3.044 3.056-6.719 4.584-11.024 4.584-4.305 0-7.98-1.528-11.023-4.584-3.045-3.056-4.567-6.745-4.567-11.067s1.522-8.01 4.567-11.067c3.044-3.056 6.718-4.584 11.023-4.584z\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 138 138\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/members-segment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M3.5 24a.502.502 0 01-.498-.458L2.54 18H.5a.5.5 0 01-.5-.5V14a5.497 5.497 0 013.724-5.208 5.514 5.514 0 011.781-.297c.841 0 1.655.19 2.42.566a5.467 5.467 0 012.781 3.16.497.497 0 01-.311.635.5.5 0 01-.635-.312 4.472 4.472 0 00-2.275-2.586 4.461 4.461 0 00-3.438-.219A4.497 4.497 0 001 14v3h2c.258 0 .477.201.498.458L3.96 23h3.08l.462-5.542A.502.502 0 018 17h1a.5.5 0 010 1h-.54l-.462 5.542A.502.502 0 017.5 24h-4zM5.5 8c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4zm0-7c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3-1.346-3-3-3zM17.5 24c-3.584 0-6.5-2.916-6.5-6.5s2.916-6.5 6.5-6.5 6.5 2.916 6.5 6.5-2.916 6.5-6.5 6.5zm0-12c-3.033 0-5.5 2.467-5.5 5.5s2.467 5.5 5.5 5.5 5.5-2.467 5.5-5.5-2.467-5.5-5.5-5.5z\\\"/><path d=\\\"M16.667 20.428a1.24 1.24 0 01-.882-.365l-1.5-1.5a.5.5 0 01.708-.707l1.5 1.5a.244.244 0 00.176.072.252.252 0 00.202-.1l2.905-3.872a.501.501 0 01.8.6l-2.905 3.872c-.237.314-.612.5-1.004.5z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/members\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.members_svg__cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><circle class=\\\"members_svg__cls-1\\\" cx=\\\"7.5\\\" cy=\\\"7.875\\\" r=\\\"4.125\\\"/><path class=\\\"members_svg__cls-1\\\" d=\\\"M.75 20.25a6.75 6.75 0 0113.5 0\\\"/><circle class=\\\"members_svg__cls-1\\\" cx=\\\"17.727\\\" cy=\\\"10.125\\\" r=\\\"3.375\\\"/><path class=\\\"members_svg__cls-1\\\" d=\\\"M15.813 15.068a5.526 5.526 0 017.437 5.182\\\"/>\",\n    \"attrs\": {\n      \"id\": \"members_svg__Regular\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/mobile-phone-heart\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M16.5 0h-9A2.503 2.503 0 005 2.5v19C5 22.879 6.122 24 7.5 24h9c1.378 0 2.5-1.121 2.5-2.5v-19C19 1.121 17.878 0 16.5 0zM6 5h12v14H6V5zm1.5-4h9c.827 0 1.5.673 1.5 1.5V4H6V2.5C6 1.673 6.673 1 7.5 1zm9 22h-9c-.827 0-1.5-.673-1.5-1.5V20h12v1.5c0 .827-.673 1.5-1.5 1.5zm-7-20h5a.5.5 0 000-1h-5a.5.5 0 000 1z\\\"/><circle cx=\\\"12\\\" cy=\\\"21.5\\\" r=\\\"1\\\"/><path d=\\\"M14.272 7.502c-.772 0-1.673.376-2.272 1.356-.599-.981-1.5-1.356-2.272-1.356C8.387 7.502 7 8.609 7 10.462c0 2.581 4.226 5.698 4.708 6.046a.503.503 0 00.584 0C12.774 16.16 17 13.043 17 10.462c0-1.853-1.387-2.96-2.728-2.96zM12 15.479c-1.34-1.023-4-3.39-4-5.017 0-1.226.878-1.96 1.728-1.96.844 0 1.512.673 1.786 1.802.108.447.863.447.972 0 .274-1.129.942-1.802 1.786-1.802.85 0 1.728.733 1.728 1.96 0 1.627-2.66 3.993-4 5.017z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/mobile-phone\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M3.166 14a.5.5 0 01.5-.5h8.667a.5.5 0 010 1H3.666a.5.5 0 01-.5-.5z\\\"/><path d=\\\"M5 1.833a.833.833 0 00-.834.834v12.666c0 .46.373.834.833.834h6c.46 0 .834-.373.834-.834V2.668a.833.833 0 00-.834-.833H5zm-1.834.834c0-1.013.82-1.834 1.833-1.834h6c1.013 0 1.834.821 1.834 1.834v12.666a1.834 1.834 0 01-1.834 1.834H5a1.833 1.833 0 01-1.833-1.834V2.668z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 16 18\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/module\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.module_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"module_svg__a\\\" d=\\\"M1.817 4.524l9.1-3.568a2.936 2.936 0 012.162 0l9.1 3.568a1.763 1.763 0 011.071 1.662v11.628a1.763 1.763 0 01-1.067 1.662l-9.1 3.569a2.956 2.956 0 01-2.162 0l-9.1-3.569A1.763 1.763 0 01.75 17.814V6.186a1.763 1.763 0 011.067-1.662zM12 9.353L1.104 5.081M12 9.353l10.896-4.272M12 23.25V9.353\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/modules\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M18 24a.725.725 0 01-.176-.022l-.046-.013a.788.788 0 01-.153-.064l-5.248-2.999A.756.756 0 0112 20.25V15c0-.058.007-.116.023-.179l.013-.045a.808.808 0 01.052-.126l.025-.044a.748.748 0 01.105-.135l.017-.016a.706.706 0 01.108-.084l.025-.017 5.26-3.006a.757.757 0 01.744.001l5.25 3 .034.022a.675.675 0 01.11.086l.015.014a.8.8 0 01.106.135l.026.046a.77.77 0 01.051.121l.015.05A.845.845 0 0124 15v5.25a.752.752 0 01-.378.651l-5.25 3a.818.818 0 01-.15.063l-.046.014A.725.725 0 0118 24zm.75-2.042l3.75-2.143v-3.522l-3.75 2.143v3.522zm-1.5 0v-3.522l-3.75-2.143v3.522l3.75 2.143zm.75-4.822L21.738 15 18 12.864 14.262 15 18 17.136zm-6-4.386a.719.719 0 01-.176-.022l-.047-.014a.73.73 0 01-.142-.059L6.378 9.651A.752.752 0 016 9V3.75a.71.71 0 01.023-.179l.015-.05a.752.752 0 01.051-.122l.022-.04a.76.76 0 01.232-.237l.032-.022L11.628.098a.757.757 0 01.744.001l5.25 3 .034.022c.04.025.077.054.11.085l.015.014c.04.04.074.085.107.137l.022.039a.704.704 0 01.054.13l.013.046A.75.75 0 0118 3.75V9a.75.75 0 01-.378.651l-5.25 3a.8.8 0 01-.152.064l-.044.013a.719.719 0 01-.176.022zm.75-2.042l3.75-2.143V5.042l-3.75 2.143v3.523zm-1.5 0V7.185L7.5 5.042v3.522l3.75 2.144zM12 5.886l3.738-2.136L12 1.614 8.262 3.75 12 5.886zM6 24a.725.725 0 01-.176-.022l-.045-.013a.605.605 0 01-.105-.042l-.051-.025-5.244-2.997A.75.75 0 010 20.25V15c0-.058.007-.116.023-.179l.013-.044a.734.734 0 01.053-.127l.022-.039a.762.762 0 01.109-.141l.015-.014a.706.706 0 01.108-.084l.025-.017 5.26-3.006a.748.748 0 01.744 0l3.75 2.143c.174.1.299.261.351.454a.747.747 0 01-.724.948.754.754 0 01-.371-.098L6 12.864 2.262 15 6 17.136l2.628-1.502a.75.75 0 01.744 1.303L6.75 18.435v3.522l2.628-1.502a.752.752 0 011.095.849.748.748 0 01-.351.454l-3.75 2.143a.818.818 0 01-.15.064l-.046.014A.775.775 0 016 24zm-.75-2.042v-3.522L1.5 16.292v3.522l3.75 2.144z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/monitor-labs\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M1.881 17.25A1.885 1.885 0 010 15.388V1.862A1.879 1.879 0 011.871 0h16.498c1.03 0 1.872.835 1.881 1.861V4.5a.75.75 0 01-.75.75h-18v10.131a.378.378 0 00.379.369h9.371a.75.75 0 010 1.5H1.881zM18.75 3.75V1.868a.377.377 0 00-.378-.368h-16.5a.373.373 0 00-.372.368V3.75h17.25z\\\"/><path d=\\\"M11.888 24a1.5 1.5 0 01-1.315-2.22l4.432-7.001L15 10.5c0-.827.673-1.5 1.5-1.5H18c.827 0 1.5.673 1.5 1.5v4.287l4.204 6.992a1.505 1.505 0 01-.256 1.782 1.489 1.489 0 01-1.06.439h-10.5zm10.5-1.5l-2.255-3.75h-5.867l-2.371 3.744 10.493.006zm-3.157-5.25l-1.011-1.683a1.478 1.478 0 01-.22-.779V10.5h-1.5v4.287a1.512 1.512 0 01-.223.787l-1.061 1.676h4.015zm2.519-7.5A.75.75 0 0121 9v-.75h-.75a.75.75 0 010-1.5H21V6a.75.75 0 011.5 0v.75h.75a.75.75 0 010 1.5h-.75V9a.75.75 0 01-.75.75zm-10.5 1.5a.75.75 0 01-.75-.75v-.75h-.75a.75.75 0 010-1.5h.75V7.5a.75.75 0 011.5 0v.75h.75a.75.75 0 010 1.5H12v.75a.75.75 0 01-.75.75z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/moon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12.248 11.959A11.254 11.254 0 004.373 1.226a11.25 11.25 0 110 21.466 11.253 11.253 0 007.875-10.733z\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"1.5\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/mountains\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#9BAEB8\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><path d=\\\"M35.434 9.16C44.87 3.994 55.694 1.055 67.2 1.055c36.583 0 66.284 29.702 66.284 66.285 0 36.582-29.7 66.283-66.284 66.283-36.583 0-66.284-29.7-66.284-66.283 0-12.22 3.314-23.672 9.092-33.506\\\"/><path d=\\\"M24.01 4.886c9.846 0 17.84 7.995 17.84 17.84 0 9.847-7.994 17.84-17.84 17.84S6.17 32.574 6.17 22.727c0-9.845 7.994-17.84 17.84-17.84z\\\" stroke-width=\\\"1.5\\\"/><path d=\\\"M1.598 75.68l7.01-7.938 20.384-7.729 8.021 11.196M26.982 86.606l27.881-41.571 14.692-2.025 12.243-12.246 20.94 32.006m-5.621-8.707l13.125-15.386 10.226 16.892 12.617 6.481\\\"/><path d=\\\"M81.701 31.513l-4.567 16.414L63.2 50.168l-8.044-4.799m-26.25 15.057l-10.052 9.4-16.46 9.75m107.87-40.11l-4.352 14.397-6.813 3.335M4.29 72.954h9.06M1.77 76.146H7.9m-.987-6.254H18.4m40.386-22.747h18.592m-15.906-2.947h16.672m-6.624-3.05h7.179m-3.797-2.954h4.88m-2.494-2.891h2.957m-69.16 31.57h10.481m-2.703-3.021h6.291m38.119-13.584l12.045 9.34 10.39 3.407 4.629 7.316m7.169-16.225h7.31m-4.808-3.173h6.486m-4.027-3.085h4.952m-2.136-3.071h3.354M3.216 83.405s13.854-.669 27.219 4.988c13.364 5.657 23.471 12.137 23.471 12.137m-6.343-4.576S64.39 84.025 90.549 82.267c26.158-1.76 41.03.652 41.03.652\\\"/><path d=\\\"M106.484 88.541V58.202m-.136.205s-3.325 5.105-6.446 6.446m6.446-1.101s-3.325 5.104-6.446 6.445m6.414-1.611s-4.334 5.96-8.403 7.526m8.378-1.985s-5.09 5.96-9.869 7.526m10.136-23.246s3.325 5.105 6.446 6.446m-6.446-1.101s3.325 5.104 6.446 6.445m-6.414-1.611s4.334 5.96 8.403 7.526m-8.379-1.985s5.09 5.96 9.87 7.526m-31.849 24.929V77.526m-.131.197s-3.184 4.888-6.172 6.173m6.172-1.055s-3.184 4.888-6.172 6.173m6.142-1.544s-4.151 5.709-8.047 7.209m8.023-1.902s-4.873 5.708-9.45 7.208m9.706-22.262s3.183 4.888 6.173 6.173m-6.173-1.055s3.183 4.888 6.173 6.173m-6.142-1.544s4.15 5.709 8.047 7.209m-8.024-1.902s4.875 5.708 9.452 7.208m-68.256 18.779V98.566m-.127.192s-3.11 4.774-6.028 6.028m6.028-1.03s-3.11 4.774-6.028 6.028m5.998-1.507s-2.5 3.438-5.416 5.623m5.393-.441s-1.13 1.323-2.805 2.849m3.054-17.55s3.11 4.774 6.028 6.028m-6.028-1.03s3.11 4.774 6.028 6.028m-5.998-1.507s4.053 5.574 7.858 7.039m-7.835-1.857s4.76 5.574 9.23 7.039m31.457 13.045v-30.074m38.085 17.629V109.88m-.128.192s-3.11 4.774-6.028 6.028m6.028-1.03s-3.11 4.774-6.028 6.028m5.998-1.507s-4.053 5.575-7.858 7.04m8.085-16.559s3.109 4.774 6.028 6.028m-6.028-1.03s1.436 2.205 3.272 4.012m-3.242.509s.39.538 1.044 1.324m-39.41-17.171s-4.448 6.828-8.623 8.623m8.623-1.473s-4.448 6.828-8.623 8.622m8.58-2.156s-5.798 7.975-11.24 10.07m11.208-2.657s-4.13 4.837-8.978 7.966m9.335-28.995s4.447 6.828 8.622 8.623m-8.622-1.473s4.447 6.828 8.622 8.622m-8.58-2.156s5.798 7.975 11.241 10.07m-11.208-2.657s3.968 4.647 8.69 7.778M60.7 88.912V77.016m-.083-.838s-2.04 3.134-3.957 3.957m3.957.288s-2.04 3.133-3.957 3.957m3.938-.025s-2.66 3.658-5.158 4.62m5.306-12.797s2.041 3.134 3.957 3.957m-3.957.288s2.041 3.133 3.957 3.957m-3.937-.025s.89 1.98 2.86 3.408M39.394 98.072V75.388m-.102.154s-2.485 3.816-4.819 4.819m4.819-.823s-2.485 3.816-4.819 4.819m4.795-1.205s-3.24 4.456-6.282 5.627m6.264-1.484s-3.806 4.456-7.379 5.627m7.579-17.38s2.485 3.816 4.819 4.819m-4.819-.823s2.485 3.816 4.819 4.819m-4.795-1.205s3.24 4.456 6.282 5.627m-6.265-1.484s3.807 4.456 7.38 5.627\\\" stroke-width=\\\"1.5\\\"/><path d=\\\"M15.347 88.073h3.286m-3.286 14.241h3.286m-10.886-6.64h3.285m22.07 6.752h1.588m-10.887-6.641h3.286m20.371 21.711h3.286m-3.286-14.959h3.286m-10.886 22.56h3.286m11.174 0h.964m-.964-15.424h.964m-15.424.465h3.286m20.371-7.49h.964m-8.565-6.64h3.286m20.372 21.712h3.285m-10.886-21.6h1.643m22.014-7.49h3.286m-3.286 29.2h3.286m-3.286-14.959h3.286m-10.886 22.56h3.285m-3.285-14.959h3.285m20.371-21.731h3.286m-3.286 14.242h3.286m-10.886-6.641h3.286m-3.286 14.241h3.286m20.371-21.73h2.102m-9.703 7.6h3.287\\\" opacity=\\\".6\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 134 135\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/navigation\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22.5 4h-16a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h16a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM22 7H7V5h15v2zm-2.5 3h-16a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h16a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zm-.5 3H4v-2h15v2zm-2.5 3H.5a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h16a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zm-.5 3H1v-2h15v2z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/network\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22 12.5c-.694 0-1.306.356-1.664.895l-2.705-1.118A4.467 4.467 0 0018 10.5a4.456 4.456 0 00-.995-2.788l3.987-3.996c.296.176.639.284 1.008.284 1.103 0 2-.897 2-2 0-1.102-.897-2-2-2s-2 .898-2 2c0 .37.108.712.284 1.01l-3.986 3.994A4.459 4.459 0 0013.499 6c-1.673 0-3.119.929-3.894 2.287L3.963 5.869C3.985 5.749 4 5.626 4 5.5c0-1.102-.898-2-2-2s-2 .898-2 2c0 1.103.897 2 2 2 .617 0 1.163-.287 1.53-.728l5.681 2.435c-.125.412-.212.84-.212 1.293 0 1.065.387 2.032 1.008 2.803l-6.997 6.98A1.986 1.986 0 002 20c-1.102 0-2 .898-2 2 0 1.103.897 2 2 2s2-.897 2-2c0-.37-.108-.712-.284-1.01l6.999-6.982a4.452 4.452 0 002.283.941v5.121c-.86.224-1.5 1-1.5 1.929 0 1.103.898 2 2 2 1.103 0 2-.897 2-2 0-.929-.64-1.705-1.5-1.929v-5.12a4.476 4.476 0 003.12-1.802l2.896 1.197L20 14.5c0 1.103.897 2 2 2s2-.897 2-2c0-1.102-.897-2-2-2zm-20-6a1 1 0 110-2 1 1 0 010 2zM22 1a1 1 0 110 2 1 1 0 010-2zM2 23a1 1 0 110-2 1 1 0 010 2zm12.499-1a1 1 0 11-2 0 1 1 0 012 0zm-1-8c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5zM22 15.5a1 1 0 110-2 1 1 0 010 2z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/news-article\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.5 2H.5a.5.5 0 00-.5.5v18a.5.5 0 00.5.5h23a.5.5 0 00.5-.5v-18a.5.5 0 00-.5-.5zM23 20H1V3h22v17zM2.5 9h19a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5h-19a.5.5 0 00-.5.5v3a.5.5 0 00.5.5zM3 6h18v2H3V6zm7.5 5h-6a.5.5 0 000 1h6a.5.5 0 000-1zm0 2h-7a.5.5 0 000 1h7a.5.5 0 000-1zm0 2h-7a.5.5 0 000 1h7a.5.5 0 000-1zm0 2h-7a.5.5 0 000 1h7a.5.5 0 000-1zm10-6h-7a.5.5 0 000 1h7a.5.5 0 000-1zm0 2h-7a.5.5 0 000 1h7a.5.5 0 000-1zm0 2h-7a.5.5 0 000 1h7a.5.5 0 000-1zm-1 2h-6a.5.5 0 000 1h6a.5.5 0 000-1z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/nightshift\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 24a.75.75 0 01-.75-.75v-3.783a7.513 7.513 0 01-2.196-.568 7.522 7.522 0 01-1.802-1.089l-2.676 2.677a.744.744 0 01-1.06 0 .752.752 0 010-1.061l2.676-2.676a7.5 7.5 0 01-1.08-1.788l-.072-.167-.056-.15-.041-.11a8.635 8.635 0 01-.082-.242l-.032-.101a7.397 7.397 0 01-.08-.281l-.015-.057a7.52 7.52 0 01-.197-1.103H.75a.75.75 0 010-1.501h3.784a7.496 7.496 0 01.568-2.196 7.49 7.49 0 011.089-1.802L3.515 4.575c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53c.141-.142.33-.22.53-.22s.389.078.53.22l2.676 2.676a7.482 7.482 0 011.785-1.079l.17-.073a.403.403 0 01.049-.016 7.399 7.399 0 011.996-.486V.75a.749.749 0 111.499 0v3.788a7.516 7.516 0 013.994 1.658l2.681-2.681a.744.744 0 011.06 0 .744.744 0 010 1.06l-2.681 2.681a7.513 7.513 0 011.658 3.994h3.788a.75.75 0 010 1.5h-3.788a7.438 7.438 0 01-.488 2.003l-.012.038-.081.189a9.008 9.008 0 01-.109.242l-.041.083c-.042.085-.085.17-.13.254l-.02.035c-.06.108-.112.199-.166.289l-.013.021a7.501 7.501 0 01-.596.84l2.68 2.68a.752.752 0 01-.53 1.281.743.743 0 01-.53-.22l-2.68-2.68a7.764 7.764 0 01-1.146.773l-.038.021a7.39 7.39 0 01-.267.137l-.066.032a6.891 6.891 0 01-.247.112l-.187.081-.257.096c-.082.03-.163.057-.245.083l-.095.03c-.097.03-.196.058-.294.084l-.042.011a7.442 7.442 0 01-1.111.2v3.784A.752.752 0 0112 24zm-5.407-9.4a6.022 6.022 0 002.291 2.526 6.018 6.018 0 002.136.793l.026.005.2.027.094.012.151.014c.056.005.112.01.168.013l.095.004c.074.003.149.005.226.006h.054c.088 0 .173-.002.257-.006l.047-.002c.083-.005.17-.011.255-.02l.044-.005c.085-.009.167-.02.249-.032l.059-.009a5.41 5.41 0 00.228-.041l.079-.016c.066-.014.135-.03.204-.047l.092-.024a6.05 6.05 0 00.192-.055l.097-.03c.062-.02.125-.041.188-.064l.071-.027.189-.074c.122-.05.24-.104.357-.162l.129-.066c.113-.059.223-.12.331-.185l.114-.073c.09-.057.178-.117.264-.178l.106-.075c.102-.076.201-.157.298-.24l.112-.096c.094-.084.186-.171.274-.261l.099-.104c.086-.092.171-.186.252-.283l.106-.134a6.916 6.916 0 01-.915.061h-.065c-4.133-.001-7.497-3.368-7.496-7.504 0-.327.021-.652.064-.975a6.067 6.067 0 00-1.797 2.292A5.944 5.944 0 006 12c0 .501.063 1 .186 1.484l.01.039c.021.078.042.155.066.232l.021.066c.024.075.047.143.071.21l.021.056c.034.09.06.157.088.224l.016.038c.042.098.076.173.111.248.002 0 .003.003.003.003zm3.477-8.281a5.973 5.973 0 00-.32 1.927 6.01 6.01 0 006 6.004 5.93 5.93 0 001.931-.32A5.954 5.954 0 0018 12c0-3.308-2.692-6-6-6-.66 0-1.309.107-1.93.319z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/no-data-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<rect y=\\\"65\\\" width=\\\"35\\\" height=\\\"5\\\" rx=\\\"1\\\" fill=\\\"#DDE1E5\\\"/><rect y=\\\"37\\\" width=\\\"64\\\" height=\\\"5\\\" rx=\\\"1\\\" fill=\\\"#DDE1E5\\\"/><rect y=\\\"9\\\" width=\\\"44\\\" height=\\\"5\\\" rx=\\\"1\\\" fill=\\\"#DDE1E5\\\"/><rect y=\\\"56\\\" width=\\\"91\\\" height=\\\"5\\\" rx=\\\"1\\\" fill=\\\"#DDE1E5\\\"/><rect y=\\\"28\\\" width=\\\"91\\\" height=\\\"5\\\" rx=\\\"1\\\" fill=\\\"#DDE1E5\\\"/><rect width=\\\"91\\\" height=\\\"5\\\" rx=\\\"1\\\" fill=\\\"#DDE1E5\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 91 70\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/no-members\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M3.5 24a.502.502 0 01-.498-.458L2.54 18H.5a.5.5 0 01-.5-.5V14c0-3.033 2.467-5.5 5.5-5.5S11 10.967 11 14v3.5a.5.5 0 01-.5.5H8.46l-.462 5.542A.502.502 0 017.5 24h-4zm3.54-1l.462-5.542A.502.502 0 018 17h2v-3c0-2.481-2.019-4.5-4.5-4.5A4.505 4.505 0 001 14v3h2c.258 0 .477.201.498.458L3.96 23h3.08zM5.5 8c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4zm0-7c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3-1.346-3-3-3zm11.939 9.87a.502.502 0 01-.344-.137 4.48 4.48 0 00-5.006-.811.502.502 0 01-.423-.906 5.472 5.472 0 016.116.99.501.501 0 01-.343.864zM14 8c-1.93 0-3.5-1.57-3.5-3.5S12.07 1 14 1s3.5 1.57 3.5 3.5S15.93 8 14 8zm0-6a2.503 2.503 0 00-2.5 2.5C11.5 5.879 12.622 7 14 7s2.5-1.121 2.5-2.5S15.378 2 14 2zm4.5 22a5.463 5.463 0 01-3.856-1.583.262.262 0 01-.065-.067A5.446 5.446 0 0113 18.5c0-3.033 2.467-5.5 5.5-5.5a5.46 5.46 0 013.87 1.596l.018.016c.006.005.011.012.016.018A5.462 5.462 0 0124 18.5c0 3.033-2.467 5.5-5.5 5.5zm-2.803-1.989A4.482 4.482 0 0018.5 23c2.481 0 4.5-2.019 4.5-4.5 0-1.02-.349-2.005-.989-2.803l-6.314 6.314zM18.5 14a4.505 4.505 0 00-4.5 4.5c0 1.02.35 2.005.99 2.804l6.315-6.314c-.8-.64-1.785-.99-2.805-.99z\\\" fill=\\\"#000\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/page-bold\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22.044 0H1.956A1.959 1.959 0 000 1.954v20.088A1.959 1.959 0 001.956 24h20.088A1.959 1.959 0 0024 22.042V1.954A1.959 1.959 0 0022.044 0zM21 22l-18 .04a1 1 0 01-1-1L1.958 3a1 1 0 011-1L21 1.956a1 1 0 011 1V21a1 1 0 01-1 1z\\\"/><path d=\\\"M11 8.248h8.5a.75.75 0 000-1.5H11a.75.75 0 000 1.5zm0 4.5h8.5a.75.75 0 000-1.5H11a.75.75 0 000 1.5zm0 4.5h5.5a.75.75 0 100-1.5H11a.75.75 0 000 1.5z\\\"/><rect x=\\\"3.5\\\" y=\\\"12.998\\\" width=\\\"4.875\\\" height=\\\"4.875\\\" rx=\\\".875\\\" ry=\\\".875\\\"/><rect x=\\\"3.5\\\" y=\\\"5.623\\\" width=\\\"4.875\\\" height=\\\"4.875\\\" rx=\\\".875\\\" ry=\\\".875\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/page\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.page_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"page_svg__a\\\" d=\\\"M16.5 21.513a1.5 1.5 0 01-1.9 1.446L4.1 20.042A1.5 1.5 0 013 18.6V2.487a1.5 1.5 0 011.9-1.446l10.5 3.391a1.5 1.5 0 011.1 1.445z\\\"/><path class=\\\"page_svg__a\\\" d=\\\"M4.5.987h15a1.5 1.5 0 011.5 1.5v15.75a1.5 1.5 0 01-1.5 1.5h-3\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/pages-placeholder\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M27.05 121.033l26.088-2.742-.017.035c19.625.686 44.306 1.502 56.815 1.93C98.456 129.48 83.873 135 68 135c-15.422 0-29.627-5.21-40.95-13.967zm-6.754-5.987C8.364 102.948 1 86.334 1 68c0-13.298 3.874-25.692 10.556-36.113l8.74 83.16zm2.832-96.801C35.006 7.525 50.741 1 68 1c16.93 0 32.393 6.28 44.187 16.635l-9.047-.315-.085.171-.352-3.351a4.235 4.235 0 00-4.655-3.769l-74.92 7.874zm97.977 8.898C129.818 38.451 135 52.62 135 68c0 17.06-6.376 32.63-16.874 44.458l2.98-85.315z\\\" fill-opacity=\\\".1\\\" fill=\\\"#9BAEB8\\\"/><path d=\\\"M102.703 14.14a4.235 4.235 0 00-4.655-3.769l-83.572 8.783a4.237 4.237 0 00-3.77 4.655l9.843 93.649a4.237 4.237 0 004.655 3.77c15.353-1.615 68.219-7.171 83.572-8.785a4.234 4.234 0 003.769-4.654l-9.842-93.649zM27.16 43.081l61.594-6.473m-62.008 3.406l61.593-6.474\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M12.404 31.893l47.358-4.973-1.345-12.303m14.708-1.257l1.32 12.016 28.764-3.001m-86.693 2.64l17.614-1.849m28.93-2.883l6.63-.696m8.194-.935l6.63-.696M90 17.405l6.631-.696M33.58 97.203l61.593-6.474m-60.647 15.484l61.594-6.474M71.46 47.824l18.994-1.996M72.41 56.846l18.992-1.996M73.357 65.867l18.993-1.996M74.305 74.889l18.993-1.996M32.653 88.388l61.594-6.474M64.2 48.587l-35.34 3.715 2.84 27.022 35.34-3.714z\\\"/><path stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M35.189 73.927l27.317-2.871-23.741 2.495 6.4-7.903 4.191 3.395\\\"/><path stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M47.38 67.442l4.223-5.215 10.903 8.829M38.139 56.417a3.594 3.594 0 01.751 7.146 3.595 3.595 0 01-3.949-3.197 3.595 3.595 0 013.198-3.949z\\\"/><path d=\\\"M53.12 118.326c21.793.761 49.819 1.684 60.491 2.057a4.235 4.235 0 004.381-4.085l3.286-94.107a4.235 4.235 0 00-4.085-4.381l-14.053-.49\\\" stroke=\\\"#9BAEB8\\\"/><path d=\\\"M67.706 1c17.084 0 32.303 6.018 44.11 16.595m9.397 10.291a66.39 66.39 0 0113.2 39.82c0 16.741-5.801 31.827-16.002 43.545m-9.993 9.287c-11.268 8.698-25.39 13.875-40.712 13.875a66.387 66.387 0 01-39.512-12.971m-7.955-6.887C8.345 102.506 1 85.957 1 67.707c0-13.115 3.793-25.35 10.34-35.669m11.747-13.902A66.778 66.778 0 0143.355 5.592m0 0A66.458 66.458 0 0167.706 1\\\" opacity=\\\".6\\\" stroke=\\\"#9BAEB8\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 135 135\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/paint-palette\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.paint-palette_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><circle class=\\\"paint-palette_svg__a\\\" cx=\\\"5.288\\\" cy=\\\"5.25\\\" r=\\\"1.5\\\"/><circle class=\\\"paint-palette_svg__a\\\" cx=\\\"5.288\\\" cy=\\\"11.25\\\" r=\\\"1.5\\\"/><circle class=\\\"paint-palette_svg__a\\\" cx=\\\"5.288\\\" cy=\\\"17.25\\\" r=\\\"1.5\\\"/><path class=\\\"paint-palette_svg__a\\\" d=\\\"M9.2 19.337a3.913 3.913 0 01-7.826 0V2.707A1.957 1.957 0 013.331.75h3.913A1.957 1.957 0 019.2 2.707z\\\"/><path class=\\\"paint-palette_svg__a\\\" d=\\\"M8.643 21.352l8.349-14.461a1.957 1.957 0 00-.716-2.673l-3.389-1.956A1.951 1.951 0 0011.87 2\\\"/><path class=\\\"paint-palette_svg__a\\\" d=\\\"M7.293 22.7l14.354-8.29a1.957 1.957 0 00.716-2.672l-1.957-3.389a1.945 1.945 0 00-.5-.57\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/paintbrush\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M2.509 23.827a9.617 9.617 0 01-1.65-.143.746.746 0 01-.585-.507.746.746 0 01.172-.75c.008-.009 1.221-1.379 1.354-4.723a4.542 4.542 0 011.303-3.239 4.514 4.514 0 014.269-1.072L17.561 1.409a3.501 3.501 0 012.68-1.235 3.496 3.496 0 012.683 1.239c.609.715.903 1.625.828 2.563a3.494 3.494 0 01-1.227 2.399L10.548 16.621a4.515 4.515 0 01-1.06 4.181 9.617 9.617 0 01-6.979 3.025zm-.24-1.504a8.107 8.107 0 006.123-2.547 3.01 3.01 0 00-.002-4.088 3.009 3.009 0 00-2.196-.953c-.762 0-1.488.285-2.044.804a3.055 3.055 0 00-.851 2.18c-.088 2.236-.6 3.728-1.03 4.604zm6.597-8.37c.448.313.834.704 1.142 1.156l2.347-2.008-1.495-1.495-1.994 2.347zm4.633-1.831l8.052-6.888c.412-.351.662-.84.705-1.378a2.01 2.01 0 00-.587-1.592 2.008 2.008 0 00-1.429-.591 2.006 2.006 0 00-1.537.708l-6.868 8.078 1.664 1.663z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/pen\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M.748 24a.755.755 0 01-.531-.22.754.754 0 01-.196-.716l1.77-6.905a.84.84 0 01.045-.121.73.73 0 01.151-.223L16.513 1.289A4.355 4.355 0 0119.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 011.251 3.121 4.356 4.356 0 01-1.32 3.087L8.183 22.01a.735.735 0 01-.231.154.784.784 0 01-.111.042L.933 23.978A.773.773 0 01.748 24zm1.041-1.791l4.41-1.131-3.281-3.275-1.129 4.406zm5.868-1.795l13.02-13.02-4.074-4.074L3.58 16.344l4.077 4.07zM21.736 6.332a2.893 2.893 0 00-.059-3.972l-.02-.02a2.872 2.872 0 00-2.037-.84v-.375l-.001.375a2.873 2.873 0 00-1.954.762l4.071 4.07z\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/pencil-circle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#000\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"><path d=\\\"M10.661 16.168l-4.95 2.122 2.122-4.951L16.672 4.5 19.5 7.329zm7.003-7.003l-2.828-2.829m-4.175 9.832l-2.828-2.829\\\"/><circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"11.5\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/pencil\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M19.601.007a4.241 4.241 0 00-3.102 1.318L2.039 15.78a.758.758 0 00-.194.34l-1.82 6.94a.75.75 0 00.915.916l6.942-1.82a.733.733 0 00.34-.195l14.465-14.46A4.239 4.239 0 0024 4.404a4.243 4.243 0 00-1.277-3.12C21.926.492 20.96.063 19.858.013L19.6.007zm.01 1.5a2.745 2.745 0 012.052.839c.568.57.842 1.24.837 2.048l-.008.217c-.052.712-.333 1.309-.86 1.822L7.306 20.756l-5.504 1.443 1.442-5.502L17.565 2.379c.52-.53 1.117-.813 1.83-.864l.216-.008z\\\"/><path d=\\\"M16.09 1.733a.751.751 0 01.977-.073l.084.073 5.122 5.12a.749.749 0 01-.976 1.133l-.084-.073-5.122-5.12a.749.749 0 010-1.06zM14.002 3.82a.75.75 0 01.976-.072l.084.073 5.122 5.12a.749.749 0 01-.976 1.133l-.084-.073-5.122-5.12a.749.749 0 010-1.06zM1.88 16.016a.752.752 0 01.888-.43l.096.034 3.59 1.532c.142.06.261.163.342.293l.053.102 1.536 3.584a.75.75 0 01-1.332.681l-.046-.09-1.419-3.309L2.276 17a.752.752 0 01-.43-.888l.034-.096z\\\"/><path d=\\\"M16.563 6.38a.75.75 0 011.133.977l-.073.084L6.69 18.371a.749.749 0 01-1.133-.976l.073-.084L16.563 6.38z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/photos-people\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M19 18.5v-17a.5.5 0 00-.5-.5h-17a.5.5 0 00-.5.5v17a.5.5 0 00.5.5h17a.5.5 0 00.5-.5zM18 2v13h-2.56a5.382 5.382 0 00-3.352-4.5 3.555 3.555 0 10-3.979.002A5.377 5.377 0 004.759 15H2V2h16zM7.541 7.555A2.56 2.56 0 0110.098 5a2.558 2.558 0 012.555 2.555 2.558 2.558 0 01-2.555 2.556 2.559 2.559 0 01-2.557-2.556zM14.458 15H5.736a4.395 4.395 0 014.361-3.889A4.395 4.395 0 0114.458 15zM2 18v-2h16v2H2zM22.884 7.242a.5.5 0 00-.339-.178l-1.992-.182a.501.501 0 00-.09.996l1.494.136-1.272 13.942-14.44-1.317a.502.502 0 00-.09.997l14.937 1.363.045.001a.501.501 0 00.498-.455l1.363-14.939a.497.497 0 00-.114-.364z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/photos\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M19 18.5v-17a.5.5 0 00-.5-.5h-17a.5.5 0 00-.5.5v17a.5.5 0 00.5.5h17a.5.5 0 00.5-.5zM18 2v13h-2.161l-2.874-7.186a.5.5 0 00-.453-.314.529.529 0 00-.467.293l-2.17 4.775-1.99-2.389a.502.502 0 00-.813.063L4.217 15H2V2h16zm-3.238 13H5.383l2.183-3.639 2.049 2.46a.5.5 0 00.839-.114l2.016-4.434L14.762 15zM2 18v-2h16v2H2zM22.884 7.242a.5.5 0 00-.339-.178l-1.992-.181a.5.5 0 00-.09.996l1.494.135-1.272 13.942-14.44-1.317a.502.502 0 00-.09.997l14.937 1.363.045.001a.501.501 0 00.498-.455l1.363-14.939a.497.497 0 00-.114-.364zM6 8c1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2 .897 2 2 2zm0-3c.551 0 1 .449 1 1s-.449 1-1 1-1-.449-1-1 .449-1 1-1z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/piggy-bank\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.piggy-bank_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"piggy-bank_svg__a\\\" d=\\\"M23.25 9.5a3 3 0 01-3 3M8.25 8a6.763 6.763 0 016 0M6.375 11a.375.375 0 10.375.375.375.375 0 00-.375-.375\\\"/><path class=\\\"piggy-bank_svg__a\\\" d=\\\"M7.9 4.883C6.726 2.756 3.75 2.75 3.75 2.75l.626 4.384A8.058 8.058 0 002.6 10.25H.75v6h2.49a8.467 8.467 0 002.01 2.372V21.5a.75.75 0 00.75.75h1.5a.75.75 0 00.75-.75v-1.241a9.512 9.512 0 006 .011v1.23a.75.75 0 00.75.75h1.5a.75.75 0 00.75-.75v-2.863a7.941 7.941 0 003-6.137c0-6.494-7.05-9.389-12.35-7.617z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/pin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.pin_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><circle class=\\\"pin_svg__a\\\" cx=\\\"12\\\" cy=\\\"8.25\\\" r=\\\"3.75\\\"/><path class=\\\"pin_svg__a\\\" d=\\\"M12 .75a7.5 7.5 0 017.5 7.5c0 3.407-5.074 11.95-6.875 14.665a.75.75 0 01-1.25 0C9.574 20.2 4.5 11.657 4.5 8.25A7.5 7.5 0 0112 .75z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/plane\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22.854 1.146c-1.132-1.132-3.073-1.133-4.207 0L15.793 4c-1.566-.001-2.984-.01-4.268-.018-1.1-.007-2.101-.013-3.01-.013C2.92 3.969 0 4.103 0 7c0 2.326 2.079 2.41 5.225 2.536 1.307.052 2.884.116 4.704.329L4.793 15H2.5A2.503 2.503 0 000 17.5c0 1.87 1.374 2.258 2.829 2.67l.774.227.213.731C4.214 22.54 4.626 24 6.5 24 7.878 24 9 22.878 9 21.5v-2.293l5.135-5.135c.214 1.826.278 3.407.331 4.715C14.592 21.926 14.675 24 17 24c.931 0 1.584-.224 2.056-.703 1.13-1.148 1.09-3.629 1.004-9.066A385.498 385.498 0 0120 8.207l2.854-2.853a2.947 2.947 0 000-4.208zm-.708 3.501l-3 3A.5.5 0 0019 8c0 2.421.033 4.488.06 6.246.077 4.836.119 7.5-.717 8.349-.275.28-.689.405-1.343.405-1.238 0-1.396-.806-1.535-4.253-.063-1.565-.142-3.513-.47-5.818a.497.497 0 00-.337-.403L14.5 12.5a.504.504 0 00-.354.146l-6 6A.504.504 0 008 19v2.5c0 .827-.673 1.5-1.5 1.5-1.072 0-1.302-.657-1.722-2.143-.092-.326-.188-.667-.304-1.015a.5.5 0 00-.316-.316 22.197 22.197 0 00-1.058-.317C1.606 18.785 1 18.571 1 17.5c0-.827.673-1.5 1.5-1.5H5a.5.5 0 00.353-.146l6-6a.5.5 0 00-.282-.849c-2.298-.328-4.243-.406-5.806-.468C1.808 8.398 1 8.24 1 7c0-1.67 1.335-2.031 7.516-2.031.907 0 1.906.006 3.003.013C12.861 4.991 14.35 5 16 5a.5.5 0 00.354-.147l3-3c.755-.755 2.038-.755 2.793 0 .782.783.782 2.01-.001 2.794z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/plus\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 1.5v21M1.5 12h21\\\" stroke=\\\"#343F44\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/portal-icon-1\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M10.533 11.267a5.135 5.135 0 10-.001-10.27 5.135 5.135 0 00.001 10.27zM1 23a9.531 9.531 0 0116.274-6.741 9.532 9.532 0 012.793 6.74\\\" stroke=\\\"#fff\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 21 24\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/portal-icon-2\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path stroke=\\\"#FFF\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" d=\\\"M12.5 2v20M2 12.5h20\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/portal-icon-3\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.5 6v14.25a2.25 2.25 0 11-4.5 0V3c0-.398-.158-.78-.44-1.06a1.494 1.494 0 00-1.06-.44h-15c-.398 0-.78.158-1.06.44C1.157 2.22 1 2.601 1 3v17.25a2.25 2.25 0 002.25 2.25h18M4.75 15h10.5m-10.5 3h6\\\" stroke=\\\"#fff\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M14.5 5.25h-9a.75.75 0 00-.75.75v4.5c0 .414.336.75.75.75h9a.75.75 0 00.75-.75V6a.75.75 0 00-.75-.75z\\\" stroke=\\\"#fff\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 25 24\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/portal-icon-4\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21.75 1.5H2.25A1.5 1.5 0 00.75 3v12a1.5 1.5 0 001.5 1.5h19.5a1.5 1.5 0 001.5-1.5V3a1.5 1.5 0 00-1.5-1.5zm-6.063 5.475L19.5 10.5M8.313 6.975L4.5 10.5\\\" stroke=\\\"#fff\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M22.88 2.014l-9.513 6.56a2.41 2.41 0 01-2.734 0L1.12 2.014\\\" stroke=\\\"#fff\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 18\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/portal-icon-5\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M17.903 12.016a5.007 5.007 0 00-3.031-3.654m-3.835.038a5.002 5.002 0 00-2.879 5.85m2.282 3.046A4.975 4.975 0 0013 18a4.99 4.99 0 004.12-2.167m-1.949 5.387a8.504 8.504 0 005.756-11.295m-2.316-3.31A8.474 8.474 0 0013 4.5a8.461 8.461 0 00-5.608 2.113m-2.28 3.213a8.503 8.503 0 005.914 11.444\\\" stroke=\\\"#fff\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\"/><path d=\\\"M8.924 24.29c1.273.46 2.645.71 4.076.71 5.52 0 10.17-3.727 11.57-8.803M6.712 2.777A11.994 11.994 0 001 13c0 3.545 1.537 6.731 3.982 8.928m19.867-10.839C23.933 5.369 18.977 1 13 1c-.69 0-1.367.058-2.025.17\\\" stroke=\\\"#fff\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 26 26\",\n      \"fill\": \"none\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/portal-logo-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.portal-logo-stroke_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><g id=\\\"portal-logo-stroke_svg__Artboard-Copy-4\\\" stroke=\\\"none\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\"><path class=\\\"portal-logo-stroke_svg__a\\\" d=\\\"M19.903 14.016a5.009 5.009 0 00-3.031-3.654M13.037 10.4a5.001 5.001 0 00-2.88 5.85M12.44 19.296A4.977 4.977 0 0015 20c1.71 0 3.22-.858 4.12-2.167M17.171 23.22a8.504 8.504 0 005.756-11.295M20.611 8.615A8.468 8.468 0 0015 6.5a8.468 8.468 0 00-5.608 2.113M7.112 11.826a8.503 8.503 0 005.913 11.443\\\" id=\\\"portal-logo-stroke_svg__Path\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\"/><path class=\\\"portal-logo-stroke_svg__a\\\" d=\\\"M10.924 26.29c1.273.46 2.645.71 4.076.71 5.52 0 10.17-3.727 11.57-8.803M8.712 4.777A11.993 11.993 0 003 15a11.97 11.97 0 003.982 8.928M26.849 13.089C25.933 7.369 20.977 3 15 3c-.69 0-1.367.058-2.025.17\\\" id=\\\"portal-logo-stroke_svg__Path\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 30 30\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/portal-logo\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M14.177 8.081a.749.749 0 01.976-.414 5.757 5.757 0 013.486 4.202.751.751 0 01-1.472.293 4.259 4.259 0 00-2.576-3.105.749.749 0 01-.414-.976zm-3.435-.371a.751.751 0 01.59 1.38 4.25 4.25 0 00-2.448 4.973.749.749 0 11-1.452.374 5.752 5.752 0 013.31-6.727zm5.76 7.698a.75.75 0 011.236.85A5.741 5.741 0 0113 18.75a5.733 5.733 0 01-2.945-.81.751.751 0 01.77-1.288c.651.39 1.397.598 2.175.598a4.24 4.24 0 003.502-1.842z\\\"/><path d=\\\"M20.656 9.226a.75.75 0 01.97.428 9.253 9.253 0 01-6.264 12.291.75.75 0 11-.382-1.45 7.754 7.754 0 005.248-10.299.75.75 0 01.428-.97zM13 3.75c2.277 0 4.428.828 6.106 2.302a.749.749 0 11-.99 1.126A7.726 7.726 0 0013 5.25c-1.91 0-3.71.692-5.113 1.926a.75.75 0 11-.99-1.126A9.206 9.206 0 0113 3.75zM4.416 9.546a.75.75 0 011.392.56A7.752 7.752 0 0011.2 20.54a.751.751 0 01-.347 1.46 9.253 9.253 0 01-7.103-9c0-1.199.228-2.367.666-3.454z\\\"/><path d=\\\"M23.847 15.998a.75.75 0 111.446.398A12.755 12.755 0 0113 25.75c-1.495 0-2.954-.257-4.33-.755a.749.749 0 11.509-1.41c1.214.438 2.5.665 3.821.665 5.093 0 9.513-3.414 10.847-8.252zM6.318 2.139a.75.75 0 11.788 1.276A11.245 11.245 0 001.75 13c0 3.236 1.373 6.249 3.733 8.37a.751.751 0 01-1.003 1.116A12.724 12.724 0 01.25 13 12.74 12.74 0 016.318 2.139zM13 .25c6.286 0 11.606 4.577 12.59 10.72a.75.75 0 01-1.482.238C23.241 5.789 18.546 1.75 13 1.75c-.643 0-1.278.054-1.9.16a.75.75 0 01-.251-1.479A12.71 12.71 0 0113 .25z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 26 26\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/post\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M14.5-.002h-12C1.086-.002.25.834.25 2.248v19.5c0 1.414.836 2.25 2.25 2.25h15c1.414 0 2.25-.836 2.25-2.25V5.131c0-.624-.233-1.175-.68-1.611L16.068.634a2.191 2.191 0 00-1.567-.636zm-12 1.5h12a.7.7 0 01.523.213l3.004 2.887c.154.15.223.314.223.533v16.617c0 .586-.164.75-.75.75h-15c-.586 0-.75-.164-.75-.75v-19.5c0-.586.164-.75.75-.75z\\\"/><path d=\\\"M15 17.55a.75.75 0 01.102 1.493L15 19.05H4.75a.75.75 0 01-.102-1.493l.102-.007H15zm0-4a.75.75 0 01.102 1.493L15 15.05H4.75a.75.75 0 01-.102-1.493l.102-.007H15zm0-4a.75.75 0 01.102 1.493L15 11.05H4.75a.75.75 0 01-.102-1.493l.102-.007H15zm0-4a.75.75 0 01.102 1.493L15 7.05H4.75a.75.75 0 01-.102-1.493l.102-.007H15z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/posts-placeholder\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M20.003 29C32.367 12.03 52.396 1 75 1c26.702 0 49.81 15.39 60.935 37.785L110 64V29H20.003zM142.1 57.901c.593 3.612.901 7.32.901 11.099 0 24.755-13.227 46.42-33 58.313V90L142.1 57.901z\\\" fill-opacity=\\\".1\\\" fill=\\\"#9BAEB8\\\"/><path d=\\\"M141.781 58.044c.66 3.5.73 6.77.73 10.712 0 37.395-30.36 67.756-67.755 67.756C37.36 136.512 7 106.152 7 68.756S37.36 1 74.756 1c26.482 0 49.437 15.226 60.578 37.392\\\" stroke=\\\"#9BAEB8\\\"/><path stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M20.4 28.906h89.465L110 64m41.691-16.195L99.632 99.86 87.195 87.423l51.725-51.71c3.52-3.682 7.4-4.113 11.642-1.292 2.218 1.575 3.44 3.72 3.67 6.43.229 2.71-.619 5.029-2.54 6.954zm-3.877 4.962c8.994 9.093-10.38 13.362-15.677 18.659l-1.62 4.727m-2.15-29.905l12.44 12.44m-16.665-8.215l12.44 12.44M93.213 86.015l2.599 2.599m.166-5.364l2.599 2.598m.166-5.363l2.599 2.598m.167-5.363l2.598 2.598m.167-5.363l2.598 2.598m-8.467 13.654l2.598 2.598m.167-5.363l2.599 2.598m.166-5.363l2.599 2.598m.166-5.363l2.6 2.598m.166-5.363l2.597 2.598m-23.069 7.03l-3.806 3.807 8.383 8.383 3.806-3.807m-6.095 1.903s-8.137 5.997-9.196 4.945c-1.058-1.052 4.908-9.136 4.908-9.136m22.871-6.085v36.61M18.069 105.13h15.155m7.866 0h40.87M11.174 90.318h65.564M8.168 75.507h20.52m7.148 0h32.827M8.168 60.695h38.115m8.68 0h30.703\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 155 138\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/posts\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.posts_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"posts_svg__a\\\" d=\\\"M12.667 14.136l-3.712.531.53-3.713 9.546-9.546a2.25 2.25 0 013.182 3.182z\\\"/><path class=\\\"posts_svg__a\\\" d=\\\"M19.122 14.25v7.5a1.5 1.5 0 01-1.5 1.5h-15a1.5 1.5 0 01-1.5-1.5v-15a1.5 1.5 0 011.5-1.5h7.5\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/powered-by-stripe\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"#000\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M118 6a5 5 0 00-5-5H6a5 5 0 00-5 5v14a5 5 0 005 5h107a5 5 0 005-5V6zm-5 20H6a6 6 0 01-6-6V6a6 6 0 016-6h107a6 6 0 016 6v14a6 6 0 01-6 6z\\\"/><path d=\\\"M10.939 9.987H9.918v2.452h1.021c.779 0 1.326-.495 1.326-1.221 0-.736-.547-1.231-1.326-1.231zm.189 3.546h-1.21v2.6H8.571V8.892h2.557c1.474 0 2.526.958 2.526 2.326s-1.052 2.315-2.526 2.315zm5.915-1.662c-.789 0-1.336.663-1.336 1.631s.547 1.631 1.336 1.631c.779 0 1.326-.663 1.326-1.631s-.547-1.631-1.326-1.631zm0 4.388c-1.589 0-2.715-1.147-2.715-2.757 0-1.621 1.126-2.757 2.715-2.757s2.705 1.136 2.705 2.757c0 1.61-1.116 2.757-2.705 2.757zm8.231-.126L24.2 12.555l-1.063 3.578h-1.21l-1.81-5.262h1.347l1.063 3.578 1.063-3.578h1.22l1.063 3.578 1.063-3.578h1.347l-1.799 5.262h-1.21zm5.925-4.347c-.652 0-1.157.485-1.22 1.211h2.294c-.042-.716-.474-1.211-1.074-1.211zm-1.22 2.084c.084.8.715 1.347 1.599 1.347.484 0 1.021-.179 1.568-.495v1.127c-.6.273-1.2.41-1.789.41-1.589 0-2.704-1.158-2.704-2.799 0-1.589 1.094-2.715 2.599-2.715 1.378 0 2.315 1.084 2.315 2.63 0 .148 0 .316-.021.495h-3.567zm6.009-1.252v3.515h-1.347v-5.262h1.347v.526c.379-.421.842-.652 1.294-.652.148 0 .295.01.442.052v1.2a1.77 1.77 0 00-.473-.063c-.442 0-.916.242-1.263.684zm4.768-.832c-.653 0-1.158.485-1.221 1.211h2.294c-.042-.716-.473-1.211-1.073-1.211zm-1.221 2.084c.084.8.716 1.347 1.599 1.347.485 0 1.021-.179 1.568-.495v1.127a4.298 4.298 0 01-1.789.41c-1.589 0-2.704-1.158-2.704-2.799 0-1.589 1.094-2.715 2.599-2.715 1.379 0 2.315 1.084 2.315 2.63 0 .148 0 .316-.021.495h-3.567zm8.019-1.494c-.305-.316-.673-.474-1.041-.474-.769 0-1.295.653-1.295 1.6 0 .947.526 1.599 1.295 1.599.368 0 .736-.158 1.041-.473v-2.252zm0 3.388c-.41.327-.873.495-1.336.495-1.4 0-2.378-1.137-2.378-2.757 0-1.621.978-2.757 2.378-2.757.463 0 .926.168 1.336.484V8.566h1.358v7.567h-1.358v-.369zm7.852-3.862c-.368 0-.737.158-1.052.474v2.252c.315.315.684.473 1.052.473.758 0 1.284-.652 1.284-1.599s-.526-1.6-1.284-1.6zm.284 4.357c-.452 0-.916-.168-1.336-.495v.369h-1.347V8.566h1.347v2.663c.42-.316.884-.484 1.336-.484 1.41 0 2.378 1.136 2.378 2.757 0 1.62-.968 2.757-2.378 2.757zm5.01 2.178h-1.305l1.01-2.494-2.01-5.072h1.379l1.263 3.452 1.273-3.452h1.379L60.7 18.437zM76.485 14.959c0 2.044-1.627 3.21-3.988 3.21-.979 0-2.049-.19-3.105-.644v-2.711c.953.518 2.167.907 3.108.907.633 0 1.089-.17 1.089-.695 0-1.355-4.316-.845-4.316-3.988 0-2.01 1.535-3.213 3.838-3.213.941 0 1.881.144 2.822.519v2.675c-.864-.467-1.961-.731-2.824-.731-.595 0-.965.172-.965.615 0 1.278 4.341.67 4.341 4.056zm3.539-.484c0 1.673 1.792 1.152 2.155 1.007v2.311c-.378.208-1.064.376-1.992.376-1.685 0-2.95-1.241-2.95-2.922l.013-9.109 2.772-.59.002 2.466h2.156v2.421h-2.156v4.04zm6.086-3.256v6.747h-2.838V8.014h2.455l.178.839c.665-1.222 1.992-.974 2.37-.838v2.61c-.361-.117-1.494-.287-2.165.594zm3.039-6.383l2.85-.606v2.313l-2.85.606V4.836zm0 13.13h2.85V8.014h-2.85v9.952zm8.297-7.626c-.651 0-1.06.238-1.356.563l.017 4.219c.276.299.673.539 1.339.539 1.05 0 1.754-1.143 1.754-2.672 0-1.485-.715-2.649-1.754-2.649zm.662 7.829c-.994 0-1.601-.419-2.009-.718l-.006 3.213-2.839.604-.001-13.254h2.5l.148.701a3.18 3.18 0 012.224-.89c1.994 0 3.872 1.796 3.872 5.102 0 3.608-1.858 5.242-3.889 5.242zm8.923-8.029c-.71 0-1.499.536-1.499 1.815h2.936c0-1.278-.74-1.815-1.437-1.815zm4.085 3.911h-5.559c.127 1.331 1.102 1.723 2.209 1.723 1.127 0 2.015-.238 2.789-.628v2.287c-.771.428-1.79.736-3.147.736-2.766 0-4.704-1.732-4.704-5.156 0-2.892 1.644-5.188 4.345-5.188 2.697 0 4.105 2.295 4.105 5.203 0 .275-.025.87-.038 1.023z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 119 26\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/presentation-code\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22.5 4a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v3a.5.5 0 00.5.5H2v13H.52a.5.5 0 000 1h10.467l.011 2.072A1.997 1.997 0 009.5 22c0 1.103.898 2 2 2s2-.897 2-2c0-.93-.641-1.707-1.502-1.93L11.987 18h10.492a.5.5 0 000-1H21V4h1.5zm-10 18a1.001 1.001 0 01-2 0 1.001 1.001 0 012 0zM1 1h21v2H1V1zm19 16H3V4h17v13zM7.191 12.933a.496.496 0 00.707-.007.5.5 0 00-.008-.707l-1.676-1.643L7.89 8.933a.5.5 0 00-.699-.714l-2.041 2a.5.5 0 000 .714l2.041 2zm7.905-.064a.499.499 0 00.707.007l2.041-2a.496.496 0 000-.714l-2.041-2a.5.5 0 00-.699.714l1.676 1.643-1.676 1.643a.499.499 0 00-.008.707zM9.193 13.98a.497.497 0 00.692-.141l4.031-6.094a.5.5 0 00-.834-.552l-4.031 6.094a.5.5 0 00.142.693z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/published-post\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M17.25 10.5c-1.856 0-3.46.665-4.773 1.977-1.312 1.312-1.977 2.917-1.977 4.773 0 1.856.665 3.46 1.977 4.773C13.789 23.335 15.394 24 17.25 24c1.856 0 3.46-.665 4.773-1.977C23.335 20.711 24 19.106 24 17.25c0-1.856-.665-3.46-1.977-4.773-1.312-1.312-2.917-1.977-4.773-1.977zm0 1.5c1.458 0 2.681.507 3.712 1.538 1.031 1.03 1.538 2.254 1.538 3.712 0 1.458-.507 2.681-1.538 3.712-1.03 1.031-2.254 1.538-3.712 1.538-1.458 0-2.681-.507-3.712-1.538C12.507 19.932 12 18.708 12 17.25c0-1.458.507-2.681 1.538-3.712C14.568 12.507 15.792 12 17.25 12z\\\"/><path d=\\\"M19.324 15.055a.75.75 0 011.26.806l-.06.094-2.906 3.875a1.464 1.464 0 01-1.093.595c-.39.027-.75-.085-1.045-.325l-.122-.11-1.5-1.5a.75.75 0 01.976-1.134l.084.073 1.501 1.499 2.905-3.873zM12.879 0c.545 0 1.035.178 1.442.522l.148.137 2.873 2.872c.385.385.605.858.65 1.389l.008.2V7.5a.75.75 0 01-1.493.102L16.5 7.5V5.121a.691.691 0 00-.138-.437l-.081-.093-2.872-2.871a.689.689 0 00-.407-.212l-.123-.008H2.25a.694.694 0 00-.53.22.686.686 0 00-.212.407L1.5 2.25v16.5c0 .547.143.726.638.748l.112.002H7.5a.75.75 0 01.102 1.493L7.5 21H2.25C.895 21 .07 20.232.004 18.924L0 18.75V2.25C0 1.637.225 1.093.659.659a2.184 2.184 0 011.39-.65L2.25 0h10.629z\\\"/><path d=\\\"M12.5 4.75a.75.75 0 01.102 1.493l-.102.007h-8a.75.75 0 01-.102-1.493L4.5 4.75h8zm-1 4.5a.75.75 0 01.102 1.493l-.102.007h-7a.75.75 0 01-.102-1.493L4.5 9.25h7zm-3 4.5a.75.75 0 01.102 1.493l-.102.007h-4a.75.75 0 01-.102-1.493l.102-.007h4z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/recycle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M11.5 16H6.03a19.73 19.73 0 011.196-1.5H9a.5.5 0 00.4-.8l-3-4a.5.5 0 00-.4-.2H.5a.5.5 0 00-.278.917l.972.648A2.923 2.923 0 00.5 13c0 1.354 1.882 5.219 3.243 7.421.113.265.25.43.329.512C4.493 21.44 5.391 22 6 22h5.5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5zm-9.239-4.573a.5.5 0 00.016-.843l-.126-.084H5.75l2.25 3H7a.496.496 0 00-.373.168c-1.787 2.009-2.619 3.534-2.928 4.677C2.506 16.147 1.5 13.758 1.5 13c0-1.074.734-1.556.761-1.573zM11 21H6c-.266 0-.912-.403-1.122-.653l-.006-.014-.101-.158-.184-.398c-.097-.467-.05-1.342.788-2.777H11v4zm12.798-9.023L20.612 7.37a.5.5 0 00-.695-.127l-4.338 3a.499.499 0 00-.127.695l2.912 4.208a20.36 20.36 0 01-1.365-.092V14a.5.5 0 00-.916-.278l-3 4.5a.498.498 0 00-.019.522l2.814 5a.5.5 0 00.436.255l.107-.012a.499.499 0 00.391-.449l.129-1.64c.204.059.442.102.704.102.489 0 .952-.148 1.374-.441.96-.663 2.973-4.056 4.502-6.805.34-.397.414-.735.43-.833.206-.564.226-1.398-.153-1.944zm-5.347 8.761a1.393 1.393 0 01-.805.263c-.482 0-.854-.254-.855-.254a.5.5 0 00-.79.367l-.056.711-1.859-3.303 1.93-2.895a.5.5 0 00.423.369c.905.11 1.746.167 2.501.167 1.221 0 2.144-.147 2.842-.364-1.582 2.743-2.821 4.587-3.331 4.939zm1.127-5.595l-3.019-4.363 3.515-2.432 2.901 4.197c.156.225.168.756.046 1.048l-.319.577c-.338.352-1.178.876-3.124.973zm-1.633-8.066l2.5-4.894a.502.502 0 00-.618-.697l-1.503.554c-.178-.481-.573-1.124-1.445-1.536C16.614.379 15.81 0 10.69 0c-.734 0-1.436.009-2.083.021V.018l-.304.008-.079.001-.101-.004-.179.013H7.94l-.004.001-.038.006-.023.009C7.257.15 6.478.586 6.192 1.193L3.802 6.26a.5.5 0 00.239.665l4.768 2.25.213.048.169-.029a.499.499 0 00.283-.258l2.095-4.44c.247.455.5.967.757 1.549-.258.2-.384.285-.432.316a.5.5 0 00-.243.845.51.51 0 00.358.149l.066-.005H17.5a.5.5 0 00.445-.273zm-9.162.98L4.919 6.233l2.177-4.614c.118-.249.604-.547.916-.587h.003l.188-.004c.295.031 1.368.303 2.75 2.429l-2.17 4.6zm4.631-1.707a.501.501 0 00-.016-.349c-1.149-2.693-2.271-4.182-3.196-5L10.69 1c4.418 0 5.502.286 5.762.408.95.449 1.017 1.287 1.019 1.317a.5.5 0 00.673.447l.83-.306-1.78 3.484h-3.78z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/reload\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke=\\\"#000\\\" stroke-width=\\\"1.5\\\"><path d=\\\"M15.667 9.752h6.09V2.444\\\"/><path d=\\\"M21.705 9.579C20.622 5.226 16.688 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10c3.3 0 6.228-1.6 8.05-4.065\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/repo\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M20.5 4H20V.5a.5.5 0 00-.5-.5h-14A2.503 2.503 0 003 2.5v19C3 22.878 4.121 24 5.5 24h15a.5.5 0 00.5-.5v-19a.5.5 0 00-.5-.5zm-15-3H19v3h-1v-.5a.5.5 0 00-.5-.5h-6a.5.5 0 00-.5.5V4H5.5C4.673 4 4 3.327 4 2.5S4.673 1 5.5 1zM12 4h5v10.293l-2.146-2.147a.502.502 0 00-.708 0L12 14.293V4zm8 19H5.5c-.827 0-1.5-.673-1.5-1.5V4.487c.419.318.935.513 1.5.513H11v10.5a.5.5 0 00.854.354l2.646-2.647 2.646 2.647A.504.504 0 0017.5 16l.191-.038A.5.5 0 0018 15.5V5h2v18z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/retry\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g transform=\\\"translate(12 12)\\\"><path d=\\\"M0-12v24\\\" transform=\\\"rotate(-45)\\\"/><path d=\\\"M0-12v24\\\" transform=\\\"rotate(45)\\\"/></g>\",\n    \"attrs\": {\n      \"class\": \"retry_svg__retry-animated\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/satellite\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.854 15.646L19.5 11.293V7.45c1.14-.233 2-1.242 2-2.45 0-1.378-1.121-2.5-2.5-2.5-1.208 0-2.217.86-2.449 2h-3.844L8.354.147a.5.5 0 00-.707 0A11.388 11.388 0 004.278 8.25c0 2.659.909 5.185 2.578 7.228L.124 23.172A.498.498 0 00.5 24h14a.5.5 0 00.376-.83l-3.972-4.539a11.391 11.391 0 0012.949-2.279A.492.492 0 0024 16a.504.504 0 00-.146-.354zM16.457 8.25l1.166-1.167c.262.174.558.301.877.366v2.844L16.457 8.25zM19 3.5c.827 0 1.5.673 1.5 1.5s-.673 1.5-1.5 1.5c-.413 0-.788-.168-1.06-.44v-.001A1.491 1.491 0 0117.5 5c0-.827.673-1.5 1.5-1.5zm-2.449 2c.065.318.192.614.366.876L15.75 7.543 13.707 5.5h2.844zM1.602 23L7.5 16.259 13.398 23H1.602zm14.148-4.279a10.397 10.397 0 01-7.396-3.075A10.394 10.394 0 015.278 8.25c0-2.621.966-5.099 2.73-7.034l4.139 4.138 6.499 6.498.002.002 4.137 4.137a10.385 10.385 0 01-7.035 2.73z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.245 23.996a.743.743 0 01-.53-.22L16.2 17.26a9.824 9.824 0 01-2.553 1.579 9.766 9.766 0 01-7.51.069 9.745 9.745 0 01-5.359-5.262c-1.025-2.412-1.05-5.08-.069-7.51S3.558 1.802 5.97.777a9.744 9.744 0 017.51-.069 9.745 9.745 0 015.359 5.262 9.748 9.748 0 01.069 7.51 9.807 9.807 0 01-1.649 2.718l6.517 6.518a.75.75 0 01-.531 1.28zM9.807 1.49a8.259 8.259 0 00-3.25.667 8.26 8.26 0 00-4.458 4.54 8.26 8.26 0 00.058 6.362 8.26 8.26 0 004.54 4.458 8.259 8.259 0 006.362-.059 8.285 8.285 0 002.594-1.736.365.365 0 01.077-.076 8.245 8.245 0 001.786-2.728 8.255 8.255 0 00-.059-6.362 8.257 8.257 0 00-4.54-4.458 8.28 8.28 0 00-3.11-.608z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/send-email\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.send-email_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"send-email_svg__a\\\" d=\\\"M2.759 15.629a1.664 1.664 0 01-.882-3.075L20.36 1a1.663 1.663 0 012.516 1.72l-3.6 19.173a1.664 1.664 0 01-2.966.691l-5.21-6.955z\\\"/><path class=\\\"send-email_svg__a\\\" d=\\\"M11.1 15.629H8.6V20.8a1.663 1.663 0 002.6 1.374l3.178-2.166zm-.001 0l11.08-14.59\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/server\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.996 5.477l-.021-.102-.025-.086-.051-.075-.065-.081-.014-.018-6-5A.504.504 0 0017.5 0h-11a.497.497 0 00-.32.116l-6 5-.015.018-.065.081-.05.074-.025.087-.021.101L0 5.5v16C0 22.878 1.121 24 2.5 24h19c1.379 0 2.5-1.122 2.5-2.5v-16l-.004-.023zM23 11H1V6h22v5zM1 12h22v5H1v-5zM6.681 1H17.32l4.799 4H1.881l4.8-4zM21.5 23h-19c-.827 0-1.5-.673-1.5-1.5V18h22v3.5c0 .827-.673 1.5-1.5 1.5z\\\"/><circle cx=\\\"14\\\" cy=\\\"8.5\\\" r=\\\"1\\\"/><circle cx=\\\"17\\\" cy=\\\"8.5\\\" r=\\\"1\\\"/><circle cx=\\\"20\\\" cy=\\\"8.5\\\" r=\\\"1\\\"/><path d=\\\"M3.5 10C4.327 10 5 9.327 5 8.5S4.327 7 3.5 7 2 7.673 2 8.5 2.673 10 3.5 10zm0-2a.5.5 0 11-.002 1.002A.5.5 0 013.5 8z\\\"/><circle cx=\\\"14\\\" cy=\\\"14.5\\\" r=\\\"1\\\"/><circle cx=\\\"17\\\" cy=\\\"14.5\\\" r=\\\"1\\\"/><circle cx=\\\"20\\\" cy=\\\"14.5\\\" r=\\\"1\\\"/><path d=\\\"M3.5 13c-.827 0-1.5.673-1.5 1.5S2.673 16 3.5 16 5 15.327 5 14.5 4.327 13 3.5 13zm0 2a.5.5 0 11.002-1.002A.5.5 0 013.5 15z\\\"/><circle cx=\\\"14\\\" cy=\\\"20.5\\\" r=\\\"1\\\"/><circle cx=\\\"17\\\" cy=\\\"20.5\\\" r=\\\"1\\\"/><circle cx=\\\"20\\\" cy=\\\"20.5\\\" r=\\\"1\\\"/><path d=\\\"M3.5 19c-.827 0-1.5.673-1.5 1.5S2.673 22 3.5 22 5 21.327 5 20.5 4.327 19 3.5 19zm0 2a.5.5 0 11.002-1.002A.5.5 0 013.5 21z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/settings\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.settings_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"settings_svg__a\\\" d=\\\"M10.546 2.438a1.957 1.957 0 002.908 0L14.4 1.4a1.959 1.959 0 013.41 1.413l-.071 1.4a1.958 1.958 0 002.051 2.054l1.4-.071a1.959 1.959 0 011.41 3.41l-1.042.94a1.96 1.96 0 000 2.909l1.042.94a1.959 1.959 0 01-1.413 3.41l-1.4-.071a1.958 1.958 0 00-2.056 2.056l.071 1.4A1.959 1.959 0 0114.4 22.6l-.941-1.041a1.959 1.959 0 00-2.908 0L9.606 22.6A1.959 1.959 0 016.2 21.192l.072-1.4a1.958 1.958 0 00-2.056-2.056l-1.4.071A1.958 1.958 0 011.4 14.4l1.041-.94a1.96 1.96 0 000-2.909L1.4 9.606A1.958 1.958 0 012.809 6.2l1.4.071a1.958 1.958 0 002.058-2.06L6.2 2.81A1.959 1.959 0 019.606 1.4z\\\"/><circle class=\\\"settings_svg__a\\\" cx=\\\"12\\\" cy=\\\"12.001\\\" r=\\\"4.5\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/shield-lock\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.shield-lock_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"shield-lock_svg__a\\\" d=\\\"M2.25 3.923v7.614A11.907 11.907 0 009.882 22.65l1.041.4a3 3 0 002.154 0l1.041-.4a11.907 11.907 0 007.632-11.113V3.923a1.487 1.487 0 00-.868-1.362A21.7 21.7 0 0012 .75a21.7 21.7 0 00-8.882 1.811 1.487 1.487 0 00-.868 1.362z\\\"/><rect class=\\\"shield-lock_svg__a\\\" x=\\\"7.5\\\" y=\\\"9.75\\\" width=\\\"9\\\" height=\\\"7.5\\\" rx=\\\"1.5\\\" ry=\\\"1.5\\\"/><path class=\\\"shield-lock_svg__a\\\" d=\\\"M12 5.25a3 3 0 00-3 3v1.5h6v-1.5a3 3 0 00-3-3zM12 13.154a.375.375 0 11-.375.375.375.375 0 01.375-.375\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/shield\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21.63 4.537c-.073-.019-7.399-2.017-9.769-4.39a.532.532 0 00-.723 0C8.769 2.52 1.443 4.518 1.37 4.537A.5.5 0 001 5.02c0 8.569.761 15.405 10.326 18.949L11.5 24l.174-.031C21.239 20.425 22 13.589 22 5.02a.5.5 0 00-.37-.483zM11.5 22.966C2.817 19.674 2.023 13.601 2.001 5.4c1.497-.429 7.022-2.109 9.499-4.228 2.477 2.119 8.002 3.798 9.499 4.227-.021 8.202-.816 14.275-9.499 17.567zm-.464-16.223L9.732 10H6.5a.5.5 0 00-.332.873l2.626 2.337-.99 3.672a.497.497 0 00.482.63.51.51 0 00.308-.105l2.907-2.267 2.907 2.251a.5.5 0 00.788-.526l-.99-3.651 2.627-2.34A.5.5 0 0016.5 10h-3.232l-1.304-3.257c-.15-.38-.778-.38-.928 0zm1.429 3.943a.5.5 0 00.464.314h2.259l-1.878 1.672a.5.5 0 00-.149.504l.681 2.51-2.035-1.576a.498.498 0 00-.613.001L9.16 15.697l.682-2.526a.5.5 0 00-.15-.504L7.814 11h2.257a.5.5 0 00.464-.314l.965-2.411.965 2.411z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/sidemenu-open\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21 2.5H3c-.828 0-1.5.608-1.5 1.357v16.286c0 .75.672 1.357 1.5 1.357h18c.828 0 1.5-.608 1.5-1.357V3.857c0-.75-.672-1.357-1.5-1.357zm-4.5 0v19\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M16.5 2.5v19h6v-19h-6z\\\" fill=\\\"#15171A\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/sidemenu\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21 2.5H3c-.828 0-1.5.608-1.5 1.357v16.286c0 .75.672 1.357 1.5 1.357h18c.828 0 1.5-.608 1.5-1.357V3.857c0-.75-.672-1.357-1.5-1.357zm-4.5 0v19\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/signal-tower\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12.5 13.382V11.5a.5.5 0 00-1 0v1.882l-4.947 9.895A.5.5 0 007 24h10a.498.498 0 00.447-.723L12.5 13.382zm-.5 1.236l.941 1.882h-1.882L12 14.618zm1.441 2.882l.415.829-1.853 1.239-1.858-1.239.414-.829h2.882zm-2.338 2.669l-2.822 1.887 1.413-2.826 1.409.939zm.901.601L15.349 23h-6.68l3.335-2.23zm.9-.601l1.402-.938 1.405 2.809-2.807-1.871zM12 0C5.383 0 0 5.383 0 12c0 3.102 1.184 6.048 3.332 8.295a.5.5 0 00.723-.691A10.955 10.955 0 011 12C1 5.935 5.935 1 12 1s11 4.935 11 11c0 2.844-1.085 5.544-3.055 7.604a.5.5 0 00.723.692A11.96 11.96 0 0024 12c0-6.617-5.383-12-12-12zm0 4c-4.411 0-8 3.589-8 8a7.94 7.94 0 001.502 4.655.5.5 0 10.812-.583A6.948 6.948 0 015 12c0-3.86 3.141-7 7-7s7 3.14 7 7a6.942 6.942 0 01-1.315 4.072.5.5 0 00.812.584A7.946 7.946 0 0020 12c0-4.411-3.589-8-8-8zm3.468 8.622h.023c.263 0 .485-.233.504-.497L16 12c0-2.206-1.794-4-4-4s-4 1.794-4 4l.005.125.503.028-.5.019c.011.272.235.416.506.404.272-.005.486-.303.486-.576 0-1.654 1.346-3 3-3s3 1.346 3 3h.5l-.508.134c-.01.273.202.473.476.488z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/signout\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M19.499 16.504a.752.752 0 01-.53-1.281l2.47-2.47H7.499a.75.75 0 010-1.5h13.939l-2.47-2.47c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53a.749.749 0 011.06 0l3.75 3.75a.791.791 0 01.094.114c.007.01.015.025.022.038a.716.716 0 01.045.087c.007.016.016.045.021.061a.728.728 0 01-.066.607.716.716 0 01-.116.153l-3.75 3.75a.737.737 0 01-.529.221z\\\"/><path d=\\\"M2.093 23.25C.885 23.189-.055 22.165 0 20.966L-.001 3C-.056 1.828.875.811 2.075.751L14.385.75c1.228.06 2.167 1.085 2.113 2.284l.001 4.466a.75.75 0 01-1.5 0V3c.018-.403-.275-.732-.652-.751L2.112 2.25c-.341.018-.631.346-.614.716L1.499 21c-.018.403.275.732.651.751l12.235-.001c.341-.018.632-.346.615-.716l-.001-4.534a.75.75 0 011.5 0V21c.054 1.173-.878 2.189-2.077 2.249l-12.31.001h-.019z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/smiley\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12S18.617 0 12 0zm0 23C5.935 23 1 18.065 1 12S5.935 1 12 1s11 4.935 11 11-4.935 11-11 11zm7.5-10.5a.5.5 0 00-.5.5c0 3.859-3.14 7-7 7s-7-3.141-7-7a.5.5 0 00-1 0c0 4.411 3.589 8 8 8s8-3.589 8-8a.5.5 0 00-.5-.5zm-14-2A.5.5 0 006 10c0-.827.673-1.5 1.5-1.5S9 9.173 9 10a.5.5 0 001 0c0-1.379-1.122-2.5-2.5-2.5S5 8.621 5 10a.5.5 0 00.5.5zm9 0a.5.5 0 00.5-.5c0-.827.673-1.5 1.5-1.5S18 9.173 18 10a.5.5 0 001 0c0-1.379-1.122-2.5-2.5-2.5S14 8.621 14 10a.5.5 0 00.5.5z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/social-facebook\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M20 40.004c11.046 0 20-8.955 20-20 0-11.046-8.954-20-20-20s-20 8.954-20 20c0 11.045 8.954 20 20 20z\\\" fill=\\\"#1977F3\\\"/><path d=\\\"M27.785 25.785l.886-5.782h-5.546V16.25c0-1.58.773-3.125 3.26-3.125h2.522V8.204s-2.29-.39-4.477-.39c-4.568 0-7.555 2.767-7.555 7.781v4.408h-5.08v5.782h5.08v13.976a20.08 20.08 0 003.125.242c1.063 0 2.107-.085 3.125-.242V25.785h4.66z\\\" fill=\\\"#fff\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 40 40\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/social-share\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M8 .833a.5.5 0 01.5.5v8.666a.5.5 0 01-1 0V1.333a.5.5 0 01.5-.5z\\\"/><path d=\\\"M8 .833a.5.5 0 01.354.146l3 3a.5.5 0 01-.708.707L8 2.04 5.354 4.686a.5.5 0 11-.708-.707l3-3A.5.5 0 018 .833zM3.333 7.167a.167.167 0 00-.167.166V16a.167.167 0 00.167.166h9.333a.167.167 0 00.167-.166V7.333a.167.167 0 00-.167-.167H9.999a.5.5 0 110-1h2.667a1.167 1.167 0 011.167 1.167V16a1.167 1.167 0 01-1.167 1.166H3.333A1.167 1.167 0 012.166 16V7.333a1.167 1.167 0 011.167-1.167h2.666a.5.5 0 010 1H3.333z\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 16 18\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/social-twitter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<circle cx=\\\"20\\\" cy=\\\"20\\\" r=\\\"20\\\" fill=\\\"#51B1EF\\\"/><path d=\\\"M30.905 14.268a8.63 8.63 0 01-2.49.686 4.36 4.36 0 001.902-2.403 8.602 8.602 0 01-2.753 1.054c-3.512-3.488-8.463.13-7.396 3.969a12.284 12.284 0 01-8.942-4.543c-1.228 2.093-.428 4.667 1.343 5.798a4.31 4.31 0 01-1.965-.544v.055a4.35 4.35 0 003.48 4.263 4.569 4.569 0 01-1.964.074 4.367 4.367 0 004.053 3.023c-1.918 1.46-4.146 2.062-6.42 1.798 9.793 5.767 19.029-1.783 18.998-10.417 0-.187-.004-.374-.012-.561a9 9 0 002.166-2.248\\\" fill=\\\"#fff\\\"/>\",\n    \"attrs\": {\n      \"fill\": \"none\",\n      \"viewBox\": \"0 0 40 40\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/spinner\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"translate(0 -40)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(30 124.641 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.08333333333333333s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(60 84.641 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.16666666666666666s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(90 70 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.25s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(120 61.547 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.3333333333333333s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(150 55.359 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.4166666666666667s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(180 50 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.5s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(-150 44.641 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.5833333333333334s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(-120 38.453 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.6666666666666666s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(-90 30 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.75s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(-60 15.359 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.8333333333333334s\\\" repeatCount=\\\"indefinite\\\"/></rect><rect x=\\\"46.5\\\" y=\\\"40\\\" width=\\\"7\\\" height=\\\"20\\\" rx=\\\"5\\\" ry=\\\"5\\\" fill=\\\"#fefefe\\\" transform=\\\"rotate(-30 -24.641 70)\\\"><animate attributeName=\\\"opacity\\\" from=\\\"1\\\" to=\\\"0\\\" dur=\\\"1s\\\" begin=\\\"0.9166666666666666s\\\" repeatCount=\\\"indefinite\\\"/></rect>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 100 100\",\n      \"preserveAspectRatio\": \"xMidYMid\",\n      \"class\": \"spinner_svg__uil-default\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/staff\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.staff_svg__cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path class=\\\"staff_svg__cls-1\\\" d=\\\"M22.63 14.869L15 22.5l-3.75.75.75-3.75 7.63-7.631a2.116 2.116 0 012.992 0l.008.009a2.113 2.113 0 010 2.991z\\\"/><circle class=\\\"staff_svg__cls-1\\\" cx=\\\"7.5\\\" cy=\\\"4.875\\\" r=\\\"4.125\\\"/><path class=\\\"staff_svg__cls-1\\\" d=\\\"M13.338 13.919A6.729 6.729 0 00.75 17.25\\\"/>\",\n    \"attrs\": {\n      \"id\": \"staff_svg__Regular\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/star-filled\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.555 8.729a1.505 1.505 0 00-1.406-.98h-6.087a.5.5 0 01-.472-.334l-2.185-6.193a1.5 1.5 0 00-2.81 0l-.005.016-2.18 6.177a.5.5 0 01-.471.334H1.85A1.5 1.5 0 00.887 10.4l5.184 4.3a.5.5 0 01.155.543l-2.178 6.531a1.5 1.5 0 002.31 1.684l5.346-3.92a.5.5 0 01.591 0l5.344 3.919a1.5 1.5 0 002.312-1.683l-2.178-6.535a.5.5 0 01.155-.543l5.194-4.306a1.5 1.5 0 00.433-1.661z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/store\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M3.75 24a2.252 2.252 0 01-2.25-2.25v-9a.75.75 0 011.5 0v9c0 .414.336.75.75.75H12v-6c0-2.068 1.682-3.75 3.75-3.75s3.75 1.682 3.75 3.75v6h.75a.75.75 0 00.75-.75v-9a.75.75 0 011.5 0v9A2.252 2.252 0 0120.25 24H3.75zM18 22.5v-6c0-1.241-1.009-2.25-2.25-2.25s-2.25 1.009-2.25 2.25v6H18zm3-12a3.02 3.02 0 01-2.25-1.018c-.565.638-1.387 1.018-2.25 1.018s-1.685-.38-2.25-1.018c-.565.638-1.387 1.018-2.25 1.018s-1.685-.38-2.25-1.018C9.185 10.12 8.363 10.5 7.5 10.5s-1.685-.38-2.25-1.018A3.02 3.02 0 013 10.5c-1.654 0-3-1.346-3-3 0-.054.006-.108.018-.162l1.369-6.164A1.493 1.493 0 012.852 0h18.295a1.51 1.51 0 011.465 1.175l1.37 6.162A.727.727 0 0124 7.5c0 1.654-1.346 3-3 3zm-2.25-3.75a.75.75 0 01.75.75c0 .827.673 1.5 1.5 1.5.796 0 1.459-.636 1.498-1.426L21.148 1.5H2.852l-1.35 6.074C1.541 8.364 2.204 9 3 9c.827 0 1.5-.673 1.5-1.5a.75.75 0 011.5 0C6 8.327 6.673 9 7.5 9S9 8.327 9 7.5a.75.75 0 011.5 0c0 .827.673 1.5 1.5 1.5s1.5-.673 1.5-1.5a.75.75 0 011.5 0c0 .827.673 1.5 1.5 1.5S18 8.327 18 7.5a.75.75 0 01.75-.75z\\\"/><path d=\\\"M6 21c-.827 0-1.5-.673-1.5-1.5v-3c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v3c0 .827-.673 1.5-1.5 1.5H6zm0-1.5h3v-3H6v3z\\\"/><circle cx=\\\"16.125\\\" cy=\\\"18.375\\\" r=\\\"1.125\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/stripe-verified-partner-badge\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\"><rect fill=\\\"#FFF\\\" width=\\\"174\\\" height=\\\"28\\\" rx=\\\"6\\\"/><path d=\\\"M79.79 11.12L77.1 18h-1.44l-2.7-6.88h1.71l1.71 4.63 1.71-4.63h1.7zm.78 6.88v-6.88h4.34v1.36h-2.67v1.37h2.28v1.31h-2.28v1.48h2.75V18h-4.42zm7.34-5.56v1.82h.76c.57 0 .98-.39.98-.91 0-.54-.41-.91-.98-.91h-.76zM86.28 18v-6.88h2.61c1.42 0 2.43.92 2.43 2.23 0 .89-.47 1.61-1.26 1.99L91.59 18h-1.78l-1.34-2.43h-.56V18h-1.63zm6.4 0v-6.88h1.67V18h-1.67zm3.31 0v-6.88h4.34v1.36h-2.67v1.63h2.28v1.36h-2.28V18h-1.67zm5.47 0v-6.88h1.67V18h-1.67zm3.31 0v-6.88h4.34v1.36h-2.67v1.37h2.28v1.31h-2.28v1.48h2.75V18h-4.42zm5.71 0v-6.88h2.73c1.99 0 3.4 1.43 3.4 3.44S115.2 18 113.21 18h-2.73zm1.67-5.52v4.16h.98c1.05 0 1.78-.85 1.78-2.08s-.73-2.08-1.78-2.08h-.98zm8.17 5.52v-6.88h2.65c1.44 0 2.46.94 2.46 2.27s-1.02 2.25-2.46 2.25h-1.02V18h-1.63zm1.63-5.56v1.89h.8c.59 0 1.02-.39 1.02-.94 0-.57-.43-.95-1.02-.95h-.8zm3.12 5.56l2.7-6.88h1.44L131.9 18h-1.62l-.53-1.42h-2.53L126.7 18h-1.63zm3.42-4.87l-.81 2.21h1.61l-.8-2.21zm5.82-.69v1.82h.76c.57 0 .98-.39.98-.91 0-.54-.41-.91-.98-.91h-.76zM132.68 18v-6.88h2.61c1.42 0 2.43.92 2.43 2.23 0 .89-.47 1.61-1.26 1.99l1.53 2.66h-1.78l-1.34-2.43h-.56V18h-1.63zm7.64 0v-5.52h-1.99v-1.36h5.63v1.36h-1.98V18h-1.66zm4.7 0v-6.88h1.44l3.1 4.24v-4.24h1.55V18h-1.44l-3.09-4.24V18h-1.56zm7.73 0v-6.88h4.34v1.36h-2.67v1.37h2.28v1.31h-2.28v1.48h2.75V18h-4.42zm7.34-5.56v1.82h.76c.57 0 .98-.39.98-.91 0-.54-.41-.91-.98-.91h-.76zM158.46 18v-6.88h2.61c1.42 0 2.43.92 2.43 2.23 0 .89-.47 1.61-1.26 1.99l1.53 2.66h-1.78l-1.34-2.43h-.56V18h-1.63zM51 10.068L65 7v10.935L51 21V10.068zm5.323 6.469a.78.78 0 001.07-.004l3.814-3.664a.728.728 0 000-1.048.777.777 0 00-1.078 0l-3.27 3.129-.986-.9a.777.777 0 00-1.078 0 .726.726 0 000 1.048l1.528 1.439zM42.97 15.07h-4.428c.1 1.093.877 1.415 1.759 1.415.899 0 1.606-.194 2.223-.516v1.88c-.615.351-1.427.605-2.508.605-2.204 0-3.748-1.423-3.748-4.237 0-2.376 1.31-4.263 3.462-4.263 2.15 0 3.27 1.886 3.27 4.276 0 .225-.02.714-.03.84zm-3.254-3.214c-.566 0-1.195.44-1.195 1.492h2.34c0-1.05-.59-1.492-1.145-1.492zm-7.037 6.598c-.791 0-1.275-.345-1.6-.59l-.005 2.64-2.262.496-.001-10.89h1.992l.118.576a2.495 2.495 0 011.773-.732c1.588 0 3.085 1.476 3.085 4.192 0 2.965-1.48 4.308-3.1 4.308zm-.526-6.434c-.52 0-.845.196-1.08.463l.013 3.467c.219.245.536.443 1.067.443.836 0 1.397-.94 1.397-2.196 0-1.22-.57-2.177-1.397-2.177zm-6.538-1.91h2.271v8.177h-2.27v-8.178zm0-2.612L27.885 7v1.9l-2.27.498v-1.9zm-2.346 5.245v5.544h-2.262v-8.178h1.956l.143.69c.529-1.004 1.587-.8 1.888-.69v2.145c-.288-.096-1.19-.235-1.725.489zm-4.775 2.675c0 1.375 1.427.947 1.717.827v1.9c-.301.17-.848.309-1.588.309-1.343 0-2.35-1.02-2.35-2.401l.01-7.486 2.209-.484.002 2.026h1.718v1.99h-1.718v3.319zm-2.746.398c0 1.68-1.296 2.638-3.178 2.638-.78 0-1.633-.156-2.474-.53v-2.227c.76.426 1.727.745 2.477.745.504 0 .868-.14.868-.57 0-1.115-3.44-.695-3.44-3.278 0-1.652 1.224-2.64 3.059-2.64.75 0 1.499.119 2.248.427v2.197c-.688-.383-1.562-.6-2.25-.6-.474 0-.769.14-.769.505 0 1.05 3.46.551 3.46 3.333z\\\" fill=\\\"#555ABF\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 174 28\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/summer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M.5.5h173v119H.5z\\\"/><path d=\\\"M141.406 39.442a58.61 58.61 0 013.626 20.359c0 32.453-26.347 58.8-58.8 58.8-32.453 0-58.801-26.347-58.801-58.8 0-5.592.782-11.003 2.244-16.13m13.228-23.605C53.655 8.35 69.092 1 86.232 1A58.52 58.52 0 01111.3 6.604\\\" stroke=\\\"#9BAEB8\\\"/><path d=\\\"M28.25 67.39c1.17-.677 1.966-1.134 3.137-1.134 4.495 0 8.99 6.742 13.485 6.742.256 0 .512-.022.768-.063m3.392-1.466c3.108-1.989 6.217-5.213 9.325-5.213 4.495 0 8.99 6.742 13.485 6.742 4.496 0 8.99-6.742 13.486-6.742 4.495 0 8.99 6.742 13.485 6.742 4.495 0 8.99-6.742 13.485-6.742 4.495 0 8.99 6.742 13.485 6.742 4.496 0 8.99-6.742 13.485-6.742 1.747 0 3.216 1.018 4.963 2.263M29.134 73.677c.75-.314 1.502-.502 2.253-.502 4.495 0 8.99 6.742 13.485 6.742.643 0 1.287-.138 1.93-.375m3.328-1.9c2.742-1.957 5.485-4.467 8.227-4.467 4.495 0 8.99 6.742 13.485 6.742 4.496 0 8.99-6.742 13.486-6.742 4.495 0 8.99 6.742 13.485 6.742 4.495 0 8.99-6.742 13.485-6.742 4.495 0 8.99 6.742 13.485 6.742 4.496 0 8.99-6.742 13.485-6.742 1.292 0 2.584.557 3.876 1.35M31.387 80.934c4.495 0 8.99 6.743 13.485 6.743 1.088 0 2.176-.395 3.264-.994m3.236-2.196c2.329-1.744 4.657-3.553 6.985-3.553 4.495 0 8.99 6.743 13.485 6.743 4.496 0 8.99-6.743 13.486-6.743 4.495 0 8.99 6.743 13.485 6.743 4.495 0 8.99-6.743 13.485-6.743 4.495 0 8.99 6.743 13.485 6.743 4.496 0 8.99-6.743 13.485-6.743.599 0 1.197.12 1.796.327\\\" opacity=\\\".6\\\" stroke=\\\"#9BAEB8\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M37.5 91.958H49m3.648 0h82.802\\\" stroke=\\\"#9BAEB8\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M62.934 98.943h2.915m-2.915 12.633h2.915m-9.658-5.891h2.915m18.072-6.643h2.915m-2.915 12.633h2.915m-9.658-5.891h2.915m18.072-6.644h2.914m-2.914 12.634h2.914m-9.657-5.891h2.915m18.071-6.643h2.915m-2.915 12.633h2.915m-9.657-5.891h2.915m18.072-6.644h2.915m-9.659 6.742h2.916\\\" opacity=\\\".6\\\" stroke=\\\"#9BAEB8\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M124.204 2.259c12.425 0 22.513 10.088 22.513 22.513 0 12.426-10.088 22.514-22.513 22.514-12.426 0-22.514-10.088-22.514-22.514 0-12.425 10.088-22.513 22.514-22.513zM40.658 45.534l9.62 52.937 3.57.033-9.607-53.532\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M1 54.092s4.315-6.154 9.489-7.083c5.173-.929 11.36 3.341 11.36 3.341s4.234-6.14 9.488-7.083c5.254-.942 11.36 3.341 11.36 3.341s4.276-6.147 9.488-7.082c5.213-.936 11.36 3.34 11.36 3.34s4.885-6.256 9.488-7.082c4.604-.826 11.36 3.341 11.36 3.341S65.225 15.665 38.02 20.548C10.813 25.431 1 54.092 1 54.092z\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M21.138 49.682s.187-10.218 3.941-17.137c3.754-6.918 8.836-8.89 12.421-11.407\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M63.025 42.198s-3.728-9.515-9.654-14.696c-5.926-5.182-14.612-6.364-15.871-6.364m1.007 0l4.027 24.802\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 174 120\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/sun\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.sun_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><circle class=\\\"sun_svg__a\\\" cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"4.5\\\"/><path class=\\\"sun_svg__a\\\" d=\\\"M12 .75V4.5M12 19.5v3.75M23.25 12H19.5M4.5 12H.75M20.25 3.75l-3 3M6.75 17.25l-3 3M20.25 20.25l-3-3M6.75 6.75l-3-3\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/support\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.5 10h-.692C21.987 5.548 18.453 2.014 14 1.191V.5a.5.5 0 00-.5-.5h-3a.5.5 0 00-.5.5v.691C5.547 2.014 2.012 5.548 1.19 10H.5a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h.69c.823 4.454 4.357 7.988 8.81 8.809v.691a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-.691c4.453-.821 7.986-4.356 8.808-8.809h.692a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zm-1.708 0h-4.674A5.522 5.522 0 0014 6.882V2.208A10.036 10.036 0 0121.792 10zM12 16.5c-2.481 0-4.5-2.019-4.5-4.5S9.519 7.5 12 7.5s4.5 2.019 4.5 4.5-2.019 4.5-4.5 4.5zM13 1v5.596c-.325-.06-.658-.096-1-.096s-.675.036-1 .096V1h2zm-3 1.208v4.674A5.522 5.522 0 006.882 10H2.207A10.037 10.037 0 0110 2.208zM1 11h5.596c-.06.325-.096.658-.096 1s.036.675.096 1H1v-2zm1.207 3h4.675A5.522 5.522 0 0010 17.118v4.674A10.032 10.032 0 012.207 14zM11 23v-5.596c.325.06.658.096 1 .096s.675-.036 1-.096V23h-2zm3-1.208v-4.674A5.522 5.522 0 0017.118 14h4.674A10.03 10.03 0 0114 21.792zM23 13h-5.596c.06-.325.096-.658.096-1s-.036-.675-.096-1H23v2z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/sync\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M7.239 9.628a.502.502 0 00-.704.063l-2.513 3.01a8.342 8.342 0 011.197-5.372c1.17-1.899 3.048-3.274 5.153-3.772a7.997 7.997 0 017.836 2.486.5.5 0 00.748-.663 8.99 8.99 0 00-8.815-2.796c-2.361.559-4.465 2.097-5.774 4.221a9.355 9.355 0 00-1.399 5.036L1.342 9.419a.501.501 0 00-.83.558l2.787 4.151c.088.13.231.212.389.221h.026a.5.5 0 00.384-.18l3.205-3.838a.5.5 0 00-.064-.703zm16.676 4.093L21.129 9.57a.504.504 0 00-.389-.221.494.494 0 00-.291.091l-.029.021-.091.067-3.206 3.837a.502.502 0 00.063.705c.213.177.528.15.704-.064l2.421-2.899c.059 3.685-2.549 7.144-6.26 8.02a7.967 7.967 0 01-7.465-2.093.5.5 0 10-.701.712 8.96 8.96 0 008.397 2.355c3.983-.94 6.838-4.535 7.025-8.47l1.777 2.648a.505.505 0 00.694.136.5.5 0 00.137-.694zM12.213 8.85c-.667 0-1.295.26-1.767.731a2.503 2.503 0 000 3.536c.472.472 1.1.732 1.768.732.667 0 1.295-.26 1.767-.732a2.504 2.504 0 000-3.537 2.486 2.486 0 00-1.768-.73zm1.06 3.56c-.567.566-1.555.565-2.12 0a1.502 1.502 0 011.061-2.561c.4 0 .776.156 1.06.438a1.504 1.504 0 01-.001 2.123z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/tag\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M1.061 2.56v6.257a3 3 0 00.878 2.121L13.5 22.5a1.5 1.5 0 002.121 0l6.879-6.88a1.5 1.5 0 000-2.121L10.939 1.938a3 3 0 00-2.121-.878H2.561a1.5 1.5 0 00-1.5 1.5z\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"1.5\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/tags-placeholder\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M116.733 23.243c10.973 11.89 17.68 27.775 17.68 45.215 0 36.816-29.89 66.706-66.707 66.706C30.89 135.164 1 105.274 1 68.458 1 31.64 30.89 1.75 67.706 1.75a66.577 66.577 0 0120.182 3.113L73.86 7.846a6.469 6.469 0 00-4.141 2.9L23.937 84.018a4.546 4.546 0 001.447 6.267l41.738 26.079a4.55 4.55 0 006.266-1.447l45.796-73.295a6.465 6.465 0 00.801-4.95l-3.252-13.429z\\\" fill-opacity=\\\".1\\\" fill=\\\"#9BAEB8\\\"/><path d=\\\"M116.733 23.243c10.973 11.89 17.68 27.775 17.68 45.215 0 36.816-29.89 66.706-66.707 66.706C30.89 135.164 1 105.274 1 68.458 1 31.64 30.89 1.75 67.706 1.75a66.577 66.577 0 0120.182 3.113L73.86 7.846a6.469 6.469 0 00-4.141 2.9L23.937 84.018a4.546 4.546 0 001.447 6.267l41.738 26.079a4.55 4.55 0 006.266-1.447l45.796-73.295a6.465 6.465 0 00.801-4.95l-3.252-13.429z\\\" stroke=\\\"#9BAEB8\\\"/><path d=\\\"M119.184 41.622a6.465 6.465 0 00.801-4.95l-7.856-32.443a4.55 4.55 0 00-5.366-3.378L73.86 7.846a6.469 6.469 0 00-4.141 2.9L23.937 84.018a4.546 4.546 0 001.447 6.267l41.738 26.079a4.55 4.55 0 006.266-1.447l45.796-73.295z\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M94.13 62.655a4.091 4.091 0 00-1.302-5.64L67.454 41.16a4.092 4.092 0 00-5.64 1.303L38.158 80.319a4.094 4.094 0 001.303 5.641l25.374 15.855a4.093 4.093 0 005.64-1.303L94.13 62.655z\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M102.363 13.523a4.914 4.914 0 00-6.766 1.562 4.913 4.913 0 001.562 6.766 4.912 4.912 0 006.765-1.563 4.912 4.912 0 00-1.561-6.765z\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" fill-opacity=\\\".1\\\" fill=\\\"#9BAEB8\\\"/><path d=\\\"M116.76 46.219c1.696 14.422-1.407 26.564-7.065 27.305-5.78.758-12.05-10.666-13.995-25.496-1.945-14.83 1.168-27.485 6.948-28.243a4.51 4.51 0 012.038.219M50.595 81.166L58.5 68.5m5.472 20.989L76.4 69.565M57.116 85.223L73.787 58.5m-12.234 5.101l5.713-9.159\\\" stroke=\\\"#9BAEB8\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 135 136\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/terminal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21.5 1.993h-19a2.502 2.502 0 00-2.5 2.5v14c0 1.379 1.121 2.5 2.5 2.5h19c1.379 0 2.5-1.121 2.5-2.5v-14c0-1.379-1.121-2.5-2.5-2.5zm-19 1h19c.827 0 1.5.673 1.5 1.5v2.5H1v-2.5c0-.827.673-1.5 1.5-1.5zm19 17h-19c-.827 0-1.5-.673-1.5-1.5v-10.5h22v10.5c0 .827-.673 1.5-1.5 1.5z\\\"/><circle cx=\\\"4\\\" cy=\\\"4.993\\\" r=\\\"1\\\"/><circle cx=\\\"7\\\" cy=\\\"4.993\\\" r=\\\"1\\\"/><circle cx=\\\"10\\\" cy=\\\"4.993\\\" r=\\\"1\\\"/><path d=\\\"M5.853 11.14a.5.5 0 00-.707.707l2.147 2.147-2.146 2.146a.5.5 0 00.706.707l2.5-2.5a.5.5 0 000-.707l-2.5-2.5zm9.647 2.853h-4a.5.5 0 000 1h4a.5.5 0 000-1z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/text-vector\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22.5 5a.5.5 0 00.5-.5v-4a.5.5 0 00-.5-.5h-4a.5.5 0 00-.5.5V2H5V.5a.5.5 0 00-.5-.5h-4a.5.5 0 00-.5.5v4a.5.5 0 00.5.5H2v13H.5a.5.5 0 00-.5.5v4a.5.5 0 00.5.5h4a.5.5 0 00.5-.5V21h13v1.5a.5.5 0 00.5.5h4a.5.5 0 00.5-.5v-4a.5.5 0 00-.5-.5H21V5h1.5zM19 1h3v3h-3V1zM1 1h3v3H1V1zm3 21H1v-3h3v3zm18 0h-3v-3h3v3zm-2-4h-1.5a.5.5 0 00-.5.5V20H5v-1.5a.5.5 0 00-.5-.5H3V5h1.5a.5.5 0 00.5-.5V3h13v1.5a.5.5 0 00.5.5H20v13zM16.5 6h-10a.5.5 0 00-.5.5v2a.5.5 0 001 0V7h4v10h-1a.5.5 0 000 1h3a.5.5 0 000-1h-1V7h4v1.5a.5.5 0 001 0v-2a.5.5 0 00-.5-.5z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/text\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M15.979 22.5l-7-20.5L2 22.5m2.383-7h9.207M.5 22.5h3.021m10.958 0H17.5m5.001 0L17.903 9.035l-2.36 6.932M16.92 17.5h3.768m.828 5H23.5\\\" stroke=\\\"#000\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-miterlimit=\\\"10\\\" fill=\\\"none\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/theme\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M2.25 24A2.252 2.252 0 010 21.75V2.25A2.252 2.252 0 012.25 0h19.5A2.252 2.252 0 0124 2.25v19.5A2.252 2.252 0 0121.75 24H2.25zm0-22.5a.75.75 0 00-.75.75v19.5c0 .414.336.75.75.75h19.5a.75.75 0 00.75-.75V2.25a.75.75 0 00-.75-.75H2.25z\\\"/><path d=\\\"M14.25 21c-.827 0-1.5-.673-1.5-1.5V18c0-.827.673-1.5 1.5-1.5h4.5c.827 0 1.5.673 1.5 1.5v1.5c0 .827-.673 1.5-1.5 1.5h-4.5zm0-1.5h4.5V18h-4.5v1.5zM4.5 21a.75.75 0 010-1.5h3a.75.75 0 010 1.5h-3zm0-3a.75.75 0 010-1.5H9A.75.75 0 019 18H4.5zm0-3c-.398 0-.772-.154-1.055-.435l-.005-.005A1.489 1.489 0 013 13.5v-9c0-.399.156-.775.438-1.058l.004-.004A1.49 1.49 0 014.5 3h9c.4 0 .776.156 1.06.439l.005.005c.28.283.435.658.435 1.056v9c0 .4-.156.776-.439 1.06-.285.284-.661.44-1.061.44h-9zm7.939-1.5L9 10.061 5.561 13.5h6.878zm1.061-1.061V5.561L10.061 9l3.439 3.439zm-9 0L7.939 9 4.5 5.561v6.878zm4.5-4.5L12.439 4.5H5.561L9 7.939zm10.5 6.311a.75.75 0 01-.75-.75v-9a.75.75 0 011.5 0v9a.75.75 0 01-.75.75z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/ticket\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M22.748 9.358c0-.668.26-1.296.733-1.769a.5.5 0 000-.707L17.118.518a.514.514 0 00-.707 0c-.945.946-2.591.944-3.536 0a.499.499 0 00-.707 0L.147 12.539a.5.5 0 000 .707c.473.473.732 1.101.732 1.768 0 .668-.26 1.296-.732 1.769a.5.5 0 000 .708l6.364 6.363a.5.5 0 00.707 0c.945-.945 2.59-.945 3.535 0a.503.503 0 00.707 0l12.02-12.022a.5.5 0 000-.707 2.483 2.483 0 01-.732-1.767zm-.304 2.096L11.081 22.817c-1.203-.904-2.987-.904-4.192 0l-5.706-5.706c.452-.601.696-1.33.696-2.097 0-.767-.244-1.495-.696-2.098L12.545 1.555c1.205.904 2.989.905 4.194 0l5.706 5.707a3.468 3.468 0 00-.697 2.097c0 .765.244 1.493.696 2.095zm-6.742-6.692c-.94-.94-2.594-.941-3.536 0l-7.777 7.777a2.482 2.482 0 00-.73 1.767c0 .67.26 1.298.73 1.768l3.536 3.536a2.48 2.48 0 001.768.73c.669 0 1.297-.26 1.768-.73l7.778-7.777a2.505 2.505 0 000-3.536l-3.537-3.535zm2.829 6.364l-7.778 7.777c-.564.565-1.557.564-2.121 0l-3.536-3.536a1.489 1.489 0 01-.438-1.061c0-.401.155-.778.438-1.06l7.777-7.777a1.49 1.49 0 011.061-.438c.402 0 .779.155 1.061.438l3.536 3.535a1.504 1.504 0 010 2.122zM14.288 7.59a.5.5 0 00-.707 0l-6.363 6.364a.5.5 0 00.706.707l6.363-6.364a.5.5 0 00.001-.707zm-.353 3.889l-2.828 2.828a.5.5 0 00.708.707l2.828-2.828a.5.5 0 00-.708-.707z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/trash\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M30.688 4H22V.687a.694.694 0 00-.688-.688H10.687a.694.694 0 00-.688.688V4H1.311c-.375 0-.625.313-.625.688s.25.625.625.625h3.375v26c0 .375.25.688.625.688h21.375c.375 0 .625-.313.625-.688v-26h3.375c.375 0 .625-.25.625-.625S31.061 4 30.686 4zM11.313 1.313h9.375v2.688h-9.375zM26 30.688H6V5.313h20zM10.688 9.313a.694.694 0 00-.688.688v15.313c0 .375.313.688.688.688s.625-.313.625-.688V10.001c0-.375-.25-.688-.625-.688zm5.312 0a.694.694 0 00-.688.688v15.313c0 .375.313.688.688.688s.688-.313.688-.688V10.001A.694.694 0 0016 9.313zm4.688.687v15.313c0 .375.25.688.625.688s.688-.313.688-.688V10c0-.375-.313-.688-.688-.688s-.625.313-.625.688z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/trophy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M14.972 5H13.28l-.861-1.724c-.17-.339-.725-.339-.894 0L10.663 5H8.972a.5.5 0 00-.283.912l1.479 1.019L9.5 8.835a.501.501 0 00.772.565l1.7-1.275 1.7 1.275a.503.503 0 00.581.014.5.5 0 00.201-.545l-.528-1.941 1.35-1.031a.502.502 0 00.17-.558.502.502 0 00-.474-.339zm-1.866 2.726l-.835-.626a.496.496 0 00-.6 0l-.684.512.25-.711a.5.5 0 00-.189-.578L10.58 6h.392a.5.5 0 00.447-.276l.553-1.105.553 1.105a.499.499 0 00.447.276h.522l-.442.338a.502.502 0 00-.179.529l.233.859zm10.898-4.974l-.002-.252a.5.5 0 00-.5-.5h-2.027c.018-.482.032-.974.032-1.5a.5.5 0 00-.5-.5h-18a.5.5 0 00-.5.5c0 .526.014 1.018.032 1.5H.507a.5.5 0 00-.5.5l-.003.271C-.013 4.139-.059 7.772 1.87 9.725c.772.781 1.774 1.19 2.966 1.25 1.058 1.52 2.308 2.278 3.384 2.924 1.356.815 2.252 1.354 2.252 3.092C10.412 20.33 8.91 21 6.507 21a.5.5 0 00-.5.5v2a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-2a.5.5 0 00-.5-.5c-2.866 0-4.035-1.159-4.035-4 0-1.753.907-2.298 2.28-3.125 1.075-.646 2.325-1.402 3.386-2.9 1.197-.06 2.204-.47 2.98-1.254 1.942-1.962 1.902-5.599 1.886-6.969zM2.582 9.023C1.033 7.455.989 4.386 1.002 3h1.592c.208 3.163.809 5.342 1.601 6.892-.631-.14-1.169-.42-1.613-.869zm12.655 3.996c-1.422.855-2.766 1.663-2.766 3.981 0 3.241 1.444 4.837 4.535 4.988V23h-10v-1.012c3.023-.149 4.406-1.703 4.465-4.988 0-2.312-1.329-3.111-2.736-3.958-1.038-.624-2.187-1.324-3.145-2.732l-.055-.085C4.411 8.525 3.564 5.815 3.51 1h16.994c-.006.49-.023.949-.045 1.397l-.021.103.015.075c-.404 7.55-3.053 9.143-5.216 10.444zm4.552-3.128c.806-1.548 1.418-3.726 1.63-6.891h1.587c.011 1.397-.046 4.448-1.6 6.019-.446.451-.985.731-1.617.872z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/tumbleweed\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M20.62.107c-3.947.473-7.5 1.922-10.453 4.264-.82.652-2.401 2.247-3.12 3.154-2.26 2.861-3.687 6.609-3.96 10.373-.082 1.249.055 3.71.28 4.804.89 4.398 3.147 8.12 6.488 10.733 5.394 4.227 12.836 4.903 18.833 1.729 4.342-2.298 7.237-6.254 8.135-11.11.177-1.011.187-1.244.129-3.107-.058-1.863-.082-2.094-.33-3.092-1.249-5.032-4.756-8.81-9.553-10.305-1.48-.453-2.394-.588-4.154-.586-1.335-.002-1.716.035-2.63.218-4.239.85-7.514 3.417-9.192 7.198a11.833 11.833 0 00-.325 8.784c1.345 3.688 4.601 6.347 8.441 6.883 1.124.164 3.2.032 4.197-.265 1.684-.498 2.986-1.286 4.137-2.49 1.478-1.549 2.216-3.186 2.392-5.34.157-1.904-.479-3.938-1.687-5.44-1.857-2.29-5.135-3.16-7.745-2.05-1.198.51-2.253 1.461-2.775 2.517-.302.602-.563 1.684-.545 2.25.05 1.589.953 3.057 2.245 3.636.458.21.72.262 1.266.28.643.014.728-.005 1.257-.28 1.067-.565 1.638-1.45 1.48-2.313-.103-.53-.584-1.237-1.008-1.465-.432-.227-1.063-.19-1.41.086-.314.242-.602.715-.594.972.01.326-.214.101-.358-.358-.25-.784-.007-1.642.633-2.246.538-.523 1.01-.709 1.935-.78 1.02-.083 1.78.109 2.526.627.646.444.825.628 1.244 1.26.51.792.732 1.542.765 2.598.052 1.674-.396 2.873-1.555 4.086-.815.858-1.392 1.246-2.395 1.628-3.566 1.33-7.586-.258-9.384-3.718-.728-1.396-.877-2.019-.925-3.84-.054-1.717.027-2.209.563-3.635.793-2.103 2.631-4.05 4.836-5.088 2.53-1.203 5.724-1.343 8.434-.36 5.497 1.971 8.568 7.885 7.23 13.94-.554 2.553-2.046 5.039-4.064 6.785-4.306 3.724-10.856 4.431-16.046 1.727-1.26-.657-2.209-1.333-3.308-2.373-2.161-2.04-3.573-4.506-4.336-7.568-.239-.99-.263-1.212-.324-3.17-.06-1.966-.05-2.172.135-3.21.912-4.969 3.777-9.026 8.114-11.461 3.546-1.99 7.928-2.708 12.034-1.983 7.95 1.416 13.87 7.75 14.932 16.002.514 4.006-.337 8.432-2.316 11.964-1.89 3.383-4.82 6.197-8.293 7.97-1.963.996-3.748 1.592-6.024 2.023-1.181.225-3.916.386-5.141.294-5.213-.366-9.808-2.331-13.495-5.76a24.332 24.332 0 01-2.966-3.372c-.653-.917-.927-1.106-1.534-1.087-.563.017-.962.287-1.197.792-.276.619-.18.925.645 2.06 3.84 5.288 9.48 8.77 15.858 9.795 1.769.29 2.802.353 4.777.292 2.062-.063 3.055-.196 4.94-.632 7.721-1.79 13.914-7.308 16.435-14.629 2.29-6.678 1.276-14.192-2.678-19.812-1.724-2.449-4.151-4.678-6.676-6.14C30.085.834 26.023-.151 22.092.02c-.615.028-1.281.065-1.471.088z\\\" fill=\\\"#9DADB4\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 44 44\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/twitter-comment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M14.046 2.242l-4.148-.01h-.002c-4.374 0-7.8 3.427-7.8 7.802 0 4.098 3.186 7.206 7.465 7.37v3.828a.85.85 0 00.12.403.744.744 0 001.034.229c.264-.168 6.473-4.14 8.088-5.506 1.902-1.61 3.04-3.97 3.043-6.312v-.017c-.006-4.367-3.43-7.787-7.8-7.788zm3.787 12.972c-1.134.96-4.862 3.405-6.772 4.643V16.67a.75.75 0 00-.75-.75h-.396c-3.66 0-6.318-2.476-6.318-5.886 0-3.534 2.768-6.302 6.3-6.302l4.147.01h.002c3.532 0 6.3 2.766 6.302 6.296-.003 1.91-.942 3.844-2.514 5.176z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/twitter-like\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 21.638h-.014C9.403 21.59 1.95 14.856 1.95 8.478c0-3.064 2.525-5.754 5.403-5.754 2.29 0 3.83 1.58 4.646 2.73.814-1.148 2.354-2.73 4.645-2.73 2.88 0 5.404 2.69 5.404 5.755 0 6.376-7.454 13.11-10.037 13.157H12zM7.354 4.225c-2.08 0-3.903 1.988-3.903 4.255 0 5.74 7.034 11.596 8.55 11.658 1.518-.062 8.55-5.917 8.55-11.658 0-2.267-1.823-4.255-3.903-4.255-2.528 0-3.94 2.936-3.952 2.965-.23.562-1.156.562-1.387 0-.014-.03-1.425-2.965-3.954-2.965z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/twitter-link\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"#5b7083\\\"><path d=\\\"M11.96 14.945a.833.833 0 01-.203-.027 5.192 5.192 0 01-2.795-1.932c-.832-1.125-1.176-2.508-.968-3.893s.942-2.605 2.068-3.438l3.53-2.608a5.25 5.25 0 017.33 1.1c.83 1.127 1.175 2.51.967 3.895s-.943 2.605-2.07 3.438l-1.48 1.094a.752.752 0 01-.892-1.208l1.48-1.095a3.713 3.713 0 001.476-2.45 3.724 3.724 0 00-.69-2.778 3.745 3.745 0 00-5.23-.784l-3.53 2.608a3.72 3.72 0 00-1.475 2.45c-.15.99.097 1.975.69 2.778a3.701 3.701 0 001.992 1.377.752.752 0 01-.202 1.475z\\\"/><path d=\\\"M7.27 22.054a5.24 5.24 0 01-5.193-6.019 5.21 5.21 0 012.07-3.438l1.478-1.094a.752.752 0 01.893 1.208l-1.48 1.095a3.716 3.716 0 00-1.475 2.45c-.148.99.097 1.975.69 2.778a3.745 3.745 0 005.23.785l3.528-2.608a3.744 3.744 0 00.785-5.23 3.7 3.7 0 00-1.992-1.376.75.75 0 01-.52-.927c.112-.4.528-.63.926-.522a5.19 5.19 0 012.794 1.932 5.248 5.248 0 01-1.1 7.33l-3.53 2.608a5.189 5.189 0 01-3.105 1.026z\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/twitter-retweet\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.77 15.67a.749.749 0 00-1.06 0l-2.22 2.22V7.65a3.755 3.755 0 00-3.75-3.75h-5.85a.75.75 0 000 1.5h5.85c1.24 0 2.25 1.01 2.25 2.25v10.24l-2.22-2.22a.749.749 0 10-1.06 1.06l3.5 3.5c.145.147.337.22.53.22s.383-.072.53-.22l3.5-3.5a.747.747 0 000-1.06zm-10.66 3.28H7.26c-1.24 0-2.25-1.01-2.25-2.25V6.46l2.22 2.22a.752.752 0 001.062 0 .749.749 0 000-1.06l-3.5-3.5a.747.747 0 00-1.06 0l-3.5 3.5a.749.749 0 101.06 1.06l2.22-2.22V16.7a3.755 3.755 0 003.75 3.75h5.85a.75.75 0 000-1.5z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/twitter-share\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M17.53 7.47l-5-5a.749.749 0 00-1.06 0l-5 5a.749.749 0 101.06 1.06l3.72-3.72V15a.75.75 0 001.5 0V4.81l3.72 3.72c.146.147.338.22.53.22s.384-.072.53-.22a.749.749 0 000-1.06z\\\"/><path d=\\\"M19.708 21.944H4.292A2.294 2.294 0 012 19.652V14a.75.75 0 011.5 0v5.652c0 .437.355.792.792.792h15.416a.793.793 0 00.792-.792V14a.75.75 0 011.5 0v5.652a2.294 2.294 0 01-2.292 2.292z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/twitter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M23.028 5.1c.534.146.787.852.367 1.308 0 0-.494.632-.636.804-.378.434-.82.815-1.25 1.19-.292.268-.087.855-.147 1.465-.31 3.143-1.75 6.18-3.826 8.292-.235.238-.573.575-.573.575-.584.542-.758.633-1.087.874-1.853 1.36-4.11 2.127-6.4 2.357l-.765.082H7.445c-.207-.01.148.047-.792-.077-1.838-.243-3.682-.723-5.499-1.824l-.246-.154c-.868-.619-.185-1.538.51-1.437l.09.022s1.582.066 2.763-.228a9.194 9.194 0 001.581-.558c-.492-.216-.97-.486-1.368-.849-.376-.357-.393-.391-.533-.553a5.103 5.103 0 01-.755-1.197l-.211-.474c-.195-.583-.094-.575.134-.847 0 0-.57-.573-.863-1.014a5.344 5.344 0 01-.859-2.48l-.035-.409c-.013-.373.212-.71.587-.797.098-.022.007-.092-.018-.147-.612-1.354-.694-2.917-.06-4.352l.185-.427c.097-.194.12-.188.12-.188s.473-.463.999-.154l.26.264c.35.391.707.78 1.092 1.138 0 0 .691.626 1.36 1.075 1.524 1.024 3.28 1.668 5.138 1.95 0 0 .273-2.346 1.196-3.462a5.305 5.305 0 013.22-1.827L15.702 3h1.012c.351.017.39.063.567.099a5.229 5.229 0 012.39 1.198s1.165-.334 1.981-.753l.466-.218c.582-.084 1.113.476.801 1.16l-.24.616s.174-.03.348-.001zm-7.3-.586a3.815 3.815 0 00-3.174 3.976c.03.616.077.508.081.652.037 1.228-3.14.587-5.086-.19-1.394-.555-2.746-1.325-3.811-2.34 0 0-.362-.326-.722-.692l-.03.122c-.287 1.303.237 2.793 1.237 3.574l.28.197c.26.23.16.133.237.278.225.428-.088 1.043-.587 1.095-.313.032-.697-.055-1.097-.144 0 0 .698 1.628 1.703 2.144.404.208 1.038.402 1.038.402a.784.784 0 01.442 1.142s-.506.41-1.288.45c0 0 1.112 1.382 2.415 1.512.625.05.55.038.612.056.404.112.658.56.496.998-.125.34-.095.263-.345.424 0 0-1.563 1.007-2.53 1.35-.438.155-.889.273-1.343.373 0 0 2.074.572 2.993.631l.316.023 1.073-.006c2.58-.254 5.126-1.073 7.242-2.852 2.792-2.377 3.986-5.951 4.055-9.205.011-.217.026-.27.062-.397.094-.335.303-.63.571-.854 0 0-1.326-.245-.775-1.164l.316-.293.067-.038s.183-.058-.187.028c-1.123.25-1.856-.968-3.05-1.207L16.64 4.5h-.835l-.078.014z\\\" fill-rule=\\\"evenodd\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/ufo-attack\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g stroke=\\\"#9BAEB8\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\"><path d=\\\"M96.89 22.058c20.064 11.014 33.675 32.344 33.675 56.828 0 35.755-29.027 64.783-64.782 64.783C30.028 143.669 1 114.64 1 78.886c0-24.504 13.634-45.849 33.723-56.855\\\"/><path d=\\\"M17.303 121.752h96.915\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M22.04 126.182h87.44m-82.284 4.43h77.13m-70.656 4.429h64.18m-55.024 4.43h45.869\\\" opacity=\\\".6\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><g stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"1.5\\\"><path d=\\\"M3.328 86.683h12.848v14.094h11.136v20.083\\\"/><path d=\\\"M23.294 100.431V94.57h20.825\\\"/><path d=\\\"M39.1 121.166v-18.8l5.351-5.352V60.562h10.841v36.181l5.24 5.24v19.4m15.588.031V79.745h12.938v11.17h5.286v30.692\\\"/><path d=\\\"M55.4 85.25h15.046v35.472m.234-18.004h5.356m.884-19.76h11.635M44.61 64.982h10.605M48.93 55.68l1.019-10.268.998 10.312m-.169 14.597v2.806m-1.923 4.611v2.806m1.923 4.611v2.806m-1.923 4.611v2.806m-3.603 9.362v2.806m-12.24-6.44v2.807m0 10.331v6.836m21.286-16.34v2.806M64.92 90.797v2.806m34.32 6.554v2.806m5.378-2.806v2.806m5.2-2.806v2.806m5.2-2.806v2.806m5.2-2.806v2.806m-20.978 4.474v2.806m5.378-2.806v2.806m5.2-2.806v2.806m5.2-2.806v2.806M65.251 98.95v2.807m0 5.087v2.806m0 5.103v2.806m-5.373-26.536v2.806M49.32 115.757v4.926m58.24-4.926v4.926M82.557 89.262v4.926m0 18.963v2.858m5.533-2.858v2.858m-66.262-10.736v2.806m0 4.421v2.806m-5.396-10.033v2.806m-5.76-16.304v2.806\\\"/><path d=\\\"M44.487 60.617c.168-2.835 2.523-5.085 5.399-5.085s5.231 2.25 5.399 5.085H44.487zM95.11 94.541h22.655l5.057-5.057h6.098\\\"/></g><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M32.259 46.548l.266-2.68.26 2.691\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M32.496 46.837l-2.68-.266 2.692-.26\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M32.259 46.6l.266 2.68.26-2.692\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M32.548 46.837l2.68-.266-2.691-.26M21.062 72.816l.182-1.832.178 1.84\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M21.224 73.014l-1.832-.182 1.84-.178\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M21.062 72.852l.182 1.832.178-1.84\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M21.26 73.014l1.832-.182-1.84-.178m85.604-28.077l.266-2.68.26 2.692\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M107.093 44.866l-2.68-.265 2.69-.261\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M106.856 44.63l.266 2.68.26-2.692\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M107.145 44.866l2.68-.265-2.692-.261m-22.89-10.981l.266-2.68.26 2.692\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M84.48 33.648l-2.68-.266 2.691-.26\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M84.243 33.41l.266 2.681.26-2.691\\\"/><path stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" d=\\\"M84.532 33.648l2.68-.266-2.692-.26\\\"/><path d=\\\"M10.76 67.674a.584.584 0 11-.002 1.168.584.584 0 01.002-1.168zm12.404-9.129a.84.84 0 110 1.68.84.84 0 010-1.68zm95.441-6.285a.84.84 0 11-.001 1.68.84.84 0 01.001-1.679zm-11.582 14.815a.84.84 0 11-.001 1.68.84.84 0 01.001-1.679zM94.528 44.92a.582.582 0 110 1.162.582.582 0 010-1.161zm11.982 8.009a.488.488 0 11-.001 0zm13.153 26.926a.841.841 0 11-.001.001zm-104.996 3.14a.532.532 0 11-.001 1.063.532.532 0 01.001-1.063zM17.84 43.59a.84.84 0 11-.001 0zm25.028-6.95a.84.84 0 11-.002 1.68.84.84 0 01.002-1.679z\\\"/><path d=\\\"M50.368 9.307C52.448 4.49 58.5 1 65.636 1c7.213 0 13.32 3.567 15.335 8.467\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M60.914 27.397c-16.413-.64-29.06-4.56-29.06-9.296 0-5.18 15.137-9.386 33.782-9.386 18.644 0 33.781 4.206 33.781 9.386 0 4.754-12.746 8.687-29.251 9.302\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M60.81 27.678c-6.484-.59-11.19-2.337-11.19-4.398 0-2.545 7.177-4.611 16.016-4.611 8.839 0 16.015 2.066 16.015 4.61 0 2.082-4.796 3.842-11.375 4.416\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M61.974 25.28c-1.245-.301-2.037-.753-2.037-1.257 0-.906 2.554-1.64 5.699-1.64s5.698.734 5.698 1.64c0 .506-.796.959-2.048 1.26m-5.72-2.443L53 41.56M39.646 65.48L25.44 90.96m42.64-67.778L102.4 91.48M40.069 17.423a.733.733 0 110 1.467.733.733 0 010-1.467zm7.782-2.94a.733.733 0 110 1.465.733.733 0 010-1.465zm8.429-1.756a.733.733 0 11-.001 0zm34.842 4.696a.733.733 0 100 1.467.733.733 0 000-1.467zm-7.782-2.94a.733.733 0 100 1.465.733.733 0 000-1.465zm-8.429-1.756a.733.733 0 10.003 1.467.733.733 0 00-.003-1.467zm-9.367-.364a.732.732 0 110 1.465.732.732 0 010-1.465z\\\" stroke-width=\\\"1.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 132 145\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/unsplash-heart\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M17.4 29c-.8.8-2 .8-2.8 0L2.3 16.2C-.8 13.1-.8 8 2.3 4.8c3.1-3.1 8.2-3.1 11.3 0L16 7.6l2.3-2.8c3.1-3.1 8.2-3.1 11.3 0 3.1 3.1 3.1 8.2 0 11.4L17.4 29z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 32 32\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/unsplash\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 122.43 122.41\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/unsubscribed\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.unsubscribed_svg__cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><path d=\\\"M.75 17.251a6.753 6.753 0 019.4-6.208\\\" class=\\\"unsubscribed_svg__cls-1\\\"/><circle cx=\\\"7.5\\\" cy=\\\"4.876\\\" r=\\\"4.125\\\" class=\\\"unsubscribed_svg__cls-1\\\"/><circle cx=\\\"17.25\\\" cy=\\\"17.249\\\" r=\\\"6\\\" class=\\\"unsubscribed_svg__cls-1\\\"/><path d=\\\"M19.5 14.998l-4.5 4.5M15 14.998l4.5 4.5\\\" class=\\\"unsubscribed_svg__cls-1\\\"/>\",\n    \"attrs\": {\n      \"id\": \"unsubscribed_svg__Regular\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/upload-fill\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12.001 16.5a.75.75 0 01-.75-.75V5.561l-3.22 3.22a.746.746 0 01-1.06-.001c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53l4.499-4.5a.74.74 0 01.245-.163l.025-.009a.743.743 0 01.522 0l.02.007c.097.04.179.095.25.166l4.499 4.499c.142.141.22.33.22.53s-.078.389-.22.53a.749.749 0 01-1.06 0l-3.22-3.22v10.19a.75.75 0 01-.75.75z\\\"/><path d=\\\"M3.751 21a3.754 3.754 0 01-3.75-3.75v-1.5a.75.75 0 011.5 0v1.5a2.252 2.252 0 002.25 2.25h16.5a2.252 2.252 0 002.25-2.25v-1.5a.75.75 0 011.5 0v1.5a3.754 3.754 0 01-3.75 3.75h-16.5z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/upload\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.upload_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2px}</style></defs><path class=\\\"upload_svg__a\\\" d=\\\"M12.001 15.75v-12M16.501 8.25l-4.5-4.5-4.5 4.5M23.251 15.75v1.5a3 3 0 01-3 3h-16.5a3 3 0 01-3-3v-1.5\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/user-circle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 15.75c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6-2.692 6-6 6zm0-10.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z\\\"/><path d=\\\"M12 24c-2.677 0-5.211-.868-7.332-2.51a.507.507 0 01-.11-.082l-.016-.017C1.655 19.094 0 15.674 0 12 0 5.383 5.383 0 12 0s12 5.383 12 12c0 3.674-1.655 7.094-4.543 9.391l-.015.016c-.043.043-.087.069-.112.084A11.868 11.868 0 0112 24zm-5.716-3.199A10.408 10.408 0 0012 22.5a10.41 10.41 0 005.717-1.699 8.966 8.966 0 00-5.716-2.045 8.965 8.965 0 00-5.717 2.045zM12 1.5C6.21 1.5 1.5 6.21 1.5 12c0 3.023 1.294 5.875 3.562 7.874A10.449 10.449 0 0112 17.257c2.573 0 5.023.927 6.938 2.616 2.268-2 3.562-4.851 3.562-7.874C22.5 6.21 17.79 1.5 12 1.5z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/user-group\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M6.5 9.993h.793l2.853 2.853a.5.5 0 00.354.147l.191-.038a.5.5 0 00.309-.462v-2.5h6.5c.827 0 1.5-.673 1.5-1.5v-7c0-.827-.673-1.5-1.5-1.5h-11c-.827 0-1.5.673-1.5 1.5v7c0 .827.673 1.5 1.5 1.5zm-.5-8.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v7a.5.5 0 01-.5.5h-7a.5.5 0 00-.5.5v1.793L7.853 9.14a.496.496 0 00-.353-.147h-1a.5.5 0 01-.5-.5v-7zm17.998 18.866a4.503 4.503 0 00-2.697-3.967 2.986 2.986 0 001.2-2.384c0-1.654-1.346-3-3-3s-3 1.346-3 3c0 .975.475 1.834 1.198 2.383a4.493 4.493 0 00-2.666 3.808 4.487 4.487 0 00-1.231-.806 2.987 2.987 0 001.2-2.385c0-1.654-1.346-3-3-3s-3 1.346-3 3c0 .975.475 1.835 1.198 2.383a4.5 4.5 0 00-1.221.807 4.497 4.497 0 00-2.676-3.806 2.986 2.986 0 001.2-2.384c0-1.654-1.346-3-3-3s-3 1.346-3 3A2.99 2.99 0 002.7 16.391 4.497 4.497 0 000 20.507a.5.5 0 00.5.5h7.762a4.474 4.474 0 00-.762 2.5.5.5 0 00.5.5h8.02a.5.5 0 00.5-.5l-.022-.148a4.461 4.461 0 00-.768-2.352h7.79a.5.5 0 00.5-.5l-.022-.148zM17.5 14.007c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2-2-.897-2-2zm-7.5 3c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2-2-.897-2-2zm-7.5-3c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2-2-.897-2-2zm-1.464 6c.243-1.694 1.704-3 3.464-3s3.221 1.306 3.464 3H1.036zm7.5 3c.243-1.694 1.704-3 3.464-3s3.221 1.306 3.464 3H8.536zm7.5-3c.243-1.694 1.704-3 3.464-3s3.221 1.306 3.464 3h-6.928zM8.5 2.993h6.969a.5.5 0 000-1H8.5a.5.5 0 000 1zm0 2h6.969a.5.5 0 000-1H8.5a.5.5 0 000 1zm0 2h6.969a.5.5 0 000-1H8.5a.5.5 0 000 1z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/user-group2\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M13.338 14.604L12 14.118v-1.923c.339-.336.913-1.15.991-2.837.459-.215.759-.736.759-1.392 0-.564-.222-1.028-.576-1.284.325-.645.833-1.74.561-2.836-.332-1.334-2.253-1.808-3.798-1.808-1.368 0-3.032.372-3.624 1.383-.732-.036-1.108.26-1.304.513-.596.769-.253 2.095-.07 2.808L5 6.964v2c0 1.89 1.162 2.931 2 3.337v1.817l-1.23.448c-2.607.939-4.858 1.75-5.271 2.997C.006 19.051 0 22.36 0 22.5a.5.5 0 00.5.5h18a.5.5 0 00.5-.5c0-.14-.006-3.449-.499-4.938-.415-1.25-2.51-2.004-5.163-2.958zM1.007 22c.02-.971.104-3.104.441-4.124.26-.785 2.7-1.664 4.661-2.37.527-.19 1.058-.381 1.569-.575A.5.5 0 008 14.464v-2.5a.505.505 0 00-.349-.477C7.583 11.465 6 10.931 6 8.964v-2c0-.115-.031-.234-.092-.472-.111-.428-.404-1.564-.108-1.946.038-.049.248-.188.727-.092a.498.498 0 00.584-.37c.148-.598 1.364-1.049 2.827-1.049s2.679.451 2.827 1.049c.199.802-.281 1.749-.54 2.257-.145.286-.225.443-.225.623a.5.5 0 00.5.5c.172 0 .25.292.25.5 0 .207-.078.5-.25.5a.5.5 0 00-.5.5c0 2.009-.764 2.575-.763 2.575a.497.497 0 00-.237.425v2.5a.5.5 0 00.324.468c.568.214 1.131.417 1.676.613 2.109.759 4.291 1.544 4.552 2.332.337 1.019.421 3.152.441 4.124H1.007zm22.494-4.438c-.388-1.167-2.337-2.352-6.501-3.943v-.924c.339-.337.913-1.15.991-2.837.192-.09.358-.235.487-.429.175-.263.271-.606.271-.965 0-.572-.228-1.041-.589-1.294.322-.694.85-1.899.575-3.01-.173-.693-.962-1.454-1.877-1.809-.893-.346-1.785-.27-2.51.215a.5.5 0 10.554.832c.574-.382 1.185-.273 1.595-.115.705.273 1.197.834 1.267 1.117.203.815-.288 1.868-.55 2.433-.142.307-.214.461-.214.631a.5.5 0 00.5.5c.172 0 .25.292.25.5a.77.77 0 01-.104.41c-.055.083-.103.09-.146.09a.5.5 0 00-.5.5c0 2.009-.764 2.575-.763 2.575a.497.497 0 00-.237.425v1.5a.5.5 0 00.324.468c3.856 1.454 5.952 2.613 6.228 3.445.337 1.019.421 3.152.441 4.124H21A.5.5 0 0021 23h2.5a.5.5 0 00.5-.5c0-.14-.006-3.449-.499-4.938z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/v-ellipsis\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<g fill=\\\"#000\\\" fill-rule=\\\"evenodd\\\"><circle cx=\\\"12\\\" cy=\\\"3\\\" r=\\\"3\\\"/><circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"3\\\"/><circle cx=\\\"12\\\" cy=\\\"21\\\" r=\\\"3\\\"/></g>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/view-site\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<defs><style>.view-site_svg__a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}</style></defs><rect class=\\\"view-site_svg__a\\\" x=\\\"1.5\\\" y=\\\"1.497\\\" width=\\\"21\\\" height=\\\"21\\\" rx=\\\"1.5\\\" ry=\\\"1.5\\\"/><path class=\\\"view-site_svg__a\\\" d=\\\"M1.5 7.497h21M9 22.497v-15\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/warning-stroke\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M13.313 2.275a1.5 1.5 0 00-2.626 0l-9.75 18A1.5 1.5 0 002.25 22.5h19.5a1.5 1.5 0 001.313-2.225zM12 18a.375.375 0 01.375.375m-.75 0A.375.375 0 0112 18m0 .75a.375.375 0 01-.375-.375m.75 0a.375.375 0 01-.375.375M12 15V8.25\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"1.5\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/warning\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M12 20.251c-.62 0-1.125-.505-1.125-1.125s.505-1.125 1.125-1.125 1.125.505 1.125 1.125-.505 1.125-1.125 1.125zm0-3.75a.75.75 0 01-.75-.75v-7.5a.75.75 0 011.5 0v7.5c0 .413-.337.75-.75.75z\\\"/><path d=\\\"M2.272 24.001c-.347 0-.693-.081-1.003-.233-.543-.267-.951-.731-1.147-1.305s-.157-1.191.111-1.734L9.705 1.43A2.57 2.57 0 0110.872.263a2.527 2.527 0 011.124-.262c.984 0 1.865.547 2.298 1.429l9.473 19.298c.152.31.233.656.233 1.003 0 .607-.237 1.178-.667 1.606a2.254 2.254 0 01-1.604.664H2.272zm9.725-22.5a1.061 1.061 0 00-.945.59L1.579 21.39a.77.77 0 00.691 1.111h19.458a.768.768 0 00.773-.77.768.768 0 00-.079-.34l-9.475-19.3a1.064 1.064 0 00-.95-.59z\\\"/>\",\n    \"attrs\": {\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/window-app\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21.5 0h-19A2.502 2.502 0 000 2.5v19C0 22.879 1.121 24 2.5 24h19c1.379 0 2.5-1.121 2.5-2.5v-19C24 1.121 22.879 0 21.5 0zm-19 1h19c.827 0 1.5.673 1.5 1.5V5H1V2.5C1 1.673 1.673 1 2.5 1zM1 21.5V6h7v17H2.5c-.827 0-1.5-.673-1.5-1.5zM21.5 23H9V6h14v15.5c0 .827-.673 1.5-1.5 1.5z\\\"/><circle cx=\\\"4\\\" cy=\\\"3\\\" r=\\\"1\\\"/><circle cx=\\\"7\\\" cy=\\\"3\\\" r=\\\"1\\\"/><circle cx=\\\"10\\\" cy=\\\"3\\\" r=\\\"1\\\"/><path d=\\\"M20.5 7h-9a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5zm-.5 5h-8V8h8v4zm.5 3h-9a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5zm-.5 5h-8v-4h8v4zM2.52 8H4.5a.5.5 0 000-1H2.52a.5.5 0 000 1zm1.501 1.5a.5.5 0 00.5.5H6.5a.5.5 0 000-1H4.521a.5.5 0 00-.5.5zM6.5 11H4.521a.5.5 0 000 1H6.5a.5.5 0 000-1zm0 2H4.521a.5.5 0 000 1H6.5a.5.5 0 000-1zM5 15.5a.5.5 0 00-.5-.5H2.52a.5.5 0 000 1H4.5a.5.5 0 00.5-.5zM6.5 17H4.521a.5.5 0 000 1H6.5a.5.5 0 000-1zm0 2H4.521a.5.5 0 000 1H6.5a.5.5 0 000-1z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/window-pulse\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M21.5 1.993h-19a2.502 2.502 0 00-2.5 2.5v14c0 1.379 1.121 2.5 2.5 2.5h19c1.379 0 2.5-1.121 2.5-2.5v-14c0-1.379-1.121-2.5-2.5-2.5zm-20.5 6h22v6h-4.5a.501.501 0 00-.416.223l-1.488 2.232-2.636-6.152a.501.501 0 00-.876-.08l-3.473 5.209-1.647-4.117a.495.495 0 00-.412-.311.496.496 0 00-.468.22l-1.852 2.777H1V7.993zm1.5-5h19c.827 0 1.5.673 1.5 1.5v2.5H1v-2.5c0-.827.673-1.5 1.5-1.5zm19 17h-19c-.827 0-1.5-.673-1.5-1.5v-3.5h4.5a.501.501 0 00.416-.223l1.473-2.209 1.647 4.117a.498.498 0 00.88.092l3.488-5.232 2.636 6.152a.501.501 0 00.414.301l.046.002a.5.5 0 00.416-.223l1.852-2.777H23v3.5c0 .827-.673 1.5-1.5 1.5z\\\"/><circle cx=\\\"4\\\" cy=\\\"4.993\\\" r=\\\"1\\\"/><circle cx=\\\"7\\\" cy=\\\"4.993\\\" r=\\\"1\\\"/><circle cx=\\\"10\\\" cy=\\\"4.993\\\" r=\\\"1\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/wrench-double\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M17.992 15.165L14.829 12l3.164-3.164a4.553 4.553 0 004.617-1.082c1.308-1.307 1.676-3.171.959-4.863a.5.5 0 00-.821-.152l-1.766 1.835h-1.408V3.012l1.769-1.768a.498.498 0 00-.159-.814c-1.664-.703-3.661-.318-4.939.961a4.481 4.481 0 00-1.083 4.616L12 9.171 8.836 6.008a4.476 4.476 0 00-1.082-4.616C6.446.083 4.584-.286 2.891.43a.5.5 0 00-.152.821l1.835 1.767v1.557H3.018L1.251 2.739a.5.5 0 00-.821.152 4.45 4.45 0 00.96 4.9 4.474 4.474 0 004.618 1.065l3.158 3.149-3.159 3.16a4.552 4.552 0 00-4.617 1.081 4.48 4.48 0 00-.96 4.937.502.502 0 00.814.159l1.768-1.767h1.563v1.408L2.739 22.75a.498.498 0 00.152.82 4.437 4.437 0 004.899-.961c1.207-1.206 1.601-2.987 1.045-4.618L12 14.828l3.164 3.165a4.479 4.479 0 001.082 4.617 4.479 4.479 0 004.938.961.498.498 0 00.159-.814l-1.769-1.767v-1.415h1.414l1.768 1.767a.502.502 0 00.814-.159 4.484 4.484 0 00-.96-4.937 4.479 4.479 0 00-4.618-1.081zM6.486 7.92a.498.498 0 00-.548-.106c-1.329.562-2.837.275-3.84-.729a3.459 3.459 0 01-.973-3.034l1.319 1.371a.5.5 0 00.36.153h2.27a.5.5 0 00.5-.5v-2.27a.498.498 0 00-.153-.36L4.049 1.123c1.082-.189 2.18.156 2.998.976a3.482 3.482 0 01.746 3.839.5.5 0 00.107.548l3.392 3.392-1.419 1.42L6.486 7.92zm1.307 10.142c.566 1.337.288 2.845-.709 3.841a3.482 3.482 0 01-3.034.973l1.371-1.321a.498.498 0 00.153-.36v-2.12a.5.5 0 00-.5-.5h-2.27a.496.496 0 00-.353.147l-1.324 1.323a3.481 3.481 0 01.97-3.091 3.541 3.541 0 013.84-.746c.188.08.404.038.548-.107l9.611-9.614a.5.5 0 00.107-.548 3.485 3.485 0 01.748-3.839 3.53 3.53 0 013.092-.97L18.72 2.453a.499.499 0 00-.146.353v2.27a.5.5 0 00.5.5h2.121a.498.498 0 00.36-.153l1.32-1.372c.189 1.082-.155 2.179-.973 2.998a3.544 3.544 0 01-3.84.747.498.498 0 00-.548.107L7.9 17.514a.5.5 0 00-.107.548zm15.08 1.982l-1.324-1.323a.5.5 0 00-.354-.147h-2.121a.5.5 0 00-.5.5v2.122c0 .133.053.26.146.354l1.324 1.324a3.486 3.486 0 01-3.092-.97 3.485 3.485 0 01-.747-3.84.498.498 0 00-.107-.548l-3.393-3.394 1.415-1.415 3.392 3.394a.497.497 0 00.548.107 3.482 3.482 0 013.84.746 3.478 3.478 0 01.973 3.09z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/inlined/zap\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    \"content\": \"<path d=\\\"M20.444 9.271A.496.496 0 0020 9h-7.377L14.488.608a.5.5 0 00-.895-.399l-10 14A.498.498 0 004 15h7.377l-1.865 8.392a.5.5 0 00.285.565L10 24a.502.502 0 00.407-.209l10-14a.5.5 0 00.037-.52zM11.021 21.21l1.467-6.602A.498.498 0 0012 14H4.972l8.007-11.21-1.467 6.602A.498.498 0 0012 10h7.028l-8.007 11.21z\\\"/>\",\n    \"attrs\": {\n      \"version\": \"1\",\n      \"viewBox\": \"0 0 24 24\"\n    }\n  };\n  _exports.default = _default;\n});","define(\"ember-svg-jar/utils/make-helper\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = makeHelper;\n\n  function makeHelper(helperFunc) {\n    let helper;\n\n    if (Ember.Helper && Ember.Helper.helper) {\n      helper = Ember.Helper.helper(function ([assetId], options) {\n        return helperFunc(assetId, options);\n      });\n    } else {\n      helper = Ember.Handlebars.makeBoundHelper(function (assetId, options) {\n        return helperFunc(assetId, options.hash || {});\n      });\n    }\n\n    return helper;\n  }\n});","define(\"ember-svg-jar/utils/make-svg\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.sanitizeAttrs = sanitizeAttrs;\n  _exports.createAccessibilityElements = createAccessibilityElements;\n  _exports.createAriaLabel = createAriaLabel;\n  _exports.formatAttrs = formatAttrs;\n  _exports.symbolUseFor = symbolUseFor;\n  _exports.inlineSvgFor = inlineSvgFor;\n  _exports.default = makeSvg;\n  const accessibilityElements = ['title', 'desc'];\n  const ESC = {\n    '\"': '&quot;',\n    '&': '&amp;',\n    '<': '&lt;',\n    '>': '&gt;'\n  };\n\n  function matcher(char) {\n    return ESC[char];\n  }\n\n  function escapeText(text) {\n    if (typeof text !== 'string') {\n      return '';\n    }\n\n    if (text.indexOf('>') > -1 || text.indexOf('<') > -1 || text.indexOf('&') > -1 || text.indexOf('\"') > -1) {\n      return text.replace(/[&\"<>]/g, matcher);\n    }\n\n    return text;\n  }\n\n  function sanitizeAttrs(attrs) {\n    let attrsCopy = Object.assign({}, attrs);\n    Object.keys(attrsCopy).forEach(key => {\n      attrsCopy[key] = escapeText(attrsCopy[key]);\n    });\n    return attrsCopy;\n  }\n\n  function createAccessibilityElements(attrs) {\n    const sanitizedAttrs = sanitizeAttrs(attrs);\n    const {\n      title,\n      desc\n    } = sanitizedAttrs;\n\n    if (!title && !desc) {\n      return '';\n    }\n\n    return accessibilityElements.reduce((elements, tag) => {\n      if (sanitizedAttrs[tag]) {\n        return elements.concat(`<${tag} id=\"${tag}\">${sanitizedAttrs[tag]}</${tag}>`);\n      }\n\n      return elements;\n    }, '');\n  }\n\n  function createAriaLabel(attrs) {\n    const {\n      title,\n      desc\n    } = attrs;\n\n    if (!title && !desc) {\n      return '';\n    }\n\n    return `aria-labelledby=\"${accessibilityElements.filter(tag => attrs[tag]).join(' ')}\"`;\n  }\n\n  function formatAttrs(attrs) {\n    return Object.keys(attrs).filter(attr => !accessibilityElements.includes(attr)).map(key => !Ember.isNone(attrs[key]) && `${key}=\"${attrs[key]}\"`).filter(attr => attr).join(' ');\n  }\n\n  function symbolUseFor(assetId, attrs = {}) {\n    return `<svg ${formatAttrs(attrs)}${createAriaLabel(attrs)}><use xlink:href=\"${assetId}\" />${createAccessibilityElements(attrs)}</svg>`;\n  }\n\n  function inlineSvgFor(assetId, getInlineAsset, attrs = {}) {\n    let asset = getInlineAsset(assetId);\n\n    if (!asset) {\n      // eslint-disable-next-line no-console\n      console.warn(`ember-svg-jar: Missing inline SVG for ${assetId}`);\n      return;\n    }\n\n    let svgAttrs = asset.attrs ? Ember.assign({}, asset.attrs, attrs) : attrs;\n    let {\n      size\n    } = attrs;\n\n    if (size) {\n      svgAttrs.width = parseFloat(svgAttrs.width) * size || svgAttrs.width;\n      svgAttrs.height = parseFloat(svgAttrs.height) * size || svgAttrs.height;\n      delete svgAttrs.size;\n    }\n\n    return `<svg ${formatAttrs(svgAttrs)}${createAriaLabel(attrs)}>${createAccessibilityElements(attrs)}${asset.content}</svg>`;\n  }\n\n  function makeSvg(assetId, attrs = {}, getInlineAsset) {\n    if (!assetId) {\n      // eslint-disable-next-line no-console\n      console.warn('ember-svg-jar: asset name should not be undefined or null');\n      return;\n    }\n\n    let isSymbol = assetId.lastIndexOf('#', 0) === 0;\n    let svg = isSymbol ? symbolUseFor(assetId, attrs) : inlineSvgFor(assetId, getInlineAsset, attrs);\n    return Ember.String.htmlSafe(svg);\n  }\n});","define(\"ember-test-waiters/index\", [\"exports\", \"@ember/test-waiters\"], function (_exports, _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) && Ember.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\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    init() {\n      this._super(...arguments);\n\n      this.canvas = document.createElement('canvas');\n      this.ctx = this.canvas.getContext('2d');\n    },\n\n    width(string, font = null) {\n      if (font) {\n        this.ctx.font = font;\n      }\n\n      return this.ctx.measureText(string).width;\n    },\n\n    lines(string, maxWidth, font = null) {\n      if (font) {\n        this.ctx.font = font;\n      }\n\n      let paragraphs = string.split(/\\n/);\n      let lines = paragraphs.length;\n\n      for (let i = 0; i < paragraphs.length; i++) {\n        let paragraph = paragraphs[i];\n\n        if (paragraph !== '') {\n          let words = paragraph.split(' ');\n          let widthSoFar = 0;\n          let j = 0;\n\n          for (; j < words.length - 1; j++) {\n            let wordWidth = this.ctx.measureText(words[j] + ' ').width;\n            widthSoFar = widthSoFar + wordWidth;\n\n            if (widthSoFar > maxWidth) {\n              lines++;\n              widthSoFar = wordWidth;\n            }\n          }\n\n          let wordWidth = this.ctx.measureText(words[j]).width;\n          widthSoFar = widthSoFar + wordWidth;\n\n          if (widthSoFar > maxWidth) {\n            lines++;\n            widthSoFar = wordWidth;\n          }\n        }\n      }\n\n      return lines;\n    },\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  });\n\n  _exports.default = _default;\n});","define(\"ember-tooltips/components/ember-popover\", [\"exports\", \"ember-tooltips/components/ember-tooltip-base\"], function (_exports, _emberTooltipBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberTooltipBase.default.extend({\n    popoverHideDelay: 250,\n    _tooltipVariantClass: 'ember-popover',\n    _isMouseInside: false,\n    actions: {\n      hide() {\n        this.set('_isMouseInside', false);\n        this.hide();\n      }\n\n    },\n\n    addTargetEventListeners() {\n      this.addTooltipTargetEventListeners();\n      this.addPopoverTargetEventListeners();\n    },\n\n    addTooltipBaseEventListeners() {\n      const {\n        target,\n        _tooltip\n      } = this.getProperties('target', '_tooltip');\n      this.addPopoverEventListeners();\n      /* If the user clicks outside the popover, hide the popover. */\n\n      this._addEventListener('click', event => {\n        const {\n          target: eventTarget\n        } = event;\n        const clickIsOnPopover = eventTarget == _tooltip.popperInstance.popper;\n        const clickIsOnTarget = eventTarget == target;\n        const hasHideOnEvent = this.get('hideOn') && this.get('hideOn') !== 'none';\n        const hideOnOutsideClick = hasHideOnEvent && !this.get('_isMouseInside') && !clickIsOnPopover && !clickIsOnTarget && this.get('isShown');\n\n        if (hideOnOutsideClick) {\n          this.hide();\n        }\n      }, document);\n    },\n\n    addPopoverTargetEventListeners() {\n      /* We must use mouseover because it correctly\n      registers hover interactivity when spacing='0'\n      */\n      this._addEventListener('mouseenter', () => {\n        this.set('_isMouseInside', true);\n      });\n\n      this._addEventListener('mouseleave', () => {\n        this.set('_isMouseInside', false);\n      });\n\n      this._addEventListener('focusout', () => {\n        if (!this.get('_isMouseInside') && this.get('hideOn') !== 'none') {\n          this.hide();\n        }\n      });\n    },\n\n    addPopoverEventListeners() {\n      const _tooltip = this.get('_tooltip');\n\n      const popover = _tooltip.popperInstance.popper;\n      /* We must use mouseover because it correctly\n      registers hover interactivity when spacing='0'\n      */\n\n      this._addEventListener('mouseenter', () => {\n        this.set('_isMouseInside', true);\n\n        if (this.get('showOn') === 'mouseenter' && !this.get('isShown')) {\n          this.show();\n        }\n      }, popover);\n\n      this._addEventListener('mouseleave', () => {\n        this.set('_isMouseInside', false);\n\n        if (this.get('hideOn') === 'mouseleave' && this.get('isShown')) {\n          this.hide();\n        }\n      }, popover);\n\n      this._addEventListener('focusout', () => {\n        if (!this.get('_isMouseInside') && this.get('isShown') && this.get('hideOn') !== 'none') {\n          this.hide();\n        }\n      }, popover);\n    },\n\n    hide() {\n      if (this.get('isDestroying')) {\n        return;\n      }\n      /* If the tooltip is about to be showed by\n      a delay, stop is being shown. */\n\n\n      Ember.run.cancel(this.get('_showTimer'));\n      Ember.run.later(() => {\n        if (!this.get('_isMouseInside') || !this.get('isShown')) {\n          this._hideTooltip();\n        }\n      }, +this.get('popoverHideDelay'));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-tooltips/components/ember-tooltip-base\", [\"exports\", \"tooltip.js\", \"ember-tooltips/templates/components/ember-tooltip-base\"], function (_exports, _tooltip2, _emberTooltipBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const ANIMATION_CLASS = 'ember-tooltip-show';\n  const POPPER_DEFAULT_MODIFIERS = {\n    flip: {\n      enabled: true\n    },\n    preventOverflow: {\n      escapeWithReference: true\n    }\n  };\n\n  function getOppositeSide(placement) {\n    if (!placement) {\n      return null;\n    }\n\n    const [side] = placement.split('-');\n    let oppositeSide;\n\n    switch (side) {\n      case 'top':\n        oppositeSide = 'bottom';\n        break;\n\n      case 'right':\n        oppositeSide = 'left';\n        break;\n\n      case 'bottom':\n        oppositeSide = 'top';\n        break;\n\n      case 'left':\n        oppositeSide = 'right';\n        break;\n    }\n\n    return oppositeSide;\n  }\n\n  function cleanNumber(stringOrNumber) {\n    let cleanNumber;\n\n    if (stringOrNumber && typeof stringOrNumber === 'string') {\n      cleanNumber = parseInt(stringOrNumber, 10);\n      /* Remove invalid parseInt results */\n\n      if (isNaN(cleanNumber) || !isFinite(cleanNumber)) {\n        cleanNumber = 0;\n      }\n    } else {\n      cleanNumber = stringOrNumber;\n    }\n\n    return cleanNumber;\n  }\n\n  var _default = Ember.Component.extend({\n    classNames: ['ember-tooltip-base'],\n    delay: 0,\n    delayOnChange: true,\n    duration: 0,\n    effect: 'slide',\n    // Options: fade, slide, none // TODO - make slide work\n    event: 'hover',\n    // Options: hover, click, focus, none\n    tooltipClass: 'tooltip',\n    arrowClass: 'tooltip-arrow',\n    innerClass: 'tooltip-inner',\n    tooltipClassName: Ember.computed.deprecatingAlias('_tooltipVariantClass', {\n      id: 'EmberTooltipBase._tooltipVariantClass',\n      until: '4.0.0'\n    }),\n    isShown: false,\n    text: null,\n    side: 'top',\n    spacing: 10,\n    targetId: null,\n    layout: _emberTooltipBase.default,\n    updateFor: null,\n    popperOptions: null,\n    popperContainer: false,\n    animationDuration: 200,\n\n    /* Actions */\n    onDestroy: null,\n    onHide: null,\n    onRender: null,\n    onShow: null,\n    _hideOn: null,\n    // eslint-disable-next-line ember/require-computed-property-dependencies\n    hideOn: Ember.computed('event', {\n      get() {\n        if (this.get('_hideOn')) {\n          return this.get('_hideOn');\n        }\n\n        const event = this.get('event');\n        let hideOn;\n\n        switch (event) {\n          case 'hover':\n            hideOn = 'mouseleave';\n            break;\n\n          case 'focus':\n            hideOn = 'blur';\n            break;\n\n          case 'ready':\n            hideOn = null;\n            break;\n\n          default:\n            hideOn = event;\n            break;\n        }\n\n        return hideOn;\n      },\n\n      set(_key, value) {\n        return this._hideOn = value;\n      }\n\n    }),\n    _showOn: null,\n    // eslint-disable-next-line ember/require-computed-property-dependencies\n    showOn: Ember.computed('event', {\n      get() {\n        if (this.get('_showOn')) {\n          return this.get('_showOn');\n        }\n\n        const event = this.get('event');\n        let showOn;\n\n        switch (event) {\n          case 'hover':\n            showOn = 'mouseenter';\n            break;\n\n          default:\n            showOn = event;\n            break;\n        }\n\n        return showOn;\n      },\n\n      set(_key, value) {\n        return this._showOn = value;\n      }\n\n    }),\n    // eslint-disable-next-line ember/require-computed-property-dependencies\n    target: Ember.computed('targetId', function () {\n      const targetId = this.get('targetId');\n      let target;\n\n      if (targetId) {\n        target = document.getElementById(targetId);\n\n        if (!target) {\n          (true && Ember.warn('No target found for targetId ', targetId, {\n            id: 'ember-tooltips.no-element-with-targetId'\n          }));\n        }\n      } else {\n        target = this.element.parentNode;\n      }\n\n      return target;\n    }),\n\n    /* An ID used to identify this tooltip from other tooltips */\n    _renderElementId: Ember.computed('elementId', function () {\n      const elementId = this.get('elementId');\n\n      if (elementId) {\n        return `${elementId}-et-target`;\n      } else {\n        return null;\n      }\n    }),\n    _renderElement: Ember.computed('_renderElementId', function () {\n      const renderElementId = this.get('_renderElementId');\n\n      if (renderElementId) {\n        return document.getElementById(renderElementId);\n      } else {\n        return null;\n      }\n    }),\n    _fastboot: Ember.computed(function () {\n      let owner = Ember.getOwner(this);\n      return owner.lookup('service:fastboot');\n    }),\n    _shouldRenderContent: Ember.computed('_fastboot.isFastBoot', '_awaitingTooltipElementRendered', function () {\n      return this.get('_fastboot.isFastBoot') || !this.get('_awaitingTooltipElementRendered');\n    }),\n    _awaitingTooltipElementRendered: true,\n    _tooltipEvents: null,\n    _tooltip: null,\n    _spacingRequestId: null,\n    _animationDuration: Ember.computed('animationDuration', function () {\n      const config = Ember.getOwner(this).resolveRegistration('config:environment');\n      const inTestingMode = config.environment === 'test' || Ember.testing;\n      return inTestingMode ? 0 : this.get('animationDuration');\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      this.set('_tooltipEvents', []);\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      this.createTooltip();\n    },\n\n    didUpdateAttrs() {\n      this._super(...arguments);\n\n      if (this.get('isShown')) {\n        this.show();\n        /* If updateFor exists, update the tooltip incase the changed Attr affected the tooltip content's height or width */\n\n        if (this.get('updateFor') !== null && this.get('_tooltip').popperInstance) {\n          this._updatePopper();\n        }\n      } else {\n        this.hide();\n      }\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      const _tooltipEvents = this.get('_tooltipEvents');\n      /* Remove event listeners used to show and hide the tooltip */\n\n\n      _tooltipEvents.forEach(({\n        callback,\n        target,\n        eventName\n      } = {}) => {\n        target.removeEventListener(eventName, callback);\n      });\n\n      this._cleanupTimers();\n\n      this.get('_tooltip').dispose();\n\n      this._dispatchAction('onDestroy', this);\n    },\n\n    addTargetEventListeners() {\n      this.addTooltipTargetEventListeners();\n    },\n\n    addTooltipBaseEventListeners() {},\n\n    addTooltipTargetEventListeners() {\n      /* Setup event handling to hide and show the tooltip */\n      const event = this.get('event');\n      /* Setup event handling to hide and show the tooltip */\n\n      if (event === 'none') {\n        return;\n      }\n\n      const hideOn = this.get('hideOn');\n      const showOn = this.get('showOn');\n      /* If show and hide are the same (e.g. click) toggle\n      the visibility */\n\n      if (showOn === hideOn) {\n        this._addEventListener(showOn, () => {\n          this.toggle();\n        });\n      } else {\n        /* Else, add the show and hide events individually */\n        if (showOn !== 'none') {\n          this._addEventListener(showOn, () => {\n            this.show();\n          });\n        }\n\n        if (hideOn !== 'none') {\n          this._addEventListener(hideOn, () => {\n            this.hide();\n          });\n        }\n      }\n      /* Hide and show the tooltip on focus and escape\n      for accessibility */\n\n\n      if (event !== 'focus') {\n        /* If the event is click, we don't want the\n        click to also trigger focusin */\n        if (event !== 'click') {\n          this._addEventListener('focusin', () => {\n            this.show();\n          });\n        }\n\n        this._addEventListener('focusout', () => {\n          this.hide();\n        });\n      }\n\n      this._addEventListener('keydown', keyEvent => {\n        if (keyEvent.which === 27 && this.get('isShown')) {\n          this.hide();\n          keyEvent.stopImmediatePropagation();\n          /* So this callback only fires once per keydown */\n\n          keyEvent.preventDefault();\n          return false;\n        }\n      }, document);\n    },\n\n    createTooltip() {\n      const target = this.get('target');\n      const tooltipClass = this.get('tooltipClass');\n      const arrowClass = this.get('arrowClass');\n      const innerClass = this.get('innerClass');\n      const emberTooltipClass = this.get('_tooltipVariantClass');\n      const emberTooltipArrowClass = `${Ember.String.w(emberTooltipClass).join('-arrow ')}-arrow`;\n      const emberTooltipInnerClass = `${Ember.String.w(emberTooltipClass).join('-inner ')}-inner`;\n      const targetTitle = target.title;\n      target.removeAttribute('title');\n      const tooltip = new _tooltip2.default(target, {\n        container: this.get('popperContainer'),\n        html: true,\n        placement: this.get('side'),\n        title: '<span></span>',\n        trigger: 'manual',\n        arrowSelector: `.${Ember.String.w(emberTooltipArrowClass).join('.')}`,\n        innerSelector: `.${Ember.String.w(emberTooltipInnerClass).join('.')}`,\n        // eslint-disable prettier/prettier\n        // prettier-ignore\n        template: `<div\n                   class=\"${tooltipClass} ${emberTooltipClass} ember-tooltip-effect-${this.get('effect')}\"\n                   role=\"tooltip\"\n                   style=\"margin:0;margin-${getOppositeSide(this.get('side'))}:${this.get('spacing')}px;\">\n                   <div class=\"${arrowClass} ${emberTooltipArrowClass}\"></div>\n                   <div class=\"${innerClass} ${emberTooltipInnerClass}\" id=\"${this.get('_renderElementId')}\"></div>\n                 </div>`,\n        // eslint-enable prettier/prettier\n        popperOptions: {\n          modifiers: mergeModifiers(POPPER_DEFAULT_MODIFIERS, this.get('popperOptions.modifiers')),\n          onCreate: () => {\n            Ember.run(() => {\n              this._dispatchAction('onRender', this);\n\n              this.set('_awaitingTooltipElementRendered', false);\n              /* The tooltip element must exist in order to add event listeners to it */\n\n              this.addTooltipBaseEventListeners();\n              /* Once the wormhole has done it's work, we need the tooltip to be positioned again */\n\n              Ember.run.scheduleOnce('afterRender', this, this._updatePopper);\n              target.setAttribute('title', targetTitle);\n            });\n          },\n          onUpdate: () => {\n            this.setSpacing();\n          }\n        }\n      });\n      /* Add a class to the tooltip target */\n\n      target.classList.add('ember-tooltip-target');\n      this.addTargetEventListeners();\n      this.set('_tooltip', tooltip);\n      /* If user passes isShown=true, show the tooltip as soon as it's created */\n\n      if (this.get('isShown')) {\n        this.show();\n      }\n    },\n\n    _updatePopper() {\n      const {\n        popperInstance\n      } = this.get('_tooltip');\n      popperInstance.update();\n    },\n\n    setSpacing() {\n      if (!this.get('isShown') || this.get('isDestroying')) {\n        return;\n      }\n\n      this._spacingRequestId = requestAnimationFrame(() => {\n        this._spacingRequestId = null;\n\n        if (!this.get('isShown') || this.get('isDestroying')) {\n          return;\n        }\n\n        const {\n          popperInstance\n        } = this.get('_tooltip');\n        const {\n          popper\n        } = popperInstance;\n        const side = popper.getAttribute('x-placement');\n        const marginSide = getOppositeSide(side);\n        const {\n          style\n        } = popper;\n        style.marginTop = 0;\n        style.marginRight = 0;\n        style.marginBottom = 0;\n        style.marginLeft = 0;\n        popper.style[`margin${Ember.String.capitalize(marginSide)}`] = `${this.get('spacing')}px`;\n      });\n    },\n\n    hide() {\n      if (this.get('isDestroying')) {\n        return;\n      }\n      /* If the tooltip is about to be showed by\n      a delay, stop is being shown. */\n\n\n      Ember.run.cancel(this.get('_showTimer'));\n\n      this._hideTooltip();\n    },\n\n    show() {\n      if (this.get('isDestroying')) {\n        return;\n      }\n\n      const delay = this.get('delay');\n      const duration = this.get('duration');\n      Ember.run.cancel(this.get('_showTimer'));\n      Ember.run.cancel(this.get('_completeHideTimer'));\n\n      if (duration) {\n        this.setHideTimer(duration);\n      }\n\n      if (delay) {\n        this.setShowTimer(delay);\n      } else {\n        this._showTooltip();\n      }\n    },\n\n    setHideTimer(duration) {\n      duration = cleanNumber(duration);\n      Ember.run.cancel(this.get('_hideTimer'));\n\n      if (duration) {\n        /* Hide tooltip after specified duration */\n        const hideTimer = Ember.run.later(this, this.hide, duration);\n        /* Save timer ID for canceling should an event\n        hide the tooltip before the duration */\n\n        this.set('_hideTimer', hideTimer);\n      }\n    },\n\n    setShowTimer(delay) {\n      delay = cleanNumber(delay);\n\n      if (!this.get('delayOnChange')) {\n        /* If the `delayOnChange` property is set to false, we\n        don't want to delay opening this tooltip/popover if there is\n        already a tooltip/popover shown in the DOM. Check that here\n        and adjust the delay as needed. */\n        let shownTooltipsOrPopovers = document.querySelectorAll(`.${ANIMATION_CLASS}`);\n\n        if (shownTooltipsOrPopovers.length) {\n          delay = 0;\n        }\n      }\n\n      const _showTimer = Ember.run.later(this, () => {\n        this._showTooltip();\n      }, delay);\n\n      this.set('_showTimer', _showTimer);\n    },\n\n    _hideTooltip() {\n      const _tooltip = this.get('_tooltip');\n\n      if (!_tooltip || this.get('isDestroying')) {\n        return;\n      }\n\n      if (_tooltip.popperInstance) {\n        _tooltip.popperInstance.popper.classList.remove(ANIMATION_CLASS);\n      }\n\n      const _completeHideTimer = Ember.run.later(() => {\n        if (this.get('isDestroying')) {\n          return;\n        }\n\n        cancelAnimationFrame(this._spacingRequestId);\n\n        _tooltip.hide();\n\n        this.set('_isHiding', false);\n        this.set('isShown', false);\n\n        this._dispatchAction('onHide', this);\n      }, this.get('_animationDuration'));\n\n      this.set('_completeHideTimer', _completeHideTimer);\n    },\n\n    _showTooltip() {\n      if (this.get('isDestroying')) {\n        return;\n      }\n\n      const _tooltip = this.get('_tooltip');\n\n      _tooltip.show();\n\n      this.set('isShown', true);\n      Ember.run(() => {\n        if (this.get('isDestroying')) {\n          return;\n        }\n\n        _tooltip.popperInstance.popper.classList.add(ANIMATION_CLASS);\n\n        this._dispatchAction('onShow', this);\n      });\n    },\n\n    toggle() {\n      /* We don't use toggleProperty because we centralize\n      logic for showing and hiding in the show() and hide()\n      methods. */\n      if (this.get('isShown')) {\n        this.hide();\n      } else {\n        this.show();\n      }\n    },\n\n    _addEventListener(eventName, callback, element) {\n      const target = element || this.get('target');\n      /* Remember event listeners so they can removed on teardown */\n\n      const boundCallback = Ember.run.bind(this, callback);\n      this.get('_tooltipEvents').push({\n        callback: boundCallback,\n        target,\n        eventName\n      });\n      /* Add the event listeners */\n\n      target.addEventListener(eventName, boundCallback);\n    },\n\n    _dispatchAction(actionName, ...args) {\n      const action = this.get(actionName);\n\n      if (!this.isDestroying && !this.isDestroyed && action) {\n        action(...args);\n      }\n    },\n\n    _cleanupTimers() {\n      Ember.run.cancel(this.get('_showTimer'));\n      cancelAnimationFrame(this._spacingRequestId);\n    }\n\n  });\n\n  _exports.default = _default;\n\n  function mergeModifiers(defaults, overrides = {}) {\n    const defaultKeys = Object.keys(defaults);\n    const overriddenKeys = Object.keys(overrides);\n    const keys = [].concat(defaultKeys, overriddenKeys).reduce((acc, key) => {\n      if (acc.indexOf(key) === -1) acc.push(key);\n      return acc;\n    }, []);\n    const modifiers = Ember.assign({}, defaults);\n    keys.forEach(key => {\n      if (defaultKeys.indexOf(key) !== -1 && overriddenKeys.indexOf(key) !== -1) {\n        modifiers[key] = Ember.assign({}, defaults[key], overrides[key]);\n      } else if (overriddenKeys.indexOf(key) !== -1) {\n        modifiers[key] = overrides[key];\n      }\n    });\n    return modifiers;\n  }\n});","define(\"ember-tooltips/components/ember-tooltip\", [\"exports\", \"ember-tooltips/components/ember-tooltip-base\"], function (_exports, _emberTooltipBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberTooltipBase.default.extend({\n    _tooltipVariantClass: 'ember-tooltip'\n  });\n\n  _exports.default = _default;\n});","define(\"ember-tooltips/templates/components/ember-tooltip-base\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ce7UXNkx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"_awaitingTooltipElementRendered\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[10,\\\"div\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,0,[\\\"_shouldRenderContent\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[18,1,[[32,0]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[1,[32,0,[\\\"text\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"  \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,2],[[30,[36,1],[[32,0,[\\\"_renderElement\\\"]]],null]],[[\\\"guid\\\",\\\"insertBefore\\\"],[\\\"%cursor:0%\\\",[29]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"div\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,0],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[18,1,[[32,0]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[1,[32,0,[\\\"text\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"-in-el-null\\\",\\\"in-element\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"ember-tooltips/templates/components/ember-tooltip-base.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"ember-tooltips/utils/ember-popover\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isElementInPopover = isElementInPopover;\n  _exports.isElementInTargetAndNotInPopover = isElementInTargetAndNotInPopover;\n  _exports.isElementElsewhere = isElementElsewhere;\n\n  /* These isElement________ functions are used to determine where an element\n  is in relation to the $popover and the $target elements. This is needed to\n  handle the visible state when a user interacts with any of these elements.\n  */\n\n  /**\n   * Determines if element is $popover or contained within $popover\n   *\n   * @method isElementInPopover\n   * @param {DOM element} element\n   * @param {jQuery element} $popover\n   * @return {boolean}\n   * @public\n   */\n  function isElementInPopover(element, popover) {\n    if (!popover) {\n      return false;\n    }\n\n    return popover === element || !!popover.querySelectorAll(element).length;\n  }\n  /**\n   * Determines if the element is $target or (in $target and not\n   * contained within $popover)\n   *\n   * @method isElementInTargetAndNotInPopover\n   * @param {DOM element} element\n   * @param {jQuery element} $target\n   * @param {jQuery element} $popover\n   * @return {boolean}\n   * @public\n   */\n\n\n  function isElementInTargetAndNotInPopover(element, target, popover) {\n    if (!target || !popover) {\n      return false;\n    }\n\n    if (target.is(element)) {\n      return true;\n    }\n\n    return !!target.querySelectorAll(element).length && !isElementInPopover(element, popover);\n  }\n  /**\n   * Determines if element is not $popover, not $target, and\n   * not contained within either.\n   *\n   * @method isElementElsewhere\n   * @param {DOM element} element\n   * @param {jQuery element} $target\n   * @param {jQuery element} $popover\n   * @return {boolean}\n   * @public\n   */\n\n\n  function isElementElsewhere(element, target, popover) {\n    const isElementOutsidePopover = !isElementInPopover(element, popover);\n    const isElementOutsideTarget = !isElementInTargetAndNotInPopover(element, target, popover);\n    return isElementOutsideTarget && isElementOutsidePopover;\n  }\n});","define(\"ember-truth-helpers/helpers/and\", [\"exports\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.and = and;\n  _exports.default = void 0;\n\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\n    return params[params.length - 1];\n  }\n\n  var _default = Ember.Helper.helper(and);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.equal = equal;\n  _exports.default = void 0;\n\n  function equal(params) {\n    return params[0] === params[1];\n  }\n\n  var _default = Ember.Helper.helper(equal);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/gt\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.gt = gt;\n  _exports.default = void 0;\n\n  function gt([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n\n    return left > right;\n  }\n\n  var _default = Ember.Helper.helper(gt);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/gte\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.gte = gte;\n  _exports.default = void 0;\n\n  function gte([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n\n    return left >= right;\n  }\n\n  var _default = Ember.Helper.helper(gte);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/is-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isArray = isArray;\n  _exports.default = void 0;\n\n  function isArray(params) {\n    for (let i = 0, len = params.length; i < len; i++) {\n      if (Ember.isArray(params[i]) === false) {\n        return false;\n      }\n    }\n\n    return true;\n  }\n\n  var _default = Ember.Helper.helper(isArray);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/is-empty\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.helper(function ([obj]) {\n    return Ember.isEmpty(obj);\n  });\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/is-equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isEqual = isEqual;\n  _exports.default = void 0;\n\n  function isEqual([a, b]) {\n    return Ember.isEqual(a, b);\n  }\n\n  var _default = Ember.Helper.helper(isEqual);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/lt\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.lt = lt;\n  _exports.default = void 0;\n\n  function lt([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n\n    return left < right;\n  }\n\n  var _default = Ember.Helper.helper(lt);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/lte\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.lte = lte;\n  _exports.default = void 0;\n\n  function lte([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n\n    return left <= right;\n  }\n\n  var _default = Ember.Helper.helper(lte);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/not-equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.notEqualHelper = notEqualHelper;\n  _exports.default = void 0;\n\n  function notEqualHelper(params) {\n    return params[0] !== params[1];\n  }\n\n  var _default = Ember.Helper.helper(notEqualHelper);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/not\", [\"exports\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.not = not;\n  _exports.default = void 0;\n\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\n    return true;\n  }\n\n  var _default = Ember.Helper.helper(not);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/or\", [\"exports\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.or = or;\n  _exports.default = void 0;\n\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\n    return params[params.length - 1];\n  }\n\n  var _default = Ember.Helper.helper(or);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/helpers/xor\", [\"exports\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.xor = xor;\n  _exports.default = void 0;\n\n  function xor(params) {\n    return (0, _truthConvert.default)(params[0]) !== (0, _truthConvert.default)(params[1]);\n  }\n\n  var _default = Ember.Helper.helper(xor);\n\n  _exports.default = _default;\n});","define(\"ember-truth-helpers/utils/truth-convert\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = truthConvert;\n\n  function truthConvert(result) {\n    const truthy = result && Ember.get(result, 'isTruthy');\n\n    if (typeof truthy === 'boolean') {\n      return truthy;\n    }\n\n    if (Ember.isArray(result)) {\n      return Ember.get(result, 'length') !== 0;\n    } else {\n      return !!result;\n    }\n  }\n});","define(\"ember-useragent/helpers/user-agent\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    userAgent: Ember.inject.service(),\n\n    compute([prop]) {\n      return Ember.get(this, `userAgent.${prop}`);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"ember-useragent/initializers/user-agent\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  /**\n   * Ember UserAgent initializer\n   *\n   * Supports auto injection of the userAgent service app-wide.\n   * Generated by the ember-useragent addon.\n   */\n  function initialize() {\n    const application = arguments[1] || arguments[0];\n    application.inject('controller', 'userAgent', 'service:userAgent');\n    application.inject('component', 'userAgent', 'service:userAgent');\n    application.inject('route', 'userAgent', 'service:userAgent');\n    application.inject('view', 'userAgent', 'service:userAgent');\n  }\n\n  var _default = {\n    name: 'user-agent',\n    initialize\n  };\n  _exports.default = _default;\n});","define(\"ember-useragent/instance-initializers/user-agent\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  function getUserAgent(appInstance) {\n    if (typeof FastBoot === 'undefined') {\n      const userAgent = Ember.get(window, 'navigator.userAgent');\n      (true && !(userAgent) && Ember.assert('No `userAgent` present in window.navigator', userAgent));\n      return userAgent;\n    } else {\n      const fastboot = appInstance.lookup('service:fastboot');\n      const headers = Ember.get(fastboot, 'request.headers');\n      const userAgent = headers.get('user-agent');\n      (true && !(userAgent) && Ember.assert('No `user-agent` present in FastBoot headers.', userAgent));\n      return userAgent;\n    }\n  }\n\n  function initialize(appInstance) {\n    const service = appInstance.lookup('service:user-agent');\n    Ember.set(service, 'userAgent', getUserAgent(appInstance));\n  }\n\n  var _default = {\n    initialize\n  };\n  _exports.default = _default;\n});","define(\"ember-useragent/services/user-agent\", [\"exports\", \"ua-parser-js\"], function (_exports, _uaParserJs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    _parser: Ember.computed({\n      get() {\n        if (this.__parser) {\n          return this.__parser;\n        } else {\n          return new _uaParserJs.default();\n        }\n      },\n\n      set(key, value) {\n        this.__parser = value;\n        return this.__parser;\n      }\n\n    }),\n    parser: Ember.computed('extensions', {\n      get() {\n        (true && !(false) && Ember.deprecate('Usage of the private property `parser` is deprecated. If you need to fiddle around with this private property, please open an issue and we can discuss.', false, {\n          id: 'ember-useragent.service.parser',\n          until: '1.0.0'\n        }));\n        return Ember.get(this, '_parser');\n      }\n\n    }).readOnly(),\n    UAParser: Ember.computed(function () {\n      (true && !(false) && Ember.deprecate('Usage of the property `UAParser` is deprecated. To get the UAParser class, import it as `import UAParser from \\'ua-parser-js\\';`. To get the instance of that class used by this service, as this property previously incorrectly returned, get the `parser` property.', false, {\n        id: 'ember-useragent.service.UAParser',\n        until: '1.0.0'\n      }));\n      return Ember.get(this, '_parser');\n    }),\n    userAgent: Ember.computed({\n      get() {\n        const parser = Ember.get(this, '_parser');\n        return parser.getUA();\n      },\n\n      set(key, value) {\n        const parser = Ember.get(this, '_parser');\n        parser.setUA(value);\n        Ember.set(this, '__parser', parser);\n        return value;\n      }\n\n    }),\n    fastboot: Ember.computed(function () {\n      (true && !(false) && Ember.deprecate('Usage of the private property `fastboot` is deprecated. Inject the `fastboot` service yourself instead.', false, {\n        id: 'ember-useragent.service.fastboot',\n        until: '1.0.0'\n      }));\n      return Ember.getOwner(this).lookup('service:fastboot');\n    }),\n    isFastBoot: Ember.computed(function () {\n      (true && !(false) && Ember.deprecate('Usage of the private property `isFastBoot` is deprecated. Inject the `fastboot` service yourself and get `fastboot.isFastBoot` instead.', false, {\n        id: 'ember-useragent.service.isFastBoot',\n        until: '1.0.0'\n      }));\n      const fastboot = Ember.getOwner(this).lookup('service:fastboot');\n      return Boolean(fastboot && Ember.get(fastboot, 'isFastBoot'));\n    }),\n    browser: Ember.computed('_parser', function () {\n      const browser = Ember.get(this, '_parser').getBrowser();\n      return {\n        info: browser,\n        isChrome: browser.name === 'Chrome',\n        isChromeHeadless: browser.name === 'Chrome Headless',\n        isEdge: browser.name === 'Edge',\n        isFirefox: browser.name === 'Firefox',\n        isIE: browser.name === 'IE' || browser.name === 'IE Mobile',\n        isSafari: browser.name === 'Safari' || browser.name === 'Mobile Safari'\n      };\n    }),\n    cpu: Ember.computed('_parser', function () {\n      return Ember.get(this, '_parser').getCPU();\n    }),\n    device: Ember.computed('_parser', function () {\n      const device = Ember.get(this, '_parser').getDevice();\n      return {\n        info: device,\n        isConsole: device.type === 'console',\n        isDesktop: !device.type,\n        isMobile: device.type === 'mobile',\n        isTablet: device.type === 'tablet'\n      };\n    }),\n    engine: Ember.computed('_parser', function () {\n      const engine = Ember.get(this, '_parser').getEngine();\n      return {\n        info: engine,\n        isWebkit: engine.name === 'WebKit'\n      };\n    }),\n    os: Ember.computed('_parser', function () {\n      const os = Ember.get(this, '_parser').getOS();\n      return {\n        info: os,\n        isAndroid: os.name === 'Android',\n        isIOS: os.name === 'iOS',\n        isLinux: ['CentOS', 'Fedora', 'Linpus', 'Linux', 'MeeGo', 'PCLinuxOS', 'RedHat', 'SUSE', 'Ubuntu', 'VectorLinux'].indexOf(os.name) > -1,\n        isMacOS: os.name === 'Mac OS',\n        isWindows: ['Windows', 'Windows Phone', 'Windows Mobile'].indexOf(os.name) > -1\n      };\n    }),\n\n    setupService() {\n      (true && !(false) && Ember.deprecate('Usage of the private method `setupService` is deprecated. To force an update, set the `userAgent` property.', false, {\n        id: 'ember-useragent.service.setupService',\n        until: '1.0.0'\n      }));\n      this.notifyPropertyChange('userAgent');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define('emberx-file-input/components/x-file-input', ['exports', 'emberx-file-input/templates/components/x-file-input'], function (exports, _xFileInput) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    classNameBindings: [':x-file-input', 'disabled:x-file-input--disabled'],\n    attributeBindings: ['accept'],\n    tagName: 'span',\n    layout: _xFileInput.default,\n    tabindex: 0,\n\n    /**\n     * The text displayed when no block is passed.\n     *\n     * @property alt\n     * @default \"Upload\"\n     */\n    alt: \"Upload\",\n\n    /**\n     * Listens for change events on the native file input and dispatches\n     * the corresponding action up the context chain.\n     *\n     * @private\n     * @method\n     * @param {$.Event} e Native change event\n     */\n    change(e) {\n      this.sendAction(\"action\", this.files(e), this.resetInput.bind(this));\n    },\n\n    /**\n     * Resets the value of the input so you can select the same file\n     * multiple times.\n     *\n     * @method\n     */\n    resetInput() {\n      this.$('.x-file--input').val('');\n    },\n\n    /**\n     * Generates a random ID to relate the label to the input.\n     *\n     * @method\n     * @private\n     */\n    randomId: Ember.computed(function () {\n      return Math.random().toString(36).substring(7);\n    }),\n\n    /**\n     * Gets files from event object.\n     *\n     * @method\n     * @private\n     * @param {$.Event || Event}\n     */\n    files(e) {\n      if (e.target.files) {\n        return e.target.files;\n      } else if (e.testingFiles) {\n        return e.testingFiles;\n      } else {\n        // testingFiles will not exist on e\n        // when it is a JQuery.Event\n        return e.originalEvent.testingFiles;\n      }\n    }\n  });\n});","define(\"emberx-file-input/templates/components/x-file-input\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"CazyKev8\", \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[10,\\\"input\\\"],[15,1,[34,1]],[14,0,\\\"x-file--input\\\"],[15,3,[34,2]],[15,\\\"disabled\\\",[34,3]],[15,\\\"multiple\\\",[34,4]],[15,\\\"tabindex\\\",[34,5]],[15,\\\"accept\\\",[34,6]],[14,4,\\\"file\\\"],[12],[13],[2,\\\"\\\\n\\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[31,[[34,1]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,7],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[18,1,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"    \\\"],[1,[34,0]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"alt\\\",\\\"randomId\\\",\\\"name\\\",\\\"disabled\\\",\\\"multiple\\\",\\\"tabindex\\\",\\\"accept\\\",\\\"if\\\"]}\", \"meta\": { \"moduleName\": \"emberx-file-input/templates/components/x-file-input.hbs\" } });\n});","define('emberx-file-input/test-helpers/select-file-async', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Test.registerAsyncHelper('selectFile', function (app, selector, file) {\n    return triggerEvent(selector, 'change', { testingFiles: [file] });\n  });\n});","define('emberx-file-input/test-helpers/select-file-unit', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n  exports.default = function (selector, file) {\n    let changeEvent = buildChangeEvent({ testingFiles: [file] });\n    $(selector)[0].dispatchEvent(changeEvent);\n  };\n\n  function buildChangeEvent(options = {}) {\n    let event = document.createEvent('Events');\n    event.initEvent('change', true, true);\n    $.extend(event, options);\n    return event;\n  }\n});","define(\"koenig-editor/components/kg-action-bar\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <ul class=\"kg-action-bar inline-flex items-center pa0 ma0 pl1 pr1 nl1 list br3 shadow-2 bg-darkgrey-d1 white sans-serif f8 fw6 tracked-2 z-999 {{this.class}} {{this.animationClasses}}\" style={{this.style}} data-kg-toolbar=\"true\" data-kg-allow-clickthrough=\"true\">\n      {{yield}}\n  </ul>\n  */\n  {\n    \"id\": \"LeA3N3Aj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[10,\\\"ul\\\"],[15,0,[31,[\\\"kg-action-bar inline-flex items-center pa0 ma0 pl1 pr1 nl1 list br3 shadow-2 bg-darkgrey-d1 white sans-serif f8 fw6 tracked-2 z-999 \\\",[32,0,[\\\"class\\\"]],\\\" \\\",[32,0,[\\\"animationClasses\\\"]]]]],[15,5,[32,0,[\\\"style\\\"]]],[14,\\\"data-kg-toolbar\\\",\\\"true\\\"],[14,\\\"data-kg-allow-clickthrough\\\",\\\"true\\\"],[12],[2,\\\"\\\\n    \\\"],[18,1,null],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/kg-action-bar.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    tagName: '',\n    instantClose: false,\n    isVisible: false,\n    style: null,\n    animationClasses: Ember.computed('isVisible', 'instantClose', function () {\n      let {\n        instantClose,\n        isVisible\n      } = this;\n      let classes = [];\n\n      if (!instantClose || instantClose && isVisible) {\n        classes.push('anim-fast-bezier');\n      }\n\n      if (!isVisible) {\n        classes.push('o-0 pop-down');\n      }\n\n      return classes.join(' ');\n    })\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-alt-input\", [\"exports\", \"koenig-editor/helpers/kg-style\"], function (_exports, _kgStyle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <input\n      type=\"text\"\n      placeholder={{this.placeholder}}\n      class=\"miw-100 tc bn form-text bg-transparent tracked-2 pr8 pl8\"\n      name=\"alt\"\n      value={{this.alt}}\n      {{on \"input\" this.onInput}}\n      {{on \"keydown\" this.onKeydown}}\n  >\n  */\n  {\n    \"id\": \"0mI2QP0/\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[11,\\\"input\\\"],[16,\\\"placeholder\\\",[32,0,[\\\"placeholder\\\"]]],[24,0,\\\"miw-100 tc bn form-text bg-transparent tracked-2 pr8 pl8\\\"],[24,3,\\\"alt\\\"],[16,2,[32,0,[\\\"alt\\\"]]],[24,4,\\\"text\\\"],[4,[38,0],[\\\"input\\\",[32,0,[\\\"onInput\\\"]]],null],[4,[38,0],[\\\"keydown\\\",[32,0,[\\\"onKeydown\\\"]]],null],[12],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"on\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-alt-input.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    koenigUi: Ember.inject.service(),\n    tagName: 'figcaption',\n    classNameBindings: ['figCaptionClass'],\n    alt: '',\n    placeholder: '',\n\n    update() {},\n\n    addParagraphAfterCard() {},\n\n    moveCursorToNextSection() {},\n\n    moveCursorToPrevSection() {},\n\n    figCaptionClass: Ember.computed(function () {\n      return `${(0, _kgStyle.kgStyle)(['figcaption'])} w-100 relative`;\n    }),\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      this.element.querySelector('input').focus();\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this.koenigUi.captionLostFocus(this);\n    },\n\n    onInput: Ember._action(function (event) {\n      this.update(event.target.value);\n    }),\n    onKeydown: Ember._action(function (event) {\n      let {\n        selectionStart,\n        selectionEnd,\n        value\n      } = event.target;\n      let noSelection = selectionStart === selectionEnd;\n      let {\n        altKey,\n        ctrlKey,\n        metaKey,\n        shiftKey\n      } = event;\n      let hasModifier = altKey || ctrlKey || metaKey || shiftKey;\n\n      if (hasModifier) {\n        return;\n      }\n\n      switch (event.key) {\n        case 'Enter':\n          event.preventDefault();\n          event.target.blur();\n          this.addParagraphAfterCard();\n          break;\n\n        case 'Escape':\n          event.target.blur();\n          break;\n\n        case 'ArrowUp':\n        case 'ArrowLeft':\n          if (noSelection && selectionStart === 0) {\n            event.preventDefault();\n            event.target.blur();\n            this.moveCursorToPrevSection();\n          }\n\n          break;\n\n        case 'ArrowRight':\n        case 'ArrowDown':\n          if (noSelection && selectionEnd === value.length) {\n            event.preventDefault();\n            event.target.blur();\n            this.moveCursorToNextSection();\n          }\n\n          break;\n\n        default:\n          break;\n      }\n    })\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-basic-html-input\", [\"exports\", \"mobiledoc-kit/editor/editor\", \"@tryghost/kg-clean-basic-html\", \"koenig-editor/options/basic-html-parser-plugins\", \"koenig-editor/options/key-commands\", \"validator\", \"koenig-editor/components/koenig-editor\", \"koenig-editor/lib/dnd/constants\", \"mobiledoc-kit/utils/parse-utils\", \"koenig-editor/utils/markup-utils\", \"koenig-editor/options/text-expansions\"], function (_exports, _editor, _kgCleanBasicHtml, _basicHtmlParserPlugins, _keyCommands, _validator, _koenigEditor, _constants, _parseUtils, _markupUtils, _textExpansions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <div class=\"koenig-basic-html-input__editor-wrappper\" style=\"cursor: text\">\n      <div\n          class=\"koenig-basic-html-input__editor\"\n          data-kg=\"editor\"\n          data-kg-allow-clickthrough\n          data-placeholder={{this.placeholder}}\n      ></div>\n  </div>\n  \n  <KoenigToolbar\n      @basicOnly={{true}}\n      @editor={{this.editor}}\n      @editorRange={{this.selectedRange}}\n      @activeMarkupTagNames={{this.activeMarkupTagNames}}\n      @toggleMarkup={{action \"toggleMarkup\"}}\n      @editLink={{action \"editLink\"}}\n  />\n  \n  {{!-- pop-up link hover toolbar --}}\n  <KoenigLinkToolbar\n      @editor={{this.editor}}\n      @container={{this.element}}\n      @linkRange={{this.linkRange}}\n      @selectedRange={{this.selectedRange}}\n      @editLink={{action \"editLink\"}}\n  />\n  \n  {{!-- pop-up link editing toolbar --}}\n  {{#if this.linkRange}}\n      <KoenigLinkInput\n          @editor={{this.editor}}\n          @linkRange={{this.linkRange}}\n          @selectedRange={{this.selectedRange}}\n          @cancel={{action \"cancelEditLink\"}}\n      />\n  {{/if}}\n  */\n  {\n    \"id\": \"5iIHkQUn\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"div\\\"],[14,0,\\\"koenig-basic-html-input__editor-wrappper\\\"],[14,5,\\\"cursor: text\\\"],[12],[2,\\\"\\\\n    \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-basic-html-input__editor\\\"],[14,\\\"data-kg\\\",\\\"editor\\\"],[14,\\\"data-kg-allow-clickthrough\\\",\\\"\\\"],[15,\\\"data-placeholder\\\",[32,0,[\\\"placeholder\\\"]]],[12],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[8,\\\"koenig-toolbar\\\",[],[[\\\"@basicOnly\\\",\\\"@editor\\\",\\\"@editorRange\\\",\\\"@activeMarkupTagNames\\\",\\\"@toggleMarkup\\\",\\\"@editLink\\\"],[true,[32,0,[\\\"editor\\\"]],[32,0,[\\\"selectedRange\\\"]],[32,0,[\\\"activeMarkupTagNames\\\"]],[30,[36,0],[[32,0],\\\"toggleMarkup\\\"],null],[30,[36,0],[[32,0],\\\"editLink\\\"],null]]],null],[2,\\\"\\\\n\\\\n\\\"],[8,\\\"koenig-link-toolbar\\\",[],[[\\\"@editor\\\",\\\"@container\\\",\\\"@linkRange\\\",\\\"@selectedRange\\\",\\\"@editLink\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"element\\\"]],[32,0,[\\\"linkRange\\\"]],[32,0,[\\\"selectedRange\\\"]],[30,[36,0],[[32,0],\\\"editLink\\\"],null]]],null],[2,\\\"\\\\n\\\\n\\\"],[6,[37,1],[[32,0,[\\\"linkRange\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[8,\\\"koenig-link-input\\\",[],[[\\\"@editor\\\",\\\"@linkRange\\\",\\\"@selectedRange\\\",\\\"@cancel\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"linkRange\\\"]],[32,0,[\\\"selectedRange\\\"]],[30,[36,0],[[32,0],\\\"cancelEditLink\\\"],null]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-basic-html-input.hbs\"\n    }\n  });\n\n  const UNDO_DEPTH = 50; // TODO: extract core to share functionality between this and `{{koenig-editor}}`\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    // public attrs\n    autofocus: false,\n    html: null,\n    placeholder: '',\n    spellcheck: true,\n    // internal properties\n    activeMarkupTagNames: null,\n    editor: null,\n    linkRange: null,\n    mobiledoc: null,\n    selectedRange: null,\n    // private properties\n    _hasFocus: false,\n    _lastMobiledoc: null,\n    _startedRunLoop: false,\n\n    // closure actions\n    willCreateEditor() {},\n\n    didCreateEditor() {},\n\n    onChange() {},\n\n    onNewline() {},\n\n    onFocus() {},\n\n    onBlur() {},\n\n    /* computed properties -------------------------------------------------- */\n    cleanHTML: Ember.computed('html', function () {\n      return (0, _kgCleanBasicHtml.default)(this.html || '');\n    }),\n    // merge in named options with any passed in `options` property data-bag\n    editorOptions: Ember.computed('cleanHTML', function () {\n      let options = this.options || {};\n      let atoms = this.atoms || [];\n      let cards = this.cards || [];\n      return Ember.assign({\n        html: `<p>${this.cleanHTML || ''}</p>`,\n        placeholder: this.placeholder,\n        spellcheck: this.spellcheck,\n        autofocus: this.autofocus,\n        cards,\n        atoms,\n\n        unknownCardHandler() {},\n\n        unknownAtomHandler() {}\n\n      }, options);\n    }),\n\n    /* lifecycle hooks ------------------------------------------------------ */\n    init() {\n      this._super(...arguments);\n\n      this.SPECIAL_MARKUPS = [];\n    },\n\n    didReceiveAttrs() {\n      this._super(...arguments); // reset local mobiledoc if html has been changed upstream so that\n      // the html will be re-parsed by the mobiledoc-kit editor\n\n\n      if (this.cleanHTML !== this._getHTML()) {\n        this.set('mobiledoc', null);\n      }\n    },\n\n    willRender() {\n      this._super(...arguments);\n\n      let mobiledoc = this.mobiledoc;\n\n      if (!mobiledoc && !this.cleanHTML) {\n        mobiledoc = _koenigEditor.BLANK_DOC;\n      }\n\n      let mobiledocIsSame = this._lastMobiledoc && this._lastMobiledoc === mobiledoc;\n      let isEditingDisabledIsSame = this._lastIsEditingDisabled === this.isEditingDisabled; // no change to mobiledoc, no need to recreate the editor\n\n      if (mobiledocIsSame && isEditingDisabledIsSame) {\n        return;\n      } // update our internal references\n\n\n      this._lastIsEditingDisabled = this.isEditingDisabled; // trigger the willCreateEditor closure action\n\n      this.willCreateEditor(); // teardown any old editor that might be around\n\n      let editor = this.editor;\n\n      if (editor) {\n        editor.destroy();\n      } // create a new editor\n\n\n      let editorOptions = this.editorOptions;\n      editorOptions.mobiledoc = mobiledoc;\n      editorOptions.showLinkTooltips = false;\n      editorOptions.undoDepth = UNDO_DEPTH;\n      editorOptions.parserPlugins = _basicHtmlParserPlugins.default;\n      editor = new _editor.default(editorOptions);\n      (0, _keyCommands.default)(editor, this, _keyCommands.BASIC_KEY_COMMANDS);\n      (0, _textExpansions.registerBasicTextExpansions)(editor); // set up editor hooks\n\n      editor.willRender(() => {\n        // The editor's render/rerender will happen after this `editor.willRender`,\n        // so we explicitly start a runloop here if there is none, so that the\n        // add/remove card hooks happen inside a runloop.\n        // When pasting text that gets turned into a card, for example,\n        // the add card hook would run outside the runloop if we didn't begin a new\n        // one now.\n        if (!Ember.run.currentRunLoop) {\n          this._startedRunLoop = true;\n          Ember.run.begin();\n        }\n      });\n      editor.didRender(() => {\n        // if we had explicitly started a runloop in `editor.willRender`,\n        // we must explicitly end it here\n        if (this._startedRunLoop) {\n          this._startedRunLoop = false;\n          Ember.run.end();\n        }\n      });\n      editor.willHandleNewline(event => {\n        Ember.run.join(() => {\n          this.willHandleNewline(event);\n        });\n      });\n      editor.didUpdatePost(postEditor => {\n        Ember.run.join(() => {\n          this.didUpdatePost(postEditor);\n        });\n      });\n      editor.postDidChange(() => {\n        Ember.run.join(() => {\n          this.postDidChange(editor);\n        });\n      });\n      editor.cursorDidChange(() => {\n        Ember.run.join(() => {\n          this.cursorDidChange(editor);\n        });\n      });\n      editor.inputModeDidChange(() => {\n        if (this.isDestroyed) {\n          return;\n        }\n\n        Ember.run.join(() => {\n          this.inputModeDidChange(editor);\n        });\n      });\n\n      if (this.isEditingDisabled) {\n        editor.disableEditing();\n      } // update mobiledoc reference to match initial editor state from parsed\n      // html. We use this value to compare on re-renders in case we need to\n      // re-parse from html\n\n\n      this.mobiledoc = editor.serialize(_koenigEditor.MOBILEDOC_VERSION);\n      this._lastMobiledoc = this.mobiledoc;\n      this.set('editor', editor);\n      this.didCreateEditor(editor);\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      let editorElement = this.element.querySelector('[data-kg=\"editor\"]');\n      this._pasteHandler = Ember.run.bind(this, this.handlePaste);\n      editorElement.addEventListener('paste', this._pasteHandler);\n      this.element.dataset[_constants.DRAG_DISABLED_DATA_ATTR] = 'true';\n    },\n\n    // our ember component has rendered, now we need to render the mobiledoc\n    // editor itself if necessary\n    didRender() {\n      this._super(...arguments);\n\n      let {\n        editor\n      } = this;\n\n      if (!editor.hasRendered) {\n        let editorElement = this.element.querySelector('[data-kg=\"editor\"]');\n        this._isRenderingEditor = true;\n        editor.render(editorElement);\n        this._isRenderingEditor = false;\n      }\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      let editorElement = this.element.querySelector('[data-kg=\"editor\"]');\n      editorElement.removeEventListener('paste', this._pasteHandler);\n      this.editor.destroy();\n    },\n\n    actions: {\n      toggleMarkup(markupTagName, postEditor) {\n        (postEditor || this.editor).toggleMarkup(markupTagName);\n      },\n\n      // range should be set to the full extent of the selection or the\n      // appropriate <a> markup. If there's a selection when the link edit\n      // component renders it will re-select when finished which should\n      // trigger the normal toolbar\n      editLink(range) {\n        let linkMarkup = (0, _markupUtils.getLinkMarkupFromRange)(range);\n\n        if ((!range.isCollapsed || linkMarkup) && range.headSection.isMarkerable) {\n          this.set('linkRange', range);\n        }\n      },\n\n      cancelEditLink() {\n        this.set('linkRange', null);\n      }\n\n    },\n\n    /* ember event handlers --------------------------------------------------*/\n    // handle focusin/focusout at the component level so that we don't trigger blur\n    // actions when clicking on toolbar buttons\n    focusIn(event) {\n      if (!this._hasFocus) {\n        this._hasFocus = true;\n        Ember.run.scheduleOnce('actions', this, this.onFocus, event);\n      }\n    },\n\n    focusOut(event) {\n      if (!event.relatedTarget || !this.element.contains(event.relatedTarget)) {\n        this._hasFocus = false;\n        Ember.run.scheduleOnce('actions', this, this.onBlur, event);\n      }\n    },\n\n    /* custom event handlers ------------------------------------------------ */\n    handlePaste(event) {\n      let {\n        editor,\n        editor: {\n          range\n        }\n      } = this;\n      let {\n        text\n      } = (0, _parseUtils.getContentFromPasteEvent)(event);\n\n      if (!editor.cursor.isAddressable(event.target)) {\n        return;\n      }\n\n      if (text && _validator.default.isURL(text)) {\n        // if we have a text selection, make that selection a link\n        if (range && !range.isCollapsed && range.headSection === range.tailSection && range.headSection.isMarkerable) {\n          let linkMarkup = editor.builder.createMarkup('a', {\n            href: text\n          });\n          editor.run(postEditor => {\n            postEditor.addMarkupToRange(range, linkMarkup);\n          });\n          editor.selectRange(range.tail); // prevent mobiledoc's default paste event handler firing\n\n          event.preventDefault();\n          event.stopImmediatePropagation();\n          return;\n        }\n      }\n    },\n\n    /* mobiledoc event handlers ----------------------------------------------*/\n    willHandleNewline(event) {\n      event.preventDefault();\n      this.onNewline();\n    },\n\n    // manipulate mobiledoc content before committing changes\n    // - only one section\n    // - first section must be a markerable section\n    // - if first section is a list, grab the content of the first list item\n    didUpdatePost(postEditor) {\n      let {\n        builder,\n        editor,\n        editor: {\n          post\n        }\n      } = postEditor; // remove any non-markerable sections\n\n      post.sections.forEach(section => {\n        if (!section.isMarkerable && !section.isListSection) {\n          let reposition = section === editor.activeSection;\n          postEditor.removeSection(section);\n\n          if (reposition) {\n            postEditor.setRange(post.sections.head.tailPosition());\n          }\n        }\n      }); // strip all sections other than the first\n\n      if (post.sections.length > 1) {\n        while (post.sections.length > 1) {\n          postEditor.removeSection(post.sections.tail);\n        }\n\n        postEditor.setRange(post.sections.head.tailPosition());\n      } // convert list section to a paragraph section\n\n\n      if (post.sections.head.isListSection) {\n        let list = post.sections.head;\n        let listItem = list.items.head;\n        let newMarkers = listItem.markers.map(m => m.clone());\n        let p = builder.createMarkupSection('p', newMarkers);\n        postEditor.replaceSection(list, p);\n        postEditor.setRange(post.sections.head.tailPosition());\n      }\n    },\n\n    postDidChange() {\n      // trigger closure action\n      this.onChange(this._getHTML());\n    },\n\n    cursorDidChange(editor) {\n      // if we have `code` or ~strike~ formatting to the left but not the right\n      // then toggle the formatting - these formats should only be creatable\n      // through the text expansions\n      (0, _koenigEditor.toggleSpecialFormatEditState)(editor); // pass the selected range through to the toolbar + menu components\n\n      this.set('selectedRange', editor.range);\n    },\n\n    // fired when the active section(s) or markup(s) at the current cursor\n    // position or selection have changed. We use this event to update the\n    // activeMarkup/section tag lists which control button states in our popup\n    // toolbar\n    inputModeDidChange(editor) {\n      let markupTags = (0, _koenigEditor.arrayToMap)(editor.activeMarkups.map(m => m.tagName)); // On keyboard cursor movement our `cursorDidChange` toggle for special\n      // formats happens before mobiledoc's readstate updates the edit states\n      // so we have to re-do it here\n      // TODO: can we make the event order consistent in mobiledoc-kit?\n\n      (0, _koenigEditor.toggleSpecialFormatEditState)(editor); // Avoid updating this component's properties synchronously while\n      // rendering the editor (after rendering the component) because it\n      // causes Ember to display deprecation warnings\n\n      if (this._isRenderingEditor) {\n        Ember.run.schedule('afterRender', () => {\n          this.set('activeMarkupTagNames', markupTags);\n        });\n      } else {\n        this.set('activeMarkupTagNames', markupTags);\n      }\n    },\n\n    /* private methods -------------------------------------------------------*/\n    // rather than parsing mobiledoc to HTML we can grab the HTML directly from\n    // inside the editor element because we should only be dealing with\n    // inline markup that directly maps to HTML elements\n    _getHTML() {\n      if (this.editor && this.editor.element) {\n        let firstParagraph = this.editor.element.querySelector('p');\n\n        if (!firstParagraph) {\n          return '';\n        }\n\n        let html = firstParagraph.innerHTML || '';\n        return (0, _kgCleanBasicHtml.default)(html);\n      }\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-caption-input\", [\"exports\", \"mobiledoc-kit/utils/key\", \"koenig-editor/helpers/kg-style\"], function (_exports, _key, _kgStyle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigBasicHtmlInput\n      @html={{this.caption}}\n      @placeholder={{if this.isFocused \"\" this.placeholder}}\n      @class=\"miw-100 tc bn form-text bg-transparent pr8 pl8\"\n      @name=\"caption\"\n      @onChange={{action this.update}}\n      @onFocus={{action (mut this.isFocused) true}}\n      @onBlur={{action (mut this.isFocused) false}}\n      @onNewline={{action \"handleEnter\"}}\n      @didCreateEditor={{action \"registerEditor\"}}\n  />\n  */\n  {\n    \"id\": \"j5ctgyRm\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[8,\\\"koenig-basic-html-input\\\",[],[[\\\"@html\\\",\\\"@placeholder\\\",\\\"@class\\\",\\\"@name\\\",\\\"@onChange\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@onNewline\\\",\\\"@didCreateEditor\\\"],[[32,0,[\\\"caption\\\"]],[30,[36,0],[[32,0,[\\\"isFocused\\\"]],\\\"\\\",[32,0,[\\\"placeholder\\\"]]],null],\\\"miw-100 tc bn form-text bg-transparent pr8 pl8\\\",\\\"caption\\\",[30,[36,1],[[32,0],[32,0,[\\\"update\\\"]]],null],[30,[36,1],[[32,0],[30,[36,2],[[32,0,[\\\"isFocused\\\"]]],null],true],null],[30,[36,1],[[32,0],[30,[36,2],[[32,0,[\\\"isFocused\\\"]]],null],false],null],[30,[36,1],[[32,0],\\\"handleEnter\\\"],null],[30,[36,1],[[32,0],\\\"registerEditor\\\"],null]]],null]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"action\\\",\\\"mut\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-caption-input.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    koenigUi: Ember.inject.service(),\n    tagName: 'figcaption',\n    classNameBindings: ['figCaptionClass'],\n    caption: '',\n    captureInput: false,\n    placeholder: '',\n    _keypressHandler: null,\n    _keydownHandler: null,\n\n    update() {},\n\n    addParagraphAfterCard() {},\n\n    moveCursorToNextSection() {},\n\n    moveCursorToPrevSection() {},\n\n    figCaptionClass: Ember.computed(function () {\n      return `${(0, _kgStyle.kgStyle)(['figcaption'])} w-100 relative`;\n    }),\n\n    didReceiveAttrs() {\n      this._super(...arguments);\n\n      if (this.captureInput && !this._keypressHandler) {\n        this._attachHandlers();\n      }\n\n      if (!this.captureInput && this._keypressHandler) {\n        this._detachHandlers();\n      }\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this.koenigUi.captionLostFocus(this);\n\n      this._detachHandlers();\n    },\n\n    actions: {\n      registerEditor(editor) {\n        let commands = {\n          ENTER: Ember.run.bind(this, this._enter),\n          ESC: Ember.run.bind(this, this._escape),\n          UP: Ember.run.bind(this, this._upOrLeft),\n          LEFT: Ember.run.bind(this, this._upOrLeft),\n          DOWN: Ember.run.bind(this, this._rightOrDown),\n          RIGHT: Ember.run.bind(this, this._rightOrDown)\n        };\n        Object.keys(commands).forEach(str => {\n          editor.registerKeyCommand({\n            str,\n\n            run() {\n              return commands[str](editor, str);\n            }\n\n          });\n        });\n        this.editor = editor;\n      },\n\n      handleEnter() {\n        this.addParagraphAfterCard();\n      }\n\n    },\n\n    // events ------------------------------------------------------------------\n    focusIn() {\n      this.koenigUi.captionGainedFocus(this);\n    },\n\n    focusOut() {\n      this.koenigUi.captionLostFocus(this);\n    },\n\n    // private -----------------------------------------------------------------\n    _attachHandlers() {\n      if (!this._keypressHandler) {\n        this._keypressHandler = Ember.run.bind(this, this._handleKeypress);\n        window.addEventListener('keypress', this._keypressHandler);\n      }\n    },\n\n    _detachHandlers() {\n      window.removeEventListener('keypress', this._keypressHandler);\n      this._keypressHandler = null;\n      this._keydownHandler = null;\n    },\n\n    // only fires if the card is selected, moves focus to the caption input so\n    // that it's possible to start typing without explicitly focusing the input\n    _handleKeypress(event) {\n      let key = new _key.default(event);\n      let {\n        editor\n      } = this;\n\n      if (event.target.matches('[data-kg=\"editor\"]') && editor && !editor._hasFocus() && key.isPrintableKey() && !key.isEnter()) {\n        editor.focus();\n        editor.run(postEditor => {\n          postEditor.insertText(editor.post.tailPosition(), key.toString());\n        });\n        event.preventDefault();\n      }\n    },\n\n    /* key commands ----------------------------------------------------------*/\n    _enter() {\n      this.send('handleEnter');\n    },\n\n    _escape(editor) {\n      editor.element.blur();\n    },\n\n    _upOrLeft(editor, key) {\n      let {\n        isCollapsed,\n        head\n      } = editor.range;\n\n      if (isCollapsed && head.isEqual(head.section.headPosition())) {\n        return this.moveCursorToPrevSection();\n      } // we're simulating a text input so up/down move the cursor to the\n      // beginning/end of the input\n\n\n      if (isCollapsed && key === 'UP') {\n        return editor.selectRange(head.section.headPosition().toRange());\n      }\n\n      return false;\n    },\n\n    _rightOrDown(editor, key) {\n      let {\n        isCollapsed,\n        tail\n      } = editor.range;\n\n      if (isCollapsed && tail.isEqual(tail.section.tailPosition())) {\n        return this.moveCursorToNextSection();\n      } // we're simulating a text input so up/down move the cursor to the\n      // beginning/end of the input\n\n\n      if (isCollapsed && key === 'DOWN') {\n        return editor.selectRange(tail.section.tailPosition().toRange());\n      }\n\n      return false;\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-bookmark\", [\"exports\", \"koenig-editor/components/koenig-editor\", \"@tryghost/helpers\", \"ember-concurrency\"], function (_exports, _koenigEditor, _helpers, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @class=\"flex flex-column\"\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @onDeselect={{action \"onDeselect\"}}\n      @editCard={{action this.editCard}}\n      @saveAsSnippet={{if this.payload.metadata this.saveAsSnippet}}\n      @toolbar={{this.toolbar}}\n      @hasEditMode={{false}}\n      @showSelectedOutline={{this.payload.metadata}}\n      @addParagraphAfterCard={{this.addParagraphAfterCard}}\n      @moveCursorToPrevSection={{this.moveCursorToPrevSection}}\n      @moveCursorToNextSection={{this.moveCursorToNextSection}}\n      @editor={{this.editor}}\n      as |card|\n  >\n      {{#if this.payload.metadata}}\n          <div class=\"kg-card-hover\">\n              <div class=\"koenig-embed-{{this.payload.type}} flex justify-center relative\" data-kg-embed>\n                  {{!-- <iframe class=\"bn miw-100\" scrolling=\"no\"></iframe> --}}\n                  <figure class=\"kg-card kg-bookmark-card also-new-tag\">\n                      <a href={{this.payload.url}} class=\"kg-bookmark-container\">\n                          <div class=\"kg-bookmark-content\">\n                              <div class=\"kg-bookmark-title\">{{this.payload.metadata.title}}</div>\n                              <div class=\"kg-bookmark-description\">{{this.payload.metadata.description}}</div>\n                              <div class=\"kg-bookmark-metadata\">\n                                  {{#if this.payload.metadata.icon}}\n                                      <img src={{this.payload.metadata.icon}} class=\"kg-bookmark-icon\">\n                                  {{/if}}\n                                  {{#if this.payload.metadata.publisher}}\n                                      <span class=\"kg-bookmark-publisher\">{{this.payload.metadata.publisher}}</span>\n                                  {{/if}}\n                                  {{#if this.payload.metadata.author}}\n                                      <span class=\"kg-bookmark-author\">{{this.payload.metadata.author}}</span>\n                                  {{/if}}\n                              </div>\n                          </div>\n                          {{#if this.payload.metadata.thumbnail}}\n                              <div class=\"kg-bookmark-thumbnail\">\n                                  <img src={{this.payload.metadata.thumbnail}} >\n                              </div>\n                          {{/if}}\n                      </a>\n                  </figure>\n                  <div class=\"koenig-card-click-overlay ba b--transparent\" data-kg-overlay></div>\n              </div>\n  \n              {{#if (or this.isSelected (clean-basic-html this.payload.caption))}}\n                  <card.CaptionInput\n                      @caption={{this.payload.caption}}\n                      @update={{action \"updateCaption\"}}\n                      @placeholder=\"Type caption for bookmark (optional)\" />\n              {{/if}}\n          </div>\n      {{else}}\n          {{#if this.convertUrl.isRunning}}\n              <div class=\"miw-100 pa2 ba br2 b--lightgrey-d1 flex items-center justify-center bg-whitegrey-l2 f6 lh-title h10\">\n                  &nbsp;<div class=\"ghost-spinner spinner-blue\"></div>&nbsp;\n              </div>\n          {{else if this.hasError}}\n              <div class=\"miw-100 flex flex-row pa2 pl3 ba br2 b--red-l3 red bg-error-red f7 fw4 lh-title h10 items-center\">\n                  <span class=\"mr3\">{{or this.errorMessage \"There was an error when parsing the URL.\"}}</span>\n                  <button type=\"button\" class=\"red-d2 mr3 fw6 hover-red\" {{action \"retry\"}}><span class=\"underline\">Retry</span></button>\n                  <button type=\"button\" class=\"red-d2 mr-auto fw6 underline hover-red\" {{action \"insertAsLink\"}}><span class=\"underline\">Paste URL as link</span></button>\n                  <button type=\"button\" {{action this.deleteCard}} class=\"nudge-right--2\">\n                      {{svg-jar \"close\" class=\"w3 stroke-red-l3\"}}\n                  </button>\n              </div>\n          {{else}}\n              <input\n                  type=\"text\"\n                  value={{this.payload.url}}\n                  name=\"url\"\n                  placeholder=\"Paste URL to add bookmark content...\"\n                  class=\"miw-100 pa2 ba br2 b--lightgrey-d2 f7 form-text lh-title tracked-2 h10 nl2 nr2\"\n                  oninput={{action \"updateUrl\"}}\n                  onkeydown={{action \"urlKeydown\"}}>\n          {{/if}}\n      {{/if}}\n  </KoenigCard>\n  \n  */\n  {\n    \"id\": \"E8PaA38d\",\n    \"block\": \"{\\\"symbols\\\":[\\\"card\\\"],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@class\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@onDeselect\\\",\\\"@editCard\\\",\\\"@saveAsSnippet\\\",\\\"@toolbar\\\",\\\"@hasEditMode\\\",\\\"@showSelectedOutline\\\",\\\"@addParagraphAfterCard\\\",\\\"@moveCursorToPrevSection\\\",\\\"@moveCursorToNextSection\\\",\\\"@editor\\\"],[\\\"flex flex-column\\\",[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,0],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,0],[[32,0],\\\"onDeselect\\\"],null],[30,[36,0],[[32,0],[32,0,[\\\"editCard\\\"]]],null],[30,[36,3],[[32,0,[\\\"payload\\\",\\\"metadata\\\"]],[32,0,[\\\"saveAsSnippet\\\"]]],null],[32,0,[\\\"toolbar\\\"]],false,[32,0,[\\\"payload\\\",\\\"metadata\\\"]],[32,0,[\\\"addParagraphAfterCard\\\"]],[32,0,[\\\"moveCursorToPrevSection\\\"]],[32,0,[\\\"moveCursorToNextSection\\\"]],[32,0,[\\\"editor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,3],[[32,0,[\\\"payload\\\",\\\"metadata\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-card-hover\\\"],[12],[2,\\\"\\\\n            \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"koenig-embed-\\\",[32,0,[\\\"payload\\\",\\\"type\\\"]],\\\" flex justify-center relative\\\"]]],[14,\\\"data-kg-embed\\\",\\\"\\\"],[12],[2,\\\"\\\\n\\\"],[2,\\\"                \\\"],[10,\\\"figure\\\"],[14,0,\\\"kg-card kg-bookmark-card also-new-tag\\\"],[12],[2,\\\"\\\\n                    \\\"],[10,\\\"a\\\"],[15,6,[32,0,[\\\"payload\\\",\\\"url\\\"]]],[14,0,\\\"kg-bookmark-container\\\"],[12],[2,\\\"\\\\n                        \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-bookmark-content\\\"],[12],[2,\\\"\\\\n                            \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-bookmark-title\\\"],[12],[1,[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"title\\\"]]],[13],[2,\\\"\\\\n                            \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-bookmark-description\\\"],[12],[1,[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"description\\\"]]],[13],[2,\\\"\\\\n                            \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-bookmark-metadata\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,3],[[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"icon\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                                    \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"icon\\\"]]],[14,0,\\\"kg-bookmark-icon\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,3],[[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"publisher\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                                    \\\"],[10,\\\"span\\\"],[14,0,\\\"kg-bookmark-publisher\\\"],[12],[1,[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"publisher\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,3],[[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"author\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                                    \\\"],[10,\\\"span\\\"],[14,0,\\\"kg-bookmark-author\\\"],[12],[1,[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"author\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"                            \\\"],[13],[2,\\\"\\\\n                        \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,3],[[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"thumbnail\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                            \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-bookmark-thumbnail\\\"],[12],[2,\\\"\\\\n                                \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[32,0,[\\\"payload\\\",\\\"metadata\\\",\\\"thumbnail\\\"]]],[12],[13],[2,\\\"\\\\n                            \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"                    \\\"],[13],[2,\\\"\\\\n                \\\"],[13],[2,\\\"\\\\n                \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-card-click-overlay ba b--transparent\\\"],[14,\\\"data-kg-overlay\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,3],[[30,[36,1],[[32,0,[\\\"isSelected\\\"]],[30,[36,4],[[32,0,[\\\"payload\\\",\\\"caption\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[8,[32,1,[\\\"CaptionInput\\\"]],[],[[\\\"@caption\\\",\\\"@update\\\",\\\"@placeholder\\\"],[[32,0,[\\\"payload\\\",\\\"caption\\\"]],[30,[36,0],[[32,0],\\\"updateCaption\\\"],null],\\\"Type caption for bookmark (optional)\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,3],[[32,0,[\\\"convertUrl\\\",\\\"isRunning\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"div\\\"],[14,0,\\\"miw-100 pa2 ba br2 b--lightgrey-d1 flex items-center justify-center bg-whitegrey-l2 f6 lh-title h10\\\"],[12],[2,\\\"\\\\n                 \\\"],[10,\\\"div\\\"],[14,0,\\\"ghost-spinner spinner-blue\\\"],[12],[13],[2,\\\" \\\\n            \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,3],[[32,0,[\\\"hasError\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"div\\\"],[14,0,\\\"miw-100 flex flex-row pa2 pl3 ba br2 b--red-l3 red bg-error-red f7 fw4 lh-title h10 items-center\\\"],[12],[2,\\\"\\\\n                \\\"],[10,\\\"span\\\"],[14,0,\\\"mr3\\\"],[12],[1,[30,[36,1],[[32,0,[\\\"errorMessage\\\"]],\\\"There was an error when parsing the URL.\\\"],null]],[13],[2,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"red-d2 mr3 fw6 hover-red\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[32,0],\\\"retry\\\"],null],[12],[10,\\\"span\\\"],[14,0,\\\"underline\\\"],[12],[2,\\\"Retry\\\"],[13],[13],[2,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"red-d2 mr-auto fw6 underline hover-red\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[32,0],\\\"insertAsLink\\\"],null],[12],[10,\\\"span\\\"],[14,0,\\\"underline\\\"],[12],[2,\\\"Paste URL as link\\\"],[13],[13],[2,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"nudge-right--2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[32,0],[32,0,[\\\"deleteCard\\\"]]],null],[12],[2,\\\"\\\\n                    \\\"],[1,[30,[36,2],[\\\"close\\\"],[[\\\"class\\\"],[\\\"w3 stroke-red-l3\\\"]]]],[2,\\\"\\\\n                \\\"],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"input\\\"],[15,2,[32,0,[\\\"payload\\\",\\\"url\\\"]]],[14,3,\\\"url\\\"],[14,\\\"placeholder\\\",\\\"Paste URL to add bookmark content...\\\"],[14,0,\\\"miw-100 pa2 ba br2 b--lightgrey-d2 f7 form-text lh-title tracked-2 h10 nl2 nr2\\\"],[15,\\\"oninput\\\",[30,[36,0],[[32,0],\\\"updateUrl\\\"],null]],[15,\\\"onkeydown\\\",[30,[36,0],[[32,0],\\\"urlKeydown\\\"],null]],[14,4,\\\"text\\\"],[12],[13],[2,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"or\\\",\\\"svg-jar\\\",\\\"if\\\",\\\"clean-basic-html\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-bookmark.hbs\"\n    }\n  });\n\n  const {\n    countWords\n  } = _helpers.utils;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    ajax: Ember.inject.service(),\n    ghostPaths: Ember.inject.service(),\n    // attrs\n    payload: null,\n    isSelected: false,\n    isEditing: false,\n    // internal properties\n    hasError: false,\n\n    // closure actions\n    selectCard() {},\n\n    deselectCard() {},\n\n    editCard() {},\n\n    saveCard() {},\n\n    deleteCard() {},\n\n    moveCursorToNextSection() {},\n\n    moveCursorToPrevSection() {},\n\n    addParagraphAfterCard() {},\n\n    registerComponent() {},\n\n    counts: Ember.computed('payload.{metadata,caption}', function () {\n      let imgCount = 0;\n      let wordCount = 0;\n      let metadata = this.payload.metadata;\n      let caption = this.payload.caption;\n      imgCount = metadata && metadata.icon ? imgCount + 1 : imgCount;\n      imgCount = metadata && metadata.thumbnail ? imgCount + 1 : imgCount;\n      let metadataWordCount = metadata ? countWords(this.payload.metadata.title) + countWords(this.payload.metadata.description) : 0;\n      wordCount = countWords(caption) + metadataWordCount;\n      return {\n        imageCount: imgCount,\n        wordCount: wordCount\n      };\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      if (this.payload.url && !this.payload.metadata) {\n        this.convertUrl.perform(this.payload.url);\n      }\n\n      this.registerComponent(this);\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      this._focusInput();\n    },\n\n    actions: {\n      onDeselect() {\n        if (this.payload.url && !this.payload.metadata && !this.hasError) {\n          this.convertUrl.perform(this.payload.url);\n        } else {\n          this._deleteIfEmpty();\n        }\n      },\n\n      updateUrl(event) {\n        let url = event.target.value;\n        Ember.set(this.payload, 'url', url);\n      },\n\n      urlKeydown(event) {\n        if (event.key === 'Enter') {\n          event.preventDefault();\n          this.convertUrl.perform(this.payload.url);\n        }\n\n        if (event.key === 'Escape') {\n          event.target.blur();\n          this.deleteCard();\n        }\n      },\n\n      updateCaption(caption) {\n        Ember.set(this.payload, 'caption', caption);\n        this.saveCard(this.payload, false);\n      },\n\n      retry() {\n        this.set('errorMessage', null);\n        this.set('hasError', false);\n      },\n\n      insertAsLink(options = {\n        linkOnError: false\n      }) {\n        let {\n          range\n        } = this.editor;\n        this.editor.run(postEditor => {\n          let {\n            builder\n          } = postEditor;\n          let cardSection = this.env.postModel;\n          let p = builder.createMarkupSection('p');\n          let link = builder.createMarkup('a', {\n            href: this.payload.url\n          });\n          postEditor.replaceSection(cardSection, p);\n          postEditor.insertTextWithMarkup(p.toRange().head, this.payload.url, [link]); // if a user is typing further on in the doc (possible if embed\n          // was created automatically via paste of URL) then return the\n          // cursor so the card->link change doesn't cause a cursor jump\n\n          if (range.headSection !== cardSection) {\n            postEditor.setRange(range);\n          } // avoid adding an extra undo step when automatically creating\n          // link after an error so that an Undo after pasting a URL\n          // doesn't get stuck in a loop going through link->embed->link\n\n\n          if (options.linkOnError) {\n            postEditor.cancelSnapshot();\n          }\n        });\n      }\n\n    },\n    convertUrl: (0, _emberConcurrency.task)(function* (url) {\n      if (Ember.isBlank(url)) {\n        this.deleteCard();\n        return;\n      }\n\n      try {\n        let oembedEndpoint = this.ghostPaths.url.api('oembed');\n        let response = yield this.ajax.request(oembedEndpoint, {\n          data: {\n            url,\n            type: 'bookmark'\n          }\n        });\n\n        if (!response.metadata) {\n          throw 'No metadata returned';\n        }\n\n        Ember.set(this.payload, 'linkOnError', undefined);\n        Ember.set(this.payload, 'metadata', response.metadata);\n        this.saveCard(this.payload, false);\n      } catch (err) {\n        if (this.payload.linkOnError) {\n          this.send('insertAsLink', {\n            linkOnError: true\n          });\n          return;\n        }\n\n        if (err.payload.errors && err.payload.errors[0]) {\n          let [firstError] = err.payload.errors;\n          let errorMessage = firstError.context || firstError.message;\n          errorMessage = errorMessage.replace(url, '').trim();\n          this.set('errorMessage', errorMessage);\n        }\n\n        this.set('hasError', true);\n      }\n    }),\n\n    _focusInput() {\n      let urlInput = this.element.querySelector('[name=\"url\"]');\n\n      if (urlInput) {\n        urlInput.focus();\n      }\n    },\n\n    _deleteIfEmpty() {\n      if (Ember.isBlank(this.payload.metadata) && !this.convertUrl.isRunning && !this.hasError) {\n        this.deleteCard(_koenigEditor.NO_CURSOR_MOVEMENT);\n      }\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-code\", [\"exports\", \"@tryghost/helpers\"], function (_exports, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @class={{concat \"ba b--white relative kg-card-hover miw-100\" (if this.isEditing \" bw2 pt1 pb1 pl2 nl6 pr6 nr6\")}}\n      @style={{this.cardStyle}}\n      @headerOffset={{this.headerOffset}}\n      @toolbar={{this.toolbar}}\n      @payload={{this.payload}}\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @editCard={{action this.editCard}}\n      @saveCard={{action this.saveCard}}\n      @saveAsSnippet={{this.saveAsSnippet}}\n      @onEnterEdit={{action \"enterEditMode\"}}\n      @onLeaveEdit={{action \"leaveEditMode\"}}\n      @addParagraphAfterCard={{this.addParagraphAfterCard}}\n      @moveCursorToPrevSection={{this.moveCursorToPrevSection}}\n      @moveCursorToNextSection={{this.moveCursorToNextSection}}\n      @editor={{this.editor}}\n      as |card|\n  >\n      {{#if this.isEditing}}\n          <GhCmEditor @value={{this.payload.code}}\n              @class=\"koenig-card-code--editor koenig-card-html--editor\"\n              @textareaClass=\"o-0\"\n              @autofocus={{true}}\n              @lineWrapping={{true}}\n              @update={{action \"updateCode\"}}\n              @mode={{this.cmMode}}\n          />\n          <input\n              type=\"text\"\n              value={{readonly this.payload.language}}\n              onblur={{action (mut this.payload.language) value=\"target.value\"}}\n              placeholder=\"Language...\"\n              class=\"absolute w-20 pa1 ba b--lightgrey br2 f8 tracked-2 fw4 z-999 outline-0 anim-normal\"\n              style={{this.languageInputStyle}}\n          />\n      {{else}}\n          <div class=\"koenig-card-html-rendered\">\n              <pre><code class=\"line-numbers {{if this.payload.language (concat \"language-\" this.payload.language)}}\">{{this.escapedCode}}</code></pre>\n          </div>\n          {{#if this.payload.language}}\n              <div class=\"absolute top-2 right-2 flex justify-center items-center pa2\">\n                  <span class=\"db nudge-top--2 fw5 f8 midlightgrey\">{{this.payload.language}}</span>\n              </div>\n          {{/if}}\n          <div class=\"koenig-card-click-overlay\"></div>\n      {{/if}}\n  \n      {{#if (and (not this.isEditing) (or this.isSelected (clean-basic-html this.payload.caption)))}}\n          <card.CaptionInput\n              @class=\"z-999\"\n              @caption={{this.payload.caption}}\n              @update={{action \"updateCaption\"}}\n              @placeholder=\"Type caption for code block (optional)\"\n          />\n      {{/if}}\n  </KoenigCard>\n  */\n  {\n    \"id\": \"+Y9SdCjz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"card\\\"],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@class\\\",\\\"@style\\\",\\\"@headerOffset\\\",\\\"@toolbar\\\",\\\"@payload\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@saveCard\\\",\\\"@saveAsSnippet\\\",\\\"@onEnterEdit\\\",\\\"@onLeaveEdit\\\",\\\"@addParagraphAfterCard\\\",\\\"@moveCursorToPrevSection\\\",\\\"@moveCursorToNextSection\\\",\\\"@editor\\\"],[[30,[36,1],[\\\"ba b--white relative kg-card-hover miw-100\\\",[30,[36,2],[[32,0,[\\\"isEditing\\\"]],\\\" bw2 pt1 pb1 pl2 nl6 pr6 nr6\\\"],null]],null],[32,0,[\\\"cardStyle\\\"]],[32,0,[\\\"headerOffset\\\"]],[32,0,[\\\"toolbar\\\"]],[32,0,[\\\"payload\\\"]],[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,0],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"editCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"saveCard\\\"]]],null],[32,0,[\\\"saveAsSnippet\\\"]],[30,[36,0],[[32,0],\\\"enterEditMode\\\"],null],[30,[36,0],[[32,0],\\\"leaveEditMode\\\"],null],[32,0,[\\\"addParagraphAfterCard\\\"]],[32,0,[\\\"moveCursorToPrevSection\\\"]],[32,0,[\\\"moveCursorToNextSection\\\"]],[32,0,[\\\"editor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"isEditing\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,\\\"gh-cm-editor\\\",[],[[\\\"@value\\\",\\\"@class\\\",\\\"@textareaClass\\\",\\\"@autofocus\\\",\\\"@lineWrapping\\\",\\\"@update\\\",\\\"@mode\\\"],[[32,0,[\\\"payload\\\",\\\"code\\\"]],\\\"koenig-card-code--editor koenig-card-html--editor\\\",\\\"o-0\\\",true,true,[30,[36,0],[[32,0],\\\"updateCode\\\"],null],[32,0,[\\\"cmMode\\\"]]]],null],[2,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[15,2,[30,[36,3],[[32,0,[\\\"payload\\\",\\\"language\\\"]]],null]],[15,\\\"onblur\\\",[30,[36,0],[[32,0],[30,[36,4],[[32,0,[\\\"payload\\\",\\\"language\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,\\\"placeholder\\\",\\\"Language...\\\"],[14,0,\\\"absolute w-20 pa1 ba b--lightgrey br2 f8 tracked-2 fw4 z-999 outline-0 anim-normal\\\"],[15,5,[32,0,[\\\"languageInputStyle\\\"]]],[14,4,\\\"text\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-card-html-rendered\\\"],[12],[2,\\\"\\\\n            \\\"],[10,\\\"pre\\\"],[12],[10,\\\"code\\\"],[15,0,[31,[\\\"line-numbers \\\",[30,[36,2],[[32,0,[\\\"payload\\\",\\\"language\\\"]],[30,[36,1],[\\\"language-\\\",[32,0,[\\\"payload\\\",\\\"language\\\"]]],null]],null]]]],[12],[1,[32,0,[\\\"escapedCode\\\"]]],[13],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"payload\\\",\\\"language\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"div\\\"],[14,0,\\\"absolute top-2 right-2 flex justify-center items-center pa2\\\"],[12],[2,\\\"\\\\n                \\\"],[10,\\\"span\\\"],[14,0,\\\"db nudge-top--2 fw5 f8 midlightgrey\\\"],[12],[1,[32,0,[\\\"payload\\\",\\\"language\\\"]]],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"        \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-card-click-overlay\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,2],[[30,[36,8],[[30,[36,7],[[32,0,[\\\"isEditing\\\"]]],null],[30,[36,6],[[32,0,[\\\"isSelected\\\"]],[30,[36,5],[[32,0,[\\\"payload\\\",\\\"caption\\\"]]],null]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,[32,1,[\\\"CaptionInput\\\"]],[],[[\\\"@class\\\",\\\"@caption\\\",\\\"@update\\\",\\\"@placeholder\\\"],[\\\"z-999\\\",[32,0,[\\\"payload\\\",\\\"caption\\\"]],[30,[36,0],[[32,0],\\\"updateCaption\\\"],null],\\\"Type caption for code block (optional)\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"concat\\\",\\\"if\\\",\\\"readonly\\\",\\\"mut\\\",\\\"clean-basic-html\\\",\\\"or\\\",\\\"not\\\",\\\"and\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-code.hbs\"\n    }\n  });\n\n  const {\n    Handlebars\n  } = Ember;\n  const {\n    countWords\n  } = _helpers.utils;\n  const CM_MODE_MAP = {\n    html: 'htmlmixed',\n    xhtml: 'htmlmixed',\n    hbs: 'handlebars',\n    js: 'javascript'\n  };\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    // attrs\n    payload: null,\n    isSelected: false,\n    isEditing: false,\n    headerOffset: 0,\n    showLanguageInput: true,\n\n    // closure actions\n    editCard() {},\n\n    saveCard() {},\n\n    selectCard() {},\n\n    deselectCard() {},\n\n    deleteCard() {},\n\n    registerComponent() {},\n\n    moveCursorToNextSection() {},\n\n    moveCursorToPrevSection() {},\n\n    addParagraphAfterCard() {},\n\n    counts: Ember.computed('payload.code', function () {\n      return {\n        wordCount: countWords(this.payload.code)\n      };\n    }),\n    toolbar: Ember.computed('isEditing', function () {\n      if (this.isEditing) {\n        return false;\n      }\n\n      return {\n        items: [{\n          buttonClass: 'fw4 flex items-center white',\n          icon: 'koenig/kg-edit',\n          iconClass: 'fill-white',\n          title: 'Edit',\n          text: '',\n          action: Ember.run.bind(this, this.editCard)\n        }]\n      };\n    }),\n    escapedCode: Ember.computed('payload.code', function () {\n      let escapedCode = Handlebars.Utils.escapeExpression(this.payload.code);\n      return Ember.String.htmlSafe(escapedCode);\n    }),\n    cmMode: Ember.computed('payload.language', function () {\n      let {\n        language\n      } = this.payload;\n      return CM_MODE_MAP[language] || language;\n    }),\n    cardStyle: Ember.computed('isEditing', function () {\n      let style = this.isEditing ? 'background-color: #f4f8fb; border-color: #f4f8fb' : '';\n      return Ember.String.htmlSafe(style);\n    }),\n    languageInputStyle: Ember.computed('showLanguageInput', function () {\n      let styles = ['top: 6px', 'right: 6px'];\n\n      if (!this.showLanguageInput) {\n        styles.push('opacity: 0');\n      }\n\n      return Ember.String.htmlSafe(styles.join('; '));\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      let payload = this.payload || {}; // CodeMirror errors on a `null` or `undefined` value\n\n      if (!payload.code) {\n        Ember.set(payload, 'code', '');\n      }\n\n      this.set('payload', payload);\n      this.registerComponent(this);\n    },\n\n    actions: {\n      updateCode(code) {\n        this._hideLanguageInput();\n\n        this._updatePayloadAttr('code', code);\n      },\n\n      updateCaption(caption) {\n        this._updatePayloadAttr('caption', caption);\n      },\n\n      enterEditMode() {\n        this._addMousemoveHandler();\n      },\n\n      leaveEditMode() {\n        this._removeMousemoveHandler();\n\n        if (Ember.isBlank(this.payload.code)) {\n          // afterRender is required to avoid double modification of `isSelected`\n          // TODO: see if there's a way to avoid afterRender\n          Ember.run.scheduleOnce('afterRender', this, this.deleteCard);\n        }\n      }\n\n    },\n\n    _updatePayloadAttr(attr, value) {\n      let payload = this.payload;\n      let save = this.saveCard;\n      Ember.set(payload, attr, value); // update the mobiledoc and stay in edit mode\n\n      save(payload, false);\n    },\n\n    _hideLanguageInput() {\n      this.set('showLanguageInput', false);\n    },\n\n    _showLanguageInput() {\n      this.set('showLanguageInput', true);\n    },\n\n    _addMousemoveHandler() {\n      this._mousemoveHandler = Ember.run.bind(this, this._showLanguageInput);\n      window.addEventListener('mousemove', this._mousemoveHandler);\n    },\n\n    _removeMousemoveHandler() {\n      window.removeEventListener('mousemove', this._mousemoveHandler);\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-email-cta\", [\"exports\", \"mobiledoc-kit/utils/browser\", \"@glimmer/component\", \"koenig-editor/components/koenig-text-replacement-html-input\"], function (_exports, _browser, _component, _koenigTextReplacementHtmlInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @icon={{\"koenig/card-indicator-email\"}}\n      @class={{concat (kg-style \"container-card\") \" kg-email-card mih10 miw-100 relative\"}}\n      @style={{@cardStyle}}\n      @headerOffset={{@headerOffset}}\n      @toolbar={{this.toolbar}}\n      @payload={{@payload}}\n      @isSelected={{@isSelected}}\n      @isEditing={{@isEditing}}\n      @selectCard={{@selectCard}}\n      @deselectCard={{@deselectCard}}\n      @editCard={{@editCard}}\n      @saveCard={{@saveCard}}\n      @saveAsSnippet={{@saveAsSnippet}}\n      @onLeaveEdit={{this.leaveEditMode}}\n      @addParagraphAfterCard={{@addParagraphAfterCard}}\n      @moveCursorToPrevSection={{@moveCursorToPrevSection}}\n      @moveCursorToNextSection={{@moveCursorToNextSection}}\n      @editor={{@editor}}\n      as |card|\n  >\n      {{#if @isEditing}}\n  \n          <div class=\"kg-card-help kg-card-help-labs\">\n              <p>\n                  <span>\n                      Only visible to\n                      <PowerSelect\n                          @options={{this.segments}}\n                          @selected={{this.selectedSegment}}\n                          @onChange={{this.setSegment}}\n                          @searchEnabled={{false}}\n                          @triggerComponent=\"gh-power-select/trigger\"\n                          @triggerClass=\"ember-power-select-inline ember-power-select-inline-labs\"\n                          @dropdownClass=\"gh-member-segment-select-dropdown\"\n                          as |segment|\n                      >\n                          {{segment.name}}\n                      </PowerSelect>\n                      when delivered by email.\n                      This card will not be published on your site.\n                  </span>\n              </p>\n          </div>\n  \n          <KoenigTextReplacementHtmlInput\n              @html={{@payload.html}}\n              @placeholder=\"Email only text... (optional)\"\n              @autofocus={{true}}\n              @class=\"miw-100 bn bg-transparent\"\n              @onChange={{this.updateHtml}}\n              @onFocus={{fn (mut this.contentFocused) true}}\n              @onBlur={{fn (mut this.contentFocused) false}}\n              @didCreateEditor={{this.registerEditor}}\n          />\n          <form class=\"flex mt6\">\n              <label for=\"button-text-input\" class=\"sr-only\">CTA button text</label>\n              <input\n                  type=\"text\"\n                  class=\"gh-btn email-cta-button-text-input\"\n                  id=\"button-text-input\"\n                  name=\"button-text\"\n                  value={{@payload.buttonText}}\n                  placeholder={{if this.buttonFocused \"\" \"Add button text\"}}\n                  {{on \"input\" this.setButtonText}}\n                  {{on \"focus\" (fn (mut this.buttonFocused) true)}}\n                  {{on \"blur\" (fn (mut this.buttonFocused) false)}}\n                  {{on-key \"Enter\" (fn this.focusElement \"#button-url-input\")}}\n              >\n  \n              <label for=\"button-url-input\" class=\"sr-only\">CTA URL</label>\n              <GhInputWithSelect\n                  @value={{@payload.buttonUrl}}\n                  @options={{this.suggestedUrls}}\n                  @valueField=\"url\"\n                  @searchField=\"url\"\n                  @placeholder=\"https://yoursite.com/#/portal/signup/\"\n                  @searchMessage={{null}}\n                  @onInput={{this.setButtonUrl}}\n                  @openOnFocus={{true}}\n                  @closeWhenEmpty={{true}}\n                  @triggerClass=\"email-cta-button-url-input\"\n                  @renderInPlace={{false}} {{!-- avoid dropdown inheriting editor styles --}}\n                  as |suggestion|\n              >\n                  <span class=\"db b\">{{suggestion.name}}</span>\n                  {{suggestion.url}}\n              </GhInputWithSelect>\n  \n              <div class=\"gh-btn-group icons\">\n                  <button type=\"button\" class=\"gh-btn gh-btn-icon {{if (eq @payload.buttonAlignment \"left\") \"gh-btn-group-selected\"}}\" {{on \"click\" (fn this.setButtonAlignment \"left\")}}><span>{{svg-jar \"align-left\"}}</span></button>\n                  <button type=\"button\" class=\"gh-btn gh-btn-icon {{if (eq @payload.buttonAlignment \"center\") \"gh-btn-group-selected\"}}\" {{on \"click\" (fn this.setButtonAlignment \"center\")}}><span>{{svg-jar \"align-center\"}}</span></button>\n              </div>\n          </form>\n      {{else}}\n          <div class=\"gh-email-cta-segment-indicator\">\n              <p>{{capitalize this.selectedSegment.name}}</p>\n          </div>\n  \n          {{#if this.hasTopDivider}}<hr class=\"border-top\">{{/if}}\n  \n          {{#if @payload.html}}\n              <div class=\"relative\">\n                  <p>{{{this.formattedHtml}}}</p>\n                  <div class=\"koenig-card-click-overlay\"></div>\n              </div>\n          {{/if}}\n  \n          {{#if (and @payload.buttonText @payload.buttonUrl)}}\n              <div class=\"{{if @payload.html \"mt6\"}} {{if (eq @payload.buttonAlignment \"center\") \"tc\"}}\"><a class=\"gh-btn gh-btn-accent\" href=\"javascript:void(0)\" data-tooltip={{@payload.buttonUrl}}><span>{{@payload.buttonText}}</span></a></div>\n          {{/if}}\n  \n          {{#if this.hasBottomDivider}}<hr class=\"border-bottom\">{{/if}}\n  \n      {{/if}}\n  \n  \n  </KoenigCard>\n  \n  */\n  {\n    \"id\": \"DrEf7wyU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"card\\\",\\\"suggestion\\\",\\\"segment\\\",\\\"@payload\\\",\\\"@cardStyle\\\",\\\"@headerOffset\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@saveCard\\\",\\\"@saveAsSnippet\\\",\\\"@addParagraphAfterCard\\\",\\\"@moveCursorToPrevSection\\\",\\\"@moveCursorToNextSection\\\",\\\"@editor\\\"],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@icon\\\",\\\"@class\\\",\\\"@style\\\",\\\"@headerOffset\\\",\\\"@toolbar\\\",\\\"@payload\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@saveCard\\\",\\\"@saveAsSnippet\\\",\\\"@onLeaveEdit\\\",\\\"@addParagraphAfterCard\\\",\\\"@moveCursorToPrevSection\\\",\\\"@moveCursorToNextSection\\\",\\\"@editor\\\"],[\\\"koenig/card-indicator-email\\\",[30,[36,10],[[30,[36,9],[\\\"container-card\\\"],null],\\\" kg-email-card mih10 miw-100 relative\\\"],null],[32,5],[32,6],[32,0,[\\\"toolbar\\\"]],[32,4],[32,7],[32,8],[32,9],[32,10],[32,11],[32,12],[32,13],[32,0,[\\\"leaveEditMode\\\"]],[32,14],[32,15],[32,16],[32,17]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,1],[[32,8]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n        \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-card-help kg-card-help-labs\\\"],[12],[2,\\\"\\\\n            \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n                \\\"],[10,\\\"span\\\"],[12],[2,\\\"\\\\n                    Only visible to\\\\n                    \\\"],[8,\\\"power-select\\\",[],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@triggerComponent\\\",\\\"@triggerClass\\\",\\\"@dropdownClass\\\"],[[32,0,[\\\"segments\\\"]],[32,0,[\\\"selectedSegment\\\"]],[32,0,[\\\"setSegment\\\"]],false,\\\"gh-power-select/trigger\\\",\\\"ember-power-select-inline ember-power-select-inline-labs\\\",\\\"gh-member-segment-select-dropdown\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n                        \\\"],[1,[32,3,[\\\"name\\\"]]],[2,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[3]}]]],[2,\\\"\\\\n                    when delivered by email.\\\\n                    This card will not be published on your site.\\\\n                \\\"],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n\\\\n        \\\"],[8,\\\"koenig-text-replacement-html-input\\\",[],[[\\\"@html\\\",\\\"@placeholder\\\",\\\"@autofocus\\\",\\\"@class\\\",\\\"@onChange\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@didCreateEditor\\\"],[[32,4,[\\\"html\\\"]],\\\"Email only text... (optional)\\\",true,\\\"miw-100 bn bg-transparent\\\",[32,0,[\\\"updateHtml\\\"]],[30,[36,5],[[30,[36,4],[[32,0,[\\\"contentFocused\\\"]]],null],true],null],[30,[36,5],[[30,[36,4],[[32,0,[\\\"contentFocused\\\"]]],null],false],null],[32,0,[\\\"registerEditor\\\"]]]],null],[2,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"flex mt6\\\"],[12],[2,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"button-text-input\\\"],[14,0,\\\"sr-only\\\"],[12],[2,\\\"CTA button text\\\"],[13],[2,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"gh-btn email-cta-button-text-input\\\"],[24,1,\\\"button-text-input\\\"],[24,3,\\\"button-text\\\"],[16,2,[32,4,[\\\"buttonText\\\"]]],[16,\\\"placeholder\\\",[30,[36,1],[[32,0,[\\\"buttonFocused\\\"]],\\\"\\\",\\\"Add button text\\\"],null]],[24,4,\\\"text\\\"],[4,[38,6],[\\\"input\\\",[32,0,[\\\"setButtonText\\\"]]],null],[4,[38,6],[\\\"focus\\\",[30,[36,5],[[30,[36,4],[[32,0,[\\\"buttonFocused\\\"]]],null],true],null]],null],[4,[38,6],[\\\"blur\\\",[30,[36,5],[[30,[36,4],[[32,0,[\\\"buttonFocused\\\"]]],null],false],null]],null],[4,[38,7],[\\\"Enter\\\",[30,[36,5],[[32,0,[\\\"focusElement\\\"]],\\\"#button-url-input\\\"],null]],null],[12],[13],[2,\\\"\\\\n\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"button-url-input\\\"],[14,0,\\\"sr-only\\\"],[12],[2,\\\"CTA URL\\\"],[13],[2,\\\"\\\\n            \\\"],[8,\\\"gh-input-with-select\\\",[],[[\\\"@value\\\",\\\"@options\\\",\\\"@valueField\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@searchMessage\\\",\\\"@onInput\\\",\\\"@openOnFocus\\\",\\\"@closeWhenEmpty\\\",\\\"@triggerClass\\\",\\\"@renderInPlace\\\"],[[32,4,[\\\"buttonUrl\\\"]],[32,0,[\\\"suggestedUrls\\\"]],\\\"url\\\",\\\"url\\\",\\\"https://yoursite.com/#/portal/signup/\\\",null,[32,0,[\\\"setButtonUrl\\\"]],true,true,\\\"email-cta-button-url-input\\\",false]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n                \\\"],[10,\\\"span\\\"],[14,0,\\\"db b\\\"],[12],[1,[32,2,[\\\"name\\\"]]],[13],[2,\\\"\\\\n                \\\"],[1,[32,2,[\\\"url\\\"]]],[2,\\\"\\\\n            \\\"]],\\\"parameters\\\":[2]}]]],[2,\\\"\\\\n\\\\n            \\\"],[10,\\\"div\\\"],[14,0,\\\"gh-btn-group icons\\\"],[12],[2,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[16,0,[31,[\\\"gh-btn gh-btn-icon \\\",[30,[36,1],[[30,[36,0],[[32,4,[\\\"buttonAlignment\\\"]],\\\"left\\\"],null],\\\"gh-btn-group-selected\\\"],null]]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,[36,5],[[32,0,[\\\"setButtonAlignment\\\"]],\\\"left\\\"],null]],null],[12],[10,\\\"span\\\"],[12],[1,[30,[36,8],[\\\"align-left\\\"],null]],[13],[13],[2,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[16,0,[31,[\\\"gh-btn gh-btn-icon \\\",[30,[36,1],[[30,[36,0],[[32,4,[\\\"buttonAlignment\\\"]],\\\"center\\\"],null],\\\"gh-btn-group-selected\\\"],null]]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,[36,5],[[32,0,[\\\"setButtonAlignment\\\"]],\\\"center\\\"],null]],null],[12],[10,\\\"span\\\"],[12],[1,[30,[36,8],[\\\"align-center\\\"],null]],[13],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"div\\\"],[14,0,\\\"gh-email-cta-segment-indicator\\\"],[12],[2,\\\"\\\\n            \\\"],[10,\\\"p\\\"],[12],[1,[30,[36,2],[[32,0,[\\\"selectedSegment\\\",\\\"name\\\"]]],null]],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n\\\\n        \\\"],[6,[37,1],[[32,0,[\\\"hasTopDivider\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[10,\\\"hr\\\"],[14,0,\\\"border-top\\\"],[12],[13]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,1],[[32,4,[\\\"html\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"div\\\"],[14,0,\\\"relative\\\"],[12],[2,\\\"\\\\n                \\\"],[10,\\\"p\\\"],[12],[2,[32,0,[\\\"formattedHtml\\\"]]],[13],[2,\\\"\\\\n                \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-card-click-overlay\\\"],[12],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,1],[[30,[36,3],[[32,4,[\\\"buttonText\\\"]],[32,4,[\\\"buttonUrl\\\"]]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"div\\\"],[15,0,[31,[[30,[36,1],[[32,4,[\\\"html\\\"]],\\\"mt6\\\"],null],\\\" \\\",[30,[36,1],[[30,[36,0],[[32,4,[\\\"buttonAlignment\\\"]],\\\"center\\\"],null],\\\"tc\\\"],null]]]],[12],[10,\\\"a\\\"],[14,0,\\\"gh-btn gh-btn-accent\\\"],[14,6,\\\"javascript:void(0)\\\"],[15,\\\"data-tooltip\\\",[32,4,[\\\"buttonUrl\\\"]]],[12],[10,\\\"span\\\"],[12],[1,[32,4,[\\\"buttonText\\\"]]],[13],[13],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n        \\\"],[6,[37,1],[[32,0,[\\\"hasBottomDivider\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[10,\\\"hr\\\"],[14,0,\\\"border-bottom\\\"],[12],[13]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"eq\\\",\\\"if\\\",\\\"capitalize\\\",\\\"and\\\",\\\"mut\\\",\\\"fn\\\",\\\"on\\\",\\\"on-key\\\",\\\"svg-jar\\\",\\\"kg-style\\\",\\\"concat\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-email-cta.hbs\"\n    }\n  });\n\n  let KoenigCardEmailCtaComponent = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, (_class = class KoenigCardEmailCtaComponent extends _component.default {\n    get formattedHtml() {\n      return (0, _koenigTextReplacementHtmlInput.formatTextReplacementHtml)(this.args.payload.html);\n    }\n\n    get segments() {\n      return [{\n        name: 'free members',\n        filter: 'status:free'\n      }, {\n        name: 'paid members',\n        filter: 'status:-free'\n      }];\n    }\n\n    get selectedSegment() {\n      return this.segments.find(segment => segment.filter === this.args.payload.segment);\n    }\n\n    get hasTopDivider() {\n      var _this$args$payload;\n\n      return !!((_this$args$payload = this.args.payload) !== null && _this$args$payload !== void 0 && _this$args$payload.dividerTop);\n    }\n\n    get hasBottomDivider() {\n      var _this$args$payload2;\n\n      return !!((_this$args$payload2 = this.args.payload) !== null && _this$args$payload2 !== void 0 && _this$args$payload2.dividerBottom);\n    }\n\n    get toolbar() {\n      if (this.args.isEditing) {\n        return false;\n      }\n\n      return {\n        items: [{\n          title: 'Top divider',\n          icon: 'koenig/kg-cta-bordertop',\n          iconClass: this.hasTopDivider ? 'fill-green-l2' : 'fill-white',\n          action: Ember.run.bind(this, this.toggleDivider, 'top')\n        }, {\n          title: 'Bottom divider',\n          icon: 'koenig/kg-cta-borderbottom',\n          iconClass: this.hasBottomDivider ? 'fill-green-l2' : 'fill-white',\n          action: Ember.run.bind(this, this.toggleDivider, 'bottom')\n        }, {\n          divider: true\n        }, {\n          buttonClass: 'fw4 flex items-center white',\n          icon: 'koenig/kg-edit',\n          iconClass: 'fill-white',\n          title: 'Edit',\n          text: '',\n          action: Ember.run.bind(this, this.args.editCard)\n        }]\n      };\n    }\n\n    get suggestedUrls() {\n      return [{\n        name: `Link to ${this.config.get('blogTitle')}`,\n        url: this.config.getSiteUrl('/')\n      }, {\n        name: 'Signup',\n        url: this.config.getSiteUrl('/#/portal/signup')\n      }, {\n        name: 'Upgrade or change plan',\n        url: this.config.getSiteUrl('/#/portal/account/plans')\n      }];\n    }\n\n    constructor() {\n      super(...arguments);\n\n      _initializerDefineProperty(this, \"config\", _descriptor, this);\n\n      _initializerDefineProperty(this, \"ui\", _descriptor2, this);\n\n      _initializerDefineProperty(this, \"buttonFocused\", _descriptor3, this);\n\n      _initializerDefineProperty(this, \"contentFocused\", _descriptor4, this);\n\n      this.args.registerComponent(this);\n\n      if (!this.args.payload.segment) {\n        this._updatePayloadAttr('segment', 'status:free');\n      }\n\n      if (!this.args.payload.buttonAlignment) {\n        this._updatePayloadAttr('buttonAlignment', 'left');\n      }\n    }\n\n    updateHtml(html) {\n      this._updatePayloadAttr('html', html);\n    }\n\n    setSegment(segment) {\n      this._updatePayloadAttr('segment', segment.filter);\n    }\n\n    setButtonText(event) {\n      this._updatePayloadAttr('buttonText', event.target.value);\n    }\n\n    setButtonUrl(url) {\n      this._updatePayloadAttr('buttonUrl', url);\n    }\n\n    setButtonAlignment(alignment, event) {\n      event.preventDefault();\n\n      this._updatePayloadAttr('buttonAlignment', alignment);\n    }\n\n    toggleDivider(border) {\n      if (border === 'top') {\n        this._updatePayloadAttr('dividerTop', !this.hasTopDivider);\n      }\n\n      if (border === 'bottom') {\n        this._updatePayloadAttr('dividerBottom', !this.hasBottomDivider);\n      }\n    }\n\n    registerEditor(textReplacementEditor) {\n      let commands = {\n        'META+ENTER': Ember.run.bind(this, this._enter, 'meta'),\n        'CTRL+ENTER': Ember.run.bind(this, this._enter, 'ctrl')\n      };\n      Object.keys(commands).forEach(str => {\n        textReplacementEditor.registerKeyCommand({\n          str,\n\n          run() {\n            return commands[str](textReplacementEditor, str);\n          }\n\n        });\n      });\n      this._textReplacementEditor = textReplacementEditor;\n      Ember.run.scheduleOnce('afterRender', this, this._placeCursorAtEnd);\n    }\n\n    leaveEditMode() {\n      const {\n        html,\n        buttonText,\n        buttonUrl\n      } = this.args.payload;\n\n      if (Ember.isBlank(html) && Ember.isBlank(buttonText) && Ember.isBlank(buttonUrl)) {\n        // afterRender is required to avoid double modification of `isSelected`\n        // TODO: see if there's a way to avoid afterRender\n        Ember.run.scheduleOnce('afterRender', this, this.args.deleteCard);\n      }\n    }\n\n    blurElement(event) {\n      event.preventDefault();\n      event.target.blur();\n    }\n\n    focusElement(selector, event) {\n      var _document$querySelect;\n\n      event.preventDefault();\n      (_document$querySelect = document.querySelector(selector)) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.focus();\n    }\n\n    _updatePayloadAttr(attr, value) {\n      var _this$args$saveCard, _this$args;\n\n      let payload = this.args.payload;\n      Ember.set(payload, attr, value); // update the mobiledoc and stay in edit mode\n\n      (_this$args$saveCard = (_this$args = this.args).saveCard) === null || _this$args$saveCard === void 0 ? void 0 : _this$args$saveCard.call(_this$args, payload, false);\n    }\n    /* key commands ----------------------------------------------------------*/\n\n\n    _enter(modifier) {\n      if (this.isEditing && (modifier === 'meta' || modifier === 'crtl' && _browser.default.isWin())) {\n        var _this$args$editCard, _this$args2;\n\n        (_this$args$editCard = (_this$args2 = this.args).editCard) === null || _this$args$editCard === void 0 ? void 0 : _this$args$editCard.call(_this$args2);\n      }\n    }\n\n    _placeCursorAtEnd() {\n      if (!this._textReplacementEditor) {\n        return;\n      }\n\n      let tailPosition = this._textReplacementEditor.post.tailPosition();\n\n      let rangeToSelect = tailPosition.toRange();\n\n      this._textReplacementEditor.selectRange(rangeToSelect);\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"config\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"ui\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"buttonFocused\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"contentFocused\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateHtml\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"updateHtml\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSegment\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setSegment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setButtonText\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"setButtonText\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setButtonUrl\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setButtonUrl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setButtonAlignment\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setButtonAlignment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDivider\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDivider\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerEditor\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"registerEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"leaveEditMode\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"leaveEditMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"blurElement\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"blurElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusElement\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"focusElement\"), _class.prototype)), _class));\n  _exports.default = KoenigCardEmailCtaComponent;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, KoenigCardEmailCtaComponent);\n});","define(\"koenig-editor/components/koenig-card-email\", [\"exports\", \"mobiledoc-kit/utils/browser\", \"koenig-editor/components/koenig-text-replacement-html-input\"], function (_exports, _browser, _koenigTextReplacementHtmlInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @icon=\"koenig/card-indicator-email\"\n      @class={{concat (kg-style \"container-card\") \" kg-email-card mih10 miw-100 relative\"}}\n      @style={{this.cardStyle}}\n      @headerOffset={{this.headerOffset}}\n      @toolbar={{this.toolbar}}\n      @payload={{this.payload}}\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @editCard={{action this.editCard}}\n      @saveCard={{action this.saveCard}}\n      @saveAsSnippet={{this.saveAsSnippet}}\n      @onLeaveEdit={{action \"leaveEditMode\"}}\n      @addParagraphAfterCard={{this.addParagraphAfterCard}}\n      @moveCursorToPrevSection={{this.moveCursorToPrevSection}}\n      @moveCursorToNextSection={{this.moveCursorToNextSection}}\n      @editor={{this.editor}}\n      as |card|\n  >\n      {{#if this.isEditing}}\n          <KoenigTextReplacementHtmlInput\n              @html={{this.payload.html}}\n              @placeholder=\"Email only text...\"\n              @autofocus={{true}}\n              @class=\"miw-100 bn bg-transparent\"\n              @onChange={{action \"updateHtml\"}}\n              @onFocus={{action (mut this.isFocused) true}}\n              @onBlur={{action (mut this.isFocused) false}}\n              @didCreateEditor={{action \"registerEditor\"}}\n          />\n          <div class=\"kg-card-help\">\n              <p>\n                  <span>Only visible when delivered by email, this card will not be published on your site.</span>\n                  <a href=\"https://ghost.org/help/email-newsletters/#email-cards\" class=\"dib lh-zero v-mid kg-card-help-icon-link\" target=\"_blank\" rel=\"noreferer nopener\">{{svg-jar \"help\" class=\"stroke-midgrey\"}}</a>\n              </p>\n          </div>\n      {{else}}\n          <p>{{{this.formattedHtml}}}</p>\n          <div class=\"koenig-card-click-overlay\"></div>\n      {{/if}}\n  </KoenigCard>\n  \n  */\n  {\n    \"id\": \"Xw1mfZnJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"card\\\"],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@icon\\\",\\\"@class\\\",\\\"@style\\\",\\\"@headerOffset\\\",\\\"@toolbar\\\",\\\"@payload\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@saveCard\\\",\\\"@saveAsSnippet\\\",\\\"@onLeaveEdit\\\",\\\"@addParagraphAfterCard\\\",\\\"@moveCursorToPrevSection\\\",\\\"@moveCursorToNextSection\\\",\\\"@editor\\\"],[\\\"koenig/card-indicator-email\\\",[30,[36,4],[[30,[36,3],[\\\"container-card\\\"],null],\\\" kg-email-card mih10 miw-100 relative\\\"],null],[32,0,[\\\"cardStyle\\\"]],[32,0,[\\\"headerOffset\\\"]],[32,0,[\\\"toolbar\\\"]],[32,0,[\\\"payload\\\"]],[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,0],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"editCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"saveCard\\\"]]],null],[32,0,[\\\"saveAsSnippet\\\"]],[30,[36,0],[[32,0],\\\"leaveEditMode\\\"],null],[32,0,[\\\"addParagraphAfterCard\\\"]],[32,0,[\\\"moveCursorToPrevSection\\\"]],[32,0,[\\\"moveCursorToNextSection\\\"]],[32,0,[\\\"editor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,5],[[32,0,[\\\"isEditing\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,\\\"koenig-text-replacement-html-input\\\",[],[[\\\"@html\\\",\\\"@placeholder\\\",\\\"@autofocus\\\",\\\"@class\\\",\\\"@onChange\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@didCreateEditor\\\"],[[32,0,[\\\"payload\\\",\\\"html\\\"]],\\\"Email only text...\\\",true,\\\"miw-100 bn bg-transparent\\\",[30,[36,0],[[32,0],\\\"updateHtml\\\"],null],[30,[36,0],[[32,0],[30,[36,1],[[32,0,[\\\"isFocused\\\"]]],null],true],null],[30,[36,0],[[32,0],[30,[36,1],[[32,0,[\\\"isFocused\\\"]]],null],false],null],[30,[36,0],[[32,0],\\\"registerEditor\\\"],null]]],null],[2,\\\"\\\\n        \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-card-help\\\"],[12],[2,\\\"\\\\n            \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n                \\\"],[10,\\\"span\\\"],[12],[2,\\\"Only visible when delivered by email, this card will not be published on your site.\\\"],[13],[2,\\\"\\\\n                \\\"],[10,\\\"a\\\"],[14,6,\\\"https://ghost.org/help/email-newsletters/#email-cards\\\"],[14,0,\\\"dib lh-zero v-mid kg-card-help-icon-link\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noreferer nopener\\\"],[12],[1,[30,[36,2],[\\\"help\\\"],[[\\\"class\\\"],[\\\"stroke-midgrey\\\"]]]],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"p\\\"],[12],[2,[32,0,[\\\"formattedHtml\\\"]]],[13],[2,\\\"\\\\n        \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-card-click-overlay\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"mut\\\",\\\"svg-jar\\\",\\\"kg-style\\\",\\\"concat\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-email.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    // attrs\n    payload: null,\n    isSelected: false,\n    isEditing: false,\n\n    // closure actions\n    selectCard() {},\n\n    deselectCard() {},\n\n    editCard() {},\n\n    saveCard() {},\n\n    deleteCard() {},\n\n    moveCursorToNextSection() {},\n\n    moveCursorToPrevSection() {},\n\n    addParagraphAfterCard() {},\n\n    registerComponent() {},\n\n    formattedHtml: Ember.computed('payload.html', function () {\n      return (0, _koenigTextReplacementHtmlInput.formatTextReplacementHtml)(this.payload.html);\n    }),\n    toolbar: Ember.computed('isEditing', function () {\n      if (this.isEditing) {\n        return false;\n      }\n\n      return {\n        items: [{\n          buttonClass: 'fw4 flex items-center white',\n          icon: 'koenig/kg-edit',\n          iconClass: 'fill-white',\n          title: 'Edit',\n          text: '',\n          action: Ember.run.bind(this, this.editCard)\n        }]\n      };\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      this.registerComponent(this);\n\n      if (!this.payload.html) {\n        this._updatePayloadAttr('html', '<p>Hey {first_name, \"there\"},</p>');\n      }\n    },\n\n    actions: {\n      updateHtml(html) {\n        this._updatePayloadAttr('html', html);\n      },\n\n      registerEditor(textReplacementEditor) {\n        let commands = {\n          'META+ENTER': Ember.run.bind(this, this._enter, 'meta'),\n          'CTRL+ENTER': Ember.run.bind(this, this._enter, 'ctrl')\n        };\n        Object.keys(commands).forEach(str => {\n          textReplacementEditor.registerKeyCommand({\n            str,\n\n            run() {\n              return commands[str](textReplacementEditor, str);\n            }\n\n          });\n        });\n        this._textReplacementEditor = textReplacementEditor;\n        Ember.run.scheduleOnce('afterRender', this, this._placeCursorAtEnd);\n      },\n\n      leaveEditMode() {\n        if (Ember.isBlank(this.payload.html)) {\n          // afterRender is required to avoid double modification of `isSelected`\n          // TODO: see if there's a way to avoid afterRender\n          Ember.run.scheduleOnce('afterRender', this, this.deleteCard);\n        }\n      }\n\n    },\n\n    _updatePayloadAttr(attr, value) {\n      let payload = this.payload;\n      let save = this.saveCard;\n      Ember.set(payload, attr, value); // update the mobiledoc and stay in edit mode\n\n      save(payload, false);\n    },\n\n    /* key commands ----------------------------------------------------------*/\n    _enter(modifier) {\n      if (this.isEditing && (modifier === 'meta' || modifier === 'crtl' && _browser.default.isWin())) {\n        this.editCard();\n      }\n    },\n\n    _placeCursorAtEnd() {\n      if (!this._textReplacementEditor) {\n        return;\n      }\n\n      let tailPosition = this._textReplacementEditor.post.tailPosition();\n\n      let rangeToSelect = tailPosition.toRange();\n\n      this._textReplacementEditor.selectRange(rangeToSelect);\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-embed\", [\"exports\", \"koenig-editor/components/koenig-editor\", \"@tryghost/helpers\", \"ember-concurrency\"], function (_exports, _koenigEditor, _helpers, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @class=\"flex flex-column\"\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @onDeselect={{action \"onDeselect\"}}\n      @editCard={{action this.editCard}}\n      @saveAsSnippet={{if this.payload.html this.saveAsSnippet}}\n      @toolbar={{this.toolbar}}\n      @hasEditMode={{false}}\n      @showSelectedOutline={{this.payload.html}}\n      @addParagraphAfterCard={{this.addParagraphAfterCard}}\n      @moveCursorToPrevSection={{this.moveCursorToPrevSection}}\n      @moveCursorToNextSection={{this.moveCursorToNextSection}}\n      @editor={{this.editor}}\n      as |card|\n  >\n      {{#if this.payload.html}}\n          <div class=\"kg-card-hover\">\n              <div class=\"koenig-embed-{{this.payload.type}} flex justify-center relative\" data-kg-embed>\n                  <iframe class=\"bn miw-100\" scrolling=\"no\"></iframe>\n                  <div class=\"koenig-card-click-overlay ba b--transparent\" data-kg-overlay></div>\n              </div>\n  \n              {{#if (or this.isSelected (clean-basic-html this.payload.caption))}}\n                  <card.CaptionInput\n                      @caption={{this.payload.caption}}\n                      @update={{action \"updateCaption\"}}\n                      @placeholder=\"Type caption for embed (optional)\"\n                  />\n              {{/if}}\n          </div>\n      {{else}}\n          {{#if this.convertUrl.isRunning}}\n              <div class=\"miw-100 pa2 ba br2 b--lightgrey-d1 flex items-center justify-center bg-whitegrey-l2 f6 lh-title h10\">\n                  &nbsp;<div class=\"ghost-spinner spinner-blue\"></div>&nbsp;\n              </div>\n          {{else if this.hasError}}\n              <div class=\"miw-100 flex flex-row pa2 pl3 ba br2 b--red-l3 red bg-error-red f7 fw4 lh-title h10 items-center\">\n                  <span class=\"mr3\">There was an error when parsing the URL.</span>\n                  <button type=\"button\" class=\"red-d2 mr3 fw6 hover-red\" {{action \"retry\"}}><span class=\"underline\">Retry</span></button>\n                  <button type=\"button\" class=\"red-d2 mr-auto fw6 underline hover-red\" {{action \"insertAsLink\"}}><span class=\"underline\">Paste URL as link</span></button>\n                  <button type=\"button\" {{action this.deleteCard}} class=\"nudge-right--2\">\n                      {{svg-jar \"close\" class=\"w3 stroke-red-l3\"}}\n                  </button>\n              </div>\n          {{else}}\n              <input\n                  type=\"text\"\n                  value={{this.payload.url}}\n                  name=\"url\"\n                  placeholder=\"Paste URL to add embedded content...\"\n                  class=\"miw-100 pa2 ba br2 b--lightgrey-d2 f7 form-text lh-title tracked-2 h10 nl2 nr2\"\n                  oninput={{action \"updateUrl\"}}\n                  onkeydown={{action \"urlKeydown\"}}>\n          {{/if}}\n      {{/if}}\n  </KoenigCard>\n  \n  */\n  {\n    \"id\": \"HFRz8Mgr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"card\\\"],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@class\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@onDeselect\\\",\\\"@editCard\\\",\\\"@saveAsSnippet\\\",\\\"@toolbar\\\",\\\"@hasEditMode\\\",\\\"@showSelectedOutline\\\",\\\"@addParagraphAfterCard\\\",\\\"@moveCursorToPrevSection\\\",\\\"@moveCursorToNextSection\\\",\\\"@editor\\\"],[\\\"flex flex-column\\\",[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,0],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,0],[[32,0],\\\"onDeselect\\\"],null],[30,[36,0],[[32,0],[32,0,[\\\"editCard\\\"]]],null],[30,[36,2],[[32,0,[\\\"payload\\\",\\\"html\\\"]],[32,0,[\\\"saveAsSnippet\\\"]]],null],[32,0,[\\\"toolbar\\\"]],false,[32,0,[\\\"payload\\\",\\\"html\\\"]],[32,0,[\\\"addParagraphAfterCard\\\"]],[32,0,[\\\"moveCursorToPrevSection\\\"]],[32,0,[\\\"moveCursorToNextSection\\\"]],[32,0,[\\\"editor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"payload\\\",\\\"html\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-card-hover\\\"],[12],[2,\\\"\\\\n            \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"koenig-embed-\\\",[32,0,[\\\"payload\\\",\\\"type\\\"]],\\\" flex justify-center relative\\\"]]],[14,\\\"data-kg-embed\\\",\\\"\\\"],[12],[2,\\\"\\\\n                \\\"],[10,\\\"iframe\\\"],[14,0,\\\"bn miw-100\\\"],[14,\\\"scrolling\\\",\\\"no\\\"],[12],[13],[2,\\\"\\\\n                \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-card-click-overlay ba b--transparent\\\"],[14,\\\"data-kg-overlay\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,2],[[30,[36,4],[[32,0,[\\\"isSelected\\\"]],[30,[36,3],[[32,0,[\\\"payload\\\",\\\"caption\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[8,[32,1,[\\\"CaptionInput\\\"]],[],[[\\\"@caption\\\",\\\"@update\\\",\\\"@placeholder\\\"],[[32,0,[\\\"payload\\\",\\\"caption\\\"]],[30,[36,0],[[32,0],\\\"updateCaption\\\"],null],\\\"Type caption for embed (optional)\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,2],[[32,0,[\\\"convertUrl\\\",\\\"isRunning\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"div\\\"],[14,0,\\\"miw-100 pa2 ba br2 b--lightgrey-d1 flex items-center justify-center bg-whitegrey-l2 f6 lh-title h10\\\"],[12],[2,\\\"\\\\n                 \\\"],[10,\\\"div\\\"],[14,0,\\\"ghost-spinner spinner-blue\\\"],[12],[13],[2,\\\" \\\\n            \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,2],[[32,0,[\\\"hasError\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"div\\\"],[14,0,\\\"miw-100 flex flex-row pa2 pl3 ba br2 b--red-l3 red bg-error-red f7 fw4 lh-title h10 items-center\\\"],[12],[2,\\\"\\\\n                \\\"],[10,\\\"span\\\"],[14,0,\\\"mr3\\\"],[12],[2,\\\"There was an error when parsing the URL.\\\"],[13],[2,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"red-d2 mr3 fw6 hover-red\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[32,0],\\\"retry\\\"],null],[12],[10,\\\"span\\\"],[14,0,\\\"underline\\\"],[12],[2,\\\"Retry\\\"],[13],[13],[2,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"red-d2 mr-auto fw6 underline hover-red\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[32,0],\\\"insertAsLink\\\"],null],[12],[10,\\\"span\\\"],[14,0,\\\"underline\\\"],[12],[2,\\\"Paste URL as link\\\"],[13],[13],[2,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"nudge-right--2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[32,0],[32,0,[\\\"deleteCard\\\"]]],null],[12],[2,\\\"\\\\n                    \\\"],[1,[30,[36,1],[\\\"close\\\"],[[\\\"class\\\"],[\\\"w3 stroke-red-l3\\\"]]]],[2,\\\"\\\\n                \\\"],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"input\\\"],[15,2,[32,0,[\\\"payload\\\",\\\"url\\\"]]],[14,3,\\\"url\\\"],[14,\\\"placeholder\\\",\\\"Paste URL to add embedded content...\\\"],[14,0,\\\"miw-100 pa2 ba br2 b--lightgrey-d2 f7 form-text lh-title tracked-2 h10 nl2 nr2\\\"],[15,\\\"oninput\\\",[30,[36,0],[[32,0],\\\"updateUrl\\\"],null]],[15,\\\"onkeydown\\\",[30,[36,0],[[32,0],\\\"urlKeydown\\\"],null]],[14,4,\\\"text\\\"],[12],[13],[2,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"svg-jar\\\",\\\"if\\\",\\\"clean-basic-html\\\",\\\"or\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-embed.hbs\"\n    }\n  });\n  /* global noframe */\n\n\n  const {\n    countWords\n  } = _helpers.utils;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    ajax: Ember.inject.service(),\n    ghostPaths: Ember.inject.service(),\n    // attrs\n    payload: null,\n    isSelected: false,\n    isEditing: false,\n    // internal properties\n    hasError: false,\n\n    // closure actions\n    selectCard() {},\n\n    deselectCard() {},\n\n    editCard() {},\n\n    saveCard() {},\n\n    deleteCard() {},\n\n    moveCursorToNextSection() {},\n\n    moveCursorToPrevSection() {},\n\n    addParagraphAfterCard() {},\n\n    registerComponent() {},\n\n    counts: Ember.computed('payload.{html,caption}', function () {\n      return {\n        imageCount: this.payload.html ? 1 : 0,\n        wordCount: countWords(this.payload.caption)\n      };\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      if (this.payload.url && !this.payload.html) {\n        this.convertUrl.perform(this.payload.url);\n      }\n\n      this.registerComponent(this);\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      this._populateIframe();\n\n      this._focusInput();\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      Ember.run.cancel(this._resizeDebounce);\n\n      if (this._iframeMutationObserver) {\n        this._iframeMutationObserver.disconnect();\n      }\n\n      window.removeEventListener('resize', this._windowResizeHandler);\n    },\n\n    actions: {\n      onDeselect() {\n        if (this.payload.url && !this.payload.html && !this.hasError) {\n          this.convertUrl.perform(this.payload.url);\n        } else {\n          this._deleteIfEmpty();\n        }\n      },\n\n      updateUrl(event) {\n        let url = event.target.value;\n        Ember.set(this.payload, 'url', url);\n      },\n\n      urlKeydown(event) {\n        if (event.key === 'Enter') {\n          event.preventDefault();\n          this.convertUrl.perform(this.payload.url);\n        }\n\n        if (event.key === 'Escape') {\n          event.target.blur();\n          this.deleteCard();\n        }\n      },\n\n      updateCaption(caption) {\n        Ember.set(this.payload, 'caption', caption);\n        this.saveCard(this.payload, false);\n      },\n\n      retry() {\n        this.set('hasError', false);\n      },\n\n      insertAsLink(options = {\n        linkOnError: false\n      }) {\n        let {\n          range\n        } = this.editor;\n        this.editor.run(postEditor => {\n          let {\n            builder\n          } = postEditor;\n          let cardSection = this.env.postModel;\n          let p = builder.createMarkupSection('p');\n          let link = builder.createMarkup('a', {\n            href: this.payload.url\n          });\n          postEditor.replaceSection(cardSection, p);\n          postEditor.insertTextWithMarkup(p.toRange().head, this.payload.url, [link]); // if a user is typing further on in the doc (possible if embed\n          // was created automatically via paste of URL) then return the\n          // cursor so the card->link change doesn't cause a cursor jump\n\n          if (range.headSection !== cardSection) {\n            postEditor.setRange(range);\n          } // avoid adding an extra undo step when automatically creating\n          // link after an error so that an Undo after pasting a URL\n          // doesn't get stuck in a loop going through link->embed->link\n\n\n          if (options.linkOnError) {\n            postEditor.cancelSnapshot();\n          }\n        });\n      },\n\n      insertAsBookmark(payload) {\n        let {\n          range\n        } = this.editor;\n        this.editor.run(postEditor => {\n          let cardSection = this.env.postModel;\n          let bookmarkCard = postEditor.builder.createCardSection('bookmark', payload);\n          postEditor.replaceSection(cardSection, bookmarkCard); // if a user is typing further on in the doc (possible if embed\n          // was created automatically via paste of URL) then return the\n          // cursor so the card->link change doesn't cause a cursor jump\n\n          if (range.headSection !== cardSection) {\n            postEditor.setRange(range);\n          }\n        });\n      }\n\n    },\n    convertUrl: (0, _emberConcurrency.task)(function* (url) {\n      if (Ember.isBlank(url)) {\n        this.deleteCard();\n        return;\n      }\n\n      try {\n        let oembedEndpoint = this.ghostPaths.url.api('oembed');\n        let requestData = {\n          url\n        };\n\n        if (!this.payload.isDirectUrl) {\n          requestData.type = 'embed';\n        }\n\n        let response = yield this.ajax.request(oembedEndpoint, {\n          data: requestData\n        });\n\n        if (response.type === 'bookmark') {\n          this.send('insertAsBookmark', response);\n          return;\n        }\n\n        if (!response.html) {\n          throw 'No HTML returned';\n        }\n\n        Ember.set(this.payload, 'linkOnError', undefined);\n        Ember.set(this.payload, 'isDirectUrl', undefined);\n        Ember.set(this.payload, 'html', response.html);\n        delete response.html;\n        Ember.set(this.payload, 'type', response.type);\n        delete response.type; // store all other data returned from oembed such as thumbnails, sizing, etc\n\n        Ember.set(this.payload, 'metadata', response);\n        this.saveCard(this.payload, false);\n        Ember.run.schedule('afterRender', this, this._populateIframe);\n      } catch (err) {\n        if (this.payload.linkOnError) {\n          this.send('insertAsLink', {\n            linkOnError: true\n          });\n          return;\n        }\n\n        this.set('hasError', true);\n      }\n    }),\n\n    _focusInput() {\n      let urlInput = this.element.querySelector('[name=\"url\"]');\n\n      if (urlInput) {\n        urlInput.focus();\n      }\n    },\n\n    _populateIframe() {\n      let iframe = this.element.querySelector('iframe');\n\n      if (iframe) {\n        iframe.contentWindow.document.open();\n        iframe.contentWindow.document.write(this.payload.html);\n        iframe.contentWindow.document.close();\n        iframe.contentDocument.body.style.display = 'flex';\n        iframe.contentDocument.body.style.margin = '0';\n        iframe.contentDocument.body.style.justifyContent = 'center';\n        let nestedIframe = iframe.contentDocument.body.firstChild;\n\n        if (nestedIframe.nodeName === 'IFRAME') {\n          noframe(nestedIframe, '[data-kg-embed]');\n\n          this._resizeIframe(iframe);\n        }\n\n        this._iframeResizeHandler = Ember.run.bind(this, this._resizeIframe, iframe);\n        this._iframeMutationObserver = this._createMutationObserver(iframe.contentWindow.document, this._iframeResizeHandler);\n\n        this._setupWindowResizeHandler(iframe);\n      }\n    },\n\n    _createMutationObserver(target, callback) {\n      function addImageLoadListeners(mutation) {\n        function addImageLoadListener(element) {\n          if (element.complete === false) {\n            element.addEventListener('load', imageEventTriggered, false);\n            element.addEventListener('error', imageEventTriggered, false);\n            imageElements.push(element);\n          }\n        }\n\n        if (mutation.type === 'attributes' && mutation.attributeName === 'src') {\n          addImageLoadListener(mutation.target);\n        } else if (mutation.type === 'childList') {\n          Array.prototype.forEach.call(mutation.target.querySelectorAll('img'), addImageLoadListener);\n        }\n      }\n\n      function removeFromElements(element) {\n        imageElements.splice(imageElements.indexOf(element), 1);\n      }\n\n      function removeImageLoadListener(element) {\n        element.removeEventListener('load', imageEventTriggered, false);\n        element.removeEventListener('error', imageEventTriggered, false);\n        removeFromElements(element);\n      }\n\n      function imageEventTriggered(event) {\n        removeImageLoadListener(event.target);\n        callback();\n      }\n\n      function mutationObserved(mutations) {\n        callback(); // deal with async image loads when tags are injected into the page\n\n        mutations.forEach(addImageLoadListeners);\n      }\n\n      function createMutationObserver(mutationTarget) {\n        let config = {\n          attributes: true,\n          attributeOldValue: false,\n          characterData: true,\n          characterDataOldValue: false,\n          childList: true,\n          subtree: true\n        };\n        let observer = new MutationObserver(mutationObserved);\n        observer.observe(mutationTarget, config); // eslint-disable-line ghost/ember/no-observers\n\n        return observer;\n      }\n\n      let imageElements = [];\n      let observer = createMutationObserver(target);\n      return {\n        disconnect() {\n          if ('disconnect' in observer) {\n            observer.disconnect(); // eslint-disable-line ghost/ember/no-observers\n\n            imageElements.forEach(removeImageLoadListener);\n          }\n        }\n\n      };\n    },\n\n    _resizeIframe(iframe) {\n      this._resizeDebounce = Ember.run.debounce(this, this.__debouncedResizeIframe, iframe, 66);\n    },\n\n    __debouncedResizeIframe(iframe) {\n      iframe.style.height = null; // get ratio from nested iframe if present (eg, Vimeo)\n\n      let firstElement = iframe.contentDocument.body.firstChild;\n\n      if (firstElement.tagName === 'IFRAME') {\n        let width = parseInt(firstElement.getAttribute('width'));\n        let height = parseInt(firstElement.getAttribute('height'));\n\n        if (width && height) {\n          let ratio = width / height;\n          let newHeight = iframe.offsetWidth / ratio;\n          firstElement.style.height = `${newHeight}px`;\n          iframe.style.height = `${newHeight}px`;\n          return;\n        }\n      } // otherwise use iframes internal height (eg, Instagram)\n\n\n      let height = iframe.contentDocument.scrollingElement.scrollHeight;\n      iframe.style.height = `${height}px`;\n    },\n\n    _setupWindowResizeHandler(iframe) {\n      window.removeEventListener('resize', this._windowResizeHandler);\n      this._windowResizeHandler = Ember.run.bind(this, this._resizeIframe, iframe);\n      window.addEventListener('resize', this._windowResizeHandler, {\n        passive: true\n      });\n    },\n\n    _deleteIfEmpty() {\n      if (Ember.isBlank(this.payload.html) && !this.convertUrl.isRunning && !this.hasError) {\n        this.deleteCard(_koenigEditor.NO_CURSOR_MOVEMENT);\n      }\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-gallery\", [\"exports\", \"jquery\", \"ghost-admin/components/gh-image-uploader\", \"@tryghost/helpers\"], function (_exports, _jquery, _ghImageUploader, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @tagName=\"figure\"\n      @class={{concat (kg-style \"media-card\") \" \" (kg-style \"breakout\" size=\"wide\") \" flex flex-column\"}}\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @editCard={{action this.editCard}}\n      @saveAsSnippet={{this.saveAsSnippet}}\n      @toolbar={{this.toolbar}}\n      @hasEditMode={{false}}\n      @addParagraphAfterCard={{this.addParagraphAfterCard}}\n      @moveCursorToPrevSection={{this.moveCursorToPrevSection}}\n      @moveCursorToNextSection={{this.moveCursorToNextSection}}\n      @editor={{this.editor}}\n      @onSelect={{action \"didSelect\"}}\n      @onDeselect={{action \"didDeselect\"}}\n      as |card|\n  >\n      <GhUploader\n          @files={{this.files}}\n          @accept={{this.imageMimeTypes}}\n          @extensions={{this.imageExtensions}}\n          @onUploadStart={{action \"addImage\"}}\n          @onUploadSuccess={{action \"setImageSrc\"}}\n          @onUploadFailure={{action \"uploadFailed\"}}\n          @onFailed={{action \"handleErrors\"}}\n          as |uploader|\n      >\n          <div class=\"relative{{unless this.images \" bg-whitegrey-l2\"}}\">\n              {{#if this.imageRows}}\n                  <div class=\"flex flex-column\" data-gallery>\n                      {{#each this.imageRows as |row index|}}\n                          <div class=\"flex flex-row justify-center\" data-row=\"{{index}}\">\n                              {{#each row as |image|}}\n                                  <div\n                                      style={{image.style}}\n                                      class=\"relative hide-child {{image.classes}}\"\n                                      data-image\n                                  >\n                                      <img\n                                          src={{or image.previewSrc image.src}}\n                                          width={{image.width}}\n                                          height={{image.height}}\n                                          class=\"w-100 h-100 db pe-none\"\n                                      >\n                                      {{#unless this.koenigDragDropHandler.isDragging}}\n                                          <div class=\"bg-image-overlay-top child pe-none {{image.overlayClasses}}\">\n                                              <div class=\"flex flex-row-reverse\">\n                                                  <button class=\"bg-white-90 pl3 pr3 br3 pe-auto\" {{action \"deleteImage\" image}}>\n                                                      {{svg-jar \"koenig/kg-trash\" class=\"fill-darkgrey w4 h4\"}}\n                                                  </button>\n                                              </div>\n                                          </div>\n                                      {{/unless}}\n                                  </div>\n                              {{/each}}\n                          </div>\n                      {{/each}}\n                  </div>\n              {{/if}}\n  \n              {{#if (or uploader.isUploading (is-empty this.imageRows))}}\n                  <div class=\"relative miw-100 flex items-center {{if (is-empty this.imageRows) \"kg-media-placeholder ba b--whitegrey\" \"absolute absolute--fill bg-white-50\"}}\">\n                      {{#if this.isDraggedOver}}\n                          <span class=\"db center sans-serif fw7 f7 middarkgrey\">\n                              Drop 'em like it's hot 🔥\n                          </span>\n                      {{else if uploader.isUploading}}\n                          {{uploader.progressBar}}\n                      {{else if (is-empty this.imageRows)}}\n                          <button class=\"flex flex-column items-center center sans-serif fw4 f7 middarkgrey pa8 pt6 pb6 kg-image-button\" onclick={{action \"triggerFileDialog\"}}>\n                              {{svg-jar \"gallery-placeholder\" class=\"kg-placeholder-gallery nudge-bottom--10\"}}\n                              <span class=\"mt2 midgrey\">Click to select up to 9 images</span>\n                          </button>\n                      {{/if}}\n                  </div>\n              {{else if this.isDraggedOver}}\n                  <div class=\"absolute absolute--fill flex items-center bg-black-60 pe-none\">\n                      <span class=\"db center sans-serif fw7 f7 white\">\n                          Drop to add up to 9 images\n                      </span>\n                  </div>\n              {{/if}}\n  \n              {{#if (and this.errorMessage (not this.isDraggedOver))}}\n                  <div class=\"absolute absolute--fill flex items-center bg-black-60\">\n                      <span class=\"db center sans-serif fw7 f7 pl2 pr2 bg-red white\">\n                          {{this.errorMessage}}.\n                          <button onclick={{action \"clearErrorMessage\"}} style=\"text-decoration: underline !important\">\n                              Dismiss\n                          </button>\n                      </span>\n                  </div>\n              {{/if}}\n          </div>\n  \n          <div style=\"display:none\">\n              <GhFileInput @multiple={{true}} @action={{action \"setFiles\"}} @accept={{this.imageMimeTypes}} />\n          </div>\n      </GhUploader>\n  \n      {{#if (or this.isSelected (clean-basic-html this.payload.caption))}}\n          <card.CaptionInput\n              @caption={{this.payload.caption}}\n              @update={{action \"updateCaption\"}}\n              @placeholder=\"Type caption for gallery (optional)\"\n          />\n      {{/if}}\n  </KoenigCard>\n  \n  */\n  {\n    \"id\": \"r9B4c5IL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"card\\\",\\\"uploader\\\",\\\"row\\\",\\\"index\\\",\\\"image\\\"],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@tagName\\\",\\\"@class\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@saveAsSnippet\\\",\\\"@toolbar\\\",\\\"@hasEditMode\\\",\\\"@addParagraphAfterCard\\\",\\\"@moveCursorToPrevSection\\\",\\\"@moveCursorToNextSection\\\",\\\"@editor\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"figure\\\",[30,[36,9],[[30,[36,8],[\\\"media-card\\\"],null],\\\" \\\",[30,[36,8],[\\\"breakout\\\"],[[\\\"size\\\"],[\\\"wide\\\"]]],\\\" flex flex-column\\\"],null],[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,0],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"editCard\\\"]]],null],[32,0,[\\\"saveAsSnippet\\\"]],[32,0,[\\\"toolbar\\\"]],false,[32,0,[\\\"addParagraphAfterCard\\\"]],[32,0,[\\\"moveCursorToPrevSection\\\"]],[32,0,[\\\"moveCursorToNextSection\\\"]],[32,0,[\\\"editor\\\"]],[30,[36,0],[[32,0],\\\"didSelect\\\"],null],[30,[36,0],[[32,0],\\\"didDeselect\\\"],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[8,\\\"gh-uploader\\\",[],[[\\\"@files\\\",\\\"@accept\\\",\\\"@extensions\\\",\\\"@onUploadStart\\\",\\\"@onUploadSuccess\\\",\\\"@onUploadFailure\\\",\\\"@onFailed\\\"],[[32,0,[\\\"files\\\"]],[32,0,[\\\"imageMimeTypes\\\"]],[32,0,[\\\"imageExtensions\\\"]],[30,[36,0],[[32,0],\\\"addImage\\\"],null],[30,[36,0],[[32,0],\\\"setImageSrc\\\"],null],[30,[36,0],[[32,0],\\\"uploadFailed\\\"],null],[30,[36,0],[[32,0],\\\"handleErrors\\\"],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n        \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"relative\\\",[30,[36,5],[[32,0,[\\\"images\\\"]],\\\" bg-whitegrey-l2\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,1],[[32,0,[\\\"imageRows\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[10,\\\"div\\\"],[14,0,\\\"flex flex-column\\\"],[14,\\\"data-gallery\\\",\\\"\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,7],[[30,[36,6],[[30,[36,6],[[32,0,[\\\"imageRows\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                        \\\"],[10,\\\"div\\\"],[14,0,\\\"flex flex-row justify-center\\\"],[15,\\\"data-row\\\",[31,[[32,4]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,7],[[30,[36,6],[[30,[36,6],[[32,3]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                                \\\"],[10,\\\"div\\\"],[15,5,[32,5,[\\\"style\\\"]]],[15,0,[31,[\\\"relative hide-child \\\",[32,5,[\\\"classes\\\"]]]]],[14,\\\"data-image\\\",\\\"\\\"],[12],[2,\\\"\\\\n                                    \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,[36,4],[[32,5,[\\\"previewSrc\\\"]],[32,5,[\\\"src\\\"]]],null]],[15,\\\"width\\\",[32,5,[\\\"width\\\"]]],[15,\\\"height\\\",[32,5,[\\\"height\\\"]]],[14,0,\\\"w-100 h-100 db pe-none\\\"],[12],[13],[2,\\\"\\\\n\\\"],[6,[37,5],[[32,0,[\\\"koenigDragDropHandler\\\",\\\"isDragging\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                                        \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"bg-image-overlay-top child pe-none \\\",[32,5,[\\\"overlayClasses\\\"]]]]],[12],[2,\\\"\\\\n                                            \\\"],[10,\\\"div\\\"],[14,0,\\\"flex flex-row-reverse\\\"],[12],[2,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"bg-white-90 pl3 pr3 br3 pe-auto\\\"],[4,[38,0],[[32,0],\\\"deleteImage\\\",[32,5]],null],[12],[2,\\\"\\\\n                                                    \\\"],[1,[30,[36,2],[\\\"koenig/kg-trash\\\"],[[\\\"class\\\"],[\\\"fill-darkgrey w4 h4\\\"]]]],[2,\\\"\\\\n                                                \\\"],[13],[2,\\\"\\\\n                                            \\\"],[13],[2,\\\"\\\\n                                        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"                                \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]}]]],[2,\\\"                        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]}]]],[2,\\\"                \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,1],[[30,[36,4],[[32,2,[\\\"isUploading\\\"]],[30,[36,3],[[32,0,[\\\"imageRows\\\"]]],null]],null]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"relative miw-100 flex items-center \\\",[30,[36,1],[[30,[36,3],[[32,0,[\\\"imageRows\\\"]]],null],\\\"kg-media-placeholder ba b--whitegrey\\\",\\\"absolute absolute--fill bg-white-50\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,1],[[32,0,[\\\"isDraggedOver\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"                        \\\"],[10,\\\"span\\\"],[14,0,\\\"db center sans-serif fw7 f7 middarkgrey\\\"],[12],[2,\\\"\\\\n                            Drop 'em like it's hot 🔥\\\\n                        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[32,2,[\\\"isUploading\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"                        \\\"],[1,[32,2,[\\\"progressBar\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[30,[36,3],[[32,0,[\\\"imageRows\\\"]]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                        \\\"],[10,\\\"button\\\"],[14,0,\\\"flex flex-column items-center center sans-serif fw4 f7 middarkgrey pa8 pt6 pb6 kg-image-button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"triggerFileDialog\\\"],null]],[12],[2,\\\"\\\\n                            \\\"],[1,[30,[36,2],[\\\"gallery-placeholder\\\"],[[\\\"class\\\"],[\\\"kg-placeholder-gallery nudge-bottom--10\\\"]]]],[2,\\\"\\\\n                            \\\"],[10,\\\"span\\\"],[14,0,\\\"mt2 midgrey\\\"],[12],[2,\\\"Click to select up to 9 images\\\"],[13],[2,\\\"\\\\n                        \\\"],[13],[2,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"                \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[32,0,[\\\"isDraggedOver\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[10,\\\"div\\\"],[14,0,\\\"absolute absolute--fill flex items-center bg-black-60 pe-none\\\"],[12],[2,\\\"\\\\n                    \\\"],[10,\\\"span\\\"],[14,0,\\\"db center sans-serif fw7 f7 white\\\"],[12],[2,\\\"\\\\n                        Drop to add up to 9 images\\\\n                    \\\"],[13],[2,\\\"\\\\n                \\\"],[13],[2,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,1],[[30,[36,11],[[32,0,[\\\"errorMessage\\\"]],[30,[36,10],[[32,0,[\\\"isDraggedOver\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[10,\\\"div\\\"],[14,0,\\\"absolute absolute--fill flex items-center bg-black-60\\\"],[12],[2,\\\"\\\\n                    \\\"],[10,\\\"span\\\"],[14,0,\\\"db center sans-serif fw7 f7 pl2 pr2 bg-red white\\\"],[12],[2,\\\"\\\\n                        \\\"],[1,[32,0,[\\\"errorMessage\\\"]]],[2,\\\".\\\\n                        \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"clearErrorMessage\\\"],null]],[14,5,\\\"text-decoration: underline !important\\\"],[12],[2,\\\"\\\\n                            Dismiss\\\\n                        \\\"],[13],[2,\\\"\\\\n                    \\\"],[13],[2,\\\"\\\\n                \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"        \\\"],[13],[2,\\\"\\\\n\\\\n        \\\"],[10,\\\"div\\\"],[14,5,\\\"display:none\\\"],[12],[2,\\\"\\\\n            \\\"],[8,\\\"gh-file-input\\\",[],[[\\\"@multiple\\\",\\\"@action\\\",\\\"@accept\\\"],[true,[30,[36,0],[[32,0],\\\"setFiles\\\"],null],[32,0,[\\\"imageMimeTypes\\\"]]]],null],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,1],[[30,[36,4],[[32,0,[\\\"isSelected\\\"]],[30,[36,12],[[32,0,[\\\"payload\\\",\\\"caption\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,[32,1,[\\\"CaptionInput\\\"]],[],[[\\\"@caption\\\",\\\"@update\\\",\\\"@placeholder\\\"],[[32,0,[\\\"payload\\\",\\\"caption\\\"]],[30,[36,0],[[32,0],\\\"updateCaption\\\"],null],\\\"Type caption for gallery (optional)\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"if\\\",\\\"svg-jar\\\",\\\"is-empty\\\",\\\"or\\\",\\\"unless\\\",\\\"-track-array\\\",\\\"each\\\",\\\"kg-style\\\",\\\"concat\\\",\\\"not\\\",\\\"and\\\",\\\"clean-basic-html\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-gallery.hbs\"\n    }\n  });\n\n  const MAX_IMAGES = 9;\n  const MAX_PER_ROW = 3;\n  const {\n    countWords\n  } = _helpers.utils;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    koenigDragDropHandler: Ember.inject.service(),\n    // attrs\n    files: null,\n    images: null,\n    payload: null,\n    isSelected: false,\n    isEditing: false,\n    imageExtensions: _ghImageUploader.IMAGE_EXTENSIONS,\n    imageMimeTypes: _ghImageUploader.IMAGE_MIME_TYPES,\n    // properties\n    errorMessage: null,\n    handlesDragDrop: true,\n    _dragDropContainer: null,\n\n    // closure actions\n    selectCard() {},\n\n    deselectCard() {},\n\n    editCard() {},\n\n    saveCard() {},\n\n    deleteCard() {},\n\n    moveCursorToNextSection() {},\n\n    moveCursorToPrevSection() {},\n\n    addParagraphAfterCard() {},\n\n    registerComponent() {},\n\n    counts: Ember.computed('payload.{caption,payload.images.[]}', function () {\n      let wordCount = 0;\n      let imageCount = this.payload.images.length;\n\n      if (this.payload.caption) {\n        wordCount += countWords(this.payload.caption);\n      }\n\n      return {\n        wordCount,\n        imageCount\n      };\n    }),\n    toolbar: Ember.computed('images.[]', function () {\n      if (Ember.isEmpty(this.images)) {\n        return false;\n      }\n\n      return {\n        items: [{\n          title: 'Add images',\n          icon: 'koenig/kg-add',\n          iconClass: 'fill-white',\n          action: Ember.run.bind(this, this._triggerFileDialog)\n        }]\n      };\n    }),\n    imageRows: Ember.computed('images.@each.{src,previewSrc,width,height,row}', function () {\n      let rows = [];\n      let noOfImages = this.images.length; // 3 images per row unless last row would have a single image in which\n      // case the last 2 rows will have 2 images\n\n      let maxImagesInRow = function (idx) {\n        return noOfImages > 1 && noOfImages % 3 === 1 && idx === noOfImages - 2;\n      };\n\n      this.images.forEach((image, idx) => {\n        let row = image.row;\n        let classes = [];\n        let overlayClasses = []; // start a new display row if necessary\n\n        if (maxImagesInRow(idx)) {\n          row = row + 1;\n        } // apply classes to the image containers\n\n\n        if (!rows[row]) {\n          // first image in row\n          rows[row] = [];\n          classes.push('pr2');\n          overlayClasses.push('mr2');\n        } else if ((idx + 1) % 3 === 0 || maxImagesInRow(idx + 1) || idx + 1 === noOfImages) {\n          // last image in row\n          classes.push('pl2');\n          overlayClasses.push('ml2');\n        } else {\n          // middle of row\n          classes.push('pl2', 'pr2');\n          overlayClasses.push('ml2', 'mr2');\n        }\n\n        if (row > 0) {\n          classes.push('mt4');\n        }\n\n        let styledImage = Object.assign({}, image);\n        let aspectRatio = (image.width || 1) / (image.height || 1);\n        styledImage.style = Ember.String.htmlSafe(`flex: ${aspectRatio} 1 0%`);\n        styledImage.classes = Ember.String.htmlSafe(classes.join(' '));\n        styledImage.overlayClasses = Ember.String.htmlSafe(overlayClasses.join(' '));\n        rows[row].push(styledImage);\n      });\n      return rows;\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      if (!this.payload || Ember.isEmpty(this.payload.images)) {\n        this._updatePayloadAttr('images', []);\n      }\n\n      this._buildImages();\n\n      this.registerComponent(this);\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      if (this._dragDropContainer) {\n        this._dragDropContainer.destroy();\n      }\n    },\n\n    actions: {\n      addImage(file) {\n        let count = this.images.length + 1;\n        let row = Math.ceil(count / MAX_PER_ROW) - 1;\n\n        let image = this._readDataFromImageFile(file);\n\n        image.row = row;\n        this.images.pushObject(image);\n      },\n\n      setImageSrc(uploadResult) {\n        let image = this.images.findBy('fileName', uploadResult.fileName);\n        image.set('src', uploadResult.url);\n\n        this._buildAndSaveImagesPayload();\n      },\n\n      setFiles(files) {\n        this._startUpload(files);\n      },\n\n      deleteImage(image) {\n        let localImage = this.images.findBy('fileName', image.fileName);\n        this.images.removeObject(localImage);\n\n        this._recalculateImageRows();\n\n        this._buildAndSaveImagesPayload();\n      },\n\n      updateCaption(caption) {\n        this._updatePayloadAttr('caption', caption);\n      },\n\n      triggerFileDialog(event) {\n        this._triggerFileDialog(event);\n      },\n\n      uploadFailed(uploadResult) {\n        let image = this.images.findBy('fileName', uploadResult.fileName);\n        this.images.removeObject(image);\n\n        this._buildAndSaveImagesPayload();\n\n        let fileName = uploadResult.fileName.length > 20 ? `${uploadResult.fileName.substr(0, 20)}...` : uploadResult.fileName;\n        this.set('errorMessage', `${fileName} failed to upload`);\n      },\n\n      handleErrors(errors) {\n        let errorMssg = errors[0] && errors[0].message || 'Some images failed to upload';\n        this.set('errorMessage', errorMssg);\n      },\n\n      clearErrorMessage() {\n        this.set('errorMessage', null);\n      },\n\n      didSelect() {\n        if (this._dragDropContainer) {\n          // add a delay when enabling reorder drag/drop so that the card\n          // must be selected before a reorder drag can be initiated\n          // - allows for cards to be drag and dropped themselves\n          Ember.run.later(this, function () {\n            if (!this.isDestroyed && !this.isDestroying) {\n              this._dragDropContainer.enableDrag();\n            }\n          }, 100);\n        }\n      },\n\n      didDeselect() {\n        if (this._dragDropContainer) {\n          this._dragDropContainer.disableDrag();\n        }\n      }\n\n    },\n\n    // Ember event handlers ----------------------------------------------------\n    dragOver(event) {\n      if (!event.dataTransfer) {\n        return;\n      } // this is needed to work around inconsistencies with dropping files\n      // from Chrome's downloads bar\n\n\n      if (navigator.userAgent.indexOf('Chrome') > -1) {\n        let eA = event.dataTransfer.effectAllowed;\n        event.dataTransfer.dropEffect = eA === 'move' || eA === 'linkMove' ? 'move' : 'copy';\n      }\n\n      event.stopPropagation();\n      event.preventDefault();\n      this.set('isDraggedOver', true);\n    },\n\n    dragLeave(event) {\n      event.preventDefault();\n      this.set('isDraggedOver', false);\n    },\n\n    drop(event) {\n      event.preventDefault();\n      this.set('isDraggedOver', false);\n\n      if (event.dataTransfer.files) {\n        this._startUpload(event.dataTransfer.files);\n      }\n    },\n\n    // Private methods ---------------------------------------------------------\n    _recalculateImageRows() {\n      this.images.forEach((image, idx) => {\n        image.set('row', Math.ceil((idx + 1) / MAX_PER_ROW) - 1);\n      });\n    },\n\n    _startUpload(files = []) {\n      let currentCount = this.images.length;\n      let allowedCount = MAX_IMAGES - currentCount;\n      let strippedFiles = Array.prototype.slice.call(files, 0, allowedCount);\n\n      if (strippedFiles.length < files.length) {\n        this.set('errorMessage', 'Galleries are limited to 9 images');\n      }\n\n      this.set('files', strippedFiles);\n    },\n\n    _readDataFromImageFile(file) {\n      let url = URL.createObjectURL(file);\n      let image = Ember.Object.create({\n        fileName: file.name,\n        previewSrc: url\n      });\n      let imageElem = new Image();\n\n      imageElem.onload = () => {\n        // update current display images\n        image.set('width', imageElem.naturalWidth);\n        image.set('height', imageElem.naturalHeight); // ensure width/height makes it into the payload images\n\n        this._buildAndSaveImagesPayload();\n      };\n\n      imageElem.src = url;\n      return image;\n    },\n\n    _buildAndSaveImagesPayload() {\n      let payloadImages = [];\n\n      let isValidImage = image => image.fileName && image.src && image.width && image.height;\n\n      this.images.forEach((image, idx) => {\n        if (isValidImage(image)) {\n          let payloadImage = Object.assign({}, image, {\n            previewSrc: undefined\n          });\n          payloadImage.row = Math.ceil((idx + 1) / MAX_PER_ROW) - 1;\n          payloadImages.push(payloadImage);\n        }\n      });\n\n      this._updatePayloadAttr('images', payloadImages);\n    },\n\n    _buildImages() {\n      this.images = this.payload.images.map(image => Ember.Object.create(image));\n\n      this._registerOrRefreshDragDropHandler();\n    },\n\n    _updatePayloadAttr(attr, value) {\n      let payload = this.payload;\n      let save = this.saveCard;\n      Ember.set(payload, attr, value); // update the mobiledoc and stay in edit mode\n\n      save(payload, false);\n\n      this._registerOrRefreshDragDropHandler();\n    },\n\n    _triggerFileDialog(event) {\n      let target = event && event.target || this.element; // simulate click to open file dialog\n      // using jQuery because IE11 doesn't support MouseEvent\n\n      (0, _jquery.default)(target).closest('.__mobiledoc-card').find('input[type=\"file\"]').click();\n    },\n\n    // - rename container so that it's more explicit when we have an initial file\n    //   drop container vs a drag reorder+file drop container?\n    _registerOrRefreshDragDropHandler() {\n      if (this._dragDropContainer) {\n        Ember.run.schedule('afterRender', this, function () {\n          this._dragDropContainer.refresh();\n\n          if (!Ember.isEmpty(this.images) && !this._dragDropContainer.isDragEnabled) {\n            this._dragDropContainer.enableDrag();\n          }\n        });\n      } else {\n        Ember.run.schedule('afterRender', this, function () {\n          let galleryElem = this.element.querySelector('[data-gallery]');\n\n          if (galleryElem) {\n            this._dragDropContainer = this.koenigDragDropHandler.registerContainer(galleryElem, {\n              draggableSelector: '[data-image]',\n              droppableSelector: '[data-image]',\n              isDragEnabled: !Ember.isEmpty(this.images),\n              onDragStart: Ember.run.bind(this, this._dragStart),\n              onDragEnd: Ember.run.bind(this, this._dragEnd),\n              getDraggableInfo: Ember.run.bind(this, this._getDraggableInfo),\n              getIndicatorPosition: Ember.run.bind(this, this._getDropIndicatorPosition),\n              onDrop: Ember.run.bind(this, this._onDrop),\n              onDropEnd: Ember.run.bind(this, this._onDropEnd)\n            });\n          }\n        });\n      }\n    },\n\n    _dragStart(draggableInfo) {\n      this.element.querySelector('figure').classList.remove('kg-card-selected'); // enable dropping when an image is dragged in from outside of this card\n\n      let isImageDrag = draggableInfo.type === 'image' || draggableInfo.cardName === 'image';\n\n      if (isImageDrag && draggableInfo.payload.src && this.images.length !== MAX_IMAGES) {\n        this._dragDropContainer.enableDrag();\n      }\n    },\n\n    _dragEnd() {\n      if (this.isSelected) {\n        this.element.querySelector('figure').classList.add('kg-card-selected');\n      } else {\n        this._dragDropContainer.disableDrag();\n      }\n    },\n\n    _getDraggableInfo(draggableElement) {\n      let src = draggableElement.querySelector('img').getAttribute('src');\n      let image = this.images.findBy('src', src) || this.images.findBy('previewSrc', src);\n      let payload = image && image.getProperties('fileName', 'src', 'row', 'width', 'height', 'caption');\n\n      if (image) {\n        return {\n          type: 'image',\n          payload\n        };\n      }\n\n      return {};\n    },\n\n    _onDrop(draggableInfo\n    /*, droppableElem, position*/\n    ) {\n      // do not allow dropping of non-images\n      if (draggableInfo.type !== 'image' && draggableInfo.cardName !== 'image') {\n        return false;\n      }\n\n      let {\n        insertIndex\n      } = draggableInfo;\n      let droppables = Array.from(this.element.querySelectorAll('[data-image]'));\n      let draggableIndex = droppables.indexOf(draggableInfo.element);\n\n      if (this._isDropAllowed(draggableIndex, insertIndex)) {\n        if (draggableIndex === -1) {\n          // external image being added\n          let {\n            payload\n          } = draggableInfo;\n          let img = draggableInfo.element.querySelector(`img[src=\"${payload.src}\"]`); // image card payloads may not have all of the details we need but we can fill them in\n\n          payload.width = payload.width || img.naturalWidth;\n          payload.height = payload.height || img.naturalHeight;\n\n          if (!payload.fileName) {\n            let url = new URL(img.src);\n            let fileName = url.pathname.match(/\\/([^/]*)$/)[1];\n            payload.fileName = fileName;\n          }\n\n          this.images.insertAt(insertIndex, Ember.Object.create(payload));\n        } else {\n          // internal image being re-ordered\n          let draggedImage = this.images.findBy('src', draggableInfo.payload.src);\n          let accountForRemoval = draggableIndex < insertIndex && insertIndex ? -1 : 0;\n          this.images.removeObject(draggedImage);\n          this.images.insertAt(insertIndex + accountForRemoval, draggedImage);\n        }\n\n        this._recalculateImageRows();\n\n        this._buildAndSaveImagesPayload();\n\n        this._dragDropContainer.refresh();\n\n        this._skipOnDragEnd = true;\n        return true;\n      }\n\n      return false;\n    },\n\n    // if an image is dragged out of a gallery we need to remove it\n    _onDropEnd(draggableInfo, success) {\n      if (this._skipOnDragEnd || !success) {\n        this._skipOnDragEnd = false;\n        return;\n      }\n\n      let image = this.images.findBy('src', draggableInfo.payload.src);\n\n      if (image) {\n        this.images.removeObject(image);\n\n        this._recalculateImageRows();\n\n        this._buildAndSaveImagesPayload();\n\n        this._dragDropContainer.refresh();\n      }\n    },\n\n    // returns {\n    //   direction: 'horizontal' TODO: use a constant?\n    //   position: 'left'/'right' TODO: use constants?\n    //   beforeElems: array of elems to left of indicator\n    //   afterElems: array of elems to right of indicator\n    //   droppableIndex:\n    // }\n    _getDropIndicatorPosition(draggableInfo, droppableElem, position) {\n      // do not allow dropping of non-images\n      if (draggableInfo.type !== 'image' && draggableInfo.cardName !== 'image') {\n        return false;\n      }\n\n      let row = droppableElem.closest('[data-row]');\n      let droppables = Array.from(this.element.querySelectorAll('[data-image]'));\n      let draggableIndex = droppables.indexOf(draggableInfo.element);\n      let droppableIndex = droppables.indexOf(droppableElem);\n\n      if (row && this._isDropAllowed(draggableIndex, droppableIndex, position)) {\n        let rowImages = Array.from(row.querySelectorAll('[data-image]'));\n        let rowDroppableIndex = rowImages.indexOf(droppableElem);\n        let insertIndex = droppableIndex;\n        let beforeElems = [];\n        let afterElems = [];\n        rowImages.forEach((image, index) => {\n          if (index < rowDroppableIndex) {\n            beforeElems.push(image);\n          }\n\n          if (index === rowDroppableIndex) {\n            if (position.match(/left/)) {\n              afterElems.push(image);\n            } else {\n              beforeElems.push(image);\n            }\n          }\n\n          if (index > rowDroppableIndex) {\n            afterElems.push(image);\n          }\n        });\n\n        if (position.match(/right/)) {\n          insertIndex += 1;\n        }\n\n        return {\n          direction: 'horizontal',\n          position: position.match(/left/) ? 'left' : 'right',\n          beforeElems,\n          afterElems,\n          insertIndex\n        };\n      } else {\n        return false;\n      }\n    },\n\n    // we don't allow an image to be dropped where it would end up in the\n    // same position within the gallery\n    _isDropAllowed(draggableIndex, droppableIndex, position = '') {\n      // external images can always be dropped\n      if (draggableIndex === -1) {\n        return true;\n      } // can't drop on itself or when droppableIndex doesn't exist\n\n\n      if (draggableIndex === droppableIndex || typeof droppableIndex === 'undefined') {\n        return false;\n      } // account for dropping at beginning or end of a row\n\n\n      if (position.match(/left/)) {\n        droppableIndex -= 1;\n      }\n\n      if (position.match(/right/)) {\n        droppableIndex += 1;\n      }\n\n      return droppableIndex !== draggableIndex;\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-hr\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @class=\"kg-card-hover\"\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @editCard={{action this.editCard}}\n      @hasEditMode={{false}}\n      @editor={{this.editor}}\n  >\n      <hr>\n  </KoenigCard>\n  */\n  {\n    \"id\": \"hxEKLeKJ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@class\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@hasEditMode\\\",\\\"@editor\\\"],[\\\"kg-card-hover\\\",[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,0],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"editCard\\\"]]],null],false,[32,0,[\\\"editor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[10,\\\"hr\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-hr.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    tagName: '',\n\n    // closure actions\n    selectCard() {},\n\n    deselectCard() {},\n\n    registerComponent() {},\n\n    init() {\n      this._super(...arguments);\n\n      this.registerComponent(this);\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-html\", [\"exports\", \"@tryghost/helpers\"], function (_exports, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @icon=\"koenig/card-indicator-html\"\n      @class={{concat (kg-style \"container-card\") \" mih10 miw-100 relative\"}}\n      @headerOffset={{this.headerOffset}}\n      @toolbar={{this.toolbar}}\n      @payload={{this.payload}}\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @editCard={{action this.editCard}}\n      @saveCard={{action this.saveCard}}\n      @saveAsSnippet={{this.saveAsSnippet}}\n      @onLeaveEdit={{action \"leaveEditMode\"}}\n      @editor={{this.editor}}\n  >\n      {{#if this.isEditing}}\n          <GhCmEditor @value={{this.payload.html}}\n              @class=\"koenig-card-html--editor\"\n              @autofocus=true\n              @lineWrapping=true\n              @update={{action \"updateHtml\"}}\n          />\n      {{else}}\n          <div class=\"koenig-card-html-rendered\">{{{sanitize-html this.payload.html}}}</div>\n          <div class=\"koenig-card-click-overlay\"></div>\n      {{/if}}\n  </KoenigCard>\n  */\n  {\n    \"id\": \"j/6m2QL1\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@icon\\\",\\\"@class\\\",\\\"@headerOffset\\\",\\\"@toolbar\\\",\\\"@payload\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@saveCard\\\",\\\"@saveAsSnippet\\\",\\\"@onLeaveEdit\\\",\\\"@editor\\\"],[\\\"koenig/card-indicator-html\\\",[30,[36,3],[[30,[36,2],[\\\"container-card\\\"],null],\\\" mih10 miw-100 relative\\\"],null],[32,0,[\\\"headerOffset\\\"]],[32,0,[\\\"toolbar\\\"]],[32,0,[\\\"payload\\\"]],[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,1],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,1],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,1],[[32,0],[32,0,[\\\"editCard\\\"]]],null],[30,[36,1],[[32,0],[32,0,[\\\"saveCard\\\"]]],null],[32,0,[\\\"saveAsSnippet\\\"]],[30,[36,1],[[32,0],\\\"leaveEditMode\\\"],null],[32,0,[\\\"editor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,4],[[32,0,[\\\"isEditing\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,\\\"gh-cm-editor\\\",[],[[\\\"@value\\\",\\\"@class\\\",\\\"@autofocus\\\",\\\"@lineWrapping\\\",\\\"@update\\\"],[[32,0,[\\\"payload\\\",\\\"html\\\"]],\\\"koenig-card-html--editor\\\",\\\"true\\\",\\\"true\\\",[30,[36,1],[[32,0],\\\"updateHtml\\\"],null]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-card-html-rendered\\\"],[12],[2,[30,[36,0],[[32,0,[\\\"payload\\\",\\\"html\\\"]]],null]],[13],[2,\\\"\\\\n        \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-card-click-overlay\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"sanitize-html\\\",\\\"action\\\",\\\"kg-style\\\",\\\"concat\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-html.hbs\"\n    }\n  });\n\n  const {\n    countWords,\n    countImages\n  } = _helpers.utils;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    // attrs\n    payload: null,\n    isSelected: false,\n    isEditing: false,\n    headerOffset: 0,\n\n    // closure actions\n    selectCard() {},\n\n    deselectCard() {},\n\n    editCard() {},\n\n    saveCard() {},\n\n    deleteCard() {},\n\n    registerComponent() {},\n\n    counts: Ember.computed('payload.html', function () {\n      return {\n        wordCount: countWords(this.payload.html),\n        imageCount: countImages(this.payload.html)\n      };\n    }),\n    toolbar: Ember.computed('isEditing', function () {\n      if (this.isEditing) {\n        return false;\n      }\n\n      return {\n        items: [{\n          buttonClass: 'fw4 flex items-center white',\n          icon: 'koenig/kg-edit',\n          iconClass: 'fill-white',\n          title: 'Edit',\n          text: '',\n          action: Ember.run.bind(this, this.editCard)\n        }]\n      };\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      let payload = this.payload || {}; // CodeMirror errors on a `null` or `undefined` value\n\n      if (!payload.html) {\n        Ember.set(payload, 'html', '');\n      }\n\n      this.set('payload', payload);\n      this.registerComponent(this);\n    },\n\n    actions: {\n      updateHtml(html) {\n        this._updatePayloadAttr('html', html);\n      },\n\n      leaveEditMode() {\n        if (Ember.isBlank(this.payload.html)) {\n          // afterRender is required to avoid double modification of `isSelected`\n          // TODO: see if there's a way to avoid afterRender\n          Ember.run.scheduleOnce('afterRender', this, this.deleteCard);\n        }\n      }\n\n    },\n\n    _updatePayloadAttr(attr, value) {\n      let payload = this.payload;\n      let save = this.saveCard;\n      Ember.set(payload, attr, value); // update the mobiledoc and stay in edit mode\n\n      save(payload, false);\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-image\", [\"exports\", \"jquery\", \"ghost-admin/components/gh-image-uploader\", \"@tryghost/helpers\"], function (_exports, _jquery, _ghImageUploader, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @tagName=\"figure\"\n      @class={{concat (kg-style \"media-card\") \" \" (kg-style \"breakout\" size=this.payload.cardWidth) \" flex flex-column\"}}\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @editCard={{action this.editCard}}\n      @saveAsSnippet={{this.saveAsSnippet}}\n      @toolbar={{this.toolbar}}\n      @hasEditMode={{false}}\n      @addParagraphAfterCard={{this.addParagraphAfterCard}}\n      @moveCursorToPrevSection={{this.moveCursorToPrevSection}}\n      @moveCursorToNextSection={{this.moveCursorToNextSection}}\n      @editor={{this.editor}}\n      as |card|\n  >\n      <GhUploader\n          @files={{this.files}}\n          @accept={{this.imageMimeTypes}}\n          @extensions={{this.imageExtensions}}\n          @onStart={{action \"setPreviewSrc\"}}\n          @onComplete={{action \"updateSrc\"}}\n          @onFailed={{action \"resetSrcs\"}}\n          as |uploader|\n      >\n          <div class=\"relative{{unless (or this.previewSrc this.payload.src) \" bg-whitegrey-l2\"}}\">\n              {{#if (or this.previewSrc this.payload.src)}}\n                  <img src={{or this.previewSrc this.payload.src}} class=\"{{kg-style this.kgImgStyle sidebar=this.ui.hasSideNav}}\" alt={{this.payload.alt}}>\n                  {{#if this.isDraggedOver}}\n                      <div class=\"absolute absolute--fill flex items-center bg-black-60 pe-none\">\n                          <span class=\"db center sans-serif fw7 f7 white\">\n                              Drop to replace image\n                          </span>\n                      </div>\n                  {{/if}}\n              {{/if}}\n  \n              {{#if (or uploader.errors uploader.isUploading (not this.payload.src))}}\n                  <div class=\"relative miw-100 flex items-center {{if (not this.previewSrc this.payload.src) \"kg-media-placeholder ba b--whitegrey\" \"absolute absolute--fill bg-white-50\"}}\">\n                      {{#if uploader.errors}}\n                          <span class=\"db absolute top-0 right-0 left-0 pl2 pr2 bg-red white sans-serif f7\">\n                              {{uploader.errors.firstObject.message}}\n                          </span>\n                      {{/if}}\n  \n                      {{#if this.isDraggedOver}}\n                          <span class=\"db center sans-serif fw7 f7 middarkgrey\">\n                              Drop it like it's hot 🔥\n                          </span>\n                      {{else if uploader.isUploading}}\n                          {{uploader.progressBar}}\n                      {{else if (not this.previewSrc this.payload.src)}}\n                          <button class=\"flex flex-column items-center center sans-serif fw4 f7 middarkgrey pa16 pt14 pb14 kg-image-button\" onclick={{action \"triggerFileDialog\"}}>\n                              {{svg-jar this.placeholder class=\"kg-placeholder-image\"}}\n                              <span class=\"mt2 midgrey\">Click to select an image</span>\n                          </button>\n                      {{/if}}\n                  </div>\n              {{/if}}\n          </div>\n  \n          <div style=\"display:none\">\n              <GhFileInput @multiple={{false}} @action={{uploader.setFiles}} @accept={{this.imageMimeTypes}} />\n          </div>\n      </GhUploader>\n  \n      {{#if (or this.isSelected (clean-basic-html this.payload.caption))}}\n          {{#if this.isEditingAlt}}\n              <card.AltInput\n                  @alt={{this.payload.alt}}\n                  @update={{this.updateAlt}}\n                  @placeholder=\"Type alt text for image (optional)\" />\n          {{else}}\n              <card.CaptionInput\n                  @caption={{this.payload.caption}}\n                  @update={{this.updateCaption}}\n                  @placeholder=\"Type caption for image (optional)\" />\n          {{/if}}\n  \n          {{#if this.isSelected}}\n              <button\n                  title=\"Toggle between editing alt text and caption\"\n                  class=\"absolute right-0 bottom-0 ma2 pl1 pr1 ba br3 f8 sans-serif fw4 lh-title tracked-2 {{if this.isEditingAlt \"bg-green b--green white\" \"bg-white b--midlightgrey midlightgrey\"}}\"\n                  {{on \"click\" this.toggleAltEditing passive=true}}\n              >\n                  Alt\n              </button>\n          {{/if}}\n      {{/if}}\n  \n      {{#if this.imageSelector}}\n          {{component this.imageSelector\n              searchTerm=this.payload.searchTerm\n              select=(action \"selectFromImageSelector\")\n              close=(action \"closeImageSelector\")}}\n      {{/if}}\n  </KoenigCard>\n  \n  {{#if this.isEditingLink}}\n      <KoenigLinkInput\n          @source=\"direct\"\n          @href={{this.payload.href}}\n          @linkRect={{this.linkRect}}\n          @update={{action \"updateHref\"}}\n          @cancel={{action \"cancelEditLink\"}}\n      />\n  {{/if}}\n  */\n  {\n    \"id\": \"y2+I+8Vq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"card\\\",\\\"uploader\\\"],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@tagName\\\",\\\"@class\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@saveAsSnippet\\\",\\\"@toolbar\\\",\\\"@hasEditMode\\\",\\\"@addParagraphAfterCard\\\",\\\"@moveCursorToPrevSection\\\",\\\"@moveCursorToNextSection\\\",\\\"@editor\\\"],[\\\"figure\\\",[30,[36,8],[[30,[36,7],[\\\"media-card\\\"],null],\\\" \\\",[30,[36,7],[\\\"breakout\\\"],[[\\\"size\\\"],[[32,0,[\\\"payload\\\",\\\"cardWidth\\\"]]]]],\\\" flex flex-column\\\"],null],[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,0],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"editCard\\\"]]],null],[32,0,[\\\"saveAsSnippet\\\"]],[32,0,[\\\"toolbar\\\"]],false,[32,0,[\\\"addParagraphAfterCard\\\"]],[32,0,[\\\"moveCursorToPrevSection\\\"]],[32,0,[\\\"moveCursorToNextSection\\\"]],[32,0,[\\\"editor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[8,\\\"gh-uploader\\\",[],[[\\\"@files\\\",\\\"@accept\\\",\\\"@extensions\\\",\\\"@onStart\\\",\\\"@onComplete\\\",\\\"@onFailed\\\"],[[32,0,[\\\"files\\\"]],[32,0,[\\\"imageMimeTypes\\\"]],[32,0,[\\\"imageExtensions\\\"]],[30,[36,0],[[32,0],\\\"setPreviewSrc\\\"],null],[30,[36,0],[[32,0],\\\"updateSrc\\\"],null],[30,[36,0],[[32,0],\\\"resetSrcs\\\"],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n        \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"relative\\\",[30,[36,9],[[30,[36,6],[[32,0,[\\\"previewSrc\\\"]],[32,0,[\\\"payload\\\",\\\"src\\\"]]],null],\\\" bg-whitegrey-l2\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[30,[36,6],[[32,0,[\\\"previewSrc\\\"]],[32,0,[\\\"payload\\\",\\\"src\\\"]]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,[36,6],[[32,0,[\\\"previewSrc\\\"]],[32,0,[\\\"payload\\\",\\\"src\\\"]]],null]],[15,0,[31,[[30,[36,7],[[32,0,[\\\"kgImgStyle\\\"]]],[[\\\"sidebar\\\"],[[32,0,[\\\"ui\\\",\\\"hasSideNav\\\"]]]]]]]],[15,\\\"alt\\\",[32,0,[\\\"payload\\\",\\\"alt\\\"]]],[12],[13],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"isDraggedOver\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                    \\\"],[10,\\\"div\\\"],[14,0,\\\"absolute absolute--fill flex items-center bg-black-60 pe-none\\\"],[12],[2,\\\"\\\\n                        \\\"],[10,\\\"span\\\"],[14,0,\\\"db center sans-serif fw7 f7 white\\\"],[12],[2,\\\"\\\\n                            Drop to replace image\\\\n                        \\\"],[13],[2,\\\"\\\\n                    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,2],[[30,[36,6],[[32,2,[\\\"errors\\\"]],[32,2,[\\\"isUploading\\\"]],[30,[36,5],[[32,0,[\\\"payload\\\",\\\"src\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"relative miw-100 flex items-center \\\",[30,[36,2],[[30,[36,5],[[32,0,[\\\"previewSrc\\\"]],[32,0,[\\\"payload\\\",\\\"src\\\"]]],null],\\\"kg-media-placeholder ba b--whitegrey\\\",\\\"absolute absolute--fill bg-white-50\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,2,[\\\"errors\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                        \\\"],[10,\\\"span\\\"],[14,0,\\\"db absolute top-0 right-0 left-0 pl2 pr2 bg-red white sans-serif f7\\\"],[12],[2,\\\"\\\\n                            \\\"],[1,[32,2,[\\\"errors\\\",\\\"firstObject\\\",\\\"message\\\"]]],[2,\\\"\\\\n                        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"isDraggedOver\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"                        \\\"],[10,\\\"span\\\"],[14,0,\\\"db center sans-serif fw7 f7 middarkgrey\\\"],[12],[2,\\\"\\\\n                            Drop it like it's hot 🔥\\\\n                        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,2],[[32,2,[\\\"isUploading\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"                        \\\"],[1,[32,2,[\\\"progressBar\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,2],[[30,[36,5],[[32,0,[\\\"previewSrc\\\"]],[32,0,[\\\"payload\\\",\\\"src\\\"]]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                        \\\"],[10,\\\"button\\\"],[14,0,\\\"flex flex-column items-center center sans-serif fw4 f7 middarkgrey pa16 pt14 pb14 kg-image-button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"triggerFileDialog\\\"],null]],[12],[2,\\\"\\\\n                            \\\"],[1,[30,[36,4],[[32,0,[\\\"placeholder\\\"]]],[[\\\"class\\\"],[\\\"kg-placeholder-image\\\"]]]],[2,\\\"\\\\n                            \\\"],[10,\\\"span\\\"],[14,0,\\\"mt2 midgrey\\\"],[12],[2,\\\"Click to select an image\\\"],[13],[2,\\\"\\\\n                        \\\"],[13],[2,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"                \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"        \\\"],[13],[2,\\\"\\\\n\\\\n        \\\"],[10,\\\"div\\\"],[14,5,\\\"display:none\\\"],[12],[2,\\\"\\\\n            \\\"],[8,\\\"gh-file-input\\\",[],[[\\\"@multiple\\\",\\\"@action\\\",\\\"@accept\\\"],[false,[32,2,[\\\"setFiles\\\"]],[32,0,[\\\"imageMimeTypes\\\"]]]],null],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,2],[[30,[36,6],[[32,0,[\\\"isSelected\\\"]],[30,[36,10],[[32,0,[\\\"payload\\\",\\\"caption\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,2],[[32,0,[\\\"isEditingAlt\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[8,[32,1,[\\\"AltInput\\\"]],[],[[\\\"@alt\\\",\\\"@update\\\",\\\"@placeholder\\\"],[[32,0,[\\\"payload\\\",\\\"alt\\\"]],[32,0,[\\\"updateAlt\\\"]],\\\"Type alt text for image (optional)\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"            \\\"],[8,[32,1,[\\\"CaptionInput\\\"]],[],[[\\\"@caption\\\",\\\"@update\\\",\\\"@placeholder\\\"],[[32,0,[\\\"payload\\\",\\\"caption\\\"]],[32,0,[\\\"updateCaption\\\"]],\\\"Type caption for image (optional)\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"isSelected\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Toggle between editing alt text and caption\\\"],[16,0,[31,[\\\"absolute right-0 bottom-0 ma2 pl1 pr1 ba br3 f8 sans-serif fw4 lh-title tracked-2 \\\",[30,[36,2],[[32,0,[\\\"isEditingAlt\\\"]],\\\"bg-green b--green white\\\",\\\"bg-white b--midlightgrey midlightgrey\\\"],null]]]],[4,[38,3],[\\\"click\\\",[32,0,[\\\"toggleAltEditing\\\"]]],[[\\\"passive\\\"],[true]]],[12],[2,\\\"\\\\n                Alt\\\\n            \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"imageSelector\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[1,[30,[36,1],[[32,0,[\\\"imageSelector\\\"]]],[[\\\"searchTerm\\\",\\\"select\\\",\\\"close\\\"],[[32,0,[\\\"payload\\\",\\\"searchTerm\\\"]],[30,[36,0],[[32,0],\\\"selectFromImageSelector\\\"],null],[30,[36,0],[[32,0],\\\"closeImageSelector\\\"],null]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,2],[[32,0,[\\\"isEditingLink\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[8,\\\"koenig-link-input\\\",[],[[\\\"@source\\\",\\\"@href\\\",\\\"@linkRect\\\",\\\"@update\\\",\\\"@cancel\\\"],[\\\"direct\\\",[32,0,[\\\"payload\\\",\\\"href\\\"]],[32,0,[\\\"linkRect\\\"]],[30,[36,0],[[32,0],\\\"updateHref\\\"],null],[30,[36,0],[[32,0],\\\"cancelEditLink\\\"],null]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"component\\\",\\\"if\\\",\\\"on\\\",\\\"svg-jar\\\",\\\"not\\\",\\\"or\\\",\\\"kg-style\\\",\\\"concat\\\",\\\"unless\\\",\\\"clean-basic-html\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-image.hbs\"\n    }\n  });\n\n  const {\n    countWords\n  } = _helpers.utils;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    ui: Ember.inject.service(),\n    // attrs\n    editor: null,\n    files: null,\n    payload: null,\n    isSelected: false,\n    isEditing: false,\n    imageExtensions: _ghImageUploader.IMAGE_EXTENSIONS,\n    imageMimeTypes: _ghImageUploader.IMAGE_MIME_TYPES,\n    // properties\n    handlesDragDrop: true,\n    isEditingAlt: false,\n\n    // closure actions\n    selectCard() {},\n\n    deselectCard() {},\n\n    editCard() {},\n\n    saveCard() {},\n\n    deleteCard() {},\n\n    moveCursorToNextSection() {},\n\n    moveCursorToPrevSection() {},\n\n    addParagraphAfterCard() {},\n\n    registerComponent() {},\n\n    imageSelector: Ember.computed('payload.imageSelector', function () {\n      let selector = this.payload.imageSelector;\n      let imageSelectors = {\n        unsplash: 'gh-unsplash'\n      };\n      return imageSelectors[selector];\n    }),\n    counts: Ember.computed('payload.{src,caption}', function () {\n      let wordCount = 0;\n      let imageCount = 0;\n\n      if (this.payload.src) {\n        imageCount += 1;\n      }\n\n      if (this.payload.caption) {\n        wordCount += countWords(this.payload.caption);\n      }\n\n      return {\n        wordCount,\n        imageCount\n      };\n    }),\n    kgImgStyle: Ember.computed('payload.cardWidth', function () {\n      let cardWidth = this.payload.cardWidth;\n\n      if (cardWidth === 'wide') {\n        return 'image-wide';\n      }\n\n      if (cardWidth === 'full') {\n        return 'image-full';\n      }\n\n      return 'image-normal';\n    }),\n    toolbar: Ember.computed('isEditingLink', 'payload.{cardWidth,src}', function () {\n      if (!this.payload.src || this.isEditingLink) {\n        return false;\n      }\n\n      let cardWidth = this.payload.cardWidth;\n      return {\n        items: [{\n          title: 'Regular',\n          icon: 'koenig/kg-img-regular',\n          iconClass: !cardWidth ? 'fill-green-l2' : 'fill-white',\n          action: Ember.run.bind(this, this._changeCardWidth, '')\n        }, {\n          title: 'Wide',\n          icon: 'koenig/kg-img-wide',\n          iconClass: cardWidth === 'wide' ? 'fill-green-l2' : 'fill-white',\n          action: Ember.run.bind(this, this._changeCardWidth, 'wide')\n        }, {\n          title: 'Full',\n          icon: 'koenig/kg-img-full',\n          iconClass: cardWidth === 'full' ? 'fill-green-l2' : 'fill-white',\n          action: Ember.run.bind(this, this._changeCardWidth, 'full')\n        }, {\n          divider: true\n        }, {\n          title: 'Link',\n          icon: 'koenig/kg-link',\n          iconClass: this.payload.href ? 'fill-green-l2' : 'fill-white',\n          action: Ember.run.bind(this, this._editLink)\n        }, {\n          title: 'Replace image',\n          icon: 'koenig/kg-replace',\n          iconClass: 'fill-white',\n          action: Ember.run.bind(this, this._triggerFileDialog)\n        }]\n      };\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      if (!this.payload) {\n        this.set('payload', {});\n      }\n\n      let placeholders = ['summer', 'mountains', 'ufo-attack'];\n      this.set('placeholder', placeholders[Math.floor(Math.random() * placeholders.length)]);\n      this.registerComponent(this);\n    },\n\n    didReceiveAttrs() {\n      this._super(...arguments); // `payload.files` can be set if we have an externaly set image that\n      // should be uploaded. Typical example would be from a paste or drag/drop\n\n\n      if (!Ember.isEmpty(this.payload.files)) {\n        Ember.run.schedule('afterRender', this, function () {\n          this.set('files', this.payload.files); // we don't want to  persist any file data in the document\n\n          delete this.payload.files;\n        });\n      } // switch back to displaying caption when card is not selected\n\n\n      if (!this.isSelected) {\n        this.set('isEditingAlt', false);\n      }\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      if (this.payload.triggerBrowse && !this.payload.src && !this.payload.files) {\n        // we don't want to persist this in the serialized payload\n        this._updatePayloadAttr('triggerBrowse', undefined);\n\n        let fileInput = this.element.querySelector('input[type=\"file\"]');\n\n        if (fileInput) {\n          fileInput.click();\n        }\n      }\n    },\n\n    actions: {\n      updateSrc(images) {\n        let [image] = images; // create undo snapshot when image finishes uploading\n\n        this.editor.run(() => {\n          this._updatePayloadAttr('src', image.url);\n\n          if (this._imageWidth && this._imageHeight) {\n            this._updatePayloadAttr('width', this._imageWidth);\n\n            this._updatePayloadAttr('height', this._imageHeight);\n          }\n\n          this._imageWidth = null;\n          this._imageHeight = null;\n        });\n      },\n\n      /**\n       * Opens a file selection dialog - Triggered by \"Upload Image\" buttons,\n       * searches for the hidden file input within the .gh-setting element\n       * containing the clicked button then simulates a click\n       * @param  {MouseEvent} event - MouseEvent fired by the button click\n       */\n      triggerFileDialog(event) {\n        this._triggerFileDialog(event);\n      },\n\n      setPreviewSrc(files) {\n        let file = files[0];\n\n        if (file) {\n          let url = URL.createObjectURL(file);\n          this.set('previewSrc', url);\n          let imageElem = new Image();\n\n          imageElem.onload = () => {\n            // store width/height for use later to avoid saving an image card with no `src`\n            this._imageWidth = imageElem.naturalWidth;\n            this._imageHeight = imageElem.naturalHeight;\n          };\n\n          imageElem.src = url;\n        }\n      },\n\n      resetSrcs() {\n        this.set('previewSrc', null);\n        this._imageWidth = null;\n        this._imageHeight = null; // create undo snapshot when clearing\n\n        this.editor.run(() => {\n          this._updatePayloadAttr('src', null);\n\n          this._updatePayloadAttr('width', null);\n\n          this._updatePayloadAttr('height', null);\n        });\n      },\n\n      selectFromImageSelector({\n        src,\n        width,\n        height,\n        caption,\n        alt\n      }) {\n        let {\n          payload,\n          saveCard\n        } = this;\n        let searchTerm;\n        Ember.setProperties(payload, {\n          src,\n          width,\n          height,\n          caption,\n          alt,\n          searchTerm\n        });\n        this.send('closeImageSelector'); // create undo snapshot when selecting an image\n\n        this.editor.run(() => {\n          saveCard(payload, false);\n        });\n      },\n\n      closeImageSelector() {\n        if (!this.payload.src) {\n          return this.deleteCard();\n        }\n\n        Ember.set(this.payload, 'imageSelector', undefined); // ensure focus is returned to the editor so that the card which\n        // appears selected behaves as if it's selected\n\n        this.editor.focus();\n      },\n\n      updateHref(href) {\n        this._updatePayloadAttr('href', href);\n      },\n\n      cancelEditLink() {\n        this.set('isEditing', false);\n        this.set('isEditingLink', false);\n      }\n\n    },\n    updateCaption: Ember._action(function (caption) {\n      this._updatePayloadAttr('caption', caption);\n    }),\n    toggleAltEditing: Ember._action(function () {\n      this.toggleProperty('isEditingAlt');\n    }),\n    updateAlt: Ember._action(function (alt) {\n      this._updatePayloadAttr('alt', alt);\n    }),\n\n    dragOver(event) {\n      if (!event.dataTransfer) {\n        return;\n      } // this is needed to work around inconsistencies with dropping files\n      // from Chrome's downloads bar\n\n\n      if (navigator.userAgent.indexOf('Chrome') > -1) {\n        let eA = event.dataTransfer.effectAllowed;\n        event.dataTransfer.dropEffect = eA === 'move' || eA === 'linkMove' ? 'move' : 'copy';\n      }\n\n      event.stopPropagation();\n      event.preventDefault();\n      this.set('isDraggedOver', true);\n    },\n\n    dragLeave(event) {\n      event.preventDefault();\n      this.set('isDraggedOver', false);\n    },\n\n    drop(event) {\n      event.preventDefault();\n      this.set('isDraggedOver', false);\n\n      if (event.dataTransfer.files) {\n        this.set('files', [event.dataTransfer.files[0]]);\n      }\n    },\n\n    _changeCardWidth(cardWidth) {\n      // create undo snapshot when changing image size\n      this.editor.run(() => {\n        this._updatePayloadAttr('cardWidth', cardWidth);\n      });\n    },\n\n    _updatePayloadAttr(attr, value) {\n      let payload = this.payload;\n      let save = this.saveCard;\n      Ember.set(payload, attr, value); // update the mobiledoc and stay in edit mode\n\n      save(payload, false);\n    },\n\n    _triggerFileDialog(event) {\n      let target = event && event.target || this.element; // simulate click to open file dialog\n      // using jQuery because IE11 doesn't support MouseEvent\n\n      (0, _jquery.default)(target).closest('.__mobiledoc-card').find('input[type=\"file\"]').click();\n    },\n\n    _editLink(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      const rect = this.element.getBoundingClientRect();\n      rect.x = rect.x - 5;\n      this.set('linkRect', rect);\n      this.set('isEditing', true); // hide snippet icon in toolbar\n\n      this.set('isEditingLink', true);\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-markdown\", [\"exports\", \"ghost-admin/utils/format-markdown\", \"@tryghost/helpers\", \"ember-concurrency\"], function (_exports, _formatMarkdown, _helpers, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @icon=\"koenig/card-indicator-markdown\"\n      @class={{concat (kg-style \"container-card\") \" koenig-card-markdown-rendered\"}}\n      @headerOffset={{this.headerOffset}}\n      @toolbar={{this.toolbar}}\n      @payload={{this.payload}}\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @onEnterEdit={{action \"enterEditMode\"}}\n      @onLeaveEdit={{action \"leaveEditMode\"}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @editCard={{action this.editCard}}\n      @saveCard={{action this.saveCard}}\n      @saveAsSnippet={{this.saveAsSnippet}}\n      @editor={{this.editor}}\n  >\n      {{#if this.isEditing}}\n          <GhEditor as |editor|>\n              <GhScrollTrigger\n                  @triggerOffset={{hash bottom=this.bottomOffset}}\n                  @enter={{action \"topEntered\"}}\n                  @exit={{action \"topExited\"}}\n                  @registerElement={{action \"registerTop\"}}\n              />\n  \n              <GhMarkdownEditor\n                  @markdown={{readonly this.payload.markdown}}\n                  @onChange={{action \"updateMarkdown\"}}\n                  @autofocus={{true}}\n                  @enableSideBySide={{false}}\n                  @enablePreview={{false}}\n                  @enableHemingway={{false}}\n                  @options={{hash status=false}}\n                  @uploadedImageUrls={{editor.uploadedImageUrls}}\n                  @onImageFilesSelected={{action editor.uploadImages}}\n                  @imageMimeTypes={{editor.imageMimeTypes}}\n                  as |markdown|\n              >\n                  {{markdown.editor}}\n              </GhMarkdownEditor>\n  \n              <GhScrollTrigger\n                  @enter={{action \"bottomEntered\"}}\n                  @exit={{action \"bottomExited\"}}\n                  @registerElement={{action \"registerBottom\"}}\n              />\n  \n              {{!-- files are dragged over editor pane --}}\n              {{#if editor.isDraggedOver}}\n                  <div class=\"drop-target gh-editor-drop-target\">\n                      <div class=\"drop-target-message\">\n                          <h3>Drop image(s) here to upload</h3>\n                      </div>\n                  </div>\n              {{/if}}\n  \n              {{!-- files have been dropped ready to be uploaded --}}\n              {{#if editor.droppedFiles}}\n                  <GhUploader\n                      @files={{editor.droppedFiles}}\n                      @accept={{editor.imageMimeTypes}}\n                      @extensions={{editor.imageExtensions}}\n                      @onComplete={{action editor.uploadComplete}}\n                      @onCancel={{action editor.uploadCancelled}}\n                      as |upload|\n                  >\n                      <div class=\"gh-editor-image-upload {{if upload.errors \"-error\"}}\">\n                          <div class=\"gh-editor-image-upload-content\">\n                              {{#if upload.errors}}\n                                  <h3>Upload failed</h3>\n  \n                                  {{#each upload.errors as |error|}}\n                                      <div class=\"failed\">{{error.fileName}} - {{error.message}}</div>\n                                  {{/each}}\n  \n                                  <button class=\"gh-btn gh-btn-grey gh-btn-icon\" {{action upload.cancel}}>\n                                      <span>{{svg-jar \"close\"}} Close</span>\n                                  </button>\n                              {{else}}\n  \n                                  <h3>Uploading {{gh-pluralize upload.files.length \"image\"}}...</h3>\n                                  {{upload.progressBar}}\n                              {{/if}}\n                          </div>\n                      </div>\n                  </GhUploader>\n              {{/if}}\n          </GhEditor>\n  \n          {{#if this.preventClick}}\n              <div class=\"absolute absolute--fill z-max\"></div>\n          {{/if}}\n      {{else}}\n          {{this.renderedMarkdown}}\n          <div class=\"absolute absolute--fill z-999\"></div>\n      {{/if}}\n  </KoenigCard>\n  */\n  {\n    \"id\": \"9qBsnk18\",\n    \"block\": \"{\\\"symbols\\\":[\\\"editor\\\",\\\"upload\\\",\\\"error\\\",\\\"markdown\\\"],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@icon\\\",\\\"@class\\\",\\\"@headerOffset\\\",\\\"@toolbar\\\",\\\"@payload\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@onEnterEdit\\\",\\\"@onLeaveEdit\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@saveCard\\\",\\\"@saveAsSnippet\\\",\\\"@editor\\\"],[\\\"koenig/card-indicator-markdown\\\",[30,[36,9],[[30,[36,8],[\\\"container-card\\\"],null],\\\" koenig-card-markdown-rendered\\\"],null],[32,0,[\\\"headerOffset\\\"]],[32,0,[\\\"toolbar\\\"]],[32,0,[\\\"payload\\\"]],[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,3],[[32,0],\\\"enterEditMode\\\"],null],[30,[36,3],[[32,0],\\\"leaveEditMode\\\"],null],[30,[36,3],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,3],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,3],[[32,0],[32,0,[\\\"editCard\\\"]]],null],[30,[36,3],[[32,0],[32,0,[\\\"saveCard\\\"]]],null],[32,0,[\\\"saveAsSnippet\\\"]],[32,0,[\\\"editor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,5],[[32,0,[\\\"isEditing\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,\\\"gh-editor\\\",[],[[],[]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n            \\\"],[8,\\\"gh-scroll-trigger\\\",[],[[\\\"@triggerOffset\\\",\\\"@enter\\\",\\\"@exit\\\",\\\"@registerElement\\\"],[[30,[36,6],null,[[\\\"bottom\\\"],[[32,0,[\\\"bottomOffset\\\"]]]]],[30,[36,3],[[32,0],\\\"topEntered\\\"],null],[30,[36,3],[[32,0],\\\"topExited\\\"],null],[30,[36,3],[[32,0],\\\"registerTop\\\"],null]]],null],[2,\\\"\\\\n\\\\n            \\\"],[8,\\\"gh-markdown-editor\\\",[],[[\\\"@markdown\\\",\\\"@onChange\\\",\\\"@autofocus\\\",\\\"@enableSideBySide\\\",\\\"@enablePreview\\\",\\\"@enableHemingway\\\",\\\"@options\\\",\\\"@uploadedImageUrls\\\",\\\"@onImageFilesSelected\\\",\\\"@imageMimeTypes\\\"],[[30,[36,7],[[32,0,[\\\"payload\\\",\\\"markdown\\\"]]],null],[30,[36,3],[[32,0],\\\"updateMarkdown\\\"],null],true,false,false,false,[30,[36,6],null,[[\\\"status\\\"],[false]]],[32,1,[\\\"uploadedImageUrls\\\"]],[30,[36,3],[[32,0],[32,1,[\\\"uploadImages\\\"]]],null],[32,1,[\\\"imageMimeTypes\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n                \\\"],[1,[32,4,[\\\"editor\\\"]]],[2,\\\"\\\\n            \\\"]],\\\"parameters\\\":[4]}]]],[2,\\\"\\\\n\\\\n            \\\"],[8,\\\"gh-scroll-trigger\\\",[],[[\\\"@enter\\\",\\\"@exit\\\",\\\"@registerElement\\\"],[[30,[36,3],[[32,0],\\\"bottomEntered\\\"],null],[30,[36,3],[[32,0],\\\"bottomExited\\\"],null],[30,[36,3],[[32,0],\\\"registerBottom\\\"],null]]],null],[2,\\\"\\\\n\\\\n\\\"],[6,[37,5],[[32,1,[\\\"isDraggedOver\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[10,\\\"div\\\"],[14,0,\\\"drop-target gh-editor-drop-target\\\"],[12],[2,\\\"\\\\n                    \\\"],[10,\\\"div\\\"],[14,0,\\\"drop-target-message\\\"],[12],[2,\\\"\\\\n                        \\\"],[10,\\\"h3\\\"],[12],[2,\\\"Drop image(s) here to upload\\\"],[13],[2,\\\"\\\\n                    \\\"],[13],[2,\\\"\\\\n                \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,5],[[32,1,[\\\"droppedFiles\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                \\\"],[8,\\\"gh-uploader\\\",[],[[\\\"@files\\\",\\\"@accept\\\",\\\"@extensions\\\",\\\"@onComplete\\\",\\\"@onCancel\\\"],[[32,1,[\\\"droppedFiles\\\"]],[32,1,[\\\"imageMimeTypes\\\"]],[32,1,[\\\"imageExtensions\\\"]],[30,[36,3],[[32,0],[32,1,[\\\"uploadComplete\\\"]]],null],[30,[36,3],[[32,0],[32,1,[\\\"uploadCancelled\\\"]]],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n                    \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"gh-editor-image-upload \\\",[30,[36,5],[[32,2,[\\\"errors\\\"]],\\\"-error\\\"],null]]]],[12],[2,\\\"\\\\n                        \\\"],[10,\\\"div\\\"],[14,0,\\\"gh-editor-image-upload-content\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[32,2,[\\\"errors\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"                                \\\"],[10,\\\"h3\\\"],[12],[2,\\\"Upload failed\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,2],[[30,[36,1],[[30,[36,1],[[32,2,[\\\"errors\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                                    \\\"],[10,\\\"div\\\"],[14,0,\\\"failed\\\"],[12],[1,[32,3,[\\\"fileName\\\"]]],[2,\\\" - \\\"],[1,[32,3,[\\\"message\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]}]]],[2,\\\"\\\\n                                \\\"],[11,\\\"button\\\"],[24,0,\\\"gh-btn gh-btn-grey gh-btn-icon\\\"],[4,[38,3],[[32,0],[32,2,[\\\"cancel\\\"]]],null],[12],[2,\\\"\\\\n                                    \\\"],[10,\\\"span\\\"],[12],[1,[30,[36,4],[\\\"close\\\"],null]],[2,\\\" Close\\\"],[13],[2,\\\"\\\\n                                \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\n                                \\\"],[10,\\\"h3\\\"],[12],[2,\\\"Uploading \\\"],[1,[30,[36,0],[[32,2,[\\\"files\\\",\\\"length\\\"]],\\\"image\\\"],null]],[2,\\\"...\\\"],[13],[2,\\\"\\\\n                                \\\"],[1,[32,2,[\\\"progressBar\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"                        \\\"],[13],[2,\\\"\\\\n                    \\\"],[13],[2,\\\"\\\\n                \\\"]],\\\"parameters\\\":[2]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"        \\\"]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,5],[[32,0,[\\\"preventClick\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"div\\\"],[14,0,\\\"absolute absolute--fill z-max\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[1,[32,0,[\\\"renderedMarkdown\\\"]]],[2,\\\"\\\\n        \\\"],[10,\\\"div\\\"],[14,0,\\\"absolute absolute--fill z-999\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"gh-pluralize\\\",\\\"-track-array\\\",\\\"each\\\",\\\"action\\\",\\\"svg-jar\\\",\\\"if\\\",\\\"hash\\\",\\\"readonly\\\",\\\"kg-style\\\",\\\"concat\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-markdown.hbs\"\n    }\n  });\n\n  const {\n    countWords,\n    countImages\n  } = _helpers.utils;\n  const MIN_HEIGHT = 130;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    // attrs\n    payload: null,\n    isSelected: false,\n    isEditing: false,\n    headerOffset: 0,\n    // internal attrs\n    bottomOffset: 0,\n    preventClick: false,\n\n    // closure actions\n    editCard() {},\n\n    saveCard() {},\n\n    selectCard() {},\n\n    deselectCard() {},\n\n    deleteCard() {},\n\n    registerComponent() {},\n\n    counts: Ember.computed('renderedMarkdown', function () {\n      return {\n        wordCount: countWords(this.renderedMarkdown),\n        imageCount: countImages(this.renderedMarkdown)\n      };\n    }),\n    renderedMarkdown: Ember.computed('payload.markdown', function () {\n      return Ember.String.htmlSafe((0, _formatMarkdown.default)(this.payload.markdown));\n    }),\n    toolbar: Ember.computed('isEditing', function () {\n      if (this.isEditing) {\n        return false;\n      }\n\n      return {\n        items: [{\n          buttonClass: 'fw4 flex items-center white',\n          icon: 'koenig/kg-edit',\n          iconClass: 'fill-white',\n          title: 'Edit',\n          text: '',\n          action: Ember.run.bind(this, this.editCard)\n        }]\n      };\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      if (!this.payload) {\n        this.set('payload', {});\n      } // subtract toolbar height from MIN_HEIGHT so the trigger happens at\n      // the expected position without forcing the min height to be too small\n\n\n      this.set('bottomOffset', -MIN_HEIGHT);\n      this.registerComponent(this);\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this._teardownResizeHandler();\n    },\n\n    actions: {\n      enterEditMode() {\n        this._preventAccidentalClick.perform();\n      },\n\n      leaveEditMode() {\n        if (Ember.isBlank(this.payload.markdown)) {\n          // afterRender is required to avoid double modification of `isSelected`\n          // TODO: see if there's a way to avoid afterRender\n          Ember.run.scheduleOnce('afterRender', this, this.deleteCard);\n        }\n      },\n\n      updateMarkdown(markdown) {\n        let payload = this.payload;\n        let save = this.saveCard;\n        Ember.set(payload, 'markdown', markdown); // update the mobiledoc and stay in edit mode\n\n        save(payload, false);\n      },\n\n      // fires if top comes into view 0 px from viewport top\n      // fires if top comes into view MIN_HEIGHTpx above viewport bottom\n      topEntered() {\n        this._isTopVisible = true;\n        Ember.run.scheduleOnce('actions', this, this._applyToolbarStyles);\n      },\n\n      // fires if top leaves viewport 0 px from viewport top\n      // fires if top leaves viewport MIN_HEIGHTpx above viewport bottom\n      topExited() {\n        let top = this._topElement.getBoundingClientRect().top;\n\n        this._isTopVisible = false;\n        this._isTopAbove = top < 0;\n        Ember.run.scheduleOnce('actions', this, this._applyToolbarStyles);\n      },\n\n      bottomEntered() {\n        this._isBottomVisible = true;\n        Ember.run.scheduleOnce('actions', this, this._applyToolbarStyles);\n      },\n\n      bottomExited() {\n        let top = this._bottomElement.getBoundingClientRect().top;\n\n        this._isBottomVisible = false;\n        this._isBottomBelow = top > window.innerHeight;\n        Ember.run.scheduleOnce('actions', this, this._applyToolbarStyles);\n      },\n\n      registerTop(element) {\n        this._topElement = element;\n      },\n\n      registerBottom(element) {\n        this._bottomElement = element;\n      }\n\n    },\n\n    _applyToolbarStyles() {\n      let toolbar = this.element.querySelector('.editor-toolbar');\n\n      if (!toolbar) {\n        return;\n      }\n\n      let {\n        left,\n        width\n      } = this._containerDimensions();\n\n      let style = '';\n      let stuckTop = `top: ${MIN_HEIGHT}px; bottom: auto`;\n      let fixedBottom = `position: fixed; left: ${left + 1}px; width: ${width - 2}px`;\n      let stuckBottom = '';\n\n      if (this._isTopVisible && this._isBottomVisible) {\n        style = stuckBottom;\n      }\n\n      if (this._isTopVisible && !this._isBottomVisible) {\n        style = fixedBottom;\n      }\n\n      if (!this._isTopVisible && !this._isTopAbove) {\n        style = stuckTop;\n      }\n\n      if (!this._isTopVisible && this._isBottomVisible) {\n        style = stuckBottom;\n      }\n\n      if (!this._isTopVisible && !this._isBottomVisible && this._isTopAbove && this._isBottomBelow) {\n        style = fixedBottom;\n      } // set up resize watchers if in fixed position because we have to\n      // recalculate left position and width\n\n\n      if (!this._resizeHandler && style === fixedBottom) {\n        this._setupResizeHandler();\n      } else if (this._resizeHandler && style !== fixedBottom) {\n        this._teardownResizeHandler();\n      } // account for the mobile nav bar when in fixed position\n\n\n      if (style === fixedBottom) {\n        let mobileNav = document.querySelector('.gh-mobile-nav-bar');\n\n        if (mobileNav.offsetHeight) {\n          style = `${style}; bottom: ${mobileNav.offsetHeight}px`;\n        }\n      }\n\n      toolbar.setAttribute('style', style);\n    },\n\n    _containerDimensions() {\n      return this.element.querySelector('.kg-card-selected').getBoundingClientRect();\n    },\n\n    _setupResizeHandler() {\n      if (this._resizeHandler) {\n        return;\n      }\n\n      this._resizeHandler = Ember.run.bind(this, this._applyToolbarStyles);\n      window.addEventListener('resize', this._resizeHandler);\n    },\n\n    _teardownResizeHandler() {\n      window.removeEventListener('resize', this._resizeHandler);\n      this._resizeHandler = null;\n    },\n\n    // when entering edit mode it can be easy to accidentally click where the\n    // toolbar is inserted. Setting `preventClick` to true adds an overlay, so\n    // we set that for half a second to stop double-clicks hitting the toolbar\n    _preventAccidentalClick: (0, _emberConcurrency.task)(function* () {\n      this.set('preventClick', true);\n      yield (0, _emberConcurrency.timeout)(500);\n      this.set('preventClick', false);\n    })\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card-paywall\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KoenigCard\n      @class=\"kg-card-hover\"\n      @isSelected={{this.isSelected}}\n      @isEditing={{this.isEditing}}\n      @selectCard={{action this.selectCard}}\n      @deselectCard={{action this.deselectCard}}\n      @editCard={{action this.editCard}}\n      @hasEditMode={{false}}\n      @editor={{this.editor}}\n  >\n      <div class=\"kg-paywall-separator\">Free public preview  <span class=\"green\">↑</span>  /  <span class=\"green\">↓</span>  Only visible to members</div>\n  </KoenigCard>\n  */\n  {\n    \"id\": \"9RHJTmby\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[8,\\\"koenig-card\\\",[],[[\\\"@class\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@selectCard\\\",\\\"@deselectCard\\\",\\\"@editCard\\\",\\\"@hasEditMode\\\",\\\"@editor\\\"],[\\\"kg-card-hover\\\",[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"isEditing\\\"]],[30,[36,0],[[32,0],[32,0,[\\\"selectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"deselectCard\\\"]]],null],[30,[36,0],[[32,0],[32,0,[\\\"editCard\\\"]]],null],false,[32,0,[\\\"editor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[10,\\\"div\\\"],[14,0,\\\"kg-paywall-separator\\\"],[12],[2,\\\"Free public preview  \\\"],[10,\\\"span\\\"],[14,0,\\\"green\\\"],[12],[2,\\\"↑\\\"],[13],[2,\\\"  /  \\\"],[10,\\\"span\\\"],[14,0,\\\"green\\\"],[12],[2,\\\"↓\\\"],[13],[2,\\\"  Only visible to members\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card-paywall.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    tagName: '',\n\n    init() {\n      this._super(...arguments);\n\n      this.registerComponent(this);\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-card\", [\"exports\", \"mobiledoc-kit/utils/browser\"], function (_exports, _browser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    {{#if this.icon}}\n      <div class=\"sticky\" style=\"top: {{this.iconTop}}px; margin-bottom: {{this.iconTop}}px\">\n          <span data-tooltip={{@iconTooltip}}>{{svg-jar this.icon class=this.iconClass}}</span>\n      </div>\n      <div style=\"margin-top: -{{this.iconTop}}px\"></div>\n  {{/if}}\n  \n  {{yield (hash\n      CaptionInput=(component \"koenig-caption-input\"\n          captureInput=this.isSelected\n          addParagraphAfterCard=this.addParagraphAfterCard\n          moveCursorToPrevSection=this.moveCursorToPrevSection\n          moveCursorToNextSection=this.moveCursorToNextSection\n      )\n      AltInput=(component \"koenig-alt-input\"\n          addParagraphAfterCard=this.addParagraphAfterCard\n          moveCursorToPrevSection=this.moveCursorToPrevSection\n          moveCursorToNextSection=this.moveCursorToNextSection\n      )\n  )}}\n  \n  {{#let (and this.saveAsSnippet (not this.isEditing)) as |showSnippetIcon|}}\n      {{#if (or this.toolbar showSnippetIcon)}}\n          <KgActionBar @class=\"absolute\" @style={{this.toolbarStyle}} @isVisible={{this.shouldShowToolbar}} @instantClose={{this.koenigUi.inputHasFocus}}>\n              {{#each this.toolbar.items as |item|}}\n                  {{#if item.divider}}\n                      <li class=\"ma0 ml1 mr1 kg-action-bar-divider bg-darkgrey-l2 h5\" role=\"separator\"></li>\n                  {{else}}\n                      <li class=\"ma0 lh-solid\">\n                          <button\n                              type=\"button\"\n                              title={{item.title}}\n                              class=\"dib dim-lite link h9 w9 nudge-top--1 justify-center {{item.buttonClass}}\"\n                              {{on \"mousedown\" (action item.action)}}\n                          >\n                              {{#if item.icon}}{{svg-jar item.icon class=(concat item.iconClass (if item.text \" mr2\") \" w4 h4\")}} {{/if}}{{item.text}}\n                          </button>\n                      </li>\n                  {{/if}}\n              {{/each}}\n  \n              {{#if showSnippetIcon}}\n                  {{#if this.toolbar.items}}\n                      <li class=\"ma0 ml1 mr1 lh-solid kg-action-bar-divider bg-darkgrey-l2 h5\" role=\"separator\"></li>\n                  {{/if}}\n                  <li class=\"ma0 lh-solid\">\n                      <button\n                          type=\"button\"\n                          title=\"Create snippet\"\n                          class=\"dib dim-lite link h9 w9 nudge-top--1\"\n                          {{on \"click\" this.saveAsSnippet}}\n                      >\n                          {{svg-jar \"koenig/kg-snippet\" class=\"w4 h4\"}}\n                      </button>\n                  </li>\n              {{/if}}\n          </KgActionBar>\n      {{/if}}\n  {{/let}}\n  */\n  {\n    \"id\": \"uW6C8oLu\",\n    \"block\": \"{\\\"symbols\\\":[\\\"showSnippetIcon\\\",\\\"item\\\",\\\"@iconTooltip\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"icon\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"div\\\"],[14,0,\\\"sticky\\\"],[15,5,[31,[\\\"top: \\\",[32,0,[\\\"iconTop\\\"]],\\\"px; margin-bottom: \\\",[32,0,[\\\"iconTop\\\"]],\\\"px\\\"]]],[12],[2,\\\"\\\\n        \\\"],[10,\\\"span\\\"],[15,\\\"data-tooltip\\\",[32,3]],[12],[1,[30,[36,2],[[32,0,[\\\"icon\\\"]]],[[\\\"class\\\"],[[32,0,[\\\"iconClass\\\"]]]]]],[13],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n    \\\"],[10,\\\"div\\\"],[15,5,[31,[\\\"margin-top: -\\\",[32,0,[\\\"iconTop\\\"]],\\\"px\\\"]]],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[18,4,[[30,[36,9],null,[[\\\"CaptionInput\\\",\\\"AltInput\\\"],[[30,[36,8],[\\\"koenig-caption-input\\\"],[[\\\"captureInput\\\",\\\"addParagraphAfterCard\\\",\\\"moveCursorToPrevSection\\\",\\\"moveCursorToNextSection\\\"],[[32,0,[\\\"isSelected\\\"]],[32,0,[\\\"addParagraphAfterCard\\\"]],[32,0,[\\\"moveCursorToPrevSection\\\"]],[32,0,[\\\"moveCursorToNextSection\\\"]]]]],[30,[36,8],[\\\"koenig-alt-input\\\"],[[\\\"addParagraphAfterCard\\\",\\\"moveCursorToPrevSection\\\",\\\"moveCursorToNextSection\\\"],[[32,0,[\\\"addParagraphAfterCard\\\"]],[32,0,[\\\"moveCursorToPrevSection\\\"]],[32,0,[\\\"moveCursorToNextSection\\\"]]]]]]]]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,12],[[30,[36,11],[[32,0,[\\\"saveAsSnippet\\\"]],[30,[36,10],[[32,0,[\\\"isEditing\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[30,[36,7],[[32,0,[\\\"toolbar\\\"]],[32,1]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,\\\"kg-action-bar\\\",[],[[\\\"@class\\\",\\\"@style\\\",\\\"@isVisible\\\",\\\"@instantClose\\\"],[\\\"absolute\\\",[32,0,[\\\"toolbarStyle\\\"]],[32,0,[\\\"shouldShowToolbar\\\"]],[32,0,[\\\"koenigUi\\\",\\\"inputHasFocus\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,6],[[30,[36,5],[[30,[36,5],[[32,0,[\\\"toolbar\\\",\\\"items\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[32,2,[\\\"divider\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"                    \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 ml1 mr1 kg-action-bar-divider bg-darkgrey-l2 h5\\\"],[14,\\\"role\\\",\\\"separator\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"                    \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 lh-solid\\\"],[12],[2,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[16,\\\"title\\\",[32,2,[\\\"title\\\"]]],[16,0,[31,[\\\"dib dim-lite link h9 w9 nudge-top--1 justify-center \\\",[32,2,[\\\"buttonClass\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,1],[\\\"mousedown\\\",[30,[36,4],[[32,0],[32,2,[\\\"action\\\"]]],null]],null],[12],[2,\\\"\\\\n                            \\\"],[6,[37,0],[[32,2,[\\\"icon\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[1,[30,[36,2],[[32,2,[\\\"icon\\\"]]],[[\\\"class\\\"],[[30,[36,3],[[32,2,[\\\"iconClass\\\"]],[30,[36,0],[[32,2,[\\\"text\\\"]],\\\" mr2\\\"],null],\\\" w4 h4\\\"],null]]]]],[2,\\\" \\\"]],\\\"parameters\\\":[]}]]],[1,[32,2,[\\\"text\\\"]]],[2,\\\"\\\\n                        \\\"],[13],[2,\\\"\\\\n                    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[2]}]]],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,1]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"toolbar\\\",\\\"items\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                    \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 ml1 mr1 lh-solid kg-action-bar-divider bg-darkgrey-l2 h5\\\"],[14,\\\"role\\\",\\\"separator\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"                \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 lh-solid\\\"],[12],[2,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Create snippet\\\"],[24,0,\\\"dib dim-lite link h9 w9 nudge-top--1\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[32,0,[\\\"saveAsSnippet\\\"]]],null],[12],[2,\\\"\\\\n                        \\\"],[1,[30,[36,2],[\\\"koenig/kg-snippet\\\"],[[\\\"class\\\"],[\\\"w4 h4\\\"]]]],[2,\\\"\\\\n                    \\\"],[13],[2,\\\"\\\\n                \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"        \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"on\\\",\\\"svg-jar\\\",\\\"concat\\\",\\\"action\\\",\\\"-track-array\\\",\\\"each\\\",\\\"or\\\",\\\"component\\\",\\\"hash\\\",\\\"not\\\",\\\"and\\\",\\\"let\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-card.hbs\"\n    }\n  });\n\n  const TICK_HEIGHT = 8;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    koenigUi: Ember.inject.service(),\n    attributeBindings: ['_style:style'],\n    classNameBindings: ['selectedClass'],\n    // attrs\n    editor: null,\n    icon: null,\n    iconClass: 'ih5 absolute stroke-midgrey-l2 mt1 nl15 kg-icon',\n    toolbar: null,\n    isSelected: false,\n    isEditing: false,\n    hasEditMode: true,\n    headerOffset: 0,\n    showSelectedOutline: true,\n    // properties\n    showToolbar: false,\n    toolbarWidth: 0,\n    toolbarHeight: 0,\n    // internal properties\n    _lastIsEditing: false,\n\n    // closure actions\n    selectCard() {},\n\n    deselectCard() {},\n\n    editCard() {},\n\n    // hooks - when attached these will be fired on the individual card components\n    onSelect() {},\n\n    onDeselect() {},\n\n    onEnterEdit() {},\n\n    onLeaveEdit() {},\n\n    shouldShowToolbar: Ember.computed('showToolbar', 'koenigUi.{captionHasFocus,isDragging,inputHasFocus}', function () {\n      return this.showToolbar && !this.koenigUi.captionHasFocus && !this.koenigUi.inputHasFocus && !this.koenigUi.isDragging;\n    }),\n    toolbarStyle: Ember.computed('shouldShowToolbar', 'toolbarWidth', 'toolbarHeight', function () {\n      let showToolbar = this.shouldShowToolbar;\n      let width = this.toolbarWidth;\n      let height = this.toolbarHeight;\n      let styles = [];\n      styles.push(`top: -${height}px`);\n      styles.push(`left: calc(50% - ${width / 2}px)`);\n\n      if (!showToolbar) {\n        styles.push('pointer-events: none !important');\n      }\n\n      return Ember.String.htmlSafe(styles.join('; '));\n    }),\n    iconTop: Ember.computed('headerOffset', function () {\n      return this.headerOffset + 24;\n    }),\n    selectedClass: Ember.computed('isSelected', 'showSelectedOutline', function () {\n      return this.isSelected && this.showSelectedOutline ? 'kg-card-selected' : '';\n    }),\n\n    didReceiveAttrs() {\n      this._super(...arguments);\n\n      let isSelected = this.isSelected;\n      let isEditing = this.isEditing;\n      let hasEditMode = this.hasEditMode; // TODO: replace with Spirit classes\n\n      let baseStyles = 'cursor: default; caret-color: auto;';\n      this.set('_style', Ember.String.htmlSafe(`${baseStyles} ${this.style || ''}`));\n\n      if (isSelected !== this._lastIsSelected) {\n        if (isSelected) {\n          this._fireWhenRendered(this._onSelect);\n        } else {\n          this._fireWhenRendered(this._onDeselect);\n        }\n      }\n\n      if (isEditing !== this._lastIsEditing) {\n        if (!hasEditMode) {\n          isEditing = false;\n        } else if (isEditing) {\n          this._onEnterEdit();\n        } else {\n          this._onLeaveEdit();\n        }\n      } // show the toolbar immediately if it changes whilst the card is selected\n      // caters for situations such as only showing image style buttons once an\n      // image has been uploaded\n\n\n      if (isSelected && this._lastIsSelected && this.toolbar && this.toolbar !== this._lastToolbar) {\n        Ember.run.scheduleOnce('afterRender', this, this._showToolbar);\n      }\n\n      if (isSelected && this._lastIsSelected && this.saveAsSnippet && this.saveAsSnippet !== this._lastSaveAsSnippet) {\n        Ember.run.scheduleOnce('afterRender', this, this._showToolbar);\n      }\n\n      this._lastIsSelected = isSelected;\n      this._lastIsEditing = isEditing;\n      this._lastToolbar = this.toolbar;\n      this._lastSaveAsSnippet = this.saveAsSnippet;\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      this._setToolbarProperties();\n\n      this._createMutationObserver(this.element, Ember.run.bind(this, this._inputFocus), Ember.run.bind(this, this._inputBlur));\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      window.removeEventListener('keydown', this._onKeydownHandler);\n      window.removeEventListener('click', this._onClickHandler);\n\n      this._removeMousemoveHandler();\n\n      if (this._mutationObserver) {\n        this._mutationObserver.disconnect();\n      }\n\n      if (this._hasDisabledContenteditable) {\n        this.editor.element.contentEditable = true;\n      }\n    },\n\n    mouseDown(event) {\n      let {\n        isSelected,\n        isEditing,\n        hasEditMode\n      } = this; // if we perform an action we want to prevent the mousedown from\n      // triggering a cursor position change which can result in multiple\n      // card select calls getting the component into an odd state. We also\n      // manually show the toolbar so that we're not relying on mousemove\n\n      if (!isSelected && !isEditing) {\n        this.selectCard();\n        this.set('showToolbar', true); // in most situations we want to prevent default behaviour which\n        // can cause an underlying cursor position change but inputs and\n        // textareas are different and we want the focus to move to them\n        // immediately when clicked\n\n        let targetTagName = event.target.tagName;\n        let allowedTagNames = ['INPUT', 'TEXTAREA'];\n        let allowClickthrough = !!event.target.closest('[data-kg-allow-clickthrough]');\n\n        if (!allowedTagNames.includes(targetTagName) && !allowClickthrough) {\n          event.preventDefault();\n        } // don't trigger edit mode immediately\n\n\n        this._skipMouseUp = true;\n      } // don't trigger select->edit transition for clicks in the caption or\n      // when clicking out of the caption\n\n\n      if (isSelected && hasEditMode) {\n        let allowClickthrough = !!event.target.closest('[data-kg-allow-clickthrough]');\n\n        if (allowClickthrough || this.koenigUi.captionHasFocus) {\n          this._skipMouseUp = true;\n        }\n      }\n    },\n\n    // lazy-click to enter edit mode\n    mouseUp(event) {\n      let {\n        isSelected,\n        isEditing,\n        hasEditMode,\n        _skipMouseUp\n      } = this; // we want to allow toolbar buttons to be clicked without going into edit mode\n\n      if (event.target.closest('[data-kg-toolbar]')) {\n        this._skipMouseUp = true;\n        return;\n      }\n\n      if (!_skipMouseUp && hasEditMode && isSelected && !isEditing && !this.koenigUi.isDragging) {\n        this.editCard();\n        this.set('showToolbar', true);\n        event.preventDefault();\n      }\n\n      this._skipMouseUp = false;\n    },\n\n    doubleClick() {\n      let allowClickthrough = !!event.target.closest('[data-kg-allow-clickthrough]');\n\n      if (this.hasEditMode && !this.isEditing && !allowClickthrough) {\n        this.editCard();\n        this.set('showToolbar', true);\n      }\n    },\n\n    _onSelect() {\n      this._fireWhenRendered(this._showToolbar);\n\n      this._showToolbar();\n\n      this.onSelect();\n      this._onClickHandler = Ember.run.bind(this, this._handleClick);\n      window.addEventListener('click', this._onClickHandler);\n    },\n\n    _onDeselect() {\n      window.removeEventListener('click', this._onClickHandler);\n\n      this._hideToolbar();\n\n      this.onDeselect();\n    },\n\n    _onEnterEdit() {\n      // don't register key down handlers immediately otherwise we can interfere\n      // with keyboard events that have just put the card into edit mode\n      Ember.run.later(this, function () {\n        if (this.isEditing && !this.isDestroyed && !this.isDestroying) {\n          this._onKeydownHandler = Ember.run.bind(this, this._handleKeydown);\n          window.addEventListener('keydown', this._onKeydownHandler);\n        }\n      }, 20); // store a copy of the payload for later comparison\n\n      this._snapshotPayload = JSON.stringify(this.payload);\n      this.onEnterEdit();\n    },\n\n    _onLeaveEdit() {\n      window.removeEventListener('keydown', this._onKeydownHandler); // if the payload has changed since entering edit mode then store a snapshot\n\n      let newPayload = JSON.stringify(this.payload);\n\n      if (newPayload !== this._snapshotPayload) {\n        this.editor.run(() => {\n          this.saveCard(this.payload);\n        });\n      }\n\n      delete this._snapshotPayload;\n      this.onLeaveEdit();\n    },\n\n    _setToolbarProperties() {\n      var _this$element;\n\n      // select the last toolbar in the element because card contents/captions\n      // may have their own toolbar elements\n      let toolbar = (_this$element = this.element) === null || _this$element === void 0 ? void 0 : _this$element.querySelector(':scope > [data-kg-toolbar=\"true\"]');\n\n      if (!toolbar) {\n        return;\n      }\n\n      let {\n        width,\n        height\n      } = toolbar.getBoundingClientRect();\n      this.setProperties({\n        toolbarWidth: width,\n        toolbarHeight: height + TICK_HEIGHT\n      });\n    },\n\n    _showToolbar() {\n      // only show a toolbar if we have one\n      if (this.toolbar || this.saveAsSnippet) {\n        this._setToolbarProperties();\n\n        if (!this.showToolbar && !this._onMousemoveHandler) {\n          this._onMousemoveHandler = Ember.run.bind(this, this._handleMousemove);\n          window.addEventListener('mousemove', this._onMousemoveHandler);\n        }\n      }\n    },\n\n    _hideToolbar() {\n      this.set('showToolbar', false);\n\n      this._removeMousemoveHandler();\n    },\n\n    _handleKeydown(event) {\n      if (this.isEditing && event.key === 'Escape' || _browser.default.isMac() && event.key === 'Enter' && event.metaKey || !_browser.default.isMac() && event.key === 'Enter' && event.ctrlKey) {\n        // run the select card routine with isEditing=false to exit edit mode\n        this.selectCard(false);\n        event.preventDefault();\n      }\n    },\n\n    // exit edit mode any time we have a click outside of the card unless it's\n    // a click inside one of our modals or on the plus menu\n    _handleClick(event) {\n      let {\n        target,\n        path\n      } = event; // Safari doesn't expose MouseEvent.path\n\n      if (!path) {\n        path = event.composedPath();\n      }\n\n      let searchPath = function (selector) {\n        return element => element.closest && element.closest(selector);\n      }; // check if the click was in the card, on the plus menu, or on a modal\n\n\n      if (this.element.contains(target) || path.find(searchPath(`#${this.element.id}`)) || path.find(searchPath('[data-kg=\"plus-menu\"]')) || path.find(searchPath('.liquid-destination'))) {\n        return;\n      } // if an element in the editor is clicked then cursor placement will\n      // deselect or keep this card selected as necessary\n\n\n      if (this.editor.element.contains(target)) {\n        return;\n      }\n\n      this.deselectCard();\n    },\n\n    _handleMousemove() {\n      if (!this.showToolbar) {\n        this.set('showToolbar', true);\n\n        this._removeMousemoveHandler();\n      }\n    },\n\n    _removeMousemoveHandler() {\n      window.removeEventListener('mousemove', this._onMousemoveHandler);\n      this._onMousemoveHandler = null;\n    },\n\n    // convenience method for when we only want to run a method when our\n    // elements have been rendered\n    _fireWhenRendered(method) {\n      if (this.element) {\n        Ember.run.bind(this, method)();\n      } else {\n        Ember.run.scheduleOnce('afterRender', this, method);\n      }\n    },\n\n    // Firefox can't handle inputs inside of a contenteditable element so we\n    // need to watch for any inputs being added so that we can attach focus/blur\n    // event handlers that can disable contenteditable on the editor element\n    _createMutationObserver(target, focusCallback, blurCallback) {\n      function addInputFocusListeners(mutation) {\n        function addInputFocusListener(element) {\n          if (!inputElements.includes(element)) {\n            inputElements.push(element);\n            element.addEventListener('focus', focusCallback, false);\n            element.addEventListener('blur', blurCallback, false);\n          }\n        }\n\n        if (mutation.type === 'childList') {\n          Array.prototype.forEach.call(mutation.target.querySelectorAll('input[type=\"text\"]'), addInputFocusListener);\n        }\n      }\n\n      function removeFromElements(element) {\n        inputElements.splice(inputElements.indexOf(element), 1);\n      }\n\n      function removeInputFocusListener(element) {\n        element.removeEventListener('focus', focusCallback, false);\n        element.removeEventListener('blur', blurCallback, false);\n        removeFromElements(element);\n      }\n\n      function mutationObserved(mutations) {\n        mutations.forEach(addInputFocusListeners);\n      }\n\n      function createMutationObserver(mutationTarget) {\n        let config = {\n          childList: true,\n          subtree: true\n        };\n        let observer = new MutationObserver(mutationObserved);\n        observer.observe(mutationTarget, config); // eslint-disable-line ghost/ember/no-observers\n\n        return observer;\n      }\n\n      let inputElements = [];\n      let observer = createMutationObserver(target);\n      return {\n        disconnect() {\n          if ('disconnect' in observer) {\n            observer.disconnect(); // eslint-disable-line ghost/ember/no-observers\n\n            inputElements.forEach(removeInputFocusListener);\n          }\n        }\n\n      };\n    },\n\n    _inputFocus() {\n      this._hasDisabledContenteditable = true;\n      this.editor.element.contentEditable = false;\n    },\n\n    _inputBlur() {\n      this._hasDisabledContenteditable = false;\n      this.editor.element.contentEditable = true;\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-editor\", [\"exports\", \"mobiledoc-kit/utils/browser\", \"mobiledoc-kit/editor/editor\", \"mobiledoc-kit/utils/key\", \"mobiledoc-kit/utils/cursor/range\", \"koenig-editor/utils/reading-time\", \"koenig-editor/options/atoms\", \"koenig-editor/options/cards\", \"ghost-admin/utils/format-markdown\", \"koenig-editor/options/key-commands\", \"koenig-editor/options/text-expansions\", \"validator\", \"tracked-built-ins\", \"@tryghost/kg-parser-plugins\", \"mobiledoc-kit/utils/parse-utils\", \"koenig-editor/utils/markup-utils\", \"koenig-editor/lib/dnd/utils\", \"@tryghost/helpers\", \"ghost-admin/helpers/svg-jar\"], function (_exports, _browser, _editor, _key, _range, _readingTime, _atoms, _cards, _formatMarkdown, _keyCommands, _textExpansions, _validator, _trackedBuiltIns, _kgParserPlugins, _parseUtils, _markupUtils, _utils, _helpers, _svgJar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayToMap = arrayToMap;\n  _exports.toggleSpecialFormatEditState = toggleSpecialFormatEditState;\n  _exports.default = _exports.SPECIAL_MARKUPS = _exports.NO_CURSOR_MOVEMENT = _exports.CURSOR_AFTER = _exports.CURSOR_BEFORE = _exports.BLANK_DOC = _exports.MOBILEDOC_VERSION = _exports.TESTING_EXPANDO_PROPERTY = _exports.REMOVE_ATOM_HOOK = _exports.ADD_ATOM_HOOK = _exports.REMOVE_CARD_HOOK = _exports.ADD_CARD_HOOK = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <div class=\"koenig-editor__editor-wrapper\" data-kg=\"editor-wrapper\">\n      <div class=\"koenig-editor__editor\" data-kg=\"editor\"></div>\n  </div>\n  \n  {{!-- pop-up markup toolbar is shown when there's a selection --}}\n  <KoenigToolbar\n      @editor={{this.editor}}\n      @editorRange={{this.selectedRange}}\n      @activeMarkupTagNames={{this.activeMarkupTagNames}}\n      @activeSectionTagNames={{this.activeSectionTagNames}}\n      @toggleMarkup={{action \"toggleMarkup\"}}\n      @toggleSection={{action \"toggleSection\"}}\n      @toggleHeaderSection={{action \"toggleHeaderSection\"}}\n      @editLink={{action \"editLink\"}}\n      @addSnippet={{this.addSnippetIfPossible}}\n  />\n  \n  {{!-- pop-up link hover toolbar --}}\n  <KoenigLinkToolbar\n      @editor={{this.editor}}\n      @container={{this.element}}\n      @linkRange={{this.linkRange}}\n      @selectedRange={{this.selectedRange}}\n      @editLink={{action \"editLink\"}}\n  />\n  \n  {{!-- pop-up link editing toolbar --}}\n  {{#if this.linkRange}}\n      <KoenigLinkInput\n          @editor={{this.editor}}\n          @linkRange={{this.linkRange}}\n          @linkRect={{this.linkRect}}\n          @selectedRange={{this.selectedRange}}\n          @cancel={{action \"cancelEditLink\"}}\n      />\n  {{/if}}\n  \n  {{!-- pop-up snippet editing toolbar --}}\n  {{#if this.snippetRange}}\n      {{#if (feature \"snippetReplacements\")}}\n          <KoenigSnippetInputLabs\n              @editor={{this.editor}}\n              @snippetRange={{this.snippetRange}}\n              @snippetRect={{this.snippetRect}}\n              @save={{@saveSnippet}}\n              @cancel={{this.cancelAddSnippet}}\n          />\n      {{else}}\n          <KoenigSnippetInput\n              @editor={{this.editor}}\n              @snippetRange={{this.snippetRange}}\n              @snippetRect={{this.snippetRect}}\n              @save={{@saveSnippet}}\n              @cancel={{this.cancelAddSnippet}}\n          />\n      {{/if}}\n  {{/if}}\n  \n  {{!-- (+) icon and pop-up menu --}}\n  <KoenigPlusMenu\n      @editor={{this.editor}}\n      @editorRange={{this.selectedRange}}\n      @snippets={{this.snippets}}\n      @deleteSnippet={{this.deleteSnippet}}\n      @replaceWithCardSection={{action \"replaceWithCardSection\"}}\n      @replaceWithPost={{action \"replaceWithPost\"}}\n  />\n  \n  {{!-- slash menu popup --}}\n  <KoenigSlashMenu\n      @editor={{this.editor}}\n      @editorRange={{this.selectedRange}}\n      @snippets={{this.snippets}}\n      @deleteSnippet={{this.deleteSnippet}}\n      @replaceWithCardSection={{action \"replaceWithCardSection\"}}\n      @replaceWithPost={{action \"replaceWithPost\"}}\n  />\n  \n  {{!-- all component cards wormholed into the editor canvas --}}\n  {{#each this.componentCards as |card|}}\n      {{#in-element card.destinationElement}}\n          {{component card.componentName\n              editor=this.editor\n              postModel=card.postModel\n              cardName=card.cardName\n              payload=card.payload\n              env=card.env\n              options=card.options\n              headerOffset=this.headerOffset\n              saveCard=(action card.env.save)\n              cancelCard=(action card.env.cancel)\n              removeCard=(action card.env.remove)\n              isSelected=card.isSelected\n              isEditing=card.isEditing\n              selectCard=(action \"selectCard\" card)\n              deselectCard=(action \"deselectCard\" card)\n              editCard=(action \"editCard\" card)\n              deleteCard=(action \"deleteCard\" card)\n              saveAsSnippet=(if this.saveCardAsSnippetIfPossible (fn this.saveCardAsSnippetIfPossible card))\n              moveCursorToPrevSection=(action \"moveCursorToPrevSection\" card)\n              moveCursorToNextSection=(action \"moveCursorToNextSection\" card)\n              addParagraphAfterCard=(action \"addParagraphAfterCard\" card)\n              registerComponent=(action (mut card.component))\n          }}\n      {{/in-element}}\n  {{/each}}\n  \n  {{!-- all component atoms wormholed into the editor canvas --}}\n  {{#each this.componentAtoms as |atom|}}\n      {{#in-element atom.destinationElement}}\n          {{component atom.componentName\n              editor=this.editor\n              atom=atom\n              saveAtom=(fn atom.env.save atom.env.value atom.env.payload)\n              registerComponent=(action (mut atom.component))\n          }}\n      {{/in-element}}\n  {{/each}}\n  */\n  {\n    \"id\": \"6lH2NGp5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"atom\\\",\\\"card\\\",\\\"@saveSnippet\\\"],\\\"statements\\\":[[10,\\\"div\\\"],[14,0,\\\"koenig-editor__editor-wrapper\\\"],[14,\\\"data-kg\\\",\\\"editor-wrapper\\\"],[12],[2,\\\"\\\\n    \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-editor__editor\\\"],[14,\\\"data-kg\\\",\\\"editor\\\"],[12],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[8,\\\"koenig-toolbar\\\",[],[[\\\"@editor\\\",\\\"@editorRange\\\",\\\"@activeMarkupTagNames\\\",\\\"@activeSectionTagNames\\\",\\\"@toggleMarkup\\\",\\\"@toggleSection\\\",\\\"@toggleHeaderSection\\\",\\\"@editLink\\\",\\\"@addSnippet\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"selectedRange\\\"]],[32,0,[\\\"activeMarkupTagNames\\\"]],[32,0,[\\\"activeSectionTagNames\\\"]],[30,[36,1],[[32,0],\\\"toggleMarkup\\\"],null],[30,[36,1],[[32,0],\\\"toggleSection\\\"],null],[30,[36,1],[[32,0],\\\"toggleHeaderSection\\\"],null],[30,[36,1],[[32,0],\\\"editLink\\\"],null],[32,0,[\\\"addSnippetIfPossible\\\"]]]],null],[2,\\\"\\\\n\\\\n\\\"],[8,\\\"koenig-link-toolbar\\\",[],[[\\\"@editor\\\",\\\"@container\\\",\\\"@linkRange\\\",\\\"@selectedRange\\\",\\\"@editLink\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"element\\\"]],[32,0,[\\\"linkRange\\\"]],[32,0,[\\\"selectedRange\\\"]],[30,[36,1],[[32,0],\\\"editLink\\\"],null]]],null],[2,\\\"\\\\n\\\\n\\\"],[6,[37,6],[[32,0,[\\\"linkRange\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[8,\\\"koenig-link-input\\\",[],[[\\\"@editor\\\",\\\"@linkRange\\\",\\\"@linkRect\\\",\\\"@selectedRange\\\",\\\"@cancel\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"linkRange\\\"]],[32,0,[\\\"linkRect\\\"]],[32,0,[\\\"selectedRange\\\"]],[30,[36,1],[[32,0],\\\"cancelEditLink\\\"],null]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,6],[[32,0,[\\\"snippetRange\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,6],[[30,[36,7],[\\\"snippetReplacements\\\"],null]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[8,\\\"koenig-snippet-input-labs\\\",[],[[\\\"@editor\\\",\\\"@snippetRange\\\",\\\"@snippetRect\\\",\\\"@save\\\",\\\"@cancel\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"snippetRange\\\"]],[32,0,[\\\"snippetRect\\\"]],[32,3],[32,0,[\\\"cancelAddSnippet\\\"]]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[8,\\\"koenig-snippet-input\\\",[],[[\\\"@editor\\\",\\\"@snippetRange\\\",\\\"@snippetRect\\\",\\\"@save\\\",\\\"@cancel\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"snippetRange\\\"]],[32,0,[\\\"snippetRect\\\"]],[32,3],[32,0,[\\\"cancelAddSnippet\\\"]]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[8,\\\"koenig-plus-menu\\\",[],[[\\\"@editor\\\",\\\"@editorRange\\\",\\\"@snippets\\\",\\\"@deleteSnippet\\\",\\\"@replaceWithCardSection\\\",\\\"@replaceWithPost\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"selectedRange\\\"]],[32,0,[\\\"snippets\\\"]],[32,0,[\\\"deleteSnippet\\\"]],[30,[36,1],[[32,0],\\\"replaceWithCardSection\\\"],null],[30,[36,1],[[32,0],\\\"replaceWithPost\\\"],null]]],null],[2,\\\"\\\\n\\\\n\\\"],[8,\\\"koenig-slash-menu\\\",[],[[\\\"@editor\\\",\\\"@editorRange\\\",\\\"@snippets\\\",\\\"@deleteSnippet\\\",\\\"@replaceWithCardSection\\\",\\\"@replaceWithPost\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"selectedRange\\\"]],[32,0,[\\\"snippets\\\"]],[32,0,[\\\"deleteSnippet\\\"]],[30,[36,1],[[32,0],\\\"replaceWithCardSection\\\"],null],[30,[36,1],[[32,0],\\\"replaceWithPost\\\"],null]]],null],[2,\\\"\\\\n\\\\n\\\"],[6,[37,9],[[30,[36,8],[[30,[36,8],[[32,0,[\\\"componentCards\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,5],[[30,[36,4],[[32,2,[\\\"destinationElement\\\"]]],null]],[[\\\"guid\\\",\\\"insertBefore\\\"],[\\\"%cursor:1%\\\",[29]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[1,[30,[36,3],[[32,2,[\\\"componentName\\\"]]],[[\\\"editor\\\",\\\"postModel\\\",\\\"cardName\\\",\\\"payload\\\",\\\"env\\\",\\\"options\\\",\\\"headerOffset\\\",\\\"saveCard\\\",\\\"cancelCard\\\",\\\"removeCard\\\",\\\"isSelected\\\",\\\"isEditing\\\",\\\"selectCard\\\",\\\"deselectCard\\\",\\\"editCard\\\",\\\"deleteCard\\\",\\\"saveAsSnippet\\\",\\\"moveCursorToPrevSection\\\",\\\"moveCursorToNextSection\\\",\\\"addParagraphAfterCard\\\",\\\"registerComponent\\\"],[[32,0,[\\\"editor\\\"]],[32,2,[\\\"postModel\\\"]],[32,2,[\\\"cardName\\\"]],[32,2,[\\\"payload\\\"]],[32,2,[\\\"env\\\"]],[32,2,[\\\"options\\\"]],[32,0,[\\\"headerOffset\\\"]],[30,[36,1],[[32,0],[32,2,[\\\"env\\\",\\\"save\\\"]]],null],[30,[36,1],[[32,0],[32,2,[\\\"env\\\",\\\"cancel\\\"]]],null],[30,[36,1],[[32,0],[32,2,[\\\"env\\\",\\\"remove\\\"]]],null],[32,2,[\\\"isSelected\\\"]],[32,2,[\\\"isEditing\\\"]],[30,[36,1],[[32,0],\\\"selectCard\\\",[32,2]],null],[30,[36,1],[[32,0],\\\"deselectCard\\\",[32,2]],null],[30,[36,1],[[32,0],\\\"editCard\\\",[32,2]],null],[30,[36,1],[[32,0],\\\"deleteCard\\\",[32,2]],null],[30,[36,6],[[32,0,[\\\"saveCardAsSnippetIfPossible\\\"]],[30,[36,2],[[32,0,[\\\"saveCardAsSnippetIfPossible\\\"]],[32,2]],null]],null],[30,[36,1],[[32,0],\\\"moveCursorToPrevSection\\\",[32,2]],null],[30,[36,1],[[32,0],\\\"moveCursorToNextSection\\\",[32,2]],null],[30,[36,1],[[32,0],\\\"addParagraphAfterCard\\\",[32,2]],null],[30,[36,1],[[32,0],[30,[36,0],[[32,2,[\\\"component\\\"]]],null]],null]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[2]}]]],[2,\\\"\\\\n\\\"],[6,[37,9],[[30,[36,8],[[30,[36,8],[[32,0,[\\\"componentAtoms\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,5],[[30,[36,4],[[32,1,[\\\"destinationElement\\\"]]],null]],[[\\\"guid\\\",\\\"insertBefore\\\"],[\\\"%cursor:0%\\\",[29]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[1,[30,[36,3],[[32,1,[\\\"componentName\\\"]]],[[\\\"editor\\\",\\\"atom\\\",\\\"saveAtom\\\",\\\"registerComponent\\\"],[[32,0,[\\\"editor\\\"]],[32,1],[30,[36,2],[[32,1,[\\\"env\\\",\\\"save\\\"]],[32,1,[\\\"env\\\",\\\"value\\\"]],[32,1,[\\\"env\\\",\\\"payload\\\"]]],null],[30,[36,1],[[32,0],[30,[36,0],[[32,1,[\\\"component\\\"]]],null]],null]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"mut\\\",\\\"action\\\",\\\"fn\\\",\\\"component\\\",\\\"-in-el-null\\\",\\\"in-element\\\",\\\"if\\\",\\\"feature\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-editor.hbs\"\n    }\n  });\n  /*\n   * Based on ember-mobiledoc-editor\n   * https://github.com/bustle/ember-mobiledoc-editor\n   */\n\n\n  const {\n    countWords\n  } = _helpers.utils;\n  const UNDO_DEPTH = 100;\n  const ADD_CARD_HOOK = 'addComponent';\n  _exports.ADD_CARD_HOOK = ADD_CARD_HOOK;\n  const REMOVE_CARD_HOOK = 'removeComponent';\n  _exports.REMOVE_CARD_HOOK = REMOVE_CARD_HOOK;\n  const ADD_ATOM_HOOK = 'addAtomComponent';\n  _exports.ADD_ATOM_HOOK = ADD_ATOM_HOOK;\n  const REMOVE_ATOM_HOOK = 'removeAtomComponent'; // used in test helpers to grab a reference to the underlying mobiledoc editor\n\n  _exports.REMOVE_ATOM_HOOK = REMOVE_ATOM_HOOK;\n  const TESTING_EXPANDO_PROPERTY = '__mobiledoc_kit_editor'; // blank doc contains a single empty paragraph so that there's some content for\n  // the cursor to start in\n\n  _exports.TESTING_EXPANDO_PROPERTY = TESTING_EXPANDO_PROPERTY;\n  const MOBILEDOC_VERSION = '0.3.1';\n  _exports.MOBILEDOC_VERSION = MOBILEDOC_VERSION;\n  const BLANK_DOC = {\n    version: MOBILEDOC_VERSION,\n    markups: [],\n    atoms: [],\n    cards: [],\n    sections: [[1, 'p', [[0, [], 0, '']]]]\n  };\n  _exports.BLANK_DOC = BLANK_DOC;\n  const CURSOR_BEFORE = -1;\n  _exports.CURSOR_BEFORE = CURSOR_BEFORE;\n  const CURSOR_AFTER = 1;\n  _exports.CURSOR_AFTER = CURSOR_AFTER;\n  const NO_CURSOR_MOVEMENT = 0; // markups that should not be continued when typing and reverted to their\n  // text expansion style when backspacing over final char of markup\n\n  _exports.NO_CURSOR_MOVEMENT = NO_CURSOR_MOVEMENT;\n  const SPECIAL_MARKUPS = {\n    S: '~~',\n    CODE: '`',\n    SUP: '^',\n    SUB: '~'\n  };\n  _exports.SPECIAL_MARKUPS = SPECIAL_MARKUPS;\n\n  function arrayToMap(array) {\n    let map = Object.create(null);\n    array.forEach(key => {\n      if (key) {\n        // skip undefined/falsy key values\n        key = `is${Ember.String.capitalize(Ember.String.camelize(key))}`;\n        map[key] = true;\n      }\n    });\n    return map;\n  } // if the cursor is at the end of one of our \"special\" markups that can only be\n  // toggled via markdown expansions then we want to ensure that the markup is\n  // removed from the edit state so that you can type without being stuck with\n  // the special formatting\n\n\n  function toggleSpecialFormatEditState(editor) {\n    let {\n      head,\n      isCollapsed\n    } = editor.range;\n\n    if (isCollapsed) {\n      Object.keys(SPECIAL_MARKUPS).forEach(tagName => {\n        tagName = tagName.toLowerCase();\n\n        if (head.marker && head.marker.hasMarkup(tagName) && editor._editState.activeMarkups.findBy('tagName', tagName)) {\n          let nextMarker = head.markerIn(1);\n\n          if (!nextMarker || !nextMarker.hasMarkup(tagName)) {\n            // there is a bug somehwhere that means after pasting\n            // content the _editState can end up with multiple\n            // instances of the markup so we need to toggle all of them\n            editor._editState.activeMarkups.filterBy('tagName', tagName).forEach(markup => {\n              editor._editState.toggleMarkupState(markup);\n            });\n          }\n        }\n      });\n    }\n  } // helper function to insert image cards at or after the current active section\n  // used when pasting or dropping image files\n\n\n  function insertImageCards(files, postEditor) {\n    let {\n      builder,\n      editor\n    } = postEditor;\n    let collection = editor.post.sections;\n    let section = editor.activeSection; // when dropping an image on the editor before it's had focus there will be\n    // no active section so we insert the image at the end of the document\n\n    if (!section) {\n      section = editor.post.sections.tail; // create a blank paragraph at the end of the document if needed because\n      // we use `insertSectionBefore` and don't want the image to be added\n      // before the last card\n\n      if (!section.isMarkerable) {\n        let blank = builder.createMarkupSection();\n        postEditor.insertSectionAtEnd(blank);\n        postEditor.setRange(blank.toRange());\n        section = postEditor._range.head.section;\n      }\n    } // place the card after the active section\n\n\n    if (!section.isBlank && !section.isListItem && section.next) {\n      section = section.next;\n    } // list items cannot contain card sections so insert a blank paragraph after\n    // the whole list ready to be replaced by the image cards\n\n\n    if (section.isListItem) {\n      let list = section.parent;\n      let blank = builder.createMarkupSection();\n\n      if (list.next) {\n        postEditor.insertSectionBefore(collection, blank, list.next);\n      } else {\n        postEditor.insertSectionAtEnd(blank);\n      }\n\n      postEditor.setRange(blank.toRange());\n      section = postEditor._range.head.section;\n    } // insert an image card for each image, keep track of the last card to be\n    // inserted so that the cursor can be placed on it at the end\n\n\n    let lastImageSection;\n    files.forEach(file => {\n      let payload = {\n        files: [file]\n      };\n      lastImageSection = builder.createCardSection('image', payload);\n      postEditor.insertSectionBefore(collection, lastImageSection, section);\n    }); // remove the current section if it's blank - avoids unexpected blank\n    // paragraph after the insert is complete\n\n    if (section.isBlank) {\n      postEditor.removeSection(section);\n    } // place cursor on the last inserted image\n\n\n    postEditor.setRange(lastImageSection.tailPosition());\n  }\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    feature: Ember.inject.service(),\n    koenigDragDropHandler: Ember.inject.service(),\n    koenigUi: Ember.inject.service(),\n    tagName: 'article',\n    classNames: ['koenig-editor', 'w-100', 'flex-grow', 'relative', 'center', 'mb0', 'mt0'],\n    // public attrs\n    mobiledoc: null,\n    placeholder: 'Write here...',\n    autofocus: false,\n    spellcheck: true,\n    options: null,\n    headerOffset: 0,\n    dropTargetSelector: null,\n    scrollContainerSelector: null,\n    scrollOffsetTopSelector: null,\n    scrollOffsetBottomSelector: null,\n    // internal properties\n    editor: null,\n    activeMarkupTagNames: null,\n    activeSectionTagNames: null,\n    selectedRange: null,\n    componentAtoms: null,\n    componentCards: null,\n    linkRange: null,\n    selectedCard: null,\n    // private properties\n    _localMobiledoc: null,\n    _upstreamMobiledoc: null,\n    _startedRunLoop: false,\n    _lastIsEditingDisabled: false,\n    _isRenderingEditor: false,\n    _skipCursorChange: false,\n    _modifierKeys: null,\n\n    // closure actions\n    willCreateEditor() {},\n\n    didCreateEditor() {},\n\n    onChange() {},\n\n    cursorDidExitAtTop() {},\n\n    wordCountDidChange() {},\n\n    /* computed properties -------------------------------------------------- */\n    // merge in named options with any passed in `options` property data-bag\n    editorOptions: Ember.computed(function () {\n      let options = this.options || {};\n      let atoms = this.atoms || [];\n      let cards = this.cards || []; // add our default atoms and cards, we want the defaults to be first so\n      // that they can be overridden by any passed-in atoms or cards.\n      // Use Array.concat to avoid modifying any passed in array references\n\n      atoms = _atoms.default.concat(atoms);\n      cards = _cards.default.concat(cards);\n      return Ember.assign({\n        placeholder: this.placeholder,\n        spellcheck: this.spellcheck,\n        autofocus: this.autofocus,\n        atoms,\n        cards\n      }, options);\n    }),\n    addSnippetIfPossible: Ember.computed('saveSnippet', function () {\n      return this.saveSnippet ? this.addSnippet : undefined;\n    }),\n    saveCardAsSnippetIfPossible: Ember.computed('saveSnippet', function () {\n      return this.saveSnippet ? this.saveCardAsSnippet : undefined;\n    }),\n\n    /* lifecycle hooks ------------------------------------------------------ */\n    init() {\n      this._super(...arguments);\n\n      this.SPECIAL_MARKUPS = SPECIAL_MARKUPS; // set a blank mobiledoc if we didn't receive anything\n\n      let mobiledoc = this.mobiledoc;\n\n      if (!mobiledoc) {\n        mobiledoc = BLANK_DOC;\n        this.set('mobiledoc', mobiledoc);\n      }\n\n      this.set('componentAtoms', Ember.A([]));\n      this.set('componentCards', Ember.A([]));\n      this.set('activeMarkupTagNames', {});\n      this.set('activeSectionTagNames', {});\n      this._modifierKeys = {\n        shift: false,\n        alt: false,\n        ctrl: false\n      }; // track mousedown/mouseup on the window rather than the ember component\n      // so that we're sure to get the events even when they start outside of\n      // this component or end outside the window.\n      // Mouse events are used to track when a mousebutton is down so that we\n      // can disable automatic cursor-in-viewport scrolling\n\n      this._onMousedownHandler = Ember.run.bind(this, this.handleMousedown);\n      window.addEventListener('mousedown', this._onMousedownHandler);\n      this._onMouseupHandler = Ember.run.bind(this, this.handleMouseup);\n      window.addEventListener('mouseup', this._onMouseupHandler);\n      this._startedRunLoop = false;\n    },\n\n    willRender() {\n      this._super(...arguments); // use a default mobiledoc. If there are no changes then return early\n\n\n      let mobiledoc = this.mobiledoc || BLANK_DOC;\n      let mobiledocIsSame = this._localMobiledoc && this._localMobiledoc === mobiledoc || this._upstreamMobiledoc && this._upstreamMobiledoc === mobiledoc;\n      let isEditingDisabledIsSame = this._lastIsEditingDisabled === this.isEditingDisabled; // no change to mobiledoc, no need to recreate the editor\n\n      if (mobiledocIsSame && isEditingDisabledIsSame) {\n        return;\n      } // update our internal references\n\n\n      this._lastIsEditingDisabled = this.isEditingDisabled;\n      this._upstreamMobiledoc = mobiledoc;\n      this._localMobiledoc = null; // trigger the willCreateEditor closure action\n\n      this.willCreateEditor(); // teardown any old editor that might be around\n\n      let editor = this.editor;\n\n      if (editor) {\n        editor.destroy();\n      } // create a new editor\n\n\n      let editorOptions = this.editorOptions;\n      editorOptions.mobiledoc = mobiledoc;\n      editorOptions.showLinkTooltips = false;\n      editorOptions.undoDepth = UNDO_DEPTH;\n      editorOptions.parserPlugins = (0, _kgParserPlugins.createParserPlugins)();\n      let componentHooks = {\n        // triggered when a card section is added to the mobiledoc\n        [ADD_CARD_HOOK]: ({\n          env,\n          options,\n          payload\n        }, koenigOptions) => {\n          let cardName = env.name;\n          let componentName = _cards.CARD_COMPONENT_MAP[cardName]; // the payload must be copied to avoid sharing the reference.\n          // `payload.files` is special because it's set by paste/drag-n-drop\n          // events and can't be copied for security reasons\n\n          let {\n            files\n          } = payload;\n          let payloadCopy = new _trackedBuiltIns.TrackedObject(JSON.parse(JSON.stringify(payload || null)));\n          payloadCopy.files = files; // all of the properties that will be passed through to the\n          // component cards via the template\n\n          let card = Ember.Object.create({\n            cardName,\n            componentName,\n            koenigOptions,\n            payload: payloadCopy,\n            env,\n            options,\n            editor,\n            postModel: env.postModel,\n            isSelected: false,\n            isEditing: false\n          }); // the desination element is the container that gets rendered\n          // inside the editor, once rendered we use {{in-element}} to\n          // wormhole in the actual ember component\n\n          let cardId = Ember.guidFor(card);\n          let destinationElementId = `koenig-editor-card-${cardId}`;\n          let destinationElement = document.createElement('div');\n          destinationElement.id = destinationElementId;\n          card.setProperties({\n            destinationElementId,\n            destinationElement\n          }); // after render we render the full ember card via {{in-element}}\n\n          Ember.run.schedule('afterRender', () => {\n            this.componentCards.pushObject(card);\n          }); // render the destination element inside the editor\n\n          return {\n            card,\n            element: destinationElement\n          };\n        },\n        // triggered when a card section is removed from the mobiledoc\n        [REMOVE_CARD_HOOK]: card => {\n          this.componentCards.removeObject(card);\n        },\n        [ADD_ATOM_HOOK]: ({\n          env,\n          options,\n          value,\n          payload\n        }) => {\n          const atomName = env.name;\n          const componentName = _atoms.ATOM_COMPONENT_MAP[atomName];\n          const payloadCopy = new _trackedBuiltIns.TrackedObject(JSON.parse(JSON.stringify(payload || null)));\n          const atom = Ember.Object.create({\n            atomName,\n            componentName,\n            value,\n            payload: payloadCopy,\n            env,\n            options,\n            editor\n          }); // the desination element is the container that gets rendered\n          // inside the editor, once rendered we use {{in-element}} to\n          // wormhole in the actual ember component\n\n          let atomId = Ember.guidFor(atom);\n          let destinationElementId = `koenig-editor-atom-${atomId}`;\n          let destinationElement = document.createElement('div');\n          destinationElement.id = destinationElementId;\n          destinationElement.classList.add('dib');\n          atom.setProperties({\n            destinationElementId,\n            destinationElement\n          });\n          Ember.run.schedule('afterRender', () => {\n            this.componentAtoms.pushObject(atom);\n          }); // render the destination element inside the editor\n\n          return {\n            atom,\n            element: destinationElement\n          };\n        },\n        [REMOVE_ATOM_HOOK]: atom => {\n          this.componentAtoms.removeObject(atom);\n        }\n      };\n      editorOptions.cardOptions = componentHooks;\n      editor = new _editor.default(editorOptions); // set up key commands and text expansions (MD conversion)\n      // TODO: this will override any passed in options, we should allow the\n      // default behaviour to be overridden by addon consumers\n\n      (0, _keyCommands.default)(editor, this);\n      (0, _textExpansions.default)(editor, this); // set up editor hooks\n\n      editor.willRender(() => {\n        // The editor's render/rerender will happen after this `editor.willRender`,\n        // so we explicitly start a runloop here if there is none, so that the\n        // add/remove card hooks happen inside a runloop.\n        // When pasting text that gets turned into a card, for example,\n        // the add card hook would run outside the runloop if we didn't begin a new\n        // one now.\n        if (!Ember.run.currentRunLoop) {\n          this._startedRunLoop = true;\n          Ember.run.begin();\n        }\n      });\n      editor.didRender(() => {\n        // if we had explicitly started a runloop in `editor.willRender`,\n        // we must explicitly end it here\n        if (this._startedRunLoop) {\n          this._startedRunLoop = false;\n          Ember.run.end();\n        }\n\n        if (this._cleanupScheduled) {\n          Ember.run.schedule('afterRender', this, this._cleanup);\n        }\n      });\n      editor.postDidChange(() => {\n        Ember.run.join(() => {\n          this.postDidChange(editor);\n        });\n      });\n      editor.cursorDidChange(() => {\n        Ember.run.join(() => {\n          this.cursorDidChange(editor);\n        });\n      });\n      editor.inputModeDidChange(() => {\n        if (this.isDestroyed) {\n          return;\n        }\n\n        Ember.run.join(() => {\n          this.inputModeDidChange(editor);\n        });\n      });\n      editor.willHandleNewline(event => {\n        Ember.run.join(() => {\n          this.willHandleNewline(event);\n        });\n      });\n\n      if (this.isEditingDisabled) {\n        editor.disableEditing();\n      }\n\n      this.set('editor', editor);\n      this.didCreateEditor(this);\n      Ember.run.schedule('afterRender', this, this._registerCardReorderDragDropHandler);\n      Ember.run.schedule('afterRender', this, this._calculateWordCount);\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      let editorElement = this.element.querySelector('[data-kg=\"editor\"]');\n      this._pasteHandler = Ember.run.bind(this, this.handlePaste);\n      editorElement.addEventListener('paste', this._pasteHandler);\n\n      if (this.scrollContainerSelector) {\n        this._scrollContainer = document.querySelector(this.scrollContainerSelector);\n      }\n\n      this._keydownHandler = Ember.run.bind(this, this.handleKeydown);\n      window.addEventListener('keydown', this._keydownHandler);\n      this._keyupHandler = Ember.run.bind(this, this.handleKeyup);\n      window.addEventListener('keyup', this._keyupHandler);\n      this._dropTarget = document.querySelector(this.dropTargetSelector) || this.element;\n      this._dragOverHandler = Ember.run.bind(this, this.handleDragOver);\n      this._dragLeaveHandler = Ember.run.bind(this, this.handleDragLeave);\n      this._dropHandler = Ember.run.bind(this, this.handleDrop);\n\n      this._dropTarget.addEventListener('dragover', this._dragOverHandler);\n\n      this._dropTarget.addEventListener('dragleave', this._dragLeaveHandler);\n\n      this._dropTarget.addEventListener('drop', this._dropHandler);\n    },\n\n    // our ember component has rendered, now we need to render the mobiledoc\n    // editor itself if necessary\n    didRender() {\n      this._super(...arguments);\n\n      let editor = this.editor;\n\n      if (!editor.hasRendered) {\n        let editorElement = this.element.querySelector('[data-kg=\"editor\"]');\n        this._isRenderingEditor = true;\n        editor.render(editorElement);\n        this._isRenderingEditor = false;\n      }\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      let {\n        editor,\n        _dropTarget,\n        _cardDragDropContainer\n      } = this;\n\n      _dropTarget.removeEventListener('dragover', this._dragOverHandler);\n\n      _dropTarget.removeEventListener('dragleave', this._dragLeaveHandler);\n\n      _dropTarget.removeEventListener('drop', this._dropHandler);\n\n      window.removeEventListener('keydown', this._keydownHandler);\n      window.removeEventListener('keyup', this._keyupHandler);\n      let editorElement = this.element.querySelector('[data-kg=\"editor\"]');\n      editorElement.removeEventListener('paste', this._pasteHandler);\n\n      _cardDragDropContainer.destroy();\n\n      editor.destroy();\n\n      this._super(...arguments);\n    },\n\n    actions: {\n      exitCursorAtTop() {\n        if (this.selectedCard) {\n          this.deselectCard(this.selectedCard);\n        }\n\n        this.cursorDidExitAtTop();\n      },\n\n      toggleMarkup(markupTagName, postEditor) {\n        (postEditor || this.editor).toggleMarkup(markupTagName);\n      },\n\n      toggleSection(sectionTagName, postEditor) {\n        (postEditor || this.editor).toggleSection(sectionTagName);\n      },\n\n      toggleHeaderSection(headingTagName, postEditor, options = {}) {\n        let editor = this.editor; // skip toggle if we already have the same heading level\n\n        if (!options.force && editor.activeSection.tagName === headingTagName) {\n          return;\n        }\n\n        let operation = function (operationPostEditor) {\n          // strip all formatting aside from links\n          operationPostEditor.removeMarkupFromRange(editor.activeSection.toRange(), m => m.tagName !== 'a');\n          operationPostEditor.toggleSection(headingTagName);\n        };\n\n        this._performEdit(operation, postEditor);\n      },\n\n      replaceWithCardSection(cardName, range, payload) {\n        let editor = this.editor;\n        let {\n          head: {\n            section\n          }\n        } = range;\n        editor.run(postEditor => {\n          let {\n            builder\n          } = postEditor;\n          let card = builder.createCardSection(cardName, payload);\n          let nextSection = section.next;\n          let needsTrailingParagraph = !nextSection;\n          postEditor.replaceSection(section, card); // add an empty paragraph after if necessary so writing can continue\n\n          if (needsTrailingParagraph) {\n            let newSection = postEditor.builder.createMarkupSection('p');\n            postEditor.insertSectionAtEnd(newSection);\n            postEditor.setRange(newSection.tailPosition());\n          } else {\n            postEditor.setRange(nextSection.headPosition());\n          }\n        }); // cards are pushed on to the `componentCards` array so we can\n        // assume that the last card in the list is the one we want to\n        // select. Needs to be scheduled afterRender so that the new card\n        // is actually present\n\n        Ember.run.schedule('afterRender', this, function () {\n          let card = this.componentCards.lastObject;\n\n          if (card.koenigOptions.hasEditMode) {\n            this.editCard(card);\n          } else if (card.koenigOptions.selectAfterInsert) {\n            this.selectCard(card);\n          }\n        });\n      },\n\n      replaceWithPost(range, post) {\n        let {\n          editor\n        } = this;\n        let {\n          head: {\n            section\n          }\n        } = range;\n        editor.selectRange(range);\n        editor.run(postEditor => {\n          let nextPosition = postEditor.deleteRange(section.toRange());\n          postEditor.setRange(nextPosition);\n          let blankSection = postEditor.builder.createMarkupSection('p');\n          postEditor.insertSectionBefore(editor.post.sections, blankSection);\n          postEditor.setRange(blankSection.toRange());\n          nextPosition = postEditor.insertPost(editor.range.head, post);\n          postEditor.setRange(nextPosition);\n        });\n      },\n\n      selectCard(card) {\n        this.selectCard(card);\n      },\n\n      editCard(card) {\n        this.editCard(card);\n      },\n\n      deselectCard(card) {\n        this.deselectCard(card);\n      },\n\n      // range should be set to the full extent of the selection or the\n      // appropriate <a> markup. If there's a selection when the link edit\n      // component renders it will re-select when finished which should\n      // trigger the normal toolbar\n      editLink(range, rect) {\n        let linkMarkup = (0, _markupUtils.getLinkMarkupFromRange)(range);\n\n        if ((!range.isCollapsed || linkMarkup) && range.headSection.isMarkerable) {\n          this.set('linkRange', range);\n          this.set('linkRect', rect);\n        }\n      },\n\n      cancelEditLink() {\n        this.set('linkRange', null);\n        this.set('linkRect', null);\n      },\n\n      deleteCard(card, cursorMovement = CURSOR_AFTER) {\n        this.deleteCard(card, cursorMovement);\n      },\n\n      moveCursorToPrevSection(card) {\n        let section = this.getSectionFromCard(card);\n\n        if (section.prev) {\n          this.deselectCard(card);\n          this.moveCaretToTailOfSection(section.prev, false);\n        }\n      },\n\n      moveCursorToNextSection(card) {\n        let section = this.getSectionFromCard(card);\n\n        if (section.next) {\n          this.deselectCard(card);\n          this.moveCaretToHeadOfSection(section.next, false);\n        } else {\n          this.send('addParagraphAfterCard', card);\n        }\n      },\n\n      addParagraphAfterCard(card) {\n        let editor = this.editor;\n        let section = this.getSectionFromCard(card);\n        let collection = section.parent.sections;\n        let nextSection = section.next;\n        this.deselectCard(card);\n        editor.run(postEditor => {\n          let {\n            builder\n          } = postEditor;\n          let newPara = builder.createMarkupSection('p');\n\n          if (nextSection) {\n            postEditor.insertSectionBefore(collection, newPara, nextSection);\n          } else {\n            postEditor.insertSectionAtEnd(newPara);\n          }\n\n          postEditor.setRange(newPara.tailPosition());\n        });\n      }\n\n    },\n    addSnippet: Ember._action(function (event) {\n      event.preventDefault();\n      event.stopImmediatePropagation();\n      let {\n        selectedRange\n      } = this;\n\n      if (selectedRange.isCollapsed) {\n        return;\n      }\n\n      this.set('snippetRect', null);\n      this.set('snippetRange', selectedRange);\n    }),\n    saveCardAsSnippet: Ember._action(function (card) {\n      let section = this.getSectionFromCard(card);\n      this.set('snippetRect', card.component.element.getBoundingClientRect());\n      this.set('snippetRange', section.toRange());\n    }),\n    cancelAddSnippet: Ember._action(function () {\n      this.set('snippetRange', null);\n      this.set('snippetRect', null);\n    }),\n\n    /* public interface ----------------------------------------------------- */\n    // TODO: find a better way to expose the public interface?\n    skipNewline() {\n      this._skipNextNewline = true;\n    },\n\n    // HACK: this scheduled cleanup is a bit hacky. We call .cleanup when\n    // initializing Koenig in our editor controller but we have to wait for\n    // rendering to finish so that componentCards is populated, even then\n    // it's unlikely the card.component registration has finished.\n    //\n    // TODO: see if there's a way we can perform cleanup directly on the\n    // mobiledoc, maybe with a \"cleanupOnInit\" option so that we modify the\n    // mobiledoc before we start rendering\n    cleanup() {\n      this._cleanupScheduled = true;\n    },\n\n    _cleanup() {\n      this.componentCards.forEach(card => {\n        let shouldDelete = card.koenigOptions.deleteIfEmpty;\n\n        if (!shouldDelete) {\n          return;\n        }\n\n        if (typeof shouldDelete === 'string') {\n          let payloadKey = shouldDelete;\n\n          shouldDelete = cardToDelete => Ember.isBlank(Ember.get(cardToDelete, payloadKey));\n        }\n\n        if (shouldDelete(card)) {\n          this.deleteCard(card, NO_CURSOR_MOVEMENT);\n        }\n      });\n      this._cleanupScheduled = false;\n    },\n\n    /* mobiledoc event handlers --------------------------------------------- */\n    postDidChange(editor) {\n      let updatedMobiledoc = editor.serialize(MOBILEDOC_VERSION); // mobiledoc-kit will not output any custom top-level properties so we\n      // need to add them back in here\n\n      updatedMobiledoc.ghostVersion = this._upstreamMobiledoc.ghostVersion || BLANK_DOC.ghostVersion;\n      this._localMobiledoc = updatedMobiledoc; // trigger closure action\n\n      this.onChange(updatedMobiledoc); // re-calculate word count\n\n      this._calculateWordCount(); // refresh drag/drop\n      // TODO: can be made more performant by only refreshing when droppable\n      // order changes or when sections are added/removed\n\n\n      this._cardDragDropContainer.refresh();\n    },\n\n    cursorDidChange(editor) {\n      let {\n        head,\n        tail,\n        direction,\n        isCollapsed,\n        head: {\n          section\n        }\n      } = editor.range; // sometimes we perform a programatic edit that causes a cursor change\n      // but we actually want to skip the default behaviour because we've\n      // already handled it, e.g. on card insertion, manual card selection\n\n      if (this._skipCursorChange) {\n        this._skipCursorChange = false;\n        this.set('selectedRange', editor.range);\n\n        this._scrollCursorIntoView();\n\n        return;\n      } // ignore the cursor moving from one end to the other within a selected\n      // card section, clicking and other interactions within a card can cause\n      // this to happen and we don't want to select/deselect accidentally.\n      // See the up/down/left/right key handlers for the card selection\n\n\n      if (this.selectedCard && this.selectedCard.postModel === section) {\n        return;\n      } // select the card if the cursor is on the before/after &zwnj; char\n\n\n      if (section && isCollapsed && section.type === 'card-section') {\n        if (head.offset === 0 || head.offset === 1) {\n          // select card after render to ensure that our componentCards\n          // attr is populated\n          Ember.run.schedule('afterRender', this, () => {\n            let card = this.getCardFromSection(section);\n            this.selectCard(card);\n            this.set('selectedRange', editor.range);\n          });\n          return;\n        }\n      } // deselect any selected card because the cursor is no longer on a card\n\n\n      if (this.selectedCard && !editor.range.isBlank) {\n        this.deselectCard(this.selectedCard);\n      } // if we have `code` or ~strike~ formatting to the left but not the right\n      // then toggle the formatting - these formats should only be creatable\n      // through the text expansions\n\n\n      toggleSpecialFormatEditState(editor); // do not include the tail section if it's offset is 0\n      // fixes triple-click unexpectedly selecting two sections for section-level formatting\n      // https://github.com/bustle/mobiledoc-kit/issues/597\n\n      if (direction === 1 && !isCollapsed && tail.offset === 0 && tail.section.prev) {\n        let finalSection = tail.section.prev;\n        let newRange = new _range.default(head, finalSection.tailPosition());\n        return editor.selectRange(newRange);\n      } // pass the selected range through to the toolbar + menu components\n\n\n      this.set('selectedRange', editor.range);\n\n      this._scrollCursorIntoView();\n    },\n\n    // fired when the active section(s) or markup(s) at the current cursor\n    // position or selection have changed. We use this event to update the\n    // activeMarkup/section tag lists which control button states in our popup\n    // toolbar\n    inputModeDidChange(editor) {\n      let markupTags = arrayToMap(editor.activeMarkups.map(m => m.tagName)); // editor.activeSections are leaf sections.\n      // Map parent section tag names (e.g. 'p', 'ul', 'ol') so that list buttons\n      // are updated.\n      // eslint-disable-next-line no-confusing-arrow\n\n      let sectionParentTagNames = editor.activeSections.map(s => s.isNested ? s.parent.tagName : s.tagName);\n      let sectionTags = arrayToMap(sectionParentTagNames); // On keyboard cursor movement our `cursorDidChange` toggle for special\n      // formats happens before mobiledoc's readstate updates the edit states\n      // so we have to re-do it here\n      // TODO: can we make the event order consistent in mobiledoc-kit?\n\n      toggleSpecialFormatEditState(editor); // Avoid updating this component's properties synchronously while\n      // rendering the editor (after rendering the component) because it\n      // causes Ember to display deprecation warnings\n\n      if (this._isRenderingEditor) {\n        Ember.run.schedule('afterRender', () => {\n          this.set('activeMarkupTagNames', markupTags);\n          this.set('activeSectionTagNames', sectionTags);\n        });\n      } else {\n        this.set('activeMarkupTagNames', markupTags);\n        this.set('activeSectionTagNames', sectionTags);\n      }\n    },\n\n    willHandleNewline(event) {\n      if (this._skipNextNewline) {\n        event.preventDefault();\n        this._skipNextNewline = false;\n      }\n    },\n\n    /* custom event handlers ------------------------------------------------ */\n    // we keep track of the modifier keys that are pressed so that in other event\n    // handlers we can adjust the behaviour. Necessary because the browser doesn't\n    // natively provide any info on non-key events about which keys are pressed.\n    //\n    // German keyboard layouts use a dead key for the ` char so it doesn't\n    // fire keypress events. We watch for the event triggered when pressing\n    // spacebar to \"finalise\" the backtick input then call the text input\n    // handlers manually instead.\n    //\n    // Does not work on Linux but it's easier to have keymaps without dead keys there\n    //\n    // Secondarily, we also use this handler to deal with known default key combos\n    // that perform actions like DELETE, BACKSPACE, etc which can break mobiledoc\n    // if not intercepted and handled like the \"normal\" key events\n    handleKeydown(event) {\n      let key = _key.default.fromEvent(event);\n\n      this._updateModifiersFromKey(key, {\n        isDown: true\n      });\n\n      if (event.key === 'Dead' && event.keyCode === 192) {\n        return this._isGraveInput = true;\n      }\n\n      this._isGraveInput = false; // Chrome/Safari can be matched immediately on keydown unlike Firefox\n\n      if (event.key === '`' && event.code === 'Space') {\n        this._triggerTextHandlers();\n      } // intercept and simulate keyboard events to be picked up by\n      // mobiledoc-kit's event manager\n      // https://github.com/TryGhost/Ghost/issues/10240\n\n\n      let {\n        editor\n      } = this;\n\n      if (_browser.default.isMac() && editor && editor.cursor && editor.cursor.isAddressable(event.target)) {\n        // ctrl+h = BACKSPACE\n        if (event.key === 'h' && event.ctrlKey) {\n          event.preventDefault();\n          let simEvent = new KeyboardEvent('keydown', {\n            key: 'Backspace',\n            keyCode: 8\n          });\n          event.target.dispatchEvent(simEvent);\n        } // ctrl+d = DELETE\n\n\n        if (event.key === 'd' && event.ctrlKey) {\n          event.preventDefault();\n          let simEvent = new KeyboardEvent('keydown', {\n            key: 'Delete',\n            keyCode: 46\n          });\n          event.target.dispatchEvent(simEvent);\n        }\n      }\n    },\n\n    handleKeyup(event) {\n      let key = _key.default.fromEvent(event);\n\n      this._updateModifiersFromKey(key, {\n        isDown: false\n      });\n\n      if (this._isGraveInput && event.key === ' ') {\n        this._isGraveInput = false;\n\n        this._triggerTextHandlers();\n      }\n    },\n\n    handlePaste(event) {\n      let {\n        editor\n      } = this; // don't trigger our paste handling for pastes within cards or outside\n      // of the editor canvas. Avoids double-paste of content when pasting\n      // into cards\n\n      if (!editor.cursor.isAddressable(event.target)) {\n        return;\n      } // if we have image files pasted, create an image card for each and set\n      // the payload.files property which will cause the image to be auto-uploaded\n      // NOTE: browser support varies as of May 2018:\n      // - Safari: will paste all images\n      // - Chrome: will only paste the first image\n      // - Firefox: will not paste any images\n\n\n      let images = Array.from(event.clipboardData.files).filter(file => file.type.indexOf('image') > -1);\n\n      if (images.length > 0) {\n        event.preventDefault();\n        event.stopImmediatePropagation();\n        editor.run(postEditor => {\n          insertImageCards(images, postEditor);\n        });\n        return;\n      }\n\n      let range = editor.range;\n      let {\n        html,\n        text\n      } = (0, _parseUtils.getContentFromPasteEvent)(event);\n\n      if (text && _validator.default.isURL(text)) {\n        // if we have a text selection, make that selection a link\n        if (range && !range.isCollapsed && range.headSection === range.tailSection && range.headSection.isMarkerable) {\n          let linkMarkup = editor.builder.createMarkup('a', {\n            href: text\n          });\n          editor.run(postEditor => {\n            postEditor.addMarkupToRange(range, linkMarkup);\n          });\n          editor.selectRange(range.tail); // prevent mobiledoc's default paste event handler firing\n\n          event.preventDefault();\n          event.stopImmediatePropagation();\n          return;\n        } // if there's no selection and cursor is on an empty paragraph,\n        // insert the url as an embed card, unless SHIFT is pressed. Setting\n        // the `linkOnError` option results in an immediate switch to a\n        // plain link if the embed fails for any reason (eg, unknown provider)\n\n\n        if (range && range.isCollapsed && range.headSection.isBlank && !range.headSection.isListItem) {\n          if (!this._modifierKeys.shift) {\n            editor.run(postEditor => {\n              let payload = new _trackedBuiltIns.TrackedObject({\n                url: text,\n                linkOnError: true,\n                isDirectUrl: true\n              });\n              let card = postEditor.builder.createCardSection('embed', payload);\n              let nextSection = range.headSection.next;\n              postEditor.replaceSection(range.headSection, card); // move caret to the next section, creating a blank one\n              // if none exists\n\n              if (nextSection) {\n                postEditor.setRange(nextSection.headPosition());\n              } else {\n                let newSection = postEditor.builder.createMarkupSection('p');\n                postEditor.insertSectionAtEnd(newSection);\n                postEditor.setRange(newSection.headPosition());\n              }\n            });\n          } else {\n            // ensure the pasted URL is still auto-linked when Shift is pressed\n            editor.run(postEditor => {\n              let linkMarkup = editor.builder.createMarkup('a', {\n                href: text\n              });\n              postEditor.insertTextWithMarkup(range.head, text, [linkMarkup]);\n            });\n          } // prevent mobiledoc's default paste event handler firing\n\n\n          event.preventDefault();\n          event.stopImmediatePropagation();\n          return;\n        }\n      } // if plain text is pasted we run it through our markdown parser so that\n      // we get better output than mobiledoc's default text parsing and we can\n      // provide an easier MD->Mobiledoc conversion route\n      // NOTE: will not work in Edge which only ever exposes `html`\n\n\n      if (text && !html && !this._modifierKeys.shift) {\n        // prevent mobiledoc's default paste event handler firing\n        event.preventDefault();\n        event.stopImmediatePropagation(); // we can't modify the paste event itself so we trigger a mock\n        // paste event with our own data\n\n        let pasteEvent = {\n          type: 'paste',\n\n          preventDefault() {},\n\n          target: editor.element,\n          clipboardData: {\n            getData(type) {\n              if (type === 'text/html') {\n                return (0, _formatMarkdown.default)(text, false);\n              }\n            }\n\n          }\n        };\n        editor.triggerEvent(editor.element, 'paste', pasteEvent);\n      } // we need to standardise HTML here because parserPlugins do not get\n      // passed inline markup such as `<b>` or `<i>`\n\n\n      if (html) {\n        // prevent mobiledoc's default paste event handler firing\n        event.preventDefault();\n        event.stopImmediatePropagation();\n        let normalizedHtml = html.replace(/<b(\\s|>)/gi, '<strong$1').replace(/<\\/b>/gi, '</strong>').replace(/<i(\\s|>)/gi, '<em$1').replace(/<\\/i>/gi, '</em>'); // we can't modify the paste event itself so we trigger a mock\n        // paste event with our own data\n\n        let pasteEvent = {\n          type: 'paste',\n\n          preventDefault() {},\n\n          target: editor.element,\n          clipboardData: {\n            getData(type) {\n              if (type === 'text/plain') {\n                return text;\n              }\n\n              if (type === 'text/html') {\n                return normalizedHtml;\n              }\n            }\n\n          }\n        };\n        editor.triggerEvent(editor.element, 'paste', pasteEvent);\n      }\n    },\n\n    handleMousedown(event) {\n      // we only care about the left mouse button\n      if (event.which === 1) {\n        this._isMouseDown = true;\n      }\n    },\n\n    handleMouseup(event) {\n      if (event.which === 1) {\n        this._isMouseDown = false;\n      }\n    },\n\n    handleDragOver(event) {\n      if (!event.dataTransfer || event.target.closest('.__mobiledoc-card')) {\n        return;\n      } // this is needed to work around inconsistencies with dropping files\n      // from Chrome's downloads bar\n\n\n      if (navigator.userAgent.indexOf('Chrome') > -1) {\n        let eA = event.dataTransfer.effectAllowed;\n        event.dataTransfer.dropEffect = eA === 'move' || eA === 'linkMove' ? 'move' : 'copy';\n      } // indicate to the browser that we want to handle drop behaviour here\n\n\n      event.stopPropagation();\n      event.preventDefault();\n    },\n\n    handleDragLeave(event) {\n      event.preventDefault();\n    },\n\n    handleDrop(event) {\n      // drops on cards that are in an edit state should be cancelled\n      // editable cards should handle drag-n-drop themselves if needed\n      let cardElem = event.target.closest('.__mobiledoc-card');\n\n      if (cardElem) {\n        let cardId = cardElem.firstChild.id;\n        let card = this.componentCards.findBy('destinationElementId', cardId);\n\n        if (card.isEditing || card.component.handlesDragDrop) {\n          return;\n        }\n      }\n\n      event.preventDefault();\n\n      if (event.dataTransfer.files) {\n        let images = Array.from(event.dataTransfer.files).filter(file => file.type.indexOf('image') > -1);\n\n        if (images.length > 0) {\n          this.editor.run(postEditor => {\n            insertImageCards(images, postEditor);\n          });\n\n          this._scrollCursorIntoView({\n            jumpToCard: true\n          });\n        }\n      }\n    },\n\n    /* Ember event handlers ------------------------------------------------- */\n    // disable dragging\n    dragStart(event) {\n      event.preventDefault();\n    },\n\n    /* public methods ------------------------------------------------------- */\n    selectCard(card, isEditing = false) {\n      // no-op if card is already selected\n      if (card === this.selectedCard && isEditing === card.isEditing) {\n        return;\n      } // deselect any already selected card\n\n\n      if (this.selectedCard && card !== this.selectedCard) {\n        this.deselectCard(this.selectedCard);\n      } // setting a card as selected trigger's the cards didReceiveAttrs\n      // hook where the actual selection state change happens. Put into edit\n      // mode if necessary\n\n\n      card.setProperties({\n        isEditing,\n        isSelected: true\n      });\n      this.selectedCard = card; // hide the cursor and place it after the card so that ENTER can\n      // create a new paragraph and cursorDidExitAtTop gets fired on LEFT\n      // if the card is at the top of the document\n\n      this._hideCursor();\n\n      let section = this.getSectionFromCard(card);\n      this.moveCaretToTailOfSection(section);\n    },\n\n    editCard(card) {\n      // no-op if card is already being edited\n      if (card === this.selectedCard && card.isEditing) {\n        return;\n      } // select the card with edit mode\n\n\n      this.selectCard(card, true);\n\n      this._cardDragDropContainer.disableDrag();\n    },\n\n    deselectCard(card) {\n      card.set('isEditing', false);\n      card.set('isSelected', false);\n      this.selectedCard = null;\n\n      this._showCursor();\n\n      this._cardDragDropContainer.enableDrag();\n    },\n\n    deleteCard(card, cursorDirection) {\n      this.editor.run(postEditor => {\n        let section = card.env.postModel;\n        let nextPosition;\n\n        if (cursorDirection === CURSOR_BEFORE) {\n          nextPosition = section.prev && section.prev.tailPosition();\n        } else {\n          nextPosition = section.next && section.next.headPosition();\n        }\n\n        postEditor.removeSection(section); // if there's no prev or next section then the doc is empty, we want\n        // to add a blank paragraph and place the cursor in it\n\n        if (cursorDirection !== NO_CURSOR_MOVEMENT && !nextPosition) {\n          let {\n            builder\n          } = postEditor;\n          let newPara = builder.createMarkupSection('p');\n          postEditor.insertSectionAtEnd(newPara);\n          return postEditor.setRange(newPara.tailPosition());\n        }\n\n        if (cursorDirection !== NO_CURSOR_MOVEMENT) {\n          return postEditor.setRange(nextPosition);\n        }\n      });\n    },\n\n    getCardFromSection(section) {\n      if (!section || section.type !== 'card-section') {\n        return;\n      }\n\n      let cardId = section.renderNode.element.querySelector('.__mobiledoc-card').firstChild.id;\n      return this.componentCards.findBy('destinationElementId', cardId);\n    },\n\n    getCardFromElement(element) {\n      var _cardElement$firstChi;\n\n      if (!element) {\n        return;\n      }\n\n      let cardElement = element.querySelector('.__mobiledoc-card') || (0, _utils.getParent)(element, '.__mobiledoc-card');\n\n      if (!cardElement) {\n        return;\n      }\n\n      let cardId = (_cardElement$firstChi = cardElement.firstChild) === null || _cardElement$firstChi === void 0 ? void 0 : _cardElement$firstChi.id;\n\n      if (cardId) {\n        return this.componentCards.findBy('destinationElementId', cardId);\n      }\n    },\n\n    getSectionFromCard(card) {\n      return card.env.postModel;\n    },\n\n    moveCaretToHeadOfSection(section, skipCursorChange = true) {\n      this.moveCaretToSection(section, 'head', skipCursorChange);\n    },\n\n    moveCaretToTailOfSection(section, skipCursorChange = true) {\n      this.moveCaretToSection(section, 'tail', skipCursorChange);\n    },\n\n    moveCaretToSection(section, position, skipCursorChange = true) {\n      let sectionPosition = position === 'head' ? section.headPosition() : section.tailPosition();\n      let range = sectionPosition.toRange(); // don't trigger another cursor change selection after selecting\n\n      if (skipCursorChange && !range.isEqual(this.editor.range)) {\n        this._skipCursorChange = true;\n      }\n\n      this.editor.selectRange(range);\n    },\n\n    /* internal methods ----------------------------------------------------- */\n    // nested editor.run loops will create additional undo steps so this is a\n    // shortcut for when we already have a postEditor\n    _performEdit(editOperation, postEditor) {\n      if (postEditor) {\n        editOperation(postEditor);\n      } else {\n        this.editor.run(operationPostEditor => {\n          editOperation(operationPostEditor);\n        });\n      }\n    },\n\n    _hideCursor() {\n      this.editor.element.style.caretColor = 'transparent';\n    },\n\n    _showCursor() {\n      this.editor.element.style.caretColor = 'auto';\n    },\n\n    _updateModifiersFromKey(key, {\n      isDown\n    }) {\n      if (key.isShiftKey()) {\n        this._modifierKeys.shift = isDown;\n      } else if (key.isAltKey()) {\n        this._modifierKeys.alt = isDown;\n      } else if (key.isCtrlKey()) {\n        this._modifierKeys.ctrl = isDown;\n      }\n    },\n\n    _scrollCursorIntoView(options = {\n      jumpToCard: false\n    }) {\n      // disable auto-scroll if the mouse or shift key is being used to create\n      // a selection - the browser handles scrolling well in this case\n      if (!this._scrollContainer || this._isMouseDown || this._modifierKeys.shift) {\n        return;\n      }\n\n      let {\n        range\n      } = this.editor;\n      let selection = window.getSelection();\n      let windowRange; // Safari can throw an IndexSizeError from selection.getRangeAt(0)\n\n      if (selection.type !== 'None') {\n        windowRange = selection && selection.getRangeAt(0);\n      }\n\n      let element = range.head && range.head.section && range.head.section.renderNode && range.head.section.renderNode.element; // prevent scroll jumps when a card is selected\n\n      if (!options.jumpToCard && range && range.head.section && range.head.section.isCardSection) {\n        return;\n      } // start/endContainer matching editor element means the window range is\n      // outside of a text element so we don't want to scroll incorrectly\n      // (happens when replacing a selection with a link on paste)\n\n\n      if (windowRange && windowRange.startContainer === this.editor.element && windowRange.endContainer === this.editor.element) {\n        return;\n      }\n\n      if (windowRange) {\n        // cursorTop is relative to the window rather than document or scroll container\n        let {\n          top: cursorTop,\n          height: cursorHeight\n        } = windowRange.getBoundingClientRect();\n        let viewportHeight = window.innerHeight;\n        let offsetTop = 0;\n        let offsetBottom = 0;\n        let scrollTop = this._scrollContainer.scrollTop;\n\n        if (this.scrollOffsetTopSelector) {\n          let topElement = document.querySelector(this.scrollOffsetTopSelector);\n          offsetTop = topElement ? topElement.offsetHeight : 0;\n        }\n\n        if (this.scrollOffsetBottomSelector) {\n          let bottomElement = document.querySelector(this.scrollOffsetBottomSelector);\n          offsetBottom = bottomElement ? bottomElement.offsetHeight : 0;\n        } // for empty paragraphs the window selection range will be 0,0,0,0\n        // so grab the element's bounding rect instead\n\n\n        if (cursorTop === 0 && cursorHeight === 0) {\n          if (!element) {\n            return;\n          }\n\n          ({\n            top: cursorTop,\n            height: cursorHeight\n          } = element.getBoundingClientRect());\n        } // keep cursor in view at the top\n\n\n        if (cursorTop < 0 + offsetTop) {\n          this._scrollContainer.scrollTop = scrollTop - offsetTop + cursorTop - 20;\n          return;\n        }\n\n        let cursorBottom = cursorTop + cursorHeight;\n        let paddingBottom = 0;\n        let distanceFromViewportBottom = cursorBottom - viewportHeight;\n        let atBottom = false; // if we're at the bottom of the doc we should keep the bottom\n        // padding in view, otherwise just scroll to keep the cursor in view\n\n        if (this._scrollContainer.scrollTop + this._scrollContainer.offsetHeight + 200 >= this._scrollContainer.scrollHeight) {\n          atBottom = true;\n          paddingBottom = parseFloat(getComputedStyle(this.element.parentNode).getPropertyValue('padding-bottom'));\n        }\n\n        if (cursorBottom > viewportHeight - offsetBottom - paddingBottom) {\n          if (atBottom) {\n            this._scrollContainer.scrollTop = this._scrollContainer.scrollHeight;\n          } else {\n            this._scrollContainer.scrollTop = scrollTop + offsetBottom + distanceFromViewportBottom + 20;\n          }\n        }\n      }\n    },\n\n    _registerCardReorderDragDropHandler() {\n      let cardDragDropContainer = this.koenigDragDropHandler.registerContainer(this.editor.element, {\n        draggableSelector: ':scope > div',\n        // cards\n        droppableSelector: ':scope > *',\n        // all block elements\n        onDragStart: Ember.run.bind(this, this._onDragStart),\n        getDraggableInfo: Ember.run.bind(this, this._getDraggableInfo),\n        createGhostElement: Ember.run.bind(this, this._createCardDragElement),\n        getIndicatorPosition: Ember.run.bind(this, this._getDropIndicatorPosition),\n        onDrop: Ember.run.bind(this, this._onCardDrop),\n        onDropEnd: Ember.run.bind(this, this._onDropEnd)\n      });\n      this._cardDragDropContainer = cardDragDropContainer;\n    },\n\n    _onDragStart() {\n      this._cardDragDropContainer.refresh();\n    },\n\n    _getDraggableInfo(draggableElement) {\n      let card = this.getCardFromElement(draggableElement);\n\n      if (!card) {\n        return false;\n      } // TODO: payload should probably contain everything here as well as the\n      // card payload so that draggableInfo has a consistent shape\n\n\n      return {\n        type: 'card',\n        cardName: card.cardName,\n        payload: card.payload,\n        destinationElementId: card.destinationElementId\n      };\n    },\n\n    _createCardDragElement(draggableInfo) {\n      let {\n        cardName\n      } = draggableInfo;\n\n      if (!cardName || cardName === 'image') {\n        return;\n      }\n\n      let ghostElement = document.createElement('div');\n      ghostElement.classList.add('absolute', 'flex', 'flex-column', 'justify-center', 'items-center', 'w15', 'h15', 'br3', 'bg-white', 'shadow-1');\n      ghostElement.style.top = '0';\n      ghostElement.style.left = '-100%';\n      ghostElement.style.zIndex = 10001;\n      ghostElement.style.willChange = 'transform';\n      let iconElement = document.createElement('div');\n      iconElement.classList.add('flex', 'items-center');\n      let svgIconHtml = (0, _svgJar.svgJar)(_cards.CARD_ICON_MAP[cardName], {\n        class: 'w8 h8'\n      });\n      iconElement.insertAdjacentHTML('beforeend', svgIconHtml.string);\n      ghostElement.appendChild(iconElement);\n      return ghostElement;\n    },\n\n    _getDropIndicatorPosition(draggableInfo, droppableElem, position) {\n      let droppables = Array.from(this.editor.element.querySelectorAll(':scope > *'));\n      let droppableIndex = droppables.indexOf(droppableElem);\n      let draggableIndex = droppables.indexOf(draggableInfo.element); // allow card and image drops (images can be dragged out of a gallery)\n\n      if (draggableInfo.type !== 'card' && draggableInfo.type !== 'image') {\n        return false;\n      }\n\n      if (this._isCardDropAllowed(draggableIndex, droppableIndex, position)) {\n        let insertIndex = droppableIndex;\n\n        if (position.match(/bottom/)) {\n          insertIndex += 1;\n        }\n\n        let beforeElems, afterElems;\n\n        if (position.match(/bottom/)) {\n          beforeElems = droppables.slice(0, droppableIndex + 1);\n          afterElems = droppables.slice(droppableIndex + 1);\n        } else {\n          beforeElems = droppables.slice(0, droppableIndex);\n          afterElems = droppables.slice(droppableIndex);\n        }\n\n        return {\n          direction: 'vertical',\n          position: position.match(/top/) ? 'top' : 'bottom',\n          beforeElems,\n          afterElems,\n          insertIndex: insertIndex\n        };\n      }\n\n      return false;\n    },\n\n    _onCardDrop(draggableInfo) {\n      if (draggableInfo.type !== 'card' && draggableInfo.type !== 'image') {\n        return false;\n      }\n\n      let droppables = Array.from(this.editor.element.querySelectorAll(':scope > *'));\n      let draggableIndex = droppables.indexOf(draggableInfo.element);\n\n      if (this._isCardDropAllowed(draggableIndex, draggableInfo.insertIndex)) {\n        if (draggableInfo.type === 'card') {\n          let card = this.getCardFromElement(draggableInfo.element);\n          let cardSection = this.getSectionFromCard(card);\n          let difference = draggableIndex - draggableInfo.insertIndex;\n\n          if (draggableIndex < draggableInfo.insertIndex) {\n            difference += 1;\n          }\n\n          if (difference !== 0) {\n            this.editor.run(postEditor => {\n              do {\n                if (difference > 0) {\n                  cardSection = postEditor.moveSectionUp(cardSection);\n                  difference -= 1;\n                } else if (difference < 0) {\n                  cardSection = postEditor.moveSectionDown(cardSection);\n                  difference += 1;\n                }\n              } while (difference !== 0);\n            });\n          } // make sure we don't remove the dropped card in the card->card drop handler\n\n\n          this._skipOnDropEnd = true;\n          return true;\n        }\n\n        if (draggableInfo.type === 'image') {\n          // we need to create an image card from a raw image payload\n          this.editor.run(postEditor => {\n            let imageCard = postEditor.builder.createCardSection('image', draggableInfo.payload);\n            let sections = this.editor.post.sections;\n            let droppableSection = sections.objectAt(draggableInfo.insertIndex);\n            postEditor.insertSectionBefore(sections, imageCard, droppableSection);\n            postEditor.setRange(imageCard.tailPosition());\n          });\n          return true;\n        }\n      }\n    },\n\n    // TODO: more or less duplicated in koenig-card-gallery other than direction\n    // - move to DnD container?\n    _isCardDropAllowed(draggableIndex, droppableIndex, position = '') {\n      // images can be dragged out of a gallery to any position\n      if (draggableIndex === -1) {\n        return true;\n      } // can't drop on itself or when droppableIndex doesn't exist\n\n\n      if (draggableIndex === droppableIndex || typeof droppableIndex === 'undefined') {\n        return false;\n      } // account for dropping at beginning or end of a row\n\n\n      if (position.match(/top/)) {\n        droppableIndex -= 1;\n      }\n\n      if (position.match(/bottom/)) {\n        droppableIndex += 1;\n      }\n\n      return droppableIndex !== draggableIndex;\n    },\n\n    // a card can be dropped into another card which means we need to remove the original\n    _onDropEnd(draggableInfo, success) {\n      if (this._skipOnDropEnd || !success || draggableInfo.type !== 'card') {\n        this._skipOnDropEnd = false;\n        return;\n      }\n\n      let card = this.getCardFromElement(draggableInfo.element);\n      this.deleteCard(card, NO_CURSOR_MOVEMENT);\n    },\n\n    // calculate the number of words in rich-text sections and query cards for\n    // their own word and image counts. Image counts are used for reading-time\n    _calculateWordCount() {\n      Ember.run.throttle(this, this._throttledWordCount, 100, false);\n    },\n\n    _throttledWordCount() {\n      if (this.isDestroying || this.isDestroyed) {\n        return;\n      }\n\n      let wordCount = 0;\n      let imageCount = 0;\n      this.editor.post.walkAllLeafSections(section => {\n        if (section.isCardSection) {\n          // get counts from card components\n          let card = this.getCardFromSection(section);\n          let cardCounts = Ember.get(card, 'component.counts') || {};\n          wordCount += cardCounts.wordCount || 0;\n          imageCount += cardCounts.imageCount || 0;\n        } else {\n          wordCount += countWords(section.text);\n        }\n      });\n\n      if (wordCount !== this.wordCount || imageCount !== this.imageCount) {\n        let readingTime = (0, _readingTime.default)({\n          wordCount,\n          imageCount\n        });\n        this.setProperties({\n          wordCount,\n          imageCount,\n          readingTime\n        });\n        this.wordCountDidChange({\n          wordCount,\n          imageCount,\n          readingTime\n        });\n      }\n    },\n\n    _triggerTextHandlers() {\n      let {\n        editor\n      } = this; // don't trigger our text input handlers for pastes within cards or\n      // outside of the editor canvas\n\n      if (!editor.cursor.isAddressable(event.target)) {\n        return;\n      } // must be run after the normal events have finished so that the\n      // backtick char exists in the editor\n\n\n      Ember.run.next(this, function () {\n        let matchedHandler = editor._eventManager._textInputHandler._findHandler();\n\n        if (matchedHandler) {\n          let [handler, matches] = matchedHandler;\n          handler.run(editor, matches);\n        }\n      });\n    },\n\n    // store a reference to the editor for the acceptance test helpers\n    _setExpandoProperty(editor) {\n      let config = Ember.getOwner(this).resolveRegistration('config:environment');\n\n      if (this.element && config.environment === 'test') {\n        this.element[TESTING_EXPANDO_PROPERTY] = editor;\n      }\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-link-input\", [\"exports\", \"koenig-editor/utils/get-scroll-parent\", \"koenig-editor/lib/relative-to-absolute\", \"koenig-editor/components/koenig-toolbar\", \"koenig-editor/utils/markup-utils\"], function (_exports, _getScrollParent, _relativeToAbsolute, _koenigToolbar, _markupUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <input\n      placeholder=\"Enter url\"\n      value={{this._href}}\n      class=\"kg-link-input pa2 pr6 mih-100 ba br3 shadow-2 f8 lh-heading tracked-2 outline-0 b--green h10 nudge-top--8\"\n      {{on \"input\" (action (mut this._href) value=\"target.value\")}}\n      {{on \"keydown\" (action \"inputKeydown\")}}\n  />\n  \n  {{#if this._href}}\n      <button aria-label=\"Close\" class=\"kg-input-bar-close\" type=\"button\" {{on \"click\" (action \"clear\")}}>\n          {{svg-jar \"close\" class=\"ih2 stroke-midlightgrey-l2\"}}\n      </button>\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"Q1h03Llm\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[11,\\\"input\\\"],[24,\\\"placeholder\\\",\\\"Enter url\\\"],[16,2,[32,0,[\\\"_href\\\"]]],[24,0,\\\"kg-link-input pa2 pr6 mih-100 ba br3 shadow-2 f8 lh-heading tracked-2 outline-0 b--green h10 nudge-top--8\\\"],[4,[38,1],[\\\"input\\\",[30,[36,0],[[32,0],[30,[36,3],[[32,0,[\\\"_href\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[4,[38,1],[\\\"keydown\\\",[30,[36,0],[[32,0],\\\"inputKeydown\\\"],null]],null],[12],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,4],[[32,0,[\\\"_href\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,0,\\\"kg-input-bar-close\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,[36,0],[[32,0],\\\"clear\\\"],null]],null],[12],[2,\\\"\\\\n        \\\"],[1,[30,[36,2],[\\\"close\\\"],[[\\\"class\\\"],[\\\"ih2 stroke-midlightgrey-l2\\\"]]]],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"on\\\",\\\"svg-jar\\\",\\\"mut\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-link-input.hbs\"\n    }\n  });\n\n  // pixels that should be added to the `left` property of the tick adjustment styles\n  // TODO: handle via CSS?\n  const TICK_ADJUSTMENT = 8;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    config: Ember.inject.service(),\n    attributeBindings: ['style'],\n    classNames: ['kg-input-bar', 'absolute', 'z-999'],\n    // public attrs\n    editor: null,\n    linkRange: null,\n    linkRect: null,\n    selectedRange: null,\n    // internal properties\n    top: null,\n    left: null,\n    right: null,\n    _href: '',\n    // private properties\n    _selectedRange: null,\n    _windowRange: null,\n    _onMousedownHandler: null,\n    _onMouseupHandler: null,\n\n    // closure actions\n    cancel() {},\n\n    /* computed properties -------------------------------------------------- */\n    style: Ember.computed('top', 'left', 'right', function () {\n      let position = this.getProperties('top', 'left', 'right');\n      let styles = Object.keys(position).map(style => {\n        if (position[style] !== null) {\n          return `${style}: ${position[style]}px`;\n        }\n      });\n      return Ember.String.htmlSafe(styles.compact().join('; '));\n    }),\n\n    /* lifecycle hooks ------------------------------------------------------ */\n    init() {\n      this._super(...arguments);\n\n      if (!this.source) {\n        // record the range now because the property is bound and will update\n        // as we make changes whilst calculating the link position\n        this._selectedRange = this.selectedRange;\n        this._linkRange = this.linkRange; // grab a window range so that we can use getBoundingClientRect. Using\n        // document.createRange is more efficient than doing editor.setRange\n        // because it doesn't trigger all of the selection changing side-effects\n        // TODO: extract MobiledocRange->NativeRange into a util\n\n        let editor = this.editor;\n        let cursor = editor.cursor;\n        let {\n          head,\n          tail\n        } = this._linkRange;\n\n        let {\n          node: headNode,\n          offset: headOffset\n        } = cursor._findNodeForPosition(head);\n\n        let {\n          node: tailNode,\n          offset: tailOffset\n        } = cursor._findNodeForPosition(tail);\n\n        let range = document.createRange();\n        range.setStart(headNode, headOffset);\n        range.setEnd(tailNode, tailOffset);\n        this._windowRange = range; // grab an existing href value if there is one\n\n        this._getHrefFromMarkup();\n      } // wait until rendered to position so that we have access to this.element\n\n\n      Ember.run.schedule('afterRender', this, function () {\n        this._positionToolbar();\n\n        this._focusInput();\n      }); // watch the window for mousedown events so that we can close the menu\n      // when we detect a click outside\n\n      this._onMousedownHandler = Ember.run.bind(this, this._handleMousedown);\n      window.addEventListener('mousedown', this._onMousedownHandler); // watch for keydown events so that we can close the menu on Escape\n\n      this._onKeydownHandler = Ember.run.bind(this, this._handleKeydown);\n      window.addEventListener('keydown', this._onKeydownHandler);\n    },\n\n    didReceiveAttrs() {\n      this._super(...arguments);\n\n      if (this.source === 'direct' && this.href !== this._href) {\n        this.set('_href', this.href);\n      }\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this._removeStyleElement();\n\n      window.removeEventListener('mousedown', this._onMousedownHandler);\n      window.removeEventListener('keydown', this._onKeydownHandler);\n    },\n\n    actions: {\n      inputKeydown(event) {\n        if (event.key === 'Enter') {\n          // prevent Enter from triggering in the editor and removing text\n          event.preventDefault();\n          let href = (0, _relativeToAbsolute.default)(this._href, this.config.get('blogUrl'));\n          this.set('_href', href);\n\n          if (this.source === 'direct') {\n            this.update(href);\n            this.cancel();\n            return;\n          } // create a single editor runloop here so that we don't get\n          // separate remove and replace ops pushed onto the undo stack\n\n\n          this.editor.run(postEditor => {\n            if (href) {\n              this._replaceLink(href, postEditor);\n            } else {\n              this._removeLinks(postEditor);\n            }\n          });\n\n          this._cancelAndReselect();\n        }\n      },\n\n      clear() {\n        this.set('_href', '');\n\n        this._focusInput();\n      }\n\n    },\n\n    // if we have a single link or a slice of a single link selected, grab the\n    // href and adjust our linkRange to encompass the whole link\n    _getHrefFromMarkup() {\n      let linkMarkup = (0, _markupUtils.getLinkMarkupFromRange)(this._linkRange);\n\n      if (linkMarkup) {\n        this.set('_href', linkMarkup.attributes.href);\n        this._linkRange = this._linkRange.expandByMarker(marker => !!marker.markups.includes(linkMarkup));\n      }\n    },\n\n    _replaceLink(href, postEditor) {\n      this._removeLinks(postEditor);\n\n      let linkMarkup = postEditor.builder.createMarkup('a', {\n        href\n      });\n      postEditor.toggleMarkup(linkMarkup, this._linkRange);\n    },\n\n    // loop over all markers that are touched by linkRange, removing any 'a'\n    // markups on them to clear all links\n    _removeLinks(postEditor) {\n      let {\n        headMarker,\n        tailMarker\n      } = this.linkRange;\n      let curMarker = headMarker;\n\n      while (curMarker && curMarker !== tailMarker.next) {\n        curMarker.markups.filterBy('tagName', 'a').forEach(markup => {\n          curMarker.removeMarkup(markup);\n\n          postEditor._markDirty(curMarker);\n        });\n        curMarker = curMarker.next;\n      }\n    },\n\n    _cancelAndReselect() {\n      this.cancel();\n\n      if (this._selectedRange) {\n        this.editor.selectRange(this._selectedRange);\n      }\n    },\n\n    _focusInput() {\n      let scrollParent = (0, _getScrollParent.default)(this.element);\n      let scrollTop = scrollParent.scrollTop;\n      this.element.querySelector('input').focus(); // reset the scroll position to avoid jumps\n      // TODO: why does the input focus cause a scroll to the bottom of the doc?\n\n      scrollParent.scrollTop = scrollTop;\n    },\n\n    // TODO: largely shared with {{koenig-toolbar}} and {{koenig-snippet-input}} - extract to a shared util?\n    _positionToolbar() {\n      let containerRect = this.element.offsetParent.getBoundingClientRect();\n\n      let rangeRect = this.linkRect || this._windowRange.getBoundingClientRect();\n\n      let {\n        width,\n        height\n      } = this.element.getBoundingClientRect();\n      let newPosition = {}; // rangeRect is relative to the viewport so we need to subtract the\n      // container measurements to get a position relative to the container\n\n      newPosition = {\n        top: rangeRect.top - containerRect.top - height - _koenigToolbar.TOOLBAR_MARGIN,\n        left: rangeRect.left - containerRect.left + rangeRect.width / 2 - width / 2,\n        right: null\n      };\n      let tickPosition = 50; // don't overflow left boundary\n\n      if (newPosition.left < 0) {\n        newPosition.left = 0; // calculate the tick percentage position\n\n        let absTickPosition = rangeRect.left - containerRect.left + rangeRect.width / 2;\n        tickPosition = absTickPosition / width * 100;\n\n        if (tickPosition < 5) {\n          tickPosition = 5;\n        }\n      } // same for right boundary\n\n\n      if (newPosition.left + width > containerRect.width) {\n        newPosition.left = null;\n        newPosition.right = 0; // calculate the tick percentage position\n\n        let absTickPosition = rangeRect.right - containerRect.right - rangeRect.width / 2;\n        tickPosition = 100 + absTickPosition / width * 100;\n\n        if (tickPosition > 95) {\n          tickPosition = 95;\n        }\n      } // the tick is a pseudo-element so we the only way we can affect it's\n      // style is by adding a style element to the head\n\n\n      this._removeStyleElement(); // reset to base styles\n\n\n      if (tickPosition !== 50) {\n        this._addStyleElement(`left: calc(${tickPosition}% - ${TICK_ADJUSTMENT}px)`);\n      } // update the toolbar position\n\n\n      this.setProperties(newPosition);\n    },\n\n    _addStyleElement(styles) {\n      let styleElement = document.createElement('style');\n      styleElement.id = `${this.elementId}-style`;\n      styleElement.innerHTML = `#${this.elementId}:before, #${this.elementId}:after { ${styles} }`;\n      document.head.appendChild(styleElement);\n    },\n\n    _removeStyleElement() {\n      let styleElement = document.querySelector(`#${this.elementId}-style`);\n\n      if (styleElement) {\n        styleElement.remove();\n      }\n    },\n\n    _handleMousedown(event) {\n      if (!event.target.closest(`#${this.elementId}`)) {\n        // no need to re-select for mouse clicks\n        this.cancel();\n      }\n    },\n\n    _handleKeydown(event) {\n      if (event.key === 'Escape') {\n        this._cancelAndReselect();\n      }\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-link-toolbar\", [\"exports\", \"koenig-editor/lib/relative-to-absolute\", \"mobiledoc-kit/utils/element-utils\"], function (_exports, _relativeToAbsolute, _elementUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    {{#if showToolbar}}\n      <ul class=\"kg-link-toolbar bg-darkgrey-d1 inline-flex pa0 ma0 list br3 shadow-2 items-center relative white f-small fw4 tracked-2 nudge-top--1\">\n          <li class=\"mw70 ma0 truncate\">\n              <a href=\"{{url}}\" class=\"dib dim-lite pa2 pl3 pr3 pr1 link white\" target=\"_blank\" rel=\"noopener noreferrer\">{{url}}</a>\n          </li>\n          <li class=\"ma0\">\n              <button\n                  type=\"button\"\n                  title=\"Edit\"\n                  class=\"dib dim-lite pa2 pl1 pr1 link\"\n                  {{action \"edit\"}}\n              >\n                  {{!-- TODO: get correct icon --}}\n                  {{svg-jar \"koenig/kg-edit\" class=\"fill-white w4 h4 nudge-top--1\"}}\n              </button>\n          </li>\n          <li class=\"ma0\">\n              <button\n                  type=\"button\"\n                  title=\"Remove\"\n                  class=\"dib dim-lite pa2 pl1 pr1 link mr2\"\n                  {{action \"remove\"}}\n              >\n                  {{!-- TODO: get correct icon --}}\n                  {{svg-jar \"koenig/kg-trash\" class=\"fill-white w4 h4 nudge-top--1\"}}\n              </button>\n          </li>\n      </ul>\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"5AU8H0JJ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[6,[37,4],[[35,3]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"ul\\\"],[14,0,\\\"kg-link-toolbar bg-darkgrey-d1 inline-flex pa0 ma0 list br3 shadow-2 items-center relative white f-small fw4 tracked-2 nudge-top--1\\\"],[12],[2,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"mw70 ma0 truncate\\\"],[12],[2,\\\"\\\\n            \\\"],[10,\\\"a\\\"],[15,6,[31,[[34,0]]]],[14,0,\\\"dib dim-lite pa2 pl3 pr3 pr1 link white\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,[34,0]],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0\\\"],[12],[2,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Edit\\\"],[24,0,\\\"dib dim-lite pa2 pl1 pr1 link\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[32,0],\\\"edit\\\"],null],[12],[2,\\\"\\\\n\\\"],[2,\\\"                \\\"],[1,[30,[36,2],[\\\"koenig/kg-edit\\\"],[[\\\"class\\\"],[\\\"fill-white w4 h4 nudge-top--1\\\"]]]],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0\\\"],[12],[2,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Remove\\\"],[24,0,\\\"dib dim-lite pa2 pl1 pr1 link mr2\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[32,0],\\\"remove\\\"],null],[12],[2,\\\"\\\\n\\\"],[2,\\\"                \\\"],[1,[30,[36,2],[\\\"koenig/kg-trash\\\"],[[\\\"class\\\"],[\\\"fill-white w4 h4 nudge-top--1\\\"]]]],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"url\\\",\\\"action\\\",\\\"svg-jar\\\",\\\"showToolbar\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-link-toolbar.hbs\"\n    }\n  });\n\n  // gap between link and toolbar bottom\n  const TOOLBAR_MARGIN = 8; // extra padding to reduce the likelyhood of unexpected hiding\n  // TODO: improve behaviour with a mouseout timeout or creating a bounding box\n  // and watching mousemove\n\n  const TOOLBAR_PADDING = 12; // ms to wait before showing the tooltip\n\n  const DELAY = 120;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    config: Ember.inject.service(),\n    attributeBindings: ['style'],\n    classNames: ['absolute', 'z-999'],\n    // public attrs\n    container: null,\n    editor: null,\n    linkRange: null,\n    selectedRange: null,\n    // internal attrs\n    url: 'http://example.com',\n    showToolbar: false,\n    top: null,\n    left: -1000,\n    right: null,\n    // private attrs\n    _canShowToolbar: true,\n    _eventListeners: null,\n\n    // closure actions\n    editLink() {},\n\n    /* computed properties -------------------------------------------------- */\n    style: Ember.computed('showToolbar', 'top', 'left', 'right', function () {\n      let position = this.getProperties('top', 'left', 'right');\n      let styles = Object.keys(position).map(style => {\n        if (position[style] !== null) {\n          return `${style}: ${position[style]}px`;\n        }\n      }); // ensure hidden toolbar is non-interactive\n\n      if (this.showToolbar) {\n        styles.push('pointer-events: auto !important'); // add margin-bottom so that there's no gap between the link and\n        // the toolbar to avoid closing when mouse moves between elements\n\n        styles.push(`padding-bottom: ${TOOLBAR_PADDING}px`);\n      } else {\n        styles.push('pointer-events: none !important');\n      }\n\n      return Ember.String.htmlSafe(styles.compact().join('; '));\n    }),\n\n    /* lifecycle hooks ------------------------------------------------------ */\n    init() {\n      this._super(...arguments);\n\n      this._eventListeners = [];\n    },\n\n    didReceiveAttrs() {\n      this._super(...arguments); // don't show popups if link edit or formatting toolbar is shown\n      // TODO: have a service for managing UI state?\n\n\n      if (this.linkRange || this.selectedRange && !this.selectedRange.isCollapsed) {\n        this._cancelTimeouts();\n\n        this.set('showToolbar', false);\n        this._canShowToolbar = false;\n      } else {\n        this._canShowToolbar = true;\n      }\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      let container = this.container;\n      container.dataset.kgHasLinkToolbar = true;\n\n      this._addEventListener(container, 'mouseover', this._handleMouseover);\n\n      this._addEventListener(container, 'mouseout', this._handleMouseout);\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this._removeAllEventListeners();\n    },\n\n    /* actions -------------------------------------------------------------- */\n    actions: {\n      edit() {\n        // get range that covers link\n        let linkRange = this._getLinkRange();\n\n        this.editLink(linkRange, this._targetRect);\n      },\n\n      remove() {\n        let editor = this.editor;\n\n        let linkRange = this._getLinkRange();\n\n        let editorRange = editor.range;\n        editor.run(postEditor => {\n          postEditor.toggleMarkup('a', linkRange);\n        });\n        this.set('showToolbar', false);\n        editor.selectRange(editorRange);\n      }\n\n    },\n\n    /* private methods ------------------------------------------------------ */\n    _getLinkRange() {\n      if (!this._target) {\n        return;\n      }\n\n      let editor = this.editor;\n      let x = this._targetRect.x + this._targetRect.width / 2;\n      let y = this._targetRect.y + this._targetRect.height / 2;\n      let position = editor.positionAtPoint(x, y);\n      let linkMarkup = position.marker && position.marker.markups.findBy('tagName', 'a');\n\n      if (linkMarkup) {\n        let linkRange = position.toRange().expandByMarker(marker => !!marker.markups.includes(linkMarkup));\n        return linkRange;\n      }\n    },\n\n    _handleMouseover(event) {\n      if (this._canShowToolbar) {\n        let target = (0, _elementUtils.getEventTargetMatchingTag)('a', event.target, this.container);\n\n        if (target && target.isContentEditable && target.closest('[data-kg-has-link-toolbar=true]') === this.container) {\n          this._timeout = Ember.run.later(this, function () {\n            this._showToolbar(target, {\n              x: event.clientX,\n              y: event.clientY\n            });\n          }, DELAY);\n        }\n      }\n    },\n\n    _handleMouseout(event) {\n      this._cancelTimeouts();\n\n      if (this.showToolbar) {\n        let toElement = event.toElement || event.relatedTarget;\n\n        if (toElement && !(toElement === this.element || toElement === this._target || toElement.closest(`#${this.elementId}`))) {\n          this.set('showToolbar', false);\n        }\n      }\n    },\n\n    _showToolbar(target, mousePos) {\n      // extract the href attribute value and convert it to absolute based\n      // on the configured blog url\n      this._target = target;\n      let href = target.getAttribute('href');\n      let blogUrl = this.config.get('blogUrl');\n      this.set('url', (0, _relativeToAbsolute.default)(href, blogUrl));\n      this.set('showToolbar', true);\n      Ember.run.schedule('afterRender', this, function () {\n        this._positionToolbar(target, mousePos);\n      });\n    },\n\n    _cancelTimeouts() {\n      Ember.run.cancel(this._timeout);\n\n      if (this._elementObserver) {\n        this._elementObserver.cancel();\n      }\n    },\n\n    _positionToolbar(target, {\n      x,\n      y\n    }) {\n      let containerRect = this.element.offsetParent.getBoundingClientRect(); // wrapped links can have multiple rects, find one closest to the pointer\n      // if we have a pointer position\n\n      if (x && y) {\n        let rects = Array.prototype.slice.call(target.getClientRects());\n        this._targetRect = rects.find(rect => {\n          return rect.x - TOOLBAR_MARGIN <= x && x <= rect.x + rect.width + TOOLBAR_MARGIN && rect.y - TOOLBAR_MARGIN <= y && y <= rect.y + rect.height + TOOLBAR_MARGIN;\n        });\n      }\n\n      if (!this._targetRect) {\n        this._targetRect = target.getBoundingClientRect();\n      }\n\n      let {\n        width,\n        height\n      } = this.element.getBoundingClientRect();\n      let newPosition = {}; // targetRect is relative to the viewport so we need to subtract the\n      // container measurements to get a position relative to the container\n\n      newPosition = {\n        top: this._targetRect.top - containerRect.top - height - TOOLBAR_MARGIN + TOOLBAR_PADDING,\n        left: this._targetRect.left - containerRect.left + this._targetRect.width / 2 - width / 2,\n        right: null\n      }; // don't overflow left boundary\n\n      if (newPosition.left < 0) {\n        newPosition.left = 0;\n      } // same for right boundary\n\n\n      if (newPosition.left + width > containerRect.width) {\n        newPosition.left = null;\n        newPosition.right = 0;\n      } // update the toolbar position\n\n\n      this.setProperties(newPosition);\n    },\n\n    _addStyleElement(styles) {\n      let styleElement = document.createElement('style');\n      styleElement.id = `${this.elementId}-style`;\n      styleElement.innerHTML = `#${this.elementId} > ul:after { ${styles} }`;\n      document.head.appendChild(styleElement);\n    },\n\n    _removeStyleElement() {\n      let styleElement = document.querySelector(`#${this.elementId}-style`);\n\n      if (styleElement) {\n        styleElement.remove();\n      }\n    },\n\n    _addEventListener(element, type, listener) {\n      let boundListener = Ember.run.bind(this, listener);\n      element.addEventListener(type, boundListener);\n\n      this._eventListeners.push([element, type, boundListener]);\n    },\n\n    _removeAllEventListeners() {\n      this._eventListeners.forEach(([element, type, listener]) => {\n        element.removeEventListener(type, listener);\n      });\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-menu-content\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _class;\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\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    {{#each @itemSections as |section sectionIndex|}}\n      {{#if section.items}}\n          {{#if (or (not section.developerExperiment) (enable-developer-experiments))}}\n              <div class=\"flex flex-column justify-center flex-shrink-0 {{unless (eq sectionIndex 0) \"mt3 bt b--whitegrey\"}} mb2 pl4 pr4 pt3 midlightgrey ttu f-supersmall fw5 tracked-3\" style=\"min-width: calc(100% - 3.2rem);\">\n                  {{section.title}}\n              </div>\n              {{#each section.items as |item|}}\n                  {{#if (card-is-available item)}}\n                      <div\n                          class=\"{{if (eq item @selectedItem) \"kg-cardmenu-card-selected\"}} {{kg-style \"cardmenu-card\"}}\"\n                          data-kg=\"cardmenu-card\"\n                          role=\"menuitem\"\n                          title=\"{{item.label}}\"\n                          {{on \"click\" (fn @itemClicked item)}}\n                          {{did-update this.scrollIntoView (eq item @selectedItem)}}\n                      >\n                          <div class=\"{{kg-style \"cardmenu-icon\"}} {{item.iconClass}}\" aria-hidden=\"true\">{{svg-jar item.icon class=\"w7 h7\"}}</div>\n                          <div class=\"{{kg-style \"cardmenu-text\"}}\">\n                              <div class=\"{{kg-style \"cardmenu-label\"}}\">{{item.label}}</div>\n                              <div class=\"{{kg-style \"cardmenu-desc\"}}\">{{item.desc}}</div>\n                          </div>\n                          {{#if item.deleteClicked}}\n                              <span class=\"kg-cardmenu-action-icon\" {{on \"click\" item.deleteClicked}}>{{svg-jar \"trash\"}}</span>\n                          {{/if}}\n                      </div>\n                  {{/if}}\n              {{/each}}\n          {{/if}}\n      {{/if}}\n  {{/each}}\n  \n  */\n  {\n    \"id\": \"wywZFXlk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"section\\\",\\\"sectionIndex\\\",\\\"item\\\",\\\"@selectedItem\\\",\\\"@itemClicked\\\",\\\"@itemSections\\\"],\\\"statements\\\":[[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,6]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,4],[[32,1,[\\\"items\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,4],[[30,[36,13],[[30,[36,12],[[32,1,[\\\"developerExperiment\\\"]]],null],[30,[36,11],null,null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"flex flex-column justify-center flex-shrink-0 \\\",[30,[36,8],[[30,[36,3],[[32,2],0],null],\\\"mt3 bt b--whitegrey\\\"],null],\\\" mb2 pl4 pr4 pt3 midlightgrey ttu f-supersmall fw5 tracked-3\\\"]]],[14,5,\\\"min-width: calc(100% - 3.2rem);\\\"],[12],[2,\\\"\\\\n                \\\"],[1,[32,1,[\\\"title\\\"]]],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,1,[\\\"items\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,4],[[30,[36,7],[[32,3]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                    \\\"],[11,\\\"div\\\"],[16,0,[31,[[30,[36,4],[[30,[36,3],[[32,3],[32,4]],null],\\\"kg-cardmenu-card-selected\\\"],null],\\\" \\\",[30,[36,2],[\\\"cardmenu-card\\\"],null]]]],[24,\\\"data-kg\\\",\\\"cardmenu-card\\\"],[24,\\\"role\\\",\\\"menuitem\\\"],[16,\\\"title\\\",[31,[[32,3,[\\\"label\\\"]]]]],[4,[38,0],[\\\"click\\\",[30,[36,5],[[32,5],[32,3]],null]],null],[4,[38,6],[[32,0,[\\\"scrollIntoView\\\"]],[30,[36,3],[[32,3],[32,4]],null]],null],[12],[2,\\\"\\\\n                        \\\"],[10,\\\"div\\\"],[15,0,[31,[[30,[36,2],[\\\"cardmenu-icon\\\"],null],\\\" \\\",[32,3,[\\\"iconClass\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,[30,[36,1],[[32,3,[\\\"icon\\\"]]],[[\\\"class\\\"],[\\\"w7 h7\\\"]]]],[13],[2,\\\"\\\\n                        \\\"],[10,\\\"div\\\"],[15,0,[31,[[30,[36,2],[\\\"cardmenu-text\\\"],null]]]],[12],[2,\\\"\\\\n                            \\\"],[10,\\\"div\\\"],[15,0,[31,[[30,[36,2],[\\\"cardmenu-label\\\"],null]]]],[12],[1,[32,3,[\\\"label\\\"]]],[13],[2,\\\"\\\\n                            \\\"],[10,\\\"div\\\"],[15,0,[31,[[30,[36,2],[\\\"cardmenu-desc\\\"],null]]]],[12],[1,[32,3,[\\\"desc\\\"]]],[13],[2,\\\"\\\\n                        \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,4],[[32,3,[\\\"deleteClicked\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"                            \\\"],[11,\\\"span\\\"],[24,0,\\\"kg-cardmenu-action-icon\\\"],[4,[38,0],[\\\"click\\\",[32,3,[\\\"deleteClicked\\\"]]],null],[12],[1,[30,[36,1],[\\\"trash\\\"],null]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"                    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[3]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1,2]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"on\\\",\\\"svg-jar\\\",\\\"kg-style\\\",\\\"eq\\\",\\\"if\\\",\\\"fn\\\",\\\"did-update\\\",\\\"card-is-available\\\",\\\"unless\\\",\\\"-track-array\\\",\\\"each\\\",\\\"enable-developer-experiments\\\",\\\"not\\\",\\\"or\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-menu-content.hbs\"\n    }\n  });\n\n  let KoenigMenuContentComponent = (_dec = Ember._action, (_class = class KoenigMenuContentComponent extends _component.default {\n    scrollIntoView(element, [doScroll]) {\n      if (doScroll) {\n        element.scrollIntoView({\n          behavior: 'smooth',\n          block: 'nearest'\n        });\n      }\n    }\n\n  }, (_applyDecoratedDescriptor(_class.prototype, \"scrollIntoView\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"scrollIntoView\"), _class.prototype)), _class));\n  _exports.default = KoenigMenuContentComponent;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, KoenigMenuContentComponent);\n});","define(\"koenig-editor/components/koenig-plus-menu\", [\"exports\", \"mobiledoc-kit/parsers/mobiledoc\", \"koenig-editor/utils/snippet-icon\", \"koenig-editor/options/cards\"], function (_exports, _mobiledoc, _snippetIcon, _cards) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    {{#if this.showButton}}\n      <button aria-label=\"Add a card\" class=\"koenig-plus-menu-button flex justify-center items-center relative w9 h9 ba b--midlightgrey-l2 bg-white br-100 anim-normal\" onclick={{action \"openMenu\"}}>{{svg-jar \"plus\" class=\"w4 h4 stroke-middarkgrey i-strokew--2\"}}</button>\n  {{/if}}\n  \n  {{#if this.showMenu}}\n      {{!-- TODO: restructure HTML and update kg-style helper to avoid negative margins on divider/title elements --}}\n      <div class=\"{{kg-style \"cardmenu\"}} pa0\" role=\"menu\">\n          {{!-- <div class=\"koenig-cardmenu-search\">\n              {{svg-jar \"koenig/search\"}}\n              <input type=\"text\" placeholder=\"Search for a card...\" class=\"gh-input koenig-cardmenu-search-input\">\n          </div> --}}\n          <KoenigMenuContent\n              @itemSections={{this.itemSections}}\n              @itemClicked={{action \"itemClicked\"}}\n          />\n      </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"RFS3jRGl\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[6,[37,3],[[32,0,[\\\"showButton\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Add a card\\\"],[14,0,\\\"koenig-plus-menu-button flex justify-center items-center relative w9 h9 ba b--midlightgrey-l2 bg-white br-100 anim-normal\\\"],[15,\\\"onclick\\\",[30,[36,1],[[32,0],\\\"openMenu\\\"],null]],[12],[1,[30,[36,2],[\\\"plus\\\"],[[\\\"class\\\"],[\\\"w4 h4 stroke-middarkgrey i-strokew--2\\\"]]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,3],[[32,0,[\\\"showMenu\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"div\\\"],[15,0,[31,[[30,[36,0],[\\\"cardmenu\\\"],null],\\\" pa0\\\"]]],[14,\\\"role\\\",\\\"menu\\\"],[12],[2,\\\"\\\\n\\\"],[2,\\\"        \\\"],[8,\\\"koenig-menu-content\\\",[],[[\\\"@itemSections\\\",\\\"@itemClicked\\\"],[[32,0,[\\\"itemSections\\\"]],[30,[36,1],[[32,0],\\\"itemClicked\\\"],null]]],null],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"kg-style\\\",\\\"action\\\",\\\"svg-jar\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-plus-menu.hbs\"\n    }\n  });\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    // public attrs\n    classNames: ['absolute'],\n    attributeBindings: ['style', 'data-kg'],\n    editor: null,\n    editorRange: null,\n    snippets: null,\n    // internal properties\n    showButton: false,\n    showMenu: false,\n    top: 0,\n    'data-kg': 'plus-menu',\n    // private properties\n    _onResizeHandler: null,\n    _onWindowMousedownHandler: null,\n    _lastEditorRange: null,\n    _hasCursorButton: false,\n    _onMousemoveHandler: null,\n    _onKeydownHandler: null,\n\n    // closure actions\n    replaceWithCardSection() {},\n\n    style: Ember.computed('top', function () {\n      return Ember.String.htmlSafe(`top: ${this.top}px`);\n    }),\n    itemSections: Ember.computed('snippets.[]', function () {\n      let {\n        snippets\n      } = this;\n      let itemSections = [..._cards.CARD_MENU]; // TODO: move or create util, duplicated with koenig-slash-menu\n\n      if (snippets !== null && snippets !== void 0 && snippets.length) {\n        let snippetsSection = {\n          title: 'Snippets',\n          items: [],\n          rowLength: 1\n        };\n        snippets.forEach(snippet => {\n          let snippetItem = {\n            label: snippet.name,\n            icon: (0, _snippetIcon.default)(snippet),\n            type: 'snippet',\n            matches: [snippet.name.toLowerCase()]\n          };\n\n          if (this.deleteSnippet) {\n            snippetItem.deleteClicked = event => {\n              event.preventDefault();\n              event.stopImmediatePropagation();\n              this.deleteSnippet(snippet);\n            };\n          }\n\n          snippetsSection.items.push(snippetItem);\n        });\n        itemSections.push(snippetsSection);\n      }\n\n      return itemSections;\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      this._onResizeHandler = Ember.run.bind(this, this._handleResize);\n      window.addEventListener('resize', this._onResizeHandler);\n      this._onMousemoveHandler = Ember.run.bind(this, this._mousemoveRaf);\n      window.addEventListener('mousemove', this._onMousemoveHandler);\n    },\n\n    didReceiveAttrs() {\n      this._super(...arguments);\n\n      let editorRange = this.editorRange; // show the (+) button when the cursor is on a blank P tag\n\n      if (!this.showMenu && editorRange !== this._lastEditorRange) {\n        this._showOrHideButton(editorRange);\n\n        this._hasCursorButton = this.showButton;\n      } // re-position again on next runloop, prevents incorrect position after\n      // adding a card at the bottom of the doc\n\n\n      if (this.showButton) {\n        Ember.run.next(this, this._positionMenu);\n      } // hide the menu if the editor range has changed\n\n\n      if (!this._ignoreRangeChange && this.showMenu && editorRange && !editorRange.isBlank && !editorRange.isEqual(this._lastEditorRange)) {\n        this._hideMenu();\n      }\n\n      this._lastEditorRange = editorRange;\n      this._ignoreRangeChange = false;\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      Ember.run.cancel(this._throttleResize);\n      window.removeEventListener('mousedown', this._onWindowMousedownHandler);\n      window.removeEventListener('resize', this._onResizeHandler);\n      window.removeEventListener('mousemove', this._onMousemoveHandler);\n      window.removeEventListener('keydown', this._onKeydownHandler);\n    },\n\n    actions: {\n      openMenu() {\n        this._showMenu();\n      },\n\n      closeMenu() {\n        this._hideMenu();\n      },\n\n      itemClicked(item, event) {\n        if (event) {\n          event.preventDefault();\n        }\n\n        let range = this._editorRange;\n\n        if (item.type === 'card') {\n          this.replaceWithCardSection(item.replaceArg, range, item.payload);\n        }\n\n        if (item.type === 'snippet') {\n          let clickedSnippet = this.snippets.find(snippet => snippet.name === item.label);\n\n          if (clickedSnippet) {\n            let post = _mobiledoc.default.parse(this.editor.builder, clickedSnippet.mobiledoc);\n\n            this.replaceWithPost(range, post);\n          }\n        }\n\n        this._hideButton();\n\n        this._hideMenu();\n      }\n\n    },\n\n    _showOrHideButton(editorRange) {\n      if (!editorRange) {\n        this._hideButton();\n\n        this._hideMenu();\n\n        return;\n      }\n\n      let {\n        head: {\n          section\n        }\n      } = editorRange; // show the button if the range is a blank paragraph\n\n      if (editorRange && editorRange.isCollapsed && section && !section.isListItem && (section.isBlank || section.text === '')) {\n        this._editorRange = editorRange;\n\n        this._showButton();\n\n        this._hideMenu();\n      } else {\n        this._hideButton();\n\n        this._hideMenu();\n      }\n    },\n\n    _showButton() {\n      this._positionMenu();\n\n      this.set('showButton', true);\n    },\n\n    _hideButton() {\n      this.set('showButton', false);\n    },\n\n    // find the \"top\" position by grabbing the current sections\n    // render node and querying it's bounding rect. Setting \"top\"\n    // positions the button+menu container element [data-kg=\"plus-menu\"]\n    _positionMenu() {\n      // use the cached range if available because `editorRange` may have been\n      // lost due to clicks on the open menu\n      let {\n        head: {\n          section\n        }\n      } = this._editorRange || this.editorRange;\n\n      if (section) {\n        let containerRect = this.element.parentNode.getBoundingClientRect();\n        let selectedElement = section.renderNode.element;\n\n        if (selectedElement) {\n          let selectedElementRect = selectedElement.getBoundingClientRect();\n          let top = selectedElementRect.top - containerRect.top;\n          this.set('top', top);\n        }\n      }\n    },\n\n    _showMenu() {\n      this.set('showMenu', true); // move the cursor to the blank paragraph, ensures any selected card\n      // gets inserted in the correct place because editorRange will be\n      // wherever the cursor currently is if the menu was opened via a\n      // mouseover button\n\n      this._moveCaretToCachedEditorRange(); // focus the search immediately so that you can filter immediately\n\n\n      Ember.run.schedule('afterRender', this, function () {\n        this._focusSearch();\n      }); // watch the window for mousedown events so that we can close the menu\n      // when we detect a click outside\n\n      this._onWindowMousedownHandler = Ember.run.bind(this, this._handleWindowMousedown);\n      window.addEventListener('mousedown', this._onWindowMousedownHandler); // watch for keydown events so that we can close the menu on Escape\n\n      this._onKeydownHandler = Ember.run.bind(this, this._handleKeydown);\n      window.addEventListener('keydown', this._onKeydownHandler);\n    },\n\n    _hideMenu() {\n      if (this.showMenu) {\n        // reset our cached editorRange\n        this._editorRange = null; // stop watching the body for clicks and keydown\n\n        window.removeEventListener('mousedown', this._onWindowMousedownHandler);\n        window.removeEventListener('keydown', this._onKeydownHandler); // hide the menu\n\n        this.set('showMenu', false);\n      }\n    },\n\n    _focusSearch() {\n      let search = this.element.querySelector('input');\n\n      if (search) {\n        search.focus();\n      }\n    },\n\n    _handleWindowMousedown(event) {\n      if (!event.target.closest(`#${this.elementId}, .fullscreen-modal-container`)) {\n        this._hideMenu();\n      }\n    },\n\n    _mousemoveRaf(event) {\n      if (!this._mousemoveTicking) {\n        requestAnimationFrame(Ember.run.bind(this, this._handleMousemove, event));\n      }\n\n      this._mousemoveTicking = true;\n    },\n\n    // show the (+) button when the mouse is over a blank P tag\n    _handleMousemove(event) {\n      if (!this.showMenu && this.element) {\n        let {\n          pageX,\n          pageY\n        } = event;\n        let editor = this.editor; // add a horizontal buffer to the pointer position so that the\n        // (+) button doesn't disappear when the mouse hovers over it due\n        // to it being outside of the editor canvas\n\n        let containerRect = this.element.parentNode.getBoundingClientRect();\n\n        if (pageX < containerRect.left) {\n          pageX = pageX + 40;\n        } // grab a range from the editor position under the pointer. We can\n        // rely on the same show/hide behaviour of our cursor implementation\n\n\n        try {\n          let position = editor.positionAtPoint(pageX, pageY);\n\n          if (position) {\n            let pointerRange = position.toRange();\n\n            this._showOrHideButton(pointerRange);\n          }\n        } catch (e) {\n          // mobiledoc-kit can generate the following harmless error\n          // from positionAtPoint(x,y) whilst dragging a selection\n          // TypeError: Failed to execute 'compareDocumentPosition' on 'Node': parameter 1 is not of type 'Node'.\n          if (e instanceof TypeError === false) {\n            throw e;\n          }\n        } // if the button is hidden due to the pointer not being over a blank\n        // P but we have a valid cursor position then fall back to the cursor\n        // positioning\n\n\n        if (!this.showButton && this._hasCursorButton) {\n          this._showOrHideButton(this.editorRange);\n        }\n      }\n\n      this._mousemoveTicking = false;\n    },\n\n    _handleKeydown(event) {\n      if (event.key === 'Escape') {\n        // reset the caret position so we have a caret after closing\n        this._moveCaretToCachedEditorRange();\n\n        this._hideMenu();\n\n        return;\n      }\n\n      let arrowKeys = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];\n\n      if (arrowKeys.includes(event.key)) {\n        this._hideMenu();\n      }\n    },\n\n    _handleResize() {\n      if (this.showButton) {\n        this._throttleResize = Ember.run.throttle(this, this._positionMenu, 100);\n      }\n    },\n\n    _moveCaretToCachedEditorRange() {\n      this._ignoreRangeChange = true;\n      this.set('editorRange', this._editorRange);\n      this.editor.selectRange(this._editorRange);\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-slash-menu\", [\"exports\", \"@glimmer/component\", \"mobiledoc-kit/parsers/mobiledoc\", \"koenig-editor/utils/snippet-icon\", \"koenig-editor/options/cards\"], function (_exports, _component, _mobiledoc, _snippetIcon, _cards) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <div\n      id=\"koenig-slash-menu\"\n      class=\"absolute\"\n      {{did-insert this.registerContainerElement}}\n      {{did-update this.registerEditor @editor}}\n      {{did-update this.handleCursorChange @editorRange}}\n      {{did-update this.updateItemSections @snippets}}\n      ...attributes\n  >\n      {{#if (and this.showMenu this.itemSections)}}\n          <div class=\"koenig-cardmenu {{kg-style \"cardmenu\"}}\" role=\"menu\">\n              <KoenigMenuContent\n                  @itemSections={{this.itemSections}}\n                  @selectedItem={{this.selectedItem}}\n                  @itemClicked={{this.itemClicked}} />\n          </div>\n      {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"Bu+D5ks7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"@editor\\\",\\\"@editorRange\\\",\\\"@snippets\\\"],\\\"statements\\\":[[11,\\\"div\\\"],[24,1,\\\"koenig-slash-menu\\\"],[24,0,\\\"absolute\\\"],[17,1],[4,[38,1],[[32,0,[\\\"registerContainerElement\\\"]]],null],[4,[38,2],[[32,0,[\\\"registerEditor\\\"]],[32,2]],null],[4,[38,2],[[32,0,[\\\"handleCursorChange\\\"]],[32,3]],null],[4,[38,2],[[32,0,[\\\"updateItemSections\\\"]],[32,4]],null],[12],[2,\\\"\\\\n\\\"],[6,[37,4],[[30,[36,3],[[32,0,[\\\"showMenu\\\"]],[32,0,[\\\"itemSections\\\"]]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"koenig-cardmenu \\\",[30,[36,0],[\\\"cardmenu\\\"],null]]]],[14,\\\"role\\\",\\\"menu\\\"],[12],[2,\\\"\\\\n            \\\"],[8,\\\"koenig-menu-content\\\",[],[[\\\"@itemSections\\\",\\\"@selectedItem\\\",\\\"@itemClicked\\\"],[[32,0,[\\\"itemSections\\\"]],[32,0,[\\\"selectedItem\\\"]],[32,0,[\\\"itemClicked\\\"]]]],null],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"kg-style\\\",\\\"did-insert\\\",\\\"did-update\\\",\\\"and\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-slash-menu.hbs\"\n    }\n  });\n\n  const Y_OFFSET = 16;\n\n  const createItemMatcher = query => {\n    // match everything before a space to a card. Keeps the relevant\n    // card selected when providing attributes to a card, eg:\n    // /twitter https://twitter.com/EffinBirds/status/1001765208958881792\n    let card = query.split(/\\s/)[0].replace(/^\\//, '');\n    return item => {\n      // match every item before anything is typed\n      if (!query) {\n        return true;\n      } // standard exact matching for items with a matches array\n\n\n      if (Ember.isArray(item.matches)) {\n        return card ? item.matches.any(match => match.indexOf(card) === 0) : true;\n      } // custom per-item matching, eg. snippets match any part of their title\n\n\n      if (typeof item.matches === 'function') {\n        return item.matches(query);\n      }\n\n      return false;\n    };\n  };\n\n  let KoenigSlashMenuComponent = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, (_class = class KoenigSlashMenuComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n\n      _initializerDefineProperty(this, \"itemSections\", _descriptor, this);\n\n      _initializerDefineProperty(this, \"showMenu\", _descriptor2, this);\n\n      _initializerDefineProperty(this, \"selectedRowIndex\", _descriptor3, this);\n\n      _initializerDefineProperty(this, \"selectedColumnIndex\", _descriptor4, this);\n\n      _defineProperty(this, \"query\", '');\n\n      this.registerEditor(null, [this.args.editor]);\n    }\n\n    willDestroy() {\n      var _super$willDestroy;\n\n      (_super$willDestroy = super.willDestroy) === null || _super$willDestroy === void 0 ? void 0 : _super$willDestroy.call(this, ...arguments);\n      window.removeEventListener('mousedown', this._onWindowMousedownHandler);\n    } // create a 2-dimensional array of items based on the section row length, eg\n    // [\n    //   [item1, item1, item3]\n    //   [item4, item5],\n    //   [item6, item7, item8]\n    //   [item9]\n    // ]\n    // - used for arrow key movement of selected item\n\n\n    get itemMap() {\n      let itemMap = [];\n      this.itemSections.forEach(section => {\n        let iterations = Math.ceil(section.items.length / section.rowLength);\n\n        for (let i = 0; i < iterations; i++) {\n          let startIndex = i * section.rowLength;\n          itemMap.push(section.items.slice(startIndex, startIndex + section.rowLength));\n        }\n      });\n      return itemMap;\n    }\n\n    get selectedItem() {\n      var _this$itemMap$this$se;\n\n      return (_this$itemMap$this$se = this.itemMap[this.selectedRowIndex]) === null || _this$itemMap$this$se === void 0 ? void 0 : _this$itemMap$this$se[this.selectedColumnIndex];\n    }\n\n    updateItemSections() {\n      let {\n        snippets\n      } = this.args;\n      let itemSections = [..._cards.CARD_MENU];\n\n      if (snippets !== null && snippets !== void 0 && snippets.length) {\n        let snippetsSection = {\n          title: 'Snippets',\n          items: [],\n          rowLength: 1\n        };\n        snippets.forEach(snippet => {\n          let snippetItem = {\n            label: snippet.name,\n            icon: (0, _snippetIcon.default)(snippet),\n            type: 'snippet',\n            matches: query => snippet.name.toLowerCase().indexOf(query) > -1\n          };\n\n          if (this.args.deleteSnippet) {\n            snippetItem.deleteClicked = event => {\n              event.preventDefault();\n              event.stopImmediatePropagation();\n              this.args.deleteSnippet(snippet);\n            };\n          }\n\n          snippetsSection.items.push(snippetItem);\n        });\n        itemSections.push(snippetsSection);\n      }\n\n      let itemMatcher = createItemMatcher(this.query);\n      let matchedItems = itemSections.map(section => {\n        // show icons where there's a match of the begining of one of the\n        // \"item.matches\" strings\n        let matches = section.items.filter(itemMatcher);\n\n        if (matches.length > 0) {\n          return Object.assign({}, section, {\n            items: matches\n          });\n        }\n      }).compact();\n\n      if (this.query !== this._lastQuery) {\n        this.selectedRowIndex = 0;\n        this.selectedColumnIndex = 0;\n      }\n\n      this.itemSections = matchedItems;\n    }\n\n    registerContainerElement(element) {\n      this.containerElement = element;\n    }\n\n    registerEditor(element, [editor]) {\n      // re-register the slash_menu text input handler if the editor changes\n      // such as when a \"New post\" is clicked from the sidebar or a different\n      // post is loaded via search\n      editor.onTextInput({\n        name: 'slash_menu',\n        text: '/',\n        run: this._showMenu.bind(this)\n      });\n    }\n\n    handleCursorChange(element, [editorRange]) {\n      // update menu position to match cursor position\n      this._positionMenu(editorRange);\n\n      if (this.showMenu && editorRange) {\n        let {\n          head: {\n            section\n          }\n        } = editorRange; // close the menu if we're on a non-slash section (eg, when / is deleted)\n\n        if (section && (section.text || section.text === '') && section.text.indexOf('/') !== 0) {\n          this._hideMenu();\n\n          return;\n        } // update the query when the menu is open and cursor is in our open range\n\n\n        if (section === this._openRange.head.section) {\n          this.query = section.text.substring(this._openRange.head.offset, editorRange.head.offset);\n          this._selectedItem = null;\n          this.updateItemSections();\n        }\n      }\n    }\n\n    itemClicked(item, event) {\n      if (event) {\n        event.preventDefault();\n      }\n\n      let range = this._openRange.head.section.toRange();\n\n      let [, ...params] = this.query.split(/\\s/);\n      let payload = Object.assign({}, item.payload); // make sure the click doesn't propagate and get picked up by the\n      // newly inserted card which can then remove itself because it\n      // looks like a click outside of an empty card\n\n      if (event) {\n        event.preventDefault();\n        event.stopImmediatePropagation();\n      } // params are order-dependent and listed in CARD_MENU for each card\n\n\n      if (!Ember.isEmpty(item.params) && !Ember.isEmpty(params)) {\n        item.params.forEach((param, i) => {\n          payload[param] = params[i];\n        });\n      }\n\n      if (item.type === 'card') {\n        this.args.replaceWithCardSection(item.replaceArg, range, payload);\n      }\n\n      if (item.type === 'snippet') {\n        let clickedSnippet = this.args.snippets.find(snippet => snippet.name === item.label);\n\n        if (clickedSnippet) {\n          let post = _mobiledoc.default.parse(this.args.editor.builder, clickedSnippet.mobiledoc);\n\n          this.args.replaceWithPost(range, post);\n        }\n      }\n\n      this._hideMenu();\n    }\n\n    _positionMenu(range) {\n      if (!range) {\n        return;\n      }\n\n      let {\n        head: {\n          section\n        }\n      } = range;\n\n      if (section && section.renderNode.element) {\n        let containerRect = this.containerElement.parentNode.getBoundingClientRect();\n        let selectedElement = section.renderNode.element;\n        let selectedElementRect = selectedElement.getBoundingClientRect();\n        let top = selectedElementRect.top + selectedElementRect.height - containerRect.top + Y_OFFSET;\n        this.containerElement.style.top = `${top}px`;\n      }\n    }\n\n    _showMenu() {\n      let {\n        editorRange\n      } = this.args;\n      let {\n        head: {\n          section\n        }\n      } = editorRange; // only show the menu if the slash is on an otherwise empty paragraph\n\n      if (!this.showMenu && editorRange.isCollapsed && section && !section.isListItem && section.text === '/') {\n        this.showMenu = true; // ensure all items are shown before we have a query filter\n\n        this.query = ''; // this.set('_selectedItem', null);\n\n        this.updateItemSections(); // store a ref to the range when the menu was triggered so that we\n        // can query text after the slash\n\n        this._openRange = editorRange; // set up key handlers for selection & closing\n\n        this._registerEditorKeyboardNavHandlers(); // watch the window for mousedown events so that we can close the\n        // menu when we detect a click outside. This is preferable to\n        // watching the range because the range will change and remove the\n        // menu before click events on the buttons are registered\n\n\n        this._onWindowMousedownHandler = Ember.run.bind(this, event => {\n          this._handleWindowMousedown(event);\n        });\n        window.addEventListener('mousedown', this._onWindowMousedownHandler);\n      }\n    }\n\n    _hideMenu() {\n      if (this.showMenu) {\n        this.showMenu = false;\n\n        this._unregisterEditorKeyboardNavHandlers();\n\n        window.removeEventListener('mousedown', this._onWindowMousedownHandler);\n      }\n    }\n\n    _moveSelection(direction) {\n      let {\n        itemMap,\n        selectedRowIndex,\n        selectedColumnIndex\n      } = this;\n\n      if (Ember.isEmpty(itemMap)) {\n        return;\n      }\n\n      let maxSelectedRowIndex = itemMap.length - 1;\n      let maxSelectedColumnIndex = itemMap[selectedRowIndex].length - 1;\n\n      if (direction === 'right') {\n        selectedColumnIndex += 1;\n\n        if (selectedColumnIndex > maxSelectedColumnIndex) {\n          if (selectedRowIndex < maxSelectedRowIndex) {\n            selectedRowIndex += 1;\n          } else {\n            selectedRowIndex = 0;\n          }\n\n          selectedColumnIndex = 0;\n        }\n      } else if (direction === 'left') {\n        selectedColumnIndex -= 1;\n\n        if (selectedColumnIndex < 0) {\n          if (selectedRowIndex > 0) {\n            selectedRowIndex -= 1;\n          } else {\n            selectedRowIndex = itemMap.length - 1;\n          }\n\n          selectedColumnIndex = itemMap[selectedRowIndex].length - 1;\n        }\n      } else if (direction === 'up') {\n        selectedRowIndex -= 1;\n\n        if (selectedRowIndex < 0) {\n          selectedRowIndex = maxSelectedRowIndex;\n        }\n      } else if (direction === 'down') {\n        selectedRowIndex += 1;\n\n        if (selectedRowIndex > maxSelectedRowIndex) {\n          selectedRowIndex = 0;\n        }\n      }\n\n      if (selectedColumnIndex > itemMap[selectedRowIndex].length - 1) {\n        selectedColumnIndex = itemMap[selectedRowIndex].length - 1;\n      }\n\n      this.selectedRowIndex = selectedRowIndex;\n      this.selectedColumnIndex = selectedColumnIndex;\n    }\n\n    _performAction() {\n      if (this.selectedItem) {\n        this.itemClicked(this.selectedItem);\n      }\n    }\n\n    _handleWindowMousedown(event) {\n      // clicks outside the menu should always close\n      if (!event.target.closest(`#${this.containerElement.id}, .fullscreen-modal-container`)) {\n        this._hideMenu(); // clicks on the menu but not on a button should be ignored so that the\n        // cursor position isn't lost\n\n      } else if (!event.target.closest('[data-kg=\"cardmenu-card\"]')) {\n        event.preventDefault();\n      }\n    }\n\n    _registerEditorKeyboardNavHandlers() {\n      // ESC = close menu\n      // ARROWS = selection\n      let {\n        editor\n      } = this.args;\n      editor.registerKeyCommand({\n        str: 'ESC',\n        name: 'slash-menu',\n        run: Ember.run.bind(this, this._hideMenu)\n      });\n      editor.registerKeyCommand({\n        str: 'ENTER',\n        name: 'slash-menu',\n        run: Ember.run.bind(this, this._performAction)\n      });\n      editor.registerKeyCommand({\n        str: 'UP',\n        name: 'slash-menu',\n        run: Ember.run.bind(this, this._moveSelection, 'up')\n      });\n      editor.registerKeyCommand({\n        str: 'DOWN',\n        name: 'slash-menu',\n        run: Ember.run.bind(this, this._moveSelection, 'down')\n      });\n      editor.registerKeyCommand({\n        str: 'LEFT',\n        name: 'slash-menu',\n        run: Ember.run.bind(this, this._moveSelection, 'left')\n      });\n      editor.registerKeyCommand({\n        str: 'RIGHT',\n        name: 'slash-menu',\n        run: Ember.run.bind(this, this._moveSelection, 'right')\n      });\n    }\n\n    _unregisterEditorKeyboardNavHandlers() {\n      this.args.editor.unregisterKeyCommands('slash-menu');\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"itemSections\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showMenu\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"selectedRowIndex\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"selectedColumnIndex\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateItemSections\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"updateItemSections\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerContainerElement\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"registerContainerElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerEditor\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"registerEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleCursorChange\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"handleCursorChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"itemClicked\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"itemClicked\"), _class.prototype)), _class));\n  _exports.default = KoenigSlashMenuComponent;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, KoenigSlashMenuComponent);\n});","define(\"koenig-editor/components/koenig-snippet-input-labs\", [\"exports\", \"@glimmer/component\", \"koenig-editor/utils/get-scroll-parent\", \"koenig-editor/components/koenig-toolbar\"], function (_exports, _component, _getScrollParent, _koenigToolbar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <div class=\"kg-input-bar absolute z-999\" style={{this.style}} {{did-insert this.registerAndPositionElement}} ...attributes>\n      <input\n          placeholder=\"Snippet name\"\n          value={{this.name}}\n          class=\"kg-link-input pa2 pr6 mih-100 ba br3 shadow-2 f8 lh-heading tracked-2 outline-0 b--green h10 nudge-top--8\"\n          {{on \"input\" this.nameInput}}\n          {{on \"keydown\" this.nameKeydown}}\n          {{did-insert this.focusInput}}\n      />\n  </div>\n  */\n  {\n    \"id\": \"OMeE046D\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\"],\\\"statements\\\":[[11,\\\"div\\\"],[24,0,\\\"kg-input-bar absolute z-999\\\"],[16,5,[32,0,[\\\"style\\\"]]],[17,1],[4,[38,0],[[32,0,[\\\"registerAndPositionElement\\\"]]],null],[12],[2,\\\"\\\\n    \\\"],[11,\\\"input\\\"],[24,\\\"placeholder\\\",\\\"Snippet name\\\"],[16,2,[32,0,[\\\"name\\\"]]],[24,0,\\\"kg-link-input pa2 pr6 mih-100 ba br3 shadow-2 f8 lh-heading tracked-2 outline-0 b--green h10 nudge-top--8\\\"],[4,[38,1],[\\\"input\\\",[32,0,[\\\"nameInput\\\"]]],null],[4,[38,1],[\\\"keydown\\\",[32,0,[\\\"nameKeydown\\\"]]],null],[4,[38,0],[[32,0,[\\\"focusInput\\\"]]],null],[12],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"did-insert\\\",\\\"on\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-snippet-input-labs.hbs\"\n    }\n  });\n\n  // pixels that should be added to the `left` property of the tick adjustment styles\n  // TODO: handle via CSS?\n  const TICK_ADJUSTMENT = 8;\n  let KoenigSnippetInputLabsComponent = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, (_class = class KoenigSnippetInputLabsComponent extends _component.default {\n    constructor() {\n      super(...arguments); // hide any other toolbars\n\n      _initializerDefineProperty(this, \"koenigUi\", _descriptor, this);\n\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n\n      _initializerDefineProperty(this, \"style\", _descriptor3, this);\n\n      this.koenigUi.inputHasFocus = true; // record the range now because the property is bound and will update\n      // when the selection changes\n\n      this._snippetRange = this.args.snippetRange; // grab a window range so that we can use getBoundingClientRect. Using\n      // document.createRange is more efficient than doing editor.setRange\n      // because it doesn't trigger all of the selection changing side-effects\n      // TODO: extract MobiledocRange->NativeRange into a util\n\n      let editor = this.args.editor;\n      let cursor = editor.cursor;\n      let {\n        head,\n        tail\n      } = this.args.snippetRange;\n\n      let {\n        node: headNode,\n        offset: headOffset\n      } = cursor._findNodeForPosition(head);\n\n      let {\n        node: tailNode,\n        offset: tailOffset\n      } = cursor._findNodeForPosition(tail);\n\n      let range = document.createRange();\n      range.setStart(headNode, headOffset);\n      range.setEnd(tailNode, tailOffset);\n      this._windowRange = range; // watch the window for mousedown events so that we can close the menu\n      // when we detect a click outside\n\n      this._onMousedownHandler = Ember.run.bind(this, this._handleMousedown);\n      window.addEventListener('mousedown', this._onMousedownHandler); // watch for keydown events so that we can close the menu on Escape\n\n      this._onKeydownHandler = Ember.run.bind(this, this._handleKeydown);\n      window.addEventListener('keydown', this._onKeydownHandler);\n    }\n\n    willDestroy() {\n      var _super$willDestroy;\n\n      (_super$willDestroy = super.willDestroy) === null || _super$willDestroy === void 0 ? void 0 : _super$willDestroy.call(this, ...arguments);\n      this.koenigUi.inputHasFocus = false;\n      window.removeEventListener('mousedown', this._onMousedownHandler);\n      window.removeEventListener('keydown', this._onKeydownHandler);\n\n      this._removeStyleElement();\n    }\n\n    focusInput(element) {\n      let scrollParent = (0, _getScrollParent.default)(element);\n      let scrollTop = scrollParent.scrollTop;\n      element.focus(); // reset the scroll position to avoid jumps\n      // TODO: why does the input focus cause a scroll to the bottom of the doc?\n\n      scrollParent.scrollTop = scrollTop;\n    }\n\n    nameKeydown(event) {\n      if (event.key === 'Enter') {\n        // prevent Enter from triggering in the editor and removing text\n        event.preventDefault(); // convert selection into a mobiledoc document\n\n        let {\n          snippetRange,\n          editor\n        } = this.args;\n        let mobiledoc = editor.serializePost(editor.post.trimTo(snippetRange), 'mobiledoc');\n        this.args.save({\n          name: event.target.value,\n          mobiledoc\n        }).then(() => {\n          this.args.cancel();\n        });\n      }\n    }\n\n    nameInput(event) {\n      this.name = event.target.value;\n    } // TODO: largely shared with {{koenig-toolbar}} and {{koenig-link-input}} - extract to a shared util?\n\n\n    registerAndPositionElement(element) {\n      element.id = Ember.guidFor(element);\n      this.element = element;\n      let containerRect = this.element.offsetParent.getBoundingClientRect();\n\n      let rangeRect = this.args.snippetRect || this._windowRange.getBoundingClientRect();\n\n      let {\n        width,\n        height\n      } = this.element.getBoundingClientRect();\n      let newPosition = {}; // rangeRect is relative to the viewport so we need to subtract the\n      // container measurements to get a position relative to the container\n\n      newPosition = {\n        top: rangeRect.top - containerRect.top - height - _koenigToolbar.TOOLBAR_MARGIN,\n        left: rangeRect.left - containerRect.left + rangeRect.width / 2 - width / 2,\n        right: null\n      };\n      let tickPosition = 50; // don't overflow left boundary\n\n      if (newPosition.left < 0) {\n        newPosition.left = 0; // calculate the tick percentage position\n\n        let absTickPosition = rangeRect.left - containerRect.left + rangeRect.width / 2;\n        tickPosition = absTickPosition / width * 100;\n\n        if (tickPosition < 5) {\n          tickPosition = 5;\n        }\n      } // same for right boundary\n\n\n      if (newPosition.left + width > containerRect.width) {\n        newPosition.left = null;\n        newPosition.right = 0; // calculate the tick percentage position\n\n        let absTickPosition = rangeRect.right - containerRect.right - rangeRect.width / 2;\n        tickPosition = 100 + absTickPosition / width * 100;\n\n        if (tickPosition > 95) {\n          tickPosition = 95;\n        }\n      } // the tick is a pseudo-element so we the only way we can affect it's\n      // style is by adding a style element to the head\n\n\n      this._removeStyleElement(); // reset to base styles\n\n\n      if (tickPosition !== 50) {\n        this._addStyleElement(`left: calc(${tickPosition}% - ${TICK_ADJUSTMENT}px)`);\n      } // update the toolbar position\n\n\n      this.style = Ember.String.htmlSafe(Object.keys(newPosition).map(style => {\n        if (newPosition[style] !== null) {\n          return `${style}: ${newPosition[style]}px`;\n        }\n      }).compact().join('; '));\n    }\n\n    _handleMousedown(event) {\n      if (this.element && !event.target.closest(this.element.id)) {\n        this.args.cancel();\n      }\n    }\n\n    _handleKeydown(event) {\n      if (event.key === 'Escape') {\n        this._cancelAndReselect();\n      }\n    }\n\n    _cancelAndReselect() {\n      this.args.cancel();\n\n      if (this._snippetRange) {\n        this.args.editor.selectRange(this._snippetRange);\n      }\n    }\n\n    _addStyleElement(styles) {\n      let styleElement = document.createElement('style');\n      styleElement.id = `${this.element.id}-style`;\n      styleElement.innerHTML = `#${this.element.id}:before, #${this.element.id}:after { ${styles} }`;\n      document.head.appendChild(styleElement);\n    }\n\n    _removeStyleElement() {\n      let styleElement = document.querySelector(`#${this.element.id}-style`);\n\n      if (styleElement) {\n        styleElement.remove();\n      }\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"koenigUi\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"style\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.String.htmlSafe('');\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"focusInput\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"focusInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nameKeydown\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"nameKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nameInput\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"nameInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerAndPositionElement\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"registerAndPositionElement\"), _class.prototype)), _class));\n  _exports.default = KoenigSnippetInputLabsComponent;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, KoenigSnippetInputLabsComponent);\n});","define(\"koenig-editor/components/koenig-snippet-input\", [\"exports\", \"@glimmer/component\", \"koenig-editor/utils/get-scroll-parent\", \"koenig-editor/components/koenig-toolbar\"], function (_exports, _component, _getScrollParent, _koenigToolbar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <div class=\"kg-input-bar absolute z-999\" style={{this.style}} {{did-insert this.registerAndPositionElement}} ...attributes>\n      <input\n          placeholder=\"Snippet name\"\n          value={{this.name}}\n          class=\"kg-link-input pa2 pr6 mih-100 ba br3 shadow-2 f8 lh-heading tracked-2 outline-0 b--green h10 nudge-top--8\"\n          {{on \"input\" this.nameInput}}\n          {{on \"keydown\" this.nameKeydown}}\n          {{did-insert this.focusInput}}\n      />\n  </div>\n  */\n  {\n    \"id\": \"E/TuhKqx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\"],\\\"statements\\\":[[11,\\\"div\\\"],[24,0,\\\"kg-input-bar absolute z-999\\\"],[16,5,[32,0,[\\\"style\\\"]]],[17,1],[4,[38,0],[[32,0,[\\\"registerAndPositionElement\\\"]]],null],[12],[2,\\\"\\\\n    \\\"],[11,\\\"input\\\"],[24,\\\"placeholder\\\",\\\"Snippet name\\\"],[16,2,[32,0,[\\\"name\\\"]]],[24,0,\\\"kg-link-input pa2 pr6 mih-100 ba br3 shadow-2 f8 lh-heading tracked-2 outline-0 b--green h10 nudge-top--8\\\"],[4,[38,1],[\\\"input\\\",[32,0,[\\\"nameInput\\\"]]],null],[4,[38,1],[\\\"keydown\\\",[32,0,[\\\"nameKeydown\\\"]]],null],[4,[38,0],[[32,0,[\\\"focusInput\\\"]]],null],[12],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"did-insert\\\",\\\"on\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-snippet-input.hbs\"\n    }\n  });\n\n  // pixels that should be added to the `left` property of the tick adjustment styles\n  // TODO: handle via CSS?\n  const TICK_ADJUSTMENT = 8;\n  let KoenigSnippetInputComponent = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, (_class = class KoenigSnippetInputComponent extends _component.default {\n    constructor() {\n      super(...arguments); // hide any other toolbars\n\n      _initializerDefineProperty(this, \"koenigUi\", _descriptor, this);\n\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n\n      _initializerDefineProperty(this, \"style\", _descriptor3, this);\n\n      this.koenigUi.inputHasFocus = true; // record the range now because the property is bound and will update\n      // when the selection changes\n\n      this._snippetRange = this.args.snippetRange; // grab a window range so that we can use getBoundingClientRect. Using\n      // document.createRange is more efficient than doing editor.setRange\n      // because it doesn't trigger all of the selection changing side-effects\n      // TODO: extract MobiledocRange->NativeRange into a util\n\n      let editor = this.args.editor;\n      let cursor = editor.cursor;\n      let {\n        head,\n        tail\n      } = this.args.snippetRange;\n\n      let {\n        node: headNode,\n        offset: headOffset\n      } = cursor._findNodeForPosition(head);\n\n      let {\n        node: tailNode,\n        offset: tailOffset\n      } = cursor._findNodeForPosition(tail);\n\n      let range = document.createRange();\n      range.setStart(headNode, headOffset);\n      range.setEnd(tailNode, tailOffset);\n      this._windowRange = range; // watch the window for mousedown events so that we can close the menu\n      // when we detect a click outside\n\n      this._onMousedownHandler = Ember.run.bind(this, this._handleMousedown);\n      window.addEventListener('mousedown', this._onMousedownHandler); // watch for keydown events so that we can close the menu on Escape\n\n      this._onKeydownHandler = Ember.run.bind(this, this._handleKeydown);\n      window.addEventListener('keydown', this._onKeydownHandler);\n    }\n\n    willDestroy() {\n      var _super$willDestroy;\n\n      (_super$willDestroy = super.willDestroy) === null || _super$willDestroy === void 0 ? void 0 : _super$willDestroy.call(this, ...arguments);\n      this.koenigUi.inputHasFocus = false;\n      window.removeEventListener('mousedown', this._onMousedownHandler);\n      window.removeEventListener('keydown', this._onKeydownHandler);\n\n      this._removeStyleElement();\n    }\n\n    focusInput(element) {\n      let scrollParent = (0, _getScrollParent.default)(element);\n      let scrollTop = scrollParent.scrollTop;\n      element.focus(); // reset the scroll position to avoid jumps\n      // TODO: why does the input focus cause a scroll to the bottom of the doc?\n\n      scrollParent.scrollTop = scrollTop;\n    }\n\n    nameKeydown(event) {\n      if (event.key === 'Enter') {\n        // prevent Enter from triggering in the editor and removing text\n        event.preventDefault(); // convert selection into a mobiledoc document\n\n        let {\n          snippetRange,\n          editor\n        } = this.args;\n        let mobiledoc = editor.serializePost(editor.post.trimTo(snippetRange), 'mobiledoc');\n        this.args.save({\n          name: event.target.value,\n          mobiledoc\n        }).then(() => {\n          this.args.cancel();\n        });\n      }\n    }\n\n    nameInput(event) {\n      this.name = event.target.value;\n    } // TODO: largely shared with {{koenig-toolbar}} and {{koenig-link-input}} - extract to a shared util?\n\n\n    registerAndPositionElement(element) {\n      element.id = Ember.guidFor(element);\n      this.element = element;\n      let containerRect = this.element.offsetParent.getBoundingClientRect();\n\n      let rangeRect = this.args.snippetRect || this._windowRange.getBoundingClientRect();\n\n      let {\n        width,\n        height\n      } = this.element.getBoundingClientRect();\n      let newPosition = {}; // rangeRect is relative to the viewport so we need to subtract the\n      // container measurements to get a position relative to the container\n\n      newPosition = {\n        top: rangeRect.top - containerRect.top - height - _koenigToolbar.TOOLBAR_MARGIN,\n        left: rangeRect.left - containerRect.left + rangeRect.width / 2 - width / 2,\n        right: null\n      };\n      let tickPosition = 50; // don't overflow left boundary\n\n      if (newPosition.left < 0) {\n        newPosition.left = 0; // calculate the tick percentage position\n\n        let absTickPosition = rangeRect.left - containerRect.left + rangeRect.width / 2;\n        tickPosition = absTickPosition / width * 100;\n\n        if (tickPosition < 5) {\n          tickPosition = 5;\n        }\n      } // same for right boundary\n\n\n      if (newPosition.left + width > containerRect.width) {\n        newPosition.left = null;\n        newPosition.right = 0; // calculate the tick percentage position\n\n        let absTickPosition = rangeRect.right - containerRect.right - rangeRect.width / 2;\n        tickPosition = 100 + absTickPosition / width * 100;\n\n        if (tickPosition > 95) {\n          tickPosition = 95;\n        }\n      } // the tick is a pseudo-element so we the only way we can affect it's\n      // style is by adding a style element to the head\n\n\n      this._removeStyleElement(); // reset to base styles\n\n\n      if (tickPosition !== 50) {\n        this._addStyleElement(`left: calc(${tickPosition}% - ${TICK_ADJUSTMENT}px)`);\n      } // update the toolbar position\n\n\n      this.style = Ember.String.htmlSafe(Object.keys(newPosition).map(style => {\n        if (newPosition[style] !== null) {\n          return `${style}: ${newPosition[style]}px`;\n        }\n      }).compact().join('; '));\n    }\n\n    _handleMousedown(event) {\n      if (this.element && !event.target.closest(this.element.id)) {\n        this.args.cancel();\n      }\n    }\n\n    _handleKeydown(event) {\n      if (event.key === 'Escape') {\n        this._cancelAndReselect();\n      }\n    }\n\n    _cancelAndReselect() {\n      this.args.cancel();\n\n      if (this._snippetRange) {\n        this.args.editor.selectRange(this._snippetRange);\n      }\n    }\n\n    _addStyleElement(styles) {\n      let styleElement = document.createElement('style');\n      styleElement.id = `${this.element.id}-style`;\n      styleElement.innerHTML = `#${this.element.id}:before, #${this.element.id}:after { ${styles} }`;\n      document.head.appendChild(styleElement);\n    }\n\n    _removeStyleElement() {\n      let styleElement = document.querySelector(`#${this.element.id}-style`);\n\n      if (styleElement) {\n        styleElement.remove();\n      }\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"koenigUi\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"style\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.String.htmlSafe('');\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"focusInput\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"focusInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nameKeydown\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"nameKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nameInput\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"nameInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerAndPositionElement\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"registerAndPositionElement\"), _class.prototype)), _class));\n  _exports.default = KoenigSnippetInputComponent;\n\n  Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, KoenigSnippetInputComponent);\n});","define(\"koenig-editor/components/koenig-text-replacement-html-input\", [\"exports\", \"mobiledoc-kit/editor/editor\", \"koenig-editor/lib/clean-text-replacement-html\", \"koenig-editor/options/atoms\", \"koenig-editor/options/key-commands\", \"validator\", \"koenig-editor/components/koenig-editor\", \"koenig-editor/lib/dnd/constants\", \"mobiledoc-kit/utils/parse-utils\", \"koenig-editor/utils/markup-utils\", \"koenig-editor/options/text-expansions\"], function (_exports, _editor, _cleanTextReplacementHtml, _atoms, _keyCommands, _validator, _koenigEditor, _constants, _parseUtils, _markupUtils, _textExpansions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatTextReplacementHtml = formatTextReplacementHtml;\n  _exports.default = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <div class=\"koenig-text-replacement-html-input__editor-wrappper\" style=\"cursor: text\">\n      <div\n          class=\"koenig-text-replacement-html-input__editor\"\n          data-kg=\"editor\"\n          data-kg-allow-clickthrough\n          data-placeholder={{this.placeholder}}\n      ></div>\n  </div>\n  \n  <KoenigToolbar\n      @basicOnly={{true}}\n      @editor={{this.editor}}\n      @editorRange={{this.selectedRange}}\n      @activeMarkupTagNames={{this.activeMarkupTagNames}}\n      @toggleMarkup={{action \"toggleMarkup\"}}\n      @editLink={{action \"editLink\"}}\n  />\n  \n  {{!-- pop-up link hover toolbar --}}\n  <KoenigLinkToolbar\n      @editor={{this.editor}}\n      @container={{this.element}}\n      @linkRange={{this.linkRange}}\n      @selectedRange={{this.selectedRange}}\n      @editLink={{action \"editLink\"}}\n  />\n  \n  {{!-- pop-up link editing toolbar --}}\n  {{#if this.linkRange}}\n      <KoenigLinkInput\n          @editor={{this.editor}}\n          @linkRange={{this.linkRange}}\n          @selectedRange={{this.selectedRange}}\n          @cancel={{action \"cancelEditLink\"}}\n      />\n  {{/if}}\n  */\n  {\n    \"id\": \"7au3BMdE\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"div\\\"],[14,0,\\\"koenig-text-replacement-html-input__editor-wrappper\\\"],[14,5,\\\"cursor: text\\\"],[12],[2,\\\"\\\\n    \\\"],[10,\\\"div\\\"],[14,0,\\\"koenig-text-replacement-html-input__editor\\\"],[14,\\\"data-kg\\\",\\\"editor\\\"],[14,\\\"data-kg-allow-clickthrough\\\",\\\"\\\"],[15,\\\"data-placeholder\\\",[32,0,[\\\"placeholder\\\"]]],[12],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[8,\\\"koenig-toolbar\\\",[],[[\\\"@basicOnly\\\",\\\"@editor\\\",\\\"@editorRange\\\",\\\"@activeMarkupTagNames\\\",\\\"@toggleMarkup\\\",\\\"@editLink\\\"],[true,[32,0,[\\\"editor\\\"]],[32,0,[\\\"selectedRange\\\"]],[32,0,[\\\"activeMarkupTagNames\\\"]],[30,[36,0],[[32,0],\\\"toggleMarkup\\\"],null],[30,[36,0],[[32,0],\\\"editLink\\\"],null]]],null],[2,\\\"\\\\n\\\\n\\\"],[8,\\\"koenig-link-toolbar\\\",[],[[\\\"@editor\\\",\\\"@container\\\",\\\"@linkRange\\\",\\\"@selectedRange\\\",\\\"@editLink\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"element\\\"]],[32,0,[\\\"linkRange\\\"]],[32,0,[\\\"selectedRange\\\"]],[30,[36,0],[[32,0],\\\"editLink\\\"],null]]],null],[2,\\\"\\\\n\\\\n\\\"],[6,[37,1],[[32,0,[\\\"linkRange\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[8,\\\"koenig-link-input\\\",[],[[\\\"@editor\\\",\\\"@linkRange\\\",\\\"@selectedRange\\\",\\\"@cancel\\\"],[[32,0,[\\\"editor\\\"]],[32,0,[\\\"linkRange\\\"]],[32,0,[\\\"selectedRange\\\"]],[30,[36,0],[[32,0],\\\"cancelEditLink\\\"],null]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"if\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-text-replacement-html-input.hbs\"\n    }\n  });\n\n  function formatTextReplacementHtml(html) {\n    return (html || '').replace(/\\{(.*?)\\}/g, '<code>$&</code>');\n  } // TODO: extract core to share functionality between this and `{{koenig-editor}}`\n\n\n  const UNDO_DEPTH = 50; // markups that should not be continued when typing and reverted to their\n  // text expansion style when backspacing over final char of markup\n\n  const SPECIAL_MARKUPS = {\n    S: '~~',\n    CODE: {\n      char: '{',\n      // this is different because we use <code> to represent {} replacements\n      replace: false\n    },\n    SUP: '^',\n    SUB: '~'\n  }; // if the cursor is at the end of one of our \"special\" markups that can only be\n  // toggled via markdown expansions then we want to ensure that the markup is\n  // removed from the edit state so that you can type without being stuck with\n  // the special formatting\n\n  function toggleSpecialFormatEditState(editor) {\n    let {\n      head,\n      isCollapsed\n    } = editor.range;\n\n    if (isCollapsed) {\n      Object.keys(SPECIAL_MARKUPS).forEach(tagName => {\n        tagName = tagName.toLowerCase();\n\n        if (head.marker && head.marker.hasMarkup(tagName) && editor._editState.activeMarkups.findBy('tagName', tagName)) {\n          let nextMarker = head.markerIn(1);\n\n          if (!nextMarker || !nextMarker.hasMarkup(tagName)) {\n            // there is a bug somehwhere that means after pasting\n            // content the _editState can end up with multiple\n            // instances of the markup so we need to toggle all of them\n            editor._editState.activeMarkups.filterBy('tagName', tagName).forEach(markup => {\n              editor._editState.toggleMarkupState(markup);\n            });\n          }\n        }\n      });\n    }\n  }\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    // public attrs\n    autofocus: false,\n    html: null,\n    placeholder: '',\n    spellcheck: true,\n    // internal properties\n    activeMarkupTagNames: null,\n    editor: null,\n    linkRange: null,\n    mobiledoc: null,\n    selectedRange: null,\n    // private properties\n    _hasFocus: false,\n    _lastMobiledoc: null,\n    _startedRunLoop: false,\n\n    // closure actions\n    willCreateEditor() {},\n\n    didCreateEditor() {},\n\n    onChange() {},\n\n    onFocus() {},\n\n    onBlur() {},\n\n    /* computed properties -------------------------------------------------- */\n    formattedHtml: Ember.computed('html', function () {\n      return formatTextReplacementHtml(this.html);\n    }),\n    // merge in named options with any passed in `options` property data-bag\n    editorOptions: Ember.computed('formattedHtml', function () {\n      let options = this.options || {};\n      let atoms = this.atoms || [];\n      let cards = this.cards || []; // add our default atoms and cards, we want the defaults to be first so\n      // that they can be overridden by any passed-in atoms or cards.\n      // Use Array.concat to avoid modifying any passed in array references\n\n      atoms = _atoms.default.concat(atoms);\n      return Ember.assign({\n        html: this.formattedHtml || '',\n        placeholder: this.placeholder,\n        spellcheck: this.spellcheck,\n        autofocus: this.autofocus,\n        cards,\n        atoms,\n\n        unknownCardHandler() {},\n\n        unknownAtomHandler() {}\n\n      }, options);\n    }),\n\n    /* lifecycle hooks ------------------------------------------------------ */\n    init() {\n      this._super(...arguments);\n\n      this.SPECIAL_MARKUPS = SPECIAL_MARKUPS;\n    },\n\n    didReceiveAttrs() {\n      this._super(...arguments); // reset local mobiledoc if html has been changed upstream so that\n      // the html will be re-parsed by the mobiledoc-kit editor\n\n\n      if (this.html !== this._lastHtml && this.html !== this.getCleanHTML()) {\n        this.set('mobiledoc', null);\n      }\n\n      this._lastHtml = this.html;\n    },\n\n    willRender() {\n      this._super(...arguments);\n\n      let mobiledoc = this.mobiledoc;\n\n      if (!mobiledoc && !this.formattedHtml) {\n        mobiledoc = _koenigEditor.BLANK_DOC;\n      }\n\n      let mobiledocIsSame = this._lastMobiledoc && this._lastMobiledoc === mobiledoc;\n      let isEditingDisabledIsSame = this._lastIsEditingDisabled === this.isEditingDisabled; // no change to mobiledoc, no need to recreate the editor\n\n      if (mobiledocIsSame && isEditingDisabledIsSame) {\n        return;\n      } // update our internal references\n\n\n      this._lastIsEditingDisabled = this.isEditingDisabled; // trigger the willCreateEditor closure action\n\n      this.willCreateEditor(); // teardown any old editor that might be around\n\n      let editor = this.editor;\n\n      if (editor) {\n        editor.destroy();\n      } // create a new editor\n\n\n      let editorOptions = this.editorOptions;\n      editorOptions.mobiledoc = mobiledoc;\n      editorOptions.showLinkTooltips = false;\n      editorOptions.undoDepth = UNDO_DEPTH;\n      editorOptions.parserPlugins = [];\n      editor = new _editor.default(editorOptions);\n      (0, _keyCommands.default)(editor, this, _keyCommands.TEXT_REPLACEMENT_KEY_COMMANDS);\n      (0, _textExpansions.registerTextReplacementTextExpansions)(editor, this); // set up editor hooks\n\n      editor.willRender(() => {\n        // The editor's render/rerender will happen after this `editor.willRender`,\n        // so we explicitly start a runloop here if there is none, so that the\n        // add/remove card hooks happen inside a runloop.\n        // When pasting text that gets turned into a card, for example,\n        // the add card hook would run outside the runloop if we didn't begin a new\n        // one now.\n        if (!Ember.run.currentRunLoop) {\n          this._startedRunLoop = true;\n          Ember.run.begin();\n        }\n      });\n      editor.didRender(() => {\n        // if we had explicitly started a runloop in `editor.willRender`,\n        // we must explicitly end it here\n        if (this._startedRunLoop) {\n          this._startedRunLoop = false;\n          Ember.run.end();\n        }\n      });\n      editor.didUpdatePost(postEditor => {\n        Ember.run.join(() => {\n          this.didUpdatePost(postEditor);\n        });\n      });\n      editor.postDidChange(() => {\n        Ember.run.join(() => {\n          this.postDidChange(editor);\n        });\n      });\n      editor.cursorDidChange(() => {\n        Ember.run.join(() => {\n          this.cursorDidChange(editor);\n        });\n      });\n      editor.inputModeDidChange(() => {\n        if (this.isDestroyed) {\n          return;\n        }\n\n        Ember.run.join(() => {\n          this.inputModeDidChange(editor);\n        });\n      });\n\n      if (this.isEditingDisabled) {\n        editor.disableEditing();\n      } // update mobiledoc reference to match initial editor state from parsed\n      // html. We use this value to compare on re-renders in case we need to\n      // re-parse from html\n\n\n      this.mobiledoc = editor.serialize(_koenigEditor.MOBILEDOC_VERSION);\n      this._lastMobiledoc = this.mobiledoc;\n      this.set('editor', editor);\n      this.didCreateEditor(editor);\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      let editorElement = this.element.querySelector('[data-kg=\"editor\"]');\n      this._pasteHandler = Ember.run.bind(this, this.handlePaste);\n      editorElement.addEventListener('paste', this._pasteHandler);\n      this.element.dataset[_constants.DRAG_DISABLED_DATA_ATTR] = 'true';\n    },\n\n    // our ember component has rendered, now we need to render the mobiledoc\n    // editor itself if necessary\n    didRender() {\n      this._super(...arguments);\n\n      let {\n        editor\n      } = this;\n\n      if (!editor.hasRendered) {\n        let editorElement = this.element.querySelector('[data-kg=\"editor\"]');\n        this._isRenderingEditor = true;\n        editor.render(editorElement);\n        this._isRenderingEditor = false;\n      }\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      let editorElement = this.element.querySelector('[data-kg=\"editor\"]');\n      editorElement.removeEventListener('paste', this._pasteHandler);\n      this.editor.destroy();\n    },\n\n    actions: {\n      toggleMarkup(markupTagName, postEditor) {\n        (postEditor || this.editor).toggleMarkup(markupTagName);\n      },\n\n      // range should be set to the full extent of the selection or the\n      // appropriate <a> markup. If there's a selection when the link edit\n      // component renders it will re-select when finished which should\n      // trigger the normal toolbar\n      editLink(range) {\n        let linkMarkup = (0, _markupUtils.getLinkMarkupFromRange)(range);\n\n        if ((!range.isCollapsed || linkMarkup) && range.headSection.isMarkerable) {\n          this.set('linkRange', range);\n        }\n      },\n\n      cancelEditLink() {\n        this.set('linkRange', null);\n      }\n\n    },\n\n    /* ember event handlers --------------------------------------------------*/\n    // handle focusin/focusout at the component level so that we don't trigger blur\n    // actions when clicking on toolbar buttons\n    focusIn(event) {\n      if (!this._hasFocus) {\n        this._hasFocus = true;\n        Ember.run.scheduleOnce('actions', this, this.onFocus, event);\n      }\n    },\n\n    focusOut(event) {\n      if (!event.relatedTarget || !this.element.contains(event.relatedTarget)) {\n        this._hasFocus = false;\n        Ember.run.scheduleOnce('actions', this, this.onBlur, event);\n      }\n    },\n\n    /* custom event handlers ------------------------------------------------ */\n    handlePaste(event) {\n      let {\n        editor,\n        editor: {\n          range\n        }\n      } = this;\n      let {\n        text\n      } = (0, _parseUtils.getContentFromPasteEvent)(event);\n\n      if (!editor.cursor.isAddressable(event.target)) {\n        return;\n      }\n\n      if (text && _validator.default.isURL(text)) {\n        // if we have a text selection, make that selection a link\n        if (range && !range.isCollapsed && range.headSection === range.tailSection && range.headSection.isMarkerable) {\n          let linkMarkup = editor.builder.createMarkup('a', {\n            href: text\n          });\n          editor.run(postEditor => {\n            postEditor.addMarkupToRange(range, linkMarkup);\n          });\n          editor.selectRange(range.tail); // prevent mobiledoc's default paste event handler firing\n\n          event.preventDefault();\n          event.stopImmediatePropagation();\n          return;\n        }\n      }\n    },\n\n    /* mobiledoc event handlers ----------------------------------------------*/\n    // manipulate mobiledoc content before committing changes\n    // - only one section\n    // - first section must be a markerable section\n    // - if first section is a list, grab the content of the first list item\n    didUpdatePost(postEditor) {\n      let {\n        editor,\n        editor: {\n          post\n        }\n      } = postEditor; // remove any other formatting from code formats\n\n      let markers = [];\n\n      try {\n        markers = post.markersContainedByRange(post.toRange());\n      } catch (e) {// post.toRange() can fail if a list item was just removed\n        // TODO: mobiledoc-kit bug?\n      }\n\n      markers.forEach(marker => {\n        let {\n          markups\n        } = marker;\n\n        if (markups.length > 1 && marker.hasMarkup('code')) {\n          markups.rejectBy('tagName', 'code').forEach(markup => {\n            marker.removeMarkup(markup);\n          });\n        }\n      }); // remove any non-markerable/non-list sections\n\n      post.sections.forEach(section => {\n        if (!section.isMarkerable && !section.isListSection) {\n          let reposition = section === editor.activeSection;\n          postEditor.removeSection(section);\n\n          if (reposition) {\n            postEditor.setRange(post.sections.head.tailPosition());\n          }\n        }\n      });\n    },\n\n    postDidChange() {\n      // trigger closure action\n      this.onChange(this.getCleanHTML());\n    },\n\n    cursorDidChange(editor) {\n      // if we have `code` or ~strike~ formatting to the left but not the right\n      // then toggle the formatting - these formats should only be creatable\n      // through the text expansions\n      toggleSpecialFormatEditState(editor); // pass the selected range through to the toolbar + menu components\n\n      this.set('selectedRange', editor.range);\n    },\n\n    // fired when the active section(s) or markup(s) at the current cursor\n    // position or selection have changed. We use this event to update the\n    // activeMarkup/section tag lists which control button states in our popup\n    // toolbar\n    inputModeDidChange(editor) {\n      let markupTags = (0, _koenigEditor.arrayToMap)(editor.activeMarkups.map(m => m.tagName)); // On keyboard cursor movement our `cursorDidChange` toggle for special\n      // formats happens before mobiledoc's readstate updates the edit states\n      // so we have to re-do it here\n      // TODO: can we make the event order consistent in mobiledoc-kit?\n\n      toggleSpecialFormatEditState(editor); // Avoid updating this component's properties synchronously while\n      // rendering the editor (after rendering the component) because it\n      // causes Ember to display deprecation warnings\n\n      if (this._isRenderingEditor) {\n        Ember.run.schedule('afterRender', () => {\n          this.set('activeMarkupTagNames', markupTags);\n        });\n      } else {\n        this.set('activeMarkupTagNames', markupTags);\n      }\n    },\n\n    /* private methods -------------------------------------------------------*/\n    // rather than parsing mobiledoc to HTML we can grab the HTML directly from\n    // inside the editor element because we should only be dealing with\n    // inline markup that directly maps to HTML elements\n    getCleanHTML() {\n      if (this.editor && this.editor.element) {\n        return (0, _cleanTextReplacementHtml.default)(this.editor.element.innerHTML);\n      }\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/components/koenig-toolbar\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TOOLBAR_MARGIN = void 0;\n\n  const __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n  /*\n    <KgActionBar @class=\"relative\" @instantClose={{true}} @isVisible={{this.showToolbar}}>\n      <li class=\"ma0 lh-solid\">\n          <button\n              type=\"button\"\n              title=\"Bold\"\n              class=\"dib dim-lite link h9 w9 nudge-top--1\"\n              {{action \"toggleMarkup\" \"strong\"}}\n          >\n              {{svg-jar \"koenig/kg-bold\" class=(concat (if this.activeMarkupTagNames.isStrong \"fill-green-l2\" \"fill-white\") \" w4 h4\")}}\n          </button>\n      </li>\n      <li class=\"ma0 lh-solid\">\n          <button\n              type=\"button\"\n              title=\"Italic\"\n              class=\"dib dim-lite link h9 w9 nudge-top--1\"\n              {{action \"toggleMarkup\" \"em\"}}\n          >\n              {{svg-jar \"koenig/kg-italic\" class=(concat (if (or this.activeMarkupTagNames.isEm this.activeMarkupTagNames.isI) \"fill-green-l2\" \"fill-white\") \" w4 h4\")}}\n          </button>\n      </li>\n      {{#unless this.basicOnly}}\n          <li class=\"ma0 lh-solid\">\n              <button\n                  type=\"button\"\n                  title=\"Heading One\"\n                  class=\"dib dim-lite link h9 w9 nudge-top--1\"\n                  {{action \"toggleHeaderSection\" \"h2\"}}\n              >\n                  {{svg-jar \"koenig/kg-heading-1\" class=(concat (if this.activeSectionTagNames.isH2 \"fill-green-l2\" \"fill-white\") \" w4 h4\")}}\n              </button>\n          </li>\n          <li class=\"ma0 lh-solid\">\n              <button\n                  type=\"button\"\n                  title=\"Heading Two\"\n                  class=\"dib dim-lite link h9 w9 nudge-top--1\"\n                  {{action \"toggleHeaderSection\" \"h3\"}}\n              >\n                  {{svg-jar \"koenig/kg-heading-2\" class=(concat (if this.activeSectionTagNames.isH3 \"fill-green-l2\" \"fill-white\") \" w4 h4\")}}\n              </button>\n          </li>\n      {{/unless}}\n  \n      <li class=\"ma0 ml1 mr1 lh-solid kg-action-bar-divider bg-darkgrey-l2 h5\" role=\"separator\"></li>\n  \n      {{#unless this.basicOnly}}\n          <li class=\"ma0 lh-solid\">\n              <button\n                  type=\"button\"\n                  title=\"Quote\"\n                  class=\"dib dim-lite link h9 w9 nudge-top--1\"\n                  {{action \"toggleSection\" \"blockquote\"}}\n              >\n                  {{svg-jar \"koenig/kg-quote\" class=(concat (if this.activeSectionTagNames.isBlockquote \"fill-green-l2\" \"fill-white\") \" w4 h4\")}}\n              </button>\n          </li>\n      {{/unless}}\n      <li class=\"ma0 lh-solid\">\n          <button\n              type=\"button\"\n              title=\"Link\"\n              class=\"dib dim-lite link h9 w9 nudge-top--1\"\n              {{action \"editLink\"}}\n          >\n              {{svg-jar \"koenig/kg-link\" class=(concat (if this.activeMarkupTagNames.isA \"fill-green-l2\" \"fill-white\") \" w4 h4\")}}\n          </button>\n      </li>\n  \n      {{#if @addSnippet}}\n          {{#unless this.basicOnly}}\n              <li class=\"ma0 ml1 mr1 lh-solid kg-action-bar-divider bg-darkgrey-l2 h5\" role=\"separator\"></li>\n              <li class=\"ma0 lh-solid\">\n                  <button\n                      type=\"button\"\n                      title=\"Create snippet\"\n                      class=\"dib dim-lite link h9 w9 nudge-top--1\"\n                      {{on \"click\" @addSnippet}}\n                  >\n                      {{svg-jar \"koenig/kg-snippet\" class=\"w4 h4\"}}\n                  </button>\n              </li>\n          {{/unless}}\n      {{/if}}\n  \n  </KgActionBar>\n  \n  */\n  {\n    \"id\": \"5nnUDcaP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@addSnippet\\\"],\\\"statements\\\":[[8,\\\"kg-action-bar\\\",[],[[\\\"@class\\\",\\\"@instantClose\\\",\\\"@isVisible\\\"],[\\\"relative\\\",true,[32,0,[\\\"showToolbar\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 lh-solid\\\"],[12],[2,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Bold\\\"],[24,0,\\\"dib dim-lite link h9 w9 nudge-top--1\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[32,0],\\\"toggleMarkup\\\",\\\"strong\\\"],null],[12],[2,\\\"\\\\n            \\\"],[1,[30,[36,1],[\\\"koenig/kg-bold\\\"],[[\\\"class\\\"],[[30,[36,5],[[30,[36,4],[[32,0,[\\\"activeMarkupTagNames\\\",\\\"isStrong\\\"]],\\\"fill-green-l2\\\",\\\"fill-white\\\"],null],\\\" w4 h4\\\"],null]]]]],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 lh-solid\\\"],[12],[2,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Italic\\\"],[24,0,\\\"dib dim-lite link h9 w9 nudge-top--1\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[32,0],\\\"toggleMarkup\\\",\\\"em\\\"],null],[12],[2,\\\"\\\\n            \\\"],[1,[30,[36,1],[\\\"koenig/kg-italic\\\"],[[\\\"class\\\"],[[30,[36,5],[[30,[36,4],[[30,[36,6],[[32,0,[\\\"activeMarkupTagNames\\\",\\\"isEm\\\"]],[32,0,[\\\"activeMarkupTagNames\\\",\\\"isI\\\"]]],null],\\\"fill-green-l2\\\",\\\"fill-white\\\"],null],\\\" w4 h4\\\"],null]]]]],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"basicOnly\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 lh-solid\\\"],[12],[2,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Heading One\\\"],[24,0,\\\"dib dim-lite link h9 w9 nudge-top--1\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[32,0],\\\"toggleHeaderSection\\\",\\\"h2\\\"],null],[12],[2,\\\"\\\\n                \\\"],[1,[30,[36,1],[\\\"koenig/kg-heading-1\\\"],[[\\\"class\\\"],[[30,[36,5],[[30,[36,4],[[32,0,[\\\"activeSectionTagNames\\\",\\\"isH2\\\"]],\\\"fill-green-l2\\\",\\\"fill-white\\\"],null],\\\" w4 h4\\\"],null]]]]],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 lh-solid\\\"],[12],[2,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Heading Two\\\"],[24,0,\\\"dib dim-lite link h9 w9 nudge-top--1\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[32,0],\\\"toggleHeaderSection\\\",\\\"h3\\\"],null],[12],[2,\\\"\\\\n                \\\"],[1,[30,[36,1],[\\\"koenig/kg-heading-2\\\"],[[\\\"class\\\"],[[30,[36,5],[[30,[36,4],[[32,0,[\\\"activeSectionTagNames\\\",\\\"isH3\\\"]],\\\"fill-green-l2\\\",\\\"fill-white\\\"],null],\\\" w4 h4\\\"],null]]]]],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 ml1 mr1 lh-solid kg-action-bar-divider bg-darkgrey-l2 h5\\\"],[14,\\\"role\\\",\\\"separator\\\"],[12],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,2],[[32,0,[\\\"basicOnly\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 lh-solid\\\"],[12],[2,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Quote\\\"],[24,0,\\\"dib dim-lite link h9 w9 nudge-top--1\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[32,0],\\\"toggleSection\\\",\\\"blockquote\\\"],null],[12],[2,\\\"\\\\n                \\\"],[1,[30,[36,1],[\\\"koenig/kg-quote\\\"],[[\\\"class\\\"],[[30,[36,5],[[30,[36,4],[[32,0,[\\\"activeSectionTagNames\\\",\\\"isBlockquote\\\"]],\\\"fill-green-l2\\\",\\\"fill-white\\\"],null],\\\" w4 h4\\\"],null]]]]],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"    \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 lh-solid\\\"],[12],[2,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Link\\\"],[24,0,\\\"dib dim-lite link h9 w9 nudge-top--1\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[32,0],\\\"editLink\\\"],null],[12],[2,\\\"\\\\n            \\\"],[1,[30,[36,1],[\\\"koenig/kg-link\\\"],[[\\\"class\\\"],[[30,[36,5],[[30,[36,4],[[32,0,[\\\"activeMarkupTagNames\\\",\\\"isA\\\"]],\\\"fill-green-l2\\\",\\\"fill-white\\\"],null],\\\" w4 h4\\\"],null]]]]],[2,\\\"\\\\n        \\\"],[13],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,4],[[32,1]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,2],[[32,0,[\\\"basicOnly\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"            \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 ml1 mr1 lh-solid kg-action-bar-divider bg-darkgrey-l2 h5\\\"],[14,\\\"role\\\",\\\"separator\\\"],[12],[13],[2,\\\"\\\\n            \\\"],[10,\\\"li\\\"],[14,0,\\\"ma0 lh-solid\\\"],[12],[2,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Create snippet\\\"],[24,0,\\\"dib dim-lite link h9 w9 nudge-top--1\\\"],[24,4,\\\"button\\\"],[4,[38,0],[\\\"click\\\",[32,1]],null],[12],[2,\\\"\\\\n                    \\\"],[1,[30,[36,1],[\\\"koenig/kg-snippet\\\"],[[\\\"class\\\"],[\\\"w4 h4\\\"]]]],[2,\\\"\\\\n                \\\"],[13],[2,\\\"\\\\n            \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"on\\\",\\\"svg-jar\\\",\\\"unless\\\",\\\"action\\\",\\\"if\\\",\\\"concat\\\",\\\"or\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"koenig-editor/components/koenig-toolbar.hbs\"\n    }\n  });\n\n  // initially rendered offscreen with opacity 0 so that sizing is available\n  // shown when passed in an uncollapsed selected range\n  // display is delayed until the mouse button is lifted\n  // positioned so that it's always fully within the editor container\n  // animation occurs via CSS transitions\n  // position is kept after hiding, it's made inoperable by CSS pointer-events\n  // pixels that should be added to separate toolbar from positioning rect\n  const TOOLBAR_MARGIN = 15; // pixels that should be added to the `left` property of the tick adjustment styles\n  // TODO: handle via CSS?\n\n  _exports.TOOLBAR_MARGIN = TOOLBAR_MARGIN;\n  const TICK_ADJUSTMENT = 8;\n\n  var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember.Component.extend({\n    attributeBindings: ['style'],\n    classNames: ['absolute', 'z-999'],\n    // public attrs\n    basicOnly: false,\n    editor: null,\n    editorRange: null,\n    activeMarkupTagNames: null,\n    activeSectionTagNames: null,\n    // internal properties\n    showToolbar: false,\n    top: null,\n    left: -1000,\n    right: null,\n    // private properties\n    _isMouseDown: false,\n    _hasSelectedRange: false,\n    _onMousedownHandler: null,\n    _onMousemoveHandler: null,\n    _onMouseupHandler: null,\n    _onResizeHandler: null,\n\n    // closure actions\n    toggleMarkup() {},\n\n    toggleSection() {},\n\n    toggleHeaderSection() {},\n\n    editLink() {},\n\n    /* computed properties -------------------------------------------------- */\n    style: Ember.computed('showToolbar', 'top', 'left', 'right', function () {\n      let position = this.getProperties('top', 'left', 'right');\n      let styles = Object.keys(position).map(style => {\n        if (position[style] !== null) {\n          return `${style}: ${position[style]}px`;\n        }\n      }); // ensure hidden toolbar is non-interactive\n\n      if (this.showToolbar) {\n        styles.push('pointer-events: auto !important');\n      } else {\n        styles.push('pointer-events: none !important');\n      }\n\n      return Ember.String.htmlSafe(styles.compact().join('; '));\n    }),\n\n    /* lifecycle hooks ------------------------------------------------------ */\n    init() {\n      this._super(...arguments); // track mousedown/mouseup on the window so that we're sure to get the\n      // events even when they start outside of this component or end outside\n      // the window\n\n\n      this._onMousedownHandler = Ember.run.bind(this, this._handleMousedown);\n      window.addEventListener('mousedown', this._onMousedownHandler);\n      this._onMouseupHandler = Ember.run.bind(this, this._handleMouseup);\n      window.addEventListener('mouseup', this._onMouseupHandler);\n      this._onResizeHandler = Ember.run.bind(this, this._handleResize);\n      window.addEventListener('resize', this._onResizeHandler);\n    },\n\n    didReceiveAttrs() {\n      this._super(...arguments);\n\n      let range = this.editorRange;\n\n      if (range && !range.isCollapsed) {\n        this._hasSelectedRange = true;\n      } else {\n        this._hasSelectedRange = false;\n      }\n\n      if (this._hasSelectedRange && !this.showToolbar || !this._hasSelectedRange && this.showToolbar) {\n        this._toggleVisibility.perform();\n      }\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this._removeStyleElement();\n\n      Ember.run.cancel(this._throttleResize);\n      window.removeEventListener('mousedown', this._onMousedownHandler);\n      window.removeEventListener('mousemove', this._onMousemoveHandler);\n      window.removeEventListener('mouseup', this._onMouseupHandler);\n      window.removeEventListener('resize', this._onResizeHandler);\n    },\n\n    actions: {\n      toggleMarkup(markupName) {\n        if (markupName === 'em' && this.activeMarkupTagNames.isI) {\n          markupName = 'i';\n        }\n\n        this.toggleMarkup(markupName);\n      },\n\n      toggleSection(sectionName) {\n        let range = this.editorRange;\n        this.editor.run(postEditor => {\n          this.toggleSection(sectionName, postEditor);\n          postEditor.setRange(range);\n        });\n      },\n\n      toggleHeaderSection(headingTagName) {\n        let range = this.editorRange;\n        this.editor.run(postEditor => {\n          this.toggleHeaderSection(headingTagName, postEditor, {\n            force: true\n          });\n          postEditor.setRange(range);\n        });\n      },\n\n      editLink() {\n        this.editLink(this.editorRange);\n      }\n\n    },\n\n    /* private methods ------------------------------------------------------ */\n    _toggleVisibility: (0, _emberConcurrency.task)(function* (skipMousemove = false) {\n      // double-taps will often trigger before the selection change event so\n      // we want to keep the truthy mousemove skip around so that re-triggers\n      // within the 50ms timeout do not reset it\n      if (skipMousemove) {\n        this._skipMousemove = true;\n      } // debounce for 50ms to account for \"click to deselect\" otherwise we\n      // run twice and the fade out animation jumps position\n\n\n      yield (0, _emberConcurrency.timeout)(50); // return early if the editorRange hasn't changed, this prevents\n      // re-rendering unnecessarily which can cause minor position jumps when\n      // styles are toggled because getBoundingClientRect on getSelection\n      // changes slightly depending on the style of selected text\n\n      if (this._hasSelectedRange && this.editorRange === this._lastRange) {\n        return;\n      } // if we have a range, show the toolbnar once the mouse is lifted\n\n\n      if (this._hasSelectedRange && !this._isMouseDown) {\n        this._showToolbar(this._skipMousemove);\n      } else {\n        this._hideToolbar();\n      }\n\n      this._skipMousemove = false;\n    }).restartable(),\n\n    _handleMousedown(event) {\n      // we only care about the left mouse button\n      if (event.which === 1) {\n        this._isMouseDown = true; // prevent mousedown on toolbar buttons losing editor focus before the following click event can trigger the buttons behaviour\n\n        if (this.element.contains(event.target)) {\n          event.preventDefault();\n        }\n      }\n    },\n\n    _handleMousemove() {\n      if (this._hasSelectedRange && !this.showToolbar) {\n        this.set('showToolbar', true);\n      }\n\n      this._removeMousemoveHandler();\n    },\n\n    _removeMousemoveHandler() {\n      window.removeEventListener('mousemove', this._onMousemoveHandler);\n      this._onMousemoveHandler = null;\n    },\n\n    _handleMouseup(event) {\n      if (event.which === 1) {\n        this._isMouseDown = false; // we want to skip the mousemove handler here because we know the\n        // selection (if there was one) was via the mouse and we don't want\n        // to wait for another mousemove before showing the toolbar\n\n        this._toggleVisibility.perform(true);\n      }\n    },\n\n    _handleResize() {\n      if (this.showToolbar) {\n        this._throttleResize = Ember.run.throttle(this, this._positionToolbar, 100);\n      }\n    },\n\n    _showToolbar(skipMousemove) {\n      this._positionToolbar();\n\n      if (skipMousemove) {\n        this.set('showToolbar', true);\n      }\n\n      if (!this.showToolbar && !this._onMousemoveHandler) {\n        this._onMousemoveHandler = Ember.run.bind(this, this._handleMousemove);\n        window.addEventListener('mousemove', this._onMousemoveHandler);\n      } // track displayed range so that we don't re-position unnecessarily\n\n\n      this._lastRange = this.editorRange;\n    },\n\n    _hideToolbar() {\n      if (!this.isDestroyed || !this.isDestroying) {\n        this.set('showToolbar', false);\n      }\n\n      this._lastRange = null;\n\n      this._removeMousemoveHandler();\n    },\n\n    _positionToolbar() {\n      let containerRect = this.element.offsetParent.getBoundingClientRect();\n      let range = window.getSelection().getRangeAt(0);\n      let rangeRect = range.getBoundingClientRect();\n      let {\n        width,\n        height\n      } = this.element.getBoundingClientRect();\n      let newPosition = {}; // rangeRect is relative to the viewport so we need to subtract the\n      // container measurements to get a position relative to the container\n\n      newPosition = {\n        top: rangeRect.top - containerRect.top - height - TOOLBAR_MARGIN,\n        left: rangeRect.left - containerRect.left + rangeRect.width / 2 - width / 2,\n        right: null\n      };\n      let tickPosition = 50; // don't overflow left boundary\n\n      if (newPosition.left < 0) {\n        newPosition.left = 0; // calculate the tick percentage position\n\n        let absTickPosition = rangeRect.left - containerRect.left + rangeRect.width / 2;\n        tickPosition = absTickPosition / width * 100;\n\n        if (tickPosition < 5) {\n          tickPosition = 5;\n        }\n      } // same for right boundary\n\n\n      if (newPosition.left + width > containerRect.width) {\n        newPosition.left = null;\n        newPosition.right = 0; // calculate the tick percentage position\n\n        let absTickPosition = rangeRect.right - containerRect.right - rangeRect.width / 2;\n        tickPosition = 100 + absTickPosition / width * 100;\n\n        if (tickPosition > 95) {\n          tickPosition = 95;\n        }\n      } // the tick is a pseudo-element so we the only way we can affect it's\n      // style is by adding a style element to the head\n\n\n      this._removeStyleElement(); // reset to base styles\n\n\n      if (tickPosition !== 50) {\n        this._addStyleElement(tickPosition);\n      } // update the toolbar position\n\n\n      this.setProperties(newPosition);\n    },\n\n    _addStyleElement(tickPosition) {\n      let beforeStyle = `left: calc(${tickPosition}% - ${TICK_ADJUSTMENT + 2}px);`;\n      let afterStyle = `left: calc(${tickPosition}% - ${TICK_ADJUSTMENT}px);`;\n      let styleElement = document.createElement('style');\n      styleElement.id = `${this.elementId}-style`;\n      styleElement.innerHTML = `\n            #${this.elementId} > ul:before { ${beforeStyle} }\n            #${this.elementId} > ul:after { ${afterStyle} }\n        `;\n      document.head.appendChild(styleElement);\n    },\n\n    _removeStyleElement() {\n      let styleElement = document.querySelector(`#${this.elementId}-style`);\n\n      if (styleElement) {\n        styleElement.remove();\n      }\n    }\n\n  }));\n\n  _exports.default = _default;\n});","define(\"koenig-editor/helpers/card-is-available\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _class, _descriptor, _descriptor2;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let CardIsAvailableHelper = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, (_class = class CardIsAvailableHelper extends Ember.Helper {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"config\", _descriptor, this);\n\n      _initializerDefineProperty(this, \"feature\", _descriptor2, this);\n    }\n\n    compute([card]) {\n      let cardIsAvailable = true;\n\n      if (card.developerExperiment) {\n        cardIsAvailable = this.config.get('enableDeveloperExperiments');\n      }\n\n      if (card.feature) {\n        cardIsAvailable = Ember.get(this.feature, card.feature);\n      }\n\n      return cardIsAvailable;\n    }\n\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"config\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"feature\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class));\n  _exports.default = CardIsAvailableHelper;\n});","define(\"koenig-editor/helpers/clean-basic-html\", [\"exports\", \"@tryghost/kg-clean-basic-html\"], function (_exports, _kgCleanBasicHtml) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.cleanBasicHtmlHelper = cleanBasicHtmlHelper;\n  _exports.default = void 0;\n\n  function cleanBasicHtmlHelper(html = '') {\n    if (Ember.isArray(html)) {\n      html = html[0] || '';\n    }\n\n    return (0, _kgCleanBasicHtml.default)(html);\n  }\n\n  var _default = Ember.Helper.helper(cleanBasicHtmlHelper);\n\n  _exports.default = _default;\n});","define(\"koenig-editor/helpers/kg-style\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.kgStyle = kgStyle;\n  _exports.default = void 0;\n\n  function kgStyle([style], options) {\n    let cssClass = '';\n    let pFontStyle = 'f3 fw3 lh-copy tracked-1 serif';\n    let cardBorderStyle = 'pb2 pl3 nl3 pr3 nr3 ba b--white relative kg-card-hover';\n\n    switch (style) {\n      // Card menu\n      case 'cardmenu':\n        cssClass = 'koenig-cardmenu absolute top-0 flex flex-column mt0 mr0 mb3 ml0 overflow-y-auto bg-white br3 shadow-3 ttn f7 normal';\n        break;\n\n      case 'cardmenu-card':\n        cssClass = 'flex flex-shrink-0 items-center middarkgrey ba b--transparent hover-darkgrey kg-cardmenu-card-hover pl4 pr4 pt2 pb2 anim-fast';\n        break;\n\n      case 'cardmenu-icon':\n        cssClass = 'flex items-center';\n        break;\n\n      case 'cardmenu-text':\n        cssClass = 'flex flex-column';\n        break;\n\n      case 'cardmenu-label':\n        cssClass = 'f8 lh-heading darkgrey tracked-1 fw4 ma0 ml4 flex-grow-1 truncate';\n        break;\n\n      case 'cardmenu-desc':\n        cssClass = 'f-small lh-heading tracked-1 fw4 ma0 ml4 flex-grow-1 midlightgrey truncate';\n        break;\n      // Container cards\n\n      case 'container-card':\n        cssClass = cardBorderStyle;\n        break;\n      // Generic media card\n\n      case 'media-card':\n        cssClass = `${pFontStyle} ma0 ba b--transparent kg-card-hover`;\n        break;\n      // Media styles & figure caption\n\n      case 'image-normal':\n        cssClass = 'center db';\n        break;\n\n      case 'image-wide':\n        cssClass = 'center mw-100 db';\n        break;\n\n      case 'image-full':\n        cssClass = 'center mw-100vw db';\n\n        if (options.sidebar) {\n          cssClass = `${cssClass} kg-image-full--sidebar`;\n        }\n\n        break;\n\n      case 'figcaption':\n        cssClass = 'db pa2 center lh-title sans-serif fw4 f7 middarkgrey tracked-2 tc';\n        break;\n      // Media breakout styles\n\n      case 'breakout':\n        if (options.size === 'wide') {\n          cssClass = `${cssClass} koenig-breakout-wide`;\n        }\n\n        if (options.size === 'full') {\n          cssClass = `${cssClass} koenig-breakout-full`;\n        }\n\n        break;\n    }\n\n    return cssClass;\n  }\n\n  var _default = Ember.Helper.helper(kgStyle);\n\n  _exports.default = _default;\n});","define(\"koenig-editor/helpers/sanitize-html\", [\"exports\", \"ghost-admin/utils/caja-sanitizers\"], function (_exports, _cajaSanitizers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.sanitizeHtml = sanitizeHtml;\n  _exports.default = void 0;\n\n  /* global html_sanitize */\n  function sanitizeHtml(params, options = {}) {\n    let html = Ember.isArray(params) ? params[0] : params;\n    options = Ember.assign({\n      replaceJS: true\n    }, options); // replace script and iFrame\n\n    if (options.replaceJS) {\n      html = html.replace(/<script\\b[^<]*(?:(?!<\\/script>)<[^<]*)*<\\/script>/gi, '<pre class=\"js-embed-placeholder\">Embedded JavaScript</pre>');\n      html = html.replace(/<iframe\\b[^<]*(?:(?!<\\/iframe>)<[^<]*)*<\\/iframe>/gi, '<pre class=\"iframe-embed-placeholder\">Embedded iFrame</pre>');\n    } // sanitize html\n\n\n    return html_sanitize(html, _cajaSanitizers.default.url, _cajaSanitizers.default.id);\n  }\n\n  var _default = Ember.Helper.helper(sanitizeHtml);\n\n  _exports.default = _default;\n});","define(\"koenig-editor/lib/clean-text-replacement-html\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = cleanTextReplacementHtml;\n\n  function cleanTextReplacementHtml(html = '', _options = {}) {\n    const defaults = {};\n    const options = Object.assign({}, defaults, _options);\n\n    if (!options.createDocument) {\n      const Parser = typeof DOMParser !== 'undefined' && DOMParser || typeof window !== 'undefined' && window.DOMParser;\n\n      if (!Parser) {\n        throw new Error('cleanTextReplacementHtml() must be passed a `createDocument` function as an option when used in a non-browser environment');\n      }\n\n      options.createDocument = function (documentHtml) {\n        const parser = new Parser();\n        return parser.parseFromString(documentHtml, 'text/html');\n      };\n    }\n\n    let cleanHtml = html.replace(/<code>({.*?})<\\/code>/gi, '$1').trim().replace(/^&nbsp;|&nbsp$/g, '').trim(); // remove any elements that have a blank textContent\n\n    if (cleanHtml) {\n      let doc = options.createDocument(cleanHtml);\n      doc.body.querySelectorAll('*').forEach(element => {\n        if (!element.textContent.trim()) {\n          if (element.textContent.length > 0) {\n            // keep a single space to avoid collapsing spaces\n            let space = doc.createTextNode(' ');\n            element.replaceWith(space);\n          } else {\n            element.remove();\n          }\n        }\n      });\n      cleanHtml = doc.body.innerHTML.trim();\n    }\n\n    return cleanHtml;\n  }\n});","define(\"koenig-editor/lib/dnd/constants\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.GHOST_ZINDEX = _exports.GHOST_CONTAINER_ID = _exports.DROP_INDICATOR_ZINDEX = _exports.DROP_INDICATOR_ID = _exports.DRAG_DISABLED_SELECTOR = _exports.DRAG_DISABLED_DATA_ATTR = _exports.DROPPABLE_SELECTOR = _exports.DROPPABLE_DATA_ATTR = _exports.DRAGGABLE_SELECTOR = _exports.DRAGGABLE_DATA_ATTR = _exports.CONTAINER_SELECTOR = _exports.CONTAINER_DATA_ATTR = void 0;\n  // we use data attributes rather than classes even though they can be slower\n  // because in many instances our draggable/droppable element's classes attribute\n  // could be dynamically generated which could remove our DnD classes when changed\n  const CONTAINER_DATA_ATTR = 'koenigDndContainer';\n  _exports.CONTAINER_DATA_ATTR = CONTAINER_DATA_ATTR;\n  const CONTAINER_SELECTOR = `[data-${Ember.String.dasherize(CONTAINER_DATA_ATTR)}]`;\n  _exports.CONTAINER_SELECTOR = CONTAINER_SELECTOR;\n  const DRAGGABLE_DATA_ATTR = 'koenigDndDraggable';\n  _exports.DRAGGABLE_DATA_ATTR = DRAGGABLE_DATA_ATTR;\n  const DRAGGABLE_SELECTOR = `[data-${Ember.String.dasherize(DRAGGABLE_DATA_ATTR)}]`;\n  _exports.DRAGGABLE_SELECTOR = DRAGGABLE_SELECTOR;\n  const DROPPABLE_DATA_ATTR = 'koenigDndDroppable';\n  _exports.DROPPABLE_DATA_ATTR = DROPPABLE_DATA_ATTR;\n  const DROPPABLE_SELECTOR = `[data-${Ember.String.dasherize(DROPPABLE_DATA_ATTR)}]`;\n  _exports.DROPPABLE_SELECTOR = DROPPABLE_SELECTOR;\n  const DRAG_DISABLED_DATA_ATTR = 'koenigDndDisabled';\n  _exports.DRAG_DISABLED_DATA_ATTR = DRAG_DISABLED_DATA_ATTR;\n  const DRAG_DISABLED_SELECTOR = `[data-${Ember.String.dasherize(DRAG_DISABLED_DATA_ATTR)}]`;\n  _exports.DRAG_DISABLED_SELECTOR = DRAG_DISABLED_SELECTOR;\n  const DROP_INDICATOR_ID = 'koenig-drag-drop-indicator';\n  _exports.DROP_INDICATOR_ID = DROP_INDICATOR_ID;\n  const DROP_INDICATOR_ZINDEX = 10000;\n  _exports.DROP_INDICATOR_ZINDEX = DROP_INDICATOR_ZINDEX;\n  const GHOST_CONTAINER_ID = 'koenig-drag-drop-ghost-container';\n  _exports.GHOST_CONTAINER_ID = GHOST_CONTAINER_ID;\n  const GHOST_ZINDEX = DROP_INDICATOR_ZINDEX + 1;\n  _exports.GHOST_ZINDEX = GHOST_ZINDEX;\n});","define(\"koenig-editor/lib/dnd/container\", [\"exports\", \"koenig-editor/lib/dnd/constants\"], function (_exports, constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // Container represents an element, inside which are draggables and/or droppables.\n  //\n  // Containers handle events triggered by the koenig-drag-drop-handler service.\n  // Containers can be nested, the drag-drop service will select the closest\n  // parent container in the DOM heirarchy when triggering events.\n  //\n  // Containers accept options which are mostly configuration for how to determine\n  // contained draggable/droppable elements and functions to call when events are\n  // processed.\n  class Container {\n    constructor(element, options) {\n      if (options.createGhostElement) {\n        this._createGhostElement = options.createGhostElement;\n        delete options.createGhostElement;\n      }\n\n      Object.assign(this, {\n        element,\n        draggables: Ember.A([]),\n        droppables: Ember.A([]),\n        isDragEnabled: true\n      }, options);\n      element.dataset[constants.CONTAINER_DATA_ATTR] = 'true';\n      this.refresh();\n    } // get the draggable type and any payload. Types:\n    // - image\n    // - card\n    // - file\n    // TODO: review types\n    // TODO: get proper payload from the gallery component\n    // should be overridden by passed in option\n\n\n    getDraggableInfo() {\n      return false;\n    } // should be overridden by passed in option\n\n\n    getIndicatorPosition() {\n      return false;\n    } // override these via constructor options\n\n\n    onDragStart() {}\n\n    onDragEnterContainer() {}\n\n    onDragEnterDroppable() {}\n\n    onDragOverDroppable() {}\n\n    onDragLeaveDroppable() {}\n\n    onDragLeaveContainer() {}\n\n    onDragEnd() {}\n\n    onDrop() {}\n\n    onDropEnd() {} // TODO: allow configuration for ghost element creation\n    // builds an element that is attached to the mouse pointer when dragging.\n    // currently grabs the first <img> and uses that but should be configurable:\n    // - a selector for which element in the draggable to copy\n    // - a function to hand off element creation to the consumer\n\n\n    createGhostElement(draggableInfo) {\n      let ghostElement;\n\n      if (typeof this._createGhostElement === 'function') {\n        ghostElement = this._createGhostElement(draggableInfo);\n      }\n\n      if (!ghostElement && (draggableInfo.type === 'image' || draggableInfo.cardName === 'image')) {\n        let image = draggableInfo.element.querySelector('img');\n\n        if (image) {\n          let aspectRatio = image.width / image.height;\n          let width, height; // max ghost image size is 200px in either dimension\n\n          if (image.width > image.height) {\n            width = 200;\n            height = 200 / aspectRatio;\n          } else {\n            width = 200 * aspectRatio;\n            height = 200;\n          }\n\n          ghostElement = document.createElement('img');\n          ghostElement.width = width;\n          ghostElement.height = height;\n          ghostElement.id = 'koenig-drag-drop-ghost';\n          ghostElement.src = image.src;\n          ghostElement.style.position = 'absolute';\n          ghostElement.style.top = '0';\n          ghostElement.style.left = `-${width}px`;\n          ghostElement.style.zIndex = constants.GHOST_ZINDEX;\n          ghostElement.style.willChange = 'transform';\n        } else {\n          // eslint-disable-next-line\n          console.warn('No <img> element found in draggable');\n          return;\n        }\n      }\n\n      if (ghostElement) {\n        return ghostElement;\n      } // eslint-disable-next-line\n\n\n      console.warn(`No default createGhostElement handler for type \"${draggableInfo.type}\"`);\n    }\n\n    enableDrag() {\n      this.isDragEnabled = true;\n      this.element.dataset[constants.CONTAINER_DATA_ATTR] = 'true';\n      this.refresh();\n    }\n\n    disableDrag() {\n      this.isDragEnabled = false;\n      delete this.element.dataset[constants.CONTAINER_DATA_ATTR];\n      this.refresh();\n    } // used to add data attributes to any draggable/droppable elements. This is\n    // for more efficient lookup through DOM by the drag-drop-handler service\n\n\n    refresh() {\n      // remove all data attributes for currently held draggable/droppable elements\n      this.draggables.forEach(draggable => {\n        delete draggable.dataset[constants.DRAGGABLE_DATA_ATTR];\n      });\n      this.droppables.forEach(droppable => {\n        delete droppable.dataset[constants.DROPPABLE_DATA_ATTR];\n      }); // re-populate draggable/droppable arrays\n\n      this.draggables = Ember.A([]);\n      this.droppables = Ember.A([]);\n\n      if (this.isDragEnabled) {\n        this.element.querySelectorAll(this.draggableSelector).forEach(draggable => {\n          draggable.dataset[constants.DRAGGABLE_DATA_ATTR] = 'true';\n          this.draggables.push(draggable);\n        });\n        this.element.querySelectorAll(this.droppableSelector).forEach(droppable => {\n          droppable.dataset[constants.DROPPABLE_DATA_ATTR] = 'true';\n          this.droppables.push(droppable);\n        });\n      }\n    }\n\n  }\n\n  var _default = Container;\n  _exports.default = _default;\n});","define(\"koenig-editor/lib/dnd/scroll-handler\", [\"exports\", \"ua-parser-js\", \"koenig-editor/lib/dnd/utils\"], function (_exports, _uaParserJs, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.defaultOptions = void 0;\n  // adapted from draggable.js Scrollable plugin (MIT)\n  // https://github.com/Shopify/draggable/blob/master/src/Draggable/Plugins/Scrollable/Scrollable.js\n  const defaultOptions = {\n    speed: 8,\n    sensitivity: 50\n  };\n  _exports.defaultOptions = defaultOptions;\n\n  class ScrollHandler {\n    constructor() {\n      this.options = Object.assign({}, defaultOptions);\n      this.currentMousePosition = null;\n      this.findScrollableElementFrame = null;\n      this.scrollableElement = null;\n      this.scrollAnimationFrame = null; // bind `this` so methods can be passed to requestAnimationFrame\n\n      this._scroll = this._scroll.bind(this); // cache browser info to avoid parsing on every animation frame\n\n      this.userAgent = new _uaParserJs.default();\n    }\n\n    dragStart(draggableInfo) {\n      this.findScrollableElementFrame = requestAnimationFrame(() => {\n        this.scrollableElement = this.getScrollableElement(draggableInfo.element);\n      });\n    }\n\n    dragMove(draggableInfo) {\n      this.findScrollableElementFrame = requestAnimationFrame(() => {\n        this.scrollableElement = this.getScrollableElement(draggableInfo.target);\n      });\n\n      if (!this.scrollableElement) {\n        return;\n      }\n\n      this.currentMousePosition = {\n        clientX: draggableInfo.mousePosition.x,\n        clientY: draggableInfo.mousePosition.y\n      };\n      this.scrollAnimationFrame = requestAnimationFrame(this._scroll);\n    }\n\n    dragStop() {\n      cancelAnimationFrame(this.scrollAnimationFrame);\n      cancelAnimationFrame(this.findScrollableElementFrame);\n      this.currentMousePosition = null;\n      this.findScrollableElementFrame = null;\n      this.scrollableElement = null;\n      this.scrollAnimationFrame = null;\n    }\n\n    getScrollableElement(target) {\n      let scrollableElement = (0, _utils.getParentScrollableElement)(target); // workaround for our particular scrolling setup\n      // TODO: find a way to make this configurable\n\n      if (scrollableElement === (0, _utils.getDocumentScrollingElement)()) {\n        scrollableElement = document.querySelector('.gh-koenig-editor');\n      }\n\n      return scrollableElement;\n    }\n\n    _scroll() {\n      if (!this.scrollableElement || !this.currentMousePosition) {\n        return;\n      }\n\n      cancelAnimationFrame(this.scrollAnimationFrame);\n      let {\n        speed,\n        sensitivity\n      } = this.options;\n      let rect = this.scrollableElement.getBoundingClientRect();\n      let scrollableElement = this.scrollableElement;\n      let clientX = this.currentMousePosition.clientX;\n      let clientY = this.currentMousePosition.clientY;\n      let {\n        offsetHeight,\n        offsetWidth\n      } = scrollableElement;\n      let topPosition = rect.top + offsetHeight - clientY;\n      let bottomPosition = clientY - rect.top;\n      let isSafari = this.userAgent.getBrowser().name === 'Safari'; // Safari will automatically scroll when the mouse is outside of the window\n      // so we want to avoid our own scrolling in that situation to avoid jank\n\n      if (topPosition < sensitivity && !(isSafari && topPosition < 0)) {\n        scrollableElement.scrollTop += speed;\n      } else if (bottomPosition < sensitivity && !(isSafari && bottomPosition < 0)) {\n        scrollableElement.scrollTop -= speed;\n      }\n\n      if (rect.left + offsetWidth - clientX < sensitivity) {\n        scrollableElement.scrollLeft += speed;\n      } else if (clientX - rect.left < sensitivity) {\n        scrollableElement.scrollLeft -= speed;\n      }\n\n      this.scrollAnimationFrame = requestAnimationFrame(this._scroll);\n    }\n\n  }\n\n  _exports.default = ScrollHandler;\n});","define(\"koenig-editor/lib/dnd/utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getParent = getParent;\n  _exports.getNextSibling = getNextSibling;\n  _exports.getPreviousSibling = getPreviousSibling;\n  _exports.getParentScrollableElement = getParentScrollableElement;\n  _exports.getDocumentScrollingElement = getDocumentScrollingElement;\n  _exports.applyUserSelect = applyUserSelect;\n\n  // TODO: rename to closest? getParent can actually match passed in element\n  function getParent(element, value) {\n    return getWithMatch(element, value, current => current.parentNode);\n  }\n\n  function getNextSibling(element, value) {\n    // don't match the passed in element\n    element = element.nextElementSibling;\n    return getWithMatch(element, value, current => current.nextElementSibling);\n  }\n\n  function getPreviousSibling(element, value) {\n    // don't match the passed in element\n    element = element.previousElementSibling;\n    return getWithMatch(element, value, current => current.previousElementSibling);\n  }\n\n  function getParentScrollableElement(element) {\n    if (!element) {\n      return getDocumentScrollingElement();\n    }\n\n    let position = getComputedStyle(element).getPropertyValue('position');\n    let excludeStaticParents = position === 'absolute';\n    let scrollableElement = getParent(element, parent => {\n      if (excludeStaticParents && isStaticallyPositioned(parent)) {\n        return false;\n      }\n\n      return hasOverflow(parent);\n    });\n\n    if (position === 'fixed' && !scrollableElement) {\n      return getDocumentScrollingElement();\n    } else {\n      return scrollableElement;\n    }\n  }\n\n  function getDocumentScrollingElement() {\n    return document.scrollingElement || document.element;\n  }\n\n  function applyUserSelect(element, value) {\n    element.style.webkitUserSelect = value;\n    element.style.mozUserSelect = value;\n    element.style.msUserSelect = value;\n    element.style.oUserSelect = value;\n    element.style.userSelect = value;\n  }\n  /* Not exported --------------------------------------------------------------*/\n\n\n  function getWithMatch(element, value, next) {\n    if (!element) {\n      return null;\n    }\n\n    let selector = value;\n    let callback = value;\n    let isSelector = typeof value === 'string';\n    let isFunction = typeof value === 'function';\n\n    function matches(currentElement) {\n      if (!currentElement) {\n        return currentElement;\n      } else if (isSelector) {\n        return currentElement.matches(selector);\n      } else if (isFunction) {\n        return callback(currentElement);\n      }\n    }\n\n    let current = element;\n\n    do {\n      if (matches(current)) {\n        return current;\n      }\n\n      current = next(current);\n    } while (current && current !== document.body && current !== document);\n  }\n\n  function isStaticallyPositioned(element) {\n    let position = getComputedStyle(element).getPropertyValue('position');\n    return position === 'static';\n  }\n\n  function hasOverflow(element) {\n    let overflowRegex = /(auto|scroll)/;\n    let computedStyles = getComputedStyle(element, null);\n    let overflow = computedStyles.getPropertyValue('overflow') + computedStyles.getPropertyValue('overflow-y') + computedStyles.getPropertyValue('overflow-x');\n    return overflowRegex.test(overflow);\n  }\n});","define(\"koenig-editor/lib/relative-to-absolute\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = relativeToAbsolute;\n\n  function relativeToAbsolute(path, rootUrl) {\n    // if URL is absolute return it as-is\n    try {\n      const parsed = new URL(path, 'http://relative');\n\n      if (parsed.origin !== 'http://relative') {\n        return path;\n      } // Do not convert protocol relative URLs\n\n\n      if (path.lastIndexOf('//', 0) === 0) {\n        return path;\n      }\n    } catch (e) {\n      return path;\n    } // return the path as-is if it's a pure hash param or not root-relative\n\n\n    if (!path.startsWith('/')) {\n      return path;\n    } // force root to always have a trailing-slash for consistent behaviour\n\n\n    if (!rootUrl.endsWith('/')) {\n      rootUrl = `${rootUrl}/`;\n    }\n\n    return new URL(path, rootUrl).toString();\n  }\n});","define(\"koenig-editor/options/atoms\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ATOM_COMPONENT_MAP = void 0;\n  // Atoms are effectively read-only inline cards\n  // Full docs: https://github.com/bustle/mobiledoc-kit/blob/master/ATOMS.md\n  // import createComponentAtom from '../utils/create-component-atom';\n  const ATOM_COMPONENT_MAP = {};\n  _exports.ATOM_COMPONENT_MAP = ATOM_COMPONENT_MAP;\n  var _default = [// soft-return is triggered by SHIFT+ENTER and allows for line breaks\n  // without creating paragraphs\n  {\n    name: 'soft-return',\n    type: 'dom',\n\n    render() {\n      return document.createElement('br');\n    }\n\n  }];\n  _exports.default = _default;\n});","define(\"koenig-editor/options/basic-html-parser-plugins\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.removeBR = removeBR;\n  _exports.default = void 0;\n\n  function removeBR(node, builder, {\n    addMarkerable,\n    nodeFinished\n  }) {\n    if (node.nodeType !== 1 || node.tagName !== 'BR') {\n      return;\n    }\n\n    addMarkerable(builder.createMarker(' '));\n    nodeFinished();\n  }\n\n  var _default = [removeBR];\n  _exports.default = _default;\n});","define(\"koenig-editor/options/cards\", [\"exports\", \"koenig-editor/utils/create-component-card\"], function (_exports, _createComponentCard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.CARD_MENU = _exports.default = _exports.CARD_ICON_MAP = _exports.CARD_COMPONENT_MAP = void 0;\n  // map card names to component names\n  const CARD_COMPONENT_MAP = {\n    hr: 'koenig-card-hr',\n    image: 'koenig-card-image',\n    markdown: 'koenig-card-markdown',\n    'card-markdown': 'koenig-card-markdown',\n    // backwards-compat with markdown editor\n    html: 'koenig-card-html',\n    code: 'koenig-card-code',\n    embed: 'koenig-card-embed',\n    bookmark: 'koenig-card-bookmark',\n    gallery: 'koenig-card-gallery',\n    email: 'koenig-card-email',\n    'email-cta': 'koenig-card-email-cta',\n    paywall: 'koenig-card-paywall'\n  }; // map card names to generic icons (used for ghost elements when dragging)\n\n  _exports.CARD_COMPONENT_MAP = CARD_COMPONENT_MAP;\n  const CARD_ICON_MAP = {\n    hr: 'koenig/kg-card-type-divider',\n    image: 'koenig/kg-card-type-image',\n    markdown: 'koenig/kg-card-type-markdown',\n    'card-markdown': 'koenig/kg-card-type-markdown',\n    html: 'koenig/kg-card-type-html',\n    code: 'koenig/kg-card-type-gen-embed',\n    embed: 'koenig/kg-card-type-gen-embed',\n    bookmark: 'koenig/kg-card-type-bookmark',\n    gallery: 'koenig/kg-card-type-gallery',\n    email: 'koenig/kg-card-type-gen-embed',\n    'email-cta': 'koenig/kg-card-type-gen-embed',\n    paywall: 'koenig/kg-card-type-divider'\n  }; // TODO: move koenigOptions directly into cards now that card components register\n  // themselves so that they are available on card.component\n\n  _exports.CARD_ICON_MAP = CARD_ICON_MAP;\n  var _default = [(0, _createComponentCard.default)('card-markdown'), // backwards-compat with markdown editor\n  (0, _createComponentCard.default)('code', {\n    deleteIfEmpty: 'payload.code'\n  }), (0, _createComponentCard.default)('embed', {\n    hasEditMode: false,\n    deleteIfEmpty: 'payload.html'\n  }), (0, _createComponentCard.default)('bookmark', {\n    hasEditMode: false,\n    deleteIfEmpty: 'payload.metadata'\n  }), (0, _createComponentCard.default)('hr', {\n    hasEditMode: false,\n    selectAfterInsert: false\n  }), (0, _createComponentCard.default)('html', {\n    deleteIfEmpty: 'payload.html'\n  }), (0, _createComponentCard.default)('image', {\n    hasEditMode: false,\n\n    deleteIfEmpty(card) {\n      return card.payload.imageSelector && !card.payload.src;\n    }\n\n  }), (0, _createComponentCard.default)('markdown', {\n    deleteIfEmpty: 'payload.markdown'\n  }), (0, _createComponentCard.default)('gallery', {\n    hasEditMode: false\n  }), (0, _createComponentCard.default)('email', {\n    deleteIfEmpty: 'payload.html'\n  }), (0, _createComponentCard.default)('email-cta', {\n    deleteIfEmpty(card) {\n      return !card.payload.html && !card.payload.buttonText && !card.payload.buttonUrl;\n    }\n\n  }), (0, _createComponentCard.default)('paywall', {\n    hasEditMode: false,\n    selectAfterInsert: false\n  })];\n  _exports.default = _default;\n  const CARD_MENU = [{\n    title: 'Primary',\n    rowLength: 1,\n    items: [{\n      label: 'Image',\n      icon: 'koenig/kg-card-type-image',\n      desc: 'Upload, or embed with /image [url]',\n      iconClass: 'kg-card-type-native',\n      matches: ['image', 'img'],\n      type: 'card',\n      replaceArg: 'image',\n      params: ['src'],\n      payload: {\n        triggerBrowse: true\n      }\n    }, {\n      label: 'Markdown',\n      icon: 'koenig/kg-card-type-markdown',\n      desc: 'Insert a Markdown editor card',\n      iconClass: 'kg-card-type-native',\n      matches: ['markdown', 'md'],\n      type: 'card',\n      replaceArg: 'markdown'\n    }, {\n      label: 'HTML',\n      icon: 'koenig/kg-card-type-html',\n      desc: 'Insert a raw HTML card',\n      iconClass: 'kg-card-type-native',\n      matches: ['html'],\n      type: 'card',\n      replaceArg: 'html'\n    }, {\n      label: 'Gallery',\n      icon: 'koenig/kg-card-type-gallery',\n      desc: 'Create an image gallery',\n      iconClass: 'kg-card-type-native',\n      matches: ['gallery'],\n      type: 'card',\n      replaceArg: 'gallery'\n    }, {\n      label: 'Divider',\n      icon: 'koenig/kg-card-type-divider',\n      desc: 'Insert a dividing line',\n      iconClass: 'kg-card-type-native',\n      matches: ['divider', 'horizontal-rule', 'hr'],\n      type: 'card',\n      replaceArg: 'hr'\n    }, {\n      label: 'Bookmark',\n      icon: 'koenig/kg-card-type-bookmark',\n      desc: 'Embed a link as a visual bookmark',\n      matches: ['bookmark'],\n      type: 'card',\n      replaceArg: 'bookmark',\n      params: ['url']\n    }, {\n      label: 'Email content',\n      icon: 'koenig/kg-card-type-email',\n      desc: 'Only visible when delivered by email',\n      matches: ['email'],\n      type: 'card',\n      replaceArg: 'email'\n    }, {\n      label: 'Email call to action',\n      icon: 'koenig/kg-card-type-email-cta',\n      desc: 'Target free or paid members with a CTA',\n      matches: ['email', 'cta'],\n      type: 'card',\n      replaceArg: 'email-cta',\n      feature: 'emailCardSegments'\n    }, {\n      label: 'Public preview',\n      icon: 'koenig/kg-card-type-paywall',\n      desc: 'Attract signups with a public intro',\n      matches: ['public preview', 'preview', 'paywall'],\n      type: 'card',\n      replaceArg: 'paywall'\n    }]\n  }, {\n    title: 'Embed',\n    rowLength: 1,\n    items: [{\n      label: 'YouTube',\n      icon: 'koenig/kg-card-type-youtube',\n      desc: '/youtube [video url]',\n      matches: ['youtube'],\n      type: 'card',\n      replaceArg: 'embed',\n      params: ['url']\n    }, {\n      label: 'Twitter',\n      icon: 'koenig/kg-card-type-twitter',\n      desc: '/twitter [tweet url]',\n      matches: ['twitter'],\n      type: 'card',\n      replaceArg: 'embed',\n      params: ['url']\n    }, {\n      label: 'Unsplash',\n      icon: 'koenig/kg-card-type-unsplash',\n      desc: '/unsplash [search-term or url]',\n      iconClass: 'kg-card-type-unsplash',\n      matches: ['unsplash'],\n      type: 'card',\n      replaceArg: 'image',\n      params: ['searchTerm'],\n      payload: {\n        imageSelector: 'unsplash'\n      }\n    }, {\n      label: 'Vimeo',\n      icon: 'koenig/kg-card-type-vimeo',\n      desc: '/vimeo [video url]',\n      matches: ['vimeo'],\n      type: 'card',\n      replaceArg: 'embed',\n      params: ['url']\n    }, {\n      label: 'CodePen',\n      icon: 'koenig/kg-card-type-codepen',\n      desc: '/codepen [video url]',\n      iconClass: 'kg-card-type-codepen',\n      matches: ['codepen'],\n      type: 'card',\n      replaceArg: 'embed',\n      params: ['url']\n    }, {\n      label: 'Spotify',\n      icon: 'koenig/kg-card-type-spotify',\n      desc: '/spotify [track or playlist url]',\n      matches: ['spotify'],\n      type: 'card',\n      replaceArg: 'embed',\n      params: ['url']\n    }, {\n      label: 'SoundCloud',\n      icon: 'koenig/kg-card-type-soundcloud',\n      desc: '/soundcloud [track or playlist url]',\n      matches: ['soundcloud'],\n      type: 'card',\n      replaceArg: 'embed',\n      params: ['url']\n    }, {\n      label: 'Other...',\n      icon: 'koenig/kg-card-type-other',\n      desc: '/embed [url]',\n      iconClass: 'kg-card-type-native',\n      matches: ['embed'],\n      type: 'card',\n      replaceArg: 'embed',\n      params: ['url']\n    }]\n  }];\n  _exports.CARD_MENU = CARD_MENU;\n});","define(\"koenig-editor/options/key-commands\", [\"exports\", \"mobiledoc-kit/utils/browser\", \"koenig-editor/components/koenig-editor\"], function (_exports, _browser, _koenigEditor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = registerKeyCommands;\n  _exports.TEXT_REPLACEMENT_KEY_COMMANDS = _exports.BASIC_KEY_COMMANDS = _exports.DEFAULT_KEY_COMMANDS = void 0;\n\n  // Key commands will run any time a particular key or key combination is pressed\n  // https://github.com/bustlelabs/mobiledoc-kit#configuring-hot-keys\n  const setHeader = function setHeader(headerTag, editor, koenig) {\n    if (!editor.activeSection.isMarkerable) {\n      return;\n    }\n\n    let range = editor.range;\n    let canKeepRange = !editor.activeSection.isListItem;\n    editor.run(postEditor => {\n      koenig.send('toggleHeaderSection', headerTag, postEditor, {\n        force: true\n      });\n\n      if (canKeepRange) {\n        postEditor.setRange(range);\n      }\n    });\n  }; // cycle through H2-H6. Starts with H2 so that heirarchy with the story title is\n  // kept. H1 should be explicitly selected with CTRL+ALT+1 or using `#` text expansion\n\n\n  const cycleHeaderLevel = function cycleHeaderLevel(editor, koenig) {\n    if (!editor.activeSection.isMarkerable) {\n      return;\n    }\n\n    let headerMatch = editor.activeSection.tagName.match(/^h(\\d)$/i);\n    let headerTag = 'h2';\n\n    if (headerMatch) {\n      let newLevel = parseInt(headerMatch[1]) + 1;\n\n      if (newLevel > 6) {\n        // remove header tag before starting the cycle again\n        headerTag = headerMatch[0];\n      } else {\n        headerTag = `h${newLevel}`;\n      }\n    }\n\n    setHeader(headerTag, editor, koenig);\n  };\n\n  const DEFAULT_KEY_COMMANDS = [{\n    str: 'ENTER',\n\n    run(editor, koenig) {\n      let {\n        isCollapsed,\n        head: {\n          offset,\n          section\n        }\n      } = editor.range; // if cursor is at beginning of a heading, insert a blank paragraph above\n\n      if (isCollapsed && offset === 0 && section.tagName && section.tagName.match(/^h\\d$/)) {\n        editor.run(postEditor => {\n          let newPara = postEditor.builder.createMarkupSection('p');\n          let collection = section.parent.sections;\n          postEditor.insertSectionBefore(collection, newPara, section);\n        });\n\n        koenig._scrollCursorIntoView();\n\n        return;\n      } // if cursor is on a blank list item mid-list then split the list\n\n\n      if (isCollapsed && section.isBlank && section.isListItem && section.next && section.next.isListItem) {\n        editor.run(postEditor => {\n          postEditor.toggleSection('p', section.headPosition());\n        });\n\n        koenig._scrollCursorIntoView();\n\n        return;\n      } // if a card is selected, move the cursor to the end of the card so that\n      // Enter consistently adds a new paragraph after the card\n\n\n      if (isCollapsed && section.isCardSection) {\n        koenig.moveCaretToTailOfSection(section, true);\n      }\n\n      return false;\n    }\n\n  }, {\n    // CMD+ENTER is our keyboard shortcut for putting a selected card into edit mode\n    str: 'META+ENTER',\n\n    run(editor, koenig) {\n      if (koenig.selectedCard) {\n        koenig.editCard(koenig.selectedCard);\n        return;\n      }\n\n      return false;\n    }\n\n  }, {\n    // CTRL+ENTER is our keyboard shortcut for putting a selected card into edit mode\n    str: 'CTRL+ENTER',\n\n    run(editor, koenig) {\n      if (_browser.default.isWin() && koenig.selectedCard) {\n        koenig.editCard(koenig.selectedCard);\n        return;\n      }\n\n      return false;\n    }\n\n  }, {\n    str: 'SHIFT+ENTER',\n\n    run(editor) {\n      if (!editor.range.headSection.isMarkerable) {\n        return;\n      }\n\n      editor.run(postEditor => {\n        let softReturn = postEditor.builder.createAtom('soft-return');\n        postEditor.insertMarkers(editor.range.head, [softReturn]);\n      });\n    }\n\n  }, {\n    str: 'BACKSPACE',\n\n    run(editor, koenig) {\n      let {\n        head,\n        isCollapsed,\n        head: {\n          marker,\n          offset,\n          section\n        }\n      } = editor.range;\n      let {\n        next,\n        prev\n      } = section; // if a card is selected we should delete the card then place the cursor\n      // at the end of the previous section\n\n      if (koenig.selectedCard) {\n        let cursorPosition = section.prev ? _koenigEditor.CURSOR_BEFORE : _koenigEditor.CURSOR_AFTER;\n        koenig.deleteCard(koenig.selectedCard, cursorPosition);\n        return;\n      } // if the cursor is at the beginning of the doc and on a blank paragraph,\n      // then delete or re-create the paragraph to remove formatting\n\n\n      let sections = section.isListItem ? section.parent.parent.sections : section.parent.sections;\n      let isFirstSection = section === sections.head;\n\n      if (isFirstSection && isCollapsed && offset === 0 && (section.isBlank || section.text === '')) {\n        editor.run(postEditor => {\n          // remove the current section\n          postEditor.removeSection(section); // select the next section\n\n          if (next) {\n            return;\n          } // we don't have another section so create a blank paragraph\n          // which will have the effect of removing any formatting\n\n\n          let {\n            builder\n          } = postEditor;\n          let p = builder.createMarkupSection('p');\n          postEditor.insertSectionAtEnd(p);\n          postEditor.setRange(p.tailPosition());\n        }); // allow default behaviour which will trigger `cursorDidChange` and\n        // fire our `cursorDidExitAtTop` action\n\n        return;\n      } // if the section about to be deleted by a backspace is a card then\n      // actually delete the card rather than selecting it.\n      // However, if the current paragraph is blank then delete the paragraph\n      // instead - allows blank paragraphs between cards to be deleted and\n      // feels more natural\n\n\n      if (isCollapsed && offset === 0 && prev && prev.type === 'card-section' && !section.isBlank) {\n        let card = koenig.getCardFromSection(prev);\n        koenig.deleteCard(card);\n        return;\n      } // if cursor is at the beginning of a heading and previous section is a\n      // blank paragraph, delete the blank paragraph\n\n\n      if (isCollapsed && offset === 0 && section.tagName.match(/^h\\d$/) && prev && prev.tagName === 'p' && prev.isBlank) {\n        editor.run(postEditor => {\n          postEditor.removeSection(prev);\n        });\n        return;\n      } // if the markup about to be deleted is a special format (code, strike)\n      // then undo the text expansion to allow it to be extended\n\n\n      if (isCollapsed && marker && offset !== 0) {\n        let specialMarkupTagNames = Object.keys(koenig.SPECIAL_MARKUPS);\n        let hasReversed = false;\n        specialMarkupTagNames.forEach(tagName => {\n          // only continue if we're about to delete a special markup\n          let markup = marker.markups.find(markerMarkup => markerMarkup.tagName.toUpperCase() === tagName);\n\n          if (markup) {\n            let nextMarker = head.markerIn(1); // ensure we're at the end of the markup not inside it\n\n            if (!nextMarker || !nextMarker.hasMarkup(tagName)) {\n              // wrap with the text expansion, remove formatting, then delete the last char\n              editor.run(postEditor => {\n                let markdown = koenig.SPECIAL_MARKUPS[tagName];\n                let replace = true;\n\n                if (typeof markdown === 'object') {\n                  replace = markdown.replace;\n                  markdown = markdown.char;\n                }\n\n                let range = editor.range.expandByMarker(markerToExpand => !!markerToExpand.markups.includes(markup)); // replaced markdown (default) will have chars removed when formatted\n                // and added back when the format is removed by backspace\n\n                if (replace) {\n                  postEditor.insertText(range.head, markdown);\n                  range = range.extend(markdown.length);\n                  let endPos = postEditor.insertText(range.tail, markdown);\n                  range = range.extend(markdown.length);\n                  postEditor.toggleMarkup(tagName, range);\n                  endPos = postEditor.deleteAtPosition(endPos, -1);\n                  postEditor.setRange(endPos);\n                } else {\n                  postEditor.toggleMarkup(tagName, range);\n                  let endPos = postEditor.deleteAtPosition(range.tail);\n                  postEditor.setRange(endPos);\n                }\n              });\n              hasReversed = true;\n            }\n          }\n        });\n\n        if (hasReversed) {\n          return;\n        }\n      }\n\n      return false;\n    }\n\n  }, {\n    str: 'DEL',\n\n    run(editor, koenig) {\n      let {\n        isCollapsed,\n        head: {\n          offset,\n          section\n        }\n      } = editor.range; // if a card is selected we should delete the card then place the cursor\n      // at the beginning of the next section or select the following card\n\n      if (koenig.selectedCard) {\n        var _section$next;\n\n        let selectNextCard = ((_section$next = section.next) === null || _section$next === void 0 ? void 0 : _section$next.type) === 'card-section';\n        let nextCard = koenig.getCardFromSection(section.next);\n        koenig.deleteCard(koenig.selectedCard);\n\n        if (selectNextCard) {\n          koenig.selectCard(nextCard);\n        }\n\n        return;\n      } // if the section about to be deleted by a DEL is a card then actually\n      // delete the card rather than selecting it\n      // However, if the current paragraph is blank then delete the paragraph\n      // instead - allows blank paragraphs between cards to be deleted and\n      // feels more natural\n\n\n      if (isCollapsed && offset === section.length && section.next && section.next.type === 'card-section' && !section.isBlank) {\n        let card = koenig.getCardFromSection(section.next);\n        koenig.deleteCard(card, _koenigEditor.CURSOR_BEFORE);\n        return;\n      }\n\n      return false;\n    }\n\n  }, {\n    // trigger a closure action to indicate that the caret \"left\" the top of\n    // the editor canvas when pressing UP with the caret at the beginning of\n    // the doc\n    str: 'UP',\n\n    run(editor, koenig) {\n      let {\n        isCollapsed,\n        head: {\n          offset,\n          section\n        }\n      } = editor.range;\n      let prevSection = section.isListItem && !section.prev ? section.parent.prev : section.prev;\n\n      if (isCollapsed && (offset === 0 || section.isCardSection) && !prevSection) {\n        koenig.send('exitCursorAtTop');\n        return false;\n      } // Firefox has a bug with cursor movement where it will stop the cursor\n      // from moving upwards when a card is selected. Default behaviour in\n      // all other browsers is to place the cursor at the end of the previous\n      // section so we replicate that here\n\n\n      if (section.isCardSection && prevSection) {\n        koenig.moveCaretToTailOfSection(prevSection, false);\n        return;\n      }\n\n      return false;\n    }\n\n  }, {\n    str: 'LEFT',\n\n    run(editor, koenig) {\n      let {\n        isCollapsed,\n        head: {\n          offset,\n          section\n        }\n      } = editor.range; // trigger a closure action to indicate that the caret \"left\" the top of\n      // the editor canvas if the caret is at the very beginning of the doc\n\n      let prevSection = section.isListItem && !section.prev ? section.parent.prev : section.prev;\n\n      if (isCollapsed && (offset === 0 || section.isCardSection) && !prevSection) {\n        koenig.send('exitCursorAtTop');\n        return;\n      } // if we have a selected card move the caret to end of the previous\n      // section because the cursor will likely be at the end of the card\n      // section meaning the default behaviour would move the cursor to the\n      // beginning and require two key presses instead of one\n\n\n      if (koenig.selectedCard && koenig.selectedCard.postModel === section) {\n        koenig.moveCaretToTailOfSection(section.prev, false);\n        return;\n      }\n\n      return false;\n    }\n\n  }, {\n    str: 'CTRL+ALT+1',\n\n    run(editor, koenig) {\n      return setHeader('h1', editor, koenig);\n    }\n\n  }, {\n    str: 'CTRL+ALT+2',\n\n    run(editor, koenig) {\n      return setHeader('h2', editor, koenig);\n    }\n\n  }, {\n    str: 'CTRL+ALT+3',\n\n    run(editor, koenig) {\n      return setHeader('h3', editor, koenig);\n    }\n\n  }, {\n    str: 'CTRL+ALT+4',\n\n    run(editor, koenig) {\n      return setHeader('h4', editor, koenig);\n    }\n\n  }, {\n    str: 'CTRL+ALT+5',\n\n    run(editor, koenig) {\n      return setHeader('h5', editor, koenig);\n    }\n\n  }, {\n    str: 'CTRL+ALT+6',\n\n    run(editor, koenig) {\n      return setHeader('h6', editor, koenig);\n    }\n\n  }, {\n    str: 'CTRL+H',\n\n    run(editor, koenig) {\n      if (!_browser.default.isMac()) {\n        return cycleHeaderLevel(editor, koenig);\n      }\n\n      return false;\n    }\n\n  }, {\n    str: 'META+H',\n\n    run(editor, koenig) {\n      if (_browser.default.isMac()) {\n        return cycleHeaderLevel(editor, koenig);\n      }\n\n      return false;\n    }\n\n  }, {\n    str: 'CTRL+Q',\n\n    run(editor, koenig) {\n      if (!editor.activeSection.isMarkerable) {\n        return;\n      }\n\n      let range = editor.range;\n      let canKeepRange = !editor.activeSection.isListItem;\n      editor.run(postEditor => {\n        koenig.send('toggleSection', 'blockquote', postEditor);\n\n        if (canKeepRange) {\n          postEditor.setRange(range);\n        }\n      });\n    }\n\n  }, {\n    str: 'CTRL+L',\n\n    run(editor, koenig) {\n      if (!editor.activeSection.isMarkerable) {\n        return;\n      }\n\n      koenig.send('toggleSection', 'ul');\n    }\n\n  }, {\n    str: 'CTRL+K',\n\n    run(editor, koenig) {\n      if (_browser.default.isWin()) {\n        return koenig.send('editLink', editor.range);\n      } // default behaviour for Mac is delete to end of section\n\n\n      return false;\n    }\n\n  }, {\n    str: 'META+K',\n\n    run(editor, koenig) {\n      return koenig.send('editLink', editor.range);\n    }\n\n  }, {\n    str: 'CTRL+ALT+U',\n\n    run(editor, koenig) {\n      return koenig.send('toggleMarkup', 's');\n    }\n\n  }, {\n    str: 'CTRL+SHIFT+K',\n\n    run(editor, koenig) {\n      if (!_browser.default.isMac()) {\n        return koenig.send('toggleMarkup', 'code');\n      }\n\n      return false;\n    }\n\n  }, {\n    str: 'META+SHIFT+K',\n\n    run(editor, koenig) {\n      if (_browser.default.isMac()) {\n        return koenig.send('toggleMarkup', 'code');\n      }\n\n      return false;\n    }\n\n  }]; // key commands that are used in koenig-basic-html-input\n\n  _exports.DEFAULT_KEY_COMMANDS = DEFAULT_KEY_COMMANDS;\n  const BASIC_KEY_COMMANDS = DEFAULT_KEY_COMMANDS.filter(command => {\n    let basicCommands = ['BACKSPACE', 'CTRL+K', 'META+K', 'CTRL+ALT+U', 'CTRL+SHIFT+K', 'META+SHIFT+K'];\n    return basicCommands.includes(command.str);\n  }); // key commands that are used in koenig-text-replacement-html-input\n\n  _exports.BASIC_KEY_COMMANDS = BASIC_KEY_COMMANDS;\n  const TEXT_REPLACEMENT_KEY_COMMANDS = DEFAULT_KEY_COMMANDS.filter(command => {\n    let commands = ['BACKSPACE', 'CTRL+K', 'META+K', 'CTRL+ALT+U', 'ENTER', 'SHIFT+ENTER'];\n    return commands.includes(command.str);\n  });\n  _exports.TEXT_REPLACEMENT_KEY_COMMANDS = TEXT_REPLACEMENT_KEY_COMMANDS;\n\n  function registerKeyCommands(editor, koenig, commands = DEFAULT_KEY_COMMANDS) {\n    commands.forEach(keyCommand => {\n      editor.registerKeyCommand({\n        str: keyCommand.str,\n\n        run() {\n          return keyCommand.run(editor, koenig);\n        }\n\n      });\n    });\n  }\n});","define(\"koenig-editor/options/text-expansions\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.replaceWithListSection = replaceWithListSection;\n  _exports.default = _default;\n  _exports.registerBasicTextExpansions = registerBasicTextExpansions;\n  _exports.registerTextReplacementTextExpansions = registerTextReplacementTextExpansions;\n\n  // Text expansions watch text entry events and will look for matches, replacing\n  // the matches with additional markup, atoms, or cards\n  // https://github.com/bustlelabs/mobiledoc-kit#responding-to-text-input\n  function replaceWithListSection(editor, matches, listTagName) {\n    let {\n      range,\n      range: {\n        head,\n        head: {\n          section\n        }\n      }\n    } = editor;\n    let text = section.textUntil(head); // we don't want to convert to a heading if the user has not just\n    // finished typing the markdown (eg, they've made a previous\n    // heading expansion then Cmd-Z'ed it to get the text back then\n    // starts typing at the end of the heading)\n\n    if (text !== matches[0]) {\n      return;\n    }\n\n    if (section.isListItem) {\n      if (section.parent.tagName === listTagName) {\n        return;\n      } // toggle all list items to the new list type\n\n\n      editor.run(postEditor => {\n        let listRange = section.parent.toRange();\n        let {\n          post\n        } = editor;\n        range = range.extend(-matches[0].length);\n        postEditor.deleteRange(range);\n        let cursorListItem;\n        post.walkMarkerableSections(listRange, listItem => {\n          let isCursorListItem = listItem === section;\n          let changedListItem = postEditor.changeSectionTagName(listItem, listTagName);\n\n          if (isCursorListItem) {\n            cursorListItem = changedListItem;\n          }\n        });\n        postEditor.setRange(cursorListItem.headPosition().toRange());\n      });\n      return;\n    }\n\n    editor.run(postEditor => {\n      range = range.extend(-matches[0].length);\n      let position = postEditor.deleteRange(range);\n      postEditor.setRange(position);\n      postEditor.toggleSection(listTagName);\n    });\n  }\n\n  function _addMarkdownMarkup(_this, editor, matches, markupStr) {\n    let {\n      range\n    } = editor;\n    let match = matches[0].trim();\n    let mdChars = (match.length - matches[1].length) / 2;\n    range = range.extend(-match.length);\n    editor.run(postEditor => {\n      let startPos = postEditor.deleteRange(range.head.toRange().extend(mdChars));\n      let textRange = startPos.toRange().extend(matches[1].length);\n      let markup = editor.builder.createMarkup(markupStr);\n      postEditor.addMarkupToRange(textRange, markup);\n      let endPos = postEditor.deleteRange(textRange.tail.toRange().extend(mdChars));\n      postEditor.setRange(endPos.toRange());\n    }); // must be scheduled so that the toggle isn't reset automatically\n    // by mobiledoc-kit re-setting state after the range is updated\n\n    Ember.run.later(_this, function () {\n      editor.toggleMarkup(markupStr);\n    }, 10);\n  }\n\n  function _addNonReplacedMarkdownMarkup(_this, editor, matches, markupStr) {\n    let {\n      range\n    } = editor;\n    let match = matches[0].trim();\n    range = range.extend(-match.length);\n    editor.run(postEditor => {\n      let markup = editor.builder.createMarkup(markupStr);\n      postEditor.addMarkupToRange(range, markup);\n      postEditor.setRange(range.tail.toRange());\n    }); // must be scheduled so that the toggle isn't reset automatically\n    // by mobiledoc-kit re-setting state after the range is updated\n\n    Ember.run.later(_this, function () {\n      editor.toggleMarkup(markupStr);\n    }, 10);\n  }\n\n  function _matchStrongStar(editor, text) {\n    let matches = text.match(/(?:^|\\s)\\*\\*([^\\s*]+|[^\\s*][^*]*[^\\s])\\*\\*$/);\n\n    if (matches) {\n      _addMarkdownMarkup(this, editor, matches, 'strong');\n    }\n  }\n\n  function _matchStrongUnderscore(editor, text) {\n    let matches = text.match(/(?:^|\\s)__([^\\s_]+|[^\\s_][^_]*[^\\s])__$/);\n\n    if (matches) {\n      _addMarkdownMarkup(this, editor, matches, 'strong');\n    }\n  }\n\n  function _matchEmStar(editor, text) {\n    // (?:^|\\s)     - match beginning of input or a starting space (don't capture)\n    // \\*           - match leading *\n    // (            - start capturing group\n    //   [^\\s*]+    - match a stretch with no spaces or * chars\n    //   |          - OR\n    //   [^\\s*]     - match a single non-space or * char    | this group will only match at\n    //   [^*]*      - match zero or more non * chars        | least two chars so we need the\n    //   [^\\s]      - match a single non-space char         | [^\\s*]+ to match single chars\n    // )            - end capturing group\n    // \\*           - match trailing *\n    //\n    // input = \" *foo*\"\n    // matches[0] = \" *foo*\"\n    // matches[1] = \"foo\"\n    let matches = text.match(/(?:^|\\s)\\*([^\\s*]+|[^\\s*][^*]*[^\\s])\\*$/);\n\n    if (matches) {\n      _addMarkdownMarkup(this, editor, matches, 'em');\n    }\n  }\n\n  function _matchEmUnderscore(editor, text) {\n    let matches = text.match(/(?:^|\\s)_([^\\s_]+|[^\\s_][^_]*[^\\s])_$/);\n\n    if (matches) {\n      _addMarkdownMarkup(this, editor, matches, 'em');\n    }\n  }\n\n  function _matchSub(editor, text) {\n    let matches = text.match(/(^|[^~])~([^\\s~]+|[^\\s~][^~]*[^\\s~])~$/);\n\n    if (matches) {\n      // re-adjust the matches to remove the first matched char if it\n      // exists, otherwise our length calculations are off. This is\n      // different to other matchers because we match any char at the\n      // beginning rather than a blank space and need to allow ~~ for\n      // the strikethrough expansion\n      let newMatches = [matches[1] ? matches[0].replace(matches[1], '').trim() : matches[0], matches[2]];\n\n      _addMarkdownMarkup(this, editor, newMatches, 'sub');\n    }\n  }\n\n  function _matchStrikethrough(editor, text) {\n    let matches = text.match(/(?:^|\\s)~~([^\\s~]+|[^\\s~][^~]*[^\\s])~~$/);\n\n    if (matches) {\n      _addMarkdownMarkup(this, editor, matches, 's');\n    }\n  }\n\n  function _matchCode(editor, text) {\n    let matches = text.match(/(?:^|\\s)`([^\\s`]+|[^\\s`][^`]*[^\\s`])`$/);\n\n    if (matches) {\n      _addMarkdownMarkup(this, editor, matches, 'code');\n    }\n  }\n\n  function _matchSup(editor, text) {\n    let matches = text.match(/\\^([^\\s^]+|[^\\s^][^^]*[^\\s^])\\^$/);\n\n    if (matches) {\n      _addMarkdownMarkup(this, editor, matches, 'sup');\n    }\n  }\n\n  function _matchLink(editor, text) {\n    let {\n      range\n    } = editor;\n    let matches = text.match(/(?:^|\\s)\\[([^\\s\\]]*|[^\\s\\]][^\\]]*[^\\s\\]])\\]\\(([^\\s)]+|[^\\s)][^)]*[^\\s)])\\)/);\n\n    if (matches) {\n      let url = matches[2];\n      let linkText = matches[1] || url;\n      let hasLinkText = !!matches[1];\n      let match = matches[0].trim();\n      range = range.extend(-match.length);\n      editor.run(postEditor => {\n        let startPos = postEditor.deleteRange(range.head.toRange().extend(hasLinkText ? 1 : 3));\n        let textRange = startPos.toRange().extend(linkText.length);\n        let a = postEditor.builder.createMarkup('a', {\n          href: url\n        });\n        postEditor.addMarkupToRange(textRange, a);\n        let remainingRange = textRange.tail.toRange().extend(hasLinkText ? (matches[2] || url).length + 3 : 1);\n        let endPos = postEditor.deleteRange(remainingRange);\n        postEditor.setRange(endPos.toRange());\n      }); // must be scheduled so that the toggle isn't reset automatically\n\n      Ember.run.schedule('actions', this, function () {\n        editor.toggleMarkup('a');\n      });\n    }\n  }\n\n  function _matchImage(editor, text) {\n    let matches = text.match(/^!\\[(.*?)\\]\\((.*?)\\)$/);\n\n    if (matches) {\n      let {\n        range: {\n          head,\n          head: {\n            section\n          }\n        }\n      } = editor;\n      let src = matches[2].trim();\n      let alt = matches[1].trim(); // skip if cursor is not at end of section\n\n      if (!head.isTail()) {\n        return;\n      } // mobiledoc lists don't support cards\n\n\n      if (section.isListItem) {\n        return;\n      }\n\n      editor.run(postEditor => {\n        let card = postEditor.builder.createCardSection('image', {\n          src,\n          alt\n        }); // need to check the section before replacing else it will always\n        // add a trailing paragraph\n\n        let needsTrailingParagraph = !section.next;\n        editor.range.extend(-matches[0].length);\n        postEditor.replaceSection(editor.range.headSection, card);\n\n        if (needsTrailingParagraph) {\n          let newSection = editor.builder.createMarkupSection('p');\n          postEditor.insertSectionAtEnd(newSection);\n          postEditor.setRange(newSection.tailPosition());\n        }\n      });\n    }\n  }\n\n  function registerDashTextExpansions(mobiledocEditor) {\n    // --\\s = en dash –\n    // ---. = em dash —\n    // separate to the grouped replacement functions because we're matching on\n    // the trailing character which can be anything\n    mobiledocEditor.onTextInput({\n      name: 'hyphens',\n      match: /---?.$/,\n\n      run(editor) {\n        let {\n          range\n        } = editor;\n        let text = editor.range.head.section.textUntil(editor.range.head); // do not match if we're in code formatting\n\n        if (editor.hasActiveMarkup('code') || text.match(/[^\\s]?`[^\\s]/)) {\n          return;\n        }\n\n        let ndashMatch = text.match(/[^-]--(\\s)$/);\n\n        if (ndashMatch) {\n          let match = ndashMatch[0];\n          range = range.extend(-(match.length - 1));\n\n          if (editor.detectMarkupInRange(range, 'code')) {\n            return;\n          }\n\n          return editor.run(postEditor => {\n            let position = postEditor.deleteRange(range);\n            postEditor.insertText(position, `–${ndashMatch[1]}`);\n          });\n        }\n\n        let mdashMatch = text.match(/---([^-])$/);\n\n        if (mdashMatch) {\n          let match = mdashMatch[0];\n          range = range.extend(-match.length);\n\n          if (editor.detectMarkupInRange(range, 'code')) {\n            return;\n          }\n\n          return editor.run(postEditor => {\n            let position = postEditor.deleteRange(range);\n            postEditor.insertText(position, `—${mdashMatch[1]}`);\n          });\n        }\n      }\n\n    });\n  }\n\n  function registerInlineMarkdownTextExpansions(mobiledocEditor) {\n    // We don't want to run all our content rules on every text entry event,\n    // instead we check to see if this text entry event could match a content\n    // rule, and only then run the rules. Right now we only want to match\n    // content ending with *, _, ), ~, and `. This could increase as we support\n    // more markdown.\n    mobiledocEditor.onTextInput({\n      name: 'inline_markdown',\n      match: /[*_)~`^]$/,\n\n      run(editor, matches) {\n        let text = editor.range.head.section.textUntil(editor.range.head);\n\n        switch (matches[0]) {\n          case '*':\n            _matchStrongStar(editor, text);\n\n            _matchEmStar(editor, text);\n\n            break;\n\n          case '_':\n            _matchStrongUnderscore(editor, text);\n\n            _matchEmUnderscore(editor, text);\n\n            break;\n\n          case ')':\n            _matchLink(editor, text);\n\n            _matchImage(editor, text);\n\n            break;\n\n          case '~':\n            _matchSub(editor, text);\n\n            _matchStrikethrough(editor, text);\n\n            break;\n\n          case '`':\n            _matchCode(editor, text);\n\n            break;\n\n          case '^':\n            _matchSup(editor, text);\n\n            break;\n        }\n      }\n\n    });\n  }\n\n  function _default(mobiledocEditor, koenig) {\n    /* block level markdown ------------------------------------------------- */\n    mobiledocEditor.unregisterTextInputHandler('heading');\n    mobiledocEditor.onTextInput({\n      name: 'md_heading',\n      match: /^(#{1,6}) /,\n\n      run(editor, matches) {\n        let hashes = matches[1];\n        let headingTag = `h${hashes.length}`;\n        let {\n          range\n        } = editor;\n        let text = range.head.section.textUntil(range.head); // we don't want to convert to a heading if the user has not just\n        // finished typing the markdown (eg, they've made a previous\n        // heading expansion then Cmd-Z'ed it to get the text back then\n        // starts typing at the end of the heading)\n\n        if (text !== matches[0]) {\n          return;\n        }\n\n        editor.run(postEditor => {\n          range = range.extend(-matches[0].length);\n          let position = postEditor.deleteRange(range);\n          postEditor.setRange(position); // toggleHeaderSection will remove all formatting except links\n\n          koenig.send('toggleHeaderSection', headingTag, postEditor);\n        });\n      }\n\n    });\n    mobiledocEditor.unregisterTextInputHandler('ul');\n    mobiledocEditor.onTextInput({\n      name: 'md_ul',\n      match: /^\\* |^- /,\n\n      run(editor, matches) {\n        replaceWithListSection(editor, matches, 'ul');\n      }\n\n    });\n    mobiledocEditor.unregisterTextInputHandler('ol');\n    mobiledocEditor.onTextInput({\n      name: 'md_ol',\n      match: /^1\\.? /,\n\n      run(editor, matches) {\n        replaceWithListSection(editor, matches, 'ol');\n      }\n\n    });\n    mobiledocEditor.onTextInput({\n      name: 'md_blockquote',\n      match: /^> /,\n\n      run(editor, matches) {\n        let {\n          range\n        } = editor;\n        let {\n          head,\n          head: {\n            section\n          }\n        } = range;\n        let text = section.textUntil(head); // ensure cursor is at the end of the matched text so we don't\n        // convert text the users wants to start with `> ` and that we're\n        // not already on a blockquote section\n\n        if (text === matches[0] && section.tagName !== 'blockquote') {\n          editor.run(postEditor => {\n            range = range.extend(-matches[0].length);\n            let position = postEditor.deleteRange(range);\n            postEditor.setRange(position);\n            koenig.send('toggleSection', 'blockquote', postEditor);\n          });\n        }\n      }\n\n    });\n    mobiledocEditor.onTextInput({\n      name: 'md_hr',\n      match: /^---$/,\n\n      run(editor) {\n        let {\n          range: {\n            head,\n            head: {\n              section\n            }\n          }\n        } = editor; // Skip if cursor is not at end of section\n\n        if (!head.isTail()) {\n          return;\n        } // Skip if section is a list item\n\n\n        if (section.isListItem) {\n          return;\n        }\n\n        koenig.send('replaceWithCardSection', 'hr', section.toRange());\n      }\n\n    });\n    mobiledocEditor.onTextInput({\n      name: 'md_code',\n      match: /^```([a-zA-Z0-9]*)(\\s)$/,\n\n      run(editor, matches) {\n        let {\n          range: {\n            head,\n            head: {\n              section\n            }\n          }\n        } = editor;\n        let payload = {}; // Skip if cursor is not at end of section\n\n        if (!head.isTail()) {\n          return;\n        } // Skip if section is a list item\n\n\n        if (section.isListItem) {\n          return;\n        }\n\n        if (matches[1]) {\n          payload.language = matches[1];\n        }\n\n        if (matches[2] === '\\n') {\n          koenig.skipNewline();\n        }\n\n        koenig.send('replaceWithCardSection', 'code', section.toRange(), payload);\n      }\n\n    });\n    /* non-markdown expansions -----------------------------------------------*/\n\n    mobiledocEditor.onTextInput({\n      name: 'paywall',\n      match: /^===$/,\n\n      run(editor) {\n        let {\n          range: {\n            head,\n            head: {\n              section\n            }\n          }\n        } = editor; // Skip if cursor is not at end of section\n\n        if (!head.isTail()) {\n          return;\n        } // Skip if section is a list item\n\n\n        if (section.isListItem) {\n          return;\n        }\n\n        koenig.send('replaceWithCardSection', 'paywall', section.toRange());\n      }\n\n    });\n    /* inline markdown -------------------------------------------------------*/\n    // must come after block expansions so that the smart hyphens expansion\n    // doesn't break the divider card expansion\n\n    registerDashTextExpansions(mobiledocEditor);\n    registerInlineMarkdownTextExpansions(mobiledocEditor);\n  } // TODO: reduce duplication\n\n\n  function registerBasicTextExpansions(mobiledocEditor) {\n    // unregister mobiledoc-kit's block-level text handlers\n    mobiledocEditor.unregisterTextInputHandler('heading');\n    mobiledocEditor.unregisterTextInputHandler('ul');\n    mobiledocEditor.unregisterTextInputHandler('ol');\n    registerDashTextExpansions(mobiledocEditor);\n    registerInlineMarkdownTextExpansions(mobiledocEditor);\n  } // TODO: reduce duplication\n\n\n  function registerTextReplacementTextExpansions(mobiledocEditor, koenig) {\n    // unregister mobiledoc-kit's block-level text handlers\n    mobiledocEditor.unregisterTextInputHandler('heading');\n    mobiledocEditor.unregisterTextInputHandler('ul');\n    mobiledocEditor.onTextInput({\n      name: 'md_ul',\n      match: /^\\* |^- /,\n\n      run(editor, matches) {\n        replaceWithListSection(editor, matches, 'ul');\n      }\n\n    });\n    mobiledocEditor.unregisterTextInputHandler('ol');\n    mobiledocEditor.onTextInput({\n      name: 'md_ol',\n      match: /^1\\.? /,\n\n      run(editor, matches) {\n        replaceWithListSection(editor, matches, 'ol');\n      }\n\n    });\n    mobiledocEditor.onTextInput({\n      name: 'md_blockquote',\n      match: /^> /,\n\n      run(editor, matches) {\n        let {\n          range\n        } = editor;\n        let {\n          head,\n          head: {\n            section\n          }\n        } = range;\n        let text = section.textUntil(head); // ensure cursor is at the end of the matched text so we don't\n        // convert text the users wants to start with `> ` and that we're\n        // not already on a blockquote section\n\n        if (text === matches[0] && section.tagName !== 'blockquote') {\n          editor.run(postEditor => {\n            range = range.extend(-matches[0].length);\n            let position = postEditor.deleteRange(range);\n            postEditor.setRange(position);\n            koenig.send('toggleSection', 'blockquote', postEditor);\n          });\n        }\n      }\n\n    }); // as per registerInlineMarkdownTextExpansions but without ` for code and image matches\n\n    mobiledocEditor.onTextInput({\n      name: 'inline_markdown',\n      match: /[*_)~^]$/,\n\n      run(editor, matches) {\n        let text = editor.range.head.section.textUntil(editor.range.head);\n\n        switch (matches[0]) {\n          case '*':\n            _matchStrongStar(editor, text);\n\n            _matchEmStar(editor, text);\n\n            break;\n\n          case '_':\n            _matchStrongUnderscore(editor, text);\n\n            _matchEmUnderscore(editor, text);\n\n            break;\n\n          case ')':\n            _matchLink(editor, text);\n\n            break;\n\n          case '~':\n            _matchSub(editor, text);\n\n            _matchStrikethrough(editor, text);\n\n            break;\n\n          case '^':\n            _matchSup(editor, text);\n\n            break;\n        }\n      }\n\n    });\n    mobiledocEditor.onTextInput({\n      name: 'text_replacement',\n      match: /\\}$/,\n\n      run(editor) {\n        let text = editor.range.head.section.textUntil(editor.range.head);\n        let match = text.match(/(?:^|\\s)\\{([^\\s{}]+|[^\\s{}][^{}]*[^\\s{}])\\}$/);\n\n        if (match) {\n          _addNonReplacedMarkdownMarkup(this, editor, match, 'code');\n        }\n      }\n\n    });\n  }\n});","define(\"koenig-editor/services/koenig-drag-drop-handler\", [\"exports\", \"koenig-editor/lib/dnd/constants\", \"koenig-editor/lib/dnd/utils\", \"koenig-editor/lib/dnd/container\", \"koenig-editor/lib/dnd/scroll-handler\", \"ember-concurrency\"], function (_exports, constants, utils, _container, _scrollHandler, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // this service allows registration of \"containers\"\n  // containers can have both draggables and droppables\n  // - draggables are elements that can be dragged\n  // - droppables are elements that should respond if dragged over\n  // containers will handle the drag start/drag over/drop events triggered by this service\n  // this service keeps track of all containers and has centralized event handling for mouse events\n  var _default = Ember.Service.extend({\n    koenigUi: Ember.inject.service(),\n    containers: null,\n    ghostInfo: null,\n    grabbedElement: null,\n    // TODO: standardise on draggableInfo.element\n    sourceContainer: null,\n    isDragging: Ember.computed.alias('koenigUi.isDragging'),\n    _eventHandlers: null,\n\n    // lifecycle ---------------------------------------------------------------\n    init() {\n      this._super(...arguments);\n\n      this.containers = Ember.A([]);\n      this.scrollHandler = new _scrollHandler.default();\n      this._eventHandlers = {};\n      this._transformedDroppables = Ember.A([]); // bind any raf handler functions\n\n      this._rafUpdateGhostElementPosition = Ember.run.bind(this, this._updateGhostElementPosition); // set up document event listeners\n\n      this._addGrabListeners(); // append body elements\n\n\n      this._appendGhostContainerElement();\n    },\n\n    willDestroy() {\n      this._super(...arguments); // reset any on-going drag and remove any temporary listeners\n\n\n      this.cleanup(); // clean up document event listeners\n\n      this._removeGrabListeners(); // remove body elements\n\n\n      this._removeDropIndicator();\n\n      this._removeGhostContainerElement();\n    },\n\n    // interface ---------------------------------------------------------------\n    registerContainer(element, options) {\n      let container = new _container.default(element, options);\n      this.containers.pushObject(container); // return a minimal interface to the container because this service\n      // should be used for management rather than the container class instance\n\n      return {\n        enableDrag: () => {\n          container.enableDrag();\n        },\n        disableDrag: () => {\n          container.disableDrag();\n        },\n        refresh: () => {\n          // re-calculate draggables/droppables\n          container.refresh();\n        },\n        destroy: () => {\n          // unregister container\n          this.containers.removeObject(container);\n        }\n      };\n    },\n\n    // remove all containers and event handlers, useful when leaving an editor route\n    cleanup() {\n      this.containers = Ember.A([]); // cancel any tasks and remove intermittent event handlers\n\n      this._resetDrag();\n    },\n\n    // event handlers ----------------------------------------------------------\n    // we use a custom \"drag\" detection rather than native drag events because it\n    // allows better tracking across multiple containers and gives more flexibilty\n    // for handling touch events later if required\n    _onMouseDown(event) {\n      if (!this.isDragging && (event.button === undefined || event.button === 0)) {\n        this.grabbedElement = utils.getParent(event.target, constants.DRAGGABLE_SELECTOR);\n\n        if (this.grabbedElement) {\n          // some elements may have explicitly disabled dragging such as\n          // captions where we want to allow text selection instead\n          let dragDisabledElement = utils.getParent(event.target, constants.DRAG_DISABLED_SELECTOR);\n\n          if (dragDisabledElement && this.grabbedElement.contains(dragDisabledElement)) {\n            return;\n          }\n\n          let containerElement = utils.getParent(this.grabbedElement, constants.CONTAINER_SELECTOR);\n          let container = this.containers.findBy('element', containerElement);\n          this.sourceContainer = container;\n\n          if (container.isDragEnabled) {\n            this._waitForDragStart.perform(event).then(() => {\n              // stop the drag creating a selection\n              window.getSelection().removeAllRanges(); // set up the drag details\n\n              this._initiateDrag(event);\n            }).catch(error => {\n              // ignore cancelled tasks and throw unrecognized errors\n              if (!(0, _emberConcurrency.didCancel)(error)) {\n                throw error;\n              }\n            });\n          }\n        }\n      }\n    },\n\n    _onMouseMove(event) {\n      event.preventDefault();\n\n      if (this.draggableInfo) {\n        this.draggableInfo.mousePosition.x = event.clientX;\n        this.draggableInfo.mousePosition.y = event.clientY;\n\n        this._handleDrag(event);\n      }\n    },\n\n    _onMouseUp() {\n      if (this.draggableInfo) {\n        let success = false; // TODO: accept object rather than positioned args? OR, should the\n        // droppable data be stored on draggableInfo?\n\n        if (this._currentOverContainer) {\n          success = this._currentOverContainer.onDrop(this.draggableInfo, this._currentOverDroppableElem, this._currentOverDroppablePosition);\n        }\n\n        this.containers.forEach(container => {\n          container.onDropEnd(this.draggableInfo, success);\n        });\n      } // remove drag info and any ghost element\n\n\n      this._resetDrag();\n    },\n\n    _onKeyDown(event) {\n      // cancel drag on escape\n      if (this.isDragging && event.key === 'Escape') {\n        this._resetDrag();\n      }\n    },\n\n    // private -----------------------------------------------------------------\n    // called when we detect a mousedown event on a draggable element. Sets\n    // up temporary event handlers for mousemove, mouseup, and drag. If\n    // sufficient movement is detected before the mouse is released and we don't\n    // detect a native drag event then the task will resolve. Mouseup or drag\n    // events will cancel the task which will result in a rejected promise if\n    // the task has been cast to a promise\n    _waitForDragStart: (0, _emberConcurrency.task)(function* (startEvent) {\n      let moveThreshold = 1;\n      this.set('_dragStartConditionsMet', false);\n\n      let onMove = event => {\n        let {\n          clientX: currentX,\n          clientY: currentY\n        } = event;\n\n        if (Math.abs(startEvent.clientX - currentX) > moveThreshold || Math.abs(startEvent.clientY - currentY) > moveThreshold) {\n          this.set('_dragStartConditionsMet', true);\n        }\n      };\n\n      let onUp = () => {\n        this._waitForDragStart.cancelAll();\n      }; // give preference to native drag/drop handlers\n\n\n      let onHtmlDrag = () => {\n        this._waitForDragStart.cancelAll();\n      }; // register local events\n\n\n      document.addEventListener('mousemove', onMove, {\n        passive: false\n      });\n      document.addEventListener('mouseup', onUp, {\n        passive: false\n      });\n      document.addEventListener('drag', onHtmlDrag, {\n        passive: false\n      });\n\n      try {\n        yield (0, _emberConcurrency.waitForProperty)(this, '_dragStartConditionsMet');\n      } finally {\n        // finally is always called on task cancellation\n        this.set('_dragStartConditionsMet', false);\n        document.removeEventListener('mousemove', onMove, {\n          passive: false\n        });\n        document.removeEventListener('mouseup', onUp, {\n          passive: false\n        });\n        document.removeEventListener('drag', onHtmlDrag, {\n          passive: false\n        });\n      }\n    }).keepLatest(),\n\n    _initiateDrag(startEvent) {\n      this.set('isDragging', true);\n      utils.applyUserSelect(document.body, 'none');\n      let draggableInfo = this.sourceContainer.getDraggableInfo(this.grabbedElement);\n\n      if (!draggableInfo) {\n        this._resetDrag();\n\n        return;\n      } // append the drop indicator if it doesn't already exist - we append to\n      // the editor's element rather than body so it needs to be re-appended\n      // each time a drag is initiated in a new editor instance\n\n\n      this._appendDropIndicator();\n\n      draggableInfo = Object.assign({}, draggableInfo, {\n        element: this.grabbedElement,\n        mousePosition: {\n          x: startEvent.clientX,\n          y: startEvent.clientY\n        }\n      });\n      this.set('draggableInfo', draggableInfo);\n      this.containers.forEach(container => {\n        container.onDragStart(draggableInfo);\n      }); // style the dragged element\n\n      this.draggableInfo.element.style.opacity = 0.5; // create the ghost element and cache it's position so avoid costly\n      // getBoundingClientRect calls in the mousemove handler\n\n      let ghostElement = this.sourceContainer.createGhostElement(this.draggableInfo);\n\n      if (ghostElement && ghostElement instanceof HTMLElement) {\n        this._ghostContainerElement.appendChild(ghostElement);\n\n        let ghostElementRect = ghostElement.getBoundingClientRect();\n        let ghostInfo = {\n          element: ghostElement,\n          positionX: ghostElementRect.x,\n          positionY: ghostElementRect.y\n        };\n        this.set('ghostInfo', ghostInfo);\n      } else {\n        // eslint-disable-next-line\n        console.warn('container.createGhostElement did not return an element', this.draggableInfo, {\n          ghostElement\n        });\n\n        this._resetDrag();\n\n        return;\n      } // add watches to follow the drag/drop\n\n\n      this._addMoveListeners();\n\n      this._addReleaseListeners();\n\n      this._addKeyDownListeners(); // start ghost element following the mouse\n\n\n      requestAnimationFrame(this._rafUpdateGhostElementPosition); // let the scroll handler select the scrollable element\n\n      this.scrollHandler.dragStart(this.draggableInfo); // prevent the pointer showing the text caret over text content whilst dragging\n\n      document.querySelectorAll('[data-kg=\"editor\"]').forEach(el => {\n        el.style.setProperty('cursor', 'default', 'important');\n      }); // prevent card hover showing whilst dragging\n\n      this._elementsWithHoverRemoved = document.querySelectorAll('.kg-card-hover');\n\n      this._elementsWithHoverRemoved.forEach(el => {\n        el.classList.remove('kg-card-hover');\n      });\n\n      this._handleDrag();\n    },\n\n    _handleDrag() {\n      // hide the ghost element so that it's not picked up by elementFromPoint\n      // when determining the target element under the mouse\n      this._ghostContainerElement.hidden = true;\n      let target = document.elementFromPoint(this.draggableInfo.mousePosition.x, this.draggableInfo.mousePosition.y);\n      this.draggableInfo.target = target;\n      this._ghostContainerElement.hidden = false;\n      this.scrollHandler.dragMove(this.draggableInfo);\n      let overContainerElem = utils.getParent(target, constants.CONTAINER_SELECTOR);\n      let overDroppableElem = utils.getParent(target, constants.DROPPABLE_SELECTOR); // it's possible for the mouse to be over a \"dead\" area when dragging over\n      // the position indicator, in this case we want to prevent a parent\n      // container's droppable from being picked up\n\n      if (!overContainerElem || !overContainerElem.contains(overDroppableElem)) {\n        overDroppableElem = null;\n      }\n\n      let isLeavingContainer = this._currentOverContainerElem && overContainerElem !== this._currentOverContainerElem;\n      let isLeavingDroppable = this._currentOverDroppableElem && overDroppableElem !== this._currentOverDroppableElem;\n      let isOverContainer = overContainerElem && overContainerElem !== this._currentOverContainer;\n      let isOverDroppable = overDroppableElem;\n\n      if (isLeavingContainer) {\n        this._currentOverContainer.onDragLeaveContainer();\n\n        this._currentOverContainer = null;\n        this._currentOverContainerElem = null;\n\n        this._hideDropIndicator();\n      }\n\n      if (isOverContainer) {\n        let container = this.containers.findBy('element', overContainerElem);\n\n        if (!this._currentOverContainer) {\n          container.onDragEnterContainer();\n        }\n\n        this._currentOverContainer = container;\n        this._currentOverContainerElem = overContainerElem;\n      }\n\n      if (isLeavingDroppable) {\n        if (this._currentOverContainer) {\n          this._currentOverContainer.onDragLeaveDroppable(overDroppableElem);\n        }\n\n        this._currentOverDroppableElem = null;\n      }\n\n      if (isOverDroppable) {\n        // get position within the droppable\n        // TODO: cache droppable rects to avoid costly queries whilst dragging\n        let rect = overDroppableElem.getBoundingClientRect();\n        let inTop = this.draggableInfo.mousePosition.y < rect.y + rect.height / 2;\n        let inLeft = this.draggableInfo.mousePosition.x < rect.x + rect.width / 2;\n        let position = `${inTop ? 'top' : 'bottom'}-${inLeft ? 'left' : 'right'}`;\n\n        if (!this._currentOverDroppableElem) {\n          this._currentOverContainer.onDragEnterDroppable(overDroppableElem, position);\n        }\n\n        if (overDroppableElem !== this._currentOverDroppableElem || position !== this._currentOverDroppablePosition) {\n          this._currentOverDroppableElem = overDroppableElem;\n          this._currentOverDroppablePosition = position;\n\n          this._currentOverContainer.onDragOverDroppable(overDroppableElem, position); // container.getIndicatorPosition returns false if the drop is not allowed\n\n\n          let indicatorPosition = this._currentOverContainer.getIndicatorPosition(this.draggableInfo, overDroppableElem, position);\n\n          if (indicatorPosition) {\n            this.draggableInfo.insertIndex = indicatorPosition.insertIndex;\n\n            this._showDropIndicator(indicatorPosition);\n          } else {\n            this._hideDropIndicator();\n          }\n        }\n      }\n    },\n\n    _updateGhostElementPosition() {\n      if (this.isDragging) {\n        requestAnimationFrame(this._rafUpdateGhostElementPosition);\n      }\n\n      let {\n        ghostInfo,\n        draggableInfo\n      } = this;\n\n      if (draggableInfo && ghostInfo) {\n        let left = ghostInfo.positionX * -1 + draggableInfo.mousePosition.x;\n        let top = ghostInfo.positionY * -1 + draggableInfo.mousePosition.y;\n        ghostInfo.element.style.transform = `translate3d(${left}px, ${top}px, 0)`;\n      }\n    },\n\n    // direction = horizontal/vertical\n    // horizontal = beforeElems shift left, afterElems shift right\n    // vertical = afterElems shift down\n    // position = above/below/left/right, used to place the indicator\n    _showDropIndicator({\n      direction,\n      position,\n      beforeElems,\n      afterElems\n    }) {\n      let dropIndicator = this._dropIndicator; // reset everything except insertIndex before re-displaying indicator\n\n      this._hideDropIndicator({\n        clearInsertIndex: false\n      });\n\n      if (direction === 'horizontal') {\n        beforeElems.forEach(elem => {\n          elem.style.transform = 'translate3d(-30px, 0, 0)';\n          elem.style.transitionDuration = '250ms';\n\n          this._transformedDroppables.push(elem);\n        });\n        afterElems.forEach(elem => {\n          elem.style.transform = 'translate3d(30px, 0, 0)';\n          elem.style.transitionDuration = '250ms';\n\n          this._transformedDroppables.push(elem);\n        });\n        let leftAdjustment = 0;\n        let droppable = this._currentOverDroppableElem;\n        let droppableStyles = getComputedStyle(droppable); // calculate position based on offset parent to avoid the transform\n        // being accounted for\n\n        let parentRect = droppable.offsetParent.getBoundingClientRect();\n        let offsetLeft = parentRect.left + droppable.offsetLeft;\n        let offsetTop = parentRect.top + droppable.offsetTop;\n\n        if (position === 'left') {\n          leftAdjustment -= parseInt(droppableStyles.marginLeft);\n        } else {\n          leftAdjustment += parseInt(droppable.offsetWidth) + parseInt(droppableStyles.marginRight);\n        } // account for indicator width\n\n\n        leftAdjustment -= 2;\n        let dropIndicatorParentRect = dropIndicator.parentNode.getBoundingClientRect();\n        let lastLeft = parseInt(dropIndicator.style.left);\n        let lastTop = parseInt(dropIndicator.style.top);\n        let newLeft = offsetLeft + leftAdjustment - dropIndicatorParentRect.left;\n        let newTop = offsetTop - dropIndicatorParentRect.top;\n        let newHeight = droppable.offsetHeight; // if indicator hasn't moved, keep it showing, otherwise wait for\n        // the transform transitions to almost finish before re-positioning\n        // and showing\n        // NOTE: +- 1px is due to sub-pixel positioning of droppables\n\n        if (newTop >= lastTop - 1 && newTop <= lastTop + 1 && newLeft >= lastLeft - 1 && newLeft <= lastLeft + 1) {\n          dropIndicator.style.opacity = 1;\n        } else {\n          dropIndicator.style.opacity = 0;\n          this._dropIndicatorTimeout = Ember.run.later(this, function () {\n            dropIndicator.style.width = '4px';\n            dropIndicator.style.height = `${newHeight}px`;\n            dropIndicator.style.left = `${newLeft}px`;\n            dropIndicator.style.top = `${newTop}px`;\n            dropIndicator.style.opacity = 1;\n          }, 150);\n        }\n      }\n\n      if (direction === 'vertical') {\n        let transformSize = 60;\n        let droppable = this._currentOverDroppableElem;\n        let topElement, bottomElement;\n\n        if (position === 'top') {\n          topElement = utils.getPreviousSibling(droppable, constants.DROPPABLE_SELECTOR);\n          bottomElement = droppable;\n        } else if (position === 'bottom') {\n          topElement = droppable;\n          bottomElement = utils.getNextSibling(droppable, constants.DROPPABLE_SELECTOR);\n        } // marginTop of the first element affects the offset of the\n        // children so it needs to be taken into account\n\n\n        let firstElement = (topElement || bottomElement).parentElement.children[0];\n        let firstElementStyles = getComputedStyle(firstElement);\n        let firstTopMargin = parseInt(firstElementStyles.marginTop);\n        let newWidth = droppable.offsetWidth;\n        let newLeft = droppable.offsetLeft;\n        let newTop;\n\n        if (topElement && bottomElement) {\n          let topElementStyles = getComputedStyle(topElement);\n          let bottomElementStyles = getComputedStyle(bottomElement);\n          let offsetTop = bottomElement.offsetTop;\n          let topMargin = parseInt(topElementStyles.marginBottom);\n          let bottomMargin = parseInt(bottomElementStyles.marginTop);\n          let marginHeight = topMargin + bottomMargin;\n          newTop = offsetTop - marginHeight / 2 + firstTopMargin;\n        } else if (topElement) {\n          // at the bottom of the container\n          newTop = topElement.offsetTop + topElement.offsetHeight + firstTopMargin;\n        } else if (bottomElement) {\n          // at the top of the container, place the indicator 0px from the top\n          newTop = -26; // account for later adjustments and indicator height\n\n          transformSize = 30; // halve normal adjustment because there's no gap needed between top element\n        } // account for indicator height\n\n\n        newTop -= 2; // vertical always pushes elements down\n\n        newTop += 30; // if indicator hasn't moved, keep it showing, otherwise wait for\n        // the transform transitions to almost finish before re-positioning\n        // and showing\n        // NOTE: +- 1px is due to sub-pixel positioning of droppables\n\n        let lastLeft = parseInt(dropIndicator.style.left);\n        let lastTop = parseInt(dropIndicator.style.top);\n\n        if (newTop >= lastTop - 1 && newTop <= lastTop + 1 && newLeft >= lastLeft - 1 && newLeft <= lastLeft + 1) {\n          dropIndicator.style.opacity = 1;\n        } else {\n          dropIndicator.style.opacity = 0;\n          this._dropIndicatorTimeout = Ember.run.later(this, function () {\n            dropIndicator.style.height = '4px';\n            dropIndicator.style.width = `${newWidth}px`;\n            dropIndicator.style.left = `${newLeft}px`;\n            dropIndicator.style.top = `${newTop}px`;\n            dropIndicator.style.opacity = 1;\n          }, 150);\n        } // always update the droppable transforms so that re-positining in\n        // the same place still moves the elements. Effectively a no-op if\n        // the styles already exist\n\n\n        beforeElems.forEach(elem => {\n          elem.style.transform = 'translate3d(0, 0, 0)';\n          elem.style.transitionDuration = '250ms';\n\n          this._transformedDroppables.push(elem);\n        });\n        afterElems.forEach(elem => {\n          elem.style.transform = `translate3d(0, ${transformSize}px, 0)`;\n          elem.style.transitionDuration = '250ms';\n\n          this._transformedDroppables.push(elem);\n        });\n      }\n    },\n\n    _hideDropIndicator({\n      clearInsertIndex = true\n    } = {}) {\n      // make sure the indicator isn't shown due to a running timeout\n      Ember.run.cancel(this._dropIndicatorTimeout); // clear droppable insert index unless instructed not to (eg, when\n      // resetting the display before re-positioning the indicator)\n\n      if (clearInsertIndex && this.draggableInfo) {\n        delete this.draggableInfo.insertIndex;\n      } // reset all transforms\n\n\n      this._transformedDroppables.forEach(elem => {\n        elem.style.transform = '';\n      });\n\n      this.transformedDroppables = Ember.A([]); // hide drop indicator\n\n      if (this._dropIndicator) {\n        this._dropIndicator.style.opacity = 0;\n      }\n    },\n\n    _resetDrag() {\n      this._waitForDragStart.cancelAll();\n\n      this._hideDropIndicator();\n\n      this._removeMoveListeners();\n\n      this._removeReleaseListeners();\n\n      this.scrollHandler.dragStop();\n\n      if (this.grabbedElement) {\n        this.grabbedElement.style.opacity = '';\n      }\n\n      this.set('isDragging', false);\n      this.set('grabbedElement', null);\n      this.set('sourceContainer', null);\n\n      if (this.ghostInfo) {\n        this.ghostInfo.element.remove();\n        this.set('ghostInfo', null);\n      }\n\n      this.containers.forEach(container => {\n        container.onDragEnd();\n      });\n\n      if (this._elementsWithHoverRemoved) {\n        this._elementsWithHoverRemoved.forEach(el => {\n          el.classList.add('kg-card-hover');\n        });\n      }\n\n      delete this._elementsWithHoverRemoved;\n      utils.applyUserSelect(document.body, '');\n      document.querySelectorAll('[data-kg=\"editor\"]').forEach(el => {\n        el.style.cursor = '';\n      });\n    },\n\n    _appendDropIndicator() {\n      let dropIndicator = document.querySelector(`#${constants.DROP_INDICATOR_ID}`);\n\n      if (!dropIndicator) {\n        dropIndicator = document.createElement('div');\n        dropIndicator.id = constants.DROP_INDICATOR_ID;\n        dropIndicator.classList.add('bg-green', 'br-pill');\n        dropIndicator.style.position = 'absolute';\n        dropIndicator.style.opacity = 0;\n        dropIndicator.style.width = '4px';\n        dropIndicator.style.height = 0;\n        dropIndicator.style.zIndex = constants.DROP_INDICATOR_ZINDEX;\n        dropIndicator.style.pointerEvents = 'none'; // TODO: the scrollableElement should probably be configurable, it\n        // may need to be set on a per-container basis in case there are\n        // scrollable containers within a card\n\n        let scrollableElement = document.querySelector('.koenig-editor') || utils.getDocumentScrollingElement();\n        scrollableElement.appendChild(dropIndicator);\n      }\n\n      this._dropIndicator = dropIndicator;\n    },\n\n    _appendGhostContainerElement() {\n      if (!this._ghostContainerElement) {\n        let ghostContainerElement = document.createElement('div');\n        ghostContainerElement.id = constants.GHOST_CONTAINER_ID;\n        ghostContainerElement.style.position = 'fixed';\n        ghostContainerElement.style.width = '100%';\n        document.body.appendChild(ghostContainerElement);\n        this._ghostContainerElement = ghostContainerElement;\n      }\n    },\n\n    _removeDropIndicator() {\n      if (this._dropIndicator) {\n        this._dropIndicator.remove();\n      }\n    },\n\n    _removeGhostContainerElement() {\n      if (this.ghostContainerElement) {\n        this.ghostContainerElement.remove();\n      }\n    },\n\n    _addGrabListeners() {\n      this._addEventListener('mousedown', this._onMouseDown, {\n        passive: false\n      });\n    },\n\n    _removeGrabListeners() {\n      this._removeEventListener('mousedown');\n    },\n\n    _addMoveListeners() {\n      this._addEventListener('mousemove', this._onMouseMove, {\n        passive: false\n      });\n    },\n\n    _removeMoveListeners() {\n      this._removeEventListener('mousemove');\n    },\n\n    _addReleaseListeners() {\n      this._addEventListener('mouseup', this._onMouseUp, {\n        passive: false\n      });\n    },\n\n    _removeReleaseListeners() {\n      this._removeEventListener('mouseup');\n    },\n\n    _addKeyDownListeners() {\n      this._addEventListener('keydown', this._onKeyDown);\n    },\n\n    _removeKeyDownListeners() {\n      this._removeEventListener('keydown');\n    },\n\n    _addEventListener(e, method, options) {\n      if (!this._eventHandlers[e]) {\n        let handler = Ember.run.bind(this, method);\n        this._eventHandlers[e] = {\n          handler,\n          options\n        };\n        document.addEventListener(e, handler, options);\n      }\n    },\n\n    _removeEventListener(e) {\n      let event = this._eventHandlers[e];\n\n      if (event) {\n        document.removeEventListener(e, event.handler, event.options);\n        delete this._eventHandlers[e];\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"koenig-editor/services/koenig-ui\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _focusedCaption;\n\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\n  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n  function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\"); return _classApplyDescriptorGet(receiver, descriptor); }\n\n  function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }\n\n  function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }\n\n  function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError(\"attempted to \" + action + \" private field on non-instance\"); } return privateMap.get(receiver); }\n\n  function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError(\"attempted to set read only private field\"); } descriptor.value = value; } }\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\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n  let KoenigUiService = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, (_class = (_focusedCaption = /*#__PURE__*/new WeakMap(), class KoenigUiService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n\n      _initializerDefineProperty(this, \"captionHasFocus\", _descriptor, this);\n\n      _initializerDefineProperty(this, \"inputHasFocus\", _descriptor2, this);\n\n      _initializerDefineProperty(this, \"isDragging\", _descriptor3, this);\n\n      _focusedCaption.set(this, {\n        writable: true,\n        value: null\n      });\n    }\n\n    captionGainedFocus(caption) {\n      this.captionHasFocus = true;\n\n      _classPrivateFieldSet(this, _focusedCaption, caption);\n    }\n\n    captionLostFocus(caption) {\n      if (_classPrivateFieldGet(this, _focusedCaption) === caption) {\n        this.captionHasFocus = false;\n\n        _classPrivateFieldSet(this, _focusedCaption, null);\n      }\n    }\n\n  }), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"captionHasFocus\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"inputHasFocus\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDragging\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  })), _class));\n  _exports.default = KoenigUiService;\n});","define(\"koenig-editor/utils/create-component-atom\", [\"exports\", \"koenig-editor/components/koenig-editor\"], function (_exports, _koenigEditor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = createComponentAtom;\n  const RENDER_TYPE = 'dom';\n\n  function renderFallback(doc) {\n    let element = doc.createElement('span');\n    let text = doc.createTextNode('[placeholder for Ember component atom]');\n    element.appendChild(text);\n    return element;\n  } // sets up boilderplate for an Ember component atom\n\n\n  function createComponentAtom(name, doc = window.document) {\n    return {\n      name,\n      type: RENDER_TYPE,\n\n      // Called when the atom is added to a mobiledoc document.\n      render(atomArgs) {\n        const {\n          env,\n          options\n        } = atomArgs;\n\n        if (!options[_koenigEditor.ADD_ATOM_HOOK]) {\n          return renderFallback(doc);\n        }\n\n        const {\n          atom,\n          element\n        } = options[_koenigEditor.ADD_ATOM_HOOK](atomArgs);\n\n        env.onTeardown(() => options[_koenigEditor.REMOVE_ATOM_HOOK](atom));\n        return element;\n      }\n\n    };\n  }\n});","define(\"koenig-editor/utils/create-component-card\", [\"exports\", \"koenig-editor/components/koenig-editor\"], function (_exports, _koenigEditor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = createComponentCard;\n  const RENDER_TYPE = 'dom';\n  const DEFAULT_KOENIG_OPTIONS = {\n    hasEditMode: true,\n    selectAfterInsert: true\n  };\n\n  function renderFallback(doc) {\n    let element = doc.createElement('div');\n    let text = doc.createTextNode('[placeholder for Ember component card]');\n    element.appendChild(text);\n    return element;\n  } // sets up boilerplate for an Ember component card\n\n\n  function createComponentCard(name, koenigOptions, doc = window.document) {\n    return {\n      name,\n      type: RENDER_TYPE,\n\n      // Called when the card is added to a mobiledoc document.\n      // The `cardArg.options` object contains the methods that were set up\n      // on the `cardOptions` property of the editor in `{{koenig-editor}}`,\n      // by calling those hooks we set up everything needed for rendering\n      // ember components as cards\n      render(cardArg) {\n        let {\n          env,\n          options\n        } = cardArg;\n        let kgOptions = Ember.assign({}, DEFAULT_KOENIG_OPTIONS, koenigOptions);\n\n        if (!options[_koenigEditor.ADD_CARD_HOOK]) {\n          return renderFallback(doc);\n        }\n\n        let {\n          card,\n          element\n        } = options[_koenigEditor.ADD_CARD_HOOK](cardArg, kgOptions);\n\n        let {\n          onTeardown\n        } = env;\n        onTeardown(() => options[_koenigEditor.REMOVE_CARD_HOOK](card));\n        return element;\n      }\n\n    };\n  }\n});","define(\"koenig-editor/utils/get-scroll-parent\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getScrollParent;\n\n  function getScrollParent(node) {\n    const isElement = node instanceof HTMLElement;\n    const overflowY = isElement && window.getComputedStyle(node).overflowY;\n    const isScrollable = overflowY !== 'visible' && overflowY !== 'hidden';\n\n    if (!node) {\n      return null;\n    } else if (isScrollable && node.scrollHeight >= node.clientHeight) {\n      return node;\n    }\n\n    return getScrollParent(node.parentNode) || document.body;\n  }\n});","define(\"koenig-editor/utils/markup-utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getLinkMarkupFromRange = getLinkMarkupFromRange;\n\n  function getLinkMarkupFromRange(range) {\n    let {\n      headMarker,\n      tailMarker\n    } = range;\n\n    if (headMarker && (headMarker === tailMarker || headMarker.next === tailMarker)) {\n      return tailMarker.markups.findBy('tagName', 'a');\n    }\n  }\n});","define(\"koenig-editor/utils/oembed\", [\"exports\", \"fetch\", \"koenig-editor/utils/oembed-providers\"], function (_exports, _fetch, _oembedProviders) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = providers;\n  _exports.findProvider = findProvider;\n  _exports.fetchEmbed = fetchEmbed;\n  let filteredProviders; // normalize the oembed.com providers list\n  // implemented as a memoized function rather than direct map to avoid parsing\n  // cost during initial JS load/parse.\n\n  function providers() {\n    if (filteredProviders) {\n      return filteredProviders;\n    }\n\n    filteredProviders = (0, _oembedProviders.default)().map(provider => {\n      let {\n        provider_name,\n        // eslint-disable-line camelcase\n        provider_url,\n        // eslint-disable-line camelcase\n        endpoints\n      } = provider;\n      let [endpoint] = endpoints;\n      let {\n        schemes = [],\n        url\n      } = endpoint;\n      let hostname = new URL(url).hostname;\n      let domain = hostname ? hostname.replace('www.', '') : '';\n      return {\n        provider_name,\n        provider_url,\n        schemes,\n        domain,\n        url\n      };\n    }).filter(provider => provider.domain !== '');\n    return filteredProviders;\n  }\n\n  function findProvider(url) {\n    let candidates = providers().filter(provider => {\n      let {\n        schemes,\n        domain\n      } = provider;\n\n      if (!schemes.length) {\n        return url.includes(domain);\n      }\n\n      return schemes.some(scheme => {\n        let reg = new RegExp(scheme.replace(/\\*/g, '(.*)'), 'i');\n        return url.match(reg);\n      });\n    });\n    return candidates.length > 0 ? candidates[0] : null;\n  }\n\n  function fetchEmbed(url, provider) {\n    return new Ember.RSVP.Promise((resolve, reject) => {\n      let {\n        provider_name,\n        // eslint-disable-line camelcase\n        provider_url,\n        // eslint-disable-line camelcase\n        url: resourceUrl\n      } = provider;\n      let link = `${resourceUrl}?format=json&url=${encodeURIComponent(url)}`;\n      return (0, _fetch.default)(link, {\n        cache: 'no-cache',\n        method: 'cors'\n      }).then(res => res.json()).then(json => {\n        json.provider_name = provider_name; // eslint-disable-line camelcase\n\n        json.provider_url = provider_url; // eslint-disable-line camelcase\n\n        return resolve(json);\n      }).catch(error => reject(error));\n    });\n  }\n});","define(\"koenig-editor/utils/reading-time\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = readingTime;\n\n  function readingTime({\n    wordCount,\n    imageCount\n  }) {\n    let wordsPerMinute = 275;\n    let wordsPerSecond = wordsPerMinute / 60;\n    let minute = '1 min read';\n    let minutes = '% min read';\n    let readingTimeSeconds = wordCount / wordsPerSecond;\n\n    for (var i = 12; i > 12 - imageCount; i -= 1) {\n      // add 12 seconds for the first image, 11 for the second, etc. limiting at 3\n      readingTimeSeconds += Math.max(i, 3);\n    }\n\n    let readingTimeMinutes = Math.round(readingTimeSeconds / 60);\n\n    if (readingTimeMinutes < 1) {\n      return minute;\n    } else {\n      return minutes.replace('%', readingTimeMinutes);\n    }\n  }\n});","define(\"koenig-editor/utils/snippet-icon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = snippetIcon;\n\n  function snippetIcon(snippet) {\n    let {\n      mobiledoc\n    } = snippet;\n\n    if (mobiledoc.cards.length === 0) {\n      return 'koenig/kg-card-type-snippet-text';\n    }\n\n    let hasRichText = mobiledoc.sections.some(section => {\n      return section[0] !== 10;\n    });\n\n    if (hasRichText) {\n      return 'koenig/kg-card-type-snippet-combination';\n    }\n\n    return 'koenig/kg-card-type-snippet-block';\n  }\n});","define(\"liquid-fire/action\", [\"exports\", \"liquid-fire/promise\"], function (_exports, _promise) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class Action {\n    constructor(nameOrHandler, args = [], opts = {}) {\n      if (typeof nameOrHandler === 'function') {\n        this.handler = nameOrHandler;\n      } else {\n        this.name = nameOrHandler;\n      }\n\n      this.reversed = opts.reversed;\n      this.args = args;\n    }\n\n    validateHandler(transitionMap) {\n      if (!this.handler) {\n        this.handler = transitionMap.lookup(this.name);\n      }\n    }\n\n    run(context) {\n      return new _promise.default((resolve, reject) => {\n        _promise.default.resolve(this.handler.apply(context, this.args)).then(resolve, reject);\n      });\n    }\n\n  }\n\n  _exports.default = Action;\n});","define(\"liquid-fire/animate\", [\"exports\", \"liquid-fire/promise\", \"velocity\"], function (_exports, _promise, _velocity) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.animate = animate;\n  _exports.stop = stop;\n  _exports.setDefaults = setDefaults;\n  _exports.isAnimating = isAnimating;\n  _exports.finish = finish;\n  _exports.timeSpent = timeSpent;\n  _exports.timeRemaining = timeRemaining;\n\n  /* jshint newcap: false */\n  // Make sure Velocity always has promise support by injecting our own\n  // RSVP-based implementation if it doesn't already have one.\n  if (!_velocity.default.Promise) {\n    _velocity.default.Promise = _promise.default;\n  } // Velocity's tick() defaults to RAF's high resolution timestamp. If the browser\n  // is under high stress the RAF timestamp may have a significant offset which\n  // can result in dropping a large chunk of frames. Because of this, the use of\n  // the RAF timestamp should be opt-in.\n\n\n  _velocity.default.timestamp = false;\n\n  function animate(elt, props, opts, label) {\n    // These numbers are just sane defaults in the probably-impossible\n    // case where somebody tries to read our state before the first\n    // 'progress' callback has fired.\n    let state = {\n      percentComplete: 0,\n      timeRemaining: 100,\n      timeSpent: 0\n    };\n\n    if (!elt || elt.length === 0) {\n      return _promise.default.resolve();\n    }\n\n    if (!opts) {\n      opts = {};\n    } else {\n      opts = Ember.assign({}, opts);\n    } // By default, we ask velocity to clear the element's `display`\n    // and `visibility` properties at the start of animation. Our\n    // animated divs are all initially rendered with `display:none`\n    // and `visibility:hidden` to prevent a flash of before-animated\n    // content.\n\n\n    if (typeof opts.display === 'undefined') {\n      opts.display = '';\n    }\n\n    if (typeof opts.visibility === 'undefined') {\n      opts.visibility = '';\n    }\n\n    if (opts.progress) {\n      throw new Error(\"liquid-fire's 'animate' function reserves the use of Velocity's 'progress' option for its own nefarious purposes.\");\n    }\n\n    opts.progress = function () {\n      state.percentComplete = arguments[1];\n      state.timeRemaining = arguments[2];\n      state.timeSpent = state.timeRemaining / (1 / state.percentComplete - 1);\n    };\n\n    state.promise = _promise.default.resolve(_velocity.default.animate(elt[0], props, opts));\n\n    if (label) {\n      state.promise = state.promise.then(function () {\n        clearLabel(elt, label);\n      }, function (err) {\n        clearLabel(elt, label);\n        throw err;\n      });\n      applyLabel(elt, label, state);\n    }\n\n    return state.promise;\n  }\n\n  function stop(elt) {\n    if (elt) {\n      (0, _velocity.default)(elt[0], 'stop', true);\n    }\n  }\n\n  function setDefaults(props) {\n    for (let key in props) {\n      if (props.hasOwnProperty(key)) {\n        if (key === 'progress') {\n          throw new Error(\"liquid-fire's 'animate' function reserves the use of Velocity's '\" + key + \"' option for its own nefarious purposes.\");\n        }\n\n        _velocity.default.defaults[key] = props[key];\n      }\n    }\n  }\n\n  function isAnimating(elt, animationLabel) {\n    return elt && elt.data('lfTags_' + animationLabel);\n  }\n\n  function finish(elt, animationLabel) {\n    return stateForLabel(elt, animationLabel).promise;\n  }\n\n  function timeSpent(elt, animationLabel) {\n    return stateForLabel(elt, animationLabel).timeSpent;\n  }\n\n  function timeRemaining(elt, animationLabel) {\n    return stateForLabel(elt, animationLabel).timeRemaining;\n  }\n\n  function stateForLabel(elt, label) {\n    let state = isAnimating(elt, label);\n\n    if (!state) {\n      throw new Error(\"no animation labeled \" + label + \" is in progress\");\n    }\n\n    return state;\n  }\n\n  function applyLabel(elt, label, state) {\n    if (elt) {\n      elt.data('lfTags_' + label, state);\n    }\n  }\n\n  function clearLabel(elt, label) {\n    if (elt) {\n      elt.data('lfTags_' + label, null);\n    }\n  }\n});","define(\"liquid-fire/components/-lf-get-outlet-state\", [\"exports\", \"liquid-fire/templates/components/get-outlet-state\"], function (_exports, _getOutletState) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: '',\n    layout: _getOutletState.default\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/components/illiquid-model\", [\"exports\", \"liquid-fire/templates/components/illiquid-model\"], function (_exports, _illiquidModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const IlliquidModel = Ember.Component.extend({\n    layout: _illiquidModel.default,\n    tagName: '',\n\n    didReceiveAttrs() {\n      if (!this.get('_fixedModel')) {\n        this.set('_fixedModel', this.get('model'));\n      }\n    }\n\n  });\n  IlliquidModel.reopenClass({\n    positionalParams: ['model']\n  });\n  var _default = IlliquidModel;\n  _exports.default = _default;\n});","define(\"liquid-fire/components/liquid-bind\", [\"exports\", \"liquid-fire/templates/components/liquid-bind\"], function (_exports, _liquidBind) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let LiquidBind = Ember.Component.extend({\n    layout: _liquidBind.default,\n    tagName: '',\n    positionalParams: ['value'],\n    // needed for Ember 1.13.[0-5] and 2.0.0-beta.[1-3] support\n    forwardMatchContext: Ember.computed('matchContext', function () {\n      let m = this.get('matchContext');\n\n      if (!m) {\n        m = {};\n      }\n\n      if (!m.helperName) {\n        m.helperName = 'liquid-bind';\n      }\n\n      return m;\n    })\n  });\n  LiquidBind.reopenClass({\n    positionalParams: ['value']\n  });\n  var _default = LiquidBind;\n  _exports.default = _default;\n});","define(\"liquid-fire/components/liquid-child\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    classNames: ['liquid-child'],\n\n    init() {\n      this._super(...arguments);\n\n      this._waitingFor = [];\n    },\n\n    didInsertElement() {\n      if (this.element) {\n        this.element.style.visibility = 'hidden';\n      }\n\n      this._waitForAll().then(() => {\n        if (!this.isDestroying) {\n          this._waitingFor = null;\n          const didRenderAction = Ember.get(this, 'liquidChildDidRender');\n\n          if (typeof didRenderAction === 'function') {\n            didRenderAction(this);\n          }\n        }\n      });\n    },\n\n    _isLiquidChild: true,\n\n    _waitForMe(promise) {\n      if (!this._waitingFor) {\n        return;\n      }\n\n      this._waitingFor.push(promise);\n\n      let ancestor = this.nearestWithProperty('_isLiquidChild');\n\n      if (ancestor) {\n        ancestor._waitForMe(promise);\n      }\n    },\n\n    _waitForAll() {\n      const promises = this._waitingFor;\n      this._waitingFor = [];\n      return Ember.RSVP.Promise.all(promises).then(() => {\n        if (this._waitingFor.length > 0) {\n          return this._waitForAll();\n        }\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/components/liquid-container\", [\"exports\", \"liquid-fire/growable\", \"liquid-fire/components/liquid-measured\", \"liquid-fire/templates/components/liquid-container\", \"jquery\"], function (_exports, _growable, _liquidMeasured, _liquidContainer, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_growable.default, {\n    layout: _liquidContainer.default,\n    classNames: ['liquid-container'],\n\n    lockSize(elt, want) {\n      elt.outerWidth(want.width);\n      elt.outerHeight(want.height);\n    },\n\n    unlockSize() {\n      let doUnlock = () => {\n        this.updateAnimatingClass(false);\n\n        if (this.element) {\n          this.element.style.width = '';\n          this.element.style.height = '';\n        }\n      };\n\n      if (this._scaling) {\n        this._scaling.then(doUnlock);\n      } else {\n        doUnlock();\n      }\n    },\n\n    // We're doing this manually instead of via classNameBindings\n    // because it depends on upward-data-flow, which generates warnings\n    // under Glimmer.\n    updateAnimatingClass(on) {\n      if (this.isDestroyed) {\n        return;\n      }\n\n      if (on) {\n        this.element.classList.add('liquid-animating');\n      } else {\n        this.element.classList.remove('liquid-animating');\n      }\n    },\n\n    didInsertElement() {\n      this._super(...arguments);\n\n      this._wasInserted = true;\n    },\n\n    actions: {\n      willTransition(versions) {\n        if (!this._wasInserted) {\n          return;\n        } // Remember our own size before anything changes\n\n\n        let elt = (0, _jquery.default)(this.element);\n        this._cachedSize = (0, _liquidMeasured.measure)(elt); // And make any children absolutely positioned with fixed sizes.\n\n        for (let i = 0; i < versions.length; i++) {\n          goAbsolute(versions[i]);\n        }\n      },\n\n      afterChildInsertion(versions) {\n        let elt = (0, _jquery.default)(this.element);\n        let enableGrowth = this.get('enableGrowth') !== false; // Measure children\n\n        let sizes = [];\n\n        for (let i = 0; i < versions.length; i++) {\n          if (versions[i].view) {\n            let childElt = (0, _jquery.default)(versions[i].view.element);\n            sizes[i] = (0, _liquidMeasured.measure)(childElt);\n          }\n        } // Measure ourself again to see how big the new children make\n        // us.\n\n\n        let want = (0, _liquidMeasured.measure)(elt);\n        let have = this._cachedSize || want; // Make ourself absolute\n\n        if (enableGrowth) {\n          this.lockSize(elt, have);\n        } else {\n          this.lockSize(elt, {\n            height: Math.max(want.height, have.height),\n            width: Math.max(want.width, have.width)\n          });\n        } // Apply '.liquid-animating' to liquid-container allowing\n        // any customizable CSS control while an animating is occuring\n\n\n        this.updateAnimatingClass(true); // Make the children absolute and fixed size.\n\n        for (let i = 0; i < versions.length; i++) {\n          goAbsolute(versions[i], sizes[i]);\n        } // Kick off our growth animation\n\n\n        if (enableGrowth) {\n          this._scaling = this.animateGrowth(elt, have, want);\n        }\n      },\n\n      afterTransition(versions) {\n        for (let i = 0; i < versions.length; i++) {\n          goStatic(versions[i]);\n        }\n\n        this.unlockSize();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n\n  function goAbsolute(version, size) {\n    if (!version.view) {\n      return;\n    }\n\n    let elt = (0, _jquery.default)(version.view.element);\n    let pos = elt.position();\n\n    if (!size) {\n      size = (0, _liquidMeasured.measure)(elt);\n    }\n\n    elt.outerWidth(size.width);\n    elt.outerHeight(size.height);\n    elt.css({\n      position: 'absolute',\n      top: pos.top,\n      left: pos.left\n    });\n  }\n\n  function goStatic(version) {\n    if (version.view && !version.view.isDestroyed) {\n      let elt = (0, _jquery.default)(version.view.element);\n      elt.css({\n        width: '',\n        height: '',\n        position: ''\n      });\n    }\n  }\n});","define(\"liquid-fire/components/liquid-if\", [\"exports\", \"liquid-fire/templates/components/liquid-if\"], function (_exports, _liquidIf) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let LiquidIf = Ember.Component.extend({\n    positionalParams: ['predicate'],\n    // needed for Ember 1.13.[0-5] and 2.0.0-beta.[1-3] support\n    layout: _liquidIf.default,\n    tagName: '',\n    helperName: 'liquid-if'\n  });\n  LiquidIf.reopenClass({\n    positionalParams: ['predicate']\n  });\n  var _default = LiquidIf;\n  _exports.default = _default;\n});","define(\"liquid-fire/components/liquid-measured\", [\"exports\", \"liquid-fire/mutation-observer\", \"liquid-fire/templates/components/liquid-measured\", \"jquery\"], function (_exports, _mutationObserver, _liquidMeasured, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.measure = measure;\n  _exports.default = void 0;\n  const WINDOW_RESIZE_THROTTLE_DURATION = 100;\n\n  var _default = Ember.Component.extend({\n    layout: _liquidMeasured.default,\n\n    init() {\n      this._super(...arguments);\n\n      this._destroyOnUnload = this._destroyOnUnload.bind(this);\n    },\n\n    didInsertElement() {\n      let self = this; // This prevents margin collapse\n\n      this.element.style.overflow = 'auto';\n      this.didMutate();\n      this.observer = new _mutationObserver.default(function (mutations) {\n        self.didMutate(mutations);\n      });\n      this.observer.observe(this.get('element'), {\n        attributes: true,\n        subtree: true,\n        childList: true,\n        characterData: true\n      });\n      this.windowResizeHandler = this.windowDidResize.bind(this);\n      window.addEventListener('resize', this.windowResizeHandler);\n      let elt = (0, _jquery.default)(this.element);\n      elt.bind('webkitTransitionEnd', function () {\n        self.didMutate();\n      }); // Chrome Memory Leak: https://bugs.webkit.org/show_bug.cgi?id=93661\n\n      window.addEventListener('unload', this._destroyOnUnload);\n    },\n\n    willDestroyElement() {\n      if (this.observer) {\n        this.observer.disconnect();\n      }\n\n      window.removeEventListener('resize', this.windowResizeHandler);\n      window.removeEventListener('unload', this._destroyOnUnload);\n    },\n\n    transitionMap: Ember.inject.service('liquid-fire-transitions'),\n\n    didMutate() {\n      // by incrementing the running transitions counter here we prevent\n      // tests from falling through the gap between the time they\n      // triggered mutation the time we may actually animate in\n      // response.\n      let tmap = this.get('transitionMap');\n      tmap.incrementRunningTransitions();\n      Ember.run.next(this, function () {\n        this._didMutate();\n\n        tmap.decrementRunningTransitions();\n      });\n    },\n\n    windowDidResize() {\n      Ember.run.throttle(this, this.didMutate, WINDOW_RESIZE_THROTTLE_DURATION);\n    },\n\n    _didMutate() {\n      if (!this.element) {\n        return;\n      }\n\n      let elt = (0, _jquery.default)(this.element);\n      this.didMeasure(measure(elt));\n    },\n\n    _destroyOnUnload() {\n      this.willDestroyElement();\n    }\n\n  });\n\n  _exports.default = _default;\n\n  function measure($elt) {\n    let boundingRect = $elt[0].getBoundingClientRect(); // Calculate the scaling.\n    // NOTE: We only handle the simple zoom case.\n\n    let claimedWidth = $elt[0].offsetWidth; // Round the width because offsetWidth is rounded\n\n    let actualWidth = Math.round(boundingRect.width);\n    let scale = actualWidth > 0 ? claimedWidth / actualWidth : 0;\n    return {\n      width: boundingRect.width * scale,\n      height: boundingRect.height * scale\n    };\n  }\n});","define(\"liquid-fire/components/liquid-outlet\", [\"exports\", \"liquid-fire/templates/components/liquid-outlet\", \"liquid-fire/ember-internals\"], function (_exports, _liquidOutlet, _emberInternals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let LiquidOutlet = Ember.Component.extend({\n    layout: _liquidOutlet.default,\n    positionalParams: ['inputOutletName'],\n    // needed for Ember 1.13.[0-5] and 2.0.0-beta.[1-3] support\n    tagName: '',\n    versionEquality: Ember.computed('outletName', 'watchModels', function () {\n      let outletName = this.get('outletName');\n      let watchModels = this.get('watchModels');\n      return function (oldValue, newValue) {\n        let oldChild = (0, _emberInternals.childRoute)(oldValue, outletName);\n        let newChild = (0, _emberInternals.childRoute)(newValue, outletName);\n        return (0, _emberInternals.routeIsStable)(oldChild, newChild) && (!watchModels || (0, _emberInternals.modelIsStable)(oldChild, newChild));\n      };\n    }),\n\n    didReceiveAttrs() {\n      this._super(...arguments);\n\n      this.set('outletName', this.get('inputOutletName') || 'main');\n    }\n\n  });\n  LiquidOutlet.reopenClass({\n    positionalParams: ['inputOutletName']\n  });\n  var _default = LiquidOutlet;\n  _exports.default = _default;\n});","define(\"liquid-fire/components/liquid-spacer\", [\"exports\", \"liquid-fire/components/liquid-measured\", \"liquid-fire/growable\", \"liquid-fire/templates/components/liquid-spacer\", \"jquery\"], function (_exports, _liquidMeasured, _growable, _liquidSpacer, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_growable.default, {\n    layout: _liquidSpacer.default,\n    enabled: true,\n\n    didInsertElement() {\n      let elt = (0, _jquery.default)(this.element);\n      let child = elt.find('> div');\n      let measurements = this.myMeasurements((0, _liquidMeasured.measure)(child));\n      this.element.style.overflow = 'hidden';\n\n      if (this.get('growWidth')) {\n        elt.outerWidth(measurements.width);\n      }\n\n      if (this.get('growHeight')) {\n        elt.outerHeight(measurements.height);\n      }\n    },\n\n    sizeChanged(measurements) {\n      if (!this.get('enabled')) {\n        return;\n      }\n\n      if (!this.element) {\n        return;\n      }\n\n      let want = this.myMeasurements(measurements);\n      let elt = (0, _jquery.default)(this.element);\n      let have = (0, _liquidMeasured.measure)(elt);\n      this.animateGrowth(elt, have, want);\n    },\n\n    // given our child's outerWidth & outerHeight, figure out what our\n    // outerWidth & outerHeight should be.\n    myMeasurements(childMeasurements) {\n      let elt = (0, _jquery.default)(this.element);\n      return {\n        width: childMeasurements.width + sumCSS(elt, padding('width')) + sumCSS(elt, border('width')),\n        height: childMeasurements.height + sumCSS(elt, padding('height')) + sumCSS(elt, border('height'))\n      };\n    }\n\n  });\n\n  _exports.default = _default;\n\n  function sides(dimension) {\n    return dimension === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n  }\n\n  function padding(dimension) {\n    let s = sides(dimension);\n    return ['padding' + s[0], 'padding' + s[1]];\n  }\n\n  function border(dimension) {\n    let s = sides(dimension);\n    return ['border' + s[0] + 'Width', 'border' + s[1] + 'Width'];\n  }\n\n  function sumCSS(elt, fields) {\n    let accum = 0;\n\n    for (let i = 0; i < fields.length; i++) {\n      let num = parseFloat(elt.css(fields[i]), 10);\n\n      if (!isNaN(num)) {\n        accum += num;\n      }\n    }\n\n    return accum;\n  }\n});","define(\"liquid-fire/components/liquid-sync\", [\"exports\", \"liquid-fire/templates/components/liquid-sync\", \"liquid-fire/mixins/pausable\"], function (_exports, _liquidSync, _pausable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_pausable.default, {\n    tagName: '',\n    layout: _liquidSync.default,\n\n    didInsertElement() {\n      this.pauseLiquidFire();\n    },\n\n    actions: {\n      ready() {\n        this.resumeLiquidFire();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/components/liquid-unless\", [\"exports\", \"liquid-fire/components/liquid-if\"], function (_exports, _liquidIf) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _liquidIf.default.extend({\n    helperName: 'liquid-unless',\n    inverted: true\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/components/liquid-versions\", [\"exports\", \"jquery\", \"liquid-fire/ember-internals\", \"liquid-fire/templates/components/liquid-versions\"], function (_exports, _jquery, _emberInternals, _liquidVersions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    layout: _liquidVersions.default,\n    tagName: \"\",\n    transitionMap: Ember.inject.service('liquid-fire-transitions'),\n\n    didReceiveAttrs() {\n      this._super(...arguments);\n\n      this.appendVersion();\n    },\n\n    appendVersion() {\n      let versions = this.versions;\n      let firstTime = false;\n      let newValue = this.getAttr('value');\n      let oldValue;\n      let versionEquality = this.get('versionEquality') || defaultEqualityCheck;\n\n      if (!versions) {\n        firstTime = true;\n        versions = Ember.A();\n      } else {\n        if (versions[0]) {\n          oldValue = versions[0].value;\n        }\n      }\n\n      if (!firstTime && versionEquality(oldValue, newValue)) {\n        if (versions[0] && versionEquality !== defaultEqualityCheck) {\n          // When using custom equality checkers, we may consider values\n          // equal for our purposes that are not `===`. In that case, we\n          // still need to thread updated values through to our children\n          // so they have their own opportunity to react.\n          Ember.set(versions[0], 'value', newValue);\n        }\n\n        return;\n      }\n\n      this.notifyContainer('willTransition', versions);\n      let newVersion = {\n        value: newValue\n      };\n      versions.unshiftObject(newVersion);\n      this.firstTime = firstTime;\n\n      if (firstTime) {\n        Ember.set(this, 'versions', versions);\n      }\n\n      if (!(newValue || this.get('renderWhenFalse') || firstTime)) {\n        this._transition();\n      }\n    },\n\n    _transition() {\n      let versions = Ember.get(this, 'versions');\n      let transition;\n      let firstTime = this.firstTime;\n      this.firstTime = false;\n      this.notifyContainer('afterChildInsertion', versions);\n      transition = Ember.get(this, 'transitionMap').transitionFor({\n        versions: versions,\n        parentElement: (0, _jquery.default)((0, _emberInternals.containingElement)(this)),\n        use: Ember.get(this, 'use'),\n        rules: Ember.get(this, 'rules'),\n        matchContext: Ember.get(this, 'matchContext') || {},\n        // Using strings instead of booleans here is an\n        // optimization. The constraint system can match them more\n        // efficiently, since it treats boolean constraints as generic\n        // \"match anything truthy/falsy\" predicates, whereas string\n        // checks are a direct object property lookup.\n        firstTime: firstTime ? 'yes' : 'no'\n      });\n\n      if (this._runningTransition) {\n        this._runningTransition.interrupt();\n      }\n\n      this._runningTransition = transition;\n      transition.run().then(wasInterrupted => {\n        // if we were interrupted, we don't handle the cleanup because\n        // another transition has already taken over.\n        if (!wasInterrupted) {\n          this.finalizeVersions(versions);\n          this.notifyContainer(\"afterTransition\", versions);\n        }\n      }, err => {\n        this.finalizeVersions(versions);\n        this.notifyContainer(\"afterTransition\", versions);\n        throw err;\n      });\n    },\n\n    finalizeVersions(versions) {\n      versions.replace(1, versions.length - 1);\n    },\n\n    notifyContainer(method, versions) {\n      let target = Ember.get(this, 'notify');\n\n      if (target && !target.get('isDestroying')) {\n        target.send(method, versions);\n      }\n    },\n\n    actions: {\n      childDidRender(child) {\n        let version = Ember.get(child, 'version');\n        Ember.set(version, 'view', child);\n\n        this._transition();\n      }\n\n    }\n  }); // All falsey values are considered equal, everything else gets strict\n  // equality.\n\n\n  _exports.default = _default;\n\n  function defaultEqualityCheck(a, b) {\n    return !a && !b || a === b;\n  }\n});","define(\"liquid-fire/constrainables\", [\"exports\", \"liquid-fire/ember-internals\"], function (_exports, _emberInternals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    oldValue: {\n      reversesTo: 'newValue',\n      accessor: function (conditions) {\n        return [versionValue(conditions, 1)];\n      }\n    },\n    newValue: {\n      reversesTo: 'oldValue',\n      accessor: function (conditions) {\n        return [versionValue(conditions, 0)];\n      }\n    },\n    oldRoute: {\n      reversesTo: 'newRoute',\n      accessor: function (conditions) {\n        return (0, _emberInternals.routeName)((0, _emberInternals.childRoute)(versionValue(conditions, 1), conditions.matchContext.outletName));\n      }\n    },\n    newRoute: {\n      reversesTo: 'oldRoute',\n      accessor: function (conditions) {\n        return (0, _emberInternals.routeName)((0, _emberInternals.childRoute)(versionValue(conditions, 0), conditions.matchContext.outletName));\n      }\n    },\n    oldModel: {\n      reversesTo: 'newModel',\n      accessor: function (conditions) {\n        return (0, _emberInternals.routeModel)((0, _emberInternals.childRoute)(versionValue(conditions, 1), conditions.matchContext.outletName));\n      }\n    },\n    newModel: {\n      reversesTo: 'oldModel',\n      accessor: function (conditions) {\n        return (0, _emberInternals.routeModel)((0, _emberInternals.childRoute)(versionValue(conditions, 0), conditions.matchContext.outletName));\n      }\n    },\n    helperName: {\n      accessor(conditions) {\n        return conditions.matchContext.helperName;\n      }\n\n    },\n    outletName: {\n      accessor(conditions) {\n        return conditions.matchContext.outletName;\n      }\n\n    },\n    parentElementClass: {\n      accessor: function (conditions) {\n        let cls = conditions.parentElement.attr('class');\n\n        if (cls) {\n          return cls.split(/\\s+/);\n        }\n      }\n    },\n    parentElement: {},\n    firstTime: {},\n    media: {}\n  };\n  _exports.default = _default;\n\n  function versionValue(conditions, index) {\n    let versions = conditions.versions;\n    return versions[index] ? versions[index].value : null;\n  }\n});","define(\"liquid-fire/constraint\", [\"exports\", \"liquid-fire/constrainables\"], function (_exports, _constrainables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.constraintKeys = constraintKeys;\n  _exports.ANY = _exports.EMPTY = _exports.default = void 0;\n\n  // Every rule constraint has a target and either `keys` or\n  // `predicate`. key-based constraints are cheaper because we can check\n  // them with O(1) lookups, whereas predicates must be searched O(n).\n  class Constraint {\n    constructor(target, matcher) {\n      // targets are the properties of a transition that we can\n      // constrain\n      this.target = target;\n\n      if (arguments.length === 1) {\n        return;\n      }\n\n      if (matcher instanceof RegExp) {\n        this.predicate = function (value) {\n          return matcher.test(value);\n        };\n      } else if (typeof matcher === 'function') {\n        this.predicate = matcher;\n      } else if (typeof matcher === 'boolean') {\n        this.predicate = function (value) {\n          return matcher ? value : !value;\n        };\n      } else {\n        this.keys = constraintKeys(matcher);\n      }\n    }\n\n    invert() {\n      if (!_constrainables.default[this.target].reversesTo) {\n        return this;\n      }\n\n      let inverse = new this.constructor(_constrainables.default[this.target].reversesTo);\n      inverse.predicate = this.predicate;\n      inverse.keys = this.keys;\n      return inverse;\n    }\n\n  }\n\n  _exports.default = Constraint;\n  const EMPTY = '__liquid_fire_EMPTY__';\n  _exports.EMPTY = EMPTY;\n  const ANY = '__liquid_fire_ANY__';\n  _exports.ANY = ANY;\n\n  function constraintKeys(matcher) {\n    if (typeof matcher === 'undefined' || matcher === null) {\n      matcher = [EMPTY];\n    } else if (!Ember.isArray(matcher)) {\n      matcher = [matcher];\n    }\n\n    return Ember.A(matcher).map(elt => {\n      if (typeof elt === 'string') {\n        return elt;\n      } else {\n        return Ember.guidFor(elt);\n      }\n    });\n  }\n});","define(\"liquid-fire/constraints\", [\"exports\", \"liquid-fire/constraint\", \"liquid-fire/constrainables\"], function (_exports, _constraint, _constrainables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class Constraints {\n    constructor() {\n      this.targets = {};\n      this.ruleCounter = 0;\n\n      for (let i = 0; i < constrainableKeys.length; i++) {\n        this.targets[constrainableKeys[i]] = {};\n      }\n    }\n\n    addRule(rule) {\n      rule.id = this.ruleCounter++;\n\n      if (rule.debug) {\n        this.debug = true;\n      }\n\n      this.addHalfRule(rule);\n\n      if (rule.reverse) {\n        let inverted = rule.invert();\n        inverted.id = rule.id + ' reverse';\n        this.addHalfRule(inverted);\n      }\n    }\n\n    addHalfRule(rule) {\n      let seen = {};\n      rule.constraints.forEach(constraint => {\n        seen[constraint.target] = true;\n        this.addConstraint(rule, constraint);\n      });\n      constrainableKeys.forEach(key => {\n        if (!seen[key]) {\n          this.addConstraint(rule, {\n            target: key\n          });\n        }\n      });\n    }\n\n    addConstraint(rule, constraint) {\n      let context = this.targets[constraint.target];\n\n      if (!context) {\n        throw new Error(`Unknown constraint target ${constraint.target}`);\n      }\n\n      if (constraint.keys) {\n        constraint.keys.forEach(key => {\n          this.addKey(context, key, rule);\n        });\n      } else {\n        this.addKey(context, _constraint.ANY, rule);\n      }\n    }\n\n    addKey(context, key, rule) {\n      if (!context[key]) {\n        context[key] = {};\n      }\n\n      context[key][Ember.guidFor(rule)] = rule;\n    }\n\n    bestMatch(conditions) {\n      if (this.debug) {\n        console.log(\"[liquid-fire] Checking transition rules for\", conditions.parentElement[0]);\n      }\n\n      let rules = this.match(conditions);\n      let best = highestPriority(rules);\n\n      if (rules.length > 1 && this.debug) {\n        rules.forEach(rule => {\n          if (rule !== best && rule.debug) {\n            console.log(`${describeRule(rule)} matched, but it was superceded by another rule`);\n          }\n        });\n      }\n\n      if (best && best.debug) {\n        console.log(`${describeRule(best)} matched`);\n      }\n\n      return best;\n    }\n\n    match(conditions) {\n      let rules = this.matchByKeys(conditions);\n      rules = this.matchPredicates(conditions, rules);\n      return rules;\n    }\n\n    matchByKeys(conditions) {\n      let matchSets = [];\n\n      for (let i = 0; i < constrainableKeys.length; i++) {\n        let key = constrainableKeys[i];\n        let value = conditionAccessor(conditions, key);\n        matchSets.push(this.matchingSet(key, value));\n      }\n\n      return intersection(matchSets);\n    }\n\n    matchingSet(prop, value) {\n      let keys = (0, _constraint.constraintKeys)(value);\n      let context = this.targets[prop];\n      let matched = Ember.A();\n\n      for (let i = 0; i < keys.length; i++) {\n        if (context[keys[i]]) {\n          matched.push(context[keys[i]]);\n        }\n      }\n\n      if (keys.length === 0 && context[_constraint.EMPTY]) {\n        matched.push(context[_constraint.EMPTY]);\n      }\n\n      if (context[_constraint.ANY]) {\n        matched.push(context[_constraint.ANY]);\n      }\n\n      matched = union(matched);\n\n      if (this.debug) {\n        this.logDebugRules(matched, context, prop, value);\n      }\n\n      return matched;\n    }\n\n    logDebugRules(matched, context, target, value) {\n      Ember.A(Object.keys(context)).forEach(setKey => {\n        let set = context[setKey];\n        Ember.A(Object.keys(set)).forEach(ruleKey => {\n          let rule = set[ruleKey];\n\n          if (rule.debug && !matched[Ember.guidFor(rule)]) {\n            console.log(`${describeRule(rule)} rejected because ${target} was`, ...value);\n          }\n        });\n      });\n    }\n\n    matchPredicates(conditions, rules) {\n      let output = [];\n\n      for (let i = 0; i < rules.length; i++) {\n        let rule = rules[i];\n        let matched = true;\n\n        for (let j = 0; j < rule.constraints.length; j++) {\n          let constraint = rule.constraints[j];\n\n          if (constraint.predicate && !this.matchConstraintPredicate(conditions, rule, constraint)) {\n            matched = false;\n            break;\n          }\n        }\n\n        if (matched) {\n          output.push(rule);\n        }\n      }\n\n      return output;\n    }\n\n    matchConstraintPredicate(conditions, rule, constraint) {\n      let values = conditionAccessor(conditions, constraint.target);\n      let reverse = _constrainables.default[constraint.target].reversesTo;\n      let inverseValues;\n\n      if (reverse) {\n        inverseValues = conditionAccessor(conditions, reverse);\n      }\n\n      for (let i = 0; i < values.length; i++) {\n        if (constraint.predicate(values[i], inverseValues ? inverseValues[i] : null)) {\n          return true;\n        }\n      }\n\n      if (rule.debug) {\n        if (constraint.target === 'parentElement') {\n          values = values.map(v => v[0]);\n        }\n\n        console.log(`${describeRule(rule)} rejected because of a constraint on ${constraint.target}. ${constraint.target} was`, ...values);\n      }\n    }\n\n  }\n\n  _exports.default = Constraints;\n\n  function conditionAccessor(conditions, key) {\n    let constrainable = _constrainables.default[key];\n\n    if (constrainable.accessor) {\n      return constrainable.accessor(conditions) || [];\n    } else {\n      return [conditions[key]];\n    }\n  } // Returns a list of property values from source whose keys also\n  // appear in all of the rest objects.\n\n\n  function intersection(sets) {\n    let source = sets[0];\n    let rest = sets.slice(1);\n    let keys = Object.keys(source);\n    let keysLength = keys.length;\n    let restLength = rest.length;\n    let result = [];\n\n    for (let keyIndex = 0; keyIndex < keysLength; keyIndex++) {\n      let key = keys[keyIndex];\n      let matched = true;\n\n      for (let restIndex = 0; restIndex < restLength; restIndex++) {\n        if (!rest[restIndex].hasOwnProperty(key)) {\n          matched = false;\n          break;\n        }\n      }\n\n      if (matched) {\n        result.push(source[key]);\n      }\n    }\n\n    return result;\n  }\n\n  function union(sets) {\n    let setsLength = sets.length;\n    let output = {};\n\n    for (let i = 0; i < setsLength; i++) {\n      let set = sets[i];\n      let keys = Object.keys(set);\n\n      for (let j = 0; j < keys.length; j++) {\n        let key = keys[j];\n        output[key] = set[key];\n      }\n    }\n\n    return output;\n  }\n\n  function describeRule(rule) {\n    return `[liquid-fire rule ${rule.id}]`;\n  }\n\n  function highestPriority(rules) {\n    let best;\n    let bestScore = 0;\n\n    for (let i = 0; i < rules.length; i++) {\n      let rule = rules[i];\n      let score = rules[i].constraints.length;\n\n      if (!best || score > bestScore || score === bestScore && rule.id > best.id) {\n        best = rule;\n        bestScore = score;\n      }\n    }\n\n    return best;\n  }\n\n  const constrainableKeys = Ember.A(Object.keys(_constrainables.default));\n});","define(\"liquid-fire/dsl\", [\"exports\", \"liquid-fire/animate\", \"liquid-fire/rule\", \"liquid-fire/constraint\", \"liquid-fire/action\"], function (_exports, _animate, _rule, _constraint, _action) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class DSL {\n    constructor(map, constraints) {\n      this.map = map;\n      this.constraints = constraints;\n    }\n\n    setDefault(props) {\n      (0, _animate.setDefaults)(props);\n    }\n\n    transition() {\n      let rule = new _rule.default();\n      let parts = Array.prototype.slice.apply(arguments).reduce(function (a, b) {\n        return a.concat(b);\n      }, []);\n\n      for (let i = 0; i < parts.length; i++) {\n        rule.add(parts[i]);\n      }\n\n      rule.validate(this.map);\n      this.constraints.addRule(rule);\n    }\n\n    fromRoute(routeName) {\n      return [new _constraint.default('oldRoute', routeName)];\n    }\n\n    toRoute(routeName) {\n      return [new _constraint.default('newRoute', routeName)];\n    }\n\n    withinRoute(routeName) {\n      return this.fromRoute(routeName).concat(this.toRoute(routeName));\n    }\n\n    fromValue(matcher) {\n      return [new _constraint.default('oldValue', matcher)];\n    }\n\n    toValue(matcher) {\n      return [new _constraint.default('newValue', matcher)];\n    }\n\n    betweenValues(matcher) {\n      return this.fromValue(matcher).concat(this.toValue(matcher));\n    }\n\n    fromModel(matcher) {\n      return [new _constraint.default('oldModel', matcher)];\n    }\n\n    toModel(matcher) {\n      return [new _constraint.default('newModel', matcher)];\n    }\n\n    betweenModels(matcher) {\n      return this.fromModel(matcher).concat(this.toModel(matcher));\n    }\n\n    hasClass(name) {\n      return new _constraint.default('parentElementClass', name);\n    }\n\n    matchSelector(selector) {\n      return new _constraint.default('parentElement', function (elt) {\n        return elt.is(selector);\n      });\n    }\n\n    childOf(selector) {\n      return this.matchSelector(selector + ' > *');\n    }\n\n    use(nameOrHandler, ...args) {\n      return new _action.default(nameOrHandler, args);\n    }\n\n    reverse(nameOrHandler, ...args) {\n      return new _action.default(nameOrHandler, args, {\n        reversed: true\n      });\n    }\n\n    useAndReverse(nameOrHandler, ...args) {\n      return [this.use(nameOrHandler, ...args), this.reverse(nameOrHandler, ...args)];\n    }\n\n    onInitialRender() {\n      return new _constraint.default('firstTime', 'yes');\n    }\n\n    includingInitialRender() {\n      return new _constraint.default('firstTime', ['yes', 'no']);\n    }\n\n    inHelper(...names) {\n      return new _constraint.default('helperName', names);\n    }\n\n    outletName(...names) {\n      return new _constraint.default('outletName', names);\n    }\n\n    media(query) {\n      return new _constraint.default('media', function () {\n        return window.matchMedia(query).matches;\n      });\n    }\n\n    debug() {\n      return 'debug';\n    }\n\n  }\n\n  _exports.default = DSL;\n});","define(\"liquid-fire/ember-internals\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.childRoute = childRoute;\n  _exports.routeName = routeName;\n  _exports.routeModel = routeModel;\n  _exports.routeIsStable = routeIsStable;\n  _exports.modelIsStable = modelIsStable;\n  _exports.containingElement = containingElement;\n  const {\n    getViewBounds\n  } = Ember.ViewUtils; // Traverses down to the child routeInfo with the given name.\n\n  function childRoute(routeInfo, outletName) {\n    let outlets; // TODO: the second condition is only necessary because every\n    // constrainable accessor runs against every value all the time. It\n    // would be better to add a precondition on helperName that would\n    // short-circuit this elsewhere.\n\n    if (routeInfo && (outlets = routeInfo.outlets)) {\n      return outlets[outletName];\n    }\n  } // Finds the route name from a route state so we can apply our\n  // matching rules to it.\n\n\n  function routeName(routeInfo) {\n    if (routeInfo) {\n      return [routeInfo.render.name];\n    }\n  } // Finds the route's model from a route state so we can apply our\n  // matching rules to it. On first access, will lock down the value of\n  // the model so that future changes don't change the answer. This lets\n  // us avoid the problem of singleton controllers changing underneath\n  // us.\n\n\n  function routeModel(routeInfo) {\n    if (routeInfo && !routeInfo.hasOwnProperty('_lf_model')) {\n      let r, c;\n\n      if ((r = routeInfo.render) && (c = r.controller)) {\n        routeInfo._lf_model = Ember.get(c, 'model');\n      } else {\n        routeInfo._lf_model = null;\n      }\n    }\n\n    if (routeInfo) {\n      return [routeInfo._lf_model];\n    } else {\n      return [];\n    }\n  }\n\n  function routeIsStable(oldRouteInfo, newRouteInfo) {\n    if (!oldRouteInfo && !newRouteInfo) {\n      return true;\n    }\n\n    if (!oldRouteInfo || !newRouteInfo) {\n      return false;\n    }\n\n    return oldRouteInfo.render.template === newRouteInfo.render.template && oldRouteInfo.render.controller === newRouteInfo.render.controller;\n  } // Only valid for states that already satisfy routeIsStable\n\n\n  function modelIsStable(oldRouteInfo, newRouteInfo) {\n    let oldModel = routeModel(oldRouteInfo) || [];\n    let newModel = routeModel(newRouteInfo) || [];\n    return oldModel[0] === newModel[0];\n  }\n\n  function containingElement(view) {\n    return getViewBounds(view).parentElement;\n  }\n});","define(\"liquid-fire/ember-internals/get-outlet-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"x7Sr46gx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[30,[36,0],[\\\"outletState\\\"],null]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-get-dynamic-var\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/ember-internals/get-outlet-state.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/growable\", [\"exports\", \"liquid-fire/promise\", \"velocity\"], function (_exports, _promise, _velocity) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    growDuration: 250,\n    growPixelsPerSecond: 200,\n    growEasing: 'slide',\n    shrinkDelay: 0,\n    growDelay: 0,\n    growWidth: true,\n    growHeight: true,\n    transitionMap: Ember.inject.service('liquid-fire-transitions'),\n    animateGrowth: function (elt, have, want) {\n      this.get('transitionMap').incrementRunningTransitions();\n      let adaptations = [];\n\n      if (this.get('growWidth')) {\n        adaptations.push(this._adaptDimension(elt, 'width', have, want));\n      }\n\n      if (this.get('growHeight')) {\n        adaptations.push(this._adaptDimension(elt, 'height', have, want));\n      }\n\n      return _promise.default.all(adaptations).then(() => {\n        this.get('transitionMap').decrementRunningTransitions();\n      });\n    },\n    _adaptDimension: function (elt, dimension, have, want) {\n      if (have[dimension] === want[dimension]) {\n        return _promise.default.resolve();\n      }\n\n      let target = {};\n      target['outer' + Ember.String.capitalize(dimension)] = [want[dimension], have[dimension]];\n      return (0, _velocity.default)(elt[0], target, {\n        delay: this._delayFor(have[dimension], want[dimension]),\n        duration: this._durationFor(have[dimension], want[dimension]),\n        queue: false,\n        easing: this.get('growEasing') || this.constructor.prototype.growEasing\n      });\n    },\n    _delayFor: function (before, after) {\n      if (before > after) {\n        return this.get('shrinkDelay') || this.constructor.prototype.shrinkDelay;\n      }\n\n      return this.get('growDelay') || this.constructor.prototype.growDelay;\n    },\n    _durationFor: function (before, after) {\n      return Math.min(this.get('growDuration') || this.constructor.prototype.growDuration, 1000 * Math.abs(before - after) / (this.get('growPixelsPerSecond') || this.constructor.prototype.growPixelsPerSecond));\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/helpers/lf-lock-model\", [\"exports\", \"liquid-fire/ember-internals\"], function (_exports, _emberInternals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.lfLockModel = lfLockModel;\n  _exports.default = void 0;\n\n  function lfLockModel([routeInfo, outletName]) {\n    // ensures that the name is locked, see implementation of `routeModel`\n    (0, _emberInternals.routeModel)((0, _emberInternals.childRoute)(routeInfo, outletName));\n    return routeInfo;\n  }\n\n  var _default = Ember.Helper.helper(lfLockModel);\n\n  _exports.default = _default;\n});","define(\"liquid-fire/helpers/lf-or\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.lfOr = lfOr;\n  _exports.default = void 0;\n\n  function lfOr(params\n  /*, hash*/\n  ) {\n    return params.reduce((a, b) => a || b, false);\n  }\n\n  var _default = Ember.Helper.helper(lfOr);\n\n  _exports.default = _default;\n});","define(\"liquid-fire/index\", [\"exports\", \"liquid-fire/transition-map\", \"liquid-fire/animate\", \"liquid-fire/promise\", \"liquid-fire/mutation-observer\", \"liquid-fire/mixins/pausable\"], function (_exports, _transitionMap, _animate, _promise, _mutationObserver, _pausable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"TransitionMap\", {\n    enumerable: true,\n    get: function () {\n      return _transitionMap.default;\n    }\n  });\n  Object.defineProperty(_exports, \"animate\", {\n    enumerable: true,\n    get: function () {\n      return _animate.animate;\n    }\n  });\n  Object.defineProperty(_exports, \"stop\", {\n    enumerable: true,\n    get: function () {\n      return _animate.stop;\n    }\n  });\n  Object.defineProperty(_exports, \"isAnimating\", {\n    enumerable: true,\n    get: function () {\n      return _animate.isAnimating;\n    }\n  });\n  Object.defineProperty(_exports, \"timeSpent\", {\n    enumerable: true,\n    get: function () {\n      return _animate.timeSpent;\n    }\n  });\n  Object.defineProperty(_exports, \"timeRemaining\", {\n    enumerable: true,\n    get: function () {\n      return _animate.timeRemaining;\n    }\n  });\n  Object.defineProperty(_exports, \"finish\", {\n    enumerable: true,\n    get: function () {\n      return _animate.finish;\n    }\n  });\n  Object.defineProperty(_exports, \"Promise\", {\n    enumerable: true,\n    get: function () {\n      return _promise.default;\n    }\n  });\n  Object.defineProperty(_exports, \"MutationObserver\", {\n    enumerable: true,\n    get: function () {\n      return _mutationObserver.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Pausable\", {\n    enumerable: true,\n    get: function () {\n      return _pausable.default;\n    }\n  });\n});","define(\"liquid-fire/is-browser\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isBrowser;\n\n  function isBrowser() {\n    return typeof window !== 'undefined' && window && typeof document !== 'undefined' && document;\n  }\n});","define(\"liquid-fire/mixins/pausable\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    _transitionMap: Ember.inject.service('liquid-fire-transitions'),\n    _initializeLiquidFirePauseable: Ember.on('init', function () {\n      this._lfDefer = [];\n    }),\n\n    pauseLiquidFire() {\n      const context = this.nearestWithProperty('_isLiquidChild');\n\n      if (context) {\n        let def = new Ember.RSVP.defer();\n        let tmap = this.get('_transitionMap');\n        tmap.incrementRunningTransitions();\n        def.promise.finally(() => tmap.decrementRunningTransitions());\n\n        this._lfDefer.push(def);\n\n        context._waitForMe(def.promise);\n      }\n    },\n\n    resumeLiquidFire: Ember.on('willDestroyElement', function () {\n      let def = this._lfDefer.pop();\n\n      if (def) {\n        def.resolve();\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/mutation-observer\", [\"exports\", \"liquid-fire/is-browser\"], function (_exports, _isBrowser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.testingKick = testingKick;\n  _exports.default = void 0;\n  let activePollers = [];\n\n  function MutationPoller(callback) {\n    this.callback = callback;\n  }\n\n  MutationPoller.prototype = {\n    observe: function () {\n      this.interval = setInterval(this.callback, 100);\n      activePollers.push(this);\n    },\n    disconnect: function () {\n      clearInterval(this.interval);\n      activePollers.splice(activePollers.indexOf(this), 1);\n    }\n  };\n  let M;\n\n  if ((0, _isBrowser.default)()) {\n    M = window.MutationObserver || window.WebkitMutationObserver || MutationPoller;\n  } else {\n    M = MutationPoller;\n  }\n\n  var _default = M; // PhantomJS does not have real mutation observers, so to get\n  // reasonable test timing we have to manually kick it.\n\n  _exports.default = _default;\n\n  function testingKick() {\n    for (let i = 0; i < activePollers.length; i++) {\n      activePollers[i].callback();\n    }\n  }\n});","define(\"liquid-fire/promise\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = Ember.RSVP.Promise;\n  _exports.default = _default;\n});","define(\"liquid-fire/rule\", [\"exports\", \"liquid-fire/action\", \"liquid-fire/constraint\"], function (_exports, _action, _constraint) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class Rule {\n    constructor() {\n      this.constraints = Ember.A();\n      this.use = null;\n      this.reverse = null;\n    }\n\n    add(thing) {\n      if (thing instanceof _action.default) {\n        let prop = 'use';\n\n        if (thing.reversed) {\n          prop = 'reverse';\n        }\n\n        if (this[prop]) {\n          throw new Error(`More than one \"${prop}\" statement in the same transition rule is not allowed`);\n        }\n\n        this[prop] = thing;\n      } else if (thing === 'debug') {\n        this.debug = true;\n      } else {\n        this.constraints.push(thing);\n      }\n    }\n\n    validate(transitionMap) {\n      if (!this.use) {\n        throw new Error(`Every transition rule must include a \"use\" statement`);\n      }\n\n      this.use.validateHandler(transitionMap);\n\n      if (this.reverse) {\n        this.reverse.validateHandler(transitionMap);\n      }\n\n      if (!this.constraints.find(c => c.target === 'firstTime')) {\n        this.constraints.push(new _constraint.default('firstTime', 'no'));\n      }\n    }\n\n    invert() {\n      let rule = new this.constructor();\n      rule.use = this.reverse;\n      rule.reverse = this.use;\n      rule.constraints = this.constraints.map(c => c.invert());\n      rule.debug = this.debug;\n      return rule;\n    }\n\n  }\n\n  _exports.default = Rule;\n});","define(\"liquid-fire/running-transition\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class RunningTransition {\n    constructor(transitionMap, versions, animation) {\n      this.transitionMap = transitionMap;\n      this.animation = animation || transitionMap.lookup('default');\n      this.animationContext = publicAnimationContext(this, versions);\n    }\n\n    run() {\n      if (this._ran) {\n        return this._ran;\n      }\n\n      this.transitionMap.incrementRunningTransitions();\n      return this._ran = this._invokeAnimation().catch(err => {\n        // If the animation blew up, try to leave the DOM in a\n        // non-broken state as best we can before rethrowing.\n        return this.transitionMap.lookup('default').apply(this.animationContext).then(function () {\n          throw err;\n        });\n      }).finally(() => {\n        this.transitionMap.decrementRunningTransitions();\n      });\n    }\n\n    interrupt() {\n      this.interrupted = true;\n      this.animationContext.oldElement = null;\n      this.animationContext.newElement = null;\n      this.animationContext.older.forEach(entry => {\n        entry.element = null;\n      });\n    }\n\n    _invokeAnimation() {\n      return this.animation.run(this.animationContext).then(() => {\n        return this.interrupted;\n      });\n    }\n\n  } // This defines the public set of things that user's transition\n  // implementations can access as `this`.\n\n\n  _exports.default = RunningTransition;\n\n  function publicAnimationContext(rt, versions) {\n    let c = {};\n    addPublicVersion(c, 'new', versions[0]);\n\n    if (versions[1]) {\n      addPublicVersion(c, 'old', versions[1]);\n    }\n\n    c.older = versions.slice(2).map(v => {\n      let context = {};\n      addPublicVersion(context, null, v);\n      return context;\n    }); // Animations are allowed to look each other up.\n\n    c.lookup = function (name) {\n      return rt.transitionMap.lookup(name);\n    };\n\n    return c;\n  }\n\n  function addPublicVersion(context, prefix, version) {\n    let elt = null;\n\n    if (version.view) {\n      elt = (0, _jquery.default)(version.view.element);\n    }\n\n    let props = {\n      view: version.view,\n      element: elt,\n      value: version.value\n    };\n\n    for (let key in props) {\n      let outputKey = key;\n\n      if (props.hasOwnProperty(key)) {\n        if (prefix) {\n          outputKey = prefix + Ember.String.capitalize(key);\n        }\n\n        context[outputKey] = props[key];\n      }\n    }\n  }\n});","define(\"liquid-fire/tabbable\", [\"jquery\"], function (_jquery) {\n  \"use strict\";\n\n  /*!\n   * Adapted from jQuery UI core\n   *\n   * http://jqueryui.com\n   *\n   * Copyright 2014 jQuery Foundation and other contributors\n   * Released under the MIT license.\n   * http://jquery.org/license\n   *\n   * http://api.jqueryui.com/category/ui-core/\n   */\n  function focusable(element, isTabIndexNotNaN) {\n    let nodeName = element.nodeName.toLowerCase();\n    return (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : \"a\" === nodeName ? element.href || isTabIndexNotNaN : isTabIndexNotNaN) && visible(element);\n  }\n\n  function visible(element) {\n    let $el = (0, _jquery.default)(element);\n    return _jquery.default.expr.filters.visible(element) && !(0, _jquery.default)($el, $el.parents()).filter(function () {\n      return _jquery.default.css(this, \"visibility\") === \"hidden\";\n    }).length;\n  }\n\n  if (!_jquery.default.expr[':'].tabbable) {\n    _jquery.default.expr[':'].tabbable = function (element) {\n      let tabIndex = _jquery.default.attr(element, \"tabindex\"),\n          isTabIndexNaN = isNaN(tabIndex);\n\n      return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);\n    };\n  }\n});","define(\"liquid-fire/templates/components/get-outlet-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"5nhv+78X\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[30,[36,0],[\\\"outletState\\\"],null]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-get-dynamic-var\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/get-outlet-state.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/templates/components/illiquid-model\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"E4X8aymY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[35,0]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"_fixedModel\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/illiquid-model.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/templates/components/liquid-bind\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"X2Av55Yz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"container\\\",\\\"version\\\",\\\"version\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[35,16]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,6],null,[[\\\"value\\\",\\\"use\\\",\\\"rules\\\",\\\"matchContext\\\",\\\"versionEquality\\\",\\\"renderWhenFalse\\\",\\\"class\\\"],[[35,5],[35,4],[35,3],[35,2],[35,1],true,[35,13]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[27,[32,4]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[18,4,[[32,3]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[32,3]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[3]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,15],null,[[\\\"id\\\",\\\"class\\\",\\\"growDuration\\\",\\\"growPixelsPerSecond\\\",\\\"growEasing\\\",\\\"shrinkDelay\\\",\\\"growDelay\\\",\\\"enableGrowth\\\"],[[35,14],[35,13],[35,12],[35,11],[35,10],[35,9],[35,8],[35,7]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,6],null,[[\\\"value\\\",\\\"notify\\\",\\\"use\\\",\\\"rules\\\",\\\"matchContext\\\",\\\"versionEquality\\\",\\\"renderWhenFalse\\\"],[[35,5],[32,1],[35,4],[35,3],[35,2],[35,1],true]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[27,[32,4]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[18,4,[[32,2]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[32,2]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[2]}]]]],\\\"parameters\\\":[1]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"versionEquality\\\",\\\"forwardMatchContext\\\",\\\"rules\\\",\\\"use\\\",\\\"value\\\",\\\"liquid-versions\\\",\\\"enableGrowth\\\",\\\"growDelay\\\",\\\"shrinkDelay\\\",\\\"growEasing\\\",\\\"growPixelsPerSecond\\\",\\\"growDuration\\\",\\\"class\\\",\\\"containerId\\\",\\\"liquid-container\\\",\\\"containerless\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/liquid-bind.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/templates/components/liquid-container\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"NmStWnBJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[32,0]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/liquid-container.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/templates/components/liquid-if\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Wo93Obni\",\n    \"block\": \"{\\\"symbols\\\":[\\\"container\\\",\\\"valueVersion\\\",\\\"valueVersion\\\",\\\"&else\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[35,17]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[2,\\\"\\\\n\\\"],[6,[37,7],null,[[\\\"value\\\",\\\"matchContext\\\",\\\"use\\\",\\\"rules\\\",\\\"renderWhenFalse\\\",\\\"class\\\"],[[30,[36,0],[[35,6],[30,[36,0],[[35,5],false,true],null],[30,[36,0],[[35,5],true,false],null]],null],[30,[36,4],null,[[\\\"helperName\\\"],[[35,3]]]],[35,2],[35,1],[27,[32,4]],[35,14]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[32,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[18,5,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"      \\\"],[18,4,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[3]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,16],null,[[\\\"id\\\",\\\"class\\\",\\\"growDuration\\\",\\\"growPixelsPerSecond\\\",\\\"growEasing\\\",\\\"shrinkDelay\\\",\\\"growDelay\\\",\\\"enableGrowth\\\"],[[35,15],[35,14],[35,13],[35,12],[35,11],[35,10],[35,9],[35,8]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,7],null,[[\\\"value\\\",\\\"notify\\\",\\\"matchContext\\\",\\\"use\\\",\\\"rules\\\",\\\"renderWhenFalse\\\"],[[30,[36,0],[[35,6],[30,[36,0],[[35,5],false,true],null],[30,[36,0],[[35,5],true,false],null]],null],[32,1],[30,[36,4],null,[[\\\"helperName\\\"],[[35,3]]]],[35,2],[35,1],[27,[32,4]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[32,2]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[18,5,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[18,4,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[2]}]]]],\\\"parameters\\\":[1]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"rules\\\",\\\"use\\\",\\\"helperName\\\",\\\"hash\\\",\\\"predicate\\\",\\\"inverted\\\",\\\"liquid-versions\\\",\\\"enableGrowth\\\",\\\"growDelay\\\",\\\"shrinkDelay\\\",\\\"growEasing\\\",\\\"growPixelsPerSecond\\\",\\\"growDuration\\\",\\\"class\\\",\\\"containerId\\\",\\\"liquid-container\\\",\\\"containerless\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/liquid-if.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/templates/components/liquid-measured\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"bZSr7R+R\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/liquid-measured.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/templates/components/liquid-outlet\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Q2iYZ9TD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"outletState\\\",\\\"version\\\"],\\\"statements\\\":[[6,[37,19],null,null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,18],[[30,[36,17],[[32,1],[35,0]],null]],[[\\\"containerId\\\",\\\"versionEquality\\\",\\\"matchContext\\\",\\\"class\\\",\\\"use\\\",\\\"rules\\\",\\\"containerless\\\",\\\"growDuration\\\",\\\"growPixelsPerSecond\\\",\\\"growEasing\\\",\\\"shrinkDelay\\\",\\\"growDelay\\\",\\\"enableGrowth\\\"],[[35,16],[35,15],[30,[36,14],null,[[\\\"outletName\\\",\\\"helperName\\\"],[[35,0],\\\"liquid-outlet\\\"]]],[35,13],[35,12],[35,11],[35,10],[35,9],[35,8],[35,7],[35,6],[35,5],[35,4]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,3],null,[[\\\"outletState\\\"],[[32,2]]],[[\\\"default\\\"],[{\\\"statements\\\":[[1,[30,[36,2],[[30,[36,1],[[35,0]],null]],null]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[2]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"outletName\\\",\\\"-outlet\\\",\\\"component\\\",\\\"-with-dynamic-vars\\\",\\\"enableGrowth\\\",\\\"growDelay\\\",\\\"shrinkDelay\\\",\\\"growEasing\\\",\\\"growPixelsPerSecond\\\",\\\"growDuration\\\",\\\"containerless\\\",\\\"rules\\\",\\\"use\\\",\\\"class\\\",\\\"hash\\\",\\\"versionEquality\\\",\\\"containerId\\\",\\\"lf-lock-model\\\",\\\"liquid-bind\\\",\\\"-lf-get-outlet-state\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/liquid-outlet.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/templates/components/liquid-spacer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"YduBfjxZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,1],null,[[\\\"didMeasure\\\"],[[30,[36,0],[[32,0],[32,0,[\\\"sizeChanged\\\"]]],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[18,1,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"liquid-measured\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/liquid-spacer.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/templates/components/liquid-sync\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"U8QYL3/e\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[30,[36,0],[[32,0],\\\"ready\\\"],null]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/liquid-sync.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/templates/components/liquid-versions\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"pO7+ASef\",\n    \"block\": \"{\\\"symbols\\\":[\\\"version\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,8],[[30,[36,7],[[30,[36,7],[[35,6]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,5],[[30,[36,4],[[35,3],[32,1,[\\\"value\\\"]]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,2],null,[[\\\"version\\\",\\\"liquidChildDidRender\\\",\\\"class\\\"],[[32,1],[30,[36,1],[[32,0],\\\"childDidRender\\\"],null],[35,0]]],[[\\\"default\\\"],[{\\\"statements\\\":[[18,2,[[32,1,[\\\"value\\\"]]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"class\\\",\\\"action\\\",\\\"liquid-child\\\",\\\"renderWhenFalse\\\",\\\"lf-or\\\",\\\"if\\\",\\\"versions\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n    \"meta\": {\n      \"moduleName\": \"liquid-fire/templates/components/liquid-versions.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"liquid-fire/transition-map\", [\"exports\", \"liquid-fire/running-transition\", \"liquid-fire/dsl\", \"liquid-fire/action\", \"liquid-fire/constraints\"], function (_exports, _runningTransition, _dsl, _action, _constraints) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let TransitionMap = Ember.Service.extend({\n    init() {\n      this._super(...arguments);\n\n      this.activeCount = 0;\n      this.constraints = new _constraints.default();\n      let owner = Ember.getOwner(this);\n      let config;\n\n      if (owner.factoryFor) {\n        let maybeConfig = owner.factoryFor('transitions:main');\n        config = maybeConfig && maybeConfig.class;\n      } else {\n        config = owner._lookupFactory('transitions:main');\n      }\n\n      if (config) {\n        this.map(config);\n      }\n    },\n\n    runningTransitions() {\n      return this.activeCount;\n    },\n\n    incrementRunningTransitions() {\n      this.activeCount++;\n    },\n\n    decrementRunningTransitions() {\n      this.activeCount--;\n      Ember.run.next(() => {\n        this._maybeResolveIdle();\n      });\n    },\n\n    waitUntilIdle() {\n      if (this._waitingPromise) {\n        return this._waitingPromise;\n      }\n\n      return this._waitingPromise = new Ember.RSVP.Promise(resolve => {\n        this._resolveWaiting = resolve;\n        Ember.run.next(() => {\n          this._maybeResolveIdle();\n        });\n      });\n    },\n\n    _maybeResolveIdle() {\n      if (this.activeCount === 0 && this._resolveWaiting) {\n        let resolveWaiting = this._resolveWaiting;\n        this._resolveWaiting = null;\n        this._waitingPromise = null;\n        resolveWaiting();\n      }\n    },\n\n    lookup(transitionName) {\n      let owner = Ember.getOwner(this);\n      let handler;\n\n      if (owner.factoryFor) {\n        let maybeHandler = owner.factoryFor('transition:' + transitionName);\n        handler = maybeHandler && maybeHandler.class;\n      } else {\n        handler = owner._lookupFactory('transition:' + transitionName);\n      }\n\n      if (!handler) {\n        throw new Error(\"unknown transition name: \" + transitionName);\n      }\n\n      return handler;\n    },\n\n    defaultAction() {\n      if (!this._defaultAction) {\n        this._defaultAction = new _action.default(this.lookup('default'));\n      }\n\n      return this._defaultAction;\n    },\n\n    constraintsFor(conditions) {\n      if (conditions.rules) {\n        let constraints = new _constraints.default();\n        this.map(conditions.rules, constraints);\n        return constraints;\n      } else {\n        return this.constraints;\n      }\n    },\n\n    transitionFor(conditions) {\n      let action;\n\n      if (conditions.use && conditions.firstTime !== 'yes') {\n        action = new _action.default(conditions.use);\n        action.validateHandler(this);\n      } else {\n        let rule = this.constraintsFor(conditions).bestMatch(conditions);\n\n        if (rule) {\n          action = rule.use;\n        } else {\n          action = this.defaultAction();\n        }\n      }\n\n      return new _runningTransition.default(this, conditions.versions, action);\n    },\n\n    map(handler, constraints) {\n      if (handler) {\n        handler.apply(new _dsl.default(this, constraints || this.constraints));\n      }\n\n      return this;\n    }\n\n  });\n\n  if (true\n  /* DEBUG */\n  ) {\n    TransitionMap.reopen({\n      init() {\n        this._super(...arguments);\n\n        if (Ember.testing) {\n          this._waiter = () => {\n            return this.runningTransitions() === 0;\n          };\n\n          Ember.Test.registerWaiter(this._waiter);\n        }\n      },\n\n      willDestroy() {\n        if (this._waiter) {\n          Ember.Test.unregisterWaiter(this._waiter);\n          this._waiter = null;\n        }\n\n        this._super(...arguments);\n      }\n\n    });\n  }\n\n  TransitionMap.reopenClass({\n    map(handler) {\n      let t = TransitionMap.create();\n      t.map(handler);\n      return t;\n    }\n\n  });\n  var _default = TransitionMap;\n  _exports.default = _default;\n});","define(\"liquid-fire/transitions/cross-fade\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = crossFade;\n\n  // BEGIN-SNIPPET cross-fade-definition\n  function crossFade(opts = {}) {\n    (0, _liquidFire.stop)(this.oldElement);\n    return _liquidFire.Promise.all([(0, _liquidFire.animate)(this.oldElement, {\n      opacity: 0\n    }, opts), (0, _liquidFire.animate)(this.newElement, {\n      opacity: [opts.maxOpacity || 1, 0]\n    }, opts)]);\n  } // END-SNIPPET\n\n});","define(\"liquid-fire/transitions/default\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = defaultTransition;\n\n  // This is what we run when no animation is asked for. It just sets\n  // the newly-added element to visible (because we always start them\n  // out invisible so that transitions can control their initial\n  // appearance).\n  function defaultTransition() {\n    if (this.newElement) {\n      this.newElement.css({\n        visibility: ''\n      });\n    }\n\n    return _liquidFire.Promise.resolve();\n  }\n});","define(\"liquid-fire/transitions/explode\", [\"exports\", \"jquery\", \"liquid-fire\"], function (_exports, _jquery, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = explode;\n\n  // Explode is not, by itself, an animation. It exists to pull apart\n  // other elements so that each of the pieces can be targeted by\n  // animations.\n  function explode(...pieces) {\n    let seenElements = {};\n    let sawBackgroundPiece = false;\n    let promises = pieces.map(piece => {\n      if (piece.matchBy) {\n        return matchAndExplode(this, piece, seenElements);\n      } else if (piece.pick || piece.pickOld || piece.pickNew) {\n        return explodePiece(this, piece, seenElements);\n      } else {\n        sawBackgroundPiece = true;\n        return runAnimation(this, piece);\n      }\n    });\n\n    if (!sawBackgroundPiece) {\n      if (this.newElement) {\n        this.newElement.css({\n          visibility: ''\n        });\n      }\n\n      if (this.oldElement) {\n        this.oldElement.css({\n          visibility: 'hidden'\n        });\n      }\n    }\n\n    return _liquidFire.Promise.all(promises);\n  }\n\n  function explodePiece(context, piece, seen) {\n    let childContext = Ember.assign({}, context);\n    let selectors = [piece.pickOld || piece.pick, piece.pickNew || piece.pick];\n    let cleanupOld, cleanupNew;\n\n    if (selectors[0] || selectors[1]) {\n      cleanupOld = _explodePart(context, 'oldElement', childContext, selectors[0], seen);\n      cleanupNew = _explodePart(context, 'newElement', childContext, selectors[1], seen);\n\n      if (!cleanupOld && !cleanupNew) {\n        return _liquidFire.Promise.resolve();\n      }\n    }\n\n    return runAnimation(childContext, piece).finally(() => {\n      if (cleanupOld) {\n        cleanupOld();\n      }\n\n      if (cleanupNew) {\n        cleanupNew();\n      }\n    });\n  }\n\n  function _explodePart(context, field, childContext, selector, seen) {\n    let child, childOffset, width, height, newChild;\n    let elt = context[field];\n    childContext[field] = null;\n\n    if (elt && selector) {\n      child = elt.find(selector).filter(function () {\n        let guid = Ember.guidFor(this);\n\n        if (!seen[guid]) {\n          seen[guid] = true;\n          return true;\n        }\n      });\n\n      if (child.length > 0) {\n        childOffset = child.offset();\n        width = child.outerWidth();\n        height = child.outerHeight();\n        newChild = child.clone(); // Hide the original element\n\n        child.css({\n          visibility: 'hidden'\n        }); // If the original element's parent was hidden, hide our clone\n        // too.\n\n        if (elt.css('visibility') === 'hidden') {\n          newChild.css({\n            visibility: 'hidden'\n          });\n        }\n\n        newChild.appendTo(elt.parent());\n        newChild.outerWidth(width);\n        newChild.outerHeight(height);\n        let newParentOffset = newChild.offsetParent().offset();\n        newChild.css({\n          position: 'absolute',\n          top: childOffset.top - newParentOffset.top,\n          left: childOffset.left - newParentOffset.left,\n          margin: 0\n        }); // Pass the clone to the next animation\n\n        childContext[field] = newChild;\n        return function cleanup() {\n          newChild.remove();\n          child.css({\n            visibility: ''\n          });\n        };\n      }\n    }\n  }\n\n  function animationFor(context, piece) {\n    let name, args, func;\n\n    if (!piece.use) {\n      throw new Error(\"every argument to the 'explode' animation must include a followup animation to 'use'\");\n    }\n\n    if (Ember.isArray(piece.use)) {\n      name = piece.use[0];\n      args = piece.use.slice(1);\n    } else {\n      name = piece.use;\n      args = [];\n    }\n\n    if (typeof name === 'function') {\n      func = name;\n    } else {\n      func = context.lookup(name);\n    }\n\n    return function () {\n      return _liquidFire.Promise.resolve(func.apply(this, args));\n    };\n  }\n\n  function runAnimation(context, piece) {\n    return new _liquidFire.Promise((resolve, reject) => {\n      animationFor(context, piece).apply(context).then(resolve, reject);\n    });\n  }\n\n  function matchAndExplode(context, piece, seen) {\n    if (!context.oldElement || !context.newElement) {\n      return _liquidFire.Promise.resolve();\n    } // reduce the matchBy scope\n\n\n    if (piece.pick) {\n      context.oldElement = context.oldElement.find(piece.pick);\n      context.newElement = context.newElement.find(piece.pick);\n    }\n\n    if (piece.pickOld) {\n      context.oldElement = context.oldElement.find(piece.pickOld);\n    }\n\n    if (piece.pickNew) {\n      context.newElement = context.newElement.find(piece.pickNew);\n    } // use the fastest selector available\n\n\n    let selector;\n\n    if (piece.matchBy === 'id') {\n      selector = attrValue => {\n        return `#${attrValue}`;\n      };\n    } else if (piece.matchBy === 'class') {\n      selector = attrValue => {\n        return `.${attrValue}`;\n      };\n    } else {\n      selector = attrValue => {\n        let escapedAttrValue = attrValue.replace(/'/g, \"\\\\'\");\n        return `[${piece.matchBy}='${escapedAttrValue}']`;\n      };\n    }\n\n    let hits = Ember.A(context.oldElement.find(`[${piece.matchBy}]`).toArray());\n    return _liquidFire.Promise.all(hits.map(elt => {\n      let attrValue = (0, _jquery.default)(elt).attr(piece.matchBy); // if there is no match for a particular item just skip it\n\n      if (attrValue === \"\" || context.newElement.find(selector(attrValue)).length === 0) {\n        return _liquidFire.Promise.resolve();\n      }\n\n      return explodePiece(context, {\n        pick: selector(attrValue),\n        use: piece.use\n      }, seen);\n    }));\n  }\n});","define(\"liquid-fire/transitions/fade\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = fade;\n\n  // BEGIN-SNIPPET fade-definition\n  function fade(opts = {}) {\n    let firstStep;\n    let outOpts = opts;\n    let fadingElement = findFadingElement(this);\n\n    if (fadingElement) {\n      // We still have some older version that is in the process of\n      // fading out, so out first step is waiting for it to finish.\n      firstStep = (0, _liquidFire.finish)(fadingElement, 'fade-out');\n    } else {\n      if ((0, _liquidFire.isAnimating)(this.oldElement, 'fade-in')) {\n        // if the previous view is partially faded in, scale its\n        // fade-out duration appropriately.\n        outOpts = {\n          duration: (0, _liquidFire.timeSpent)(this.oldElement, 'fade-in')\n        };\n      }\n\n      (0, _liquidFire.stop)(this.oldElement);\n      firstStep = (0, _liquidFire.animate)(this.oldElement, {\n        opacity: 0\n      }, outOpts, 'fade-out');\n    }\n\n    return firstStep.then(() => {\n      return (0, _liquidFire.animate)(this.newElement, {\n        opacity: [opts.maxOpacity || 1, 0]\n      }, opts, 'fade-in');\n    });\n  }\n\n  function findFadingElement(context) {\n    for (let i = 0; i < context.older.length; i++) {\n      let entry = context.older[i];\n\n      if ((0, _liquidFire.isAnimating)(entry.element, 'fade-out')) {\n        return entry.element;\n      }\n    }\n\n    if ((0, _liquidFire.isAnimating)(context.oldElement, 'fade-out')) {\n      return context.oldElement;\n    }\n  } // END-SNIPPET\n\n});","define(\"liquid-fire/transitions/flex-grow\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = flexGrow;\n\n  function flexGrow(opts) {\n    (0, _liquidFire.stop)(this.oldElement);\n    return _liquidFire.Promise.all([(0, _liquidFire.animate)(this.oldElement, {\n      'flex-grow': 0\n    }, opts), (0, _liquidFire.animate)(this.newElement, {\n      'flex-grow': [1, 0]\n    }, opts)]);\n  }\n});","define(\"liquid-fire/transitions/fly-to\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = flyTo;\n\n  function flyTo(opts = {}) {\n    if (!this.newElement) {\n      return _liquidFire.Promise.resolve();\n    } else if (!this.oldElement) {\n      this.newElement.css({\n        visibility: ''\n      });\n      return _liquidFire.Promise.resolve();\n    }\n\n    let oldOffset = this.oldElement.offset();\n    let newOffset = this.newElement.offset();\n\n    if (opts.movingSide === 'new') {\n      let motion = {\n        translateX: [0, oldOffset.left - newOffset.left],\n        translateY: [0, oldOffset.top - newOffset.top],\n        outerWidth: [this.newElement.outerWidth(), this.oldElement.outerWidth()],\n        outerHeight: [this.newElement.outerHeight(), this.oldElement.outerHeight()]\n      };\n      this.oldElement.css({\n        visibility: 'hidden'\n      });\n      return (0, _liquidFire.animate)(this.newElement, motion, opts);\n    } else {\n      let motion = {\n        translateX: newOffset.left - oldOffset.left,\n        translateY: newOffset.top - oldOffset.top,\n        outerWidth: this.newElement.outerWidth(),\n        outerHeight: this.newElement.outerHeight()\n      };\n      this.newElement.css({\n        visibility: 'hidden'\n      });\n      return (0, _liquidFire.animate)(this.oldElement, motion, opts).then(() => {\n        this.newElement.css({\n          visibility: ''\n        });\n      });\n    }\n  }\n});","define(\"liquid-fire/transitions/move-over\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = moveOver;\n\n  function moveOver(dimension, direction, opts) {\n    let oldParams = {},\n        newParams = {},\n        firstStep,\n        property,\n        measure;\n\n    if (dimension.toLowerCase() === 'x') {\n      property = 'translateX';\n      measure = 'width';\n    } else {\n      property = 'translateY';\n      measure = 'height';\n    }\n\n    if ((0, _liquidFire.isAnimating)(this.oldElement, 'moving-in')) {\n      firstStep = (0, _liquidFire.finish)(this.oldElement, 'moving-in');\n    } else {\n      (0, _liquidFire.stop)(this.oldElement);\n      firstStep = _liquidFire.Promise.resolve();\n    }\n\n    return firstStep.then(() => {\n      let bigger = biggestSize(this, measure);\n      oldParams[property] = bigger * direction + 'px';\n      newParams[property] = [\"0px\", -1 * bigger * direction + 'px'];\n      return _liquidFire.Promise.all([(0, _liquidFire.animate)(this.oldElement, oldParams, opts), (0, _liquidFire.animate)(this.newElement, newParams, opts, 'moving-in')]);\n    });\n  }\n\n  function biggestSize(context, dimension) {\n    let sizes = [];\n\n    if (context.newElement) {\n      sizes.push(parseInt(context.newElement.css(dimension), 10));\n      sizes.push(parseInt(context.newElement.parent().css(dimension), 10));\n    }\n\n    if (context.oldElement) {\n      sizes.push(parseInt(context.oldElement.css(dimension), 10));\n      sizes.push(parseInt(context.oldElement.parent().css(dimension), 10));\n    }\n\n    return Math.max.apply(null, sizes);\n  }\n});","define(\"liquid-fire/transitions/scale\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = scale;\n\n  function scale(opts = {}) {\n    return (0, _liquidFire.animate)(this.oldElement, {\n      scale: [0.2, 1]\n    }, opts).then(() => {\n      return (0, _liquidFire.animate)(this.newElement, {\n        scale: [1, 0.2]\n      }, opts);\n    });\n  }\n});","define(\"liquid-fire/transitions/scroll-then\", [\"exports\", \"liquid-fire/is-browser\"], function (_exports, _isBrowser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(nextTransitionName, options, ...rest) {\n    if ((0, _isBrowser.default)()) {\n      (true && !('string' === typeof nextTransitionName) && Ember.assert(\"You must provide a transition name as the first argument to scrollThen. Example: this.use('scrollThen', 'toLeft')\", 'string' === typeof nextTransitionName));\n      let el = document.getElementsByTagName('html');\n      let nextTransition = this.lookup(nextTransitionName);\n\n      if (!options) {\n        options = {};\n      }\n\n      (true && !('object' === typeof options) && Ember.assert(\"The second argument to scrollThen is passed to Velocity's scroll function and must be an object\", 'object' === typeof options)); // set scroll options via: this.use('scrollThen', 'ToLeft', {easing: 'spring'})\n\n      options = Ember.assign({\n        duration: 500,\n        offset: 0\n      }, options); // additional args can be passed through after the scroll options object\n      // like so: this.use('scrollThen', 'moveOver', {duration: 100}, 'x', -1);\n\n      return window.$.Velocity(el, 'scroll', options).then(() => {\n        nextTransition.apply(this, rest);\n      });\n    }\n  }\n});","define(\"liquid-fire/transitions/to-down\", [\"exports\", \"liquid-fire/transitions/move-over\"], function (_exports, _moveOver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(opts) {\n    return _moveOver.default.call(this, 'y', 1, opts);\n  }\n});","define(\"liquid-fire/transitions/to-left\", [\"exports\", \"liquid-fire/transitions/move-over\"], function (_exports, _moveOver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(opts) {\n    return _moveOver.default.call(this, 'x', -1, opts);\n  }\n});","define(\"liquid-fire/transitions/to-right\", [\"exports\", \"liquid-fire/transitions/move-over\"], function (_exports, _moveOver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(opts) {\n    return _moveOver.default.call(this, 'x', 1, opts);\n  }\n});","define(\"liquid-fire/transitions/to-up\", [\"exports\", \"liquid-fire/transitions/move-over\"], function (_exports, _moveOver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(opts) {\n    return _moveOver.default.call(this, 'y', -1, opts);\n  }\n});","define(\"liquid-fire/transitions/wait\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n\n  function _default(ms, opts, ...rest) {\n    opts = opts !== undefined ? opts : {};\n    return new Ember.RSVP.Promise(resolve => {\n      setTimeout(() => {\n        resolve(this.lookup(opts.then || 'default').call(this, ...rest));\n      }, ms);\n    });\n  }\n});","define(\"liquid-fire/velocity-ext\", [\"velocity\"], function (_velocity) {\n  \"use strict\";\n\n  /*\n    This makes it possible to animate outerHeight and outerWidth with\n    Velocity, which is much more convenient for our purposes. Submitted\n    to Velocity as PR #485.\n  */\n  if (typeof FastBoot === undefined) {\n    let VCSS = _velocity.default.CSS;\n\n    let augmentDimension = function (name, element) {\n      let sides = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n\n      if (VCSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() === 'border-box') {\n        /* in box-sizing mode, the VCSS width / height accessors already give the outerWidth / outerHeight. */\n        return 0;\n      } else {\n        let augment = 0;\n        let fields = ['padding' + sides[0], 'padding' + sides[1], 'border' + sides[0] + 'Width', 'border' + sides[1] + 'Width'];\n\n        for (let i = 0; i < fields.length; i++) {\n          let value = parseFloat(VCSS.getPropertyValue(element, fields[i]));\n\n          if (!isNaN(value)) {\n            augment += value;\n          }\n        }\n\n        return augment;\n      }\n    };\n\n    let outerDimension = function (name) {\n      return function (type, element, propertyValue) {\n        switch (type) {\n          case \"name\":\n            return name;\n\n          case \"extract\":\n            return parseFloat(propertyValue) + augmentDimension(name, element);\n\n          case \"inject\":\n            return parseFloat(propertyValue) - augmentDimension(name, element) + \"px\";\n        }\n      };\n    };\n\n    VCSS.Normalizations.registered.outerWidth = outerDimension('width');\n    VCSS.Normalizations.registered.outerHeight = outerDimension('height');\n  }\n});","define('liquid-wormhole/components/liquid-append', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    didUpdateAttrs() {\n      if (this.get('replaceNodes')) {\n        const nodes = this.get('nodes');\n\n        this.$().children().remove();\n        this.$().append(nodes);\n      }\n    },\n\n    didInsertElement() {\n      const notify = this.get('notify');\n      const nodes = this.get('nodes');\n\n      if (notify && notify.willAppendNodes) {\n        notify.willAppendNodes(this.element);\n      }\n\n      this.$().append(nodes);\n\n      if (notify && notify.didAppendNodes) {\n        notify.didAppendNodes(this.element);\n      }\n    }\n  });\n});","define('liquid-wormhole/components/liquid-destination', ['exports', 'perf-primitives/hash-map', 'liquid-wormhole/templates/components/liquid-destination'], function (exports, _hashMap, _liquidDestination) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    layout: _liquidDestination.default,\n    classNames: ['liquid-destination'],\n    classNameBindings: ['hasWormholes'],\n\n    name: 'default',\n    liquidWormholeService: Ember.inject.service('liquidWormhole'),\n    matchContext: Ember.computed(() => {\n      return { helperName: 'liquid-wormhole' };\n    }),\n\n    hasWormholes: Ember.computed.gt('stacks.length', 0),\n\n    init() {\n      this._super(...arguments);\n\n      this.stackMap = new _hashMap.default();\n      this.set('stacks', Ember.A());\n\n      this.wormholeQueue = Ember.A();\n\n      const name = this.get('name');\n\n      this.get('liquidWormholeService').registerDestination(name, this);\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      const name = this.get('name');\n      this.get('liquidWormholeService').unregisterDestination(name);\n    },\n\n    appendWormhole(wormhole) {\n      // The order that wormholes are rendered in may be different from the order\n      // that they appear in templates, because child components get rendered before\n      // their parents. This logic inserts parent components *before* their children\n      // so the ordering is correct.\n      var appendIndex = this.wormholeQueue.get('length') - 1;\n\n      for (; appendIndex >= 0; appendIndex--) {\n        const lastWormholeElement = this.wormholeQueue.objectAt(appendIndex).element;\n\n        if (!wormhole.element.contains(lastWormholeElement)) {\n          break; // break when we find the first wormhole that isn't a parent\n        }\n      }\n\n      this.wormholeQueue.insertAt(appendIndex + 1, wormhole);\n\n      Ember.run.scheduleOnce('afterRender', this, this.flushWormholeQueue);\n    },\n\n    removeWormhole(wormhole) {\n      const stackName = wormhole.get('stack');\n      const stack = this.stackMap.get(stackName);\n      const item = stack.find(item => item && item.wormhole === wormhole);\n\n      const newNodes = item.get('nodes').clone();\n      item.set('nodes', newNodes);\n      item.set('_replaceNodes', true);\n\n      Ember.run.next(() => stack.removeObject(item));\n    },\n\n    flushWormholeQueue() {\n      this.wormholeQueue.forEach(wormhole => {\n        const stackName = wormhole.get('stack');\n        const stack = this.stackMap.get(stackName) || this.createStack(wormhole);\n\n        const nodes = wormhole.get('nodes');\n        const value = wormhole.get('value');\n\n        const item = Ember.Object.create({ nodes, wormhole, value });\n\n        // Reset visibility in case we made them visible, see below\n        nodes.css({ visibility: 'hidden' });\n\n        stack.pushObject(item);\n      });\n\n      this.wormholeQueue.clear();\n    },\n\n    createStack(wormhole) {\n      const stackName = wormhole.get('stack');\n\n      const stack = Ember.A([null]);\n      stack.set('name', stackName);\n\n      this.stackMap.set(stackName, stack);\n      this.stacks.pushObject(stack);\n\n      return stack;\n    },\n\n    actions: {\n      willTransition() {\n        // Do nothing\n      },\n\n      afterChildInsertion() {\n        // Do nothing\n      },\n\n      afterTransition([{ value, view }]) {\n        if (this.isDestroying || this.isDestroyed) {\n          return;\n        }\n        // If wormholes were made w/o animations, they need to be made visible manually.\n        this.$(view.element).find('.liquid-wormhole-element').css({ visibility: 'visible' });\n\n        // Clean empty stacks\n        if (value === null) {\n          const stacks = this.get('stacks');\n          const stackName = view.get('parentView.stackName');\n          const stack = this.stackMap.get(stackName);\n\n          stacks.removeObject(stack);\n          this.stackMap.delete(stackName);\n        }\n      }\n    }\n  });\n});","define('liquid-wormhole/components/liquid-wormhole', ['exports', 'liquid-wormhole/templates/components/liquid-wormhole'], function (exports, _liquidWormhole) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Component.extend({\n    layout: _liquidWormhole.default,\n\n    to: Ember.computed.reads('destination'),\n    liquidWormholeService: Ember.inject.service('liquid-wormhole'),\n\n    stack: Ember.computed(function () {\n      return Ember.guidFor(this);\n    }),\n\n    // Truthy value by default\n    value: true,\n\n    init() {\n      const wormholeClass = this.get('class');\n      const wormholeId = this.get('stack') || this.get('id');\n\n      this.set('wormholeClass', wormholeClass);\n      this.set('wormholeId', wormholeId);\n\n      if (Ember.typeOf(this.get('send')) !== 'function') {\n        this.set('hasSend', true);\n      }\n\n      this._super(...arguments);\n    },\n\n    didUpdateAttrs() {\n      this._super(...arguments);\n      this.get('liquidWormholeService').removeWormhole(this, this.get('to'));\n      this.get('liquidWormholeService').appendWormhole(this, this.get('to'));\n    },\n\n    didInsertElement() {\n      const nodes = this.$().children();\n      this.set('nodes', nodes);\n\n      this.element.className = 'liquid-wormhole-container';\n      this.element.id = '';\n\n      this.get('liquidWormholeService').appendWormhole(this, this.get('to'));\n\n      this._super.apply(this, arguments);\n    },\n\n    willDestroyElement() {\n      this.get('liquidWormholeService').removeWormhole(this, this.get('to'));\n\n      this._super.apply(this, arguments);\n    }\n  });\n});","define('liquid-wormhole/index', ['exports', 'liquid-fire/constraint'], function (exports, _constraint) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.target = target;\n  exports.onOpenWormhole = onOpenWormhole;\n  exports.onCloseWormhole = onCloseWormhole;\n  function target(name) {\n    return new _constraint.default('parentElementClass', `${name}`);\n  }\n\n  function onOpenWormhole() {\n    return new _constraint.default('newValue', value => value !== null);\n  }\n\n  function onCloseWormhole() {\n    return new _constraint.default('newValue', value => value === null);\n  }\n});","define('liquid-wormhole/services/liquid-fire-transitions', ['exports', 'liquid-fire/action', 'liquid-fire/running-transition', 'liquid-fire/transition-map'], function (exports, _action, _runningTransition, _transitionMap) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  const wormholeActionMap = new WeakMap();\n\n  exports.default = _transitionMap.default.extend({\n    transitionFor(conditions) {\n      if (conditions.matchContext && conditions.matchContext.helperName === 'liquid-wormhole' || conditions.helperName === 'liquid-wormhole') {\n\n        const versions = conditions.versions;\n\n        conditions.versions = versions.map(version => version.value || version);\n        conditions.parentElement = conditions.parentElement.find('.liquid-wormhole-element');\n        conditions.firstTime = 'no';\n\n        const rule = this.constraintsFor(conditions).bestMatch(conditions);\n        let action;\n\n        if (rule) {\n          if (wormholeActionMap.has(rule)) {\n            action = wormholeActionMap.get(rule);\n          } else {\n            action = new _action.default('wormhole', [{ use: rule.use }]);\n            action.validateHandler(this);\n\n            wormholeActionMap.set(rule, action);\n          }\n        } else {\n          action = this.defaultAction();\n        }\n\n        return new _runningTransition.default(this, versions, action);\n      } else {\n        return this._super(conditions);\n      }\n    }\n  });\n});","define('liquid-wormhole/services/liquid-wormhole', ['exports', 'perf-primitives/hash-map'], function (exports, _hashMap) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.Service.extend({\n    init() {\n      this._super(...arguments);\n\n      this.destination = new _hashMap.default();\n    },\n\n    appendWormhole(wormhole, destinationName = 'default') {\n      let destination = this.destination.get(destinationName);\n\n      if (destination === undefined) {\n        if (destinationName === 'default') {\n          destination = this.addDefaultDestination();\n        } else {\n          throw new Error('Liquid Wormhole destination does not exist');\n        }\n      }\n\n      destination.appendWormhole(wormhole);\n    },\n\n    removeWormhole(wormhole, destinationName = 'default') {\n      const destination = this.destination.get(destinationName);\n\n      if (destination === undefined) {\n        throw new Error('Liquid Wormhole destination does not exist');\n      }\n\n      destination.removeWormhole(wormhole);\n    },\n\n    registerDestination(destinationName, destination) {\n      if (this.destination.get(destinationName)) {\n        throw new Error(`Liquid Wormhole destination '${destinationName}' already created`);\n      }\n      this.destination.set(destinationName, destination);\n    },\n\n    unregisterDestination(destinationName) {\n      this.destination.delete(destinationName);\n    },\n\n    willDestroy() {\n      this.removeDefaultDestination();\n    },\n\n    addDefaultDestination() {\n      const instance = Ember.getOwner(this);\n      const destination = instance.lookup('component:liquid-destination');\n      destination.set('classNames', ['liquid-destination', 'default-liquid-destination']);\n\n      if (instance.rootElement) {\n        destination.appendTo(instance.rootElement);\n      } else if (Ember.$('.ember-application').length > 0) {\n        destination.appendTo(Ember.$('.ember-application')[0]);\n      } else {\n        destination.appendTo(document);\n      }\n\n      this.defaultDestination = destination;\n\n      return destination;\n    },\n\n    removeDefaultDestination() {\n      if (this.defaultDestination) {\n        this.defaultDestination.destroy();\n      }\n    }\n\n  });\n});","define(\"liquid-wormhole/templates/components/liquid-destination\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"SFSSVN8N\", \"block\": \"{\\\"symbols\\\":[\\\"stack\\\",\\\"item\\\"],\\\"statements\\\":[[6,[37,5],[[30,[36,4],[[30,[36,4],[[35,3]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[10,\\\"div\\\"],[14,0,\\\"liquid-destination-stack\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,2],null,[[\\\"value\\\",\\\"notify\\\",\\\"renderWhenFalse\\\",\\\"name\\\",\\\"matchContext\\\",\\\"stackName\\\"],[[32,1,[\\\"lastObject\\\"]],[32,0],true,\\\"liquid-wormhole\\\",[35,1],[32,1,[\\\"name\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[1,[30,[36,0],null,[[\\\"nodes\\\",\\\"replaceNodes\\\",\\\"notify\\\",\\\"click\\\"],[[32,2,[\\\"nodes\\\"]],[32,2,[\\\"_replaceNodes\\\"]],[32,2,[\\\"wormhole\\\"]],[32,2,[\\\"wormhole\\\",\\\"click\\\"]]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}]]],[2,\\\"  \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"liquid-append\\\",\\\"matchContext\\\",\\\"liquid-versions\\\",\\\"stacks\\\",\\\"-track-array\\\",\\\"each\\\"]}\", \"meta\": { \"moduleName\": \"liquid-wormhole/templates/components/liquid-destination.hbs\" } });\n});","define(\"liquid-wormhole/templates/components/liquid-wormhole\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.HTMLBars.template({ \"id\": \"kOevnXo6\", \"block\": \"{\\\"symbols\\\":[\\\"details\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,5],[[35,6]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,5],[[27,[32,2]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,4],[[35,3]],[[\\\"id\\\",\\\"class\\\"],[[35,0],[30,[36,2],[[35,1],\\\" liquid-wormhole-element\\\"],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[18,2,[[32,1]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"    \\\"],[1,[30,[36,4],[[35,3]],[[\\\"id\\\",\\\"class\\\"],[[35,0],[30,[36,2],[[35,1],\\\" liquid-wormhole-element\\\"],null]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"  \\\"],[10,\\\"div\\\"],[15,1,[34,0]],[15,0,[31,[[34,1],\\\" liquid-wormhole-element\\\"]]],[12],[2,\\\"\\\\n    \\\"],[18,2,null],[2,\\\"\\\\n  \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"wormholeId\\\",\\\"wormholeClass\\\",\\\"concat\\\",\\\"send\\\",\\\"component\\\",\\\"if\\\",\\\"hasSend\\\"]}\", \"meta\": { \"moduleName\": \"liquid-wormhole/templates/components/liquid-wormhole.hbs\" } });\n});","define('liquid-wormhole/transitions/wormhole', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = wormhole;\n  function wormhole(context) {\n    let use = context.use;\n\n\n    let oldWormholeElement, newWormholeElement;\n\n    if (this.oldElement) {\n      oldWormholeElement = this.oldElement.find('.liquid-wormhole-element:last-child');\n\n      this.oldElement = null;\n\n      if (oldWormholeElement.length > 0) {\n        const newChild = oldWormholeElement.clone();\n        newChild.addClass('liquid-wormhole-temp-element');\n\n        oldWormholeElement.css({ visibility: 'hidden' });\n        oldWormholeElement.find('.liquid-child').css({ visibility: 'hidden' });\n\n        const offset = oldWormholeElement.offset();\n\n        newChild.css({\n          position: 'absolute',\n          top: offset.top,\n          left: offset.left,\n          bottom: '',\n          right: '',\n          margin: '0px',\n          transform: ''\n        });\n\n        newChild.appendTo(oldWormholeElement.parent());\n        this.oldElement = newChild;\n      }\n    }\n\n    if (this.newElement) {\n      newWormholeElement = this.newElement.find('.liquid-wormhole-element:last-child');\n\n      this.newElement = null;\n\n      if (newWormholeElement.length > 0) {\n        const newChild = newWormholeElement.clone();\n\n        newWormholeElement.css({ visibility: 'hidden' });\n        newWormholeElement.find('.liquid-child').css({ visibility: 'hidden' });\n\n        const offset = newWormholeElement.offset();\n\n        newChild.css({\n          position: 'absolute',\n          top: offset.top,\n          left: offset.left,\n          bottom: '',\n          right: '',\n          margin: '0px',\n          transform: ''\n        });\n\n        newChild.appendTo(newWormholeElement.parent());\n        this.newElement = newChild;\n      }\n    }\n\n    var animation;\n    if (typeof use.handler === 'function') {\n      animation = use.handler;\n    } else {\n      animation = context.lookup(use.name);\n    }\n\n    return animation.apply(this, use.args).finally(() => {\n      if (this.oldElement && oldWormholeElement) {\n        this.oldElement.remove();\n        oldWormholeElement.css({ visibility: 'visible' });\n        oldWormholeElement.find('.liquid-child').css({ visibility: 'visible' });\n      }\n      if (this.newElement && newWormholeElement) {\n        this.newElement.remove();\n        newWormholeElement.css({ visibility: 'visible' });\n        newWormholeElement.find('.liquid-child').css({ visibility: 'visible' });\n      }\n    });\n  }\n});","define(\"moment/index\", [\"exports\", \"moment/lib\"], function (_exports, _lib) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function compare(a, b) {\n    if (_lib.default.isMoment(a) && _lib.default.isMoment(b)) {\n      if (a.isBefore(b)) {\n        return -1;\n      } else if (a.isSame(b)) {\n        return 0;\n      } else {\n        return 1;\n      }\n    }\n\n    throw new Error('Arguments provided to `compare` are not moment objects');\n  }\n\n  _lib.default.prototype.compare = compare;\n  _lib.default.compare = compare;\n\n  _lib.default.prototype.clone = function clone() {\n    return (0, _lib.default)(this);\n  };\n\n  var _default = _lib.default;\n  _exports.default = _default;\n});","define(\"moment/lib\", [\"exports\", \"ember-get-config\"], function (_exports, _emberGetConfig) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /* globals self */\n  let moment;\n  const localeOutputPath = _emberGetConfig.default.moment && _emberGetConfig.default.moment.includeTimezone;\n\n  if (typeof self.FastBoot === 'undefined') {\n    moment = self.moment;\n  } else if (localeOutputPath) {\n    moment = self.FastBoot.require('moment-timezone');\n  } else {\n    moment = self.FastBoot.require('moment');\n  }\n\n  var _default = moment;\n  _exports.default = _default;\n});","define(\"perf-primitives/-constants\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  const SMALL_ARRAY_LENGTH = exports.SMALL_ARRAY_LENGTH = 200;\n  const LARGE_ARRAY_LENGTH = exports.LARGE_ARRAY_LENGTH = 64000;\n\n  const UNDEFINED_KEY = exports.UNDEFINED_KEY = Object.create(null);\n});","define(\"perf-primitives/empty-object\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  // All Credit for this goes to the Ember.js Core Team\n\n  // This exists because `Object.create(null)` is absurdly slow compared\n  // to `new EmptyObject()`. In either case, you want a null prototype\n  // when you're treating the object instances as arbitrary dictionaries\n  // and don't want your keys colliding with build-in methods on the\n  // default object prototype.\n\n  const proto = Object.create(null, {\n    // without this, we will always still end up with (new\n    // EmptyObject()).constructor === Object\n    constructor: {\n      value: undefined,\n      enumerable: false,\n      writable: true\n    }\n  });\n\n  function EmptyObject() {}\n  EmptyObject.prototype = proto;\n  exports.default = EmptyObject;\n});","define('perf-primitives/fast-array', ['exports', 'perf-primitives/-constants'], function (exports, _constants) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  class FastArray {\n    constructor(length = _constants.SMALL_ARRAY_LENGTH, name = 'Unknown Pool') {\n      this.init(length, name);\n    }\n\n    init(length = _constants.SMALL_ARRAY_LENGTH, name = 'Unknown Pool') {\n      this.name = name;\n      this.length = 0;\n      this._length = length;\n      this._data = new Array(length);\n    }\n\n    get(index) {\n      if (index >= 0 && index < this.length) {\n        return this._data[index];\n      }\n\n      return undefined;\n    }\n\n    set(index, value) {\n      if (index > this.length) {\n        throw new Error(\"Index is out of array bounds.\");\n      }\n\n      if (index === this.length) {\n        this.length++;\n      }\n\n      this._data[index] = value;\n    }\n\n    remove(index) {\n      if (index > this.length - 1) {\n        throw new Error(\"Index is out of array bounds.\");\n      }\n      this._data[index] = _constants.UNDEFINED_KEY;\n    }\n\n    forEach(cb) {\n      for (let i = 0; i < this.length; i++) {\n        cb(this._data[i], i);\n      }\n    }\n\n    emptyEach(cb) {\n      for (let i = 0; i < this.length; i++) {\n        if (this._data[i] !== _constants.UNDEFINED_KEY) {\n          cb(this._data[i], i);\n        }\n        this._data[i] = undefined;\n      }\n\n      this.length = 0;\n    }\n\n    empty() {\n      for (let i = 0; i < this.length; i++) {\n        this._data[i] = undefined;\n      }\n\n      this.length = 0;\n    }\n\n    mapInPlace(cb) {\n      for (let i = 0; i < this.length; i++) {\n        if (this._data[i] !== _constants.UNDEFINED_KEY) {\n          cb(this._data[i], i);\n        }\n      }\n    }\n\n    map(cb) {\n      let arr = new FastArray(this._length, this.name);\n\n      for (let i = 0, j = 0; i < this.length; i++, j++) {\n        if (this._data[i] !== _constants.UNDEFINED_KEY) {\n          arr._data[j] = cb(this._data[i], j);\n        } else {\n          j--;\n        }\n      }\n\n      return arr;\n    }\n\n    push(item) {\n      let index = this.length++;\n\n      if (index === this._length) {\n        this._length *= 2;\n        this._data.length = this._length;\n      }\n\n      this._data[index] = item;\n\n      return index;\n    }\n\n    pop() {\n      let index = --this.length;\n      let v;\n\n      if (index < 0) {\n        this.length = 0;\n        return undefined;\n      }\n\n      v = this._data[index];\n\n      if (v === _constants.UNDEFINED_KEY) {\n        return this.pop();\n      }\n\n      return v;\n    }\n\n  }\n  exports.default = FastArray;\n});","define('perf-primitives/hash-map', ['exports', 'perf-primitives/empty-object', 'perf-primitives/-constants'], function (exports, _emptyObject, _constants) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  class HashMap {\n\n    constructor(entries) {\n      this._data = new _emptyObject.default();\n\n      if (entries) {\n        for (let i = 0; i < entries.length; i++) {\n          this.data[entries[i][0]] = entries[i][1];\n        }\n      }\n    }\n\n    forEach(cb) {\n      for (let key in this._data) {\n        // skip undefined\n        if (this._data[key] !== _constants.UNDEFINED_KEY) {\n          cb(this._data[key], key);\n        }\n      }\n\n      return this;\n    }\n\n    get(key) {\n      let val = this._data[key];\n\n      return val === _constants.UNDEFINED_KEY ? undefined : val;\n    }\n\n    set(key, value) {\n      this._data[key] = value;\n\n      return this;\n    }\n\n    delete(key) {\n      this._data[key] = _constants.UNDEFINED_KEY;\n\n      return true;\n    }\n\n  }\n  exports.default = HashMap;\n});","define(\"tracked-built-ins/-private/array\", [\"exports\", \"tracked-maps-and-sets/-private/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /* eslint-disable @typescript-eslint/no-explicit-any */\n  // Unfortunately, TypeScript's ability to do inference *or* type-checking in a\n  // `Proxy`'s body is very limited, so we have to use a number of casts `as any`\n  // to make the internal accesses work. The type safety of these is guaranteed at\n  // the *call site* instead of within the body: you cannot do `Array.blah` in TS,\n  // and it will blow up in JS in exactly the same way, so it is safe to assume\n  // that properties within the getter have the correct type in TS.\n  const ARRAY_GETTER_METHODS = new Set([Symbol.iterator, 'concat', 'entries', 'every', 'fill', 'filter', 'find', 'findIndex', 'flat', 'flatMap', 'forEach', 'includes', 'indexOf', 'join', 'keys', 'lastIndexOf', 'map', 'reduce', 'reduceRight', 'slice', 'some', 'values']);\n\n  function 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\n  function createArrayProxy(arr) {\n    let indexTags = [];\n    let boundFns = new Map();\n    return new Proxy(arr, {\n      get(target, prop, receiver) {\n        let index = convertToInt(prop);\n\n        if (index !== null) {\n          let tag = indexTags[index];\n\n          if (tag === undefined) {\n            tag = indexTags[index] = (0, _util.createTag)();\n          }\n\n          (0, _util.consumeTag)(tag);\n          (0, _util.consumeCollection)(receiver);\n          return target[index];\n        } else if (prop === 'length') {\n          (0, _util.consumeCollection)(receiver);\n        } else if (ARRAY_GETTER_METHODS.has(prop)) {\n          let fn = boundFns.get(prop);\n\n          if (fn === undefined) {\n            fn = (...args) => {\n              (0, _util.consumeCollection)(receiver);\n              return target[prop](...args);\n            };\n\n            boundFns.set(prop, fn);\n          }\n\n          return fn;\n        }\n\n        return target[prop];\n      },\n\n      set(target, prop, value, receiver) {\n        target[prop] = value;\n        let index = convertToInt(prop);\n\n        if (index !== null) {\n          let tag = indexTags[index];\n\n          if (tag !== undefined) {\n            (0, _util.dirtyTag)(tag);\n          }\n\n          (0, _util.dirtyCollection)(receiver);\n        } else if (prop === 'length') {\n          (0, _util.dirtyCollection)(receiver);\n        }\n\n        return true;\n      },\n\n      getPrototypeOf() {\n        return TrackedArray.prototype;\n      }\n\n    });\n  }\n\n  class TrackedArray {\n    /**\n     * Creates an array from an iterable object.\n     * @param iterable An iterable object to convert to an array.\n     */\n\n    /**\n     * Creates an array from an iterable object.\n     * @param iterable An iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    static from(iterable, mapfn, thisArg) {\n      return mapfn ? createArrayProxy(Array.from(iterable, mapfn, thisArg)) : createArrayProxy(Array.from(iterable));\n    }\n\n    static of(...arr) {\n      return createArrayProxy(arr);\n    }\n\n    constructor(arr = []) {\n      return createArrayProxy(arr.slice());\n    }\n\n  } // This rule is correctly in the general case, but it doesn't understand\n  // declaration merging, which is how we're using the interface here. This\n  // declaration says that `TrackedArray` acts just like `Array<T>`, but also has\n  // the properties declared via the `class` declaration above -- but without the\n  // cost of a subclass, which is much slower that the proxied array behavior.\n  // That is: a `TrackedArray` *is* an `Array`, just with a proxy in front of\n  // accessors and setters, rather than a subclass of an `Array` which would be\n  // de-optimized by the browsers.\n  //\n  // eslint-disable-next-line @typescript-eslint/no-empty-interface\n\n\n  var _default = TrackedArray; // Ensure instanceof works correctly\n\n  _exports.default = _default;\n  Object.setPrototypeOf(TrackedArray.prototype, Array.prototype);\n});","define(\"tracked-built-ins/-private/decorator\", [\"exports\", \"tracked-maps-and-sets\", \"tracked-built-ins/-private/array\", \"tracked-built-ins/-private/object\"], function (_exports, _trackedMapsAndSets, _array, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = tracked;\n\n  function tracked(obj, key, desc) {\n    if (key !== undefined && desc !== undefined) {\n      return Ember._tracked(obj, key, desc);\n    }\n\n    if (Array.isArray(obj)) {\n      return new _array.default(obj);\n    }\n\n    switch (obj) {\n      case Object:\n        return new _object.default();\n\n      case Array:\n        return new _array.default();\n\n      case Map:\n        return new _trackedMapsAndSets.TrackedMap();\n\n      case WeakMap:\n        return new _trackedMapsAndSets.TrackedWeakMap();\n\n      case Set:\n        return new _trackedMapsAndSets.TrackedSet();\n\n      case WeakSet:\n        return new _trackedMapsAndSets.TrackedWeakSet();\n    }\n\n    if (obj instanceof Map) {\n      return new _trackedMapsAndSets.TrackedMap(obj);\n    } else if (obj instanceof WeakMap) {\n      return new _trackedMapsAndSets.TrackedWeakMap();\n    } else if (obj instanceof Set) {\n      return new _trackedMapsAndSets.TrackedSet(obj);\n    } else if (obj instanceof WeakSet) {\n      return new _trackedMapsAndSets.TrackedWeakSet();\n    } else {\n      (true && !(typeof obj === 'object' && obj !== null) && Ember.assert(`You must either use tracked as a field decorator, or to wrap built-in class instances:\n\n      class Example {\n        @tracked field = 123;\n\n        map = tracked(Map);\n        map = tracked(new Map());\n      }`, typeof obj === 'object' && obj !== null));\n      return new _object.default(obj);\n    }\n  }\n});","define(\"tracked-built-ins/-private/object\", [\"exports\", \"tracked-maps-and-sets/-private/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const COLLECTION = Symbol();\n\n  if (true\n  /* DEBUG */\n  ) {\n    // patch mandatory setter\n    // eslint-disable-next-line no-undef\n    let utils = Ember.__loader.require('@ember/-internals/utils');\n\n    let originalSetupMandatorySetter = utils.setupMandatorySetter;\n\n    utils.setupMandatorySetter = (tag, obj, keyName) => {\n      if (obj instanceof TrackedObject) {\n        return;\n      }\n\n      return originalSetupMandatorySetter(tag, obj, keyName);\n    };\n  }\n\n  const proxyHandler = {\n    get(target, prop) {\n      (0, _util.consumeKey)(target, prop);\n      return target[prop];\n    },\n\n    has(target, prop) {\n      (0, _util.consumeKey)(target, prop);\n      return prop in target;\n    },\n\n    ownKeys(target) {\n      (0, _util.consumeKey)(target, COLLECTION);\n      return Reflect.ownKeys(target);\n    },\n\n    set(target, prop, value, receiver) {\n      target[prop] = value;\n      (0, _util.dirtyKey)(target, prop);\n      (0, _util.dirtyKey)(target, COLLECTION); // We need to notify this way to make {{each-in}} update\n\n      Ember.notifyPropertyChange(receiver, '_SOME_PROP_');\n      return true;\n    },\n\n    getPrototypeOf() {\n      return TrackedObject.prototype;\n    }\n\n  };\n\n  function createProxy(obj = {}) {\n    return new Proxy(obj, proxyHandler);\n  }\n\n  class TrackedObject {\n    static fromEntries(entries) {\n      return createProxy(Object.fromEntries(entries));\n    }\n\n    constructor(obj = {}) {\n      let proto = Object.getPrototypeOf(obj);\n      let descs = Object.getOwnPropertyDescriptors(obj);\n      let clone = Object.create(proto);\n\n      for (let prop in descs) {\n        Object.defineProperty(clone, prop, descs[prop]);\n      }\n\n      return createProxy(clone);\n    }\n\n  }\n\n  _exports.default = TrackedObject;\n});","define(\"tracked-built-ins/index\", [\"exports\", \"tracked-built-ins/-private/decorator\", \"tracked-built-ins/-private/array\", \"tracked-built-ins/-private/object\", \"tracked-maps-and-sets\"], function (_exports, _decorator, _array, _object, _trackedMapsAndSets) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"tracked\", {\n    enumerable: true,\n    get: function () {\n      return _decorator.default;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedArray\", {\n    enumerable: true,\n    get: function () {\n      return _array.default;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedObject\", {\n    enumerable: true,\n    get: function () {\n      return _object.default;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedMap\", {\n    enumerable: true,\n    get: function () {\n      return _trackedMapsAndSets.TrackedMap;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedWeakMap\", {\n    enumerable: true,\n    get: function () {\n      return _trackedMapsAndSets.TrackedWeakMap;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedSet\", {\n    enumerable: true,\n    get: function () {\n      return _trackedMapsAndSets.TrackedSet;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedWeakSet\", {\n    enumerable: true,\n    get: function () {\n      return _trackedMapsAndSets.TrackedWeakSet;\n    }\n  });\n});","define(\"tracked-maps-and-sets/-private/map\", [\"exports\", \"tracked-maps-and-sets/-private/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TrackedWeakMap = _exports.TrackedMap = void 0;\n\n  class TrackedMap extends Map {\n    // **** KEY GETTERS ****\n    get(key) {\n      (0, _util.consumeKey)(this, key);\n      return super.get(key);\n    }\n\n    has(key) {\n      (0, _util.consumeKey)(this, key);\n      return super.has(key);\n    } // **** ALL GETTERS ****\n\n\n    entries() {\n      (0, _util.consumeCollection)(this);\n      return super.entries();\n    }\n\n    keys() {\n      (0, _util.consumeCollection)(this);\n      return super.keys();\n    }\n\n    values() {\n      (0, _util.consumeCollection)(this);\n      return super.values();\n    }\n\n    forEach(fn) {\n      (0, _util.consumeCollection)(this);\n      super.forEach(fn);\n    }\n\n    get size() {\n      (0, _util.consumeCollection)(this);\n      return super.size;\n    } // **** KEY SETTERS ****\n\n\n    set(key, value) {\n      (0, _util.dirtyKey)(this, key);\n      (0, _util.dirtyCollection)(this);\n      return super.set(key, value);\n    }\n\n    delete(key) {\n      (0, _util.dirtyKey)(this, key);\n      (0, _util.dirtyCollection)(this);\n      return super.delete(key);\n    } // **** ALL SETTERS ****\n\n\n    clear() {\n      super.forEach((_v, k) => (0, _util.dirtyKey)(this, k));\n      (0, _util.dirtyCollection)(this);\n      return super.clear();\n    }\n\n  }\n\n  _exports.TrackedMap = TrackedMap;\n\n  if (typeof Symbol !== undefined) {\n    let originalIterator = TrackedMap.prototype[Symbol.iterator];\n    Object.defineProperty(TrackedMap.prototype, Symbol.iterator, {\n      get() {\n        (0, _util.consumeCollection)(this);\n        return originalIterator;\n      }\n\n    });\n  }\n\n  class TrackedWeakMap extends WeakMap {\n    get(key) {\n      (0, _util.consumeKey)(this, key);\n      return super.get(key);\n    }\n\n    has(key) {\n      (0, _util.consumeKey)(this, key);\n      return super.has(key);\n    }\n\n    set(key, value) {\n      (0, _util.dirtyKey)(this, key);\n      return super.set(key, value);\n    }\n\n    delete(key) {\n      (0, _util.dirtyKey)(this, key);\n      return super.delete(key);\n    }\n\n  }\n\n  _exports.TrackedWeakMap = TrackedWeakMap;\n});","define(\"tracked-maps-and-sets/-private/set\", [\"exports\", \"tracked-maps-and-sets/-private/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TrackedWeakSet = _exports.TrackedSet = void 0;\n\n  class TrackedSet extends Set {\n    // **** KEY GETTERS ****\n    has(value) {\n      (0, _util.consumeKey)(this, value);\n      return super.has(value);\n    } // **** ALL GETTERS ****\n\n\n    entries() {\n      (0, _util.consumeCollection)(this);\n      return super.entries();\n    }\n\n    keys() {\n      (0, _util.consumeCollection)(this);\n      return super.keys();\n    }\n\n    values() {\n      (0, _util.consumeCollection)(this);\n      return super.values();\n    }\n\n    forEach(fn) {\n      (0, _util.consumeCollection)(this);\n      super.forEach(fn);\n    }\n\n    get size() {\n      (0, _util.consumeCollection)(this);\n      return super.size;\n    } // **** KEY SETTERS ****\n\n\n    add(value) {\n      (0, _util.dirtyKey)(this, value);\n      (0, _util.dirtyCollection)(this);\n      return super.add(value);\n    }\n\n    delete(value) {\n      (0, _util.dirtyKey)(this, value);\n      (0, _util.dirtyCollection)(this);\n      return super.delete(value);\n    } // **** ALL SETTERS ****\n\n\n    clear() {\n      super.forEach((_v, k) => (0, _util.dirtyKey)(this, k));\n      (0, _util.dirtyCollection)(this);\n      return super.clear();\n    }\n\n  }\n\n  _exports.TrackedSet = TrackedSet;\n\n  if (typeof Symbol !== undefined) {\n    let originalIterator = TrackedSet.prototype[Symbol.iterator];\n    Object.defineProperty(TrackedSet.prototype, Symbol.iterator, {\n      get() {\n        (0, _util.consumeCollection)(this);\n        return originalIterator;\n      }\n\n    });\n  }\n\n  class TrackedWeakSet extends WeakSet {\n    has(value) {\n      (0, _util.consumeKey)(this, value);\n      return super.has(value);\n    }\n\n    add(value) {\n      (0, _util.dirtyKey)(this, value);\n      return super.add(value);\n    }\n\n    delete(value) {\n      (0, _util.dirtyKey)(this, value);\n      return super.delete(value);\n    }\n\n  }\n\n  _exports.TrackedWeakSet = TrackedWeakSet;\n});","define(\"tracked-maps-and-sets/-private/util\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.createTag = createTag;\n  _exports.consumeKey = consumeKey;\n  _exports.dirtyKey = dirtyKey;\n  _exports.dirtyCollection = _exports.consumeCollection = _exports.dirtyTag = _exports.consumeTag = void 0;\n\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\n  class Tag {\n    static consumeTag(tag) {\n      // read the tag value\n      tag.__tag_value__;\n    }\n\n    static dirtyTag(tag) {\n      // write the tag value\n      tag.__tag_value__ = undefined;\n    }\n\n  }\n\n  __decorate([Ember._tracked], Tag.prototype, \"__tag_value__\", void 0);\n\n  function createTag() {\n    return new Tag();\n  }\n\n  const consumeTag = Tag.consumeTag;\n  _exports.consumeTag = consumeTag;\n  const dirtyTag = Tag.dirtyTag; ////////////\n\n  _exports.dirtyTag = dirtyTag;\n  const COLLECTION_SYMBOL = {};\n\n  let consumeCollection = obj => {\n    consumeKey(obj, COLLECTION_SYMBOL);\n  };\n\n  _exports.consumeCollection = consumeCollection;\n\n  let dirtyCollection = obj => {\n    dirtyKey(obj, COLLECTION_SYMBOL);\n  };\n\n  _exports.dirtyCollection = dirtyCollection;\n\n  if (Ember !== undefined) {\n    // eslint-disable-next-line ember/new-module-imports\n    _exports.consumeCollection = consumeCollection = obj => Ember.get(obj, '[]'); // eslint-disable-next-line ember/new-module-imports\n\n\n    _exports.dirtyCollection = dirtyCollection = obj => Ember.notifyPropertyChange(obj, '[]');\n  } ////////////\n\n\n  const OBJECT_TAGS = new WeakMap();\n\n  function getOrCreateTag(obj, key) {\n    let tags = OBJECT_TAGS.get(obj);\n\n    if (tags === undefined) {\n      tags = new Map();\n      OBJECT_TAGS.set(obj, tags);\n    }\n\n    let tag = tags.get(key);\n\n    if (tag === undefined) {\n      tag = new Tag();\n      tags.set(key, tag);\n    }\n\n    return tag;\n  }\n\n  function consumeKey(obj, key) {\n    consumeTag(getOrCreateTag(obj, key));\n  }\n\n  function dirtyKey(obj, key) {\n    dirtyTag(getOrCreateTag(obj, key));\n  }\n});","define(\"tracked-maps-and-sets/index\", [\"exports\", \"tracked-maps-and-sets/-private/map\", \"tracked-maps-and-sets/-private/set\"], function (_exports, _map, _set) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"TrackedMap\", {\n    enumerable: true,\n    get: function () {\n      return _map.TrackedMap;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedWeakMap\", {\n    enumerable: true,\n    get: function () {\n      return _map.TrackedWeakMap;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedSet\", {\n    enumerable: true,\n    get: function () {\n      return _set.TrackedSet;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedWeakSet\", {\n    enumerable: true,\n    get: function () {\n      return _set.TrackedWeakSet;\n    }\n  });\n});","\n"],"names":["define","require","Ember","mainContext","registry","seen","missingModule","name","referrerName","Error","internalRequire","_name","mod","exports","undefined","deps","callback","reified","Array","length","i","apply","isNode","window","process","toString","call","__loader","Object","create","value","has","registryHas","moduleName","Boolean","_eak_seen","hasDom","self","Object","Window","constructor","document","location","history","navigator","userAgent","window","location$1","history$1","isChrome","Boolean","chrome","opera","isFirefox","InstallTrigger","DEPRECATION_MESSAGE","DEPRECATION_ID","DEPRECATION_URL","DEPRECATED_LOGGER","LOGGER","log","id","until","url","console","arguments","warn","error","info","debug","assert","leakTracking","containers","gc","GetWeakSetValues","Function","WeakSet","hasContainers","length","reset","values","i","delete","e","Container","constructor","registry","options","owner","cache","factoryManagerCache","isDestroyed","isDestroying","validationCache","undefined","add","lookup","fullName","Error","isValidFullName","normalize","destroy","destroyDestroyables","finalizeDestroy","resetCache","resetMember","ownerInjection","injection","factoryFor","normalizedName","namespace","source","expandLocalLookup","_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","keys","Object","key","value","member","INIT_FACTORY","getFactoryFor","obj","setFactoryFor","madeToString","toString","makeToString","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","has","optionsForType","getOptionsForType","getOptions","optionName","typeInjection","fullNameType","push","injectionName","normalizedInjectionName","indexOf","knownForType","localKnown","registeredNames","index","itemType","fallbackKnown","resolverKnown","test","fallbackInjections","concat","normalizedFullName","normalizedSource","proto","prototype","hasOwnProperty","call","normalizedNameCache","cacheKey","expanded","_normalizedName","resolved","privateNames","privateSuffix","Math","random","Date","now","replace","privatize","name","rawName","checkGlobal","value","Object","undefined","checkElementIdShadowing","nodeType","global$1","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","EMBER_LOAD_HOOKS","FEATURES","EmberENV","flag","prototype","hasOwnProperty","call","defaultValue","FUNCTION_PROTOTYPE_EXTENSIONS","isEnabled","hookName","hooks","isArray","filter","hook","feature","getENV","onerror","onErrorTarget","getOnerror","setOnerror","handler","dispatchOverride","getDispatchOverride","setDispatchOverride","EmberObject","extend","resolver","canCatalogEntriesByType","type","catalogEntriesByType","namespaces","Namespace","NAMESPACES","types","typeSuffixRegex","RegExp","forEach","namespace","key","Object","prototype","hasOwnProperty","call","test","klass","push","replace","EmberObject","extend","init","_super","arguments","releaseMethods","containerDebugAdapter","undefined","attributeLimit","acceptsModelName","getFilters","watchModelTypes","typesAdded","typesUpdated","modelTypes","getModelTypes","typesToSend","map","type","klass","wrapped","wrapModelType","name","push","observeModelType","release","forEach","fn","removeObject","pushObject","_nameToClass","owner","Factory","factoryFor","class","watchRecords","modelName","recordsAdded","recordsUpdated","recordsRemoved","records","getRecords","recordUpdated","updatedRecord","recordsToSend","record","observeRecord","wrapRecord","contentDidChange","array","idx","removedCount","addedCount","i","observer","didChange","willChange","willDestroy","detect","columnsForType","onChange","typeToSend","count","columns","object","get","types","canCatalogEntriesByType","catalogEntriesByType","_getObjectsOnNamespaces","filter","namespaces","Namespace","NAMESPACES","namespace","key","Object","prototype","hasOwnProperty","call","recordToSend","columnValues","getRecordColumnValues","searchKeywords","getRecordKeywords","filterValues","getRecordFilterValues","color","getRecordColor","isTemplateFactory","template","counters","cacheHit","cacheMiss","json","glimmerFactory","cache","WeakMap","meta","factory","owner","result","get","undefined","create","set","__id","id","__meta","RootTemplate","ARGS","HAS_BLOCK","DIRTY_TAG","IS_DISPATCHING_ATTRS","BOUNDS","Component","CoreView","extend","ChildViewsSupport","ViewStateSupport","ClassNamesSupport","TargetActionSupport","ActionSupport","ViewMixin","isComponent","init","_super","arguments","renderer","_destinedForDOM","tagName","eventNames","eventDispatcher","lookup","events","_finalEvents","key","methodName","push","length","mouseEnter","until","url","mouseLeave","mouseMove","rerender","PROPERTY_DID_CHANGE","value","args","reference","UPDATE_REFERENCED_VALUE","getAttr","readDOMAttr","name","_element","element","isSVG","namespaceURI","type","normalized","getAttribute","didReceiveAttrs","didRender","willRender","didUpdateAttrs","willUpdate","didUpdate","toString","reopenClass","isComponentFactory","positionalParams","layout","Checkbox","classNames","attributeBindings","disabled","indeterminate","didInsertElement","Boolean","change","checked","UNSET","reopen","inputTypes","hasDOM","Object","canSetTypeOfInput","inputTypeTestElement","document","createElement","e","TextField","TextSupport","_key","size","pattern","min","max","TextArea","rows","cols","layout$1","UNDEFINED","freeze","EMPTY_QUERY_PARAMS","LinkComponent","route","model","models","query","title","rel","tabindex","target","activeClass","loadingClass","disabledClass","replace","classNameBindings","eventName","on","_invoke","_routing","_currentRoute","_currentRouterState","_targetRouterState","_route","computeLinkToComponentRoute","_models","computeLinkToComponentModels","Array","isArray","_query","computeLinkToComponentQuery","_isDisabled","active","computeLinkToComponentActiveClass","_active","computeLinkToComponentActive","state","_isActive","willBeActive","computeLinkToComponentWillBeActive","current","routerState","loading","currentWhen","isCurrentWhenSpecified","split","routing","i","isActiveForRoute","transitioningIn","computeLinkToComponentTransitioningIn","transitioningOut","computeLinkToComponentTransitioningOut","event","bubbles","preventDefault","isSelf","stopPropagation","routeName","queryParams","shouldReplace","payload","_generateTransition","qualifiedRouteName","transition","transitionTo","href","computeLinkToComponentHref","loadingHref","generateURL","message","computeLinkToComponentLoading","_modelsAreLoaded","loaded","computeLinkToComponentModelsAreLoaded","disabledWhen","params","lastModel","isQueryParams","values","pop","slice","shift","RECOMPUTE_TAG","isHelperFactory","helper","class","isClassHelper","destroy","Helper","FrameworkObject","recompute","Wrapper","constructor","compute","helperFn","SafeString","string","toHTML","escape","possible","badChars","escapeChar","chr","escapeExpression","String","test","htmlSafe","str","isHTMLSafe","isStaticComponentManager","_manager","capabilities","dynamicLayout","CompileTimeResolver","resolver","lookupHelper","referrer","lookupModifier","lookupComponent","definitionHandle","lookupComponentHandle","manager","resolve","getCapabilities","handle","compilable","getJitStaticLayout","lookupPartial","AbstractManager","prepareArgs","_state","_args","didCreateElement","_component","_operations","didRenderLayout","_bounds","didCreate","_bucket","update","_dynamicScope","didUpdateLayout","instrumentationPayload","def","object","outlet","CAPABILITIES","dynamicTag","createArgs","ENV","_DEBUG_RENDER_TREE","attributeHook","elementHook","createCaller","dynamicScope","updateHook","createInstance","wrapped","willDestroy","OutletComponentManager","environment","definition","parentStateRef","outletState","currentStateRef","ref","self","ComponentRootReference","controller","finalize","extra","debugRenderTree","EMPTY_ARGS","instance","parentState","parentOwner","render","currentOwner","engine","mountPoint","routable","capture","_resolver","asLayout","getSelf","getTag","CONSTANT_TAG","bounds","getDestroyable","OUTLET_MANAGER","OutletComponentDefinition","createRootOutlet","outletView","_APPLICATION_TEMPLATE_WRAPPER","WRAPPED_CAPABILITIES","WrappedOutletComponentManager","getTagName","asWrappedLayout","component","setAttribute","WRAPPED_OUTLET_MANAGER","NOOP","ComponentStateBucket","finalizer","hasWrappedElement","classRef","argsRevision","tag","rootRef","isInteractive","trigger","unregister","EmberHelperRootReference","HelperRootReference","helper$$1","env","fnWrapper","positional","named","positionalValue","namedValue","ret","debugName","UnboundRootReference","RootReference","inner","parent","setTemplatePathDebugContext","UnboundPropertyReference","PrimitiveReference","referenceFromParts","root","parts","referenceForKey","referenceForParts","isAttrs","AttributeBinding","parse","microsyntax","colonIndex","indexOf","prop","substring","attribute","install","parsed","operations","isSimple","elementId","isPath","EMBER_COMPONENT_IS_VISIBLE","StyleBindingReference","DISPLAY_NONE","SAFE_DISPLAY_NONE","installIsVisibleBinding","isVisible","getTemplatePathDebugContext","style","UNDEFINED_REFERENCE","ClassNameBinding","truthy","falsy","isStatic","SimpleClassNameBindingReference","ColonClassNameBindingReference","path","dasherizedPath","INVOKE","SOURCE","MutReference","unMut","mut","vm","rawRef","at","ACTION","action","capturedArgs","context","restArgs","references","debugKey","propertyKey","has","processArgs","makeArgsProcessor","fn","makeClosureAction","makeDynamicClosureAction","NOOP$1","valuePathRef","actionArgsRef","mergeArgs","map","concat","readValue","valuePath","targetRef","actionRef","typeofAction","actions","label","processComponentArgs","namedArgs","keys","names","attrs","props","MutableCell","REF","MUTABLE_CELL","val","__rest","s","t","p","prototype","hasOwnProperty","call","getOwnPropertySymbols","propertyIsEnumerable","aliasIdToElementId","applyAttributeBindings","seen","binding","id$$1","DEFAULT_LAYOUT","EMPTY_POSITIONAL_ARGS","CurlyComponentManager","templateFor","layoutName","_factory","getJitDynamicLayout","bucket","template$$1","setTemplate","_a","__ARGS__","rest","prepared","ComponentClass","count","Math","EMPTY_ARRAY","callerSelfRef","hasBlock","parentView","view","_target","initialRenderInstrumentDetails","_transitionTo","processComponentInitializationAssertions","forEach","rerenderInstrumentDetails","setProperties","instrumentDetails","initialRender","CURLY_CAPABILITIES","CURLY_COMPONENT_MANAGER","CurlyComponentDefinition","RootComponentManager","ROOT_CAPABILITIES","RootComponentDefinition","fullName","nodeURL","parsingNode","installProtocolForURL","protocol","browserProtocolForURL","protocolForURL","URL","nodeProtocolForURL","module","require","Error","GUID","isPathNode","node","Ref","release","_repeat","repeat","join","repeatString","DebugRenderTree","stack","Stack","refs","roots","Set","nodes","pathNodes","begin","reset","internalNode","paths","appendChild","enter","nodeFor","exit","commit","captureRefs","createPath","pathRef","parentRef","currentNode","refIndex","pathNode","add","logRenderStackForPath","pathParts","part","unshift","messageParts","index","isEmpty","parentNode","captured","captureNode","delete","captureTemplate","captureBounds","children","moduleName","parentElement","firstNode","lastNode","EachInReference","valueTag","iterable","EachInWrapper","eachIn","toIterator","toEachInIterator","toEachIterator","isIndexable","ObjectIterator","fromIndexable","HAS_NATIVE_SYMBOL","isNativeIterable","MapLikeNativeIterator","from","hasForEach","fromForEachable","ArrayIterator","EmberArrayIterator","ArrayLikeNativeIterator","BoundedIterator","position","memoFor","next","valueFor","memo","array","item","obj","isMapLike","NativeIterator","iterator","Symbol","done","_result","toBool","predicate","backburner","ensureInstance","assert","deprecate","debugMessage","keyName","dirtyString","destroyable","destructor","finalizeDestructor","EmberEnvironmentExtra","_debugRenderTree","EmberEnvironmentDelegate","getProp","_getProp","getPath","setPath","desc","IterationItemReference","PropertyReference","onTransactionBegin","onTransactionCommit","StyleAttributeManager","SimpleDynamicAttribute","dom","attributeFor","isTrusting","namespace","CAPABILITIES$1","managerAPI","options","asyncLifeCycleCallbacks","asyncLifecycleCallbacks","hasAsyncLifeCycleCallbacks","delegate","hasUpdateHook","hasAsyncUpdateHook","hasDestructors","CustomComponentManager","namedArgsProxy","HAS_NATIVE_PROXY","handler","CUSTOM_TAG_FOR","ownKeys","getOwnPropertyDescriptor","enumerable","configurable","Proxy","defineProperty","createComponent","CustomComponentState","updateComponent","didCreateComponent","didUpdateComponent","getContext","CUSTOM_COMPONENT_MANAGER","destroyComponent","CustomManagerDefinition","InternalComponentDefinition","InternalManager","CAPABILITIES$2","TemplateOnlyComponentManager","NULL_REFERENCE","MANAGER","TemplateOnlyComponentDefinition","helper$1","ComponentAssertionReference","property","componentAssertionHelper","helper$2","InElementNullCheckReference","inElementNullCheckHelper","normalizeClass","classNameParts","className","normalizeClassHelper","TrackArrayReference","trackArray","normalizeTextValue","concat$1","buildUntouchableThis","source","assertOnProperty","callbackRef","callback","invocationArgs","fn$1","get$1","sourceReference","pathReference","GetHelperRootReference","get$2","hash","ifHelper","condition","truthyValue","falsyValue","unless","inlineIf","inlineUnless","log","console","log$1","QueryParams","queryParams$1","ReadonlyReference","readonly","unbound","MODIFIERS","POINTER_EVENT_TYPE_REGEX","isAllowedEvent","allowedKeys","ActionHelper","registeredActions","ActionManager","registerAction","actionState","actionId","unregisterAction","ActionState","actionName","actionArgs","positionalArgs","implicitTarget","getEventName","getActionArgs","getTarget","shouldBubble","apply","send","ActionModifierManager","actionNameRef","actionLabel","debugRenderMessage","renderingStack","debugRenderMessage$1","capabilities$1","optionalFeatures","disableAutoTracking","CustomModifierDefinition","ModifierClass","CUSTOM_INTERACTIVE_MODIFIER_MANAGER","CUSTOM_NON_INTERACTIVE_MODIFIER_MANAGER","CustomModifierState","modifier","destroyModifier","InteractiveCustomModifierManager","createModifier","installModifier","combinedTrackingTag","updateModifier","NonInteractiveCustomModifierManager","untouchableContext","SUPPORTS_EVENT_OPTIONS","div","counter","addEventListener","once","Event","createEvent","initEvent","dispatchEvent","error","OnModifierState","shouldUpdate","updateFromArgs","passive","userProvidedCallbackReference","userProvidedCallback","needsCustomCallback","removeEventListener","bind","adds","removes","OnModifierManager","CAPABILITIES$3","MODEL_ARG_NAME","MountManager","_","templateFactory$$1","buildChildEngineInstance","boot","applicationFactory","factoryFor","controllerFactory","modelRef","MOUNT_MANAGER","MountDefinition","mountHelper","nameRef","filter","k","DynamicEngineReference","_lastName","_lastDef","hasRegistration","RootOutletReference","PathReference","outlets","main","OutletReference","outletNameRef","outletHelper","scope","ConstReference","OutletComponentReference","OutletModelReference","outletRef","lastState","stateFor","validate","makeArgs","TEMPLATES","getPrototypeOf","setComponentTemplate","getComponentTemplate","pointer","MANAGERS","getPrototypeOf$1","setManager","wrapper","getManager","setModifierManager","internal","getModifierManager","instrumentationPayload$1","makeOptions","componentFor","layoutFor","templateFullName","lookupComponentPair","pair","parseUnderscoredName","PARTIALS","templateName","underscored","EmberError","nameParts","lastPart","BUILTINS_HELPERS","if","getDynamicVar","RuntimeResolver","handles","objToHandle","builtInHelpers","componentDefinitionCache","Map","componentDefinitionCount","helperDefinitionCount","builtInModifiers","nextHandle","_lookupComponentDefinition","_lookupHelper","_lookupModifier","partial","_lookupPartial","_name","helperDestroyable","associateDestroyable","PartialDefinitionImpl","builtin","managerFactory","_parseNameForNamespace","namespaceDelimiterOffset","cachedComponentDefinition","_TEMPLATE_ONLY_GLIMMER_COMPONENTS","hashToArgs","experimentalMacros","registerMacros","macro","refineInlineSyntax","EMPTY_BLOCKS","UNHANDLED","refineBlockSyntax","blocks","NONE","populateMacros","macros","inlines","addMissing","DynamicScope","child","RootState","runtime","builder","destroyed","compile","nextSibling","iteratorResult","alwaysRevalidate","isFor","possibleRoot","renderers","_resetRenderers","register","deregister","splice","loopBegin","_scheduleRevalidate","K","renderSettledDeferred","renderSettled","RSVP","defer","schedule","promise","resolveRenderPromise","loops","loopEnd","_isValid","_RERENDER_LOOP_LIMIT","Renderer","rootTemplate","viewRegistry","destinedForDOM","clientBuilder","_inRenderTransaction","_lastRevision","_destroyed","_rootTemplate","_viewRegistry","_roots","_removedRoots","_builder","runtimeResolver","_runtimeResolver","compileTimeResolver","_context","runtimeEnvironmentDelegate","_runtime","appendOperations","DOMTreeConstruction","NodeDOMTreeConstruction","updateOperations","DOMChanges","appendOutletView","_appendDefinition","appendTo","rootState","_renderRoot","remove","cleanupRootFor","_clearAllRoots","getBounds","getAppendOperations","_renderRootsTransaction","_renderRoots","removedRoots","initialRootsLength","CURRENT_TAG","rootIndex","completedWithoutError","scheduleOnce","_revalidate","InertRenderer","getElement","_view","InteractiveRenderer","TEMPLATES$1","setTemplates","templates","getTemplates","getTemplate","hasTemplate","CAPABILITIES$4","EMPTY_POSITIONAL_ARGS$1","InputComponentManager","caller","InputComponentManagerFactory","Input","Object$1","isCheckbox","loc$1","loc","ComponentTemplate","InputTemplate","OutletTemplate","TOP_LEVEL_NAME","TOP_LEVEL_OUTLET","OutletView","_environment","into","injections","selector","querySelector","setOutletState","setupApplicationRegistry","registry","injection","bootOptions","_renderMode","serializeBuilder","rehydrationBuilder","setupEngineRegistry","optionsForType","instantiate","setComponentManager","stringOrFunction","COMPONENT_MANAGER_STRING_LOOKUP","getComponentManager","objectPrototype","Object","prototype","counters","peekCalls","peekPrototypeWalks","setCalls","deleteCalls","metaCalls","metaInstantiated","matchingListenersCalls","observerEventsCalls","addToListenersCalls","removeFromListenersCalls","removeAllListenersCalls","listenersInherited","listenersFlattened","parentListenersUsed","flattenedListenersCalls","reopensAfterFlatten","readableLazyChainsCalls","writableLazyChainsCalls","UNDEFINED","currentListenerVersion","Meta","constructor","obj","_listenersVersion","_inheritedEnd","_flattenedVersion","_parent","undefined","_descriptors","_mixins","_lazyChains","_values","_tags","_revisions","_isInit","source","proto","_listeners","parent","getPrototypeOf","meta","setSourceDestroying","id","until","setSourceDestroyed","isSourceDestroying","isSourceDestroyed","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","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","addToListeners","removeListener","targetOrFunction","functionOrName","m","removeFromListeners","sendEvent","params","actions","_meta","undefined","meta$$1","matchingListeners","length","i","type","apply","hasListeners","matched","on","args","func","pop","events","every","p","AFTER_OBSERVERS","changeEvent","keyName","SYNC_DEFAULT","ENV","_DEFAULT_ASYNC_OBSERVERS","SYNC_OBSERVERS","Map","ASYNC_OBSERVERS","addObserver","path","isPrototypeMeta","isInitializing","activateObserver","removeObserver","deactivateObserver","getOrCreateActiveObserversFor","observerMap","has","set","destroyObservers","get","activeObservers","count","split","tag","getChainTagsForKey","lastRevision","suspended","DEACTIVATE_SUSPENDED","SCHEDULED_DEACTIVATE","push","observer","delete","size","suspendedObserverDeactivation","resumeObserverDeactivation","revalidateObservers","forEach","lastKnownRevision","flushAsyncObservers","shouldSchedule","currentRevision","CURRENT_TAG","sendObserver","flushSyncObservers","setObserverSuspended","property","CUSTOM_TAG_FOR","SELF_TAG","tagForProperty","propertyKey","addMandatorySetter","tagForObject","CONSTANT_TAG","markObjectAsDirty","PROPERTY_DID_CHANGE","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","removeArrayObserver","CHAIN_PASS_THROUGH","_WeakSet","finishLazyChains","key","lazyTags","readableLazyChainsFor","deps","getChainTagsForKeys","keys","tagMeta","tags","getChainTags","chainTags","current","currentTagMeta","currentMeta","pathLength","segmentEnd","segment","descriptor","lastSegmentEnd","indexOf","until","id","arrLength","item","toString","propertyTag","peekDescriptors","unknownProperty","instanceMeta","source","valueFor","lazyChains","writableLazyChainsFor","rest","substr","placeholderTag","isElementDescriptor","maybeTarget","maybeKey","maybeDesc","nativeDescDecorator","propertyDesc","decorator","setClassicDecorator","ComputedDescriptor","constructor","enumerable","configurable","_dependentKeys","setup","_obj","_propertyDesc","writeDescriptors","teardown","removeDescriptors","DESCRIPTOR_GETTER_FUNCTION","name","CPGETTER_FUNCTION","DESCRIPTOR_SETTER_FUNCTION","CPSETTER_FUNCTION","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","substring","after","defineProperty","data","previousDesc","wasDescriptor","defineDecorator","defineValue","writable","firstDotIndexCache","Cache","isPath","PROXY_CONTENT","getPossibleMandatoryProxyValue","HAS_NATIVE_PROXY","content","Reflect","isNaN","lastIndexOf","_getPath","_getProp","isObject$$1","isFunction","isObjectLike","root","parts","isDestroyed","getWithDefault","defaultValue","url","unkonwnProperty","fakeProxy","a","tolerant","setPath","currentValue","setUnknownProperty","trim","newRoot","EmberError","join","trySet","DEEP_EACH_REGEX","noop","ComputedProperty","_volatile","_readOnly","_hasConfig","_getter","_setter","maybeConfig","config","objectConfig","_property","initializer","ALLOW_CYCLES","set$$1","setterWrapper","_key","ret","call","passedArgs","addArg","test","revision","setValueFor","setRevisionFor","_throwReadOnlyError","clobberSet","volatileSet","isComponent","_set","cachedValue","hadCachedValue","AutoComputedProperty","ComputedDecoratorImpl","Function","readOnly","volatile","meta","prop","computed","autoComputed","isComputed","_globalsComputed","bind","getCachedValueFor","alias","altKey","AliasedProperty","AliasDecoratorImpl","oneWay","add","_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","spaces","LIBRARIES","VERSION","getProperties","propertyNames","setProperties","properties","props","propertyName","hasOwnProperty","searchDisabled","flags","_unprocessedNamespaces","unprocessedNamespaces","v","unprocessedMixins","NAMESPACES","NAMESPACES_BY_ID","create","addNamespace","namespace","removeNamespace","context","lookup","findNamespaces","isUppercase","charCodeAt","tryIsNamespace","findNamespace","processAllNamespaces","processNamespace","_processNamespace","Set","namespaces","classToString","calculateToString","isSearchDisabled","setSearchDisabled","flag","setUnprocessedMixins","paths","seen","isNamespace","code","e","str","superclass","getPrototypeOf","a_concat","concat","extractAccessors","getOwnPropertyDescriptor","concatenatedMixinProperties","concatProp","values","base","concats","giveDecoratorSuper","descs","originalGetter","superDesc","superProperty","superGetter","originalSetter","superSetter","dependentKeys","newProperty","giveMethodSuper","superMethod","applyConcatenatedProperties","baseValue","applyMergedProperties","JSON","stringify","newBase","hasFunction","propValue","_super","ROOT","mergeMixins","mixins","keysWithSuper","currentMixin","MIXINS","hasMixin","addMixin","mergeProps","_without","mergings","propKeys","prev","updateObserversAndListeners","followMethodAlias","ALIAS_METHOD","methodName","possibleDesc","fn","observers","listeners","updateObserver","updateListener","applyMixin","_hideKeys","isAlias","followed","mixin","Mixin","buildMixinsArray","ownerConstructor","seal","M","forEachMixins","reopen","applyPartial","detect","_detect","without","_keys","x","curMixin","targetMixin","some","AliasImpl","ALIASES","aliasMethod","funcOrDef","DEBUG_INJECTION_FUNCTIONS","inject","calledAsDecorator","getInjection","owner","container","tracked","_desc","isClassicDecorator$$1","fieldDesc","descriptorForField","getter","setter","newValue","newDesc","isTracked","TrackedDescriptor","_get","LEGACY_OWNER","OWNER","getOwner","object","owner","undefined","id","until","setOwner","ControllerMixin","reopen","concatenatedProperties","queryParams","_qpDelegate","_qpChanged","controller","_prop","dotIndex","indexOf","prop","slice","delegate","value","transitionToRoute","args","target","method","transitionTo","apply","replaceRoute","replaceWith","create","options","implementation","Boolean","implementationClass","implementations","arguments","AutoLocation","EmberObject","constructor","arguments","implementation","detect","rootURL","charAt","length","detectImplementation","location","history","userAgent","documentMode","global","concrete","lookup","undefined","willDestroy","concreteImplementation","destroy","reopen","initState","delegateToConcreteImplementation","getURL","setURL","replaceURL","onUpdateURL","formatURL","window","cancelRouterSetup","methodName","args","Boolean","options","currentPath","historyPath","getHistoryPath","substr","replaceState","path","hashPath","getHashPath","hash","query","rootURLIndex","indexOf","routeHash","hashParts","split","shift","join","routePath","HashLocation","EmberObject","constructor","arguments","implementation","init","_location","window","location","_hashchangeHandler","undefined","getHash","getURL","originalPath","substr","outPath","setURL","path","hash","replaceURL","replace","onUpdateURL","callback","_removeEventListener","lastSetURL","addEventListener","formatURL","url","willDestroy","removeEventListener","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","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","NoneLocation","EmberObject","constructor","arguments","implementation","detect","rootURL","charAt","length","getURL","path","replace","RegExp","setURL","onUpdateURL","callback","updateCallback","handleURL","url","formatURL","reopen","getPath","location","pathname","getQuery","search","getHash","hash","undefined","substr","getFullPath","getOrigin","origin","protocol","hostname","port","supportsHashChange","documentMode","global","supportsHistory","userAgent","history","indexOf","Boolean","replacePath","path","replace","freezeRouteInfo","transition","from","Object","isFrozen","freeze","to","cleanURL","url","rootURL","substr","length","RouterService","Service","init","arguments","_router","on","trigger","transitionTo","args","_doURLTransition","routeName","models","queryParams","_doTransition","replaceWith","method","urlFor","generate","isActive","routerMicrolib","_routerMicrolib","isActiveIntent","hasQueryParams","keys","_prepareQueryParams","state","recognize","indexOf","internalURL","recognizeAndLoad","reopen","Evented","currentRouteName","currentURL","location","currentRoute","RoutingService","Service","hasRoute","routeName","router","transitionTo","models","queryParams","shouldReplace","transition","_doTransition","method","normalizeQueryParams","_prepareQueryParams","generateURL","_routerMicrolib","visibleQueryParams","generate","isActiveForRoute","contexts","routerState","isCurrentWhenSpecified","handlers","recognizer","handlersFor","leafName","length","handler","maximumContexts","numberOfContextsAcceptedByHandler","isActiveIntent","reopen","targetState","currentState","currentRouteName","currentPath","handlerName","handlerInfos","req","i","names","BucketCache","constructor","cache","Map","has","bucketKey","stash","key","value","bucket","get","undefined","set","lookup","prop","defaultValue","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","overrideNameAssertion","indexOf","createRoute","resetNamespace","path","fullName","getFullName","dsl","call","generate","push","url","serialize","parts","split","engineInfo","localFullName","slice","routeInfo","serializeMethod","addRouteForEngine","Error","dslMatches","match","i","to","mount","_name","engineRouteMap","resolveRouteMap","as","instanceId","mountPoint","shouldResetEngineInfo","oldEngineInfo","optionsForChild","childDSL","class","substateName","canNest","generateControllerFactory","owner","controllerName","Factory","factoryFor","class","extend","toString","fullName","register","generateController","instance","lookup","QueryParams","constructor","values","isQueryParams","ROUTE_CONNECTIONS","WeakMap","defaultSerialize","model","params","length","object","name","test","hasDefaultSerialize","route","serialize","Route","EmberObject","constructor","arguments","context","_setRouteName","routeName","fullRouteName","getEngineRouteName","_stashNames","routeInfo","dynamicParent","_names","names","qps","namePaths","Array","a","i","qp","scope","parts","_activeQPChanged","value","_router","scopedPropertyName","_updatingQPChanged","urlKey","paramsFor","lookup","undefined","transition","_routerMicrolib","activeTransition","state","STATE_SYMBOL","fullName","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","intermediateTransitionTo","preparedArgs","refresh","replaceWith","setup","controllerName","definedController","controllerFor","generateController","propNames","addQueryParamsObservers","states","_qpDelegate","allowOverrides","routeInfos","cache","_bucketCache","PARAMS_SYMBOL","allParams","propertyNames","forEach","aQp","map","values","cacheKey","undecoratedDefaultValue","qpValues","setupController","_environment","options","shouldRender","renderTemplate","_qpChanged","stash","beforeModel","afterModel","redirect","contextDidChange","currentModel","sawParams","match","resolveIndex","findModel","deserialize","_params","_paramsFor","find","_skipAssert","owner","modelFor","_name","routable","modelLookupName","prototype","hasOwnProperty","call","resolvedModels","_model","render","renderOptions","buildRenderOptions","get","push","disconnectOutlet","outletName","parentView","outlet","replace","_disconnectOutlet","currentRouteInfos","parent","parentRoute","connections","connection","into","template","willDestroy","buildRouteInfoMetadata","reopenClass","isRouteFactory","routeInfoFor","offset","current","nameOrOptions","isDefaultRender","templateName","_topLevelViewTemplate","LOG_VIEW_LOOKUPS","getFullQueryParams","router","_deserializeQueryParams","fullQueryParams","qpValueWasPassedIn","copyDefaultValue","defaultValue","isArray","slice","mergeEachQueryParams","controllerQP","routeQP","keysAlreadyMergedOrSkippable","type","as","cqpName","newControllerParameterConfiguration","rqpName","newRouteParameterConfiguration","desc","engine","prefix","mountPoint","reopen","ActionHandler","Evented","mergedProperties","store","namespace","modelClass","factoryFor","Boolean","class","_qp","combinedQueryParameterConfiguration","queryParameterConfiguraton","hasRouterDefinedQueryParams","controllerDefinedQueryParameterConfiguration","normalizedControllerQueryParameterConfiguration","propName","defaultValueSerialized","serializedDefaultValue","serializedValue","inactive","active","send","isDestroying","isDestroyed","shift","action","actions","apply","queryParamsDidChange","changed","_totalPresent","removed","qpMap","totalChanged","concat","currentState","finalizeQueryParamChange","finalParams","qpMeta","_queryParamsFor","changes","_qpUpdates","qpUpdated","replaceUrl","presentKey","svalue","has","thisQueryParamChanged","queryParamsOnly","replaceConfigValue","thisQueryParamHasDefaultValue","_keepDefaultQueryParamValues","visible","method","routeQpMeta","finalizedController","clear","ROUTER_EVENT_DEPRECATIONS","ROUTER_EVENTS","on","_super","hasDidTransition","hasWillTransition","id","until","url","defaultDidTransition","infos","updatePaths","_cancelSlowTransitionTimer","notifyPropertyChange","set","targetState","trigger","LOG_TRANSITIONS","console","log","EmberRouter","_routePath","defaultWillTransition","oldInfos","newInfos","transition","K","slice","Array","prototype","EmberObject","constructor","arguments","currentURL","currentRouteName","currentPath","currentRoute","_qpCache","Object","create","_qpUpdates","Set","_queuedQPChanges","_toplevelView","_handledErrors","_engineInstances","_engineInfoByRoute","currentState","_resetQueuedQueryParameterChanges","_initRouterJs","location","router","owner","seen","PrivateRouter","Router","getRoute","name","routeName","routeOwner","engineInfo","engineInstance","_getEngineInstance","localFullName","fullRouteName","route","lookup","DefaultRoute","factoryFor","class","register","extend","fullName","_setRouteName","Error","getSerializer","serializeMethod","defaultSerialize","updateURL","path","setURL","didTransition","ROUTER_EVENTS","id","until","url","willTransition","triggerEvent","routeInfos","ignoreFailure","args","bind","routeWillChange","routeDidChange","to","transitionDidError","error","wasAborted","isAborted","_isErrorHandled","rollback","abort","replaceURL","doReplaceURL","routerMicrolib","_routerMicrolib","dslCallbacks","dsl","_buildDSL","resetNamespace","overrideNameAssertion","i","length","call","map","generate","enableLoadingSubstates","_hasModuleBasedResolver","options","resolveRouteMap","addRouteForEngine","DSL","resolver","Boolean","startRouting","initialURL","setupRouter","undefined","getURL","initialTransition","handleURL","_setupLocation","onUpdateURL","_setOutlets","isDestroying","isDestroyed","currentRouteInfos","defaultParentState","liveRoutes","connections","ROUTE_CONNECTIONS","get","ownState","representEmptyRoute","j","appended","appendLiveRoute","outlet","render","OutletView","setOutletState","instance","didCreateRootView","_url","split","_doURLTransition","routerJsMethod","didBeginTransition","transitionTo","models","queryParams","_doTransition","intermediateTransitionTo","replaceWith","method","formatURL","isActive","isActiveIntent","send","hasRoute","reset","willDestroy","destroy","_super","instances","_activeQPChanged","queryParameterName","newValue","_fireQueryParamTransition","_updatingQPChanged","add","rootURL","resolvedLocation","implementation","EmberLocation","detect","initState","_serializeQueryParams","forEachQueryParam","key","value","qp","urlKey","serializeQueryParam","type","_serializeQueryParam","JSON","stringify","_deserializeQueryParams","prop","deserializeQueryParam","_deserializeQueryParam","defaultType","Number","valueOf","parse","_pruneDefaultQueryParamValues","qps","_queryParamsFor","serializedDefaultValue","_targetRouteName","_queryParams","_keepDefaultQueryParamValues","targetRouteName","_processActiveTransitionQueryParams","_prepareQueryParams","activeTransition","unchangedQPs","qpUpdates","params","QUERY_PARAMS_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","_bucketCache","cacheKey","parts","defaultValue","_scheduleLoadingEvent","originRoute","_slowTransitionTimer","_handleSlowTransition","RouterState","STATE_SYMBOL","_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","ROUTER_EVENT_DEPRECATIONS","RouterState","constructor","emberRouter","router","routerJsState","isActiveIntent","routeName","models","queryParams","queryParamsMustMatch","state","undefined","Object","keys","length","visibleQueryParams","_prepareQueryParams","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","replace","normalizeControllerQueryParams","qpMap","accumulateQueryParamDescriptors","_desc","accum","desc","tmp","as","key","singleDesc","scope","resemblesURL","str","prefixRouteNameArg","owner","mountPoint","routable","EmberError","shallowEqual","a","b","k","aCount","bCount","TYPE_ORDER","undefined","null","boolean","number","string","array","object","instance","function","class","date","spaceship","a","b","diff","compare","v","w","type1","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","key","Object","prototype","hasOwnProperty","call","substring","id","until","url","FUNCTION_PROTOTYPE_EXTENSIONS","ENV","EXTEND_PROTOTYPES","Function","Object","defineProperties","prototype","property","configurable","enumerable","writable","value","id","until","url","arguments","observes","on","RSVP","configure","callback","promise","backburner","schedule","cb","_rsvpErrorQueue","on","onerrorDefault","reason","error","errorFor","overrideDispatch","errorThrown","unwrapErrorThrown","name","message","Error","Object","defineProperty","value","enumerable","isEqual","a","b","Date","getTime","contentFor","proxy","content","Mixin","create","init","_super","arguments","willDestroy","set","isTruthy","Boolean","CUSTOM_TAG_FOR","key","addMandatorySetter","meta","tag","_propertyKey","tags","push","unknownProperty","setUnknownProperty","value","m","isInitializing","isPrototypeMeta","ActionHandler","Mixin","create","mergedProperties","send","actionName","args","isDestroying","isDestroyed","actions","shouldBubble","apply","target","arguments","EMPTY_ARRAY","Object","freeze","identityFunction","item","uniqBy","array","key","isArray","ret","A","seen","Set","getter","forEach","val","has","add","push","iter","value","valueProvided","arguments","length","Boolean","findIndex","predicate","startAt","len","index","find","callback","target","bind","undefined","any","every","cb","indexOf","withNaNCheck","removeAt","insertAt","_obj","obj","HAS_NATIVE_PROXY","possibleProxyContent","PROXY_CONTENT","setInterval","Array","ArrayMixin","detect","type","nonEnumerableComputed","property","enumerable","mapBy","map","next","Mixin","create","Enumerable","init","_super","objectsAt","indexes","idx","get","set","replace","firstObject","readOnly","lastObject","slice","beginIndex","endIndex","object","lastIndexOf","addArrayObserver","opts","removeArrayObserver","hasArrayObservers","configurable","arrayContentWillChange","startIdx","removeAmt","addAmt","arrayContentDidChange","objectAt","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","uniq","without","MutableArray","MutableEnumerable","clear","start","pushObject","pushObjects","objects","popObject","shiftObject","unshiftObject","unshiftObjects","reverseObjects","reverse","setObjects","removeObject","loc","curObject","removeObjects","addObject","included","addObjects","NativeArray","Observable","deleteCount","items","ignore","keys","prototype","ENV","EXTEND_PROTOTYPES","arr","Mixin","create","compare","containerProxyMixin","__container__","ownerInjection","lookup","fullName","options","destroy","container","_super","factoryFor","Mixin","create","Mixin","create","copy","Mixin","create","Mixin","create","on","name","target","method","one","trigger","args","off","has","Mixin","create","Enumerable","Mixin","create","get","keyName","getProperties","args","concat","set","value","setProperties","hash","beginPropertyChanges","endPropertyChanges","notifyPropertyChange","addObserver","key","target","method","sync","removeObserver","hasObserverFor","getWithDefault","defaultValue","incrementProperty","increment","isNaN","parseFloat","isFinite","decrementProperty","decrement","toggleProperty","cacheFor","meta","valueFor","tap","proxy","promise","isFulfilled","isRejected","then","value","isDestroyed","isDestroying","content","reason","Mixin","create","isPending","readOnly","isSettled","get","EmberError","set","key","promiseAlias","catch","finally","name","arguments","Mixin","create","__registry__","resolveRegistration","fullName","options","isValidFullName","resolve","register","registryAlias","unregister","hasRegistration","registeredOption","registerOptions","registeredOptions","registerOptionsForType","registeredOptionsForType","inject","name","arguments","Mixin","create","target","action","actionContext","actionContextObject","value","undefined","context","lookup","triggerAction","opts","getTarget","ret","send","concat","instance","_target","ARRAY_OBSERVER_MAPPING","willChange","didChange","ArrayProxy","EmberObject","init","arguments","_objectsDirtyIndex","_objects","_lengthDirty","_length","_arrangedContent","_arrangedContentIsUpdating","_arrangedContentTag","_arrangedContentRevision","_lengthTag","_arrTag","PROPERTY_DID_CHANGE","_revalidate","CUSTOM_TAG_FOR","key","willDestroy","_removeArrangedContentArrayObserver","objectAtContent","idx","replace","amt","objects","replaceContent","objectAt","arrangedContent","length","i","value","removedCount","added","Array","content","_invalidate","_updateArrangedContentArray","oldLength","newLength","arrayContentWillChange","arrayContentDidChange","_addArrangedContentArrayObserver","isDestroyed","_arrangedContentArrayWillChange","_arrangedContentArrayDidChange","proxy","removedCnt","addedCnt","dirtyIndex","get","arrangedContentTag","reopen","MutableArray","startIdx","removeAmt","addAmt","reopen","Mixin","prototype","wasApplied","WeakSet","prototypeMixinMap","WeakMap","initCalled","undefined","destroyCalled","Set","ensureDestroyCalled","instance","has","destroy","initialize","obj","properties","m","concatenatedProperties","mergedProperties","hasConcatenatedProps","length","hasMergedProps","keyNames","Object","keys","i","keyName","value","toString","indexOf","ActionHandler","detect","possibleDesc","isDescriptor","baseValue","concat","set","setUnknownProperty","add","init","unsetInitializing","observerEvents","event","sync","CoreObject","constructor","owner","OWNER","proto","self","HAS_NATIVE_PROXY","unknownProperty","messageFor","property","String","Proxy","get","target","receiver","PROXY_CONTENT","Reflect","call","willDestroy","setInitializing","LEGACY_OWNER","args","isDestroyed","isDestroying","delete","hasToStringExtension","toStringExtension","extension","ret","extend","Class","apply","PrototypeMixin","arguments","create","props","extra","flattenProps","willReopen","p","reopenClass","superclass","detectInstance","metaForProperty","key","_meta","eachComputedProperty","callback","binding","empty","forEachDescriptors","name","descriptor","enumerable","meta","prototypeMixin","ownerConstructor","c","getPrototypeOf","Function","parent","classToString","isClass","isMethod","initProperties","j","k","_onLookup","injectedPropertyAssertion","debugContainerKey","type","split","desc","DEBUG_INJECTION_FUNCTIONS","_getter","_lazyInjections","injections","namespace","source","specifier","HAS_NATIVE_SYMBOL","instanceOwner","instanceFactory","defineProperty","INIT_FACTORY","Namespace","EmberObject","init","toString","name","undefined","nameClasses","destroy","prototype","isNamespace","NAMESPACES","NAMESPACES_BY_ID","processAll","processAllNamespaces","byName","findNamespace","EmberObject","CoreObject","_debugContainerKey","factory","undefined","fullName","Observable","apply","prototype","FrameworkObject","INIT_WAS_CALLED","ASSERT_INIT_WAS_CALLED","DebugFrameworkObject","init","arguments","ObjectProxy","FrameworkObject","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","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","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","setter","MUTABLE_CELL","EmberObject","extend","componentFor","name","owner","options","fullName","factoryFor","layoutFor","templateFullName","lookup","mixinObj","send","actionName","args","isDestroying","isDestroyed","action","actions","shouldBubble","apply","target","arguments","SEND_ACTION","sendAction","contexts","id","until","url","undefined","validateAction","triggerAction","actionContext","component","MUTABLE_CELL","value","toString","Mixin","create","Mixin","create","childViews","configurable","enumerable","get","appendChild","view","EMPTY_ARRAY","Object","freeze","Mixin","create","concatenatedProperties","init","_super","arguments","undefined","Array","isArray","classNameBindings","classNames","KEY_EVENTS","Mixin","create","TargetActionSupport","value","attributeBindings","placeholder","disabled","maxlength","init","_super","arguments","on","_elementValueDidChange","bubbles","interpretKeyEvents","event","map","method","keyCode","element","change","insertNewline","sendAction","cancel","focusIn","focusOut","keyPress","keyUp","keyDown","eventName","view","action","MUTABLE_CELL","undefined","SEND_ACTION","message","id","until","url","triggerAction","actionContext","stopPropagation","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","configurable","enumerable","get","renderer","getElement","appendTo","selector","target","hasDOM","document","querySelector","node","parentNode","nodeType","appendChild","append","body","elementId","willInsertElement","didInsertElement","willClearRender","destroy","_super","arguments","willDestroyElement","didDestroyElement","parentViewDidChange","tagName","init","undefined","render","handleEvent","eventName","evt","JQUERY_INTEGRATION","$","sel","jQueryDisabled","id","until","url","create","ActionManager","registeredActions","ROOT_ELEMENT_CLASS","ROOT_ELEMENT_SELECTOR","EVENT_MAP","mouseenter","mouseleave","EmberObject","extend","events","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","owner","environment","lookup","isInteractive","_eventHandlers","Object","create","setup","addedEvents","_rootElement","_finalEvents","undefined","rootElementSelector","JQUERY_INTEGRATION","jQueryDisabled","document","querySelector","classList","contains","tagName","target","parentNode","nodeType","add","is","selector","closest","length","find","addClass","TypeError","event","prototype","hasOwnProperty","call","setupHandler","eventName","viewHandler","view","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","currentTarget","handledActions","lastIndexOf","push","destroy","removeEventListener","off","remove","arguments","toString","jQuery","jQueryDisabled","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","id","until","url","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","ELEMENT_VIEW","WeakMap","VIEW_ELEMENT","getElementView","element","get","getViewElement","setElementView","set","setViewElement","clearElementView","delete","clearViewElement","CHILD_VIEW_IDS","getChildViews","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","Element","prototype","matches","el","selector","call","contains","a","b","current","parentNode","CoreView","FrameworkObject","extend","Evented","ActionHandler","isView","_states","states","init","_super","arguments","_state","_currentState","preRender","renderer","Error","parentView","instrumentDetails","hash","object","toString","containerKey","_debugContainerKey","view","trigger","name","args","method","apply","has","reopenClass","isViewFactory","states","Object","freeze","preRender","inDOM","hasElement","destroying","_default","appendChild","EmberError","handleEvent","rerender","destroy","Object","freeze","destroying","_default","appendChild","EmberError","rerender","Object","freeze","hasElement","_default","rerender","view","renderer","destroy","remove","handleEvent","eventName","event","has","trigger","Object","freeze","inDOM","hasElement","enter","view","renderer","register","elementId","Object","defineProperty","configurable","enumerable","get","set","value","EmberError","freeze","preRender","_default","Object","freeze","DefaultResolver","GLOBALS_RESOLVER","EmberObject","create","props","init","until","id","url","_parseNameCache","normalize","fullName","type","name","split","length","result","replace","m","charAt","toUpperCase","resolve","parsedName","parseName","resolveMethodName","resolved","resolveOther","root","LOG_RESOLVER","_logLookup","VALIDATED_TYPES","route","component","view","service","validationAttributes","factoryFlag","expectedType","Boolean","_parseName","fullNameWithoutType","namespace","lastSlashIndex","lastIndexOf","dirname","slice","parts","namespaceName","join","TypeError","lookupDescription","description","makeToString","factory","toString","useRouterNaming","resolveTemplate","templateName","resolveView","resolveController","resolveRoute","resolveModel","className","resolveHelper","resolveMain","knownForType","suffix","typeRegexp","RegExp","known","knownKeys","Object","keys","index","test","containerName","translateToContainerFullname","namePrefix","dasherizedName","prototype","found","symbol","padding","Array","ApplicationInstance","EngineInstance","extend","application","customEvents","rootElement","init","_super","arguments","_watchInstance","register","instantiate","_bootSync","options","_booted","BootOptions","setupRegistry","location","router","runInstanceInitializers","isInteractive","setupEventDispatcher","constructor","__registry__","lookup","readOnly","didCreateRootView","view","appendTo","startRouting","_didSetupRouter","setupRouter","handleURL","url","dispatcher","applicationCustomEvents","instanceCustomEvents","setup","getURL","visit","bootOptions","__container__","handleTransitionResolve","shouldRender","then","handleTransitionReject","error","name","_routerMicrolib","activeTransition","Error","message","setURL","willDestroy","_unwatchInstance","reopenClass","registry","toEnvironment","document","jQuery","environment","hasDOM","_renderMode","isBrowser","undefined","Boolean","env","librariesRegistered","Application","Engine","extend","rootElement","eventDispatcher","customEvents","autoboot","_globalsMode","_applicationInstances","init","_super","arguments","$","jQuery","registerLibraries","ENV","LOG_VERSION","libraries","logVersions","_readinessDeferrals","_booted","Set","Boolean","_prepareForGlobalsMode","waitForDOMReady","buildInstance","options","isDestroyed","isDestroying","base","application","ApplicationInstance","create","_watchInstance","instance","add","_unwatchInstance","delete","Router","_buildDeprecatedInstance","__deprecatedInstance__","__container__","isReady","ready","domReady","_bootSync","deferReadiness","advanceReadiness","didBecomeReady","boot","_bootPromise","_","defer","_bootResolver","RSVP","promise","runInitializers","error","reject","reset","handleReset","startRouting","resolve","willDestroy","_loaded","undefined","size","forEach","i","destroy","clear","visit","url","then","catch","reopenClass","buildRegistry","registry","commonSetupRegistry","register","Route","EventDispatcher","injection","AutoLocation","HashLocation","HistoryLocation","NoneLocation","BucketCache","RouterService","JQUERY_INTEGRATION","hasDOM","jQueryDisabled","registerCoreLibrary","jquery","loadHooks","ENV","EMBER_LOAD_HOOKS","loaded","_loaded","onLoad","name","callback","object","push","runLoadHooks","window","CustomEvent","event","detail","dispatchEvent","forEach","DEFAULT_FEATURES","EMBER_LIBRARIES_ISREGISTERED","EMBER_IMPROVED_INSTRUMENTATION","EMBER_NAMED_BLOCKS","EMBER_MODULE_UNIFICATION","EMBER_CUSTOM_COMPONENT_ARG_PROXY","EMBER_GLIMMER_SET_COMPONENT_TEMPLATE","EMBER_ROUTING_MODEL_ARG","EMBER_GLIMMER_IN_ELEMENT","EMBER_CACHE_API","FEATURES","ENV","isEnabled","feature","featureValue","ENABLE_OPTIONAL_FEATURES","value","TemplateOnlyComponent","constructor","moduleName","toString","templateOnlyComponent","isTemplateOnlyComponent","component","Controller","FrameworkObject","extend","ControllerMixin","inject","arguments","MODEL","Mixin","create","ActionHandler","isController","target","store","model","get","set","key","value","noop","assert","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","window","isFirefox","isChrome","addEventListener","document","documentElement","dataset","emberExtension","downloadURL","captureRenderTree","app","env","lookup","rendererType","isInteractive","renderer","debugRenderTree","capture","registerHandler","missingOptionsDeprecation","missingOptionsIdDeprecation","missingOptionsUntilDeprecation","deprecate","handler","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","Boolean","until","HANDLERS","registerHandler","invoke","type","callback","nextHandler","message","options","test","handlerForType","testing","isTesting","setTesting","value","Boolean","registerHandler","warn","missingOptionsDeprecation","missingOptionsIdDeprecation","handler","logWarning","message","console","test","options","arguments","length","Boolean","id","SEND_ACTION","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","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","initialize","runInstanceInitializers","instance","bucketName","cb","initializersByName","initializers","graph","DAG","i","length","add","before","after","topsort","reopenClass","Object","instanceInitializers","buildInitializerMethod","namespace","Registry","resolver","resolverFor","set","register","instantiate","commonSetupRegistry","Resolver","ResolverClass","DefaultResolver","humanName","superclass","undefined","attrs","optionsForType","singleton","Controller","injection","RoutingService","ContainerDebugAdapter","ComponentLookup","EngineInstance","EmberObject","extend","RegistryProxyMixin","ContainerProxyMixin","base","init","_super","arguments","application","registry","__registry__","Registry","fallback","__container__","container","owner","_booted","boot","options","_bootPromise","RSVP","Promise","resolve","_bootSync","cloneParentDependencies","setupRegistry","runInstanceInitializers","lookup","constructor","unregister","fullName","reset","buildChildEngineInstance","name","Engine","EmberError","engineInstance","buildInstance","parent","registrations","forEach","key","register","resolveRegistration","env","instantiate","singletons","isInteractive","push","inject","reopenClass","injection","ENGINE_PARENT","getEngineParent","engine","setEngineParent","parent","Error","subscribers","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","undefined","propertyTag","ret","tag","call","dependentKeyCompat","decorator","_desc","_meta","isClassicDecorator","set","BINDINGS_MAP","WeakMap","setupAction","target","key","actionFn","constructor","undefined","proto","Object","prototype","hasOwnProperty","call","parentActions","actions","get","bindings","Map","set","fn","bind","action","desc","decorator","meta","isClassicDecorator","value","expandPropertiesToArray","predicateName","properties","expandedProperties","extractProperty","entry","push","i","length","property","indexOf","generateComputedWithPredicate","name","predicate","dependentKeys","computedFunc","lastIdx","value","empty","dependentKey","Array","prototype","slice","call","arguments","notEmpty","none","not","bool","Boolean","match","regexp","test","equal","gt","gte","lt","lte","and","or","oneWay","readOnly","deprecatingAlias","options","get","key","set","reduceMacro","dependentKey","callback","initialValue","name","test","arr","reduce","readOnly","arrayMacro","additionalDependentKeys","propertyName","replace","value","call","multiArrayMacro","_dependentKeys","every","dependentKeys","map","key","sum","Array","prototype","slice","arguments","item","max","Math","Infinity","min","undefined","isArray","mapBy","propertyKey","filter","filterBy","length","uniq","args","seen","Set","forEach","has","add","push","uniqBy","list","union","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","sortProperties","s","itemsKeyIsAtThis","normalizedSortProperties","normalizeSortProperties","items","sortByNormalizedSortProperties","p","prop","direction","split","itemA","itemB","result","merge","MERGE","deprecatedMerge","undefined","assign","target","i","arguments","length","arg","updates","Object","keys","prop","_assign","merge","original","updates","id","until","url","props","Object","keys","prop","i","length","WeakSet","WeakSetPolyFill","constructor","_map","WeakMap","add","val","set","delete","has","currentRunLoop","getCurrentRunLoop","onBegin","current","onEnd","next","flush","queueName","_rsvpErrorQueue","Math","random","Date","now","replace","queues","backburner","Backburner","defaultQueue","onErrorTarget","onErrorMethod","run","arguments","_globalsRun","bind","join","curried","methodOrTarget","methodOrArg","length","type","args","concat","begin","end","schedule","hasScheduledTimers","hasTimers","cancelTimers","later","once","unshift","scheduleOnce","push","cancel","timer","debounce","throttle","inject","arguments","Service","FrameworkObject","extend","reopenClass","isServiceFactory","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","Array","isArray","arguments","prototype","slice","call","w","get","dasherize","camelize","classify","underscore","capitalize","ENV","EXTEND_PROTOTYPES","Object","defineProperties","configurable","enumerable","writeable","value","args","STRINGS","setStrings","strings","getStrings","getString","name","InstructionEncoderImpl","constructor","buffer","size","encode","type","machine","Error","first","arguments","length","push","i","op","patch","position","target","DEBUG","CI","Storage","constructor","array","next","add","element","slot","length","prev","deref","pointer","drop","Stack","vec","clone","slice","sliceFrom","start","end","copy","from","to","writeRaw","pos","value","getRaw","reset","len","NodeDOMTreeConstruction","DOMTreeConstruction","constructor","doc","setupUselessElement","insertHTMLBefore","parent","reference","html","raw","document","createRawHTMLSection","insertBefore","ConcreteBounds","createElement","tag","setAttribute","element","name","value","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","arr","value","type","strArray","serializable","templateMeta","other","label","immediate","prim","DEFAULT_CAPABILITIES","dynamicLayout","dynamicTag","prepareArgs","createArgs","attributeHook","elementHook","dynamicScope","createCaller","updateHook","createInstance","wrapped","willDestroy","MINIMAL_CAPABILITIES","DefaultCompileTimeResolverDelegate","constructor","inner","lookupHelper","name","referrer","helper","undefined","Error","JSON","stringify","lookupModifier","modifier","lookupComponent","component","lookupPartial","partial","resolve","handle","resolveLayoutForTag","tag","resolver","meta","compilable","capabilities","PushPrimitiveReference","PushPrimitive","op","primitive","p","Call","params","hash","atNames","$v0","DynamicScope","names","block","YieldBlock","to","PushYieldableBlock","PushSymbolTable","symbolTable","InvokeStaticBlock","InvokeStaticBlockWithStack","callerCount","parameters","calleeCount","length","count","Math","min","out","push","i","$fp","table","SwitchCases","callback","clauses","when","match","clause","slice","Replayable","args","args$$1","body","actions","ReplayableIf","ifTrue","ifFalse","pushBuilderOp","context","op$$1","encoder","syntax","program","mode","constants","concat","option$1","op1","startLabels","stopLabels","jitCompileBlock","compileLayoutOpcode","setBlock","NONE","pushCompileOp","action","concatStatements","compileOp","CompileBlockOp","CompileInlineOp","InvokeStatic","CompileArgs","PushCompilable","DynamicComponent","IfResolvedComponent","compileBlock","inline","ifUnhandled","returned","compileInline","isHandled","compilable$$1","compile","problem","start","end","PLACEHOLDER_HANDLE","definition","attrs","blocks","attrsBlock","compilableBlock","compiled","Array","isArray","namedBlocks","InvokeDynamicComponent","staticTemplate","dynamicTemplate","orElse","resolverDelegate","meta$$1","compilableBlocks","pushOp","op3","op2","Compilers","funcs","add","func","sexp","index","EXPRESSIONS","parts","part","offset","isComponent","restArgs","curryComponent","nameOrError","expectString","kind","andThen","span","isGetContextualFree","opcode","expr","head","upvars","sym","path","withPath","freeVar","pushResolutionOp","operation","concatExpressions","compileSimpleArgs","ifResolved","expressionContext","asPartial","resolvedHelper","expressions","expression$$1","CompilePositional","flags","EMPTY_ARRAY","val","resolved","error","UNHANDLED","isNoAction","item","populateBuiltins","inlines","_hash","get","has","$sp","keys","values","key","_params","StaticComponentHelper","_name","EMPTY_BLOCKS","MacrosImpl","Blocks","Inlines","addMissing","missing","macroContext","handled","isGet","pathName","simplePathName","syntaxCompilationContext","macros","Context","ProgramCompilationContext","JitContext","JitProgramCompilationContext","AotContext","templateCompilationContext","EncoderImpl","STATEMENTS","INFLATE_ATTR_TABLE","INFLATE_TAG_TABLE","inflateTagName","tagName","inflateAttrName","attrName","stringName","namespace","layoutHandle","template","InvokeStaticComponent","layout","InvokeComponent","evalInfo","evalSymbols","CompilableTemplateImpl","statements","maybeCompile","symbols","hasEval","result","compileStatements","syntaxContext","sCompiler","commit","heap","size","overloadBlock","containing","NamedBlocksImpl","Object","with","hasAny","desc","isGetFree","named","scopeSize","buffer","malloc","pushPlaceholder","pushStdlib","finishMalloc","debugCompiler","LabelsImpl","labels","targets","target","at","patch","address","isCompileOpcode","isResolutionOpcode","isSimpleOpcode","isErrorOpcode","labelsStack","Stack","InstructionEncoderImpl","errors","encode","operands","map","operand","currentLabels","constant","current","pop","array","blockNames","ATTRS_BLOCK","default","bailOut","$s0","bindings","symbol","isBlock","charAt","callerBlock","lookupName","indexOf","WrappedComponent","attrsBlockNumber","WithSavedRegister","$s1","blockForLayout","StaticComponent","namedBlocks$$1","bindableBlocks","bindableAtNames","invokePreparedComponent","hasBlock","populateLayout","InvokeBareComponent","register","StdLib","main","trustingGuardedAppend","cautiousGuardedAppend","getAppend","trusting","StdAppend","compileStd","mainHandle","build","STDLIB_META","stdContext","delegate","WriteOnlyConstants","HeapImpl","stdlib","JitConstants","PartialDefinitionImpl","getPartial","WrappedBuilder","attrsBlockIndex","m","clientId","templateFactory","id","templateId","parsedBlock","create","envMeta","newMeta","parse","TemplateImpl","parsedLayout","wrappedLayout","asLayout","asWrappedLayout","Component","serialized","parsed","factory","WELL_KNOWN_EMPTY_ARRAY","Object","freeze","STARTER_CONSTANTS","WELL_KNOWN_EMPTY_ARRAY_POSITION","indexOf","WriteOnlyConstants","constructor","values","slice","indexMap","Map","map","value","index","get","undefined","push","set","array","length","handles","Array","i","serializable","str","JSON","stringify","toPool","RuntimeConstantsImpl","pool","getValue","handle","getArray","reified","n","getSerializable","s","parse","JitConstants","arguments","reifiedArrs","templateMeta","meta","names","RuntimeOpImpl","heap","offset","size","rawType","getbyaddr","isMachine","type","op1","op2","op3","encodeTableInfo","scopeSize","state","changeState","info","newState","PAGE_SIZE","RuntimeHeapImpl","serializedHeap","buffer","table","Int32Array","getaddr","address","sizeof","scopesizeof","hydrateHeap","HeapImpl","placeholders","stdlibs","capacity","item","sizeCheck","setbyaddr","malloc","finishMalloc","gethandle","free","compact","compactedSize","Size","SIZE_MASK","j","pushPlaceholder","valueFunc","pushStdlib","operand","patchPlaceholders","patchStdlibs","stdlib","capture","RuntimeProgramImpl","constants$$1","constants","_opcode","hydrate","artifacts","opcode","hydrateProgram","arr","start","end","ret","program","programArtifacts","syntax","CachedReference","constructor","lastRevision","lastValue","value","tag","compute","invalidate","ReferenceCache","reference","initialized","peek","initialize","revalidate","NOT_MODIFIED","currentValue","isModified","PrimitiveReference","inner","CONSTANT_TAG","get","_key","UNDEFINED_REFERENCE","undefined","ConstReference","UPDATE_REFERENCED_VALUE","RootReference","env","children","key","didSetupDebugContext","setTemplatePathDebugContext","debugLogName","PropertyReference","ref","ComponentRootReference","HelperRootReference","fn","args","debugName","computeRevision","computeTag","name","valueTag","computeValue","getTemplatePathDebugContext","parentReference","propertyKey","parentReferenceTag","parentValue","combined","getPath","setPath","IterationItemReference","itemValue","itemKey","update","NULL_IDENTITY","KEY","_","index","INDEX","String","IDENTITY","item","keyForPath","path","Error","uniqueKeyFor","makeKeyFor","WeakMapWithPrimitives","weakMap","_weakMap","WeakMap","primitiveMap","_primitiveMap","Map","set","IDENTITIES","identityForNthOccurence","count","identities","identity","keyFor","seen","memo","IterableReference","parentRef","iterator","isEmpty","createIterator","next","iterable","Array","isArray","ArrayIterator","maybeIterator","toIterator","EMPTY_ARRAY","IteratorWrapper","childRefFor","nextValue","pos","length","current","kind","INNER_VM","DESTROYABLE_STACK","STACKS","REGISTERS","HEAP","CONSTANTS","ARGS","PC","CursorImpl","constructor","element","nextSibling","ConcreteBounds","parentNode","first","last","parentElement","firstNode","lastNode","SingleNodeBounds","node","move","bounds","reference","parent","current","next","insertBefore","clear","removeChild","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","child","isDestroying","parentMeta","childMeta","registerDestructor","destructor","eager","destructorsKey","unregisterDestructor","scheduleDestroy","scheduleDestroyed","destroy","removeChildFromParent","destroyChildren","setScheduleDestroy","setScheduleDestroyed","isDestroyed","enableDestroyableTracking","assertDestroyablesDestroyed","isTesting","Map","map","undestroyed","forEach","objectsToString","debugToString","join","error","destroyables","_a","First","Last","CURSOR_STACK","NewElementBuilder","env","constructing","operations","Stack","modifierStack","blockStack","pushElement","dom","getAppendOperations","updateOperations","getDOM","forInitialRender","cursor","initialize","resume","block","reset","stack","pushLiveBlock","pushSimpleBlock","debugBlocks","toArray","hasBlocks","size","popElement","pop","SimpleLiveBlock","pushUpdatableBlock","UpdatableBlockImpl","pushBlockList","list","LiveBlockList","isRemote","didAppendBounds","__openBlock","popBlock","finalize","__closeBlock","openElement","tag","__openElement","createElement","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","value","trustedContent","appendDynamicText","untrustedContent","appendDynamicFragment","appendDynamicNode","appendComment","createComment","__setAttribute","name","namespace","setAttribute","__setProperty","setStaticAttribute","setDynamicAttribute","trusting","attribute","attributeFor","nesting","boundList","head","tail","_element","_node","_bounds","_stack","clientBuilder","SVG_INTEGRATION_POINTS","foreignObject","desc","title","BLACKLIST_TABLE","Object","create","DOMOperations","document","setupUselessElement","uselessElement","context","isElementInSVGNamespace","isHTMLIntegrationPoint","namespaceURI","tagName","createElementNS","comment","prev","previousSibling","insertAdjacentHTML","HTMLElement","data","moveNodesBefore","target","SVG_NAMESPACE","applySVGInnerHTMLFix","DOMClass","svgNamespace","shouldApplyFix","div","DOMChangesWithSVGInnerHTMLFix","fixSVG","toUpperCase","wrappedHtml","svg","e","childNodes","applyTextNodeMergingFix","shouldApplyFix$1","DOMChangesWithTextNodeMergingFix","uselessComment","didSetUselessComment","nextPrevious","Text","mergingTextDiv","appendChild","WHITESPACE","doc","isWhitespace","test","DOM","TreeConstruction","setAttributeNS","appliedTreeContruction","DOMTreeConstruction","DOMChangesImpl","removeAttribute","insertAfter","helper","helper$1","PrimitiveReference","ConstReference","UNDEFINED_REFERENCE","NULL_REFERENCE","TRUE_REFERENCE","FALSE_REFERENCE","ValueReference","StringReference","_key","arguments","lengthReference","key","inner","ConditionalReference","toBool","defaultToBool","_tag","normalizeStringValue","isEmpty","shouldCoerce","isString","toString","isSafeString","toHTML","isNode","nodeType","isFragment","normalizeProperty","slotName","type","normalized","lower","toLowerCase","preferAttr","ATTR_OVERRIDES","INPUT","form","autocorrect","SELECT","OPTION","TEXTAREA","LABEL","FIELDSET","LEGEND","OBJECT","BUTTON","propName","badProtocols","badTags","badTagsForDataURI","badAttributes","badAttributesForDataURI","has","array","checkURI","checkDataURI","requiresSanitization","sanitizeAttributeValue","str","protocol","protocolForURL","dynamicAttribute","attr","buildDynamicAttribute","buildDynamicProperty","SafeDynamicAttribute","SimpleDynamicAttribute","SafeDynamicProperty","isUserInputValue","InputValueDynamicAttribute","isOptionSelected","OptionSelectedDynamicAttribute","DefaultDynamicProperty","DynamicAttribute","_env","normalizedValue","normalizeValue","update","normalizedName","removeAttributeNS","sanitized","input","currentValue","option","selected","_a$1","ScopeImpl","slots","callerScope","evalScope","partialMap","root","self","refs","init","sized","getSelf","getSymbol","symbol$$1","getBlock","getEvalScope","getPartialMap","bind","bindSelf","bindSymbol","bindBlock","bindEvalScope","bindPartialMap","bindCallerScope","scope","getCallerScope","slice","RangeError","TRANSACTION","TransactionImpl","scheduledInstallManagers","scheduledInstallModifiers","scheduledUpdateModifierManagers","scheduledUpdateModifiers","createdComponents","createdManagers","updatedComponents","updatedManagers","didCreate","component","manager","didUpdate","scheduleInstallModifier","modifier","scheduleUpdateModifier","commit","install","defaultDelegateFn","delegateFn","delegateDefault","defaultFn","EnvironmentImpl","options","delegate","extra","isInteractive","defaultGetProtocolForURL","defaultAttributeFor","getProp","defaultGetProp","getPath","setPath","defaultSetPath","defaultToBool$1","toIterator","defaultToIterator","appendOperations","getTemplatePathDebugContext","ref","setTemplatePathDebugContext","parentRef","toConditionalReference","begin","onTransactionBegin","transaction","onTransactionCommit","url","URL","legacyProtocolForURL","baseURI","_isTrusting","obj","Boolean","Symbol","iterator","window","match","exec","anchor","href","DefaultRuntimeResolver","lookupComponent","referrer","lookupPartial","partial","resolve","handle","resolved","compilable","locator","getInvocation","invocation","JSON","stringify","AotRuntime","program","resolver","RuntimeProgramImpl","hydrate","JitRuntime","constants","heap","inTransaction","cb","AppendOpcodes","evaluateOpcode","add","evaluate","kind","syscall","debugBefore","vm","opcode","params","opName","sp","pc","fetchValue","$pc","isMachine","debugAfter","pre","operation","APPEND_OPCODES","AbstractOpcode","UpdatingOpcode","combineTagged","tagged","optimized","CONSTANT_TAG","combineFromIndex","startIndex","ConcatReference","CachedReference","parts","compute","castToString","op1","runtime","args","popJs","loadValue","$v0","expr","referenceForSymbol","pushJs","table","popSmallInt","_name","getValue","locals","symbols","pushRootScope","_block","pushNull","isUndefinedReference","handleOrCompilable","pushSmallInt","hasBlockParams","parameters","count","out","offset","capabilityFlagsFrom","capabilities","dynamicLayout","dynamicTag","prepareArgs","createArgs","attributeHook","elementHook","dynamicScope","createCaller","updateHook","createInstance","wrapped","willDestroy","managerHasCapability","_manager","capability","hasCapability","_a$2","CURRIED_COMPONENT_DEFINITION_BRAND","isCurriedComponentDefinition","definition","isComponentDefinition","CurriedComponentDefinition","unwrap","realloc","curriedArgs","positional","prepend","named","merge","curry","spec","resolveComponent","ClassListReference","CurryComponentReference","lastValue","lastDefinition","DynamicTextContent","lastRevision","textNode","nodeValue","ContentTypeReference","rawValue","elements","updateWith","pushChildScope","popScope","pushDynamicScope","popDynamicScope","other","primitive","pushRaw","peekJs","register","op2","position","dup","load","fetch","_names","names","getArray","bindDynamicScope","enter","exit","_table","getSerializable","compile","pushFrame","pushScope","invokingScope","localsCount","at","call","goto","cache","ReferenceCache","peek","Assert","comparison","peekSmallInt","assert","revalidate","throw","JumpIfNotModifiedOpcode","INITIAL","alwaysRevalidate","didModify","DidModifyOpcode","elementRef","insertBeforeRef","guidRef","associateDestroyable","$t0","flush","d","getDestroyable","addModifier","getTag","UpdateModifierOpcode","lastUpdated","_value","op3","_namespace","UpdateDynamicAttributeOpcode","COMPONENT_INSTANCE","_meta","capturedArgs","getCapabilities","instance","lookup","$t1","resolvedDefinition","_blockNames","flags","positionalCount","atNames","blockNames","EMPTY_ARRAY","setup","empty","capture","_state","resolveCurriedComponentDefinition","blocks","values","preparedArgs","keys","unwrappedDefinition","hasDefaultBlock","UpdateComponentOpcode","beginCacheGroup","ComponentElementOperations","attributes","classes","deferred","setDeferredAttr","mergeClasses","allStringClasses","makeClassList","didCreateElement","getTagName","layout","hasStaticLayoutCapability","getJitStaticLayout","hasDynamicLayoutCapability","template","getJitDynamicLayout","asWrappedLayout","asLayout","symbolTable","instanceState","definitionState","invoke","getAotStaticLayout","getAotDynamicLayout","hasEval","callerNames","atName","symbolName","blockName","symbolNames","mgr","didRenderLayout","DidUpdateLayoutOpcode","commitCacheGroup","_vm","didUpdateLayout","debugCallback","console","info","callback","setDebuggerCallback","resetDebuggerCallback","ScopeInspector","evalInfo","slot","path","split","reduce","r","part","_symbols","_evalInfo","inspector","constants$$1","outerSymbols","vmHandle","getPartial","partialSymbols","outerScope","partialScope","listRef","keyRef","keyValue","iterableRef","IterableReference","relativeStart","enterList","exitList","breaks","iterable","enterItem","registerItem","DEFAULT_CAPABILITIES","MINIMAL_CAPABILITIES","SimpleComponentManager","_args","_dynamicScope","_caller","_hasDefaultBlock","TEMPLATE_ONLY_COMPONENT","DefaultDynamicScope","bucket","DynamicVarReference","nameRef","varTag","getVar","getDynamicVar","VMArgumentsImpl","PositionalArgumentsImpl","NamedArgumentsImpl","BlockArgumentsImpl","base","$sp","namedCount","namedBase","positionalBase","blocksCount","blocksBase","pos","newBase","copy","EMPTY_POSITIONAL","EMPTY_NAMED","CapturedArgumentsImpl","_references","references","CapturedPositionalArgumentsImpl","additions","valueOf","idx","parseInt","_atNames","toSyntheticName","toAtName","CapturedNamedArgumentsImpl","extras","extraNames","newNames","_map","toSymbolName","internalValues","_symbolNames","internalTag","CapturedBlockArgumentsImpl","EMPTY_ARGS","initializeRegistersWithSP","LowLevelVM","externs","registers","currentOpSize","fetchRegister","loadRegister","setPc","$ra","$fp","popFrame","pushSmallFrame","popSmallFrame","getaddr","returnTo","return","nextStatement","operationSize","evaluateOuter","evaluateInner","evaluateMachine","evaluateSyscall","UpdatingVM","frameStack","execute","opcodes","handler","try","frame","ops","UpdatingVMFrame","handleException","ResumableVMStateImpl","resumeCallback","builder","BlockOpcode","TryOpcode","didInitializeChildren","elementStack","updating","result","pushUpdating","drop","ListItemOpcode","memo","retained","updateReferences","shouldRemove","ListBlockOpcode","lastIterated","opcodeMap","marker","initializeChild","didChange","sync","itemMap","currentOpcodeIndex","seenIndex","retainItem","itemOpcode","moveItem","seenUnretained","insertItem","deleteItem","before","currentSibling","delete","exceptionHandler","RenderResultImpl","rerender","InnerStack","Stack$1","js","concat","start","end","from","to","writeJs","writeRaw","writeSmallInt","writeTrue","writeFalse","writeNull","writeUndefined","getJs","getRaw","getSmallInt","len","EvaluationStackImpl","restore","snapshot","pushTrue","pushFalse","pushUndefined","n","top","items","log","_a$3","_b","Stacks","VM","s0","s1","t0","t1","v0","evalStack","$s0","$s1","captureState","guard","tryOpcode","didEnter","valueRef","childRefFor","memoRef","listBlock","addr","popUpdating","tryUpdating","done","vmState","AotVM","treeBuilder","initAOT","initial","scopeSize","scopesizeof","initJIT","JitVM","TemplateIteratorImpl","renderSync","iteratorResult","renderAotMain","renderAot","renderJitMain","renderInvocation","argList","argNames","renderAotComponent","main","renderJitComponent","problem","span","SERIALIZATION_FIRST_NODE_STRING","isSerializationFirstNode","RehydratingCursor","startingBlockDepth","candidate","injectedOmittedNode","openBlockDepth","RehydrateBuilder","unmatchedAttributes","blockDepth","currentCursor","isComment","disableRehydration","enableRehydration","clearMismatch","isCloseBlock","closeBlockDepth","getBlockDepth","isOpenBlock","isRehydrating","candidateBounds","markerBounds","newBounds","possibleEmptyMarker","isEmpty$1","_candidate","isMarker","isTextNode","isSeparator","isElement","isSameNodeType","unmatched","findByName","getMarker","querySelector","cursorId","lastIndexOf","rehydrationBuilder","EMPTY_ARRAY","Object","freeze","debugAssert","test","msg","Error","deprecate","desc","console","warn","GUID","initializeGuid","object","_guid","ensureGuid","dict","create","isDict","u","undefined","isObject","DictSet","constructor","add","obj","delete","StackImpl","stack","current","size","length","push","item","pop","len","nth","from","isEmpty","toArray","clearElement","parent","firstChild","next","nextSibling","removeChild","SERIALIZATION_FIRST_NODE_STRING","isSerializationFirstNode","node","nodeValue","keys","objKeys","assign","i","arguments","assignment","j","key","fillNulls","count","arr","Array","values","vals","unwrap","val","expect","message","unreachable","exhausted","value","tuple","args","symbol","Symbol","Math","floor","random","Date","now","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","debugToString","getFunctionName","fn","functionName","name","Function","prototype","toString","call","replace","getObjectName","className","getPrimitiveName","debugToString$1","beginTestSteps","endTestSteps","verifySteps","logStep","assertNever","log","trace","JSON","stringify","symbol","Symbol","key","Math","floor","random","Date","now","symbolFor","for","getGlobal","globalThis","self","window","global","Error","runInAutotrackingTransaction","deprecateMutationsInAutotrackingTransaction","setAutotrackingTransactionEnv","assertTagNotConsumed","markTagAsConsumed","DEPRECATE_IN_AUTOTRACKING_TRANSACTION","AUTOTRACKING_TRANSACTION","debuggingContexts","TRANSACTION_ENV","assert","message","deprecate","console","warn","debugMessage","obj","keyName","objName","name","className","constructor","undefined","String","dirtyString","env","fn","debuggingContext","previousDeprecateState","previousTransactionState","WeakMap","unshift","shift","nthIndex","str","pattern","n","startingPos","i","length","indexOf","makeAutotrackingErrorMessage","sourceData","context","push","join","_tag","has","set","map","c","replace","tag","subtag","subtags","forEach","forceHardError","get","e","stack","updateStackBegin","start","end","substr","CONSTANT","INITIAL","VOLATILE","NaN","$REVISION","bump","COMPUTE","valueForTag","validateTag","snapshot","TYPE","ALLOW_CYCLES","MonomorphicTagImpl","type","revision","lastChecked","lastValue","isUpdating","subtagBufferCache","Array","isArray","value","max","subtagValue","updateTag","_subtag","CONSTANT_TAG","dirtyTag","createTag","createUpdatableTag","isConstTagged","isConstTag","VolatileTag","VOLATILE_TAG","CurrentTag","CURRENT_TAG","combine","tags","optimized","l","createCombinatorTag","tag1","tag2","tag3","propertyDidChange","setPropertyDidChange","cb","isObjectLike","u","TRACKED_TAGS","dirtyTagFor","propertyTag","tagMetaFor","Map","tagFor","meta","Tracker","Set","last","add","size","tagsArr","CURRENT_TRACKER","OPEN_TRACK_FRAMES","beginTrackFrame","endTrackFrame","current","pop","isTracking","consumeTag","CACHE_KEY","memo","callback","cache","createCache","memoized","getValue","isConstMemo","isMemo","isConst","FN","LAST_VALUE","TAG","SNAPSHOT","DEBUG_LABEL","debuggingLabel","assertCache","assertTag","fnName","track","untrack","trackedData","initializer","values","hasInitializer","getter","call","setter","globalObj","GLIMMER_VALIDATOR_REGISTRATION","isMachineOp","value","isOp","$pc","$ra","$fp","$sp","$s0","$s1","$t0","$t1","$v0","isLowLevelRegister","register","SavedRegister","TemporaryRegister","is","variant","value","Array","isArray","isFlushElement","isAttribute","val","isArgument","isHelper","expr","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","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","DAG","_vertices","Vertices","prototype","add","key","value","before","after","Error","vertices","v","val","addEdge","i","length","addEdges","each","callback","walk","topsort","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","EmberObject","extend","asyncStart","asyncEnd","exception","error","Adapter","extend","init","doneCallbacks","asyncStart","QUnit","stop","push","config","current","assert","async","asyncEnd","start","done","pop","exception","error","ok","DEFAULT_EVENT_OPTIONS","canBubble","cancelable","KEYBOARD_EVENT_TYPES","MOUSE_EVENT_TYPES","focus","el","isContentEditable","type","getAttribute","browserIsNotFocused","document","hasFocus","fireEvent","bubbles","element","options","event","indexOf","buildKeyboardEvent","rect","getBoundingClientRect","x","left","y","top","simulatedCoordinates","screenX","screenY","clientX","clientY","buildMouseEvent","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","proto","callback","isAsync","args","apply","then","app","fn","method","lastPromise","finally","asyncEnd","RSVP","configure","callback","promise","backburner","currentInstance","schedule","visit","click","keyEvent","fillIn","wait","andThen","pauseTest","triggerEvent","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","wait","currentPath","app","routingService","__container__","lookup","currentRouteName","app","routingService","__container__","lookup","currentURL","app","router","__container__","lookup","getURL","fillIn","app","selector","contextOrText","text","$el","el","context","undefined","testHelpers","findWithAssert","value","innerHTML","wait","find","app","selector","context","jQueryDisabled","$el","$","findWithAssert","app","selector","context","$el","testHelpers","find","length","Error","keyEvent","app","selector","contextOrType","typeOrKeyCode","keyCode","context","type","undefined","testHelpers","triggerEvent","which","resume","resumeTest","undefined","pauseTest","RSVP","Promise","resolve","triggerEvent","app","selector","contextOrType","typeOrOptions","possibleOptions","arity","arguments","length","context","type","options","$el","testHelpers","findWithAssert","el","wait","visit","app","url","router","__container__","lookup","shouldHandleURL","boot","then","location","setURL","__deprecatedInstance__","_readinessDeferrals","initialURL","testHelpers","wait","wait","app","value","RSVP","Promise","resolve","router","__container__","lookup","watcher","setInterval","routerIsLoading","_routerMicrolib","Boolean","activeTransition","clearInterval","name","Application","initializers","initializer","initialize","application","testing","deferReadiness","setupForTesting","adapter","self","QUnit","Adapter","create","QUnitAdapter","jQueryDisabled","document","off","incrementPendingRequests","decrementPendingRequests","on","$","jQuery","testCheckboxClick","handler","input","document","createElement","attr","css","position","left","top","appendTo","on","trigger","remove","hasDOM","jQueryDisabled","checked","event","special","click","nodeName","type","id","Test","_helpers","helpers","registerHelper","registerAsyncHelper","unregisterHelper","onInjectHelpers","Promise","TestPromise","promise","resolve","registerWaiter","unregisterWaiter","checkWaiters","Object","defineProperty","get","getAdapter","set","setAdapter","adapter","getAdapter","setAdapter","value","exception","adapterDispatch","asyncStart","asyncEnd","error","console","stack","helpers","registerHelper","name","helperMethod","method","meta","wait","registerAsyncHelper","unregisterHelper","TestPromise","prototype","callbacks","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","promise","resolver","label","fullLabel","resolve","getLastPromise","value","run","fn","contexts","callbacks","registerWaiter","context","callback","arguments","length","indexOf","push","unregisterWaiter","i","splice","checkWaiters","call","Ember","context","imports","isNamespace","toString","Object","defineProperty","get","getENV","enumerable","getLookup","set","setLookup","EMBER_EXTEND_PROTOTYPES","id","until","ENV","EXTEND_PROTOTYPES","getOwner","setOwner","Application","ApplicationInstance","url","Resolver","Engine","EngineInstance","assign","merge","generateGuid","utils","GUID_KEY","guidFor","inspect","makeArray","canInvoke","tryInvoke","wrap","uuid","Container","Registry","assert","EmberDebug","warn","debug","deprecate","deprecateFunc","runInDebug","Error","EmberError","Debug","registerDeprecationHandler","registerWarnHandler","isComputed","metal","instrument","instrumentation","subscribe","Instrumentation","unsubscribe","reset","run","runloop","_globalsRun","backburner","begin","bind","cancel","debounce","end","hasScheduledTimers","join","later","next","once","schedule","scheduleOnce","throttle","cancelTimers","getCurrentRunLoop","computed","_globalsComputed","_descriptor","nativeDescDecorator","_tracked","tracked","alias","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","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","keys","map","k","service","injectService","controller","injectController","Array","EmberArray","Comparable","Enumerable","ArrayProxy","ObjectProxy","ActionHandler","CoreObject","NativeArray","Copyable","MutableEnumerable","MutableArray","TargetActionSupport","Evented","PromiseProxyMixin","Observable","typeOf","isArray","onLoad","runLoadHooks","Controller","ControllerMixin","Service","_ProxyMixin","RSVP","Namespace","_action","action","_dependentKeyCompat","dependentKeyCompat","empty","notEmpty","none","not","bool","match","equal","gt","gte","lt","lte","oneWay","reads","readOnly","deprecatingAlias","and","or","sum","min","max","sort","setDiff","mapBy","filter","filterBy","uniq","uniqBy","union","intersect","collect","configurable","_getStrings","_setStrings","isNamespaceSearchDisabled","setNamespaceSearchDisabled","Component","Helper","helper","Checkbox","TextField","TextArea","LinkComponent","_setComponentManager","setComponentManager","_componentManagerCapabilities","capabilities","_setModifierManager","setModifierManager","_modifierManagerCapabilities","modifierCapabilities","_getComponentTemplate","getComponentTemplate","_setComponentTemplate","setComponentTemplate","_templateOnlyComponent","templateOnlyComponent","_captureRenderTree","captureRenderTree","Handlebars","template","Utils","escapeExpression","HTMLBars","prototype","htmlSafe","isHTMLSafe","getTemplates","setTemplates","VERSION","JQUERY_INTEGRATION","views","jQueryDisabled","jQuery","ViewUtils","isSimpleClick","getElementView","getViewElement","getViewBounds","getViewClientRects","getViewBoundingClientRect","getRootViews","getChildViews","isSerializationFirstNode","TextSupport","ComponentLookup","EventDispatcher","Location","routing","AutoLocation","HashLocation","HistoryLocation","NoneLocation","controllerFor","generateControllerFactory","generateController","RouterDSL","Router","Route","DataAdapter","extensionSupport","ContainerDebugAdapter","testing","Test","Adapter","QUnitAdapter","setupForTesting","IS_NODE","module","exports","Em","IS_NODE","module","require","exportModule","exportRequire","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","TransitionAbortedError","prototype","Object","create","Error","constructor","message","error","call","name","captureStackTrace","stack","slice","Array","hasOwnProperty","isPromise","p","then","merge","hash","other","prop","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","PARAMS_SYMBOL","QUERY_PARAMS_SYMBOL","Transition","intent","state","previousTransition","from","to","isAborted","isActive","urlMethod","resolveIndex","queryParamsOnly","isTransition","isCausedByAbortingTransition","isCausedByInitialTransition","isCausedByAbortingReplaceTransition","_visibleQueryParams","data","resolvedModels","promise","routeInfos","targetName","pivotHandler","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","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","InternalRouteInfo","_routePromise","_route","_processRoute","getModel","_transition","serialize","_context","shouldContinue","routePromise","checkForAbort","runBeforeModelHook","resolvedModel","runAfterModelHook","becomeResolved","resolvedContext","stashResolvedModel","contextsMatch","cached","resolved","ResolvedRouteInfo","shouldSupercede","paramsMatch","fetchRoute","updateRoute","_internalName","beforeModel","afterModel","value","getRoute","r","_shouldContinue","UnresolvedRouteInfoByParam","fullParams","deserialize","model","UnresolvedRouteInfoByObject","serializer","getSerializer","test","id","a","b","k","TransitionIntent","TransitionState","currentState","wasAborted","resolveOneRouteInfo","handleError","innerShouldContinue","errorHandlerIndex","TransitionError","proceed","resolvedRouteInfo","wasAlreadyResolved","NamedTransitionIntent","contexts","applyToState","oldState","isIntermediate","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","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","visible","fromInfos","oldRouteInfoLen","oldHandler","willTransition","handleURL","transitionTo","intermediateTransitionTo","refresh","pivotRoute","replaceWith","suppliedParams","routeParams","applyIntent","isActiveIntent","_state","targetRouteInfos","targetHandler","recogHandlers","index","testState","routesEqual","activeQPsOnNewHandler","activeQueryParams","otherRouteInfos","paramsEqual","otherParams","keys","otherKeys","callbacksFor","object","callbacks","_promiseCallbacks","EventTarget","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"],"mappings":"AAAA;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;;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;;ACriLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxgDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AChoVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA,IAAIA,MAAJ,EAAYC,OAAZ,EAAqBC,KAArB,C,CAEA;;;AACAC,WAAW,GAAG,IAAd,C,CAAoB;;AAEpB,CAAC,YAAW;AACV,MAAIC,QAAJ;AACA,MAAIC,IAAJ;;AAEA,WAASC,aAAT,CAAuBC,IAAvB,EAA6BC,YAA7B,EAA2C;AACzC,QAAIA,YAAJ,EAAkB;AAChB,YAAM,IAAIC,KAAJ,CAAU,2BAA2BF,IAA3B,GAAkC,gBAAlC,GAAqDC,YAA/D,CAAN;AACD,KAFD,MAEO;AACL,YAAM,IAAIC,KAAJ,CAAU,2BAA2BF,IAArC,CAAN;AACD;AACF;;AAED,WAASG,eAAT,CAAyBC,KAAzB,EAAgCH,YAAhC,EAA8C;AAC5C,QAAID,IAAI,GAAGI,KAAX;AACA,QAAIC,GAAG,GAAGR,QAAQ,CAACG,IAAD,CAAlB;;AAEA,QAAI,CAACK,GAAL,EAAU;AACRL,MAAAA,IAAI,GAAGA,IAAI,GAAG,QAAd;AACAK,MAAAA,GAAG,GAAGR,QAAQ,CAACG,IAAD,CAAd;AACD;;AAED,QAAIM,OAAO,GAAGR,IAAI,CAACE,IAAD,CAAlB;;AAEA,QAAIM,OAAO,KAAKC,SAAhB,EAA2B;AACz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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,SAAS,GAAGC,gBAASC,MAAT,CAAgBC,wBAAhB,EAAmCC,uBAAnC,EAAqDC,wBAArD,EAAwEC,4BAAxE,EAA6FC,oBAA7F,EAA4GC,gBAA5G,EAAuH;AACvIC,IAAAA,WAAW,EAAE,IAD0H;;AAGvIC,IAAAA,IAAI,GAAG;AACL,WAAKC,MAAL,CAAY,GAAGC,SAAf;;AAEA,WAAKd,oBAAL,IAA6B,KAA7B;AACA,WAAKD,SAAL,IAAkB,2BAAlB;AACA,WAAKE,MAAL,IAAe,IAAf;;AAEA,UAAI;AAAA;AAAA,SAAS,KAAKc,QAAL,CAAcC,eAAvB,IAA0C,KAAKC,OAAL,KAAiB,EAA/D,EAAmE;AACjE,YAAIC,UAAU,GAAG,EAAjB;AACA,YAAIC,eAAe,GAAG,qB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AAA;AAFE,UAGA,iCAAkBJ,OAAlB,EAA2BF,IAA3B,CAHJ;;AAKA,UAAIG,KAAK,IAAIE,IAAI,KAAK,MAAtB,EAA8B;AAC5B,eAAOH,OAAO,CAACK,YAAR,CAAqBD,UAArB,CAAP;AACD;;AAED,aAAOJ,OAAO,CAACI,UAAD,CAAd;AACD,KAlHsI;;AAoHvI;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEE;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;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEE,IAAAA,eAAe,GAAG,CAAE,CAtLmH;;AAwLvI;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,SAAS,GAAG,CAAE,CAzMyH;;AA2MvI;AACF;AACA;AACA;AACA;AACA;AACA;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,UAAU,GAAG,CAAE,CA1NwH;;AA4NvI;AACF;AACA;AACA;AACA;AACA;AACA;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,cAAc,GAAG,CAAE,CA3OoH;;AA6OvI;AACF;AACA;AACA;AACA;AACA;AACA;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,UAAU,GAAG,CAAE,CA5PwH;;AA8PvI;AACF;AACA;AACA;AACA;AACA;AACA;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,SAAS,GAAG,CAAE;;AA7QyH,GAAvH,CAAlB;;;;AAiRAnD,EAAAA,SAAS,CAACoD,QAAV,GAAqB,MAAM,kBA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;AAbY,KAAT,CAjEwC;;AAkF9C;AACF;AACA;AACA;AACA;AACA;AACA;AACEoC,IAAAA,IAAI,EAAE,IAzFwC;;AA2F9C;AACF;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,OAAO,EAAE,IAlGqC;;AAoG9C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,GAAG,EAAE,IA5GyC;;AA8G9C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,GAAG,EAAE;AAtHyC,GAA9B,CAAlB;;;AAyHAN,EAAAA,SAAS,CAACxB,QAAV,GAAqB,MAAM,6BAA3B;AAEA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,MAAM+B,QAAQ,GAAGnF,SAAS,CAACE,MAAV,CAAiB2E,kBAAjB,EAA8B;AAC7CnB,IAAAA,UAAU,EAAE,CAAC,iBAAD,CADiC;AAE7CF,IAAAA,MAF6C;AAG7CzC,IAAAA,OAAO,EAAE,UAHoC;AAI7C4C,IAAAA,iBAAiB,EAAE,CAAC,MAAD,EAAS,MAAT,EAAiB,MAAjB,EAAyB,cAAzB,EAAyC,gBAAzC,EAA2D,cAA3D,EAA2E,MAA3E,EAAmF,MAAnF,EAA2F,KAA3F,EAAkG,OAAlG,CAJ0B;AAK7CyB,IAAAA,IAAI,EAAE,IALuC;AAM7CC,IAAAA,IAAI,EAAE;AANuC,GAA9B,CAAjB;;;AASAF,EAAAA,QAAQ,CAAC/B,QAAT,GAAoB,MAAM,4BAA1B;;AAEA,MAAIkC,QAAQ,GAAG/G,QAAQ,CAAC;AACtB,UAAM,UADgB;AAEtB,aAAS,+PAFa;AAGtB,YAAQ;AACN,oBAAc;AADR;AAHc,GAAD,CAAvB;AAQA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMgH,SAAS,GAAGjB,MAAM,CAACkB,MAAP,CAAc;AAC9BpC,IAAAA,QAAQ,GAAG;AACT,aAAO,WAAP;AACD;;AAH6B,GAAd,CAAlB;AAMA,MAAMqC,kBAAkB,GAAGnB,MAAM,CAACkB,MAAP,CAAc,EAAd,CAA3B;AACA,MAAME,aAAa,GAAG1F,SAAS,CAACE,MAAV,CAAiB;AACrCsD,IAAAA,MAAM,EAAE8B,QAD6B;AAErCvE,IAAAA,OAAO,EAAE,GAF4B;;AAIrC;AACF;AACA;AACA;AACE4E,IAAAA,KAAK,EAAEJ,SAR8B;;AAUrC;AACF;AACA;AACA;AACEK,IAAAA,KAAK,EAAEL,SAd8B;;AAgBrC;AACF;AACA;AACA;AACEM,IAAAA,MAAM,EAAEN,SApB6B;;AAsBrC;AACF;AACA;AACA;AACEO,IAAAA,KAAK,EAAEP,SA1B8B;;AA4BrC;AACF;AACA;AACA;AACA;AACE,oBAAgB,IAjCqB;;AAmCrC;AACF;AACA;AACA;AACA;AACA;AACEQ,IAAAA,KAAK,EAAE,IAzC8B;;AA2CrC;AACF;AACA;AACA;AACA;AACA;AACEC,IAAAA,GAAG,EAAE,IAjDgC;;AAmDrC;AACF;AACA;AACA;AACA;AACA;AACEC,IAAAA,QAAQ,EAAE,IAzD2B;;AA2DrC;AACF;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,MAAM,EAAE,IAlE6B;;AAoErC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,WAAW,EAAE,QA5EwB;;AA8ErC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,YAAY,EAAE,SAtFuB;;AAwFrC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,aAAa,EAAE,UAhGsB;;AAkGrC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,OAAO,EAAE,KA1G4B;;AA4GrC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE3C,IAAAA,iBAAiB,EAAE,CAAC,MAAD,EAAS,OAAT,EAAkB,KAAlB,EAAyB,UAAzB,EAAqC,QAArC,CAtHkB;;AAwHrC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE4C,IAAAA,iBAAiB,EAAE,CAAC,QAAD,EAAW,SAAX,EAAsB,UAAtB,EAAkC,iBAAlC,EAAqD,kBAArD,CArIkB;;AAuIrC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,SAAS,EAAE,OAhJ0B;;AAkJrC;AACA;AACA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE9F,IAAAA,IAAI,GAAG;AACL,WAAKC,MAAL,CAAY,GAAGC,SAAf,EADK,CACsB;;;AAG3B,UAAI;AACF4F,QAAAA;AADE,UAEA,IAFJ;AAGA,WAAKC,EAAL,CAAQD,SAAR,EAAmB,IAAnB,EAAyB,KAAKE,OAA9B;AACD,KA3LoC;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D,CAAN,KAAoC/C,SAA9E,CAnBsB;AAoBtB,WAAO,IAAIkX,YAAJ,CAAiBI,MAAjB,EAAyBD,EAAE,CAACzD,GAA5B,CAAP;AACD;AAED;AACA;AACA;;;AACA,MAAM4D,MAAM,GAAG,mBAAO,QAAP,CAAf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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9U,IAApB,EAA0B,GAAG6lB,cAA7B,CAAP;AACD;AACF,KAVD;AAWD;;AAED,WAASC,IAAT,CAAe9lB,IAAf,EAAqBwU,EAArB,EAAyB;AACvB,QAAIoR,QAAQ,GAAGtQ,EAAf;;AAEA;AAAA;AAAA,MAAW;AACTsQ,MAAAA,QAAQ,GAAG5lB,IAAI,IAAI;AACjB,eAAOsV,EAAE,CAACtV,IAAD,EAAOwU,EAAE,CAACzD,GAAV,CAAT;AACD,OAFD;AAGD;;AAED,WAAO,IAAIF,8BAAJ,CAAwB+U,QAAxB,EAAkC5lB,IAAI,CAAC6O,OAAL,EAAlC,EAAkD2F,EAAE,CAACzD,GAArD,CAAP;AACD;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,WAASgV,KAAT,CAAgB/lB,IAAhB,EAAsBwU,EAAtB,EAA0B;AACxB,QAAIwR,eAAe,GAAGhmB,IAAI,CAACiR,UAAL,CAAgByD,EAAhB,CAAmB,CAAnB,CAAtB;AACA,QAAIuR,aAAa,GAAGjmB,IAAI,CAACiR,UAAL,CAAgByD,EAAhB,CAAmB,CAAnB,CAApB;;AAEA,QAAI,8BAAcuR,aAAd,CAAJ,EAAkC;AAChC;AACA;AACA;AACA,UAAIhS,IAAI,GAAGgS,aAAa,CAAClmB,KAAd,EAAX;;AAEA,UAAIkU,IAAI,KAAK9W,SAAT,IAAsB8W,IAAI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SAAf,GAA2BqpB,UAAU,CAACzmB,KAAX,EAA3B,GAAgD5C,SAAvD;AACD;AACF;;AAED,WAASspB,MAAT,CAAgB;AACdxV,IAAAA;AADc,GAAhB,EAEG;AAAA,eACgIA,UAAU,CAAC1R,MAAX,KAAsB,CAAtB,IAA2B0R,UAAU,CAAC1R,MAAX,KAAsB,CADjL,KACD,mBAAO,wHAAP,EAAiI0R,UAAU,CAAC1R,MAAX,KAAsB,CAAtB,IAA2B0R,UAAU,CAAC1R,MAAX,KAAsB,CAAlL,CADC;AAED,QAAI+mB,SAAS,GAAGrV,UAAU,CAACyD,EAAX,CAAc,CAAd,CAAhB;AACA,QAAI6R,WAAW,GAAGtV,UAAU,CAACyD,EAAX,CAAc,CAAd,CAAlB;AACA,QAAI8R,UAAU,GAAGvV,UAAU,CAACyD,EAAX,CAAc,CAAd,CAAjB;;AAEA,QAAI4L,MAAM,CAACgG,SAAS,CAACvmB,KAAV,EAAD,CAAN,KAA8B,IAAlC,EAAwC;AACtC,aAAOwmB,WAAW,KAAKppB,SAAhB,GAA4BopB,WAAW,CAACxmB,KAAZ,EAA5B,GAAkD5C,SAAzD;AACD,KAFD,MAEO;AACL,aAAOqpB,UAAU,CAACzmB,KAAX,EAAP;AACD;AACF;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,WAAS2mB,QAAT,CAAkB1mB,IAAlB,EAAwBwU,EAAxB,EAA4B;AAC1B,WAAO,IAAI3D,8BAAJ,CAAwBwV,QAAxB,EAAkCrmB,IAAI,CAAC6O,OAAL,EAAlC,EAAkD2F,EAAE,CAACzD,GAArD,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,WAAS4V,YAAT,CAAsB3mB,IAAtB,EAA4BwU,EAA5B,EAAgC;AAC9B,WAAO,IAAI3D,8BAAJ,CAAwB4V,MAAxB,EAAgCzmB,IAAI,CAAC6O,OAAL,EAAhC,EAAgD2F,EAAE,CAACzD,GAAnD,CAAP;AACD;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,WAAS6V,GAAT,CAAa;AACX3V,IAAAA;AADW,GAAb,EAEG;AACD;AACA4V,IAAAA,OAAO,CAACD,GAAR,CAAY,GAAG3V,UAAU,CAAClR,KAAX,EAAf;AACA;AACD;;AAED,WAAS+mB,KAAT,CAAgB9mB,IAAhB,EAAsBwU,EAAtB,EAA0B;AACxB,WAAO,IAAI3D,8BAAJ,CAAwB+V,GAAxB,EAA6B5mB,IAAI,CAAC6O,OAAL,EAA7B,EAA6C2F,EAAE,CAACzD,GAAhD,CAAP;AACD;AAED;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,WAAS7J,WAAT,CAAqB;AACnB+J,IAAAA,UADmB;AAEnBC,IAAAA;AAFmB,GAArB,EAGG;AACD;AADC,eAE0JD,UAAU,CAAClR,KAAX,GAAmBR,MAAnB,KAA8B,CAFxL,KAED,mBAAO,kJAAP,EAA2J0R,UAAU,CAAClR,KAAX,GAAmBR,MAAnB,KAA8B,CAAzL,CAFC;AAGD,WAAO,IAAIwnB,oBAAJ,CAAgB,uBAAO,EAAP,EAAW7V,KAAK,CAACnR,KAAN,EAAX,CAAhB,CAAP;AACD;;AAED,WAASinB,aAAT,CAAwBhnB,IAAxB,EAA8BwU,EAA9B,EAAkC;AAChC,WAAO,IAAI3D,8BAAJ,CAAwB3J,WAAxB,EAAqClH,IAAI,CAAC6O,OAAL,EAArC,EAAqD2F,EAAE,CAACzD,GAAxD,CAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,QAAMkW,iBAAN,SAAgCzV,wBAAhC,CAA8C;AAC5CpI,IAAAA,WAAW,CAACqI,K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BAAJ,EAA4B;AAC1B;AACA1pB,MAAAA,OAAO,CAAC6pB,gBAAR,CAAyB7lB,SAAzB,EAAoCqhB,QAApC,EAA8CtD,OAA9C;AACD,KAHD,MAGO,IAAIA,OAAO,KAAKnlB,SAAZ,IAAyBmlB,OAAO,CAACzT,OAArC,EAA8C;AACnD;AACA;AACA;AACA;AACA;AACA;AACAtO,MAAAA,OAAO,CAAC6pB,gBAAR,CAAyB7lB,SAAzB,EAAoCqhB,QAApC,EAA8C,IAA9C;AACD,KARM,MAQA;AACL;AACA;AACA;AACA;AACArlB,MAAAA,OAAO,CAAC6pB,gBAAR,CAAyB7lB,SAAzB,EAAoCqhB,QAApC;AACD;AACF;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,QAAM0F,iBAAN,CAAwB;AACtBliB,IAAAA,WAAW,CAACpM,KAAD,EAAQyT,aAAR,EAAuB;AAChC,WAAKwZ,sBAAL,GAA8BA,sBAA9B;AACA,WAAKxZ,aAAL,GAAqBA,aAArB;AACA,WAAKzT,KAAL,GAAaA,KAAb;AACD;;AAEW,QAART,QAAQ,GAAG;AACb,aAAO;AACL6uB,QAAAA,IADK;AAELC,QAAAA;AAFK,OAAP;AAID;;AAEDjuB,IAAAA,MAAM,CAACmD,OAAD,EAAUmL,MAAV,EAAkB1L,IAAlB,EAAwB;AA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,UAAI8M,kBAAIC,kBAAR,EAA4B;AAC1BnH,QAAAA,KAAK,CAACoL,GAAN,CAAU7C,KAAV,CAAgBC,eAAhB,CAAgChC,MAAhC,CAAuCxG,KAAvC;AACD;AACF;;AAED0G,IAAAA,eAAe,CAAC1G,KAAD,EAAQwJ,MAAR,EAAgB;AAC7B,UAAItC,kBAAIC,kBAAR,EAA4B;AAC1BnH,QAAAA,KAAK,CAACoL,GAAN,CAAU7C,KAAV,CAAgBC,eAAhB,CAAgCrN,SAAhC,CAA0C6E,KAA1C,EAAiDwJ,MAAjD;AACD;AACF;;AAEDC,IAAAA,cAAc,CAACzJ,KAAD,EAAQ;AACpB,aAAOA,KAAK,CAAC0I,QAAb;AACD;;AAtFiD;;AAyFpD,MAAMopB,4BAA4B,GAAGz6B,KAAK,IAAI;AAC5C,WAAO,IAAIu6B,qBAAJ,CAA0Bv6B,KAA1B,CAAP;AACD,GAFD;AAIA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,MAAM06B,KAAK,GAAGC,gBAAS15B,MAAT,CAAgB;AAC5B25B,IAAAA,UAAU,EAAE,qBAAS,MAAT,EAAiB,YAAY;AACvC,aAAO,KAAKl3B,IAAL,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wxB,MAAAA,QAAQ,EAAE,KAFM;AAGhB7tB,MAAAA,IAAI,EAAE;AAHU,KAAD,EAIdqf,GAJc,CAAjB;AAKD;;AACD,WAASyZ,mBAAT,CAA6BzZ,GAA7B,EAAkC;AAChC,QAAIqO,OAAO,GAAGC,UAAU,CAACtO,GAAD,CAAxB;;AAEA,QAAIqO,OAAO,IAAI,CAACA,OAAO,CAACG,QAApB,IAAgCH,OAAO,CAAC1tB,IAAR,KAAiB,WAArD,EAAkE;AAChE,aAAO0tB,OAAO,CAACrxB,OAAf;AACD,KAFD,MAEO;AACL,aAAOI,SAAP;AACD;AACF;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC71SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACtCA,MAAMs8B,eAAe,GAAGC,MAAM,CAACC,SAA/B;AACA,MAAIC,QAAJ;;;AAEA;AAAA;AAAA,IAAW;AACT,wBAAAA,QAAQ,GAAG;AACTC,MAAAA,SAAS,EAAE,CADF;AAETC,MAAAA,kBAAkB,EAAE,CAFX;AAGTC,MAAAA,QAAQ,EAAE,CAHD;AAITC,MAAAA,WAAW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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,QAAMC,gBAAN,SAA+BpF,kBAA/B,CAAkD;AAChDC,IAAAA,WAAW,CAAC9J,IAAD,EAAO;AAChB;AACA,WAAKkP,SAAL,GAAiB,KAAjB;AACA,WAAKC,SAAL,GAAiB,KAAjB;AACA,WAAKC,UAAL,GAAkB,KAAlB;AACA,WAAKC,OAAL,GAAe/P,SAAf;AACA,WAAKgQ,OAAL,GAAehQ,SAAf;AACA,UAAIiQ,WAAW,GAAGvP,IAAI,CAACA,IAAI,CAACP,MAAL,GAAc,CAAf,CAAtB;;AAEA,UAAI,OAAO8P,WAAP,KAAuB,UAAvB,IAAqCA,WAAW,KAAK,IAAhB,IAAwB,OAAOA,WAAP,KAAuB,QAAxF,EAAkG;AAChG,aAAKH,UAAL,GAA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,EAAwB;AAC7BqN,QAAAA,eAAe,CAACtO,GAAD,EAAM6I,GAAN,EAAW4D,IAAX,EAAiBvL,OAAjB,CAAf;AACD;AACF;;AAED,QAAI,CAACA,OAAO,CAAC0B,eAAR,CAAwB5C,GAAxB,CAAL,EAAmC;AACjCsE,MAAAA,mBAAmB,CAACtE,GAAD,CAAnB;AACD;;AAED,WAAOA,GAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,WAAS+c,KAAT,CAAe/c,GAAf,EAAoB,GAAG2B,IAAvB,EAA6B;AAC3Bgb,IAAAA,UAAU,CAAC3c,GAAD,EAAM2B,IAAN,CAAV;AACA,WAAO3B,GAAP;AACD;;AACD,MAAMyb,MAAM,GAAG,IAAI9S,mBAAJ,EAAf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,QAAMqU,KAAN,CAAY;AACVvR,IAAAA,WAAW,CAAC6P,MAAD,EAAS1E,UAAT,EAAqB;AAC9B6E,MAAAA,MAAM,CAAC7H,GAAP,CAAW,IAAX;AACA,WAAKgD,UAAL,GAAkB4C,gBAAgB,CAAC5C,UAAD,CAAlC;AACA,WAAK0E,MAAL,GAAc2B,gBAAgB,CAAC3B,MAAD,CAA9B;AACA,WAAK4B,gBAAL,GAAwBjc,SAAxB;AACA,WAAK4a,QAAL,GAAgB5a,SAAhB;;AAEA;AAAA;AAAA,QAAW;AACT;AAC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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/xHA;AACA;AACA;AAGO,MAAM0Z,YAAY,GAAG,6BAAiB,cAAjB,CAArB;;AACA,MAAMC,KAAK,GAAG,mBAAO,OAAP,CAAd;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAEO,WAASC,QAAT,CAAkBC,MAAlB,EAA0B;AAC/B,QAAIC,KAAK,GAAGD,MAAM,CAACF,KAAD,CAAlB;;AAEA,QAAIG,KAAK,KAAKC,SAAd,EAAyB;AACvBD,MAAAA,KAAK,GAAGD,MAAM,CAACH,YAAD,CAAd;AADuB,iBAE8LI,KAAK,KAAKC,SAFxM,KAEvB,sBAAW,yMAAX,EAAqND,KAAK,KAAKC,SAA/N,EAA0O;AACxOC,QAAAA,EAAE,EAAE,8BADoO;AAExOC,QAAAA,KAAK,EAAE;AAFiO,OAA1O,CAFuB;AAMxB;;AAED,WAAOH,KAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASI,QAAT,CAAkBL,MAAlB,EAA0BC,KAA1B,EAAiC;AACtCD,IAAAA,MAAM,CAACF,KAAD,CAAN,GAAgBG,KAAhB;AACAD,IAAAA,MAAM,CAACH,YAAD,CAAN,GAAuBI,KAAvB;AACD;;;ACjFD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC7FA;AACA;AACA;AAEAK,4BAAgBC,MAAhB,CAAuB;AACrBC,IAAAA,sBAAsB,EAAE,CAAC,aAAD,CADH;;AAGrB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,WAAW,EAAE,IAxBQ;;AA0BrB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,WAAW,EAAE,IA1CQ;;AA4CrB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,UAAU,CAACC,UAAD,EAAaC,KAAb,EAAoB;AAC5B,UAAIC,QAAQ,GAAGD,KAAK,CAACE,OAAN,CAAc,KAAd,CAAf;;AAEA,UAAIC,IAAI,GAAGF,QAAQ,KAAK,CAAC,CAAd,GAAkBD,KAAlB,GAA0BA,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeH,QAAf,CAArC;AACA,UAAII,QAAQ,GAAGN,UAAU,CAACF,WAA1B;AACA,UAAIS,KAAK,GAAG,gBAAIP,UAAJ,EAAgBI,IAAhB,CAAZ;AACAE,MAAAA,QAAQ,CAACF,IAAD,EAAOG,KAAP,CAAR;AACD,KA7DoB;;AA+DrB;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;AACEC,IAAAA,iBAAiB,CAAC,GAAGC,IAAJ,EAAU;AACzB;AACA,UAAIC,MAAM,GAAG,gBAAI,IAAJ,EAAU,QAAV,CAAb;AACA,UAAIC,MAAM,GAAGD,MAAM,CAACF,iBAAP,IAA4BE,MAAM,CAACE,YAAhD;AACA,aAAOD,MAAM,CAACE,KAAP,CAAaH,MAAb,EAAqB,+BAAmB,IAAnB,EAAyBD,IAAzB,CAArB,CAAP;AACD,KA9HoB;;AAgIrB;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;AACEK,IAAAA,YAAY,CAAC,GAAGL,IAAJ,EAAU;AACpB;AACA,UAAIC,MAAM,GAAG,gBAAI,IAAJ,EAAU,QAAV,CAAb;AACA,UAAIC,MAAM,GAAGD,MAAM,CAACI,YAAP,IAAuBJ,MAAM,CAACK,WAA3C;AACA,aAAOJ,MAAM,CAACE,KAAP,CAAaH,MAAb,EAAqB,+BAAmB,IAAnB,EAAyBD,IAAzB,CAArB,CAAP;AACD;;AAnLoB,GAAvB;;iBAsLef,yB;;;;;;;;;;;;AC5Lf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;iBAEe;AACb;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEsB,IAAAA,MAAM,CAACC,OAAD,EAAU;AACd,UAAIC,cAAc,GAAGD,OAAO,IAAIA,OAAO,CAACC,cAAxC;AADc,iBAEwDC,OAAO,CAACD,cAAD,CAF/D,KAEd,mBAAO,6DAAP,EAAsEC,OAAO,CAACD,cAAD,CAA7E,CAFc;AAGd,UAAIE,mBAAmB,GAAG,KAAKC,eAAL,CAAqBH,cAArB,CAA1B;AAHc,iBAI6DC,OAAO,CAACC,mBAAD,CAJpE,KAId,mBAAQ,oBAAmBF,cAAe,gCAA1C,EAA2EC,OAAO,CAACC,mBAAD,CAAlF,CAJc;AAKd,aAAOA,mBAAmB,CAACJ,MAApB,CAA2B,GAAGM,SAA9B,CAAP;AACD,KAxBY;;AA0BbD,IAAAA,eAAe,EAAE;AA1BJ,G;;;;;;;;;;;;;;ACxDf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEe,QA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IAA7C;AACA,aAAOA,UAAP;AACD;AACD;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;;;AAGEyB,IAAAA,WAAW;AACX;AACA;AACE,aAAO,KAAKP,YAAL,CAAkB,GAAGJ,SAArB,EAAgCY,MAAhC,CAAuC,SAAvC,CAAP;AACD;AACD;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;;;AAGEC,IAAAA,MAAM,CAACN,SAAD,EAAY,GAAGF,IAAf,EAAqB;AACzB,aAAO,KAAKJ,OAAL,CAAaa,QAAb,CAAsBP,SAAtB,EAAiC,GAAGF,IAApC,CAAP;AACD;AACD;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;;;AAGEU,IAAAA,QAAQ,CAAC,GAAGV,IAAJ,EAAU;AAChB,UAAI;AACFE,QAAAA,SADE;AAEFC,QAAAA,MAFE;AAGFC,QAAAA;AAHE,UAIA,6BAAiBJ,IAAjB,CAJJ;AAKA,UAAIW,cAAc,GAAG,KAAKf,OAAL,CAAagB,eAAlC,CANgB,CAMmC;AACnD;AACA;AACA;AACA;;AAEA,UAAI,CAACD,cAAc,CAACE,cAAf,CAA8BX,SAA9B,EAAyCC,MAAzC,CAAL,EAAuD;AACrD,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AAEpB,UAAI+B,WAAW,GAAGjC,QAAQ,CAACC,GAAD,EAAM,KAAKC,OAAX,CAA1B;AACA,aAAO,KAAKO,OAAL,CAAagB,eAAb,CAA6BS,gBAA7B,CAA8CD,WAA9C,CAAP;AACD;;AAjTgD;;;AAoTnD5B,EAAAA,aAAa,CAAC8B,MAAd,CAAqBC,gBAArB,EAA8B;AAC5B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,gBAAgB,EAAE,wBAAS,0BAAT,CAvBU;;AAyB5B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,UAAU,EAAE,wBAAS,oBAAT,CA9CgB;;AAgD5B;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;AACEC,IAAAA,QAAQ,EAAE,wBAAS,kBAAT,CA9EkB;;AAgF5B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACErC,IAAAA,OAAO,EAAE,wBAAS,iBAAT,CAtGmB;;AAwG5B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEsC,IAAAA,YAAY,EAAE,wBAAS,sBAAT;AA9Hc,GAA9B;;;;;;;;;;;ACjXA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEe,QAAMC,cAAN,SAA6BC,gBAA7B,CAAqC;AAClDC,IAAAA,QAAQ,CAACC,SAAD,EAAY;AACl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;;;ACnDc,QAAME,WAAN,CAAkB;AAC/BC,IAAAA,WAAW,CAACC,MAAM,GAAG,IAAV,EAAgB;AACzB,WAAKC,aAAL,GAAqB,IAArB;AACA,WAAKD,MAAL,GAAcA,MAAd;AACD;;AAJ8B;;;;;;ACAjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3MO,MAAME,iBAAiB,GAAG,IAAIC,OAAJ,EAA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A4B,gBAAI,IAAJ,EAAU,qBAAV,CAA5B;AACA,WAAKV,eAAL,CAAqBU,UAArB,EAAiCD,SAAjC,EAA4C/B,UAA5C;AACD;AACD;AACF;AACA;AACA;;;AAGEiC,IAAAA,KAAK,GAAG;AACN5E,MAAAA,iBAAiB,CAAC6E,GAAlB,CAAsB,IAAtB,EAA4B,EAA5B;AACA,WAAKC,QAAL;AACA,WAAKP,OAAL,CAAa,UAAb;AACD;AACD;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;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEE;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;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;;;AAGED,IAAAA,UAAU,GAAG,CAAE;AACf;AACF;AACA;AACA;AACA;AACA;AACA;;;AAGEQ,IAAAA,QAAQ,GAAG,CAAE;AACb;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;;;AAGEC,IAAAA,YAAY,CAAC,GAAGC,IAAJ,EAAU;AACpB;AACA,aAAO,KAAK5C,OAAL,CAAa2C,YAAb,CAA0B,GAAG,gCAAmB,IAAnB,EAAyBC,IAAzB,CAA7B,CAAP;AACD;AACD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGEC,IAAAA,wBAAwB,CAAC,GAAGD,IAAJ,EAAU;AAChC,UAAI,CAACzE,IAAD,EAAO,GAAG2E,YAAV,IAA0B,gCAAmB,IAAnB,EAAyBF,IAAzB,CAA9B;;AAEA,WAAK5C,OAAL,CAAa6C,wBAAb,CAAsC1E,IAAtC,EAA4C,GAAG2E,YAA/C;AACD;AACD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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AACF;AACA;AACA;AACA;;;AAGEiG,IAAAA,UAAU,CAACjD,IAAD,EAAO7B,KAAP,EAAcJ,EAAd,EAAkB;AAC1B,UAAI,CAACA,EAAL,EAAS;AACP;AACD,OAHyB,CAGxB;;;AAGF,UAAIiE,KAAK,GAAG,KAAKC,YAAjB;AACA,UAAIQ,QAAQ,GAAG,+BAAkB1E,EAAE,CAACrB,KAAH,CAASS,aAA3B,EAA0CY,EAAE,CAACE,KAA7C,EAAoDF,EAAE,CAACyE,MAAvD,CAAf;AACAR,MAAAA,KAAK,CAACkB,KAAN,CAAYT,QAAZ,EAAsBzC,IAAtB,EAA4B7B,KAA5B;AACD;AACD;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;;;AAGEgF,IAAAA,WAAW,GAAG,CAAE;AAChB;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;;;AAGEC,IAAAA,UAAU,GAAG,CAAE;AACf;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGEC,IAAAA,QAAQ,GAAG,CAAE;AACb;AACF;AACA;AACA;AACA;;;AAGEC,IAAAA,gBAAgB,GAAG;AACjB,WAAKC,YAAL,GAAoB,KAAKvG,OAAzB;AACD;AACD;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;A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P,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqC7F,UAAU,CAAC8F,cAAhD,EAAgEJ,eAAhE,CAAJ,EAAsF;AACpF,iBAAO1F,UAAU,CAAC8F,cAAX,CAA0BJ,eAA1B,CAAP;AACD;AACF;;AAED,aAAO3H,KAAK,IAAIA,KAAK,CAAC6G,YAAtB;AACD;AACD;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;;;AAGEP,IAAAA,cAAc,CAAC9C,WAAD,EAAcwE,MAAd,EAAsB;AAClC;AACA,WAAKC,MAAL;AACD;AACD;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;;;AAGEA,IAAAA,MAAM,CAACpI,IAAD,EAAOuG,OAAP,EAAgB;AACpB,UAAI8B,aAAa,GAAGC,kBAAkB,CAAC,IAAD,EAAOtI,IAAP,EAAauG,OAAb,CAAtC;AACA9G,MAAAA,iBAAiB,CAAC8I,GAAlB,CAAsB,IAAtB,EAA4BC,IAA5B,CAAiCH,aAAjC;AACA,yBAAK,KAAKxG,OAAV,EAAmB,aAAnB;AACD;AACD;AACF;AACA;AACA;AACA;AACA;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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGAN,EAAAA,KAAK,CAAC0H,SAAN,CAAgB3H,SAAhB,GAA4BT,gBAA5B;AACAU,EAAAA,KAAK,CAACoL,MAAN,CAAaC,sBAAb,EAA4BC,gBAA5B,EAAqC;AACnCC,IAAAA,gBAAgB,EAAE,CAAC,aAAD,CADiB;;AAGnC;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;AACElJ,IAAAA,WAAW,EAAE,EA1CsB;;AA4CnC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEqH,IAAAA,YAAY,EAAE,IAnEqB;;AAqEnC;AACF;AACA;AACA;AACE9I,IAAAA,MAAM,EAAE,IAzE2B;;AA2EnC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE8D,IAAAA,cAAc,EAAE,IA3FmB;;AA6FnC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE8G,IAAAA,KAAK,EAAE,qBAAS;AACdtD,MAAAA,GAAG,GAAG;AACJ,YAAIb,KAAK,GAAG,qBAAS,IAAT,CAAZ;AACA,YAAI/G,SAAS,GAAG,KAAKA,SAArB;AACA,YAAImL,SAAS,GAAG,gBAAI,IAAJ,EAAU,mBAAV,CAAhB;AACA,eAAO;AACLtE,UAAAA,IAAI,CAACxH,IAAD,EAAO4B,KAAP,EAAc;AAChB,gBAAImK,UAAU,GAAGrE,KAAK,CAACsE,UAAN,CAAkB,SAAQhM,IAAK,EAA/B,CAAjB;AADgB,uBAEqKiM,OAAO,CAACF,UAA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A;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACnKA,MAAMS,iBAAiB,GAAG,KAA1B;;AACO,WAASC,gBAAT,CAA0BC,IAA1B,EAAgC;AACrCA,IAAAA,IAAI,GAAGA,IAAI,CAACC,KAAL,EAAP;AACA,QAAIC,mBAAmB,GAAGF,IAAI,CAACA,IAAI,CAACG,MAAL,GAAc,CAAf,CAA9B;AACA,QAAIC,WAAJ;;AAEA,QAAIF,mBAAmB,IAAIG,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCN,mBAArC,EAA0D,aAA1D,CAA3B,EAAqG;AACnG;AACA;AACA;AACA;AACAE,MAAAA,WAAW,GAAGJ,IAAI,CAACS,GAAL,GAAWL,WAAzB;AACD,KAND,MAMO;AACLA,MAAAA,WAAW,GAAG,EAAd;AACD,KAboC,CAanC;AACF;AACA;;;AAGA,QAAIM,SAAS,GAAGV,IAAI,CAACW,KAAL,EAAhB;AACA,QAAIC,MAAM,GAAGZ,IAAb;AACA,WAAO;AACLU,MAAAA,SADK;AAELE,MAAAA,MAFK;AAGLR,MAAAA;AAHK,KAAP;AAKD;;AACM,WAASS,mBAAT,CAA6BC,MAA7B,EAA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AAKF,CAAL,IAAUF,CAAV,EAAa;AACX,UAAIhE,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqC6D,CAArC,EAAwCE,CAAxC,CAAJ,EAAgD;AAC9C,YAAIF,CAAC,CAACE,CAAD,CAAD,KAASD,CAAC,CAACC,CAAD,CAAd,EAAmB;AACjB,iBAAO,KAAP;AACD;;AAEDC,QAAAA,MAAM;AACP;AACF;;AAED,SAAKD,CAAL,IAAUD,CAAV,EAAa;AACX,UAAIjE,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqC8D,CAArC,EAAwCC,CAAxC,CAAJ,EAAgD;AAC9CE,QAAAA,MAAM;AACP;AACF;;AAED,WAAOD,MAAM,KAAKC,MAAlB;AACD;;;ACzPD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACpMA,MAAMC,UAAU,GAAG;AACjBC,IAAAA,SAAS,EAAE,CADM;AAEjBC,IAAAA,IAAI,EAAE,CAFW;AAGjBC,IAAAA,OAAO,EAAE,CAHQ;AAIjBC,IAAAA,MAAM,EAAE,CAJS;AAKjBC,IAAAA,MAAM,EAAE,CALS;AAMjBC,IAAAA,KAAK,EAAE,CANU;AAOjBC,IAAAA,MAAM,EAAE,CAPS;AAQjBC,IAAAA,QAAQ,EAAE,CARO;AASjBC,IAAAA,QAAQ,EAAE,CATO;AAUjBC,IAAAA,KAAK,EAAE,CAVU;AAWjBC,IAAAA,IAAI,EAAE;AAXW,GAAnB,C,CAYG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAASC,SAAT,CAAmBC,CAAnB,EAAsBC,CAAtB,EAAyB;AACvB,QAAIC,IAAI,GAAGF,CAAC,GAAGC,CAAf;AACA,WAAO,CAACC,IAAI,GAAG,CAAR,KAAcA,IAAI,GAAG,CAArB,CAAP;AACD;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGe,WAASC,OAAT,CAAiBC,CAAjB,EAAoBC,CAApB,EAAuB;AACpC,QAAID,CAAC,KAAKC,CAAV,EAAa;AACX,aAAO,C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ADe;;AAGjC;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;;AAEE;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;AACEC,IAAAA,IAAI,CAACC,UAAD,EAAa,GAAGC,IAAhB,EAAsB;AAAA,iBAC+E,CAAC,KAAKC,YAAN,IAAsB,CAAC,KAAKC,WAD3G,KACxB,mBAAQ,8CAA6CH,UAAW,8BAA6B,IAAK,IAAlG,EAAuG,CAAC,KAAKE,YAAN,IAAsB,CAAC,KAAKC,WAAnI,CADwB;;AAGxB,UAAI,KAAKC,OAAL,IAAgB,KAAKA,OAAL,CAAaJ,UAAb,CAApB,EAA8C;AAC5C,YAAIK,YAAY,GAAG,KAAKD,OAAL,CAAaJ,UAAb,EAAyBM,KAAzB,CAA+B,IAA/B,EAAqCL,IAArC,MAA+C,IAAlE;;AAEA,YAAI,CAACI,YAAL,EAAmB;AACjB;AACD;AACF;;AAED,UAAIE,MAAM,GAAG,gBAAI,IAAJ,EAAU,QAAV,CAAb;;A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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE6B,IAAAA,OAAO,CAACqC,MAAD,EAAShD,OAAT,EAAkB;AACvB,aAAOW,OAAO,CAAC,IAAD,EAAOqC,MAAP,EAAehD,OAAf,EAAwB,KAAxB,CAAd;AACD,KApLyC;;AAsL1C;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;AACEiD,IAAAA,WAAW,CAACD,MAAD,EAAShD,OAAT,EAAkB;AAC3B,UAAIC,GAAG,GAAG,KAAKL,MAAf;;AAEA,UAAII,OAAO,KAAKO,SAAZ,IAAyBP,OAAO,IAAIC,GAAxC,EAA6C;AAC3CD,QAAAA,OAAO,GAAGC,GAAG,GAAG,CAAhB;AACD;;AAED,UAAID,OAAO,GAAG,CAAd,EAAiB;AACfA,QAAAA,OAAO,IAAIC,GAAX;AACD;;AAED,WAAK,IAAIqC,GAAG,GAAGtC,OAAf,EAAwBsC,GAAG,IAAI,CAA/B,EAAkCA,GAAG,EAArC,EAAyC;AACvC,YAAI,qBAAS,IAAT,EAAeA,GAAf,MAAwBU,MAA5B,EAAoC;AAClC,iBAAOV,GAAP;AACD;AACF;;AAED,aAAO,CAAC,CAAR;AACD,KArOyC;;AAuO1C;AACA;AACA;;AAEA;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;AACEY,IAAAA,gBAAgB,CAAC7C,MAAD,EAAS8C,IAAT,EAAe;AAC7B,aAAO,6BAAiB,IAAjB,EAAuB9C,MAAvB,EAA+B8C,IAA/B,CAAP;AACD,KApRyC;;AAsR1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,mBAAmB,CAAC/C,MAAD,EAAS8C,IAAT,EAAe;AAChC,aAAO,gCAAoB,IAApB,EAA0B9C,MAA1B,EAAkC8C,IAAlC,CAAP;AACD,KAnSyC;;AAqS1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEE,IAAAA,iBAAiB,EAAE,gCAAW;AAC5BC,MAAAA,YAAY,EAAE,IADc;AAE5B3B,MAAAA,UAAU,EAAE,KAFgB;;AAI5BY,MAAAA,GAAG,GAAG;AACJ,eAAO,yBAAa,IAAb,EAAmB,eAAnB,KAAuC,yBAAa,IAAb,EAAmB,eAAnB,CAA9C;AACD;;AAN2B,KAAX,CArTuB;;AA+T1C;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;AACEgB,IAAAA,sBAAsB,CAACC,QAAD,EAAWC,SAAX,EAAsBC,MAAtB,EAA8B;AAClD,aAAO,mCAAuB,IAAvB,EAA6BF,QAA7B,EAAuCC,SAAvC,EAAkDC,MAAlD,CAAP;AACD,KAvXyC;;AAyX1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,qBAAqB,CAACH,QAAD,EAAWC,SAAX,EAAsBC,MAAtB,EAA8B;AACjD,aAAO,kCAAsB,IAAtB,EAA4BF,QAA5B,EAAsCC,SAAtC,EAAiDC,MAAjD,CAAP;AACD,KAhZyC;;AAkZ1C;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;AACEvE,IAAAA,OAAO,CAACiB,QAAD,EAAWC,MAAM,GAAG,IAApB,EAA0B;AAAA,iBAC2B,OAAOD,QAAP,KAAoB,UAD/C,KAC/B,mBAAO,iDAAP,EAA0D,OAAOA,QAAP,KAAoB,UAA9E,CAD+B;AAE/B,UAAIR,MAAM,GAAG,KAAKA,MAAlB;;AAEA,WAAK,IAAIM,KAAK,GAAG,CAAjB,EAAoBA,KAAK,GAAGN,MAA5B,EAAoCM,KAAK,EAAzC,EAA6C;AAC3C,YAAIzB,IAAI,GAAG,KAAKmF,QAAL,CAAc1D,KAAd,CAAX;AACAE,QAAAA,QAAQ,CAACyD,IAAT,CAAcxD,MAAd,EAAsB5B,IAAtB,EAA4ByB,KAA5B,EAAmC,IAAnC;AACD;;AAED,aAAO,IAAP;AACD,KAlcyC;;AAoc1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE4D,IAAAA,OAAO,EAAElC,KApdiC;;AAsd1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEmC,IAAAA,OAAO,CAACnF,GAAD,EAAMa,KAAN,EAAa;AAClB,aAAO,KAAKN,OAAL,CAAaV,IAAI,IAAI,gBAAIA,IAAJ,EAAUG,GAAV,EAAea,KAAf,CAArB,CAAP;AACD,KAxeyC;;AA0e1C;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;AACEoC,IAAAA,GAAG,CAACzB,QAAD,EAAWC,MAAM,GAA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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;AACEqF,IAAAA,MAAM,CAAC/D,QAAD,EAAWC,MAAM,GAAG,IAApB,EAA0B;AAAA,iBAC2B,OAAOD,QAAP,KAAoB,UAD/C,KAC9B,mBAAO,gDAAP,EAAyD,OAAOA,QAAP,KAAoB,UAA7E,CAD8B;AAE9B,aAAO,KAAK8D,MAAL,CAAY,YAAY;AAC7B,eAAO,CAAC9D,QAAQ,CAACgE,KAAT,CAAe/D,MAAf,EAAuBV,SAAvB,CAAR;AACD,OAFM,CAAP;AAGD,KAxnByC;;AA0nB1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE0E,IAAAA,QAAQ,GAAG;AACT,aAAO,KAAKH,MAAL,CAAY1E,IAAI,CAAC,GAAGG,SAAJ,CAAhB,CAAP;AACD,KA5oByC;;AA8oB1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE2E,IAAAA,QAAQ,GAAG;AACT,aAAO,KAAKH,MAAL,CAAY3E,IAAI,CAAC,GAAGG,SAAJ,CAAhB,CAAP;AACD,KApqByC;;AAsqB1C;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;AACEQ,IAAAA,IAAI,CAACC,QAAD,EAAWC,MAAM,GAAG,IAApB,EAA0B;AAAA,iBAC2B,OAAOD,QAAP,KAAoB,UAD/C,KAC5B,mBAAO,8CAAP,EAAuD,OAAOA,QAAP,KAAoB,UAA3E,CAD4B;AAE5B,aAAOD,IAAI,CAAC,IAAD,EAAOC,QAAP,EAAiBC,MAAjB,CAAX;AACD,KA1sByC;;AA4sB1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEkE,IAAAA,MAAM,GAAG;AACP,aAAOpE,IAAI,CAAC,IAAD,EAAOX,IAAI,CAAC,GAAGG,SAAJ,CAAX,CAAX;AACD,KAruByC;;AAuuB1C;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;AACEc,IAAAA,KAAK,CAACL,QAAD,EAAWC,MAAM,GAAG,IAApB,EAA0B;AAAA,iBAC2B,OAAOD,QAAP,KAAoB,UAD/C,KAC7B,mBAAO,+CAAP,EAAwD,OAAOA,QAAP,KAAoB,UAA5E,CAD6B;AAE7B,aAAOK,KAAK,CAAC,IAAD,EAAOL,QAAP,EAAiBC,MAAjB,CAAZ;AACD,KAtwByC;;AAwwB1C;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;AACEmE,IAAAA,OAAO,GAAG;AACR,aAAO/D,KAAK,CAAC,IAAD,EAAOjB,IAAI,CAAC,GAAGG,SAAJ,CAAX,CAAZ;AACD,KA3yByC;;AA6yB1C;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;AACEa,IAAAA,GAAG,CAACJ,QAAD,EAAWC,MAAM,GAAG,IAApB,EAA0B;AAAA,iBAC2B,OAAOD,QAAP,KAAoB,UAD/C,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G;AACxB;AACF;AACA;AACA;AACA;AACEC,IAAAA,aAAa,EAAE,IANS;;AAQxB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,cAAc,GAAG;AACf,aAAO,KAAKD,aAAL,CAAmBC,cAAnB,EAAP;AACD,KA3BuB;;AA6BxB;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;AACEC,IAAAA,MAAM,CAACC,QAAD,EAAWC,OAAX,EAAoB;AACxB,aAAO,KAAKJ,aAAL,CAAmBE,MAAnB,CAA0BC,QAA1B,EAAoCC,OAApC,CAAP;AACD,KA9DuB;;AAgExBC,IAAAA,OAAO,GAAG;AACR,UAAIC,SAAS,GAAG,KAAKN,aAArB;;AAEA,UAAIM,SAAJ,EAAe;AACb,2BAAK,MAAM;AACTA,UAAAA,SAAS,CAACD,OAAV;AACA,iCAAS,SAAT,EAAoBC,SAApB,EAA+B,iBAA/B;AACD,SAHD;AAID;;AAED,WAAKC,MAAL;AACD,KA3EuB;;AA6ExB;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;AACEC,IAAAA,UAAU,CAACL,QAAD,EAAWC,OAAO,GAAG,EAArB,EAAyB;AACjC,aAAO,KAAKJ,aAAL,CAAmBQ,UAAnB,CAA8BL,QAA9B,EAAwCC,OAAxC,CAAP;AACD;;AAhHuB,GAA1B;;iBAmHeK,aAAMC,MAAN,CAAaX,mBAAb,C;;;;;;;;;;;;;ACjIf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;iBAEeY,aAAMC,MAAN,CAAa;AAC1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,IAAI,EAAE;AAVoB,GAAb,C;;;;;;;;;;;;;AClBf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;iBAEeC,aAAMC,MAAN,E;;;;;;;;;;;;;ACdf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;iBAEeC,aAAMC,MAAN,CAAa;AAC1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,EAAE,CAACC,IAAD,EAAOC,MAAP,EAAeC,MAAf,EAAuB;AACvB,8BAAY,IAAZ,EAAkBF,IAAlB,EAAwBC,MAAxB,EAAgCC,MAAhC;AACA,aAAO,IAAP;AACD,KAtByB;;AAwB1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,GAAG,CAACH,IAAD,EAAOC,MAAP,EAAeC,MAAf,EAAuB;AACxB,8BAAY,IAAZ,EAAkBF,IAAlB,EAAwBC,MAAxB,EAAgCC,MAAhC,EAAwC,IAAxC;AACA,aAAO,IAAP;AACD,KAzCyB;;AA2C1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEE,IAAAA,OAAO,CAACJ,IAAD,EAAO,GAAGK,IAAV,EAAgB;AACrB,4BAAU,IAAV,EAAgBL,IAAhB,EAAsBK,IAAtB;AACD,KA7DyB;;AA+D1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,GAAG,CAACN,IAAD,EAAOC,MAAP,EAAeC,MAAf,EAAuB;AACxB,iCAAe,IAAf,EAAqBF,IAArB,EAA2BC,MAA3B,EAAmCC,MAAnC;AACA,aAAO,IAAP;AACD,KA3EyB;;AA6E1B;AACF;AACA;AACA;AACA;AACA;AACA;AACEK,IAAAA,GAAG,CAACP,IAAD,EAAO;AACR,aAAO,yBAAa,IAAb,EAAmBA,IAAnB,CAAP;AACD;;AAtFyB,GAAb,C;;;;;;;;;;;;;AC5Cf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;iBAEeQ,aAAMC,MAAN,CAAaC,mBAAb,C;;;;;;;;;;;;;ACjBf;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;iBAEeC,aAAMC,MAAN,CAAa;AAC1B;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;AACEC,IAAAA,GAAG,CAACC,OAAD,EAAU;AACX,aAAO,gBAAI,IAAJ,EAAUA,OAAV,CAAP;AACD,KAlCyB;;AAoC1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,aAAa,CAAC,GAAGC,IAAJ,EAAU;AACrB,aAAO,0BAAc,GAAG,CAAC,IAAD,EAAOC,MAAP,CAAcD,IAAd,CAAjB,CAAP;AACD,KAvDyB;;AAyD1B;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;AACEE,IAAAA,GAAG,CAACJ,OAAD,EAAUK,KAAV,EAAiB;AAClB,aAAO,gBAAI,IAAJ,EAAUL,OAAV,EAAmBK,KAAnB,CAAP;AACD,KA9FyB;;AAgG1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,aAAa,CAACC,IAAD,EAAO;AAClB,aAAO,0BAAc,IAAd,EAAoBA,IAApB,CAAP;AACD,KA9GyB;;AAgH1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,oBAAoB,GAAG;AACrB;AACA,aAAO,IAAP;AACD,KAhIyB;;AAkI1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,kBAAkB,GAAG;AACnB;AACA,aAAO,IAAP;AACD,KAjJyB;;AAmJ1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,oBAAoB,CAACV,OAAD,EAAU;AAC5B,uCAAqB,IAArB,EAA2BA,OAA3B;AACA,aAAO,IAAP;AACD,KAjKyB;;AAmK1B;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;AAC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ArB;AAIA,WAAOF,OAAO,CAACG,IAAR,CAAaC,KAAK,IAAI;AAC3B,UAAI,CAACL,KAAK,CAACM,WAAP,IAAsB,CAACN,KAAK,CAACO,YAAjC,EAA+C;AAC7C,kCAAcP,KAAd,EAAqB;AACnBQ,UAAAA,OAAO,EAAEH,KADU;AAEnBH,UAAAA,WAAW,EAAE;AAFM,SAArB;AAID;;AAED,aAAOG,KAAP;AACD,KATM,EASJI,MAAM,IAAI;AACX,UAAI,CAACT,KAAK,CAACM,WAAP,IAAsB,CAACN,KAAK,CAACO,YAAjC,EAA+C;AAC7C,kCAAcP,KAAd,EAAqB;AACnBS,UAAAA,MADmB;AAEnBN,UAAAA,UAAU,EAAE;AAFO,SAArB;AAID;;AAED,YAAMM,MAAN;AACD,KAlBM,EAkBJ,qBAlBI,CAAP;AAmBD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;iBAGeC,aAAMC,MAAN,CAAa;AAC1B;AACF;AACA;AACA;AACA;AACA;AACA;AACEF,IAAAA,MAAM,EAAE,IARkB;;AAU1B;AACF;AACA;AACA;AACA;AACA;AACEG,IAAAA,SAAS,EAAE,qBAAS,WAAT,EAAsB,YAAY;AAC3C,aAAO,CAAC,gBAAI,IAAJ,EAAU,WAAV,CAAR;AACD,KAFU,EAERC,QAFQ,EAhBe;;AAoB1B;AACF;AACA;AACA;AACA;AACA;AACEC,IAAAA,SAAS,EAAE,qBAAS,YAAT,EAAuB,aAAvB,EAAsC,YAAY;AAC3D,aAAO,gBAAI,IAAJ,EAAU,YAAV,KAA2B,gB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,EAAoB;AAAA,iBACS,KAAKH,YAAL,CAAkBI,eAAlB,CAAkCF,QAAlC,CADT,KACrC,mBAAO,qCAAP,EAA8C,KAAKF,YAAL,CAAkBI,eAAlB,CAAkCF,QAAlC,CAA9C,CADqC;AAErC,aAAO,KAAKF,YAAL,CAAkBK,OAAlB,CAA0BH,QAA1B,EAAoCC,OAApC,CAAP;AACD,KAbyB;;AAe1B;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;AACEG,IAAAA,QAAQ,EAAEC,aAAa,CAAC,UAAD,CAlEG;;AAoE1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,UAAU,EAAED,aAAa,CAAC,YAAD,CApFC;;AAsF1B;AACF;AACA;AACA;AACA;AACA;AACA;AACEE,IAAAA,eAAe,EAAEF,aAAa,CAAC,KAAD,CA7FJ;;AA+F1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEG,IAAAA,gBAAgB,EAAEH,aAAa,CAAC,WAAD,CAvGL;;AAyG1B;AACF;AACA;AACA;AACA;AACA;AACA;AACEI,IAAAA,eAAe,EAAEJ,aAAa,CAAC,SAAD,CAhHJ;;AAkH1B;AACF;AACA;AACA;AACA;AACA;AACA;AACEK,IAAAA,iBAAiB,EAAEL,aAAa,CAAC,YAAD,CAzHN;;AA2H1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEM,IAAAA,sBAAsB,EAAEN,aAAa,CAAC,gBAAD,CAjJX;;AAmJ1B;AACF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eAAOA,IAAP;AACD;AACF,KA7Cc,CA6Cb;AACF;;;AAGiB,SAAZe,mBAAY,EAAErC,KAAF,EAAS,CAAE;;AAE5B7B,IAAAA,MAAM,CAAC,GAAGmE,IAAJ,EAAU;AACd,6BAAW,IAAX,EAAiBA,IAAjB;AACA,aAAO,IAAP;AACD;AACD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGE1B,IAAAA,IAAI,GAAG,CAAE;AACT;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;;AAEE;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;;AAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGiB,QAAX2B,WAAW,GAAG;AAChB,aAAO,0BAAY,IAAZ,CAAP;AACD;;AAEc,QAAXA,WAAW,CAACvC,KAAD,EAAQ;AAAA,iBACiE,KADjE,KACrB,mBAAQ,oBAAmB,IAAK,qDAAhC,EAAsF,KAAtF,CADqB;AAEtB;AACD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGkB,QAAZwC,YAAY,GAAG;AACjB,aAAO,2BAAa,IAAb,CAAP;AACD;;AAEe,QAAZA,YAAY,CAACxC,KAAD,EAAQ;AAAA,iBACiE,KADjE,KACtB,mBAAQ,oBAAmB,IAAK,sDAAhC,EAAuF,KAAvF,CADsB;AAEvB;AACD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGEf,IAAAA,OAAO,GAAG;AACR;AACAL,MAAAA,aAAa,CAAC+B,GAAd,CAAkB,IAAlB;;AAEA,UAAI;AACF,8BAAQ,IAAR;AACD,OAFD,SAEU;AACR/B,QAAAA,aAAa,CAAC6D,MAAd,CAAqB,IAArB;AACD;;AAED,aAAO,IAAP;AACD;AACD;AACF;AACA;AACA;AACA;;;AAGEN,IAAAA,WAAW,GAAG,CAAE;AAChB;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;;;AAGElC,IAAAA,QAAQ,GAAG;AACT,UAAIyC,oBAAoB,GAAG,OAAO,KAAKC,iBAAZ,KAAkC,UAA7D;AACA,UAAIC,SAAS,GAAGF,oBAAoB,GAAI,IAAG,KAAKC,iBAAL,EAAyB,EAAhC,GAAoC,EAAxE;AACA,UAAIE,GAAG,GAAI,IAAG,oBAAQ,IAAR,KAAiB,8BAAc,IAAd,CAAjB,IAAwC,KAAK3B,WAAL,CAAiBjB,QAAjB,EAA4B,IAAG,oBAAQ,IAAR,CAAc,GAAE2C,SAAU,GAA/G;AACA,aAAOC,GAAP;AACD;AACD;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;;;AAGe,WAANC,MAAM,GAAG;AACd,UAAIC,KAAK,GAAG,cAAc,IAAd,CAAmB,EAA/B;AACA5E,MAAAA,MAAM,CAAC6E,KAAP,CAAaD,KAAK,CAACE,cAAnB,EAAmCC,SAAnC;AACA,aAAOH,KAAP;AACD;AACD;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;;;AAGe,WAANI,MAAM,CAACC,KAAD,EAAQC,KAAR,EAAe;AAC1B,UAAItE,QAAJ;;AAEA,UAAIqE,KAAK,KAAKzE,SAAd,EAAyB;AACvBI,QAAAA,QAAQ,GAAG,IAAI,IAAJ,CAAS,qBAASqE,KAAT,CAAT,CAAX;AACA,sCAAcrE,QAAd,EAAwB,8BAAcqE,KAAd,CAAxB;AACD,OAHD,MAGO;AACLrE,QAAAA,QAAQ,GAAG,IAAI,IAAJ,EAAX;AACD;;AAED,UAAIsE,KAAK,KAAK1E,SAAd,EAAyB;AACvBO,QAAAA,UAAU,CAACH,QAAD,EAAWqE,KAAX,CAAV;AACD,OAFD,MAEO;AACLlE,QAAAA,UAAU,CAACH,QAAD,EAAWuE,YAAY,CAACN,KAAb,CAAmB,IAAnB,EAAyBE,SAAzB,CAAX,CAAV;AACD;;AAED,aAAOnE,QAAP;AACD;AACD;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;;;AAGe,WAANZ,MAAM,GAAG;AACd,WAAKoF,UAAL;AACApF,MAAAA,MAAM,CAAC6E,KAAP,CAAa,KAA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/BL,QAAAA,GAAG,GAAG,MAAN;AACD;AACF;;AAED,WAAOA,GAAP;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3GD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAASM,MAAT,CAAgBC,GAAhB,EAAqB;AACnB,QAAIC,GAAG,GAAG,EAAV;AACAA,IAAAA,GAAG,CAACD,GAAD,CAAH,GAAW,CAAX;;AAEA,SAAK,IAAIE,GAAT,IAAgBD,GAAhB,EAAqB;AACnB,UAAIC,GAAG,KAAKF,GAAZ,EAAiB;AACf,eAAOE,GAAP;AACD;AACF;;AAED,WAAOF,GAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,WAASG,QAAT,CAAkBC,KAAlB,EAAyB;AACvB,WAAOA,KAAK,KAAK,IAAV,KAAmB,OAAOA,KAAP,KAAiB,QAAjB,IAA6B,OAAOA,KAAP,KAAiB,UAAjE,CAAP;AACD;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,MAAIC,KAAK,GAAG,CAAZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAASC,IAAT,GAAgB;AACd,WAAO,EAAED,KAAT;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,MAAME,WAAW,GAAG,OAApB,C,CAA6B;;AAE7B,MAAMC,YAAY,GAAG,IAAIC,OAAJ,EAArB;AACA,MAAMC,gBAAgB,GAAG,IAAIC,GAAJ,EAAzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,QAAQ,GAAGb,MAAM,CAAE,UAASc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D;AAC3D,YAAIsJ,MAAM,GAAGL,OAAO,CAACnD,OAAD,CAApB;;AAEA,YAAIwD,MAAM,CAACzJ,GAAX,EAAgB;AACdyJ,UAAAA,MAAM,CAACzJ,GAAP,CAAWiC,IAAX,CAAgBlD,GAAhB,EAAqBG,KAArB;AACD,SAFD,MAEO;AACLuK,UAAAA,MAAM,CAACvK,KAAP,GAAeA,KAAf,CADK,CACiB;AACtB;;AAEA,cAAI,CAACuK,MAAM,CAACJ,cAAZ,EAA4B;AAC1B,gBAAIJ,IAAI,GAAGjD,gBAAgB,CAACjH,GAAD,EAAMkH,OAAN,CAA3B;AACAgD,YAAAA,IAAI,CAACO,UAAL,GAAkB,IAAlB;AACAlI,YAAAA,MAAM,CAACiI,cAAP,CAAsBxK,GAAtB,EAA2BkH,OAA3B,EAAoCgD,IAApC;AACD;AACF;AACF,OAfD,MAeO;AACLlK,QAAAA,GAAG,CAACkH,OAAD,CAAH,GAAe/G,KAAf;AACD;AACF,KArBD;AAsBD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;ACp2BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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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A5B,MAA8CH,SAA9C,IAA2DC,KAAK,CAACC,OAAN,CAAc,KAAKE,UAAnB,CAJhL,KAIL,mBAAQ,iHAAR,EAA0H,kCAAsB,IAAtB,EAA4B,YAA5B,MAA8CJ,SAA9C,IAA2DC,KAAK,CAACC,OAAN,CAAc,KAAKE,UAAnB,CAArL,CAJK;AAKN,KARyB;;AAU1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEA,IAAAA,UAAU,EAAEb,WAnBc;;AAqB1B;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;AACEY,IAAAA,iBAAiB,EAAEZ;AArEO,GAAb,C;;;;;;;;;;;;;ACZf;AACA;AACA;AAMA,MAAMc,UAAU,GAAG;AACjB,QAAI,eADa;AAEjB,QAAI;AAFa,GAAnB;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;iBAEeC,aAAMC,MAAN,CAAaC,4BAAb,EAAkC;AAC/CC,IAAAA,KAAK,EA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ACA;AACA;AACA;AACA;AACA;AACEQ,IAAAA,MAAM,GAAG;AACP,aAAO,KAAKV,QAAL,CAAcI,QAAQ,CAACO,IAAvB,CAAP;AACD,KA5LS;;AA8LV;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,SAAS,EAAE,IAvND;;AAyNV;AACF;AACA;AACA;AACA;AACEC,IAAAA,iBAAiB,EAAElC,CA9NT;;AAgOV;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEmC,IAAAA,gBAAgB,EAAEnC,CAzOR;;AA2OV;AACF;AACA;AACA;AACA;AACA;AACA;AACEoC,IAAAA,eAAe,EAAEpC,CAlPP;;AAoPV;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEqC,IAAAA,OAAO,GAAG;AACR,WAAKC,MAAL,CAAY,GAAGC,SAAf;;AAEA,WAAKzB,aAAL,CAAmBuB,OAAnB,CAA2B,IAA3B;AACD,KAhQS;;AAkQV;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEG,IAAAA,kBAAkB,EAAExC,CA3QV;;AA6QV;AACF;AACA;AACA;AACA;AACEyC,IAAAA,iBAAiB,EAAEzC,CAlRT;;AAoRV;AACF;AACA;AACA;AACA;AACE0C,IAAAA,mBAAmB,EAAE1C,CAzRX;AA0RV;AACA;AACA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA2C,IAAAA,OAAO,EAAE,IA/SC;;AAiTV;AACA;AACA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,IAAI,GAAG;AACL,WAAKN,MAAL,CAAY,GAAGC,SAAf,EADK,CACsB;;;AADtB,iBAIqF,kCAAsB,IAAtB,EAA4B,WAA5B,MAA6CM,SAJlI,KAIL,mBAAQ,yEAA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AAA,OAAO,GAAG,IAAIC,KAAJ,CAAU,KAAK7D,UAAU,CAACX,QAAX,CAAoBI,MAAnC,EAA2CiC,IAA3C,CAAgD,GAAhD,CAAV;AACD;;AAED,yBAAKiC,MAAL,EAAa3D,UAAU,CAACX,QAAxB,EAAkCuE,OAAlC,EAA2C,KAAKhC,iBAAL,CAAuB5B,UAAU,CAACX,QAAlC,CAA3C;AACD,OAXD;AAYD;AACF;;iBAEcX,e;;;;AC3af;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAMoF,mBAAmB,GAAGC,kBAAeC,MAAf,CAAsB;AAChD;AACF;AACA;AACA;AACA;AACEC,IAAAA,WAAW,EAAE,IANmC;;AAQhD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,YAAY,EAAE,IAjBkC;;AAmBhD;AACF;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,WAAW,EAAE,IA1BmC;;AA4BhDC,IAAAA,IAAI,GAAG;AACL,WAAKC,MAAL,CAAY,GAAGC,SAAf;;AAEA,WAAKL,WAAL,CAAiBM,cAAjB,CAAgC,IAAhC,EAHK,CAGkC;AACvC;AACA;AACA;AACA;AACA;AACA;;;AAGA,WAAKC,QAAL,CAAc,4BAAd,EAA4C,IAA5C,EAAkD;AAChDC,QAAAA,WAAW,EAAE;AADmC,OAAlD;AAGD,KA3C+C;;AA6ChD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE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EAAyC;AACvC,aAAK5C,aAAL,GAAqB6C,OAAO,CAACpD,OAAO,CAACO,aAAT,CAA5B;AACD;AACF;;AAEDqC,IAAAA,aAAa,GAAG;AACd;AACA,UAAIS,GAAG,GAAG,uBAAO,EAAP,EAAWN,WAAX,CAAV,CAFc,CAEqB;;AAEnCM,MAAAA,GAAG,CAACL,MAAJ,GAAa,KAAKE,SAAlB;AACAG,MAAAA,GAAG,CAAC9C,aAAJ,GAAoB,KAAKA,aAAzB;AACA8C,MAAAA,GAAG,CAACJ,WAAJ,GAAkB,KAAKA,WAAvB;AACAI,MAAAA,GAAG,CAACrD,OAAJ,GAAc,IAAd;AACA,aAAOqD,GAAP;AACD;;AArKe;;iBAyKHlE,mB;;;;;;;;;;;;ACjef;AACA;AACA;AAkBA,MAAImE,mBAAmB,GAAG,KAA1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,WAAW,GAAGC,gBAAOC,MAAP,CAAc;AAChC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,WAAW,EAAE,MAbmB;;AAehC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,eAAe,EAAE,IA3Be;;AA6BhC;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;AACEC,IAAAA,YAAY,EAAE,IAnEkB;;AAqEhC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,QAAQ,EAAE,IAhFsB;;AAkFhC;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;AACEC,IAAAA,YAAY,EAAE,IAvHkB;;AAyHhC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,qBAAqB,EAAE,IAjIS;;AAmIhCC,IAAAA,IAAI,GAAG;AACL;AACA,WAAKC,MAAL,CAAY,GAAGC,SAAf;;AAEA,UAAI,CAAC,KAAKC,CAAV,EAAa;AACX,aAAKA,CAAL,GAASC,aAAT;AACD;;AAEDC,MAAAA,iBAAiB;;AAEjB;AAAA;AAAA,QAAW;AACT,YAAIC,iBAAIC,WAAR,EAAqB;AACnB;AACAD,2BAAIC,WAAJ,GAAkB,KAAlB;;AACAC,2BAAUC,WAAV;AACD;AACF,OAhBI,CAgBH;AACF;;;AAGA,WAAKC,mBAAL,GAA2B,CAA3B;AACA,WAAKC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B,IAA5B,EAAkC;AAChCkC,2BAAQlC,WAAR,GAAsBmC,SAAtB;AACD;;AAED,UAAI,KAAKzD,qBAAL,CAA2B0D,IAA/B,EAAqC;AACnC,aAAK1D,qBAAL,CAA2B2D,OAA3B,CAAmCC,CAAC,IAAIA,CAAC,CAACC,OAAF,EAAxC;;AAEA,aAAK7D,qBAAL,CAA2B8D,KAA3B;AACD;AACF,KAvjB+B;;AAyjBhC;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;AACEC,IAAAA,KAAK,CAACC,GAAD,EAAM9C,OAAN,EAAe;AAAA,iBAC8D,CAAC,KAAKC,WADpE,KAClB,mBAAO,uEAAP,EAAgF,CAAC,KAAKA,WAAtF,CADkB;AAAA,iBAEsD,CAAC,KAAKC,YAF5D,KAElB,mBAAO,+DAAP,EAAwE,CAAC,KAAKA,YAA9E,CAFkB;AAGlB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,qBAAN,CAA4B;AACjCC,IAAAA,WAAW,CAACC,UAAU,GAAG,gCAAd,EAAgD;AACzD,WAAKA,UAAL,GAAkBA,UAAlB;AACD;;AAEDC,IAAAA,QAAQ,GAAG;AACT,aAAO,KAAKD,UAAZ;AACD;;AAPgC;AAUnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AAEe,WAASE,qBAAT,CAA+BF,UAA/B,EAA2C;AACxD,WAAO,IAAIF,qBAAJ,CAA0BE,UAA1B,CAAP;AACD;;AACM,WAASG,uBAAT,CAAiCC,SAAjC,EAA4C;AACjD,WAAOA,SAAS,YAAYN,qBAA5B;AACD;;;;;;;;;;;;AC3CD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAMO,UAAU,GAAGC,yBAAgBC,MAAhB,CAAuBC,yBAAvB,CAAnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,MAAT,GAAkB;AACvB,WAAO,mBAAY,YAAZ,EAA0B,GAAGC,SAA7B,CAAP;AACD;;iBACcL,U;;;;;;;;;;;ACzDf,MAAMM,KAAK,GAAG,mBAAO,OAAP,CAAd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;iBAEeC,aAAMC,MAAN,CAAaC,sBAAb,EAA4B;AACzC;AACAC,IAAAA,YAAY,EAAE,IAF2B;;AAIzC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,IAAAA,MAAM,EAAE,IAjBiC;AAkBzCC,IAAAA,KAAK,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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEI,IAAAA,WAAW,EAAEuB,sBAAsB,CAAC,cAAD,EAAiB,aAAjB,CApHlB;;AAsHjB;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;AACEtB,IAAAA,mBAAmB,EAAEsB,sBAAsB,CAAC,sBAAD,EAAyB,sBAAzB,CA9K1B;;AAgLjB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEnC,IAAAA,aAAa,CAACoC,SAAD,EAAY;AACvB,UAAI3B,QAAQ,GAAG,IAAI4B,mBAAJ,CAAa;AAC1BC,QAAAA,QAAQ,EAAEC,WAAW,CAACH,SAAD;AADK,OAAb,CAAf;AAGA3B,MAAAA,QAAQ,CAAC+B,GAAT,GAAeA,UAAf;AACA/B,MAAAA,Q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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACvLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGO,WAASG,KAAT,CAAeC,YAAf,EAA6B;AAAA,eACwE,CAAC,gCAAoBC,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CADzE,KAClC,mBAAO,iGAAP,EAA0G,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAA3G,CADkC;AAElC,WAAO,qBAAU,GAAEL,YAAa,SAAzB,EAAmC,YAAY;AACpD,aAAO,oBAAQ,gBAAI,IAAJ,EAAUA,YAAV,CAAR,CAAP;AACD,KAFM,CAAP;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASM,QAAT,CAAkBN,YAAlB,EAAgC;AAAA,eACwE,CAAC,gCAAoBC,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CADzE,KACrC,mBAAO,oGAAP,EAA6G,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAA9G,CADqC;AAErC,WAAO,qBAAU,GAAEL,YAAa,SAAzB,EAAmC,YAAY;AACpD,aAAO,CAAC,oBAAQ,gBAAI,IAAJ,EAAUA,YAAV,CAAR,CAAR;AACD,KAFM,CAAP;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASO,IAAT,CAAcP,YAAd,EAA4B;AAAA,eACwE,CAAC,gCAAoBC,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CADzE,KACjC,mBAAO,gGAAP,EAAyG,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAA1G,CADiC;AAEjC,WAAO,qBAASL,YAAT,EAAuB,YAAY;AACxC,aAAO,mBAAO,gBAAI,IAAJ,EAAUA,YAAV,CAAP,CAAP;AACD,KAFM,CAAP;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASQ,GAAT,CAAaR,YAAb,EAA2B;AAAA,eACwE,CAAC,gCAAoBC,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CADzE,KAChC,mBAAO,+FAAP,EAAwG,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAAzG,CADgC;AAEhC,WAAO,qBAASL,YAAT,EAAuB,YAAY;AACxC,aAAO,CAAC,gBAAI,IAAJ,EAAUA,YAAV,CAAR;AACD,KAFM,CAAP;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASS,IAAT,CAAcT,YAAd,EAA4B;AAAA,eACwE,CAAC,gCAAoBC,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CADzE,KACjC,mBAAO,gGAAP,EAAyG,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAA1G,CADiC;AAEjC,WAAO,qBAASL,YAAT,EAAuB,YAAY;AACxC,aAAOU,OAAO,CAAC,gBAAI,IAAJ,EAAUV,YAAV,CAAD,CAAd;AACD,KAFM,CAAP;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASW,KAAT,CAAeX,YAAf,EAA6BY,MAA7B,EAAqC;AAAA,eAC4E,CAAC,gCAAoBX,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAD7E,KAC1C,mBAAO,6GAAP,EAAsH,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAAvH,CAD0C;AAE1C,WAAO,qBAASL,YAAT,EAAuB,YAAY;AACxC,UAAIF,KAAK,GAAG,gBAAI,IAAJ,EAAUE,YAAV,CAAZ;AACA,aAAOY,MAAM,CAACC,IAAP,CAAYf,KAAZ,CAAP;AACD,KAHM,CAAP;AAID;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASgB,KAAT,CAAed,YAAf,EAA6BF,KAA7B,EAAoC;AAAA,eAC2E,CAAC,gCAAoBG,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAD5E,KACzC,mBAAO,2GAAP,EAAoH,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAArH,CADyC;AAEzC,WAAO,qBAASL,YAAT,EAAuB,YAAY;AACxC,aAAO,gBAAI,IAAJ,EAAUA,YAAV,MAA4BF,KAAnC;AACD,KAFM,CAAP;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASiB,EAAT,CAAYf,YAAZ,EAA0BF,KAA1B,EAAiC;AAAA,eAC4E,CAAC,gCAAoBG,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAD7E,KACtC,mBAAO,yGAAP,EAAkH,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAAnH,CADsC;AAEtC,WAAO,qBAASL,YAAT,EAAuB,YAAY;AACxC,aAAO,gBAAI,IAAJ,EAAUA,YAAV,IAA0BF,KAAjC;AACD,KAFM,CAAP;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASkB,GAAT,CAAahB,YAAb,EAA2BF,KAA3B,EAAkC;AAAA,eAC4E,CAAC,gCAAoBG,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAD7E,KACvC,mBAAO,0GAAP,EAAmH,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAApH,CADuC;AAEvC,WAAO,qBAASL,YAAT,EAAuB,YAAY;AACxC,aAAO,gBAAI,IAAJ,EAAUA,YAAV,KAA2BF,KAAlC;AACD,KAFM,CAAP;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,MAAMqB,GAAG,GAAG3B,6BAA6B,CAAC,KAAD,EAAQM,KAAK,IAAIA,KAAjB,CAAzC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,MAAMsB,EAAE,GAAG5B,6BAA6B,CAAC,IAAD,EAAOM,KAAK,IAAI,CAACA,KAAjB,CAAxC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAEO,WAASuB,MAAT,CAAgBrB,YAAhB,EAA8B;AAAA,eACwE,CAAC,gCAAoBC,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CADzE,KACnC,mBAAO,kGAAP,EAA2G,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAA5G,CADmC;AAEnC,WAAO,kBAAML,YAAN,EAAoBqB,MAApB,EAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,QAAT,CAAkBtB,YAAlB,EAAgC;AAAA,eACwE,CAAC,gCAAoBC,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CADzE,KACrC,mBAAO,oGAAP,EAA6G,CAAC,gCAAoBJ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,CAApB,CAA9G,CADqC;AAErC,WAAO,kBAAML,YAAN,EAAoBsB,QAApB,EAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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IAAK,+CAAnD,EAAmGY,cAAc,CAACC,KAAf,CAAqBhB,YAAY,IAAI,CAAC,WAAWI,IAAX,CAAgBJ,YAAhB,CAAtC,CAAnG,CADuD;;AAGvD,QAAIiB,aAAa,GAAGF,cAAc,CAACG,GAAf,CAAmBC,GAAG,IAAK,GAAEA,GAAI,KAAjC,CAApB;;AAEA,WAAO,qBAAS,GAAGF,aAAZ,EAA2B,YAAY;AAC5C,aAAO,gBAAOhB,QAAQ,CAACY,IAAT,CAAc,IAAd,EAAoBE,cAApB,CAAP,CAAP;AACD,KAFM,EAEJR,QAFI,EAAP;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGO,WAASa,GAAT,CAAapB,YAAb,EAA2B;AAAA,eACwE,CAAC,gCAAoBqB,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CADzE,KAChC,mBAAO,+FAAP,EAAwG,CAAC,gCAAoBH,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAAzG,CADgC;AAEhC,WAAOzB,WAAW,CAACC,YAAD,EAAe,CAACoB,GAAD,EAAMK,IAAN,KAAeL,GAAG,GAAGK,IAApC,EAA0C,CAA1C,EAA6C,KAA7C,CAAlB;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,GAAT,CAAa1B,YAAb,EAA2B;AAAA,eACwE,CAAC,gCAAoBqB,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CADzE,KAChC,mBAAO,+FAAP,EAAwG,CAAC,gCAAoBH,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAAzG,CADgC;AAEhC,WAAOzB,WAAW,CAACC,YAAD,EAAe,CAAC0B,GAAD,EAAMD,IAAN,KAAeE,IAAI,CAACD,GAAL,CAASA,GAAT,EAAcD,IAAd,CAA9B,EAAmD,CAACG,QAApD,EAA8D,KAA9D,CAAlB;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,GAAT,CAAa7B,YAAb,EAA2B;AAAA,eACwE,CAAC,gCAAoBqB,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CADzE,KAChC,mBAAO,+FAAP,EAAwG,CAAC,gCAAoBH,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAAzG,CADgC;AAEhC,WAAOzB,WAAW,CAACC,YAAD,EAAe,CAAC6B,GAAD,EAAMJ,IAAN,KAAeE,IAAI,CAACE,GAAL,CAASA,GAAT,EAAcJ,IAAd,CAA9B,EAAmDG,QAAnD,EAA6D,KAA7D,CAAlB;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASV,GAAT,CAAalB,YAAb,EAA2BS,uBAA3B,EAAoDR,QAApD,EAA8D;AAAA,eAC2D,CAAC,gCAAoBoB,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAD5D,KACnE,mBAAO,qHAAP,EAA8H,CAAC,gCAAoBH,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAA/H,CADmE;;AAGnE,QAAIvB,QAAQ,KAAK6B,SAAb,IAA0B,OAAOrB,uBAAP,KAAmC,UAAjE,EAA6E;AAC3ER,MAAAA,QAAQ,GAAGQ,uBAAX;AACAA,MAAAA,uBAAuB,GAAG,EAA1B;AACD;;AANkE,eAQO,OAAOR,QAAP,KAAoB,UAR3B,KAQnE,mBAAO,iEAAP,EAA0E,OAAOA,QAAP,KAAoB,UAA9F,CARmE;AAAA,eASiDoB,KAAK,CAACU,OAAN,CAActB,uBAAd,CATjD,KASnE,mBAAO,2GAAP,EAAoHY,KAAK,CAACU,OAAN,CAActB,uBAAd,CAApH,CATmE;AAUnE,WAAOD,UAAU,CAACR,YAAD,EAAeS,uBAAf,EAAwC,UAAUG,KAAV,EAAiB;AACxE,aAAOA,KAAK,CAACM,GAAN,CAAUjB,QAAV,EAAoB,IAApB,CAAP;AACD,KAFgB,CAAjB;AAGD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAAS+B,KAAT,CAAehC,YAAf,EAA6BiC,WAA7B,EAA0C;AAAA,eAC4E,CAAC,gCAAoBZ,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAD7E,KAC/C,mBAAO,kHAAP,EAA2H,CAAC,gCAAoBH,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAA5H,CAD+C;AAAA,eAEmE,OAAOS,WAAP,KAAuB,QAF1F,KAE/C,mBAAO,yEAAyE,gCAAhF,EAAkH,OAAOA,WAAP,KAAuB,QAAzI,CAF+C;AAAA,eAGiD,CAAC,WAAW7B,IAAX,CAAgBJ,YAAhB,CAHlD,KAG/C,mBAAQ,uFAAR,EAAgG,CAAC,WAAWI,IAAX,CAAgBJ,YAAhB,CAAjG,CAH+C;AAI/C,WAAOkB,GAAG,CAAE,GAAElB,YAAa,UAASiC,WAAY,EAAtC,EAAyCR,IAAI,IAAI,gBAAIA,IAAJ,EAAUQ,WAAV,CAAjD,CAAV;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,MAAT,CAAgBlC,YAAhB,EAA8BS,uBAA9B,EAAuDR,QAAvD,EAAiE;AAAA,eAC2D,CAAC,gCAAoBoB,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAD5D,KACtE,mBAAO,wHAAP,EAAiI,CAAC,gCAAoBH,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAAlI,CADsE;;AAGtE,QAAIvB,QAAQ,KAAK6B,SAAb,IAA0B,OAAOrB,uBAAP,KAAmC,UA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D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,MAAIwC,KAAK,GAAGV,IAAZ;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAEO,WAASW,SAAT,CAAmB,GAAGV,IAAtB,EAA4B;AAAA,eACsF,CAAC,gCAAoBjB,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CADvF,KACjC,mBAAO,8GAAP,EAAuH,CAAC,gCAAoBH,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAAxH,CADiC;AAEjC,WAAOV,eAAe,CAACwB,IAAD,EAAO,UAAUrB,aAAV,EAAyB;AACpD,UAAIgC,MAAM,GAAGhC,aAAa,CAACC,GAAd,CAAkBlB,YAAY,IAAI;AAC7C,YAAIkD,KAAK,GAAG,gBAAI,IAAJ,EAAUlD,YAAV,CAAZ;AACA,eAAO,sBAAQkD,KAAR,IAAiBA,KAAjB,GAAyB,EAAhC;AACD,OAHY,CAAb;AAIA,UAAIC,OAAO,GAAGF,MAAM,CAACG,G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AAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAD9E,KACxC,mBAAO,4GAAP,EAAqH,CAAC,gCAAoBH,KAAK,CAACC,SAAN,CAAgBC,KAAhB,CAAsBV,IAAtB,CAA2BW,SAA3B,CAApB,CAAtH,CADwC;AAExC,WAAOV,eAAe,CAACG,aAAD,EAAgB,YAAY;AAChD,UAAIgD,GAAG,GAAGhD,aAAa,CAACC,GAAd,CAAkBC,GAAG,IAAI;AACjC,YAAI+C,GAAG,GAAG,gBAAI,IAAJ,EAAU/C,GAAV,CAAV;AACA,eAAO+C,GAAG,KAAKpC,SAAR,GAAoB,IAApB,GAA2BoC,GAAlC;AACD,OAHS,CAAV;AAIA,aAAO,gBAAOD,GAAP,CAAP;AACD,KANqB,EAMnB,SANmB,CAAtB;AAOD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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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AFM,MAEA;AACL,YAAIG,IAAI,GAAG,OAAOF,WAAlB;AACA,eAAOE,IAAI,KAAK,UAAT,IACPH,cAAc,KAAK,IAAnB,IAA2BG,IAAI,KAAK,QAApC,IAAgDF,WAAW,IAAID,cADxD,IAEP,OAAOA,cAAP,KAA0B,UAF1B;AAID;AACF,KAhBkD,CAgBjD,GAAGD,OAhB8C,CAAnD,CADkC;AAkBlC,WAAO,CAAC,GAAGK,IAAJ,KAAaN,IAAI,CAAC,GAAGC,OAAO,CAACM,MAAR,CAAeD,IAAf,CAAJ,CAAxB;AACD,GAnBM;AAoBP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AAEO,WAASE,KAAT,GAAiB;AACtBjB,IAAAA,UAAU,CAACiB,KAAX;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,GAAT,GAAe;AACpBlB,IAAAA,UAAU,CAACkB,GAAX;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,QAAT;AACP;AACA;AACE,WAAOnB,UAAU,CAACmB,QAAX,CAAoB,GAAGb,SAAvB,CAAP;AACD,G,CAAC;;;AAEK,WAASc,kBAAT,GAA8B;AACnC,WAAOpB,UAAU,CAACqB,SAAX,EAAP;AACD,G,CAAC;;;AAEK,WAASC,YAAT,GAAwB;AAC7BtB,IAAAA,UAAU,CAACsB,YAAX;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,KAAT;AACP;AACA;AACE,WAAOvB,UAAU,CAACuB,KAAX,CAAiB,GAAGjB,SAApB,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASkB,IAAT,CAAc,GAAGT,IAAjB,EAAuB;AAC5BA,IAAAA,IAAI,CAACU,OAAL,CAAa,SAAb;AACA,WAAOzB,UAAU,CAAC0B,YAAX,CAAwB,GAAGX,IAA3B,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASW,YAAT;AACP;AACA;AACE,WAAO1B,UAAU,CAAC0B,YAAX,CAAwB,GAAGpB,SAA3B,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAAShB,IAAT,CAAc,GAAGyB,IAAjB,EAAuB;AAC5BA,IAAAA,IAAI,CAACY,IAAL,CAAU,CAAV;AACA,WAAO3B,UAAU,CAACuB,KAAX,CAAiB,GAAGR,IAApB,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASa,MAAT,CAAgBC,KAAhB,EAAuB;AAC5B,WAAO7B,UAAU,CAAC4B,MAAX,CAAkBC,KAAlB,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,QAAT,GAAoB;AACzB,WAAO9B,UAAU,CAAC8B,QAAX,CAAoB,GAAGxB,SAAvB,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASyB,QAAT,GAAoB;AACzB,WAAO/B,UAAU,CAAC+B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B,GAAb,EAAkBiB,OAAlB,EAA2B;AAChC,QAAI,CAACS,KAAK,CAACC,OAAN,CAAcV,OAAd,CAAD,IAA2BW,SAAS,CAACrB,MAAV,GAAmB,CAAlD,EAAqD;AACnDU,MAAAA,OAAO,GAAGS,KAAK,CAACG,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BH,SAA3B,EAAsC,CAAtC,CAAV;AACD;;AAED5B,IAAAA,GAAG,GAAG,gCAAUA,GAAV,KAAkBA,GAAxB;AACA,WAAOgB,IAAI,CAAChB,GAAD,EAAMiB,OAAN,CAAX;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASe,CAAT,CAAWhC,GAAX,EAAgB;AACrB,WAAOA,GAAG,CAACK,KAAJ,CAAU,KAAV,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASpB,UAAT,CAAoBe,GAApB,EAAyB;AAC9B,WAAOe,gBAAgB,CAACkB,GAAjB,CAAqBjC,GAArB,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASkC,SAAT,CAAmBlC,GAAnB,EAAwB;AAC7B,WAAOlB,sBAAsB,CAACmD,GAAvB,CAA2BjC,GAA3B,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASmC,QAAT,CAAkBnC,GAAlB,EAAuB;AAC5B,WAAOX,cAAc,CAAC4C,GAAf,CAAmBjC,GAAnB,CAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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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;;;;AAEO,WAASC,cAAT,CAAwBC,IAAxB,EAA8BC,YAA9B,EAA4C;AACjDH,IAAAA,OAAO,CAACE,IAAD,CAAP,GAAgB;AACdE,MAAAA,MAAM,EAAED,YADM;AAEdE,MAAAA,IAAI,EAAE;AACJC,QAAAA,IAAI,EAAE;AADF;AAFQ,KAAhB;AAMD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASC,mBAAT,CAA6BL,IAA7B,EAAmCC,YAAnC,EAAiD;AACtDH,IAAAA,OAAO,CAACE,IAAD,CAAP,GAAgB;AACdE,MAAAA,MAAM,EAAED,YADM;AAEdE,MAAAA,IAAI,EAAE;AACJC,QAAAA,IAAI,EAAE;AADF;AAFQ,KAAhB;AAMD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEO,WAASE,gBAAT,CAA0BN,IAA1B,EAAgC;AACrC,WAAOF,OAAO,CAACE,IAAD,CAAd;AACA,WAAOO,iBAAYC,SAAZ,CAAsBR,IAAtB,CAAP;AACD;;;;;;;;;;;;AChIM,MAAMS,SAAS,GAAG,EAAlB;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAEO,WAASC,eAAT,CAAyBC,QAAzB,EAAmC;AACxCF,IAAAA,SAAS,CAACG,I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ACJ,WAAKmB,OAAL,CAAazB,CAAb,IAAkB;AACjB2E,QAAAA,KAAK,EAAE,UADU;AAEjBrB,QAAAA,MAAM,EAAEhD;AAFS,OAAlB;AAIF;AACF;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,WAASiG,GAAT,CAAaC,OAAb,EAAsBzG,KAAtB,EAA6B;AAC3B,QAAI,CAAC6F,KAAK,CAACa,OAAN,CAAcD,OAAd,CAAL,EAA6B;AAC3B,aAAO,KAAKjD,MAAL,CAAY,IAAI/D,SAAJ,CAAc,0CAAd,CAAZ,EAAuEO,KAAvE,CAAP;AACD;;AACD,WAAO,IAAIkF,UAAJ,CAAe,IAAf,EAAqBuB,OAArB,EAA8B;AAAK;AAAnC,MAA0DzG,KAA1D,EAAiEqB,OAAxE;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,WAASsF,IAAT,CAAcF,OAAd,EAAuBzG,KAAvB,EAA8B;AAC5B;AACA,QAAIiC,WAAW,GAAG,IAAlB;AAEA,QAAIZ,OAAO,GAAG,IAAIY,WAAJ,CAAgBE,IAAhB,EAAsBnC,KAAtB,CA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AAED,WAASuH,QAAT,GAAoB;AAClB,UAAM,IAAIvH,SAAJ,CAAc,uHAAd,CAAN;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,QAAM+F,OAAN,CAAc;AACZtD,IAAAA,WAAW,CAAC8C,QAAD,EAAWhF,KAAX,EAAkB;AAC3B,WAAKwB,GAAL,GAAWsF,OAAO,EAAlB;AACA,WAAKnF,MAAL,GAAc3B,KAAd;AACA,WAAK0D,MAAL,GAAcpE,SAAd;AACA,WAAKoC,OAAL,GAAepC,SAAf;AACA,WAAK8E,YAAL,GAAoB,EAApB;AAEAjE,MAAAA,MAAM,CAACC,UAAP,IAAqBA,UAAU,CAAC,SAAD,EAAY,IAAZ,CAA/B;;AAEA,UAAI+B,IAAI,KAAK6C,QAAb,EAAuB;AACrB,eAAOA,QAAP,KAAoB,UAApB,IAAkC+B,aAAa,EAA/C;AACA,wBAAgBvB,OAAhB,GAA0BT,iBAAiB,CAAC,IAAD,EAAOC,QAAP,CAA3C,GAA8DgC,QAAQ,EAAtE;AACD;AACF;;AAEDrD,IAAAA,QAAQ,CAACJ,MAAD,EAAS;AACfpD,MAAAA,MAAM,CAAC8G,KAAP,CAAa,MAAM;AACjB,YAAI,KA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3BwD,EAAAA,OAAO,CAACgB,GAAR,GAAcA,GAAd;AACAhB,EAAAA,OAAO,CAACmB,IAAR,GAAeA,IAAf;AACAnB,EAAAA,OAAO,CAACvB,OAAR,GAAkBjC,UAAlB;AACAwD,EAAAA,OAAO,CAAChC,MAAR,GAAiBoD,QAAjB;AAEApB,EAAAA,OAAO,CAAC6B,SAAR,CAAkB9F,QAAlB,GAA6BsF,OAA7B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACArB,EAAAA,OAAO,CAAC6B,SAAR,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CAAU3B,OAAV,EAAmBwG,aAAnB,EAAkCtD,WAAlC,CAAP;AACD;;AAHI,KAAP;AAKD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,WAASuD,SAAT,CAAmBC,QAAnB,EAA6BhI,OAA7B,EAAsC;AACpC,QAAIiI,EAAE,GAAG,YAAW;AAClB,UAAIC,CAAC,GAAGzH,SAAS,CAACN,MAAlB;AACA,UAAIwH,IAAI,GAAG,IAAI7B,KAAJ,CAAUoC,CAAC,GAAG,CAAd,CAAX;AACA,UAAIC,YAAY,GAAG,KAAnB;;AAEA,WAAK,IAAIjI,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGgI,CAApB,EAAuB,EAAEhI,CAAzB,EAA4B;AAC1B,YAAIkI,GAAG,GAAG3H,SAAS,CAACP,CAAD,CAAnB,CAD0B,CAG1B;;AACA,YAAI,CAACiI,YAAL,EAAmB;AACjB,cAAIC,GAAG,KAAK,IAAR,IAAgB,OAAOA,GAAP,KAAe,QAAnC,EAA6C;AAC3C,gBAAIA,GAAG,CAAC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DgH,IAAAA,UAAU,CAACX,KAAD,EAAQ;AAChB,UAAI+D,IAAI,GAAGC,MAAM,CAACD,IAAP,CAAY/D,KAAZ,CAAX;AAEA,UAAIjF,MAAM,GAAGgJ,IAAI,CAAChJ,MAAlB;AACA,UAAImB,OAAO,GAAG,KAAKA,OAAnB;AACA,WAAKuE,UAAL,GAAkB1F,MAAlB;AAEA,UAAIa,GAAJ,EAASuH,GAAT;;AACA,WAAK,IAAIrI,CAAC,GAAG,CAAb,EAAgBoB,OAAO,CAACqC,MAAR,KAAmBjB,OAAnB,IAA8BxC,CAAC,GAAGC,MAAlD,EAA0DD,CAAC,EAA3D,EAA+D;AAC7Dc,QAAAA,GAAG,GAAGmI,IAAI,CAACjJ,CAAD,CAAV;AACAqI,QAAAA,GAAG,GAAGnD,KAAK,CAACpE,GAAD,CAAX;;AACA,aAAKgF,UAAL,CAAgBuC,GAAhB,EAAqBvH,GAArB,EAA0B,IAA1B;AACD;;AAED,WAAKiF,kBAAL;AACD;;AAzBkC;AA4BrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,WAASoD,IAAT,CAActK,MAAd,EAAsBkB,KAAtB,EAA6B;AAC3B,WAAOwF,OAAO,CAACvB,OAAR,CAAgBnF,MAAhB,EAAwBkB,KAAxB,EACJgE,IADI,CACC,UAASlF,MAAT,EAAiB;AACrB,UAAIA,MAAM,KAAK,IAAX,IAAmB,OAAOA,MAAP,KAAkB,QAAzC,EAAmD;AACjD,cAAM,IAAIW,SAAJ,CAAc,4CAAd,CAAN;AACD;;AACD,aAAO,IAAIwJ,WAAJ,CAAgBzD,OAAhB,EAAyB1G,MAAzB,EAAiCkB,KAAjC,EAAwCqB,OAA/C;AACD,KANI,CAAP;AAOD;;AAED,QAAMgI,WAAN,SAA0BJ,WAA1B,CAAsC;AACpC/G,IAAAA,WAAW,CAACD,WAAD,EAAcnD,MAAd,EAAsBkB,KAAtB,EAA6B;AACtC,YAAMiC,WAAN,EAAmBnD,MAAnB,EAA2B,KAA3B,EAAkCkB,KAAlC;AACD;;AAHmC;;AAMtCqJ,EAAAA,WAAW,CAAChC,SAAZ,CAAsBf,YAAtB,GAAqCC,gBAArC;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAS+C,WAAT,CAAqBxK,MAArB,EAA6BkB,KAA7B,EAAoC;AAClC,WAAOwF,OAAO,CAACvB,OAAR,CAAgBnF,MAAhB,EAAwBkB,KAAxB,EACJgE,IADI,CACC,UAASlF,MAAT,EAAiB;AACrB,UAAIA,MAAM,KAAK,IAAX,IAAmB,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AS,CAACuO,cAAV,CAAyB/N,SAAzB,CAAJ,EAAyC;AACvCJ,QAAAA,EAAE,CAACI,SAAD,EAAYR,SAAS,CAACQ,SAAD,CAArB,CAAF;AACD;AACF;AACF,G,CAED;AACA;;;AACA,MAAIgO,IAAI,GAAG;AACThD,IAAAA,IADS;AAETnD,IAAAA,IAFS;AAGT5B,IAAAA,OAHS;AAITvG,IAAAA,WAJS;AAKTuH,IAAAA,GAAG,EAAEoC,KALI;AAMTG,IAAAA,UANS;AAOTpC,IAAAA,IAAI,EAAEqC,MAPG;AAQTI,IAAAA,IARS;AASTE,IAAAA,WATS;AAUTC,IAAAA,OAVS;AAWTC,IAAAA,KAXS;AAYT1B,IAAAA,SAZS;AAaTzH,IAAAA,SAbS;AAcTlB,IAAAA,EAdS;AAeTC,IAAAA,GAfS;AAgBT6E,IAAAA,OAAO,EAAE+F,SAhBA;AAiBTxG,IAAAA,MAAM,EAAEyG,QAjBC;AAkBTH,IAAAA,GAlBS;AAmBT1G,IAAAA,KAnBS;AAoBTgH,IAAAA;AApBS,GAAX;iBAuBemD,I;;;;;;;ACl5Ef;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;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;;ACtFA;ACAA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9RA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;ACpKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjkFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/kBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpqJA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvSA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;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;;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;;ACvCA;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;;ACxCA;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;;AC/KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACt3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9aA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC97CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxoBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC9IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC9IA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;;AC3CA;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;;AChPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpQA;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;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;;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;;AC3FA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACzBA;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;;ACtRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnHA;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;;AClBA;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;;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;;AC/KA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACfA;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;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5WA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;;ACHA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9kBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChyCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClpGA;AACA;AACA;AACA;AACA;AACA;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;;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;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/kEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC12CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChtBA;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;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrpUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACjIA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChBA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;ACzFA;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;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnIA;AACA;AACA;AACA;;ACHA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACr1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3XA;AACA;;ACDA;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;;ACrCA;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;;ACvBA;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;;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;;AC5DA;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;;ACzQA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvoBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;AACA;AACA;AACA;AACA;AACA;;ACrBA;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;;ACdA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzZA;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;;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;;ACtWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5WA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3OA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzLA;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;;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;;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;;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;;ACtMA;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;;ACxBA;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;;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;;ACzDA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpFA;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;;AC9BA;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;;ACzCA;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;;AC5DA;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;;ACjBA;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;;AC1BA;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;;ACzBA;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;;ACjBA;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;;AChBA;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;;ACzLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACzBA;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;;ACjCA;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;;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;;ACzBA;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;;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;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;AACA;;ACnUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC5DA;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;;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;;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;;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;;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;;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;;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;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACnBA;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;;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;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/eA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjXA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACxJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/aA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzSA;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;;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;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9NA;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;;ACfA;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;;ACzLA;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;;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;;AC1QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACnHA;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;AACA;AACA;AACA;AACA;;ACxDA;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;;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACrDA;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;;AC/sBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;ACtEA;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;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACZA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1OA;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;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC7CA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxgBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC7TA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;;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;;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;;ACxIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;;ACzJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1HA;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;;ACrBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AC1BA;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;;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;;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;;ACxCA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACzBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;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;;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;;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;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;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;;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;;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;;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;;AClBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7JA;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;;AC/BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjSA;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;AACA;;ACvDA;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;;ACrCA;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;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;;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;;AChBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACz7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;AC9MA;AACA;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;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;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1jCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACnBA;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;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChYA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACnEA;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;;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;;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;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;;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;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;;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;;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;;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;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;;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;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;;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;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;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;;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;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;;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;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;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;;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;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;;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;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;;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;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;;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;;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;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;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;;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;;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;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;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;;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;;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;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;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;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;;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;;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;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;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;;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;;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;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;;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;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;;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;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;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;;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;;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;;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;;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;;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;;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;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;;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;;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;;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;;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;;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;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;;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;;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;;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;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;;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;;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;;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;;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;;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;;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;;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;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;;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;;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;;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;;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;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;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;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;;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;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;;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;;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;;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;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;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;;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;;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;;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;;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;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;;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;;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;;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;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;;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;;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;;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;;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;;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;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;;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;;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;;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;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;;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;;ACfA;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;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;;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;;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;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;;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;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;;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;;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;;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;;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;;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;;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;;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;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;;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;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;;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;;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;;ACdA;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;;ACvHA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpmBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;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;;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;;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;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;;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;;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;;ACfA;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;;ACrBA;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;;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;;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;;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;;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;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;;ACNA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC9LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1XA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/aA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1dA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACpCA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/sBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACvDA;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;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3IA;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1JA;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClFA;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;;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;;ACnIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/EA;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;AACA;AACA;AACA;AACA;AACA;;AC3DA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACjBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACrDA;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;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;AC9BA;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;;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;;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;;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;;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;;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;;ACxDA;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;;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;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC7BA;","file":"vendor.js"}