{"version":3,"sources":["vendor/ember-cli/vendor-prefix.js","vendor/loader/loader.js","vendor/ember/ember.js","vendor/ember-cli-deprecation-workflow/main.js","vendor/classic-decorator/index.js","addon-tree-output/@ember-data/adapter/-private.js","addon-tree-output/@ember-data/adapter/build-url-mixin-18db8c8b.js","addon-tree-output/@ember-data/adapter/error.js","addon-tree-output/@ember-data/adapter/index-f54121ea.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/adapter/serialize-into-hash-b9092b25.js","addon-tree-output/@ember-data/debug/index.js","addon-tree-output/@ember-data/debug/setup.js","addon-tree-output/@ember-data/graph/-private.js","addon-tree-output/@ember-data/json-api/index.js","addon-tree-output/@ember-data/legacy-compat/-private.js","addon-tree-output/@ember-data/legacy-compat/builders.js","addon-tree-output/@ember-data/legacy-compat/fetch-manager-025964e9.js","addon-tree-output/@ember-data/legacy-compat/index.js","addon-tree-output/@ember-data/model/-private.js","addon-tree-output/@ember-data/model/has-many-d45aa09e.js","addon-tree-output/@ember-data/model/index.js","addon-tree-output/@ember-data/request/context-e36ee987.js","addon-tree-output/@ember-data/request/fetch.js","addon-tree-output/@ember-data/request/index.js","addon-tree-output/@ember-data/serializer/-private.js","addon-tree-output/@ember-data/serializer/embedded-records-mixin-d75385ff.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/-private.js","addon-tree-output/@ember-data/store/index-cc461d33.js","addon-tree-output/@ember-data/store/index.js","addon-tree-output/@ember-data/tracking/-private.js","addon-tree-output/@ember-data/tracking/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/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/es-compat2.js","addon-tree-output/@embroider/macros/runtime.js","addon-tree-output/@embroider/util/ember-private-api.js","addon-tree-output/@embroider/util/index.js","addon-tree-output/@embroider/util/services/ensure-registered.js","addon-tree-output/@glimmer/component/-private/base-component-manager.js","addon-tree-output/@glimmer/component/-private/component.js","addon-tree-output/@glimmer/component/-private/destroyables.js","addon-tree-output/@glimmer/component/-private/ember-component-manager.js","addon-tree-output/@glimmer/component/-private/owner.js","addon-tree-output/@glimmer/component/index.js","addon-tree-output/@hashicorp/ember-cli-api-double/index.js","addon-tree-output/@html-next/vertical-collection/-private.js","addon-tree-output/@html-next/vertical-collection/components/vertical-collection/component.js","addon-tree-output/@html-next/vertical-collection/components/vertical-collection/template.js","addon-tree-output/ember-array-fns/helpers/array-concat.js","addon-tree-output/ember-array-fns/helpers/array-every.js","addon-tree-output/ember-array-fns/helpers/array-filter.js","addon-tree-output/ember-array-fns/helpers/array-find-index.js","addon-tree-output/ember-array-fns/helpers/array-find.js","addon-tree-output/ember-array-fns/helpers/array-includes.js","addon-tree-output/ember-array-fns/helpers/array-index-of.js","addon-tree-output/ember-array-fns/helpers/array-is-array.js","addon-tree-output/ember-array-fns/helpers/array-is-first-element.js","addon-tree-output/ember-array-fns/helpers/array-is-last-element.js","addon-tree-output/ember-array-fns/helpers/array-join.js","addon-tree-output/ember-array-fns/helpers/array-last-index-of.js","addon-tree-output/ember-array-fns/helpers/array-map.js","addon-tree-output/ember-array-fns/helpers/array-reduce.js","addon-tree-output/ember-array-fns/helpers/array-reverse.js","addon-tree-output/ember-array-fns/helpers/array-slice.js","addon-tree-output/ember-array-fns/helpers/array-some.js","addon-tree-output/ember-array-fns/helpers/array-sort.js","addon-tree-output/ember-array-fns/helpers/array-splice.js","addon-tree-output/ember-cached-decorator-polyfill/index.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-deprecation-workflow/index.js","addon-tree-output/ember-collection/components/ember-collection.js","addon-tree-output/ember-collection/components/ember-collection/template.js","addon-tree-output/ember-collection/components/ember-native-scrollable.js","addon-tree-output/ember-collection/layouts/grid.js","addon-tree-output/ember-collection/layouts/mixed-grid.js","addon-tree-output/ember-collection/layouts/percentage-columns.js","addon-tree-output/ember-collection/utils/identity.js","addon-tree-output/ember-collection/utils/needs-revalidate.js","addon-tree-output/ember-collection/utils/style-generators.js","addon-tree-output/ember-collection/utils/style-properties.js","addon-tree-output/ember-collection/utils/translate.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/append.js","addon-tree-output/ember-composable-helpers/helpers/call.js","addon-tree-output/ember-composable-helpers/helpers/chunk.js","addon-tree-output/ember-composable-helpers/helpers/compact.js","addon-tree-output/ember-composable-helpers/helpers/compute.js","addon-tree-output/ember-composable-helpers/helpers/dec.js","addon-tree-output/ember-composable-helpers/helpers/drop.js","addon-tree-output/ember-composable-helpers/helpers/entries.js","addon-tree-output/ember-composable-helpers/helpers/filter-by.js","addon-tree-output/ember-composable-helpers/helpers/filter.js","addon-tree-output/ember-composable-helpers/helpers/find-by.js","addon-tree-output/ember-composable-helpers/helpers/flatten.js","addon-tree-output/ember-composable-helpers/helpers/from-entries.js","addon-tree-output/ember-composable-helpers/helpers/group-by.js","addon-tree-output/ember-composable-helpers/helpers/has-next.js","addon-tree-output/ember-composable-helpers/helpers/has-previous.js","addon-tree-output/ember-composable-helpers/helpers/inc.js","addon-tree-output/ember-composable-helpers/helpers/includes.js","addon-tree-output/ember-composable-helpers/helpers/intersect.js","addon-tree-output/ember-composable-helpers/helpers/invoke.js","addon-tree-output/ember-composable-helpers/helpers/join.js","addon-tree-output/ember-composable-helpers/helpers/keys.js","addon-tree-output/ember-composable-helpers/helpers/map-by.js","addon-tree-output/ember-composable-helpers/helpers/map.js","addon-tree-output/ember-composable-helpers/helpers/next.js","addon-tree-output/ember-composable-helpers/helpers/noop.js","addon-tree-output/ember-composable-helpers/helpers/object-at.js","addon-tree-output/ember-composable-helpers/helpers/optional.js","addon-tree-output/ember-composable-helpers/helpers/pick.js","addon-tree-output/ember-composable-helpers/helpers/pipe-action.js","addon-tree-output/ember-composable-helpers/helpers/pipe.js","addon-tree-output/ember-composable-helpers/helpers/previous.js","addon-tree-output/ember-composable-helpers/helpers/queue.js","addon-tree-output/ember-composable-helpers/helpers/range.js","addon-tree-output/ember-composable-helpers/helpers/reduce.js","addon-tree-output/ember-composable-helpers/helpers/reject-by.js","addon-tree-output/ember-composable-helpers/helpers/repeat.js","addon-tree-output/ember-composable-helpers/helpers/reverse.js","addon-tree-output/ember-composable-helpers/helpers/shuffle.js","addon-tree-output/ember-composable-helpers/helpers/slice.js","addon-tree-output/ember-composable-helpers/helpers/sort-by.js","addon-tree-output/ember-composable-helpers/helpers/take.js","addon-tree-output/ember-composable-helpers/helpers/toggle-action.js","addon-tree-output/ember-composable-helpers/helpers/toggle.js","addon-tree-output/ember-composable-helpers/helpers/union.js","addon-tree-output/ember-composable-helpers/helpers/values.js","addon-tree-output/ember-composable-helpers/helpers/without.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-data-model-fragments/array/fragment.js","addon-tree-output/ember-data-model-fragments/array/stateful.js","addon-tree-output/ember-data-model-fragments/attributes/array.js","addon-tree-output/ember-data-model-fragments/attributes/fragment-array.js","addon-tree-output/ember-data-model-fragments/attributes/fragment-owner.js","addon-tree-output/ember-data-model-fragments/attributes/fragment.js","addon-tree-output/ember-data-model-fragments/attributes/index.js","addon-tree-output/ember-data-model-fragments/cache/fragment-cache.js","addon-tree-output/ember-data-model-fragments/cache/fragment-record-data-proxy.js","addon-tree-output/ember-data-model-fragments/cache/fragment-state-manager.js","addon-tree-output/ember-data-model-fragments/ext.js","addon-tree-output/ember-data-model-fragments/fragment.js","addon-tree-output/ember-data-model-fragments/index.js","addon-tree-output/ember-data-model-fragments/record-data.js","addon-tree-output/ember-data-model-fragments/transforms/array.js","addon-tree-output/ember-data-model-fragments/transforms/fragment-array.js","addon-tree-output/ember-data-model-fragments/transforms/fragment.js","addon-tree-output/ember-data-model-fragments/util/copy.js","addon-tree-output/ember-data-model-fragments/util/instance-of-type.js","addon-tree-output/ember-data-model-fragments/util/meta-type-for.js","addon-tree-output/ember-data-model-fragments/version.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-inflector/index.js","addon-tree-output/ember-inflector/lib/helpers/pluralize.js","addon-tree-output/ember-inflector/lib/helpers/singularize.js","addon-tree-output/ember-inflector/lib/system.js","addon-tree-output/ember-inflector/lib/system/inflections.js","addon-tree-output/ember-inflector/lib/system/inflector.js","addon-tree-output/ember-inflector/lib/system/string.js","addon-tree-output/ember-inflector/lib/utils/make-helper.js","addon-tree-output/ember-intl/-private/formatjs/format-date-range.js","addon-tree-output/ember-intl/-private/formatjs/format-date.js","addon-tree-output/ember-intl/-private/formatjs/format-list.js","addon-tree-output/ember-intl/-private/formatjs/format-message.js","addon-tree-output/ember-intl/-private/formatjs/format-number.js","addon-tree-output/ember-intl/-private/formatjs/format-relative-time.js","addon-tree-output/ember-intl/-private/formatjs/format-relative.js","addon-tree-output/ember-intl/-private/formatjs/format-time.js","addon-tree-output/ember-intl/-private/formatjs/formats.js","addon-tree-output/ember-intl/-private/formatjs/index.js","addon-tree-output/ember-intl/-private/utils/escape-format-message-options.js","addon-tree-output/ember-intl/-private/utils/get-dom.js","addon-tree-output/ember-intl/-private/utils/locale.js","addon-tree-output/ember-intl/-private/utils/service.js","addon-tree-output/ember-intl/-private/utils/translations.js","addon-tree-output/ember-intl/helpers/format-date-range.js","addon-tree-output/ember-intl/helpers/format-date.js","addon-tree-output/ember-intl/helpers/format-list.js","addon-tree-output/ember-intl/helpers/format-message.js","addon-tree-output/ember-intl/helpers/format-number.js","addon-tree-output/ember-intl/helpers/format-relative-time.js","addon-tree-output/ember-intl/helpers/format-relative.js","addon-tree-output/ember-intl/helpers/format-time.js","addon-tree-output/ember-intl/helpers/t.js","addon-tree-output/ember-intl/index.js","addon-tree-output/ember-intl/services/intl.js","addon-tree-output/ember-intl/template-registry.js","addon-tree-output/ember-intl/translations.js","addon-tree-output/ember-load-initializers/index.js","addon-tree-output/ember-on-helper/helpers/on-document.js","addon-tree-output/ember-on-helper/helpers/on-window.js","addon-tree-output/ember-on-helper/helpers/on.js","addon-tree-output/ember-on-helper/utils/event-listener.js","addon-tree-output/ember-on-resize-modifier/modifiers/on-resize.js","addon-tree-output/ember-raf-scheduler/index.js","addon-tree-output/ember-ref-bucket/helpers/ref-to.js","addon-tree-output/ember-ref-bucket/index.js","addon-tree-output/ember-ref-bucket/instance-initializers/global-ref-cleanup.js","addon-tree-output/ember-ref-bucket/modifiers/create-ref.js","addon-tree-output/ember-ref-bucket/utils/prototype-reference.js","addon-tree-output/ember-ref-bucket/utils/ref.js","addon-tree-output/ember-resize-observer-service/services/resize-observer.js","addon-tree-output/ember-resize-observer-service/utils/ignore-ro-error.js","addon-tree-output/ember-resolver/container-debug-adapter.js","addon-tree-output/ember-resolver/features.js","addon-tree-output/ember-resolver/index.js","addon-tree-output/ember-resolver/string/cache.js","addon-tree-output/ember-resolver/string/index.js","addon-tree-output/ember-resolver/utils/class-factory.js","addon-tree-output/ember-string-fns/helpers/string-char-at.js","addon-tree-output/ember-string-fns/helpers/string-char-code-at.js","addon-tree-output/ember-string-fns/helpers/string-code-point-at.js","addon-tree-output/ember-string-fns/helpers/string-concat.js","addon-tree-output/ember-string-fns/helpers/string-ends-with.js","addon-tree-output/ember-string-fns/helpers/string-equals.js","addon-tree-output/ember-string-fns/helpers/string-from-char-code.js","addon-tree-output/ember-string-fns/helpers/string-from-code-point.js","addon-tree-output/ember-string-fns/helpers/string-html-safe.js","addon-tree-output/ember-string-fns/helpers/string-includes.js","addon-tree-output/ember-string-fns/helpers/string-index-of.js","addon-tree-output/ember-string-fns/helpers/string-last-index-of.js","addon-tree-output/ember-string-fns/helpers/string-not-equals.js","addon-tree-output/ember-string-fns/helpers/string-pad-end.js","addon-tree-output/ember-string-fns/helpers/string-pad-start.js","addon-tree-output/ember-string-fns/helpers/string-repeat.js","addon-tree-output/ember-string-fns/helpers/string-replace-all.js","addon-tree-output/ember-string-fns/helpers/string-replace.js","addon-tree-output/ember-string-fns/helpers/string-slice.js","addon-tree-output/ember-string-fns/helpers/string-split.js","addon-tree-output/ember-string-fns/helpers/string-starts-with.js","addon-tree-output/ember-string-fns/helpers/string-substring.js","addon-tree-output/ember-string-fns/helpers/string-to-camel-case.js","addon-tree-output/ember-string-fns/helpers/string-to-kebab-case.js","addon-tree-output/ember-string-fns/helpers/string-to-lower-case.js","addon-tree-output/ember-string-fns/helpers/string-to-pascal-case.js","addon-tree-output/ember-string-fns/helpers/string-to-sentence-case.js","addon-tree-output/ember-string-fns/helpers/string-to-snake-case.js","addon-tree-output/ember-string-fns/helpers/string-to-title-case.js","addon-tree-output/ember-string-fns/helpers/string-to-upper-case.js","addon-tree-output/ember-string-fns/helpers/string-trim-end.js","addon-tree-output/ember-string-fns/helpers/string-trim-start.js","addon-tree-output/ember-string-fns/helpers/string-trim.js","addon-tree-output/ember-test-waiters/index.js","addon-tree-output/ember-tracked-storage-polyfill/index.js","addon-tree-output/layout-bin-packer/bin.js","addon-tree-output/layout-bin-packer/entry.js","addon-tree-output/layout-bin-packer/fixed-grid.js","addon-tree-output/layout-bin-packer/shelf-first.js","addon-tree-output/output.js","addon-tree-output/torii/adapters/application.js","addon-tree-output/torii/bootstrap/routing.js","addon-tree-output/torii/bootstrap/session.js","addon-tree-output/torii/bootstrap/torii.js","addon-tree-output/torii/compat/get-router-instance.js","addon-tree-output/torii/compat/get-router-lib.js","addon-tree-output/torii/components/torii-iframe-placeholder.js","addon-tree-output/torii/configuration.js","addon-tree-output/torii/lib/assert.js","addon-tree-output/torii/lib/container-utils.js","addon-tree-output/torii/lib/load-initializer.js","addon-tree-output/torii/lib/load-instance-initializer.js","addon-tree-output/torii/lib/parse-query-string.js","addon-tree-output/torii/lib/popup-id-serializer.js","addon-tree-output/torii/lib/query-string.js","addon-tree-output/torii/lib/random-url-safe.js","addon-tree-output/torii/lib/required-property.js","addon-tree-output/torii/lib/state-machine.js","addon-tree-output/torii/lib/uuid-generator.js","addon-tree-output/torii/mixins/ui-service-mixin.js","addon-tree-output/torii/providers/-private/utils.js","addon-tree-output/torii/providers/azure-ad-oauth2.js","addon-tree-output/torii/providers/base.js","addon-tree-output/torii/providers/facebook-connect.js","addon-tree-output/torii/providers/facebook-oauth2.js","addon-tree-output/torii/providers/github-oauth2.js","addon-tree-output/torii/providers/google-oauth2-bearer-v2.js","addon-tree-output/torii/providers/google-oauth2-bearer.js","addon-tree-output/torii/providers/google-oauth2.js","addon-tree-output/torii/providers/linked-in-oauth2.js","addon-tree-output/torii/providers/oauth1.js","addon-tree-output/torii/providers/oauth2-bearer.js","addon-tree-output/torii/providers/oauth2-code.js","addon-tree-output/torii/providers/stripe-connect.js","addon-tree-output/torii/providers/twitter-oauth1.js","addon-tree-output/torii/redirect-handler.js","addon-tree-output/torii/router-dsl-ext.js","addon-tree-output/torii/routing/application-route-mixin.js","addon-tree-output/torii/routing/authenticated-route-mixin.js","addon-tree-output/torii/services/iframe.js","addon-tree-output/torii/services/popup.js","addon-tree-output/torii/services/torii-session.js","addon-tree-output/torii/services/torii.js","addon-tree-output/torii/session/state-machine.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/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},\"LOG_STACKTRACE_ON_DEPRECATION\":false,\"LOG_DEPRECATIONS\":false,\"_APPLICATION_TEMPLATE_WRAPPER\":false,\"_DEFAULT_ASYNC_OBSERVERS\":true,\"_JQUERY_INTEGRATION\":false,\"_TEMPLATE_ONLY_GLIMMER_COMPONENTS\":true});\n\n// used to determine if the application should be booted immediately when `app-name.js` is evaluated\n// when `runningTests` the `app-name.js` file will **not** import the applications `app/app.js` and\n// call `Application.create(...)` on it. Additionally, applications can opt-out of this behavior by\n// setting `autoRun` to `false` in their `ember-cli-build.js`\n//\n// The default `test-support.js` file will set this to `true` when it runs (so that Application.create()\n// is not ran when running tests).\nvar runningTests = false;\n\n\n","var loader, define, requireModule, require, requirejs;\n\n(function (global) {\n  'use strict';\n\n  function dict() {\n    var obj = Object.create(null);\n    obj['__'] = undefined;\n    delete obj['__'];\n    return obj;\n  }\n\n  // Save off the original values of these globals, so we can restore them if someone asks us to\n  var oldGlobals = {\n    loader: loader,\n    define: define,\n    requireModule: requireModule,\n    require: require,\n    requirejs: requirejs\n  };\n\n  requirejs = require = requireModule = function (id) {\n    var pending = [];\n    var mod = findModule(id, '(require)', pending);\n\n    for (var i = pending.length - 1; i >= 0; i--) {\n      pending[i].exports();\n    }\n\n    return mod.module.exports;\n  };\n\n  loader = {\n    noConflict: function (aliases) {\n      var oldName, newName;\n\n      for (oldName in aliases) {\n        if (aliases.hasOwnProperty(oldName)) {\n          if (oldGlobals.hasOwnProperty(oldName)) {\n            newName = aliases[oldName];\n\n            global[newName] = global[oldName];\n            global[oldName] = oldGlobals[oldName];\n          }\n        }\n      }\n    },\n    // Option to enable or disable the generation of default exports\n    makeDefaultExport: true\n  };\n\n  var registry = dict();\n  var seen = dict();\n\n  var uuid = 0;\n\n  function unsupportedModule(length) {\n    throw new Error('an unsupported module was defined, expected `define(id, deps, module)` instead got: `' + length + '` arguments to define`');\n  }\n\n  var defaultDeps = ['require', 'exports', 'module'];\n\n  function Module(id, deps, callback, alias) {\n    this.uuid = uuid++;\n    this.id = id;\n    this.deps = !deps.length && callback.length ? defaultDeps : deps;\n    this.module = { exports: {} };\n    this.callback = callback;\n    this.hasExportsAsDep = false;\n    this.isAlias = alias;\n    this.reified = new Array(deps.length);\n\n    /*\n       Each module normally passes through these states, in order:\n         new       : initial state\n         pending   : this module is scheduled to be executed\n         reifying  : this module's dependencies are being executed\n         reified   : this module's dependencies finished executing successfully\n         errored   : this module's dependencies failed to execute\n         finalized : this module executed successfully\n     */\n    this.state = 'new';\n  }\n\n  Module.prototype.makeDefaultExport = function () {\n    var exports = this.module.exports;\n    if (exports !== null && (typeof exports === 'object' || typeof exports === 'function') && exports['default'] === undefined && Object.isExtensible(exports)) {\n      exports['default'] = exports;\n    }\n  };\n\n  Module.prototype.exports = function () {\n    // if finalized, there is no work to do. If reifying, there is a\n    // circular dependency so we must return our (partial) exports.\n    if (this.state === 'finalized' || this.state === 'reifying') {\n      return this.module.exports;\n    }\n\n\n    if (loader.wrapModules) {\n      this.callback = loader.wrapModules(this.id, this.callback);\n    }\n\n    this.reify();\n\n    var result = this.callback.apply(this, this.reified);\n    this.reified.length = 0;\n    this.state = 'finalized';\n\n    if (!(this.hasExportsAsDep && result === undefined)) {\n      this.module.exports = result;\n    }\n    if (loader.makeDefaultExport) {\n      this.makeDefaultExport();\n    }\n    return this.module.exports;\n  };\n\n  Module.prototype.unsee = function () {\n    this.state = 'new';\n    this.module = { exports: {} };\n  };\n\n  Module.prototype.reify = function () {\n    if (this.state === 'reified') {\n      return;\n    }\n    this.state = 'reifying';\n    try {\n      this.reified = this._reify();\n      this.state = 'reified';\n    } finally {\n      if (this.state === 'reifying') {\n        this.state = 'errored';\n      }\n    }\n  };\n\n  Module.prototype._reify = function () {\n    var reified = this.reified.slice();\n    for (var i = 0; i < reified.length; i++) {\n      var mod = reified[i];\n      reified[i] = mod.exports ? mod.exports : mod.module.exports();\n    }\n    return reified;\n  };\n\n  Module.prototype.findDeps = function (pending) {\n    if (this.state !== 'new') {\n      return;\n    }\n\n    this.state = 'pending';\n\n    var deps = this.deps;\n\n    for (var i = 0; i < deps.length; i++) {\n      var dep = deps[i];\n      var entry = this.reified[i] = { exports: undefined, module: undefined };\n      if (dep === 'exports') {\n        this.hasExportsAsDep = true;\n        entry.exports = this.module.exports;\n      } else if (dep === 'require') {\n        entry.exports = this.makeRequire();\n      } else if (dep === 'module') {\n        entry.exports = this.module;\n      } else {\n        entry.module = findModule(resolve(dep, this.id), this.id, pending);\n      }\n    }\n  };\n\n  Module.prototype.makeRequire = function () {\n    var id = this.id;\n    var r = function (dep) {\n      return require(resolve(dep, id));\n    };\n    r['default'] = r;\n    r.moduleId = id;\n    r.has = function (dep) {\n      return has(resolve(dep, id));\n    };\n    return r;\n  };\n\n  define = function (id, deps, callback) {\n    var module = registry[id];\n\n    // If a module for this id has already been defined and is in any state\n    // other than `new` (meaning it has been or is currently being required),\n    // then we return early to avoid redefinition.\n    if (module && module.state !== 'new') {\n      return;\n    }\n\n    if (arguments.length < 2) {\n      unsupportedModule(arguments.length);\n    }\n\n    if (!Array.isArray(deps)) {\n      callback = deps;\n      deps = [];\n    }\n\n    if (callback instanceof Alias) {\n      registry[id] = new Module(callback.id, deps, callback, true);\n    } else {\n      registry[id] = new Module(id, deps, callback, false);\n    }\n  };\n\n  define.exports = function (name, defaultExport) {\n    var module = registry[name];\n\n    // If a module for this name has already been defined and is in any state\n    // other than `new` (meaning it has been or is currently being required),\n    // then we return early to avoid redefinition.\n    if (module && module.state !== 'new') {\n      return;\n    }\n\n    module = new Module(name, [], noop, null);\n    module.module.exports = defaultExport;\n    module.state = 'finalized';\n    registry[name] = module;\n\n    return module;\n  };\n\n  function noop() {}\n  // we don't support all of AMD\n  // define.amd = {};\n\n  function Alias(id) {\n    this.id = id;\n  }\n\n  define.alias = function (id, target) {\n    if (arguments.length === 2) {\n      return define(target, new Alias(id));\n    }\n\n    return new Alias(id);\n  };\n\n  function missingModule(id, referrer) {\n    throw new Error('Could not find module `' + id + '` imported from `' + referrer + '`');\n  }\n\n  function findModule(id, referrer, pending) {\n    var mod = registry[id] || registry[id + '/index'];\n\n    while (mod && mod.isAlias) {\n      mod = registry[mod.id] || registry[mod.id + '/index'];\n    }\n\n    if (!mod) {\n      missingModule(id, referrer);\n    }\n\n    if (pending && mod.state !== 'pending' && mod.state !== 'finalized') {\n      mod.findDeps(pending);\n      pending.push(mod);\n    }\n    return mod;\n  }\n\n  function resolve(child, id) {\n    if (child.charAt(0) !== '.') {\n      return child;\n    }\n\n\n    var parts = child.split('/');\n    var nameParts = id.split('/');\n    var parentBase = nameParts.slice(0, -1);\n\n    for (var i = 0, l = parts.length; i < l; i++) {\n      var part = parts[i];\n\n      if (part === '..') {\n        if (parentBase.length === 0) {\n          throw new Error('Cannot access parent module of root');\n        }\n        parentBase.pop();\n      } else if (part === '.') {\n        continue;\n      } else {\n        parentBase.push(part);\n      }\n    }\n\n    return parentBase.join('/');\n  }\n\n  function has(id) {\n    return !!(registry[id] || registry[id + '/index']);\n  }\n\n  requirejs.entries = requirejs._eak_seen = registry;\n  requirejs.has = has;\n  requirejs.unsee = function (id) {\n    findModule(id, '(unsee)', false).unsee();\n  };\n\n  requirejs.clear = function () {\n    requirejs.entries = requirejs._eak_seen = registry = dict();\n    seen = dict();\n  };\n\n  // This code primes the JS engine for good performance by warming the\n  // JIT compiler for these functions.\n  define('foo', function () {});\n  define('foo/bar', [], function () {});\n  define('foo/asdf', ['module', 'exports', 'require'], function (module, exports, require) {\n    if (require.has('foo/bar')) {\n      require('foo/bar');\n    }\n  });\n  define('foo/baz', [], define.alias('foo'));\n  define('foo/quz', define.alias('foo'));\n  define.alias('foo', 'foo/qux');\n  define('foo/bar', ['foo', './quz', './baz', './asdf', './bar', '../foo'], function () {});\n  define('foo/main', ['foo/bar'], function () {});\n  define.exports('foo/exports', {});\n\n  require('foo/exports');\n  require('foo/main');\n  require.unsee('foo/bar');\n\n  requirejs.clear();\n\n  if (typeof exports === 'object' && typeof module === 'object' && module.exports) {\n    module.exports = { require: require, define: define };\n  }\n})(this);","function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a);}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError(\"Cannot initialize the same private elements twice on an object\");}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,\"string\");return\"symbol\"==typeof i?i:i+\"\";}function _toPrimitive(t,r){if(\"object\"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||\"default\");if(\"object\"!=typeof i)return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\");}return(\"string\"===r?String:Number)(t);}/*!\n * @overview  Ember - JavaScript Application Framework\n * @copyright Copyright 2011 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   5.12.0\n *//* eslint-disable no-var *//* globals global globalThis self *//* eslint-disable-next-line no-unused-vars */var define,require;(function(){var globalObj=typeof globalThis!=='undefined'?globalThis:typeof self!=='undefined'?self:typeof window!=='undefined'?window:typeof global!=='undefined'?global:null;if(globalObj===null){throw new Error('unable to locate global object');}if(typeof globalObj.define==='function'&&typeof globalObj.require==='function'){define=globalObj.define;require=globalObj.require;return;}var registry=Object.create(null);var seen=Object.create(null);function missingModule(name,referrerName){if(referrerName){throw new Error('Could not find module '+name+' required by: '+referrerName);}else{throw new Error('Could not find module '+name);}}function internalRequire(_name,referrerName){var name=_name;var mod=registry[name];if(!mod){name=name+'/index';mod=registry[name];}var exports=seen[name];if(exports!==undefined){return exports;}exports=seen[name]={};if(!mod){missingModule(_name,referrerName);}var deps=mod.deps;var callback=mod.callback;var reified=new Array(deps.length);for(var i=0;i<deps.length;i++){if(deps[i]==='exports'){reified[i]=exports;}else if(deps[i]==='require'){reified[i]=require;}else{reified[i]=require(deps[i],name);}}var result=callback.apply(this,reified);if(!deps.includes('exports')||result!==undefined){exports=seen[name]=result;}return exports;}require=function(name){return internalRequire(name,null);};define=function(name,deps,callback){registry[name]={deps:deps,callback:callback};};// setup `require` module\nrequire['default']=require;require.has=function registryHas(moduleName){return Boolean(registry[moduleName])||Boolean(registry[moduleName+'/index']);};require._eak_seen=require.entries=registry;})();(function(_ENV$_OVERRIDE_DEPREC,_LocalValue,_AbstractInput,_Input2,_CoreView,_LinkTo2,_Textarea2,_Route,_RouterService){'use strict';function d(name,mod){Object.defineProperty(mod,'__esModule',{value:true});define(name,[],()=>mod);}// check if window exists and actually is the global\nconst 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';const window$1=hasDOM?self:null;const location$1=hasDOM?self.location:null;const history$1=hasDOM?self.history:null;const userAgent=hasDOM?self.navigator.userAgent:'Lynx (textmode)';const isChrome=hasDOM?typeof chrome==='object'&&!(typeof opera==='object'):false;const isFirefox=hasDOM?/Firefox|FxiOS/.test(userAgent):false;const emberinternalsBrowserEnvironmentIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,hasDOM,history:history$1,isChrome,isFirefox,location:location$1,userAgent,window:window$1},Symbol.toStringTag,{value:'Module'});/**\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          */function intern$1(str){let obj=Object.create(null);obj[str]=1;for(let key in obj){if(key===str){return key;}}return str;}/**\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          */function isObject$1(value){return value!==null&&(typeof value==='object'||typeof value==='function');}/**\n           @module @ember/object\n          *//**\n           @private\n           @return {Number} the uuid\n           */let _uuid$1=0;/**\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           */function uuid$1(){return++_uuid$1;}/**\n           Prefix used for guids through out Ember.\n           @private\n           @property GUID_PREFIX\n           @for Ember\n           @type String\n           @final\n           */const GUID_PREFIX='ember';// Used for guid generation...\nconst OBJECT_GUIDS=new WeakMap();const NON_OBJECT_GUIDS=new Map();/**\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          */const GUID_KEY=intern$1(`__ember${Date.now()}`);/**\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          */function generateGuid(obj){let prefix=arguments.length>1&&arguments[1]!==undefined?arguments[1]:GUID_PREFIX;let guid=prefix+uuid$1().toString();if(isObject$1(obj)){OBJECT_GUIDS.set(obj,guid);}return guid;}/**\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          */function guidFor(value){let guid;if(isObject$1(value)){guid=OBJECT_GUIDS.get(value);if(guid===undefined){guid=`${GUID_PREFIX}${uuid$1()}`;OBJECT_GUIDS.set(value,guid);}}else{guid=NON_OBJECT_GUIDS.get(value);if(guid===undefined){let type=typeof value;if(type==='string'){guid=`st${uuid$1()}`;}else if(type==='number'){guid=`nu${uuid$1()}`;}else if(type==='symbol'){guid=`sy${uuid$1()}`;}else{guid=`(${value})`;}NON_OBJECT_GUIDS.set(value,guid);}}return guid;}const GENERATED_SYMBOLS=[];function isInternalSymbol(possibleSymbol){return GENERATED_SYMBOLS.indexOf(possibleSymbol)!==-1;}// 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.\nfunction enumerableSymbol(debugName){// 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.\nlet id=GUID_KEY+Math.floor(Math.random()*Date.now()).toString();let symbol=intern$1(`__${debugName}${id}__`);{GENERATED_SYMBOLS.push(symbol);}return symbol;}const symbol=Symbol;// 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){let dict=Object.create(parent);dict['_dict']=null;delete dict['_dict'];return dict;}let getDebugName;{let getFunctionName=fn=>{let functionName=fn.name;if(functionName===undefined){let match=Function.prototype.toString.call(fn).match(/function (\\w+)\\s*\\(/);functionName=match&&match[1]||'';}return functionName.replace(/^bound /,'');};let getObjectName=obj=>{let name;let className;if(obj.constructor&&obj.constructor!==Object){className=getFunctionName(obj.constructor);}if('toString'in obj&&obj.toString!==Object.prototype.toString&&obj.toString!==Function.prototype.toString){name=obj.toString();}// 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.\nif(name&&name.match(/<.*:ember\\d+>/)&&className&&className[0]!=='_'&&className.length>2&&className!=='Class'){return name.replace(/<.*:/,`<${className}:`);}return name||className;};let getPrimitiveName=value=>{return String(value);};getDebugName=value=>{if(typeof value==='function'){return getFunctionName(value)||`(unknown function)`;}else if(typeof value==='object'&&value!==null){return getObjectName(value)||`(unknown object)`;}else{return getPrimitiveName(value);}};}const getDebugName$1=getDebugName;const HAS_SUPER_PATTERN=/\\.(_super|call\\(this|apply\\(this)/;const fnToString=Function.prototype.toString;const checkHasSuper=(()=>{let sourceAvailable=fnToString.call(function(){return this;}).indexOf('return this')>-1;if(sourceAvailable){return function checkHasSuper(func){return HAS_SUPER_PATTERN.test(fnToString.call(func));};}return function checkHasSuper(){return true;};})();const HAS_SUPER_MAP=new WeakMap();const ROOT=Object.freeze(function(){});HAS_SUPER_MAP.set(ROOT,false);function hasSuper(func){let hasSuper=HAS_SUPER_MAP.get(func);if(hasSuper===undefined){hasSuper=checkHasSuper(func);HAS_SUPER_MAP.set(func,hasSuper);}return hasSuper;}class ObserverListenerMeta{constructor(){_defineProperty(this,\"listeners\",undefined);_defineProperty(this,\"observers\",undefined);}}const OBSERVERS_LISTENERS_MAP=new WeakMap();function createObserverListenerMetaFor(fn){let meta=OBSERVERS_LISTENERS_MAP.get(fn);if(meta===undefined){meta=new ObserverListenerMeta();OBSERVERS_LISTENERS_MAP.set(fn,meta);}return meta;}function observerListenerMetaFor(fn){return OBSERVERS_LISTENERS_MAP.get(fn);}function setObservers(func,observers){let meta=createObserverListenerMetaFor(func);meta.observers=observers;}function setListeners(func,listeners){let meta=createObserverListenerMetaFor(func);meta.listeners=listeners;}const IS_WRAPPED_FUNCTION_SET=new WeakSet();/**\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          */function wrap$1(func,superFunc){if(!hasSuper(func)){return func;}// ensure an unwrapped super that calls _super is wrapped with a terminal _super\nif(!IS_WRAPPED_FUNCTION_SET.has(superFunc)&&hasSuper(superFunc)){return _wrap(func,_wrap(superFunc,ROOT));}return _wrap(func,superFunc);}function _wrap(func,superFunc){function superWrapper(){let orig=this._super;this._super=superFunc;let ret=func.apply(this,arguments);this._super=orig;return ret;}IS_WRAPPED_FUNCTION_SET.add(superWrapper);let meta=OBSERVERS_LISTENERS_MAP.get(func);if(meta!==undefined){OBSERVERS_LISTENERS_MAP.set(superWrapper,meta);}return superWrapper;}function lookupDescriptor(obj,keyName){let current=obj;do{let descriptor=Object.getOwnPropertyDescriptor(current,keyName);if(descriptor!==undefined){return descriptor;}current=Object.getPrototypeOf(current);}while(current!==null);return null;}/**\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          */function canInvoke(obj,methodName){return obj!=null&&typeof obj[methodName]==='function';}/**\n            @module @ember/utils\n          */const NAMES=new WeakMap();function setName(obj,name){if(isObject$1(obj))NAMES.set(obj,name);}function getName(obj){return NAMES.get(obj);}const objectToString$1=Object.prototype.toString;function isNone$1(obj){return obj===null||obj===undefined;}/*\n           A `toString` util function that supports objects without a `toString`\n           method, e.g. an object created with `Object.create(null)`.\n          */function toString$1(obj){if(typeof obj==='string'){return obj;}if(null===obj)return'null';if(undefined===obj)return'undefined';if(Array.isArray(obj)){// Reimplement Array.prototype.join according to spec (22.1.3.13)\n// Changing ToString(element) with this safe version of ToString.\nlet r='';for(let k=0;k<obj.length;k++){if(k>0){r+=',';}if(!isNone$1(obj[k])){r+=toString$1(obj[k]);}}return r;}if(typeof obj.toString==='function'){return obj.toString();}return objectToString$1.call(obj);}const PROXIES=new WeakSet();function isProxy(value){if(isObject$1(value)){return PROXIES.has(value);}return false;}function setProxy(object){if(isObject$1(object)){PROXIES.add(object);}}class Cache{constructor(limit,func){let store=arguments.length>2&&arguments[2]!==undefined?arguments[2]:new Map();_defineProperty(this,\"size\",0);_defineProperty(this,\"misses\",0);_defineProperty(this,\"hits\",0);this.limit=limit;this.func=func;this.store=store;}get(key){if(this.store.has(key)){this.hits++;// SAFETY: we know the value is present because `.has(key)` was `true`.\nreturn this.store.get(key);}else{this.misses++;return this.set(key,this.func(key));}}set(key,value){if(this.limit>this.size){this.size++;this.store.set(key,value);}return value;}purge(){this.store.clear();this.size=0;this.hits=0;this.misses=0;}}/* globals window, self */// from lodash to catch fake globals\nfunction checkGlobal(value){return value&&value.Object===Object?value:undefined;}// element ids can ruin global miss checks\nfunction checkElementIdShadowing(value){return value&&value.nodeType===undefined?value:undefined;}// export real global\nconst 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// legacy imports/exports/lookup stuff (should we keep this??)\nconst context$1=function(global,Ember){return Ember===undefined?{imports:global,exports:global,lookup:global}:{// import jQuery\nimports:Ember.imports||global,// export Ember\nexports:Ember.exports||global,// search for Namespaces\nlookup:Ember.lookup||global};}(global$1,global$1.Ember);function getLookup(){return context$1.lookup;}function setLookup(value){context$1.lookup=value;}/**\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          */const ENV={ENABLE_OPTIONAL_FEATURES:false,/**\n              Determines whether Ember should add to `Array`\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            */EXTEND_PROTOTYPES:{Array:true},/**\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            */LOG_STACKTRACE_ON_DEPRECATION:true,/**\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            */LOG_VERSION:true,RAISE_ON_DEPRECATION:false,STRUCTURED_PROFILE:false,/**\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            */_DEBUG_RENDER_TREE:true/* DEBUG */,/**\n             Whether to force all deprecations to be enabled. This is used internally by\n             Ember to enable deprecations in tests. It is not intended to be set in\n             projects.\n              @property _ALL_DEPRECATIONS_ENABLED\n             @for EmberENV\n             @type Boolean\n             @default false\n             @private\n             */_ALL_DEPRECATIONS_ENABLED:false,/**\n             Override the version of ember-source used to determine when deprecations \"break\".\n             This is used internally by Ember to test with deprecated features \"removed\".\n             This is never intended to be set by projects.\n             @property _OVERRIDE_DEPRECATION_VERSION\n             @for EmberENV\n             @type string | null\n             @default null\n             @private\n             */_OVERRIDE_DEPRECATION_VERSION:null,/**\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            */_DEFAULT_ASYNC_OBSERVERS:false,/**\n             Whether the app still has default record-loading behavior in the model\n             hook from RFC https://rfcs.emberjs.com/id/0774-implicit-record-route-loading\n             This will also remove the default store property from the route.\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 _NO_IMPLICIT_ROUTE_MODEL\n             @for EmberENV\n             @type Boolean\n             @default false\n             @private\n             */_NO_IMPLICIT_ROUTE_MODEL:false,/**\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             */_RERENDER_LOOP_LIMIT:1000,EMBER_LOAD_HOOKS:{},FEATURES:{}};(EmberENV=>{if(typeof EmberENV!=='object'||EmberENV===null)return;for(let flag in EmberENV){if(!Object.prototype.hasOwnProperty.call(EmberENV,flag)||flag==='EXTEND_PROTOTYPES'||flag==='EMBER_LOAD_HOOKS')continue;let defaultValue=ENV[flag];if(defaultValue===true){ENV[flag]=EmberENV[flag]!==false;}else if(defaultValue===false){ENV[flag]=EmberENV[flag]===true;}else{ENV[flag]=EmberENV[flag];}}let{EXTEND_PROTOTYPES}=EmberENV;if(EXTEND_PROTOTYPES!==undefined){if(typeof EXTEND_PROTOTYPES==='object'&&EXTEND_PROTOTYPES!==null){ENV.EXTEND_PROTOTYPES.Array=EXTEND_PROTOTYPES.Array!==false;}else{ENV.EXTEND_PROTOTYPES.Array=EXTEND_PROTOTYPES!==false;}}// TODO this does not seem to be used by anything,\n//      can we remove it? do we need to deprecate it?\nlet{EMBER_LOAD_HOOKS}=EmberENV;if(typeof EMBER_LOAD_HOOKS==='object'&&EMBER_LOAD_HOOKS!==null){for(let hookName in EMBER_LOAD_HOOKS){if(!Object.prototype.hasOwnProperty.call(EMBER_LOAD_HOOKS,hookName))continue;let hooks=EMBER_LOAD_HOOKS[hookName];if(Array.isArray(hooks)){ENV.EMBER_LOAD_HOOKS[hookName]=hooks.filter(hook=>typeof hook==='function');}}}let{FEATURES}=EmberENV;if(typeof FEATURES==='object'&&FEATURES!==null){for(let feature in FEATURES){if(!Object.prototype.hasOwnProperty.call(FEATURES,feature))continue;ENV.FEATURES[feature]=FEATURES[feature]===true;}}{ENV._DEBUG_RENDER_TREE=true;}})(global$1.EmberENV);function getENV(){return ENV;}const emberinternalsEnvironmentIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,ENV,context:context$1,getENV,getLookup,global:global$1,setLookup},Symbol.toStringTag,{value:'Module'});let assert$1=()=>{};function setAssert(implementation){assert$1=implementation;return implementation;}{/**\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             */// eslint-disable-next-line no-inner-declarations\nfunction assert(desc,test){if(!test){throw new Error(`Assertion Failed: ${desc}`);}}setAssert(assert);}let HANDLERS={};let registerHandler$2=function registerHandler(_type,_callback){};let invoke=()=>{};{registerHandler$2=function registerHandler(type,callback){let nextHandler=HANDLERS[type]||(()=>{});HANDLERS[type]=(message,options)=>{callback(message,options,nextHandler);};};invoke=function invoke(type,message,test,options){if(test){return;}let handlerForType=HANDLERS[type];if(handlerForType){handlerForType(message,options);}};}const emberDebugLibHandlers=/*#__PURE__*/Object.defineProperty({__proto__:null,HANDLERS,get invoke(){return invoke;},get registerHandler(){return registerHandler$2;}},Symbol.toStringTag,{value:'Module'});// This is a \"global\", but instead of declaring it as `declare global`, which\n// will expose it to all other modules, declare it *locally* (and don't export\n// it) so that it has the desired \"private global\" semantics -- however odd that\n// particular notion is.\n/**\n           @module @ember/debug\n           @public\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          */let registerHandler$1=()=>{};let missingOptionsDeprecation$1;let missingOptionsIdDeprecation$1;let missingOptionDeprecation=()=>'';let deprecate$3=()=>{};{registerHandler$1=function registerHandler(handler){registerHandler$2('deprecate',handler);};let formatMessage=function formatMessage(_message,options){let message=_message;if(options!==null&&options!==void 0&&options.id){message=message+` [deprecation id: ${options.id}]`;}if(options!==null&&options!==void 0&&options.until){message=message+` This will be removed in ${options.for} ${options.until}.`;}if(options!==null&&options!==void 0&&options.url){message+=` See ${options.url} for more details.`;}return message;};registerHandler$1(function logDeprecationToConsole(message,options){let updatedMessage=formatMessage(message,options);console.warn(`DEPRECATION: ${updatedMessage}`);// eslint-disable-line no-console\n});let captureErrorForStack;if(new Error().stack){captureErrorForStack=()=>new Error();}else{captureErrorForStack=()=>{try{__fail__.fail();return;}catch(e){return e;}};}registerHandler$1(function logDeprecationStackTrace(message,options,next){if(ENV.LOG_STACKTRACE_ON_DEPRECATION){let stackStr='';let error=captureErrorForStack();let stack;if(error instanceof Error){if(error.stack){if(error['arguments']){// Chrome\nstack=error.stack.replace(/^\\s+at\\s+/gm,'').replace(/^([^(]+?)([\\n$])/gm,'{anonymous}($1)$2').replace(/^Object.<anonymous>\\s*\\(([^)]+)\\)/gm,'{anonymous}($1)').split('\\n');stack.shift();}else{// Firefox\nstack=error.stack.replace(/(?:\\n@:0)?\\s+$/m,'').replace(/^\\(/gm,'{anonymous}(').split('\\n');}stackStr=`\\n    ${stack.slice(2).join('\\n    ')}`;}}let updatedMessage=formatMessage(message,options);console.warn(`DEPRECATION: ${updatedMessage}${stackStr}`);// eslint-disable-line no-console\n}else{next(message,options);}});registerHandler$1(function raiseOnDeprecation(message,options,next){if(ENV.RAISE_ON_DEPRECATION){let updatedMessage=formatMessage(message);throw new Error(updatedMessage);}else{next(message,options);}});missingOptionsDeprecation$1='When calling `deprecate` you '+'must provide an `options` hash as the third parameter.  '+'`options` should include `id` and `until` properties.';missingOptionsIdDeprecation$1='When calling `deprecate` you must provide `id` in options.';missingOptionDeprecation=(id,missingOption)=>{return`When calling \\`deprecate\\` you must provide \\`${missingOption}\\` in options. Missing options.${missingOption} in \"${id}\" deprecation`;};/**\n             @module @ember/debug\n             @public\n             *//**\n              Display a deprecation warning with the provided message and a stack trace\n              (Chrome and Firefox only).\n               Ember itself leverages [Semantic Versioning](https://semver.org) to aid\n              projects in keeping up with changes to the framework. Before any\n              functionality or API is removed, it first flows linearly through a\n              deprecation staging process. The staging process currently contains two\n              stages: available and enabled.\n               Deprecations are initially released into the 'available' stage.\n              Deprecations will stay in this stage until the replacement API has been\n              marked as a recommended practice via the RFC process and the addon\n              ecosystem has generally adopted the change.\n               Once a deprecation meets the above criteria, it will move into the\n              'enabled' stage where it will remain until the functionality or API is\n              eventually removed.\n               For application and addon developers, \"available\" deprecations are not\n              urgent and \"enabled\" deprecations require action.\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 { deprecate } from '@ember/debug';\n               deprecate(\n                'Use of `assign` has been deprecated. Please use `Object.assign` or the spread operator instead.',\n                false,\n                {\n                  id: 'ember-polyfills.deprecate-assign',\n                  until: '5.0.0',\n                  url: 'https://deprecations.emberjs.com/v4.x/#toc_ember-polyfills-deprecate-assign',\n                  for: 'ember-source',\n                  since: {\n                    available: '4.0.0',\n                    enabled: '4.0.0',\n                  },\n                }\n              );\n              ```\n               @method deprecate\n              @for @ember/debug\n              @param {String} message A description of the deprecation.\n              @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.\n              @param {Object} options\n              @param {String} options.id A unique id for this deprecation. The id can be\n                used by Ember debugging tools to change the behavior (raise, log or silence)\n                for that specific deprecation. The id should be namespaced by dots, e.g.\n                \"view.helper.select\".\n              @param {string} options.until The version of Ember when this deprecation\n                warning will be removed.\n              @param {String} options.for A namespace for the deprecation, usually the package name\n              @param {Object} options.since Describes when the deprecation became available and enabled.\n              @param {String} [options.url] An optional url to the transition guide on the\n                    emberjs.com website.\n              @static\n              @public\n              @since 1.0.0\n            */deprecate$3=function deprecate(message,test,options){assert$1(missingOptionsDeprecation$1,Boolean(options&&(options.id||options.until)));assert$1(missingOptionsIdDeprecation$1,Boolean(options.id));assert$1(missingOptionDeprecation(options.id,'until'),Boolean(options.until));assert$1(missingOptionDeprecation(options.id,'for'),Boolean(options.for));assert$1(missingOptionDeprecation(options.id,'since'),Boolean(options.since));invoke('deprecate',message,test,options);};}const defaultDeprecate=deprecate$3;const emberDebugLibDeprecate=/*#__PURE__*/Object.defineProperty({__proto__:null,default:defaultDeprecate,get missingOptionDeprecation(){return missingOptionDeprecation;},get missingOptionsDeprecation(){return missingOptionsDeprecation$1;},get missingOptionsIdDeprecation(){return missingOptionsIdDeprecation$1;},get registerHandler(){return registerHandler$1;}},Symbol.toStringTag,{value:'Module'});let testing=false;function isTesting(){return testing;}function setTesting(value){testing=Boolean(value);}const emberDebugLibTesting=/*#__PURE__*/Object.defineProperty({__proto__:null,isTesting,setTesting},Symbol.toStringTag,{value:'Module'});let registerHandler=()=>{};let warn$1=()=>{};let missingOptionsDeprecation;let missingOptionsIdDeprecation;/**\n          @module @ember/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            */registerHandler=function registerHandler(handler){registerHandler$2('warn',handler);};registerHandler(function logWarning(message){/* eslint-disable no-console */console.warn(`WARNING: ${message}`);/* eslint-enable no-console */});missingOptionsDeprecation='When calling `warn` you '+'must provide an `options` hash as the third parameter.  '+'`options` should include an `id` property.';missingOptionsIdDeprecation='When calling `warn` you must provide `id` in options.';/**\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|Object} test An optional boolean. If falsy, the warning\n                will be displayed. If `test` is an object, the `test` parameter can\n                be used as the `options` parameter and the warning is displayed.\n              @param {Object} options\n              @param {String} options.id 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            */warn$1=function warn(message,test,options){if(arguments.length===2&&typeof test==='object'){options=test;test=false;}assert$1(missingOptionsDeprecation,Boolean(options));assert$1(missingOptionsIdDeprecation,Boolean(options&&options.id));// SAFETY: we have explicitly assigned `false` if the user invoked the\n// arity-2 version of the overload, so we know `test` is always either\n// `undefined` or a `boolean` for type-safe callers.\ninvoke('warn',message,test,options);};}const _warn=warn$1;const emberDebugLibWarn=/*#__PURE__*/Object.defineProperty({__proto__:null,default:_warn,get missingOptionsDeprecation(){return missingOptionsDeprecation;},get missingOptionsIdDeprecation(){return missingOptionsIdDeprecation;},get registerHandler(){return registerHandler;}},Symbol.toStringTag,{value:'Module'});const{toString:objectToString}=Object.prototype;const{toString:functionToString}=Function.prototype;const{isArray:isArray$5}=Array;const{keys:objectKeys}=Object;const{stringify:stringify$1}=JSON;const LIST_LIMIT=100;const DEPTH_LIMIT=4;const SAFE_KEY=/^[\\w$]+$/;/**\n           @module @ember/debug\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          */function inspect(obj){// detect Node util.inspect call inspect(depth: number, opts: object)\nif(typeof obj==='number'&&arguments.length===2){return this;}return inspectValue(obj,0);}function inspectValue(value,depth,seen){let valueIsArray=false;switch(typeof value){case'undefined':return'undefined';case'object':if(value===null)return'null';if(isArray$5(value)){valueIsArray=true;break;}// is toString Object.prototype.toString or undefined then traverse\nif(value.toString===objectToString||value.toString===undefined){break;}// custom toString\nreturn value.toString();case'function':return value.toString===functionToString?value.name?`[Function:${value.name}]`:`[Function]`:value.toString();case'string':return stringify$1(value);case'symbol':case'boolean':case'number':default:return value.toString();}if(seen===undefined){seen=new WeakSet();}else{if(seen.has(value))return`[Circular]`;}seen.add(value);return valueIsArray?inspectArray(value,depth+1,seen):inspectObject(value,depth+1,seen);}function inspectKey(key){return SAFE_KEY.test(key)?key:stringify$1(key);}function inspectObject(obj,depth,seen){if(depth>DEPTH_LIMIT){return'[Object]';}let s='{';let keys=objectKeys(obj);for(let i=0;i<keys.length;i++){s+=i===0?' ':', ';if(i>=LIST_LIMIT){s+=`... ${keys.length-LIST_LIMIT} more keys`;break;}let key=keys[i];assert$1('has key',key);// Looping over array\ns+=`${inspectKey(String(key))}: ${inspectValue(obj[key],depth,seen)}`;}s+=' }';return s;}function inspectArray(arr,depth,seen){if(depth>DEPTH_LIMIT){return'[Array]';}let s='[';for(let i=0;i<arr.length;i++){s+=i===0?' ':', ';if(i>=LIST_LIMIT){s+=`... ${arr.length-LIST_LIMIT} more items`;break;}s+=inspectValue(arr[i],depth,seen);}s+=' ]';return s;}const emberDebugLibInspect=/*#__PURE__*/Object.defineProperty({__proto__:null,default:inspect},Symbol.toStringTag,{value:'Module'});const EMPTY_ARRAY$4=Object.freeze([]);function emptyArray(){return EMPTY_ARRAY$4;}const EMPTY_STRING_ARRAY=emptyArray(),EMPTY_NUMBER_ARRAY=emptyArray();/**\n           * This function returns `true` if the input array is the special empty array sentinel,\n           * which is sometimes used for optimizations.\n           */function isEmptyArray(input){return input===EMPTY_ARRAY$4;}function*reverse(input){for(let i=input.length-1;i>=0;i--)yield input[i];}function*enumerate(input){let i=0;for(const item of input)yield[i++,item];}// import Logger from './logger';\n// let alreadyWarned = false;\nfunction debugAssert(test,msg){// if (!alreadyWarned) {\n//   alreadyWarned = true;\n//   Logger.warn(\"Don't leave debug assertions on in public builds\");\n// }\nif(!test)throw new Error(msg||\"assertion failure\");}function deprecate$2(desc){LOCAL_LOGGER.warn(`DEPRECATION: ${desc}`);}function keys(obj){return Object.keys(obj);}function unwrap$1(val){if(null==val)throw new Error(\"Expected value to be present\");return val;}function expect(val,message){if(null==val)throw new Error(message);return val;}function unreachable(){let message=arguments.length>0&&arguments[0]!==undefined?arguments[0]:\"unreachable\";return new Error(message);}function exhausted(value){throw new Error(`Exhausted ${String(value)}`);}const tuple=function(){for(var _len=arguments.length,args=new Array(_len),_key2=0;_key2<_len;_key2++){args[_key2]=arguments[_key2];}return args;};function isPresent$2(value){return null!=value;}function assertPresent(value,message){if(!isPresent$2(value))throw new Error(`Expected present, got ${\"string\"==typeof value?value:message}`);}function isPresentArray(list){return list.length>0;}function ifPresent(list,ifPresent,otherwise){return isPresentArray(list)?ifPresent(list):otherwise();}function arrayToOption(list){return isPresentArray(list)?list:null;}function assertPresentArray(list){let message=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"unexpected empty list\";if(!isPresentArray(list))throw new Error(message);}function asPresentArray(list){let message=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"unexpected empty list\";return assertPresentArray(list,message),list;}function getLast(list){return 0===list.length?void 0:list[list.length-1];}function getFirst(list){return 0===list.length?void 0:list[0];}function mapPresentArray(list,mapper){if(null===list)return null;let out=[];for(let item of list)out.push(mapper(item));return out;}function dict(){return Object.create(null);}function isDict(u){return null!=u;}function isObject(u){return\"function\"==typeof u||\"object\"==typeof u&&null!==u;}class StackImpl{constructor(){let values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];_defineProperty(this,\"stack\",void 0);_defineProperty(this,\"current\",null);this.stack=values;}get size(){return this.stack.length;}push(item){this.current=item,this.stack.push(item);}pop(){var _getLast;let item=this.stack.pop();return this.current=(_getLast=getLast(this.stack))!==null&&_getLast!==void 0?_getLast:null,void 0===item?null:item;}nth(from){let len=this.stack.length;return len<from?null:unwrap$1(this.stack[len-from]);}isEmpty(){return 0===this.stack.length;}toArray(){return this.stack;}}/// <reference types=\"qunit\" />\nlet beginTestSteps,endTestSteps,verifySteps,logStep,debugToString;{let getFunctionName=fn=>{let functionName=fn.name;if(void 0===functionName){let match=/function (\\w+)\\s*\\(/u.exec(String(fn));functionName=match&&match[1]||\"\";}return functionName.replace(/^bound /u,\"\");},getObjectName=obj=>{let name,className;// 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.\nreturn obj.constructor&&\"function\"==typeof obj.constructor&&(className=getFunctionName(obj.constructor)),\"toString\"in obj&&obj.toString!==Object.prototype.toString&&obj.toString!==Function.prototype.toString&&(name=obj.toString()),name&&/<.*:ember\\d+>/u.test(name)&&className&&\"_\"!==className[0]&&className.length>2&&\"Class\"!==className?name.replace(/<.*:/u,`<${className}:`):name||className;},getPrimitiveName=value=>String(value);debugToString=value=>\"function\"==typeof value?getFunctionName(value)||\"(unknown function)\":\"object\"==typeof value&&null!==value?getObjectName(value)||\"(unknown object)\":getPrimitiveName(value);}var debugToString$1=debugToString;function clearElement(parent){let current=parent.firstChild;for(;current;){let next=current.nextSibling;parent.removeChild(current),current=next;}}const RAW_NODE=-1,ELEMENT_NODE=1,TEXT_NODE=3,COMMENT_NODE=8,DOCUMENT_NODE=9,DOCUMENT_TYPE_NODE=10,DOCUMENT_FRAGMENT_NODE=11,NS_HTML=\"http://www.w3.org/1999/xhtml\",NS_MATHML=\"http://www.w3.org/1998/Math/MathML\",NS_SVG=\"http://www.w3.org/2000/svg\",NS_XLINK=\"http://www.w3.org/1999/xlink\",NS_XML=\"http://www.w3.org/XML/1998/namespace\",NS_XMLNS=\"http://www.w3.org/2000/xmlns/\",INSERT_BEFORE_BEGIN=\"beforebegin\",INSERT_AFTER_BEGIN=\"afterbegin\",INSERT_BEFORE_END=\"beforeend\",INSERT_AFTER_END=\"afterend\";/*\n            Encoding notes\n\n            We use 30 bit integers for encoding, so that we don't ever encode a non-SMI\n            integer to push on the stack.\n\n            Handles are >= 0\n            Immediates are < 0\n\n            True, False, Undefined and Null are pushed as handles into the symbol table,\n            with well known handles (0, 1, 2, 3)\n\n            The negative space is divided into positives and negatives. Positives are\n            higher numbers (-1, -2, -3, etc), negatives are lower.\n\n            We only encode immediates for two reasons:\n\n            1. To transfer over the wire, so they're smaller in general\n            2. When pushing values onto the stack from the low level/inner VM, which may\n               be converted into WASM one day.\n\n            This allows the low-level VM to always use SMIs, and to minimize using JS\n            values via handles for things like the stack pointer and frame pointer.\n            Externally, most code pushes values as JS values, except when being pulled\n            from the append byte code where it was already encoded.\n\n            Logically, this is because the low level VM doesn't really care about these\n            higher level values. For instance, the result of a userland helper may be a\n            number, or a boolean, or undefined/null, but it's extra work to figure that\n            out and push it correctly, vs. just pushing the value as a JS value with a\n            handle.\n\n            Note: The details could change here in the future, this is just the current\n            strategy.\n          */let ImmediateConstants=function(ImmediateConstants){return ImmediateConstants[ImmediateConstants.MAX_SMI=1073741823]=\"MAX_SMI\",ImmediateConstants[ImmediateConstants.MIN_SMI=-1073741824]=\"MIN_SMI\",ImmediateConstants[ImmediateConstants.SIGN_BIT=-536870913]=\"SIGN_BIT\",ImmediateConstants[ImmediateConstants.MAX_INT=536870911]=\"MAX_INT\",ImmediateConstants[ImmediateConstants.MIN_INT=-536870912]=\"MIN_INT\",ImmediateConstants[ImmediateConstants.FALSE_HANDLE=0]=\"FALSE_HANDLE\",ImmediateConstants[ImmediateConstants.TRUE_HANDLE=1]=\"TRUE_HANDLE\",ImmediateConstants[ImmediateConstants.NULL_HANDLE=2]=\"NULL_HANDLE\",ImmediateConstants[ImmediateConstants.UNDEFINED_HANDLE=3]=\"UNDEFINED_HANDLE\",ImmediateConstants[ImmediateConstants.ENCODED_FALSE_HANDLE=0]=\"ENCODED_FALSE_HANDLE\",ImmediateConstants[ImmediateConstants.ENCODED_TRUE_HANDLE=1]=\"ENCODED_TRUE_HANDLE\",ImmediateConstants[ImmediateConstants.ENCODED_NULL_HANDLE=2]=\"ENCODED_NULL_HANDLE\",ImmediateConstants[ImmediateConstants.ENCODED_UNDEFINED_HANDLE=3]=\"ENCODED_UNDEFINED_HANDLE\",ImmediateConstants;}({});function isHandle(value){return value>=0;}function isNonPrimitiveHandle(value){return value>ImmediateConstants.ENCODED_UNDEFINED_HANDLE;}function constants(){for(var _len2=arguments.length,values=new Array(_len2),_key3=0;_key3<_len2;_key3++){values[_key3]=arguments[_key3];}return[!1,!0,null,void 0,...values];}function isSmallInt(value){return value%1==0&&value<=ImmediateConstants.MAX_INT&&value>=ImmediateConstants.MIN_INT;}function encodeNegative(num){return num&ImmediateConstants.SIGN_BIT;}function decodeNegative(num){return num|~ImmediateConstants.SIGN_BIT;}function encodePositive(num){return~num;}function decodePositive(num){return~num;}function encodeHandle(num){return num;}function decodeHandle(num){return num;}function encodeImmediate(num){return(num|=0)<0?encodeNegative(num):encodePositive(num);}function decodeImmediate(num){return(num|=0)>ImmediateConstants.SIGN_BIT?decodePositive(num):decodeNegative(num);}/**\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          */function intern(str){let obj={};obj[str]=1;for(let key in obj)if(key===str)return key;return str;}[1,-1].forEach(x=>decodeImmediate(encodeImmediate(x)));const SERIALIZATION_FIRST_NODE_STRING$1=\"%+b:0%\";function isSerializationFirstNode$1(node){return\"%+b:0%\"===node.nodeValue;}let assign=Object.assign;function values(obj){return Object.values(obj);}function entries(dict){return Object.entries(dict);}function castToSimple(node){return isDocument(node)||isSimpleElement(node),node;}// If passed a document, verify we're in the browser and return it as a Document\n// If we don't know what this is, but the check requires it to be an element,\n// the cast will mandate that it's a browser element\n// Finally, if it's a more generic check, the cast will mandate that it's a\n// browser node and return a BrowserNodeUtils corresponding to the check\nfunction castToBrowser(node,sugaryCheck){if(null==node)return null;if(void 0===typeof document)throw new Error(\"Attempted to cast to a browser node in a non-browser context\");if(isDocument(node))return node;if(node.ownerDocument!==document)throw new Error(\"Attempted to cast to a browser node with a node that was not created from this document\");return checkBrowserNode(node,sugaryCheck);}function isDocument(node){return node.nodeType===DOCUMENT_NODE;}function isSimpleElement(node){return(node===null||node===void 0?void 0:node.nodeType)===ELEMENT_NODE;}function isElement$1(node){return(node===null||node===void 0?void 0:node.nodeType)===ELEMENT_NODE&&node instanceof Element;}function checkBrowserNode(node,check){var _node$constructor$nam,_node$constructor;let isMatch=!1;if(null!==node)if(\"string\"==typeof check)isMatch=stringCheckNode(node,check);else{if(!Array.isArray(check))throw unreachable();isMatch=check.some(c=>stringCheckNode(node,c));}if(isMatch&&node instanceof Node)return node;throw function(from,check){return new Error(`cannot cast a ${from} into ${String(check)}`);}(`SimpleElement(${(_node$constructor$nam=node===null||node===void 0||(_node$constructor=node.constructor)===null||_node$constructor===void 0?void 0:_node$constructor.name)!==null&&_node$constructor$nam!==void 0?_node$constructor$nam:\"null\"})`,check);}function stringCheckNode(node,check){switch(check){case\"NODE\":return!0;case\"HTML\":return node instanceof HTMLElement;case\"SVG\":return node instanceof SVGElement;case\"ELEMENT\":return node instanceof Element;default:if(check.toUpperCase()===check)throw new Error(\"BUG: this code is missing handling for a generic node type\");return node instanceof Element&&node.tagName.toLowerCase()===check;}}function strip$1(strings){let out=\"\";for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key4=1;_key4<_len3;_key4++){args[_key4-1]=arguments[_key4];}for(const[i,string]of enumerate(strings))out+=`${string}${void 0!==args[i]?String(args[i]):\"\"}`;let lines=out.split(\"\\n\");for(;isPresentArray(lines)&&/^\\s*$/u.test(getFirst(lines));)lines.shift();for(;isPresentArray(lines)&&/^\\s*$/u.test(getLast(lines));)lines.pop();let min=1/0;for(let line of lines){let leading=/^\\s*/u.exec(line)[0].length;min=Math.min(min,leading);}let stripped=[];for(let line of lines)stripped.push(line.slice(min));return stripped.join(\"\\n\");}function unwrapHandle(handle){if(\"number\"==typeof handle)return handle;{let error=handle.errors[0];throw new Error(`Compile Error: ${error.problem} @ ${error.span.start}..${error.span.end}`);}}function unwrapTemplate(template){if(\"error\"===template.result)throw new Error(`Compile Error: ${template.problem} @ ${template.span.start}..${template.span.end}`);return template;}function extractHandle(handle){return\"number\"==typeof handle?handle:handle.handle;}function isOkHandle(handle){return\"number\"==typeof handle;}function isErrHandle(handle){return\"number\"==typeof handle;}function buildUntouchableThis(source){let context=null;{let assertOnProperty=property=>{let access=\"symbol\"==typeof property||\"number\"==typeof property?`[${String(property)}]`:`.${property}`;throw new Error(`You accessed \\`this${access}\\` from a function passed to the ${source}, but the function itself was not bound to a valid \\`this\\` context. Consider updating to use a bound function (for instance, use an arrow function, \\`() => {}\\`).`);};context=new Proxy({},{get(_target,property){assertOnProperty(property);},set:(_target,property)=>(assertOnProperty(property),!1),has:(_target,property)=>(assertOnProperty(property),!1)});}return context;}/**\n           * This constant exists to make it easier to differentiate normal logs from\n           * errant console.logs. LOCAL_LOGGER should only be used inside a\n           * LOCAL_SHOULD_LOG check.\n           *\n           * It does not alleviate the need to check LOCAL_SHOULD_LOG, which is used\n           * for stripping.\n           */const LOCAL_LOGGER=console,LOGGER=console;/**\n           * This constant exists to make it easier to differentiate normal logs from\n           * errant console.logs. LOGGER can be used outside of LOCAL_SHOULD_LOG checks,\n           * and is meant to be used in the rare situation where a console.* call is\n           * actually appropriate.\n           */function assertNever(value){let desc=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"unexpected unreachable branch\";throw LOGGER.log(\"unreachable\",value),LOGGER.log(`${desc} :: ${JSON.stringify(value)} (${value})`),new Error(\"code reached unreachable\");}const glimmerUtil=/*#__PURE__*/Object.defineProperty({__proto__:null,COMMENT_NODE,DOCUMENT_FRAGMENT_NODE,DOCUMENT_NODE,DOCUMENT_TYPE_NODE,ELEMENT_NODE,EMPTY_ARRAY:EMPTY_ARRAY$4,EMPTY_NUMBER_ARRAY,EMPTY_STRING_ARRAY,INSERT_AFTER_BEGIN,INSERT_AFTER_END,INSERT_BEFORE_BEGIN,INSERT_BEFORE_END,ImmediateConstants,LOCAL_LOGGER,LOGGER,NS_HTML,NS_MATHML,NS_SVG,NS_XLINK,NS_XML,NS_XMLNS,RAW_NODE,SERIALIZATION_FIRST_NODE_STRING:SERIALIZATION_FIRST_NODE_STRING$1,Stack:StackImpl,TEXT_NODE,arrayToOption,asPresentArray,assert:debugAssert,assertNever,assertPresent,assertPresentArray,assign,beginTestSteps,buildUntouchableThis,castToBrowser,castToSimple,checkNode:checkBrowserNode,clearElement,constants,debugToString:debugToString$1,decodeHandle,decodeImmediate,decodeNegative,decodePositive,deprecate:deprecate$2,dict,emptyArray,encodeHandle,encodeImmediate,encodeNegative,encodePositive,endTestSteps,entries,enumerate,exhausted,expect,extractHandle,getFirst,getLast,ifPresent,intern,isDict,isElement:isElement$1,isEmptyArray,isErrHandle,isHandle,isNonPrimitiveHandle,isObject,isOkHandle,isPresent:isPresent$2,isPresentArray,isSerializationFirstNode:isSerializationFirstNode$1,isSimpleElement,isSmallInt,keys,logStep,mapPresentArray,reverse,strip:strip$1,tuple,unreachable,unwrap:unwrap$1,unwrapHandle,unwrapTemplate,values,verifySteps},Symbol.toStringTag,{value:'Module'});/**\n            @module @ember/debug\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          */function captureRenderTree(app){// SAFETY: Ideally we'd assert here but that causes awkward circular requires since this is also in @ember/debug.\n// This is only for debug stuff so not very risky.\nlet renderer=expect(app.lookup('renderer:-dom'),`BUG: owner is missing renderer`);return renderer.debugRenderTree.capture();}const emberDebugLibCaptureRenderTree=/*#__PURE__*/Object.defineProperty({__proto__:null,default:captureRenderTree},Symbol.toStringTag,{value:'Module'});// These are the default production build versions:\nconst noop$3=()=>{};// SAFETY: these casts are just straight-up lies, but the point is that they do\n// not do anything in production builds.\nlet info=noop$3;let warn=noop$3;let debug$2=noop$3;let currentDeprecate;let debugSeal=noop$3;let debugFreeze=noop$3;let runInDebug=noop$3;let setDebugFunction=noop$3;let getDebugFunction=noop$3;let deprecateFunc=function(){return arguments[arguments.length-1];};function deprecate$1(){var _currentDeprecate;return((_currentDeprecate=currentDeprecate)!==null&&_currentDeprecate!==void 0?_currentDeprecate:defaultDeprecate)(...arguments);}{setDebugFunction=function(type,callback){switch(type){case'assert':return setAssert(callback);case'info':return info=callback;case'warn':return warn=callback;case'debug':return debug$2=callback;case'deprecate':return currentDeprecate=callback;case'debugSeal':return debugSeal=callback;case'debugFreeze':return debugFreeze=callback;case'runInDebug':return runInDebug=callback;case'deprecateFunc':return deprecateFunc=callback;}};getDebugFunction=function(type){switch(type){case'assert':return assert$1;case'info':return info;case'warn':return warn;case'debug':return debug$2;case'deprecate':return deprecate$1;case'debugSeal':return debugSeal;case'debugFreeze':return debugFreeze;case'runInDebug':return runInDebug;case'deprecateFunc':return deprecateFunc;}};}/**\n          @module @ember/debug\n          */{/**\n              Display a debug notice.\n               Calls to this function are not invoked in production builds.\n               ```javascript\n              import { debug } from '@ember/debug';\n               debug('I\\'m a debug notice!');\n              ```\n               @method debug\n              @for @ember/debug\n              @static\n              @param {String} message A debug message to display.\n              @public\n            */setDebugFunction('debug',function debug(message){console.debug(`DEBUG: ${message}`);/* eslint-disable-line no-console */});/**\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            */setDebugFunction('info',function info(){console.info(...arguments);/* eslint-disable-line no-console */});/**\n             @module @ember/debug\n             @public\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            */setDebugFunction('deprecateFunc',function deprecateFunc(){for(var _len4=arguments.length,args=new Array(_len4),_key5=0;_key5<_len4;_key5++){args[_key5]=arguments[_key5];}if(args.length===3){let[message,options,func]=args;return function(){deprecate$1(message,false,options);for(var _len5=arguments.length,args=new Array(_len5),_key6=0;_key6<_len5;_key6++){args[_key6]=arguments[_key6];}return func.apply(this,args);};}else{let[message,func]=args;return function(){deprecate$1(message);return func.apply(this,arguments);};}});/**\n             @module @ember/debug\n             @public\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            */setDebugFunction('runInDebug',function runInDebug(func){func();});setDebugFunction('debugSeal',function debugSeal(obj){Object.seal(obj);});setDebugFunction('debugFreeze',function debugFreeze(obj){// 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\nif(!Object.isFrozen(obj)){Object.freeze(obj);}});setDebugFunction('warn',_warn);}let _warnIfUsingStrippedFeatureFlags;if(!isTesting()){if(typeof window!=='undefined'&&(isFirefox||isChrome)&&window.addEventListener){window.addEventListener('load',()=>{if(document.documentElement&&document.documentElement.dataset&&!document.documentElement.dataset['emberExtension']){let downloadURL;if(isChrome){downloadURL='https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';}else if(isFirefox){downloadURL='https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/';}debug$2(`For more advanced debugging, install the Ember Inspector from ${downloadURL}`);}},false);}}const emberDebugIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,_warnIfUsingStrippedFeatureFlags,get assert(){return assert$1;},captureRenderTree,get debug(){return debug$2;},get debugFreeze(){return debugFreeze;},get debugSeal(){return debugSeal;},deprecate:deprecate$1,get deprecateFunc(){return deprecateFunc;},get getDebugFunction(){return getDebugFunction;},get info(){return info;},inspect,isTesting,get registerDeprecationHandler(){return registerHandler$1;},get registerWarnHandler(){return registerHandler;},get runInDebug(){return runInDebug;},get setDebugFunction(){return setDebugFunction;},setTesting,get warn(){return warn;}},Symbol.toStringTag,{value:'Module'});let setupMandatorySetter;let teardownMandatorySetter;let setWithMandatorySetter;function isElementKey(key){return typeof key==='number'?isPositiveInt(key):isStringInt(key);}function isStringInt(str){let num=parseInt(str,10);return isPositiveInt(num)&&str===String(num);}function isPositiveInt(num){return num>=0&&num%1===0;}{let SEEN_TAGS=new WeakSet();let MANDATORY_SETTERS=new WeakMap();let propertyIsEnumerable=function(obj,key){return Object.prototype.propertyIsEnumerable.call(obj,key);};setupMandatorySetter=function(tag,obj,keyName){if(SEEN_TAGS.has(tag)){return;}SEEN_TAGS.add(tag);if(Array.isArray(obj)&&isElementKey(keyName)){return;}let desc=lookupDescriptor(obj,keyName)||{};if(desc.get||desc.set){// 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.\nreturn;}if(desc&&(!desc.configurable||!desc.writable)){// 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.\nreturn;}let setters=MANDATORY_SETTERS.get(obj);if(setters===undefined){setters={};MANDATORY_SETTERS.set(obj,setters);}desc.hadOwnProperty=Object.hasOwnProperty.call(obj,keyName);setters[keyName]=desc;Object.defineProperty(obj,keyName,{configurable:true,enumerable:propertyIsEnumerable(obj,keyName),get(){if(desc.get){return desc.get.call(this);}else{return desc.value;}},set(value){assert$1(`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.`);}});};teardownMandatorySetter=function(obj,keyName){let setters=MANDATORY_SETTERS.get(obj);if(setters!==undefined&&setters[keyName]!==undefined){Object.defineProperty(obj,keyName,setters[keyName]);delete setters[keyName];}};setWithMandatorySetter=function(obj,keyName,value){let setters=MANDATORY_SETTERS.get(obj);if(setters!==undefined&&setters[keyName]!==undefined){let setter=setters[keyName];if(setter.set){setter.set.call(obj,value);}else{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.\nif(!setter.hadOwnProperty){let desc=lookupDescriptor(obj,keyName);desc.enumerable=true;Object.defineProperty(obj,keyName,desc);}}}else{obj[keyName]=value;}};}/*\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          */const emberinternalsUtilsIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,Cache,GUID_KEY,ROOT,canInvoke,checkHasSuper,dictionary:makeDictionary,enumerableSymbol,generateGuid,getDebugName:getDebugName$1,getName,guidFor,intern:intern$1,isInternalSymbol,isObject:isObject$1,isProxy,lookupDescriptor,observerListenerMetaFor,setListeners,setName,setObservers,setProxy,get setWithMandatorySetter(){return setWithMandatorySetter;},get setupMandatorySetter(){return setupMandatorySetter;},symbol,get teardownMandatorySetter(){return teardownMandatorySetter;},toString:toString$1,uuid:uuid$1,wrap:wrap$1},Symbol.toStringTag,{value:'Module'});const OWNER$1=Symbol(\"OWNER\");/**\n            Framework objects in a Glimmer application may receive an owner object.\n            Glimmer is unopinionated about this owner, but will forward it through its\n            internal resolution system, and through its managers if it is provided.\n          */function getOwner$3(object){return object[OWNER$1];}/**\n            `setOwner` set's an object's owner\n          */function setOwner$2(object,owner){object[OWNER$1]=owner;}const glimmerOwner=/*#__PURE__*/Object.defineProperty({__proto__:null,OWNER:OWNER$1,getOwner:getOwner$3,setOwner:setOwner$2},Symbol.toStringTag,{value:'Module'});/**\n            @module @ember/owner\n           *//**\n            The name for a factory consists of a namespace and the name of a specific type\n            within that namespace, like `'service:session'`.\n\n            **Note:** `FullName` is *not* a class, just a contract for strings used in the\n            DI system. It is currently documented as a class only due to limits in our\n            documentation infrastructure.\n\n            @for @ember/owner\n            @class FullName\n            @public\n           *//**\n            A type registry for the DI system, which other participants in the DI system\n            can register themselves into with declaration merging. The contract for this\n            type is that its keys are the `Type` from a `FullName`, and each value for a\n            `Type` is another registry whose keys are the `Name` from a `FullName`. The\n            mechanic for providing a registry is [declaration merging][handbook].\n\n            [handbook]: https://www.typescriptlang.org/docs/handbook/declaration-merging.html\n\n            For example, Ember's `@ember/service` module includes this set of definitions:\n\n            ```ts\n            export default class Service extends EmberObject {}\n\n            // For concrete singleton classes to be merged into.\n            interface Registry extends Record<string, Service> {}\n\n            declare module '@ember/owner' {\n              service: Registry;\n            }\n            ```\n\n            Declarations of services can then include the registry:\n\n            ```ts\n            import Service from '@ember/service';\n\n            export default class Session extends Service {\n              login(username: string, password: string) {\n                // ...\n              }\n            }\n\n            declare module '@ember/service' {\n              interface Registry {\n                session: Session;\n              }\n            }\n            ```\n\n            Then users of the `Owner` API will be able to do things like this with strong\n            type safety guarantees:\n\n            ```ts\n            getOwner(this)?.lookup('service:session').login(\"hello\", \"1234abcd\");\n            ```\n\n            @for @ember/owner\n            @private\n           */// eslint-disable-next-line @typescript-eslint/no-empty-interface\n// Convenience utility for pulling a specific factory manager off `DIRegistry`\n// if one exists, or falling back to the default definition otherwise.\n/**\n            @private\n           *//**\n            The common interface for the ability to `register()` an item, shared by the\n            `Owner` and `RegistryProxy` interfaces.\n\n            @for @ember/owner\n            @class BasicRegistry\n            @private\n           *//**\n            The common interface for the ability to `lookup()` or get the `factoryFor` an\n            item, shared by the `Owner` and `ContainerProxy` interfaces.\n\n            @for @ember/owner\n            @class BasicContainer\n            @private\n           *//**\n            Framework objects in an Ember application (components, services, routes,\n            etc.) are created via a factory and dependency injection system. Each of\n            these objects is the responsibility of an \"owner\", which handles its\n            instantiation and manages its lifetime.\n\n            An `Owner` is not a class you construct; it is one the framework constructs\n            for you. The normal way to get access to the relevant `Owner` is using the\n            `getOwner` function.\n\n            @for @ember/owner\n            @uses BasicRegistry\n            @uses BasicContainer\n            @class Owner\n            @since 4.10.0\n            @public\n           *//**\n           * Interface representing the options for registering an item as a factory.\n           *\n           * @for @ember/owner\n           * @class RegisterOptions\n           * @public\n           *//**\n            Registered factories are instantiated by having create called on them.\n            Additionally they are singletons by default, so each time they are looked up\n            they return the same instance.\n\n            However, that behavior can be modified with the `instantiate` and `singleton`\n            options to the `Owner.register()` method.\n\n            @for @ember/owner\n            @class Factory\n            @since 4.10.0\n            @public\n           *//**\n            The interface representing a manager which can be used for introspection of\n            the factory's class or for the creation of factory instances with initial\n            properties. The manager is an object with the following properties:\n\n            - `class` - The registered or resolved class.\n            - `create` - A function that will create an instance of the class with any\n            dependencies injected.\n\n            **Note:** `FactoryManager` is *not* user-constructible; the only legal way\n            to get a `FactoryManager` is via `Owner.factoryFor`.\n\n            @for @ember/owner\n            @class FactoryManager\n            @extends Factory\n            @public\n           *//**\n           * A record mapping all known items of a given type: if the item is known it\n           * will be `true`; otherwise it will be `false` or `undefined`.\n           *//**\n            A `Resolver` is the mechanism responsible for looking up code in your\n            application and converting its naming conventions into the actual classes,\n            functions, and templates that Ember needs to resolve its dependencies, for\n            example, what template to render for a given route. It is a system that helps\n            the app resolve the lookup of JavaScript modules agnostic of what kind of\n            module system is used, which can be AMD, CommonJS or just plain globals. It\n            is used to lookup routes, models, components, templates, or anything that is\n            used in your Ember app.\n\n            This interface is not a concrete class; instead, it represents the contract a\n            custom resolver must implement. Most apps never need to think about this: in\n            the default blueprint, this is supplied by the `ember-resolver` package.\n\n            @for @ember/owner\n            @class Resolver\n            @since 4.10.0\n            @public\n           *//**\n            The internal representation of a `Factory`, for the extra detail available for\n            private use internally than we expose to consumers.\n\n            @for @ember/owner\n            @class InternalFactory\n            @private\n           *//**\n            @private\n            @method isFactory\n            @param {Object} obj\n            @return {Boolean}\n            @static\n           */function isFactory(obj){return obj!=null&&typeof obj.create==='function';}// NOTE: For docs, see the definition at the public API site in `@ember/owner`;\n// we document it there for the sake of public API docs and for TS consumption,\n// while having the richer `InternalOwner` representation for Ember itself.\nfunction getOwner$2(object){return getOwner$3(object);}/**\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/owner\n            @param {Object} object An object instance.\n            @param {Owner} object The new owner object of the object instance.\n            @since 2.3.0\n            @public\n          */function setOwner$1(object,owner){setOwner$2(object,owner);}// Defines the type for the ContainerProxyMixin. When we rationalize our Owner\n// *not* to work via mixins, we will be able to delete this entirely, in favor\n// of just using the Owner class itself.\n/**\n           * The interface for a container proxy, which is itself a private API used\n           * by the private `ContainerProxyMixin` as part of the base definition of\n           * `EngineInstance`.\n           *\n           * @class ContainerProxy\n           * @for @ember/owner\n           * @private\n           * @extends BasicContainer\n           *//**\n           * @class RegistryProxy\n           * @extends BasicRegistry\n           * @private\n           * @for @ember/owner\n           *//**\n           * @internal This is the same basic interface which is implemented (via the\n           *   mixins) by `EngineInstance` and therefore `ApplicationInstance`, which are\n           *   the normal interfaces to an `Owner` for end user applications now. However,\n           *   going forward, we expect to progressively deprecate and remove the \"extra\"\n           *   APIs which are not exposed on `Owner` itself.\n           */const emberinternalsOwnerIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,getOwner:getOwner$2,isFactory,setOwner:setOwner$1},Symbol.toStringTag,{value:'Module'});// node exposes this. I'm not pulling in the whole @types/node because it\n// doesn't work with isolatedModules\nlet leakTracking;let containers;{// requires v8\n// chrome --js-flags=\"--allow-natives-syntax --expose-gc\"\n// node --allow-natives-syntax --expose-gc\ntry{if(typeof gc==='function'){leakTracking=(()=>{// avoid syntax errors when --allow-natives-syntax not present\nlet GetWeakSetValues=new Function('weakSet','return %GetWeakSetValues(weakSet, 0)');containers=new WeakSet();return{hasContainers(){gc();return GetWeakSetValues(containers).length>0;},reset(){let values=GetWeakSetValues(containers);for(let i=0;i<values.length;i++){containers.delete(values[i]);}}};})();}}catch(_e){// ignore\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           */class Container{constructor(registry){let options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_defineProperty(this,\"owner\",void 0);_defineProperty(this,\"registry\",void 0);_defineProperty(this,\"cache\",void 0);_defineProperty(this,\"factoryManagerCache\",void 0);_defineProperty(this,\"validationCache\",void 0);_defineProperty(this,\"isDestroyed\",void 0);_defineProperty(this,\"isDestroying\",void 0);this.registry=registry;this.owner=options.owner||null;this.cache=makeDictionary(options.cache||null);this.factoryManagerCache=makeDictionary(options.factoryManagerCache||null);this.isDestroyed=false;this.isDestroying=false;{this.validationCache=makeDictionary(options.validationCache||null);if(containers!==undefined){containers.add(this);}}}/**\n             @private\n             @property registry\n             @type Registry\n             @since 1.11.0\n             *//**\n             @private\n             @property cache\n             @type InheritingDict\n             *//**\n             @private\n             @property validationCache\n             @type InheritingDict\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 {RegisterOptions} [options]\n             @return {any}\n             */lookup(fullName,options){if(this.isDestroyed){throw new Error(`Cannot call \\`.lookup('${fullName}')\\` after the owner has been destroyed`);}!this.registry.isValidFullName(fullName)&&assert$1('fullName must be a proper full name',this.registry.isValidFullName(fullName));return lookup(this,this.registry.normalize(fullName),options);}/**\n             A depth first traversal, destroying the container, its descendant containers and all\n             their managed objects.\n              @private\n             @method destroy\n             */destroy(){this.isDestroying=true;destroyDestroyables(this);}finalizeDestroy(){resetCache(this);this.isDestroyed=true;}/**\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            */reset(fullName){if(this.isDestroyed)return;if(fullName===undefined){destroyDestroyables(this);resetCache(this);}else{resetMember(this,this.registry.normalize(fullName));}}/**\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            */ownerInjection(){let injection={};setOwner$1(injection,this.owner);return injection;}/**\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             @return {any}\n             */factoryFor(fullName){if(this.isDestroyed){throw new Error(`Cannot call \\`.factoryFor('${fullName}')\\` after the owner has been destroyed`);}let normalizedName=this.registry.normalize(fullName);!this.registry.isValidFullName(normalizedName)&&assert$1('fullName must be a proper full name',this.registry.isValidFullName(normalizedName));return factoryFor(this,normalizedName,fullName);}}_defineProperty(Container,\"_leakTracking\",void 0);{Container._leakTracking=leakTracking;}/*\n           * Wrap a factory manager in a proxy which will not permit properties to be\n           * set on the manager.\n           */function wrapManagerInDeprecationProxy(manager){let validator={set(_obj,prop){throw new Error(`You attempted to set \"${String(prop)}\" on a factory manager created by container#factoryFor. A factory manager is a read-only construct.`);}};// 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.\nlet m=manager;let proxiedManager={class:m.class,create(props){return m.create(props);}};return new Proxy(proxiedManager,validator);}function isSingleton(container,fullName){return container.registry.getOption(fullName,'singleton')!==false;}function isInstantiatable(container,fullName){return container.registry.getOption(fullName,'instantiate')!==false;}function lookup(container,fullName){let options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};let normalizedName=fullName;if(options.singleton===true||options.singleton===undefined&&isSingleton(container,fullName)){let cached=container.cache[normalizedName];if(cached!==undefined){return cached;}}return instantiateFactory(container,normalizedName,fullName,options);}function factoryFor(container,normalizedName,fullName){let cached=container.factoryManagerCache[normalizedName];if(cached!==undefined){return cached;}let factory=container.registry.resolve(normalizedName);if(factory===undefined){return;}if(factory&&typeof factory._onLookup==='function'){factory._onLookup(fullName);}let manager=new InternalFactoryManager(container,factory,fullName,normalizedName);{manager=wrapManagerInDeprecationProxy(manager);}container.factoryManagerCache[normalizedName]=manager;return manager;}function isSingletonClass(container,fullName,_ref2){let{instantiate,singleton}=_ref2;return singleton!==false&&!instantiate&&isSingleton(container,fullName)&&!isInstantiatable(container,fullName);}function isSingletonInstance(container,fullName,_ref3){let{instantiate,singleton}=_ref3;return singleton!==false&&instantiate!==false&&(singleton===true||isSingleton(container,fullName))&&isInstantiatable(container,fullName);}function isFactoryClass(container,fullname,_ref4){let{instantiate,singleton}=_ref4;return instantiate===false&&(singleton===false||!isSingleton(container,fullname))&&!isInstantiatable(container,fullname);}function isFactoryInstance(container,fullName,_ref5){let{instantiate,singleton}=_ref5;return instantiate!==false&&(singleton===false||!isSingleton(container,fullName))&&isInstantiatable(container,fullName);}function instantiateFactory(container,normalizedName,fullName,options){let factoryManager=factoryFor(container,normalizedName,fullName);if(factoryManager===undefined){return;}// SomeClass { singleton: true, instantiate: true } | { singleton: true } | { instantiate: true } | {}\n// By default majority of objects fall into this case\nif(isSingletonInstance(container,fullName,options)){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\nif(container.isDestroying){if(typeof instance.destroy==='function'){instance.destroy();}}return instance;}// SomeClass { singleton: false, instantiate: true }\nif(isFactoryInstance(container,fullName,options)){return factoryManager.create();}// SomeClass { singleton: true, instantiate: false } | { instantiate: false } | { singleton: false, instantiation: false }\nif(isSingletonClass(container,fullName,options)||isFactoryClass(container,fullName,options)){return factoryManager.class;}throw new Error('Could not create factory');}function destroyDestroyables(container){let cache=container.cache;let keys=Object.keys(cache);for(let key of keys){let value=cache[key];!value&&assert$1('has cached value',value);if(value.destroy){value.destroy();}}}function resetCache(container){container.cache=makeDictionary(null);container.factoryManagerCache=makeDictionary(null);}function resetMember(container,fullName){let member=container.cache[fullName];delete container.factoryManagerCache[fullName];if(member){delete container.cache[fullName];if(member.destroy){member.destroy();}}}const INIT_FACTORY=Symbol('INIT_FACTORY');function getFactoryFor(obj){// SAFETY: since we know `obj` is an `object`, we also know we can safely ask\n// whether a key is set on it.\nreturn obj[INIT_FACTORY];}function setFactoryFor(obj,factory){// SAFETY: since we know `obj` is an `object`, we also know we can safely set\n// a key it safely at this location. (The only way this could be blocked is if\n// someone has gone out of their way to use `Object.defineProperty()` with our\n// internal-only symbol and made it `writable: false`.)\nobj[INIT_FACTORY]=factory;}class InternalFactoryManager{constructor(container,factory,fullName,normalizedName){_defineProperty(this,\"container\",void 0);_defineProperty(this,\"owner\",void 0);_defineProperty(this,\"class\",void 0);_defineProperty(this,\"fullName\",void 0);_defineProperty(this,\"normalizedName\",void 0);_defineProperty(this,\"madeToString\",void 0);_defineProperty(this,\"injections\",void 0);this.container=container;this.owner=container.owner;this.class=factory;this.fullName=fullName;this.normalizedName=normalizedName;this.madeToString=undefined;this.injections=undefined;}toString(){if(this.madeToString===undefined){this.madeToString=this.container.registry.makeToString(this.class,this.fullName);}return this.madeToString;}create(options){let{container}=this;if(container.isDestroyed){throw new Error(`Cannot create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`);}let props=options?{...options}:{};setOwner$1(props,container.owner);setFactoryFor(props,this);{let lazyInjections;let validationCache=this.container.validationCache;// Ensure that all lazy injections are valid at instantiation time\nif(!validationCache[this.fullName]&&this.class&&typeof this.class._lazyInjections==='function'){lazyInjections=this.class._lazyInjections();lazyInjections=this.container.registry.normalizeInjectionsHash(lazyInjections);this.container.registry.validateInjections(lazyInjections);}validationCache[this.fullName]=true;!(typeof this.class.create==='function')&&assert$1(`Failed to create an instance of '${this.normalizedName}'. Most likely an improperly defined class or an invalid module export.`,typeof this.class.create==='function');}return this.class.create(props);}}const VALID_FULL_NAME_REGEXP=/^[^:]+:[^:]+$/;/**\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          */class Registry{constructor(){let options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_defineProperty(this,\"_failSet\",void 0);_defineProperty(this,\"resolver\",void 0);_defineProperty(this,\"fallback\",void 0);_defineProperty(this,\"registrations\",void 0);_defineProperty(this,\"_normalizeCache\",void 0);_defineProperty(this,\"_options\",void 0);_defineProperty(this,\"_resolveCache\",void 0);_defineProperty(this,\"_typeOptions\",void 0);this.fallback=options.fallback||null;this.resolver=options.resolver||null;this.registrations=makeDictionary(options.registrations||null);this._normalizeCache=makeDictionary(null);this._resolveCache=makeDictionary(null);this._failSet=new Set();this._options=makeDictionary(null);this._typeOptions=makeDictionary(null);}/**\n             A backup registry for resolving registrations when no matches can be found.\n              @private\n             @property fallback\n             @type Registry\n             *//**\n             An object that has a `resolve` method that resolves a name.\n              @private\n             @property resolver\n             @type Resolver\n             *//**\n             @private\n             @property registrations\n             @type InheritingDict\n             *//**\n             @private\n              @property _normalizeCache\n             @type InheritingDict\n             *//**\n             @private\n              @property _resolveCache\n             @type InheritingDict\n             *//**\n             @private\n              @property _options\n             @type InheritingDict\n             *//**\n             @private\n              @property _typeOptions\n             @type InheritingDict\n             *//**\n             Creates a container based on this registry.\n              @private\n             @method container\n             @param {Object} options\n             @return {Container} created container\n             */container(options){return new Container(this,options);}/**\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             */register(fullName,factory){let options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};!this.isValidFullName(fullName)&&assert$1('fullName must be a proper full name',this.isValidFullName(fullName));!(factory!==undefined)&&assert$1(`Attempting to register an unknown factory: '${fullName}'`,factory!==undefined);let normalizedName=this.normalize(fullName);!!this._resolveCache[normalizedName]&&assert$1(`Cannot re-register: '${fullName}', as it has already been resolved.`,!this._resolveCache[normalizedName]);this._failSet.delete(normalizedName);this.registrations[normalizedName]=factory;this._options[normalizedName]=options;}/**\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             */unregister(fullName){!this.isValidFullName(fullName)&&assert$1('fullName must be a proper full name',this.isValidFullName(fullName));let normalizedName=this.normalize(fullName);delete this.registrations[normalizedName];delete this._resolveCache[normalizedName];delete this._options[normalizedName];this._failSet.delete(normalizedName);}/**\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             @return {Function} fullName's factory\n             */resolve(fullName){let factory=resolve$5(this,this.normalize(fullName));if(factory===undefined&&this.fallback!==null){factory=this.fallback.resolve(fullName);}return factory;}/**\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             */describe(fullName){if(this.resolver!==null&&this.resolver.lookupDescription){return this.resolver.lookupDescription(fullName);}else if(this.fallback!==null){return this.fallback.describe(fullName);}else{return fullName;}}/**\n             A hook to enable custom fullName normalization behavior\n              @private\n             @method normalizeFullName\n             @param {String} fullName\n             @return {string} normalized fullName\n             */normalizeFullName(fullName){if(this.resolver!==null&&this.resolver.normalize){return this.resolver.normalize(fullName);}else if(this.fallback!==null){return this.fallback.normalizeFullName(fullName);}else{return fullName;}}/**\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             */normalize(fullName){return this._normalizeCache[fullName]||(this._normalizeCache[fullName]=this.normalizeFullName(fullName));}/**\n             @method makeToString\n              @private\n             @param {any} factory\n             @param {string} fullName\n             @return {function} toString function\n             */makeToString(factory,fullName){if(this.resolver!==null&&this.resolver.makeToString){return this.resolver.makeToString(factory,fullName);}else if(this.fallback!==null){return this.fallback.makeToString(factory,fullName);}else{var _factory$name;return typeof factory==='string'?factory:(_factory$name=factory.name)!==null&&_factory$name!==void 0?_factory$name:'(unknown class)';}}/**\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             */has(fullName){if(!this.isValidFullName(fullName)){return false;}return has$1(this,this.normalize(fullName));}/**\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             */optionsForType(type,options){this._typeOptions[type]=options;}getOptionsForType(type){let optionsForType=this._typeOptions[type];if(optionsForType===undefined&&this.fallback!==null){optionsForType=this.fallback.getOptionsForType(type);}return optionsForType;}/**\n             @private\n             @method options\n             @param {String} fullName\n             @param {Object} options\n             */options(fullName,options){let normalizedName=this.normalize(fullName);this._options[normalizedName]=options;}getOptions(fullName){let normalizedName=this.normalize(fullName);let options=this._options[normalizedName];if(options===undefined&&this.fallback!==null){options=this.fallback.getOptions(fullName);}return options;}getOption(fullName,optionName){let options=this._options[fullName];if(options!==undefined&&options[optionName]!==undefined){return options[optionName];}let type=fullName.split(':')[0];!type&&assert$1('has type',type);// split always will have at least one value\noptions=this._typeOptions[type];if(options&&options[optionName]!==undefined){return options[optionName];}else if(this.fallback!==null){return this.fallback.getOption(fullName,optionName);}return undefined;}/**\n             @private\n             @method knownForType\n             @param {String} type the type to iterate over\n            */knownForType(type){let localKnown=makeDictionary(null);let registeredNames=Object.keys(this.registrations);for(let fullName of registeredNames){let itemType=fullName.split(':')[0];if(itemType===type){localKnown[fullName]=true;}}let fallbackKnown,resolverKnown;if(this.fallback!==null){fallbackKnown=this.fallback.knownForType(type);}if(this.resolver!==null&&this.resolver.knownForType){resolverKnown=this.resolver.knownForType(type);}return Object.assign({},fallbackKnown,localKnown,resolverKnown);}isValidFullName(fullName){return VALID_FULL_NAME_REGEXP.test(fullName);}}{const proto=Registry.prototype;proto.normalizeInjectionsHash=function(hash){let injections=[];for(let key in hash){if(Object.prototype.hasOwnProperty.call(hash,key)){let value=hash[key];!value&&assert$1('has value',value);let{specifier}=value;!this.isValidFullName(specifier)&&assert$1(`Expected a proper full name, given '${specifier}'`,this.isValidFullName(specifier));injections.push({property:key,specifier});}}return injections;};proto.validateInjections=function(injections){if(!injections){return;}for(let injection of injections){let{specifier}=injection;!this.has(specifier)&&assert$1(`Attempting to inject an unknown injection: '${specifier}'`,this.has(specifier));}};}function resolve$5(registry,_normalizedName){let normalizedName=_normalizedName;let cached=registry._resolveCache[normalizedName];if(cached!==undefined){return cached;}if(registry._failSet.has(normalizedName)){return;}let resolved;if(registry.resolver){resolved=registry.resolver.resolve(normalizedName);}if(resolved===undefined){resolved=registry.registrations[normalizedName];}if(resolved===undefined){registry._failSet.add(normalizedName);}else{registry._resolveCache[normalizedName]=resolved;}return resolved;}function has$1(registry,fullName){return registry.resolve(fullName)!==undefined;}const privateNames=makeDictionary(null);const privateSuffix=`${Math.random()}${Date.now()}`.replace('.','');function privatize(_ref6){let[fullName]=_ref6;!(arguments.length===1&&fullName)&&assert$1('has a single string argument',arguments.length===1&&fullName);let name=privateNames[fullName];if(name){return name;}let[type,rawName]=fullName.split(':');return privateNames[fullName]=intern$1(`${type}:${rawName}-${privateSuffix}`);}/*\n          Public API for the container is still in flux.\n          The public API, specified on the application namespace should be considered the stable API.\n          // @module container\n            @private\n          */const emberinternalsContainerIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,Container,INIT_FACTORY,Registry,getFactoryFor,privatize,setFactoryFor},Symbol.toStringTag,{value:'Module'});// this file gets replaced with the real value during the build\nconst Version='5.12.0';const emberVersion=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Version},Symbol.toStringTag,{value:'Module'});const emberVersionIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,VERSION:Version},Symbol.toStringTag,{value:'Module'});/*\n            This module exists to separate the @ember/string methods used\n            internally in ember-source, from those public methods that are\n            now deprecated and to be removed.\n          */const STRING_DASHERIZE_REGEXP=/[ _]/g;const STRING_DASHERIZE_CACHE=new Cache(1000,key=>decamelize(key).replace(STRING_DASHERIZE_REGEXP,'-'));const STRING_CLASSIFY_REGEXP_1=/^(-|_)+(.)?/;const STRING_CLASSIFY_REGEXP_2=/(.)(-|_|\\.|\\s)+(.)?/g;const STRING_CLASSIFY_REGEXP_3=/(^|\\/|\\.)([a-z])/g;const CLASSIFY_CACHE=new Cache(1000,str=>{let replace1=(_match,_separator,chr)=>chr?`_${chr.toUpperCase()}`:'';let replace2=(_match,initialChar,_separator,chr)=>initialChar+(chr?chr.toUpperCase():'');let parts=str.split('/');for(let i=0;i<parts.length;i++){parts[i]=parts[i].replace(STRING_CLASSIFY_REGEXP_1,replace1).replace(STRING_CLASSIFY_REGEXP_2,replace2);}return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3,(match/*, separator, chr */)=>match.toUpperCase());});const STRING_DECAMELIZE_REGEXP=/([a-z\\d])([A-Z])/g;const DECAMELIZE_CACHE=new Cache(1000,str=>str.replace(STRING_DECAMELIZE_REGEXP,'$1_$2').toLowerCase());/**\n           Defines string helper methods used internally in ember-source.\n\n           @class String\n           @private\n           *//**\n           Replaces underscores, spaces, or camelCase with dashes.\n\n           ```javascript\n           import { dasherize } from '@ember/-internals/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           @private\n           */function dasherize(str){return STRING_DASHERIZE_CACHE.get(str);}/**\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           @private\n           */function classify(str){return CLASSIFY_CACHE.get(str);}/**\n           Converts a camelized string into all lower case separated by underscores.\n\n           ```javascript\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           */function decamelize(str){return DECAMELIZE_CACHE.get(str);}const emberinternalsStringIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,classify,dasherize},Symbol.toStringTag,{value:'Module'});function isEnabled$1(options){return Object.hasOwnProperty.call(options.since,'enabled')||ENV._ALL_DEPRECATIONS_ENABLED;}let numEmberVersion=parseFloat((_ENV$_OVERRIDE_DEPREC=ENV._OVERRIDE_DEPRECATION_VERSION)!==null&&_ENV$_OVERRIDE_DEPREC!==void 0?_ENV$_OVERRIDE_DEPREC:Version);/* until must only be a minor version or major version */function emberVersionGte(until){let emberVersion=arguments.length>1&&arguments[1]!==undefined?arguments[1]:numEmberVersion;let significantUntil=until.replace(/(\\.0+)/g,'');return emberVersion>=parseFloat(significantUntil);}function isRemoved(options){return emberVersionGte(options.until);}function deprecation(options){return{options,test:!isEnabled$1(options),isEnabled:isEnabled$1(options)||isRemoved(options),isRemoved:isRemoved(options)};}/*\n            To add a deprecation, you must add a new entry to the `DEPRECATIONS` object.\n            The entry should be an object with the following properties:\n\n            * `id` (required): A string that uniquely identifies the deprecation. This\n              should be a short, descriptive name, typically dasherized.\n            * `for` (required): The string `ember-source` -- every deprecation from this\n              package is for `ember-source`.\n            * `since` (required): An object with `available` and `enabled`. `available` is\n              the first version of Ember that the deprecation is available in. `enabled` is\n              the version of Ember that the deprecation was first enabled. This is used as\n              a feature flag deprecations. For public APIs, the `enabled` value is added\n              only once the deprecation RFC is [Ready for Release](https://github.com/emberjs/rfcs#ready-for-release).\n            * `until` (required): The version of Ember that the deprecation will be removed\n            * `url` (required): A URL to the deprecation guide for the deprecation. This\n              URL can be constructed in advance of the deprecation being added to the\n              [deprecation app](https://github.com/ember-learn/deprecation-app) by\n              following this format: `https://deprecations.emberjs.com/deprecations/{{id}}`.\n\n            For example:\n            `deprecate` should then be called using the entry from the `DEPRECATIONS` object.\n\n            ```ts\n            import { DEPRECATIONS } from '@ember/-internals/deprecations';\n            //...\n\n            deprecateUntil(message, DEPRECATIONS.MY_DEPRECATION);\n            ```\n\n            `expectDeprecation` should also use the DEPRECATIONS object, but it should be noted\n            that it uses `isEnabled` instead of `test` because the expectations of `expectDeprecation`\n            are the opposite of `test`.\n\n            ```ts\n            expectDeprecation(\n              () => {\n                  assert.equal(foo, bar(), 'foo is equal to bar'); // something that triggers the deprecation\n              },\n              /matchesMessage/,\n              DEPRECATIONS.MY_DEPRECATION.isEnabled\n            );\n            ```\n\n            Tests can be conditionally run based on whether a deprecation is enabled or not:\n\n            ```ts\n              [`${testUnless(DEPRECATIONS.MY_DEPRECATION.isRemoved)} specific deprecated feature tested only in this test`]\n            ```\n\n            This test will be skipped when the MY_DEPRECATION is removed.\n            When adding a deprecation, we need to guard all the code that will eventually be removed, including tests.\n            For tests that are not specifically testing the deprecated feature, we need to figure out how to\n            test the behavior without encountering the deprecated feature, just as users would.\n           */const DEPRECATIONS={DEPRECATE_IMPORT_EMBER(importName){return deprecation({id:`deprecate-import-${dasherize(importName).toLowerCase()}-from-ember`,for:'ember-source',since:{available:'5.10.0'},until:'6.0.0',url:`https://deprecations.emberjs.com/id/import-${dasherize(importName).toLowerCase()}-from-ember`});},DEPRECATE_IMPLICIT_ROUTE_MODEL:deprecation({id:'deprecate-implicit-route-model',for:'ember-source',since:{available:'5.3.0',enabled:'5.3.0'},until:'6.0.0',url:'https://deprecations.emberjs.com/v5.x/#toc_deprecate-implicit-route-model'}),DEPRECATE_TEMPLATE_ACTION:deprecation({id:'template-action',url:'https://deprecations.emberjs.com/id/template-action',until:'6.0.0',for:'ember-source',since:{available:'5.9.0',enabled:'5.9.0'}}),DEPRECATE_COMPONENT_TEMPLATE_RESOLVING:deprecation({id:'component-template-resolving',url:'https://deprecations.emberjs.com/id/component-template-resolving',until:'6.0.0',for:'ember-source',since:{available:'5.10.0',enabled:'5.10.0'}}),DEPRECATE_ARRAY_PROTOTYPE_EXTENSIONS:deprecation({id:'deprecate-array-prototype-extensions',url:'https://deprecations.emberjs.com/id/deprecate-array-prototype-extensions',until:'6.0.0',for:'ember-source',since:{available:'5.10.0',enabled:'5.10.0'}})};function deprecateUntil(message,deprecation){const{options}=deprecation;!Boolean(options.for==='ember-source')&&assert$1('deprecateUntil must only be called for ember-source',Boolean(options.for==='ember-source'));if(deprecation.isRemoved){throw new Error(`The API deprecated by ${options.id} was removed in ember-source ${options.until}. The message was: ${message}. Please see ${options.url} for more details.`);}!deprecation.test&&deprecate$1(message,deprecation.test,options);}const{EXTEND_PROTOTYPES}=ENV;if(EXTEND_PROTOTYPES.Array!==false){deprecateUntil('Array prototype extensions are deprecated. Follow the deprecation guide for migration instructions, and set EmberENV.EXTEND_PROTOTYPES to false in your config/environment.js',DEPRECATIONS.DEPRECATE_ARRAY_PROTOTYPE_EXTENSIONS);}const emberinternalsDeprecationsIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,DEPRECATIONS,deprecateUntil,emberVersionGte,isRemoved},Symbol.toStringTag,{value:'Module'});let onerror;const onErrorTarget={get onerror(){return onerror;}};// Ember.onerror getter\nfunction getOnerror(){return onerror;}// Ember.onerror setter\nfunction setOnerror(handler){onerror=handler;}let dispatchOverride=null;// allows testing adapter to override dispatch\nfunction getDispatchOverride(){return dispatchOverride;}function setDispatchOverride(handler){dispatchOverride=handler;}const emberinternalsErrorHandlingIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,getDispatchOverride,getOnerror,onErrorTarget,setDispatchOverride,setOnerror},Symbol.toStringTag,{value:'Module'});const ContentType={Component:0,Helper:1,String:2,Empty:3,SafeString:4,Fragment:5,Node:6,Other:8},CurriedTypes={Component:0,Helper:1,Modifier:2},InternalComponentCapabilities={Empty:0,dynamicLayout:1,dynamicTag:2,prepareArgs:4,createArgs:8,attributeHook:16,elementHook:32,dynamicScope:64,createCaller:128,updateHook:256,createInstance:512,wrapped:1024,willDestroy:2048,hasSubOwner:4096},ARG_SHIFT=8,MAX_SIZE=2147483647,TYPE_SIZE=255,TYPE_MASK=255,OPERAND_LEN_MASK=768,MACHINE_MASK=1024,MachineOp={PushFrame:0,PopFrame:1,InvokeVirtual:2,InvokeStatic:3,Jump:4,Return:5,ReturnTo:6,Size:7},Op={Helper:16,SetNamedVariables:17,SetBlocks:18,SetVariable:19,SetBlock:20,GetVariable:21,GetProperty:22,GetBlock:23,SpreadBlock:24,HasBlock:25,HasBlockParams:26,Concat:27,Constant:28,ConstantReference:29,Primitive:30,PrimitiveReference:31,ReifyU32:32,Dup:33,Pop:34,Load:35,Fetch:36,RootScope:37,VirtualRootScope:38,ChildScope:39,PopScope:40,Text:41,Comment:42,AppendHTML:43,AppendSafeHTML:44,AppendDocumentFragment:45,AppendNode:46,AppendText:47,OpenElement:48,OpenDynamicElement:49,PushRemoteElement:50,StaticAttr:51,DynamicAttr:52,ComponentAttr:53,FlushElement:54,CloseElement:55,PopRemoteElement:56,Modifier:57,BindDynamicScope:58,PushDynamicScope:59,PopDynamicScope:60,CompileBlock:61,PushBlockScope:62,PushSymbolTable:63,InvokeYield:64,JumpIf:65,JumpUnless:66,JumpEq:67,AssertSame:68,Enter:69,Exit:70,ToBoolean:71,EnterList:72,ExitList:73,Iterate:74,Main:75,ContentType:76,Curry:77,PushComponentDefinition:78,PushDynamicComponentInstance:79,ResolveDynamicComponent:80,ResolveCurriedComponent:81,PushArgs:82,PushEmptyArgs:83,PopArgs:84,PrepareArgs:85,CaptureArgs:86,CreateComponent:87,RegisterComponentDestructor:88,PutComponentOperations:89,GetComponentSelf:90,GetComponentTagName:91,GetComponentLayout:92,BindEvalScope:93,SetupForEval:94,PopulateLayout:95,InvokeComponentLayout:96,BeginComponentTransaction:97,CommitComponentTransaction:98,DidCreateElement:99,DidRenderLayout:100,ResolveMaybeLocal:102,Debugger:103,Size:104,StaticComponentAttr:105,DynamicContentType:106,DynamicHelper:107,DynamicModifier:108,IfInline:109,Not:110,GetDynamicVar:111,Log:112};function isMachineOp(value){return value>=0&&value<=15;}function isOp(value){return value>=16;}/**\n           * Registers\n           *\n           * For the most part, these follows MIPS naming conventions, however the\n           * register numbers are different.\n           */// $0 or $pc (program counter): pointer into `program` for the next insturction; -1 means exit\nconst $pc=0,$ra=1,$fp=2,$sp=3,$s0=4,$s1=5,$t0=6,$t1=7,$v0=8;// $1 or $ra (return address): pointer into `program` for the return\nlet MachineRegister=function(MachineRegister){return MachineRegister[MachineRegister.pc=0]=\"pc\",MachineRegister[MachineRegister.ra=1]=\"ra\",MachineRegister[MachineRegister.fp=2]=\"fp\",MachineRegister[MachineRegister.sp=3]=\"sp\",MachineRegister;}({});function isLowLevelRegister(register){return register<=3;}let SavedRegister=function(SavedRegister){return SavedRegister[SavedRegister.s0=4]=\"s0\",SavedRegister[SavedRegister.s1=5]=\"s1\",SavedRegister;}({}),TemporaryRegister=function(TemporaryRegister){return TemporaryRegister[TemporaryRegister.t0=6]=\"t0\",TemporaryRegister[TemporaryRegister.t1=7]=\"t1\",TemporaryRegister;}({});const glimmerVm=/*#__PURE__*/Object.defineProperty({__proto__:null,$fp,$pc,$ra,$s0,$s1,$sp,$t0,$t1,$v0,ARG_SHIFT,ContentType,CurriedType:CurriedTypes,CurriedTypes,InternalComponentCapabilities,InternalComponentCapability:InternalComponentCapabilities,MACHINE_MASK,MAX_SIZE,MachineOp,MachineRegister,OPERAND_LEN_MASK,Op,SavedRegister,TYPE_MASK,TYPE_SIZE,TemporaryRegister,isLowLevelRegister,isMachineOp,isOp},Symbol.toStringTag,{value:'Module'});class InstructionEncoderImpl{constructor(buffer){_defineProperty(this,\"size\",0);this.buffer=buffer;}encode(type,machine){for(var _len6=arguments.length,args=new Array(_len6>2?_len6-2:0),_key7=2;_key7<_len6;_key7++){args[_key7-2]=arguments[_key7];}if(type>TYPE_SIZE)throw new Error(`Opcode type over 8-bits. Got ${type}.`);let first=type|machine|arguments.length-2<<ARG_SHIFT;this.buffer.push(first);for(const op of args){if(\"number\"==typeof op&&op>MAX_SIZE)throw new Error(`Operand over 32-bits. Got ${op}.`);this.buffer.push(op);}this.size=this.buffer.length;}patch(position,target){if(-1!==this.buffer[position+1])throw new Error(\"Trying to patch operand in populated slot instead of a reserved slot.\");this.buffer[position+1]=target;}}const glimmerEncoder=/*#__PURE__*/Object.defineProperty({__proto__:null,InstructionEncoderImpl},Symbol.toStringTag,{value:'Module'});const opcodes={Append:1,TrustingAppend:2,Comment:3,Modifier:4,StrictModifier:5,Block:6,StrictBlock:7,Component:8,OpenElement:10,OpenElementWithSplat:11,FlushElement:12,CloseElement:13,StaticAttr:14,DynamicAttr:15,ComponentAttr:16,AttrSplat:17,Yield:18,DynamicArg:20,StaticArg:21,TrustingDynamicAttr:22,TrustingComponentAttr:23,StaticComponentAttr:24,Debugger:26,Undefined:27,Call:28,Concat:29,GetSymbol:30,GetLexicalSymbol:32,GetStrictKeyword:31,GetFreeAsComponentOrHelperHead:35,GetFreeAsHelperHead:37,GetFreeAsModifierHead:38,GetFreeAsComponentHead:39,InElement:40,If:41,Each:42,Let:44,WithDynamicVars:45,InvokeComponent:46,HasBlock:48,HasBlockParams:49,Curry:50,Not:51,IfInline:52,GetDynamicVar:53,Log:54},resolution={Strict:0,ResolveAsComponentOrHelperHead:1,ResolveAsHelperHead:5,ResolveAsModifierHead:6,ResolveAsComponentHead:7},WellKnownAttrNames={class:0,id:1,value:2,name:3,type:4,style:5,href:6},WellKnownTagNames={div:0,span:1,p:2,a:3};// eslint-disable-next-line @typescript-eslint/naming-convention\nfunction is(variant){return function(value){return Array.isArray(value)&&value[0]===variant;};}// Statements\nconst isFlushElement=is(opcodes.FlushElement);function isAttribute(val){return val[0]===opcodes.StaticAttr||val[0]===opcodes.DynamicAttr||val[0]===opcodes.TrustingDynamicAttr||val[0]===opcodes.ComponentAttr||val[0]===opcodes.StaticComponentAttr||val[0]===opcodes.TrustingComponentAttr||val[0]===opcodes.AttrSplat||val[0]===opcodes.Modifier;}function isStringLiteral(expr){return\"string\"==typeof expr;}function getStringFromValue(expr){return expr;}function isArgument(val){return val[0]===opcodes.StaticArg||val[0]===opcodes.DynamicArg;}function isHelper(expr){return Array.isArray(expr)&&expr[0]===opcodes.Call;}// Expressions\nconst isGet=is(opcodes.GetSymbol);const glimmerWireFormat=/*#__PURE__*/Object.defineProperty({__proto__:null,SexpOpcodes:opcodes,VariableResolutionContext:resolution,WellKnownAttrNames,WellKnownTagNames,getStringFromValue,is,isArgument,isAttribute,isFlushElement,isGet,isHelper,isStringLiteral},Symbol.toStringTag,{value:'Module'});/**\n           * This package contains global context functions for Glimmer. These functions\n           * are set by the embedding environment and must be set before initial render.\n           *\n           * These functions should meet the following criteria:\n           *\n           * - Must be provided by the embedder, due to having framework specific\n           *   behaviors (e.g. interop with classic Ember behaviors that should not be\n           *   upstreamed) or to being out of scope for the VM (e.g. scheduling a\n           *   revalidation)\n           * - Never differ between render roots\n           * - Never change over time\n           *\n           *///////////\n/**\n           * Interfaces\n           *\n           * TODO: Move these into @glimmer/interfaces, move @glimmer/interfaces to\n           * @glimmer/internal-interfaces.\n           *///////////\n/**\n           * Schedules a VM revalidation.\n           *\n           * Note: this has a default value so that tags can warm themselves when first loaded.\n           */let scheduleDestroy,scheduleDestroyed,toIterator$1,toBool$1,getProp,setProp,getPath$1,setPath,warnIfStyleNotTrusted,assert,deprecate,assertGlobalContextWasSet,testOverrideGlobalContext,scheduleRevalidate=()=>{},globalContextWasSet=!1;/**\n           * Schedules a destructor to run\n           *\n           * @param destroyable The destroyable being destroyed\n           * @param destructor The destructor being scheduled\n           */function setGlobalContext(context){{if(globalContextWasSet)throw new Error(\"Attempted to set the global context twice. This should only be set once.\");globalContextWasSet=!0;}scheduleRevalidate=context.scheduleRevalidate,scheduleDestroy=context.scheduleDestroy,scheduleDestroyed=context.scheduleDestroyed,toIterator$1=context.toIterator,toBool$1=context.toBool,getProp=context.getProp,setProp=context.setProp,getPath$1=context.getPath,setPath=context.setPath,warnIfStyleNotTrusted=context.warnIfStyleNotTrusted,assert=context.assert,deprecate=context.deprecate;}assertGlobalContextWasSet=()=>{if(!1===globalContextWasSet)throw new Error(\"The global context for Glimmer VM was not set. You must set these global context functions to let Glimmer VM know how to accomplish certain operations. You can do this by importing `setGlobalContext` from `@glimmer/global-context`\");},testOverrideGlobalContext=context=>{let originalGlobalContext=globalContextWasSet?{scheduleRevalidate:scheduleRevalidate,scheduleDestroy:scheduleDestroy,scheduleDestroyed:scheduleDestroyed,toIterator:toIterator$1,toBool:toBool$1,getProp:getProp,setProp:setProp,getPath:getPath$1,setPath:setPath,warnIfStyleNotTrusted:warnIfStyleNotTrusted,assert:assert,deprecate:deprecate}:null;return globalContextWasSet=null!==context,// We use `undefined as any` here to unset the values when resetting the\n// context at the end of a test.\nscheduleRevalidate=(context===null||context===void 0?void 0:context.scheduleRevalidate)||void 0,scheduleDestroy=(context===null||context===void 0?void 0:context.scheduleDestroy)||void 0,scheduleDestroyed=(context===null||context===void 0?void 0:context.scheduleDestroyed)||void 0,toIterator$1=(context===null||context===void 0?void 0:context.toIterator)||void 0,toBool$1=(context===null||context===void 0?void 0:context.toBool)||void 0,getProp=(context===null||context===void 0?void 0:context.getProp)||void 0,setProp=(context===null||context===void 0?void 0:context.setProp)||void 0,getPath$1=(context===null||context===void 0?void 0:context.getPath)||void 0,setPath=(context===null||context===void 0?void 0:context.setPath)||void 0,warnIfStyleNotTrusted=(context===null||context===void 0?void 0:context.warnIfStyleNotTrusted)||void 0,assert=(context===null||context===void 0?void 0:context.assert)||void 0,deprecate=(context===null||context===void 0?void 0:context.deprecate)||void 0,originalGlobalContext;};const glimmerGlobalContext=/*#__PURE__*/Object.defineProperty({__proto__:null,get assert(){return assert;},get assertGlobalContextWasSet(){return assertGlobalContextWasSet;},default:setGlobalContext,get deprecate(){return deprecate;},get getPath(){return getPath$1;},get getProp(){return getProp;},get scheduleDestroy(){return scheduleDestroy;},get scheduleDestroyed(){return scheduleDestroyed;},get scheduleRevalidate(){return scheduleRevalidate;},get setPath(){return setPath;},get setProp(){return setProp;},get testOverrideGlobalContext(){return testOverrideGlobalContext;},get toBool(){return toBool$1;},get toIterator(){return toIterator$1;},get warnIfStyleNotTrusted(){return warnIfStyleNotTrusted;}},Symbol.toStringTag,{value:'Module'});var DestroyingState=function(DestroyingState){return DestroyingState[DestroyingState.Live=0]=\"Live\",DestroyingState[DestroyingState.Destroying=1]=\"Destroying\",DestroyingState[DestroyingState.Destroyed=2]=\"Destroyed\",DestroyingState;}(DestroyingState||{});let enableDestroyableTracking,assertDestroyablesDestroyed,DESTROYABLE_META=new WeakMap();function push(collection,newItem){return null===collection?newItem:Array.isArray(collection)?(collection.push(newItem),collection):[collection,newItem];}function iterate$1(collection,fn){Array.isArray(collection)?collection.forEach(fn):null!==collection&&fn(collection);}function remove(collection,item,message){{let collectionIsItem=collection===item,collectionContainsItem=Array.isArray(collection)&&-1!==collection.indexOf(item);if(!collectionIsItem&&!collectionContainsItem)throw new Error(String(message));}if(Array.isArray(collection)&&collection.length>1){let index=collection.indexOf(item);return collection.splice(index,1),collection;}return null;}function getDestroyableMeta(destroyable){let meta=DESTROYABLE_META.get(destroyable);return void 0===meta&&(meta={parents:null,children:null,eagerDestructors:null,destructors:null,state:DestroyingState.Live},meta.source=destroyable,DESTROYABLE_META.set(destroyable,meta)),meta;}function associateDestroyableChild(parent,child){if(isDestroying(parent))throw new Error(\"Attempted to associate a destroyable child with an object that is already destroying or destroyed\");let parentMeta=getDestroyableMeta(parent),childMeta=getDestroyableMeta(child);return parentMeta.children=push(parentMeta.children,child),childMeta.parents=push(childMeta.parents,parent),child;}function registerDestructor$1(destroyable,destructor){let eager=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;if(isDestroying(destroyable))throw new Error(\"Attempted to register a destructor with an object that is already destroying or destroyed\");let meta=getDestroyableMeta(destroyable),destructorsKey=!0===eager?\"eagerDestructors\":\"destructors\";return meta[destructorsKey]=push(meta[destructorsKey],destructor),destructor;}function unregisterDestructor$1(destroyable,destructor){let eager=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;if(isDestroying(destroyable))throw new Error(\"Attempted to unregister a destructor with an object that is already destroying or destroyed\");let meta=getDestroyableMeta(destroyable),destructorsKey=!0===eager?\"eagerDestructors\":\"destructors\";meta[destructorsKey]=remove(meta[destructorsKey],destructor,\"attempted to remove a destructor that was not registered with the destroyable\");}////////////\nfunction destroy(destroyable){let meta=getDestroyableMeta(destroyable);if(meta.state>=DestroyingState.Destroying)return;let{parents:parents,children:children,eagerDestructors:eagerDestructors,destructors:destructors}=meta;meta.state=DestroyingState.Destroying,iterate$1(children,destroy),iterate$1(eagerDestructors,destructor=>destructor(destroyable)),iterate$1(destructors,destructor=>scheduleDestroy(destroyable,destructor)),scheduleDestroyed(()=>{iterate$1(parents,parent=>function(child,parent){let parentMeta=getDestroyableMeta(parent);parentMeta.state===DestroyingState.Live&&(parentMeta.children=remove(parentMeta.children,child,\"attempted to remove child from parent, but the parent's children did not contain the child. This is likely a bug with destructors.\"));}(destroyable,parent)),meta.state=DestroyingState.Destroyed;});}function destroyChildren(destroyable){let{children:children}=getDestroyableMeta(destroyable);iterate$1(children,destroy);}function _hasDestroyableChildren(destroyable){let meta=DESTROYABLE_META.get(destroyable);return void 0!==meta&&null!==meta.children;}function isDestroying(destroyable){let meta=DESTROYABLE_META.get(destroyable);return void 0!==meta&&meta.state>=DestroyingState.Destroying;}function isDestroyed(destroyable){let meta=DESTROYABLE_META.get(destroyable);return void 0!==meta&&meta.state>=DestroyingState.Destroyed;}////////////\n{let isTesting=!1;enableDestroyableTracking=()=>{if(isTesting)// Reset destroyable meta just in case, before throwing the error\nthrow DESTROYABLE_META=new WeakMap(),new Error(\"Attempted to start destroyable testing, but you did not end the previous destroyable test. Did you forget to call `assertDestroyablesDestroyed()`\");isTesting=!0,DESTROYABLE_META=new Map();},assertDestroyablesDestroyed=()=>{if(!isTesting)throw new Error(\"Attempted to assert destroyables destroyed, but you did not start a destroyable test. Did you forget to call `enableDestroyableTracking()`\");isTesting=!1;let map=DESTROYABLE_META;DESTROYABLE_META=new WeakMap();let undestroyed=[];if(map.forEach(meta=>{meta.state!==DestroyingState.Destroyed&&undestroyed.push(meta.source);}),undestroyed.length>0){let objectsToString=undestroyed.map(debugToString$1).join(\"\\n    \"),error=new Error(`Some destroyables were not destroyed during this test:\\n    ${objectsToString}`);throw error.destroyables=undestroyed,error;}};}const glimmerDestroyable=/*#__PURE__*/Object.defineProperty({__proto__:null,_hasDestroyableChildren,get assertDestroyablesDestroyed(){return assertDestroyablesDestroyed;},associateDestroyableChild,destroy,destroyChildren,get enableDestroyableTracking(){return enableDestroyableTracking;},isDestroyed,isDestroying,registerDestructor:registerDestructor$1,unregisterDestructor:unregisterDestructor$1},Symbol.toStringTag,{value:'Module'});function unwrap(val){if(null==val)throw new Error(\"Expected value to be present\");return val;}const debug$1={};{let CONSUMED_TAGS=null;const TRANSACTION_STACK=[],TRANSACTION_ENV={debugMessage(obj,keyName){let objName;return objName=\"function\"==typeof obj?obj.name:\"object\"==typeof obj&&null!==obj?`(an instance of ${obj.constructor&&obj.constructor.name||\"(unknown class)\"})`:void 0===obj?\"(an unknown tag)\":String(obj),`You attempted to update ${keyName?`\\`${keyName}\\` on \\`${objName}\\``:`\\`${objName}\\``}, 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.`;}};/////////\ndebug$1.setTrackingTransactionEnv=env=>Object.assign(TRANSACTION_ENV,env),debug$1.beginTrackingTransaction=_debugLabel=>{var _TRANSACTION_STACK;CONSUMED_TAGS=CONSUMED_TAGS||new WeakMap();let debugLabel=_debugLabel||void 0,parent=(_TRANSACTION_STACK=TRANSACTION_STACK[TRANSACTION_STACK.length-1])!==null&&_TRANSACTION_STACK!==void 0?_TRANSACTION_STACK:null;TRANSACTION_STACK.push({parent:parent,debugLabel:debugLabel});},debug$1.endTrackingTransaction=()=>{if(0===TRANSACTION_STACK.length)throw new Error(\"attempted to close a tracking transaction, but one was not open\");TRANSACTION_STACK.pop(),0===TRANSACTION_STACK.length&&(CONSUMED_TAGS=null);},debug$1.resetTrackingTransaction=()=>{let stack=\"\";return TRANSACTION_STACK.length>0&&(stack=debug$1.logTrackingStack(TRANSACTION_STACK[TRANSACTION_STACK.length-1])),TRANSACTION_STACK.splice(0,TRANSACTION_STACK.length),CONSUMED_TAGS=null,stack;},/**\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            */debug$1.runInTrackingTransaction=(fn,debugLabel)=>{debug$1.beginTrackingTransaction(debugLabel);let didError=!0;try{let value=fn();return didError=!1,value;}finally{!0!==didError&&debug$1.endTrackingTransaction();// if (id !== TRANSACTION_STACK.length) {\n//   throw new Error(\n//     `attempted to close a tracking transaction (${id}), but it was not the last transaction (${TRANSACTION_STACK.length})`\n//   );\n// }\n}};let nthIndex=function(str,pattern,n){let startingPos=arguments.length>3&&arguments[3]!==undefined?arguments[3]:-1;let i=startingPos;for(;n-->0&&i++<str.length&&(i=str.indexOf(pattern,i),!(i<0)););return i;},makeTrackingErrorMessage=(transaction,obj,keyName)=>{let message=[TRANSACTION_ENV.debugMessage(obj,keyName&&String(keyName))];return message.push(`\\`${String(keyName)}\\` was first used:`),message.push(debug$1.logTrackingStack(transaction)),message.push(\"Stack trace for the update:\"),message.join(\"\\n\\n\");};debug$1.logTrackingStack=transaction=>{let trackingStack=[],current=transaction||TRANSACTION_STACK[TRANSACTION_STACK.length-1];if(void 0===current)return\"\";for(;current;)current.debugLabel&&trackingStack.unshift(current.debugLabel),current=current.parent;return trackingStack.map((label,index)=>\" \".repeat(2*index)+label).join(\"\\n\");},debug$1.markTagAsConsumed=_tag=>{if(!CONSUMED_TAGS||CONSUMED_TAGS.has(_tag))return;CONSUMED_TAGS.set(_tag,getLast(asPresentArray(TRANSACTION_STACK)));// 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.\nlet subtag=_tag.subtag;subtag&&debug$1.markTagAsConsumed&&(Array.isArray(subtag)?subtag.forEach(debug$1.markTagAsConsumed):debug$1.markTagAsConsumed(subtag));},debug$1.assertTagNotConsumed=(tag,obj,keyName)=>{if(null===CONSUMED_TAGS)return;let transaction=CONSUMED_TAGS.get(tag);var error;//////////\nif(transaction)// 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.\ntry{assert(!1,makeTrackingErrorMessage(transaction,obj,keyName));}catch(e){if(\"object\"==typeof(error=e)&&null!==error&&\"stack\"in error&&\"string\"==typeof error.stack){let updateStackBegin=e.stack.indexOf(\"Stack trace for the update:\");if(-1!==updateStackBegin){let start=nthIndex(e.stack,\"\\n\",1,updateStackBegin),end=nthIndex(e.stack,\"\\n\",4,updateStackBegin);e.stack=e.stack.substr(0,start)+e.stack.substr(end);}}throw e;}};}const CONSTANT=0,INITIAL=1,VOLATILE=NaN;let $REVISION=1;function bump(){$REVISION++;}//////////\nconst UPDATABLE_TAG_ID=1,COMPUTE$1=Symbol(\"TAG_COMPUTE\");//////////\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           */function valueForTag(tag){return tag[COMPUTE$1]();}/**\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           */function validateTag(tag,snapshot){return snapshot>=tag[COMPUTE$1]();}//////////\nconst TYPE$1=Symbol(\"TAG_TYPE\");// this is basically a const\nlet ALLOW_CYCLES;ALLOW_CYCLES=new WeakMap();class MonomorphicTagImpl{static combine(tags){switch(tags.length){case 0:return CONSTANT_TAG;case 1:return tags[0];default:{let tag=new MonomorphicTagImpl(2);return tag.subtag=tags,tag;}}}constructor(type){_defineProperty(this,\"revision\",1);_defineProperty(this,\"lastChecked\",1);_defineProperty(this,\"lastValue\",1);_defineProperty(this,\"isUpdating\",!1);_defineProperty(this,\"subtag\",null);_defineProperty(this,\"subtagBufferCache\",null);_defineProperty(this,TYPE$1,void 0);this[TYPE$1]=type;}[COMPUTE$1](){let{lastChecked:lastChecked}=this;if(!0===this.isUpdating){if(void 0!==ALLOW_CYCLES&&!ALLOW_CYCLES.has(this))throw new Error(\"Cycles in tags are not allowed\");this.lastChecked=++$REVISION;}else if(lastChecked!==$REVISION){this.isUpdating=!0,this.lastChecked=$REVISION;try{let{subtag:subtag,revision:revision}=this;if(null!==subtag)if(Array.isArray(subtag))for(const tag of subtag){let value=tag[COMPUTE$1]();revision=Math.max(value,revision);}else{let subtagValue=subtag[COMPUTE$1]();subtagValue===this.subtagBufferCache?revision=Math.max(revision,this.lastValue):(// Clear the temporary buffer cache\nthis.subtagBufferCache=null,revision=Math.max(revision,subtagValue));}this.lastValue=revision;}finally{this.isUpdating=!1;}}return this.lastValue;}static updateTag(_tag,_subtag){if(_tag[TYPE$1]!==UPDATABLE_TAG_ID)throw new Error(\"Attempted to update a tag that was not updatable\");// TODO: TS 3.7 should allow us to do this via assertion\nlet tag=_tag,subtag=_subtag;subtag===CONSTANT_TAG?tag.subtag=null:(// There are two different possibilities when updating a subtag:\n// 1. subtag[COMPUTE]() <= tag[COMPUTE]();\n// 2. subtag[COMPUTE]() > tag[COMPUTE]();\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// 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.\ntag.subtagBufferCache=subtag[COMPUTE$1](),tag.subtag=subtag);}static dirtyTag(tag,disableConsumptionAssertion){if(tag[TYPE$1]!==UPDATABLE_TAG_ID&&0!==tag[TYPE$1])throw new Error(\"Attempted to dirty a tag that was not dirtyable\");!0!==disableConsumptionAssertion&&// Usually by this point, we've already asserted with better error information,\n// but this is our last line of defense.\nunwrap(debug$1.assertTagNotConsumed)(tag),tag.revision=++$REVISION,scheduleRevalidate();}}const DIRTY_TAG$1=MonomorphicTagImpl.dirtyTag,UPDATE_TAG=MonomorphicTagImpl.updateTag;//////////\nfunction createTag(){return new MonomorphicTagImpl(0);}function createUpdatableTag(){return new MonomorphicTagImpl(UPDATABLE_TAG_ID);}//////////\nconst CONSTANT_TAG=new MonomorphicTagImpl(3);function isConstTag(tag){return tag===CONSTANT_TAG;}//////////\nclass VolatileTag{constructor(){_defineProperty(this,TYPE$1,100);}[COMPUTE$1](){return NaN;}}const VOLATILE_TAG=new VolatileTag();//////////\nclass CurrentTag{constructor(){_defineProperty(this,TYPE$1,101);}[COMPUTE$1](){return $REVISION;}}const CURRENT_TAG=new CurrentTag(),combine=MonomorphicTagImpl.combine;//////////\n// Warm\nlet tag1=createUpdatableTag(),tag2=createUpdatableTag(),tag3=createUpdatableTag();valueForTag(tag1),DIRTY_TAG$1(tag1),valueForTag(tag1),UPDATE_TAG(tag1,combine([tag2,tag3])),valueForTag(tag1),DIRTY_TAG$1(tag2),valueForTag(tag1),DIRTY_TAG$1(tag3),valueForTag(tag1),UPDATE_TAG(tag1,tag3),valueForTag(tag1),DIRTY_TAG$1(tag3),valueForTag(tag1);///////////\nconst TRACKED_TAGS=new WeakMap();function dirtyTagFor(obj,key,meta){if((\"object\"!=typeof(u=obj)||null===u)&&\"function\"!=typeof u)throw new Error(\"BUG: Can't update a tag for a primitive\");var u;let tags=void 0===meta?TRACKED_TAGS.get(obj):meta;// No tags have been setup for this object yet, return\nif(void 0===tags)return;// Dirty the tag for the specific property if it exists\nlet propertyTag=tags.get(key);void 0!==propertyTag&&(unwrap(debug$1.assertTagNotConsumed)(propertyTag,obj,key),DIRTY_TAG$1(propertyTag,!0));}function tagMetaFor(obj){let tags=TRACKED_TAGS.get(obj);return void 0===tags&&(tags=new Map(),TRACKED_TAGS.set(obj,tags)),tags;}function tagFor(obj,key,meta){let tags=void 0===meta?tagMetaFor(obj):meta,tag=tags.get(key);return void 0===tag&&(tag=createUpdatableTag(),tags.set(key,tag)),tag;}/**\n           * An object that that tracks @tracked properties that were consumed.\n           */class Tracker{constructor(){_defineProperty(this,\"tags\",new Set());_defineProperty(this,\"last\",null);}add(tag){tag!==CONSTANT_TAG&&(this.tags.add(tag),unwrap(debug$1.markTagAsConsumed)(tag),this.last=tag);}combine(){let{tags:tags}=this;return 0===tags.size?CONSTANT_TAG:1===tags.size?this.last:combine(Array.from(this.tags));}}/**\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           */let CURRENT_TRACKER=null;const OPEN_TRACK_FRAMES=[];function beginTrackFrame(debuggingContext){OPEN_TRACK_FRAMES.push(CURRENT_TRACKER),CURRENT_TRACKER=new Tracker(),unwrap(debug$1.beginTrackingTransaction)(debuggingContext);}function endTrackFrame(){let current=CURRENT_TRACKER;{if(0===OPEN_TRACK_FRAMES.length)throw new Error(\"attempted to close a tracking frame, but one was not open\");unwrap(debug$1.endTrackingTransaction)();}return CURRENT_TRACKER=OPEN_TRACK_FRAMES.pop()||null,unwrap(current).combine();}function beginUntrackFrame(){OPEN_TRACK_FRAMES.push(CURRENT_TRACKER),CURRENT_TRACKER=null;}function endUntrackFrame(){if(0===OPEN_TRACK_FRAMES.length)throw new Error(\"attempted to close a tracking frame, but one was not open\");CURRENT_TRACKER=OPEN_TRACK_FRAMES.pop()||null;}// This function is only for handling errors and resetting to a valid state\nfunction resetTracking(){for(;OPEN_TRACK_FRAMES.length>0;)OPEN_TRACK_FRAMES.pop();if(CURRENT_TRACKER=null,true/* DEBUG */)return unwrap(debug$1.resetTrackingTransaction)();}function isTracking(){return null!==CURRENT_TRACKER;}function consumeTag(tag){null!==CURRENT_TRACKER&&CURRENT_TRACKER.add(tag);}// public interface\nconst FN=Symbol(\"FN\"),LAST_VALUE=Symbol(\"LAST_VALUE\"),TAG=Symbol(\"TAG\"),SNAPSHOT=Symbol(\"SNAPSHOT\"),DEBUG_LABEL=Symbol(\"DEBUG_LABEL\");function createCache(fn,debuggingLabel){if(\"function\"!=typeof fn)throw new Error(`createCache() must be passed a function as its first parameter. Called with: ${String(fn)}`);let cache={[FN]:fn,[LAST_VALUE]:void 0,[TAG]:void 0,[SNAPSHOT]:-1};return cache[DEBUG_LABEL]=debuggingLabel,cache;}function getValue(cache){assertCache(cache,\"getValue\");let fn=cache[FN],tag=cache[TAG],snapshot=cache[SNAPSHOT];if(void 0!==tag&&validateTag(tag,snapshot))consumeTag(tag);else{beginTrackFrame();try{cache[LAST_VALUE]=fn();}finally{tag=endTrackFrame(),cache[TAG]=tag,cache[SNAPSHOT]=valueForTag(tag),consumeTag(tag);}}return cache[LAST_VALUE];}function isConst(cache){assertCache(cache,\"isConst\");let tag=cache[TAG];// replace this with `expect` when we can\nreturn function(tag,cache){if(void 0===tag)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// 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(tag,cache),isConstTag(tag);}function assertCache(value,fnName){if(\"object\"!=typeof value||null===value||!(FN in value))throw new Error(`${fnName}() can only be used on an instance of a cache created with createCache(). Called with: ${String(value)}`);}function track(block,debugLabel){let tag;beginTrackFrame(debugLabel);try{block();}finally{tag=endTrackFrame();}return tag;}// 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.\nfunction untrack(callback){beginUntrackFrame();try{return callback();}finally{endUntrackFrame();}}function trackedData(key,initializer){let values=new WeakMap(),hasInitializer=\"function\"==typeof initializer;return{getter:function(self){let value;// If the field has never been initialized, we should initialize it\nreturn consumeTag(tagFor(self,key)),hasInitializer&&!values.has(self)?(value=initializer.call(self),values.set(self,value)):value=values.get(self),value;},setter:function(self,value){dirtyTagFor(self,key),values.set(self,value);}};}const GLIMMER_VALIDATOR_REGISTRATION=Symbol(\"GLIMMER_VALIDATOR_REGISTRATION\"),globalObj=function(){if(\"undefined\"!=typeof globalThis)return globalThis;if(\"undefined\"!=typeof self)return self;if(\"undefined\"!=typeof window)return window;if(\"undefined\"!=typeof global)return global;throw new Error(\"unable to locate global object\");}();if(!0===globalObj[GLIMMER_VALIDATOR_REGISTRATION])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.\");globalObj[GLIMMER_VALIDATOR_REGISTRATION]=!0;const glimmerValidator=/*#__PURE__*/Object.defineProperty({__proto__:null,get ALLOW_CYCLES(){return ALLOW_CYCLES;},COMPUTE:COMPUTE$1,CONSTANT,CONSTANT_TAG,CURRENT_TAG,CurrentTag,INITIAL,VOLATILE,VOLATILE_TAG,VolatileTag,beginTrackFrame,beginUntrackFrame,bump,combine,consumeTag,createCache,createTag,createUpdatableTag,debug:debug$1,dirtyTag:DIRTY_TAG$1,dirtyTagFor,endTrackFrame,endUntrackFrame,getValue,isConst,isConstTag,isTracking,resetTracking,tagFor,tagMetaFor,track,trackedData,untrack,updateTag:UPDATE_TAG,validateTag,valueForTag},Symbol.toStringTag,{value:'Module'});const REFERENCE=Symbol(\"REFERENCE\"),COMPUTE=1,UNBOUND=2;//////////\nclass ReferenceImpl{constructor(type){_defineProperty(this,REFERENCE,void 0);_defineProperty(this,\"tag\",null);_defineProperty(this,\"lastRevision\",INITIAL);_defineProperty(this,\"lastValue\",void 0);_defineProperty(this,\"children\",null);_defineProperty(this,\"compute\",null);_defineProperty(this,\"update\",null);_defineProperty(this,\"debugLabel\",void 0);this[REFERENCE]=type;}}function createPrimitiveRef(value){const ref=new ReferenceImpl(UNBOUND);return ref.tag=CONSTANT_TAG,ref.lastValue=value,ref.debugLabel=String(value),ref;}const UNDEFINED_REFERENCE=createPrimitiveRef(void 0),NULL_REFERENCE=createPrimitiveRef(null),TRUE_REFERENCE=createPrimitiveRef(!0),FALSE_REFERENCE=createPrimitiveRef(!1);function createConstRef(value,debugLabel){const ref=new ReferenceImpl(0);return ref.lastValue=value,ref.tag=CONSTANT_TAG,ref.debugLabel=debugLabel,ref;}function createUnboundRef(value,debugLabel){const ref=new ReferenceImpl(UNBOUND);return ref.lastValue=value,ref.tag=CONSTANT_TAG,ref.debugLabel=debugLabel,ref;}function createComputeRef(compute){let update=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;let debugLabel=arguments.length>2&&arguments[2]!==undefined?arguments[2]:\"unknown\";const ref=new ReferenceImpl(COMPUTE);return ref.compute=compute,ref.update=update,ref.debugLabel=`(result of a \\`${debugLabel}\\` helper)`,ref;}function createReadOnlyRef(ref){return isUpdatableRef(ref)?createComputeRef(()=>valueForRef(ref),null,ref.debugLabel):ref;}function isInvokableRef(ref){return 3===ref[REFERENCE];}function createInvokableRef(inner){const ref=createComputeRef(()=>valueForRef(inner),value=>updateRef(inner,value));return ref.debugLabel=inner.debugLabel,ref[REFERENCE]=3,ref;}function isConstRef(_ref){return _ref.tag===CONSTANT_TAG;}function isUpdatableRef(_ref){return null!==_ref.update;}function valueForRef(_ref){const ref=_ref;let{tag:tag}=ref;if(tag===CONSTANT_TAG)return ref.lastValue;const{lastRevision:lastRevision}=ref;let lastValue;if(null!==tag&&validateTag(tag,lastRevision))lastValue=ref.lastValue;else{const{compute:compute}=ref,newTag=track(()=>{lastValue=ref.lastValue=compute();},ref.debugLabel);tag=ref.tag=newTag,ref.lastRevision=valueForTag(newTag);}return consumeTag(tag),lastValue;}function updateRef(_ref,value){expect(_ref.update,\"called update on a non-updatable reference\")(value);}function childRefFor(_parentRef,path){const parentRef=_parentRef,type=parentRef[REFERENCE];let child,children=parentRef.children;if(null===children)children=parentRef.children=new Map();else if(child=children.get(path),void 0!==child)return child;if(type===UNBOUND){const parent=valueForRef(parentRef);child=isDict(parent)?createUnboundRef(parent[path],`${parentRef.debugLabel}.${path}`):UNDEFINED_REFERENCE;}else child=createComputeRef(()=>{const parent=valueForRef(parentRef);if(isDict(parent))return getProp(parent,path);},val=>{const parent=valueForRef(parentRef);if(isDict(parent))return setProp(parent,path,val);}),child.debugLabel=`${parentRef.debugLabel}.${path}`;return children.set(path,child),child;}function childRefFromParts(root,parts){let reference=root;for(const part of parts)reference=childRefFor(reference,part);return reference;}let createDebugAliasRef;createDebugAliasRef=(debugLabel,inner)=>{const ref=createComputeRef(()=>valueForRef(inner),isUpdatableRef(inner)?value=>updateRef(inner,value):null);return ref[REFERENCE]=inner[REFERENCE],ref.debugLabel=debugLabel,ref;};const NULL_IDENTITY={},KEY=(_,index)=>index,INDEX=(_,index)=>String(index),IDENTITY=item=>null===item?NULL_IDENTITY:item;class WeakMapWithPrimitives{constructor(){_defineProperty(this,\"_weakMap\",void 0);_defineProperty(this,\"_primitiveMap\",void 0);}get weakMap(){return void 0===this._weakMap&&(this._weakMap=new WeakMap()),this._weakMap;}get primitiveMap(){return void 0===this._primitiveMap&&(this._primitiveMap=new Map()),this._primitiveMap;}set(key,value){isObject(key)?this.weakMap.set(key,value):this.primitiveMap.set(key,value);}get(key){return isObject(key)?this.weakMap.get(key):this.primitiveMap.get(key);}}const IDENTITIES=new WeakMapWithPrimitives();/**\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           */function uniqueKeyFor(keyFor){let seen=new WeakMapWithPrimitives();return(value,memo)=>{let key=keyFor(value,memo),count=seen.get(key)||0;return seen.set(key,count+1),0===count?key:function(value,count){let identities=IDENTITIES.get(value);void 0===identities&&(identities=[],IDENTITIES.set(value,identities));let identity=identities[count];return void 0===identity&&(identity={value:value,count:count},identities[count]=identity),identity;}(key,count);};}function createIteratorRef(listRef,key){return createComputeRef(()=>{let iterable=valueForRef(listRef),keyFor=function(key){switch(key){case\"@key\":return uniqueKeyFor(KEY);case\"@index\":return uniqueKeyFor(INDEX);case\"@identity\":return uniqueKeyFor(IDENTITY);default:return function(path){if(\"@\"===path[0])throw new Error(`invalid keypath: '${path}', valid keys: @index, @identity, or a path`);return uniqueKeyFor(item=>getPath$1(item,path));}(key);}}(key);if(Array.isArray(iterable))return new ArrayIterator$1(iterable,keyFor);let maybeIterator=toIterator$1(iterable);return null===maybeIterator?new ArrayIterator$1(EMPTY_ARRAY$4,()=>null):new IteratorWrapper(maybeIterator,keyFor);});}function createIteratorItemRef(_value){let value=_value,tag=createTag();return createComputeRef(()=>(consumeTag(tag),value),newValue=>{value!==newValue&&(value=newValue,DIRTY_TAG$1(tag));});}class IteratorWrapper{constructor(inner,keyFor){this.inner=inner,this.keyFor=keyFor;}isEmpty(){return this.inner.isEmpty();}next(){let nextValue=this.inner.next();return null!==nextValue&&(nextValue.key=this.keyFor(nextValue.value,nextValue.memo)),nextValue;}}let ArrayIterator$1=class ArrayIterator{constructor(iterator,keyFor){_defineProperty(this,\"current\",void 0);_defineProperty(this,\"pos\",0);this.iterator=iterator,this.keyFor=keyFor,0===iterator.length?this.current={kind:\"empty\"}:this.current={kind:\"first\",value:iterator[this.pos]};}isEmpty(){return\"empty\"===this.current.kind;}next(){let value,current=this.current;if(\"first\"===current.kind)this.current={kind:\"progress\"},value=current.value;else{if(this.pos>=this.iterator.length-1)return null;value=this.iterator[++this.pos];}let{keyFor:keyFor}=this;return{key:keyFor(value,this.pos),value:value,memo:this.pos};}};const glimmerReference=/*#__PURE__*/Object.defineProperty({__proto__:null,FALSE_REFERENCE,NULL_REFERENCE,REFERENCE,TRUE_REFERENCE,UNDEFINED_REFERENCE,childRefFor,childRefFromParts,createComputeRef,createConstRef,get createDebugAliasRef(){return createDebugAliasRef;},createInvokableRef,createIteratorItemRef,createIteratorRef,createPrimitiveRef,createReadOnlyRef,createUnboundRef,isConstRef,isInvokableRef,isUpdatableRef,updateRef,valueForRef},Symbol.toStringTag,{value:'Module'});const CUSTOM_TAG_FOR=new WeakMap();function getCustomTagFor(obj){return CUSTOM_TAG_FOR.get(obj);}function setCustomTagFor(obj,customTagFn){CUSTOM_TAG_FOR.set(obj,customTagFn);}function convertToInt(prop){if(\"symbol\"==typeof prop)return null;const num=Number(prop);return isNaN(num)?null:num%1==0?num:null;}class NamedArgsProxy{constructor(named){this.named=named;}get(_target,prop){const ref=this.named[prop];if(void 0!==ref)return valueForRef(ref);}has(_target,prop){return prop in this.named;}ownKeys(){return Object.keys(this.named);}isExtensible(){return!1;}getOwnPropertyDescriptor(_target,prop){if(!(prop in this.named))throw new Error(`args proxies do not have real property descriptors, so you should never need to call getOwnPropertyDescriptor yourself. This code exists for enumerability, such as in for-in loops and Object.keys(). Attempted to get the descriptor for \\`${String(prop)}\\``);return{enumerable:!0,configurable:!0};}}class PositionalArgsProxy{constructor(positional){this.positional=positional;}get(target,prop){let{positional:positional}=this;if(\"length\"===prop)return positional.length;const parsed=convertToInt(prop);return null!==parsed&&parsed<positional.length?valueForRef(positional[parsed]):target[prop];}isExtensible(){return!1;}has(_target,prop){const parsed=convertToInt(prop);return null!==parsed&&parsed<this.positional.length;}}const argsProxyFor=(capturedArgs,type)=>{const{named:named,positional:positional}=capturedArgs,namedHandler=new NamedArgsProxy(named),positionalHandler=new PositionalArgsProxy(positional),namedTarget=Object.create(null);{const setHandler=function(_target,prop){throw new Error(`You attempted to set ${String(prop)} on the arguments of a component, helper, or modifier. Arguments are immutable and cannot be updated directly; they always represent the values that are passed down. If you want to set default values, you should use a getter and local tracked state instead.`);},forInDebugHandler=()=>{throw new Error(`Object.keys() was called on the positional arguments array for a ${type}, which is not supported. This function is a low-level function that should not need to be called for positional argument arrays. You may be attempting to iterate over the array using for...in instead of for...of.`);};namedHandler.set=setHandler,positionalHandler.set=setHandler,positionalHandler.ownKeys=forInDebugHandler;}const namedProxy=new Proxy(namedTarget,namedHandler),positionalProxy=new Proxy([],positionalHandler);return setCustomTagFor(namedProxy,(_obj,key)=>function(namedArgs,key){return track(()=>{key in namedArgs&&valueForRef(namedArgs[key]);});}(named,key)),setCustomTagFor(positionalProxy,(_obj,key)=>function(positionalArgs,key){return track(()=>{\"[]\"===key&&// consume all of the tags in the positional array\npositionalArgs.forEach(valueForRef);const parsed=convertToInt(key);null!==parsed&&parsed<positionalArgs.length&&// consume the tag of the referenced index\nvalueForRef(positionalArgs[parsed]);});}(positional,key)),{named:namedProxy,positional:positionalProxy};};/* This file is generated by build/debug.js */new Array(Op.Size).fill(null),new Array(Op.Size).fill(null);const FROM_CAPABILITIES=new WeakSet();function buildCapabilities(capabilities){return FROM_CAPABILITIES.add(capabilities),Object.freeze(capabilities),capabilities;}const EMPTY=InternalComponentCapabilities.Empty;/**\n           * Converts a ComponentCapabilities object into a 32-bit integer representation.\n           */function capabilityFlagsFrom(capabilities){return EMPTY|capability(capabilities,\"dynamicLayout\")|capability(capabilities,\"dynamicTag\")|capability(capabilities,\"prepareArgs\")|capability(capabilities,\"createArgs\")|capability(capabilities,\"attributeHook\")|capability(capabilities,\"elementHook\")|capability(capabilities,\"dynamicScope\")|capability(capabilities,\"createCaller\")|capability(capabilities,\"updateHook\")|capability(capabilities,\"createInstance\")|capability(capabilities,\"wrapped\")|capability(capabilities,\"willDestroy\")|capability(capabilities,\"hasSubOwner\");}function capability(capabilities,capability){return capabilities[capability]?InternalComponentCapabilities[capability]:EMPTY;}function managerHasCapability(_manager,capabilities,capability){return!!(capabilities&capability);}function hasCapability(capabilities,capability){return!!(capabilities&capability);}function helperCapabilities(managerAPI){let options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(\"3.23\"!==managerAPI)throw new Error(\"Invalid helper manager compatibility specified\");if(!options.hasValue&&!options.hasScheduledEffect||options.hasValue&&options.hasScheduledEffect)throw new Error(\"You must pass either the `hasValue` OR the `hasScheduledEffect` capability when defining a helper manager. Passing neither, or both, is not permitted.\");if(options.hasScheduledEffect)throw new Error(\"The `hasScheduledEffect` capability has not yet been implemented for helper managers. Please pass `hasValue` instead\");return buildCapabilities({hasValue:Boolean(options.hasValue),hasDestroyable:Boolean(options.hasDestroyable),hasScheduledEffect:Boolean(options.hasScheduledEffect)});}////////////\nfunction hasValue(manager){return manager.capabilities.hasValue;}function hasDestroyable(manager){return manager.capabilities.hasDestroyable;}////////////\nclass CustomHelperManager{constructor(factory){_defineProperty(this,\"helperManagerDelegates\",new WeakMap());_defineProperty(this,\"undefinedDelegate\",null);this.factory=factory;}getDelegateForOwner(owner){let delegate=this.helperManagerDelegates.get(owner);if(void 0===delegate){let{factory:factory}=this;if(delegate=factory(owner),!FROM_CAPABILITIES.has(delegate.capabilities))// TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\nthrow new Error(`Custom helper managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.23')\\` (imported via \\`import { capabilities } from '@ember/helper';\\`). Received: \\`${JSON.stringify(delegate.capabilities)}\\` for: \\`${delegate}\\``);this.helperManagerDelegates.set(owner,delegate);}return delegate;}getDelegateFor(owner){if(void 0===owner){let{undefinedDelegate:undefinedDelegate}=this;if(null===undefinedDelegate){let{factory:factory}=this;this.undefinedDelegate=undefinedDelegate=factory(void 0);}return undefinedDelegate;}return this.getDelegateForOwner(owner);}getHelper(definition){return(capturedArgs,owner)=>{let manager=this.getDelegateFor(owner);const args=argsProxyFor(capturedArgs,\"helper\"),bucket=manager.createHelper(definition,args);if(hasValue(manager)){let cache=createComputeRef(()=>manager.getValue(bucket),null,manager.getDebugName&&manager.getDebugName(definition));return hasDestroyable(manager)&&associateDestroyableChild(cache,manager.getDestroyable(bucket)),cache;}if(hasDestroyable(manager)){var _manager$getDebugName,_manager$getDebugName2;let ref=createConstRef(void 0,(_manager$getDebugName=(_manager$getDebugName2=manager.getDebugName)===null||_manager$getDebugName2===void 0?void 0:_manager$getDebugName2.call(manager,definition))!==null&&_manager$getDebugName!==void 0?_manager$getDebugName:\"unknown helper\");return associateDestroyableChild(ref,manager.getDestroyable(bucket)),ref;}return UNDEFINED_REFERENCE;};}}class FunctionHelperManager{constructor(){_defineProperty(this,\"capabilities\",buildCapabilities({hasValue:!0,hasDestroyable:!1,hasScheduledEffect:!1}));}createHelper(fn,args){return{fn:fn,args:args};}getValue(_ref7){let{fn:fn,args:args}=_ref7;return Object.keys(args.named).length>0?fn(...args.positional,args.named):fn(...args.positional);}getDebugName(fn){return fn.name?`(helper function ${fn.name})`:\"(anonymous helper function)\";}}const COMPONENT_MANAGERS=new WeakMap(),MODIFIER_MANAGERS=new WeakMap(),HELPER_MANAGERS=new WeakMap(),getPrototypeOf$1=Object.getPrototypeOf;function setManager(map,manager,obj){if((\"object\"!=typeof obj||null===obj)&&\"function\"!=typeof obj)throw new Error(`Attempted to set a manager on a non-object value. Managers can only be associated with objects or functions. Value was ${debugToString$1(obj)}`);if(map.has(obj))throw new Error(`Attempted to set the same type of manager multiple times on a value. You can only associate one manager of each type with a given value. Value was ${debugToString$1(obj)}`);return map.set(obj,manager),obj;}function getManager(map,obj){let pointer=obj;for(;null!=pointer;){const manager=map.get(pointer);if(void 0!==manager)return manager;pointer=getPrototypeOf$1(pointer);}}///////////\nfunction setInternalModifierManager(manager,definition){return setManager(MODIFIER_MANAGERS,manager,definition);}function getInternalModifierManager(definition,isOptional){if(\"function\"!=typeof definition&&(\"object\"!=typeof definition||null===definition))throw new Error(`Attempted to use a value as a modifier, but it was not an object or function. Modifier definitions must be objects or functions with an associated modifier manager. The value was: ${definition}`);const manager=getManager(MODIFIER_MANAGERS,definition);if(void 0===manager){if(!0===isOptional)return null;throw new Error(`Attempted to load a modifier, but there wasn't a modifier manager associated with the definition. The definition was: ${debugToString$1(definition)}`);}return manager;}function setInternalHelperManager(manager,definition){return setManager(HELPER_MANAGERS,manager,definition);}const DEFAULT_MANAGER=new CustomHelperManager(()=>new FunctionHelperManager());function getInternalHelperManager(definition,isOptional){if(\"function\"!=typeof definition&&(\"object\"!=typeof definition||null===definition))throw new Error(`Attempted to use a value as a helper, but it was not an object or function. Helper definitions must be objects or functions with an associated helper manager. The value was: ${definition}`);let manager=getManager(HELPER_MANAGERS,definition);// Functions are special-cased because functions are defined\n// as the \"default\" helper, per: https://github.com/emberjs/rfcs/pull/756\nif(void 0===manager&&\"function\"==typeof definition&&(manager=DEFAULT_MANAGER),manager)return manager;if(!0===isOptional)return null;throw new Error(`Attempted to load a helper, but there wasn't a helper manager associated with the definition. The definition was: ${debugToString$1(definition)}`);}function setInternalComponentManager(factory,obj){return setManager(COMPONENT_MANAGERS,factory,obj);}function getInternalComponentManager(definition,isOptional){if(\"function\"!=typeof definition&&(\"object\"!=typeof definition||null===definition))throw new Error(`Attempted to use a value as a component, but it was not an object or function. Component definitions must be objects or functions with an associated component manager. The value was: ${definition}`);const manager=getManager(COMPONENT_MANAGERS,definition);if(void 0===manager){if(!0===isOptional)return null;throw new Error(`Attempted to load a component, but there wasn't a component manager associated with the definition. The definition was: ${debugToString$1(definition)}`);}return manager;}///////////\nfunction hasInternalComponentManager(definition){return void 0!==getManager(COMPONENT_MANAGERS,definition);}function hasInternalHelperManager(definition){return function(definition){return\"function\"==typeof definition;}(definition)||void 0!==getManager(HELPER_MANAGERS,definition);}function hasInternalModifierManager(definition){return void 0!==getManager(MODIFIER_MANAGERS,definition);}const CAPABILITIES$4={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1};function componentCapabilities(managerAPI){let options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(\"3.13\"!==managerAPI)throw new Error(\"Invalid component manager compatibility specified\");let updateHook=Boolean(options.updateHook);return buildCapabilities({asyncLifeCycleCallbacks:Boolean(options.asyncLifecycleCallbacks),destructor:Boolean(options.destructor),updateHook:updateHook});}function hasAsyncLifeCycleCallbacks(delegate){return delegate.capabilities.asyncLifeCycleCallbacks;}function hasUpdateHook(delegate){return delegate.capabilities.updateHook;}/**\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          */class CustomComponentManager{constructor(factory){_defineProperty(this,\"componentManagerDelegates\",new WeakMap());this.factory=factory;}getDelegateFor(owner){let{componentManagerDelegates:componentManagerDelegates}=this,delegate=componentManagerDelegates.get(owner);if(void 0===delegate){let{factory:factory}=this;if(delegate=factory(owner),!FROM_CAPABILITIES.has(delegate.capabilities))// TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\nthrow new Error(`Custom component managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.13')\\` (imported via \\`import { capabilities } from '@ember/component';\\`). Received: \\`${JSON.stringify(delegate.capabilities)}\\` for: \\`${delegate}\\``);componentManagerDelegates.set(owner,delegate);}return delegate;}create(owner,definition,vmArgs){let delegate=this.getDelegateFor(owner),args=argsProxyFor(vmArgs.capture(),\"component\"),component=delegate.createComponent(definition,args);return new CustomComponentState(component,delegate,args);}getDebugName(definition){return\"function\"==typeof definition?definition.name:definition.toString();}update(bucket){let{delegate:delegate}=bucket;if(hasUpdateHook(delegate)){let{component:component,args:args}=bucket;delegate.updateComponent(component,args);}}didCreate(_ref8){let{component:component,delegate:delegate}=_ref8;hasAsyncLifeCycleCallbacks(delegate)&&delegate.didCreateComponent(component);}didUpdate(_ref9){let{component:component,delegate:delegate}=_ref9;(function(delegate){return hasAsyncLifeCycleCallbacks(delegate)&&hasUpdateHook(delegate);})(delegate)&&delegate.didUpdateComponent(component);}didRenderLayout(){}didUpdateLayout(){}getSelf(_ref0){let{component:component,delegate:delegate}=_ref0;return createConstRef(delegate.getContext(component),\"this\");}getDestroyable(bucket){const{delegate:delegate}=bucket;if(function(delegate){return delegate.capabilities.destructor;}(delegate)){const{component:component}=bucket;return registerDestructor$1(bucket,()=>delegate.destroyComponent(component)),bucket;}return null;}getCapabilities(){return CAPABILITIES$4;}}/**\n           * Stores internal state about a component instance after it's been created.\n           */class CustomComponentState{constructor(component,delegate,args){this.component=component,this.delegate=delegate,this.args=args;}}function modifierCapabilities(managerAPI){let optionalFeatures=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(\"3.22\"!==managerAPI)throw new Error(\"Invalid modifier manager compatibility specified\");return buildCapabilities({disableAutoTracking:Boolean(optionalFeatures.disableAutoTracking)});}/**\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          */class CustomModifierManager{constructor(factory){_defineProperty(this,\"componentManagerDelegates\",new WeakMap());this.factory=factory;}getDelegateFor(owner){let{componentManagerDelegates:componentManagerDelegates}=this,delegate=componentManagerDelegates.get(owner);if(void 0===delegate){let{factory:factory}=this;if(delegate=factory(owner),!FROM_CAPABILITIES.has(delegate.capabilities))// TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\nthrow new Error(`Custom modifier managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.22')\\` (imported via \\`import { capabilities } from '@ember/modifier';\\`). Received: \\`${JSON.stringify(delegate.capabilities)}\\` for: \\`${delegate}\\``);componentManagerDelegates.set(owner,delegate);}return delegate;}create(owner,element,definition,capturedArgs){let state,delegate=this.getDelegateFor(owner),args=argsProxyFor(capturedArgs,\"modifier\"),instance=delegate.createModifier(definition,args);return state={tag:createUpdatableTag(),element:element,delegate:delegate,args:args,modifier:instance},registerDestructor$1(state,()=>delegate.destroyModifier(instance,args)),state;}getDebugName(definition){return\"function\"==typeof definition?definition.name||definition.toString():\"<unknown>\";}getDebugInstance(_ref1){let{modifier:modifier}=_ref1;return modifier;}getTag(_ref10){let{tag:tag}=_ref10;return tag;}install(_ref11){let{element:element,args:args,modifier:modifier,delegate:delegate}=_ref11;let{capabilities:capabilities}=delegate;!0===capabilities.disableAutoTracking?untrack(()=>delegate.installModifier(modifier,castToBrowser(element,\"ELEMENT\"),args)):delegate.installModifier(modifier,castToBrowser(element,\"ELEMENT\"),args);}update(_ref12){let{args:args,modifier:modifier,delegate:delegate}=_ref12;let{capabilities:capabilities}=delegate;!0===capabilities.disableAutoTracking?untrack(()=>delegate.updateModifier(modifier,args)):delegate.updateModifier(modifier,args);}getDestroyable(state){return state;}}function setComponentManager$1(factory,obj){return setInternalComponentManager(new CustomComponentManager(factory),obj);}function setModifierManager$1(factory,obj){return setInternalModifierManager(new CustomModifierManager(factory),obj);}function setHelperManager$1(factory,obj){return setInternalHelperManager(new CustomHelperManager(factory),obj);}const TEMPLATES$1=new WeakMap(),getPrototypeOf$2=Object.getPrototypeOf;function setComponentTemplate(factory,obj){if(null===obj||\"object\"!=typeof obj&&\"function\"!=typeof obj)throw new Error(`Cannot call \\`setComponentTemplate\\` on \\`${debugToString$1(obj)}\\``);if(TEMPLATES$1.has(obj))throw new Error(`Cannot call \\`setComponentTemplate\\` multiple times on the same class (\\`${debugToString$1(obj)}\\`)`);return TEMPLATES$1.set(obj,factory),obj;}function getComponentTemplate(obj){let pointer=obj;for(;null!==pointer;){let template=TEMPLATES$1.get(pointer);if(void 0!==template)return template;pointer=getPrototypeOf$2(pointer);}}const glimmerManager=/*#__PURE__*/Object.defineProperty({__proto__:null,CustomComponentManager,CustomHelperManager,CustomModifierManager,capabilityFlagsFrom,componentCapabilities,getComponentTemplate,getCustomTagFor,getInternalComponentManager,getInternalHelperManager,getInternalModifierManager,hasCapability,hasDestroyable,hasInternalComponentManager,hasInternalHelperManager,hasInternalModifierManager,hasValue,helperCapabilities,managerHasCapability,modifierCapabilities,setComponentManager:setComponentManager$1,setComponentTemplate,setCustomTagFor,setHelperManager:setHelperManager$1,setInternalComponentManager,setInternalHelperManager,setInternalModifierManager,setModifierManager:setModifierManager$1},Symbol.toStringTag,{value:'Module'});/* This file is generated by build/debug.js */let debugCompiler;function makeResolutionTypeVerifier(typeToVerify){return opcode=>{if(!function(opcode){return Array.isArray(opcode)&&2===opcode.length;}(opcode))return!1;let type=opcode[0];return type===opcodes.GetStrictKeyword||type===opcodes.GetLexicalSymbol||type===typeToVerify;};}new Array(Op.Size).fill(null),new Array(Op.Size).fill(null);const isGetFreeComponent=makeResolutionTypeVerifier(opcodes.GetFreeAsComponentHead),isGetFreeModifier=makeResolutionTypeVerifier(opcodes.GetFreeAsModifierHead),isGetFreeHelper=makeResolutionTypeVerifier(opcodes.GetFreeAsHelperHead),isGetFreeComponentOrHelper=makeResolutionTypeVerifier(opcodes.GetFreeAsComponentOrHelperHead);function assertResolverInvariants(meta){{if(!meta.upvars)throw new Error(\"Attempted to resolve a component, helper, or modifier, but no free vars were found\");if(!meta.owner)throw new Error(\"Attempted to resolve a component, helper, or modifier, but no owner was associated with the template it was being resolved from\");}return meta;}/**\n           * <Foo/>\n           * <Foo></Foo>\n           * <Foo @arg={{true}} />\n           */function lookupBuiltInHelper(expr,resolver,meta,constants,type){var _meta$upvars$expr$;let{upvars:upvars}=assertResolverInvariants(meta),name=unwrap$1(upvars[expr[1]]),helper=resolver.lookupBuiltInHelper(name);if(null===helper)// Keyword helper did not exist, which means that we're attempting to use a\n// value of some kind that is not in scope\nthrow debugAssert(!meta.isStrictMode,\"Strict mode errors should already be handled at compile time\"),new Error(`Attempted to resolve a ${type} in a strict mode template, but that value was not in scope: ${(_meta$upvars$expr$=meta.upvars[expr[1]])!==null&&_meta$upvars$expr$!==void 0?_meta$upvars$expr$:\"{unknown variable}\"}`);return constants.helper(helper,name);}const HighLevelResolutionOpcodes={Modifier:1003,Component:1004,Helper:1005,ComponentOrHelper:1007,OptionalComponentOrHelper:1008,Local:1010,TemplateLocal:1011},HighLevelBuilderOpcodes={Label:1e3,StartLabels:1001,StopLabels:1002,Start:1e3,End:1002},HighLevelOperands={Label:1,IsStrictMode:2,DebugSymbols:3,Block:4,StdLib:5,NonSmallInt:6,SymbolTable:7,Layout:8};function labelOperand(value){return{type:HighLevelOperands.Label,value:value};}function isStrictMode(){return{type:HighLevelOperands.IsStrictMode,value:void 0};}function stdlibOperand(value){return{type:HighLevelOperands.StdLib,value:value};}function symbolTableOperand(value){return{type:HighLevelOperands.SymbolTable,value:value};}function layoutOperand(value){return{type:HighLevelOperands.Layout,value:value};}class Labels{constructor(){_defineProperty(this,\"labels\",dict());_defineProperty(this,\"targets\",[]);}label(name,index){this.labels[name]=index;}target(at,target){this.targets.push({at:at,target:target});}patch(heap){let{targets:targets,labels:labels}=this;for(const{at:at,target:target}of targets){let address=labels[target]-at;debugAssert(-1===heap.getbyaddr(at),\"Expected heap to contain a placeholder, but it did not\"),heap.setbyaddr(at,address);}}}function encodeOp(encoder,constants,resolver,meta,op){if(function(op){return op<HighLevelBuilderOpcodes.Start;}(op[0])){let[type,...operands]=op;encoder.push(constants,type,...operands);}else switch(op[0]){case HighLevelBuilderOpcodes.Label:return encoder.label(op[1]);case HighLevelBuilderOpcodes.StartLabels:return encoder.startLabels();case HighLevelBuilderOpcodes.StopLabels:return encoder.stopLabels();case HighLevelResolutionOpcodes.Component:return function(resolver,constants,meta,_ref13,_meta$upvars$expr$2){let[,expr,then]=_ref13;debugAssert(isGetFreeComponent(expr),\"Attempted to resolve a component with incorrect opcode\");let type=expr[0];if(expr[0]===opcodes.GetStrictKeyword)throw debugAssert(!meta.isStrictMode,\"Strict mode errors should already be handled at compile time\"),new Error(`Attempted to resolve a component in a strict mode template, but that value was not in scope: ${(_meta$upvars$expr$2=meta.upvars[expr[1]])!==null&&_meta$upvars$expr$2!==void 0?_meta$upvars$expr$2:\"{unknown variable}\"}`);if(type===opcodes.GetLexicalSymbol){let{scopeValues:scopeValues,owner:owner}=meta,definition=expect(scopeValues,\"BUG: scopeValues must exist if template symbol is used\")[expr[1]];then(constants.component(definition,expect(owner,\"BUG: expected owner when resolving component definition\")));}else{let{upvars:upvars,owner:owner}=assertResolverInvariants(meta),name=unwrap$1(upvars[expr[1]]),definition=resolver.lookupComponent(name,owner);if(\"object\"!=typeof definition||null===definition)throw debugAssert(!meta.isStrictMode,\"Strict mode errors should already be handled at compile time\"),new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a component, but nothing was found.`);then(constants.resolvedComponent(definition,name));}}/**\n                * (helper)\n                * (helper arg)\n                */(resolver,constants,meta,op);case HighLevelResolutionOpcodes.Modifier:/**\n                * <div {{modifier}}/>\n                * <div {{modifier arg}}/>\n                * <Foo {{modifier}}/>\n                */return function(resolver,constants,meta,_ref14){let[,expr,then]=_ref14;debugAssert(isGetFreeModifier(expr),\"Attempted to resolve a modifier with incorrect opcode\");let type=expr[0];if(type===opcodes.GetLexicalSymbol){let{scopeValues:scopeValues}=meta,definition=expect(scopeValues,\"BUG: scopeValues must exist if template symbol is used\")[expr[1]];then(constants.modifier(definition));}else if(type===opcodes.GetStrictKeyword){let{upvars:upvars}=assertResolverInvariants(meta),name=unwrap$1(upvars[expr[1]]),modifier=resolver.lookupBuiltInModifier(name);if(null===modifier)throw debugAssert(!meta.isStrictMode,\"Strict mode errors should already be handled at compile time\"),new Error(`Attempted to resolve a modifier in a strict mode template, but it was not in scope: ${name}`);then(constants.modifier(modifier,name));}else{let{upvars:upvars,owner:owner}=assertResolverInvariants(meta),name=unwrap$1(upvars[expr[1]]),modifier=resolver.lookupModifier(name,owner);if(null===modifier)throw debugAssert(!meta.isStrictMode,\"Strict mode errors should already be handled at compile time\"),new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a modifier, but nothing was found.`);then(constants.modifier(modifier,name));}}/**\n                * {{component-or-helper arg}}\n                */(resolver,constants,meta,op);case HighLevelResolutionOpcodes.Helper:return function(resolver,constants,meta,_ref15){let[,expr,then]=_ref15;debugAssert(isGetFreeHelper(expr),\"Attempted to resolve a helper with incorrect opcode\");let type=expr[0];if(type===opcodes.GetLexicalSymbol){let{scopeValues:scopeValues}=meta,definition=expect(scopeValues,\"BUG: scopeValues must exist if template symbol is used\")[expr[1]];then(constants.helper(definition));}else if(type===opcodes.GetStrictKeyword)then(lookupBuiltInHelper(expr,resolver,meta,constants,\"helper\"));else{let{upvars:upvars,owner:owner}=assertResolverInvariants(meta),name=unwrap$1(upvars[expr[1]]),helper=resolver.lookupHelper(name,owner);if(null===helper)throw debugAssert(!meta.isStrictMode,\"Strict mode errors should already be handled at compile time\"),new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a helper, but nothing was found.`);then(constants.helper(helper,name));}}(resolver,constants,meta,op);case HighLevelResolutionOpcodes.ComponentOrHelper:return function(resolver,constants,meta,_ref16){let[,expr,{ifComponent:ifComponent,ifHelper:ifHelper}]=_ref16;debugAssert(isGetFreeComponentOrHelper(expr),\"Attempted to resolve a component or helper with incorrect opcode\");let type=expr[0];if(type===opcodes.GetLexicalSymbol){let{scopeValues:scopeValues,owner:owner}=meta,definition=expect(scopeValues,\"BUG: scopeValues must exist if template symbol is used\")[expr[1]],component=constants.component(definition,expect(owner,\"BUG: expected owner when resolving component definition\"),!0);if(null!==component)return void ifComponent(component);let helper=constants.helper(definition,null,!0);if(null===helper)throw debugAssert(!meta.isStrictMode,\"Strict mode errors should already be handled at compile time\"),new Error(`Attempted to use a value as either a component or helper, but it did not have a component manager or helper manager associated with it. The value was: ${debugToString$1(definition)}`);ifHelper(expect(helper,\"BUG: helper must exist\"));}else if(type===opcodes.GetStrictKeyword)ifHelper(lookupBuiltInHelper(expr,resolver,meta,constants,\"component or helper\"));else{let{upvars:upvars,owner:owner}=assertResolverInvariants(meta),name=unwrap$1(upvars[expr[1]]),definition=resolver.lookupComponent(name,owner);if(null!==definition)ifComponent(constants.resolvedComponent(definition,name));else{let helper=resolver.lookupHelper(name,owner);if(null===helper)throw debugAssert(!meta.isStrictMode,\"Strict mode errors should already be handled at compile time\"),new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a component or helper, but nothing was found.`);ifHelper(constants.helper(helper,name));}}}/**\n                * {{maybeHelperOrComponent}}\n                */(resolver,constants,meta,op);case HighLevelResolutionOpcodes.OptionalComponentOrHelper:return function(resolver,constants,meta,_ref17){let[,expr,{ifComponent:ifComponent,ifHelper:ifHelper,ifValue:ifValue}]=_ref17;debugAssert(isGetFreeComponentOrHelper(expr),\"Attempted to resolve an optional component or helper with incorrect opcode\");let type=expr[0];if(type===opcodes.GetLexicalSymbol){let{scopeValues:scopeValues,owner:owner}=meta,definition=expect(scopeValues,\"BUG: scopeValues must exist if template symbol is used\")[expr[1]];if(\"function\"!=typeof definition&&(\"object\"!=typeof definition||null===definition))// The value is not an object, so it can't be a component or helper.\nreturn void ifValue(constants.value(definition));let component=constants.component(definition,expect(owner,\"BUG: expected owner when resolving component definition\"),!0);if(null!==component)return void ifComponent(component);let helper=constants.helper(definition,null,!0);if(null!==helper)return void ifHelper(helper);ifValue(constants.value(definition));}else if(type===opcodes.GetStrictKeyword)ifHelper(lookupBuiltInHelper(expr,resolver,meta,constants,\"value\"));else{let{upvars:upvars,owner:owner}=assertResolverInvariants(meta),name=unwrap$1(upvars[expr[1]]),definition=resolver.lookupComponent(name,owner);if(null!==definition)return void ifComponent(constants.resolvedComponent(definition,name));let helper=resolver.lookupHelper(name,owner);null!==helper&&ifHelper(constants.helper(helper,name));}}(resolver,constants,meta,op);case HighLevelResolutionOpcodes.Local:{let freeVar=op[1],name=expect(meta.upvars,\"BUG: attempted to resolve value but no upvars found\")[freeVar];(0,op[2])(name,meta.moduleName);break;}case HighLevelResolutionOpcodes.TemplateLocal:{let[,valueIndex,then]=op,value=expect(meta.scopeValues,\"BUG: Attempted to get a template local, but template does not have any\")[valueIndex];then(constants.value(value));break;}default:throw new Error(`Unexpected high level opcode ${op[0]}`);}}class EncoderImpl{constructor(heap,meta,stdlib){_defineProperty(this,\"labelsStack\",new StackImpl());_defineProperty(this,\"encoder\",new InstructionEncoderImpl([]));_defineProperty(this,\"errors\",[]);_defineProperty(this,\"handle\",void 0);this.heap=heap,this.meta=meta,this.stdlib=stdlib,this.handle=heap.malloc();}error(error){this.encoder.encode(Op.Primitive,0),this.errors.push(error);}commit(size){let handle=this.handle;return this.heap.pushMachine(MachineOp.Return),this.heap.finishMalloc(handle,size),isPresentArray(this.errors)?{errors:this.errors,handle:handle}:handle;}push(constants,type){let{heap:heap}=this;if(type>TYPE_SIZE)throw new Error(`Opcode type over 8-bits. Got ${type}.`);let first=type|(isMachineOp(type)?MACHINE_MASK:0)|(arguments.length<=2?0:arguments.length-2)<<ARG_SHIFT;heap.pushRaw(first);for(let i=0;i<(arguments.length<=2?0:arguments.length-2);i++){let op=i+2<2||arguments.length<=i+2?undefined:arguments[i+2];heap.pushRaw(this.operand(constants,op));}}operand(constants,operand){if(\"number\"==typeof operand)return operand;if(\"object\"==typeof operand&&null!==operand){if(Array.isArray(operand))return encodeHandle(constants.array(operand));switch(operand.type){case HighLevelOperands.Label:return this.currentLabels.target(this.heap.offset,operand.value),-1;case HighLevelOperands.IsStrictMode:return encodeHandle(constants.value(this.meta.isStrictMode));case HighLevelOperands.DebugSymbols:return encodeHandle(constants.array(this.meta.evalSymbols||EMPTY_STRING_ARRAY));case HighLevelOperands.Block:return encodeHandle(constants.value((block=operand.value,containing=this.meta,new CompilableTemplateImpl(block[0],containing,{parameters:block[1]||EMPTY_ARRAY$4}))));case HighLevelOperands.StdLib:return expect(this.stdlib,\"attempted to encode a stdlib operand, but the encoder did not have a stdlib. Are you currently building the stdlib?\")[operand.value];case HighLevelOperands.NonSmallInt:case HighLevelOperands.SymbolTable:case HighLevelOperands.Layout:return constants.value(operand.value);}}var block,containing;return encodeHandle(constants.value(operand));}get currentLabels(){return expect(this.labelsStack.current,\"bug: not in a label stack\");}label(name){this.currentLabels.label(name,this.heap.offset+1);}startLabels(){this.labelsStack.push(new Labels());}stopLabels(){expect(this.labelsStack.pop(),\"unbalanced push and pop labels\").patch(this.heap);}}class StdLib{constructor(main,trustingGuardedAppend,cautiousGuardedAppend,trustingNonDynamicAppend,cautiousNonDynamicAppend){this.main=main,this.trustingGuardedAppend=trustingGuardedAppend,this.cautiousGuardedAppend=cautiousGuardedAppend,this.trustingNonDynamicAppend=trustingNonDynamicAppend,this.cautiousNonDynamicAppend=cautiousNonDynamicAppend;}get\"trusting-append\"(){return this.trustingGuardedAppend;}get\"cautious-append\"(){return this.cautiousGuardedAppend;}get\"trusting-non-dynamic-append\"(){return this.trustingNonDynamicAppend;}get\"cautious-non-dynamic-append\"(){return this.cautiousNonDynamicAppend;}getAppend(trusting){return trusting?this.trustingGuardedAppend:this.cautiousGuardedAppend;}}class NamedBlocksImpl{constructor(blocks){_defineProperty(this,\"names\",void 0);this.blocks=blocks,this.names=blocks?Object.keys(blocks):[];}get(name){return this.blocks&&this.blocks[name]||null;}has(name){let{blocks:blocks}=this;return null!==blocks&&name in blocks;}with(name,block){let{blocks:blocks}=this;return new NamedBlocksImpl(blocks?assign({},blocks,{[name]:block}):{[name]:block});}get hasAny(){return null!==this.blocks;}}const EMPTY_BLOCKS=new NamedBlocksImpl(null);function namedBlocks(blocks){if(null===blocks)return EMPTY_BLOCKS;let out=dict(),[keys,values]=blocks;for(const[i,key]of enumerate(keys))out[key]=unwrap$1(values[i]);return new NamedBlocksImpl(out);}/**\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           */function PushPrimitiveReference(op,value){PushPrimitive(op,value),op(Op.PrimitiveReference);}/**\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           */function PushPrimitive(op,primitive){let p=primitive;var value;\"number\"==typeof p&&(p=isSmallInt(p)?encodeImmediate(p):(debugAssert(!isSmallInt(value=p),\"Attempted to make a operand for an int that was not a small int, you should encode this as an immediate\"),{type:HighLevelOperands.NonSmallInt,value:value})),op(Op.Primitive,p);}/**\n           * Invoke a foreign function (a \"helper\") based on a statically known handle\n           *\n           * @param op The op creation function\n           * @param handle A handle\n           * @param positional An optional list of expressions to compile\n           * @param named An optional list of named arguments (name + expression) to compile\n           */function Call(op,handle,positional,named){op(MachineOp.PushFrame),SimpleArgs(op,positional,named,!1),op(Op.Helper,handle),op(MachineOp.PopFrame),op(Op.Fetch,$v0);}/**\n           * Invoke a foreign function (a \"helper\") based on a dynamically loaded definition\n           *\n           * @param op The op creation function\n           * @param positional An optional list of expressions to compile\n           * @param named An optional list of named arguments (name + expression) to compile\n           */function CallDynamic(op,positional,named,append){op(MachineOp.PushFrame),SimpleArgs(op,positional,named,!1),op(Op.Dup,$fp,1),op(Op.DynamicHelper),append?(op(Op.Fetch,$v0),append(),op(MachineOp.PopFrame),op(Op.Pop,1)):(op(MachineOp.PopFrame),op(Op.Pop,1),op(Op.Fetch,$v0));}/**\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           */function Curry(op,type,definition,positional,named){op(MachineOp.PushFrame),SimpleArgs(op,positional,named,!1),op(Op.CaptureArgs),expr(op,definition),op(Op.Curry,type,isStrictMode()),op(MachineOp.PopFrame),op(Op.Fetch,$v0);}class Compilers{constructor(){_defineProperty(this,\"names\",{});_defineProperty(this,\"funcs\",[]);}add(name,func){this.names[name]=this.funcs.push(func)-1;}compile(op,sexp){let name=sexp[0],index=unwrap$1(this.names[name]),func=this.funcs[index];debugAssert(!!func,`expected an implementation for ${sexp[0]}`),func(op,sexp);}}const EXPRESSIONS=new Compilers();function withPath(op,path){if(void 0!==path&&0!==path.length)for(let i=0;i<path.length;i++)op(Op.GetProperty,path[i]);}function expr(op,expression){Array.isArray(expression)?EXPRESSIONS.compile(op,expression):(PushPrimitive(op,expression),op(Op.PrimitiveReference));}/**\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           */function SimpleArgs(op,positional,named,atNames){if(null===positional&&null===named)return void op(Op.PushEmptyArgs);let flags=CompilePositional(op,positional)<<4;atNames&&(flags|=8);let names=EMPTY_STRING_ARRAY;if(named){names=named[0];let val=named[1];for(let i=0;i<val.length;i++)expr(op,val[i]);}op(Op.PushArgs,names,EMPTY_STRING_ARRAY,flags);}/**\n           * Compile an optional list of positional arguments, which pushes each argument\n           * onto the stack and returns the number of parameters compiled\n           *\n           * @param positional an optional list of positional arguments\n           */function CompilePositional(op,positional){if(null===positional)return 0;for(let i=0;i<positional.length;i++)expr(op,positional[i]);return positional.length;}function meta$1(layout){var _layout$scope,_layout$scope2;let[,symbols,,upvars]=layout.block;return{evalSymbols:evalSymbols(layout),upvars:upvars,scopeValues:(_layout$scope=(_layout$scope2=layout.scope)===null||_layout$scope2===void 0?void 0:_layout$scope2.call(layout))!==null&&_layout$scope!==void 0?_layout$scope:null,isStrictMode:layout.isStrictMode,moduleName:layout.moduleName,owner:layout.owner,size:symbols.length};}function evalSymbols(layout){let{block:block}=layout,[,symbols,hasEval]=block;return hasEval?symbols:null;}/**\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           */function YieldBlock(op,to,positional){SimpleArgs(op,positional,null,!0),op(Op.GetBlock,to),op(Op.SpreadBlock),op(Op.CompileBlock),op(Op.InvokeYield),op(Op.PopScope),op(MachineOp.PopFrame);}/**\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           */function PushYieldableBlock(op,block){!function(op,parameters){null!==parameters?op(Op.PushSymbolTable,symbolTableOperand({parameters:parameters})):PushPrimitive(op,null);}(op,block&&block[1]),op(Op.PushBlockScope),PushCompilable(op,block);}/**\n           * Invoke a block that is known statically at compile time.\n           *\n           * @param block a Compilable block\n           */function InvokeStaticBlock(op,block){op(MachineOp.PushFrame),PushCompilable(op,block),op(Op.CompileBlock),op(MachineOp.InvokeVirtual),op(MachineOp.PopFrame);}/**\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           */function InvokeStaticBlockWithStack(op,block,callerCount){let parameters=block[1],calleeCount=parameters.length,count=Math.min(callerCount,calleeCount);if(0!==count){if(op(MachineOp.PushFrame),count){op(Op.ChildScope);for(let i=0;i<count;i++)op(Op.Dup,$fp,callerCount-i),op(Op.SetVariable,parameters[i]);}PushCompilable(op,block),op(Op.CompileBlock),op(MachineOp.InvokeVirtual),count&&op(Op.PopScope),op(MachineOp.PopFrame);}else InvokeStaticBlock(op,block);}function PushCompilable(op,_block){var value;null===_block?PushPrimitive(op,null):op(Op.Constant,(value=_block,{type:HighLevelOperands.Block,value:value}));}function SwitchCases(op,bootstrap,matcher){// Setup the switch DSL\nlet clauses=[],count=0;// Call the callback\nmatcher(function(match,callback){clauses.push({match:match,callback:callback,label:\"CLAUSE\"+count++});}),// Emit the opcodes for the switch\nop(Op.Enter,1),bootstrap(),op(HighLevelBuilderOpcodes.StartLabels);// First, emit the jump opcodes. We don't need a jump for the last\n// opcode, since it bleeds directly into its clause.\nfor(let clause of clauses.slice(0,-1))op(Op.JumpEq,labelOperand(clause.label),clause.match);// Enumerate the clauses in reverse order. Earlier matches will\n// require fewer checks.\nfor(let i=clauses.length-1;i>=0;i--){let clause=unwrap$1(clauses[i]);op(HighLevelBuilderOpcodes.Label,clause.label),op(Op.Pop,1),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.\n0!==i&&op(MachineOp.Jump,labelOperand(\"END\"));}op(HighLevelBuilderOpcodes.Label,\"END\"),op(HighLevelBuilderOpcodes.StopLabels),op(Op.Exit);}/**\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           */function Replayable(op,args,body){// Start a new label frame, to give END and RETURN\n// a unique meaning.\nop(HighLevelBuilderOpcodes.StartLabels),op(MachineOp.PushFrame),// If the body invokes a block, its return will return to\n// END. Otherwise, the return in RETURN will return to END.\nop(MachineOp.ReturnTo,labelOperand(\"ENDINITIAL\"));// Push the arguments onto the stack. The args() function\n// tells us how many stack elements to retain for re-execution\n// when updating.\nlet count=args();// Start a new updating closure, remembering `count` elements\n// from the stack. Everything after this point, and before END,\n// will execute both initially and to update the block.\n// 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.\nop(Op.Enter,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.\nbody(),// 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.\nop(HighLevelBuilderOpcodes.Label,\"FINALLY\"),// Finalize the DOM.\nop(Op.Exit),// In initial execution, this is a noop: it returns to the\n// immediately following opcode. In updating execution, this\n// exits the updating routine.\nop(MachineOp.Return),// Cleanup code for the block. Runs on initial execution\n// but not on updating.\nop(HighLevelBuilderOpcodes.Label,\"ENDINITIAL\"),op(MachineOp.PopFrame),op(HighLevelBuilderOpcodes.StopLabels);}/**\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           */function ReplayableIf(op,args,ifTrue,ifFalse){return Replayable(op,args,()=>{// If the conditional is false, jump to the ELSE label.\nop(Op.JumpUnless,labelOperand(\"ELSE\")),// Otherwise, execute the code associated with the true branch.\nifTrue(),// 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.\nop(MachineOp.Jump,labelOperand(\"FINALLY\")),op(HighLevelBuilderOpcodes.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.\nvoid 0!==ifFalse&&ifFalse();});}// {{component}}\n// <Component>\n// chokepoint\nfunction InvokeComponent(op,component,_elementBlock,positional,named,_blocks){let{compilable:compilable,capabilities:capabilities,handle:handle}=component,elementBlock=_elementBlock?[_elementBlock,[]]:null,blocks=Array.isArray(_blocks)||null===_blocks?namedBlocks(_blocks):_blocks;compilable?(op(Op.PushComponentDefinition,handle),function(op,_ref18){let{capabilities:capabilities,layout:layout,elementBlock:elementBlock,positional:positional,named:named,blocks:blocks}=_ref18;let{symbolTable:symbolTable}=layout;if(symbolTable.hasEval||hasCapability(capabilities,InternalComponentCapabilities.prepareArgs))return void InvokeNonStaticComponent(op,{capabilities:capabilities,elementBlock:elementBlock,positional:positional,named:named,atNames:!0,blocks:blocks,layout:layout});op(Op.Fetch,$s0),op(Op.Dup,$sp,1),op(Op.Load,$s0),op(MachineOp.PushFrame);// Setup arguments\nlet{symbols:symbols}=symbolTable,blockSymbols=[],argSymbols=[],argNames=[],blockNames=blocks.names;// As we push values onto the stack, we store the symbols associated  with them\n// so that we can set them on the scope later on with SetVariable and SetBlock\n// Starting with the attrs block, if it exists and is referenced in the component\nif(null!==elementBlock){let symbol=symbols.indexOf(\"&attrs\");-1!==symbol&&(PushYieldableBlock(op,elementBlock),blockSymbols.push(symbol));}// Followed by the other blocks, if they exist and are referenced in the component.\n// Also store the index of the associated symbol.\nfor(const name of blockNames){let symbol=symbols.indexOf(`&${name}`);-1!==symbol&&(PushYieldableBlock(op,blocks.get(name)),blockSymbols.push(symbol));}// Next up we have arguments. If the component has the `createArgs` capability,\n// then it wants access to the arguments in JavaScript. We can't know whether\n// or not an argument is used, so we have to give access to all of them.\nif(hasCapability(capabilities,InternalComponentCapabilities.createArgs)){// First we push positional arguments\nlet flags=CompilePositional(op,positional)<<4;// setup the flags with the count of positionals, and to indicate that atNames\n// are used\nflags|=8;let names=EMPTY_STRING_ARRAY;// Next, if named args exist, push them all. If they have an associated symbol\n// in the invoked component (e.g. they are used within its template), we push\n// that symbol. If not, we still push the expression as it may be used, and\n// we store the symbol as -1 (this is used later).\nif(null!==named){names=named[0];let val=named[1];for(let i=0;i<val.length;i++){let symbol=symbols.indexOf(unwrap$1(names[i]));expr(op,val[i]),argSymbols.push(symbol);}}// Finally, push the VM arguments themselves. These args won't need access\n// to blocks (they aren't accessible from userland anyways), so we push an\n// empty array instead of the actual block names.\nop(Op.PushArgs,names,EMPTY_STRING_ARRAY,flags),// And push an extra pop operation to remove the args before we begin setting\n// variables on the local context\nargSymbols.push(-1);}else if(null!==named){// If the component does not have the `createArgs` capability, then the only\n// expressions we need to push onto the stack are those that are actually\n// referenced in the template of the invoked component (e.g. have symbols).\nlet names=named[0],val=named[1];for(let i=0;i<val.length;i++){let name=unwrap$1(names[i]),symbol=symbols.indexOf(name);-1!==symbol&&(expr(op,val[i]),argSymbols.push(symbol),argNames.push(name));}}op(Op.BeginComponentTransaction,$s0),hasCapability(capabilities,InternalComponentCapabilities.dynamicScope)&&op(Op.PushDynamicScope),hasCapability(capabilities,InternalComponentCapabilities.createInstance)&&op(Op.CreateComponent,0|blocks.has(\"default\"),$s0),op(Op.RegisterComponentDestructor,$s0),hasCapability(capabilities,InternalComponentCapabilities.createArgs)?op(Op.GetComponentSelf,$s0):op(Op.GetComponentSelf,$s0,argNames),// Setup the new root scope for the component\nop(Op.RootScope,symbols.length+1,Object.keys(blocks).length>0?1:0),// Pop the self reference off the stack and set it to the symbol for `this`\n// in the new scope. This is why all subsequent symbols are increased by one.\nop(Op.SetVariable,0);// Going in reverse, now we pop the args/blocks off the stack, starting with\n// arguments, and assign them to their symbols in the new scope.\nfor(const symbol of reverse(argSymbols))// for (let i = argSymbols.length - 1; i >= 0; i--) {\n//   let symbol = argSymbols[i];\n-1===symbol?// The expression was not bound to a local symbol, it was only pushed to be\n// used with VM args in the javascript side\nop(Op.Pop,1):op(Op.SetVariable,symbol+1);// if any positional params exist, pop them off the stack as well\nnull!==positional&&op(Op.Pop,positional.length);// Finish up by popping off and assigning blocks\nfor(const symbol of reverse(blockSymbols))op(Op.SetBlock,symbol+1);op(Op.Constant,layoutOperand(layout)),op(Op.CompileBlock),op(MachineOp.InvokeVirtual),op(Op.DidRenderLayout,$s0),op(MachineOp.PopFrame),op(Op.PopScope),hasCapability(capabilities,InternalComponentCapabilities.dynamicScope)&&op(Op.PopDynamicScope),op(Op.CommitComponentTransaction),op(Op.Load,$s0);}(op,{capabilities:capabilities,layout:compilable,elementBlock:elementBlock,positional:positional,named:named,blocks:blocks})):(op(Op.PushComponentDefinition,handle),InvokeNonStaticComponent(op,{capabilities:capabilities,elementBlock:elementBlock,positional:positional,named:named,atNames:!0,blocks:blocks}));}function InvokeDynamicComponent(op,definition,_elementBlock,positional,named,_blocks,atNames,curried){let elementBlock=_elementBlock?[_elementBlock,[]]:null,blocks=Array.isArray(_blocks)||null===_blocks?namedBlocks(_blocks):_blocks;Replayable(op,()=>(expr(op,definition),op(Op.Dup,$sp,0),2),()=>{op(Op.JumpUnless,labelOperand(\"ELSE\")),curried?op(Op.ResolveCurriedComponent):op(Op.ResolveDynamicComponent,isStrictMode()),op(Op.PushDynamicComponentInstance),InvokeNonStaticComponent(op,{capabilities:!0,elementBlock:elementBlock,positional:positional,named:named,atNames:atNames,blocks:blocks}),op(HighLevelBuilderOpcodes.Label,\"ELSE\");});}function InvokeNonStaticComponent(op,_ref19){let{capabilities:capabilities,elementBlock:elementBlock,positional:positional,named:named,atNames:atNames,blocks:namedBlocks,layout:layout}=_ref19;let bindableBlocks=!!namedBlocks,bindableAtNames=!0===capabilities||hasCapability(capabilities,InternalComponentCapabilities.prepareArgs)||!(!named||0===named[0].length),blocks=namedBlocks.with(\"attrs\",elementBlock);op(Op.Fetch,$s0),op(Op.Dup,$sp,1),op(Op.Load,$s0),op(MachineOp.PushFrame),function(op,positional,named,blocks,atNames){let blockNames=blocks.names;for(const name of blockNames)PushYieldableBlock(op,blocks.get(name));let flags=CompilePositional(op,positional)<<4;atNames&&(flags|=8),blocks&&(flags|=7);let names=EMPTY_ARRAY$4;if(named){names=named[0];let val=named[1];for(let i=0;i<val.length;i++)expr(op,val[i]);}op(Op.PushArgs,names,blockNames,flags);}(op,positional,named,blocks,atNames),op(Op.PrepareArgs,$s0),invokePreparedComponent(op,blocks.has(\"default\"),bindableBlocks,bindableAtNames,()=>{layout?(op(Op.PushSymbolTable,symbolTableOperand(layout.symbolTable)),op(Op.Constant,layoutOperand(layout)),op(Op.CompileBlock)):op(Op.GetComponentLayout,$s0),op(Op.PopulateLayout,$s0);}),op(Op.Load,$s0);}function invokePreparedComponent(op,hasBlock,bindableBlocks,bindableAtNames){let populateLayout=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;op(Op.BeginComponentTransaction,$s0),op(Op.PushDynamicScope),op(Op.CreateComponent,0|hasBlock,$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.\npopulateLayout&&populateLayout(),op(Op.RegisterComponentDestructor,$s0),op(Op.GetComponentSelf,$s0),op(Op.VirtualRootScope,$s0),op(Op.SetVariable,0),op(Op.SetupForEval,$s0),bindableAtNames&&op(Op.SetNamedVariables,$s0),bindableBlocks&&op(Op.SetBlocks,$s0),op(Op.Pop,1),op(Op.InvokeComponentLayout,$s0),op(Op.DidRenderLayout,$s0),op(MachineOp.PopFrame),op(Op.PopScope),op(Op.PopDynamicScope),op(Op.CommitComponentTransaction);}/**\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           */function StdAppend(op,trusting,nonDynamicAppend){SwitchCases(op,()=>op(Op.ContentType),when=>{when(ContentType.String,()=>{trusting?(op(Op.AssertSame),op(Op.AppendHTML)):op(Op.AppendText);}),\"number\"==typeof nonDynamicAppend?(when(ContentType.Component,()=>{op(Op.ResolveCurriedComponent),op(Op.PushDynamicComponentInstance),function(op){op(Op.Fetch,$s0),op(Op.Dup,$sp,1),op(Op.Load,$s0),op(MachineOp.PushFrame),op(Op.PushEmptyArgs),op(Op.PrepareArgs,$s0),invokePreparedComponent(op,!1,!1,!0,()=>{op(Op.GetComponentLayout,$s0),op(Op.PopulateLayout,$s0);}),op(Op.Load,$s0);}(op);}),when(ContentType.Helper,()=>{CallDynamic(op,null,null,()=>{op(MachineOp.InvokeStatic,nonDynamicAppend);});})):(// when non-dynamic, we can no longer call the value (potentially because we've already called it)\n// this prevents infinite loops. We instead coerce the value, whatever it is, into the DOM.\nwhen(ContentType.Component,()=>{op(Op.AppendText);}),when(ContentType.Helper,()=>{op(Op.AppendText);})),when(ContentType.SafeString,()=>{op(Op.AssertSame),op(Op.AppendSafeHTML);}),when(ContentType.Fragment,()=>{op(Op.AssertSame),op(Op.AppendDocumentFragment);}),when(ContentType.Node,()=>{op(Op.AssertSame),op(Op.AppendNode);});});}function compileStd(context){let mainHandle=build(context,op=>function(op){op(Op.Main,$s0),invokePreparedComponent(op,!1,!1,!0);}(op)),trustingGuardedNonDynamicAppend=build(context,op=>StdAppend(op,!0,null)),cautiousGuardedNonDynamicAppend=build(context,op=>StdAppend(op,!1,null)),trustingGuardedDynamicAppend=build(context,op=>StdAppend(op,!0,trustingGuardedNonDynamicAppend)),cautiousGuardedDynamicAppend=build(context,op=>StdAppend(op,!1,cautiousGuardedNonDynamicAppend));return new StdLib(mainHandle,trustingGuardedDynamicAppend,cautiousGuardedDynamicAppend,trustingGuardedNonDynamicAppend,cautiousGuardedNonDynamicAppend);}EXPRESSIONS.add(opcodes.Concat,(op,_ref20)=>{let[,parts]=_ref20;for(let part of parts)expr(op,part);op(Op.Concat,parts.length);}),EXPRESSIONS.add(opcodes.Call,(op,_ref21)=>{let[,expression,positional,named]=_ref21;isGetFreeHelper(expression)?op(HighLevelResolutionOpcodes.Helper,expression,handle=>{Call(op,handle,positional,named);}):(expr(op,expression),CallDynamic(op,positional,named));}),EXPRESSIONS.add(opcodes.Curry,(op,_ref22)=>{let[,expr,type,positional,named]=_ref22;Curry(op,type,expr,positional,named);}),EXPRESSIONS.add(opcodes.GetSymbol,(op,_ref23)=>{let[,sym,path]=_ref23;op(Op.GetVariable,sym),withPath(op,path);}),EXPRESSIONS.add(opcodes.GetLexicalSymbol,(op,_ref24)=>{let[,sym,path]=_ref24;op(HighLevelResolutionOpcodes.TemplateLocal,sym,handle=>{op(Op.ConstantReference,handle),withPath(op,path);});}),EXPRESSIONS.add(opcodes.GetStrictKeyword,(op,expr)=>{op(HighLevelResolutionOpcodes.Local,expr[1],_name=>{op(HighLevelResolutionOpcodes.Helper,expr,handle=>{Call(op,handle,null,null);});});}),EXPRESSIONS.add(opcodes.GetFreeAsHelperHead,(op,expr)=>{op(HighLevelResolutionOpcodes.Local,expr[1],_name=>{op(HighLevelResolutionOpcodes.Helper,expr,handle=>{Call(op,handle,null,null);});});}),EXPRESSIONS.add(opcodes.Undefined,op=>PushPrimitiveReference(op,void 0)),EXPRESSIONS.add(opcodes.HasBlock,(op,_ref25)=>{let[,block]=_ref25;expr(op,block),op(Op.HasBlock);}),EXPRESSIONS.add(opcodes.HasBlockParams,(op,_ref26)=>{let[,block]=_ref26;expr(op,block),op(Op.SpreadBlock),op(Op.CompileBlock),op(Op.HasBlockParams);}),EXPRESSIONS.add(opcodes.IfInline,(op,_ref27)=>{let[,condition,truthy,falsy]=_ref27;// Push in reverse order\nexpr(op,falsy),expr(op,truthy),expr(op,condition),op(Op.IfInline);}),EXPRESSIONS.add(opcodes.Not,(op,_ref28)=>{let[,value]=_ref28;expr(op,value),op(Op.Not);}),EXPRESSIONS.add(opcodes.GetDynamicVar,(op,_ref29)=>{let[,expression]=_ref29;expr(op,expression),op(Op.GetDynamicVar);}),EXPRESSIONS.add(opcodes.Log,(op,_ref30)=>{let[,positional]=_ref30;op(MachineOp.PushFrame),SimpleArgs(op,positional,null,!1),op(Op.Log),op(MachineOp.PopFrame),op(Op.Fetch,$v0);});const STDLIB_META={evalSymbols:null,upvars:null,moduleName:\"stdlib\",// TODO: ??\nscopeValues:null,isStrictMode:!0,owner:null,size:0};function build(program,builder){let{constants:constants,heap:heap,resolver:resolver}=program,encoder=new EncoderImpl(heap,STDLIB_META);builder(function(){for(var _len7=arguments.length,op=new Array(_len7),_key8=0;_key8<_len7;_key8++){op[_key8]=arguments[_key8];}encodeOp(encoder,constants,resolver,STDLIB_META,op);});let result=encoder.commit(0);if(\"number\"!=typeof result)// This shouldn't be possible\nthrow new Error(\"Unexpected errors compiling std\");return result;}class CompileTimeCompilationContextImpl{constructor(_ref31,resolver,createOp){let{constants:constants,heap:heap}=_ref31;_defineProperty(this,\"constants\",void 0);_defineProperty(this,\"heap\",void 0);_defineProperty(this,\"stdlib\",void 0);this.resolver=resolver,this.createOp=createOp,this.constants=constants,this.heap=heap,this.stdlib=compileStd(this);}}function programCompilationContext(artifacts,resolver,createOp){return new CompileTimeCompilationContextImpl(artifacts,resolver,createOp);}function templateCompilationContext(program,meta){return{program:program,encoder:new EncoderImpl(program.heap,meta,program.stdlib),meta:meta};}const STATEMENTS=new Compilers(),INFLATE_ATTR_TABLE=[\"class\",\"id\",\"value\",\"name\",\"type\",\"style\",\"href\"],INFLATE_TAG_TABLE=[\"div\",\"span\",\"p\",\"a\"];function inflateTagName(tagName){return\"string\"==typeof tagName?tagName:INFLATE_TAG_TABLE[tagName];}function inflateAttrName(attrName){return\"string\"==typeof attrName?attrName:INFLATE_ATTR_TABLE[attrName];}function hashToArgs(hash){return null===hash?null:[hash[0].map(key=>`@${key}`),hash[1]];}STATEMENTS.add(opcodes.Comment,(op,sexp)=>op(Op.Comment,sexp[1])),STATEMENTS.add(opcodes.CloseElement,op=>op(Op.CloseElement)),STATEMENTS.add(opcodes.FlushElement,op=>op(Op.FlushElement)),STATEMENTS.add(opcodes.Modifier,(op,_ref32)=>{let[,expression,positional,named]=_ref32;isGetFreeModifier(expression)?op(HighLevelResolutionOpcodes.Modifier,expression,handle=>{op(MachineOp.PushFrame),SimpleArgs(op,positional,named,!1),op(Op.Modifier,handle),op(MachineOp.PopFrame);}):(expr(op,expression),op(MachineOp.PushFrame),SimpleArgs(op,positional,named,!1),op(Op.Dup,$fp,1),op(Op.DynamicModifier),op(MachineOp.PopFrame));}),STATEMENTS.add(opcodes.StaticAttr,(op,_ref33)=>{let[,name,value,namespace]=_ref33;op(Op.StaticAttr,inflateAttrName(name),value,namespace!==null&&namespace!==void 0?namespace:null);}),STATEMENTS.add(opcodes.StaticComponentAttr,(op,_ref34)=>{let[,name,value,namespace]=_ref34;op(Op.StaticComponentAttr,inflateAttrName(name),value,namespace!==null&&namespace!==void 0?namespace:null);}),STATEMENTS.add(opcodes.DynamicAttr,(op,_ref35)=>{let[,name,value,namespace]=_ref35;expr(op,value),op(Op.DynamicAttr,inflateAttrName(name),!1,namespace!==null&&namespace!==void 0?namespace:null);}),STATEMENTS.add(opcodes.TrustingDynamicAttr,(op,_ref36)=>{let[,name,value,namespace]=_ref36;expr(op,value),op(Op.DynamicAttr,inflateAttrName(name),!0,namespace!==null&&namespace!==void 0?namespace:null);}),STATEMENTS.add(opcodes.ComponentAttr,(op,_ref37)=>{let[,name,value,namespace]=_ref37;expr(op,value),op(Op.ComponentAttr,inflateAttrName(name),!1,namespace!==null&&namespace!==void 0?namespace:null);}),STATEMENTS.add(opcodes.TrustingComponentAttr,(op,_ref38)=>{let[,name,value,namespace]=_ref38;expr(op,value),op(Op.ComponentAttr,inflateAttrName(name),!0,namespace!==null&&namespace!==void 0?namespace:null);}),STATEMENTS.add(opcodes.OpenElement,(op,_ref39)=>{let[,tag]=_ref39;op(Op.OpenElement,inflateTagName(tag));}),STATEMENTS.add(opcodes.OpenElementWithSplat,(op,_ref40)=>{let[,tag]=_ref40;op(Op.PutComponentOperations),op(Op.OpenElement,inflateTagName(tag));}),STATEMENTS.add(opcodes.Component,(op,_ref41)=>{let[,expr,elementBlock,named,blocks]=_ref41;isGetFreeComponent(expr)?op(HighLevelResolutionOpcodes.Component,expr,component=>{InvokeComponent(op,component,elementBlock,null,named,blocks);}):// otherwise, the component name was an expression, so resolve the expression\n// and invoke it as a dynamic component\nInvokeDynamicComponent(op,expr,elementBlock,null,named,blocks,!0,!0);}),STATEMENTS.add(opcodes.Yield,(op,_ref42)=>{let[,to,params]=_ref42;return YieldBlock(op,to,params);}),STATEMENTS.add(opcodes.AttrSplat,(op,_ref43)=>{let[,to]=_ref43;return YieldBlock(op,to,null);}),STATEMENTS.add(opcodes.Debugger,(op,_ref44)=>{let[,debugInfo]=_ref44;return op(Op.Debugger,{type:HighLevelOperands.DebugSymbols,value:void 0},debugInfo);}),STATEMENTS.add(opcodes.Append,(op,_ref45)=>{let[,value]=_ref45;// Special case for static values\nif(Array.isArray(value)){if(isGetFreeComponentOrHelper(value))op(HighLevelResolutionOpcodes.OptionalComponentOrHelper,value,{ifComponent(component){InvokeComponent(op,component,null,null,null,null);},ifHelper(handle){op(MachineOp.PushFrame),Call(op,handle,null,null),op(MachineOp.InvokeStatic,stdlibOperand(\"cautious-non-dynamic-append\")),op(MachineOp.PopFrame);},ifValue(handle){op(MachineOp.PushFrame),op(Op.ConstantReference,handle),op(MachineOp.InvokeStatic,stdlibOperand(\"cautious-non-dynamic-append\")),op(MachineOp.PopFrame);}});else if(value[0]===opcodes.Call){let[,expression,positional,named]=value;isGetFreeComponentOrHelper(expression)?op(HighLevelResolutionOpcodes.ComponentOrHelper,expression,{ifComponent(component){InvokeComponent(op,component,null,positional,hashToArgs(named),null);},ifHelper(handle){op(MachineOp.PushFrame),Call(op,handle,positional,named),op(MachineOp.InvokeStatic,stdlibOperand(\"cautious-non-dynamic-append\")),op(MachineOp.PopFrame);}}):SwitchCases(op,()=>{expr(op,expression),op(Op.DynamicContentType);},when=>{when(ContentType.Component,()=>{op(Op.ResolveCurriedComponent),op(Op.PushDynamicComponentInstance),InvokeNonStaticComponent(op,{capabilities:!0,elementBlock:null,positional:positional,named:named,atNames:!1,blocks:namedBlocks(null)});}),when(ContentType.Helper,()=>{CallDynamic(op,positional,named,()=>{op(MachineOp.InvokeStatic,stdlibOperand(\"cautious-non-dynamic-append\"));});});});}else op(MachineOp.PushFrame),expr(op,value),op(MachineOp.InvokeStatic,stdlibOperand(\"cautious-append\")),op(MachineOp.PopFrame);}else op(Op.Text,null==value?\"\":String(value));}),STATEMENTS.add(opcodes.TrustingAppend,(op,_ref46)=>{let[,value]=_ref46;Array.isArray(value)?(op(MachineOp.PushFrame),expr(op,value),op(MachineOp.InvokeStatic,stdlibOperand(\"trusting-append\")),op(MachineOp.PopFrame)):op(Op.Text,null==value?\"\":String(value));}),STATEMENTS.add(opcodes.Block,(op,_ref47)=>{let[,expr,positional,named,blocks]=_ref47;isGetFreeComponent(expr)?op(HighLevelResolutionOpcodes.Component,expr,component=>{InvokeComponent(op,component,null,positional,hashToArgs(named),blocks);}):InvokeDynamicComponent(op,expr,null,positional,named,blocks,!1,!1);}),STATEMENTS.add(opcodes.InElement,(op,_ref48)=>{let[,block,guid,destination,insertBefore]=_ref48;ReplayableIf(op,()=>(expr(op,guid),void 0===insertBefore?PushPrimitiveReference(op,void 0):expr(op,insertBefore),expr(op,destination),op(Op.Dup,$sp,0),4),()=>{op(Op.PushRemoteElement),InvokeStaticBlock(op,block),op(Op.PopRemoteElement);});}),STATEMENTS.add(opcodes.If,(op,_ref49)=>{let[,condition,block,inverse]=_ref49;return ReplayableIf(op,()=>(expr(op,condition),op(Op.ToBoolean),1),()=>{InvokeStaticBlock(op,block);},inverse?()=>{InvokeStaticBlock(op,inverse);}:void 0);}),STATEMENTS.add(opcodes.Each,(op,_ref50)=>{let[,value,key,block,inverse]=_ref50;return Replayable(op,()=>(key?expr(op,key):PushPrimitiveReference(op,null),expr(op,value),2),()=>{op(Op.EnterList,labelOperand(\"BODY\"),labelOperand(\"ELSE\")),op(MachineOp.PushFrame),op(Op.Dup,$fp,1),op(MachineOp.ReturnTo,labelOperand(\"ITER\")),op(HighLevelBuilderOpcodes.Label,\"ITER\"),op(Op.Iterate,labelOperand(\"BREAK\")),op(HighLevelBuilderOpcodes.Label,\"BODY\"),InvokeStaticBlockWithStack(op,block,2),op(Op.Pop,2),op(MachineOp.Jump,labelOperand(\"FINALLY\")),op(HighLevelBuilderOpcodes.Label,\"BREAK\"),op(MachineOp.PopFrame),op(Op.ExitList),op(MachineOp.Jump,labelOperand(\"FINALLY\")),op(HighLevelBuilderOpcodes.Label,\"ELSE\"),inverse&&InvokeStaticBlock(op,inverse);});}),STATEMENTS.add(opcodes.Let,(op,_ref51)=>{let[,positional,block]=_ref51;InvokeStaticBlockWithStack(op,block,CompilePositional(op,positional));}),STATEMENTS.add(opcodes.WithDynamicVars,(op,_ref52)=>{let[,named,block]=_ref52;if(named){let[names,expressions]=named;CompilePositional(op,expressions),function(op,names,block){op(Op.PushDynamicScope),op(Op.BindDynamicScope,names),block(),op(Op.PopDynamicScope);}(op,names,()=>{InvokeStaticBlock(op,block);});}else InvokeStaticBlock(op,block);}),STATEMENTS.add(opcodes.InvokeComponent,(op,_ref53)=>{let[,expr,positional,named,blocks]=_ref53;isGetFreeComponent(expr)?op(HighLevelResolutionOpcodes.Component,expr,component=>{InvokeComponent(op,component,null,positional,hashToArgs(named),blocks);}):InvokeDynamicComponent(op,expr,null,positional,named,blocks,!1,!1);});class CompilableTemplateImpl{constructor(statements,meta,// Part of CompilableTemplate\nsymbolTable){let moduleName=arguments.length>3&&arguments[3]!==undefined?arguments[3]:\"plain block\";_defineProperty(this,\"compiled\",null);this.statements=statements,this.meta=meta,this.symbolTable=symbolTable,this.moduleName=moduleName;}// Part of CompilableTemplate\ncompile(context){return function(compilable,context){if(null!==compilable.compiled)return compilable.compiled;compilable.compiled=-1;let{statements:statements,meta:meta}=compilable,result=compileStatements(statements,meta,context);return compilable.compiled=result,result;}(this,context);}}function compilable(layout,moduleName){let[statements,symbols,hasEval]=layout.block;return new CompilableTemplateImpl(statements,meta$1(layout),{symbols:symbols,hasEval:hasEval},moduleName);}function compileStatements(statements,meta,syntaxContext){let sCompiler=STATEMENTS,context=templateCompilationContext(syntaxContext,meta),{encoder:encoder,program:{constants:constants,resolver:resolver}}=context;function pushOp(){for(var _len8=arguments.length,op=new Array(_len8),_key9=0;_key9<_len8;_key9++){op[_key9]=arguments[_key9];}encodeOp(encoder,constants,resolver,meta,op);}for(const statement of statements)sCompiler.compile(pushOp,statement);return context.encoder.commit(meta.size);}const DEFAULT_CAPABILITIES={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!0,createArgs:!0,attributeHook:!1,elementHook:!1,dynamicScope:!0,createCaller:!1,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1},MINIMAL_CAPABILITIES={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,dynamicScope:!1,createCaller:!1,updateHook:!1,createInstance:!1,wrapped:!1,willDestroy:!1,hasSubOwner:!1};class WrappedBuilder{constructor(layout,moduleName){_defineProperty(this,\"symbolTable\",void 0);_defineProperty(this,\"compiled\",null);_defineProperty(this,\"attrsBlockNumber\",void 0);this.layout=layout,this.moduleName=moduleName;let{block:block}=layout,[,symbols,hasEval]=block;symbols=symbols.slice();// ensure ATTRS_BLOCK is always included (only once) in the list of symbols\nlet attrsBlockIndex=symbols.indexOf(\"&attrs\");this.attrsBlockNumber=-1===attrsBlockIndex?symbols.push(\"&attrs\"):attrsBlockIndex+1,this.symbolTable={hasEval:hasEval,symbols:symbols};}compile(syntax){if(null!==this.compiled)return this.compiled;let m=meta$1(this.layout),context=templateCompilationContext(syntax,m),{encoder:encoder,program:{constants:constants,resolver:resolver}}=context;var op,layout,attrsBlockNumber;op=function(){for(var _len9=arguments.length,op=new Array(_len9),_key0=0;_key0<_len9;_key0++){op[_key0]=arguments[_key0];}encodeOp(encoder,constants,resolver,m,op);},layout=this.layout,attrsBlockNumber=this.attrsBlockNumber,op(HighLevelBuilderOpcodes.StartLabels),function(op,register,block){op(Op.Fetch,register),block(),op(Op.Load,register);}(op,$s1,()=>{op(Op.GetComponentTagName,$s0),op(Op.PrimitiveReference),op(Op.Dup,$sp,0);}),op(Op.JumpUnless,labelOperand(\"BODY\")),op(Op.Fetch,$s1),op(Op.PutComponentOperations),op(Op.OpenDynamicElement),op(Op.DidCreateElement,$s0),YieldBlock(op,attrsBlockNumber,null),op(Op.FlushElement),op(HighLevelBuilderOpcodes.Label,\"BODY\"),InvokeStaticBlock(op,[layout.block[0],[]]),op(Op.Fetch,$s1),op(Op.JumpUnless,labelOperand(\"END\")),op(Op.CloseElement),op(HighLevelBuilderOpcodes.Label,\"END\"),op(Op.Load,$s1),op(HighLevelBuilderOpcodes.StopLabels);let handle=context.encoder.commit(m.size);return\"number\"!=typeof handle||(this.compiled=handle),handle;}}let clientId=0,templateCacheCounters={cacheHit:0,cacheMiss:0};// These interfaces are for backwards compatibility, some addons use these intimate APIs\n/**\n           * Wraps a template js in a template module to change it into a factory\n           * that handles lazy parsing the template and to create per env singletons\n           * of the template.\n           */function templateFactory(_ref54){let{id:templateId,moduleName:moduleName,block:block,scope:scope,isStrictMode:isStrictMode}=_ref54;// TODO(template-refactors): This should be removed in the near future, as it\n// appears that id is unused. It is currently kept for backwards compat reasons.\nlet parsedBlock,id=templateId||\"client-\"+clientId++,ownerlessTemplate=null,templateCache=new WeakMap(),factory=owner=>{if(void 0===parsedBlock&&(parsedBlock=JSON.parse(block)),void 0===owner)return null===ownerlessTemplate?(templateCacheCounters.cacheMiss++,ownerlessTemplate=new TemplateImpl({id:id,block:parsedBlock,moduleName:moduleName,owner:null,scope:scope,isStrictMode:isStrictMode})):templateCacheCounters.cacheHit++,ownerlessTemplate;let result=templateCache.get(owner);return void 0===result?(templateCacheCounters.cacheMiss++,result=new TemplateImpl({id:id,block:parsedBlock,moduleName:moduleName,owner:owner,scope:scope,isStrictMode:isStrictMode}),templateCache.set(owner,result)):templateCacheCounters.cacheHit++,result;};// TODO: This caches JSON serialized output once in case a template is\n// compiled by multiple owners, but we haven't verified if this is actually\n// helpful. We should benchmark this in the future.\nreturn factory.__id=id,factory.__meta={moduleName:moduleName},factory;}class TemplateImpl{constructor(parsedLayout){_defineProperty(this,\"result\",\"ok\");_defineProperty(this,\"layout\",null);_defineProperty(this,\"wrappedLayout\",null);this.parsedLayout=parsedLayout;}get moduleName(){return this.parsedLayout.moduleName;}get id(){return this.parsedLayout.id;}// TODO(template-refactors): This should be removed in the near future, it is\n// only being exposed for backwards compatibility\nget referrer(){return{moduleName:this.parsedLayout.moduleName,owner:this.parsedLayout.owner};}asLayout(){return this.layout?this.layout:this.layout=compilable(assign({},this.parsedLayout),this.moduleName);}asWrappedLayout(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new WrappedBuilder(assign({},this.parsedLayout),this.moduleName);}}const glimmerOpcodeCompiler=/*#__PURE__*/Object.defineProperty({__proto__:null,CompileTimeCompilationContextImpl,DEFAULT_CAPABILITIES,EMPTY_BLOCKS,MINIMAL_CAPABILITIES,StdLib,WrappedBuilder,compilable,compileStatements,compileStd,debugCompiler,invokeStaticBlock:InvokeStaticBlock,invokeStaticBlockWithStack:InvokeStaticBlockWithStack,meta:meta$1,programCompilationContext,templateCacheCounters,templateCompilationContext,templateFactory},Symbol.toStringTag,{value:'Module'});const emberTemplateFactoryIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,createTemplateFactory:templateFactory},Symbol.toStringTag,{value:'Module'});const RootTemplate=templateFactory(/*\n            {{component this}}\n          */{\"id\":\"tjANIXCV\",\"block\":\"[[[46,[30,0],null,null,null]],[],false,[\\\"component\\\"]]\",\"moduleName\":\"packages/@ember/-internals/glimmer/lib/templates/root.hbs\",\"isStrictMode\":true});const objectPrototype=Object.prototype;let counters;{counters={peekCalls:0,peekPrototypeWalks:0,setCalls:0,deleteCalls:0,metaCalls:0,metaInstantiated:0,matchingListenersCalls:0,observerEventsCalls:0,addToListenersCalls:0,removeFromListenersCalls:0,removeAllListenersCalls:0,listenersInherited:0,listenersFlattened:0,parentListenersUsed:0,flattenedListenersCalls:0,reopensAfterFlatten:0,readableLazyChainsCalls:0,writableLazyChainsCalls:0};}/**\n          @module ember\n          */const UNDEFINED=symbol('undefined');var ListenerKind=/*#__PURE__*/function(ListenerKind){ListenerKind[ListenerKind[\"ADD\"]=0]=\"ADD\";ListenerKind[ListenerKind[\"ONCE\"]=1]=\"ONCE\";ListenerKind[ListenerKind[\"REMOVE\"]=2]=\"REMOVE\";return ListenerKind;}(ListenerKind||{});let currentListenerVersion=1;class Meta{// DEBUG\n/** @internal */constructor(obj){/** @internal */_defineProperty(this,\"_descriptors\",void 0);/** @internal */_defineProperty(this,\"_mixins\",void 0);/** @internal */_defineProperty(this,\"_isInit\",void 0);/** @internal */_defineProperty(this,\"_lazyChains\",void 0);/** @internal */_defineProperty(this,\"_values\",void 0);/** @internal */_defineProperty(this,\"_revisions\",void 0);/** @internal */_defineProperty(this,\"source\",void 0);/** @internal */_defineProperty(this,\"proto\",void 0);/** @internal */_defineProperty(this,\"_parent\",void 0);/** @internal */_defineProperty(this,\"_listeners\",void 0);/** @internal */_defineProperty(this,\"_listenersVersion\",1);/** @internal */_defineProperty(this,\"_inheritedEnd\",-1);/** @internal */_defineProperty(this,\"_flattenedVersion\",0);{counters.metaInstantiated++;}this._parent=undefined;this._descriptors=undefined;this._mixins=undefined;this._lazyChains=undefined;this._values=undefined;this._revisions=undefined;// initial value for all flags right now is false\n// see FLAGS const for detailed list of flags used\nthis._isInit=false;// used only internally\nthis.source=obj;this.proto=obj.constructor===undefined?undefined:obj.constructor.prototype;this._listeners=undefined;}/** @internal */get parent(){let parent=this._parent;if(parent===undefined){let proto=getPrototypeOf(this.source);this._parent=parent=proto===null||proto===objectPrototype?null:meta(proto);}return parent;}setInitializing(){this._isInit=true;}/** @internal */unsetInitializing(){this._isInit=false;}/** @internal */isInitializing(){return this._isInit;}/** @internal */isPrototypeMeta(obj){return this.proto===this.source&&this.source===obj;}/** @internal */_getOrCreateOwnMap(key){return this[key]||(this[key]=Object.create(null));}/** @internal */_getOrCreateOwnSet(key){return this[key]||(this[key]=new Set());}/** @internal */_findInheritedMap(key,subkey){let pointer=this;while(pointer!==null){let map=pointer[key];if(map!==undefined){let value=map.get(subkey);if(value!==undefined){return value;}}pointer=pointer.parent;}}/** @internal */_hasInInheritedSet(key,value){let pointer=this;while(pointer!==null){let set=pointer[key];if(set!==undefined&&set.has(value)){return true;}pointer=pointer.parent;}return false;}/** @internal */valueFor(key){let values=this._values;return values!==undefined?values[key]:undefined;}/** @internal */setValueFor(key,value){let values=this._getOrCreateOwnMap('_values');values[key]=value;}/** @internal */revisionFor(key){let revisions=this._revisions;return revisions!==undefined?revisions[key]:undefined;}/** @internal */setRevisionFor(key,revision){let revisions=this._getOrCreateOwnMap('_revisions');revisions[key]=revision;}/** @internal */writableLazyChainsFor(key){{counters.writableLazyChainsCalls++;}let lazyChains=this._getOrCreateOwnMap('_lazyChains');let chains=lazyChains[key];if(chains===undefined){chains=lazyChains[key]=[];}return chains;}/** @internal */readableLazyChainsFor(key){{counters.readableLazyChainsCalls++;}let lazyChains=this._lazyChains;if(lazyChains!==undefined){return lazyChains[key];}return undefined;}/** @internal */addMixin(mixin){!!isDestroyed(this.source)&&assert$1(isDestroyed(this.source)?`Cannot add mixins of \\`${toString$1(mixin)}\\` on \\`${toString$1(this.source)}\\` call addMixin after it has been destroyed.`:'',!isDestroyed(this.source));let set=this._getOrCreateOwnSet('_mixins');set.add(mixin);}/** @internal */hasMixin(mixin){return this._hasInInheritedSet('_mixins',mixin);}/** @internal */forEachMixins(fn){let pointer=this;let seen;while(pointer!==null){let set=pointer._mixins;if(set!==undefined){seen=seen===undefined?new Set():seen;// TODO cleanup typing here\nset.forEach(mixin=>{if(!seen.has(mixin)){seen.add(mixin);fn(mixin);}});}pointer=pointer.parent;}}/** @internal */writeDescriptors(subkey,value){!!isDestroyed(this.source)&&assert$1(isDestroyed(this.source)?`Cannot update descriptors for \\`${subkey}\\` on \\`${toString$1(this.source)}\\` after it has been destroyed.`:'',!isDestroyed(this.source));let map=this._descriptors||(this._descriptors=new Map());map.set(subkey,value);}/** @internal */peekDescriptors(subkey){let possibleDesc=this._findInheritedMap('_descriptors',subkey);return possibleDesc===UNDEFINED?undefined:possibleDesc;}/** @internal */removeDescriptors(subkey){this.writeDescriptors(subkey,UNDEFINED);}/** @internal */forEachDescriptors(fn){let pointer=this;let seen;while(pointer!==null){let map=pointer._descriptors;if(map!==undefined){seen=seen===undefined?new Set():seen;map.forEach((value,key)=>{if(!seen.has(key)){seen.add(key);if(value!==UNDEFINED){fn(key,value);}}});}pointer=pointer.parent;}}/** @internal */addToListeners(eventName,target,method,once,sync){{counters.addToListenersCalls++;}this.pushListener(eventName,target,method,once?ListenerKind.ONCE:ListenerKind.ADD,sync);}/** @internal */removeFromListeners(eventName,target,method){{counters.removeFromListenersCalls++;}this.pushListener(eventName,target,method,ListenerKind.REMOVE);}pushListener(event,target,method,kind){let sync=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;let listeners=this.writableListeners();let i=indexOfListener(listeners,event,target,method);// remove if found listener was inherited\nif(i!==-1&&i<this._inheritedEnd){listeners.splice(i,1);this._inheritedEnd--;i=-1;}// 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.\nif(i===-1){!!(this.isPrototypeMeta(this.source)&&typeof method==='function')&&assert$1('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'));!!(!this.isPrototypeMeta(this.source)&&typeof method==='function'&&kind===ListenerKind.REMOVE)&&assert$1('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===ListenerKind.REMOVE));listeners.push({event,target,method,kind,sync});}else{let listener=listeners[i];!listener&&assert$1('has listener',listener);// 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.\nif(kind===ListenerKind.REMOVE&&listener.kind!==ListenerKind.REMOVE){listeners.splice(i,1);}else{!!(listener.kind===ListenerKind.ADD&&kind===ListenerKind.ADD&&listener.sync!==sync)&&assert$1(`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 ${String(method)}.`,!(listener.kind===ListenerKind.ADD&&kind===ListenerKind.ADD&&listener.sync!==sync));// update own listener\nlistener.kind=kind;listener.sync=sync;}}}writableListeners(){// 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.\nif(this._flattenedVersion===currentListenerVersion&&(this.source===this.proto||this._inheritedEnd===-1)){{counters.reopensAfterFlatten++;}currentListenerVersion++;}// Inherited end has not been set, then we have never created our own\n// listeners, but may have cached the parent's\nif(this._inheritedEnd===-1){this._inheritedEnd=0;this._listeners=[];}return this._listeners;}/**\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            */flattenedListeners(){{counters.flattenedListenersCalls++;}if(this._flattenedVersion<currentListenerVersion){{counters.listenersFlattened++;}let parent=this.parent;if(parent!==null){// compute\nlet parentListeners=parent.flattenedListeners();if(parentListeners!==undefined){if(this._listeners===undefined){// 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{counters.parentListenersUsed++;}this._listeners=parentListeners;}else{let listeners=this._listeners;if(this._inheritedEnd>0){listeners.splice(0,this._inheritedEnd);this._inheritedEnd=0;}for(let listener of parentListeners){let index=indexOfListener(listeners,listener.event,listener.target,listener.method);if(index===-1){{counters.listenersInherited++;}listeners.unshift(listener);this._inheritedEnd++;}}}}}this._flattenedVersion=currentListenerVersion;}return this._listeners;}/** @internal */matchingListeners(eventName){let listeners=this.flattenedListeners();let result;{counters.matchingListenersCalls++;}if(listeners!==undefined){for(let listener of listeners){// REMOVE listeners are placeholders that tell us not to\n// inherit, so they never match. Only ADD and ONCE can match.\nif(listener.event===eventName&&(listener.kind===ListenerKind.ADD||listener.kind===ListenerKind.ONCE)){if(result===undefined){// we create this array only after we've found a listener that\n// matches to avoid allocations when no matches are found.\nresult=[];}result.push(listener.target,listener.method,listener.kind===ListenerKind.ONCE);}}}return result;}/** @internal */observerEvents(){let listeners=this.flattenedListeners();let result;{counters.observerEventsCalls++;}if(listeners!==undefined){for(let listener of listeners){// REMOVE listeners are placeholders that tell us not to\n// inherit, so they never match. Only ADD and ONCE can match.\nif((listener.kind===ListenerKind.ADD||listener.kind===ListenerKind.ONCE)&&listener.event.indexOf(':change')!==-1){if(result===undefined){// we create this array only after we've found a listener that\n// matches to avoid allocations when no matches are found.\nresult=[];}result.push(listener);}}}return result;}}const getPrototypeOf=Object.getPrototypeOf;const metaStore=new WeakMap();function setMeta(obj,meta){!(obj!==null)&&assert$1('Cannot call `setMeta` on null',obj!==null);!(obj!==undefined)&&assert$1('Cannot call `setMeta` on undefined',obj!==undefined);!(typeof obj==='object'||typeof obj==='function')&&assert$1(`Cannot call \\`setMeta\\` on ${typeof obj}`,typeof obj==='object'||typeof obj==='function');{counters.setCalls++;}metaStore.set(obj,meta);}function peekMeta(obj){!(obj!==null)&&assert$1('Cannot call `peekMeta` on null',obj!==null);!(obj!==undefined)&&assert$1('Cannot call `peekMeta` on undefined',obj!==undefined);!(typeof obj==='object'||typeof obj==='function')&&assert$1(`Cannot call \\`peekMeta\\` on ${typeof obj}`,typeof obj==='object'||typeof obj==='function');{counters.peekCalls++;}let meta=metaStore.get(obj);if(meta!==undefined){return meta;}let pointer=getPrototypeOf(obj);while(pointer!==null){{counters.peekPrototypeWalks++;}meta=metaStore.get(pointer);if(meta!==undefined){if(meta.proto!==pointer){// 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.\nmeta.proto=pointer;}return meta;}pointer=getPrototypeOf(pointer);}return null;}/**\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          */const meta=function meta(obj){!(obj!==null)&&assert$1('Cannot call `meta` on null',obj!==null);!(obj!==undefined)&&assert$1('Cannot call `meta` on undefined',obj!==undefined);!(typeof obj==='object'||typeof obj==='function')&&assert$1(`Cannot call \\`meta\\` on ${typeof obj}`,typeof obj==='object'||typeof obj==='function');{counters.metaCalls++;}let maybeMeta=peekMeta(obj);// remove this code, in-favor of explicit parent\nif(maybeMeta!==null&&maybeMeta.source===obj){return maybeMeta;}let newMeta=new Meta(obj);setMeta(obj,newMeta);return newMeta;};{meta._counters=counters;}function indexOfListener(listeners,event,target,method){for(let i=listeners.length-1;i>=0;i--){let listener=listeners[i];!listener&&assert$1('has listener',listener);if(listener.event===event&&listener.target===target&&listener.method===method){return i;}}return-1;}const emberinternalsMetaLibMeta=/*#__PURE__*/Object.defineProperty({__proto__:null,Meta,UNDEFINED,get counters(){return counters;},meta,peekMeta,setMeta},Symbol.toStringTag,{value:'Module'});const emberinternalsMetaIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,Meta,UNDEFINED,get counters(){return counters;},meta,peekMeta,setMeta},Symbol.toStringTag,{value:'Module'});function objectAt(array,index){if(Array.isArray(array)){return array[index];}else{return array.objectAt(index);}}/////////\n// This is exported for `@tracked`, but should otherwise be avoided. Use `tagForObject`.\nconst SELF_TAG=symbol('SELF_TAG');function tagForProperty(obj,propertyKey){let addMandatorySetter=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;let meta=arguments.length>3?arguments[3]:undefined;let customTagFor=getCustomTagFor(obj);if(customTagFor!==undefined){return customTagFor(obj,propertyKey,addMandatorySetter);}let tag=tagFor(obj,propertyKey,meta);if(addMandatorySetter){setupMandatorySetter(tag,obj,propertyKey);}return tag;}function tagForObject(obj){if(isObject$1(obj)){{!!isDestroyed(obj)&&assert$1(isDestroyed(obj)?`Cannot create a new tag for \\`${toString$1(obj)}\\` after it has been destroyed.`:'',!isDestroyed(obj));}return tagFor(obj,SELF_TAG);}return CONSTANT_TAG;}function markObjectAsDirty(obj,propertyKey){dirtyTagFor(obj,propertyKey);dirtyTagFor(obj,SELF_TAG);}const CHAIN_PASS_THROUGH=new WeakSet();function finishLazyChains(meta,key,value){let lazyTags=meta.readableLazyChainsFor(key);if(lazyTags===undefined){return;}if(isObject$1(value)){for(let[tag,deps]of lazyTags){UPDATE_TAG(tag,getChainTagsForKey(value,deps,tagMetaFor(value),peekMeta(value)));}}lazyTags.length=0;}function getChainTagsForKeys(obj,keys,tagMeta,meta){let tags=[];for(let key of keys){getChainTags(tags,obj,key,tagMeta,meta);}return combine(tags);}function getChainTagsForKey(obj,key,tagMeta,meta){return combine(getChainTags([],obj,key,tagMeta,meta));}function getChainTags(chainTags,obj,path,tagMeta,meta$1){let current=obj;let currentTagMeta=tagMeta;let currentMeta=meta$1;let pathLength=path.length;let segmentEnd=-1;// prevent closures\nlet segment,descriptor;// eslint-disable-next-line no-constant-condition\nwhile(true){let lastSegmentEnd=segmentEnd+1;segmentEnd=path.indexOf('.',lastSegmentEnd);if(segmentEnd===-1){segmentEnd=pathLength;}segment=path.slice(lastSegmentEnd,segmentEnd);// If the segment is an @each, we can process it and then break\nif(segment==='@each'&&segmentEnd!==pathLength){lastSegmentEnd=segmentEnd+1;segmentEnd=path.indexOf('.',lastSegmentEnd);let arrLength=current.length;if(typeof arrLength!=='number'||// TODO: should the second test be `isEmberArray` instead?\n!(Array.isArray(current)||'objectAt'in current)){// 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.\nbreak;}else if(arrLength===0){// Fast path for empty arrays\nchainTags.push(tagForProperty(current,'[]'));break;}if(segmentEnd===-1){segment=path.slice(lastSegmentEnd);}else{// Deprecated, remove once we turn the deprecation into an assertion\nsegment=path.slice(lastSegmentEnd,segmentEnd);}// Push the tags for each item's property\nfor(let i=0;i<arrLength;i++){let item=objectAt(current,i);if(item){!(typeof item==='object')&&assert$1(`When using @each to observe the array \\`${current.toString()}\\`, the items in the array must be objects`,typeof item==='object');chainTags.push(tagForProperty(item,segment,true));currentMeta=peekMeta(item);descriptor=currentMeta!==null?currentMeta.peekDescriptors(segment):undefined;// If the key is an alias, we need to bootstrap it\nif(descriptor!==undefined&&typeof descriptor.altKey==='string'){item[segment];}}}// Push the tag for the array length itself\nchainTags.push(tagForProperty(current,'[]',true,currentTagMeta));break;}let propertyTag=tagForProperty(current,segment,true,currentTagMeta);descriptor=currentMeta!==null?currentMeta.peekDescriptors(segment):undefined;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.\nif(segmentEnd===pathLength){// 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.\nif(CHAIN_PASS_THROUGH.has(descriptor)){current[segment];}break;}if(descriptor===undefined){// If the descriptor is undefined, then its a normal property, so we should\n// lookup the value to chain off of like normal.\nif(!(segment in current)&&typeof current.unknownProperty==='function'){current=current.unknownProperty(segment);}else{current=current[segment];}}else if(CHAIN_PASS_THROUGH.has(descriptor)){current=current[segment];}else{// 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.\nlet instanceMeta=currentMeta.source===current?currentMeta:meta(current);let lastRevision=instanceMeta.revisionFor(segment);if(lastRevision!==undefined&&validateTag(propertyTag,lastRevision)){current=instanceMeta.valueFor(segment);}else{// use metaFor here to ensure we have the meta for the instance\nlet lazyChains=instanceMeta.writableLazyChainsFor(segment);let rest=path.substring(segmentEnd+1);let placeholderTag=createUpdatableTag();lazyChains.push([placeholderTag,rest]);chainTags.push(placeholderTag);break;}}if(!isObject$1(current)){// we've hit the end of the chain for now, break out\nbreak;}currentTagMeta=tagMetaFor(current);currentMeta=peekMeta(current);}return chainTags;}// Same as built-in MethodDecorator but with more arguments\nfunction isElementDescriptor(args){let[maybeTarget,maybeKey,maybeDesc]=args;return(// Ensure we have the right number of args\nargs.length===3&&(// Make sure the target is a class or object (prototype)\ntypeof maybeTarget==='function'||typeof maybeTarget==='object'&&maybeTarget!==null)&&// Make sure the key is a string\ntypeof maybeKey==='string'&&(// Make sure the descriptor is the right shape\ntypeof maybeDesc==='object'&&maybeDesc!==null||maybeDesc===undefined));}function nativeDescDecorator(propertyDesc){let decorator=function(){return propertyDesc;};setClassicDecorator(decorator);return decorator;}/**\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          */class ComputedDescriptor{constructor(){_defineProperty(this,\"enumerable\",true);_defineProperty(this,\"configurable\",true);_defineProperty(this,\"_dependentKeys\",undefined);_defineProperty(this,\"_meta\",undefined);}setup(_obj,keyName,_propertyDesc,meta){meta.writeDescriptors(keyName,this);}teardown(_obj,keyName,meta){meta.removeDescriptors(keyName);}}let COMPUTED_GETTERS;{COMPUTED_GETTERS=new WeakSet();}function DESCRIPTOR_GETTER_FUNCTION(name,descriptor){function getter(){return descriptor.get(this,name);}{COMPUTED_GETTERS.add(getter);}return getter;}function DESCRIPTOR_SETTER_FUNCTION(name,descriptor){let set=function CPSETTER_FUNCTION(value){return descriptor.set(this,name,value);};COMPUTED_SETTERS.add(set);return set;}const COMPUTED_SETTERS=new WeakSet();function makeComputedDecorator(desc,DecoratorClass){let decorator=function COMPUTED_DECORATOR(target,key,propertyDesc,maybeMeta,isClassicDecorator){!(isClassicDecorator||!propertyDesc||!propertyDesc.get||!COMPUTED_GETTERS.has(propertyDesc.get))&&assert$1(`Only one computed property decorator can be applied to a class field or accessor, but '${key}' was decorated twice. You may have added the decorator to both a getter and setter, which is unnecessary.`,isClassicDecorator||!propertyDesc||!propertyDesc.get||!COMPUTED_GETTERS.has(propertyDesc.get));let meta$1=arguments.length===3?meta(target):maybeMeta;desc.setup(target,key,propertyDesc,meta$1);let computedDesc={enumerable:desc.enumerable,configurable:desc.configurable,get:DESCRIPTOR_GETTER_FUNCTION(key,desc),set:DESCRIPTOR_SETTER_FUNCTION(key,desc)};return computedDesc;};setClassicDecorator(decorator,desc);Object.setPrototypeOf(decorator,DecoratorClass.prototype);return decorator;}/////////////\nconst DECORATOR_DESCRIPTOR_MAP=new WeakMap();/**\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          */function descriptorForProperty(obj,keyName,_meta){!(obj!==null)&&assert$1('Cannot call `descriptorForProperty` on null',obj!==null);!(obj!==undefined)&&assert$1('Cannot call `descriptorForProperty` on undefined',obj!==undefined);!(typeof obj==='object'||typeof obj==='function')&&assert$1(`Cannot call \\`descriptorForProperty\\` on ${typeof obj}`,typeof obj==='object'||typeof obj==='function');let meta=_meta===undefined?peekMeta(obj):_meta;if(meta!==null){return meta.peekDescriptors(keyName);}}function descriptorForDecorator(dec){return DECORATOR_DESCRIPTOR_MAP.get(dec);}/**\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          */function isClassicDecorator(dec){return typeof dec==='function'&&DECORATOR_DESCRIPTOR_MAP.has(dec);}/**\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          */function setClassicDecorator(dec){let value=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;DECORATOR_DESCRIPTOR_MAP.set(dec,value);}/**\n          @module @ember/object\n          */const END_WITH_EACH_REGEX=/\\.@each$/;/**\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          */function expandProperties(pattern,callback){!(typeof pattern==='string')&&assert$1(`A computed property key must be a string, you passed ${typeof pattern} ${pattern}`,typeof pattern==='string');!(pattern.indexOf(' ')===-1)&&assert$1('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!(pattern.match(/\\{[^}{]*\\{|\\}[^}{]*\\}|\\{[^}]*$/g)===null)&&assert$1(`Brace expanded properties have to be balanced and cannot be nested, pattern: ${pattern}`,pattern.match(/\\{[^}{]*\\{|\\}[^}{]*\\}|\\{[^}]*$/g)===null);let start=pattern.indexOf('{');if(start<0){callback(pattern.replace(END_WITH_EACH_REGEX,'.[]'));}else{dive('',pattern,start,callback);}}function dive(prefix,pattern,start,callback){let end=pattern.indexOf('}'),i=0,newStart,arrayLength;let tempArr=pattern.substring(start+1,end).split(',');let after=pattern.substring(end+1);prefix=prefix+pattern.substring(0,start);arrayLength=tempArr.length;while(i<arrayLength){newStart=after.indexOf('{');if(newStart<0){callback((prefix+tempArr[i++]+after).replace(END_WITH_EACH_REGEX,'.[]'));}else{dive(prefix+tempArr[i++],after,newStart,callback);}}}const AFTER_OBSERVERS=':change';function changeEvent(keyName){return keyName+AFTER_OBSERVERS;}/**\n          @module @ember/object\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            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          */function addListener(obj,eventName,target,method,once){let sync=arguments.length>5&&arguments[5]!==undefined?arguments[5]:true;!(Boolean(obj)&&Boolean(eventName))&&assert$1('You must pass at least an object and event name to addListener',Boolean(obj)&&Boolean(eventName));if(!method&&'function'===typeof target){method=target;target=null;}meta(obj).addToListeners(eventName,target,method,once===true,sync);}/**\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          */function removeListener(obj,eventName,targetOrFunction,functionOrName){!(Boolean(obj)&&Boolean(eventName)&&(typeof targetOrFunction==='function'||typeof targetOrFunction==='object'&&Boolean(functionOrName)))&&assert$1('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)));let target,method;if(typeof targetOrFunction==='object'){target=targetOrFunction;method=functionOrName;}else{target=null;method=targetOrFunction;}let m=meta(obj);m.removeFromListeners(eventName,target,method);}/**\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          */function sendEvent(obj,eventName,params,actions,_meta){if(actions===undefined){let meta=_meta===undefined?peekMeta(obj):_meta;actions=meta!==null?meta.matchingListeners(eventName):undefined;}if(actions===undefined||actions.length===0){return false;}for(let i=actions.length-3;i>=0;i-=3){// looping in reverse for once listeners\nlet target=actions[i];let method=actions[i+1];let once=actions[i+2];if(!method){continue;}if(once){removeListener(obj,eventName,target,method);}if(!target){target=obj;}let type=typeof method;if(type==='string'||type==='symbol'){method=target[method];}method.apply(target,params);}return true;}/**\n            @public\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          */function hasListeners(obj,eventName){let meta=peekMeta(obj);if(meta===null){return false;}let matched=meta.matchingListeners(eventName);return matched!==undefined&&matched.length>0;}/**\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          */function on$3(){for(var _len0=arguments.length,args=new Array(_len0),_key1=0;_key1<_len0;_key1++){args[_key1]=arguments[_key1];}let func=args.pop();let events=args;!(typeof func==='function')&&assert$1('on expects function as last argument',typeof func==='function');!(events.length>0&&events.every(p=>typeof p==='string'&&p.length>0))&&assert$1('on called without valid event names',events.length>0&&events.every(p=>typeof p==='string'&&p.length>0));setListeners(func,events);return func;}const SYNC_DEFAULT=!ENV._DEFAULT_ASYNC_OBSERVERS;const SYNC_OBSERVERS=new Map();const ASYNC_OBSERVERS=new Map();/**\n          @module @ember/object\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          */function addObserver(obj,path,target,method){let sync=arguments.length>4&&arguments[4]!==undefined?arguments[4]:SYNC_DEFAULT;let eventName=changeEvent(path);addListener(obj,eventName,target,method,false,sync);let meta=peekMeta(obj);if(meta===null||!(meta.isPrototypeMeta(obj)||meta.isInitializing())){activateObserver(obj,eventName,sync);}}/**\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          */function removeObserver(obj,path,target,method){let sync=arguments.length>4&&arguments[4]!==undefined?arguments[4]:SYNC_DEFAULT;let eventName=changeEvent(path);let meta=peekMeta(obj);if(meta===null||!(meta.isPrototypeMeta(obj)||meta.isInitializing())){deactivateObserver(obj,eventName,sync);}removeListener(obj,eventName,target,method);}function getOrCreateActiveObserversFor(target,sync){let observerMap=sync===true?SYNC_OBSERVERS:ASYNC_OBSERVERS;if(!observerMap.has(target)){observerMap.set(target,new Map());registerDestructor$1(target,()=>destroyObservers(target),true);}return observerMap.get(target);}function activateObserver(target,eventName){let sync=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;let activeObservers=getOrCreateActiveObserversFor(target,sync);if(activeObservers.has(eventName)){activeObservers.get(eventName).count++;}else{let path=eventName.substring(0,eventName.lastIndexOf(':'));let tag=getChainTagsForKey(target,path,tagMetaFor(target),peekMeta(target));activeObservers.set(eventName,{count:1,path,tag,lastRevision:valueForTag(tag),suspended:false});}}let DEACTIVATE_SUSPENDED=false;let SCHEDULED_DEACTIVATE=[];function deactivateObserver(target,eventName){let sync=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(DEACTIVATE_SUSPENDED===true){SCHEDULED_DEACTIVATE.push([target,eventName,sync]);return;}let observerMap=sync===true?SYNC_OBSERVERS:ASYNC_OBSERVERS;let activeObservers=observerMap.get(target);if(activeObservers!==undefined){let observer=activeObservers.get(eventName);observer.count--;if(observer.count===0){activeObservers.delete(eventName);if(activeObservers.size===0){observerMap.delete(target);}}}}function suspendedObserverDeactivation(){DEACTIVATE_SUSPENDED=true;}function resumeObserverDeactivation(){DEACTIVATE_SUSPENDED=false;for(let[target,eventName,sync]of SCHEDULED_DEACTIVATE){deactivateObserver(target,eventName,sync);}SCHEDULED_DEACTIVATE=[];}/**\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           */function revalidateObservers(target){if(ASYNC_OBSERVERS.has(target)){ASYNC_OBSERVERS.get(target).forEach(observer=>{observer.tag=getChainTagsForKey(target,observer.path,tagMetaFor(target),peekMeta(target));observer.lastRevision=valueForTag(observer.tag);});}if(SYNC_OBSERVERS.has(target)){SYNC_OBSERVERS.get(target).forEach(observer=>{observer.tag=getChainTagsForKey(target,observer.path,tagMetaFor(target),peekMeta(target));observer.lastRevision=valueForTag(observer.tag);});}}let lastKnownRevision=0;function flushAsyncObservers(_schedule){let currentRevision=valueForTag(CURRENT_TAG);if(lastKnownRevision===currentRevision){return;}lastKnownRevision=currentRevision;ASYNC_OBSERVERS.forEach((activeObservers,target)=>{let meta=peekMeta(target);activeObservers.forEach((observer,eventName)=>{if(!validateTag(observer.tag,observer.lastRevision)){let sendObserver=()=>{try{sendEvent(target,eventName,[target,observer.path],undefined,meta);}finally{observer.tag=getChainTagsForKey(target,observer.path,tagMetaFor(target),peekMeta(target));observer.lastRevision=valueForTag(observer.tag);}};if(_schedule){_schedule('actions',sendObserver);}else{sendObserver();}}});});}function flushSyncObservers(){// 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.\nSYNC_OBSERVERS.forEach((activeObservers,target)=>{let meta=peekMeta(target);activeObservers.forEach((observer,eventName)=>{if(!observer.suspended&&!validateTag(observer.tag,observer.lastRevision)){try{observer.suspended=true;sendEvent(target,eventName,[target,observer.path],undefined,meta);}finally{observer.tag=getChainTagsForKey(target,observer.path,tagMetaFor(target),peekMeta(target));observer.lastRevision=valueForTag(observer.tag);observer.suspended=false;}}});});}function setObserverSuspended(target,property,suspended){let activeObservers=SYNC_OBSERVERS.get(target);if(!activeObservers){return;}let observer=activeObservers.get(changeEvent(property));if(observer){observer.suspended=suspended;}}function destroyObservers(target){if(SYNC_OBSERVERS.size>0)SYNC_OBSERVERS.delete(target);if(ASYNC_OBSERVERS.size>0)ASYNC_OBSERVERS.delete(target);}/**\n           @module ember\n           @private\n           */const PROPERTY_DID_CHANGE=Symbol('PROPERTY_DID_CHANGE');function hasPropertyDidChange(obj){return obj!=null&&typeof obj==='object'&&typeof obj[PROPERTY_DID_CHANGE]==='function';}let deferred$1=0;/**\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          */function notifyPropertyChange(obj,keyName,_meta,value){let meta=_meta===undefined?peekMeta(obj):_meta;if(meta!==null&&(meta.isInitializing()||meta.isPrototypeMeta(obj))){return;}markObjectAsDirty(obj,keyName);if(deferred$1<=0){flushSyncObservers();}if(PROPERTY_DID_CHANGE in obj){// It's redundant to do this here, but we don't want to check above so we can avoid an extra function call in prod.\n!hasPropertyDidChange(obj)&&assert$1('property did change hook is invalid',hasPropertyDidChange(obj));// we need to check the arguments length here; there's a check in Component's `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`\nif(arguments.length===4){obj[PROPERTY_DID_CHANGE](keyName,value);}else{obj[PROPERTY_DID_CHANGE](keyName);}}}/**\n            @method beginPropertyChanges\n            @chainable\n            @private\n          */function beginPropertyChanges(){deferred$1++;suspendedObserverDeactivation();}/**\n            @method endPropertyChanges\n            @private\n          */function endPropertyChanges(){deferred$1--;if(deferred$1<=0){flushSyncObservers();resumeObserverDeactivation();}}/**\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          */function changeProperties(callback){beginPropertyChanges();try{callback();}finally{endPropertyChanges();}}/**\n          @module @ember/object\n          */const DEEP_EACH_REGEX=/\\.@each\\.[^.]+\\./;function noop$2(){}/**\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          */class ComputedProperty extends ComputedDescriptor{constructor(args){super();_defineProperty(this,\"_readOnly\",false);_defineProperty(this,\"_hasConfig\",false);_defineProperty(this,\"_getter\",undefined);_defineProperty(this,\"_setter\",undefined);let maybeConfig=args[args.length-1];if(typeof maybeConfig==='function'||maybeConfig!==null&&typeof maybeConfig==='object'){this._hasConfig=true;let config=args.pop();if(typeof config==='function'){!!isClassicDecorator(config)&&assert$1(`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));this._getter=config;}else{const objectConfig=config;!(typeof objectConfig==='object'&&!Array.isArray(objectConfig))&&assert$1('computed expects a function or an object as last argument.',typeof objectConfig==='object'&&!Array.isArray(objectConfig));!Object.keys(objectConfig).every(key=>key==='get'||key==='set')&&assert$1('Config object passed to computed can only contain `get` and `set` keys.',Object.keys(objectConfig).every(key=>key==='get'||key==='set'));!(Boolean(objectConfig.get)||Boolean(objectConfig.set))&&assert$1('Computed properties must receive a getter or a setter, you passed none.',Boolean(objectConfig.get)||Boolean(objectConfig.set));this._getter=objectConfig.get||noop$2;this._setter=objectConfig.set;}}if(args.length>0){this._property(...args);}}setup(obj,keyName,propertyDesc,meta){super.setup(obj,keyName,propertyDesc,meta);!!(propertyDesc&&typeof propertyDesc.value==='function')&&assert$1(`@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'));!(!propertyDesc||!propertyDesc.initializer)&&assert$1(`@computed can only be used on empty fields. ${keyName} has an initial value (e.g. \\`${keyName} = someValue\\`)`,!propertyDesc||!propertyDesc.initializer);!!(this._hasConfig&&propertyDesc&&(typeof propertyDesc.get==='function'||typeof propertyDesc.set==='function'))&&assert$1(`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')));if(this._hasConfig===false){!(propertyDesc&&(typeof propertyDesc.get==='function'||typeof propertyDesc.set==='function'))&&assert$1(`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'));let{get,set}=propertyDesc;if(get!==undefined){this._getter=get;}if(set!==undefined){this._setter=function setterWrapper(_key,value){let ret=set.call(this,value);if(get!==undefined){return typeof ret==='undefined'?get.call(this):ret;}return ret;};}}}_property(){let args=[];function addArg(property){!(DEEP_EACH_REGEX.test(property)===false)&&assert$1(`Dependent keys containing @each only work one level deep. `+`You used the key \"${property}\" which is invalid. `+`Please create an intermediary computed property or `+`switch to using tracked properties.`,DEEP_EACH_REGEX.test(property)===false);args.push(property);}for(var _len1=arguments.length,passedArgs=new Array(_len1),_key10=0;_key10<_len1;_key10++){passedArgs[_key10]=arguments[_key10];}for(let arg of passedArgs){expandProperties(arg,addArg);}this._dependentKeys=args;}get(obj,keyName){let meta$1=meta(obj);let tagMeta=tagMetaFor(obj);let propertyTag=tagFor(obj,keyName,tagMeta);let ret;let revision=meta$1.revisionFor(keyName);if(revision!==undefined&&validateTag(propertyTag,revision)){ret=meta$1.valueFor(keyName);}else{// 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!(this._dependentKeys===undefined||!isDestroyed(obj))&&assert$1(`Attempted to access the computed ${obj}.${keyName} on a destroyed object, which is not allowed`,this._dependentKeys===undefined||!isDestroyed(obj));let{_getter,_dependentKeys}=this;// Create a tracker that absorbs any trackable actions inside the CP\nuntrack(()=>{ret=_getter.call(obj,keyName);});if(_dependentKeys!==undefined){UPDATE_TAG(propertyTag,getChainTagsForKeys(obj,_dependentKeys,tagMeta,meta$1));{ALLOW_CYCLES.set(propertyTag,true);}}meta$1.setValueFor(keyName,ret);meta$1.setRevisionFor(keyName,valueForTag(propertyTag));finishLazyChains(meta$1,keyName,ret);}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\nif(Array.isArray(ret)){consumeTag(tagFor(ret,'[]'));}return ret;}set(obj,keyName,value){if(this._readOnly){this._throwReadOnlyError(obj,keyName);}!(this._setter!==undefined)&&assert$1(`Cannot override the computed property \\`${keyName}\\` on ${toString$1(obj)}.`,this._setter!==undefined);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.\nif(// ensure that we only run this once, while the component is being instantiated\nmeta$1.isInitializing()&&this._dependentKeys!==undefined&&this._dependentKeys.length>0&&typeof obj[PROPERTY_DID_CHANGE]==='function'&&obj.isComponent){// It's redundant to do this here, but we don't want to check above so we can avoid an extra function call in prod.\n!hasPropertyDidChange(obj)&&assert$1('property did change hook is invalid',hasPropertyDidChange(obj));addObserver(obj,keyName,()=>{obj[PROPERTY_DID_CHANGE](keyName);},undefined,true);}let ret;try{beginPropertyChanges();ret=this._set(obj,keyName,value,meta$1);finishLazyChains(meta$1,keyName,ret);let tagMeta=tagMetaFor(obj);let propertyTag=tagFor(obj,keyName,tagMeta);let{_dependentKeys}=this;if(_dependentKeys!==undefined){UPDATE_TAG(propertyTag,getChainTagsForKeys(obj,_dependentKeys,tagMeta,meta$1));if(true/* DEBUG */){ALLOW_CYCLES.set(propertyTag,true);}}meta$1.setRevisionFor(keyName,valueForTag(propertyTag));}finally{endPropertyChanges();}return ret;}_throwReadOnlyError(obj,keyName){throw new Error(`Cannot set read-only property \"${keyName}\" on object: ${inspect(obj)}`);}_set(obj,keyName,value,meta){let hadCachedValue=meta.revisionFor(keyName)!==undefined;let cachedValue=meta.valueFor(keyName);let ret;let{_setter}=this;setObserverSuspended(obj,keyName,true);try{ret=_setter.call(obj,keyName,value,cachedValue);}finally{setObserverSuspended(obj,keyName,false);}// allows setter to return the same value that is cached already\nif(hadCachedValue&&cachedValue===ret){return ret;}meta.setValueFor(keyName,ret);notifyPropertyChange(obj,keyName,meta,value);return ret;}/* called before property is overridden */teardown(obj,keyName,meta){if(meta.revisionFor(keyName)!==undefined){meta.setRevisionFor(keyName,undefined);meta.setValueFor(keyName,undefined);}super.teardown(obj,keyName,meta);}}class AutoComputedProperty extends ComputedProperty{get(obj,keyName){let meta$1=meta(obj);let tagMeta=tagMetaFor(obj);let propertyTag=tagFor(obj,keyName,tagMeta);let ret;let revision=meta$1.revisionFor(keyName);if(revision!==undefined&&validateTag(propertyTag,revision)){ret=meta$1.valueFor(keyName);}else{!!isDestroyed(obj)&&assert$1(`Attempted to access the computed ${obj}.${keyName} on a destroyed object, which is not allowed`,!isDestroyed(obj));let{_getter}=this;// Create a tracker that absorbs any trackable actions inside the CP\nlet tag=track(()=>{ret=_getter.call(obj,keyName);});UPDATE_TAG(propertyTag,tag);meta$1.setValueFor(keyName,ret);meta$1.setRevisionFor(keyName,valueForTag(propertyTag));finishLazyChains(meta$1,keyName,ret);}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\nif(Array.isArray(ret)){consumeTag(tagFor(ret,'[]',tagMeta));}return ret;}}// TODO: This class can be svelted once `meta` has been deprecated\nclass ComputedDecoratorImpl extends Function{/**\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            */readOnly(){let desc=descriptorForDecorator(this);!!(desc._setter&&desc._setter!==desc._getter)&&assert$1('Computed properties that define a setter using the new syntax cannot be read-only',!(desc._setter&&desc._setter!==desc._getter));desc._readOnly=true;return this;}/**\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            */meta(meta){let prop=descriptorForDecorator(this);if(arguments.length===0){return prop._meta||{};}else{prop._meta=meta;return this;}}// TODO: Remove this when we can provide alternatives in the ecosystem to\n// addons such as ember-macro-helpers that use it.\n/** @internal */get _getter(){return descriptorForDecorator(this)._getter;}// TODO: Refactor this, this is an internal API only\n/** @internal */set enumerable(value){descriptorForDecorator(this).enumerable=value;}}/**\n            This helper returns a new property descriptor that wraps the passed\n            computed property function. You can use this helper to define properties with\n            native decorator syntax, mixins, or via `defineProperty()`.\n\n            Example:\n\n            ```js\n            import { computed, set } from '@ember/object';\n\n            class Person {\n              constructor() {\n                this.firstName = 'Betty';\n                this.lastName = 'Jones';\n              },\n\n              @computed('firstName', 'lastName')\n              get fullName() {\n                return `${this.firstName} ${this.lastName}`;\n              }\n            }\n\n            let client = new Person();\n\n            client.fullName; // 'Betty Jones'\n\n            set(client, 'lastName', 'Fuller');\n            client.fullName; // 'Betty Fuller'\n            ```\n\n            Classic Class Example:\n\n            ```js\n            import EmberObject, { computed } from '@ember/object';\n\n            let Person = EmberObject.extend({\n              init() {\n                this._super(...arguments);\n\n                this.firstName = 'Betty';\n                this.lastName = 'Jones';\n              },\n\n              fullName: computed('firstName', 'lastName', function() {\n                return `${this.get('firstName')} ${this.get('lastName')}`;\n              })\n            });\n\n            let client = Person.create();\n\n            client.get('fullName'); // 'Betty Jones'\n\n            client.set('lastName', 'Fuller');\n            client.get('fullName'); // 'Betty Fuller'\n            ```\n\n            You can also provide a setter, either directly on the class using native class\n            syntax, or by passing a hash with `get` and `set` functions.\n\n            Example:\n\n            ```js\n            import { computed, set } from '@ember/object';\n\n            class Person {\n              constructor() {\n                this.firstName = 'Betty';\n                this.lastName = 'Jones';\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(/\\s+/);\n\n                set(this, 'firstName', firstName);\n                set(this, 'lastName', lastName);\n\n                return value;\n              }\n            }\n\n            let client = new Person();\n\n            client.fullName; // 'Betty Jones'\n\n            set(client, 'lastName', 'Fuller');\n            client.fullName; // 'Betty Fuller'\n            ```\n\n            Classic Class Example:\n\n            ```js\n            import EmberObject, { computed } from '@ember/object';\n\n            let Person = EmberObject.extend({\n              init() {\n                this._super(...arguments);\n\n                this.firstName = 'Betty';\n                this.lastName = 'Jones';\n              },\n\n              fullName: computed('firstName', 'lastName', {\n                get(key) {\n                  return `${this.get('firstName')} ${this.get('lastName')}`;\n                },\n                set(key, value) {\n                  let [firstName, lastName] = value.split(/\\s+/);\n                  this.setProperties({ firstName, lastName });\n                  return value;\n                }\n              })\n            });\n\n            let client = Person.create();\n            client.get('firstName'); // 'Betty'\n\n            client.set('fullName', 'Carroll Fuller');\n            client.get('firstName'); // 'Carroll'\n            ```\n\n            When passed as an argument, the `set` function should accept two parameters,\n            `key` and `value`. The value returned from `set` will be the new value of the\n            property.\n\n            _Note: This is the preferred way to define computed properties when writing third-party\n            libraries that depend on or use Ember, since there is no guarantee that the user\n            will have [prototype Extensions](https://guides.emberjs.com/release/configuring-ember/disabling-prototype-extensions/) enabled._\n\n            @method computed\n            @for @ember/object\n            @static\n            @param {String} [dependentKeys*] Optional dependent keys that trigger this computed property.\n            @param {Function} func The computed property function.\n            @return {ComputedDecorator} property decorator instance\n            @public\n          */// @computed without parens or computed with descriptor args\n// @computed with keys only\n// @computed with keys and config\n// @computed with config only\nfunction computed(){for(var _len10=arguments.length,args=new Array(_len10),_key11=0;_key11<_len10;_key11++){args[_key11]=arguments[_key11];}!!(isElementDescriptor(args.slice(0,3))&&args.length===5&&args[4]===true)&&assert$1(`@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));if(isElementDescriptor(args)){// SAFETY: We passed in the impl for this class\nlet decorator=makeComputedDecorator(new ComputedProperty([]),ComputedDecoratorImpl);return decorator(args[0],args[1],args[2]);}// SAFETY: We passed in the impl for this class\nreturn makeComputedDecorator(new ComputedProperty(args),ComputedDecoratorImpl);}function autoComputed(){for(var _len11=arguments.length,config=new Array(_len11),_key12=0;_key12<_len11;_key12++){config[_key12]=arguments[_key12];}// SAFETY: We passed in the impl for this class\nreturn makeComputedDecorator(new AutoComputedProperty(config),ComputedDecoratorImpl);}/**\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           */function isComputed(obj,key){return Boolean(descriptorForProperty(obj,key));}function getCachedValueFor(obj,key){let meta=peekMeta(obj);if(meta){return meta.valueFor(key);}else{return undefined;}}/**\n          @module @ember/object\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          */function defineProperty(obj,keyName,desc,data,_meta){let meta$1=_meta===undefined?meta(obj):_meta;let previousDesc=descriptorForProperty(obj,keyName,meta$1);let wasDescriptor=previousDesc!==undefined;if(wasDescriptor){previousDesc.teardown(obj,keyName,meta$1);}if(isClassicDecorator(desc)){defineDecorator(obj,keyName,desc,meta$1);}else if(desc===null||desc===undefined){defineValue(obj,keyName,data,wasDescriptor,true);}else{// fallback to ES5\nObject.defineProperty(obj,keyName,desc);}// if key is being watched, override chains that\n// were initialized with the prototype\nif(!meta$1.isPrototypeMeta(obj)){revalidateObservers(obj);}}function defineDecorator(obj,keyName,desc,meta){let propertyDesc;{propertyDesc=desc(obj,keyName,undefined,meta,true);}Object.defineProperty(obj,keyName,propertyDesc);// pass the decorator function forward for backwards compat\nreturn desc;}function defineValue(obj,keyName,value,wasDescriptor){let enumerable=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;if(wasDescriptor===true||enumerable===false){Object.defineProperty(obj,keyName,{configurable:true,enumerable,writable:true,value});}else{{setWithMandatorySetter(obj,keyName,value);}}return value;}const EMBER_ARRAYS=new WeakSet();function setEmberArray(obj){EMBER_ARRAYS.add(obj);}function isEmberArray(obj){return EMBER_ARRAYS.has(obj);}const emberArrayinternals=/*#__PURE__*/Object.defineProperty({__proto__:null,isEmberArray,setEmberArray},Symbol.toStringTag,{value:'Module'});const firstDotIndexCache=new Cache(1000,key=>key.indexOf('.'));function isPath(path){return typeof path==='string'&&firstDotIndexCache.get(path)!==-1;}/**\n          @module @ember/object\n          */const PROXY_CONTENT=symbol('PROXY_CONTENT');let getPossibleMandatoryProxyValue;{getPossibleMandatoryProxyValue=function getPossibleMandatoryProxyValue(obj,keyName){let content=obj[PROXY_CONTENT];if(content===undefined){return obj[keyName];}else{/* global Reflect */return Reflect.get(content,keyName,obj);}};}function hasUnknownProperty(val){return typeof val==='object'&&val!==null&&typeof val.unknownProperty==='function';}// ..........................................................\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            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          */function get$2(obj,keyName){!(arguments.length===2)&&assert$1(`Get must be called with two arguments; an object and a property key`,arguments.length===2);!(obj!==undefined&&obj!==null)&&assert$1(`Cannot call get with '${keyName}' on an undefined object.`,obj!==undefined&&obj!==null);!(typeof keyName==='string'||typeof keyName==='number'&&!isNaN(keyName))&&assert$1(`The key provided to get must be a string or number, you passed ${keyName}`,typeof keyName==='string'||typeof keyName==='number'&&!isNaN(keyName));!(typeof keyName!=='string'||keyName.lastIndexOf('this.',0)!==0)&&assert$1(`'this' in paths is not supported`,typeof keyName!=='string'||keyName.lastIndexOf('this.',0)!==0);return isPath(keyName)?_getPath(obj,keyName):_getProp(obj,keyName);}function _getProp(obj,keyName){if(obj==null){return;}let value;if(typeof obj==='object'||typeof obj==='function'){{value=getPossibleMandatoryProxyValue(obj,keyName);}if(value===undefined&&typeof obj==='object'&&!(keyName in obj)&&hasUnknownProperty(obj)){value=obj.unknownProperty(keyName);}if(isTracking()){consumeTag(tagFor(obj,keyName));if(Array.isArray(value)||isEmberArray(value)){// 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\nconsumeTag(tagFor(value,'[]'));}}}else{// SAFETY: It should be ok to access properties on any non-nullish value\nvalue=obj[keyName];}return value;}function _getPath(obj,path,forSet){let parts=typeof path==='string'?path.split('.'):path;for(let part of parts){if(obj===undefined||obj===null||obj.isDestroyed){return undefined;}if(forSet&&(part==='__proto__'||part==='constructor')){return;}obj=_getProp(obj,part);}return obj;}// Warm it up\n_getProp('foo','a');_getProp('foo',1);_getProp({},'a');_getProp({},1);_getProp({unknownProperty(){}},'a');_getProp({unknownProperty(){}},1);get$2({},'foo');get$2({},'foo.bar');let fakeProxy={};setProxy(fakeProxy);track(()=>_getProp({},'a'));track(()=>_getProp({},1));track(()=>_getProp({a:[]},'a'));track(()=>_getProp({a:fakeProxy},'a'));/**\n           @module @ember/object\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          */function set(obj,keyName,value,tolerant){!(arguments.length===3||arguments.length===4)&&assert$1(`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);!(obj&&typeof obj==='object'||typeof obj==='function')&&assert$1(`Cannot call set with '${keyName}' on an undefined object.`,obj&&typeof obj==='object'||typeof obj==='function');!(typeof keyName==='string'||typeof keyName==='number'&&!isNaN(keyName))&&assert$1(`The key provided to set must be a string or number, you passed ${keyName}`,typeof keyName==='string'||typeof keyName==='number'&&!isNaN(keyName));!(typeof keyName!=='string'||keyName.lastIndexOf('this.',0)!==0)&&assert$1(`'this' in paths is not supported`,typeof keyName!=='string'||keyName.lastIndexOf('this.',0)!==0);if(obj.isDestroyed){!tolerant&&assert$1(`calling set on destroyed object: ${toString$1(obj)}.${keyName} = ${toString$1(value)}`,tolerant);return value;}return isPath(keyName)?_setPath(obj,keyName,value,tolerant):_setProp(obj,keyName,value);}function _setProp(obj,keyName,value){let descriptor=lookupDescriptor(obj,keyName);if(descriptor!==null&&COMPUTED_SETTERS.has(descriptor.set)){obj[keyName]=value;return value;}let currentValue;{currentValue=getPossibleMandatoryProxyValue(obj,keyName);}if(currentValue===undefined&&'object'===typeof obj&&!(keyName in obj)&&typeof obj.setUnknownProperty==='function'){/* unknown property */obj.setUnknownProperty(keyName,value);}else{{setWithMandatorySetter(obj,keyName,value);}if(currentValue!==value){notifyPropertyChange(obj,keyName);}}return value;}function _setPath(root,path,value,tolerant){let parts=path.split('.');let keyName=parts.pop();!(keyName.trim().length>0)&&assert$1('Property set failed: You passed an empty path',keyName.trim().length>0);let newRoot=_getPath(root,parts,true);if(newRoot!==null&&newRoot!==undefined){return set(newRoot,keyName,value);}else if(!tolerant){throw new Error(`Property set failed: object in path \"${parts.join('.')}\" could not be found.`);}}/**\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          */function trySet(root,path,value){return set(root,path,value,true);}function alias(altKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @alias as a decorator directly, but it requires a `altKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));// SAFETY: We passed in the impl for this class\nreturn makeComputedDecorator(new AliasedProperty(altKey),AliasDecoratorImpl);}// TODO: This class can be svelted once `meta` has been deprecated\nclass AliasDecoratorImpl extends Function{readOnly(){descriptorForDecorator(this).readOnly();return this;}oneWay(){descriptorForDecorator(this).oneWay();return this;}meta(meta){let prop=descriptorForDecorator(this);if(arguments.length===0){return prop._meta||{};}else{prop._meta=meta;}}}class AliasedProperty extends ComputedDescriptor{constructor(altKey){super();_defineProperty(this,\"altKey\",void 0);this.altKey=altKey;}setup(obj,keyName,propertyDesc,meta){!(this.altKey!==keyName)&&assert$1(`Setting alias '${keyName}' on self`,this.altKey!==keyName);super.setup(obj,keyName,propertyDesc,meta);CHAIN_PASS_THROUGH.add(this);}get(obj,keyName){let ret;let meta$1=meta(obj);let tagMeta=tagMetaFor(obj);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\nuntrack(()=>{ret=get$2(obj,this.altKey);});let lastRevision=meta$1.revisionFor(keyName);if(lastRevision===undefined||!validateTag(propertyTag,lastRevision)){UPDATE_TAG(propertyTag,getChainTagsForKey(obj,this.altKey,tagMeta,meta$1));meta$1.setRevisionFor(keyName,valueForTag(propertyTag));finishLazyChains(meta$1,keyName,ret);}consumeTag(propertyTag);return ret;}set(obj,_keyName,value){return set(obj,this.altKey,value);}readOnly(){this.set=AliasedProperty_readOnlySet;}oneWay(){this.set=AliasedProperty_oneWaySet;}}function AliasedProperty_readOnlySet(obj,keyName){throw new Error(`Cannot set read-only property '${keyName}' on object: ${inspect(obj)}`);}function AliasedProperty_oneWaySet(obj,keyName,value){defineProperty(obj,keyName,null);return set(obj,keyName,value);}/**\n          @module ember\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          */function deprecateProperty(object,deprecatedKey,newKey,options){function _deprecate(){deprecate$1(`Usage of \\`${deprecatedKey}\\` is deprecated, use \\`${newKey}\\` instead.`,false,options);}Object.defineProperty(object,deprecatedKey,{configurable:true,enumerable:false,set(value){_deprecate();set(this,newKey,value);},get(){_deprecate();return get$2(this,newKey);}});}function arrayContentWillChange(array,startIdx,removeAmt,addAmt){// if no args are passed assume everything changes\nif(startIdx===undefined){startIdx=0;removeAmt=addAmt=-1;}else{if(removeAmt===undefined){removeAmt=-1;}if(addAmt===undefined){addAmt=-1;}}sendEvent(array,'@array:before',[array,startIdx,removeAmt,addAmt]);return array;}function arrayContentDidChange(array,startIdx,removeAmt,addAmt){let notify=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;// if no args are passed assume everything changes\nif(startIdx===undefined){startIdx=0;removeAmt=addAmt=-1;}else{if(removeAmt===undefined){removeAmt=-1;}if(addAmt===undefined){addAmt=-1;}}let meta=peekMeta(array);if(notify){if(addAmt<0||removeAmt<0||addAmt-removeAmt!==0){notifyPropertyChange(array,'length',meta);}notifyPropertyChange(array,'[]',meta);}sendEvent(array,'@array:change',[array,startIdx,removeAmt,addAmt]);if(meta!==null){let length=array.length;let addedAmount=addAmt===-1?0:addAmt;let removedAmount=removeAmt===-1?0:removeAmt;let delta=addedAmount-removedAmount;let previousLength=length-delta;let normalStartIdx=startIdx<0?previousLength+startIdx:startIdx;if(meta.revisionFor('firstObject')!==undefined&&normalStartIdx===0){notifyPropertyChange(array,'firstObject',meta);}if(meta.revisionFor('lastObject')!==undefined){let previousLastIndex=previousLength-1;let lastAffectedIndex=normalStartIdx+removedAmount;if(previousLastIndex<lastAffectedIndex){notifyPropertyChange(array,'lastObject',meta);}}}return array;}const EMPTY_ARRAY$3=Object.freeze([]);// Ideally, we'd use MutableArray.detect but for unknown reasons this causes\n// the node tests to fail strangely.\nfunction isMutableArray(obj){return obj!=null&&typeof obj.replace==='function';}function replace(array,start,deleteCount){let items=arguments.length>3&&arguments[3]!==undefined?arguments[3]:EMPTY_ARRAY$3;if(isMutableArray(array)){array.replace(start,deleteCount,items);}else{!Array.isArray(array)&&assert$1('Can only replace content of a native array or MutableArray',Array.isArray(array));replaceInNativeArray(array,start,deleteCount,items);}}const 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.\nfunction replaceInNativeArray(array,start,deleteCount,items){arrayContentWillChange(array,start,deleteCount,items.length);if(items.length<=CHUNK_SIZE){array.splice(start,deleteCount,...items);}else{array.splice(start,deleteCount);for(let i=0;i<items.length;i+=CHUNK_SIZE){let chunk=items.slice(i,i+CHUNK_SIZE);array.splice(start+i,0,...chunk);}}arrayContentDidChange(array,start,deleteCount,items.length);}function arrayObserversHelper(obj,target,opts,operation){var _obj$_revalidate;let{willChange,didChange}=opts;operation(obj,'@array:before',target,willChange);operation(obj,'@array:change',target,didChange);/*\n             * Array proxies have a `_revalidate` method which must be called to set\n             * up their internal array observation systems.\n             */(_obj$_revalidate=obj._revalidate)===null||_obj$_revalidate===void 0||_obj$_revalidate.call(obj);return obj;}function addArrayObserver(array,target,opts){return arrayObserversHelper(array,target,opts,addListener);}function removeArrayObserver(array,target,opts){return arrayObserversHelper(array,target,opts,removeListener);}const EACH_PROXIES=new WeakMap();function eachProxyArrayWillChange(array,idx,removedCnt,addedCnt){let eachProxy=EACH_PROXIES.get(array);if(eachProxy!==undefined){eachProxy.arrayWillChange(array,idx,removedCnt,addedCnt);}}function eachProxyArrayDidChange(array,idx,removedCnt,addedCnt){let eachProxy=EACH_PROXIES.get(array);if(eachProxy!==undefined){eachProxy.arrayDidChange(array,idx,removedCnt,addedCnt);}}/**\n           @module ember\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          */class Libraries{constructor(){_defineProperty(this,\"_registry\",void 0);_defineProperty(this,\"_coreLibIndex\",void 0);_defineProperty(this,\"isRegistered\",void 0);_defineProperty(this,\"logVersions\",void 0);this._registry=[];this._coreLibIndex=0;}_getLibraryByName(name){let libs=this._registry;for(let lib of libs){if(lib.name===name){return lib;}}return undefined;}register(name,version,isCoreLibrary){let index=this._registry.length;if(!this._getLibraryByName(name)){if(isCoreLibrary){index=this._coreLibIndex++;}this._registry.splice(index,0,{name,version});}else{warn(`Library \"${name}\" is already registered with Ember.`,false,{id:'ember-metal.libraries-register'});}}registerCoreLibrary(name,version){this.register(name,version,true);}deRegister(name){let lib=this._getLibraryByName(name);let index;if(lib){index=this._registry.indexOf(lib);this._registry.splice(index,1);}}}{Libraries.prototype.logVersions=function(){let libs=this._registry;let nameLengths=libs.map(item=>get$2(item,'name.length'));!(nameLengths instanceof Array&&nameLengths.every(n=>typeof n==='number'))&&assert$1('nameLengths is number array',nameLengths instanceof Array&&nameLengths.every(n=>typeof n==='number'));let maxNameLength=Math.max.apply(null,nameLengths);debug$2('-------------------------------');for(let lib of libs){let spaces=new Array(maxNameLength-lib.name.length+1).join(' ');debug$2([lib.name,spaces,' : ',lib.version].join(''));}debug$2('-------------------------------');};}const LIBRARIES=new Libraries();LIBRARIES.registerCoreLibrary('Ember',Version);/**\n           @module @ember/object\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          */function getProperties(obj,keys){let ret={};let propertyNames;let i=1;if(arguments.length===2&&Array.isArray(keys)){i=0;propertyNames=arguments[1];}else{propertyNames=Array.from(arguments);}for(;i<propertyNames.length;i++){// SAFETY: we are just walking the list of property names, so we know the\n// index access never produces `undefined`.\nlet name=propertyNames[i];ret[name]=get$2(obj,name);}return ret;}/**\n           @module @ember/object\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          */function setProperties(obj,properties){if(properties===null||typeof properties!=='object'){return properties;}changeProperties(()=>{let props=Object.keys(properties);for(let propertyName of props){// SAFETY: casting `properties` this way is safe because any object in JS\n// can be indexed this way, and the result will be `unknown`, making it\n// safe for callers.\nset(obj,propertyName,properties[propertyName]);}});return properties;}let DEBUG_INJECTION_FUNCTIONS;{DEBUG_INJECTION_FUNCTIONS=new WeakMap();}/**\n           @module ember\n           @private\n           *//**\n            Read-only property that returns the result of a container lookup.\n\n            @class InjectedProperty\n            @namespace Ember\n            @constructor\n            @param {String} type The container type the property will lookup\n            @param {String} nameOrDesc (optional) The name the property will lookup, defaults\n                   to the property's name\n            @private\n          */// Decorator factory (with args)\n// (Also matches non-decorator form, types may be incorrect for this.)\n// Non-decorator\n// Decorator (without args)\n// Catch-all for service and controller injections\nfunction inject$2(type){!(typeof type==='string')&&assert$1('a string type must be provided to inject',typeof type==='string');let elementDescriptor;let name;for(var _len12=arguments.length,args=new Array(_len12>1?_len12-1:0),_key13=1;_key13<_len12;_key13++){args[_key13-1]=arguments[_key13];}if(isElementDescriptor(args)){elementDescriptor=args;}else if(typeof args[0]==='string'){name=args[0];}let getInjection=function(propertyName){let owner=getOwner$2(this)||this.container;// fallback to `container` for backwards compat\n!Boolean(owner)&&assert$1(`Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.`,Boolean(owner));return owner.lookup(`${type}:${name||propertyName}`);};{DEBUG_INJECTION_FUNCTIONS.set(getInjection,{type,name});}let decorator=computed({get:getInjection,set(keyName,value){defineProperty(this,keyName,null,value);}});if(elementDescriptor){return decorator(elementDescriptor[0],elementDescriptor[1],elementDescriptor[2]);}else{return decorator;}}/**\n            @decorator\n            @private\n\n            Marks a property as tracked.\n\n            By default, a component's properties are expected to be static,\n            meaning you are not able to update them and have the template update accordingly.\n            Marking a property as tracked means that when that property changes,\n            a rerender of the component is scheduled so the template is kept up to date.\n\n            There are two usages for the `@tracked` decorator, shown below.\n\n            @example No dependencies\n\n            If you don't pass an argument to `@tracked`, only changes to that property\n            will be tracked:\n\n            ```typescript\n            import Component from '@glimmer/component';\n            import { tracked } from '@glimmer/tracking';\n\n            export default class MyComponent extends Component {\n              @tracked\n              remainingApples = 10\n            }\n            ```\n\n            When something changes the component's `remainingApples` property, the rerender\n            will be scheduled.\n\n            @example Dependents\n\n            In the case that you have a computed property that depends other\n            properties, you want to track both so that when one of the\n            dependents change, a rerender is scheduled.\n\n            In the following example we have two properties,\n            `eatenApples`, and `remainingApples`.\n\n            ```typescript\n            import Component from '@glimmer/component';\n            import { tracked } from '@glimmer/tracking';\n\n            const totalApples = 100;\n\n            export default class MyComponent extends Component {\n              @tracked\n              eatenApples = 0\n\n              get remainingApples() {\n                return totalApples - this.eatenApples;\n              }\n\n              increment() {\n                this.eatenApples = this.eatenApples + 1;\n              }\n            }\n            ```\n\n            @param dependencies Optional dependents to be tracked.\n          */function tracked(){for(var _len13=arguments.length,args=new Array(_len13),_key14=0;_key14<_len13;_key14++){args[_key14]=arguments[_key14];}!!(isElementDescriptor(args.slice(0,3))&&args.length===5&&args[4]===true)&&assert$1(`@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));if(!isElementDescriptor(args)){let propertyDesc=args[0];!(args.length===0||typeof propertyDesc==='object'&&propertyDesc!==null)&&assert$1(`tracked() may only receive an options object containing 'value' or 'initializer', received ${propertyDesc}`,args.length===0||typeof propertyDesc==='object'&&propertyDesc!==null);if(propertyDesc){let keys=Object.keys(propertyDesc);!(keys.length<=1&&(keys[0]===undefined||keys[0]==='value'||keys[0]==='initializer'))&&assert$1(`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'));!(!('initializer'in propertyDesc)||typeof propertyDesc.initializer==='function')&&assert$1(`The initializer passed to tracked must be a function. Received ${propertyDesc.initializer}`,!('initializer'in propertyDesc)||typeof propertyDesc.initializer==='function');}let initializer=propertyDesc?propertyDesc.initializer:undefined;let value=propertyDesc?propertyDesc.value:undefined;let decorator=function(target,key,_desc,_meta,isClassicDecorator){!isClassicDecorator&&assert$1(`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);let fieldDesc={initializer:initializer||(()=>value)};return descriptorForField([target,key,fieldDesc]);};setClassicDecorator(decorator);return decorator;}return descriptorForField(args);}{// 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\nsetClassicDecorator(tracked);}function descriptorForField(_ref55){let[target,key,desc]=_ref55;!(!desc||!desc.value&&!desc.get&&!desc.set)&&assert$1(`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);let{getter,setter}=trackedData(key,desc?desc.initializer:undefined);function get(){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\nif(Array.isArray(value)||isEmberArray(value)){consumeTag(tagFor(value,'[]'));}return value;}function set(newValue){setter(this,newValue);dirtyTagFor(this,SELF_TAG);}let newDesc={enumerable:true,configurable:true,isTracked:true,get,set};COMPUTED_SETTERS.add(set);meta(target).writeDescriptors(key,new TrackedDescriptor(get,set));return newDesc;}class TrackedDescriptor{constructor(_get,_set){this._get=_get;this._set=_set;CHAIN_PASS_THROUGH.add(this);}get(obj){return this._get.call(obj);}set(obj,_key,value){this._set.call(obj,value);}}// NOTE: copied from: https://github.com/glimmerjs/glimmer.js/pull/358\n// Both glimmerjs/glimmer.js and emberjs/ember.js have the exact same implementation\n// of @cached, so any changes made to one should also be made to the other\n/**\n           * @decorator\n           *\n            Gives the getter a caching behavior. The return value of the getter\n            will be cached until any of the properties it is entangled with\n            are invalidated. This is useful when a getter is expensive and\n            used very often.\n\n            For instance, in this `GuestList` class, we have the `sortedGuests`\n            getter that sorts the guests alphabetically:\n\n            ```javascript\n              import { tracked } from '@glimmer/tracking';\n\n              class GuestList {\n                @tracked guests = ['Zoey', 'Tomster'];\n\n                get sortedGuests() {\n                  return this.guests.slice().sort()\n                }\n              }\n            ```\n\n            Every time `sortedGuests` is accessed, a new array will be created and sorted,\n            because JavaScript getters do not cache by default. When the guest list\n            is small, like the one in the example, this is not a problem. However, if\n            the guest list were to grow very large, it would mean that we would be doing\n            a large amount of work each time we accessed `sortedGuests`. With `@cached`,\n            we can cache the value instead:\n\n            ```javascript\n              import { tracked, cached } from '@glimmer/tracking';\n\n              class GuestList {\n                @tracked guests = ['Zoey', 'Tomster'];\n\n                @cached\n                get sortedGuests() {\n                  return this.guests.slice().sort()\n                }\n              }\n            ```\n\n            Now the `sortedGuests` getter will be cached based on autotracking.\n            It will only rerun and create a new sorted array when the guests tracked\n            property is updated.\n\n\n            ### Tradeoffs\n\n            Overuse is discouraged.\n\n            In general, you should avoid using `@cached` unless you have confirmed that\n            the getter you are decorating is computationally expensive, since `@cached`\n            adds a small amount of overhead to the getter.\n            While the individual costs are small, a systematic use of the `@cached`\n            decorator can add up to a large impact overall in your app.\n            Many getters and tracked properties are only accessed once during rendering,\n            and then never rerendered, so adding `@cached` when unnecessary can\n            negatively impact performance.\n\n            Also, `@cached` may rerun even if the values themselves have not changed,\n            since tracked properties will always invalidate.\n            For example updating an integer value from `5` to an other `5` will trigger\n            a rerun of the cached properties building from this integer.\n\n            Avoiding a cache invalidation in this case is not something that can\n            be achieved on the `@cached` decorator itself, but rather when updating\n            the underlying tracked values, by applying some diff checking mechanisms:\n\n            ```javascript\n            if (nextValue !== this.trackedProp) {\n              this.trackedProp = nextValue;\n            }\n            ```\n\n            Here equal values won't update the property, therefore not triggering\n            the subsequent cache invalidations of the `@cached` properties who were\n            using this `trackedProp`.\n\n            Remember that setting tracked data should only be done during initialization, \n            or as the result of a user action. Setting tracked data during render\n            (such as in a getter), is not supported.\n\n            @method cached\n            @static\n            @for @glimmer/tracking\n            @public\n           */const cached=function(){for(var _len14=arguments.length,args=new Array(_len14),_key15=0;_key15<_len14;_key15++){args[_key15]=arguments[_key15];}const[target,key,descriptor]=args;// Error on `@cached()`, `@cached(...args)`, and `@cached propName = value;`\nif(target===undefined)throwCachedExtraneousParens();if(typeof target!=='object'||typeof key!=='string'||typeof descriptor!=='object'||args.length!==3){throwCachedInvalidArgsError(args);}if(!('get'in descriptor)||typeof descriptor.get!=='function'){throwCachedGetterOnlyError(key);}const caches=new WeakMap();const getter=descriptor.get;descriptor.get=function(){if(!caches.has(this)){caches.set(this,createCache(getter.bind(this)));}return getValue(caches.get(this));};};function throwCachedExtraneousParens(){throw new Error('You attempted to use @cached(), which is not necessary nor supported. Remove the parentheses and you will be good to go!');}function throwCachedGetterOnlyError(key){throw new Error(`The @cached decorator must be applied to getters. '${key}' is not a getter.`);}function throwCachedInvalidArgsError(){let args=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];throw new Error(`You attempted to use @cached on with ${args.length>1?'arguments':'an argument'} ( @cached(${args.map(d=>`'${d}'`).join(', ')}), which is not supported. Dependencies are automatically tracked, so you can just use ${'`@cached`'}`);}const hasOwnProperty$2=Object.prototype.hasOwnProperty;let searchDisabled=false;const flags={_set:0,_unprocessedNamespaces:false,get unprocessedNamespaces(){return this._unprocessedNamespaces;},set unprocessedNamespaces(v){this._set++;this._unprocessedNamespaces=v;}};let unprocessedMixins=false;const NAMESPACES=[];const NAMESPACES_BY_ID=Object.create(null);function addNamespace(namespace){flags.unprocessedNamespaces=true;NAMESPACES.push(namespace);}function removeNamespace(namespace){let name=getName(namespace);delete NAMESPACES_BY_ID[name];NAMESPACES.splice(NAMESPACES.indexOf(namespace),1);if(name in context$1.lookup&&namespace===context$1.lookup[name]){context$1.lookup[name]=undefined;}}function findNamespaces(){if(!flags.unprocessedNamespaces){return;}let lookup=context$1.lookup;let keys=Object.keys(lookup);for(let key of keys){// Only process entities that start with uppercase A-Z\nif(!isUppercase(key.charCodeAt(0))){continue;}let obj=tryIsNamespace(lookup,key);if(obj){setName(obj,key);}}}function findNamespace(name){if(!searchDisabled){processAllNamespaces();}return NAMESPACES_BY_ID[name];}function processNamespace(namespace){_processNamespace([namespace.toString()],namespace,new Set());}function processAllNamespaces(){let unprocessedNamespaces=flags.unprocessedNamespaces;if(unprocessedNamespaces){findNamespaces();flags.unprocessedNamespaces=false;}if(unprocessedNamespaces||unprocessedMixins){let namespaces=NAMESPACES;for(let namespace of namespaces){processNamespace(namespace);}unprocessedMixins=false;}}function isSearchDisabled(){return searchDisabled;}function setSearchDisabled(flag){searchDisabled=Boolean(flag);}function setUnprocessedMixins(){unprocessedMixins=true;}function _processNamespace(paths,root,seen){let idx=paths.length;let id=paths.join('.');NAMESPACES_BY_ID[id]=root;setName(root,id);// Loop over all of the keys in the namespace, looking for classes\nfor(let key in root){if(!hasOwnProperty$2.call(root,key)){continue;}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']`.\npaths[idx]=key;// If we have found an unprocessed class\nif(obj&&getName(obj)===void 0){// Replace the class' `toString` with the dot-separated path\nsetName(obj,paths.join('.'));// Support nested namespaces\n}else if(obj&&isNamespace(obj)){// Skip aliased namespaces\nif(seen.has(obj)){continue;}seen.add(obj);// Process the child namespace\n_processNamespace(paths,obj,seen);}}paths.length=idx;// cut out last item\n}function isNamespace(obj){return obj!=null&&typeof obj==='object'&&obj.isNamespace;}function isUppercase(code){return code>=65&&code<=90// A\n;// Z\n}function tryIsNamespace(lookup,prop){try{let obj=lookup[prop];return(obj!==null&&typeof obj==='object'||typeof obj==='function')&&obj.isNamespace&&obj;}catch(_e){// continue\n}}const emberinternalsMetalIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,ASYNC_OBSERVERS,ComputedDescriptor,ComputedProperty,get DEBUG_INJECTION_FUNCTIONS(){return DEBUG_INJECTION_FUNCTIONS;},Libraries,NAMESPACES,NAMESPACES_BY_ID,PROPERTY_DID_CHANGE,PROXY_CONTENT,SYNC_OBSERVERS,TrackedDescriptor,_getPath,_getProp,_setProp,activateObserver,addArrayObserver,addListener,addNamespace,addObserver,alias,arrayContentDidChange,arrayContentWillChange,autoComputed,beginPropertyChanges,cached,changeProperties,computed,createCache,defineDecorator,defineProperty,defineValue,deprecateProperty,descriptorForDecorator,descriptorForProperty,eachProxyArrayDidChange,eachProxyArrayWillChange,endPropertyChanges,expandProperties,findNamespace,findNamespaces,flushAsyncObservers,get:get$2,getCachedValueFor,getProperties,getValue,hasListeners,hasUnknownProperty,inject:inject$2,isClassicDecorator,isComputed,isConst,isElementDescriptor,isNamespaceSearchDisabled:isSearchDisabled,libraries:LIBRARIES,makeComputedDecorator,markObjectAsDirty,nativeDescDecorator,notifyPropertyChange,objectAt,on:on$3,processAllNamespaces,processNamespace,removeArrayObserver,removeListener,removeNamespace,removeObserver,replace,replaceInNativeArray,revalidateObservers,sendEvent,set,setClassicDecorator,setNamespaceSearchDisabled:setSearchDisabled,setProperties,setUnprocessedMixins,tagForObject,tagForProperty,tracked,trySet},Symbol.toStringTag,{value:'Module'});const emberObjectEvents=/*#__PURE__*/Object.defineProperty({__proto__:null,addListener,removeListener,sendEvent},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/object/mixin\n          */const a_concat=Array.prototype.concat;const{isArray:isArray$4}=Array;function extractAccessors(properties){if(properties!==undefined){for(let key of Object.keys(properties)){let desc=Object.getOwnPropertyDescriptor(properties,key);if(desc.get!==undefined||desc.set!==undefined){Object.defineProperty(properties,key,{value:nativeDescDecorator(desc)});}}}return properties;}function concatenatedMixinProperties(concatProp,props,values,base){// reset before adding each new mixin to pickup concats from previous\nlet concats=values[concatProp]||base[concatProp];if(props[concatProp]){concats=concats?a_concat.call(concats,props[concatProp]):props[concatProp];}return concats;}function giveDecoratorSuper(key,decorator,property,descs){if(property===true){return decorator;}let originalGetter=property._getter;if(originalGetter===undefined){return decorator;}let superDesc=descs[key];// Check to see if the super property is a decorator first, if so load its descriptor\nlet superProperty=typeof superDesc==='function'?descriptorForDecorator(superDesc):superDesc;if(superProperty===undefined||superProperty===true){return decorator;}let superGetter=superProperty._getter;if(superGetter===undefined){return decorator;}let get=wrap$1(originalGetter,superGetter);let set;let originalSetter=property._setter;let superSetter=superProperty._setter;if(superSetter!==undefined){if(originalSetter!==undefined){set=wrap$1(originalSetter,superSetter);}else{// 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.\nset=superSetter;}}else{set=originalSetter;}// only create a new CP if we must\nif(get!==originalGetter||set!==originalSetter){// 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.\nlet dependentKeys=property._dependentKeys||[];let newProperty=new ComputedProperty([...dependentKeys,{get,set}]);newProperty._readOnly=property._readOnly;newProperty._meta=property._meta;newProperty.enumerable=property.enumerable;// SAFETY: We passed in the impl for this class\nreturn makeComputedDecorator(newProperty,ComputedProperty);}return decorator;}function giveMethodSuper(key,method,values,descs){// Methods overwrite computed properties, and do not call super to them.\nif(descs[key]!==undefined){return method;}// Find the original method in a parent mixin\nlet superMethod=values[key];// Only wrap the new method if the original method was a function\nif(typeof superMethod==='function'){return wrap$1(method,superMethod);}return method;}function simpleMakeArray(value){if(!value){return[];}else if(!Array.isArray(value)){return[value];}else{return value;}}function applyConcatenatedProperties(key,value,values){let baseValue=values[key];let ret=simpleMakeArray(baseValue).concat(simpleMakeArray(value));{// it is possible to use concatenatedProperties with strings (which cannot be frozen)\n// only freeze objects...\nif(typeof ret==='object'&&ret!==null){// prevent mutating `concatenatedProperties` array after it is applied\nObject.freeze(ret);}}return ret;}function applyMergedProperties(key,value,values){let baseValue=values[key];!!isArray$4(value)&&assert$1(`You passed in \\`${JSON.stringify(value)}\\` as the value for \\`${key}\\` but \\`${key}\\` cannot be an Array`,!isArray$4(value));if(!baseValue){return value;}let newBase=Object.assign({},baseValue);let hasFunction=false;let props=Object.keys(value);for(let prop of props){let propValue=value[prop];if(typeof propValue==='function'){hasFunction=true;newBase[prop]=giveMethodSuper(prop,propValue,baseValue,{});}else{newBase[prop]=propValue;}}if(hasFunction){newBase._super=ROOT;}return newBase;}function mergeMixins(mixins,meta,descs,values,base,keys,keysWithSuper){let currentMixin;for(let i=0;i<mixins.length;i++){currentMixin=mixins[i];!(typeof currentMixin==='object'&&currentMixin!==null&&Object.prototype.toString.call(currentMixin)!=='[object Array]')&&assert$1(`Expected hash or Mixin instance, got ${Object.prototype.toString.call(currentMixin)}`,typeof currentMixin==='object'&&currentMixin!==null&&Object.prototype.toString.call(currentMixin)!=='[object Array]');if(MIXINS.has(currentMixin)){if(meta.hasMixin(currentMixin)){continue;}meta.addMixin(currentMixin);let{properties,mixins}=currentMixin;if(properties!==undefined){mergeProps(meta,properties,descs,values,base,keys,keysWithSuper);}else if(mixins!==undefined){mergeMixins(mixins,meta,descs,values,base,keys,keysWithSuper);if(currentMixin instanceof Mixin&&currentMixin._without!==undefined){currentMixin._without.forEach(keyName=>{// deleting the key means we won't process the value\nlet index=keys.indexOf(keyName);if(index!==-1){keys.splice(index,1);}});}}}else{mergeProps(meta,currentMixin,descs,values,base,keys,keysWithSuper);}}}function mergeProps(meta,props,descs,values,base,keys,keysWithSuper){let concats=concatenatedMixinProperties('concatenatedProperties',props,values,base);let mergings=concatenatedMixinProperties('mergedProperties',props,values,base);let propKeys=Object.keys(props);for(let key of propKeys){let value=props[key];if(value===undefined)continue;if(keys.indexOf(key)===-1){keys.push(key);let desc=meta.peekDescriptors(key);if(desc===undefined){// If the value is a classic decorator, we don't want to actually\n// access it, because that will execute the decorator while we're\n// building the class.\nif(!isClassicDecorator(value)){// The superclass did not have a CP, which means it may have\n// observers or listeners on that property.\nlet prev=values[key]=base[key];if(typeof prev==='function'){updateObserversAndListeners(base,key,prev,false);}}}else{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\nkeysWithSuper.push(key);desc.teardown(base,key,meta);}}let isFunction=typeof value==='function';if(isFunction){let desc=descriptorForDecorator(value);if(desc!==undefined){// Wrap descriptor function to implement _super() if needed\ndescs[key]=giveDecoratorSuper(key,value,desc,descs);values[key]=undefined;continue;}}if(concats&&concats.indexOf(key)>=0||key==='concatenatedProperties'||key==='mergedProperties'){value=applyConcatenatedProperties(key,value,values);}else if(mergings&&mergings.indexOf(key)>-1){value=applyMergedProperties(key,value,values);}else if(isFunction){value=giveMethodSuper(key,value,values,descs);}values[key]=value;descs[key]=undefined;}}function updateObserversAndListeners(obj,key,fn,add){let meta=observerListenerMetaFor(fn);if(meta===undefined)return;let{observers,listeners}=meta;if(observers!==undefined){let updateObserver=add?addObserver:removeObserver;for(let path of observers.paths){updateObserver(obj,path,null,key,observers.sync);}}if(listeners!==undefined){let updateListener=add?addListener:removeListener;for(let listener of listeners){updateListener(obj,listener,null,key);}}}function applyMixin(obj,mixins){let _hideKeys=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;let descs=Object.create(null);let values=Object.create(null);let meta$1=meta(obj);let keys=[];let keysWithSuper=[];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\nmergeMixins(mixins,meta$1,descs,values,obj,keys,keysWithSuper);for(let key of keys){let value=values[key];let desc=descs[key];if(value!==undefined){if(typeof value==='function'){updateObserversAndListeners(obj,key,value,true);}defineValue(obj,key,value,keysWithSuper.indexOf(key)!==-1,!_hideKeys);}else if(desc!==undefined){defineDecorator(obj,key,desc,meta$1);}}if(!meta$1.isPrototypeMeta(obj)){revalidateObservers(obj);}return obj;}/**\n            @method mixin\n            @param obj\n            @param mixins*\n            @return obj\n            @private\n          */function mixin(obj){for(var _len15=arguments.length,args=new Array(_len15>1?_len15-1:0),_key16=1;_key16<_len15;_key16++){args[_key16-1]=arguments[_key16];}applyMixin(obj,args);return obj;}const MIXINS=new WeakSet();/**\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          */class Mixin{/** @internal */constructor(mixins,properties){/** @internal *//** @internal */_defineProperty(this,\"mixins\",void 0);/** @internal */_defineProperty(this,\"properties\",void 0);/** @internal */_defineProperty(this,\"ownerConstructor\",void 0);/** @internal */_defineProperty(this,\"_without\",void 0);MIXINS.add(this);this.properties=extractAccessors(properties);this.mixins=buildMixinsArray(mixins);this.ownerConstructor=undefined;this._without=undefined;{// Eagerly add INIT_FACTORY to avoid issues in DEBUG as a result of Object.seal(mixin)\nthis[INIT_FACTORY]=null;/*\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                */guidFor(this);if(Mixin._disableDebugSeal!==true){Object.seal(this);}}}/**\n              @method create\n              @for @ember/object/mixin\n              @static\n              @param arguments*\n              @public\n            */static create(){setUnprocessedMixins();let M=this;for(var _len16=arguments.length,args=new Array(_len16),_key17=0;_key17<_len16;_key17++){args[_key17]=arguments[_key17];}return new M(args,undefined);}// returns the mixins currently applied to the specified object\n// TODO: Make `mixin`\n/** @internal */static mixins(obj){let meta=peekMeta(obj);let ret=[];if(meta===null){return ret;}meta.forEachMixins(currentMixin=>{// skip primitive mixins since these are always anonymous\nif(!currentMixin.properties){ret.push(currentMixin);}});return ret;}/**\n              @method reopen\n              @param arguments*\n              @private\n              @internal\n            */reopen(){for(var _len17=arguments.length,args=new Array(_len17),_key18=0;_key18<_len17;_key18++){args[_key18]=arguments[_key18];}if(args.length===0){return this;}if(this.properties){let currentMixin=new Mixin(undefined,this.properties);this.properties=undefined;this.mixins=[currentMixin];}else if(!this.mixins){this.mixins=[];}this.mixins=this.mixins.concat(buildMixinsArray(args));return this;}/**\n              @method apply\n              @param obj\n              @return applied object\n              @private\n              @internal\n            */apply(obj){let _hideKeys=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;// 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 😫\nreturn applyMixin(obj,[this],_hideKeys);}/** @internal */applyPartial(obj){return applyMixin(obj,[this]);}/**\n              @method detect\n              @param obj\n              @return {Boolean}\n              @private\n              @internal\n            */detect(obj){if(typeof obj!=='object'||obj===null){return false;}if(MIXINS.has(obj)){return _detect(obj,this);}let meta=peekMeta(obj);if(meta===null){return false;}return meta.hasMixin(this);}/** @internal */without(){let ret=new Mixin([this]);for(var _len18=arguments.length,args=new Array(_len18),_key19=0;_key19<_len18;_key19++){args[_key19]=arguments[_key19];}ret._without=args;return ret;}/** @internal */keys(){let keys=_keys(this);!keys&&assert$1('[BUG] Missing keys for mixin!',keys);return keys;}/** @internal */toString(){return'(unknown mixin)';}}{Object.defineProperty(Mixin,'_disableDebugSeal',{configurable:true,enumerable:false,writable:true,value:false});}function buildMixinsArray(mixins){let length=mixins&&mixins.length||0;let m=undefined;if(length>0){m=new Array(length);for(let i=0;i<length;i++){let x=mixins[i];!(typeof x==='object'&&x!==null&&Object.prototype.toString.call(x)!=='[object Array]')&&assert$1(`Expected hash or Mixin instance, got ${Object.prototype.toString.call(x)}`,typeof x==='object'&&x!==null&&Object.prototype.toString.call(x)!=='[object Array]');if(MIXINS.has(x)){m[i]=x;}else{m[i]=new Mixin(undefined,x);}}}return m;}{Object.seal(Mixin.prototype);}function _detect(curMixin,targetMixin){let seen=arguments.length>2&&arguments[2]!==undefined?arguments[2]:new Set();if(seen.has(curMixin)){return false;}seen.add(curMixin);if(curMixin===targetMixin){return true;}let mixins=curMixin.mixins;if(mixins){return mixins.some(mixin=>_detect(mixin,targetMixin,seen));}return false;}function _keys(mixin){let ret=arguments.length>1&&arguments[1]!==undefined?arguments[1]:new Set();let seen=arguments.length>2&&arguments[2]!==undefined?arguments[2]:new Set();if(seen.has(mixin)){return;}seen.add(mixin);if(mixin.properties){let props=Object.keys(mixin.properties);for(let prop of props){ret.add(prop);}}else if(mixin.mixins){mixin.mixins.forEach(x=>_keys(x,ret,seen));}return ret;}const emberObjectMixin=/*#__PURE__*/Object.defineProperty({__proto__:null,applyMixin,default:Mixin,mixin},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          *//**\n            RegistryProxyMixin is used to provide public access to specific\n            registry functionality.\n\n            @class RegistryProxyMixin\n            @extends RegistryProxy\n            @private\n          */const RegistryProxyMixin=Mixin.create({__registry__:null,resolveRegistration(fullName){!this.__registry__.isValidFullName(fullName)&&assert$1('fullName must be a proper full name',this.__registry__.isValidFullName(fullName));return this.__registry__.resolve(fullName);},register:registryAlias('register'),unregister:registryAlias('unregister'),hasRegistration:registryAlias('has'),registeredOption:registryAlias('getOption'),registerOptions:registryAlias('options'),registeredOptions:registryAlias('getOptions'),registerOptionsForType:registryAlias('optionsForType'),registeredOptionsForType:registryAlias('getOptionsForType')});function registryAlias(name){return function(){// We need this cast because `Parameters` is deferred so that it is not\n// possible for TS to see it will always produce the right type. However,\n// since `AnyFn` has a rest type, it is allowed. See discussion on [this\n// issue](https://github.com/microsoft/TypeScript/issues/47615).\nreturn this.__registry__[name](...arguments);};}const emberinternalsRuntimeLibMixinsRegistryProxy=/*#__PURE__*/Object.defineProperty({__proto__:null,default:RegistryProxyMixin},Symbol.toStringTag,{value:'Module'});const SET_TIMEOUT=setTimeout;const NOOP$4=()=>{};function buildNext(flush){// 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.\nif(typeof Promise==='function'){const autorunPromise=Promise.resolve();return()=>autorunPromise.then(flush);}else if(typeof MutationObserver==='function'){let iterations=0;let observer=new MutationObserver(flush);let node=document.createTextNode('');observer.observe(node,{characterData:true});return()=>{iterations=++iterations%2;node.data=''+iterations;return iterations;};}else{return()=>SET_TIMEOUT(flush,0);}}function buildPlatform(flush){let clearNext=NOOP$4;return{setTimeout(fn,ms){return setTimeout(fn,ms);},clearTimeout(timerId){return clearTimeout(timerId);},now(){return Date.now();},next:buildNext(flush),clearNext};}const NUMBER=/\\d+/;const TIMERS_OFFSET=6;function isCoercableNumber(suspect){let type=typeof suspect;return type==='number'&&suspect===suspect||type==='string'&&NUMBER.test(suspect);}function getOnError(options){return options.onError||options.onErrorTarget&&options.onErrorTarget[options.onErrorMethod];}function findItem(target,method,collection){let index=-1;for(let i=0,l=collection.length;i<l;i+=4){if(collection[i]===target&&collection[i+1]===method){index=i;break;}}return index;}function findTimerItem(target,method,collection){let index=-1;for(let i=2,l=collection.length;i<l;i+=6){if(collection[i]===target&&collection[i+1]===method){index=i-2;break;}}return index;}function getQueueItems(items,queueItemLength){let queueItemPositionOffset=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;let queueItems=[];for(let i=0;i<items.length;i+=queueItemLength){let maybeError=items[i+3/* stack */+queueItemPositionOffset];let queueItem={target:items[i+0/* target */+queueItemPositionOffset],method:items[i+1/* method */+queueItemPositionOffset],args:items[i+2/* args */+queueItemPositionOffset],stack:maybeError!==undefined&&'stack'in maybeError?maybeError.stack:''};queueItems.push(queueItem);}return queueItems;}function binarySearch(time,timers){let start=0;let end=timers.length-TIMERS_OFFSET;let middle;let l;while(start<end){// since timers is an array of pairs 'l' will always\n// be an integer\nl=(end-start)/TIMERS_OFFSET;// compensate for the index in case even number\n// of pairs inside timers\nmiddle=start+l-l%TIMERS_OFFSET;if(time>=timers[middle]){start=middle+TIMERS_OFFSET;}else{end=middle;}}return time>=timers[start]?start+TIMERS_OFFSET:start;}const QUEUE_ITEM_LENGTH=4;class Queue{constructor(name){let options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let globalOptions=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};this._queueBeingFlushed=[];this.targetQueues=new Map();this.index=0;this._queue=[];this.name=name;this.options=options;this.globalOptions=globalOptions;}stackFor(index){if(index<this._queue.length){let entry=this._queue[index*3+QUEUE_ITEM_LENGTH];if(entry){return entry.stack;}else{return null;}}}flush(sync){let{before,after}=this.options;let target;let method;let args;let errorRecordedForStack;this.targetQueues.clear();if(this._queueBeingFlushed.length===0){this._queueBeingFlushed=this._queue;this._queue=[];}if(before!==undefined){before();}let invoke;let queueItems=this._queueBeingFlushed;if(queueItems.length>0){let onError=getOnError(this.globalOptions);invoke=onError?this.invokeWithOnError:this.invoke;for(let i=this.index;i<queueItems.length;i+=QUEUE_ITEM_LENGTH){this.index+=QUEUE_ITEM_LENGTH;method=queueItems[i+1];// method could have been nullified / canceled during flush\nif(method!==null){//\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//\ntarget=queueItems[i];args=queueItems[i+2];errorRecordedForStack=queueItems[i+3];// Debugging assistance\ninvoke(target,method,args,onError,errorRecordedForStack);}if(this.index!==this._queueBeingFlushed.length&&this.globalOptions.mustYield&&this.globalOptions.mustYield()){return 1/* Pause */;}}}if(after!==undefined){after();}this._queueBeingFlushed.length=0;this.index=0;if(sync!==false&&this._queue.length>0){// check if new items have been added\nthis.flush(true);}}hasWork(){return this._queueBeingFlushed.length>0||this._queue.length>0;}cancel(_ref56){let{target,method}=_ref56;let queue=this._queue;let targetQueueMap=this.targetQueues.get(target);if(targetQueueMap!==undefined){targetQueueMap.delete(method);}let index=findItem(target,method,queue);if(index>-1){queue[index+1]=null;return true;}// if not found in current queue\n// could be in the queue that is being flushed\nqueue=this._queueBeingFlushed;index=findItem(target,method,queue);if(index>-1){queue[index+1]=null;return true;}return false;}push(target,method,args,stack){this._queue.push(target,method,args,stack);return{queue:this,target,method};}pushUnique(target,method,args,stack){let localQueueMap=this.targetQueues.get(target);if(localQueueMap===undefined){localQueueMap=new Map();this.targetQueues.set(target,localQueueMap);}let index=localQueueMap.get(method);if(index===undefined){let queueIndex=this._queue.push(target,method,args,stack)-QUEUE_ITEM_LENGTH;localQueueMap.set(method,queueIndex);}else{let queue=this._queue;queue[index+2]=args;// replace args\nqueue[index+3]=stack;// replace stack\n}return{queue:this,target,method};}_getDebugInfo(debugEnabled){if(debugEnabled){let debugInfo=getQueueItems(this._queue,QUEUE_ITEM_LENGTH);return debugInfo;}return undefined;}invoke(target,method,args/*, onError, errorRecordedForStack */){if(args===undefined){method.call(target);}else{method.apply(target,args);}}invokeWithOnError(target,method,args,onError,errorRecordedForStack){try{if(args===undefined){method.call(target);}else{method.apply(target,args);}}catch(error){onError(error,errorRecordedForStack);}}}class DeferredActionQueues{constructor(){let queueNames=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];let options=arguments.length>1?arguments[1]:undefined;this.queues={};this.queueNameIndex=0;this.queueNames=queueNames;queueNames.reduce(function(queues,queueName){queues[queueName]=new Queue(queueName,options[queueName],options);return queues;},this.queues);}/**\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             */schedule(queueName,target,method,args,onceFlag,stack){let queues=this.queues;let queue=queues[queueName];if(queue===undefined){throw new Error(`You attempted to schedule an action in a queue (${queueName}) that doesn\\'t exist`);}if(method===undefined||method===null){throw new Error(`You attempted to schedule an action in a queue (${queueName}) for a method that doesn\\'t exist`);}this.queueNameIndex=0;if(onceFlag){return queue.pushUnique(target,method,args,stack);}else{return queue.push(target,method,args,stack);}}/**\n             * DeferredActionQueues.flush() calls Queue.flush()\n             *\n             * @method flush\n             * @param {Boolean} fromAutorun\n             */flush(){let fromAutorun=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;let queue;let queueName;let numberOfQueues=this.queueNames.length;while(this.queueNameIndex<numberOfQueues){queueName=this.queueNames[this.queueNameIndex];queue=this.queues[queueName];if(queue.hasWork()===false){this.queueNameIndex++;if(fromAutorun&&this.queueNameIndex<numberOfQueues){return 1/* Pause */;}}else{if(queue.flush(false/* async */)===1/* Pause */){return 1/* Pause */;}}}}/**\n             * Returns debug information for the current queues.\n             *\n             * @method _getDebugInfo\n             * @param {Boolean} debugEnabled\n             * @returns {IDebugInfo | undefined}\n             */_getDebugInfo(debugEnabled){if(debugEnabled){let debugInfo={};let queue;let queueName;let numberOfQueues=this.queueNames.length;let i=0;while(i<numberOfQueues){queueName=this.queueNames[i];queue=this.queues[queueName];debugInfo[queueName]=queue._getDebugInfo(debugEnabled);i++;}return debugInfo;}return;}}function iteratorDrain(fn){let iterator=fn();let result=iterator.next();while(result.done===false){result.value();result=iterator.next();}}const noop$1=function(){};const DISABLE_SCHEDULE=Object.freeze([]);function parseArgs(){let length=arguments.length;let args;let method;let target;if(length===0);else if(length===1){target=null;method=arguments[0];}else{let argsIndex=2;let methodOrTarget=arguments[0];let methodOrArgs=arguments[1];let type=typeof methodOrArgs;if(type==='function'){target=methodOrTarget;method=methodOrArgs;}else if(methodOrTarget!==null&&type==='string'&&methodOrArgs in methodOrTarget){target=methodOrTarget;method=target[methodOrArgs];}else if(typeof methodOrTarget==='function'){argsIndex=1;target=null;method=methodOrTarget;}if(length>argsIndex){let len=length-argsIndex;args=new Array(len);for(let i=0;i<len;i++){args[i]=arguments[i+argsIndex];}}}return[target,method,args];}function parseTimerArgs(){let[target,method,args]=parseArgs(...arguments);let wait=0;let length=args!==undefined?args.length:0;if(length>0){let last=args[length-1];if(isCoercableNumber(last)){wait=parseInt(args.pop(),10);}}return[target,method,args,wait];}function parseDebounceArgs(){let target;let method;let isImmediate;let args;let wait;if(arguments.length===2){method=arguments[0];wait=arguments[1];target=null;}else{[target,method,args]=parseArgs(...arguments);if(args===undefined){wait=0;}else{wait=args.pop();if(!isCoercableNumber(wait)){isImmediate=wait===true;wait=args.pop();}}}wait=parseInt(wait,10);return[target,method,args,wait,isImmediate];}let UUID=0;let beginCount=0;let endCount=0;let beginEventCount=0;let endEventCount=0;let runCount=0;let joinCount=0;let deferCount=0;let scheduleCount=0;let scheduleIterableCount=0;let deferOnceCount=0;let scheduleOnceCount=0;let setTimeoutCount=0;let laterCount=0;let throttleCount=0;let debounceCount=0;let cancelTimersCount=0;let cancelCount=0;let autorunsCreatedCount=0;let autorunsCompletedCount=0;let deferredActionQueuesCreatedCount=0;let nestedDeferredActionQueuesCreated=0;class Backburner{constructor(queueNames,options){this.DEBUG=false;this.currentInstance=null;this.instanceStack=[];this._eventCallbacks={end:[],begin:[]};this._timerTimeoutId=null;this._timers=[];this._autorun=false;this._autorunStack=null;this.queueNames=queueNames;this.options=options||{};if(typeof this.options.defaultQueue==='string'){this._defaultQueue=this.options.defaultQueue;}else{this._defaultQueue=this.queueNames[0];}this._onBegin=this.options.onBegin||noop$1;this._onEnd=this.options.onEnd||noop$1;this._boundRunExpiredTimers=this._runExpiredTimers.bind(this);this._boundAutorunEnd=()=>{autorunsCompletedCount++;// if the autorun was already flushed, do nothing\nif(this._autorun===false){return;}this._autorun=false;this._autorunStack=null;this._end(true/* fromAutorun */);};let builder=this.options._buildPlatform||buildPlatform;this._platform=builder(this._boundAutorunEnd);}get counters(){return{begin:beginCount,end:endCount,events:{begin:beginEventCount,end:endEventCount},autoruns:{created:autorunsCreatedCount,completed:autorunsCompletedCount},run:runCount,join:joinCount,defer:deferCount,schedule:scheduleCount,scheduleIterable:scheduleIterableCount,deferOnce:deferOnceCount,scheduleOnce:scheduleOnceCount,setTimeout:setTimeoutCount,later:laterCount,throttle:throttleCount,debounce:debounceCount,cancelTimers:cancelTimersCount,cancel:cancelCount,loops:{total:deferredActionQueuesCreatedCount,nested:nestedDeferredActionQueuesCreated}};}get defaultQueue(){return this._defaultQueue;}/*\n              @method begin\n              @return instantiated class DeferredActionQueues\n            */begin(){beginCount++;let options=this.options;let previousInstance=this.currentInstance;let current;if(this._autorun!==false){current=previousInstance;this._cancelAutorun();}else{if(previousInstance!==null){nestedDeferredActionQueuesCreated++;this.instanceStack.push(previousInstance);}deferredActionQueuesCreatedCount++;current=this.currentInstance=new DeferredActionQueues(this.queueNames,options);beginEventCount++;this._trigger('begin',current,previousInstance);}this._onBegin(current,previousInstance);return current;}end(){endCount++;this._end(false);}on(eventName,callback){if(typeof callback!=='function'){throw new TypeError(`Callback must be a function`);}let callbacks=this._eventCallbacks[eventName];if(callbacks!==undefined){callbacks.push(callback);}else{throw new TypeError(`Cannot on() event ${eventName} because it does not exist`);}}off(eventName,callback){let callbacks=this._eventCallbacks[eventName];if(!eventName||callbacks===undefined){throw new TypeError(`Cannot off() event ${eventName} because it does not exist`);}let callbackFound=false;if(callback){for(let i=0;i<callbacks.length;i++){if(callbacks[i]===callback){callbackFound=true;callbacks.splice(i,1);i--;}}}if(!callbackFound){throw new TypeError(`Cannot off() callback that does not exist`);}}run(){runCount++;let[target,method,args]=parseArgs(...arguments);return this._run(target,method,args);}join(){joinCount++;let[target,method,args]=parseArgs(...arguments);return this._join(target,method,args);}/**\n             * @deprecated please use schedule instead.\n             */defer(queueName,target,method){deferCount++;for(var _len19=arguments.length,args=new Array(_len19>3?_len19-3:0),_key20=3;_key20<_len19;_key20++){args[_key20-3]=arguments[_key20];}return this.schedule(queueName,target,method,...args);}schedule(queueName){scheduleCount++;for(var _len20=arguments.length,_args=new Array(_len20>1?_len20-1:0),_key21=1;_key21<_len20;_key21++){_args[_key21-1]=arguments[_key21];}let[target,method,args]=parseArgs(..._args);let stack=this.DEBUG?new Error():undefined;return this._ensureInstance().schedule(queueName,target,method,args,false,stack);}/*\n              Defer the passed iterable of functions to run inside the specified queue.\n                 @method scheduleIterable\n              @param {String} queueName\n              @param {Iterable} an iterable of functions to execute\n              @return method result\n            */scheduleIterable(queueName,iterable){scheduleIterableCount++;let stack=this.DEBUG?new Error():undefined;return this._ensureInstance().schedule(queueName,null,iteratorDrain,[iterable],false,stack);}/**\n             * @deprecated please use scheduleOnce instead.\n             */deferOnce(queueName,target,method){deferOnceCount++;for(var _len21=arguments.length,args=new Array(_len21>3?_len21-3:0),_key22=3;_key22<_len21;_key22++){args[_key22-3]=arguments[_key22];}return this.scheduleOnce(queueName,target,method,...args);}scheduleOnce(queueName){scheduleOnceCount++;for(var _len22=arguments.length,_args=new Array(_len22>1?_len22-1:0),_key23=1;_key23<_len22;_key23++){_args[_key23-1]=arguments[_key23];}let[target,method,args]=parseArgs(..._args);let stack=this.DEBUG?new Error():undefined;return this._ensureInstance().schedule(queueName,target,method,args,true,stack);}setTimeout(){setTimeoutCount++;return this.later(...arguments);}later(){laterCount++;let[target,method,args,wait]=parseTimerArgs(...arguments);return this._later(target,method,args,wait);}throttle(){throttleCount++;let[target,method,args,wait,isImmediate=true]=parseDebounceArgs(...arguments);let index=findTimerItem(target,method,this._timers);let timerId;if(index===-1){timerId=this._later(target,method,isImmediate?DISABLE_SCHEDULE:args,wait);if(isImmediate){this._join(target,method,args);}}else{timerId=this._timers[index+1];let argIndex=index+4;if(this._timers[argIndex]!==DISABLE_SCHEDULE){this._timers[argIndex]=args;}}return timerId;}debounce(){debounceCount++;let[target,method,args,wait,isImmediate=false]=parseDebounceArgs(...arguments);let _timers=this._timers;let index=findTimerItem(target,method,_timers);let timerId;if(index===-1){timerId=this._later(target,method,isImmediate?DISABLE_SCHEDULE:args,wait);if(isImmediate){this._join(target,method,args);}}else{let executeAt=this._platform.now()+wait;let argIndex=index+4;if(_timers[argIndex]===DISABLE_SCHEDULE){args=DISABLE_SCHEDULE;}timerId=_timers[index+1];let i=binarySearch(executeAt,_timers);if(index+TIMERS_OFFSET===i){_timers[index]=executeAt;_timers[argIndex]=args;}else{let stack=this._timers[index+5];this._timers.splice(i,0,executeAt,timerId,target,method,args,stack);this._timers.splice(index,TIMERS_OFFSET);}if(index===0){this._reinstallTimerTimeout();}}return timerId;}cancelTimers(){cancelTimersCount++;this._clearTimerTimeout();this._timers=[];this._cancelAutorun();}hasTimers(){return this._timers.length>0||this._autorun;}cancel(timer){cancelCount++;if(timer===null||timer===undefined){return false;}let timerType=typeof timer;if(timerType==='number'){// we're cancelling a setTimeout or throttle or debounce\nreturn this._cancelLaterTimer(timer);}else if(timerType==='object'&&timer.queue&&timer.method){// we're cancelling a deferOnce\nreturn timer.queue.cancel(timer);}return false;}ensureInstance(){this._ensureInstance();}/**\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             */getDebugInfo(){if(this.DEBUG){return{autorun:this._autorunStack,counters:this.counters,timers:getQueueItems(this._timers,TIMERS_OFFSET,2),instanceStack:[this.currentInstance,...this.instanceStack].map(deferredActionQueue=>deferredActionQueue&&deferredActionQueue._getDebugInfo(this.DEBUG))};}return undefined;}_end(fromAutorun){let currentInstance=this.currentInstance;let nextInstance=null;if(currentInstance===null){throw new Error(`end called without begin`);}// 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\nlet finallyAlreadyCalled=false;let result;try{result=currentInstance.flush(fromAutorun);}finally{if(!finallyAlreadyCalled){finallyAlreadyCalled=true;if(result===1/* Pause */){const plannedNextQueue=this.queueNames[currentInstance.queueNameIndex];this._scheduleAutorun(plannedNextQueue);}else{this.currentInstance=null;if(this.instanceStack.length>0){nextInstance=this.instanceStack.pop();this.currentInstance=nextInstance;}this._trigger('end',currentInstance,nextInstance);this._onEnd(currentInstance,nextInstance);}}}}_join(target,method,args){if(this.currentInstance===null){return this._run(target,method,args);}if(target===undefined&&args===undefined){return method();}else{return method.apply(target,args);}}_run(target,method,args){let onError=getOnError(this.options);this.begin();if(onError){try{return method.apply(target,args);}catch(error){onError(error);}finally{this.end();}}else{try{return method.apply(target,args);}finally{this.end();}}}_cancelAutorun(){if(this._autorun){this._platform.clearNext();this._autorun=false;this._autorunStack=null;}}_later(target,method,args,wait){let stack=this.DEBUG?new Error():undefined;let executeAt=this._platform.now()+wait;let id=UUID++;if(this._timers.length===0){this._timers.push(executeAt,id,target,method,args,stack);this._installTimerTimeout();}else{// find position to insert\nlet i=binarySearch(executeAt,this._timers);this._timers.splice(i,0,executeAt,id,target,method,args,stack);// always reinstall since it could be out of sync\nthis._reinstallTimerTimeout();}return id;}_cancelLaterTimer(timer){for(let i=1;i<this._timers.length;i+=TIMERS_OFFSET){if(this._timers[i]===timer){this._timers.splice(i-1,TIMERS_OFFSET);if(i===1){this._reinstallTimerTimeout();}return true;}}return false;}/**\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                @private\n             @method _trigger\n             @param {String} eventName\n             @param {any} arg1\n             @param {any} arg2\n             */_trigger(eventName,arg1,arg2){let callbacks=this._eventCallbacks[eventName];if(callbacks!==undefined){for(let i=0;i<callbacks.length;i++){callbacks[i](arg1,arg2);}}}_runExpiredTimers(){this._timerTimeoutId=null;if(this._timers.length>0){this.begin();this._scheduleExpiredTimers();this.end();}}_scheduleExpiredTimers(){let timers=this._timers;let i=0;let l=timers.length;let defaultQueue=this._defaultQueue;let n=this._platform.now();for(;i<l;i+=TIMERS_OFFSET){let executeAt=timers[i];if(executeAt>n){break;}let args=timers[i+4];if(args!==DISABLE_SCHEDULE){let target=timers[i+2];let method=timers[i+3];let stack=timers[i+5];this.currentInstance.schedule(defaultQueue,target,method,args,false,stack);}}timers.splice(0,i);this._installTimerTimeout();}_reinstallTimerTimeout(){this._clearTimerTimeout();this._installTimerTimeout();}_clearTimerTimeout(){if(this._timerTimeoutId===null){return;}this._platform.clearTimeout(this._timerTimeoutId);this._timerTimeoutId=null;}_installTimerTimeout(){if(this._timers.length===0){return;}let minExpiresAt=this._timers[0];let n=this._platform.now();let wait=Math.max(0,minExpiresAt-n);this._timerTimeoutId=this._platform.setTimeout(this._boundRunExpiredTimers,wait);}_ensureInstance(){let currentInstance=this.currentInstance;if(currentInstance===null){this._autorunStack=this.DEBUG?new Error():undefined;currentInstance=this.begin();this._scheduleAutorun(this.queueNames[0]);}return currentInstance;}_scheduleAutorun(plannedNextQueue){autorunsCreatedCount++;const next=this._platform.next;const flush=this.options.flush;if(flush){flush(plannedNextQueue,next);}else{next();}this._autorun=true;}}Backburner.Queue=Queue;Backburner.buildPlatform=buildPlatform;Backburner.buildNext=buildNext;const backburnerjs=/*#__PURE__*/Object.defineProperty({__proto__:null,buildPlatform,default:Backburner},Symbol.toStringTag,{value:'Module'});// Partial types from https://medium.com/codex/currying-in-typescript-ca5226c85b85\nlet currentRunLoop=null;function _getCurrentRunLoop(){return currentRunLoop;}function onBegin(current){currentRunLoop=current;}function onEnd(_current,next){currentRunLoop=next;flushAsyncObservers(schedule);}function flush$1(queueName,next){if(queueName==='render'||queueName===_rsvpErrorQueue){flushAsyncObservers(schedule);}next();}const _rsvpErrorQueue=`${Math.random()}${Date.now()}`.replace('.','');/**\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          */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];/**\n           * @internal\n           * @private\n           */const _backburner=new Backburner(_queues,{defaultQueue:'actions',onBegin,onEnd,onErrorTarget,onErrorMethod:'onerror',flush:flush$1});/**\n           @module @ember/runloop\n          */// ..........................................................\n// run - this is ideally the only public API the dev sees\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          */function run$1(){// @ts-expect-error TS doesn't like our spread args\nreturn _backburner.run(...arguments);}/**\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          */function join(methodOrTarget,methodOrArg){for(var _len23=arguments.length,additionalArgs=new Array(_len23>2?_len23-2:0),_key24=2;_key24<_len23;_key24++){additionalArgs[_key24-2]=arguments[_key24];}return _backburner.join(methodOrTarget,methodOrArg,...additionalArgs);}/**\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          */// This final fallback is the equivalent of the (quite unsafe!) type for `bind`\n// from TS' defs for `Function.prototype.bind`. In general, it means we have a\n// loss of safety if we do not\nfunction bind(){for(var _len24=arguments.length,curried=new Array(_len24),_key25=0;_key25<_len24;_key25++){curried[_key25]=arguments[_key25];}!function(methodOrTarget,methodOrArg){// Applies the same logic as backburner parseArgs for detecting if a method\n// is actually being passed.\nlet length=arguments.length;if(length===0){return false;}else if(length===1){return typeof methodOrTarget==='function';}else{return typeof methodOrArg==='function'||// second argument is a function\nmethodOrTarget!==null&&typeof methodOrArg==='string'&&methodOrArg in methodOrTarget||// second argument is the name of a method in first argument\ntypeof methodOrTarget==='function'//first argument is a function\n;}// @ts-expect-error TS doesn't like our spread args\n}(...curried)&&assert$1('could not find a suitable method to bind',function(methodOrTarget,methodOrArg){let length=arguments.length;if(length===0){return false;}else if(length===1){return typeof methodOrTarget==='function';}else{return typeof methodOrArg==='function'||methodOrTarget!==null&&typeof methodOrArg==='string'&&methodOrArg in methodOrTarget||typeof methodOrTarget==='function';}}(...curried));// @ts-expect-error TS doesn't like our spread args\nreturn function(){for(var _len25=arguments.length,args=new Array(_len25),_key26=0;_key26<_len25;_key26++){args[_key26]=arguments[_key26];}return join(...curried.concat(args));};}/**\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          */function begin(){_backburner.begin();}/**\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          */function end(){_backburner.end();}/**\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          */function schedule(){// @ts-expect-error TS doesn't like the rest args here\nreturn _backburner.schedule(...arguments);}// Used by global test teardown\nfunction _hasScheduledTimers(){return _backburner.hasTimers();}// Used by global test teardown\nfunction _cancelTimers(){_backburner.cancelTimers();}/**\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          */function later(){return _backburner.later(...arguments);}/**\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          */function once(){for(var _len26=arguments.length,args=new Array(_len26),_key27=0;_key27<_len26;_key27++){args[_key27]=arguments[_key27];}// @ts-expect-error TS doesn't like the rest args here\nreturn _backburner.scheduleOnce('actions',...args);}/**\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          */function scheduleOnce(){// @ts-expect-error TS doesn't like the rest args here\nreturn _backburner.scheduleOnce(...arguments);}/**\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          */function next(){for(var _len27=arguments.length,args=new Array(_len27),_key28=0;_key28<_len27;_key28++){args[_key28]=arguments[_key28];}return _backburner.later(...args,1);}/**\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          */function cancel(timer){return _backburner.cancel(timer);}/**\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          */function debounce(){// @ts-expect-error TS doesn't like the rest args here\nreturn _backburner.debounce(...arguments);}/**\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          */function throttle(){// @ts-expect-error TS doesn't like the rest args here\nreturn _backburner.throttle(...arguments);}const emberRunloopIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,_backburner,_cancelTimers,_getCurrentRunLoop,_hasScheduledTimers,_queues,_rsvpErrorQueue,begin,bind,cancel,debounce,end,join,later,next,once,run:run$1,schedule,scheduleOnce,throttle},Symbol.toStringTag,{value:'Module'});// This is defined as a separate interface so that it can be used in the definition of\n// `Owner` without also including the `__container__` property.\n/**\n            ContainerProxyMixin is used to provide public access to specific\n            container functionality.\n\n            @class ContainerProxyMixin\n            @extends ContainerProxy\n            @private\n          */const ContainerProxyMixin=Mixin.create({/**\n             The container stores state.\n              @private\n             @property {Ember.Container} __container__\n             */__container__:null,ownerInjection(){return this.__container__.ownerInjection();},lookup(fullName,options){return this.__container__.lookup(fullName,options);},destroy(){let container=this.__container__;if(container){join(()=>{container.destroy();schedule('destroy',container,'finalizeDestroy');});}this._super();},factoryFor(fullName){return this.__container__.factoryFor(fullName);}});const emberinternalsRuntimeLibMixinsContainerProxy=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ContainerProxyMixin},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\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          */const Comparable=Mixin.create({/**\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            */compare:null});const emberinternalsRuntimeLibMixinsComparable=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Comparable},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\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          */const ActionHandler=Mixin.create({mergedProperties:['actions'],/**\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/object/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/object/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              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            */send(actionName){for(var _len28=arguments.length,args=new Array(_len28>1?_len28-1:0),_key29=1;_key29<_len28;_key29++){args[_key29-1]=arguments[_key29];}!(!this.isDestroying&&!this.isDestroyed)&&assert$1(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`,!this.isDestroying&&!this.isDestroyed);if(this.actions&&this.actions[actionName]){let shouldBubble=this.actions[actionName].apply(this,args)===true;if(!shouldBubble){return;}}let target=get$2(this,'target');if(target){!(typeof target.send==='function')&&assert$1(`The \\`target\\` for ${this} (${target}) does not have a \\`send\\` method`,typeof target.send==='function');target.send(...arguments);}}});const emberinternalsRuntimeLibMixinsActionHandler=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ActionHandler},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          */function contentFor(proxy){let content=get$2(proxy,'content');// SAFETY: Ideally we'd assert instead of casting, but @glimmer/validator doesn't give us\n// sufficient public types for this. Previously this code was .js and worked correctly so\n// hopefully this is sufficiently reliable.\nUPDATE_TAG(tagForObject(proxy),tagForObject(content));return content;}function customTagForProxy(proxy,key,addMandatorySetter){!isProxy(proxy)&&assert$1('Expected a proxy',isProxy(proxy));let meta=tagMetaFor(proxy);let tag=tagFor(proxy,key,meta);{// TODO: Replace this with something more first class for tracking tags in DEBUG\n// SAFETY: This is not an officially supported property but setting shouldn't cause issues.\ntag._propertyKey=key;}if(key in proxy){if(addMandatorySetter){!setupMandatorySetter&&assert$1('[BUG] setupMandatorySetter should be set when debugging',setupMandatorySetter);setupMandatorySetter(tag,proxy,key);}return tag;}else{let tags=[tag,tagFor(proxy,'content',meta)];let content=contentFor(proxy);if(isObject$1(content)){tags.push(tagForProperty(content,key,addMandatorySetter));}return combine(tags);}}/**\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          */const ProxyMixin=Mixin.create({/**\n              The object whose properties will be forwarded.\n               @property content\n              @type {unknown}\n              @default null\n              @public\n            */content:null,init(){this._super(...arguments);setProxy(this);tagForObject(this);setCustomTagFor(this,customTagForProxy);},willDestroy(){this.set('content',null);this._super(...arguments);},isTruthy:computed('content',function(){return Boolean(get$2(this,'content'));}),unknownProperty(key){let content=contentFor(this);return content?get$2(content,key):undefined;},setUnknownProperty(key,value){let m=meta(this);if(m.isInitializing()||m.isPrototypeMeta(this)){// if marked as prototype or object is initializing then just\n// defineProperty rather than delegate\ndefineProperty(this,key,null,value);return value;}let content=contentFor(this);!content&&assert$1(`Cannot delegate set('${key}', ${value}) to the 'content' property of object proxy ${this}: its 'content' is undefined.`,content);// SAFETY: We don't actually guarantee that this is an object, so this isn't necessarily safe :(\nreturn set(content,key,value);}});const emberinternalsRuntimeLibMixinsproxy=/*#__PURE__*/Object.defineProperty({__proto__:null,contentFor,default:ProxyMixin},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/enumerable\n          @private\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          */// eslint-disable-next-line @typescript-eslint/no-empty-interface\nconst Enumerable=Mixin.create();const emberEnumerableIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Enumerable},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\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          */// eslint-disable-next-line @typescript-eslint/no-empty-interface\nconst MutableEnumerable=Mixin.create(Enumerable);const emberEnumerableMutable=/*#__PURE__*/Object.defineProperty({__proto__:null,default:MutableEnumerable},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          *//**\n          `Ember.TargetActionSupport` is a mixin that can be included in a class\n          to add a `triggerAction` method with semantics similar to the Handlebars\n          `{{action}}` helper. In normal Ember usage, the `{{action}}` helper is\n          usually the best choice. This mixin is most often useful when you are\n          doing more complex event handling in Components.\n\n          @class TargetActionSupport\n          @namespace Ember\n          @extends Mixin\n          @private\n          */const TargetActionSupport=Mixin.create({target:null,action:null,actionContext:null,actionContextObject:computed('actionContext',function(){let actionContext=get$2(this,'actionContext');if(typeof actionContext==='string'){let value=get$2(this,actionContext);if(value===undefined){value=get$2(context$1.lookup,actionContext);}return value;}else{return actionContext;}}),/**\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            */triggerAction(){let opts=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};let{action,target,actionContext}=opts;action=action||get$2(this,'action');target=target||getTarget(this);if(actionContext===undefined){actionContext=get$2(this,'actionContextObject')||this;}let context=Array.isArray(actionContext)?actionContext:[actionContext];if(target&&action){let ret;if(isSendable(target)){ret=target.send(action,...context);}else{!(typeof target[action]==='function')&&assert$1(`The action '${action}' did not exist on ${target}`,typeof target[action]==='function');ret=target[action](...context);}if(ret!==false){return true;}}return false;}});function isSendable(obj){return obj!=null&&typeof obj==='object'&&typeof obj.send==='function';}function getTarget(instance){let target=get$2(instance,'target');if(target){if(typeof target==='string'){let value=get$2(instance,target);if(value===undefined){value=get$2(context$1.lookup,target);}return value;}else{return target;}}if(instance._target){return instance._target;}return null;}{Object.seal(TargetActionSupport);}const emberinternalsRuntimeLibMixinsTargetActionSupport=/*#__PURE__*/Object.defineProperty({__proto__:null,default:TargetActionSupport},Symbol.toStringTag,{value:'Module'});function callbacksFor(object){let callbacks=object._promiseCallbacks;if(!callbacks){callbacks=object._promiseCallbacks={};}return callbacks;}/**\n            @class EventTarget\n            @for rsvp\n            @public\n          */const EventTarget={/**\n              `EventTarget.mixin` extends an object with EventTarget methods. For\n              Example:\n               ```javascript\n              import EventTarget from 'rsvp';\n               let object = {};\n               EventTarget.mixin(object);\n               object.on('finished', function(event) {\n                // handle event\n              });\n               object.trigger('finished', { detail: value });\n              ```\n               `EventTarget.mixin` also works with prototypes:\n               ```javascript\n              import EventTarget from 'rsvp';\n               let Person = function() {};\n              EventTarget.mixin(Person.prototype);\n               let yehuda = new Person();\n              let tom = new Person();\n               yehuda.on('poke', function(event) {\n                console.log('Yehuda says OW');\n              });\n               tom.on('poke', function(event) {\n                console.log('Tom says OW');\n              });\n               yehuda.trigger('poke');\n              tom.trigger('poke');\n              ```\n               @method mixin\n              @for rsvp\n              @private\n              @param {Object} object object to extend with EventTarget methods\n            */mixin(object){object.on=this.on;object.off=this.off;object.trigger=this.trigger;object._promiseCallbacks=undefined;return object;},/**\n              Registers a callback to be executed when `eventName` is triggered\n               ```javascript\n              object.on('event', function(eventInfo){\n                // handle the event\n              });\n               object.trigger('event');\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            */on(eventName,callback){if(typeof callback!=='function'){throw new TypeError('Callback must be a function');}let allCallbacks=callbacksFor(this);let callbacks=allCallbacks[eventName];if(!callbacks){callbacks=allCallbacks[eventName]=[];}if(callbacks.indexOf(callback)===-1){callbacks.push(callback);}},/**\n              You can use `off` to stop firing a particular callback for an event:\n               ```javascript\n              function doStuff() { // do stuff! }\n              object.on('stuff', doStuff);\n               object.trigger('stuff'); // doStuff will be called\n               // Unregister ONLY the doStuff callback\n              object.off('stuff', doStuff);\n              object.trigger('stuff'); // doStuff will NOT be called\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               ```javascript\n              let callback1 = function(){};\n              let callback2 = function(){};\n               object.on('stuff', callback1);\n              object.on('stuff', callback2);\n               object.trigger('stuff'); // callback1 and callback2 will be executed.\n               object.off('stuff');\n              object.trigger('stuff'); // callback1 and callback2 will not be executed!\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            */off(eventName,callback){let allCallbacks=callbacksFor(this);if(!callback){allCallbacks[eventName]=[];return;}let callbacks=allCallbacks[eventName];let index=callbacks.indexOf(callback);if(index!==-1){callbacks.splice(index,1);}},/**\n              Use `trigger` to fire custom events. For example:\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               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               ```javascript\n              object.on('foo', function(value){\n                console.log(value.name);\n              });\n               object.trigger('foo', { name: 'bar' });\n              // 'bar' logged to the console\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            */trigger(eventName,options,label){let allCallbacks=callbacksFor(this);let callbacks=allCallbacks[eventName];if(callbacks){// Don't cache the callbacks.length since it may grow\nlet callback;for(let i=0;i<callbacks.length;i++){callback=callbacks[i];callback(options,label);}}}};const config={instrument:false};EventTarget['mixin'](config);function configure(name,value){if(arguments.length===2){config[name]=value;}else{return config[name];}}const queue$1=[];function scheduleFlush$1(){setTimeout(()=>{for(let i=0;i<queue$1.length;i++){let entry=queue$1[i];let payload=entry.payload;payload.guid=payload.key+payload.id;payload.childGuid=payload.key+payload.childId;if(payload.error){payload.stack=payload.error.stack;}config['trigger'](entry.name,entry.payload);}queue$1.length=0;},50);}function instrument$1(eventName,promise,child){if(1===queue$1.push({name:eventName,payload:{key:promise._guidKey,id:promise._id,eventName:eventName,detail:promise._result,childId:child&&child._id,label:promise._label,timeStamp:Date.now(),error:config[\"instrument-with-stack\"]?new Error(promise._label):null}})){scheduleFlush$1();}}/**\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          */function resolve$4(object,label){/*jshint validthis:true */let Constructor=this;if(object&&typeof object==='object'&&object.constructor===Constructor){return object;}let promise=new Constructor(noop,label);resolve$3(promise,object);return promise;}function withOwnPromise(){return new TypeError('A promises callback cannot return that same promise.');}function objectOrFunction(x){let type=typeof x;return x!==null&&(type==='object'||type==='function');}function noop(){}const PENDING=void 0;const FULFILLED=1;const REJECTED=2;function tryThen(then,value,fulfillmentHandler,rejectionHandler){try{then.call(value,fulfillmentHandler,rejectionHandler);}catch(e){return e;}}function handleForeignThenable(promise,thenable,then){config.async(promise=>{let sealed=false;let error=tryThen(then,thenable,value=>{if(sealed){return;}sealed=true;if(thenable===value){fulfill(promise,value);}else{resolve$3(promise,value);}},reason=>{if(sealed){return;}sealed=true;reject$2(promise,reason);},'Settle: '+(promise._label||' unknown promise'));if(!sealed&&error){sealed=true;reject$2(promise,error);}},promise);}function handleOwnThenable(promise,thenable){if(thenable._state===FULFILLED){fulfill(promise,thenable._result);}else if(thenable._state===REJECTED){thenable._onError=null;reject$2(promise,thenable._result);}else{subscribe$1(thenable,undefined,value=>{if(thenable===value){fulfill(promise,value);}else{resolve$3(promise,value);}},reason=>reject$2(promise,reason));}}function handleMaybeThenable(promise,maybeThenable,then$1){let isOwnThenable=maybeThenable.constructor===promise.constructor&&then$1===then&&promise.constructor.resolve===resolve$4;if(isOwnThenable){handleOwnThenable(promise,maybeThenable);}else if(typeof then$1==='function'){handleForeignThenable(promise,maybeThenable,then$1);}else{fulfill(promise,maybeThenable);}}function resolve$3(promise,value){if(promise===value){fulfill(promise,value);}else if(objectOrFunction(value)){let then;try{then=value.then;}catch(error){reject$2(promise,error);return;}handleMaybeThenable(promise,value,then);}else{fulfill(promise,value);}}function publishRejection(promise){if(promise._onError){promise._onError(promise._result);}publish(promise);}function fulfill(promise,value){if(promise._state!==PENDING){return;}promise._result=value;promise._state=FULFILLED;if(promise._subscribers.length===0){if(config.instrument){instrument$1('fulfilled',promise);}}else{config.async(publish,promise);}}function reject$2(promise,reason){if(promise._state!==PENDING){return;}promise._state=REJECTED;promise._result=reason;config.async(publishRejection,promise);}function subscribe$1(parent,child,onFulfillment,onRejection){let subscribers=parent._subscribers;let length=subscribers.length;parent._onError=null;subscribers[length]=child;subscribers[length+FULFILLED]=onFulfillment;subscribers[length+REJECTED]=onRejection;if(length===0&&parent._state){config.async(publish,parent);}}function publish(promise){let subscribers=promise._subscribers;let settled=promise._state;if(config.instrument){instrument$1(settled===FULFILLED?'fulfilled':'rejected',promise);}if(subscribers.length===0){return;}let child,callback,result=promise._result;for(let i=0;i<subscribers.length;i+=3){child=subscribers[i];callback=subscribers[i+settled];if(child){invokeCallback(settled,child,callback,result);}else{callback(result);}}promise._subscribers.length=0;}function invokeCallback(state,promise,callback,result){let hasCallback=typeof callback==='function';let value,succeeded=true,error;if(hasCallback){try{value=callback(result);}catch(e){succeeded=false;error=e;}}else{value=result;}if(promise._state!==PENDING);else if(value===promise){reject$2(promise,withOwnPromise());}else if(succeeded===false){reject$2(promise,error);}else if(hasCallback){resolve$3(promise,value);}else if(state===FULFILLED){fulfill(promise,value);}else if(state===REJECTED){reject$2(promise,value);}}function initializePromise(promise,resolver){let resolved=false;try{resolver(value=>{if(resolved){return;}resolved=true;resolve$3(promise,value);},reason=>{if(resolved){return;}resolved=true;reject$2(promise,reason);});}catch(e){reject$2(promise,e);}}function then(onFulfillment,onRejection,label){let parent=this;let state=parent._state;if(state===FULFILLED&&!onFulfillment||state===REJECTED&&!onRejection){config.instrument&&instrument$1('chained',parent,parent);return parent;}parent._onError=null;let child=new parent.constructor(noop,label);let result=parent._result;config.instrument&&instrument$1('chained',parent,child);if(state===PENDING){subscribe$1(parent,child,onFulfillment,onRejection);}else{let callback=state===FULFILLED?onFulfillment:onRejection;config.async(()=>invokeCallback(state,child,callback,result));}return child;}class Enumerator{constructor(Constructor,input,abortOnReject,label){this._instanceConstructor=Constructor;this.promise=new Constructor(noop,label);this._abortOnReject=abortOnReject;this._isUsingOwnPromise=Constructor===Promise$2;this._isUsingOwnResolve=Constructor.resolve===resolve$4;this._init(...arguments);}_init(Constructor,input){let len=input.length||0;this.length=len;this._remaining=len;this._result=new Array(len);this._enumerate(input);}_enumerate(input){let length=this.length;let promise=this.promise;for(let i=0;promise._state===PENDING&&i<length;i++){this._eachEntry(input[i],i,true);}this._checkFullfillment();}_checkFullfillment(){if(this._remaining===0){let result=this._result;fulfill(this.promise,result);this._result=null;}}_settleMaybeThenable(entry,i,firstPass){let c=this._instanceConstructor;if(this._isUsingOwnResolve){let then$1,error,succeeded=true;try{then$1=entry.then;}catch(e){succeeded=false;error=e;}if(then$1===then&&entry._state!==PENDING){entry._onError=null;this._settledAt(entry._state,i,entry._result,firstPass);}else if(typeof then$1!=='function'){this._settledAt(FULFILLED,i,entry,firstPass);}else if(this._isUsingOwnPromise){let promise=new c(noop);if(succeeded===false){reject$2(promise,error);}else{handleMaybeThenable(promise,entry,then$1);this._willSettleAt(promise,i,firstPass);}}else{this._willSettleAt(new c(resolve=>resolve(entry)),i,firstPass);}}else{this._willSettleAt(c.resolve(entry),i,firstPass);}}_eachEntry(entry,i,firstPass){if(entry!==null&&typeof entry==='object'){this._settleMaybeThenable(entry,i,firstPass);}else{this._setResultAt(FULFILLED,i,entry,firstPass);}}_settledAt(state,i,value,firstPass){let promise=this.promise;if(promise._state===PENDING){if(this._abortOnReject&&state===REJECTED){reject$2(promise,value);}else{this._setResultAt(state,i,value,firstPass);this._checkFullfillment();}}}_setResultAt(state,i,value,firstPass){this._remaining--;this._result[i]=value;}_willSettleAt(promise,i,firstPass){subscribe$1(promise,undefined,value=>this._settledAt(FULFILLED,i,value,firstPass),reason=>this._settledAt(REJECTED,i,reason,firstPass));}}function setSettledResult(state,i,value){this._remaining--;if(state===FULFILLED){this._result[i]={state:'fulfilled',value:value};}else{this._result[i]={state:'rejected',reason:value};}}/**\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          */function all$1(entries,label){if(!Array.isArray(entries)){return this.reject(new TypeError(\"Promise.all must be called with an array\"),label);}return new Enumerator(this,entries,true/* abort on reject */,label).promise;}/**\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          */function race$1(entries,label){/*jshint validthis:true */let Constructor=this;let promise=new Constructor(noop,label);if(!Array.isArray(entries)){reject$2(promise,new TypeError('Promise.race must be called with an array'));return promise;}for(let i=0;promise._state===PENDING&&i<entries.length;i++){subscribe$1(Constructor.resolve(entries[i]),undefined,value=>resolve$3(promise,value),reason=>reject$2(promise,reason));}return promise;}/**\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          */function reject$1(reason,label){/*jshint validthis:true */let Constructor=this;let promise=new Constructor(noop,label);reject$2(promise,reason);return promise;}const guidKey='rsvp_'+Date.now()+'-';let counter=0;function needsResolver(){throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');}function needsNew(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");}/**\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          */let Promise$1=class Promise{constructor(resolver,label){this._id=counter++;this._label=label;this._state=undefined;this._result=undefined;this._subscribers=[];config.instrument&&instrument$1('created',this);if(noop!==resolver){typeof resolver!=='function'&&needsResolver();this instanceof Promise?initializePromise(this,resolver):needsNew();}}_onError(reason){config.after(()=>{if(this._onError){config.trigger('error',reason,this._label);}});}/**\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            */catch(onRejection,label){return this.then(undefined,onRejection,label);}/**\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            */finally(callback,label){let promise=this;let constructor=promise.constructor;if(typeof callback==='function'){return promise.then(value=>constructor.resolve(callback()).then(()=>value),reason=>constructor.resolve(callback()).then(()=>{throw reason;}));}return promise.then(callback,callback);}};Promise$1.cast=resolve$4;// deprecated\nPromise$1.all=all$1;Promise$1.race=race$1;Promise$1.resolve=resolve$4;Promise$1.reject=reject$1;Promise$1.prototype._guidKey=guidKey;/**\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          */Promise$1.prototype.then=then;const Promise$2=Promise$1;function makeObject(_,argumentNames){let obj={};let length=_.length;let args=new Array(length);for(let x=0;x<length;x++){args[x]=_[x];}for(let i=0;i<argumentNames.length;i++){let name=argumentNames[i];obj[name]=args[i+1];}return obj;}function arrayResult(_){let length=_.length;let args=new Array(length-1);for(let i=1;i<length;i++){args[i-1]=_[i];}return args;}function wrapThenable(then,promise){return{then(onFulFillment,onRejection){return then.call(promise,onFulFillment,onRejection);}};}/**\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          */function denodeify(nodeFunc,options){let fn=function(){let l=arguments.length;let args=new Array(l+1);let promiseInput=false;for(let i=0;i<l;++i){let arg=arguments[i];// TODO: this code really needs to be cleaned up\nif(!promiseInput){if(arg!==null&&typeof arg==='object'){if(arg.constructor===Promise$2){promiseInput=true;}else{try{promiseInput=arg.then;}catch(error){let p=new Promise$2(noop);reject$2(p,error);return p;}}}else{promiseInput=false;}if(promiseInput&&promiseInput!==true){arg=wrapThenable(promiseInput,arg);}}args[i]=arg;}let promise=new Promise$2(noop);args[l]=function(err,val){if(err){reject$2(promise,err);}else if(options===undefined){resolve$3(promise,val);}else if(options===true){resolve$3(promise,arrayResult(arguments));}else if(Array.isArray(options)){resolve$3(promise,makeObject(arguments,options));}else{resolve$3(promise,val);}};if(promiseInput){return handlePromiseInput(promise,args,nodeFunc,this);}else{return handleValueInput(promise,args,nodeFunc,this);}};fn.__proto__=nodeFunc;return fn;}function handleValueInput(promise,args,nodeFunc,self){try{nodeFunc.apply(self,args);}catch(error){reject$2(promise,error);}return promise;}function handlePromiseInput(promise,args,nodeFunc,self){return Promise$2.all(args).then(args=>handleValueInput(promise,args,nodeFunc,self));}/**\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          */function all(array,label){return Promise$2.all(array,label);}/**\n          @module rsvp\n          @public\n          **/class AllSettled extends Enumerator{constructor(Constructor,entries,label){super(Constructor,entries,false/* don't abort on reject */,label);}}AllSettled.prototype._setResultAt=setSettledResult;/**\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           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           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           ```javascript\n          { state: 'fulfilled', value: value }\n            or\n          { state: 'rejected', reason: reason }\n          ```\n           Example:\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           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           @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          */function allSettled(entries,label){if(!Array.isArray(entries)){return Promise$2.reject(new TypeError(\"Promise.allSettled must be called with an array\"),label);}return new AllSettled(Promise$2,entries,label).promise;}/**\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           */function race(array,label){return Promise$2.race(array,label);}class PromiseHash extends Enumerator{constructor(Constructor,object){let abortOnReject=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;let label=arguments.length>3?arguments[3]:undefined;super(Constructor,object,abortOnReject,label);}_init(Constructor,object){this._result={};this._enumerate(object);}_enumerate(input){let keys=Object.keys(input);let length=keys.length;let promise=this.promise;this._remaining=length;let key,val;for(let i=0;promise._state===PENDING&&i<length;i++){key=keys[i];val=input[key];this._eachEntry(val,key,true);}this._checkFullfillment();}}/**\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          */function hash$2(object,label){return Promise$2.resolve(object,label).then(function(object){if(object===null||typeof object!=='object'){throw new TypeError(\"Promise.hash must be called with an object\");}return new PromiseHash(Promise$2,object,label).promise;});}class HashSettled extends PromiseHash{constructor(Constructor,object,label){super(Constructor,object,false,label);}}HashSettled.prototype._setResultAt=setSettledResult;/**\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          */function hashSettled(object,label){return Promise$2.resolve(object,label).then(function(object){if(object===null||typeof object!=='object'){throw new TypeError(\"hashSettled must be called with an object\");}return new HashSettled(Promise$2,object,false,label).promise;});}/**\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          */function rethrow(reason){setTimeout(()=>{throw reason;});throw reason;}/**\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           */function defer(label){let deferred={resolve:undefined,reject:undefined};deferred.promise=new Promise$2((resolve,reject)=>{deferred.resolve=resolve;deferred.reject=reject;},label);return deferred;}class MapEnumerator extends Enumerator{constructor(Constructor,entries,mapFn,label){super(Constructor,entries,true,label,mapFn);}_init(Constructor,input,bool,label,mapFn){let len=input.length||0;this.length=len;this._remaining=len;this._result=new Array(len);this._mapFn=mapFn;this._enumerate(input);}_setResultAt(state,i,value,firstPass){if(firstPass){try{this._eachEntry(this._mapFn(value,i),i,false);}catch(error){this._settledAt(REJECTED,i,error,false);}}else{this._remaining--;this._result[i]=value;}}}/**\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          */function map$2(promises,mapFn,label){if(typeof mapFn!=='function'){return Promise$2.reject(new TypeError(\"map expects a function as a second argument\"),label);}return Promise$2.resolve(promises,label).then(function(promises){if(!Array.isArray(promises)){throw new TypeError(\"map must be called with an array\");}return new MapEnumerator(Promise$2,promises,mapFn,label).promise;});}/**\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          */function resolve$2(value,label){return Promise$2.resolve(value,label);}/**\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          */function reject(reason,label){return Promise$2.reject(reason,label);}const EMPTY_OBJECT={};class FilterEnumerator extends MapEnumerator{_checkFullfillment(){if(this._remaining===0&&this._result!==null){let result=this._result.filter(val=>val!==EMPTY_OBJECT);fulfill(this.promise,result);this._result=null;}}_setResultAt(state,i,value,firstPass){if(firstPass){this._result[i]=value;let val,succeeded=true;try{val=this._mapFn(value,i);}catch(error){succeeded=false;this._settledAt(REJECTED,i,error,false);}if(succeeded){this._eachEntry(val,i,false);}}else{this._remaining--;if(!value){this._result[i]=EMPTY_OBJECT;}}}}/**\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          */function filter$1(promises,filterFn,label){if(typeof filterFn!=='function'){return Promise$2.reject(new TypeError(\"filter expects function as a second argument\"),label);}return Promise$2.resolve(promises,label).then(function(promises){if(!Array.isArray(promises)){throw new TypeError(\"filter must be called with an array\");}return new FilterEnumerator(Promise$2,promises,filterFn,label).promise;});}let len=0;let vertxNext;function asap(callback,arg){queue[len]=callback;queue[len+1]=arg;len+=2;if(len===2){// 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.\nscheduleFlush();}}const browserWindow=typeof window!=='undefined'?window:undefined;const browserGlobal=browserWindow||{};const BrowserMutationObserver=browserGlobal.MutationObserver||browserGlobal.WebKitMutationObserver;const isNode$1=typeof self==='undefined'&&typeof process!=='undefined'&&{}.toString.call(process)==='[object process]';// test for web worker but not in IE10\nconst isWorker=typeof Uint8ClampedArray!=='undefined'&&typeof importScripts!=='undefined'&&typeof MessageChannel!=='undefined';// node\nfunction useNextTick(){let nextTick=process.nextTick;// node version 0.10.x displays a deprecation warning when nextTick is used recursively\n// setImmediate should be used instead instead\nlet version=process.versions.node.match(/^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\*|\\d+)$/);if(Array.isArray(version)&&version[1]==='0'&&version[2]==='10'){nextTick=setImmediate;}return()=>nextTick(flush);}// vertx\nfunction useVertxTimer(){if(typeof vertxNext!=='undefined'){return function(){vertxNext(flush);};}return useSetTimeout();}function useMutationObserver(){let iterations=0;let observer=new BrowserMutationObserver(flush);let node=document.createTextNode('');observer.observe(node,{characterData:true});return()=>node.data=iterations=++iterations%2;}// web worker\nfunction useMessageChannel(){let channel=new MessageChannel();channel.port1.onmessage=flush;return()=>channel.port2.postMessage(0);}function useSetTimeout(){return()=>setTimeout(flush,1);}const queue=new Array(1000);function flush(){for(let i=0;i<len;i+=2){let callback=queue[i];let arg=queue[i+1];callback(arg);queue[i]=undefined;queue[i+1]=undefined;}len=0;}function attemptVertex(){try{const vertx=Function('return this')().require('vertx');vertxNext=vertx.runOnLoop||vertx.runOnContext;return useVertxTimer();}catch(e){return useSetTimeout();}}let scheduleFlush;// Decide what async method to use to triggering processing of queued callbacks:\nif(isNode$1){scheduleFlush=useNextTick();}else if(BrowserMutationObserver){scheduleFlush=useMutationObserver();}else if(isWorker){scheduleFlush=useMessageChannel();}else if(browserWindow===undefined&&typeof require==='function'){scheduleFlush=attemptVertex();}else{scheduleFlush=useSetTimeout();}// defaults\nconfig.async=asap;config.after=cb=>setTimeout(cb,0);const cast=resolve$2;const async=(callback,arg)=>config.async(callback,arg);function on$2(){config.on(...arguments);}function off(){config.off(...arguments);}// Set up instrumentation through `window.__PROMISE_INTRUMENTATION__`\nif(typeof window!=='undefined'&&typeof window['__PROMISE_INSTRUMENTATION__']==='object'){let callbacks=window['__PROMISE_INSTRUMENTATION__'];configure('instrument',true);for(let eventName in callbacks){if(callbacks.hasOwnProperty(eventName)){on$2(eventName,callbacks[eventName]);}}}// the default export here is for backwards compat:\n//   https://github.com/tildeio/rsvp.js/issues/434\nconst RSVP={asap,cast,Promise:Promise$2,EventTarget,all,allSettled,race,hash:hash$2,hashSettled,rethrow,defer,denodeify,configure,on:on$2,off,resolve:resolve$2,reject,map:map$2,async,filter:filter$1};const rsvp=/*#__PURE__*/Object.defineProperty({__proto__:null,EventTarget,Promise:Promise$2,all,allSettled,asap,async,cast,configure,default:RSVP,defer,denodeify,filter:filter$1,hash:hash$2,hashSettled,map:map$2,off,on:on$2,race,reject,resolve:resolve$2,rethrow},Symbol.toStringTag,{value:'Module'});configure('async',(callback,promise)=>{_backburner.schedule('actions',null,callback,promise);});configure('after',cb=>{_backburner.schedule(_rsvpErrorQueue,null,cb);});on$2('error',onerrorDefault);function onerrorDefault(reason){let error=errorFor(reason);if(error){let overrideDispatch=getDispatchOverride();if(overrideDispatch){overrideDispatch(error);}else{throw error;}}}function errorFor(reason){if(!reason)return;let withErrorThrown=reason;if(withErrorThrown.errorThrown){return unwrapErrorThrown(withErrorThrown);}let withName=reason;if(withName.name==='UnrecognizedURLError'){assert$1(`The URL '${withName.message}' did not match any routes in your application`,false);// @ts-expect-error We'll hit this if the assert is stripped\nreturn;}if(reason.name==='TransitionAborted'){return;}return reason;}function unwrapErrorThrown(reason){let error=reason.errorThrown;if(typeof error==='string'){error=new Error(error);}Object.defineProperty(error,'__reason_with_error_thrown__',{value:reason,enumerable:false});return error;}const emberinternalsRuntimeLibExtRsvp=/*#__PURE__*/Object.defineProperty({__proto__:null,default:rsvp,onerrorDefault},Symbol.toStringTag,{value:'Module'});// just for side effect of extending Ember.RSVP\nconst emberinternalsRuntimeIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,ActionHandler,Comparable,ContainerProxyMixin,MutableEnumerable,RSVP:rsvp,RegistryProxyMixin,TargetActionSupport,_ProxyMixin:ProxyMixin,_contentFor:contentFor,onerrorDefault},Symbol.toStringTag,{value:'Module'});const{isArray:isArray$3}=Array;/**\n           @module @ember/array\n          *//**\n           Forces the passed object to be part of an array. If the object is already\n           an array, it will return the object. Otherwise, it will add the object to\n           an array. If object is `null` or `undefined`, it will return an empty array.\n\n           ```javascript\n           import { makeArray } from '@ember/array';\n           import ArrayProxy from '@ember/array/proxy';\n\n           makeArray();            // []\n           makeArray(null);        // []\n           makeArray(undefined);   // []\n           makeArray('lindsay');   // ['lindsay']\n           makeArray([1, 2, 42]);  // [1, 2, 42]\n\n           let proxy = ArrayProxy.create({ content: [] });\n\n           makeArray(proxy) === proxy;  // false\n           ```\n\n           @method makeArray\n           @static\n           @for @ember/array\n           @param {Object} obj the object\n           @return {Array}\n           @private\n           */function makeArray(obj){if(obj===null||obj===undefined){return[];}return isArray$3(obj)?obj:[obj];}const emberArrayLibMakeArray=/*#__PURE__*/Object.defineProperty({__proto__:null,default:makeArray},Symbol.toStringTag,{value:'Module'});/**\n            @module @ember/object/core\n          */// TODO: Is this correct?\nfunction hasSetUnknownProperty(val){return typeof val==='object'&&val!==null&&typeof val.setUnknownProperty==='function';}function hasToStringExtension(val){return typeof val==='object'&&val!==null&&typeof val.toStringExtension==='function';}const reopen=Mixin.prototype.reopen;const wasApplied=new WeakSet();const prototypeMixinMap=new WeakMap();const initCalled=new WeakSet();// only used in debug builds to enable the proxy trap\nconst destroyCalled=new Set();function ensureDestroyCalled(instance){if(!destroyCalled.has(instance)){instance.destroy();}}function initialize(obj,properties){let m=meta(obj);if(properties!==undefined){!(typeof properties==='object'&&properties!==null)&&assert$1('EmberObject.create only accepts objects.',typeof properties==='object'&&properties!==null);!!(properties instanceof Mixin)&&assert$1('EmberObject.create no longer supports mixing in other '+'definitions, use .extend & .create separately instead.',!(properties instanceof Mixin));let concatenatedProperties=obj.concatenatedProperties;let mergedProperties=obj.mergedProperties;let keyNames=Object.keys(properties);for(let keyName of keyNames){// SAFETY: this cast as a Record is safe because all object types can be\n// indexed in JS, and we explicitly type it as returning `unknown`, so the\n// result *must* be checked below.\nlet value=properties[keyName];!!isClassicDecorator(value)&&assert$1('EmberObject.create no longer supports defining computed '+'properties. Define computed properties using extend() or reopen() '+'before calling create().',!isClassicDecorator(value));!!(typeof value==='function'&&value.toString().indexOf('._super')!==-1)&&assert$1('EmberObject.create no longer supports defining methods that call _super.',!(typeof value==='function'&&value.toString().indexOf('._super')!==-1));!!(keyName==='actions'&&ActionHandler.detect(obj))&&assert$1('`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)));let possibleDesc=descriptorForProperty(obj,keyName,m);let isDescriptor=possibleDesc!==undefined;if(!isDescriptor){if(concatenatedProperties!==undefined&&concatenatedProperties.length>0&&concatenatedProperties.includes(keyName)){let baseValue=obj[keyName];if(baseValue){value=makeArray(baseValue).concat(value);}else{value=makeArray(value);}}if(mergedProperties!==undefined&&mergedProperties.length>0&&mergedProperties.includes(keyName)){let baseValue=obj[keyName];value=Object.assign({},baseValue,value);}}if(isDescriptor){possibleDesc.set(obj,keyName,value);}else if(hasSetUnknownProperty(obj)&&!(keyName in obj)){obj.setUnknownProperty(keyName,value);}else{{defineProperty(obj,keyName,null,value,m);// setup mandatory setter\n}}}}// using DEBUG here to avoid the extraneous variable when not needed\n{initCalled.add(obj);}obj.init(properties);m.unsetInitializing();let observerEvents=m.observerEvents();if(observerEvents!==undefined){for(let i=0;i<observerEvents.length;i++){activateObserver(obj,observerEvents[i].event,observerEvents[i].sync);}}sendEvent(obj,'init',undefined,undefined,m);}/**\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          */class CoreObject{constructor(owner){/** @internal */_defineProperty(this,OWNER$1,void 0);this[OWNER$1]=owner;// prepare prototype...\nthis.constructor.proto();let self;if(hasUnknownProperty(this)){let messageFor=(obj,property)=>{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.`;};/* globals Proxy Reflect */self=new Proxy(this,{get(target,property,receiver){if(property===PROXY_CONTENT){return target;}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){return Reflect.get(target,property,receiver);}let value=target.unknownProperty.call(receiver,property);if(typeof value!=='function'){!(value===undefined||value===null)&&assert$1(messageFor(receiver,property),value===undefined||value===null);}}});}else{self=this;}const destroyable=self;registerDestructor$1(self,ensureDestroyCalled,true);registerDestructor$1(self,()=>destroyable.willDestroy());// disable chains\nlet m=meta(self);m.setInitializing();// only return when in debug builds and `self` is the proxy created above\nif(self!==this){return self;}}reopen(){for(var _len29=arguments.length,args=new Array(_len29),_key30=0;_key30<_len29;_key30++){args[_key30]=arguments[_key30];}applyMixin(this,args);return this;}/**\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            */init(_properties){}/**\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              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              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            */get isDestroyed(){return isDestroyed(this);}set isDestroyed(_value){assert$1(`You cannot set \\`${this}.isDestroyed\\` directly, please use \\`.destroy()\\`.`,false);}/**\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            */get isDestroying(){return isDestroying(this);}set isDestroying(_value){assert$1(`You cannot set \\`${this}.isDestroying\\` directly, please use \\`.destroy()\\`.`,false);}/**\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            */destroy(){// Used to ensure that manually calling `.destroy()` does not immediately call destroy again\ndestroyCalled.add(this);try{destroy(this);}finally{destroyCalled.delete(this);}return this;}/**\n              Override to implement teardown.\n               @method willDestroy\n              @public\n            */willDestroy(){}/**\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            */toString(){let extension=hasToStringExtension(this)?`:${this.toStringExtension()}`:'';return`<${getFactoryFor(this)||'(unknown)'}:${guidFor(this)}${extension}>`;}/**\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            */static extend(){let Class=class extends this{};for(var _len30=arguments.length,mixins=new Array(_len30),_key31=0;_key31<_len30;_key31++){mixins[_key31]=arguments[_key31];}reopen.apply(Class.PrototypeMixin,mixins);return Class;}/**\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            */static create(){for(var _len31=arguments.length,args=new Array(_len31),_key32=0;_key32<_len31;_key32++){args[_key32]=arguments[_key32];}let props=args[0];let instance;if(props!==undefined){instance=new this(getOwner$2(props));// TODO(SAFETY): at present, we cannot actually rely on this being set,\n// because a number of acceptance tests are (incorrectly? Unclear!)\n// relying on the ability to run through this path with `factory` being\n// `undefined`. It's *possible* that actually means that the type for\n// `setFactoryFor()` should allow `undefined`, but we typed it the other\n// way for good reason! Accordingly, this *casts* `factory`, and the\n// commented-out `assert()` is here in the hope that we can enable it\n// after addressing tests *or* updating the call signature here.\nlet factory=getFactoryFor(props);// assert(`missing factory when creating object ${instance}`, factory !== undefined);\nsetFactoryFor(instance,factory);}else{instance=new this();}if(args.length<=1){initialize(instance,props);}else{initialize(instance,flattenProps.apply(this,args));}// SAFETY: The `initialize` call is responsible to merge the prototype chain\n// so that this holds.\nreturn instance;}/**\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            */static reopen(){this.willReopen();for(var _len32=arguments.length,args=new Array(_len32),_key33=0;_key33<_len32;_key33++){args[_key33]=arguments[_key33];}reopen.apply(this.PrototypeMixin,args);return this;}static willReopen(){let p=this.prototype;if(wasApplied.has(p)){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.\nif(prototypeMixinMap.has(this)){prototypeMixinMap.set(this,Mixin.create(this.PrototypeMixin));}}}/**\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            */static reopenClass(){for(var _len33=arguments.length,mixins=new Array(_len33),_key34=0;_key34<_len33;_key34++){mixins[_key34]=arguments[_key34];}applyMixin(this,mixins);return this;}static detect(obj){if('function'!==typeof obj){return false;}while(obj){if(obj===this){return true;}obj=obj.superclass;}return false;}static detectInstance(obj){return obj instanceof this;}/**\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            */static metaForProperty(key){let proto=this.proto();// ensure prototype is initialized\nlet possibleDesc=descriptorForProperty(proto,key);!(possibleDesc!==undefined)&&assert$1(`metaForProperty() could not find a computed property with key '${key}'.`,possibleDesc!==undefined);return possibleDesc._meta||{};}/**\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            */static eachComputedProperty(callback){let binding=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this;this.proto();// ensure prototype is initialized\nlet empty={};meta(this.prototype).forEachDescriptors((name,descriptor)=>{if(descriptor.enumerable){let meta=descriptor._meta||empty;callback.call(binding,name,meta);}});}static get PrototypeMixin(){let prototypeMixin=prototypeMixinMap.get(this);if(prototypeMixin===undefined){prototypeMixin=Mixin.create();prototypeMixin.ownerConstructor=this;prototypeMixinMap.set(this,prototypeMixin);}return prototypeMixin;}static get superclass(){let c=Object.getPrototypeOf(this);return c!==Function.prototype?c:undefined;}static proto(){let p=this.prototype;if(!wasApplied.has(p)){wasApplied.add(p);let parent=this.superclass;if(parent){parent.proto();}// If the prototype mixin exists, apply it. In the case of native classes,\n// it will not exist (unless the class has been reopened).\nif(prototypeMixinMap.has(this)){this.PrototypeMixin.apply(p);}}return p;}static toString(){return`<${getFactoryFor(this)||'(unknown)'}:constructor>`;}}_defineProperty(CoreObject,\"isClass\",true);_defineProperty(CoreObject,\"isMethod\",false);_defineProperty(CoreObject,\"_onLookup\",void 0);_defineProperty(CoreObject,\"_lazyInjections\",void 0);function flattenProps(){let initProperties={};for(var _len34=arguments.length,props=new Array(_len34),_key35=0;_key35<_len34;_key35++){props[_key35]=arguments[_key35];}for(let properties of props){!!(properties instanceof Mixin)&&assert$1('EmberObject.create no longer supports mixing in other '+'definitions, use .extend & .create separately instead.',!(properties instanceof Mixin));let keyNames=Object.keys(properties);for(let j=0,k=keyNames.length;j<k;j++){let keyName=keyNames[j];let value=properties[keyName];initProperties[keyName]=value;}}return initProperties;}{/**\n              Provides lookup-time type validation for injected properties.\n               @private\n              @method _onLookup\n            */CoreObject._onLookup=function injectedPropertyAssertion(debugContainerKey){let[type]=debugContainerKey.split(':');let proto=this.proto();for(let key in proto){let desc=descriptorForProperty(proto,key);if(desc&&DEBUG_INJECTION_FUNCTIONS.has(desc._getter)){!(type==='controller'||DEBUG_INJECTION_FUNCTIONS.get(desc._getter).type!=='controller')&&assert$1(`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              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            */CoreObject._lazyInjections=function(){let injections={};let proto=this.proto();let key;let desc;for(key in proto){desc=descriptorForProperty(proto,key);if(desc&&DEBUG_INJECTION_FUNCTIONS.has(desc._getter)){let{namespace,source,type,name}=DEBUG_INJECTION_FUNCTIONS.get(desc._getter);injections[key]={namespace,source,specifier:`${type}:${name||key}`};}}return injections;};}const emberObjectCore=/*#__PURE__*/Object.defineProperty({__proto__:null,default:CoreObject},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/object/observable\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          */const Observable=Mixin.create({get(keyName){return get$2(this,keyName);},getProperties(){for(var _len35=arguments.length,args=new Array(_len35),_key36=0;_key36<_len35;_key36++){args[_key36]=arguments[_key36];}return getProperties(this,...args);},set(keyName,value){return set(this,keyName,value);},setProperties(hash){return setProperties(this,hash);},/**\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            */beginPropertyChanges(){beginPropertyChanges();return this;},/**\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            */endPropertyChanges(){endPropertyChanges();return this;},notifyPropertyChange(keyName){notifyPropertyChange(this,keyName);return this;},addObserver(key,target,method,sync){addObserver(this,key,target,method,sync);return this;},removeObserver(key,target,method,sync){removeObserver(this,key,target,method,sync);return this;},/**\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            */hasObserverFor(key){return hasListeners(this,`${key}:change`);},incrementProperty(keyName){let increment=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;!(!isNaN(parseFloat(String(increment)))&&isFinite(increment))&&assert$1('Must pass a numeric value to incrementProperty',!isNaN(parseFloat(String(increment)))&&isFinite(increment));return set(this,keyName,(parseFloat(get$2(this,keyName))||0)+increment);},decrementProperty(keyName){let decrement=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;!((typeof decrement==='number'||!isNaN(parseFloat(decrement)))&&isFinite(decrement))&&assert$1('Must pass a numeric value to decrementProperty',(typeof decrement==='number'||!isNaN(parseFloat(decrement)))&&isFinite(decrement));return set(this,keyName,(get$2(this,keyName)||0)-decrement);},toggleProperty(keyName){return set(this,keyName,!get$2(this,keyName));},cacheFor(keyName){let meta=peekMeta(this);return meta!==null?meta.valueFor(keyName):undefined;}});const emberObjectObservable=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Observable},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/object\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          */// eslint-disable-next-line @typescript-eslint/no-empty-interface\nclass EmberObject extends CoreObject.extend(Observable){get _debugContainerKey(){let factory=getFactoryFor(this);return factory!==undefined&&factory.fullName;}}/**\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 { tracked } from '@glimmer/tracking';\n            import { action } from '@ember/object';\n\n            export default class Tooltip extends Component {\n              @tracked isShowing = false;\n\n              @action\n              toggleShowing() {\n                this.isShowing = !this.isShowing;\n              }\n            }\n            ```\n            ```hbs\n            <!-- template.hbs -->\n            <button {{on \"click\" 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            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            ```js\n            import Component from '@ember/component';\n            import { tracked } from '@glimmer/tracking';\n            import { action } 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              @tracked isShowing = false;\n\n              @action\n              toggleShowing() {\n                this.isShowing = !this.isShowing;\n              }\n            }\n            ```\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          */const BINDINGS_MAP=new WeakMap();function hasProto(obj){return obj!=null&&obj.constructor!==undefined&&typeof obj.constructor.proto==='function';}function setupAction(target,key,actionFn){if(hasProto(target)){target.constructor.proto();}if(!Object.prototype.hasOwnProperty.call(target,'actions')){let parentActions=target.actions;// we need to assign because of the way mixins copy actions down when inheriting\ntarget.actions=parentActions?Object.assign({},parentActions):{};}!(target.actions!=null)&&assert$1(\"[BUG] Somehow the target doesn't have actions!\",target.actions!=null);target.actions[key]=actionFn;return{get(){let bindings=BINDINGS_MAP.get(this);if(bindings===undefined){bindings=new Map();BINDINGS_MAP.set(this,bindings);}let fn=bindings.get(actionFn);if(fn===undefined){fn=actionFn.bind(this);bindings.set(actionFn,fn);}return fn;}};}function action$1(){let actionFn;for(var _len36=arguments.length,args=new Array(_len36),_key37=0;_key37<_len36;_key37++){args[_key37]=arguments[_key37];}if(!isElementDescriptor(args)){actionFn=args[0];let decorator=function(target,key,_desc,_meta,isClassicDecorator){!isClassicDecorator&&assert$1('The @action decorator may only be passed a method when used in classic classes. You should decorate methods directly in native classes',isClassicDecorator);!(typeof actionFn==='function')&&assert$1('The action() decorator must be passed a method when used in classic classes',typeof actionFn==='function');return setupAction(target,key,actionFn);};setClassicDecorator(decorator);return decorator;}let[target,key,desc]=args;actionFn=desc===null||desc===void 0?void 0:desc.value;!(typeof actionFn==='function')&&assert$1('The @action decorator must be applied to methods when used in native classes',typeof actionFn==='function');// SAFETY: TS types are weird with decorators. This should work.\nreturn setupAction(target,key,actionFn);}// SAFETY: TS types are weird with decorators. This should work.\nsetClassicDecorator(action$1);// ..........................................................\n// OBSERVER HELPER\n//\n/**\n            Specify a method that observes property changes.\n\n            ```javascript\n            import EmberObject from '@ember/object';\n            import { observer } from '@ember/object';\n\n            export default EmberObject.extend({\n              valueObserver: observer('value', function() {\n                // Executes whenever the \"value\" property changes\n              })\n            });\n            ```\n\n            Also available as `Function.prototype.observes` if prototype extensions are\n            enabled.\n\n            @method observer\n            @for @ember/object\n            @param {String} propertyNames*\n            @param {Function} func\n            @return func\n            @public\n            @static\n          */function observer(){for(var _len37=arguments.length,args=new Array(_len37),_key38=0;_key38<_len37;_key38++){args[_key38]=arguments[_key38];}let funcOrDef=args.pop();!(typeof funcOrDef==='function'||typeof funcOrDef==='object'&&funcOrDef!==null)&&assert$1('observer must be provided a function or an observer definition',typeof funcOrDef==='function'||typeof funcOrDef==='object'&&funcOrDef!==null);let func;let dependentKeys;let sync;if(typeof funcOrDef==='function'){func=funcOrDef;dependentKeys=args;sync=!ENV._DEFAULT_ASYNC_OBSERVERS;}else{func=funcOrDef.fn;dependentKeys=funcOrDef.dependentKeys;sync=funcOrDef.sync;}!(typeof func==='function')&&assert$1('observer called without a function',typeof func==='function');!(Array.isArray(dependentKeys)&&dependentKeys.length>0&&dependentKeys.every(p=>typeof p==='string'&&Boolean(p.length)))&&assert$1('observer called without valid path',Array.isArray(dependentKeys)&&dependentKeys.length>0&&dependentKeys.every(p=>typeof p==='string'&&Boolean(p.length)));!(typeof sync==='boolean')&&assert$1('observer called without sync',typeof sync==='boolean');let paths=[];for(let dependentKey of dependentKeys){expandProperties(dependentKey,path=>paths.push(path));}setObservers(func,{paths,sync});return func;}const emberObjectIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,action:action$1,computed,default:EmberObject,defineProperty,get:get$2,getProperties,notifyPropertyChange,observer,set,setProperties,trySet},Symbol.toStringTag,{value:'Module'});/**\n           * Default component template, which is a plain yield\n           */const DEFAULT_TEMPLATE_BLOCK=[[[opcodes.Yield,1,null]],[\"&default\"],!1,[]],DEFAULT_TEMPLATE={// random uuid\nid:\"1b32f5c2-7623-43d6-a0ad-9672898920a1\",moduleName:\"__default__.hbs\",block:JSON.stringify(DEFAULT_TEMPLATE_BLOCK),scope:null,isStrictMode:!0},WELL_KNOWN_EMPTY_ARRAY=Object.freeze([]),STARTER_CONSTANTS=constants(WELL_KNOWN_EMPTY_ARRAY),WELL_KNOWN_EMPTY_ARRAY_POSITION=STARTER_CONSTANTS.indexOf(WELL_KNOWN_EMPTY_ARRAY);class CompileTimeConstantImpl{constructor(){// `0` means NULL\n_defineProperty(this,\"values\",STARTER_CONSTANTS.slice());_defineProperty(this,\"indexMap\",new Map(this.values.map((value,index)=>[value,index])));}value(value){let indexMap=this.indexMap,index=indexMap.get(value);return void 0===index&&(index=this.values.push(value)-1,indexMap.set(value,index)),index;}array(values){if(0===values.length)return WELL_KNOWN_EMPTY_ARRAY_POSITION;let handles=new Array(values.length);for(let i=0;i<values.length;i++)handles[i]=this.value(values[i]);return this.value(handles);}toPool(){return this.values;}}class RuntimeConstantsImpl{constructor(pool){_defineProperty(this,\"values\",void 0);this.values=pool;}getValue(handle){return this.values[handle];}getArray(value){let handles=this.getValue(value),reified=new Array(handles.length);for(const[i,n]of enumerate(handles))reified[i]=this.getValue(n);return reified;}}class ConstantsImpl extends CompileTimeConstantImpl{constructor(){super(...arguments);_defineProperty(this,\"reifiedArrs\",{[WELL_KNOWN_EMPTY_ARRAY_POSITION]:WELL_KNOWN_EMPTY_ARRAY});_defineProperty(this,\"defaultTemplate\",templateFactory(DEFAULT_TEMPLATE)());// Used for tests and debugging purposes, and to be able to analyze large apps\n// This is why it's enabled even in production\n_defineProperty(this,\"helperDefinitionCount\",0);_defineProperty(this,\"modifierDefinitionCount\",0);_defineProperty(this,\"componentDefinitionCount\",0);_defineProperty(this,\"helperDefinitionCache\",new WeakMap());_defineProperty(this,\"modifierDefinitionCache\",new WeakMap());_defineProperty(this,\"componentDefinitionCache\",new WeakMap());}helper(definitionState){let _resolvedName=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;let isOptional=arguments.length>2?arguments[2]:undefined;let handle=this.helperDefinitionCache.get(definitionState);if(void 0===handle){let managerOrHelper=getInternalHelperManager(definitionState,isOptional);if(null===managerOrHelper)return this.helperDefinitionCache.set(definitionState,null),null;debugAssert(managerOrHelper,\"BUG: expected manager or helper\");let helper=\"function\"==typeof managerOrHelper?managerOrHelper:managerOrHelper.getHelper(definitionState);handle=this.value(helper),this.helperDefinitionCache.set(definitionState,handle),this.helperDefinitionCount++;}return handle;}modifier(definitionState){let resolvedName=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;let isOptional=arguments.length>2?arguments[2]:undefined;let handle=this.modifierDefinitionCache.get(definitionState);if(void 0===handle){let manager=getInternalModifierManager(definitionState,isOptional);if(null===manager)return this.modifierDefinitionCache.set(definitionState,null),null;let definition={resolvedName:resolvedName,manager:manager,state:definitionState};handle=this.value(definition),this.modifierDefinitionCache.set(definitionState,handle),this.modifierDefinitionCount++;}return handle;}component(definitionState,owner,isOptional){let definition=this.componentDefinitionCache.get(definitionState);if(void 0===definition){var _templateFactory;let manager=getInternalComponentManager(definitionState,isOptional);if(null===manager)return this.componentDefinitionCache.set(definitionState,null),null;debugAssert(manager,\"BUG: expected manager\");let template,capabilities=capabilityFlagsFrom(manager.getCapabilities(definitionState)),templateFactory=getComponentTemplate(definitionState),compilable=null;template=managerHasCapability(manager,capabilities,InternalComponentCapabilities.dynamicLayout)?templateFactory===null||templateFactory===void 0?void 0:templateFactory(owner):(_templateFactory=templateFactory===null||templateFactory===void 0?void 0:templateFactory(owner))!==null&&_templateFactory!==void 0?_templateFactory:this.defaultTemplate,void 0!==template&&(template=unwrapTemplate(template),compilable=managerHasCapability(manager,capabilities,InternalComponentCapabilities.wrapped)?template.asWrappedLayout():template.asLayout()),definition={resolvedName:null,handle:-1,// replaced momentarily\nmanager:manager,capabilities:capabilities,state:definitionState,compilable:compilable},definition.handle=this.value(definition),this.componentDefinitionCache.set(definitionState,definition),this.componentDefinitionCount++;}return definition;}resolvedComponent(resolvedDefinition,resolvedName){let definition=this.componentDefinitionCache.get(resolvedDefinition);if(void 0===definition){var _template;let{manager:manager,state:state,template:template}=resolvedDefinition,capabilities=capabilityFlagsFrom(manager.getCapabilities(resolvedDefinition)),compilable=null;managerHasCapability(manager,capabilities,InternalComponentCapabilities.dynamicLayout)||(template=(_template=template)!==null&&_template!==void 0?_template:this.defaultTemplate),null!==template&&(template=unwrapTemplate(template),compilable=managerHasCapability(manager,capabilities,InternalComponentCapabilities.wrapped)?template.asWrappedLayout():template.asLayout()),definition={resolvedName:resolvedName,handle:-1,// replaced momentarily\nmanager:manager,capabilities:capabilities,state:state,compilable:compilable},definition.handle=this.value(definition),this.componentDefinitionCache.set(resolvedDefinition,definition),this.componentDefinitionCount++;}return expect(definition,\"BUG: resolved component definitions cannot be null\");}getValue(index){return debugAssert(index>=0,`cannot get value for handle: ${index}`),this.values[index];}getArray(index){let reifiedArrs=this.reifiedArrs,reified=reifiedArrs[index];if(void 0===reified){let names=this.getValue(index);reified=new Array(names.length);for(const[i,name]of enumerate(names))reified[i]=this.getValue(name);reifiedArrs[index]=reified;}return reified;}}class RuntimeOpImpl{constructor(heap){_defineProperty(this,\"offset\",0);this.heap=heap;}get size(){return 1+((this.heap.getbyaddr(this.offset)&OPERAND_LEN_MASK)>>ARG_SHIFT);}get isMachine(){return this.heap.getbyaddr(this.offset)&MACHINE_MASK?1:0;}get type(){return this.heap.getbyaddr(this.offset)&TYPE_MASK;}get op1(){return this.heap.getbyaddr(this.offset+1);}get op2(){return this.heap.getbyaddr(this.offset+2);}get op3(){return this.heap.getbyaddr(this.offset+3);}}var TableSlotState=function(TableSlotState){return TableSlotState[TableSlotState.Allocated=0]=\"Allocated\",TableSlotState[TableSlotState.Freed=1]=\"Freed\",TableSlotState[TableSlotState.Purged=2]=\"Purged\",TableSlotState[TableSlotState.Pointer=3]=\"Pointer\",TableSlotState;}(TableSlotState||{});class RuntimeHeapImpl{constructor(serializedHeap){_defineProperty(this,\"heap\",void 0);_defineProperty(this,\"table\",void 0);let{buffer:buffer,table:table}=serializedHeap;this.heap=new Int32Array(buffer),this.table=table;}// 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.\ngetaddr(handle){return unwrap$1(this.table[handle]);}getbyaddr(address){return expect(this.heap[address],\"Access memory out of bounds of the heap\");}sizeof(handle){return this.table,-1;}}function hydrateHeap(serializedHeap){return new RuntimeHeapImpl(serializedHeap);}/**\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           */class HeapImpl{constructor(){_defineProperty(this,\"offset\",0);_defineProperty(this,\"heap\",void 0);_defineProperty(this,\"handleTable\",void 0);_defineProperty(this,\"handleState\",void 0);_defineProperty(this,\"handle\",0);this.heap=new Int32Array(1048576),this.handleTable=[],this.handleState=[];}pushRaw(value){this.sizeCheck(),this.heap[this.offset++]=value;}pushOp(item){this.pushRaw(item);}pushMachine(item){this.pushRaw(item|MACHINE_MASK);}sizeCheck(){let{heap:heap}=this;if(this.offset===this.heap.length){let newHeap=new Int32Array(heap.length+1048576);newHeap.set(heap,0),this.heap=newHeap;}}getbyaddr(address){return unwrap$1(this.heap[address]);}setbyaddr(address,value){this.heap[address]=value;}malloc(){// push offset, info, size\nreturn this.handleTable.push(this.offset),this.handleTable.length-1;}finishMalloc(handle){}size(){return this.offset;}// 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.\ngetaddr(handle){return unwrap$1(this.handleTable[handle]);}sizeof(handle){return this.handleTable,-1;}free(handle){this.handleState[handle]=TableSlotState.Freed;}/**\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            */compact(){let compactedSize=0,{handleTable:handleTable,handleState:handleState,heap:heap}=this;for(let i=0;i<length;i++){let offset=unwrap$1(handleTable[i]),size=unwrap$1(handleTable[i+1])-unwrap$1(offset),state=handleState[i];if(state!==TableSlotState.Purged)if(state===TableSlotState.Freed)// transition to \"already freed\" aka \"purged\"\n// a good improvement would be to reuse\n// these slots\nhandleState[i]=TableSlotState.Purged,compactedSize+=size;else if(state===TableSlotState.Allocated){for(let j=offset;j<=i+size;j++)heap[j-compactedSize]=unwrap$1(heap[j]);handleTable[i]=offset-compactedSize;}else state===TableSlotState.Pointer&&(handleTable[i]=offset-compactedSize);}this.offset=this.offset-compactedSize;}capture(){let offset=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.offset;// Only called in eager mode\nlet buffer=function(arr,start,end){if(void 0!==arr.slice)return arr.slice(start,end);let ret=new Int32Array(end);for(;start<end;start++)ret[start]=unwrap$1(arr[start]);return ret;}(this.heap,0,offset).buffer;return{handle:this.handle,table:this.handleTable,buffer:buffer};}}class RuntimeProgramImpl{constructor(constants,heap){_defineProperty(this,\"_opcode\",void 0);this.constants=constants,this.heap=heap,this._opcode=new RuntimeOpImpl(this.heap);}opcode(offset){return this._opcode.offset=offset,this._opcode;}}function artifacts(){return{constants:new ConstantsImpl(),heap:new HeapImpl()};}const glimmerProgram=/*#__PURE__*/Object.defineProperty({__proto__:null,CompileTimeConstantImpl,ConstantsImpl,HeapImpl,RuntimeConstantsImpl,RuntimeHeapImpl,RuntimeOpImpl,RuntimeProgramImpl,artifacts,hydrateHeap},Symbol.toStringTag,{value:'Module'});/* This file is generated by build/debug.js */new Array(Op.Size).fill(null),new Array(Op.Size).fill(null);class DynamicScopeImpl{constructor(bucket){_defineProperty(this,\"bucket\",void 0);this.bucket=bucket?assign({},bucket):{};}get(key){return unwrap$1(this.bucket[key]);}set(key,reference){return this.bucket[key]=reference;}child(){return new DynamicScopeImpl(this.bucket);}}class PartialScopeImpl{static root(self){let size=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;let owner=arguments.length>2?arguments[2]:undefined;let refs=new Array(size+1).fill(UNDEFINED_REFERENCE);return new PartialScopeImpl(refs,owner,null,null,null).init({self:self});}static sized(){let size=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let owner=arguments.length>1?arguments[1]:undefined;let refs=new Array(size+1).fill(UNDEFINED_REFERENCE);return new PartialScopeImpl(refs,owner,null,null,null);}constructor(// the 0th slot is `self`\nslots,owner,callerScope,// named arguments and blocks passed to a layout that uses eval\nevalScope,// locals in scope when the partial was invoked\npartialMap){this.slots=slots,this.owner=owner,this.callerScope=callerScope,this.evalScope=evalScope,this.partialMap=partialMap;}init(_ref57){let{self:self}=_ref57;return this.slots[0]=self,this;}getSelf(){return this.get(0);}getSymbol(symbol){return this.get(symbol);}getBlock(symbol){let block=this.get(symbol);return block===UNDEFINED_REFERENCE?null:block;}getEvalScope(){return this.evalScope;}getPartialMap(){return this.partialMap;}bind(symbol,value){this.set(symbol,value);}bindSelf(self){this.set(0,self);}bindSymbol(symbol,value){this.set(symbol,value);}bindBlock(symbol,value){this.set(symbol,value);}bindEvalScope(map){this.evalScope=map;}bindPartialMap(map){this.partialMap=map;}bindCallerScope(scope){this.callerScope=scope;}getCallerScope(){return this.callerScope;}child(){return new PartialScopeImpl(this.slots.slice(),this.owner,this.callerScope,this.evalScope,this.partialMap);}get(index){if(index>=this.slots.length)throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);return this.slots[index];}set(index,value){if(index>=this.slots.length)throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);this.slots[index]=value;}}// These symbols represent \"friend\" properties that are used inside of\n// the VM in other classes, but are not intended to be a part of\n// Glimmer's API.\nconst INNER_VM=Symbol(\"INNER_VM\"),DESTROYABLE_STACK=Symbol(\"DESTROYABLE_STACK\"),STACKS=Symbol(\"STACKS\"),REGISTERS=Symbol(\"REGISTERS\"),HEAP=Symbol(\"HEAP\"),CONSTANTS=Symbol(\"CONSTANTS\"),ARGS$1=Symbol(\"ARGS\");class CursorImpl{constructor(element,nextSibling){this.element=element,this.nextSibling=nextSibling;}}class ConcreteBounds{constructor(parentNode,first,last){this.parentNode=parentNode,this.first=first,this.last=last;}parentElement(){return this.parentNode;}firstNode(){return this.first;}lastNode(){return this.last;}}function move(bounds,reference){let parent=bounds.parentElement(),first=bounds.firstNode(),last=bounds.lastNode(),current=first;// eslint-disable-next-line no-constant-condition\nfor(;;){let next=current.nextSibling;if(parent.insertBefore(current,reference),current===last)return next;current=expect(next,\"invalid bounds\");}}function clear(bounds){let parent=bounds.parentElement(),first=bounds.firstNode(),last=bounds.lastNode(),current=first;// eslint-disable-next-line no-constant-condition\nfor(;;){let next=current.nextSibling;if(parent.removeChild(current),current===last)return next;current=expect(next,\"invalid bounds\");}}function normalizeStringValue(value){return isEmpty$2(value)?\"\":String(value);}function isEmpty$2(value){return null==value||\"function\"!=typeof value.toString;}function isSafeString(value){return\"object\"==typeof value&&null!==value&&\"function\"==typeof value.toHTML;}function isNode(value){return\"object\"==typeof value&&null!==value&&\"number\"==typeof value.nodeType;}function isString(value){return\"string\"==typeof value;}/*\n           * @method normalizeProperty\n           * @param element {HTMLElement}\n           * @param slotName {String}\n           * @returns {Object} { name, type }\n           */function normalizeProperty(element,slotName){let type,normalized;if(slotName in element)normalized=slotName,type=\"prop\";else{let lower=slotName.toLowerCase();lower in element?(type=\"prop\",normalized=lower):(type=\"attr\",normalized=slotName);}return\"prop\"!==type||\"style\"!==normalized.toLowerCase()&&!function(tagName,propName){let tag=ATTR_OVERRIDES[tagName.toUpperCase()];return tag&&tag[propName.toLowerCase()]||!1;}(element.tagName,normalized)||(type=\"attr\"),{normalized:normalized,type:type};}// properties that MUST be set as attributes, due to:\n// * browser bug\n// * strange spec outlier\nconst ATTR_OVERRIDES={INPUT:{form:!0,// 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\nautocorrect:!0,// Chrome 54.0.2840.98: 'list' in document.createElement('input') === true\n// Safari 9.1.3: 'list' in document.createElement('input') === false\nlist:!0},// element.form is actually a legitimate readOnly property, that is to be\n// mutated, but must be mutated by setAttribute...\nSELECT:{form:!0},OPTION:{form:!0},TEXTAREA:{form:!0},LABEL:{form:!0},FIELDSET:{form:!0},LEGEND:{form:!0},OBJECT:{form:!0},OUTPUT:{form:!0},BUTTON:{form:!0}},badProtocols=[\"javascript:\",\"vbscript:\"],badTags=[\"A\",\"BODY\",\"LINK\",\"IMG\",\"IFRAME\",\"BASE\",\"FORM\"],badTagsForDataURI=[\"EMBED\"],badAttributes=[\"href\",\"src\",\"background\",\"action\"],badAttributesForDataURI=[\"src\"];function has(array,item){return-1!==array.indexOf(item);}function checkURI(tagName,attribute){return(null===tagName||has(badTags,tagName))&&has(badAttributes,attribute);}function checkDataURI(tagName,attribute){return null!==tagName&&has(badTagsForDataURI,tagName)&&has(badAttributesForDataURI,attribute);}function requiresSanitization(tagName,attribute){return checkURI(tagName,attribute)||checkDataURI(tagName,attribute);}let _protocolForUrlImplementation,DebugStyleAttributeManager;function sanitizeAttributeValue(element,attribute,value){let tagName=null;if(null==value)return value;if(isSafeString(value))return value.toHTML();tagName=element?element.tagName.toUpperCase():null;let str=normalizeStringValue(value);if(checkURI(tagName,attribute)){let protocol=(url=str,_protocolForUrlImplementation||(_protocolForUrlImplementation=function(){if(\"object\"==typeof URL&&null!==URL&&// this is super annoying, TS thinks that URL **must** be a function so `URL.parse` check\n// thinks it is `never` without this `as unknown as any`\n\"function\"==typeof URL.parse){// In Ember-land the `fastboot` package sets the `URL` global to `require('url')`\n// ultimately, this should be changed (so that we can either rely on the natural `URL` global\n// that exists) but for now we have to detect the specific `FastBoot` case first\n// a future version of `fastboot` will detect if this legacy URL setup is required (by\n// inspecting Ember version) and if new enough, it will avoid shadowing the `URL` global\n// constructor with `require('url')`.\nlet nodeURL=URL;return url=>{let protocol=null;return\"string\"==typeof url&&(protocol=nodeURL.parse(url).protocol),null===protocol?\":\":protocol;};}if(\"function\"==typeof URL)return _url=>{try{return new URL(_url).protocol;}catch(error){// any non-fully qualified url string will trigger an error (because there is no\n// baseURI that we can provide; in that case we **know** that the protocol is\n// \"safe\" because it isn't specifically one of the `badProtocols` listed above\n// (and those protocols can never be the default baseURI)\nreturn\":\";}};throw new Error('@glimmer/runtime needs a valid \"globalThis.URL\"');}()),_protocolForUrlImplementation(url));if(has(badProtocols,protocol))return`unsafe:${str}`;}var url;return checkDataURI(tagName,attribute)?`unsafe:${str}`:str;}function dynamicAttribute(element,attr,namespace){let isTrusting=arguments.length>3&&arguments[3]!==undefined?arguments[3]:!1;const{tagName:tagName,namespaceURI:namespaceURI}=element,attribute={element:element,name:attr,namespace:namespace};if(\"style\"===attr&&!isTrusting)return new DebugStyleAttributeManager(attribute);if(namespaceURI===NS_SVG)return buildDynamicAttribute(tagName,attr,attribute);const{type:type,normalized:normalized}=normalizeProperty(element,attr);return\"attr\"===type?buildDynamicAttribute(tagName,normalized,attribute):function(tagName,name,attribute){return requiresSanitization(tagName,name)?new SafeDynamicProperty(name,attribute):function(tagName,attribute){return(\"INPUT\"===tagName||\"TEXTAREA\"===tagName)&&\"value\"===attribute;}(tagName,name)?new InputValueDynamicAttribute(name,attribute):function(tagName,attribute){return\"OPTION\"===tagName&&\"selected\"===attribute;}(tagName,name)?new OptionSelectedDynamicAttribute(name,attribute):new DefaultDynamicProperty(name,attribute);}(tagName,normalized,attribute);}function buildDynamicAttribute(tagName,name,attribute){return requiresSanitization(tagName,name)?new SafeDynamicAttribute(attribute):new SimpleDynamicAttribute(attribute);}class DynamicAttribute{constructor(attribute){this.attribute=attribute;}}class SimpleDynamicAttribute extends DynamicAttribute{set(dom,value,_env){const normalizedValue=normalizeValue(value);if(null!==normalizedValue){const{name:name,namespace:namespace}=this.attribute;dom.__setAttribute(name,normalizedValue,namespace);}}update(value,_env){const normalizedValue=normalizeValue(value),{element:element,name:name}=this.attribute;null===normalizedValue?element.removeAttribute(name):element.setAttribute(name,normalizedValue);}}class DefaultDynamicProperty extends DynamicAttribute{constructor(normalizedName,attribute){super(attribute),_defineProperty(this,\"value\",void 0),this.normalizedName=normalizedName;}set(dom,value,_env){null!=value&&(this.value=value,dom.__setProperty(this.normalizedName,value));}update(value,_env){const{element:element}=this.attribute;this.value!==value&&(element[this.normalizedName]=this.value=value,null==value&&this.removeAttribute());}removeAttribute(){// TODO this sucks but to preserve properties first and to meet current\n// semantics we must do this.\nconst{element:element,namespace:namespace}=this.attribute;namespace?element.removeAttributeNS(namespace,this.normalizedName):element.removeAttribute(this.normalizedName);}}class SafeDynamicProperty extends DefaultDynamicProperty{set(dom,value,env){const{element:element,name:name}=this.attribute,sanitized=sanitizeAttributeValue(element,name,value);super.set(dom,sanitized,env);}update(value,env){const{element:element,name:name}=this.attribute,sanitized=sanitizeAttributeValue(element,name,value);super.update(sanitized,env);}}class SafeDynamicAttribute extends SimpleDynamicAttribute{set(dom,value,env){const{element:element,name:name}=this.attribute,sanitized=sanitizeAttributeValue(element,name,value);super.set(dom,sanitized,env);}update(value,env){const{element:element,name:name}=this.attribute,sanitized=sanitizeAttributeValue(element,name,value);super.update(sanitized,env);}}class InputValueDynamicAttribute extends DefaultDynamicProperty{set(dom,value){dom.__setProperty(\"value\",normalizeStringValue(value));}update(value){const input=castToBrowser(this.attribute.element,[\"input\",\"textarea\"]),currentValue=input.value,normalizedValue=normalizeStringValue(value);currentValue!==normalizedValue&&(input.value=normalizedValue);}}class OptionSelectedDynamicAttribute extends DefaultDynamicProperty{set(dom,value){null!=value&&!1!==value&&dom.__setProperty(\"selected\",!0);}update(value){castToBrowser(this.attribute.element,\"option\").selected=!!value;}}function normalizeValue(value){return!1===value||null==value||void 0===value.toString?null:!0===value?\"\":// onclick function etc in SSR\n\"function\"==typeof value?null:String(value);}DebugStyleAttributeManager=class extends SimpleDynamicAttribute{set(dom,value,env){warnIfStyleNotTrusted(value),super.set(dom,value,env);}update(value,env){warnIfStyleNotTrusted(value),super.update(value,env);}};class First{constructor(node){this.node=node;}firstNode(){return this.node;}}class Last{constructor(node){this.node=node;}lastNode(){return this.node;}}const CURSOR_STACK=Symbol(\"CURSOR_STACK\");class NewElementBuilder{static forInitialRender(env,cursor){return new this(env,cursor.element,cursor.nextSibling).initialize();}static resume(env,block){let stack=new this(env,block.parentElement(),block.reset(env)).initialize();return stack.pushLiveBlock(block),stack;}constructor(env,parentNode,nextSibling){_defineProperty(this,\"dom\",void 0);_defineProperty(this,\"updateOperations\",void 0);_defineProperty(this,\"constructing\",null);_defineProperty(this,\"operations\",null);_defineProperty(this,\"env\",void 0);_defineProperty(this,CURSOR_STACK,new StackImpl());_defineProperty(this,\"modifierStack\",new StackImpl());_defineProperty(this,\"blockStack\",new StackImpl());this.pushElement(parentNode,nextSibling),this.env=env,this.dom=env.getAppendOperations(),this.updateOperations=env.getDOM();}initialize(){return this.pushSimpleBlock(),this;}debugBlocks(){return this.blockStack.toArray();}get element(){return this[CURSOR_STACK].current.element;}get nextSibling(){return this[CURSOR_STACK].current.nextSibling;}get hasBlocks(){return this.blockStack.size>0;}block(){return expect(this.blockStack.current,\"Expected a current live block\");}popElement(){this[CURSOR_STACK].pop(),expect(this[CURSOR_STACK].current,\"can't pop past the last element\");}pushSimpleBlock(){return this.pushLiveBlock(new SimpleLiveBlock(this.element));}pushUpdatableBlock(){return this.pushLiveBlock(new UpdatableBlockImpl(this.element));}pushBlockList(list){return this.pushLiveBlock(new LiveBlockList(this.element,list));}pushLiveBlock(block){let isRemote=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;let current=this.blockStack.current;return null!==current&&(isRemote||current.didAppendBounds(block)),this.__openBlock(),this.blockStack.push(block),block;}popBlock(){return this.block().finalize(this),this.__closeBlock(),expect(this.blockStack.pop(),\"Expected popBlock to return a block\");}__openBlock(){}__closeBlock(){}// todo return seems unused\nopenElement(tag){let element=this.__openElement(tag);return this.constructing=element,element;}__openElement(tag){return this.dom.createElement(tag,this.element);}flushElement(modifiers){let parent=this.element,element=expect(this.constructing,\"flushElement should only be called when constructing an element\");this.__flushElement(parent,element),this.constructing=null,this.operations=null,this.pushModifiers(modifiers),this.pushElement(element,null),this.didOpenElement(element);}__flushElement(parent,constructing){this.dom.insertBefore(parent,constructing,this.nextSibling);}closeElement(){return this.willCloseElement(),this.popElement(),this.popModifiers();}pushRemoteElement(element,guid,insertBefore){return this.__pushRemoteElement(element,guid,insertBefore);}__pushRemoteElement(element,_guid,insertBefore){if(this.pushElement(element,insertBefore),void 0===insertBefore)for(;element.lastChild;)element.removeChild(element.lastChild);let block=new RemoteLiveBlock(element);return this.pushLiveBlock(block,!0);}popRemoteElement(){const block=this.popBlock();return debugAssert(block instanceof RemoteLiveBlock,\"[BUG] expecting a RemoteLiveBlock\"),this.popElement(),block;}pushElement(element){let nextSibling=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this[CURSOR_STACK].push(new CursorImpl(element,nextSibling));}pushModifiers(modifiers){this.modifierStack.push(modifiers);}popModifiers(){return this.modifierStack.pop();}didAppendBounds(bounds){return this.block().didAppendBounds(bounds),bounds;}didAppendNode(node){return this.block().didAppendNode(node),node;}didOpenElement(element){return this.block().openElement(element),element;}willCloseElement(){this.block().closeElement();}appendText(string){return this.didAppendNode(this.__appendText(string));}__appendText(text){let{dom:dom,element:element,nextSibling:nextSibling}=this,node=dom.createTextNode(text);return dom.insertBefore(element,node,nextSibling),node;}__appendNode(node){return this.dom.insertBefore(this.element,node,this.nextSibling),node;}__appendFragment(fragment){let first=fragment.firstChild;if(first){let ret=new ConcreteBounds(this.element,first,fragment.lastChild);return this.dom.insertBefore(this.element,fragment,this.nextSibling),ret;}{const comment=this.__appendComment(\"\");return new ConcreteBounds(this.element,comment,comment);}}__appendHTML(html){return this.dom.insertHTMLBefore(this.element,this.nextSibling,html);}appendDynamicHTML(value){let bounds=this.trustedContent(value);this.didAppendBounds(bounds);}appendDynamicText(value){let node=this.untrustedContent(value);return this.didAppendNode(node),node;}appendDynamicFragment(value){let bounds=this.__appendFragment(value);this.didAppendBounds(bounds);}appendDynamicNode(value){let node=this.__appendNode(value),bounds=new ConcreteBounds(this.element,node,node);this.didAppendBounds(bounds);}trustedContent(value){return this.__appendHTML(value);}untrustedContent(value){return this.__appendText(value);}appendComment(string){return this.didAppendNode(this.__appendComment(string));}__appendComment(string){let{dom:dom,element:element,nextSibling:nextSibling}=this,node=dom.createComment(string);return dom.insertBefore(element,node,nextSibling),node;}__setAttribute(name,value,namespace){this.dom.setAttribute(this.constructing,name,value,namespace);}__setProperty(name,value){this.constructing[name]=value;}setStaticAttribute(name,value,namespace){this.__setAttribute(name,value,namespace);}setDynamicAttribute(name,value,trusting,namespace){let attribute=dynamicAttribute(this.constructing,name,namespace,trusting);return attribute.set(this,value,this.env),attribute;}}class SimpleLiveBlock{constructor(parent){_defineProperty(this,\"first\",null);_defineProperty(this,\"last\",null);_defineProperty(this,\"nesting\",0);this.parent=parent;}parentElement(){return this.parent;}firstNode(){return expect(this.first,\"cannot call `firstNode()` while `SimpleLiveBlock` is still initializing\").firstNode();}lastNode(){return expect(this.last,\"cannot call `lastNode()` while `SimpleLiveBlock` is still initializing\").lastNode();}openElement(element){this.didAppendNode(element),this.nesting++;}closeElement(){this.nesting--;}didAppendNode(node){0===this.nesting&&(this.first||(this.first=new First(node)),this.last=new Last(node));}didAppendBounds(bounds){0===this.nesting&&(this.first||(this.first=bounds),this.last=bounds);}finalize(stack){null===this.first&&stack.appendComment(\"\");}}class RemoteLiveBlock extends SimpleLiveBlock{constructor(parent){super(parent),registerDestructor$1(this,()=>{// 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// 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// 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// 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// 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// 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.\nthis.parentElement()===this.firstNode().parentNode&&clear(this);});}}class UpdatableBlockImpl extends SimpleLiveBlock{reset(){destroy(this);let nextSibling=clear(this);return this.first=null,this.last=null,this.nesting=0,nextSibling;}}// FIXME: All the noops in here indicate a modelling problem\nclass LiveBlockList{constructor(parent,boundList){this.parent=parent,this.boundList=boundList,this.parent=parent,this.boundList=boundList;}parentElement(){return this.parent;}firstNode(){return expect(this.boundList[0],\"cannot call `firstNode()` while `LiveBlockList` is still initializing\").firstNode();}lastNode(){let boundList=this.boundList;return expect(boundList[boundList.length-1],\"cannot call `lastNode()` while `LiveBlockList` is still initializing\").lastNode();}openElement(_element){debugAssert(!1,\"Cannot openElement directly inside a block list\");}closeElement(){debugAssert(!1,\"Cannot closeElement directly inside a block list\");}didAppendNode(_node){debugAssert(!1,\"Cannot create a new node directly inside a block list\");}didAppendBounds(_bounds){}finalize(_stack){debugAssert(this.boundList.length>0,\"boundsList cannot be empty\");}}function clientBuilder(env,cursor){return NewElementBuilder.forInitialRender(env,cursor);}const APPEND_OPCODES=new class{constructor(){_defineProperty(this,\"evaluateOpcode\",new Array(Op.Size).fill(null));}add(name,evaluate){let kind=arguments.length>2&&arguments[2]!==undefined?arguments[2]:\"syscall\";this.evaluateOpcode[name]={syscall:\"machine\"!==kind,evaluate:evaluate};}debugBefore(vm,opcode){return{sp:void 0,pc:vm.fetchValue($pc),name:void 0,params:void 0,type:opcode.type,isMachine:opcode.isMachine,size:opcode.size,state:void 0};}debugAfter(vm,pre){}evaluate(vm,opcode,type){let operation=unwrap$1(this.evaluateOpcode[type]);operation.syscall?(debugAssert(!opcode.isMachine,`BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`),operation.evaluate(vm,opcode)):(debugAssert(opcode.isMachine,`BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`),operation.evaluate(vm[INNER_VM],opcode));}}(),TYPE=Symbol(\"TYPE\"),INNER=Symbol(\"INNER\"),OWNER=Symbol(\"OWNER\"),ARGS$2=Symbol(\"ARGS\"),RESOLVED=Symbol(\"RESOLVED\"),CURRIED_VALUES=new WeakSet();function isCurriedValue(value){return CURRIED_VALUES.has(value);}function isCurriedType(value,type){return isCurriedValue(value)&&value[TYPE]===type;}class CurriedValue{/** @internal */constructor(type,inner,owner,args){let resolved=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!1;_defineProperty(this,TYPE,void 0);_defineProperty(this,INNER,void 0);_defineProperty(this,OWNER,void 0);_defineProperty(this,ARGS$2,void 0);_defineProperty(this,RESOLVED,void 0);CURRIED_VALUES.add(this),this[TYPE]=type,this[INNER]=inner,this[OWNER]=owner,this[ARGS$2]=args,this[RESOLVED]=resolved;}}function resolveCurriedValue(curriedValue){let positional,named,definition,owner,resolved,currentWrapper=curriedValue;// eslint-disable-next-line no-constant-condition\nfor(;;){let{[ARGS$2]:curriedArgs,[INNER]:inner}=currentWrapper;if(null!==curriedArgs){let{named:curriedNamed,positional:curriedPositional}=curriedArgs;curriedPositional.length>0&&(positional=void 0===positional?curriedPositional:curriedPositional.concat(positional)),void 0===named&&(named=[]),named.unshift(curriedNamed);}if(!isCurriedValue(inner)){// Save off the owner that this helper was curried with. Later on,\n// we'll fetch the value of this register and set it as the owner on the\n// new root scope.\ndefinition=inner,owner=currentWrapper[OWNER],resolved=currentWrapper[RESOLVED];break;}currentWrapper=inner;}return{definition:definition,owner:owner,resolved:resolved,positional:positional,named:named};}function curry(type,spec,owner,args){let resolved=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!1;return new CurriedValue(type,spec,owner,args,resolved);}/** @internal */function hasCustomDebugRenderTreeLifecycle(manager){return\"getDebugCustomRenderTree\"in manager;}APPEND_OPCODES.add(Op.ChildScope,vm=>vm.pushChildScope()),APPEND_OPCODES.add(Op.PopScope,vm=>vm.popScope()),APPEND_OPCODES.add(Op.PushDynamicScope,vm=>vm.pushDynamicScope()),APPEND_OPCODES.add(Op.PopDynamicScope,vm=>vm.popDynamicScope()),APPEND_OPCODES.add(Op.Constant,(vm,_ref58)=>{let{op1:other}=_ref58;vm.stack.push(vm[CONSTANTS].getValue(decodeHandle(other)));}),APPEND_OPCODES.add(Op.ConstantReference,(vm,_ref59)=>{let{op1:other}=_ref59;vm.stack.push(createConstRef(vm[CONSTANTS].getValue(decodeHandle(other)),!1));}),APPEND_OPCODES.add(Op.Primitive,(vm,_ref60)=>{let{op1:primitive}=_ref60;let stack=vm.stack;if(isHandle(primitive)){// it is a handle which does not already exist on the stack\nlet value=vm[CONSTANTS].getValue(decodeHandle(primitive));stack.push(value);}else// is already an encoded immediate or primitive handle\nstack.push(decodeImmediate(primitive));}),APPEND_OPCODES.add(Op.PrimitiveReference,vm=>{let ref,stack=vm.stack,value=stack.pop();ref=void 0===value?UNDEFINED_REFERENCE:null===value?NULL_REFERENCE:!0===value?TRUE_REFERENCE:!1===value?FALSE_REFERENCE:createPrimitiveRef(value),stack.push(ref);}),APPEND_OPCODES.add(Op.Dup,(vm,_ref61)=>{let{op1:register,op2:offset}=_ref61;let position=vm.fetchValue(register)-offset;vm.stack.dup(position);}),APPEND_OPCODES.add(Op.Pop,(vm,_ref62)=>{let{op1:count}=_ref62;vm.stack.pop(count);}),APPEND_OPCODES.add(Op.Load,(vm,_ref63)=>{let{op1:register}=_ref63;vm.load(register);}),APPEND_OPCODES.add(Op.Fetch,(vm,_ref64)=>{let{op1:register}=_ref64;vm.fetch(register);}),APPEND_OPCODES.add(Op.BindDynamicScope,(vm,_ref65)=>{let{op1:_names}=_ref65;let names=vm[CONSTANTS].getArray(_names);vm.bindDynamicScope(names);}),APPEND_OPCODES.add(Op.Enter,(vm,_ref66)=>{let{op1:args}=_ref66;vm.enter(args);}),APPEND_OPCODES.add(Op.Exit,vm=>{vm.exit();}),APPEND_OPCODES.add(Op.PushSymbolTable,(vm,_ref67)=>{let{op1:_table}=_ref67;vm.stack.push(vm[CONSTANTS].getValue(_table));}),APPEND_OPCODES.add(Op.PushBlockScope,vm=>{vm.stack.push(vm.scope());}),APPEND_OPCODES.add(Op.CompileBlock,vm=>{let stack=vm.stack,block=stack.pop();block?stack.push(vm.compile(block)):stack.push(null);}),APPEND_OPCODES.add(Op.InvokeYield,vm=>{let{stack:stack}=vm,handle=stack.pop(),scope=stack.pop(),table=stack.pop();debugAssert(null===table||table&&\"object\"==typeof table&&Array.isArray(table.parameters),`Expected top of stack to be Option<BlockSymbolTable>, was ${String(table)}`);let args=stack.pop();if(null===table)// To balance the pop{Frame,Scope}\nreturn vm.pushFrame(),void vm.pushScope(scope!==null&&scope!==void 0?scope:vm.scope());let invokingScope=expect(scope,\"BUG: expected scope\");// If necessary, create a child scope\n{let locals=table.parameters,localsCount=locals.length;if(localsCount>0){invokingScope=invokingScope.child();for(let i=0;i<localsCount;i++)invokingScope.bindSymbol(unwrap$1(locals[i]),args.at(i));}}vm.pushFrame(),vm.pushScope(invokingScope),vm.call(handle);}),APPEND_OPCODES.add(Op.JumpIf,(vm,_ref68)=>{let{op1:target}=_ref68;let reference=vm.stack.pop(),value=Boolean(valueForRef(reference));isConstRef(reference)?!0===value&&vm.goto(target):(!0===value&&vm.goto(target),vm.updateWith(new Assert(reference)));}),APPEND_OPCODES.add(Op.JumpUnless,(vm,_ref69)=>{let{op1:target}=_ref69;let reference=vm.stack.pop(),value=Boolean(valueForRef(reference));isConstRef(reference)?!1===value&&vm.goto(target):(!1===value&&vm.goto(target),vm.updateWith(new Assert(reference)));}),APPEND_OPCODES.add(Op.JumpEq,(vm,_ref70)=>{let{op1:target,op2:comparison}=_ref70;vm.stack.peek()===comparison&&vm.goto(target);}),APPEND_OPCODES.add(Op.AssertSame,vm=>{let reference=vm.stack.peek();!1===isConstRef(reference)&&vm.updateWith(new Assert(reference));}),APPEND_OPCODES.add(Op.ToBoolean,vm=>{let{stack:stack}=vm,valueRef=stack.pop();stack.push(createComputeRef(()=>toBool$1(valueForRef(valueRef))));});class Assert{constructor(ref){_defineProperty(this,\"last\",void 0);this.ref=ref,this.last=valueForRef(ref);}evaluate(vm){let{last:last,ref:ref}=this;last!==valueForRef(ref)&&vm.throw();}}class AssertFilter{constructor(ref,filter){_defineProperty(this,\"last\",void 0);this.ref=ref,this.filter=filter,this.last=filter(valueForRef(ref));}evaluate(vm){let{last:last,ref:ref,filter:filter}=this;last!==filter(valueForRef(ref))&&vm.throw();}}class JumpIfNotModifiedOpcode{constructor(){_defineProperty(this,\"tag\",CONSTANT_TAG);_defineProperty(this,\"lastRevision\",INITIAL);_defineProperty(this,\"target\",void 0);}finalize(tag,target){this.target=target,this.didModify(tag);}evaluate(vm){let{tag:tag,target:target,lastRevision:lastRevision}=this;!vm.alwaysRevalidate&&validateTag(tag,lastRevision)&&(consumeTag(tag),vm.goto(expect(target,\"VM BUG: Target must be set before attempting to jump\")));}didModify(tag){this.tag=tag,this.lastRevision=valueForTag(this.tag),consumeTag(tag);}}class BeginTrackFrameOpcode{constructor(debugLabel){this.debugLabel=debugLabel;}evaluate(){beginTrackFrame(this.debugLabel);}}class EndTrackFrameOpcode{constructor(target){this.target=target;}evaluate(){let tag=endTrackFrame();this.target.didModify(tag);}}APPEND_OPCODES.add(Op.Text,(vm,_ref71)=>{let{op1:text}=_ref71;vm.elements().appendText(vm[CONSTANTS].getValue(text));}),APPEND_OPCODES.add(Op.Comment,(vm,_ref72)=>{let{op1:text}=_ref72;vm.elements().appendComment(vm[CONSTANTS].getValue(text));}),APPEND_OPCODES.add(Op.OpenElement,(vm,_ref73)=>{let{op1:tag}=_ref73;vm.elements().openElement(vm[CONSTANTS].getValue(tag));}),APPEND_OPCODES.add(Op.OpenDynamicElement,vm=>{let tagName=valueForRef(vm.stack.pop());vm.elements().openElement(tagName);}),APPEND_OPCODES.add(Op.PushRemoteElement,vm=>{let elementRef=vm.stack.pop(),insertBeforeRef=vm.stack.pop(),guidRef=vm.stack.pop(),element=valueForRef(elementRef),insertBefore=valueForRef(insertBeforeRef),guid=valueForRef(guidRef);isConstRef(elementRef)||vm.updateWith(new Assert(elementRef)),void 0===insertBefore||isConstRef(insertBeforeRef)||vm.updateWith(new Assert(insertBeforeRef));let block=vm.elements().pushRemoteElement(element,guid,insertBefore);if(block&&vm.associateDestroyable(block),void 0!==vm.env.debugRenderTree){// Note that there is nothing to update – when the args for an\n// {{#in-element}} changes it gets torn down and a new one is\n// re-created/rendered in its place (see the `Assert`s above)\nlet args=createCapturedArgs(void 0===insertBefore?{}:{insertBefore:insertBeforeRef},[elementRef]);vm.env.debugRenderTree.create(block,{type:\"keyword\",name:\"in-element\",args:args,instance:null}),registerDestructor$1(block,()=>{var _vm$env$debugRenderTr;(_vm$env$debugRenderTr=vm.env.debugRenderTree)===null||_vm$env$debugRenderTr===void 0||_vm$env$debugRenderTr.willDestroy(block);});}}),APPEND_OPCODES.add(Op.PopRemoteElement,vm=>{let bounds=vm.elements().popRemoteElement();void 0!==vm.env.debugRenderTree&&// The RemoteLiveBlock is also its bounds\nvm.env.debugRenderTree.didRender(bounds,bounds);}),APPEND_OPCODES.add(Op.FlushElement,vm=>{let operations=vm.fetchValue($t0),modifiers=null;operations&&(modifiers=operations.flush(vm),vm.loadValue($t0,null)),vm.elements().flushElement(modifiers);}),APPEND_OPCODES.add(Op.CloseElement,vm=>{let modifiers=vm.elements().closeElement();null!==modifiers&&modifiers.forEach(modifier=>{vm.env.scheduleInstallModifier(modifier);const d=modifier.manager.getDestroyable(modifier.state);null!==d&&vm.associateDestroyable(d);});}),APPEND_OPCODES.add(Op.Modifier,(vm,_ref74)=>{let{op1:handle}=_ref74;if(!1===vm.env.isInteractive)return;let owner=vm.getOwner(),args=vm.stack.pop(),definition=vm[CONSTANTS].getValue(handle),{manager:manager}=definition,{constructing:constructing}=vm.elements(),capturedArgs=args.capture(),state=manager.create(owner,expect(constructing,\"BUG: ElementModifier could not find the element it applies to\"),definition.state,capturedArgs),instance={manager:manager,state:state,definition:definition};expect(vm.fetchValue($t0),\"BUG: ElementModifier could not find operations to append to\").addModifier(vm,instance,capturedArgs);let tag=manager.getTag(state);return null!==tag?(consumeTag(tag),vm.updateWith(new UpdateModifierOpcode(tag,instance))):void 0;}),APPEND_OPCODES.add(Op.DynamicModifier,vm=>{if(!1===vm.env.isInteractive)return;let{stack:stack}=vm,ref=stack.pop(),args=stack.pop().capture(),{positional:outerPositional,named:outerNamed}=args,{constructing:constructing}=vm.elements(),initialOwner=vm.getOwner(),instanceRef=createComputeRef(()=>{let owner,hostDefinition,value=valueForRef(ref);if(!isObject(value))return;if(isCurriedType(value,CurriedTypes.Modifier)){let{definition:resolvedDefinition,owner:curriedOwner,positional:positional,named:named}=resolveCurriedValue(value);hostDefinition=resolvedDefinition,owner=curriedOwner,void 0!==positional&&(args.positional=positional.concat(outerPositional)),void 0!==named&&(args.named=Object.assign({},...named,outerNamed));}else hostDefinition=value,owner=initialOwner;let manager=getInternalModifierManager(hostDefinition,!0);if(null===manager)throw new Error(`Expected a dynamic modifier definition, but received an object or function that did not have a modifier manager associated with it. The dynamic invocation was \\`{{${ref.debugLabel}}}\\`, and the incorrect definition is the value at the path \\`${ref.debugLabel}\\`, which was: ${debugToString$1(hostDefinition)}`);let definition={resolvedName:null,manager:manager,state:hostDefinition},state=manager.create(owner,expect(constructing,\"BUG: ElementModifier could not find the element it applies to\"),definition.state,args);return{manager:manager,state:state,definition:definition};}),instance=valueForRef(instanceRef),tag=null;return void 0!==instance&&(expect(vm.fetchValue($t0),\"BUG: ElementModifier could not find operations to append to\").addModifier(vm,instance,args),tag=instance.manager.getTag(instance.state),null!==tag&&consumeTag(tag)),!isConstRef(ref)||tag?vm.updateWith(new UpdateDynamicModifierOpcode(tag,instance,instanceRef)):void 0;});class UpdateModifierOpcode{constructor(tag,modifier){_defineProperty(this,\"lastUpdated\",void 0);this.tag=tag,this.modifier=modifier,this.lastUpdated=valueForTag(tag);}evaluate(vm){let{modifier:modifier,tag:tag,lastUpdated:lastUpdated}=this;consumeTag(tag),validateTag(tag,lastUpdated)||(vm.env.scheduleUpdateModifier(modifier),this.lastUpdated=valueForTag(tag));}}class UpdateDynamicModifierOpcode{constructor(tag,instance,instanceRef){_defineProperty(this,\"lastUpdated\",void 0);this.tag=tag,this.instance=instance,this.instanceRef=instanceRef,this.lastUpdated=valueForTag(tag!==null&&tag!==void 0?tag:CURRENT_TAG);}evaluate(vm){let{tag:tag,lastUpdated:lastUpdated,instance:instance,instanceRef:instanceRef}=this,newInstance=valueForRef(instanceRef);if(newInstance!==instance){if(void 0!==instance){let destroyable=instance.manager.getDestroyable(instance.state);null!==destroyable&&destroy(destroyable);}if(void 0!==newInstance){let{manager:manager,state:state}=newInstance,destroyable=manager.getDestroyable(state);null!==destroyable&&associateDestroyableChild(this,destroyable),tag=manager.getTag(state),null!==tag&&(this.lastUpdated=valueForTag(tag)),this.tag=tag,vm.env.scheduleInstallModifier(newInstance);}this.instance=newInstance;}else null===tag||validateTag(tag,lastUpdated)||(vm.env.scheduleUpdateModifier(instance),this.lastUpdated=valueForTag(tag));null!==tag&&consumeTag(tag);}}APPEND_OPCODES.add(Op.StaticAttr,(vm,_ref75)=>{let{op1:_name,op2:_value,op3:_namespace}=_ref75;let name=vm[CONSTANTS].getValue(_name),value=vm[CONSTANTS].getValue(_value),namespace=_namespace?vm[CONSTANTS].getValue(_namespace):null;vm.elements().setStaticAttribute(name,value,namespace);}),APPEND_OPCODES.add(Op.DynamicAttr,(vm,_ref76)=>{let{op1:_name,op2:_trusting,op3:_namespace}=_ref76;let name=vm[CONSTANTS].getValue(_name),trusting=vm[CONSTANTS].getValue(_trusting),reference=vm.stack.pop(),value=valueForRef(reference),namespace=_namespace?vm[CONSTANTS].getValue(_namespace):null,attribute=vm.elements().setDynamicAttribute(name,value,trusting,namespace);isConstRef(reference)||vm.updateWith(new UpdateDynamicAttributeOpcode(reference,attribute,vm.env));});class UpdateDynamicAttributeOpcode{constructor(reference,attribute,env){_defineProperty(this,\"updateRef\",void 0);let initialized=!1;this.updateRef=createComputeRef(()=>{let value=valueForRef(reference);!0===initialized?attribute.update(value,env):initialized=!0;}),valueForRef(this.updateRef);}evaluate(){valueForRef(this.updateRef);}}/**\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           */APPEND_OPCODES.add(Op.PushComponentDefinition,(vm,_ref77)=>{let{op1:handle}=_ref77;let definition=vm[CONSTANTS].getValue(handle);debugAssert(!!definition,`Missing component for ${handle}`);let{manager:manager,capabilities:capabilities}=definition,instance={definition:definition,manager:manager,capabilities:capabilities,state:null,handle:null,table:null,lookup:null};vm.stack.push(instance);}),APPEND_OPCODES.add(Op.ResolveDynamicComponent,(vm,_ref78)=>{let{op1:_isStrict}=_ref78;let definition,stack=vm.stack,component=valueForRef(stack.pop()),constants=vm[CONSTANTS],owner=vm.getOwner(),isStrict=constants.getValue(_isStrict);if(vm.loadValue($t1,null),\"string\"==typeof component){if(isStrict)throw new Error(`Attempted to resolve a dynamic component with a string definition, \\`${component}\\` in a strict mode template. In strict mode, using strings to resolve component definitions is prohibited. You can instead import the component definition and use it directly.`);let resolvedDefinition=function(resolver,constants,name,owner){let definition=resolver.lookupComponent(name,expect(owner,\"BUG: expected owner when looking up component\"));if(!definition)throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a component, but nothing was found.`);return constants.resolvedComponent(definition,name);}(vm.runtime.resolver,constants,component,owner);definition=expect(resolvedDefinition,`Could not find a component named \"${component}\"`);}else definition=isCurriedValue(component)?component:constants.component(component,owner);stack.push(definition);}),APPEND_OPCODES.add(Op.ResolveCurriedComponent,vm=>{let definition,stack=vm.stack,ref=stack.pop(),value=valueForRef(ref),constants=vm[CONSTANTS];if(\"function\"!=typeof value&&(\"object\"!=typeof value||null===value))throw new Error(`Expected a component definition, but received ${value}. You may have accidentally done <${ref.debugLabel}>, where \"${ref.debugLabel}\" was a string instead of a curried component definition. You must either use the component definition directly, or use the {{component}} helper to create a curried component definition when invoking dynamically.`);if(isCurriedValue(value))definition=value;else if(definition=constants.component(value,vm.getOwner(),!0),null===definition)throw new Error(`Expected a dynamic component definition, but received an object or function that did not have a component manager associated with it. The dynamic invocation was \\`<${ref.debugLabel}>\\` or \\`{{${ref.debugLabel}}}\\`, and the incorrect definition is the value at the path \\`${ref.debugLabel}\\`, which was: ${debugToString$1(value)}`);stack.push(definition);}),APPEND_OPCODES.add(Op.PushDynamicComponentInstance,vm=>{let capabilities,manager,{stack:stack}=vm,definition=stack.pop();isCurriedValue(definition)?manager=capabilities=null:(manager=definition.manager,capabilities=definition.capabilities),stack.push({definition:definition,capabilities:capabilities,manager:manager,state:null,handle:null,table:null});}),APPEND_OPCODES.add(Op.PushArgs,(vm,_ref79)=>{let{op1:_names,op2:_blockNames,op3:flags}=_ref79;let stack=vm.stack,names=vm[CONSTANTS].getArray(_names),positionalCount=flags>>4,atNames=8&flags,blockNames=7&flags?vm[CONSTANTS].getArray(_blockNames):EMPTY_STRING_ARRAY;vm[ARGS$1].setup(stack,names,blockNames,positionalCount,!!atNames),stack.push(vm[ARGS$1]);}),APPEND_OPCODES.add(Op.PushEmptyArgs,vm=>{let{stack:stack}=vm;stack.push(vm[ARGS$1].empty(stack));}),APPEND_OPCODES.add(Op.CaptureArgs,vm=>{let stack=vm.stack,capturedArgs=stack.pop().capture();stack.push(capturedArgs);}),APPEND_OPCODES.add(Op.PrepareArgs,(vm,_ref80)=>{let{op1:_state}=_ref80;let stack=vm.stack,instance=vm.fetchValue(_state),args=stack.pop(),{definition:definition}=instance;if(isCurriedType(definition,CurriedTypes.Component)){debugAssert(!definition.manager,\"If the component definition was curried, we don't yet have a manager\");let constants=vm[CONSTANTS],{definition:resolvedDefinition,owner:owner,resolved:resolved,positional:positional,named:named}=resolveCurriedValue(definition);if(!0===resolved)definition=resolvedDefinition;else if(\"string\"==typeof resolvedDefinition){let resolvedValue=vm.runtime.resolver.lookupComponent(resolvedDefinition,owner);definition=constants.resolvedComponent(expect(resolvedValue,\"BUG: expected resolved component\"),resolvedDefinition);}else definition=constants.component(resolvedDefinition,owner);void 0!==named&&args.named.merge(assign({},...named)),void 0!==positional&&(args.realloc(positional.length),args.positional.prepend(positional));let{manager:manager}=definition;debugAssert(null===instance.manager,\"component instance manager should not be populated yet\"),debugAssert(null===instance.capabilities,\"component instance manager should not be populated yet\"),instance.definition=definition,instance.manager=manager,instance.capabilities=definition.capabilities,// Save off the owner that this component was curried with. Later on,\n// we'll fetch the value of this register and set it as the owner on the\n// new root scope.\nvm.loadValue($t1,owner);}let{manager:manager,state:state}=definition,capabilities=instance.capabilities;if(!managerHasCapability(manager,capabilities,InternalComponentCapabilities.prepareArgs))return void stack.push(args);let blocks=args.blocks.values,blockNames=args.blocks.names,preparedArgs=manager.prepareArgs(state,args);if(preparedArgs){args.clear();for(let i=0;i<blocks.length;i++)stack.push(blocks[i]);let{positional:positional,named:named}=preparedArgs,positionalCount=positional.length;for(let i=0;i<positionalCount;i++)stack.push(positional[i]);let names=Object.keys(named);for(let i=0;i<names.length;i++)stack.push(named[unwrap$1(names[i])]);args.setup(stack,names,blockNames,positionalCount,!1);}stack.push(args);}),APPEND_OPCODES.add(Op.CreateComponent,(vm,_ref81)=>{let{op1:flags,op2:_state}=_ref81;let instance=vm.fetchValue(_state),{definition:definition,manager:manager,capabilities:capabilities}=instance;if(!managerHasCapability(manager,capabilities,InternalComponentCapabilities.createInstance))// TODO: Closure and Main components are always invoked dynamically, so this\n// opcode may run even if this capability is not enabled. In the future we\n// should handle this in a better way.\nreturn;let dynamicScope=null;managerHasCapability(manager,capabilities,InternalComponentCapabilities.dynamicScope)&&(dynamicScope=vm.dynamicScope());let hasDefaultBlock=1&flags,args=null;managerHasCapability(manager,capabilities,InternalComponentCapabilities.createArgs)&&(args=vm.stack.peek());let self=null;managerHasCapability(manager,capabilities,InternalComponentCapabilities.createCaller)&&(self=vm.getSelf());let state=manager.create(vm.getOwner(),definition.state,args,vm.env,dynamicScope,self,!!hasDefaultBlock);// We want to reuse the `state` POJO here, because we know that the opcodes\n// only transition at exactly one place.\ninstance.state=state,managerHasCapability(manager,capabilities,InternalComponentCapabilities.updateHook)&&vm.updateWith(new UpdateComponentOpcode(state,manager,dynamicScope));}),APPEND_OPCODES.add(Op.RegisterComponentDestructor,(vm,_ref82)=>{let{op1:_state}=_ref82;let{manager:manager,state:state,capabilities:capabilities}=vm.fetchValue(_state),d=manager.getDestroyable(state);if(!managerHasCapability(manager,capabilities,InternalComponentCapabilities.willDestroy)&&null!==d&&\"string\"in d)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\");d&&vm.associateDestroyable(d);}),APPEND_OPCODES.add(Op.BeginComponentTransaction,(vm,_ref83)=>{let{op1:_state}=_ref83;let name;{var _definition$resolvedN;let{definition:definition,manager:manager}=vm.fetchValue(_state);name=(_definition$resolvedN=definition.resolvedName)!==null&&_definition$resolvedN!==void 0?_definition$resolvedN:manager.getDebugName(definition.state);}vm.beginCacheGroup(name),vm.elements().pushSimpleBlock();}),APPEND_OPCODES.add(Op.PutComponentOperations,vm=>{vm.loadValue($t0,new ComponentElementOperations());}),APPEND_OPCODES.add(Op.ComponentAttr,(vm,_ref84)=>{let{op1:_name,op2:_trusting,op3:_namespace}=_ref84;let name=vm[CONSTANTS].getValue(_name),trusting=vm[CONSTANTS].getValue(_trusting),reference=vm.stack.pop(),namespace=_namespace?vm[CONSTANTS].getValue(_namespace):null;vm.fetchValue($t0).setAttribute(name,reference,trusting,namespace);}),APPEND_OPCODES.add(Op.StaticComponentAttr,(vm,_ref85)=>{let{op1:_name,op2:_value,op3:_namespace}=_ref85;let name=vm[CONSTANTS].getValue(_name),value=vm[CONSTANTS].getValue(_value),namespace=_namespace?vm[CONSTANTS].getValue(_namespace):null;vm.fetchValue($t0).setStaticAttribute(name,value,namespace);});class ComponentElementOperations{constructor(){_defineProperty(this,\"attributes\",dict());_defineProperty(this,\"classes\",[]);_defineProperty(this,\"modifiers\",[]);}setAttribute(name,value,trusting,namespace){let deferred={value:value,namespace:namespace,trusting:trusting};\"class\"===name&&this.classes.push(value),this.attributes[name]=deferred;}setStaticAttribute(name,value,namespace){let deferred={value:value,namespace:namespace};\"class\"===name&&this.classes.push(value),this.attributes[name]=deferred;}addModifier(vm,modifier,capturedArgs){if(this.modifiers.push(modifier),void 0!==vm.env.debugRenderTree){const{manager:manager,definition:definition,state:state}=modifier;// TODO: we need a stable object for the debugRenderTree as the key, add support for\n// the case where the state is a primitive, or if in practice we always have/require\n// an object, then change the internal types to reflect that\nif(null===state||\"object\"!=typeof state&&\"function\"!=typeof state)return;let{element:element,constructing:constructing}=vm.elements(),name=manager.getDebugName(definition.state),instance=manager.getDebugInstance(state);debugAssert(constructing,\"Expected a constructing element in addModifier\");let bounds=new ConcreteBounds(element,constructing,constructing);vm.env.debugRenderTree.create(state,{type:\"modifier\",name:name,args:capturedArgs,instance:instance}),vm.env.debugRenderTree.didRender(state,bounds),// For tearing down the debugRenderTree\nvm.associateDestroyable(state),vm.updateWith(new DebugRenderTreeUpdateOpcode(state)),vm.updateWith(new DebugRenderTreeDidRenderOpcode(state,bounds)),registerDestructor$1(state,()=>{var _vm$env$debugRenderTr2;(_vm$env$debugRenderTr2=vm.env.debugRenderTree)===null||_vm$env$debugRenderTr2===void 0||_vm$env$debugRenderTr2.willDestroy(state);});}}flush(vm){let type,attributes=this.attributes;for(let name in this.attributes){if(\"type\"===name){type=attributes[name];continue;}let attr=unwrap$1(this.attributes[name]);\"class\"===name?setDeferredAttr(vm,\"class\",mergeClasses(this.classes),attr.namespace,attr.trusting):setDeferredAttr(vm,name,attr.value,attr.namespace,attr.trusting);}return void 0!==type&&setDeferredAttr(vm,\"type\",type.value,type.namespace,type.trusting),this.modifiers;}}function mergeClasses(classes){return 0===classes.length?\"\":1===classes.length?unwrap$1(classes[0]):function(classes){return classes.every(c=>\"string\"==typeof c);}(classes)?classes.join(\" \"):(list=classes,createComputeRef(()=>{let ret=[];for(const ref of list){let value=normalizeStringValue(\"string\"==typeof ref?ref:valueForRef(ref));value&&ret.push(value);}return 0===ret.length?null:ret.join(\" \");}));var list;}function setDeferredAttr(vm,name,value,namespace){let trusting=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!1;if(\"string\"==typeof value)vm.elements().setStaticAttribute(name,value,namespace);else{let attribute=vm.elements().setDynamicAttribute(name,valueForRef(value),trusting,namespace);isConstRef(value)||vm.updateWith(new UpdateDynamicAttributeOpcode(value,attribute,vm.env));}}function bindBlock(symbolName,blockName,state,blocks,vm){let symbol=state.table.symbols.indexOf(symbolName),block=blocks.get(blockName);-1!==symbol&&vm.scope().bindBlock(symbol+1,block),state.lookup&&(state.lookup[symbolName]=block);}APPEND_OPCODES.add(Op.DidCreateElement,(vm,_ref86)=>{let{op1:_state}=_ref86;let{definition:definition,state:state}=vm.fetchValue(_state),{manager:manager}=definition,operations=vm.fetchValue($t0);manager.didCreateElement(state,expect(vm.elements().constructing,\"Expected a constructing element in DidCreateOpcode\"),operations);}),APPEND_OPCODES.add(Op.GetComponentSelf,(vm,_ref87)=>{let{op1:_state,op2:_names}=_ref87;let instance=vm.fetchValue(_state),{definition:definition,state:state}=instance,{manager:manager}=definition,selfRef=manager.getSelf(state);if(void 0!==vm.env.debugRenderTree){let args,moduleName,instance=vm.fetchValue(_state),{definition:definition,manager:manager}=instance;if(vm.stack.peek()===vm[ARGS$1])args=vm[ARGS$1].capture();else{let names=vm[CONSTANTS].getArray(_names);vm[ARGS$1].setup(vm.stack,names,[],0,!0),args=vm[ARGS$1].capture();}let compilable=definition.compilable;if(null===compilable?(debugAssert(managerHasCapability(manager,instance.capabilities,InternalComponentCapabilities.dynamicLayout),\"BUG: No template was found for this component, and the component did not have the dynamic layout capability\"),compilable=manager.getDynamicLayout(state,vm.runtime.resolver),moduleName=null!==compilable?compilable.moduleName:\"__default__.hbs\"):moduleName=compilable.moduleName,// For tearing down the debugRenderTree\nvm.associateDestroyable(instance),hasCustomDebugRenderTreeLifecycle(manager))manager.getDebugCustomRenderTree(instance.definition.state,instance.state,args,moduleName).forEach(node=>{let{bucket:bucket}=node;vm.env.debugRenderTree.create(bucket,node),registerDestructor$1(instance,()=>{var _vm$env$debugRenderTr3;(_vm$env$debugRenderTr3=vm.env.debugRenderTree)===null||_vm$env$debugRenderTr3===void 0||_vm$env$debugRenderTr3.willDestroy(bucket);}),vm.updateWith(new DebugRenderTreeUpdateOpcode(bucket));});else{var _definition$resolvedN2;let name=(_definition$resolvedN2=definition.resolvedName)!==null&&_definition$resolvedN2!==void 0?_definition$resolvedN2:manager.getDebugName(definition.state);vm.env.debugRenderTree.create(instance,{type:\"component\",name:name,args:args,template:moduleName,instance:valueForRef(selfRef)}),registerDestructor$1(instance,()=>{var _vm$env$debugRenderTr4;(_vm$env$debugRenderTr4=vm.env.debugRenderTree)===null||_vm$env$debugRenderTr4===void 0||_vm$env$debugRenderTr4.willDestroy(instance);}),vm.updateWith(new DebugRenderTreeUpdateOpcode(instance));}}vm.stack.push(selfRef);}),APPEND_OPCODES.add(Op.GetComponentTagName,(vm,_ref88)=>{let{op1:_state}=_ref88;let{definition:definition,state:state}=vm.fetchValue(_state),{manager:manager}=definition,tagName=manager.getTagName(state);// User provided value from JS, so we don't bother to encode\nvm.stack.push(tagName);}),// Dynamic Invocation Only\nAPPEND_OPCODES.add(Op.GetComponentLayout,(vm,_ref89)=>{let{op1:_state}=_ref89;let instance=vm.fetchValue(_state),{manager:manager,definition:definition}=instance,{stack:stack}=vm,{compilable:compilable}=definition;if(null===compilable){let{capabilities:capabilities}=instance;debugAssert(managerHasCapability(manager,capabilities,InternalComponentCapabilities.dynamicLayout),\"BUG: No template was found for this component, and the component did not have the dynamic layout capability\"),compilable=manager.getDynamicLayout(instance.state,vm.runtime.resolver),null===compilable&&(compilable=managerHasCapability(manager,capabilities,InternalComponentCapabilities.wrapped)?unwrapTemplate(vm[CONSTANTS].defaultTemplate).asWrappedLayout():unwrapTemplate(vm[CONSTANTS].defaultTemplate).asLayout());}let handle=compilable.compile(vm.context);stack.push(compilable.symbolTable),stack.push(handle);}),APPEND_OPCODES.add(Op.Main,(vm,_ref90)=>{let{op1:register}=_ref90;let definition=vm.stack.pop(),invocation=vm.stack.pop(),{manager:manager,capabilities:capabilities}=definition,state={definition:definition,manager:manager,capabilities:capabilities,state:null,handle:invocation.handle,table:invocation.symbolTable,lookup:null};vm.loadValue(register,state);}),APPEND_OPCODES.add(Op.PopulateLayout,(vm,_ref91)=>{let{op1:_state}=_ref91;let{stack:stack}=vm,handle=stack.pop(),table=stack.pop(),state=vm.fetchValue(_state);// In DEBUG handles could be ErrHandle objects\nstate.handle=handle,state.table=table;}),APPEND_OPCODES.add(Op.VirtualRootScope,(vm,_ref92)=>{let{op1:_state}=_ref92;let owner,{table:table,manager:manager,capabilities:capabilities,state:state}=vm.fetchValue(_state);managerHasCapability(manager,capabilities,InternalComponentCapabilities.hasSubOwner)?(owner=manager.getOwner(state),vm.loadValue($t1,null)):(// Check the temp register to see if an owner was resolved from currying\nowner=vm.fetchValue($t1),null===owner?// If an owner wasn't found, default to using the current owner. This\n// will happen for normal dynamic component invocation,\n// e.g. <SomeClassicEmberComponent/>\nowner=vm.getOwner():// Else the owner was found, so clear the temp register. This will happen\n// if we are loading a curried component, e.g. <@someCurriedComponent/>\nvm.loadValue($t1,null)),vm.pushRootScope(table.symbols.length+1,owner);}),APPEND_OPCODES.add(Op.SetupForEval,(vm,_ref93)=>{let{op1:_state}=_ref93;let state=vm.fetchValue(_state);if(state.table.hasEval){let lookup=state.lookup=dict();vm.scope().bindEvalScope(lookup);}}),APPEND_OPCODES.add(Op.SetNamedVariables,(vm,_ref94)=>{let{op1:_state}=_ref94;let state=vm.fetchValue(_state),scope=vm.scope(),args=vm.stack.peek(),callerNames=args.named.atNames;for(let i=callerNames.length-1;i>=0;i--){let atName=unwrap$1(callerNames[i]),symbol=state.table.symbols.indexOf(atName),value=args.named.get(atName,!0);-1!==symbol&&scope.bindSymbol(symbol+1,value),state.lookup&&(state.lookup[atName]=value);}}),APPEND_OPCODES.add(Op.SetBlocks,(vm,_ref95)=>{let{op1:_state}=_ref95;let state=vm.fetchValue(_state),{blocks:blocks}=vm.stack.peek();for(const[i]of enumerate(blocks.names))bindBlock(unwrap$1(blocks.symbolNames[i]),unwrap$1(blocks.names[i]),state,blocks,vm);}),// Dynamic Invocation Only\nAPPEND_OPCODES.add(Op.InvokeComponentLayout,(vm,_ref96)=>{let{op1:_state}=_ref96;let state=vm.fetchValue(_state);vm.call(state.handle);}),APPEND_OPCODES.add(Op.DidRenderLayout,(vm,_ref97)=>{let{op1:_state}=_ref97;let instance=vm.fetchValue(_state),{manager:manager,state:state,capabilities:capabilities}=instance,bounds=vm.elements().popBlock();void 0!==vm.env.debugRenderTree&&(hasCustomDebugRenderTreeLifecycle(manager)?manager.getDebugCustomRenderTree(instance.definition.state,state,EMPTY_ARGS).reverse().forEach(node=>{let{bucket:bucket}=node;vm.env.debugRenderTree.didRender(bucket,bounds),vm.updateWith(new DebugRenderTreeDidRenderOpcode(bucket,bounds));}):(vm.env.debugRenderTree.didRender(instance,bounds),vm.updateWith(new DebugRenderTreeDidRenderOpcode(instance,bounds)))),managerHasCapability(manager,capabilities,InternalComponentCapabilities.createInstance)&&(manager.didRenderLayout(state,bounds),vm.env.didCreate(instance),vm.updateWith(new DidUpdateLayoutOpcode(instance,bounds)));}),APPEND_OPCODES.add(Op.CommitComponentTransaction,vm=>{vm.commitCacheGroup();});class UpdateComponentOpcode{constructor(component,manager,dynamicScope){this.component=component,this.manager=manager,this.dynamicScope=dynamicScope;}evaluate(_vm){let{component:component,manager:manager,dynamicScope:dynamicScope}=this;manager.update(component,dynamicScope);}}class DidUpdateLayoutOpcode{constructor(component,bounds){this.component=component,this.bounds=bounds;}evaluate(vm){let{component:component,bounds:bounds}=this,{manager:manager,state:state}=component;manager.didUpdateLayout(state,bounds),vm.env.didUpdate(component);}}class DebugRenderTreeUpdateOpcode{constructor(bucket){this.bucket=bucket;}evaluate(vm){var _vm$env$debugRenderTr5;(_vm$env$debugRenderTr5=vm.env.debugRenderTree)===null||_vm$env$debugRenderTr5===void 0||_vm$env$debugRenderTr5.update(this.bucket);}}class DebugRenderTreeDidRenderOpcode{constructor(bucket,bounds){this.bucket=bucket,this.bounds=bounds;}evaluate(vm){var _vm$env$debugRenderTr6;(_vm$env$debugRenderTr6=vm.env.debugRenderTree)===null||_vm$env$debugRenderTr6===void 0||_vm$env$debugRenderTr6.didRender(this.bucket,this.bounds);}}/*\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          */class VMArgumentsImpl{constructor(){_defineProperty(this,\"stack\",null);_defineProperty(this,\"positional\",new PositionalArgumentsImpl());_defineProperty(this,\"named\",new NamedArgumentsImpl());_defineProperty(this,\"blocks\",new BlockArgumentsImpl());}empty(stack){let base=stack[REGISTERS][$sp]+1;return this.named.empty(stack,base),this.positional.empty(stack,base),this.blocks.empty(stack,base),this;}setup(stack,names,blockNames,positionalCount,atNames){this.stack=stack;/*\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              */let named=this.named,namedCount=names.length,namedBase=stack[REGISTERS][$sp]-namedCount+1;named.setup(stack,namedBase,namedCount,names,atNames);let positionalBase=namedBase-positionalCount;this.positional.setup(stack,positionalBase,positionalCount);let blocks=this.blocks,blocksCount=blockNames.length,blocksBase=positionalBase-3*blocksCount;blocks.setup(stack,blocksBase,blocksCount,blockNames);}get base(){return this.blocks.base;}get length(){return this.positional.length+this.named.length+3*this.blocks.length;}at(pos){return this.positional.at(pos);}realloc(offset){let{stack:stack}=this;if(offset>0&&null!==stack){let{positional:positional,named:named}=this,newBase=positional.base+offset;for(let i=positional.length+named.length-1;i>=0;i--)stack.copy(i+positional.base,i+newBase);positional.base+=offset,named.base+=offset,stack[REGISTERS][$sp]+=offset;}}capture(){let positional=0===this.positional.length?EMPTY_POSITIONAL:this.positional.capture();return{named:0===this.named.length?EMPTY_NAMED:this.named.capture(),positional:positional};}clear(){let{stack:stack,length:length}=this;length>0&&null!==stack&&stack.pop(length);}}const EMPTY_REFERENCES=emptyArray();class PositionalArgumentsImpl{constructor(){_defineProperty(this,\"base\",0);_defineProperty(this,\"length\",0);_defineProperty(this,\"stack\",null);_defineProperty(this,\"_references\",null);}empty(stack,base){this.stack=stack,this.base=base,this.length=0,this._references=EMPTY_REFERENCES;}setup(stack,base,length){this.stack=stack,this.base=base,this.length=length,this._references=0===length?EMPTY_REFERENCES:null;}at(position){let{base:base,length:length,stack:stack}=this;return position<0||position>=length?UNDEFINED_REFERENCE:stack.get(position,base);}capture(){return this.references;}prepend(other){let additions=other.length;if(additions>0){let{base:base,length:length,stack:stack}=this;this.base=base-=additions,this.length=length+additions;for(let i=0;i<additions;i++)stack.set(other[i],i,base);this._references=null;}}get references(){let references=this._references;if(!references){let{stack:stack,base:base,length:length}=this;references=this._references=stack.slice(base,base+length);}return references;}}class NamedArgumentsImpl{constructor(){_defineProperty(this,\"base\",0);_defineProperty(this,\"length\",0);_defineProperty(this,\"_references\",null);_defineProperty(this,\"_names\",EMPTY_STRING_ARRAY);_defineProperty(this,\"_atNames\",EMPTY_STRING_ARRAY);}empty(stack,base){this.stack=stack,this.base=base,this.length=0,this._references=EMPTY_REFERENCES,this._names=EMPTY_STRING_ARRAY,this._atNames=EMPTY_STRING_ARRAY;}setup(stack,base,length,names,atNames){this.stack=stack,this.base=base,this.length=length,0===length?(this._references=EMPTY_REFERENCES,this._names=EMPTY_STRING_ARRAY,this._atNames=EMPTY_STRING_ARRAY):(this._references=null,atNames?(this._names=null,this._atNames=names):(this._names=names,this._atNames=null));}get names(){let names=this._names;return names||(names=this._names=this._atNames.map(this.toSyntheticName)),names;}get atNames(){let atNames=this._atNames;return atNames||(atNames=this._atNames=this._names.map(this.toAtName)),atNames;}has(name){return-1!==this.names.indexOf(name);}get(name){let atNames=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;let{base:base,stack:stack}=this,idx=(atNames?this.atNames:this.names).indexOf(name);if(-1===idx)return UNDEFINED_REFERENCE;let ref=stack.get(idx,base);return createDebugAliasRef(atNames?name:`@${name}`,ref);}capture(){let{names:names,references:references}=this,map=dict();for(const[i,name]of enumerate(names))map[name]=createDebugAliasRef(`@${name}`,unwrap$1(references[i]));return map;}merge(other){let keys=Object.keys(other);if(keys.length>0){let{names:names,length:length,stack:stack}=this,newNames=names.slice();for(const name of keys)-1===newNames.indexOf(name)&&(length=newNames.push(name),stack.push(other[name]));this.length=length,this._references=null,this._names=newNames,this._atNames=null;}}get references(){let references=this._references;if(!references){let{base:base,length:length,stack:stack}=this;references=this._references=stack.slice(base,base+length);}return references;}toSyntheticName(name){return name.slice(1);}toAtName(name){return`@${name}`;}}function toSymbolName(name){return`&${name}`;}const EMPTY_BLOCK_VALUES=emptyArray();class BlockArgumentsImpl{constructor(){_defineProperty(this,\"internalValues\",null);_defineProperty(this,\"_symbolNames\",null);_defineProperty(this,\"internalTag\",null);_defineProperty(this,\"names\",EMPTY_STRING_ARRAY);_defineProperty(this,\"length\",0);_defineProperty(this,\"base\",0);}empty(stack,base){this.stack=stack,this.names=EMPTY_STRING_ARRAY,this.base=base,this.length=0,this._symbolNames=null,this.internalTag=CONSTANT_TAG,this.internalValues=EMPTY_BLOCK_VALUES;}setup(stack,base,length,names){this.stack=stack,this.names=names,this.base=base,this.length=length,this._symbolNames=null,0===length?(this.internalTag=CONSTANT_TAG,this.internalValues=EMPTY_BLOCK_VALUES):(this.internalTag=null,this.internalValues=null);}get values(){let values=this.internalValues;if(!values){let{base:base,length:length,stack:stack}=this;values=this.internalValues=stack.slice(base,base+3*length);}return values;}has(name){return-1!==this.names.indexOf(name);}get(name){let idx=this.names.indexOf(name);if(-1===idx)return null;let{base:base,stack:stack}=this,table=stack.get(3*idx,base),scope=stack.get(3*idx+1,base),handle=stack.get(3*idx+2,base);return null===handle?null:[handle,scope,table];}capture(){return new CapturedBlockArgumentsImpl(this.names,this.values);}get symbolNames(){let symbolNames=this._symbolNames;return null===symbolNames&&(symbolNames=this._symbolNames=this.names.map(toSymbolName)),symbolNames;}}class CapturedBlockArgumentsImpl{constructor(names,values){_defineProperty(this,\"length\",void 0);this.names=names,this.values=values,this.length=names.length;}has(name){return-1!==this.names.indexOf(name);}get(name){let idx=this.names.indexOf(name);return-1===idx?null:[this.values[3*idx+2],this.values[3*idx+1],this.values[3*idx]];}}function createCapturedArgs(named,positional){return{named:named,positional:positional};}function reifyNamed(named){let reified=dict();for(const[key,value]of Object.entries(named))reified[key]=valueForRef(value);return reified;}function reifyPositional(positional){return positional.map(valueForRef);}function reifyArgs(args){return{named:reifyNamed(args.named),positional:reifyPositional(args.positional)};}const ARGUMENT_ERROR=Symbol(\"ARGUMENT_ERROR\");function isArgumentError(arg){return null!==arg&&\"object\"==typeof arg&&arg[ARGUMENT_ERROR];}function ArgumentErrorImpl(error){return{[ARGUMENT_ERROR]:!0,error:error};}function reifyArgsDebug(args){return{named:function(named){let reified=dict();for(const[key,value]of Object.entries(named))try{reified[key]=valueForRef(value);}catch(e){reified[key]=ArgumentErrorImpl(e);}return reified;}(args.named),positional:(positional=args.positional,positional.map(p=>{try{return valueForRef(p);}catch(e){return ArgumentErrorImpl(e);}}))};var positional;}const EMPTY_NAMED=Object.freeze(Object.create(null)),EMPTY_POSITIONAL=EMPTY_REFERENCES,EMPTY_ARGS=createCapturedArgs(EMPTY_NAMED,EMPTY_POSITIONAL);function castToString(value){return\"string\"==typeof value?value:\"function\"!=typeof value.toString?\"\":String(value);}function resolveHelper(definition,ref){let helper,managerOrHelper=getInternalHelperManager(definition,!0);if(null===managerOrHelper?helper=null:(helper=\"function\"==typeof managerOrHelper?managerOrHelper:managerOrHelper.getHelper(definition),debugAssert(managerOrHelper,\"BUG: expected manager or helper\")),null===helper)throw new Error(`Expected a dynamic helper definition, but received an object or function that did not have a helper manager associated with it. The dynamic invocation was \\`{{${ref.debugLabel}}}\\` or \\`(${ref.debugLabel})\\`, and the incorrect definition is the value at the path \\`${ref.debugLabel}\\`, which was: ${debugToString$1(definition)}`);return helper;}function isUndefinedReference(input){return debugAssert(Array.isArray(input)||input===UNDEFINED_REFERENCE,\"a reference other than UNDEFINED_REFERENCE is illegal here\"),input===UNDEFINED_REFERENCE;}APPEND_OPCODES.add(Op.Curry,(vm,_ref98)=>{let{op1:type,op2:_isStrict}=_ref98;let stack=vm.stack,definition=stack.pop(),capturedArgs=stack.pop(),owner=vm.getOwner(),resolver=vm.runtime.resolver,isStrict=!1;// strict check only happens in DEBUG builds, no reason to load it otherwise\nisStrict=vm[CONSTANTS].getValue(decodeHandle(_isStrict)),vm.loadValue($v0,function(type,inner,owner,args,resolver,isStrict){let lastValue,curriedDefinition;return createComputeRef(()=>{let value=valueForRef(inner);if(value===lastValue)return curriedDefinition;if(isCurriedType(value,type))curriedDefinition=args?curry(type,value,owner,args):args;else if(type===CurriedTypes.Component&&\"string\"==typeof value&&value){// Only components should enter this path, as helpers and modifiers do not\n// support string based resolution\n{if(isStrict)throw new Error(`Attempted to resolve a dynamic component with a string definition, \\`${value}\\` in a strict mode template. In strict mode, using strings to resolve component definitions is prohibited. You can instead import the component definition and use it directly.`);if(!expect(resolver,\"BUG: expected resolver for curried component definitions\").lookupComponent(value,owner))throw new Error(`Attempted to resolve \\`${value}\\`, which was expected to be a component, but nothing was found.`);}curriedDefinition=curry(type,value,owner,args);}else curriedDefinition=isObject(value)?curry(type,value,owner,args):null;return lastValue=value,curriedDefinition;});}(type,definition,owner,capturedArgs,resolver,isStrict));}),APPEND_OPCODES.add(Op.DynamicHelper,vm=>{let helperRef,stack=vm.stack,ref=stack.pop(),args=stack.pop().capture(),initialOwner=vm.getOwner(),helperInstanceRef=createComputeRef(()=>{void 0!==helperRef&&destroy(helperRef);let definition=valueForRef(ref);if(isCurriedType(definition,CurriedTypes.Helper)){let{definition:resolvedDef,owner:owner,positional:positional,named:named}=resolveCurriedValue(definition),helper=resolveHelper(resolvedDef,ref);void 0!==named&&(args.named=assign({},...named,args.named)),void 0!==positional&&(args.positional=positional.concat(args.positional)),helperRef=helper(args,owner),associateDestroyableChild(helperInstanceRef,helperRef);}else if(isObject(definition)){let helper=resolveHelper(definition,ref);helperRef=helper(args,initialOwner),_hasDestroyableChildren(helperRef)&&associateDestroyableChild(helperInstanceRef,helperRef);}else helperRef=UNDEFINED_REFERENCE;}),helperValueRef=createComputeRef(()=>(valueForRef(helperInstanceRef),valueForRef(helperRef)));vm.associateDestroyable(helperInstanceRef),vm.loadValue($v0,helperValueRef);}),APPEND_OPCODES.add(Op.Helper,(vm,_ref99)=>{let{op1:handle}=_ref99;let stack=vm.stack,value=vm[CONSTANTS].getValue(handle)(stack.pop().capture(),vm.getOwner(),vm.dynamicScope());_hasDestroyableChildren(value)&&vm.associateDestroyable(value),vm.loadValue($v0,value);}),APPEND_OPCODES.add(Op.GetVariable,(vm,_ref100)=>{let{op1:symbol}=_ref100;let expr=vm.referenceForSymbol(symbol);vm.stack.push(expr);}),APPEND_OPCODES.add(Op.SetVariable,(vm,_ref101)=>{let{op1:symbol}=_ref101;let expr=vm.stack.pop();vm.scope().bindSymbol(symbol,expr);}),APPEND_OPCODES.add(Op.SetBlock,(vm,_ref102)=>{let{op1:symbol}=_ref102;let handle=vm.stack.pop(),scope=vm.stack.pop(),table=vm.stack.pop();vm.scope().bindBlock(symbol,[handle,scope,table]);}),APPEND_OPCODES.add(Op.ResolveMaybeLocal,(vm,_ref103)=>{let{op1:_name}=_ref103;let name=vm[CONSTANTS].getValue(_name),ref=vm.scope().getPartialMap()[name];void 0===ref&&(ref=childRefFor(vm.getSelf(),name)),vm.stack.push(ref);}),APPEND_OPCODES.add(Op.RootScope,(vm,_ref104)=>{let{op1:symbols}=_ref104;vm.pushRootScope(symbols,vm.getOwner());}),APPEND_OPCODES.add(Op.GetProperty,(vm,_ref105)=>{let{op1:_key}=_ref105;let key=vm[CONSTANTS].getValue(_key),expr=vm.stack.pop();vm.stack.push(childRefFor(expr,key));}),APPEND_OPCODES.add(Op.GetBlock,(vm,_ref106)=>{let{op1:_block}=_ref106;let{stack:stack}=vm,block=vm.scope().getBlock(_block);stack.push(block);}),APPEND_OPCODES.add(Op.SpreadBlock,vm=>{let{stack:stack}=vm,block=stack.pop();if(block&&!isUndefinedReference(block)){let[handleOrCompilable,scope,table]=block;stack.push(table),stack.push(scope),stack.push(handleOrCompilable);}else stack.push(null),stack.push(null),stack.push(null);}),APPEND_OPCODES.add(Op.HasBlock,vm=>{let{stack:stack}=vm,block=stack.pop();block&&!isUndefinedReference(block)?stack.push(TRUE_REFERENCE):stack.push(FALSE_REFERENCE);}),APPEND_OPCODES.add(Op.HasBlockParams,vm=>{// FIXME(mmun): should only need to push the symbol table\nvm.stack.pop(),vm.stack.pop();let table=vm.stack.pop(),hasBlockParams=table&&table.parameters.length;vm.stack.push(hasBlockParams?TRUE_REFERENCE:FALSE_REFERENCE);}),APPEND_OPCODES.add(Op.Concat,(vm,_ref107)=>{let{op1:count}=_ref107;let out=new Array(count);for(let i=count;i>0;i--)out[i-1]=vm.stack.pop();var partsRefs;vm.stack.push((partsRefs=out,createComputeRef(()=>{const parts=[];for(const ref of partsRefs){const value=valueForRef(ref);null!=value&&parts.push(castToString(value));}return parts.length>0?parts.join(\"\"):null;})));}),APPEND_OPCODES.add(Op.IfInline,vm=>{let condition=vm.stack.pop(),truthy=vm.stack.pop(),falsy=vm.stack.pop();vm.stack.push(createComputeRef(()=>!0===toBool$1(valueForRef(condition))?valueForRef(truthy):valueForRef(falsy)));}),APPEND_OPCODES.add(Op.Not,vm=>{let ref=vm.stack.pop();vm.stack.push(createComputeRef(()=>!toBool$1(valueForRef(ref))));}),APPEND_OPCODES.add(Op.GetDynamicVar,vm=>{let scope=vm.dynamicScope(),stack=vm.stack,nameRef=stack.pop();stack.push(createComputeRef(()=>{let name=String(valueForRef(nameRef));return valueForRef(scope.get(name));}));}),APPEND_OPCODES.add(Op.Log,vm=>{let{positional:positional}=vm.stack.pop().capture();vm.loadValue($v0,createComputeRef(()=>{// eslint-disable-next-line no-console\nconsole.log(...reifyPositional(positional));}));});class DynamicTextContent{constructor(node,reference,lastValue){this.node=node,this.reference=reference,this.lastValue=lastValue;}evaluate(){let normalized,value=valueForRef(this.reference),{lastValue:lastValue}=this;value!==lastValue&&(normalized=isEmpty$2(value)?\"\":isString(value)?value:String(value),normalized!==lastValue)&&(this.node.nodeValue=this.lastValue=normalized);}}function toContentType(value){return function(value){return isString(value)||isEmpty$2(value)||\"boolean\"==typeof value||\"number\"==typeof value;}(value)?ContentType.String:isCurriedType(value,CurriedTypes.Component)||hasInternalComponentManager(value)?ContentType.Component:isCurriedType(value,CurriedTypes.Helper)||hasInternalHelperManager(value)?ContentType.Helper:isSafeString(value)?ContentType.SafeString:function(value){return isNode(value)&&11===value.nodeType;}(value)?ContentType.Fragment:isNode(value)?ContentType.Node:ContentType.String;}function toDynamicContentType(value){if(!isObject(value))return ContentType.String;if(isCurriedType(value,CurriedTypes.Component)||hasInternalComponentManager(value))return ContentType.Component;if(!isCurriedType(value,CurriedTypes.Helper)&&!hasInternalHelperManager(value))throw new Error(`Attempted use a dynamic value as a component or helper, but that value did not have an associated component or helper manager. The value was: ${value}`);return ContentType.Helper;}function debugCallback(context,get){// eslint-disable-next-line no-console\nconsole.info(\"Use `context`, and `get(<path>)` to debug this template.\"),get(\"this\");}APPEND_OPCODES.add(Op.ContentType,vm=>{let reference=vm.stack.peek();vm.stack.push(toContentType(valueForRef(reference))),isConstRef(reference)||vm.updateWith(new AssertFilter(reference,toContentType));}),APPEND_OPCODES.add(Op.DynamicContentType,vm=>{let reference=vm.stack.peek();vm.stack.push(toDynamicContentType(valueForRef(reference))),isConstRef(reference)||vm.updateWith(new AssertFilter(reference,toDynamicContentType));}),APPEND_OPCODES.add(Op.AppendHTML,vm=>{let reference=vm.stack.pop(),rawValue=valueForRef(reference),value=isEmpty$2(rawValue)?\"\":String(rawValue);vm.elements().appendDynamicHTML(value);}),APPEND_OPCODES.add(Op.AppendSafeHTML,vm=>{let reference=vm.stack.pop(),rawValue=valueForRef(reference).toHTML(),value=isEmpty$2(rawValue)?\"\":rawValue;vm.elements().appendDynamicHTML(value);}),APPEND_OPCODES.add(Op.AppendText,vm=>{let reference=vm.stack.pop(),rawValue=valueForRef(reference),value=isEmpty$2(rawValue)?\"\":String(rawValue),node=vm.elements().appendDynamicText(value);isConstRef(reference)||vm.updateWith(new DynamicTextContent(node,reference,value));}),APPEND_OPCODES.add(Op.AppendDocumentFragment,vm=>{let reference=vm.stack.pop(),value=valueForRef(reference);vm.elements().appendDynamicFragment(value);}),APPEND_OPCODES.add(Op.AppendNode,vm=>{let reference=vm.stack.pop(),value=valueForRef(reference);vm.elements().appendDynamicNode(value);});let callback=debugCallback;// For testing purposes\nfunction setDebuggerCallback(cb){callback=cb;}function resetDebuggerCallback(){callback=debugCallback;}class ScopeInspector{constructor(scope,symbols,debugInfo){_defineProperty(this,\"locals\",dict());this.scope=scope;for(const slot of debugInfo){let name=unwrap$1(symbols[slot-1]),ref=scope.getSymbol(slot);this.locals[name]=ref;}}get(path){let ref,{scope:scope,locals:locals}=this,parts=path.split(\".\"),[head,...tail]=path.split(\".\"),evalScope=scope.getEvalScope();return\"this\"===head?ref=scope.getSelf():locals[head]?ref=unwrap$1(locals[head]):0===head.indexOf(\"@\")&&evalScope[head]?ref=evalScope[head]:(ref=this.scope.getSelf(),tail=parts),tail.reduce((r,part)=>childRefFor(r,part),ref);}}APPEND_OPCODES.add(Op.Debugger,(vm,_ref108)=>{let{op1:_symbols,op2:_debugInfo}=_ref108;let symbols=vm[CONSTANTS].getArray(_symbols),debugInfo=vm[CONSTANTS].getArray(decodeHandle(_debugInfo)),inspector=new ScopeInspector(vm.scope(),symbols,debugInfo);callback(valueForRef(vm.getSelf()),path=>valueForRef(inspector.get(path)));}),APPEND_OPCODES.add(Op.EnterList,(vm,_ref109)=>{let{op1:relativeStart,op2:elseTarget}=_ref109;let stack=vm.stack,listRef=stack.pop(),keyRef=stack.pop(),keyValue=valueForRef(keyRef),key=null===keyValue?\"@identity\":String(keyValue),iteratorRef=createIteratorRef(listRef,key),iterator=valueForRef(iteratorRef);vm.updateWith(new AssertFilter(iteratorRef,iterator=>iterator.isEmpty())),!0===iterator.isEmpty()?// TODO: Fix this offset, should be accurate\nvm.goto(elseTarget+1):(vm.enterList(iteratorRef,relativeStart),vm.stack.push(iterator));}),APPEND_OPCODES.add(Op.ExitList,vm=>{vm.exitList();}),APPEND_OPCODES.add(Op.Iterate,(vm,_ref110)=>{let{op1:breaks}=_ref110;let item=vm.stack.peek().next();null!==item?vm.registerItem(vm.enterItem(item)):vm.goto(breaks);});const CAPABILITIES$3={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!1,updateHook:!1,createInstance:!1,wrapped:!1,willDestroy:!1,hasSubOwner:!1};class TemplateOnlyComponentManager{getCapabilities(){return CAPABILITIES$3;}getDebugName(_ref111){let{name:name}=_ref111;return name;}getSelf(){return NULL_REFERENCE;}getDestroyable(){return null;}}const TEMPLATE_ONLY_COMPONENT_MANAGER=new TemplateOnlyComponentManager();// This is only exported for types, don't use this class directly\nclass TemplateOnlyComponentDefinition{constructor(){let moduleName=arguments.length>0&&arguments[0]!==undefined?arguments[0]:\"@glimmer/component/template-only\";let name=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"(unknown template-only component)\";this.moduleName=moduleName,this.name=name;}toString(){return this.moduleName;}}/**\n            This utility function is used to declare a given component has no backing class. When the rendering engine detects this it\n            is able to perform a number of optimizations. Templates that are associated with `templateOnly()` will be rendered _as is_\n            without adding a wrapping `<div>` (or any of the other element customization behaviors of [@ember/component](/ember/release/classes/Component)).\n            Specifically, this means that the template will be rendered as \"outer HTML\".\n\n            In general, this method will be used by build time tooling and would not be directly written in an application. However,\n            at times it may be useful to use directly to leverage the \"outer HTML\" semantics mentioned above. For example, if an addon would like\n            to use these semantics for its templates but cannot be certain it will only be consumed by applications that have enabled the\n            `template-only-glimmer-components` optional feature.\n\n            @example\n\n            ```js\n            import { templateOnlyComponent } from '@glimmer/runtime';\n\n            export default templateOnlyComponent();\n            ```\n\n            @public\n            @method templateOnly\n            @param {String} moduleName the module name that the template only component represents, this will be used for debugging purposes\n            @category EMBER_GLIMMER_SET_COMPONENT_TEMPLATE\n          */function templateOnlyComponent(moduleName,name){return new TemplateOnlyComponentDefinition(moduleName,name);}// http://www.w3.org/TR/html/syntax.html#html-integration-point\nsetInternalComponentManager(TEMPLATE_ONLY_COMPONENT_MANAGER,TemplateOnlyComponentDefinition.prototype);const SVG_INTEGRATION_POINTS={foreignObject:1,desc:1,title:1},BLACKLIST_TABLE=Object.create(null);// 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\nclass DOMOperations{// Set by this.setupUselessElement() in constructor\nconstructor(document){this.document=document,this.setupUselessElement();}// split into separate method so that NodeDOMTreeConstruction\n// can override it.\nsetupUselessElement(){this.uselessElement=this.document.createElement(\"div\");}createElement(tag,context){let isElementInSVGNamespace,isHTMLIntegrationPoint;if(context?(isElementInSVGNamespace=context.namespaceURI===NS_SVG||\"svg\"===tag,isHTMLIntegrationPoint=!!SVG_INTEGRATION_POINTS[context.tagName]):(isElementInSVGNamespace=\"svg\"===tag,isHTMLIntegrationPoint=!1),isElementInSVGNamespace&&!isHTMLIntegrationPoint){// 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.\nif(BLACKLIST_TABLE[tag])throw new Error(`Cannot create a ${tag} inside an SVG context`);return this.document.createElementNS(NS_SVG,tag);}return this.document.createElement(tag);}insertBefore(parent,node,reference){parent.insertBefore(node,reference);}insertHTMLBefore(parent,nextSibling,html){if(\"\"===html){const comment=this.createComment(\"\");return parent.insertBefore(comment,nextSibling),new ConcreteBounds(parent,comment,comment);}const prev=nextSibling?nextSibling.previousSibling:parent.lastChild;let last;if(null===nextSibling)parent.insertAdjacentHTML(INSERT_BEFORE_END,html),last=expect(parent.lastChild,\"bug in insertAdjacentHTML?\");else if(nextSibling instanceof HTMLElement)nextSibling.insertAdjacentHTML(\"beforebegin\",html),last=expect(nextSibling.previousSibling,\"bug in insertAdjacentHTML?\");else{// Non-element nodes do not support insertAdjacentHTML, so add an\n// element and call it on that element. Then remove the element.\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\nconst{uselessElement:uselessElement}=this;parent.insertBefore(uselessElement,nextSibling),uselessElement.insertAdjacentHTML(INSERT_BEFORE_BEGIN,html),last=expect(uselessElement.previousSibling,\"bug in insertAdjacentHTML?\"),parent.removeChild(uselessElement);}const first=expect(prev?prev.nextSibling:parent.firstChild,\"bug in insertAdjacentHTML?\");return new ConcreteBounds(parent,first,last);}createTextNode(text){return this.document.createTextNode(text);}createComment(data){return this.document.createComment(data);}}// 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.\nfunction applySVGInnerHTMLFix(document,DOMClass,svgNamespace){if(!document)return DOMClass;if(!function(document,svgNamespace){const svg=document.createElementNS(svgNamespace,\"svg\");try{svg.insertAdjacentHTML(INSERT_BEFORE_END,\"<circle></circle>\");}catch(e){// IE, Edge: Will throw, insertAdjacentHTML is unsupported on SVG\n// Safari: Will throw, insertAdjacentHTML is not present on SVG\n}finally{// FF: Old versions will create a node in the wrong namespace\nreturn 1!==svg.childNodes.length||castToBrowser(unwrap$1(svg.firstChild),\"SVG\").namespaceURI!==NS_SVG;// eslint-disable-next-line no-unsafe-finally\n}}// Patch:    Adjacent text node merging fix\n// Browsers: IE, Edge, Firefox w/o inspector open\n// Reason:   These browsers will merge adjacent text nodes. For example given\n//           <div>Hello</div> with div.insertAdjacentHTML(' world') browsers\n//           with proper behavior will populate div.childNodes with two items.\n//           These browsers will populate it with one merged node instead.\n// Fix:      Add these nodes to a wrapper element, then iterate the childNodes\n//           of that wrapper and move the nodes to their target location. Note\n//           that potential SVG bugs will have been handled before this fix.\n//           Note that this fix must only apply to the previous text node, as\n//           the base implementation of `insertHTMLBefore` already handles\n//           following text nodes correctly.\n(document,svgNamespace))return DOMClass;const div=document.createElement(\"div\");return class extends DOMClass{insertHTMLBefore(parent,nextSibling,html){return\"\"===html||parent.namespaceURI!==svgNamespace?super.insertHTMLBefore(parent,nextSibling,html):function(parent,div,html,reference){let source;// This is important, because descendants of the <foreignObject> integration\n// point are parsed in the HTML namespace\nif(debugAssert(\"\"!==html,\"html cannot be empty\"),\"FOREIGNOBJECT\"===parent.tagName.toUpperCase()){// IE, Edge: also do not correctly support using `innerHTML` on SVG\n// namespaced elements. So here a wrapper is used.\nconst wrappedHtml=\"<svg><foreignObject>\"+html+\"</foreignObject></svg>\";clearElement(div),div.insertAdjacentHTML(INSERT_AFTER_BEGIN,wrappedHtml),source=div.firstChild.firstChild;}else{// IE, Edge: also do not correctly support using `innerHTML` on SVG\n// namespaced elements. So here a wrapper is used.\nconst wrappedHtml=\"<svg>\"+html+\"</svg>\";clearElement(div),div.insertAdjacentHTML(INSERT_AFTER_BEGIN,wrappedHtml),source=div.firstChild;}return function(source,target,nextSibling){const first=expect(source.firstChild,\"source is empty\");let last=first,current=first;for(;current;){const next=current.nextSibling;target.insertBefore(current,nextSibling),last=current,current=next;}return new ConcreteBounds(target,first,last);}(source,parent,reference);}(parent,div,html,nextSibling);}};}function applyTextNodeMergingFix(document,DOMClass){return document&&function(document){const mergingTextDiv=document.createElement(\"div\");return mergingTextDiv.appendChild(document.createTextNode(\"first\")),mergingTextDiv.insertAdjacentHTML(INSERT_BEFORE_END,\"second\"),2!==mergingTextDiv.childNodes.length;}(document)?class extends DOMClass{constructor(document){super(document),_defineProperty(this,\"uselessComment\",void 0),this.uselessComment=document.createComment(\"\");}insertHTMLBefore(parent,nextSibling,html){if(\"\"===html)return super.insertHTMLBefore(parent,nextSibling,html);let didSetUselessComment=!1;const nextPrevious=nextSibling?nextSibling.previousSibling:parent.lastChild;nextPrevious&&nextPrevious instanceof Text&&(didSetUselessComment=!0,parent.insertBefore(this.uselessComment,nextSibling));const bounds=super.insertHTMLBefore(parent,nextSibling,html);return didSetUselessComment&&parent.removeChild(this.uselessComment),bounds;}}:DOMClass;}const doc$1=\"undefined\"==typeof document?null:castToSimple(document);let appliedTreeConstruction=class extends DOMOperations{createElementNS(namespace,tag){return this.document.createElementNS(namespace,tag);}setAttribute(element,name,value){let namespace=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;namespace?element.setAttributeNS(namespace,name,value):element.setAttribute(name,value);}};appliedTreeConstruction=applyTextNodeMergingFix(doc$1,appliedTreeConstruction),appliedTreeConstruction=applySVGInnerHTMLFix(doc$1,appliedTreeConstruction,NS_SVG);const DOMTreeConstruction=appliedTreeConstruction;[\"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);const WHITESPACE=/[\\t\\n\\v\\f\\r \\xA0\\u{1680}\\u{180e}\\u{2000}-\\u{200a}\\u{2028}\\u{2029}\\u{202f}\\u{205f}\\u{3000}\\u{feff}]/u,doc=\"undefined\"==typeof document?null:castToSimple(document);function isWhitespace(string){return WHITESPACE.test(string);}class DOMChangesImpl extends DOMOperations{constructor(document){super(document),_defineProperty(this,\"namespace\",void 0),this.document=document,this.namespace=null;}setAttribute(element,name,value){element.setAttribute(name,value);}removeAttribute(element,name){element.removeAttribute(name);}insertAfter(element,node,reference){this.insertBefore(element,node,reference.nextSibling);}}let helper$3=DOMChangesImpl;helper$3=applyTextNodeMergingFix(doc,helper$3),helper$3=applySVGInnerHTMLFix(doc,helper$3,NS_SVG);const DOMChanges=helper$3;let GUID=0;class Ref{constructor(value){_defineProperty(this,\"id\",GUID++);_defineProperty(this,\"value\",void 0);this.value=value;}get(){return this.value;}release(){if(null===this.value)throw new Error(\"BUG: double release?\");this.value=null;}toString(){let label=`Ref ${this.id}`;if(null===this.value)return`${label} (released)`;try{return`${label}: ${this.value}`;}catch{return label;}}}class DebugRenderTreeImpl{constructor(){_defineProperty(this,\"stack\",new StackImpl());_defineProperty(this,\"refs\",new WeakMap());_defineProperty(this,\"roots\",new Set());_defineProperty(this,\"nodes\",new WeakMap());}begin(){this.reset();}create(state,node){let internalNode=assign({},node,{bounds:null,refs:new Set()});this.nodes.set(state,internalNode),this.appendChild(internalNode,state),this.enter(state);}update(state){this.enter(state);}didRender(state,bounds){if(this.stack.current!==state)throw new Error(`BUG: expecting ${this.stack.current}, got ${state}`);this.nodeFor(state).bounds=bounds,this.exit();}willDestroy(state){expect(this.refs.get(state),\"BUG: missing ref\").release();}commit(){this.reset();}capture(){return this.captureRefs(this.roots);}reset(){if(0!==this.stack.size){// We probably encountered an error during the rendering loop. This will\n// likely trigger undefined behavior and memory leaks as the error left\n// things in an inconsistent state. It is recommended that the user\n// refresh the page.\n// TODO: We could warn here? But this happens all the time in our tests?\n// Clean up the root reference to prevent errors from happening if we\n// attempt to capture the render tree (Ember Inspector may do this)\nlet root=expect(this.stack.toArray()[0],\"expected root state when resetting render tree\"),ref=this.refs.get(root);for(void 0!==ref&&this.roots.delete(ref);!this.stack.isEmpty();)this.stack.pop();}}enter(state){this.stack.push(state);}exit(){if(0===this.stack.size)throw new Error(\"BUG: unbalanced pop\");this.stack.pop();}nodeFor(state){return expect(this.nodes.get(state),\"BUG: missing node\");}appendChild(node,state){if(this.refs.has(state))throw new Error(\"BUG: child already appended\");let parent=this.stack.current,ref=new Ref(state);if(this.refs.set(state,ref),parent){let parentNode=this.nodeFor(parent);parentNode.refs.add(ref),node.parent=parentNode;}else this.roots.add(ref);}captureRefs(refs){let captured=[];return refs.forEach(ref=>{let state=ref.get();state?captured.push(this.captureNode(`render-node:${ref.id}`,state)):refs.delete(ref);}),captured;}captureNode(id,state){let node=this.nodeFor(state),{type:type,name:name,args:args,instance:instance,refs:refs}=node,template=this.captureTemplate(node),bounds=this.captureBounds(node),children=this.captureRefs(refs);return{id:id,type:type,name:name,args:reifyArgsDebug(args),instance:instance,template:template,bounds:bounds,children:children};}captureTemplate(_ref112){let{template:template}=_ref112;return template||null;}captureBounds(node){let bounds=expect(node.bounds,\"BUG: missing bounds\");return{parentElement:bounds.parentElement(),firstNode:bounds.firstNode(),lastNode:bounds.lastNode()};}}const TRANSACTION=Symbol(\"TRANSACTION\");class TransactionImpl{constructor(){_defineProperty(this,\"scheduledInstallModifiers\",[]);_defineProperty(this,\"scheduledUpdateModifiers\",[]);_defineProperty(this,\"createdComponents\",[]);_defineProperty(this,\"updatedComponents\",[]);}didCreate(component){this.createdComponents.push(component);}didUpdate(component){this.updatedComponents.push(component);}scheduleInstallModifier(modifier){this.scheduledInstallModifiers.push(modifier);}scheduleUpdateModifier(modifier){this.scheduledUpdateModifiers.push(modifier);}commit(){let{createdComponents:createdComponents,updatedComponents:updatedComponents}=this;for(const{manager:manager,state:state}of createdComponents)manager.didCreate(state);for(const{manager:manager,state:state}of updatedComponents)manager.didUpdate(state);let{scheduledInstallModifiers:scheduledInstallModifiers,scheduledUpdateModifiers:scheduledUpdateModifiers}=this;for(const{manager:manager,state:state,definition:definition}of scheduledInstallModifiers){let modifierTag=manager.getTag(state);if(null!==modifierTag){let tag=track(()=>manager.install(state),`- While rendering:\\n  (instance of a \\`${definition.resolvedName||manager.getDebugName(definition.state)}\\` modifier)`);UPDATE_TAG(modifierTag,tag);}else manager.install(state);}for(const{manager:manager,state:state,definition:definition}of scheduledUpdateModifiers){let modifierTag=manager.getTag(state);if(null!==modifierTag){let tag=track(()=>manager.update(state),`- While rendering:\\n  (instance of a \\`${definition.resolvedName||manager.getDebugName(definition.state)}\\` modifier)`);UPDATE_TAG(modifierTag,tag);}else manager.update(state);}}}class EnvironmentImpl{constructor(options,delegate){_defineProperty(this,TRANSACTION,null);_defineProperty(this,\"updateOperations\",void 0);// Delegate methods and values\n_defineProperty(this,\"isInteractive\",void 0);_defineProperty(this,\"isArgumentCaptureError\",void 0);_defineProperty(this,\"debugRenderTree\",void 0);if(this.delegate=delegate,this.isInteractive=delegate.isInteractive,this.debugRenderTree=this.delegate.enableDebugTooling?new DebugRenderTreeImpl():void 0,this.isArgumentCaptureError=this.delegate.enableDebugTooling?isArgumentError:void 0,options.appendOperations)this.appendOperations=options.appendOperations,this.updateOperations=options.updateOperations;else if(options.document)this.appendOperations=new DOMTreeConstruction(options.document),this.updateOperations=new DOMChangesImpl(options.document);else throw new Error(\"you must pass document or appendOperations to a new runtime\");}getAppendOperations(){return this.appendOperations;}getDOM(){return expect(this.updateOperations,\"Attempted to get DOM updateOperations, but they were not provided by the environment. You may be attempting to rerender in an environment which does not support rerendering, such as SSR.\");}begin(){var _this$debugRenderTree;debugAssert(!this[TRANSACTION],\"A glimmer transaction was begun, but one already exists. You may have a nested transaction, possibly caused by an earlier runtime exception while rendering. Please check your console for the stack trace of any prior exceptions.\"),(_this$debugRenderTree=this.debugRenderTree)!==null&&_this$debugRenderTree!==void 0&&_this$debugRenderTree.begin(),this[TRANSACTION]=new TransactionImpl();}get transaction(){return expect(this[TRANSACTION],\"must be in a transaction\");}didCreate(component){this.transaction.didCreate(component);}didUpdate(component){this.transaction.didUpdate(component);}scheduleInstallModifier(modifier){this.isInteractive&&this.transaction.scheduleInstallModifier(modifier);}scheduleUpdateModifier(modifier){this.isInteractive&&this.transaction.scheduleUpdateModifier(modifier);}commit(){var _this$debugRenderTree2;let transaction=this.transaction;this[TRANSACTION]=null,transaction.commit(),(_this$debugRenderTree2=this.debugRenderTree)!==null&&_this$debugRenderTree2!==void 0&&_this$debugRenderTree2.commit(),this.delegate.onTransactionCommit();}}function runtimeContext(options,delegate,artifacts,resolver){return{env:new EnvironmentImpl(options,delegate),program:new RuntimeProgramImpl(artifacts.constants,artifacts.heap),resolver:resolver};}function inTransaction(env,block){if(env[TRANSACTION])block();else{env.begin();try{block();}finally{env.commit();}}}function internalHelper$1(helper){return setInternalHelperManager(helper,{});}/**\n             Use the `{{array}}` helper to create an array to pass as an option to your\n             components.\n\n             ```handlebars\n             <MyComponent @people={{array\n               'Tom Dale'\n               'Yehuda Katz'\n               this.myOtherPerson}}\n             />\n             ```\n              or\n             ```handlebars\n             {{my-component people=(array\n               'Tom Dale'\n               'Yehuda Katz'\n               this.myOtherPerson)\n             }}\n             ```\n\n             Would result in an object such as:\n\n             ```js\n             ['Tom Dale', 'Yehuda Katz', this.get('myOtherPerson')]\n             ```\n\n             Where the 3rd item in the array is bound to updates of the `myOtherPerson` property.\n\n             @method array\n             @param {Array} options\n             @return {Array} Array\n             @public\n           */const array$1=internalHelper$1(_ref113=>{let{positional:positional}=_ref113;return createComputeRef(()=>reifyPositional(positional),null,\"array\");}),normalizeTextValue=value=>(value=>null==value||\"function\"!=typeof value.toString)(value)?\"\":String(value),concat$1=internalHelper$1(_ref114=>{let{positional:positional}=_ref114;return createComputeRef(()=>reifyPositional(positional).map(normalizeTextValue).join(\"\"),null,\"concat\");}),context=buildUntouchableThis(\"`fn` helper\"),fn$1=internalHelper$1(_ref115=>{let{positional:positional}=_ref115;let callbackRef=positional[0];return createComputeRef(()=>function(){let[fn,...args]=reifyPositional(positional);for(var _len38=arguments.length,invocationArgs=new Array(_len38),_key39=0;_key39<_len38;_key39++){invocationArgs[_key39]=arguments[_key39];}if(function(callbackRef){if(!callbackRef||!isInvokableRef(callbackRef)&&\"function\"!=typeof valueForRef(callbackRef))throw new Error(`You must pass a function as the \\`fn\\` helper's first argument, you passed ${callbackRef?valueForRef(callbackRef):callbackRef}. While rendering:\\n\\n${callbackRef===null||callbackRef===void 0?void 0:callbackRef.debugLabel}`);}/**\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                For example, these two usages are equivalent:\n                ```app/components/developer-detail.js\n                import Component from '@glimmer/component';\n                import { tracked } from '@glimmer/tracking';\n                export default class extends Component {\n                @tracked developer = {\n                name: \"Sandi Metz\",\n                language: \"Ruby\"\n                }\n                }\n                ```\n                ```handlebars\n                {{this.developer.name}}\n                {{get this.developer \"name\"}}\n                ```\n                If there were several facts about a person, the `{{get}}` helper can dynamically\n                pick one:\n                ```app/templates/application.hbs\n                <DeveloperDetail @factName=\"language\" />\n                ```\n                ```handlebars\n                {{get this.developer @factName}}\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                ```app/components/developer-detail.js\n                import Component from '@glimmer/component';\n                import { tracked } from '@glimmer/tracking';\n                export default class extends Component {\n                @tracked developer = {\n                name: \"Sandi Metz\",\n                language: \"Ruby\"\n                }\n                @tracked currentFact = 'name'\n                showFact = (fact) => {\n                this.currentFact = fact;\n                }\n                }\n                ```\n                ```app/components/developer-detail.js\n                {{get this.developer this.currentFact}}\n                <button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n                <button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\n                ```\n                The `{{get}}` helper can also respect mutable values itself. For example:\n                ```app/components/developer-detail.js\n                <Input @value={{mut (get this.person this.currentFact)}} />\n                <button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n                <button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\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                @public\n                @method get\n                */(callbackRef),isInvokableRef(callbackRef)){let value=args.length>0?args[0]:invocationArgs[0];return updateRef(callbackRef,value);}return fn.call(context,...args,...invocationArgs);},null,\"fn\");}),get$1=internalHelper$1(_ref116=>{var _positional$,_positional$2;let{positional:positional}=_ref116;let sourceRef=(_positional$=positional[0])!==null&&_positional$!==void 0?_positional$:UNDEFINED_REFERENCE,pathRef=(_positional$2=positional[1])!==null&&_positional$2!==void 0?_positional$2:UNDEFINED_REFERENCE;return createComputeRef(()=>{let source=valueForRef(sourceRef);if(isDict(source))return getPath$1(source,String(valueForRef(pathRef)));},value=>{let source=valueForRef(sourceRef);if(isDict(source))return setPath(source,String(valueForRef(pathRef)),value);},\"get\");}),hash$1=internalHelper$1(_ref117=>{let{named:named}=_ref117;let ref=createComputeRef(()=>reifyNamed(named),null,\"hash\"),children=new Map();// Setup the children so that templates can bypass getting the value of\n// the reference and treat children lazily\nfor(let name in named)children.set(name,named[name]);return ref.children=children,ref;});let ARGS_CACHES=new WeakMap();function getArgs(proxy){return getValue(ARGS_CACHES.get(proxy));}class SimpleArgsProxy{constructor(context){let computeArgs=arguments.length>1&&arguments[1]!==undefined?arguments[1]:()=>EMPTY_ARGS;_defineProperty(this,\"argsCache\",void 0);let argsCache=createCache(()=>computeArgs(context));ARGS_CACHES.set(this,argsCache),Object.freeze(this);}get named(){return getArgs(this).named||EMPTY_NAMED;}get positional(){return getArgs(this).positional||EMPTY_POSITIONAL;}}////////////\nfunction invokeHelper$1(context,definition,computeArgs){if(\"object\"!=typeof context||null===context)throw new Error(`Expected a context object to be passed as the first parameter to invokeHelper, got ${context}`);const owner=getOwner$3(context),internalManager=getInternalHelperManager(definition);// TODO: figure out why assert isn't using the TS assert thing\nif(!internalManager)throw new Error(`Expected a helper definition to be passed as the second parameter to invokeHelper, but no helper manager was found. The definition value that was passed was \\`${debugToString$1(definition)}\\`. Did you use setHelperManager to associate a helper manager with this value?`);if(\"function\"==typeof internalManager)throw new Error(\"Found a helper manager, but it was an internal built-in helper manager. `invokeHelper` does not support internal helpers yet.\");const manager=internalManager.getDelegateFor(owner);let cache,args=new SimpleArgsProxy(context,computeArgs),bucket=manager.createHelper(definition,args);if(!hasValue(manager))throw new Error(\"TODO: unreachable, to be implemented with hasScheduledEffect\");if(cache=createCache(()=>{if(isDestroying(cache)||isDestroyed(cache))throw new Error(\"You attempted to get the value of a helper after the helper was destroyed, which is not allowed\");return manager.getValue(bucket);}),associateDestroyableChild(context,cache),hasDestroyable(manager)){let destroyable=manager.getDestroyable(bucket);associateDestroyableChild(cache,destroyable);}return cache;}const untouchableContext=buildUntouchableThis(\"`on` modifier\");class OnModifierState{constructor(element,args){_defineProperty(this,\"tag\",createUpdatableTag());_defineProperty(this,\"element\",void 0);_defineProperty(this,\"args\",void 0);_defineProperty(this,\"listener\",null);this.element=element,this.args=args,registerDestructor$1(this,()=>{let{element:element,listener:listener}=this;if(listener){let{eventName:eventName,callback:callback,options:options}=listener;removeEventListener(element,eventName,callback,options);}});}// Update this.listener if needed\nupdateListener(){let{element:element,args:args,listener:listener}=this;debugAssert(args.positional[0],\"You must pass a valid DOM event name as the first argument to the `on` modifier\");let eventName=valueForRef(args.positional[0]);debugAssert(args.positional[1],\"You must pass a function as the second argument to the `on` modifier\");let once,passive,capture,userProvidedCallback=valueForRef(args.positional[1]);if(2!==args.positional.length)throw new Error(`You can only pass two positional arguments (event name and callback) to the \\`on\\` modifier, but you provided ${args.positional.length}. Consider using the \\`fn\\` helper to provide additional arguments to the \\`on\\` callback.`);{let{once:_once,passive:_passive,capture:_capture,...extra}=reifyNamed(args.named);if(once=_once,passive=_passive,capture=_capture,Object.keys(extra).length>0)throw new Error(`You can only \\`once\\`, \\`passive\\` or \\`capture\\` named arguments to the \\`on\\` modifier, but you provided ${Object.keys(extra).join(\", \")}.`);}let options,shouldUpdate=!1;if(shouldUpdate=null===listener||eventName!==listener.eventName||userProvidedCallback!==listener.userProvidedCallback||once!==listener.once||passive!==listener.passive||capture!==listener.capture,// we want to handle both `true` and `false` because both have a meaning:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=770208\nshouldUpdate&&(void 0===once&&void 0===passive&&void 0===capture||(options={once:once,passive:passive,capture:capture})),shouldUpdate){let callback=userProvidedCallback;if(callback=userProvidedCallback.bind(untouchableContext),passive){let _callback=callback;callback=event=>(event.preventDefault=()=>{var _userProvidedCallback;throw new Error(`You marked this listener as 'passive', meaning that you must not call 'event.preventDefault()': \\n\\n${(_userProvidedCallback=userProvidedCallback.name)!==null&&_userProvidedCallback!==void 0?_userProvidedCallback:\"{anonymous function}\"}`);},_callback(event));}this.listener={eventName:eventName,callback:callback,userProvidedCallback:userProvidedCallback,once:once,passive:passive,capture:capture,options:options},listener&&removeEventListener(element,listener.eventName,listener.callback,listener.options),function(element,eventName,callback,options){adds++,element.addEventListener(eventName,callback,options);}/**\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                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                ```app/components/like-post.hbs\n                <button {{on 'click' this.saveLike}}>Like this post!</button>\n                ```\n                ```app/components/like-post.js\n                import Component from '@glimmer/component';\n                import { action } from '@ember/object';\n                export default class LikePostComponent extends Component {\n                saveLike = () => {\n                // someone likes your post!\n                // better send a request off to your server...\n                }\n                }\n                ```\n                ### Arguments\n                `{{on}}` accepts two positional arguments, and a few named arguments.\n                The positional arguments are:\n                - `event` -- the name to use when calling `addEventListener`\n                - `callback` -- the function to be passed to `addEventListener`\n                The named arguments are:\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                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                If you would like to pass additional arguments to the function you should use\n                the `{{fn}}` helper.\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                ```app/components/like-post.hbs\n                <button {{on 'click' (fn this.saveLike @post)}}>Like this post!</button>\n                ```\n                In this case, the `saveLike` function will receive two arguments: the click event\n                and the value of `@post`.\n                ### Function Context\n                In the example above, we used an arrow function to ensure that `likePost` is\n                properly bound to the `items-list`, but let's explore what happens if we\n                left out the arrow function:\n                ```app/components/like-post.js\n                import Component from '@glimmer/component';\n                export default class LikePostComponent extends Component {\n                saveLike() {\n                // ...snip...\n                }\n                }\n                ```\n                In this example, when the button is clicked `saveLike` will be invoked,\n                it will **not** have access to the component instance. In other\n                words, it will have no `this` context, so please make sure your functions\n                are bound (via an arrow function or other means) before passing into `on`!\n                @method on\n                @public\n                */(element,eventName,callback,options);}}}let adds=0,removes=0;function removeEventListener(element,eventName,callback,options){removes++,element.removeEventListener(eventName,callback,options);}const on$1=setInternalModifierManager(new class{getDebugName(){return\"on\";}getDebugInstance(){return null;}get counters(){return{adds:adds,removes:removes};}create(_owner,element,_state,args){return new OnModifierState(element,args);}getTag(_ref118){let{tag:tag}=_ref118;return tag;}install(state){state.updateListener();}update(state){state.updateListener();}getDestroyable(state){return state;}}(),{});class LowLevelVM{constructor(stack,heap,program,externs,registers){_defineProperty(this,\"currentOpSize\",0);this.stack=stack,this.heap=heap,this.program=program,this.externs=externs,this.registers=registers;}fetchRegister(register){return this.registers[register];}loadRegister(register,value){this.registers[register]=value;}setPc(pc){debugAssert(\"number\"==typeof pc&&!isNaN(pc),\"pc is set to a number\"),this.registers[$pc]=pc;}// Start a new frame and save $ra and $fp on the stack\npushFrame(){this.stack.push(this.registers[$ra]),this.stack.push(this.registers[$fp]),this.registers[$fp]=this.registers[$sp]-1;}// Restore $ra, $sp and $fp\npopFrame(){this.registers[$sp]=this.registers[$fp]-1,this.registers[$ra]=this.stack.get(0),this.registers[$fp]=this.stack.get(1);}pushSmallFrame(){this.stack.push(this.registers[$ra]);}popSmallFrame(){this.registers[$ra]=this.stack.pop();}// Jump to an address in `program`\ngoto(offset){this.setPc(this.target(offset));}target(offset){return this.registers[$pc]+offset-this.currentOpSize;}// Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\ncall(handle){debugAssert(handle<4294967295,\"Jumping to placeholder address\"),this.registers[$ra]=this.registers[$pc],this.setPc(this.heap.getaddr(handle));}// Put a specific `program` address in $ra\nreturnTo(offset){this.registers[$ra]=this.target(offset);}// Return to the `program` address stored in $ra\nreturn(){this.setPc(this.registers[$ra]);}nextStatement(){let{registers:registers,program:program}=this,pc=registers[$pc];if(debugAssert(\"number\"==typeof pc,\"pc is a number\"),-1===pc)return null;// 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.\nlet opcode=program.opcode(pc),operationSize=this.currentOpSize=opcode.size;return this.registers[$pc]+=operationSize,opcode;}evaluateOuter(opcode,vm){this.evaluateInner(opcode,vm);}evaluateInner(opcode,vm){opcode.isMachine?this.evaluateMachine(opcode):this.evaluateSyscall(opcode,vm);}evaluateMachine(opcode){switch(opcode.type){case MachineOp.PushFrame:return this.pushFrame();case MachineOp.PopFrame:return this.popFrame();case MachineOp.InvokeStatic:return this.call(opcode.op1);case MachineOp.InvokeVirtual:return this.call(this.stack.pop());case MachineOp.Jump:return this.goto(opcode.op1);case MachineOp.Return:return this.return();case MachineOp.ReturnTo:return this.returnTo(opcode.op1);}}evaluateSyscall(opcode,vm){APPEND_OPCODES.evaluate(vm,opcode,opcode.type);}}class UpdatingVM{constructor(env,_ref119){let{alwaysRevalidate=!1}=_ref119;_defineProperty(this,\"env\",void 0);_defineProperty(this,\"dom\",void 0);_defineProperty(this,\"alwaysRevalidate\",void 0);_defineProperty(this,\"frameStack\",new StackImpl());this.env=env,this.dom=env.getDOM(),this.alwaysRevalidate=alwaysRevalidate;}execute(opcodes,handler){{let hasErrored=!0;try{debug$1.runInTrackingTransaction(()=>this._execute(opcodes,handler),\"- While rendering:\"),// using a boolean here to avoid breaking ergonomics of \"pause on uncaught exceptions\"\n// which would happen with a `catch` + `throw`\nhasErrored=!1;}finally{hasErrored&&// eslint-disable-next-line no-console\nconsole.error(`\\n\\nError occurred:\\n\\n${resetTracking()}\\n\\n`);}}}_execute(opcodes,handler){let{frameStack:frameStack}=this;for(this.try(opcodes,handler);!frameStack.isEmpty();){let opcode=this.frame.nextStatement();void 0!==opcode?opcode.evaluate(this):frameStack.pop();}}get frame(){return expect(this.frameStack.current,\"bug: expected a frame\");}goto(index){this.frame.goto(index);}try(ops,handler){this.frameStack.push(new UpdatingVMFrame(ops,handler));}throw(){this.frame.handleException(),this.frameStack.pop();}}class ResumableVMStateImpl{constructor(state,resumeCallback){this.state=state,this.resumeCallback=resumeCallback;}resume(runtime,builder){return this.resumeCallback(runtime,this.state,builder);}}class BlockOpcode{constructor(state,runtime,bounds,children){_defineProperty(this,\"children\",void 0);_defineProperty(this,\"bounds\",void 0);this.state=state,this.runtime=runtime,this.children=children,this.bounds=bounds;}parentElement(){return this.bounds.parentElement();}firstNode(){return this.bounds.firstNode();}lastNode(){return this.bounds.lastNode();}evaluate(vm){vm.try(this.children,null);}}class TryOpcode extends BlockOpcode{constructor(){super(...arguments);_defineProperty(this,\"type\",\"try\");}// Hides property on base class\nevaluate(vm){vm.try(this.children,this);}handleException(){let{state:state,bounds:bounds,runtime:runtime}=this;destroyChildren(this);let elementStack=NewElementBuilder.resume(runtime.env,bounds),vm=state.resume(runtime,elementStack),updating=[],children=this.children=[],result=vm.execute(vm=>{vm.pushUpdating(updating),vm.updateWith(this),vm.pushUpdating(children);});associateDestroyableChild(this,result.drop);}}class ListItemOpcode extends TryOpcode{constructor(state,runtime,bounds,key,memo,value){super(state,runtime,bounds,[]),_defineProperty(this,\"retained\",!1),_defineProperty(this,\"index\",-1),this.key=key,this.memo=memo,this.value=value;}updateReferences(item){this.retained=!0,updateRef(this.value,item.value),updateRef(this.memo,item.memo);}shouldRemove(){return!this.retained;}reset(){this.retained=!1;}}class ListBlockOpcode extends BlockOpcode{constructor(state,runtime,bounds,children,iterableRef){super(state,runtime,bounds,children),_defineProperty(this,\"type\",\"list-block\"),_defineProperty(this,\"opcodeMap\",new Map()),_defineProperty(this,\"marker\",null),_defineProperty(this,\"lastIterator\",void 0),this.iterableRef=iterableRef,this.lastIterator=valueForRef(iterableRef);}initializeChild(opcode){opcode.index=this.children.length-1,this.opcodeMap.set(opcode.key,opcode);}evaluate(vm){let iterator=valueForRef(this.iterableRef);if(this.lastIterator!==iterator){let{bounds:bounds}=this,{dom:dom}=vm,marker=this.marker=dom.createComment(\"\");dom.insertAfter(bounds.parentElement(),marker,expect(bounds.lastNode(),\"can't insert after an empty bounds\")),this.sync(iterator),this.parentElement().removeChild(marker),this.marker=null,this.lastIterator=iterator;}// Run now-updated updating opcodes\nsuper.evaluate(vm);}sync(iterator){let{opcodeMap:itemMap,children:children}=this,currentOpcodeIndex=0,seenIndex=0;// eslint-disable-next-line no-constant-condition\nfor(this.children=this.bounds.boundList=[];;){let item=iterator.next();if(null===item)break;let opcode=children[currentOpcodeIndex],{key:key}=item;// Items that have already been found and moved will already be retained,\n// we can continue until we find the next unretained item\nfor(;void 0!==opcode&&!0===opcode.retained;)opcode=children[++currentOpcodeIndex];if(void 0!==opcode&&opcode.key===key)this.retainItem(opcode,item),currentOpcodeIndex++;else if(itemMap.has(key)){let itemOpcode=itemMap.get(key);// The item opcode was seen already, so we should move it.\nif(itemOpcode.index<seenIndex)this.moveItem(itemOpcode,item,opcode);else{// 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.\nseenIndex=itemOpcode.index;let seenUnretained=!1;// 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.\nfor(let i=currentOpcodeIndex+1;i<seenIndex;i++)if(!1===unwrap$1(children[i]).retained){seenUnretained=!0;break;}// 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!1===seenUnretained?(this.retainItem(itemOpcode,item),currentOpcodeIndex=seenIndex+1):(this.moveItem(itemOpcode,item,opcode),currentOpcodeIndex++);}}else this.insertItem(item,opcode);}for(const opcode of children)!1===opcode.retained?this.deleteItem(opcode):opcode.reset();}retainItem(opcode,item){let{children:children}=this;updateRef(opcode.memo,item.memo),updateRef(opcode.value,item.value),opcode.retained=!0,opcode.index=children.length,children.push(opcode);}insertItem(item,before){let{opcodeMap:opcodeMap,bounds:bounds,state:state,runtime:runtime,children:children}=this,{key:key}=item,nextSibling=void 0===before?this.marker:before.firstNode(),elementStack=NewElementBuilder.forInitialRender(runtime.env,{element:bounds.parentElement(),nextSibling:nextSibling});state.resume(runtime,elementStack).execute(vm=>{vm.pushUpdating();let opcode=vm.enterItem(item);opcode.index=children.length,children.push(opcode),opcodeMap.set(key,opcode),associateDestroyableChild(this,opcode);});}moveItem(opcode,item,before){let currentSibling,nextSibling,{children:children}=this;updateRef(opcode.memo,item.memo),updateRef(opcode.value,item.value),opcode.retained=!0,void 0===before?move(opcode,this.marker):(currentSibling=opcode.lastNode().nextSibling,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.\ncurrentSibling!==nextSibling&&move(opcode,nextSibling)),opcode.index=children.length,children.push(opcode);}deleteItem(opcode){destroy(opcode),clear(opcode),this.opcodeMap.delete(opcode.key);}}class UpdatingVMFrame{constructor(ops,exceptionHandler){_defineProperty(this,\"current\",0);this.ops=ops,this.exceptionHandler=exceptionHandler;}goto(index){this.current=index;}nextStatement(){return this.ops[this.current++];}handleException(){this.exceptionHandler&&this.exceptionHandler.handleException();}}class RenderResultImpl{constructor(env,updating,bounds,drop){this.env=env,this.updating=updating,this.bounds=bounds,this.drop=drop,associateDestroyableChild(this,drop),registerDestructor$1(this,()=>clear(this.bounds));}rerender(){let{alwaysRevalidate=!1}=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{alwaysRevalidate:!1};let{env:env,updating:updating}=this;new UpdatingVM(env,{alwaysRevalidate:alwaysRevalidate}).execute(updating,this);}parentElement(){return this.bounds.parentElement();}firstNode(){return this.bounds.firstNode();}lastNode(){return this.bounds.lastNode();}handleException(){throw\"this should never happen\";}}class EvaluationStackImpl{static restore(snapshot){return new this(snapshot.slice(),[0,-1,snapshot.length-1,0]);}// fp -> sp\nconstructor(){let stack=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];let registers=arguments.length>1?arguments[1]:undefined;_defineProperty(this,REGISTERS,void 0);this.stack=stack,this[REGISTERS]=registers;}push(value){this.stack[++this[REGISTERS][$sp]]=value;}dup(){let position=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this[REGISTERS][$sp];this.stack[++this[REGISTERS][$sp]]=this.stack[position];}copy(from,to){this.stack[to]=this.stack[from];}pop(){let n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;let top=this.stack[this[REGISTERS][$sp]];return this[REGISTERS][$sp]-=n,top;}peek(){let offset=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;return this.stack[this[REGISTERS][$sp]-offset];}get(offset){let base=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this[REGISTERS][$fp];return this.stack[base+offset];}set(value,offset){let base=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this[REGISTERS][$fp];this.stack[base+offset]=value;}slice(start,end){return this.stack.slice(start,end);}capture(items){let end=this[REGISTERS][$sp]+1,start=end-items;return this.stack.slice(start,end);}reset(){this.stack.length=0;}toArray(){return this.stack.slice(this[REGISTERS][$fp],this[REGISTERS][$sp]+1);}}/**\n           * This interface is used by internal opcodes, and is more stable than\n           * the implementation of the Append VM itself.\n           */class Stacks{constructor(){_defineProperty(this,\"scope\",new StackImpl());_defineProperty(this,\"dynamicScope\",new StackImpl());_defineProperty(this,\"updating\",new StackImpl());_defineProperty(this,\"cache\",new StackImpl());_defineProperty(this,\"list\",new StackImpl());}}class VM{get stack(){return this[INNER_VM].stack;}/* Registers */get pc(){return this[INNER_VM].fetchRegister($pc);}// Fetch a value from a register onto the stack\nfetch(register){let value=this.fetchValue(register);this.stack.push(value);}// Load a value from the stack into a register\nload(register){let value=this.stack.pop();this.loadValue(register,value);}// Fetch a value from a register\nfetchValue(register){if(isLowLevelRegister(register))return this[INNER_VM].fetchRegister(register);switch(register){case $s0:return this.s0;case $s1:return this.s1;case $t0:return this.t0;case $t1:return this.t1;case $v0:return this.v0;}}// Load a value into a register\nloadValue(register,value){switch(isLowLevelRegister(register)&&this[INNER_VM].loadRegister(register,value),register){case $s0:this.s0=value;break;case $s1:this.s1=value;break;case $t0:this.t0=value;break;case $t1:this.t1=value;break;case $v0:this.v0=value;}}/**\n            * Migrated to Inner\n            */// Start a new frame and save $ra and $fp on the stack\npushFrame(){this[INNER_VM].pushFrame();}// Restore $ra, $sp and $fp\npopFrame(){this[INNER_VM].popFrame();}// Jump to an address in `program`\ngoto(offset){this[INNER_VM].goto(offset);}// Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\ncall(handle){this[INNER_VM].call(handle);}// Put a specific `program` address in $ra\nreturnTo(offset){this[INNER_VM].returnTo(offset);}// Return to the `program` address stored in $ra\nreturn(){this[INNER_VM].return();}/**\n            * End of migrated.\n            */constructor(runtime,_ref120,elementStack,context){let{pc:pc,scope:scope,dynamicScope:dynamicScope,stack:stack}=_ref120;_defineProperty(this,STACKS,new Stacks());_defineProperty(this,HEAP,void 0);_defineProperty(this,\"destructor\",void 0);_defineProperty(this,DESTROYABLE_STACK,new StackImpl());_defineProperty(this,CONSTANTS,void 0);_defineProperty(this,ARGS$1,void 0);_defineProperty(this,INNER_VM,void 0);_defineProperty(this,\"s0\",null);_defineProperty(this,\"s1\",null);_defineProperty(this,\"t0\",null);_defineProperty(this,\"t1\",null);_defineProperty(this,\"v0\",null);_defineProperty(this,\"resume\",void 0);this.runtime=runtime,this.elementStack=elementStack,this.context=context,assertGlobalContextWasSet(),this.resume=initVM(context);let evalStack=EvaluationStackImpl.restore(stack);debugAssert(\"number\"==typeof pc,\"pc is a number\"),evalStack[REGISTERS][$pc]=pc,evalStack[REGISTERS][$sp]=stack.length-1,evalStack[REGISTERS][$fp]=-1,this[HEAP]=this.program.heap,this[CONSTANTS]=this.program.constants,this.elementStack=elementStack,this[STACKS].scope.push(scope),this[STACKS].dynamicScope.push(dynamicScope),this[ARGS$1]=new VMArgumentsImpl(),this[INNER_VM]=new LowLevelVM(evalStack,this[HEAP],runtime.program,{debugBefore:opcode=>APPEND_OPCODES.debugBefore(this,opcode),debugAfter:state=>{APPEND_OPCODES.debugAfter(this,state);}},evalStack[REGISTERS]),this.destructor={},this[DESTROYABLE_STACK].push(this.destructor);}static initial(runtime,context,_ref121){let{handle:handle,self:self,dynamicScope:dynamicScope,treeBuilder:treeBuilder,numSymbols:numSymbols,owner:owner}=_ref121;let scope=PartialScopeImpl.root(self,numSymbols,owner),state=vmState(runtime.program.heap.getaddr(handle),scope,dynamicScope),vm=initVM(context)(runtime,state,treeBuilder);return vm.pushUpdating(),vm;}static empty(runtime,_ref122,context){let{handle:handle,treeBuilder:treeBuilder,dynamicScope:dynamicScope,owner:owner}=_ref122;let vm=initVM(context)(runtime,vmState(runtime.program.heap.getaddr(handle),PartialScopeImpl.root(UNDEFINED_REFERENCE,0,owner),dynamicScope),treeBuilder);return vm.pushUpdating(),vm;}compile(block){return unwrapHandle(block.compile(this.context));}get program(){return this.runtime.program;}get env(){return this.runtime.env;}captureState(args){let pc=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this[INNER_VM].fetchRegister($pc);return{pc:pc,scope:this.scope(),dynamicScope:this.dynamicScope(),stack:this.stack.capture(args)};}capture(args){let pc=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this[INNER_VM].fetchRegister($pc);return new ResumableVMStateImpl(this.captureState(args,pc),this.resume);}beginCacheGroup(name){let opcodes=this.updating(),guard=new JumpIfNotModifiedOpcode();opcodes.push(guard),opcodes.push(new BeginTrackFrameOpcode(name)),this[STACKS].cache.push(guard),beginTrackFrame(name);}commitCacheGroup(){let opcodes=this.updating(),guard=expect(this[STACKS].cache.pop(),\"VM BUG: Expected a cache group\"),tag=endTrackFrame();opcodes.push(new EndTrackFrameOpcode(guard)),guard.finalize(tag,opcodes.length);}enter(args){let state=this.capture(args),block=this.elements().pushUpdatableBlock(),tryOpcode=new TryOpcode(state,this.runtime,block,[]);this.didEnter(tryOpcode);}enterItem(_ref123){let{key:key,value:value,memo:memo}=_ref123;let{stack:stack}=this,valueRef=createIteratorItemRef(value),memoRef=createIteratorItemRef(memo);stack.push(valueRef),stack.push(memoRef);let state=this.capture(2),block=this.elements().pushUpdatableBlock(),opcode=new ListItemOpcode(state,this.runtime,block,key,memoRef,valueRef);return this.didEnter(opcode),opcode;}registerItem(opcode){this.listBlock().initializeChild(opcode);}enterList(iterableRef,offset){let updating=[],addr=this[INNER_VM].target(offset),state=this.capture(0,addr),list=this.elements().pushBlockList(updating),opcode=new ListBlockOpcode(state,this.runtime,list,updating,iterableRef);this[STACKS].list.push(opcode),this.didEnter(opcode);}didEnter(opcode){this.associateDestroyable(opcode),this[DESTROYABLE_STACK].push(opcode),this.updateWith(opcode),this.pushUpdating(opcode.children);}exit(){this[DESTROYABLE_STACK].pop(),this.elements().popBlock(),this.popUpdating();}exitList(){this.exit(),this[STACKS].list.pop();}pushUpdating(){let list=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];this[STACKS].updating.push(list);}popUpdating(){return expect(this[STACKS].updating.pop(),\"can't pop an empty stack\");}updateWith(opcode){this.updating().push(opcode);}listBlock(){return expect(this[STACKS].list.current,\"expected a list block\");}associateDestroyable(child){let parent=expect(this[DESTROYABLE_STACK].current,\"Expected destructor parent\");associateDestroyableChild(parent,child);}tryUpdating(){return this[STACKS].updating.current;}updating(){return expect(this[STACKS].updating.current,\"expected updating opcode on the updating opcode stack\");}elements(){return this.elementStack;}scope(){return expect(this[STACKS].scope.current,\"expected scope on the scope stack\");}dynamicScope(){return expect(this[STACKS].dynamicScope.current,\"expected dynamic scope on the dynamic scope stack\");}pushChildScope(){this[STACKS].scope.push(this.scope().child());}pushDynamicScope(){let child=this.dynamicScope().child();return this[STACKS].dynamicScope.push(child),child;}pushRootScope(size,owner){let scope=PartialScopeImpl.sized(size,owner);return this[STACKS].scope.push(scope),scope;}pushScope(scope){this[STACKS].scope.push(scope);}popScope(){this[STACKS].scope.pop();}popDynamicScope(){this[STACKS].dynamicScope.pop();}/// SCOPE HELPERS\ngetOwner(){return this.scope().owner;}getSelf(){return this.scope().getSelf();}referenceForSymbol(symbol){return this.scope().getSymbol(symbol);}/// EXECUTION\nexecute(initialize){{let hasErrored=!0;try{let value=this._execute(initialize);// using a boolean here to avoid breaking ergonomics of \"pause on uncaught exceptions\"\n// which would happen with a `catch` + `throw`\nreturn hasErrored=!1,value;}finally{if(hasErrored){// 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.\nlet elements=this.elements();for(;elements.hasBlocks;)elements.popBlock();// eslint-disable-next-line no-console\nconsole.error(`\\n\\nError occurred:\\n\\n${resetTracking()}\\n\\n`);}}}}_execute(initialize){let result;initialize&&initialize(this);do{result=this.next();}while(!result.done);return result.value;}next(){let result,{env:env,elementStack:elementStack}=this,opcode=this[INNER_VM].nextStatement();return null!==opcode?(this[INNER_VM].evaluateOuter(opcode,this),result={done:!1,value:null}):(// Unload the stack\nthis.stack.reset(),result={done:!0,value:new RenderResultImpl(env,this.popUpdating(),elementStack.popBlock(),this.destructor)}),result;}bindDynamicScope(names){let scope=this.dynamicScope();for(const name of reverse(names))scope.set(name,this.stack.pop());}}function vmState(pc,scope,dynamicScope){return{pc:pc,scope:scope,dynamicScope:dynamicScope,stack:[]};}function initVM(context){return(runtime,state,builder)=>new VM(runtime,state,builder,context);}class TemplateIteratorImpl{constructor(vm){this.vm=vm;}next(){return this.vm.next();}sync(){return debug$1.runInTrackingTransaction(()=>this.vm.execute(),\"- While rendering:\");}}function renderSync(env,iterator){let result;return inTransaction(env,()=>result=iterator.sync()),result;}function renderMain(runtime,context,owner,self,treeBuilder,layout){let dynamicScope=arguments.length>6&&arguments[6]!==undefined?arguments[6]:new DynamicScopeImpl();let handle=unwrapHandle(layout.compile(context)),numSymbols=layout.symbolTable.symbols.length,vm=VM.initial(runtime,context,{self:self,dynamicScope:dynamicScope,treeBuilder:treeBuilder,handle:handle,numSymbols:numSymbols,owner:owner});return new TemplateIteratorImpl(vm);}function renderComponent(runtime,treeBuilder,context,owner,definition){let args=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};let dynamicScope=arguments.length>6&&arguments[6]!==undefined?arguments[6]:new DynamicScopeImpl();return function(vm,context,owner,definition,args){// Get a list of tuples of argument names and references, like\n// [['title', reference], ['name', reference]]\nconst argList=Object.keys(args).map(key=>[key,args[key]]),blockNames=[\"main\",\"else\",\"attrs\"],argNames=argList.map(_ref124=>{let[name]=_ref124;return`@${name}`;});let reified=vm[CONSTANTS].component(definition,owner);vm.pushFrame();// Push blocks on to the stack, three stack values per block\nfor(let i=0;i<3*blockNames.length;i++)vm.stack.push(null);vm.stack.push(null),// For each argument, push its backing reference on to the stack\nargList.forEach(_ref125=>{let[,reference]=_ref125;vm.stack.push(reference);}),// Configure VM based on blocks and args just pushed on to the stack.\nvm[ARGS$1].setup(vm.stack,argNames,blockNames,0,!0);const compilable=expect(reified.compilable,\"BUG: Expected the root component rendered with renderComponent to have an associated template, set with setComponentTemplate\"),invocation={handle:unwrapHandle(compilable.compile(context)),symbolTable:compilable.symbolTable};// Needed for the Op.Main opcode: arguments, component invocation object, and\n// component definition.\nreturn vm.stack.push(vm[ARGS$1]),vm.stack.push(invocation),vm.stack.push(reified),new TemplateIteratorImpl(vm);}(VM.empty(runtime,{treeBuilder:treeBuilder,handle:context.stdlib.main,dynamicScope:dynamicScope,owner:owner},context),context,owner,definition,function(record){const root=createConstRef(record,\"args\");return Object.keys(record).reduce((acc,key)=>(acc[key]=childRefFor(root,key),acc),{});}(args));}const SERIALIZATION_FIRST_NODE_STRING=\"%+b:0%\";function isSerializationFirstNode(node){return\"%+b:0%\"===node.nodeValue;}class RehydratingCursor extends CursorImpl{constructor(element,nextSibling,startingBlockDepth){super(element,nextSibling),_defineProperty(this,\"candidate\",null),_defineProperty(this,\"openBlockDepth\",void 0),_defineProperty(this,\"injectedOmittedNode\",!1),this.startingBlockDepth=startingBlockDepth,this.openBlockDepth=startingBlockDepth-1;}}class RehydrateBuilder extends NewElementBuilder{constructor(env,parentNode,nextSibling){if(super(env,parentNode,nextSibling),_defineProperty(this,\"unmatchedAttributes\",null),_defineProperty(this,\"blockDepth\",0),_defineProperty(this,\"startingBlockOffset\",void 0),nextSibling)throw new Error(\"Rehydration with nextSibling not supported\");let node=this.currentCursor.element.firstChild;for(;null!==node&&!isOpenBlock(node);)node=node.nextSibling;debugAssert(node,\"Must have opening comment for rehydration.\"),this.candidate=node;const startingBlockOffset=getBlockDepth(node);if(0!==startingBlockOffset){// We are rehydrating from a partial tree and not the root component\n// We need to add an extra block before the first block to rehydrate correctly\n// The extra block is needed since the renderComponent API creates a synthetic component invocation which generates the extra block\nconst newBlockDepth=startingBlockOffset-1,newCandidate=this.dom.createComment(`%+b:${newBlockDepth}%`);node.parentNode.insertBefore(newCandidate,this.candidate);let closingNode=node.nextSibling;for(;null!==closingNode&&(!isCloseBlock(closingNode)||getBlockDepth(closingNode)!==startingBlockOffset);)closingNode=closingNode.nextSibling;debugAssert(closingNode,\"Must have closing comment for starting block comment\");const newClosingBlock=this.dom.createComment(`%-b:${newBlockDepth}%`);node.parentNode.insertBefore(newClosingBlock,closingNode.nextSibling),this.candidate=newCandidate,this.startingBlockOffset=newBlockDepth;}else this.startingBlockOffset=0;}get currentCursor(){return this[CURSOR_STACK].current;}get candidate(){return this.currentCursor?this.currentCursor.candidate:null;}set candidate(node){this.currentCursor.candidate=node;}disableRehydration(nextSibling){const 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\ncurrentCursor.candidate=null,currentCursor.nextSibling=nextSibling;}enableRehydration(candidate){const currentCursor=this.currentCursor;currentCursor.candidate=candidate,currentCursor.nextSibling=null;}pushElement(element){let nextSibling=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;const cursor=new RehydratingCursor(element,nextSibling,this.blockDepth||0);/**\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              */null!==this.candidate&&(cursor.candidate=element.firstChild,this.candidate=element.nextSibling),this[CURSOR_STACK].push(cursor);}// clears until the end of the current container\n// either the current open block or higher\nclearMismatch(candidate){let current=candidate;const currentCursor=this.currentCursor;if(null!==currentCursor){const openBlockDepth=currentCursor.openBlockDepth;if(openBlockDepth>=currentCursor.startingBlockDepth)for(;current&&!(isCloseBlock(current)&&openBlockDepth>=getBlockDepthWithOffset(current,this.startingBlockOffset));)current=this.remove(current);else for(;null!==current;)current=this.remove(current);// current cursor parentNode should be openCandidate if element\n// or openCandidate.parentNode if comment\nthis.disableRehydration(current);}}__openBlock(){const{currentCursor:currentCursor}=this;if(null===currentCursor)return;const blockDepth=this.blockDepth;this.blockDepth++;const{candidate:candidate}=currentCursor;if(null===candidate)return;const{tagName:tagName}=currentCursor.element;isOpenBlock(candidate)&&getBlockDepthWithOffset(candidate,this.startingBlockOffset)===blockDepth?(this.candidate=this.remove(candidate),currentCursor.openBlockDepth=blockDepth):\"TITLE\"!==tagName&&\"SCRIPT\"!==tagName&&\"STYLE\"!==tagName&&this.clearMismatch(candidate);}__closeBlock(){const{currentCursor:currentCursor}=this;if(null===currentCursor)return;// openBlock is the last rehydrated open block\nconst openBlockDepth=currentCursor.openBlockDepth;// this currently is the expected next open block depth\nthis.blockDepth--;const{candidate:candidate}=currentCursor;let isRehydrating=!1;if(null!==candidate)//assert(\n//  openBlockDepth === this.blockDepth,\n//  'when rehydrating, openBlockDepth should match this.blockDepth here'\n//);\nif(isRehydrating=!0,isCloseBlock(candidate)&&getBlockDepthWithOffset(candidate,this.startingBlockOffset)===openBlockDepth){const nextSibling=this.remove(candidate);this.candidate=nextSibling,currentCursor.openBlockDepth--;}else// 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\nthis.clearMismatch(candidate),isRehydrating=!1;if(!1===isRehydrating){// check if nextSibling matches our expected close block\n// if so, we remove the close block comment and\n// restore rehydration after clearMismatch disabled\nconst nextSibling=currentCursor.nextSibling;if(null!==nextSibling&&isCloseBlock(nextSibling)&&getBlockDepthWithOffset(nextSibling,this.startingBlockOffset)===this.blockDepth){// restore rehydration state\nconst candidate=this.remove(nextSibling);this.enableRehydration(candidate),currentCursor.openBlockDepth--;}}}__appendNode(node){const{candidate:candidate}=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.\nreturn candidate||super.__appendNode(node);}__appendHTML(html){const candidateBounds=this.markerBounds();if(candidateBounds){const first=candidateBounds.firstNode(),last=candidateBounds.lastNode(),newBounds=new ConcreteBounds(this.element,first.nextSibling,last.previousSibling),possibleEmptyMarker=this.remove(first);return this.remove(last),null!==possibleEmptyMarker&&isEmpty$1(possibleEmptyMarker)&&(this.candidate=this.remove(possibleEmptyMarker),null!==this.candidate&&this.clearMismatch(this.candidate)),newBounds;}return super.__appendHTML(html);}remove(node){const element=expect(node.parentNode,\"cannot remove a detached node\"),next=node.nextSibling;return element.removeChild(node),next;}markerBounds(){const _candidate=this.candidate;if(_candidate&&isMarker(_candidate)){const first=_candidate;let last=expect(first.nextSibling,\"BUG: serialization markers must be paired\");for(;last&&!isMarker(last);)last=expect(last.nextSibling,\"BUG: serialization markers must be paired\");return new ConcreteBounds(this.element,first,last);}return null;}__appendText(string){const{candidate:candidate}=this;return candidate?3===candidate.nodeType?(candidate.nodeValue!==string&&(candidate.nodeValue=string),this.candidate=candidate.nextSibling,candidate):8===(node=candidate).nodeType&&\"%|%\"===node.nodeValue||isEmpty$1(candidate)&&\"\"===string?(this.candidate=this.remove(candidate),this.__appendText(string)):(this.clearMismatch(candidate),super.__appendText(string)):super.__appendText(string);var node;}__appendComment(string){const _candidate=this.candidate;return _candidate&&8===_candidate.nodeType?(_candidate.nodeValue!==string&&(_candidate.nodeValue=string),this.candidate=_candidate.nextSibling,_candidate):(_candidate&&this.clearMismatch(_candidate),super.__appendComment(string));}__openElement(tag){const _candidate=this.candidate;if(_candidate&&isElement(_candidate)&&function(candidate,tag){return candidate.namespaceURI===NS_SVG?candidate.tagName===tag:candidate.tagName===tag.toUpperCase();}(_candidate,tag))return this.unmatchedAttributes=[].slice.call(_candidate.attributes),_candidate;if(_candidate){if(isElement(_candidate)&&\"TBODY\"===_candidate.tagName)return this.pushElement(_candidate,null),this.currentCursor.injectedOmittedNode=!0,this.__openElement(tag);this.clearMismatch(_candidate);}return super.__openElement(tag);}__setAttribute(name,value,namespace){const unmatched=this.unmatchedAttributes;if(unmatched){const attr=findByName(unmatched,name);if(attr)return attr.value!==value&&(attr.value=value),void unmatched.splice(unmatched.indexOf(attr),1);}return super.__setAttribute(name,value,namespace);}__setProperty(name,value){const unmatched=this.unmatchedAttributes;if(unmatched){const attr=findByName(unmatched,name);if(attr)return attr.value!==value&&(attr.value=value),void unmatched.splice(unmatched.indexOf(attr),1);}return super.__setProperty(name,value);}__flushElement(parent,constructing){const{unmatchedAttributes:unmatched}=this;if(unmatched){for(const attr of unmatched)this.constructing.removeAttribute(attr.name);this.unmatchedAttributes=null;}else super.__flushElement(parent,constructing);}willCloseElement(){const{candidate:candidate,currentCursor:currentCursor}=this;null!==candidate&&this.clearMismatch(candidate),currentCursor&&currentCursor.injectedOmittedNode&&this.popElement(),super.willCloseElement();}getMarker(element,guid){const marker=element.querySelector(`script[glmr=\"${guid}\"]`);return marker?castToSimple(marker):null;}__pushRemoteElement(element,cursorId,insertBefore){const marker=this.getMarker(castToBrowser(element,\"HTML\"),cursorId);// when insertBefore is not present, we clear the element\nif(debugAssert(!marker||marker.parentNode===element,\"expected remote element marker's parent node to match remote element\"),void 0===insertBefore){for(;null!==element.firstChild&&element.firstChild!==marker;)this.remove(element.firstChild);insertBefore=null;}const cursor=new RehydratingCursor(element,null,this.blockDepth);this[CURSOR_STACK].push(cursor),null===marker?this.disableRehydration(insertBefore):this.candidate=this.remove(marker);const block=new RemoteLiveBlock(element);return this.pushLiveBlock(block,!0);}didAppendBounds(bounds){if(super.didAppendBounds(bounds),this.candidate){const last=bounds.lastNode();this.candidate=last&&last.nextSibling;}return bounds;}}function isOpenBlock(node){return node.nodeType===COMMENT_NODE&&0===node.nodeValue.lastIndexOf(\"%+b:\",0);}function isCloseBlock(node){return node.nodeType===COMMENT_NODE&&0===node.nodeValue.lastIndexOf(\"%-b:\",0);}function getBlockDepth(node){return parseInt(node.nodeValue.slice(4),10);}function getBlockDepthWithOffset(node,offset){return getBlockDepth(node)-offset;}function isElement(node){return 1===node.nodeType;}function isMarker(node){return 8===node.nodeType&&\"%glmr%\"===node.nodeValue;}function isEmpty$1(node){return 8===node.nodeType&&\"% %\"===node.nodeValue;}function findByName(array,name){for(const attr of array)if(attr.name===name)return attr;}function rehydrationBuilder(env,cursor){return RehydrateBuilder.forInitialRender(env,cursor);}const glimmerRuntime=/*#__PURE__*/Object.defineProperty({__proto__:null,ConcreteBounds,CurriedValue,CursorImpl,DOMChanges,DOMTreeConstruction,DynamicAttribute,DynamicScopeImpl,EMPTY_ARGS,EMPTY_NAMED,EMPTY_POSITIONAL,EnvironmentImpl,IDOMChanges:DOMChangesImpl,LowLevelVM:VM,NewElementBuilder,PartialScopeImpl,RehydrateBuilder,RemoteLiveBlock,SERIALIZATION_FIRST_NODE_STRING,SimpleDynamicAttribute,TEMPLATE_ONLY_COMPONENT_MANAGER,TemplateOnlyComponent:TemplateOnlyComponentDefinition,TemplateOnlyComponentManager,UpdatableBlockImpl,UpdatingVM,array:array$1,clear,clientBuilder,concat:concat$1,createCapturedArgs,curry,destroy,dynamicAttribute,fn:fn$1,get:get$1,hash:hash$1,inTransaction,invokeHelper:invokeHelper$1,isDestroyed,isDestroying,isSerializationFirstNode,isWhitespace,normalizeProperty,on:on$1,registerDestructor:registerDestructor$1,rehydrationBuilder,reifyArgs,reifyNamed,reifyPositional,renderComponent,renderMain,renderSync,resetDebuggerCallback,runtimeContext,setDebuggerCallback,templateOnlyComponent},Symbol.toStringTag,{value:'Module'});// In normal TypeScript, this modifier is essentially an opaque token that just\n// needs to be importable. Declaring it with a unique interface like this,\n// however, gives tools like Glint (that *do* have a richer notion of what it\n// is) a place to install more detailed type information.\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\n// SAFETY: at the time of writing, the cast here is from `{}` to `OnModifier`,\n// which makes it strictly safer to use outside this module because it is not\n// usable as \"any non-null item\", which is what `{}` means, without loss of any\n// information from the type itself.\nconst on=on$1;const InputTemplate=templateFactory(/*\n            <input\n            {{!-- for compatibility --}}\n            id={{this.id}}\n            class={{this.class}}\n\n            ...attributes\n\n            type={{this.type}}\n            checked={{this.checked}}\n            value={{this.value}}\n\n            {{on \"change\" this.change}}\n            {{on \"input\" this.input}}\n            {{on \"keyup\" this.keyUp}}\n            {{on \"paste\" this.valueDidChange}}\n            {{on \"cut\" this.valueDidChange}}\n          />\n          */{\"id\":\"4z3DuGQ3\",\"block\":\"[[[11,\\\"input\\\"],[16,1,[30,0,[\\\"id\\\"]]],[16,0,[30,0,[\\\"class\\\"]]],[17,1],[16,4,[30,0,[\\\"type\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"checked\\\"]]],[16,2,[30,0,[\\\"value\\\"]]],[4,[32,0],[\\\"change\\\",[30,0,[\\\"change\\\"]]],null],[4,[32,0],[\\\"input\\\",[30,0,[\\\"input\\\"]]],null],[4,[32,0],[\\\"keyup\\\",[30,0,[\\\"keyUp\\\"]]],null],[4,[32,0],[\\\"paste\\\",[30,0,[\\\"valueDidChange\\\"]]],null],[4,[32,0],[\\\"cut\\\",[30,0,[\\\"valueDidChange\\\"]]],null],[12],[13]],[\\\"&attrs\\\"],false,[]]\",\"moduleName\":\"packages/@ember/-internals/glimmer/lib/templates/input.hbs\",\"scope\":()=>[on],\"isStrictMode\":true});function NOOP$3(){}class InternalComponent{// Override this\nstatic toString(){return'internal component';}constructor(owner,args,caller){this.owner=owner;this.args=args;this.caller=caller;setOwner$1(this,owner);}/**\n             * The default HTML id attribute. We don't really _need_ one, this is just\n             * added for compatibility as it's hard to tell if people rely on it being\n             * present, and it doens't really hurt.\n             *\n             * However, don't rely on this internally, like passing it to `getElementId`.\n             * This can be (and often is) overriden by passing an `id` attribute on the\n             * invocation, which shadows this default id via `...attributes`.\n             */get id(){return guidFor(this);}/**\n             * The default HTML class attribute. Similar to the above, we don't _need_\n             * them, they are just added for compatibility as it's similarly hard to tell\n             * if people rely on it in their CSS etc, and it doens't really hurt.\n             */get class(){return'ember-view';}validateArguments(){for(let name of Object.keys(this.args.named)){if(!this.isSupportedArgument(name)){this.onUnsupportedArgument(name);}}}named(name){let ref=this.args.named[name];return ref?valueForRef(ref):undefined;}positional(index){let ref=this.args.positional[index];return ref?valueForRef(ref):undefined;}listenerFor(name){let listener=this.named(name);if(listener){!(typeof listener==='function')&&assert$1(`The \\`@${name}\\` argument to the <${this.constructor}> component must be a function`,typeof listener==='function');return listener;}else{return NOOP$3;}}isSupportedArgument(_name){return false;}onUnsupportedArgument(_name){}toString(){return`<${this.constructor}:${guidFor(this)}>`;}}const OPAQUE_CONSTRUCTOR_MAP=new WeakMap();function opaquify(constructor,template){let _opaque={// Factory interface\ncreate(){throw assert$1('Use constructor instead of create');},toString(){return constructor.toString();}};let opaque=_opaque;OPAQUE_CONSTRUCTOR_MAP.set(opaque,constructor);setInternalComponentManager(INTERNAL_COMPONENT_MANAGER,opaque);setComponentTemplate(template,opaque);return opaque;}function deopaquify(opaque){let constructor=OPAQUE_CONSTRUCTOR_MAP.get(opaque);!constructor&&assert$1(`[BUG] Invalid internal component constructor: ${opaque}`,constructor);return constructor;}const CAPABILITIES$2={dynamicLayout:false,dynamicTag:false,prepareArgs:false,createArgs:true,attributeHook:false,elementHook:false,createCaller:true,dynamicScope:false,updateHook:false,createInstance:true,wrapped:false,willDestroy:false,hasSubOwner:false};class InternalManager{getCapabilities(){return CAPABILITIES$2;}create(owner,definition,args,_env,_dynamicScope,caller){!isConstRef(caller)&&assert$1('caller must be const',isConstRef(caller));let ComponentClass=deopaquify(definition);let instance=new ComponentClass(owner,args.capture(),valueForRef(caller));untrack(instance['validateArguments'].bind(instance));return instance;}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}getDebugName(definition){return definition.toString();}getSelf(instance){return createConstRef(instance,'this');}getDestroyable(instance){return instance;}}const INTERNAL_COMPONENT_MANAGER=new InternalManager();var __defProp=Object.defineProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true});};// src/runtime.ts\nvar runtime_exports={};__export(runtime_exports,{c:()=>decorateClass,f:()=>decorateFieldV1,g:()=>decorateFieldV2,i:()=>initializeDeferredDecorator,m:()=>decorateMethodV1,n:()=>decorateMethodV2,p:()=>decoratePOJO});var deferred=/* @__PURE__ */new WeakMap();function deferDecorator(proto,prop,desc){let map=deferred.get(proto);if(!map){map=/* @__PURE__ */new Map();deferred.set(proto,map);}map.set(prop,desc);}function findDeferredDecorator(target,prop){let cursor=target.prototype;while(cursor){var _deferred$get;let desc=(_deferred$get=deferred.get(cursor))===null||_deferred$get===void 0?void 0:_deferred$get.get(prop);if(desc){return desc;}cursor=cursor.prototype;}}function decorateFieldV1(target,prop,decorators,initializer){return decorateFieldV2(target.prototype,prop,decorators,initializer);}function decorateFieldV2(prototype,prop,decorators,initializer){let desc={configurable:true,enumerable:true,writable:true,initializer:null};if(initializer){desc.initializer=initializer;}for(let decorator of decorators){desc=decorator(prototype,prop,desc)||desc;}if(desc.initializer===void 0){Object.defineProperty(prototype,prop,desc);}else{deferDecorator(prototype,prop,desc);}}function decorateMethodV1(_ref126,prop,decorators){let{prototype}=_ref126;return decorateMethodV2(prototype,prop,decorators);}function decorateMethodV2(prototype,prop,decorators){const origDesc=Object.getOwnPropertyDescriptor(prototype,prop);let desc={...origDesc};for(let decorator of decorators){desc=decorator(prototype,prop,desc)||desc;}if(desc.initializer!==void 0){desc.value=desc.initializer?desc.initializer.call(prototype):void 0;desc.initializer=void 0;}Object.defineProperty(prototype,prop,desc);}function initializeDeferredDecorator(target,prop){let desc=findDeferredDecorator(target.constructor,prop);if(desc){Object.defineProperty(target,prop,{enumerable:desc.enumerable,configurable:desc.configurable,writable:desc.writable,value:desc.initializer?desc.initializer.call(target):void 0});}}function decorateClass(target,decorators){return decorators.reduce((accum,decorator)=>decorator(accum)||accum,target);}function decoratePOJO(pojo,decorated){for(let[type,prop,decorators]of decorated){if(type===\"field\"){decoratePojoField(pojo,prop,decorators);}else{decorateMethodV2(pojo,prop,decorators);}}return pojo;}function decoratePojoField(pojo,prop,decorators){let desc={configurable:true,enumerable:true,writable:true,initializer:()=>{var _Object$getOwnPropert;return(_Object$getOwnPropert=Object.getOwnPropertyDescriptor(pojo,prop))===null||_Object$getOwnPropert===void 0?void 0:_Object$getOwnPropert.value;}};for(let decorator of decorators){desc=decorator(pojo,prop,desc)||desc;}if(desc.initializer){desc.value=desc.initializer.call(pojo);delete desc.initializer;}Object.defineProperty(pojo,prop,desc);}const UNINITIALIZED=Object.freeze({});function elementForEvent(event){!(event.target instanceof HTMLInputElement||event.target instanceof HTMLTextAreaElement)&&assert$1('[BUG] event target must be an <input> or <textarea> element',event.target instanceof HTMLInputElement||event.target instanceof HTMLTextAreaElement);return event.target;}function valueForEvent(event){return elementForEvent(event).value;}function devirtualize(callback){return event=>callback(valueForEvent(event),event);}function valueFrom(reference){if(reference===undefined){return new LocalValue(undefined);}else if(isConstRef(reference)){return new LocalValue(valueForRef(reference));}else if(isUpdatableRef(reference)){return new UpstreamValue(reference);}else{return new ForkedValue(reference);}}var _value2=/*#__PURE__*/new WeakMap();class LocalValue{constructor(value){_classPrivateFieldInitSpec(this,_value2,(initializeDeferredDecorator(this,\"value\"),void 0));this.value=value;}get(){return this.value;}set(value){this.value=value;}}_LocalValue=LocalValue;decorateFieldV2(_LocalValue.prototype,\"value\",[tracked]);class UpstreamValue{constructor(reference){this.reference=reference;}get(){return valueForRef(this.reference);}set(value){updateRef(this.reference,value);}}class ForkedValue{constructor(reference){_defineProperty(this,\"local\",void 0);_defineProperty(this,\"upstream\",void 0);_defineProperty(this,\"lastUpstreamValue\",UNINITIALIZED);this.upstream=new UpstreamValue(reference);}get(){let upstreamValue=this.upstream.get();if(upstreamValue!==this.lastUpstreamValue){this.lastUpstreamValue=upstreamValue;this.local=new LocalValue(upstreamValue);}!this.local&&assert$1('[BUG] this.local must have been initialized at this point',this.local);return this.local.get();}set(value){!this.local&&assert$1('[BUG] this.local must have been initialized at this point',this.local);this.local.set(value);}}class AbstractInput extends InternalComponent{constructor(){super(...arguments);_defineProperty(this,\"_value\",valueFrom(this.args.named['value']));}validateArguments(){!(this.args.positional.length===0)&&assert$1(`The ${this.constructor} component does not take any positional arguments`,this.args.positional.length===0);super.validateArguments();}get value(){return this._value.get();}set value(value){this._value.set(value);}valueDidChange(event){this.value=valueForEvent(event);}/**\n             * The `change` and `input` actions need to be overridden in the `Input`\n             * subclass. Unfortunately, some ember-source builds currently uses babel\n             * loose mode to transpile its classes. Having the `@action` decorator on the\n             * super class creates a getter on the prototype, and when the subclass\n             * overrides the method, the loose mode transpilation would emit something\n             * like `Subclass.prototype['change'] = function change() { ... }`, which\n             * fails because `prototype['change']` is getter-only/readonly. The correct\n             * solution is to use `Object.defineProperty(prototype, 'change', ...)` but\n             * that requires disabling loose mode. For now, the workaround is to add the\n             * decorator only on the subclass. This is more of a configuration issue on\n             * our own builds and doesn't really affect apps.\n             *//* @action */change(event){this.valueDidChange(event);}/* @action */input(event){this.valueDidChange(event);}keyUp(event){switch(event.key){case'Enter':this.listenerFor('enter')(event);this.listenerFor('insert-newline')(event);break;case'Escape':this.listenerFor('escape-press')(event);break;}}listenerFor(name){let listener=super.listenerFor(name);if(this.isVirtualEventListener(name,listener)){return devirtualize(listener);}else{return listener;}}isVirtualEventListener(name,_listener){let virtualEvents=['enter','insert-newline','escape-press'];return virtualEvents.indexOf(name)!==-1;}}/**\n          @module @ember/component\n          */_AbstractInput=AbstractInput;decorateMethodV2(_AbstractInput.prototype,\"valueDidChange\",[action$1]);decorateMethodV2(_AbstractInput.prototype,\"keyUp\",[action$1]);let isValidInputType;if(hasDOM){const INPUT_TYPES=Object.create(null);const INPUT_ELEMENT=document.createElement('input');INPUT_TYPES['']=false;INPUT_TYPES['text']=true;INPUT_TYPES['checkbox']=true;isValidInputType=type=>{let isValid=INPUT_TYPES[type];if(isValid===undefined){try{INPUT_ELEMENT.type=type;isValid=INPUT_ELEMENT.type===type;}catch(_e){isValid=false;}finally{INPUT_ELEMENT.type='text';}INPUT_TYPES[type]=isValid;}return isValid;};}else{isValidInputType=type=>type!=='';}/**\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            An opaque interface which can be imported and used in strict-mode\n            templates to call <Input>.\n\n            See [Ember.Templates.components.Input](/ember/release/classes/Ember.Templates.components/methods/Input?anchor=Input).\n\n            @for @ember/component\n            @method Input\n            @see {Ember.Templates.components.Input}\n            @public\n          **//**\n            The `Input` component lets you create an HTML `<input>` element.\n\n            ```handlebars\n            <Input @value=\"987\" />\n            ```\n\n            creates an `<input>` element with `type=\"text\"` and value set to 987.\n\n            ### Text field\n\n            If no `type` argument is specified, a default of type 'text' is used.\n\n            ```handlebars\n            Search:\n            <Input @value={{this.searchWord}} />\n            ```\n\n            In this example, the initial value in the `<input>` will be set to the value of\n            `this.searchWord`. If the user changes the text, the value of `this.searchWord` will also be\n            updated.\n\n            ### Actions\n\n            The `Input` component takes a number of arguments with callbacks that are invoked in response to\n            user events.\n\n            * `enter`\n            * `insert-newline`\n            * `escape-press`\n            * `focus-in`\n            * `focus-out`\n            * `key-down`\n            * `key-press`\n            * `key-up`\n\n            These callbacks are passed to `Input` like this:\n\n            ```handlebars\n            <Input @value={{this.searchWord}} @enter={{this.query}} />\n            ```\n\n            Starting with Ember Octane, we recommend using the `{{on}}` modifier to call actions\n            on specific events, such as the input event.\n\n            ```handlebars\n            <label for=\"input-name\">Name:</label>\n            <Input\n              @id=\"input-name\"\n              @value={{this.name}}\n              {{on \"input\" this.validateName}}\n            />\n            ```\n\n            The event name (e.g. `focusout`, `input`, `keydown`) always follows the casing\n            that the HTML standard uses.\n\n            ### `<input>` HTML Attributes to Avoid\n\n            In most cases, if you want to pass an attribute to the underlying HTML `<input>` element, you\n            can pass the attribute directly, just like any other Ember component.\n\n            ```handlebars\n            <Input @type=\"text\" size=\"10\" />\n            ```\n\n            In this example, the `size` attribute will be applied to the underlying `<input>` element in the\n            outputted HTML.\n\n            However, there are a few attributes where you **must** use the `@` version.\n\n            * `@type`: This argument is used to control which Ember component is used under the hood\n            * `@value`: The `@value` argument installs a two-way binding onto the element. If you wanted a\n              one-way binding, use `<input>` with the `value` property and the `input` event instead.\n            * `@checked` (for checkboxes): like `@value`, the `@checked` argument installs a two-way binding\n              onto the element. If you wanted a one-way binding, use `<input type=\"checkbox\">` with\n              `checked` and the `input` event instead.\n\n            ### 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            @method Input\n            @for Ember.Templates.components\n            @param {Hash} options\n            @public\n          */class _Input extends AbstractInput{constructor(){super(...arguments);_defineProperty(this,\"_checked\",valueFrom(this.args.named['checked']));}static toString(){return'Input';}/**\n             * The HTML class attribute.\n             */get class(){if(this.isCheckbox){return'ember-checkbox ember-view';}else{return'ember-text-field ember-view';}}/**\n             * The HTML type attribute.\n             */get type(){let type=this.named('type');if(type===null||type===undefined){return'text';}!(typeof type==='string')&&assert$1('The `@type` argument to the <Input> component must be a string',typeof type==='string');return isValidInputType(type)?type:'text';}get isCheckbox(){return this.named('type')==='checkbox';}get checked(){if(this.isCheckbox){warn('`<Input @type=\"checkbox\" />` reflects its checked state via the `@checked` argument. '+'You wrote `<Input @type=\"checkbox\" @value={{...}} />` which is likely not what you intended. '+'Did you mean `<Input @type=\"checkbox\" @checked={{...}} />`?',untrack(()=>this.args.named['checked']!==undefined||this.args.named['value']===undefined||typeof valueForRef(this.args.named['value'])==='string'),{id:'ember.built-in-components.input-checkbox-value'});return this._checked.get();}else{return undefined;}}set checked(checked){warn('`<Input @type=\"checkbox\" />` reflects its checked state via the `@checked` argument. '+'You wrote `<Input @type=\"checkbox\" @value={{...}} />` which is likely not what you intended. '+'Did you mean `<Input @type=\"checkbox\" @checked={{...}} />`?',untrack(()=>this.args.named['checked']!==undefined||this.args.named['value']===undefined||typeof valueForRef(this.args.named['value'])==='string'),{id:'ember.built-in-components.input-checkbox-value'});this._checked.set(checked);}change(event){if(this.isCheckbox){this.checkedDidChange(event);}else{super.change(event);}}input(event){if(!this.isCheckbox){super.input(event);}}checkedDidChange(event){let element=event.target;!(element instanceof HTMLInputElement)&&assert$1('[BUG] element must be an <input>',element instanceof HTMLInputElement);this.checked=element.checked;}isSupportedArgument(name){let supportedArguments=['type','value','checked','enter','insert-newline','escape-press'];return supportedArguments.indexOf(name)!==-1||super.isSupportedArgument(name);}}_Input2=_Input;decorateMethodV2(_Input2.prototype,\"change\",[action$1]);decorateMethodV2(_Input2.prototype,\"input\",[action$1]);decorateMethodV2(_Input2.prototype,\"checkedDidChange\",[action$1]);const Input=opaquify(_Input,InputTemplate);/**\n          @module ember\n          */function isSimpleClick(event){if(!(event instanceof MouseEvent)){return false;}let modifier=event.shiftKey||event.metaKey||event.altKey||event.ctrlKey;let secondaryClick=event.which>1;// IE9 may return undefined\nreturn!modifier&&!secondaryClick;}function constructStyleDeprecationMessage(affectedStyle){return''+'Binding style attributes may introduce cross-site scripting vulnerabilities; '+'please ensure that values being bound are properly escaped. For more information, '+'including how to disable this warning, see '+'https://deprecations.emberjs.com/v1.x/#toc_binding-style-attributes. '+'Style affected: \"'+affectedStyle+'\"';}/**\n            @private\n            @method getRootViews\n            @param {Object} owner\n          */function getRootViews(owner){let registry=owner.lookup('-view-registry:main');let rootViews=[];Object.keys(registry).forEach(id=>{let view=registry[id];!view&&assert$1('expected view',view);if(view.parentView===null){rootViews.push(view);}});return rootViews;}/**\n            @private\n            @method getViewId\n            @param {Ember.View} view\n           */function getViewId(view){if(view.tagName!==''&&view.elementId){return view.elementId;}else{return guidFor(view);}}const ELEMENT_VIEW=new WeakMap();const VIEW_ELEMENT=new WeakMap();function getElementView(element){return ELEMENT_VIEW.get(element)||null;}/**\n            @private\n            @method getViewElement\n            @param {Ember.View} view\n           */function getViewElement(view){return VIEW_ELEMENT.get(view)||null;}function setElementView(element,view){ELEMENT_VIEW.set(element,view);}function setViewElement(view,element){VIEW_ELEMENT.set(view,element);}// 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.\nfunction clearElementView(element){ELEMENT_VIEW.delete(element);}function clearViewElement(view){VIEW_ELEMENT.delete(view);}const CHILD_VIEW_IDS=new WeakMap();/**\n            @private\n            @method getChildViews\n            @param {Ember.View} view\n          */function getChildViews(view){let owner=getOwner$2(view);!owner&&assert$1('View is unexpectedly missing an owner',owner);let registry=owner.lookup('-view-registry:main');return collectChildViews(view,registry);}function initChildViews(view){let childViews=new Set();CHILD_VIEW_IDS.set(view,childViews);return childViews;}function addChildView(parent,child){let childViews=CHILD_VIEW_IDS.get(parent);if(childViews===undefined){childViews=initChildViews(parent);}childViews.add(getViewId(child));}function collectChildViews(view,registry){let views=[];let childViews=CHILD_VIEW_IDS.get(view);if(childViews!==undefined){childViews.forEach(id=>{let view=registry[id];if(view&&!view.isDestroying&&!view.isDestroyed){views.push(view);}});}return views;}/**\n            @private\n            @method getViewBounds\n            @param {Ember.View} view\n          */function getViewBounds(view){return view.renderer.getBounds(view);}/**\n            @private\n            @method getViewRange\n            @param {Ember.View} view\n          */function getViewRange(view){let bounds=getViewBounds(view);let range=document.createRange();range.setStartBefore(bounds.firstNode);range.setEndAfter(bounds.lastNode);return range;}/**\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          */function getViewClientRects(view){let range=getViewRange(view);return range.getClientRects();}/**\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          */function getViewBoundingClientRect(view){let range=getViewRange(view);return range.getBoundingClientRect();}/**\n            Determines if the element matches the specified selector.\n\n            @private\n            @method matches\n            @param {DOMElement} el\n            @param {String} selector\n          */const elMatches=typeof Element!=='undefined'?Element.prototype.matches:undefined;function matches(el,selector){!(elMatches!==undefined)&&assert$1('cannot call `matches` in fastboot mode',elMatches!==undefined);return elMatches.call(el,selector);}function contains(a,b){if(a.contains!==undefined){return a.contains(b);}let current=b.parentNode;while(current&&(current=current.parentNode)){if(current===a){return true;}}return false;}const emberinternalsViewsLibSystemUtils=/*#__PURE__*/Object.defineProperty({__proto__:null,addChildView,clearElementView,clearViewElement,collectChildViews,constructStyleDeprecationMessage,contains,elMatches,getChildViews,getElementView,getRootViews,getViewBoundingClientRect,getViewBounds,getViewClientRects,getViewElement,getViewId,getViewRange,initChildViews,isSimpleClick,matches,setElementView,setViewElement},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          */function ActionManager(){}/**\n            Global action id hash.\n\n            @private\n            @property registeredActions\n            @type Object\n          */ActionManager.registeredActions={};const emberinternalsViewsLibSystemActionManager=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ActionManager},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          */const ROOT_ELEMENT_CLASS='ember-application';const ROOT_ELEMENT_SELECTOR=`.${ROOT_ELEMENT_CLASS}`;/**\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 EmberObject\n          */class EventDispatcher extends EmberObject{constructor(){super(...arguments);/**\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            */_defineProperty(this,\"events\",{touchstart:'touchStart',touchmove:'touchMove',touchend:'touchEnd',touchcancel:'touchCancel',keydown:'keyDown',keyup:'keyUp',keypress:'keyPress',mousedown:'mouseDown',mouseup:'mouseUp',contextmenu:'contextMenu',click:'click',dblclick:'doubleClick',focusin:'focusIn',focusout:'focusOut',submit:'submit',input:'input',change:'change',dragstart:'dragStart',drag:'drag',dragenter:'dragEnter',dragleave:'dragLeave',dragover:'dragOver',drop:'drop',dragend:'dragEnd'});/**\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            */_defineProperty(this,\"rootElement\",'body');_defineProperty(this,\"_eventHandlers\",Object.create(null));_defineProperty(this,\"_didSetup\",false);_defineProperty(this,\"finalEventNameMapping\",null);_defineProperty(this,\"_sanitizedRootElement\",null);_defineProperty(this,\"lazyEvents\",new Map());_defineProperty(this,\"_reverseEventNameMapping\",null);}/**\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            */setup(addedEvents,_rootElement){!(()=>{let owner=getOwner$2(this);!owner&&assert$1('[BUG] Missing owner',owner);// SAFETY: This is not guaranteed to be safe, but this is what we expect to be returned.\nlet environment=owner.lookup('-environment:main');return environment.isInteractive;})()&&assert$1('EventDispatcher should never be setup in fastboot mode. Please report this as an Ember bug.',(()=>{let owner=getOwner$2(this);!owner&&assert$1('[BUG] Missing owner',owner);let environment=owner.lookup('-environment:main');return environment.isInteractive;})());let events=this.finalEventNameMapping={...get$2(this,'events'),...addedEvents};this._reverseEventNameMapping=Object.keys(events).reduce((result,key)=>{let eventName=events[key];return eventName?{...result,[eventName]:key}:result;},{});let lazyEvents=this.lazyEvents;if(_rootElement!==undefined&&_rootElement!==null){set(this,'rootElement',_rootElement);}let specifiedRootElement=get$2(this,'rootElement');let rootElement=typeof specifiedRootElement!=='string'?specifiedRootElement:document.querySelector(specifiedRootElement);!rootElement&&assert$1(`Could not find rootElement (${specifiedRootElement})`,rootElement);!!rootElement.classList.contains(ROOT_ELEMENT_CLASS)&&assert$1(`You cannot use the same root element (${specifiedRootElement}) multiple times in an Ember.Application`,!rootElement.classList.contains(ROOT_ELEMENT_CLASS));!(()=>{let target=rootElement.parentNode;while(target instanceof Element){if(target.classList.contains(ROOT_ELEMENT_CLASS)){return false;}target=target.parentNode;}return true;})()&&assert$1('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application',(()=>{let target=rootElement.parentNode;while(target instanceof Element){if(target.classList.contains(ROOT_ELEMENT_CLASS)){return false;}target=target.parentNode;}return true;})());!!rootElement.querySelector(ROOT_ELEMENT_SELECTOR)&&assert$1('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));rootElement.classList.add(ROOT_ELEMENT_CLASS);!rootElement.classList.contains(ROOT_ELEMENT_CLASS)&&assert$1(`Unable to add '${ROOT_ELEMENT_CLASS}' class to root element (${get$2(this,'rootElement')||rootElement.tagName}). Make sure you set rootElement to the body or an element in the body.`,rootElement.classList.contains(ROOT_ELEMENT_CLASS));// save off the final sanitized root element (for usage in setupHandler)\nthis._sanitizedRootElement=rootElement;// setup event listeners for the non-lazily setup events\nfor(let event in events){if(Object.prototype.hasOwnProperty.call(events,event)){var _events$event;lazyEvents.set(event,(_events$event=events[event])!==null&&_events$event!==void 0?_events$event:null);}}this._didSetup=true;}/**\n              Setup event listeners for the given browser event name\n               @private\n              @method setupHandlerForBrowserEvent\n              @param event the name of the event in the browser\n            */setupHandlerForBrowserEvent(event){var _this$finalEventNameM;!this.finalEventNameMapping&&assert$1('[BUG] Expected finalEventNameMapping to be set',this.finalEventNameMapping);!this._sanitizedRootElement&&assert$1('[BUG] Expected _santizedRootElement to be set',this._sanitizedRootElement);this.setupHandler(this._sanitizedRootElement,event,(_this$finalEventNameM=this.finalEventNameMapping[event])!==null&&_this$finalEventNameM!==void 0?_this$finalEventNameM:null);}/**\n              Setup event listeners for the given Ember event name (camel case)\n               @private\n              @method setupHandlerForEmberEvent\n              @param eventName\n            */setupHandlerForEmberEvent(eventName){var _this$_reverseEventNa;!this._sanitizedRootElement&&assert$1('[BUG] Expected _sanitizedRootElement to be set',this._sanitizedRootElement);let event=(_this$_reverseEventNa=this._reverseEventNameMapping)===null||_this$_reverseEventNa===void 0?void 0:_this$_reverseEventNa[eventName];if(event){this.setupHandler(this._sanitizedRootElement,event,eventName);}}/**\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 name of the event in the browser\n              @param {String} eventName the name of the method to call on the view\n            */setupHandler(rootElement,event,eventName){if(eventName===null||!this.lazyEvents.has(event)){return;// nothing to do\n}let viewHandler=(target,event)=>{let view=getElementView(target);let result=true;if(view){// SAFETY: As currently written, this is not safe. Though it seems to always be true.\nresult=view.handleEvent(eventName,event);}return result;};let actionHandler=(target,event)=>{let actionId=target.getAttribute('data-ember-action');let actions;// 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.\nif(actionId===''){actions=[];for(let attr of target.attributes){let attrName=attr.name;if(attrName.indexOf('data-ember-action-')===0){let action=ActionManager.registeredActions[attr.value];!action&&assert$1('[BUG] Missing action',action);actions.push(action);}}}else if(actionId){// FIXME: This branch is never called in tests. Improve tests or remove\nlet actionState=ActionManager.registeredActions[actionId];if(actionState){actions=[actionState];}}// 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.\nif(!actions){// FIXME: This branch is never called in tests. Improve tests or remove\nreturn;}let result=true;for(let index=0;index<actions.length;index++){let action=actions[index];if(action&&action.eventName===eventName){// return false if any of the action handlers returns false\nresult=action.handler(event)&&result;}}return result;};let handleEvent=this._eventHandlers[event]=event=>{let target=event.target;!(target instanceof Element)&&assert$1(`[BUG] Received event without an Element target: ${event.type}, ${target}`,target instanceof Element);do{if(getElementView(target)){if(viewHandler(target,event)===false){event.preventDefault();event.stopPropagation();break;}else if(event.cancelBubble===true){break;}}else if(typeof target.hasAttribute==='function'&&target.hasAttribute('data-ember-action')){if(actionHandler(target,event)===false){break;}}target=target.parentNode;}while(target instanceof Element);};rootElement.addEventListener(event,handleEvent);this.lazyEvents.delete(event);}destroy(){if(this._didSetup===false){return;}let rootElement=this._sanitizedRootElement;if(!rootElement){return;}for(let event in this._eventHandlers){rootElement.removeEventListener(event,this._eventHandlers[event]);}rootElement.classList.remove(ROOT_ELEMENT_CLASS);return this._super(...arguments);}toString(){return'(EventDispatcher)';}}const emberinternalsViewsLibSystemEventDispatcher=/*#__PURE__*/Object.defineProperty({__proto__:null,default:EventDispatcher},Symbol.toStringTag,{value:'Module'});const ComponentLookup=EmberObject.extend({componentFor(name,owner){let fullName=`component:${name}`;return owner.factoryFor(fullName);},layoutFor(name,owner,options){let templateFullName=`template:components/${name}`;return owner.lookup(templateFullName,options);}});const emberinternalsViewsLibComponentLookup=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ComponentLookup},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/object/evented\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           */const Evented=Mixin.create({on(name,target,method){addListener(this,name,target,method);return this;},one(name,target,method){addListener(this,name,target,method,true);return this;},trigger(name){for(var _len39=arguments.length,args=new Array(_len39>1?_len39-1:0),_key40=1;_key40<_len39;_key40++){args[_key40-1]=arguments[_key40];}sendEvent(this,name,args);},off(name,target,method){removeListener(this,name,target,method);return this;},has(name){return hasListeners(this,name);}});const emberObjectEvented=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Evented,on:on$3},Symbol.toStringTag,{value:'Module'});// Here we have runtime shenanigans to add debug-only errors to the class in dev\n// builds. Those runtime shenanigans produce the need for type-level shenanigans\n// to match: if we just assign without an explicit type annotation on the `let`\n// binding below for `FrameworkObject`, TS gets stuck because this creates\n// `FrameworkObject` with a class expression (rather than the usual class\n// declaration form). That in turn means TS needs to be able to fully name the\n// type produced by the class expression, which includes the `OWNER` symbol from\n// `@glimmer/owner`.\n//\n// By explicitly giving the declaration a type when assigning it the class\n// expression, instead of relying on inference, TS no longer needs to name the\n// `OWNER` property key from the super class, eliminating the private name\n// shenanigans.\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nlet FrameworkObject=class FrameworkObject extends EmberObject{};{const INIT_WAS_CALLED=Symbol('INIT_WAS_CALLED');let ASSERT_INIT_WAS_CALLED=symbol('ASSERT_INIT_WAS_CALLED');FrameworkObject=class DebugFrameworkObject extends EmberObject{constructor(){super(...arguments);_defineProperty(this,INIT_WAS_CALLED,false);}init(properties){super.init(properties);this[INIT_WAS_CALLED]=true;}[ASSERT_INIT_WAS_CALLED](){!this[INIT_WAS_CALLED]&&assert$1(`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]);}};addListener(FrameworkObject.prototype,'init',null,ASSERT_INIT_WAS_CALLED);}const emberObjectinternals=/*#__PURE__*/Object.defineProperty({__proto__:null,get FrameworkObject(){return FrameworkObject;},cacheFor:getCachedValueFor,guidFor},Symbol.toStringTag,{value:'Module'});/* eslint no-console:off *//* global console *//**\n          @module @ember/instrumentation\n          @private\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          */let subscribers=[];let cache={};function populateListeners(name){let listeners=[];for(let subscriber of subscribers){if(subscriber.regex.test(name)){listeners.push(subscriber.object);}}cache[name]=listeners;return listeners;}const time=(()=>{let perf='undefined'!==typeof window?window.performance||{}:{};let fn=perf.now||perf.mozNow||perf.webkitNow||perf.msNow||perf.oNow;return fn?fn.bind(perf):Date.now;})();function isCallback$1(value){return typeof value==='function';}/**\n            Notifies event's subscribers, calls `before` and `after` hooks.\n\n            @method instrument\n            @for @ember/instrumentation\n            @static\n            @param {String} [name] Namespaced event name.\n            @param {Object} payload\n            @param {Function} callback Function that you're instrumenting.\n            @param {Object} binding Context that instrument function is called with.\n            @private\n          */function instrument(name,p1,p2,p3){let _payload;let callback;let binding;if(arguments.length<=3&&isCallback$1(p1)){callback=p1;binding=p2;}else{_payload=p1;callback=p2;binding=p3;}// fast path\nif(subscribers.length===0){return callback.call(binding);}// avoid allocating the payload in fast path\nlet payload=_payload||{};let finalizer=_instrumentStart(name,()=>payload);if(finalizer===NOOP$2){return callback.call(binding);}else{return withFinalizer(callback,finalizer,payload,binding);}}function flaggedInstrument(_name,_payload,callback){return callback();}function withFinalizer(callback,finalizer,payload,binding){try{return callback.call(binding);}catch(e){payload.exception=e;throw e;}finally{finalizer();}}function NOOP$2(){}// private for now\nfunction _instrumentStart(name,payloadFunc,payloadArg){if(subscribers.length===0){return NOOP$2;}let listeners=cache[name];if(!listeners){listeners=populateListeners(name);}if(listeners.length===0){return NOOP$2;}let payload=payloadFunc(payloadArg);let STRUCTURED_PROFILE=ENV.STRUCTURED_PROFILE;let timeName;if(STRUCTURED_PROFILE){timeName=`${name}: ${payload.object}`;console.time(timeName);}let beforeValues=[];let timestamp=time();for(let listener of listeners){beforeValues.push(listener.before(name,timestamp,payload));}const constListeners=listeners;return function _instrumentEnd(){let timestamp=time();for(let i=0;i<constListeners.length;i++){let listener=constListeners[i];!listener&&assert$1('has listener',listener);// Iterating over values\nif(typeof listener.after==='function'){listener.after(name,timestamp,payload,beforeValues[i]);}}if(STRUCTURED_PROFILE){console.timeEnd(timeName);}};}/**\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          */function subscribe(pattern,object){let paths=pattern.split('.');let regexes=[];for(let path of paths){if(path==='*'){regexes.push('[^\\\\.]*');}else{regexes.push(path);}}let regex=regexes.join('\\\\.');regex=`${regex}(\\\\..*)?`;let subscriber={pattern,regex:new RegExp(`^${regex}$`),object};subscribers.push(subscriber);cache={};return subscriber;}/**\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          */function unsubscribe(subscriber){let index=0;for(let i=0;i<subscribers.length;i++){if(subscribers[i]===subscriber){index=i;}}subscribers.splice(index,1);cache={};}/**\n            Resets `Instrumentation` by flushing list of subscribers.\n\n            @method reset\n            @for @ember/instrumentation\n            @static\n            @private\n          */function reset(){subscribers.length=0;cache={};}const emberInstrumentationIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,_instrumentStart,flaggedInstrument,instrument,reset,subscribe,subscribers,unsubscribe},Symbol.toStringTag,{value:'Module'});const DEFAULT=Object.freeze({// appendChild is only legal while rendering the buffer.\nappendChild(){throw new Error(\"You can't use appendChild outside of the rendering process\");},// Handle events from `Ember.EventDispatcher`\nhandleEvent(){return true;// continue event propagation\n},rerender(){},destroy(){}});const PRE_RENDER=Object.freeze({...DEFAULT});const HAS_ELEMENT=Object.freeze({...DEFAULT,rerender(view){view.renderer.rerender();},destroy(view){view.renderer.remove(view);},// Handle events from `Ember.EventDispatcher`\nhandleEvent(view,eventName,event){if(view.has(eventName)){// Handler should be able to re-dispatch events, so we don't\n// preventDefault or stopPropagation.\nreturn flaggedInstrument(`interaction.${eventName}`,{event,view},()=>{return join(view,view.trigger,eventName,event);});}else{return true;// continue event propagation\n}}});const IN_DOM=Object.freeze({...HAS_ELEMENT,enter(view){// Register the view for event handling. This hash is used by\n// Ember.EventDispatcher to dispatch incoming events.\nview.renderer.register(view);{let elementId=view.elementId;!teardownMandatorySetter&&assert$1('[BUG] Expected teardownMandatorySetter to be set in DEBUG mode',teardownMandatorySetter);teardownMandatorySetter(view,'elementId');Object.defineProperty(view,'elementId',{configurable:true,enumerable:true,get(){return elementId;},set(value){if(value!==elementId){throw new Error(\"Changing a view's elementId after creation is not allowed\");}}});}}});const DESTROYING=Object.freeze({...DEFAULT,appendChild(){throw new Error(\"You can't call appendChild on a view being destroyed\");},rerender(){throw new Error(\"You can't call rerender on a view being destroyed\");}});/*\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          */const states=Object.freeze({preRender:PRE_RENDER,inDOM:IN_DOM,hasElement:HAS_ELEMENT,destroying:DESTROYING});const emberinternalsViewsLibViewsStates=/*#__PURE__*/Object.defineProperty({__proto__:null,default:states},Symbol.toStringTag,{value:'Module'});var _renderer=/*#__PURE__*/new WeakMap();class CoreView extends FrameworkObject.extend(Evented,ActionHandler){constructor(){super(...arguments);_defineProperty(this,\"isView\",true);_defineProperty(this,\"_superTrigger\",void 0);_defineProperty(this,\"_superHas\",void 0);_classPrivateFieldInitSpec(this,_renderer,(initializeDeferredDecorator(this,\"renderer\"),void 0));}/**\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            */init(properties){var _this$parentView;super.init(properties);// Handle methods from Evented\n// The native class inheritance will not work for mixins. To work around this,\n// we copy the existing trigger and has methods provided by the mixin and swap in the\n// new ones from our class.\nthis._superTrigger=this.trigger;this.trigger=this._trigger;this._superHas=this.has;this.has=this._has;(_this$parentView=this.parentView)!==null&&_this$parentView!==void 0?_this$parentView:this.parentView=null;this._state='preRender';this._currentState=this._states.preRender;}instrumentDetails(hash){hash['object']=this.toString();hash['containerKey']=this._debugContainerKey;hash['view']=this;return hash;}/**\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            */// Changed to `trigger` on init\n_trigger(name){for(var _len40=arguments.length,args=new Array(_len40>1?_len40-1:0),_key41=1;_key41<_len40;_key41++){args[_key41-1]=arguments[_key41];}this._superTrigger(name,...args);let method=this[name];if(typeof method==='function'){return method.apply(this,args);}}// Changed to `has` on init\n_has(name){return typeof this[name]==='function'||this._superHas(name);}}// Declare on the prototype to have a single shared value.\n_CoreView=CoreView;decorateFieldV2(_CoreView.prototype,\"renderer\",[inject$2('renderer','-dom')]);_defineProperty(CoreView,\"isViewFactory\",true);CoreView.prototype._states=states;const emberinternalsViewsLibViewsCoreView=/*#__PURE__*/Object.defineProperty({__proto__:null,default:CoreView},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          */const EMPTY_ARRAY$2=Object.freeze([]);/**\n            @class ClassNamesSupport\n            @namespace Ember\n            @private\n          */const ClassNamesSupport=Mixin.create({concatenatedProperties:['classNames','classNameBindings'],init(){this._super(...arguments);!(descriptorForProperty(this,'classNameBindings')===undefined&&Array.isArray(this.classNameBindings))&&assert$1(`Only arrays are allowed for 'classNameBindings'`,descriptorForProperty(this,'classNameBindings')===undefined&&Array.isArray(this.classNameBindings));!(descriptorForProperty(this,'classNames')===undefined&&Array.isArray(this.classNames))&&assert$1(`Only arrays of static class strings are allowed for 'classNames'. For dynamic classes, use 'classNameBindings'.`,descriptorForProperty(this,'classNames')===undefined&&Array.isArray(this.classNames));},/**\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            */classNames:EMPTY_ARRAY$2,/**\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            */classNameBindings:EMPTY_ARRAY$2});const emberinternalsViewsLibMixinsClassNamesSupport=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ClassNamesSupport},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          */const ChildViewsSupport=Mixin.create({/**\n              Array of child views. You should never edit this array directly.\n               @property childViews\n              @type Array\n              @default []\n              @private\n            */childViews:nativeDescDecorator({configurable:false,enumerable:false,get(){return getChildViews(this);}}),appendChild(view){addChildView(this,view);}});const emberinternalsViewsLibMixinsChildViewsSupport=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ChildViewsSupport},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          */const ViewStateSupport=Mixin.create({_transitionTo(state){let priorState=this._currentState;let currentState=this._currentState=this._states[state];this._state=state;if(priorState&&priorState.exit){priorState.exit(this);}if(currentState.enter){currentState.enter(this);}}});const emberinternalsViewsLibMixinsViewStateSupport=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ViewStateSupport},Symbol.toStringTag,{value:'Module'});function K$1(){return this;}/**\n           @class ViewMixin\n           @namespace Ember\n           @private\n          */const ViewMixin=Mixin.create({/**\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             */concatenatedProperties:['attributeBindings'],// ..........................................................\n// TEMPLATE SUPPORT\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             */nearestOfType(klass){let view=this.parentView;let isOfType=klass instanceof Mixin?view=>klass.detect(view):view=>klass.detect(view.constructor);while(view){if(isOfType(view)){return view;}view=view.parentView;}return;},/**\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             */nearestWithProperty(property){let view=this.parentView;while(view){if(property in view){return view;}view=view.parentView;}},/**\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             */rerender(){return this._currentState.rerender(this);},// ..........................................................\n// ELEMENT SUPPORT\n//\n/**\n             Returns the current DOM element for the view.\n               @property element\n              @type DOMElement\n              @public\n            */element:nativeDescDecorator({configurable:false,enumerable:false,get(){return this.renderer.getElement(this);}}),/**\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} A selector, element, HTML string\n             @return {Ember.View} receiver\n             @private\n             */appendTo(selector){let target;if(hasDOM){!(typeof selector==='string'||selector instanceof Element)&&assert$1(`Expected a selector or instance of Element`,typeof selector==='string'||selector instanceof Element);target=typeof selector==='string'?document.querySelector(selector):selector;!target&&assert$1(`You tried to append to (${selector}) but that isn't in the DOM`,target);!!matches(target,'.ember-view')&&assert$1('You cannot append to an existing Ember.View.',!matches(target,'.ember-view'));!(()=>{let node=target.parentNode;while(node instanceof Element){if(matches(node,'.ember-view')){return false;}node=node.parentNode;}return true;})()&&assert$1('You cannot append to an existing Ember.View.',(()=>{let node=target.parentNode;while(node instanceof Element){if(matches(node,'.ember-view')){return false;}node=node.parentNode;}return true;})());}else{target=selector;!(typeof target!=='string')&&assert$1(`You tried to append to a selector string (${selector}) in an environment without a DOM`,typeof target!=='string');!(typeof target.appendChild==='function')&&assert$1(`You tried to append to a non-Element (${selector}) in an environment without a DOM`,typeof target.appendChild==='function');}// SAFETY: SimpleElement is supposed to be a subset of Element so this _should_ be safe.\n// However, the types are more specific in some places which necessitates the `as`.\nthis.renderer.appendTo(this,target);return this;},/**\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             */append(){return this.appendTo(document.body);},/**\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             */elementId:null,/**\n             Called when a view is going to insert an element into the DOM.\n              @event willInsertElement\n             @public\n             */willInsertElement:K$1,/**\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             */didInsertElement:K$1,/**\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             */willClearRender:K$1,/**\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             */destroy(){this._super(...arguments);this._currentState.destroy(this);},/**\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             */willDestroyElement:K$1,/**\n             Called after the element of the view is destroyed.\n              @event willDestroyElement\n             @public\n             */didDestroyElement:K$1,/**\n             Called when the parentView property has changed.\n              @event parentViewDidChange\n             @private\n             */parentViewDidChange:K$1,// ..........................................................\n// STANDARD RENDER PROPERTIES\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 their `element` property has a `null` value.\n              @property tagName\n             @type String\n             @default null\n             @public\n             */// We leave this null by default so we can tell the difference between\n// the default case and a user-specified tag.\ntagName:null,// .......................................................\n// CORE DISPLAY METHODS\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             */init(){this._super(...arguments);!(descriptorForProperty(this,'elementId')===undefined)&&assert$1(`You cannot use a computed property for the component's \\`elementId\\` (${this}).`,descriptorForProperty(this,'elementId')===undefined);!(descriptorForProperty(this,'tagName')===undefined)&&assert$1(`You cannot use a computed property for the component's \\`tagName\\` (${this}).`,descriptorForProperty(this,'tagName')===undefined);if(!this.elementId&&this.tagName!==''){this.elementId=guidFor(this);}!!this.render&&assert$1('Using a custom `.render` function is no longer supported.',!this.render);},// .......................................................\n// EVENT HANDLING\n//\n/**\n             Handle events from `EventDispatcher`\n              @method handleEvent\n             @param eventName {String}\n             @param evt {Event}\n             @private\n             */handleEvent(eventName,evt){return this._currentState.handleEvent(this,eventName,evt);}});const emberinternalsViewsLibMixinsViewSupport=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ViewMixin},Symbol.toStringTag,{value:'Module'});/**\n           @module ember\n          *//**\n           @class ActionSupport\n           @namespace Ember\n           @private\n          */const ActionSupport=Mixin.create({send(actionName){for(var _len41=arguments.length,args=new Array(_len41>1?_len41-1:0),_key42=1;_key42<_len41;_key42++){args[_key42-1]=arguments[_key42];}!(!this.isDestroying&&!this.isDestroyed)&&assert$1(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`,!this.isDestroying&&!this.isDestroyed);let action=this.actions&&this.actions[actionName];if(action){let shouldBubble=action.apply(this,args)===true;if(!shouldBubble){return;}}let target=get$2(this,'target');if(target){!(typeof target.send==='function')&&assert$1(`The \\`target\\` for ${this} (${target}) does not have a \\`send\\` method`,typeof target.send==='function');target.send(...arguments);}else{!action&&assert$1(`${inspect(this)} had no action handler for: ${actionName}`,action);}}});const emberinternalsViewsLibMixinsActionSupport=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ActionSupport},Symbol.toStringTag,{value:'Module'});const MUTABLE_CELL=Symbol('MUTABLE_CELL');const emberinternalsViewsLibCompatAttrs=/*#__PURE__*/Object.defineProperty({__proto__:null,MUTABLE_CELL},Symbol.toStringTag,{value:'Module'});const emberinternalsViewsIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,ActionManager,ActionSupport,ChildViewsSupport,ClassNamesSupport,ComponentLookup,CoreView,EventDispatcher,MUTABLE_CELL,ViewMixin,ViewStateSupport,addChildView,clearElementView,clearViewElement,constructStyleDeprecationMessage,getChildViews,getElementView,getRootViews,getViewBoundingClientRect,getViewBounds,getViewClientRects,getViewElement,getViewId,isSimpleClick,setElementView,setViewElement},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/engine\n          */const ENGINE_PARENT=Symbol('ENGINE_PARENT');/**\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          */function getEngineParent(engine){return engine[ENGINE_PARENT];}/**\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          */function setEngineParent(engine,parent){engine[ENGINE_PARENT]=parent;}const emberEngineLibEngineParent=/*#__PURE__*/Object.defineProperty({__proto__:null,ENGINE_PARENT,getEngineParent,setEngineParent},Symbol.toStringTag,{value:'Module'});/**\n           @module @ember/service\n           @public\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          */function inject$1(){for(var _len42=arguments.length,args=new Array(_len42),_key43=0;_key43<_len42;_key43++){args[_key43]=arguments[_key43];}return inject$2('service',...args);}/**\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 { 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 { 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 service\n            @static\n            @since 4.1.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          */function service(){for(var _len43=arguments.length,args=new Array(_len43),_key44=0;_key44<_len43;_key44++){args[_key44]=arguments[_key44];}return inject$2('service',...args);}/**\n            @class Service\n            @extends EmberObject\n            @since 1.10.0\n            @public\n          */class Service extends FrameworkObject{}/**\n            A type registry for Ember `Service`s. Meant to be declaration-merged so string\n            lookups resolve to the correct type.\n\n            Blueprints should include such a declaration merge for TypeScript:\n\n            ```ts\n            import Service from '@ember/service';\n\n            export default class ExampleService extends Service {\n              // ...\n            }\n\n            declare module '@ember/service' {\n              export interface Registry {\n                example: ExampleService;\n              }\n            }\n            ```\n\n            Then `@service` can check that the service is registered correctly, and APIs\n            like `owner.lookup('service:example')` can return `ExampleService`.\n           */// NOTE: this cannot be `Record<string, Service | undefined>`, convenient as\n// that would be for end users, because there is no actual contract to that\n// effect with Ember -- and in the future this choice would allow us to have\n// registered services which have no base class.\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\n_defineProperty(Service,\"isServiceFactory\",true);const emberServiceIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Service,inject:inject$1,service},Symbol.toStringTag,{value:'Module'});const LinkToTemplate=templateFactory(/*\n            <a\n            {{!-- for compatibility --}}\n            id={{this.id}}\n            class={{this.class}}\n\n            {{!-- deprecated attribute bindings --}}\n            role={{this.role}}\n            title={{this.title}}\n            rel={{this.rel}}\n            tabindex={{this.tabindex}}\n            target={{this.target}}\n\n            ...attributes\n\n            href={{this.href}}\n\n            {{on 'click' this.click}}\n          >{{yield}}</a>\n          */{\"id\":\"Ub0nir+H\",\"block\":\"[[[11,3],[16,1,[30,0,[\\\"id\\\"]]],[16,0,[30,0,[\\\"class\\\"]]],[16,\\\"role\\\",[30,0,[\\\"role\\\"]]],[16,\\\"title\\\",[30,0,[\\\"title\\\"]]],[16,\\\"rel\\\",[30,0,[\\\"rel\\\"]]],[16,\\\"tabindex\\\",[30,0,[\\\"tabindex\\\"]]],[16,\\\"target\\\",[30,0,[\\\"target\\\"]]],[17,1],[16,6,[30,0,[\\\"href\\\"]]],[4,[32,0],[\\\"click\\\",[30,0,[\\\"click\\\"]]],null],[12],[18,2,null],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"yield\\\"]]\",\"moduleName\":\"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs\",\"scope\":()=>[on],\"isStrictMode\":true});const EMPTY_ARRAY$1=[];const EMPTY_QUERY_PARAMS={};debugFreeze(EMPTY_ARRAY$1);debugFreeze(EMPTY_QUERY_PARAMS);function isMissing(value){return value===null||value===undefined;}function isPresent$1(value){return!isMissing(value);}function isQueryParams(value){return typeof value==='object'&&value!==null&&value['isQueryParams']===true;}/**\n            The `LinkTo` component renders a link to the supplied `routeName` passing an optionally\n            supplied model to the route as its `model` context of the route. The block for `LinkTo`\n            becomes the contents of the rendered element:\n\n            ```handlebars\n            <LinkTo @route='photoGallery'>\n              Great Hamster Photos\n            </LinkTo>\n            ```\n\n            This will result in:\n\n            ```html\n            <a href=\"/hamster-photos\">\n              Great Hamster Photos\n            </a>\n            ```\n\n            ### Disabling the `LinkTo` component\n\n            The `LinkTo` component can be disabled by using the `disabled` argument. A disabled link\n            doesn't result in a transition when activated, and adds the `disabled` class to the `<a>`\n            element.\n\n            (The class name to apply to the element can be overridden by using the `disabledClass`\n            argument)\n\n            ```handlebars\n            <LinkTo @route='photoGallery' @disabled={{true}}>\n              Great Hamster Photos\n            </LinkTo>\n            ```\n\n            ### Handling `href`\n\n            `<LinkTo>` will use your application's Router to fill the element's `href` property with a URL\n            that matches the path to the supplied `routeName`.\n\n            ### Handling current route\n\n            The `LinkTo` component will apply a CSS class name of 'active' when the application's current\n            route matches the supplied routeName. For example, if the application's current route is\n            'photoGallery.recent', then the following invocation of `LinkTo`:\n\n            ```handlebars\n            <LinkTo @route='photoGallery.recent'>\n              Great Hamster Photos\n            </LinkTo>\n            ```\n\n            will result in\n\n            ```html\n            <a href=\"/hamster-photos/this-week\" class=\"active\">\n              Great Hamster Photos\n            </a>\n            ```\n\n            The CSS class used for active classes can be customized by passing an `activeClass` argument:\n\n            ```handlebars\n            <LinkTo @route='photoGallery.recent' @activeClass=\"current-url\">\n              Great Hamster Photos\n            </LinkTo>\n            ```\n\n            ```html\n            <a href=\"/hamster-photos/this-week\" class=\"current-url\">\n              Great Hamster Photos\n            </a>\n            ```\n\n            ### Keeping a link active for other routes\n\n            If you need a link to be 'active' even when it doesn't match the current route, you can use the\n            `current-when` argument.\n\n            ```handlebars\n            <LinkTo @route='photoGallery' @current-when='photos'>\n              Photo Gallery\n            </LinkTo>\n            ```\n\n            This may be helpful for keeping links active for:\n\n            * non-nested routes that are logically related\n            * some secondary menu approaches\n            * 'top navigation' with 'sub navigation' scenarios\n\n            A link will be active if `current-when` is `true` or the current\n            route is the route this link would transition to.\n\n            To match multiple routes 'space-separate' the routes:\n\n            ```handlebars\n            <LinkTo @route='gallery' @current-when='photos drawings paintings'>\n              Art Gallery\n            </LinkTo>\n            ```\n\n            ### Supplying a model\n\n            An optional `model` argument can be used for routes whose\n            paths contain dynamic segments. This argument will become\n            the model context of the linked route:\n\n            ```javascript\n            Router.map(function() {\n              this.route(\"photoGallery\", {path: \"hamster-photos/:photo_id\"});\n            });\n            ```\n\n            ```handlebars\n            <LinkTo @route='photoGallery' @model={{this.aPhoto}}>\n              {{aPhoto.title}}\n            </LinkTo>\n            ```\n\n            ```html\n            <a href=\"/hamster-photos/42\">\n              Tomster\n            </a>\n            ```\n\n            ### Supplying multiple models\n\n            For deep-linking to route paths that contain multiple\n            dynamic segments, the `models` argument can be used.\n\n            As the router transitions through the route path, each\n            supplied model argument will become the context for the\n            route with the dynamic segments:\n\n            ```javascript\n            Router.map(function() {\n              this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" }, function() {\n                this.route(\"comment\", {path: \"comments/:comment_id\"});\n              });\n            });\n            ```\n\n            This argument will become the model context of the linked route:\n\n            ```handlebars\n            <LinkTo @route='photoGallery.comment' @models={{array this.aPhoto this.comment}}>\n              {{comment.body}}\n            </LinkTo>\n            ```\n\n            ```html\n            <a href=\"/hamster-photos/42/comments/718\">\n              A+++ would snuggle again.\n            </a>\n            ```\n\n            ### Supplying an explicit dynamic segment value\n\n            If you don't have a model object available to pass to `LinkTo`,\n            an optional string or integer argument can be passed for routes whose\n            paths contain dynamic segments. This argument will become the value\n            of the dynamic segment:\n\n            ```javascript\n            Router.map(function() {\n              this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" });\n            });\n            ```\n\n            ```handlebars\n            <LinkTo @route='photoGallery' @model={{aPhotoId}}>\n              {{this.aPhoto.title}}\n            </LinkTo>\n            ```\n\n            ```html\n            <a href=\"/hamster-photos/42\">\n              Tomster\n            </a>\n            ```\n\n            When transitioning into the linked route, the `model` hook will\n            be triggered with parameters including this passed identifier.\n\n            ### Supplying 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            @public\n          *//**\n            @module @ember/routing\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            An opaque interface which can be imported and used in strict-mode\n            templates to call <LinkTo>.\n\n            See [Ember.Templates.components.LinkTo](/ember/release/classes/Ember.Templates.components/methods/input?anchor=LinkTo).\n\n            @for @ember/routing\n            @method LinkTo\n            @see {Ember.Templates.components.LinkTo}\n            @public\n          **/var _routing=/*#__PURE__*/new WeakMap();class _LinkTo extends InternalComponent{constructor(){super(...arguments);_classPrivateFieldInitSpec(this,_routing,(initializeDeferredDecorator(this,\"routing\"),void 0));// GH #17963\n_defineProperty(this,\"currentRouteCache\",createCache(()=>{consumeTag(tagFor(this.routing,'currentState'));return untrack(()=>this.routing.currentRouteName);}));}static toString(){return'LinkTo';}validateArguments(){!(!this.isEngine||this.engineMountPoint!==undefined)&&assert$1('You attempted to use the <LinkTo> component within a routeless engine, this is not supported. '+'If you are using the ember-engines addon, use the <LinkToExternal> component instead. '+'See https://ember-engines.com/docs/links for more info.',!this.isEngine||this.engineMountPoint!==undefined);!('route'in this.args.named||'model'in this.args.named||'models'in this.args.named||'query'in this.args.named)&&assert$1('You must provide at least one of the `@route`, `@model`, `@models` or `@query` arguments to `<LinkTo>`.','route'in this.args.named||'model'in this.args.named||'models'in this.args.named||'query'in this.args.named);!!('model'in this.args.named&&'models'in this.args.named)&&assert$1('You cannot provide both the `@model` and `@models` arguments to the <LinkTo> component.',!('model'in this.args.named&&'models'in this.args.named));super.validateArguments();}get class(){let classes='ember-view';if(this.isActive){classes+=this.classFor('active');if(this.willBeActive===false){classes+=' ember-transitioning-out';}}else if(this.willBeActive){classes+=' ember-transitioning-in';}if(this.isLoading){classes+=this.classFor('loading');}if(this.isDisabled){classes+=this.classFor('disabled');}return classes;}get href(){if(this.isLoading){return'#';}let{routing,route,models,query}=this;!isPresent$1(route)&&assert$1('[BUG] route can only be missing if isLoading is true',isPresent$1(route));// consume the current router state so we invalidate when QP changes\n// TODO: can we narrow this down to QP changes only?\nconsumeTag(tagFor(routing,'currentState'));{try{return routing.generateURL(route,models,query);}catch(e){let details=e instanceof Error?e.message:inspect(e);let message=`While generating link to route \"${route}\": ${details}`;if(e instanceof Error){e.message=message;throw e;}else{throw message;}}}}click(event){if(!isSimpleClick(event)){return;}let element=event.currentTarget;!(element instanceof HTMLAnchorElement)&&assert$1('[BUG] must be an <a> element',element instanceof HTMLAnchorElement);let isSelf=element.target===''||element.target==='_self';if(isSelf){this.preventDefault(event);}else{return;}if(this.isDisabled){return;}if(this.isLoading){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,{id:'ember-glimmer.link-to.inactive-loading-state'});return;}let{routing,route,models,query,replace}=this;let payload={routeName:route,queryParams:query,transition:undefined};flaggedInstrument('interaction.link-to',payload,()=>{!isPresent$1(route)&&assert$1('[BUG] route can only be missing if isLoading is true',isPresent$1(route));payload.transition=routing.transitionTo(route,models,query,replace);});}get route(){if('route'in this.args.named){let route=this.named('route');!(isMissing(route)||typeof route==='string')&&assert$1('The `@route` argument to the <LinkTo> component must be a string',isMissing(route)||typeof route==='string');return route&&this.namespaceRoute(route);}else{return this.currentRoute;}}get currentRoute(){return getValue(this.currentRouteCache);}// TODO: not sure why generateURL takes {}[] instead of unknown[]\nget models(){if('models'in this.args.named){let models=this.named('models');!Array.isArray(models)&&assert$1('The `@models` argument to the <LinkTo> component must be an array.',Array.isArray(models));return models;}else if('model'in this.args.named){return[this.named('model')];}else{return EMPTY_ARRAY$1;}}get query(){if('query'in this.args.named){let query=this.named('query');!(query!==null&&typeof query==='object')&&assert$1('The `@query` argument to the <LinkTo> component must be an object.',query!==null&&typeof query==='object');return{...query};}else{return EMPTY_QUERY_PARAMS;}}get replace(){return this.named('replace')===true;}get isActive(){return this.isActiveForState(this.routing.currentState);}get willBeActive(){let current=this.routing.currentState;let target=this.routing.targetState;if(current===target){return null;}else{return this.isActiveForState(target);}}get isLoading(){return isMissing(this.route)||this.models.some(model=>isMissing(model));}get isDisabled(){return Boolean(this.named('disabled'));}get isEngine(){let owner=this.owner;return getEngineParent(owner)!==undefined;}get engineMountPoint(){let owner=this.owner;return owner.mountPoint;}classFor(state){let className=this.named(`${state}Class`);!(isMissing(className)||typeof className==='string'||typeof className==='boolean')&&assert$1(`The \\`@${state}Class\\` argument to the <LinkTo> component must be a string or boolean`,isMissing(className)||typeof className==='string'||typeof className==='boolean');if(className===true||isMissing(className)){return` ${state}`;}else if(className){return` ${className}`;}else{return'';}}namespaceRoute(route){let{engineMountPoint}=this;if(engineMountPoint===undefined){return route;}else if(route==='application'){return engineMountPoint;}else{return`${engineMountPoint}.${route}`;}}isActiveForState(state){if(!isPresent$1(state)){return false;}if(this.isLoading){return false;}let currentWhen=this.named('current-when');if(typeof currentWhen==='boolean'){return currentWhen;}else if(typeof currentWhen==='string'){let{models,routing}=this;return currentWhen.split(' ').some(route=>routing.isActiveForRoute(models,undefined,this.namespaceRoute(route),state));}else{let{route,models,query,routing}=this;!isPresent$1(route)&&assert$1('[BUG] route can only be missing if isLoading is true',isPresent$1(route));return routing.isActiveForRoute(models,query,route,state);}}preventDefault(event){event.preventDefault();}isSupportedArgument(name){let supportedArguments=['route','model','models','query','replace','disabled','current-when','activeClass','loadingClass','disabledClass'];return supportedArguments.indexOf(name)!==-1||super.isSupportedArgument(name);}}_LinkTo2=_LinkTo;decorateFieldV2(_LinkTo2.prototype,\"routing\",[service('-routing')]);decorateMethodV2(_LinkTo2.prototype,\"click\",[action$1]);let{prototype}=_LinkTo;let descriptorFor=(target,property)=>{if(target){return Object.getOwnPropertyDescriptor(target,property)||descriptorFor(Object.getPrototypeOf(target),property);}else{return null;}};// @href\n{let superOnUnsupportedArgument=prototype['onUnsupportedArgument'];Object.defineProperty(prototype,'onUnsupportedArgument',{configurable:true,enumerable:false,value:function onUnsupportedArgument(name){if(name==='href'){assert$1(`Passing the \\`@href\\` argument to <LinkTo> is not supported.`);}else{superOnUnsupportedArgument.call(this,name);}}});}// QP\n{let superModelsDescriptor=descriptorFor(prototype,'models');!(superModelsDescriptor&&typeof superModelsDescriptor.get==='function')&&assert$1(`[BUG] expecting models to be a getter on <LinkTo>`,superModelsDescriptor&&typeof superModelsDescriptor.get==='function');let superModelsGetter=superModelsDescriptor.get;Object.defineProperty(prototype,'models',{configurable:true,enumerable:false,get:function models(){let models=superModelsGetter.call(this);if(models.length>0&&!('query'in this.args.named)){if(isQueryParams(models[models.length-1])){models=models.slice(0,-1);}}return models;}});let superQueryDescriptor=descriptorFor(prototype,'query');!(superQueryDescriptor&&typeof superQueryDescriptor.get==='function')&&assert$1(`[BUG] expecting query to be a getter on <LinkTo>`,superQueryDescriptor&&typeof superQueryDescriptor.get==='function');let superQueryGetter=superQueryDescriptor.get;Object.defineProperty(prototype,'query',{configurable:true,enumerable:false,get:function query(){if('query'in this.args.named){let qp=superQueryGetter.call(this);if(isQueryParams(qp)){var _qp$values;return(_qp$values=qp.values)!==null&&_qp$values!==void 0?_qp$values:EMPTY_QUERY_PARAMS;}else{return qp;}}else{let models=superModelsGetter.call(this);if(models.length>0){let qp=models[models.length-1];if(isQueryParams(qp)&&qp.values!==null){return qp.values;}}return EMPTY_QUERY_PARAMS;}}});}// Positional Arguments\n{let superOnUnsupportedArgument=prototype['onUnsupportedArgument'];Object.defineProperty(prototype,'onUnsupportedArgument',{configurable:true,enumerable:false,value:function onUnsupportedArgument(name){if(name!=='params'){superOnUnsupportedArgument.call(this,name);}}});}const LinkTo=opaquify(_LinkTo,LinkToTemplate);const TextareaTemplate=templateFactory(/*\n            <textarea\n            {{!-- for compatibility --}}\n            id={{this.id}}\n            class={{this.class}}\n\n            ...attributes\n\n            value={{this.value}}\n\n            {{on \"change\" this.change}}\n            {{on \"input\" this.input}}\n            {{on \"keyup\" this.keyUp}}\n            {{on \"paste\" this.valueDidChange}}\n            {{on \"cut\" this.valueDidChange}}\n          />\n          */{\"id\":\"112WKCh2\",\"block\":\"[[[11,\\\"textarea\\\"],[16,1,[30,0,[\\\"id\\\"]]],[16,0,[30,0,[\\\"class\\\"]]],[17,1],[16,2,[30,0,[\\\"value\\\"]]],[4,[32,0],[\\\"change\\\",[30,0,[\\\"change\\\"]]],null],[4,[32,0],[\\\"input\\\",[30,0,[\\\"input\\\"]]],null],[4,[32,0],[\\\"keyup\\\",[30,0,[\\\"keyUp\\\"]]],null],[4,[32,0],[\\\"paste\\\",[30,0,[\\\"valueDidChange\\\"]]],null],[4,[32,0],[\\\"cut\\\",[30,0,[\\\"valueDidChange\\\"]]],null],[12],[13]],[\\\"&attrs\\\"],false,[]]\",\"moduleName\":\"packages/@ember/-internals/glimmer/lib/templates/textarea.hbs\",\"scope\":()=>[on],\"isStrictMode\":true});/**\n          @module @ember/component\n          */class _Textarea extends AbstractInput{static toString(){return'Textarea';}get class(){return'ember-text-area ember-view';}// See abstract-input.ts for why these are needed\nchange(event){super.change(event);}input(event){super.input(event);}isSupportedArgument(name){let supportedArguments=['type','value','enter','insert-newline','escape-press'];return supportedArguments.indexOf(name)!==-1||super.isSupportedArgument(name);}}_Textarea2=_Textarea;decorateMethodV2(_Textarea2.prototype,\"change\",[action$1]);decorateMethodV2(_Textarea2.prototype,\"input\",[action$1]);const Textarea=opaquify(_Textarea,TextareaTemplate);function isTemplateFactory(template){return typeof template==='function';}function referenceForParts(rootRef,parts){let isAttrs=parts[0]==='attrs';// TODO deprecate this\nif(isAttrs){parts.shift();if(parts.length===1){return childRefFor(rootRef,parts[0]);}}return childRefFromParts(rootRef,parts);}function parseAttributeBinding(microsyntax){let colonIndex=microsyntax.indexOf(':');if(colonIndex===-1){!(microsyntax!=='class')&&assert$1('You cannot use class as an attributeBinding, use classNameBindings instead.',microsyntax!=='class');return[microsyntax,microsyntax,true];}else{let prop=microsyntax.substring(0,colonIndex);let attribute=microsyntax.substring(colonIndex+1);!(attribute!=='class')&&assert$1('You cannot use class as an attributeBinding, use classNameBindings instead.',attribute!=='class');return[prop,attribute,false];}}function installAttributeBinding(component,rootRef,parsed,operations){let[prop,attribute,isSimple]=parsed;if(attribute==='id'){// SAFETY: `get` could not infer the type of `prop` and just gave us `unknown`.\n//         we may want to throw an error in the future if the value isn't string or null/undefined.\nlet elementId=get$2(component,prop);if(elementId===undefined||elementId===null){elementId=component.elementId;}let elementIdRef=createPrimitiveRef(elementId);operations.setAttribute('id',elementIdRef,true,null);return;}let isPath=prop.indexOf('.')>-1;let reference=isPath?referenceForParts(rootRef,prop.split('.')):childRefFor(rootRef,prop);!!(isSimple&&isPath)&&assert$1(`Illegal attributeBinding: '${prop}' is not a valid attribute name.`,!(isSimple&&isPath));operations.setAttribute(attribute,reference,false,null);}function createClassNameBindingRef(rootRef,microsyntax,operations){let parts=microsyntax.split(':');let[prop,truthy,falsy]=parts;// NOTE: This could be an empty string\n!(prop!==undefined)&&assert$1('has prop',prop!==undefined);// Will always have at least one part\nlet isStatic=prop==='';if(isStatic){operations.setAttribute('class',createPrimitiveRef(truthy),true,null);}else{let isPath=prop.indexOf('.')>-1;let parts=isPath?prop.split('.'):[];let value=isPath?referenceForParts(rootRef,parts):childRefFor(rootRef,prop);let ref;if(truthy===undefined){ref=createSimpleClassNameBindingRef(value,isPath?parts[parts.length-1]:prop);}else{ref=createColonClassNameBindingRef(value,truthy,falsy);}operations.setAttribute('class',ref,false,null);}}function createSimpleClassNameBindingRef(inner,path){let dasherizedPath;return createComputeRef(()=>{let value=valueForRef(inner);if(value===true){!(path!==undefined)&&assert$1('You must pass a path when binding a to a class name using classNameBindings',path!==undefined);return dasherizedPath||(dasherizedPath=dasherize(path));}else if(value||value===0){return String(value);}else{return null;}});}function createColonClassNameBindingRef(inner,truthy,falsy){return createComputeRef(()=>{return valueForRef(inner)?truthy:falsy;});}function NOOP$1(){}/**\n            @module ember\n          *//**\n            Represents the internal state of the component.\n\n            @class ComponentStateBucket\n            @private\n          */class ComponentStateBucket{constructor(component,args,argsTag,finalizer,hasWrappedElement,isInteractive){_defineProperty(this,\"classRef\",null);_defineProperty(this,\"rootRef\",void 0);_defineProperty(this,\"argsRevision\",void 0);this.component=component;this.args=args;this.argsTag=argsTag;this.finalizer=finalizer;this.hasWrappedElement=hasWrappedElement;this.isInteractive=isInteractive;this.classRef=null;this.argsRevision=args===null?0:valueForTag(argsTag);this.rootRef=createConstRef(component,'this');registerDestructor$1(this,()=>this.willDestroy(),true);registerDestructor$1(this,()=>this.component.destroy());}willDestroy(){let{component,isInteractive}=this;if(isInteractive){beginUntrackFrame();component.trigger('willDestroyElement');component.trigger('willClearRender');endUntrackFrame();let element=getViewElement(component);if(element){clearElementView(element);clearViewElement(component);}}component.renderer.unregister(component);}finalize(){let{finalizer}=this;finalizer();this.finalizer=NOOP$1;}}function internalHelper(helper){return setInternalHelperManager(helper,{});}/**\n          @module ember\n          */const ACTIONS=new WeakSet();/**\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 are presented in JavaScript as callbacks, and are\n            invoked like any other JavaScript function.\n\n            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.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 { service } from '@ember/service';\n\n            export default class extends Controller {\n              @service someService;\n            }\n            ```\n\n            @method action\n            @deprecated\n            @for Ember.Templates.helpers\n            @public\n          */const action=internalHelper(args=>{deprecateUntil(`Usage of the \\`(action)\\` helper is deprecated. Migrate to native functions and function invocation.`,DEPRECATIONS.DEPRECATE_TEMPLATE_ACTION);let{named,positional}=args;// The first two argument slots are reserved.\n// pos[0] is the context (or `this`)\n// pos[1] is the action name or function\n// Anything else is an action argument.\nlet[context,action,...restArgs]=positional;!(context&&action)&&assert$1('hash position arguments',context&&action);let debugKey=action.debugLabel;let target='target'in named?named['target']:context;let processArgs=makeArgsProcessor('value'in named&&named['value']||false,restArgs);let fn;if(isInvokableRef(action)){fn=makeClosureAction(action,action,invokeRef,processArgs,debugKey);}else{fn=makeDynamicClosureAction(valueForRef(context),// SAFETY: glimmer-vm should expose narrowing utilities for references\n//         as is, `target` is still `Reference<unknown>`.\n//         however, we never even tried to narrow `target`, so this is potentially risky code.\ntarget,// SAFETY: glimmer-vm should expose narrowing utilities for references\n//         as is, `action` is still `Reference<unknown>`\naction,processArgs,debugKey);}ACTIONS.add(fn);return createUnboundRef(fn,'(result of an `action` helper)');});function NOOP(args){return args;}function makeArgsProcessor(valuePathRef,actionArgsRef){let mergeArgs;if(actionArgsRef.length>0){mergeArgs=args=>{return actionArgsRef.map(valueForRef).concat(args);};}let readValue;if(valuePathRef){readValue=args=>{let valuePath=valueForRef(valuePathRef);if(valuePath&&args.length>0){args[0]=get$2(args[0],valuePath);}return args;};}if(mergeArgs&&readValue){return args=>{return readValue(mergeArgs(args));};}else{return mergeArgs||readValue||NOOP;}}function makeDynamicClosureAction(context,targetRef,actionRef,processArgs,debugKey){const action=valueForRef(actionRef);// We don't allow undefined/null values, so this creates a throw-away action to trigger the assertions\n{makeClosureAction(context,valueForRef(targetRef),action,processArgs,debugKey);}return function(){return makeClosureAction(context,valueForRef(targetRef),action,processArgs,debugKey)(...arguments);};}function makeClosureAction(context,target,action,processArgs,debugKey){let self;let fn;!(action!==undefined&&action!==null)&&assert$1(`Action passed is null or undefined in (action) from ${target}.`,action!==undefined&&action!==null);if(typeof action==='string'){var _target$actions;!(target!==null&&typeof target==='object')&&assert$1('target must be an object',target!==null&&typeof target==='object');self=target;let value=(_target$actions=target.actions)===null||_target$actions===void 0?void 0:_target$actions[action];!Boolean(value)&&assert$1(`An action named '${action}' was not found in ${target}`,Boolean(value));!(typeof value==='function')&&assert$1(`An action named '${action}' was found in ${target}, but is not a function`,typeof value==='function');fn=value;}else if(typeof action==='function'){self=context;fn=action;}else{assert$1(`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);}return function(){for(var _len44=arguments.length,args=new Array(_len44),_key45=0;_key45<_len44;_key45++){args[_key45]=arguments[_key45];}let payload={target:self,args,label:'@glimmer/closure-action'};return flaggedInstrument('interaction.ember-action',payload,()=>{return join(self,fn,...processArgs(args));});};}// The code above:\n// 1. Finds an action function, usually on the `actions` hash\n// 2. Calls it with the target as the correct `this` context\n// Previously, `UPDATE_REFERENCED_VALUE` was a method on the reference itself,\n// so this made a bit more sense. Now, it isn't, and so we need to create a\n// function that can have `this` bound to it when called. This allows us to use\n// the same codepath to call `updateRef` on the reference.\nfunction invokeRef(value){updateRef(this,value);}// ComponentArgs takes EvaluatedNamedArgs and converts them into the\n// inputs needed by CurlyComponents (attrs and props, with mutable\n// cells, etc).\nfunction processComponentArgs(namedArgs){let attrs=Object.create(null);let props=Object.create(null);for(let name in namedArgs){let ref=namedArgs[name];!ref&&assert$1('expected ref',ref);let value=valueForRef(ref);let isAction=typeof value==='function'&&ACTIONS.has(value);if(isUpdatableRef(ref)&&!isAction){attrs[name]=new MutableCell(ref,value);}else{attrs[name]=value;}props[name]=value;}props.attrs=attrs;return props;}const REF=Symbol('REF');class MutableCell{constructor(ref,value){_defineProperty(this,\"value\",void 0);_defineProperty(this,MUTABLE_CELL,void 0);_defineProperty(this,REF,void 0);this[MUTABLE_CELL]=true;this[REF]=ref;this.value=value;}update(val){updateRef(this[REF],val);}}const ARGS=enumerableSymbol('ARGS');const HAS_BLOCK=enumerableSymbol('HAS_BLOCK');const DIRTY_TAG=Symbol('DIRTY_TAG');const IS_DISPATCHING_ATTRS=Symbol('IS_DISPATCHING_ATTRS');const BOUNDS=Symbol('BOUNDS');const EMBER_VIEW_REF=createPrimitiveRef('ember-view');function aliasIdToElementId(args,props){if(args.named.has('id')){!!args.named.has('elementId')&&assert$1(`You cannot invoke a component with both 'id' and 'elementId' at the same time.`,!args.named.has('elementId'));props.elementId=props.id;}}// 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.\nfunction applyAttributeBindings(attributeBindings,component,rootRef,operations){let seen=[];let i=attributeBindings.length-1;while(i!==-1){let binding=attributeBindings[i];!binding&&assert$1('has binding',binding);let parsed=parseAttributeBinding(binding);let attribute=parsed[1];if(seen.indexOf(attribute)===-1){seen.push(attribute);installAttributeBinding(component,rootRef,parsed,operations);}i--;}if(seen.indexOf('id')===-1){let id=component.elementId?component.elementId:guidFor(component);operations.setAttribute('id',createPrimitiveRef(id),false,null);}}const EMPTY_POSITIONAL_ARGS=[];debugFreeze(EMPTY_POSITIONAL_ARGS);class CurlyComponentManager{templateFor(component){let{layout,layoutName}=component;let owner=getOwner$2(component);!owner&&assert$1('Component is unexpectedly missing an owner',owner);let factory;if(layout===undefined){if(layoutName!==undefined){let _factory=owner.lookup(`template:${layoutName}`);!(_factory!==undefined)&&assert$1(`Layout \\`${layoutName}\\` not found!`,_factory!==undefined);factory=_factory;}else{return null;}}else if(isTemplateFactory(layout)){factory=layout;}else{// no layout was found, use the default layout\nreturn null;}return unwrapTemplate(factory(owner)).asWrappedLayout();}getDynamicLayout(bucket){return this.templateFor(bucket.component);}getTagName(state){let{component,hasWrappedElement}=state;if(!hasWrappedElement){return null;}return component&&component.tagName||'div';}getCapabilities(){return CURLY_CAPABILITIES;}prepareArgs(ComponentClass,args){var _ComponentClass$class;if(args.named.has('__ARGS__')){!(args.positional.length===0)&&assert$1('[BUG] cannot pass both __ARGS__ and positional arguments',args.positional.length===0);let{__ARGS__,...rest}=args.named.capture();!__ARGS__&&assert$1('[BUG] unexpectedly missing __ARGS__ after check',__ARGS__);// does this need to be untracked?\nlet __args__=valueForRef(__ARGS__);let prepared={positional:__args__.positional,named:{...rest,...__args__.named}};return prepared;}const{positionalParams}=(_ComponentClass$class=ComponentClass.class)!==null&&_ComponentClass$class!==void 0?_ComponentClass$class:ComponentClass;// early exits\nif(positionalParams===undefined||positionalParams===null||args.positional.length===0){return null;}let named;if(typeof positionalParams==='string'){!!args.named.has(positionalParams)&&assert$1(`You cannot specify positional parameters and the hash argument \\`${positionalParams}\\`.`,!args.named.has(positionalParams));let captured=args.positional.capture();named={[positionalParams]:createComputeRef(()=>reifyPositional(captured))};Object.assign(named,args.named.capture());}else if(Array.isArray(positionalParams)&&positionalParams.length>0){const count=Math.min(positionalParams.length,args.positional.length);named={};Object.assign(named,args.named.capture());for(let i=0;i<count;i++){let name=positionalParams[i];!name&&assert$1('Expected at least one positional param',name);!!args.named.has(name)&&assert$1(`You cannot specify both a positional param (at position ${i}) and the hash argument \\`${name}\\`.`,!args.named.has(name));named[name]=args.positional.at(i);}}else{return null;}return{positional:EMPTY_ARRAY$4,named};}/*\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             */create(owner,ComponentClass,args,_ref127,dynamicScope,callerSelfRef,hasBlock){let{isInteractive}=_ref127;// Get the nearest concrete component instance from the scope. \"Virtual\"\n// components will be skipped.\nlet parentView=dynamicScope.view;// Capture the arguments, which tells Glimmer to give us our own, stable\n// copy of the Arguments object that is safe to hold on to between renders.\nlet capturedArgs=args.named.capture();beginTrackFrame();let props=processComponentArgs(capturedArgs);props[ARGS]=capturedArgs;let argsTag=endTrackFrame();// Alias `id` argument to `elementId` property on the component instance.\naliasIdToElementId(args,props);// Set component instance's parentView property to point to nearest concrete\n// component.\nprops.parentView=parentView;// Set whether this component was invoked with a block\n// (`{{#my-component}}{{/my-component}}`) or without one\n// (`{{my-component}}`).\nprops[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.\nprops._target=valueForRef(callerSelfRef);setOwner$1(props,owner);// caller:\n// <FaIcon @name=\"bug\" />\n//\n// callee:\n// <i class=\"fa-{{@name}}\"></i>\n// Now that we've built up all of the properties to set on the component instance,\n// actually create it.\nbeginUntrackFrame();let component=ComponentClass.create(props);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.\ndynamicScope.view=component;// Unless we're the root component, we need to add ourselves to our parent\n// component's childViews array.\nif(parentView!==null&&parentView!==undefined){addChildView(parentView,component);}component.trigger('didReceiveAttrs');let hasWrappedElement=component.tagName!=='';// We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\nif(!hasWrappedElement){if(isInteractive){component.trigger('willRender');}component._transitionTo('hasElement');if(isInteractive){component.trigger('willInsertElement');}}// 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.\nlet bucket=new ComponentStateBucket(component,capturedArgs,argsTag,finalizer,hasWrappedElement,isInteractive);if(args.named.has('class')){bucket.classRef=args.named.get('class');}{processComponentInitializationAssertions(component,props);}if(isInteractive&&hasWrappedElement){component.trigger('willRender');}endUntrackFrame();// consume every argument so we always run again\nconsumeTag(bucket.argsTag);consumeTag(component[DIRTY_TAG]);return bucket;}getDebugName(definition){var _definition$class;return definition.fullName||definition.normalizedName||((_definition$class=definition.class)===null||_definition$class===void 0?void 0:_definition$class.name)||definition.name;}getSelf(_ref128){let{rootRef}=_ref128;return rootRef;}didCreateElement(_ref129,element,operations){let{component,classRef,isInteractive,rootRef}=_ref129;setViewElement(component,element);setElementView(element,component);let{attributeBindings,classNames,classNameBindings}=component;if(attributeBindings&&attributeBindings.length){applyAttributeBindings(attributeBindings,component,rootRef,operations);}else{let id=component.elementId?component.elementId:guidFor(component);operations.setAttribute('id',createPrimitiveRef(id),false,null);}if(classRef){const ref=createSimpleClassNameBindingRef(classRef);operations.setAttribute('class',ref,false,null);}if(classNames&&classNames.length){classNames.forEach(name=>{operations.setAttribute('class',createPrimitiveRef(name),false,null);});}if(classNameBindings&&classNameBindings.length){classNameBindings.forEach(binding=>{createClassNameBindingRef(rootRef,binding,operations);});}operations.setAttribute('class',EMBER_VIEW_REF,false,null);if('ariaRole'in component){operations.setAttribute('role',childRefFor(rootRef,'ariaRole'),false,null);}component._transitionTo('hasElement');if(isInteractive){beginUntrackFrame();component.trigger('willInsertElement');endUntrackFrame();}}didRenderLayout(bucket,bounds){bucket.component[BOUNDS]=bounds;bucket.finalize();}didCreate(_ref130){let{component,isInteractive}=_ref130;if(isInteractive){component._transitionTo('inDOM');component.trigger('didInsertElement');component.trigger('didRender');}}update(bucket){let{component,args,argsTag,argsRevision,isInteractive}=bucket;bucket.finalizer=_instrumentStart('render.component',rerenderInstrumentDetails,component);beginUntrackFrame();if(args!==null&&!validateTag(argsTag,argsRevision)){beginTrackFrame();let props=processComponentArgs(args);argsTag=bucket.argsTag=endTrackFrame();bucket.argsRevision=valueForTag(argsTag);component[IS_DISPATCHING_ATTRS]=true;component.setProperties(props);component[IS_DISPATCHING_ATTRS]=false;component.trigger('didUpdateAttrs');component.trigger('didReceiveAttrs');}if(isInteractive){component.trigger('willUpdate');component.trigger('willRender');}endUntrackFrame();consumeTag(argsTag);consumeTag(component[DIRTY_TAG]);}didUpdateLayout(bucket){bucket.finalize();}didUpdate(_ref131){let{component,isInteractive}=_ref131;if(isInteractive){component.trigger('didUpdate');component.trigger('didRender');}}getDestroyable(bucket){return bucket;}}function processComponentInitializationAssertions(component,props){!(()=>{let{classNameBindings}=component;for(let i=0;i<classNameBindings.length;i++){let binding=classNameBindings[i];if(typeof binding!=='string'||binding.length===0){return false;}}return true;})()&&assert$1(`classNameBindings must be non-empty strings: ${component}`,(()=>{let{classNameBindings}=component;for(let i=0;i<classNameBindings.length;i++){let binding=classNameBindings[i];if(typeof binding!=='string'||binding.length===0){return false;}}return true;})());!(()=>{let{classNameBindings}=component;for(let binding of classNameBindings){if(binding.split(' ').length>1){return false;}}return true;})()&&assert$1(`classNameBindings must not have spaces in them: ${component}`,(()=>{let{classNameBindings}=component;for(let binding of classNameBindings){if(binding.split(' ').length>1){return false;}}return true;})());!(component.tagName!==''||!component.classNameBindings||component.classNameBindings.length===0)&&assert$1(`You cannot use \\`classNameBindings\\` on a tag-less component: ${component}`,component.tagName!==''||!component.classNameBindings||component.classNameBindings.length===0);!(component.tagName!==''||props.id===component.elementId||!component.elementId&&component.elementId!=='')&&assert$1(`You cannot use \\`elementId\\` on a tag-less component: ${component}`,component.tagName!==''||props.id===component.elementId||!component.elementId&&component.elementId!=='');!(component.tagName!==''||!component.attributeBindings||component.attributeBindings.length===0)&&assert$1(`You cannot use \\`attributeBindings\\` on a tag-less component: ${component}`,component.tagName!==''||!component.attributeBindings||component.attributeBindings.length===0);}function initialRenderInstrumentDetails(component){return component.instrumentDetails({initialRender:true});}function rerenderInstrumentDetails(component){return component.instrumentDetails({initialRender:false});}const CURLY_CAPABILITIES={dynamicLayout:true,dynamicTag:true,prepareArgs:true,createArgs:true,attributeHook:true,elementHook:true,createCaller:true,dynamicScope:true,updateHook:true,createInstance:true,wrapped:true,willDestroy:true,hasSubOwner:false};const CURLY_COMPONENT_MANAGER=new CurlyComponentManager();function isCurlyManager(manager){return manager===CURLY_COMPONENT_MANAGER;}// Keep track of which component classes have already been processed for lazy event setup.\nlet lazyEventsProcessed=new WeakMap();/**\n          @module @ember/component\n          */// A zero-runtime-overhead private symbol to use in branding the component to\n// preserve its type parameter.\n/**\n            A component is a reusable UI element that consists of a `.hbs` template and an\n            optional JavaScript class that defines its behavior. For example, someone\n            might make a `button` in the template and handle the click behavior in the\n            JavaScript file that shares the same name as the template.\n\n            Components are broken down into two categories:\n\n            - Components _without_ JavaScript, that are based only on a template. These\n              are called Template-only or TO components.\n            - Components _with_ JavaScript, which consist of a template and a backing\n              class.\n\n            Ember ships with two types of JavaScript classes for components:\n\n            1. Glimmer components, imported from `@glimmer/component`, which are the\n               default component's for Ember Octane (3.15) and more recent editions.\n            2. Classic components, imported from `@ember/component`, which were the\n               default for older editions of Ember (pre 3.15).\n\n            Below is the documentation for Classic components. If you are looking for the\n            API documentation for Template-only or Glimmer components, it is [available\n            here](/ember/release/modules/@glimmer%2Fcomponent).\n\n            ## Defining a Classic Component\n\n            If you want to customize the component in order to handle events, transform\n            arguments or maintain internal state, you implement a subclass of `Component`.\n\n            One example is to add computed properties to your component:\n\n            ```app/components/person-profile.js\n            import Component from '@ember/component';\n\n            export default Component.extend({\n              displayName: computed('person.title', 'person.firstName', 'person.lastName', function() {\n                let { title, firstName, lastName } = this.person;\n\n                if (title) {\n                  return `${title} ${lastName}`;\n                } else {\n                  return `${firstName} ${lastName}`;\n                }\n              })\n            });\n            ```\n\n            And then use it in the component's template:\n\n            ```app/templates/components/person-profile.hbs\n            <h1>{{this.displayName}}</h1>\n            {{yield}}\n            ```\n\n            ## Customizing a Classic Component's HTML Element in JavaScript\n\n            ### HTML Tag\n\n            The default HTML tag name used for a component's HTML representation is `div`.\n            This can be customized by setting the `tagName` property.\n\n            Consider the following component class:\n\n            ```app/components/emphasized-paragraph.js\n            import Component from '@ember/component';\n\n            export default Component.extend({\n              tagName: 'em'\n            });\n            ```\n\n            When invoked, this component would produce output that looks something like\n            this:\n\n            ```html\n            <em id=\"ember1\" class=\"ember-view\"></em>\n            ```\n\n            ### HTML `class` Attribute\n\n            The HTML `class` attribute of a component's tag can be set by providing a\n            `classNames` property that is set to an array of strings:\n\n            ```app/components/my-widget.js\n            import Component from '@ember/component';\n\n            export default Component.extend({\n              classNames: ['my-class', 'my-other-class']\n            });\n            ```\n\n            Invoking this component will produce output that looks like this:\n\n            ```html\n            <div id=\"ember1\" class=\"ember-view my-class my-other-class\"></div>\n            ```\n\n            `class` attribute values can also be set by providing a `classNameBindings`\n            property set to an array of properties names for the component. The return\n            value of these properties will be added as part of the value for the\n            components's `class` attribute. These properties can be computed properties:\n\n            ```app/components/my-widget.js\n            import Component from '@ember/component';\n            import { computed } from '@ember/object';\n\n            export default Component.extend({\n              classNames: ['my-class', 'my-other-class'],\n              classNameBindings: ['propertyA', 'propertyB'],\n\n              propertyA: 'from-a',\n              propertyB: computed(function() {\n                if (someLogic) { return 'from-b'; }\n              })\n            });\n            ```\n\n            Invoking this component will produce HTML that looks like:\n\n            ```html\n            <div id=\"ember1\" class=\"ember-view my-class my-other-class from-a from-b\"></div>\n            ```\n\n            Note that `classNames` and `classNameBindings` is in addition to the `class`\n            attribute passed with the angle bracket invocation syntax. Therefore, if this\n            component was invoked like so:\n\n            ```handlebars\n            <MyWidget class=\"from-invocation\" />\n            ```\n\n            The resulting HTML will look similar to this:\n\n            ```html\n            <div id=\"ember1\" class=\"from-invocation ember-view my-class my-other-class from-a from-b\"></div>\n            ```\n\n            If the value of a class name binding returns a boolean the property name\n            itself will be used as the class name if the property is true. The class name\n            will not be added if the value is `false` or `undefined`.\n\n            ```app/components/my-widget.js\n            import Component from '@ember/component';\n\n            export default Component.extend({\n              classNameBindings: ['hovered'],\n\n              hovered: true\n            });\n            ```\n\n            Invoking this component will produce HTML that looks like:\n\n            ```html\n            <div id=\"ember1\" class=\"ember-view hovered\"></div>\n            ```\n\n            ### Custom Class Names for Boolean Values\n\n            When using boolean class name bindings you can supply a string value other\n            than the property name for use as the `class` HTML attribute by appending the\n            preferred value after a \":\" character when defining the binding:\n\n            ```app/components/my-widget.js\n            import Component from '@ember/component';\n\n            export default Component.extend({\n              classNameBindings: ['awesome:so-very-cool'],\n\n              awesome: true\n            });\n            ```\n\n            Invoking this component will produce HTML that looks like:\n\n            ```html\n            <div id=\"ember1\" class=\"ember-view so-very-cool\"></div>\n            ```\n\n            Boolean value class name bindings whose property names are in a\n            camelCase-style format will be converted to a dasherized format:\n\n            ```app/components/my-widget.js\n            import Component from '@ember/component';\n\n            export default Component.extend({\n              classNameBindings: ['isUrgent'],\n\n              isUrgent: true\n            });\n            ```\n\n            Invoking this component will produce HTML that looks like:\n\n            ```html\n            <div id=\"ember1\" class=\"ember-view is-urgent\"></div>\n            ```\n\n            Class name bindings can also refer to object values that are found by\n            traversing a path relative to the component itself:\n\n            ```app/components/my-widget.js\n            import Component from '@ember/component';\n            import EmberObject from '@ember/object';\n\n            export default Component.extend({\n              classNameBindings: ['messages.empty'],\n\n              messages: EmberObject.create({\n                empty: true\n              })\n            });\n            ```\n\n            Invoking this component will produce HTML that looks like:\n\n            ```html\n            <div id=\"ember1\" class=\"ember-view empty\"></div>\n            ```\n\n            If you want to add a class name for a property which evaluates to true and and\n            a different class name if it evaluates to false, you can pass a binding like\n            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\n            component. The return value of these properties will be used as the value of\n            the component's 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 the source\n            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`, despite\n            it having attribute binidng to the `url` property, which was set to\n            `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            There are two ways to handle user-initiated events:\n\n            ### Using the `on` modifier to capture browser events\n\n            In a component's template, you can attach an event handler to any element with the `on` modifier:\n\n            ```handlebars\n            <button {{on 'click' this.doSomething}} />\n            ```\n\n            This will call the function on your component:\n\n            ```js\n            import Component from '@ember/component';\n\n            export default class ExampleComponent extends Component {\n              doSomething = (event) => {\n                // `event` is the native click Event\n                console.log('clicked on the button');\n              };\n            });\n            ```\n\n            See the [Guide on Component event\n            handlers](https://guides.emberjs.com/release/components/component-state-and-actions/#toc_html-modifiers-and-actions)\n            and the [API docs for `on`](../Ember.Templates.helpers/methods/on?anchor=on)\n            for more details.\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            @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          */// This type param is used in the class, so must appear here.\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nclass Component extends CoreView.extend(ChildViewsSupport,ViewStateSupport,ClassNamesSupport,TargetActionSupport,ActionSupport,ViewMixin,{// These need to be overridable via extend/create but should still\n// have a default. Defining them here is the best way to achieve that.\ndidReceiveAttrs(){},didRender(){},didUpdate(){},didUpdateAttrs(){},willRender(){},willUpdate(){}}){constructor(){super(...arguments);_defineProperty(this,\"isComponent\",true);_defineProperty(this,\"__dispatcher\",void 0);}// SAFETY: this has no runtime existence whatsoever; it is a \"phantom type\"\n// here to preserve the type param.\n// SAFTEY: This is set in `init`.\ninit(properties){super.init(properties);// Handle methods from ViewMixin.\n// The native class inheritance will not work for mixins. To work around this,\n// we copy the existing rerender method provided by the mixin and swap in the\n// new rerender method from our class.\nthis._superRerender=this.rerender;this.rerender=this._rerender;this[IS_DISPATCHING_ATTRS]=false;this[DIRTY_TAG]=createTag();this[BOUNDS]=null;const eventDispatcher=this._dispatcher;if(eventDispatcher){let lazyEventsProcessedForComponentClass=lazyEventsProcessed.get(eventDispatcher);if(!lazyEventsProcessedForComponentClass){lazyEventsProcessedForComponentClass=new WeakSet();lazyEventsProcessed.set(eventDispatcher,lazyEventsProcessedForComponentClass);}let proto=Object.getPrototypeOf(this);if(!lazyEventsProcessedForComponentClass.has(proto)){let lazyEvents=eventDispatcher.lazyEvents;lazyEvents.forEach((mappedEventName,event)=>{if(mappedEventName!==null&&typeof this[mappedEventName]==='function'){eventDispatcher.setupHandlerForBrowserEvent(event);}});lazyEventsProcessedForComponentClass.add(proto);}}if(eventDispatcher&&this.renderer._isInteractive&&this.tagName===''){let eventNames=[];let events=eventDispatcher.finalEventNameMapping;for(let key in events){let methodName=events[key];if(methodName&&typeof this[methodName]==='function'){eventNames.push(methodName);}}// If in a tagless component, assert that no event handlers are defined\n!!eventNames.length&&assert$1(`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);}}get _dispatcher(){if(this.__dispatcher===undefined){let owner=getOwner$2(this);!owner&&assert$1('Component is unexpectedly missing an owner',owner);if(owner.lookup('-environment:main').isInteractive){let dispatcher=owner.lookup('event_dispatcher:main');!(dispatcher instanceof EventDispatcher)&&assert$1('Expected dispatcher to be an EventDispatcher',dispatcher instanceof EventDispatcher);this.__dispatcher=dispatcher;}else{// In FastBoot we have no EventDispatcher. Set to null to not try again to look it up.\nthis.__dispatcher=null;}}return this.__dispatcher;}on(name,target,method){var _this$_dispatcher;(_this$_dispatcher=this._dispatcher)===null||_this$_dispatcher===void 0||_this$_dispatcher.setupHandlerForEmberEvent(name);// The `on` method here comes from the Evented mixin. Since this mixin\n// is applied to the parent of this class, however, we are still able\n// to use `super`.\nreturn super.on(name,target,method);}// Changed to `rerender` on init\n_rerender(){DIRTY_TAG$1(this[DIRTY_TAG]);this._superRerender();}[PROPERTY_DID_CHANGE](key,value){if(this[IS_DISPATCHING_ATTRS]){return;}let args=this[ARGS];let reference=args!==undefined?args[key]:undefined;if(reference!==undefined&&isUpdatableRef(reference)){updateRef(reference,arguments.length===2?value:get$2(this,key));}}getAttr(key){// TODO Intimate API should be deprecated\nreturn this.get(key);}/**\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              */readDOMAttr(name){// TODO revisit this\nlet _element=getViewElement(this);!(_element!==null)&&assert$1(`Cannot call \\`readDOMAttr\\` on ${this} which does not have an element`,_element!==null);let element=_element;let isSVG=element.namespaceURI==='http://www.w3.org/2000/svg';let{type,normalized}=normalizeProperty(element,name);if(isSVG||type==='attr'){return element.getAttribute(normalized);}return element[normalized];}// --- Declarations which support mixins ---\n// We use `declare` on these properties, even though they are optional, so\n// that they do not get created on the class *at all* when emitting the\n// transpiled code. Otherwise, since declared class properties are equivalent\n// to calling `defineProperty` in the class constructor, they would \"stomp\"\n// the properties supplied by mixins.\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                 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              Layout can be used to wrap content in a component.\n              @property layout\n              @type Function\n              @public\n            *//**\n              The name of the layout to lookup if no layout is provided.\n              By default `Component` will lookup a template with this name in\n              `Ember.TEMPLATES` (a shared global object).\n              @property layoutName\n              @type String\n              @default undefined\n              @private\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 undefined\n              @public\n              */static toString(){return'@ember/component';}}// We continue to use reopenClass here so that positionalParams can be overridden with reopenClass in subclasses.\n_defineProperty(Component,\"isComponentFactory\",true);Component.reopenClass({positionalParams:[]});setInternalComponentManager(CURLY_COMPONENT_MANAGER,Component);/**\n          @module @ember/component\n          */const RECOMPUTE_TAG=Symbol('RECOMPUTE_TAG');// Signature type utilities\n// Implements Ember's `Factory` interface and tags it for narrowing/checking.\nconst IS_CLASSIC_HELPER=Symbol('IS_CLASSIC_HELPER');// A zero-runtime-overhead private symbol to use in branding the component to\n// preserve its type parameter.\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            @extends CoreObject\n            @public\n            @since 1.13.0\n          */// ESLint doesn't understand declaration merging.\n/* eslint-disable import/export */class Helper extends FrameworkObject{// SAFETY: this is initialized in `init`, rather than `constructor`. It is\n// safe to `declare` like this *if and only if* nothing uses the constructor\n// directly in this class, since nothing else can run before `init`.\n// SAFETY: this has no runtime existence whatsoever; it is a \"phantom type\"\n// here to preserve the type param.\ninit(properties){super.init(properties);this[RECOMPUTE_TAG]=createTag();!this.compute&&assert$1('expected compute to be defined',this.compute);}/**\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 { 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            */recompute(){join(()=>DIRTY_TAG$1(this[RECOMPUTE_TAG]));}}/* eslint-enable import/export */_defineProperty(Helper,\"isHelperFactory\",true);_defineProperty(Helper,IS_CLASSIC_HELPER,true);// `packages/ember/index.js` was setting `Helper.helper`. This seems like\n// a bad idea and probably not something we want. We've moved that definition\n// here, but it should definitely be reviewed and probably removed.\n/** @deprecated */_defineProperty(Helper,\"helper\",helper$2);function isClassicHelper(obj){return obj[IS_CLASSIC_HELPER]===true;}class ClassicHelperManager{constructor(owner){_defineProperty(this,\"capabilities\",helperCapabilities('3.23',{hasValue:true,hasDestroyable:true}));_defineProperty(this,\"ownerInjection\",void 0);let ownerInjection={};setOwner$1(ownerInjection,owner);this.ownerInjection=ownerInjection;}createHelper(definition,args){let instance=isFactoryManager(definition)?definition.create():definition.create(this.ownerInjection);!function(instance){if(instance!==null&&typeof instance==='object'){let cast=instance;return typeof cast.compute==='function'&&typeof cast.destroy==='function';}return false;}(instance)&&assert$1('expected HelperInstance',function(instance){if(instance!==null&&typeof instance==='object'){let cast=instance;return typeof cast.compute==='function'&&typeof cast.destroy==='function';}return false;}(instance));return{instance,args};}getDestroyable(_ref132){let{instance}=_ref132;return instance;}getValue(_ref133){let{instance,args}=_ref133;let{positional,named}=args;let ret=instance.compute(positional,named);consumeTag(instance[RECOMPUTE_TAG]);return ret;}getDebugName(definition){return getDebugName$1((definition.class||definition)['prototype']);}}function isFactoryManager(obj){return obj!=null&&'class'in obj;}setHelperManager$1(owner=>{return new ClassicHelperManager(owner);},Helper);const CLASSIC_HELPER_MANAGER=getInternalHelperManager(Helper);///////////\nclass Wrapper{constructor(compute){_defineProperty(this,\"isHelperFactory\",true);this.compute=compute;}create(){// needs new instance or will leak containers\nreturn{compute:this.compute};}}class SimpleClassicHelperManager{constructor(){_defineProperty(this,\"capabilities\",helperCapabilities('3.23',{hasValue:true}));}createHelper(definition,args){return()=>definition.compute.call(null,args.positional,args.named);}getValue(fn){return fn();}getDebugName(definition){return getDebugName$1(definition.compute);}}const SIMPLE_CLASSIC_HELPER_MANAGER=new SimpleClassicHelperManager();setHelperManager$1(()=>SIMPLE_CLASSIC_HELPER_MANAGER,Wrapper.prototype);/*\n            Function-based helpers need to present with a constructor signature so that\n            type parameters can be preserved when `helper()` is passed a generic function\n            (this is particularly key for checking helper invocations with Glint).\n            Accordingly, we define an abstract class and declaration merge it with the\n            interface; this inherently provides an `abstract` constructor. Since it is\n            `abstract`, it is not callable, which is important since end users should not\n            be able to do `let myHelper = helper(someFn); new myHelper()`.\n           *//**\n           * The type of a function-based helper.\n           *\n           * @note This is *not* user-constructible: it is exported only so that the type\n           *   returned by the `helper` function can be named (and indeed can be exported\n           *   like `export default helper(...)` safely).\n           */// Making `FunctionBasedHelper` an alias this way allows callers to name it in\n// terms meaningful to *them*, while preserving the type behavior described on\n// the `abstract class FunctionBasedHelperInstance` below.\n// This abstract class -- specifically, its `protected abstract __concrete__`\n// member -- prevents subclasses from doing `class X extends helper(..)`, since\n// that is an error at runtime. While it is rare that people would type that, it\n// is not impossible and we use this to give them early signal via the types for\n// a behavior which will break (and in a somewhat inscrutable way!) at runtime.\n//\n// This is needful because we lie about what this actually is for Glint's sake:\n// a function-based helper returns a `Factory<SimpleHelper>`, which is designed\n// to be \"opaque\" from a consumer's POV, i.e. not user-callable or constructible\n// but only useable in a template (or via `invokeHelper()` which also treats it\n// as a fully opaque `object` from a type POV). But Glint needs a `Helper<S>` to\n// make it work the same way as class-based helpers. (Note that this does not\n// hold for plain functions as helpers, which it can handle distinctly.) This\n// signature thus makes it so that the item is usable *as* a `Helper` in Glint,\n// but without letting end users treat it as a helper class instance.\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          */// This overload allows users to write types directly on the callback passed to\n// the `helper` function and infer the resulting type correctly.\n// This overload allows users to provide a `Signature` type explicitly at the\n// helper definition site, e.g. `helper<Sig>((pos, named) => {...})`. **Note:**\n// this overload must appear second, since TS' inference engine will not\n// correctly infer the type of `S` here from the types on the supplied callback.\nfunction helper$2(helperFn){// SAFETY: this is completely lies, in two ways:\n//\n// 1. `Wrapper` is a `Factory<SimpleHelper<S>>`, but from the perspective of\n//    any external callers (i.e. Ember *users*), it is quite important that\n//    the `Factory` relationship be hidden, because it is not public API for\n//    an end user to call `.create()` on a helper created this way. Instead,\n//    we provide them an `abstract new` signature (which means it cannot be\n//    directly constructed by calling `new` on it) and which does not have the\n//    `.create()` signature on it anymore.\n//\n// 2. The produced type here ends up being a subtype of `Helper`, which is not\n//    strictly true. This is necessary for the sake of Glint, which provides\n//    its information by way of a \"declaration merge\" with `Helper<S>` in the\n//    case of items produced by `helper()`.\n//\n// Long-term, this entire construct can go away in favor of deprecating the\n// `helper()` invocation in favor of using plain functions.\nreturn new Wrapper(helperFn);}/**\n          @module @ember/template\n          *//**\n            A wrapper around a string that has been marked as safe (\"trusted\"). **When\n            rendered in HTML, Ember will not perform any escaping.**\n\n            Note:\n\n            1. This does not *make* the string safe; it means that some code in your\n               application has *marked* it as safe using the `htmlSafe()` function.\n\n            2. The only public API for getting a `SafeString` is calling `htmlSafe()`. It\n               is *not* user-constructible.\n\n            If a string contains user inputs or other untrusted data, you must sanitize\n            the string before using the `htmlSafe` method. Otherwise your code is\n            vulnerable to [Cross-Site Scripting][xss]. There are many open source\n            sanitization libraries to choose from, both for front end and server-side\n            sanitization.\n\n            [xss]: https://owasp.org/www-community/attacks/DOM_Based_XSS\n\n            ```javascript\n            import { htmlSafe } from '@ember/template';\n\n            let someTrustedOrSanitizedString = \"<div>Hello!</div>\"\n\n            htmlSafe(someTrustedorSanitizedString);\n            ```\n\n            @for @ember/template\n            @class SafeString\n            @since 4.12.0\n            @public\n           */class SafeString{constructor(string){_defineProperty(this,\"__string\",void 0);this.__string=string;}/**\n              Get the string back to use as a string.\n               @public\n              @method toString\n              @returns {String} The string marked as trusted\n             */toString(){return`${this.__string}`;}/**\n              Get the wrapped string as HTML to use without escaping.\n               @public\n              @method toHTML\n              @returns {String} the trusted string, without any escaping applied\n             */toHTML(){return this.toString();}}const escape={'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;',\"'\":'&#x27;','`':'&#x60;','=':'&#x3D;'};const possible=/[&<>\"'`=]/;const badChars=/[&<>\"'`=]/g;function escapeChar(chr){return escape[chr];}function escapeExpression(string){let s;if(typeof string!=='string'){// don't escape SafeStrings, since they're already safe\nif(isHTMLSafe(string)){return string.toHTML();}else if(string===null||string===undefined){return'';}else if(!string){return String(string);}// 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.\ns=String(string);}else{s=string;}if(!possible.test(s)){return s;}// SAFETY: this is technically a lie, but it's a true lie as long as the\n// invariant it depends on is upheld: `escapeChar` will always return a string\n// as long as its input is one of the characters in `escape`, and it will only\n// be called if it matches one of the characters in the `badChar` regex, which\n// is hand-maintained to match the set escaped. (It would be nice if TS could\n// \"see\" into the regex to see how this works, but that'd be quite a lot of\n// extra fanciness.)\nreturn s.replace(badChars,escapeChar);}/**\n            Use this method to indicate that a string should be rendered as HTML\n            when the string is used in a template. To say this another way,\n            strings marked with `htmlSafe` will not be HTML escaped.\n\n            A word of warning -   The `htmlSafe` method does not make the string safe;\n            it only tells the framework to treat the string as if it is safe to render\n            as HTML. If a string contains user inputs or other untrusted\n            data, you must sanitize the string before using the `htmlSafe` method.\n            Otherwise your code is vulnerable to\n            [Cross-Site Scripting](https://owasp.org/www-community/attacks/DOM_Based_XSS).\n            There are many open source sanitization libraries to choose from,\n            both for front end and server-side sanitization.\n\n            ```javascript\n            import { htmlSafe } from '@ember/template';\n\n            const someTrustedOrSanitizedString = \"<div>Hello!</div>\"\n\n            htmlSafe(someTrustedorSanitizedString)\n            ```\n\n            @method htmlSafe\n            @for @ember/template\n            @param str {String} The string to treat as trusted.\n            @static\n            @return {SafeString} A string that will not be HTML escaped by Handlebars.\n            @public\n          */function htmlSafe(str){if(str===null||str===undefined){str='';}else if(typeof str!=='string'){str=String(str);}return new SafeString(str);}/**\n            Detects if a string was decorated using `htmlSafe`.\n\n            ```javascript\n            import { htmlSafe, isHTMLSafe } from '@ember/template';\n\n            let plainString = 'plain string';\n            let 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          */function isHTMLSafe(str){return str!==null&&typeof str==='object'&&'toHTML'in str&&typeof str.toHTML==='function';}/**\n          @module @ember/engine\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          */// Note on types: since `EngineInstance` uses `RegistryProxyMixin` and\n// `ContainerProxyMixin`, which respectively implement the same `RegistryMixin`\n// and `ContainerMixin` types used to define `InternalOwner`, this is the same\n// type as `InternalOwner` from TS's POV. The point of the explicit `extends`\n// clauses for `InternalOwner` and `Owner` is to keep us honest: if this stops\n// type checking, we have broken part of our public API contract. Medium-term,\n// the goal here is to `EngineInstance` simple be `Owner`.\nclass EngineInstance extends EmberObject.extend(RegistryProxyMixin,ContainerProxyMixin){constructor(){super(...arguments);/**\n              The base `Engine` for which this is an instance.\n               @property {Engine} engine\n              @private\n            */_defineProperty(this,ENGINE_PARENT,void 0);_defineProperty(this,\"_booted\",false);_defineProperty(this,\"_bootPromise\",null);}/**\n             @private\n             @method setupRegistry\n             @param {Registry} registry\n             @param {BootOptions} options\n             */// This is effectively an \"abstract\" method: it defines the contract a\n// subclass (e.g. `ApplicationInstance`) must follow to implement this\n// behavior, but an `EngineInstance` has no behavior of its own here.\nstatic setupRegistry(_registry,_options){}init(properties){var _this$base;super.init(properties);// Ensure the guid gets setup for this instance\nguidFor(this);(_this$base=this.base)!==null&&_this$base!==void 0?_this$base:this.base=this.application;// Create a per-instance registry that will use the application's registry\n// as a fallback for resolving registrations.\nlet registry=this.__registry__=new Registry({fallback:this.base.__registry__});// Create a per-instance container from the instance's registry\nthis.__container__=registry.container({owner:this});this._booted=false;}/**\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            */boot(options){if(this._bootPromise){return this._bootPromise;}this._bootPromise=new rsvp.Promise(resolve=>{resolve(this._bootSync(options));});return this._bootPromise;}/**\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            */_bootSync(options){if(this._booted){return this;}!getEngineParent(this)&&assert$1(\"An engine instance's parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.\",getEngineParent(this));this.cloneParentDependencies();this.setupRegistry(options);this.base.runInstanceInitializers(this);this._booted=true;return this;}setupRegistry(){let options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.__container__.lookup('-environment:main');this.constructor.setupRegistry(this.__registry__,options);}/**\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             */unregister(fullName){this.__container__.reset(fullName);// We overwrote this method from RegistryProxyMixin.\nthis.__registry__.unregister(fullName);}/**\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            */buildChildEngineInstance(name){let options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let ChildEngine=this.lookup(`engine:${name}`);if(!ChildEngine){throw new Error(`You attempted to mount the engine '${name}', but it is not registered with its parent.`);}let engineInstance=ChildEngine.buildInstance(options);setEngineParent(engineInstance,this);return engineInstance;}/**\n              Clone dependencies shared between an engine instance and its parent.\n               @private\n              @method cloneParentDependencies\n            */cloneParentDependencies(){const parent=getEngineParent(this);!parent&&assert$1('expected parent',parent);let registrations=['route:basic','service:-routing'];registrations.forEach(key=>{let registration=parent.resolveRegistration(key);!isFactory(registration)&&assert$1('expected registration to be a factory',isFactory(registration));this.register(key,registration);});let env=parent.lookup('-environment:main');this.register('-environment:main',env,{instantiate:false});// The type annotation forces TS to (a) validate that these match and (b)\n// *notice* that they match, e.g. below on the `singletons.push()`.\nlet singletons=['router:main',privatize`-bucket-cache:main`,'-view-registry:main',`renderer:-dom`,'service:-document'];if(env['isInteractive']){singletons.push('event_dispatcher:main');}singletons.forEach(key=>{// SAFETY: We already expect this to be a singleton\nlet singleton=parent.lookup(key);this.register(key,singleton,{instantiate:false});});}}const emberEngineInstance=/*#__PURE__*/Object.defineProperty({__proto__:null,default:EngineInstance},Symbol.toStringTag,{value:'Module'});function instrumentationPayload$1(def){// \"main\" used to be the outlet name, keeping it around for compatibility\nreturn{object:`${def.name}:main`};}const CAPABILITIES$1={dynamicLayout:false,dynamicTag:false,prepareArgs:false,createArgs:false,attributeHook:false,elementHook:false,createCaller:false,dynamicScope:true,updateHook:false,createInstance:true,wrapped:false,willDestroy:false,hasSubOwner:false};class OutletComponentManager{create(_owner,definition,_args,env,dynamicScope){let parentStateRef=dynamicScope.get('outletState');let currentStateRef=definition.ref;dynamicScope.set('outletState',currentStateRef);let state={self:createConstRef(definition.controller,'this'),finalize:_instrumentStart('render.outlet',instrumentationPayload$1,definition)};if(env.debugRenderTree!==undefined){state.outletBucket={};let parentState=valueForRef(parentStateRef);let parentOwner=parentState&&parentState.render&&parentState.render.owner;let currentOwner=valueForRef(currentStateRef).render.owner;if(parentOwner&&parentOwner!==currentOwner){!(currentOwner instanceof EngineInstance)&&assert$1('Expected currentOwner to be an EngineInstance',currentOwner instanceof EngineInstance);let mountPoint=currentOwner.mountPoint;state.engine=currentOwner;if(mountPoint){state.engineBucket={mountPoint};}}}return state;}getDebugName(_ref134){let{name}=_ref134;return name;}getDebugCustomRenderTree(definition,state,args){let nodes=[];!state.outletBucket&&assert$1('[BUG] outletBucket must be set',state.outletBucket);nodes.push({bucket:state.outletBucket,type:'outlet',// \"main\" used to be the outlet name, keeping it around for compatibility\nname:'main',args:EMPTY_ARGS,instance:undefined,template:undefined});if(state.engineBucket){nodes.push({bucket:state.engineBucket,type:'engine',name:state.engineBucket.mountPoint,args:EMPTY_ARGS,instance:state.engine,template:undefined});}nodes.push({bucket:state,type:'route-template',name:definition.name,args:args,instance:definition.controller,template:unwrapTemplate(definition.template).moduleName});return nodes;}getCapabilities(){return CAPABILITIES$1;}getSelf(_ref135){let{self}=_ref135;return self;}didCreate(){}didUpdate(){}didRenderLayout(state){state.finalize();}didUpdateLayout(){}getDestroyable(){return null;}}const OUTLET_MANAGER=new OutletComponentManager();class OutletComponentDefinition{constructor(state){let manager=arguments.length>1&&arguments[1]!==undefined?arguments[1]:OUTLET_MANAGER;// handle is not used by this custom definition\n_defineProperty(this,\"handle\",-1);_defineProperty(this,\"resolvedName\",void 0);_defineProperty(this,\"compilable\",void 0);_defineProperty(this,\"capabilities\",void 0);this.state=state;this.manager=manager;let capabilities=manager.getCapabilities();this.capabilities=capabilityFlagsFrom(capabilities);this.compilable=capabilities.wrapped?unwrapTemplate(state.template).asWrappedLayout():unwrapTemplate(state.template).asLayout();this.resolvedName=state.name;}}function createRootOutlet(outletView){return new OutletComponentDefinition(outletView.state);}class RootComponentManager extends CurlyComponentManager{constructor(component){super();_defineProperty(this,\"component\",void 0);this.component=component;}create(_owner,_state,_args,_ref136,dynamicScope){let{isInteractive}=_ref136;let component=this.component;let finalizer=_instrumentStart('render.component',initialRenderInstrumentDetails,component);dynamicScope.view=component;let hasWrappedElement=component.tagName!=='';// We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\nif(!hasWrappedElement){if(isInteractive){component.trigger('willRender');}component._transitionTo('hasElement');if(isInteractive){component.trigger('willInsertElement');}}{processComponentInitializationAssertions(component,{});}let bucket=new ComponentStateBucket(component,null,CONSTANT_TAG,finalizer,hasWrappedElement,isInteractive);consumeTag(component[DIRTY_TAG]);return bucket;}}// ROOT is the top-level template it has nothing but one yield.\n// it is supposed to have a dummy element\nconst ROOT_CAPABILITIES={dynamicLayout:true,dynamicTag:true,prepareArgs:false,createArgs:false,attributeHook:true,elementHook:true,createCaller:true,dynamicScope:true,updateHook:true,createInstance:true,wrapped:true,willDestroy:false,hasSubOwner:false};class RootComponentDefinition{constructor(component){// handle is not used by this custom definition\n_defineProperty(this,\"handle\",-1);_defineProperty(this,\"resolvedName\",'-top-level');_defineProperty(this,\"state\",void 0);_defineProperty(this,\"manager\",void 0);_defineProperty(this,\"capabilities\",capabilityFlagsFrom(ROOT_CAPABILITIES));_defineProperty(this,\"compilable\",null);this.manager=new RootComponentManager(component);let factory=getFactoryFor(component);!(factory!==undefined)&&assert$1('missing factory for component',factory!==undefined);this.state=factory;}}const EMPTY_ATTRS=[];function indexOfAttribute(attributes,namespaceURI,localName){for(let i=0;i<attributes.length;i++){const attr=attributes[i];if(attr.namespaceURI===namespaceURI&&attr.localName===localName){return i;}}return-1;}function adjustAttrName(namespaceURI,localName){return namespaceURI===\"http://www.w3.org/1999/xhtml\"/* HTML */?localName.toLowerCase():localName;}function getAttribute(attributes,namespaceURI,localName){const index=indexOfAttribute(attributes,namespaceURI,localName);return index===-1?null:attributes[index].value;}function removeAttribute(attributes,namespaceURI,localName){const index=indexOfAttribute(attributes,namespaceURI,localName);if(index!==-1){attributes.splice(index,1);}}// https://dom.spec.whatwg.org/#dom-element-setattributens\nfunction setAttribute(element,namespaceURI,prefix,localName,value){if(typeof value!=='string'){value=''+value;}let{attributes}=element;if(attributes===EMPTY_ATTRS){attributes=element.attributes=[];}else{const index=indexOfAttribute(attributes,namespaceURI,localName);if(index!==-1){attributes[index].value=value;return;}}attributes.push({localName,name:prefix===null?localName:prefix+':'+localName,namespaceURI,prefix,specified:true,value});}class ChildNodes{constructor(node){this.node=node;this.stale=true;this._length=0;}get length(){if(this.stale){this.stale=false;let len=0;let child=this.node.firstChild;for(;child!==null;len++){this[len]=child;child=child.nextSibling;}const oldLen=this._length;this._length=len;for(;len<oldLen;len++){delete this[len];}}return this._length;}item(index){return index<this.length?this[index]:null;}}function cloneNode(node,deep){const clone=nodeFrom(node);if(deep){let child=node.firstChild;let nextChild=child;while(child!==null){nextChild=child.nextSibling;clone.appendChild(child.cloneNode(true));child=nextChild;}}return clone;}function nodeFrom(node){let namespaceURI;if(node.nodeType===1/* ELEMENT_NODE */){namespaceURI=node.namespaceURI;}const clone=new SimpleNodeImpl(node.ownerDocument,node.nodeType,node.nodeName,node.nodeValue,namespaceURI);if(node.nodeType===1/* ELEMENT_NODE */){clone.attributes=copyAttrs(node.attributes);}return clone;}function copyAttrs(attrs){if(attrs===EMPTY_ATTRS){return EMPTY_ATTRS;}const copy=[];for(let i=0;i<attrs.length;i++){const attr=attrs[i];copy.push({localName:attr.localName,name:attr.name,namespaceURI:attr.namespaceURI,prefix:attr.prefix,specified:true,value:attr.value});}return copy;}function insertBefore(parentNode,newChild,refChild){invalidate(parentNode);insertBetween(parentNode,newChild,refChild===null?parentNode.lastChild:refChild.previousSibling,refChild);}function removeChild(parentNode,oldChild){invalidate(parentNode);removeBetween(parentNode,oldChild,oldChild.previousSibling,oldChild.nextSibling);}function invalidate(parentNode){const childNodes=parentNode._childNodes;if(childNodes!==undefined){childNodes.stale=true;}}function insertBetween(parentNode,newChild,previousSibling,nextSibling){if(newChild.nodeType===11/* DOCUMENT_FRAGMENT_NODE */){insertFragment(newChild,parentNode,previousSibling,nextSibling);return;}if(newChild.parentNode!==null){removeChild(newChild.parentNode,newChild);}newChild.parentNode=parentNode;newChild.previousSibling=previousSibling;newChild.nextSibling=nextSibling;if(previousSibling===null){parentNode.firstChild=newChild;}else{previousSibling.nextSibling=newChild;}if(nextSibling===null){parentNode.lastChild=newChild;}else{nextSibling.previousSibling=newChild;}}function removeBetween(parentNode,oldChild,previousSibling,nextSibling){oldChild.parentNode=null;oldChild.previousSibling=null;oldChild.nextSibling=null;if(previousSibling===null){parentNode.firstChild=nextSibling;}else{previousSibling.nextSibling=nextSibling;}if(nextSibling===null){parentNode.lastChild=previousSibling;}else{nextSibling.previousSibling=previousSibling;}}function insertFragment(fragment,parentNode,previousSibling,nextSibling){const firstChild=fragment.firstChild;if(firstChild===null){return;}fragment.firstChild=null;fragment.lastChild=null;let lastChild=firstChild;let newChild=firstChild;firstChild.previousSibling=previousSibling;if(previousSibling===null){parentNode.firstChild=firstChild;}else{previousSibling.nextSibling=firstChild;}while(newChild!==null){newChild.parentNode=parentNode;lastChild=newChild;newChild=newChild.nextSibling;}lastChild.nextSibling=nextSibling;if(nextSibling===null){parentNode.lastChild=lastChild;}else{nextSibling.previousSibling=lastChild;}}function parseQualifiedName(qualifiedName){let localName=qualifiedName;let prefix=null;const i=qualifiedName.indexOf(':');if(i!==-1){prefix=qualifiedName.slice(0,i);localName=qualifiedName.slice(i+1);}return[prefix,localName];}class SimpleNodeImpl{constructor(ownerDocument,nodeType,nodeName,nodeValue,namespaceURI){this.ownerDocument=ownerDocument;this.nodeType=nodeType;this.nodeName=nodeName;this.nodeValue=nodeValue;this.namespaceURI=namespaceURI;this.parentNode=null;this.previousSibling=null;this.nextSibling=null;this.firstChild=null;this.lastChild=null;this.attributes=EMPTY_ATTRS;/**\n               * @internal\n               */this._childNodes=undefined;}get tagName(){return this.nodeName;}get childNodes(){let children=this._childNodes;if(children===undefined){children=this._childNodes=new ChildNodes(this);}return children;}cloneNode(deep){return cloneNode(this,deep===true);}appendChild(newChild){insertBefore(this,newChild,null);return newChild;}insertBefore(newChild,refChild){insertBefore(this,newChild,refChild);return newChild;}removeChild(oldChild){removeChild(this,oldChild);return oldChild;}insertAdjacentHTML(position,html){const raw=new SimpleNodeImpl(this.ownerDocument,-1/* RAW_NODE */,'#raw',html,void 0);let parentNode;let nextSibling;switch(position){case'beforebegin':parentNode=this.parentNode;nextSibling=this;break;case'afterbegin':parentNode=this;nextSibling=this.firstChild;break;case'beforeend':parentNode=this;nextSibling=null;break;case'afterend':parentNode=this.parentNode;nextSibling=this.nextSibling;break;default:throw new Error('invalid position');}if(parentNode===null){throw new Error(`${position} requires a parentNode`);}insertBefore(parentNode,raw,nextSibling);}getAttribute(name){const localName=adjustAttrName(this.namespaceURI,name);return getAttribute(this.attributes,null,localName);}getAttributeNS(namespaceURI,localName){return getAttribute(this.attributes,namespaceURI,localName);}setAttribute(name,value){const localName=adjustAttrName(this.namespaceURI,name);setAttribute(this,null,null,localName,value);}setAttributeNS(namespaceURI,qualifiedName,value){const[prefix,localName]=parseQualifiedName(qualifiedName);setAttribute(this,namespaceURI,prefix,localName,value);}removeAttribute(name){const localName=adjustAttrName(this.namespaceURI,name);removeAttribute(this.attributes,null,localName);}removeAttributeNS(namespaceURI,localName){removeAttribute(this.attributes,namespaceURI,localName);}get doctype(){return this.firstChild;}get documentElement(){return this.lastChild;}get head(){return this.documentElement.firstChild;}get body(){return this.documentElement.lastChild;}createElement(name){return new SimpleNodeImpl(this,1/* ELEMENT_NODE */,name.toUpperCase(),null,\"http://www.w3.org/1999/xhtml\"/* HTML */);}createElementNS(namespace,qualifiedName){// 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\nconst nodeName=namespace===\"http://www.w3.org/1999/xhtml\"/* HTML */?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\nreturn new SimpleNodeImpl(this,1/* ELEMENT_NODE */,nodeName,null,namespace);}createTextNode(text){return new SimpleNodeImpl(this,3/* TEXT_NODE */,'#text',text,void 0);}createComment(text){return new SimpleNodeImpl(this,8/* COMMENT_NODE */,'#comment',text,void 0);}/**\n             * Backwards compat\n             * @deprecated\n             */createRawHTMLSection(text){return new SimpleNodeImpl(this,-1/* RAW_NODE */,'#raw',text,void 0);}createDocumentFragment(){return new SimpleNodeImpl(this,11/* DOCUMENT_FRAGMENT_NODE */,'#document-fragment',null,void 0);}}function createHTMLDocument(){// dom.d.ts types ownerDocument as Document but for a document ownerDocument is null\nconst document=new SimpleNodeImpl(null,9/* DOCUMENT_NODE */,'#document',null,\"http://www.w3.org/1999/xhtml\"/* HTML */);const doctype=new SimpleNodeImpl(document,10/* DOCUMENT_TYPE_NODE */,'html',null,\"http://www.w3.org/1999/xhtml\"/* HTML */);const html=new SimpleNodeImpl(document,1/* ELEMENT_NODE */,'HTML',null,\"http://www.w3.org/1999/xhtml\"/* HTML */);const head=new SimpleNodeImpl(document,1/* ELEMENT_NODE */,'HEAD',null,\"http://www.w3.org/1999/xhtml\"/* HTML */);const body=new SimpleNodeImpl(document,1/* ELEMENT_NODE */,'BODY',null,\"http://www.w3.org/1999/xhtml\"/* HTML */);html.appendChild(head);html.appendChild(body);document.appendChild(doctype);document.appendChild(html);return document;}const simpleDomDocument=/*#__PURE__*/Object.defineProperty({__proto__:null,default:createHTMLDocument},Symbol.toStringTag,{value:'Module'});class NodeDOMTreeConstruction extends DOMTreeConstruction{// Hides property on base class\nconstructor(doc){super(doc||createHTMLDocument());}// override to prevent usage of `this.document` until after the constructor\nsetupUselessElement(){}insertHTMLBefore(parent,reference,html){let raw=this.document.createRawHTMLSection(html);return parent.insertBefore(raw,reference),new ConcreteBounds(parent,raw,raw);}// override to avoid SVG detection/work when in node (this is not needed in SSR)\ncreateElement(tag){return this.document.createElement(tag);}// override to avoid namespace shenanigans when in node (this is not needed in SSR)\nsetAttribute(element,name,value){element.setAttribute(name,value);}}const NEEDS_EXTRA_CLOSE=new WeakMap();class SerializeBuilder extends NewElementBuilder{constructor(){super(...arguments);_defineProperty(this,\"serializeBlockDepth\",0);}__openBlock(){let{tagName:tagName}=this.element;if(\"TITLE\"!==tagName&&\"SCRIPT\"!==tagName&&\"STYLE\"!==tagName){let depth=this.serializeBlockDepth++;this.__appendComment(`%+b:${depth}%`);}super.__openBlock();}__closeBlock(){let{tagName:tagName}=this.element;if(super.__closeBlock(),\"TITLE\"!==tagName&&\"SCRIPT\"!==tagName&&\"STYLE\"!==tagName){let depth=--this.serializeBlockDepth;this.__appendComment(`%-b:${depth}%`);}}__appendHTML(html){let{tagName:tagName}=this.element;if(\"TITLE\"===tagName||\"SCRIPT\"===tagName||\"STYLE\"===tagName)return super.__appendHTML(html);// Do we need to run the html tokenizer here?\nlet first=this.__appendComment(\"%glmr%\");if(\"TABLE\"===tagName){let openIndex=html.indexOf(\"<\");openIndex>-1&&\"tr\"===html.slice(openIndex+1,openIndex+3)&&(html=`<tbody>${html}</tbody>`);}\"\"===html?this.__appendComment(\"% %\"):super.__appendHTML(html);let last=this.__appendComment(\"%glmr%\");return new ConcreteBounds(this.element,first,last);}__appendText(string){let{tagName:tagName}=this.element,current=function(cursor){let{element:element,nextSibling:nextSibling}=cursor;return null===nextSibling?element.lastChild:nextSibling.previousSibling;}(this);return\"TITLE\"===tagName||\"SCRIPT\"===tagName||\"STYLE\"===tagName?super.__appendText(string):\"\"===string?this.__appendComment(\"% %\"):(current&&3===current.nodeType&&this.__appendComment(\"%|%\"),super.__appendText(string));}closeElement(){return NEEDS_EXTRA_CLOSE.has(this.element)&&(NEEDS_EXTRA_CLOSE.delete(this.element),super.closeElement()),super.closeElement();}openElement(tag){return\"tr\"===tag&&\"TBODY\"!==this.element.tagName&&\"THEAD\"!==this.element.tagName&&\"TFOOT\"!==this.element.tagName&&(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.\nNEEDS_EXTRA_CLOSE.set(this.constructing,!0),this.flushElement(null)),super.openElement(tag);}pushRemoteElement(element,cursorId){let insertBefore=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;let{dom:dom}=this,script=dom.createElement(\"script\");return script.setAttribute(\"glmr\",cursorId),dom.insertBefore(element,script,insertBefore),super.pushRemoteElement(element,cursorId,insertBefore);}}function serializeBuilder(env,cursor){return SerializeBuilder.forInitialRender(env,cursor);}const glimmerNode=/*#__PURE__*/Object.defineProperty({__proto__:null,NodeDOMTreeConstruction,serializeBuilder},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\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            The `{{each-in}}` helper loops over properties on an object.\n\n            For example, given this component definition:\n\n            ```app/components/developer-details.js\n            import Component from '@glimmer/component';\n            import { tracked } from '@glimmer/tracking';\n\n            export default class extends Component {\n              @tracked developer = {\n                \"name\": \"Shelly Sails\",\n                \"age\": 42\n              };\n            }\n            ```\n\n            This template would display all properties on the `developer`\n            object in a list:\n\n            ```app/components/developer-details.hbs\n            <ul>\n              {{#each-in this.developer as |key value|}}\n                <li>{{key}}: {{value}}</li>\n              {{/each-in}}\n            </ul>\n            ```\n\n            Outputting their name and age:\n\n            ```html\n            <ul>\n              <li>name: Shelly Sails</li>\n              <li>age: 42</li>\n            </ul>\n            ```\n\n            @method each-in\n            @for Ember.Templates.helpers\n            @public\n            @since 2.1.0\n          */class EachInWrapper{constructor(inner){this.inner=inner;}}const eachIn=internalHelper(_ref137=>{let{positional}=_ref137;const inner=positional[0];!inner&&assert$1('expected at least one positional arg',inner);return createComputeRef(()=>{let iterable=valueForRef(inner);consumeTag(tagForObject(iterable));if(isProxy(iterable)){// 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\niterable=contentFor(iterable);}return new EachInWrapper(iterable);});});function toIterator(iterable){if(iterable instanceof EachInWrapper){return toEachInIterator(iterable.inner);}else{return toEachIterator(iterable);}}function toEachInIterator(iterable){if(!isIndexable(iterable)){return null;}if(Array.isArray(iterable)||isEmberArray(iterable)){return ObjectIterator.fromIndexable(iterable);}else if(isNativeIterable(iterable)){return MapLikeNativeIterator.from(iterable);}else if(hasForEach(iterable)){return ObjectIterator.fromForEachable(iterable);}else{return ObjectIterator.fromIndexable(iterable);}}function toEachIterator(iterable){if(!isObject$1(iterable)){return null;}if(Array.isArray(iterable)){return ArrayIterator.from(iterable);}else if(isEmberArray(iterable)){return EmberArrayIterator.from(iterable);}else if(isNativeIterable(iterable)){return ArrayLikeNativeIterator.from(iterable);}else if(hasForEach(iterable)){return ArrayIterator.fromForEachable(iterable);}else{return null;}}class BoundedIterator{constructor(length){_defineProperty(this,\"position\",0);this.length=length;}isEmpty(){return false;}memoFor(position){return position;}next(){let{length,position}=this;if(position>=length){return null;}let value=this.valueFor(position);let memo=this.memoFor(position);this.position++;return{value,memo};}}class ArrayIterator extends BoundedIterator{static from(iterable){return iterable.length>0?new this(iterable):null;}static fromForEachable(object){let array=[];object.forEach(item=>array.push(item));return this.from(array);}constructor(array){super(array.length);this.array=array;}valueFor(position){return this.array[position];}}class EmberArrayIterator extends BoundedIterator{static from(iterable){return iterable.length>0?new this(iterable):null;}constructor(array){super(array.length);this.array=array;}valueFor(position){return objectAt(this.array,position);}}class ObjectIterator extends BoundedIterator{static fromIndexable(obj){let keys=Object.keys(obj);if(keys.length===0){return null;}else{let values=[];for(let key of keys){let value;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\nif(isTracking()){consumeTag(tagFor(obj,key));if(Array.isArray(value)){consumeTag(tagFor(value,'[]'));}}values.push(value);}return new this(keys,values);}}static fromForEachable(obj){let keys=[];let values=[];let length=0;let isMapLike=false;// Not using an arrow function here so we can get an accurate `arguments`\nobj.forEach(function(value,key){isMapLike=isMapLike||arguments.length>=2;if(isMapLike){keys.push(key);}values.push(value);length++;});if(length===0){return null;}else if(isMapLike){return new this(keys,values);}else{return new ArrayIterator(values);}}constructor(keys,values){super(values.length);this.keys=keys;this.values=values;}valueFor(position){return this.values[position];}memoFor(position){return this.keys[position];}}class NativeIterator{static from(iterable){let iterator=iterable[Symbol.iterator]();let result=iterator.next();let{done}=result;if(done){return null;}else{return new this(iterator,result);}}constructor(iterable,result){_defineProperty(this,\"position\",0);this.iterable=iterable;this.result=result;}isEmpty(){return false;}next(){let{iterable,result,position}=this;if(result.done){return null;}let value=this.valueFor(result,position);let memo=this.memoFor(result,position);this.position++;this.result=iterable.next();return{value,memo};}}class ArrayLikeNativeIterator extends NativeIterator{valueFor(result){return result.value;}memoFor(_result,position){return position;}}class MapLikeNativeIterator extends NativeIterator{valueFor(result){return result.value[1];}memoFor(result){return result.value[0];}}function hasForEach(value){return value!=null&&typeof value['forEach']==='function';}function isNativeIterable(value){return value!=null&&typeof value[Symbol.iterator]==='function';}function isIndexable(value){return value!==null&&(typeof value==='object'||typeof value==='function');}/**\n           @module @ember/utils\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(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          */function isNone(obj){return obj===null||obj===undefined;}const emberUtilsLibIsNone=/*#__PURE__*/Object.defineProperty({__proto__:null,default:isNone},Symbol.toStringTag,{value:'Module'});/**\n           @module @ember/utils\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(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          */function isEmpty(obj){if(obj===null||obj===undefined){return true;}if(!hasUnknownProperty(obj)&&typeof obj.size==='number'){return!obj.size;}if(typeof obj==='object'){let size=get$2(obj,'size');if(typeof size==='number'){return!size;}let length=get$2(obj,'length');if(typeof length==='number'){return!length;}}if(typeof obj.length==='number'&&typeof obj!=='function'){return!obj.length;}return false;}const emberUtilsLibIsEmpty=/*#__PURE__*/Object.defineProperty({__proto__:null,default:isEmpty},Symbol.toStringTag,{value:'Module'});/**\n           @module @ember/utils\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(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          */function isBlank(obj){return isEmpty(obj)||typeof obj==='string'&&/\\S/.test(obj)===false;}const emberUtilsLibIsBlank=/*#__PURE__*/Object.defineProperty({__proto__:null,default:isBlank},Symbol.toStringTag,{value:'Module'});/**\n           @module @ember/utils\n          *//**\n            A value is present if it not `isBlank`.\n\n            ```javascript\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          */function isPresent(obj){return!isBlank(obj);}const emberUtilsLibIsPresent=/*#__PURE__*/Object.defineProperty({__proto__:null,default:isPresent},Symbol.toStringTag,{value:'Module'});/**\n           @module @ember/utils\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          */function isEqual(a,b){if(a&&typeof a.isEqual==='function'){return a.isEqual(b);}if(a instanceof Date&&b instanceof Date){return a.getTime()===b.getTime();}return a===b;}const emberUtilsLibIsEqual=/*#__PURE__*/Object.defineProperty({__proto__:null,default:isEqual},Symbol.toStringTag,{value:'Module'});// ........................................\n// TYPING & ARRAY MESSAGING\n//\nconst TYPE_MAP={'[object Boolean]':'boolean','[object Number]':'number','[object String]':'string','[object Function]':'function','[object AsyncFunction]':'function','[object Array]':'array','[object Date]':'date','[object RegExp]':'regexp','[object Object]':'object','[object FileList]':'filelist'};const{toString}=Object.prototype;/**\n           @module @ember/utils\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 item the item to check\n            @return {String} the type\n            @public\n            @static\n          */function typeOf(item){if(item===null){return'null';}if(item===undefined){return'undefined';}let ret=TYPE_MAP[toString.call(item)]||'object';if(ret==='function'){if(CoreObject.detect(item)){ret='class';}}else if(ret==='object'){if(item instanceof Error){ret='error';}else if(item instanceof CoreObject){ret='instance';}else if(item instanceof Date){ret='date';}}return ret;}const emberUtilsLibTypeOf=/*#__PURE__*/Object.defineProperty({__proto__:null,default:typeOf},Symbol.toStringTag,{value:'Module'});const TYPE_ORDER={undefined:0,null:1,boolean:2,number:3,string:4,array:5,object:6,instance:7,function:8,class:9,date:10,regexp:11,filelist:12,error:13};//\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  `------'`\nfunction spaceship(a,b){// SAFETY: `Math.sign` always returns `-1` for negative, `0` for zero, and `1`\n// for positive numbers. (The extra precision is useful for the way we use\n// this in the context of `compare`.)\nreturn Math.sign(a-b);}/**\n           @module @ember/utils\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          */function compare(v,w){if(v===w){return 0;}let type1=typeOf(v);let type2=typeOf(w);if(type1==='instance'&&isComparable(v)&&v.constructor.compare){return v.constructor.compare(v,w);}if(type2==='instance'&&isComparable(w)&&w.constructor.compare){// SAFETY: Multiplying by a negative just changes the sign\nreturn w.constructor.compare(w,v)*-1;}let res=spaceship(TYPE_ORDER[type1],TYPE_ORDER[type2]);if(res!==0){return res;}// types are equal - so we have to check values now\nswitch(type1){case'boolean':!(typeof v==='boolean'&&typeof w==='boolean')&&assert$1('both are boolean',typeof v==='boolean'&&typeof w==='boolean');return spaceship(Number(v),Number(w));case'number':!(typeof v==='number'&&typeof w==='number')&&assert$1('both are numbers',typeof v==='number'&&typeof w==='number');return spaceship(v,w);case'string':!(typeof v==='string'&&typeof w==='string')&&assert$1('both are strings',typeof v==='string'&&typeof w==='string');return spaceship(v.localeCompare(w),0);case'array':{!(Array.isArray(v)&&Array.isArray(w))&&assert$1('both are arrays',Array.isArray(v)&&Array.isArray(w));let vLen=v.length;let wLen=w.length;let len=Math.min(vLen,wLen);for(let i=0;i<len;i++){let r=compare(v[i],w[i]);if(r!==0){return r;}}// all elements are equal now\n// shorter array should be ordered first\nreturn spaceship(vLen,wLen);}case'instance':if(isComparable(v)&&v.compare){return v.compare(v,w);}return 0;case'date':!(v instanceof Date&&w instanceof Date)&&assert$1('both are dates',v instanceof Date&&w instanceof Date);return spaceship(v.getTime(),w.getTime());default:return 0;}}function isComparable(value){return Comparable.detect(value);}const emberUtilsLibCompare=/*#__PURE__*/Object.defineProperty({__proto__:null,default:compare},Symbol.toStringTag,{value:'Module'});const emberUtilsIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,compare,isBlank,isEmpty,isEqual,isNone,isPresent,typeOf},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/array\n          */const EMPTY_ARRAY=Object.freeze([]);const identityFunction=item=>item;function uniqBy$1(array){let keyOrFunc=arguments.length>1&&arguments[1]!==undefined?arguments[1]:identityFunction;!isArray$2(array)&&assert$1(`first argument passed to \\`uniqBy\\` should be array`,isArray$2(array));let ret=A();let seen=new Set();let getter=typeof keyOrFunc==='function'?keyOrFunc:item=>get$2(item,keyOrFunc);array.forEach(item=>{let val=getter(item);if(!seen.has(val)){seen.add(val);ret.push(item);}});return ret;}function iter(){for(var _len45=arguments.length,args=new Array(_len45),_key46=0;_key46<_len45;_key46++){args[_key46]=arguments[_key46];}let valueProvided=args.length===2;let[key,value]=args;return valueProvided?item=>value===get$2(item,key):item=>Boolean(get$2(item,key));}function findIndex(array,predicate,startAt){let len=array.length;for(let index=startAt;index<len;index++){// SAFETY: Because we're checking the index this value should always be set.\nlet item=objectAt(array,index);if(predicate(item,index,array)){return index;}}return-1;}function find(array,callback){let target=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;let predicate=callback.bind(target);let index=findIndex(array,predicate,0);return index===-1?undefined:objectAt(array,index);}function any(array,callback){let target=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;let predicate=callback.bind(target);return findIndex(array,predicate,0)!==-1;}function every(array,callback){let target=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;let cb=callback.bind(target);let predicate=(item,index,array)=>!cb(item,index,array);return findIndex(array,predicate,0)===-1;}function indexOf$1(array,val){let startAt=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;let withNaNCheck=arguments.length>3?arguments[3]:undefined;let len=array.length;if(startAt<0){startAt+=len;}// SameValueZero comparison (NaN !== NaN)\nlet predicate=withNaNCheck&&val!==val?item=>item!==item:item=>item===val;return findIndex(array,predicate,startAt);}function removeAt(array,index,len){!(index>-1&&index<array.length)&&assert$1(`\\`removeAt\\` index provided is out of range`,index>-1&&index<array.length);replace(array,index,len!==null&&len!==void 0?len:1,EMPTY_ARRAY);return array;}function insertAt(array,index,item){!(index>-1&&index<=array.length)&&assert$1(`\\`insertAt\\` index provided is out of range`,index>-1&&index<=array.length);replace(array,index,0,[item]);return item;}/**\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          */function isArray$2(obj){if(typeof obj==='object'&&obj!==null){// SAFETY: Property read checks are safe if it's an object\nlet possibleProxyContent=obj[PROXY_CONTENT];if(possibleProxyContent!==undefined){obj=possibleProxyContent;}}// SAFETY: Property read checks are safe if it's an object\nif(!obj||obj.setInterval){return false;}if(Array.isArray(obj)||EmberArray.detect(obj)){return true;}let type=typeOf(obj);if('array'===type){return true;}// SAFETY: Property read checks are safe if it's an object\nlet length=obj.length;if(typeof length==='number'&&length===length&&'object'===type){return true;}return false;}/*\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          */function nonEnumerableComputed(callback){let property=computed(callback);property.enumerable=false;return property;}function mapBy$1(key){return this.map(next=>get$2(next,key));}// ..........................................................\n// ARRAY\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          */const EmberArray=Mixin.create(Enumerable,{init(){this._super(...arguments);setEmberArray(this);},objectsAt(indexes){return indexes.map(idx=>objectAt(this,idx));},'[]':nonEnumerableComputed({get(){return this;},set(_key,value){this.replace(0,this.length,value);return this;}}),firstObject:nonEnumerableComputed(function(){return objectAt(this,0);}).readOnly(),lastObject:nonEnumerableComputed(function(){return objectAt(this,this.length-1);}).readOnly(),// Add any extra methods to EmberArray that are native to the built-in Array.\nslice(){let beginIndex=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let endIndex=arguments.length>1?arguments[1]:undefined;let ret=A();let length=this.length;if(beginIndex<0){beginIndex=length+beginIndex;}let validatedEndIndex;if(endIndex===undefined||endIndex>length){validatedEndIndex=length;}else if(endIndex<0){validatedEndIndex=length+endIndex;}else{validatedEndIndex=endIndex;}while(beginIndex<validatedEndIndex){ret[ret.length]=objectAt(this,beginIndex++);}return ret;},indexOf(object,startAt){return indexOf$1(this,object,startAt,false);},lastIndexOf(object,startAt){let len=this.length;if(startAt===undefined||startAt>=len){startAt=len-1;}if(startAt<0){startAt+=len;}for(let idx=startAt;idx>=0;idx--){if(objectAt(this,idx)===object){return idx;}}return-1;},forEach(callback){let target=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;!(typeof callback==='function')&&assert$1('`forEach` expects a function as first argument.',typeof callback==='function');let length=this.length;for(let index=0;index<length;index++){let item=this.objectAt(index);callback.call(target,item,index,this);}return this;},getEach:mapBy$1,setEach(key,value){return this.forEach(item=>set(item,key,value));},map(callback){let target=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;!(typeof callback==='function')&&assert$1('`map` expects a function as first argument.',typeof callback==='function');let ret=A();this.forEach((x,idx,i)=>ret[idx]=callback.call(target,x,idx,i));return ret;},mapBy:mapBy$1,filter(callback){let target=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;!(typeof callback==='function')&&assert$1('`filter` expects a function as first argument.',typeof callback==='function');let ret=A();this.forEach((x,idx,i)=>{if(callback.call(target,x,idx,i)){ret.push(x);}});return ret;},reject(callback){let target=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;!(typeof callback==='function')&&assert$1('`reject` expects a function as first argument.',typeof callback==='function');return this.filter(function(){// @ts-expect-error TS doesn't like us using arguments like this\nreturn!callback.apply(target,arguments);});},filterBy(){// @ts-expect-error TS doesn't like the ...arguments spread here.\nreturn this.filter(iter(...arguments));},rejectBy(){// @ts-expect-error TS doesn't like the ...arguments spread here.\nreturn this.reject(iter(...arguments));},find(callback){let target=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;!(typeof callback==='function')&&assert$1('`find` expects a function as first argument.',typeof callback==='function');return find(this,callback,target);},findBy(){// @ts-expect-error TS doesn't like the ...arguments spread here.\nlet callback=iter(...arguments);return find(this,callback);},every(callback){let target=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;!(typeof callback==='function')&&assert$1('`every` expects a function as first argument.',typeof callback==='function');return every(this,callback,target);},isEvery(){// @ts-expect-error TS doesn't like the ...arguments spread here.\nlet callback=iter(...arguments);return every(this,callback);},any(callback){let target=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;!(typeof callback==='function')&&assert$1('`any` expects a function as first argument.',typeof callback==='function');return any(this,callback,target);},isAny(){// @ts-expect-error TS doesn't like us using arguments like this\nlet callback=iter(...arguments);return any(this,callback);},// FIXME: When called without initialValue, behavior does not match native behavior\nreduce(callback,initialValue){!(typeof callback==='function')&&assert$1('`reduce` expects a function as first argument.',typeof callback==='function');let ret=initialValue;this.forEach(function(item,i){ret=callback(ret,item,i,this);},this);return ret;},invoke(methodName){for(var _len46=arguments.length,args=new Array(_len46>1?_len46-1:0),_key47=1;_key47<_len46;_key47++){args[_key47-1]=arguments[_key47];}let ret=A();// SAFETY: This is not entirely safe and the code will not work with Ember proxies\nthis.forEach(item=>{var _item$methodName;return ret.push((_item$methodName=item[methodName])===null||_item$methodName===void 0?void 0:_item$methodName.call(item,...args));});return ret;},toArray(){return this.map(item=>item);},compact(){return this.filter(value=>value!=null);},includes(object,startAt){return indexOf$1(this,object,startAt,true)!==-1;},sortBy(){let sortKeys=arguments;return this.toArray().sort((a,b)=>{for(let i=0;i<sortKeys.length;i++){let key=sortKeys[i];let propA=get$2(a,key);let propB=get$2(b,key);// return 1 or -1 else continue to the next sortKey\nlet compareValue=compare(propA,propB);if(compareValue){return compareValue;}}return 0;});},uniq(){return uniqBy$1(this);},uniqBy(key){return uniqBy$1(this,key);},without(value){if(!this.includes(value)){return this;// nothing to do\n}// SameValueZero comparison (NaN !== NaN)\nlet predicate=value===value?item=>item!==value:item=>item===item;return this.filter(predicate);}});/**\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          */const MutableArray=Mixin.create(EmberArray,MutableEnumerable,{clear(){let len=this.length;if(len===0){return this;}this.replace(0,len,EMPTY_ARRAY);return this;},insertAt(idx,object){insertAt(this,idx,object);return this;},removeAt(start,len){return removeAt(this,start,len);},pushObject(obj){return insertAt(this,this.length,obj);},pushObjects(objects){this.replace(this.length,0,objects);return this;},popObject(){let len=this.length;if(len===0){return null;}let ret=objectAt(this,len-1);this.removeAt(len-1,1);return ret;},shiftObject(){if(this.length===0){return null;}let ret=objectAt(this,0);this.removeAt(0);return ret;},unshiftObject(obj){return insertAt(this,0,obj);},unshiftObjects(objects){this.replace(0,0,objects);return this;},reverseObjects(){let len=this.length;if(len===0){return this;}let objects=this.toArray().reverse();this.replace(0,len,objects);return this;},setObjects(objects){if(objects.length===0){return this.clear();}let len=this.length;this.replace(0,len,objects);return this;},removeObject(obj){let loc=this.length||0;while(--loc>=0){let curObject=objectAt(this,loc);if(curObject===obj){this.removeAt(loc);}}return this;},removeObjects(objects){beginPropertyChanges();for(let i=objects.length-1;i>=0;i--){// SAFETY: Due to the loop structure we know this will always exist.\nthis.removeObject(objects[i]);}endPropertyChanges();return this;},addObject(obj){let included=this.includes(obj);if(!included){this.pushObject(obj);}return this;},addObjects(objects){beginPropertyChanges();objects.forEach(obj=>this.addObject(obj));endPropertyChanges();return this;}});/**\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          */// 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          @module ember\n          *//**\n           * The final definition of NativeArray removes all native methods. This is the list of removed methods\n           * when run in Chrome 106.\n           *//**\n           * These additional items must be redefined since `Omit` causes methods that return `this` to return the\n           * type at the time of the Omit.\n           */// This is the same as MutableArray, but removes the actual native methods that exist on Array.prototype.\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          */let NativeArray=Mixin.create(MutableArray,Observable,{objectAt(idx){return this[idx];},// primitive for array support.\nreplace(start,deleteCount){let items=arguments.length>2&&arguments[2]!==undefined?arguments[2]:EMPTY_ARRAY;!Array.isArray(items)&&assert$1('The third argument to replace needs to be an array.',Array.isArray(items));replaceInNativeArray(this,start,deleteCount,items);return this;}});// Remove any methods implemented natively so we don't override them\nconst ignore=['length'];NativeArray.keys().forEach(methodName=>{// SAFETY: It's safe to read unknown properties from an object\nif(Array.prototype[methodName]){ignore.push(methodName);}});NativeArray=NativeArray.without(...ignore);let A;if(ENV.EXTEND_PROTOTYPES.Array){NativeArray.apply(Array.prototype,true);A=function(arr){!!(this instanceof A)&&assert$1('You cannot create an Ember Array with `new A()`, please update to calling A as a function: `A()`',!(this instanceof A));// SAFTEY: Since we are extending prototypes all true native arrays are Ember NativeArrays\nreturn arr||[];};}else{A=function(arr){!!(this instanceof A)&&assert$1('You cannot create an Ember Array with `new A()`, please update to calling A as a function: `A()`',!(this instanceof A));if(isEmberArray(arr)){// SAFETY: If it's a true native array and it is also an EmberArray then it should be an Ember NativeArray\nreturn arr;}else{// SAFETY: This will return an NativeArray but TS can't infer that.\nreturn NativeArray.apply(arr!==null&&arr!==void 0?arr:[]);}};}const emberArrayIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,get A(){return A;},MutableArray,get NativeArray(){return NativeArray;},default:EmberArray,isArray:isArray$2,makeArray,removeAt,uniqBy:uniqBy$1},Symbol.toStringTag,{value:'Module'});function toBool(predicate){if(isProxy(predicate)){consumeTag(tagForProperty(predicate,'content'));return Boolean(get$2(predicate,'isTruthy'));}else if(isArray$2(predicate)){consumeTag(tagForProperty(predicate,'[]'));return predicate.length!==0;}else if(isHTMLSafe(predicate)){return Boolean(predicate.toString());}else{return Boolean(predicate);}}///////////\n// Setup global context\nsetGlobalContext({FEATURES:{DEFAULT_HELPER_MANAGER:true},scheduleRevalidate(){_backburner.ensureInstance();},toBool,toIterator,getProp:_getProp,setProp:_setProp,getPath:get$2,setPath:set,scheduleDestroy(destroyable,destructor){schedule('actions',null,destructor,destroyable);},scheduleDestroyed(finalizeDestructor){schedule('destroy',null,finalizeDestructor);},warnIfStyleNotTrusted(value){warn(constructStyleDeprecationMessage(String(value)),(()=>{if(value===null||value===undefined||isHTMLSafe(value)){return true;}return false;})(),{id:'ember-htmlbars.style-xss-warning'});},assert(test,msg,options){{var _override$message;let id=options===null||options===void 0?void 0:options.id;let override=VM_ASSERTION_OVERRIDES.filter(o=>o.id===id)[0];!test&&assert$1((_override$message=override===null||override===void 0?void 0:override.message)!==null&&_override$message!==void 0?_override$message:msg,test);}},deprecate(msg,test,options){{let{id}=options;if(id==='argument-less-helper-paren-less-invocation'){throw new Error(`A resolved helper cannot be passed as a named argument as the syntax is `+`ambiguously a pass-by-reference or invocation. Use the `+`\\`{{helper 'foo-helper}}\\` helper to pass by reference or explicitly `+`invoke the helper with parens: \\`{{(fooHelper)}}\\`.`);}let override=VM_DEPRECATION_OVERRIDES.filter(o=>o.id===id)[0];if(!override)throw new Error(`deprecation override for ${id} not found`);// allow deprecations to be disabled in the VM_DEPRECATION_OVERRIDES array below\nif(!override.disabled){var _override$message2;!Boolean(test)&&deprecate$1((_override$message2=override.message)!==null&&_override$message2!==void 0?_override$message2:msg,Boolean(test),override);}}}});{var _debug$1$setTrackingT;debug$1===null||debug$1===void 0||(_debug$1$setTrackingT=debug$1.setTrackingTransactionEnv)===null||_debug$1$setTrackingT===void 0||_debug$1$setTrackingT.call(debug$1,{debugMessage(obj,keyName){let dirtyString=keyName?`\\`${keyName}\\` on \\`${getDebugName$1===null||getDebugName$1===void 0?void 0:getDebugName$1(obj)}\\``:`\\`${getDebugName$1===null||getDebugName$1===void 0?void 0:getDebugName$1(obj)}\\``;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// VM Assertion/Deprecation overrides\nconst VM_DEPRECATION_OVERRIDES=[{id:'setting-on-hash',until:'4.4.0',for:'ember-source',since:{available:'3.28.0',enabled:'3.28.0'}}];const VM_ASSERTION_OVERRIDES=[];///////////\n// Define environment delegate\nclass EmberEnvironmentDelegate{constructor(owner,isInteractive){_defineProperty(this,\"enableDebugTooling\",ENV._DEBUG_RENDER_TREE);this.owner=owner;this.isInteractive=isInteractive;}onTransactionCommit(){}}/**\n          @module ember\n          */const disallowDynamicResolution=internalHelper(_ref138=>{let{positional,named}=_ref138;const nameOrValueRef=positional[0];!(positional.length===1&&nameOrValueRef)&&assert$1(`[BUG] wrong number of positional arguments, expecting 1, got ${positional.length}`,positional.length===1&&nameOrValueRef);let typeRef=named['type'];let locRef=named['loc'];let originalRef=named['original'];!typeRef&&assert$1(`[BUG] expecting \\`type\\` named argument`,typeRef);!locRef&&assert$1(`[BUG] expecting \\`loc\\` named argument`,locRef);!originalRef&&assert$1(`[BUG] expecting \\`original\\` named argument`,originalRef);// Bug: why do these fail?\n// assert('[BUG] expecting a string literal for the `type` argument', isConstRef(typeRef));\n// assert('[BUG] expecting a string literal for the `loc` argument', isConstRef(locRef));\n// assert('[BUG] expecting a string literal for the `original` argument', isConstRef(originalRef));\nconst type=valueForRef(typeRef);const loc=valueForRef(locRef);const original=valueForRef(originalRef);!(typeof type==='string')&&assert$1('[BUG] expecting a string literal for the `type` argument',typeof type==='string');!(typeof loc==='string')&&assert$1('[BUG] expecting a string literal for the `loc` argument',typeof loc==='string');!(typeof original==='string')&&assert$1('[BUG] expecting a string literal for the `original` argument',typeof original==='string');return createComputeRef(()=>{let nameOrValue=valueForRef(nameOrValueRef);!(typeof nameOrValue!=='string')&&assert$1(`Passing a dynamic string to the \\`(${type})\\` keyword is disallowed. `+`(You specified \\`(${type} ${original})\\` and \\`${original}\\` evaluated into \"${nameOrValue}\".) `+`This ensures we can statically analyze the template and determine which ${type}s are used. `+`If the ${type} name is always the same, use a string literal instead, i.e. \\`(${type} \"${nameOrValue}\")\\`. `+`Otherwise, import the ${type}s into JavaScript and pass them directly. `+'See https://github.com/emberjs/rfcs/blob/master/text/0496-handlebars-strict-mode.md#4-no-dynamic-resolution for details. '+loc,typeof nameOrValue!=='string');return nameOrValue;});});let helper$1;{helper$1=args=>{const inner=args.positional[0];!inner&&assert$1('expected at least one positional arg',inner);return createComputeRef(()=>{let value=valueForRef(inner);!(value!==null&&value!==undefined)&&assert$1('You cannot pass a null or undefined destination element to in-element',value!==null&&value!==undefined);return value;});};}const inElementNullCheckHelper=internalHelper(helper$1);const normalizeClassHelper=internalHelper(_ref139=>{let{positional}=_ref139;return createComputeRef(()=>{let classNameArg=positional[0];let valueArg=positional[1];!(classNameArg&&valueArg)&&assert$1('expected at least two positional args',classNameArg&&valueArg);let classNameParts=valueForRef(classNameArg).split('.');let className=classNameParts[classNameParts.length-1];!className&&assert$1('has className',className);// Always at least one split result\nlet value=valueForRef(valueArg);if(value===true){return dasherize(className);}else if(!value&&value!==0){return'';}else{return String(value);}});});/**\n            @module ember\n          */const resolve$1=internalHelper((_ref140,owner)=>{var _owner$factoryFor;let{positional}=_ref140;// why is this allowed to be undefined in the first place?\n!owner&&assert$1('[BUG] missing owner',owner);!(positional.length===1)&&assert$1(`[BUG] wrong number of positional arguments, expecting 1, got ${positional.length}`,positional.length===1);let fullNameRef=positional[0];!(fullNameRef&&isConstRef(fullNameRef))&&assert$1('[BUG] expecting a string literal as argument',fullNameRef&&isConstRef(fullNameRef));let fullName=valueForRef(fullNameRef);!(typeof fullName==='string')&&assert$1('[BUG] expecting a string literal as argument',typeof fullName==='string');!(s=>s.split(':').length===2)(fullName)&&assert$1('[BUG] expecting a valid full name',(s=>s.split(':').length===2)(fullName));{let[type,name]=fullName.split(':');!owner.hasRegistration(fullName)&&assert$1(`Attempted to invoke \\`(-resolve \"${fullName}\")\\`, but ${name} was not a valid ${type} name.`,owner.hasRegistration(fullName));}return createConstRef((_owner$factoryFor=owner.factoryFor(fullName))===null||_owner$factoryFor===void 0?void 0:_owner$factoryFor.class,`(-resolve \"${fullName}\")`);});/**\n          @module ember\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          */const trackArray=internalHelper(_ref141=>{let{positional}=_ref141;const inner=positional[0];!inner&&assert$1('expected at least one positional arg',inner);return createComputeRef(()=>{let iterable=valueForRef(inner);if(isObject$1(iterable)){consumeTag(tagForProperty(iterable,'[]'));}return iterable;});});/**\n          @module ember\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          */const mut=internalHelper(_ref142=>{let{positional}=_ref142;let ref=positional[0];!ref&&assert$1('expected at least one positional arg',ref);// 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!isUpdatableRef(ref)&&assert$1('You can only pass a path to mut',isUpdatableRef(ref));return createInvokableRef(ref);});/**\n          @module ember\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          */const readonly=internalHelper(_ref143=>{let{positional}=_ref143;let firstArg=positional[0];!firstArg&&assert$1('has first arg',firstArg);return createReadOnlyRef(firstArg);});/**\n          @module ember\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          */const unbound=internalHelper(_ref144=>{let{positional,named}=_ref144;!(positional.length===1&&Object.keys(named).length===0)&&assert$1('unbound helper cannot be called with multiple params or hash params',positional.length===1&&Object.keys(named).length===0);return createUnboundRef(valueForRef(positional[0]),'(result of an `unbound` helper)');});/**\n          @module ember\n          */const uniqueId$1=internalHelper(()=>{// SAFETY: glimmer-vm should change the signature of createUnboundRef to use a generic\n//         so that the type param to `Reference<?>` can infer from the first argument.\n//\n// NOTE: constRef is an optimization so we don't let the VM create extra wrappers,\n//       tracking frames, etc.\nreturn createConstRef(uniqueId$2(),'unique-id');});// From https://gist.github.com/selfish/fef2c0ba6cdfe07af76e64cecd74888b\n//\n// This code should be reasonably fast, and provide a unique value every time\n// it's called, which is what we need here. It produces a string formatted as a\n// standard UUID, which avoids accidentally turning Ember-specific\n// implementation details into an intimate API. It also ensures that the UUID\n// always starts with a letter, to avoid creating invalid IDs with a numeric\n// digit at the start.\nfunction uniqueId$2(){// @ts-expect-error this one-liner abuses weird JavaScript semantics that\n// TypeScript (legitimately) doesn't like, but they're nonetheless valid and\n// specced.\nreturn([3e7]+-1e3+-4e3+-2e3+-1e11).replace(/[0-3]/g,a=>(a*4^Math.random()*16>>(a&2)).toString(16));}const MODIFIERS=['alt','shift','meta','ctrl'];const POINTER_EVENT_TYPE_REGEX=/^click|mouse|touch/;function isAllowedEvent(event,allowedKeys){if(allowedKeys===null||allowedKeys===undefined){if(POINTER_EVENT_TYPE_REGEX.test(event.type)){return isSimpleClick(event);}else{allowedKeys='';}}if(allowedKeys.indexOf('any')>=0){return true;}for(let i=0;i<MODIFIERS.length;i++){if(event[MODIFIERS[i]+'Key']&&allowedKeys.indexOf(MODIFIERS[i])===-1){return false;}}return true;}let ActionHelper={// registeredActions is re-exported for compatibility with older plugins\n// that were using this undocumented API.\nregisteredActions:ActionManager.registeredActions,registerAction(actionState){let{actionId}=actionState;ActionManager.registeredActions[actionId]=actionState;return actionId;},unregisterAction(actionState){let{actionId}=actionState;delete ActionManager.registeredActions[actionId];}};class ActionState{constructor(element,owner,actionId,actionArgs,namedArgs,positionalArgs){_defineProperty(this,\"element\",void 0);_defineProperty(this,\"owner\",void 0);_defineProperty(this,\"actionId\",void 0);_defineProperty(this,\"actionName\",void 0);_defineProperty(this,\"actionArgs\",void 0);_defineProperty(this,\"namedArgs\",void 0);_defineProperty(this,\"positional\",void 0);_defineProperty(this,\"implicitTarget\",void 0);_defineProperty(this,\"eventName\",void 0);_defineProperty(this,\"tag\",createUpdatableTag());this.element=element;this.owner=owner;this.actionId=actionId;this.actionArgs=actionArgs;this.namedArgs=namedArgs;this.positional=positionalArgs;this.eventName=this.getEventName();registerDestructor$1(this,()=>ActionHelper.unregisterAction(this));}getEventName(){let{on}=this.namedArgs;return on!==undefined?valueForRef(on):'click';}getActionArgs(){let result=new Array(this.actionArgs.length);for(let i=0;i<this.actionArgs.length;i++){result[i]=valueForRef(this.actionArgs[i]);}return result;}getTarget(){let{implicitTarget,namedArgs}=this;let{target}=namedArgs;return target!==undefined?valueForRef(target):valueForRef(implicitTarget);}handler(event){let{actionName,namedArgs}=this;let{bubbles,preventDefault,allowedKeys}=namedArgs;let bubblesVal=bubbles!==undefined?valueForRef(bubbles):undefined;let preventDefaultVal=preventDefault!==undefined?valueForRef(preventDefault):undefined;let allowedKeysVal=allowedKeys!==undefined?valueForRef(allowedKeys):undefined;let target=this.getTarget();let shouldBubble=bubblesVal!==false;if(!isAllowedEvent(event,allowedKeysVal)){return true;}if(preventDefaultVal!==false){event.preventDefault();}if(!shouldBubble){event.stopPropagation();}join(()=>{let args=this.getActionArgs();let payload={args,target,name:null};if(isInvokableRef(actionName)){flaggedInstrument('interaction.ember-action',payload,()=>{updateRef(actionName,args[0]);});return;}if(typeof actionName==='function'){flaggedInstrument('interaction.ember-action',payload,()=>{actionName.apply(target,args);});return;}payload.name=actionName;if(target.send){flaggedInstrument('interaction.ember-action',payload,()=>{target.send.apply(target,[actionName,...args]);});}else{!(typeof target[actionName]==='function')&&assert$1(`The action '${actionName}' did not exist on ${target}`,typeof target[actionName]==='function');flaggedInstrument('interaction.ember-action',payload,()=>{target[actionName].apply(target,args);});}});return shouldBubble;}}class ActionModifierManager{create(owner,element,_state,_ref145){let{named,positional}=_ref145;let actionArgs=[];// The first two arguments are (1) `this` and (2) the action name.\n// Everything else is a param.\nfor(let i=2;i<positional.length;i++){actionArgs.push(positional[i]);}let actionId=uuid$1();return new ActionState(element,owner,actionId,actionArgs,named,positional);}getDebugInstance(){return null;}getDebugName(){return'action';}install(actionState){deprecateUntil(`Usage of the \\`{{action}}\\` modifier is deprecated. Migrate to native functions and function invocation.`,DEPRECATIONS.DEPRECATE_TEMPLATE_ACTION);let{element,actionId,positional}=actionState;let actionName;let actionNameRef;let implicitTarget;if(positional.length>1){implicitTarget=positional[0];actionNameRef=positional[1];if(isInvokableRef(actionNameRef)){actionName=actionNameRef;}else{actionName=valueForRef(actionNameRef);{let actionPath=actionNameRef.debugLabel;let actionPathParts=actionPath.split('.');let actionLabel=actionPathParts[actionPathParts.length-1];!(typeof actionName==='string'||typeof actionName==='function')&&assert$1('You specified a quoteless path, `'+actionPath+'`, to the '+'{{action}} helper which did not resolve to an action name (a '+'string). Perhaps you meant to use a quoted actionName? (e.g. '+'{{action \"'+actionLabel+'\"}}).',typeof actionName==='string'||typeof actionName==='function');}}}actionState.actionName=actionName;actionState.implicitTarget=implicitTarget;this.ensureEventSetup(actionState);ActionHelper.registerAction(actionState);element.setAttribute('data-ember-action','');element.setAttribute(`data-ember-action-${actionId}`,String(actionId));}update(actionState){let{positional}=actionState;let actionNameRef=positional[1];!actionNameRef&&assert$1('Expected at least one positional arg',actionNameRef);if(!isInvokableRef(actionNameRef)){actionState.actionName=valueForRef(actionNameRef);}let newEventName=actionState.getEventName();if(newEventName!==actionState.eventName){this.ensureEventSetup(actionState);actionState.eventName=actionState.getEventName();}}ensureEventSetup(actionState){let dispatcher=actionState.owner.lookup('event_dispatcher:main');!(dispatcher instanceof EventDispatcher)&&assert$1('Expected dispatcher to be an EventDispatcher',dispatcher instanceof EventDispatcher);dispatcher===null||dispatcher===void 0||dispatcher.setupHandlerForEmberEvent(actionState.eventName);}getTag(actionState){return actionState.tag;}getDestroyable(actionState){return actionState;}}const ACTION_MODIFIER_MANAGER=new ActionModifierManager();const actionModifier=setInternalModifierManager(ACTION_MODIFIER_MANAGER,{});var createObject=Object.create;function createMap(){var map=createObject(null);map[\"__\"]=undefined;delete map[\"__\"];return map;}var Target=function Target(path,matcher,delegate){this.path=path;this.matcher=matcher;this.delegate=delegate;};Target.prototype.to=function to(target,callback){var delegate=this.delegate;if(delegate&&delegate.willAddRoute){target=delegate.willAddRoute(this.matcher.target,target);}this.matcher.add(this.path,target);if(callback){if(callback.length===0){throw new Error(\"You must have an argument in the function passed to `to`\");}this.matcher.addChild(this.path,target,callback,this.delegate);}};var Matcher=function Matcher(target){this.routes=createMap();this.children=createMap();this.target=target;};Matcher.prototype.add=function add(path,target){this.routes[path]=target;};Matcher.prototype.addChild=function addChild(path,target,callback,delegate){var matcher=new Matcher(target);this.children[path]=matcher;var match=generateMatch(path,matcher,delegate);if(delegate&&delegate.contextEntered){delegate.contextEntered(target,match);}callback(match);};function generateMatch(startingPath,matcher,delegate){function match(path,callback){var fullPath=startingPath+path;if(callback){callback(generateMatch(fullPath,matcher,delegate));}else{return new Target(fullPath,matcher,delegate);}}return match;}function addRoute(routeArray,path,handler){var len=0;for(var i=0;i<routeArray.length;i++){len+=routeArray[i].path.length;}path=path.substr(len);var route={path:path,handler:handler};routeArray.push(route);}function eachRoute(baseRoute,matcher,callback,binding){var routes=matcher.routes;var paths=Object.keys(routes);for(var i=0;i<paths.length;i++){var path=paths[i];var routeArray=baseRoute.slice();addRoute(routeArray,path,routes[path]);var nested=matcher.children[path];if(nested){eachRoute(routeArray,nested,callback,binding);}else{callback.call(binding,routeArray);}}}var map$1=function(callback,addRouteCallback){var matcher=new Matcher();callback(generateMatch(\"\",matcher,this.delegate));eachRoute([],matcher,function(routes){if(addRouteCallback){addRouteCallback(this,routes);}else{this.add(routes);}},this);};// 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){return path.split(\"/\").map(normalizeSegment).join(\"/\");}// 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;function normalizeSegment(segment){if(segment.length<3||segment.indexOf(\"%\")===-1){return segment;}return decodeURIComponent(segment).replace(SEGMENT_RESERVED_CHARS,encodeURIComponent);}// 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;function encodePathSegment(str){return encodeURIComponent(str).replace(PATH_SEGMENT_ENCODINGS,decodeURIComponent);}var escapeRegex=/(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)/g;var isArray$1=Array.isArray;var hasOwnProperty$1=Object.prototype.hasOwnProperty;function getParam(params,key){if(typeof params!==\"object\"||params===null){throw new Error(\"You must pass an object as the second argument to `generate`.\");}if(!hasOwnProperty$1.call(params,key)){throw new Error(\"You must provide param `\"+key+\"` to `generate`.\");}var value=params[key];var str=typeof value===\"string\"?value:\"\"+value;if(str.length===0){throw new Error(\"You must provide a param `\"+key+\"`.\");}return str;}var eachChar=[];eachChar[0/* Static */]=function(segment,currentState){var state=currentState;var value=segment.value;for(var i=0;i<value.length;i++){var ch=value.charCodeAt(i);state=state.put(ch,false,false);}return state;};eachChar[1/* Dynamic */]=function(_,currentState){return currentState.put(47/* SLASH */,true,true);};eachChar[2/* Star */]=function(_,currentState){return currentState.put(-1/* ANY */,false,true);};eachChar[4/* Epsilon */]=function(_,currentState){return currentState;};var regex=[];regex[0/* Static */]=function(segment){return segment.value.replace(escapeRegex,\"\\\\$1\");};regex[1/* Dynamic */]=function(){return\"([^/]+)\";};regex[2/* Star */]=function(){return\"(.+)\";};regex[4/* Epsilon */]=function(){return\"\";};var generate=[];generate[0/* Static */]=function(segment){return segment.value;};generate[1/* Dynamic */]=function(segment,params){var value=getParam(params,segment.value);if(RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS){return encodePathSegment(value);}else{return value;}};generate[2/* Star */]=function(segment,params){return getParam(params,segment.value);};generate[4/* Epsilon */]=function(){return\"\";};var EmptyObject=Object.freeze({});var EmptyArray=Object.freeze([]);// 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){// normalize route as not starting with a \"/\". Recognition will\n// also normalize.\nif(route.length>0&&route.charCodeAt(0)===47/* SLASH */){route=route.substr(1);}var parts=route.split(\"/\");var names=undefined;var shouldDecodes=undefined;for(var i=0;i<parts.length;i++){var part=parts[i];var flags=0;var type=0;if(part===\"\"){type=4/* Epsilon */;}else if(part.charCodeAt(0)===58/* COLON */){type=1/* Dynamic */;}else if(part.charCodeAt(0)===42/* STAR */){type=2/* Star */;}else{type=0/* Static */;}flags=2<<type;if(flags&12/* Named */){part=part.slice(1);names=names||[];names.push(part);shouldDecodes=shouldDecodes||[];shouldDecodes.push((flags&4/* Decoded */)!==0);}if(flags&14/* Counted */){types[type]++;}segments.push({type:type,value:normalizeSegment(part)});}return{names:names||EmptyArray,shouldDecodes:shouldDecodes||EmptyArray};}function isEqualCharSpec(spec,char,negate){return spec.char===char&&spec.negate===negate;}// 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){this.states=states;this.id=id;this.char=char;this.negate=negate;this.nextStates=repeat?id:null;this.pattern=\"\";this._regex=undefined;this.handlers=undefined;this.types=undefined;};State.prototype.regex=function regex$1(){if(!this._regex){this._regex=new RegExp(this.pattern);}return this._regex;};State.prototype.get=function get(char,negate){var this$1$1=this;var nextStates=this.nextStates;if(nextStates===null){return;}if(isArray$1(nextStates)){for(var i=0;i<nextStates.length;i++){var child=this$1$1.states[nextStates[i]];if(isEqualCharSpec(child,char,negate)){return child;}}}else{var child$1=this.states[nextStates];if(isEqualCharSpec(child$1,char,negate)){return child$1;}}};State.prototype.put=function put(char,negate,repeat){var state;// If the character specification already exists in a child of the current\n// state, just return that state.\nif(state=this.get(char,negate)){return state;}// Make a new state for the character spec\nvar states=this.states;state=new State(states,states.length,char,negate,repeat);states[states.length]=state;// Insert the new state as a child of the current state\nif(this.nextStates==null){this.nextStates=state.id;}else if(isArray$1(this.nextStates)){this.nextStates.push(state.id);}else{this.nextStates=[this.nextStates,state.id];}// Return the new state\nreturn state;};// Find a list of child states matching the next character\nState.prototype.match=function match(ch){var this$1$1=this;var nextStates=this.nextStates;if(!nextStates){return[];}var returned=[];if(isArray$1(nextStates)){for(var i=0;i<nextStates.length;i++){var child=this$1$1.states[nextStates[i]];if(isMatch(child,ch)){returned.push(child);}}}else{var child$1=this.states[nextStates];if(isMatch(child$1,ch)){returned.push(child$1);}}return returned;};function isMatch(spec,char){return spec.negate?spec.char!==char&&spec.char!==-1/* ANY */:spec.char===char||spec.char===-1/* ANY */;}// 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){return states.sort(function(a,b){var ref=a.types||[0,0,0];var astatics=ref[0];var adynamics=ref[1];var astars=ref[2];var ref$1=b.types||[0,0,0];var bstatics=ref$1[0];var bdynamics=ref$1[1];var bstars=ref$1[2];if(astars!==bstars){return astars-bstars;}if(astars){if(astatics!==bstatics){return bstatics-astatics;}if(adynamics!==bdynamics){return bdynamics-adynamics;}}if(adynamics!==bdynamics){return adynamics-bdynamics;}if(astatics!==bstatics){return bstatics-astatics;}return 0;});}function recognizeChar(states,ch){var nextStates=[];for(var i=0,l=states.length;i<l;i++){var state=states[i];nextStates=nextStates.concat(state.match(ch));}return nextStates;}var RecognizeResults=function RecognizeResults(queryParams){this.length=0;this.queryParams=queryParams||{};};RecognizeResults.prototype.splice=Array.prototype.splice;RecognizeResults.prototype.slice=Array.prototype.slice;RecognizeResults.prototype.push=Array.prototype.push;function findHandler(state,originalPath,queryParams){var handlers=state.handlers;var regex=state.regex();if(!regex||!handlers){throw new Error(\"state not initialized\");}var captures=originalPath.match(regex);var currentCapture=1;var result=new RecognizeResults(queryParams);result.length=handlers.length;for(var i=0;i<handlers.length;i++){var handler=handlers[i];var names=handler.names;var shouldDecodes=handler.shouldDecodes;var params=EmptyObject;var isDynamic=false;if(names!==EmptyArray&&shouldDecodes!==EmptyArray){for(var j=0;j<names.length;j++){isDynamic=true;var name=names[j];var capture=captures&&captures[currentCapture++];if(params===EmptyObject){params={};}if(RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS&&shouldDecodes[j]){params[name]=capture&&decodeURIComponent(capture);}else{params[name]=capture;}}}result[i]={handler:handler.handler,params:params,isDynamic:isDynamic};}return result;}function decodeQueryParamPart(part){// http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1\npart=part.replace(/\\+/gm,\"%20\");var result;try{result=decodeURIComponent(part);}catch(error){result=\"\";}return result;}var RouteRecognizer=function RouteRecognizer(){this.names=createMap();var states=[];var state=new State(states,0,-1/* ANY */,true,false);states[0]=state;this.states=states;this.rootState=state;};RouteRecognizer.prototype.add=function add(routes,options){var currentState=this.rootState;var pattern=\"^\";var types=[0,0,0];var handlers=new Array(routes.length);var allSegments=[];var isEmpty=true;var j=0;for(var i=0;i<routes.length;i++){var route=routes[i];var ref=parse(allSegments,route.path,types);var names=ref.names;var shouldDecodes=ref.shouldDecodes;// preserve j so it points to the start of newly added segments\nfor(;j<allSegments.length;j++){var segment=allSegments[j];if(segment.type===4/* Epsilon */){continue;}isEmpty=false;// Add a \"/\" for the new segment\ncurrentState=currentState.put(47/* SLASH */,false,false);pattern+=\"/\";// Add a representation of the segment to the NFA and regex\ncurrentState=eachChar[segment.type](segment,currentState);pattern+=regex[segment.type](segment);}handlers[i]={handler:route.handler,names:names,shouldDecodes:shouldDecodes};}if(isEmpty){currentState=currentState.put(47/* SLASH */,false,false);pattern+=\"/\";}currentState.handlers=handlers;currentState.pattern=pattern+\"$\";currentState.types=types;var name;if(typeof options===\"object\"&&options!==null&&options.as){name=options.as;}if(name){// if (this.names[name]) {\n//   throw new Error(\"You may not add a duplicate route named `\" + name + \"`.\");\n// }\nthis.names[name]={segments:allSegments,handlers:handlers};}};RouteRecognizer.prototype.handlersFor=function handlersFor(name){var route=this.names[name];if(!route){throw new Error(\"There is no route named \"+name);}var result=new Array(route.handlers.length);for(var i=0;i<route.handlers.length;i++){var handler=route.handlers[i];result[i]=handler;}return result;};RouteRecognizer.prototype.hasRoute=function hasRoute(name){return!!this.names[name];};RouteRecognizer.prototype.generate=function generate$1(name,params){var route=this.names[name];var output=\"\";if(!route){throw new Error(\"There is no route named \"+name);}var segments=route.segments;for(var i=0;i<segments.length;i++){var segment=segments[i];if(segment.type===4/* Epsilon */){continue;}output+=\"/\";output+=generate[segment.type](segment,params);}if(output.charAt(0)!==\"/\"){output=\"/\"+output;}if(params&&params.queryParams){output+=this.generateQueryString(params.queryParams);}return output;};RouteRecognizer.prototype.generateQueryString=function generateQueryString(params){var pairs=[];var keys=Object.keys(params);keys.sort();for(var i=0;i<keys.length;i++){var key=keys[i];var value=params[key];if(value==null){continue;}var pair=encodeURIComponent(key);if(isArray$1(value)){for(var j=0;j<value.length;j++){var arrayPair=key+\"[]\"+\"=\"+encodeURIComponent(value[j]);pairs.push(arrayPair);}}else{pair+=\"=\"+encodeURIComponent(value);pairs.push(pair);}}if(pairs.length===0){return\"\";}return\"?\"+pairs.join(\"&\");};RouteRecognizer.prototype.parseQueryString=function parseQueryString(queryString){var pairs=queryString.split(\"&\");var queryParams={};for(var i=0;i<pairs.length;i++){var pair=pairs[i].split(\"=\"),key=decodeQueryParamPart(pair[0]),keyLength=key.length,isArray=false,value=void 0;if(pair.length===1){value=\"true\";}else{// Handle arrays\nif(keyLength>2&&key.slice(keyLength-2)===\"[]\"){isArray=true;key=key.slice(0,keyLength-2);if(!queryParams[key]){queryParams[key]=[];}}value=pair[1]?decodeQueryParamPart(pair[1]):\"\";}if(isArray){queryParams[key].push(value);}else{queryParams[key]=value;}}return queryParams;};RouteRecognizer.prototype.recognize=function recognize(path){var results;var states=[this.rootState];var queryParams={};var isSlashDropped=false;var hashStart=path.indexOf(\"#\");if(hashStart!==-1){path=path.substr(0,hashStart);}var queryStart=path.indexOf(\"?\");if(queryStart!==-1){var queryString=path.substr(queryStart+1,path.length);path=path.substr(0,queryStart);queryParams=this.parseQueryString(queryString);}if(path.charAt(0)!==\"/\"){path=\"/\"+path;}var originalPath=path;if(RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS){path=normalizePath(path);}else{path=decodeURI(path);originalPath=decodeURI(originalPath);}var pathLen=path.length;if(pathLen>1&&path.charAt(pathLen-1)===\"/\"){path=path.substr(0,pathLen-1);originalPath=originalPath.substr(0,originalPath.length-1);isSlashDropped=true;}for(var i=0;i<path.length;i++){states=recognizeChar(states,path.charCodeAt(i));if(!states.length){break;}}var solutions=[];for(var i$1=0;i$1<states.length;i$1++){if(states[i$1].handlers){solutions.push(states[i$1]);}}states=sortSolutions(solutions);var state=solutions[0];if(state&&state.handlers){// if a trailing slash was dropped and a star segment is the last segment\n// specified, put the trailing slash back\nif(isSlashDropped&&state.pattern&&state.pattern.slice(-5)===\"(.+)$\"){originalPath=originalPath+\"/\";}results=findHandler(state,originalPath,queryParams);}return results;};RouteRecognizer.VERSION=\"0.3.4\";// 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;RouteRecognizer.Normalizer={normalizeSegment:normalizeSegment,normalizePath:normalizePath,encodePathSegment:encodePathSegment};RouteRecognizer.prototype.map=map$1;const routeRecognizer=/*#__PURE__*/Object.defineProperty({__proto__:null,default:RouteRecognizer},Symbol.toStringTag,{value:'Module'});function buildTransitionAborted(){let error=new Error('TransitionAborted');error.name='TransitionAborted';error.code='TRANSITION_ABORTED';return error;}function isTransitionAborted(maybeError){return typeof maybeError==='object'&&maybeError!==null&&maybeError.code==='TRANSITION_ABORTED';}function isAbortable(maybeAbortable){return typeof maybeAbortable==='object'&&maybeAbortable!==null&&typeof maybeAbortable.isAborted==='boolean';}function throwIfAborted(maybe){if(isAbortable(maybe)&&maybe.isAborted){throw buildTransitionAborted();}}const slice$1=Array.prototype.slice;const hasOwnProperty=Object.prototype.hasOwnProperty;/**\n            Determines if an object is Promise by checking if it is \"thenable\".\n          **/function isPromise(p){return p!==null&&typeof p==='object'&&typeof p.then==='function';}function merge(hash,other){for(let prop in other){if(hasOwnProperty.call(other,prop)){hash[prop]=other[prop];}}}/**\n            @private\n\n            Extracts query params from the end of an array\n          **/function extractQueryParams(array){let len=array&&array.length,head,queryParams;if(len&&len>0){let obj=array[len-1];if(isQueryParamsContainer(obj)){queryParams=obj.queryParams;head=slice$1.call(array,0,len-1);return[head,queryParams];}}// SAFETY: We confirmed that the last item isn't a QP container\nreturn[array,null];}// TODO: Actually check that Dict is QueryParams\nfunction isQueryParamsContainer(obj){if(obj&&typeof obj==='object'){let cast=obj;return'queryParams'in cast&&Object.keys(cast.queryParams).every(k=>typeof k==='string');}return false;}/**\n            @private\n\n            Coerces query param properties and array elements into strings.\n          **/function coerceQueryParamsToString(queryParams){for(let key in queryParams){let val=queryParams[key];if(typeof val==='number'){queryParams[key]=''+val;}else if(Array.isArray(val)){for(let i=0,l=val.length;i<l;i++){val[i]=''+val[i];}}}}/**\n            @private\n           */function log(router){if(!router.log){return;}for(var _len47=arguments.length,args=new Array(_len47>1?_len47-1:0),_key48=1;_key48<_len47;_key48++){args[_key48-1]=arguments[_key48];}if(args.length===2){let[sequence,msg]=args;router.log('Transition #'+sequence+': '+msg);}else{let[msg]=args;router.log(msg);}}function isParam(object){return typeof object==='string'||object instanceof String||typeof object==='number'||object instanceof Number;}function forEach(array,callback){for(let i=0,l=array.length;i<l&&callback(array[i])!==false;i++){// empty intentionally\n}}function getChangelist(oldObject,newObject){let key;let results={all:{},changed:{},removed:{}};merge(results.all,newObject);let didChange=false;coerceQueryParamsToString(oldObject);coerceQueryParamsToString(newObject);// Calculate removals\nfor(key in oldObject){if(hasOwnProperty.call(oldObject,key)){if(!hasOwnProperty.call(newObject,key)){didChange=true;results.removed[key]=oldObject[key];}}}// Calculate changes\nfor(key in newObject){if(hasOwnProperty.call(newObject,key)){let oldElement=oldObject[key];let newElement=newObject[key];if(isArray(oldElement)&&isArray(newElement)){if(oldElement.length!==newElement.length){results.changed[key]=newObject[key];didChange=true;}else{for(let i=0,l=oldElement.length;i<l;i++){if(oldElement[i]!==newElement[i]){results.changed[key]=newObject[key];didChange=true;}}}}else if(oldObject[key]!==newObject[key]){results.changed[key]=newObject[key];didChange=true;}}}return didChange?results:undefined;}function isArray(obj){return Array.isArray(obj);}function promiseLabel(label){return'Router: '+label;}const STATE_SYMBOL=`__STATE__-2619860001345920-3322w3`;const PARAMS_SYMBOL=`__PARAMS__-261986232992830203-23323`;const QUERY_PARAMS_SYMBOL=`__QPS__-2619863929824844-32323`;/**\n            A Transition is a thenable (a promise-like object) that represents\n            an attempt to transition to another route. It can be aborted, either\n            explicitly via `abort` or by attempting another transition while a\n            previous one is still underway. An aborted transition can also\n            be `retry()`d later.\n\n            @class Transition\n            @constructor\n            @param {Object} router\n            @param {Object} intent\n            @param {Object} state\n            @param {Object} error\n            @private\n           */class Transition{constructor(router,intent,state){let error=arguments.length>3&&arguments[3]!==undefined?arguments[3]:undefined;let previousTransition=arguments.length>4&&arguments[4]!==undefined?arguments[4]:undefined;this.from=null;this.to=undefined;this.isAborted=false;this.isActive=true;this.urlMethod='update';this.resolveIndex=0;this.queryParamsOnly=false;this.isTransition=true;this.isCausedByAbortingTransition=false;this.isCausedByInitialTransition=false;this.isCausedByAbortingReplaceTransition=false;this._visibleQueryParams={};this.isIntermediate=false;this[STATE_SYMBOL]=state||router.state;this.intent=intent;this.router=router;this.data=intent&&intent.data||{};this.resolvedModels={};this[QUERY_PARAMS_SYMBOL]={};this.promise=undefined;this.error=undefined;this[PARAMS_SYMBOL]={};this.routeInfos=[];this.targetName=undefined;this.pivotHandler=undefined;this.sequence=-1;{let error=new Error(`Transition creation stack`);this.debugCreationStack=()=>error.stack;// not aborted yet, will be replaced when `this.isAborted` is set\nthis.debugAbortStack=()=>undefined;this.debugPreviousTransition=previousTransition;}if(error){this.promise=Promise$2.reject(error);this.error=error;return;}// 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\nthis.isCausedByAbortingTransition=!!previousTransition;this.isCausedByInitialTransition=!!previousTransition&&(previousTransition.isCausedByInitialTransition||previousTransition.sequence===0);// Every transition in the chain is a replace\nthis.isCausedByAbortingReplaceTransition=!!previousTransition&&previousTransition.urlMethod==='replace'&&(!previousTransition.isCausedByAbortingTransition||previousTransition.isCausedByAbortingReplaceTransition);if(state){this[PARAMS_SYMBOL]=state.params;this[QUERY_PARAMS_SYMBOL]=state.queryParams;this.routeInfos=state.routeInfos;let len=state.routeInfos.length;if(len){this.targetName=state.routeInfos[len-1].name;}for(let i=0;i<len;++i){let handlerInfo=state.routeInfos[i];// TODO: this all seems hacky\nif(!handlerInfo.isResolved){break;}this.pivotHandler=handlerInfo.route;}this.sequence=router.currentSequence++;this.promise=state.resolve(this).catch(result=>{let error=this.router.transitionDidError(result,this);throw error;},promiseLabel('Handle Abort'));}else{this.promise=Promise$2.resolve(this[STATE_SYMBOL]);this[PARAMS_SYMBOL]={};}}/**\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                 @property promise\n              @type {Object}\n              @public\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                 @property data\n              @type {Object}\n              @public\n             *//**\n              A standard promise hook that resolves if the transition\n              succeeds and rejects if it fails/redirects/aborts.\n                 Forwards to the internal `promise` property which you can\n              use in situations where you want to pass around a thenable,\n              but not the Transition itself.\n                 @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             */then(onFulfilled,onRejected,label){return this.promise.then(onFulfilled,onRejected,label);}/**\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                 @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             */catch(onRejection,label){return this.promise.catch(onRejection,label);}/**\n                 Forwards to the internal `promise` property which you can\n              use in situations where you want to pass around a thenable,\n              but not the Transition itself.\n                 @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             */finally(callback,label){return this.promise.finally(callback,label);}/**\n              Aborts the Transition. Note you can also implicitly abort a transition\n              by initiating another transition while a previous one is underway.\n                 @method abort\n              @return {Transition} this transition\n              @public\n             */abort(){this.rollback();let transition=new Transition(this.router,undefined,undefined,undefined);transition.to=this.from;transition.from=this.from;transition.isAborted=true;this.router.routeWillChange(transition);this.router.routeDidChange(transition);return this;}rollback(){if(!this.isAborted){log(this.router,this.sequence,this.targetName+': transition was aborted');{let error=new Error(`Transition aborted stack`);this.debugAbortStack=()=>error.stack;}if(this.intent!==undefined&&this.intent!==null){this.intent.preTransitionState=this.router.state;}this.isAborted=true;this.isActive=false;this.router.activeTransition=undefined;}}redirect(newTransition){this.rollback();this.router.routeWillChange(newTransition);}/**\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                 @method retry\n              @return {Transition} new transition\n              @public\n             */retry(){// TODO: add tests for merged state retry()s\nthis.abort();let newTransition=this.router.transitionByIntent(this.intent,false);// 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\nif(this.urlMethod!==null){newTransition.method(this.urlMethod);}return newTransition;}/**\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                 @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                 @return {Transition} this transition\n              @public\n             */method(method){this.urlMethod=method;return this;}// Alias 'trigger' as 'send'\nsend(){let ignoreFailure=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;let _name=arguments.length>1?arguments[1]:undefined;let err=arguments.length>2?arguments[2]:undefined;let transition=arguments.length>3?arguments[3]:undefined;let handler=arguments.length>4?arguments[4]:undefined;this.trigger(ignoreFailure,_name,err,transition,handler);}/**\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                 Note: This method is also aliased as `send`\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             */trigger(){let ignoreFailure=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;let name=arguments.length>1?arguments[1]:undefined;// TODO: Deprecate the current signature\nif(typeof ignoreFailure==='string'){name=ignoreFailure;ignoreFailure=false;}for(var _len48=arguments.length,args=new Array(_len48>2?_len48-2:0),_key49=2;_key49<_len48;_key49++){args[_key49-2]=arguments[_key49];}this.router.triggerEvent(this[STATE_SYMBOL].routeInfos.slice(0,this.resolveIndex+1),ignoreFailure,name,args);}/**\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                 @method followRedirects\n              @return {Promise} a promise that fulfills with the same\n                value that the final redirecting transition fulfills with\n              @public\n             */followRedirects(){let router=this.router;return this.promise.catch(function(reason){if(router.activeTransition){return router.activeTransition.followRedirects();}return Promise$2.reject(reason);});}toString(){return'Transition (sequence '+this.sequence+')';}/**\n              @private\n             */log(message){log(this.router,this.sequence,message);}}/**\n            @private\n\n            Logs and returns an instance of TransitionAborted.\n           */function logAbort(transition){log(transition.router,transition.sequence,'detected abort.');return buildTransitionAborted();}function isTransition(obj){return typeof obj==='object'&&obj instanceof Transition&&obj.isTransition;}function prepareResult(obj){if(isTransition(obj)){return null;}return obj;}let ROUTE_INFOS=new WeakMap();function toReadOnlyRouteInfo(routeInfos){let queryParams=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{includeAttributes:false,localizeMapUpdates:false};const LOCAL_ROUTE_INFOS=new WeakMap();return routeInfos.map((info,i)=>{let{name,params,paramNames,context,route}=info;// SAFETY: This should be safe since it is just for use as a key\nlet key=info;if(ROUTE_INFOS.has(key)&&options.includeAttributes){let routeInfo=ROUTE_INFOS.get(key);routeInfo=attachMetadata(route,routeInfo);let routeInfoWithAttribute=createRouteInfoWithAttributes(routeInfo,context);LOCAL_ROUTE_INFOS.set(key,routeInfo);if(!options.localizeMapUpdates){ROUTE_INFOS.set(key,routeInfoWithAttribute);}return routeInfoWithAttribute;}const routeInfosRef=options.localizeMapUpdates?LOCAL_ROUTE_INFOS:ROUTE_INFOS;let routeInfo={find(predicate,thisArg){let publicInfo;let arr=[];if(predicate.length===3){arr=routeInfos.map(// SAFETY: This should be safe since it is just for use as a key\ninfo=>routeInfosRef.get(info));}for(let i=0;routeInfos.length>i;i++){// SAFETY: This should be safe since it is just for use as a key\npublicInfo=routeInfosRef.get(routeInfos[i]);if(predicate.call(thisArg,publicInfo,i,arr)){return publicInfo;}}return undefined;},get name(){return name;},get paramNames(){return paramNames;},get metadata(){return buildRouteInfoMetadata(info.route);},get parent(){let parent=routeInfos[i-1];if(parent===undefined){return null;}// SAFETY: This should be safe since it is just for use as a key\nreturn routeInfosRef.get(parent);},get child(){let child=routeInfos[i+1];if(child===undefined){return null;}// SAFETY: This should be safe since it is just for use as a key\nreturn routeInfosRef.get(child);},get localName(){let parts=this.name.split('.');return parts[parts.length-1];},get params(){return params;},get queryParams(){return queryParams;}};if(options.includeAttributes){routeInfo=createRouteInfoWithAttributes(routeInfo,context);}// SAFETY: This should be safe since it is just for use as a key\nLOCAL_ROUTE_INFOS.set(info,routeInfo);if(!options.localizeMapUpdates){// SAFETY: This should be safe since it is just for use as a key\nROUTE_INFOS.set(info,routeInfo);}return routeInfo;});}function createRouteInfoWithAttributes(routeInfo,context){let attributes={get attributes(){return context;}};if(!Object.isExtensible(routeInfo)||routeInfo.hasOwnProperty('attributes')){return Object.freeze(Object.assign({},routeInfo,attributes));}return Object.assign(routeInfo,attributes);}function buildRouteInfoMetadata(route){if(route!==undefined&&route!==null&&route.buildRouteInfoMetadata!==undefined){return route.buildRouteInfoMetadata();}return null;}function attachMetadata(route,routeInfo){let metadata={get metadata(){return buildRouteInfoMetadata(route);}};if(!Object.isExtensible(routeInfo)||routeInfo.hasOwnProperty('metadata')){return Object.freeze(Object.assign({},routeInfo,metadata));}return Object.assign(routeInfo,metadata);}class InternalRouteInfo{constructor(router,name,paramNames,route){this._routePromise=undefined;this._route=null;this.params={};this.isResolved=false;this.name=name;this.paramNames=paramNames;this.router=router;if(route){this._processRoute(route);}}getModel(_transition){return Promise$2.resolve(this.context);}serialize(_context){return this.params||{};}resolve(transition){return Promise$2.resolve(this.routePromise).then(route=>{throwIfAborted(transition);return route;}).then(()=>this.runBeforeModelHook(transition)).then(()=>throwIfAborted(transition)).then(()=>this.getModel(transition)).then(resolvedModel=>{throwIfAborted(transition);return resolvedModel;}).then(resolvedModel=>this.runAfterModelHook(transition,resolvedModel)).then(resolvedModel=>this.becomeResolved(transition,resolvedModel));}becomeResolved(transition,resolvedContext){let params=this.serialize(resolvedContext);if(transition){this.stashResolvedModel(transition,resolvedContext);transition[PARAMS_SYMBOL]=transition[PARAMS_SYMBOL]||{};transition[PARAMS_SYMBOL][this.name]=params;}let context;let contextsMatch=resolvedContext===this.context;if('context'in this||!contextsMatch){context=resolvedContext;}// SAFETY: Since this is just for lookup, it should be safe\nlet cached=ROUTE_INFOS.get(this);let resolved=new ResolvedRouteInfo(this.router,this.name,this.paramNames,params,this.route,context);if(cached!==undefined){// SAFETY: This is potentially a bit risker, but for what we're doing, it should be ok.\nROUTE_INFOS.set(resolved,cached);}return resolved;}shouldSupersede(routeInfo){// 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.\nif(!routeInfo){return true;}let contextsMatch=routeInfo.context===this.context;return routeInfo.name!==this.name||'context'in this&&!contextsMatch||this.hasOwnProperty('params')&&!paramsMatch(this.params,routeInfo.params);}get route(){// _route could be set to either a route object or undefined, so we\n// compare against null to know when it's been set\nif(this._route!==null){return this._route;}return this.fetchRoute();}set route(route){this._route=route;}get routePromise(){if(this._routePromise){return this._routePromise;}this.fetchRoute();return this._routePromise;}set routePromise(routePromise){this._routePromise=routePromise;}log(transition,message){if(transition.log){transition.log(this.name+': '+message);}}updateRoute(route){route._internalName=this.name;return this.route=route;}runBeforeModelHook(transition){if(transition.trigger){transition.trigger(true,'willResolveModel',transition,this.route);}let result;if(this.route){if(this.route.beforeModel!==undefined){result=this.route.beforeModel(transition);}}if(isTransition(result)){result=null;}return Promise$2.resolve(result);}runAfterModelHook(transition,resolvedModel){// Stash the resolved model on the payload.\n// This makes it possible for users to swap out\n// the resolved model in afterModel.\nlet name=this.name;this.stashResolvedModel(transition,resolvedModel);let result;if(this.route!==undefined){if(this.route.afterModel!==undefined){result=this.route.afterModel(resolvedModel,transition);}}result=prepareResult(result);return Promise$2.resolve(result).then(()=>{// Ignore the fulfilled value returned from afterModel.\n// Return the value stashed in resolvedModels, which\n// might have been swapped out in afterModel.\n// SAFTEY: We expect this to be of type T, though typing it as such is challenging.\nreturn transition.resolvedModels[name];});}stashResolvedModel(transition,resolvedModel){transition.resolvedModels=transition.resolvedModels||{};// SAFETY: It's unfortunate that we have to do this cast. It should be safe though.\ntransition.resolvedModels[this.name]=resolvedModel;}fetchRoute(){let route=this.router.getRoute(this.name);return this._processRoute(route);}_processRoute(route){// Setup a routePromise so that we can wait for asynchronously loaded routes\nthis.routePromise=Promise$2.resolve(route);// Wait until the 'route' property has been updated when chaining to a route\n// that is a promise\nif(isPromise(route)){this.routePromise=this.routePromise.then(r=>{return this.updateRoute(r);});// set to undefined to avoid recursive loop in the route getter\nreturn this.route=undefined;}else if(route){return this.updateRoute(route);}return undefined;}}class ResolvedRouteInfo extends InternalRouteInfo{constructor(router,name,paramNames,params,route,context){super(router,name,paramNames,route);this.params=params;this.isResolved=true;this.context=context;}resolve(transition){// A ResolvedRouteInfo just resolved with itself.\nif(transition&&transition.resolvedModels){transition.resolvedModels[this.name]=this.context;}return Promise$2.resolve(this);}}class UnresolvedRouteInfoByParam extends InternalRouteInfo{constructor(router,name,paramNames,params,route){super(router,name,paramNames,route);this.params={};if(params){this.params=params;}}getModel(transition){let fullParams=this.params;if(transition&&transition[QUERY_PARAMS_SYMBOL]){fullParams={};merge(fullParams,this.params);fullParams.queryParams=transition[QUERY_PARAMS_SYMBOL];}let route=this.route;let result;// FIXME: Review these casts\nif(route.deserialize){result=route.deserialize(fullParams,transition);}else if(route.model){result=route.model(fullParams,transition);}if(result&&isTransition(result)){result=undefined;}return Promise$2.resolve(result);}}class UnresolvedRouteInfoByObject extends InternalRouteInfo{constructor(router,name,paramNames,context){super(router,name,paramNames);this.context=context;this.serializer=this.router.getSerializer(name);}getModel(transition){if(this.router.log!==undefined){this.router.log(this.name+': resolving provided model');}return super.getModel(transition);}/**\n              @private\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                 @param {Object} model the model to be serialized for this route\n            */serialize(model){let{paramNames,context}=this;if(!model){// SAFETY: By the time we serialize, we expect to be resolved.\n// This may not be an entirely safe assumption though no tests fail.\nmodel=context;}let object={};if(isParam(model)){object[paramNames[0]]=model;return object;}// Use custom serialize if it exists.\nif(this.serializer){// invoke this.serializer unbound (getSerializer returns a stateless function)\nreturn this.serializer.call(null,model,paramNames);}else if(this.route!==undefined){if(this.route.serialize){return this.route.serialize(model,paramNames);}}if(paramNames.length!==1){return;}let name=paramNames[0];if(/_id$/.test(name)){// SAFETY: Model is supposed to extend IModel already\nobject[name]=model.id;}else{object[name]=model;}return object;}}function paramsMatch(a,b){if(a===b){// Both are identical, may both be undefined\nreturn true;}if(!a||!b){// Only one is undefined, already checked they aren't identical\nreturn false;}// Note: this assumes that both params have the same\n// number of keys, but since we're comparing the\n// same routes, they should.\nfor(let k in a){if(a.hasOwnProperty(k)&&a[k]!==b[k]){return false;}}return true;}class TransitionIntent{constructor(router){let data=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.router=router;this.data=data;}}function handleError(currentState,transition,error){// This is the only possible\n// reject value of TransitionState#resolve\nlet routeInfos=currentState.routeInfos;let errorHandlerIndex=transition.resolveIndex>=routeInfos.length?routeInfos.length-1:transition.resolveIndex;let wasAborted=transition.isAborted;throw new TransitionError(error,currentState.routeInfos[errorHandlerIndex].route,wasAborted,currentState);}function resolveOneRouteInfo(currentState,transition){if(transition.resolveIndex===currentState.routeInfos.length){// This is is the only possible\n// fulfill value of TransitionState#resolve\nreturn;}let routeInfo=currentState.routeInfos[transition.resolveIndex];let callback=proceed.bind(null,currentState,transition);return routeInfo.resolve(transition).then(callback,null,currentState.promiseLabel('Proceed'));}function proceed(currentState,transition,resolvedRouteInfo){let wasAlreadyResolved=currentState.routeInfos[transition.resolveIndex].isResolved;// Swap the previously unresolved routeInfo with\n// the resolved routeInfo\ncurrentState.routeInfos[transition.resolveIndex++]=resolvedRouteInfo;if(!wasAlreadyResolved){// 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.\nlet{route}=resolvedRouteInfo;if(route!==undefined){if(route.redirect){route.redirect(resolvedRouteInfo.context,transition);}}}// Proceed after ensuring that the redirect hook\n// didn't abort this transition by transitioning elsewhere.\nthrowIfAborted(transition);return resolveOneRouteInfo(currentState,transition);}class TransitionState{constructor(){this.routeInfos=[];this.queryParams={};this.params={};}promiseLabel(label){let targetName='';forEach(this.routeInfos,function(routeInfo){if(targetName!==''){targetName+='.';}targetName+=routeInfo.name;return true;});return promiseLabel(\"'\"+targetName+\"': \"+label);}resolve(transition){// First, calculate params for this state. This is useful\n// information to provide to the various route hooks.\nlet params=this.params;forEach(this.routeInfos,routeInfo=>{params[routeInfo.name]=routeInfo.params||{};return true;});transition.resolveIndex=0;let callback=resolveOneRouteInfo.bind(null,this,transition);let errorHandler=handleError.bind(null,this,transition);// The prelude RSVP.resolve() async moves us into the promise land.\nreturn Promise$2.resolve(null,this.promiseLabel('Start transition')).then(callback,null,this.promiseLabel('Resolve route')).catch(errorHandler,this.promiseLabel('Handle error')).then(()=>this);}}class TransitionError{constructor(error,route,wasAborted,state){this.error=error;this.route=route;this.wasAborted=wasAborted;this.state=state;}}class NamedTransitionIntent extends TransitionIntent{constructor(router,name,pivotHandler){let contexts=arguments.length>3&&arguments[3]!==undefined?arguments[3]:[];let queryParams=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};let data=arguments.length>5?arguments[5]:undefined;super(router,data);this.preTransitionState=undefined;this.name=name;this.pivotHandler=pivotHandler;this.contexts=contexts;this.queryParams=queryParams;}applyToState(oldState,isIntermediate){let handlers=this.router.recognizer.handlersFor(this.name);let targetRouteName=handlers[handlers.length-1].handler;return this.applyToHandlers(oldState,handlers,targetRouteName,isIntermediate,false);}applyToHandlers(oldState,parsedHandlers,targetRouteName,isIntermediate,checkingIfActive){let i,len;let newState=new TransitionState();let objects=this.contexts.slice(0);let invalidateIndex=parsedHandlers.length;// Pivot handlers are provided for refresh transitions\nif(this.pivotHandler){for(i=0,len=parsedHandlers.length;i<len;++i){if(parsedHandlers[i].handler===this.pivotHandler._internalName){invalidateIndex=i;break;}}}for(i=parsedHandlers.length-1;i>=0;--i){let result=parsedHandlers[i];let name=result.handler;let oldHandlerInfo=oldState.routeInfos[i];let newHandlerInfo=null;if(result.names.length>0){if(i>=invalidateIndex){newHandlerInfo=this.createParamHandlerInfo(name,result.names,objects,oldHandlerInfo);}else{newHandlerInfo=this.getHandlerInfoForDynamicSegment(name,result.names,objects,oldHandlerInfo,targetRouteName,i);}}else{// 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.\nnewHandlerInfo=this.createParamHandlerInfo(name,result.names,objects,oldHandlerInfo);}if(checkingIfActive){// 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.\nnewHandlerInfo=newHandlerInfo.becomeResolved(null,// SAFETY: This seems to imply that it would be resolved, but it's unclear if that's actually the case.\nnewHandlerInfo.context);let oldContext=oldHandlerInfo&&oldHandlerInfo.context;if(result.names.length>0&&oldHandlerInfo.context!==undefined&&newHandlerInfo.context===oldContext){// 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\nnewHandlerInfo.params=oldHandlerInfo&&oldHandlerInfo.params;}newHandlerInfo.context=oldContext;}let handlerToUse=oldHandlerInfo;if(i>=invalidateIndex||newHandlerInfo.shouldSupersede(oldHandlerInfo)){invalidateIndex=Math.min(i,invalidateIndex);handlerToUse=newHandlerInfo;}if(isIntermediate&&!checkingIfActive){handlerToUse=handlerToUse.becomeResolved(null,// SAFETY: This seems to imply that it would be resolved, but it's unclear if that's actually the case.\nhandlerToUse.context);}newState.routeInfos.unshift(handlerToUse);}if(objects.length>0){throw new Error('More context objects were passed than there are dynamic segments for the route: '+targetRouteName);}if(!isIntermediate){this.invalidateChildren(newState.routeInfos,invalidateIndex);}merge(newState.queryParams,this.queryParams||{});if(isIntermediate&&oldState.queryParams){merge(newState.queryParams,oldState.queryParams);}return newState;}invalidateChildren(handlerInfos,invalidateIndex){for(let i=invalidateIndex,l=handlerInfos.length;i<l;++i){let handlerInfo=handlerInfos[i];if(handlerInfo.isResolved){let{name,params,route,paramNames}=handlerInfos[i];handlerInfos[i]=new UnresolvedRouteInfoByParam(this.router,name,paramNames,params,route);}}}getHandlerInfoForDynamicSegment(name,names,objects,oldHandlerInfo,_targetRouteName,i){let objectToUse;if(objects.length>0){// Use the objects provided for this transition.\nobjectToUse=objects[objects.length-1];if(isParam(objectToUse)){return this.createParamHandlerInfo(name,names,objects,oldHandlerInfo);}else{objects.pop();}}else if(oldHandlerInfo&&oldHandlerInfo.name===name){// Reuse the matching oldHandlerInfo\nreturn oldHandlerInfo;}else{if(this.preTransitionState){let preTransitionHandlerInfo=this.preTransitionState.routeInfos[i];objectToUse=preTransitionHandlerInfo===null||preTransitionHandlerInfo===void 0?void 0:preTransitionHandlerInfo.context;}else{// 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(', ') + \"]\");\nreturn oldHandlerInfo;}}return new UnresolvedRouteInfoByObject(this.router,name,names,objectToUse);}createParamHandlerInfo(name,names,objects,oldHandlerInfo){let params={};// Soak up all the provided string/numbers\nlet numNames=names.length;let missingParams=[];while(numNames--){// Only use old params if the names match with the new handler\nlet oldParams=oldHandlerInfo&&name===oldHandlerInfo.name&&oldHandlerInfo.params||{};let peek=objects[objects.length-1];let paramName=names[numNames];if(isParam(peek)){params[paramName]=''+objects.pop();}else{// 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.\nif(oldParams.hasOwnProperty(paramName)){params[paramName]=oldParams[paramName];}else{missingParams.push(paramName);}}}if(missingParams.length>0){throw new Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${name}.`+` Missing params: ${missingParams}`);}return new UnresolvedRouteInfoByParam(this.router,name,names,params);}}const UnrecognizedURLError=function(){UnrecognizedURLError.prototype=Object.create(Error.prototype);UnrecognizedURLError.prototype.constructor=UnrecognizedURLError;function UnrecognizedURLError(message){let error=Error.call(this,message);this.name='UnrecognizedURLError';this.message=message||'UnrecognizedURL';if(Error.captureStackTrace){Error.captureStackTrace(this,UnrecognizedURLError);}else{this.stack=error.stack;}}return UnrecognizedURLError;}();class URLTransitionIntent extends TransitionIntent{constructor(router,url,data){super(router,data);this.url=url;this.preTransitionState=undefined;}applyToState(oldState){let newState=new TransitionState();let results=this.router.recognizer.recognize(this.url),i,len;if(!results){throw new UnrecognizedURLError(this.url);}let statesDiffer=false;let _url=this.url;// 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.\nfunction checkHandlerAccessibility(handler){if(handler&&handler.inaccessibleByURL){throw new UnrecognizedURLError(_url);}return handler;}for(i=0,len=results.length;i<len;++i){let result=results[i];let name=result.handler;let paramNames=[];if(this.router.recognizer.hasRoute(name)){paramNames=this.router.recognizer.handlersFor(name)[i].names;}let newRouteInfo=new UnresolvedRouteInfoByParam(this.router,name,paramNames,result.params);let route=newRouteInfo.route;if(route){checkHandlerAccessibility(route);}else{// If the handler is being loaded asynchronously, check if we can\n// access it after it has resolved\nnewRouteInfo.routePromise=newRouteInfo.routePromise.then(checkHandlerAccessibility);}let oldRouteInfo=oldState.routeInfos[i];if(statesDiffer||newRouteInfo.shouldSupersede(oldRouteInfo)){statesDiffer=true;newState.routeInfos[i]=newRouteInfo;}else{newState.routeInfos[i]=oldRouteInfo;}}merge(newState.queryParams,results.queryParams);return newState;}}class Router{constructor(logger){this._lastQueryParams={};this.state=undefined;this.oldState=undefined;this.activeTransition=undefined;this.currentRouteInfos=undefined;this._changedQueryParams=undefined;this.currentSequence=0;this.log=logger;this.recognizer=new RouteRecognizer();this.reset();}/**\n              The main entry point into the router. The API is essentially\n              the same as the `map` method in `route-recognizer`.\n                 This method extracts the String handler at the last `.to()`\n              call and uses it as the name of the whole route.\n                 @param {Function} callback\n            */map(callback){this.recognizer.map(callback,function(recognizer,routes){for(let i=routes.length-1,proceed=true;i>=0&&proceed;--i){let route=routes[i];let handler=route.handler;recognizer.add(routes,{as:handler});proceed=route.path==='/'||route.path===''||handler.slice(-6)==='.index';}});}hasRoute(route){return this.recognizer.hasRoute(route);}queryParamsTransition(changelist,wasTransitioning,oldState,newState){this.fireQueryParamDidChange(newState,changelist);if(!wasTransitioning&&this.activeTransition){// One of the routes in queryParamsDidChange\n// caused a transition. Just return that transition.\nreturn this.activeTransition;}else{// 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).\nlet newTransition=new Transition(this,undefined,undefined);newTransition.queryParamsOnly=true;oldState.queryParams=this.finalizeQueryParamChange(newState.routeInfos,newState.queryParams,newTransition);newTransition[QUERY_PARAMS_SYMBOL]=newState.queryParams;this.toReadOnlyInfos(newTransition,newState);this.routeWillChange(newTransition);newTransition.promise=newTransition.promise.then(result=>{if(!newTransition.isAborted){this._updateURL(newTransition,oldState);this.didTransition(this.currentRouteInfos);this.toInfos(newTransition,newState.routeInfos,true);this.routeDidChange(newTransition);}return result;},null,promiseLabel('Transition complete'));return newTransition;}}transitionByIntent(intent,isIntermediate){try{return this.getTransitionByIntent(intent,isIntermediate);}catch(e){return new Transition(this,intent,undefined,e,undefined);}}recognize(url){let intent=new URLTransitionIntent(this,url);let newState=this.generateNewState(intent);if(newState===null){return newState;}let readonlyInfos=toReadOnlyRouteInfo(newState.routeInfos,newState.queryParams,{includeAttributes:false,localizeMapUpdates:true});return readonlyInfos[readonlyInfos.length-1];}recognizeAndLoad(url){let intent=new URLTransitionIntent(this,url);let newState=this.generateNewState(intent);if(newState===null){return Promise$2.reject(`URL ${url} was not recognized`);}let newTransition=new Transition(this,intent,newState,undefined);return newTransition.then(()=>{let routeInfosWithAttributes=toReadOnlyRouteInfo(newState.routeInfos,newTransition[QUERY_PARAMS_SYMBOL],{includeAttributes:true,localizeMapUpdates:false});return routeInfosWithAttributes[routeInfosWithAttributes.length-1];});}generateNewState(intent){try{return intent.applyToState(this.state,false);}catch(e){return null;}}getTransitionByIntent(intent,isIntermediate){let wasTransitioning=!!this.activeTransition;let oldState=wasTransitioning?this.activeTransition[STATE_SYMBOL]:this.state;let newTransition;let newState=intent.applyToState(oldState,isIntermediate);let queryParamChangelist=getChangelist(oldState.queryParams,newState.queryParams);if(routeInfosEqual(newState.routeInfos,oldState.routeInfos)){// This is a no-op transition. See if query params changed.\nif(queryParamChangelist){let newTransition=this.queryParamsTransition(queryParamChangelist,wasTransitioning,oldState,newState);newTransition.queryParamsOnly=true;// SAFETY: The returned OpaqueTransition should actually be this.\nreturn newTransition;}// No-op. No need to create a new transition.\nreturn this.activeTransition||new Transition(this,undefined,undefined);}if(isIntermediate){let transition=new Transition(this,undefined,newState);transition.isIntermediate=true;this.toReadOnlyInfos(transition,newState);this.setupContexts(newState,transition);this.routeWillChange(transition);return this.activeTransition;}// Create a new transition to the destination route.\nnewTransition=new Transition(this,intent,newState,undefined,this.activeTransition);// transition is to same route with same params, only query params differ.\n// not caught above probably because refresh() has been used\nif(routeInfosSameExceptQueryParams(newState.routeInfos,oldState.routeInfos)){newTransition.queryParamsOnly=true;}this.toReadOnlyInfos(newTransition,newState);// Abort and usurp any previously active transition.\nif(this.activeTransition){this.activeTransition.redirect(newTransition);}this.activeTransition=newTransition;// 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.\nnewTransition.promise=newTransition.promise.then(result=>{return this.finalizeTransition(newTransition,result);},null,promiseLabel('Settle transition promise when transition is finalized'));if(!wasTransitioning){this.notifyExistingHandlers(newState,newTransition);}this.fireQueryParamDidChange(newState,queryParamChangelist);return newTransition;}/**\n            @private\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               @param {Router} router\n            @param {Array[Object]} args arguments passed to transitionTo,\n              replaceWith, or handleURL\n            */doTransition(name){let modelsArray=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];let isIntermediate=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;let lastArg=modelsArray[modelsArray.length-1];let queryParams={};if(lastArg&&Object.prototype.hasOwnProperty.call(lastArg,'queryParams')){// We just checked this.\n// TODO: Use an assertion?\nqueryParams=modelsArray.pop().queryParams;}let intent;if(name===undefined){log(this,'Updating query params');// A query param update is really just a transition\n// into the route you're already on.\nlet{routeInfos}=this.state;intent=new NamedTransitionIntent(this,routeInfos[routeInfos.length-1].name,undefined,[],queryParams);}else if(name.charAt(0)==='/'){log(this,'Attempting URL transition to '+name);intent=new URLTransitionIntent(this,name);}else{log(this,'Attempting transition to '+name);intent=new NamedTransitionIntent(this,name,undefined,// SAFETY: We know this to be the case since we removed the last item if it was QPs\nmodelsArray,queryParams);}return this.transitionByIntent(intent,isIntermediate);}/**\n            @private\n               Updates the URL (if necessary) and calls `setupContexts`\n            to update the router's array of `currentRouteInfos`.\n            */finalizeTransition(transition,newState){try{log(transition.router,transition.sequence,'Resolved all models on destination route; finalizing transition.');let routeInfos=newState.routeInfos;// Run all the necessary enter/setup/exit hooks\nthis.setupContexts(newState,transition);// Check if a redirect occurred in enter/setup\nif(transition.isAborted){// TODO: cleaner way? distinguish b/w targetRouteInfos?\nthis.state.routeInfos=this.currentRouteInfos;return Promise$2.reject(logAbort(transition));}this._updateURL(transition,newState);transition.isActive=false;this.activeTransition=undefined;this.triggerEvent(this.currentRouteInfos,true,'didTransition',[]);this.didTransition(this.currentRouteInfos);this.toInfos(transition,newState.routeInfos,true);this.routeDidChange(transition);log(this,transition.sequence,'TRANSITION COMPLETE.');// Resolve with the final route.\nreturn routeInfos[routeInfos.length-1].route;}catch(e){if(!isTransitionAborted(e)){let infos=transition[STATE_SYMBOL].routeInfos;transition.trigger(true,'error',e,transition,infos[infos.length-1].route);transition.abort();}throw e;}}/**\n            @private\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               For example, consider the following tree of routes. Each route is\n            followed by the URL segment it handles.\n               ```\n            |~index (\"/\")\n            | |~posts (\"/posts\")\n            | | |-showPost (\"/:id\")\n            | | |-newPost (\"/new\")\n            | | |-editPost (\"/edit\")\n            | |~about (\"/about/:id\")\n            ```\n               Consider the following transitions:\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               @param {Router} transition\n            @param {TransitionState} newState\n            */setupContexts(newState,transition){let partition=this.partitionRoutes(this.state,newState);let i,l,route;for(i=0,l=partition.exited.length;i<l;i++){route=partition.exited[i].route;delete route.context;if(route!==undefined){if(route._internalReset!==undefined){route._internalReset(true,transition);}if(route.exit!==undefined){route.exit(transition);}}}let oldState=this.oldState=this.state;this.state=newState;let currentRouteInfos=this.currentRouteInfos=partition.unchanged.slice();try{for(i=0,l=partition.reset.length;i<l;i++){route=partition.reset[i].route;if(route!==undefined){if(route._internalReset!==undefined){route._internalReset(false,transition);}}}for(i=0,l=partition.updatedContext.length;i<l;i++){this.routeEnteredOrUpdated(currentRouteInfos,partition.updatedContext[i],false,transition);}for(i=0,l=partition.entered.length;i<l;i++){this.routeEnteredOrUpdated(currentRouteInfos,partition.entered[i],true,transition);}}catch(e){this.state=oldState;this.currentRouteInfos=oldState.routeInfos;throw e;}this.state.queryParams=this.finalizeQueryParamChange(currentRouteInfos,newState.queryParams,transition);}/**\n            @private\n               Fires queryParamsDidChange event\n            */fireQueryParamDidChange(newState,queryParamChangelist){// If queryParams changed trigger event\nif(queryParamChangelist){// 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.\nthis._changedQueryParams=queryParamChangelist.all;this.triggerEvent(newState.routeInfos,true,'queryParamsDidChange',[queryParamChangelist.changed,queryParamChangelist.all,queryParamChangelist.removed]);this._changedQueryParams=undefined;}}/**\n            @private\n               Helper method used by setupContexts. Handles errors or redirects\n            that may happen in enter/setup.\n            */routeEnteredOrUpdated(currentRouteInfos,routeInfo,enter,transition){let route=routeInfo.route,context=routeInfo.context;function _routeEnteredOrUpdated(route){if(enter){if(route.enter!==undefined){route.enter(transition);}}throwIfAborted(transition);route.context=context;if(route.contextDidChange!==undefined){route.contextDidChange();}if(route.setup!==undefined){route.setup(context,transition);}throwIfAborted(transition);currentRouteInfos.push(routeInfo);return route;}// If the route doesn't exist, it means we haven't resolved the route promise yet\nif(route===undefined){routeInfo.routePromise=routeInfo.routePromise.then(_routeEnteredOrUpdated);}else{_routeEnteredOrUpdated(route);}return true;}/**\n            @private\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               Take a list of old routes and new routes and partition\n            them into four buckets:\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               The PartitionedRoutes structure has four fields:\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               @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               @return {Partition}\n            */partitionRoutes(oldState,newState){let oldRouteInfos=oldState.routeInfos;let newRouteInfos=newState.routeInfos;let routes={updatedContext:[],exited:[],entered:[],unchanged:[],reset:[]};let routeChanged,contextChanged=false,i,l;for(i=0,l=newRouteInfos.length;i<l;i++){let oldRouteInfo=oldRouteInfos[i],newRouteInfo=newRouteInfos[i];if(!oldRouteInfo||oldRouteInfo.route!==newRouteInfo.route){routeChanged=true;}if(routeChanged){routes.entered.push(newRouteInfo);if(oldRouteInfo){routes.exited.unshift(oldRouteInfo);}}else if(contextChanged||oldRouteInfo.context!==newRouteInfo.context){contextChanged=true;routes.updatedContext.push(newRouteInfo);}else{routes.unchanged.push(oldRouteInfo);}}for(i=newRouteInfos.length,l=oldRouteInfos.length;i<l;i++){routes.exited.unshift(oldRouteInfos[i]);}routes.reset=routes.updatedContext.slice();routes.reset.reverse();return routes;}_updateURL(transition,state){let urlMethod=transition.urlMethod;if(!urlMethod){return;}let{routeInfos}=state;let{name:routeName}=routeInfos[routeInfos.length-1];let params={};for(let i=routeInfos.length-1;i>=0;--i){let routeInfo=routeInfos[i];merge(params,routeInfo.params);if(routeInfo.route.inaccessibleByURL){urlMethod=null;}}if(urlMethod){params.queryParams=transition._visibleQueryParams||state.queryParams;let url=this.recognizer.generate(routeName,params);// 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\nlet initial=transition.isCausedByInitialTransition;// 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\nlet replaceAndNotAborting=urlMethod==='replace'&&!transition.isCausedByAbortingTransition;// 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.\nlet isQueryParamsRefreshTransition=transition.queryParamsOnly&&urlMethod==='replace';// 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.\nlet replacingReplace=urlMethod==='replace'&&transition.isCausedByAbortingReplaceTransition;if(initial||replaceAndNotAborting||isQueryParamsRefreshTransition||replacingReplace){this.replaceURL(url);}else{this.updateURL(url);}}}finalizeQueryParamChange(resolvedHandlers,newQueryParams,transition){// 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.\nfor(let k in newQueryParams){if(newQueryParams.hasOwnProperty(k)&&newQueryParams[k]===null){delete newQueryParams[k];}}let finalQueryParamsArray=[];this.triggerEvent(resolvedHandlers,true,'finalizeQueryParamChange',[newQueryParams,finalQueryParamsArray,transition]);if(transition){transition._visibleQueryParams={};}let finalQueryParams={};for(let i=0,len=finalQueryParamsArray.length;i<len;++i){let qp=finalQueryParamsArray[i];finalQueryParams[qp.key]=qp.value;if(transition&&qp.visible!==false){transition._visibleQueryParams[qp.key]=qp.value;}}return finalQueryParams;}toReadOnlyInfos(newTransition,newState){let oldRouteInfos=this.state.routeInfos;this.fromInfos(newTransition,oldRouteInfos);this.toInfos(newTransition,newState.routeInfos);this._lastQueryParams=newState.queryParams;}fromInfos(newTransition,oldRouteInfos){if(newTransition!==undefined&&oldRouteInfos.length>0){let fromInfos=toReadOnlyRouteInfo(oldRouteInfos,Object.assign({},this._lastQueryParams),{includeAttributes:true,localizeMapUpdates:false});newTransition.from=fromInfos[fromInfos.length-1]||null;}}toInfos(newTransition,newRouteInfos){let includeAttributes=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(newTransition!==undefined&&newRouteInfos.length>0){let toInfos=toReadOnlyRouteInfo(newRouteInfos,Object.assign({},newTransition[QUERY_PARAMS_SYMBOL]),{includeAttributes,localizeMapUpdates:false});newTransition.to=toInfos[toInfos.length-1]||null;}}notifyExistingHandlers(newState,newTransition){let oldRouteInfos=this.state.routeInfos,i,oldRouteInfoLen,oldHandler,newRouteInfo;oldRouteInfoLen=oldRouteInfos.length;for(i=0;i<oldRouteInfoLen;i++){oldHandler=oldRouteInfos[i];newRouteInfo=newState.routeInfos[i];if(!newRouteInfo||oldHandler.name!==newRouteInfo.name){break;}if(!newRouteInfo.isResolved);}this.triggerEvent(oldRouteInfos,true,'willTransition',[newTransition]);this.routeWillChange(newTransition);this.willTransition(oldRouteInfos,newState.routeInfos,newTransition);}/**\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            */reset(){if(this.state){forEach(this.state.routeInfos.slice().reverse(),function(routeInfo){let route=routeInfo.route;if(route!==undefined){if(route.exit!==undefined){route.exit();}}return true;});}this.oldState=undefined;this.state=new TransitionState();this.currentRouteInfos=undefined;}/**\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                 Returns an Array of handlers and the parameters associated\n              with those parameters.\n                 @param {String} url a URL to process\n                 @return {Array} an Array of `[handler, parameter]` tuples\n            */handleURL(url){// Perform a URL-based transition, but don't change\n// the URL afterward, since it already happened.\nif(url.charAt(0)!=='/'){url='/'+url;}return this.doTransition(url).method(null);}/**\n              Transition into the specified named route.\n                 If necessary, trigger the exit callback on any routes\n              that are no longer represented by the target route.\n                 @param {String} name the name of the route\n            */transitionTo(name){for(var _len49=arguments.length,contexts=new Array(_len49>1?_len49-1:0),_key50=1;_key50<_len49;_key50++){contexts[_key50-1]=arguments[_key50];}if(typeof name==='object'){contexts.push(name);return this.doTransition(undefined,contexts,false);}return this.doTransition(name,contexts);}intermediateTransitionTo(name){for(var _len50=arguments.length,args=new Array(_len50>1?_len50-1:0),_key51=1;_key51<_len50;_key51++){args[_key51-1]=arguments[_key51];}return this.doTransition(name,args,true);}refresh(pivotRoute){let previousTransition=this.activeTransition;let state=previousTransition?previousTransition[STATE_SYMBOL]:this.state;let routeInfos=state.routeInfos;if(pivotRoute===undefined){pivotRoute=routeInfos[0].route;}log(this,'Starting a refresh transition');let name=routeInfos[routeInfos.length-1].name;let intent=new NamedTransitionIntent(this,name,pivotRoute,[],this._changedQueryParams||state.queryParams);let newTransition=this.transitionByIntent(intent,false);// if the previous transition is a replace transition, that needs to be preserved\nif(previousTransition&&previousTransition.urlMethod==='replace'){newTransition.method(previousTransition.urlMethod);}return newTransition;}/**\n              Identical to `transitionTo` except that the current URL will be replaced\n              if possible.\n                 This method is intended primarily for use with `replaceState`.\n                 @param {String} name the name of the route\n            */replaceWith(name){return this.doTransition(name).method('replace');}/**\n              Take a named route and context objects and generate a\n              URL.\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                 @return {String} a URL\n            */generate(routeName){for(var _len51=arguments.length,args=new Array(_len51>1?_len51-1:0),_key52=1;_key52<_len51;_key52++){args[_key52-1]=arguments[_key52];}let partitionedArgs=extractQueryParams(args),suppliedParams=partitionedArgs[0],queryParams=partitionedArgs[1];// Construct a TransitionIntent with the provided params\n// and apply it to the present state of the router.\nlet intent=new NamedTransitionIntent(this,routeName,undefined,suppliedParams);let state=intent.applyToState(this.state,false);let params={};for(let i=0,len=state.routeInfos.length;i<len;++i){let routeInfo=state.routeInfos[i];let routeParams=routeInfo.serialize();merge(params,routeParams);}params.queryParams=queryParams;return this.recognizer.generate(routeName,params);}applyIntent(routeName,contexts){let intent=new NamedTransitionIntent(this,routeName,undefined,contexts);let state=this.activeTransition&&this.activeTransition[STATE_SYMBOL]||this.state;return intent.applyToState(state,false);}isActiveIntent(routeName,contexts,queryParams,_state){let state=_state||this.state,targetRouteInfos=state.routeInfos,routeInfo,len;if(!targetRouteInfos.length){return false;}let targetHandler=targetRouteInfos[targetRouteInfos.length-1].name;let recognizerHandlers=this.recognizer.handlersFor(targetHandler);let index=0;for(len=recognizerHandlers.length;index<len;++index){routeInfo=targetRouteInfos[index];if(routeInfo.name===routeName){break;}}if(index===recognizerHandlers.length){// The provided route name isn't even in the route hierarchy.\nreturn false;}let testState=new TransitionState();testState.routeInfos=targetRouteInfos.slice(0,index+1);recognizerHandlers=recognizerHandlers.slice(0,index+1);let intent=new NamedTransitionIntent(this,targetHandler,undefined,contexts);let newState=intent.applyToHandlers(testState,recognizerHandlers,targetHandler,true,true);let routesEqual=routeInfosEqual(newState.routeInfos,testState.routeInfos);if(!queryParams||!routesEqual){return routesEqual;}// Get a hash of QPs that will still be active on new route\nlet activeQPsOnNewHandler={};merge(activeQPsOnNewHandler,queryParams);let activeQueryParams=state.queryParams;for(let key in activeQueryParams){if(activeQueryParams.hasOwnProperty(key)&&activeQPsOnNewHandler.hasOwnProperty(key)){activeQPsOnNewHandler[key]=activeQueryParams[key];}}return routesEqual&&!getChangelist(activeQPsOnNewHandler,queryParams);}isActive(routeName){for(var _len52=arguments.length,args=new Array(_len52>1?_len52-1:0),_key53=1;_key53<_len52;_key53++){args[_key53-1]=arguments[_key53];}let[contexts,queryParams]=extractQueryParams(args);return this.isActiveIntent(routeName,contexts,queryParams);}trigger(name){for(var _len53=arguments.length,args=new Array(_len53>1?_len53-1:0),_key54=1;_key54<_len53;_key54++){args[_key54-1]=arguments[_key54];}this.triggerEvent(this.currentRouteInfos,false,name,args);}}function routeInfosEqual(routeInfos,otherRouteInfos){if(routeInfos.length!==otherRouteInfos.length){return false;}for(let i=0,len=routeInfos.length;i<len;++i){// SAFETY: Just casting for comparison\nif(routeInfos[i]!==otherRouteInfos[i]){return false;}}return true;}function routeInfosSameExceptQueryParams(routeInfos,otherRouteInfos){if(routeInfos.length!==otherRouteInfos.length){return false;}for(let i=0,len=routeInfos.length;i<len;++i){if(routeInfos[i].name!==otherRouteInfos[i].name){return false;}if(!paramsEqual(routeInfos[i].params,otherRouteInfos[i].params)){return false;}}return true;}function paramsEqual(params,otherParams){if(params===otherParams){// Both identical or both undefined\nreturn true;}if(!params||!otherParams){// One is falsy but other is not\nreturn false;}let keys=Object.keys(params);let otherKeys=Object.keys(otherParams);if(keys.length!==otherKeys.length){return false;}for(let i=0,len=keys.length;i<len;++i){let key=keys[i];if(params[key]!==otherParams[key]){return false;}}return true;}const routerJs=/*#__PURE__*/Object.defineProperty({__proto__:null,InternalRouteInfo,InternalTransition:Transition,PARAMS_SYMBOL,QUERY_PARAMS_SYMBOL,STATE_SYMBOL,TransitionError,TransitionState,default:Router,logAbort},Symbol.toStringTag,{value:'Module'});const ALL_PERIODS_REGEX=/\\./g;function extractRouteArgs(args){// SAFETY: This should just be the same thing\nargs=args.slice();let possibleOptions=args[args.length-1];let queryParams;if(isRouteOptions(possibleOptions)){args.pop();// Remove options\nqueryParams=possibleOptions.queryParams;}else{queryParams={};}let routeName;if(typeof args[0]==='string'){routeName=args.shift();// We just checked this!\n!(typeof routeName==='string')&&assert$1('routeName is a string',typeof routeName==='string');}// SAFTEY: We removed the name and options if they existed, only models left.\nlet models=args;return{routeName,models,queryParams};}function getActiveTargetName(router){let routeInfos=router.activeTransition?router.activeTransition[STATE_SYMBOL].routeInfos:router.state.routeInfos;let lastRouteInfo=routeInfos[routeInfos.length-1];!lastRouteInfo&&assert$1('has last route info',lastRouteInfo);return lastRouteInfo.name;}function stashParamNames(router,routeInfos){if(routeInfos['_namesStashed']){return;}// 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.\nlet routeInfo=routeInfos[routeInfos.length-1];!routeInfo&&assert$1('has route info',routeInfo);let targetRouteName=routeInfo.name;let recogHandlers=router._routerMicrolib.recognizer.handlersFor(targetRouteName);let dynamicParent;for(let i=0;i<routeInfos.length;++i){let routeInfo=routeInfos[i];!routeInfo&&assert$1('has route info',routeInfo);let names=recogHandlers[i].names;if(names.length){dynamicParent=routeInfo;}routeInfo['_names']=names;let route=routeInfo.route;route._stashNames(routeInfo,dynamicParent);}routeInfos['_namesStashed']=true;}function _calculateCacheValuePrefix(prefix,part){// 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)\nlet prefixParts=prefix.split('.');let currPrefix='';for(let i=0;i<prefixParts.length;i++){let currPart=prefixParts.slice(0,i+1).join('.');if(part.indexOf(currPart)!==0){break;}currPrefix=currPart;}return currPrefix;}/*\n            Stolen from Controller\n          */function calculateCacheKey(prefix){let parts=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];let values=arguments.length>2?arguments[2]:undefined;let suffixes='';for(let part of parts){let cacheValuePrefix=_calculateCacheValuePrefix(prefix,part);let value;if(values){if(cacheValuePrefix&&cacheValuePrefix in values){let partRemovedPrefix=part.indexOf(cacheValuePrefix)===0?part.substring(cacheValuePrefix.length+1):part;value=get$2(values[cacheValuePrefix],partRemovedPrefix);}else{value=get$2(values,part);}}suffixes+=`::${part}:${value}`;}return prefix+suffixes.replace(ALL_PERIODS_REGEX,'-');}/*\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          */function normalizeControllerQueryParams(queryParams){let qpMap={};for(let queryParam of queryParams){accumulateQueryParamDescriptors(queryParam,qpMap);}return qpMap;}function accumulateQueryParamDescriptors(_desc,accum){let desc=typeof _desc==='string'?{[_desc]:{as:null}}:_desc;for(let key in desc){if(!Object.prototype.hasOwnProperty.call(desc,key)){return;}let _singleDesc=desc[key];let singleDesc=typeof _singleDesc==='string'?{as:_singleDesc}:_singleDesc;let partialVal=accum[key]||{as:null,scope:'model'};let val={...partialVal,...singleDesc};accum[key]=val;}}/*\n            Check if a routeName resembles a url instead\n\n            @private\n          */function resemblesURL(str){return typeof str==='string'&&(str===''||str[0]==='/');}/*\n            Returns an arguments array where the route name arg is prefixed based on the mount point\n\n            @private\n          */function prefixRouteNameArg(route,args){let routeName;let owner=getOwner$2(route);!(owner instanceof EngineInstance)&&assert$1('Expected route to have EngineInstance as owner',owner instanceof EngineInstance);let prefix=owner.mountPoint;// only alter the routeName if it's actually referencing a route.\nif(owner.routable&&typeof args[0]==='string'){routeName=args[0];if(resemblesURL(routeName)){throw new Error('Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.');}else{routeName=`${prefix}.${routeName}`;args[0]=routeName;}}return args;}function shallowEqual(a,b){let aCount=0;let bCount=0;for(let kA in a){if(Object.prototype.hasOwnProperty.call(a,kA)){if(a[kA]!==b[kA]){return false;}aCount++;}}for(let kB in b){if(Object.prototype.hasOwnProperty.call(b,kB)){bCount++;}}return aCount===bCount;}function isRouteOptions(value){if(value&&typeof value==='object'){let qps=value.queryParams;if(qps&&typeof qps==='object'){return Object.keys(qps).every(k=>typeof k==='string');}}return false;}const emberRoutingLibUtils=/*#__PURE__*/Object.defineProperty({__proto__:null,calculateCacheKey,extractRouteArgs,getActiveTargetName,normalizeControllerQueryParams,prefixRouteNameArg,resemblesURL,shallowEqual,stashParamNames},Symbol.toStringTag,{value:'Module'});class RouterState{constructor(emberRouter,router,routerJsState){_defineProperty(this,\"router\",void 0);_defineProperty(this,\"emberRouter\",void 0);_defineProperty(this,\"routerJsState\",void 0);this.emberRouter=emberRouter;this.router=router;this.routerJsState=routerJsState;}isActiveIntent(routeName,models,queryParams){let state=this.routerJsState;if(!this.router.isActiveIntent(routeName,models,undefined,state)){return false;}if(queryParams!==undefined&&Object.keys(queryParams).length>0){let visibleQueryParams=Object.assign({},queryParams);this.emberRouter._prepareQueryParams(routeName,models,visibleQueryParams);return shallowEqual(visibleQueryParams,state.queryParams);}return true;}}const emberRoutingLibRouterState=/*#__PURE__*/Object.defineProperty({__proto__:null,default:RouterState},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/object\n          */function expandPropertiesToArray(predicateName,properties){let expandedProperties=[];function extractProperty(entry){expandedProperties.push(entry);}for(let property of properties){!(property.indexOf(' ')<0)&&assert$1(`Dependent keys passed to \\`${predicateName}\\` computed macro can't have spaces.`,property.indexOf(' ')<0);expandProperties(property,extractProperty);}return expandedProperties;}function generateComputedWithPredicate(name,predicate){return function(dependentKey){for(var _len54=arguments.length,additionalDependentKeys=new Array(_len54>1?_len54-1:0),_key55=1;_key55<_len54;_key55++){additionalDependentKeys[_key55-1]=arguments[_key55];}let properties=[dependentKey,...additionalDependentKeys];!!isElementDescriptor(properties)&&assert$1(`You attempted to use @${name} as a decorator directly, but it requires at least one dependent key parameter`,!isElementDescriptor(properties));let dependentKeys=expandPropertiesToArray(name,properties);let computedFunc=computed(...dependentKeys,function(){let lastIdx=dependentKeys.length-1;for(let i=0;i<lastIdx;i++){// SAFETY: `i` is derived from the length of `dependentKeys`\nlet value=get$2(this,dependentKeys[i]);if(!predicate(value)){return value;}}// SAFETY: `lastIdx` is derived from the length of `dependentKeys`\nreturn get$2(this,dependentKeys[lastIdx]);});return computedFunc;};}/**\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            @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          */function empty(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @empty as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(`${dependentKey}.length`,function(){return isEmpty(get$2(this,dependentKey));});}/**\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            @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          */function notEmpty(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @notEmpty as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(`${dependentKey}.length`,function(){return!isEmpty(get$2(this,dependentKey));});}/**\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            @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          */function none(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @none as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,function(){return isNone(get$2(this,dependentKey));});}/**\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            @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          */function not(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @not as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,function(){return!get$2(this,dependentKey);});}/**\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            @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          */function bool(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @bool as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,function(){return Boolean(get$2(this,dependentKey));});}/**\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            @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          */function match(dependentKey,regexp){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @match as a decorator directly, but it requires `dependentKey` and `regexp` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,function(){let value=get$2(this,dependentKey);return regexp.test(value);});}/**\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            @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          */function equal(dependentKey,value){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @equal as a decorator directly, but it requires `dependentKey` and `value` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,function(){return get$2(this,dependentKey)===value;});}/**\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            @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          */function gt(dependentKey,value){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @gt as a decorator directly, but it requires `dependentKey` and `value` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,function(){return get$2(this,dependentKey)>value;});}/**\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            @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          */function gte(dependentKey,value){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @gte as a decorator directly, but it requires `dependentKey` and `value` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,function(){return get$2(this,dependentKey)>=value;});}/**\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            @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          */function lt(dependentKey,value){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @lt as a decorator directly, but it requires `dependentKey` and `value` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,function(){return get$2(this,dependentKey)<value;});}/**\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            @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          */function lte(dependentKey,value){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @lte as a decorator directly, but it requires `dependentKey` and `value` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,function(){return get$2(this,dependentKey)<=value;});}/**\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            @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          */const and=generateComputedWithPredicate('and',value=>value);/**\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            @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          */const or=generateComputedWithPredicate('or',value=>!value);/**\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            @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            Where the `alias` computed macro aliases `get` and `set`, and allows for\n            bidirectional data flow, the `oneWay` computed macro only provides an aliased\n            `get`. The `set` will not mutate the upstream property, rather causes the\n            current property to become the value set. This causes the downstream property\n            to permanently diverge from 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            @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          */function oneWay(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @oneWay as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return alias(dependentKey).oneWay();}/**\n            This is a more semantically meaningful alias of the `oneWay` computed macro,\n            whose name 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            Where `oneWay` computed macro provides oneWay bindings, the `readOnly`\n            computed macro provides a readOnly one way binding. Very often when using\n            the `oneWay` macro one does not also want changes to propagate back up, as\n            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            @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          */function readOnly(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @readOnly as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return alias(dependentKey).readOnly();}/**\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            @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          */function deprecatingAlias(dependentKey,options){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @deprecatingAlias as a decorator directly, but it requires `dependentKey` and `options` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));return computed(dependentKey,{get(key){deprecate$1(`Usage of \\`${key}\\` is deprecated, use \\`${dependentKey}\\` instead.`,false,options);return get$2(this,dependentKey);},set(key,value){deprecate$1(`Usage of \\`${key}\\` is deprecated, use \\`${dependentKey}\\` instead.`,false,options);set(this,dependentKey,value);return value;}});}const emberObjectLibComputedComputedMacros=/*#__PURE__*/Object.defineProperty({__proto__:null,and,bool,deprecatingAlias,empty,equal,gt,gte,lt,lte,match,none,not,notEmpty,oneWay,or,readOnly},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/object\n          */function isNativeOrEmberArray(obj){return Array.isArray(obj)||EmberArray.detect(obj);}function reduceMacro(dependentKey,callback,initialValue,name){!!/[[\\]{}]/g.test(dependentKey)&&assert$1(`Dependent key passed to \\`${name}\\` computed macro shouldn't contain brace expanding pattern.`,!/[[\\]{}]/g.test(dependentKey));return computed(`${dependentKey}.[]`,function(){let arr=get$2(this,dependentKey);if(arr===null||typeof arr!=='object'){return initialValue;}return arr.reduce(callback,initialValue,this);}).readOnly();}function arrayMacro(dependentKey,additionalDependentKeys,callback){// This is a bit ugly\nlet propertyName;if(/@each/.test(dependentKey)){propertyName=dependentKey.replace(/\\.@each.*$/,'');}else{propertyName=dependentKey;dependentKey+='.[]';}return computed(dependentKey,...additionalDependentKeys,function(){let value=get$2(this,propertyName);if(isNativeOrEmberArray(value)){return A(callback.call(this,value));}else{return A();}}).readOnly();}function multiArrayMacro(_dependentKeys,callback,name){!_dependentKeys.every(dependentKey=>!/[[\\]{}]/g.test(dependentKey))&&assert$1(`Dependent keys passed to \\`${name}\\` computed macro shouldn't contain brace expanding pattern.`,_dependentKeys.every(dependentKey=>!/[[\\]{}]/g.test(dependentKey)));let dependentKeys=_dependentKeys.map(key=>`${key}.[]`);return computed(...dependentKeys,function(){return A(callback.call(this,_dependentKeys));}).readOnly();}/**\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            @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          */function sum(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @sum as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return reduceMacro(dependentKey,(sum,item)=>sum+item,0,'sum');}/**\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            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          */function max(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @max as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return reduceMacro(dependentKey,(max,item)=>Math.max(max,item),-Infinity,'max');}/**\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            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          */function min(dependentKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @min as a decorator directly, but it requires a `dependentKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));return reduceMacro(dependentKey,(min,item)=>Math.min(min,item),Infinity,'min');}/**\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            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          */function map(dependentKey,additionalDependentKeysOrCallback,callback){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @map as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));!(typeof callback==='function'||callback===undefined&&typeof additionalDependentKeysOrCallback==='function')&&assert$1('The final parameter provided to map must be a callback function',typeof callback==='function'||callback===undefined&&typeof additionalDependentKeysOrCallback==='function');!(Array.isArray(additionalDependentKeysOrCallback)||typeof additionalDependentKeysOrCallback==='function')&&assert$1('The second parameter provided to map must either be the callback or an array of additional dependent keys',Array.isArray(additionalDependentKeysOrCallback)||typeof additionalDependentKeysOrCallback==='function');let additionalDependentKeys;if(typeof additionalDependentKeysOrCallback==='function'){callback=additionalDependentKeysOrCallback;additionalDependentKeys=[];}else{additionalDependentKeys=additionalDependentKeysOrCallback;}const cCallback=callback;!cCallback&&assert$1('[BUG] Missing callback',cCallback);return arrayMacro(dependentKey,additionalDependentKeys,function(value){// This is so dumb...\nreturn Array.isArray(value)?value.map(cCallback,this):value.map(cCallback,this);});}/**\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            @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          */function mapBy(dependentKey,propertyKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @mapBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));!(typeof propertyKey==='string')&&assert$1('`mapBy` computed macro expects a property string for its second argument, '+'perhaps you meant to use \"map\"',typeof propertyKey==='string');!!/[[\\]{}]/g.test(dependentKey)&&assert$1(`Dependent key passed to \\`mapBy\\` computed macro shouldn't contain brace expanding pattern.`,!/[[\\]{}]/g.test(dependentKey));return map(`${dependentKey}.@each.${propertyKey}`,item=>get$2(item,propertyKey));}/**\n            Filters the array by the callback, like the `Array.prototype.filter` method.\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            In the callback, return a truthy value that coerces to true to keep the\n            element, or a falsy to reject it.\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            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          */function filter(dependentKey,additionalDependentKeysOrCallback,callback){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @filter as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));!(typeof callback==='function'||callback===undefined&&typeof additionalDependentKeysOrCallback==='function')&&assert$1('The final parameter provided to filter must be a callback function',typeof callback==='function'||callback===undefined&&typeof additionalDependentKeysOrCallback==='function');!(Array.isArray(additionalDependentKeysOrCallback)||typeof additionalDependentKeysOrCallback==='function')&&assert$1('The second parameter provided to filter must either be the callback or an array of additional dependent keys',Array.isArray(additionalDependentKeysOrCallback)||typeof additionalDependentKeysOrCallback==='function');let additionalDependentKeys;if(typeof additionalDependentKeysOrCallback==='function'){callback=additionalDependentKeysOrCallback;additionalDependentKeys=[];}else{additionalDependentKeys=additionalDependentKeysOrCallback;}const cCallback=callback;return arrayMacro(dependentKey,additionalDependentKeys,function(value){// This is a really silly way to keep TS happy\nreturn Array.isArray(value)?value.filter(cCallback,this):value.filter(cCallback,this);});}/**\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            @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          */function filterBy(dependentKey,propertyKey,value){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @filterBy as a decorator directly, but it requires atleast `dependentKey` and `propertyKey` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));!!/[[\\]{}]/g.test(dependentKey)&&assert$1(`Dependent key passed to \\`filterBy\\` computed macro shouldn't contain brace expanding pattern.`,!/[[\\]{}]/g.test(dependentKey));let callback;if(arguments.length===2){callback=item=>get$2(item,propertyKey);}else{callback=item=>get$2(item,propertyKey)===value;}return filter(`${dependentKey}.@each.${propertyKey}`,callback);}/**\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            @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          */function uniq(dependentKey){for(var _len55=arguments.length,additionalDependentKeys=new Array(_len55>1?_len55-1:0),_key56=1;_key56<_len55;_key56++){additionalDependentKeys[_key56-1]=arguments[_key56];}!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @uniq/@union as a decorator directly, but it requires atleast one dependent key parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));let args=[dependentKey,...additionalDependentKeys];return multiArrayMacro(args,function(dependentKeys){let uniq=A();let seen=new Set();dependentKeys.forEach(dependentKey=>{let value=get$2(this,dependentKey);if(isNativeOrEmberArray(value)){value.forEach(item=>{if(!seen.has(item)){seen.add(item);uniq.push(item);}});}});return uniq;},'uniq');}/**\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            @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          */function uniqBy(dependentKey,propertyKey){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @uniqBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters',!isElementDescriptor(Array.prototype.slice.call(arguments)));!!/[[\\]{}]/g.test(dependentKey)&&assert$1(`Dependent key passed to \\`uniqBy\\` computed macro shouldn't contain brace expanding pattern.`,!/[[\\]{}]/g.test(dependentKey));return computed(`${dependentKey}.[]`,function(){let list=get$2(this,dependentKey);return isNativeOrEmberArray(list)?uniqBy$1(list,propertyKey):A();}).readOnly();}/**\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            @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          */let union=uniq;/**\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            @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          */function intersect(dependentKey){for(var _len56=arguments.length,additionalDependentKeys=new Array(_len56>1?_len56-1:0),_key57=1;_key57<_len56;_key57++){additionalDependentKeys[_key57-1]=arguments[_key57];}!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @intersect as a decorator directly, but it requires atleast one dependent key parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));let args=[dependentKey,...additionalDependentKeys];return multiArrayMacro(args,function(dependentKeys){let arrays=dependentKeys.map(dependentKey=>{let array=get$2(this,dependentKey);return Array.isArray(array)?array:[];});let firstArray=arrays.pop();!firstArray&&assert$1('Attempted to apply multiArrayMacro for intersect without any dependentKeys',firstArray);let results=firstArray.filter(candidate=>{for(let array of arrays){let found=false;for(let item of array){if(item===candidate){found=true;break;}}if(found===false){return false;}}return true;});return A(results);},'intersect');}/**\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            @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          */function setDiff(setAProperty,setBProperty){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @setDiff as a decorator directly, but it requires atleast one dependent key parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));!(arguments.length===2)&&assert$1('`setDiff` computed macro requires exactly two dependent arrays.',arguments.length===2);!(!/[[\\]{}]/g.test(setAProperty)&&!/[[\\]{}]/g.test(setBProperty))&&assert$1(`Dependent keys passed to \\`setDiff\\` computed macro shouldn't contain brace expanding pattern.`,!/[[\\]{}]/g.test(setAProperty)&&!/[[\\]{}]/g.test(setBProperty));return computed(`${setAProperty}.[]`,`${setBProperty}.[]`,function(){let setA=get$2(this,setAProperty);let setB=get$2(this,setBProperty);if(!isNativeOrEmberArray(setA)){return A();}if(!isNativeOrEmberArray(setB)){return setA;}return setA.filter(x=>setB.indexOf(x)===-1);}).readOnly();}/**\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            @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          */function collect(dependentKey){for(var _len57=arguments.length,additionalDependentKeys=new Array(_len57>1?_len57-1:0),_key58=1;_key58<_len57;_key58++){additionalDependentKeys[_key58-1]=arguments[_key58];}!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @collect as a decorator directly, but it requires atleast one dependent key parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));let dependentKeys=[dependentKey,...additionalDependentKeys];return multiArrayMacro(dependentKeys,function(){let res=dependentKeys.map(key=>{let val=get$2(this,key);return val===undefined?null:val;});return A(res);},'collect');}// (UN)SAFETY: we use `any` here to match how TS defines the sorting for arrays.\n// Additionally, since we're using it with *decorators*, we don't have any way\n// to plumb through the relationship between the types in a way that would be\n// variance-safe.\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            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          */function sort(itemsKey,additionalDependentKeysOrDefinition,sortDefinition){!!isElementDescriptor(Array.prototype.slice.call(arguments))&&assert$1('You attempted to use @sort as a decorator directly, but it requires atleast an `itemsKey` parameter',!isElementDescriptor(Array.prototype.slice.call(arguments)));{let argumentsValid=false;if(arguments.length===2){argumentsValid=typeof itemsKey==='string'&&(typeof additionalDependentKeysOrDefinition==='string'||typeof additionalDependentKeysOrDefinition==='function');}if(arguments.length===3){argumentsValid=typeof itemsKey==='string'&&Array.isArray(additionalDependentKeysOrDefinition)&&typeof sortDefinition==='function';}!argumentsValid&&assert$1('The `sort` computed macro 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);}let additionalDependentKeys;let sortDefinitionOrString;if(Array.isArray(additionalDependentKeysOrDefinition)){additionalDependentKeys=additionalDependentKeysOrDefinition;sortDefinitionOrString=sortDefinition;}else{additionalDependentKeys=[];sortDefinitionOrString=additionalDependentKeysOrDefinition;}if(typeof sortDefinitionOrString==='function'){return customSort(itemsKey,additionalDependentKeys,sortDefinitionOrString);}else{return propertySort(itemsKey,sortDefinitionOrString);}}function customSort(itemsKey,additionalDependentKeys,comparator){return arrayMacro(itemsKey,additionalDependentKeys,function(value){return value.slice().sort((x,y)=>comparator.call(this,x,y));});}// This one needs to dynamically set up and tear down observers on the itemsKey\n// depending on the sortProperties\nfunction propertySort(itemsKey,sortPropertiesKey){let cp=autoComputed(function(key){let sortProperties=get$2(this,sortPropertiesKey);!function(arr){return isNativeOrEmberArray(arr)&&arr.every(s=>typeof s==='string');}(sortProperties)&&assert$1(`The sort definition for '${key}' on ${this} must be a function or an array of strings`,function(arr){return isNativeOrEmberArray(arr)&&arr.every(s=>typeof s==='string');}(sortProperties));let itemsKeyIsAtThis=itemsKey==='@this';let normalizedSortProperties=normalizeSortProperties(sortProperties);let items=itemsKeyIsAtThis?this:get$2(this,itemsKey);if(!isNativeOrEmberArray(items)){return A();}if(normalizedSortProperties.length===0){return A(items.slice());}else{return sortByNormalizedSortProperties(items,normalizedSortProperties);}}).readOnly();return cp;}function normalizeSortProperties(sortProperties){let callback=p=>{let[prop,direction]=p.split(':');direction=direction||'asc';// SAFETY: There will always be at least one value returned by split\nreturn[prop,direction];};// This nonsense is necessary since technically the two map implementations diverge.\nreturn Array.isArray(sortProperties)?sortProperties.map(callback):sortProperties.map(callback);}function sortByNormalizedSortProperties(items,normalizedSortProperties){return A(items.slice().sort((itemA,itemB)=>{for(let[prop,direction]of normalizedSortProperties){let result=compare(get$2(itemA,prop),get$2(itemB,prop));if(result!==0){return direction==='desc'?-1*result:result;}}return 0;}));}const emberObjectLibComputedReduceComputedMacros=/*#__PURE__*/Object.defineProperty({__proto__:null,collect,filter,filterBy,intersect,map,mapBy,max,min,setDiff,sort,sum,union,uniq,uniqBy},Symbol.toStringTag,{value:'Module'});const emberObjectComputed=/*#__PURE__*/Object.defineProperty({__proto__:null,alias,and,bool,collect,default:ComputedProperty,deprecatingAlias,empty,equal,expandProperties,filter,filterBy,gt,gte,intersect,lt,lte,map,mapBy,match,max,min,none,not,notEmpty,oneWay,or,readOnly,reads:oneWay,setDiff,sort,sum,union,uniq,uniqBy},Symbol.toStringTag,{value:'Module'});/**\n            Ember’s dependency injection system is built on the idea of an \"owner\": an\n            object responsible for managing items which can be registered and looked up\n            with the system.\n\n            This module does not provide any concrete instances of owners. Instead, it\n            defines the core type, `Owner`, which specifies the public API contract for an\n            owner. The primary concrete implementations of `Owner` are `EngineInstance`,\n            from `@ember/engine/instance`, and its `ApplicationInstance` subclass, from\n            `@ember/application/instance`.\n\n            Along with `Owner` itself, this module provides a number of supporting types\n            related to Ember's DI system:\n\n            - `Factory`, Ember's primary interface for something which can create class\n              instances registered with the DI system.\n\n            - `FactoryManager`, an interface for inspecting a `Factory`'s class.\n\n            - `Resolver`, an interface defining the contract for the object responsible\n              for mapping string names to the corresponding classes. For example, when you\n              write `@service('session')`, a resolver is responsible to map that back to\n              the `Session` service class in your codebase. Normally, this is handled for\n              you automatically with `ember-resolver`, which is the main implementor of\n              this interface.\n\n            For more details on each, see their per-item docs.\n\n            @module @ember/owner\n            @public\n          */// NOTE: this documentation appears here instead of at the definition site so\n// it can appear correctly in both API docs and for TS, while providing a richer\n// internal representation for Ember's own usage.\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/owner';\n\n            // Usage:\n            //\n            //   <PlayAudio @audioType={{@model.audioType}} @audioFile={{@model.file}}/>\n            //\n            export default class extends Component {\n              get audioService() {\n                return getOwner(this)?.lookup(`service:${this.args.audioType}`);\n              }\n\n              @action\n              onPlay() {\n                this.audioService?.play(this.args.audioFile);\n              }\n            }\n            ```\n\n            @method getOwner\n            @static\n            @for @ember/owner\n            @param {Object} object An object with an owner.\n            @return {Object} An owner object.\n            @since 2.3.0\n            @public\n          */// SAFETY: the cast here is necessary, instead of using an assignment, because\n// TS (not incorrectly! Nothing expressly relates them) does not see that the\n// `InternalOwner` and `Owner` do actually have identical constraints on their\n// relations to the `DIRegistry`.\nconst getOwner$1=getOwner$2;const emberOwnerIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,getOwner:getOwner$1,setOwner:setOwner$1},Symbol.toStringTag,{value:'Module'});/**\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          */class BucketCache{constructor(){_defineProperty(this,\"cache\",void 0);this.cache=new Map();}has(bucketKey){return this.cache.has(bucketKey);}stash(bucketKey,key,value){let bucket=this.cache.get(bucketKey);if(bucket===undefined){bucket=new Map();this.cache.set(bucketKey,bucket);}bucket.set(key,value);}lookup(bucketKey,prop,defaultValue){if(!this.has(bucketKey)){return defaultValue;}let bucket=this.cache.get(bucketKey);if(bucket.has(prop)){return bucket.get(prop);}else{return defaultValue;}}}const emberRoutingLibCache=/*#__PURE__*/Object.defineProperty({__proto__:null,default:BucketCache},Symbol.toStringTag,{value:'Module'});let uuid=0;function isCallback(value){return typeof value==='function';}function isOptions(value){return value!==null&&typeof value==='object';}class DSLImpl{constructor(){let name=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let options=arguments.length>1?arguments[1]:undefined;_defineProperty(this,\"parent\",void 0);_defineProperty(this,\"matches\",void 0);_defineProperty(this,\"enableLoadingSubstates\",void 0);_defineProperty(this,\"explicitIndex\",false);_defineProperty(this,\"options\",void 0);this.parent=name;this.enableLoadingSubstates=Boolean(options&&options.enableLoadingSubstates);this.matches=[];this.options=options;}route(name,_options,_callback){let options;let callback=null;let dummyErrorRoute=`/_unused_dummy_error_path_route_${name}/:error`;if(isCallback(_options)){!(arguments.length===2)&&assert$1('Unexpected arguments',arguments.length===2);options={};callback=_options;}else if(isCallback(_callback)){!(arguments.length===3)&&assert$1('Unexpected arguments',arguments.length===3);!isOptions(_options)&&assert$1('Unexpected arguments',isOptions(_options));options=_options;callback=_callback;}else{options=_options||{};}!(()=>{if(options.overrideNameAssertion===true){return true;}return['basic','application'].indexOf(name)===-1;})()&&assert$1(`'${name}' cannot be used as a route name.`,(()=>{if(options.overrideNameAssertion===true){return true;}return['basic','application'].indexOf(name)===-1;})());!(name.indexOf(':')===-1)&&assert$1(`'${name}' is not a valid route name. It cannot contain a ':'. You may want to use the 'path' option instead.`,name.indexOf(':')===-1);if(this.enableLoadingSubstates){createRoute(this,`${name}_loading`,{resetNamespace:options.resetNamespace});createRoute(this,`${name}_error`,{resetNamespace:options.resetNamespace,path:dummyErrorRoute});}if(callback){let fullName=getFullName(this,name,options.resetNamespace);let dsl=new DSLImpl(fullName,this.options);createRoute(dsl,'loading');createRoute(dsl,'error',{path:dummyErrorRoute});callback.call(dsl);createRoute(this,name,options,dsl.generate());}else{createRoute(this,name,options);}}push(url,name,callback,serialize){let parts=name.split('.');if(this.options.engineInfo){let localFullName=name.slice(this.options.engineInfo.fullName.length+1);let routeInfo=Object.assign({localFullName},this.options.engineInfo);if(serialize){routeInfo.serializeMethod=serialize;}this.options.addRouteForEngine(name,routeInfo);}else if(serialize){throw new Error(`Defining a route serializer on route '${name}' outside an Engine is not allowed.`);}if(url===''||url==='/'||parts[parts.length-1]==='index'){this.explicitIndex=true;}this.matches.push(url,name,callback);}generate(){let dslMatches=this.matches;if(!this.explicitIndex){this.route('index',{path:'/'});}return match=>{for(let i=0;i<dslMatches.length;i+=3){match(dslMatches[i]).to(dslMatches[i+1],dslMatches[i+2]);}};}mount(_name){let options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let engineRouteMap=this.options.resolveRouteMap(_name);let name=_name;if(options.as){name=options.as;}let fullName=getFullName(this,name,options.resetNamespace);let engineInfo={name:_name,instanceId:uuid++,mountPoint:fullName,fullName};let path=options.path;if(typeof path!=='string'){path=`/${name}`;}let callback;let dummyErrorRoute=`/_unused_dummy_error_path_route_${name}/:error`;if(engineRouteMap){let shouldResetEngineInfo=false;let oldEngineInfo=this.options.engineInfo;if(oldEngineInfo){shouldResetEngineInfo=true;this.options.engineInfo=engineInfo;}let optionsForChild=Object.assign({engineInfo},this.options);let childDSL=new DSLImpl(fullName,optionsForChild);createRoute(childDSL,'loading');createRoute(childDSL,'error',{path:dummyErrorRoute});engineRouteMap.class.call(childDSL);callback=childDSL.generate();if(shouldResetEngineInfo){this.options.engineInfo=oldEngineInfo;}}let localFullName='application';let routeInfo=Object.assign({localFullName},engineInfo);if(this.enableLoadingSubstates){// These values are important to register the loading routes under their\n// proper names for the Router and within the Engine's registry.\nlet substateName=`${name}_loading`;let localFullName=`application_loading`;let routeInfo=Object.assign({localFullName},engineInfo);createRoute(this,substateName,{resetNamespace:options.resetNamespace});this.options.addRouteForEngine(substateName,routeInfo);substateName=`${name}_error`;localFullName=`application_error`;routeInfo=Object.assign({localFullName},engineInfo);createRoute(this,substateName,{resetNamespace:options.resetNamespace,path:dummyErrorRoute});this.options.addRouteForEngine(substateName,routeInfo);}this.options.addRouteForEngine(fullName,routeInfo);this.push(path,fullName,callback);}}function canNest(dsl){return dsl.parent!=='application';}function getFullName(dsl,name,resetNamespace){if(canNest(dsl)&&resetNamespace!==true){return`${dsl.parent}.${name}`;}else{return name;}}function createRoute(dsl,name){let options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};let callback=arguments.length>3?arguments[3]:undefined;let fullName=getFullName(dsl,name,options.resetNamespace);if(typeof options.path!=='string'){options.path=`/${name}`;}dsl.push(options.path,fullName,callback,options.serialize);}const emberRoutingLibDsl=/*#__PURE__*/Object.defineProperty({__proto__:null,default:DSLImpl},Symbol.toStringTag,{value:'Module'});const MODEL=symbol('MODEL');/**\n          @module @ember/controller\n          *//**\n            @class ControllerMixin\n            @namespace Ember\n            @uses Ember.ActionHandler\n            @private\n          */const ControllerMixin=Mixin.create(ActionHandler,{/* ducktype as a controller */isController:true,concatenatedProperties:['queryParams'],target:null,store:null,init(){this._super(...arguments);let owner=getOwner$2(this);if(owner){this.namespace=owner.lookup('application:main');this.target=owner.lookup('router:main');}},model:computed({get(){return this[MODEL];},set(_key,value){return this[MODEL]=value;}}),queryParams:null,/**\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            */_qpDelegate:null,// set by route\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            */_qpChanged(controller,_prop){let dotIndex=_prop.indexOf('.[]');let prop=dotIndex===-1?_prop:_prop.slice(0,dotIndex);let delegate=controller._qpDelegate;let value=get$2(controller,prop);delegate(prop,value);}});// NOTE: This doesn't actually extend EmberObject.\n/**\n            @class Controller\n            @extends EmberObject\n            @uses Ember.ControllerMixin\n            @public\n          */class Controller extends FrameworkObject.extend(ControllerMixin){}/**\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          */function inject(){for(var _len58=arguments.length,args=new Array(_len58),_key59=0;_key59<_len58;_key59++){args[_key59]=arguments[_key59];}return inject$2('controller',...args);}/**\n            A type registry for Ember `Controller`s. Meant to be declaration-merged so string\n            lookups resolve to the correct type.\n\n            Blueprints should include such a declaration merge for TypeScript:\n\n            ```ts\n            import Controller from '@ember/controller';\n\n            export default class ExampleController extends Controller {\n            // ...\n            }\n\n            declare module '@ember/controller' {\n              export interface Registry {\n                example: ExampleController;\n              }\n            }\n            ```\n\n            Then `@inject` can check that the service is registered correctly, and APIs\n            like `owner.lookup('controller:example')` can return `ExampleController`.\n          */// eslint-disable-next-line @typescript-eslint/no-empty-interface\nconst emberControllerIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,ControllerMixin,default:Controller,inject},Symbol.toStringTag,{value:'Module'});let wrapGetterSetter=function(target,key,desc){let{get:originalGet}=desc;!(descriptorForProperty(target,key)===undefined)&&assert$1('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);if(originalGet!==undefined){desc.get=function(){let propertyTag=tagFor(this,key);let ret;let tag=track(()=>{ret=originalGet.call(this);});UPDATE_TAG(propertyTag,tag);consumeTag(tag);return ret;};}return desc;};/**\n            `@dependentKeyCompat` is decorator that can be used on _native getters_ that\n            use tracked properties. It exposes the getter to Ember's classic computed\n            property and observer systems, so they can watch it for changes. It can be\n            used in both native and classic classes.\n\n            Native Example:\n\n            ```js\n            import { tracked } from '@glimmer/tracking';\n            import { dependentKeyCompat } from '@ember/object/compat';\n            import { computed, set } from '@ember/object';\n\n            class Person {\n              @tracked firstName;\n              @tracked lastName;\n\n              @dependentKeyCompat\n              get fullName() {\n                return `${this.firstName} ${this.lastName}`;\n              }\n            }\n\n            class Profile {\n              constructor(person) {\n                set(this, 'person', person);\n              }\n\n              @computed('person.fullName')\n              get helloMessage() {\n                return `Hello, ${this.person.fullName}!`;\n              }\n            }\n            ```\n\n            Classic Example:\n\n            ```js\n            import { tracked } from '@glimmer/tracking';\n            import { dependentKeyCompat } from '@ember/object/compat';\n            import EmberObject, { computed, observer, set } from '@ember/object';\n\n            const Person = EmberObject.extend({\n              firstName: tracked(),\n              lastName: tracked(),\n\n              fullName: dependentKeyCompat(function() {\n                return `${this.firstName} ${this.lastName}`;\n              }),\n            });\n\n            const Profile = EmberObject.extend({\n              person: null,\n\n              helloMessage: computed('person.fullName', function() {\n                return `Hello, ${this.person.fullName}!`;\n              }),\n\n              onNameUpdated: observer('person.fullName', function() {\n                console.log('person name updated!');\n              }),\n            });\n            ```\n\n            `dependentKeyCompat()` can receive a getter function or an object containing\n            `get`/`set` methods when used in classic classes, like computed properties.\n\n            In general, only properties which you _expect_ to be watched by older,\n            untracked clases should be marked as dependency compatible. The decorator is\n            meant as an interop layer for parts of Ember's older classic APIs, and should\n            not be applied to every possible getter/setter in classes. The number of\n            dependency compatible getters should be _minimized_ wherever possible. New\n            application code should not need to use `@dependentKeyCompat`, since it is\n            only for interoperation with older code.\n\n            @public\n            @method dependentKeyCompat\n            @for @ember/object/compat\n            @static\n            @param {PropertyDescriptor|undefined} desc A property descriptor containing\n                                                       the getter and setter (when used in\n                                                       classic classes)\n            @return {PropertyDecorator} property decorator instance\n           */function dependentKeyCompat(){for(var _len59=arguments.length,args=new Array(_len59),_key60=0;_key60<_len59;_key60++){args[_key60]=arguments[_key60];}if(isElementDescriptor(args)){let[target,key,desc]=args;!(desc!=null&&(typeof desc.get==='function'||typeof desc.set==='function'))&&assert$1('The @dependentKeyCompat decorator must be applied to getters/setters when used in native classes',desc!=null&&(typeof desc.get==='function'||typeof desc.set==='function'));return wrapGetterSetter(target,key,desc);}else{const desc=args[0];!(value=>{if(value&&typeof value==='object'){let cast=value;return(cast.configurable===undefined||cast.configurable===false||cast.configurable===true)&&(cast.enumerable===undefined||cast.enumerable===false||cast.enumerable===true)&&(cast.writable===undefined||cast.writable===false||cast.writable===true)&&(cast.get===undefined||typeof cast.get==='function')&&(cast.set===undefined||typeof cast.set==='function');}return false;})(desc)&&assert$1('expected valid PropertyDescriptor',(value=>{if(value&&typeof value==='object'){let cast=value;return(cast.configurable===undefined||cast.configurable===false||cast.configurable===true)&&(cast.enumerable===undefined||cast.enumerable===false||cast.enumerable===true)&&(cast.writable===undefined||cast.writable===false||cast.writable===true)&&(cast.get===undefined||typeof cast.get==='function')&&(cast.set===undefined||typeof cast.set==='function');}return false;})(desc));let decorator=function(target,key,_desc,_meta,isClassicDecorator){!isClassicDecorator&&assert$1('The @dependentKeyCompat decorator may only be passed a method when used in classic classes. You should decorate getters/setters directly in native classes',isClassicDecorator);!(typeof desc.get==='function'||typeof desc.set==='function')&&assert$1('The dependentKeyCompat() decorator must be passed a getter or setter when used in classic classes',typeof desc.get==='function'||typeof desc.set==='function');return wrapGetterSetter(target,key,desc);};setClassicDecorator(decorator);return decorator;}}setClassicDecorator(dependentKeyCompat);const emberObjectCompat=/*#__PURE__*/Object.defineProperty({__proto__:null,dependentKeyCompat},Symbol.toStringTag,{value:'Module'});/**\n           @module @ember/routing\n          *//**\n            Generates a controller factory\n\n            @for Ember\n            @method generateControllerFactory\n            @private\n          */function generateControllerFactory(owner,controllerName){let factoryManager=owner.factoryFor('controller:basic');!(factoryManager!==undefined)&&assert$1('[BUG] unexpectedly missing a factoryManager for `controller:basic`',factoryManager!==undefined);// SAFETY: This is *not* safe, and the cast should be removed in favor of the\n// `assert()` below after altering *tests*. It is left in this state for the\n// moment in the interest of keeping type-only changes separate from changes\n// to the runtime behavior of the system, even for tests.\nlet Factory=factoryManager.class;// assert(\n//   '[BUG] factory for `controller:main` is unexpectedly not a Controller',\n//   ((factory): factory is typeof Controller => factory === Controller)(Factory)\n// );\nFactory=Factory.extend({toString(){return`(generated ${controllerName} controller)`;}});let fullName=`controller:${controllerName}`;owner.register(fullName,Factory);return owner.factoryFor(fullName);}/**\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          */function generateController(owner,controllerName){generateControllerFactory(owner,controllerName);let fullName=`controller:${controllerName}`;let instance=owner.lookup(fullName);!(instance instanceof Controller)&&assert$1('Expected an instance of controller',instance instanceof Controller);{if(get$2(instance,'namespace.LOG_ACTIVE_GENERATION')){info(`generated -> ${fullName}`,{fullName});}}return instance;}const emberRoutingLibGenerateController=/*#__PURE__*/Object.defineProperty({__proto__:null,default:generateController,generateControllerFactory},Symbol.toStringTag,{value:'Module'});function isStoreLike(store){return typeof store==='object'&&store!==null&&typeof store.find==='function';}const RENDER=Symbol('render');const RENDER_STATE=Symbol('render-state');/**\n          @module @ember/routing/route\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          */class Route extends EmberObject.extend(ActionHandler,Evented){constructor(owner){super(owner);// These properties will end up appearing in the public interface because we\n// `implements IRoute` from `router.js`, which has them as part of *its*\n// public contract. We mark them as `@internal` so they at least signal to\n// people subclassing `Route` that they should not use them.\n/** @internal */_defineProperty(this,\"context\",{});/** @internal *//** @internal */_defineProperty(this,\"_bucketCache\",void 0);/** @internal */_defineProperty(this,\"_internalName\",void 0);_defineProperty(this,\"_names\",void 0);_defineProperty(this,\"_router\",void 0);_defineProperty(this,RENDER_STATE,undefined);if(owner){let router=owner.lookup('router:main');let bucketCache=owner.lookup(privatize`-bucket-cache:main`);this._router=router;this._bucketCache=bucketCache;this._topLevelViewTemplate=owner.lookup('template:-outlet');this._environment=owner.lookup('-environment:main');}}/**\n              A hook you can implement to convert the route's model into parameters\n              for the URL.\n               ```app/router.js\n              // ...\n               Router.map(function() {\n                this.route('post', { path: '/posts/:post_id' });\n              });\n               ```\n               ```app/routes/post.js\n              import Route from '@ember/routing/route';\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                 serialize(model) {\n                  // this will make the URL `/posts/12`\n                  return { post_id: model.id };\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               This method is called when `transitionTo` is called with a context\n              in order to populate the URL.\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            */serialize(model,params){if(params.length<1||!model){return;}let object={};if(params.length===1){let[name]=params;!name&&assert$1('has name',name);if(typeof model==='object'&&name in model){object[name]=get$2(model,name);}else if(/_id$/.test(name)){object[name]=get$2(model,'id');}else if(isProxy(model)){object[name]=get$2(model,name);}}else{object=getProperties(model,params);}return object;}/**\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            */// Set in reopen so it can be overriden with extend\n/**\n              The name of the template to use by default when rendering this route's\n              template.\n               ```app/routes/posts/list.js\n              import Route from '@ember/routing/route';\n               export default class PostsListRoute extends Route {\n                templateName = 'posts/list';\n              }\n              ```\n               ```app/routes/posts/index.js\n              import PostsListRoute from '../posts/list';\n               export default class PostsIndexRoute extends PostsListRoute {};\n              ```\n               ```app/routes/posts/archived.js\n              import PostsListRoute from '../posts/list';\n               export default class PostsArchivedRoute extends PostsListRoute {};\n              ```\n               @property templateName\n              @type String\n              @default null\n              @since 1.4.0\n              @public\n            */// Set in reopen so it can be overriden with extend\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            */// Set in reopen so it can be overriden with extend\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              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              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              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            */_setRouteName(name){this.routeName=name;let owner=getOwner$2(this);!(owner instanceof EngineInstance)&&assert$1('Expected route to have EngineInstance as owner',owner instanceof EngineInstance);this.fullRouteName=getEngineRouteName(owner,name);}/**\n              @private\n               @method _stashNames\n            */_stashNames(routeInfo,dynamicParent){if(this._names){return;}let names=this._names=routeInfo['_names'];if(!names.length){routeInfo=dynamicParent;names=routeInfo&&routeInfo['_names']||[];}// SAFETY: Since `_qp` is protected we can't infer the type\nlet qps=get$2(this,'_qp').qps;let namePaths=new Array(names.length);for(let a=0;a<names.length;++a){namePaths[a]=`${routeInfo.name}.${names[a]}`;}for(let qp of qps){if(qp.scope==='model'){qp.parts=namePaths;}}}/**\n              @private\n               @property _activeQPChanged\n            */_activeQPChanged(qp,value){this._router._activeQPChanged(qp.scopedPropertyName,value);}/**\n              @private\n              @method _updatingQPChanged\n            */_updatingQPChanged(qp){this._router._updatingQPChanged(qp.urlKey);}/**\n              Returns a hash containing the parameters of an ancestor route.\n               You may notice that `this.paramsFor` sometimes works when referring to a\n              child route, but this behavior should not be relied upon as only ancestor\n              routes are certain to be loaded in time.\n               Example\n               ```app/router.js\n              // ...\n               Router.map(function() {\n                this.route('member', { path: ':name' }, function() {\n                  this.route('interest', { path: ':interest' });\n                });\n              });\n              ```\n               ```app/routes/member.js\n              import Route from '@ember/routing/route';\n               export default class MemberRoute extends Route {\n                queryParams = {\n                  memberQp: { refreshModel: true }\n                }\n              }\n              ```\n               ```app/routes/member/interest.js\n              import Route from '@ember/routing/route';\n               export default class MemberInterestRoute extends Route {\n                queryParams = {\n                  interestQp: { refreshModel: true }\n                }\n                 model() {\n                  return this.paramsFor('member');\n                }\n              }\n              ```\n               If we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\n              the `member.interest` route is a hash with:\n               * `name`: `turing`\n              * `memberQp`: `member`\n               @method paramsFor\n              @param {String} name\n              @return {Object} hash containing the parameters of the route `name`\n              @since 1.4.0\n              @public\n            */paramsFor(name){let owner=getOwner$2(this);!owner&&assert$1('Route is unexpectedly missing an owner',owner);let route=owner.lookup(`route:${name}`);if(route===undefined){return{};}let transition=this._router._routerMicrolib.activeTransition;let state=transition?transition[STATE_SYMBOL]:this._router._routerMicrolib.state;let fullName=route.fullRouteName;let params={...state.params[fullName]};let queryParams=getQueryParamsFor(route,state);return Object.entries(queryParams).reduce((params,_ref146)=>{let[key,value]=_ref146;!!params[key]&&assert$1(`The route '${this.routeName}' has both a dynamic segment and query param with name '${key}'. Please rename one to avoid collisions.`,!params[key]);params[key]=value;return params;},params);}/**\n              Serializes the query parameter key\n               @method serializeQueryParamKey\n              @param {String} controllerPropertyName\n              @private\n            */serializeQueryParamKey(controllerPropertyName){return controllerPropertyName;}/**\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            */serializeQueryParam(value,_urlKey,defaultValueType){// urlKey isn't used here, but anyone overriding\n// can use it to provide serialization specific\n// to a certain query param.\nreturn this._router._serializeQueryParam(value,defaultValueType);}/**\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            */deserializeQueryParam(value,_urlKey,defaultValueType){// urlKey isn't used here, but anyone overriding\n// can use it to provide deserialization specific\n// to a certain query param.\nreturn this._router._deserializeQueryParam(value,defaultValueType);}/**\n              @private\n               @property _optionsForQueryParam\n            */_optionsForQueryParam(qp){const queryParams=get$2(this,'queryParams');return get$2(queryParams,qp.urlKey)||get$2(queryParams,qp.prop)||queryParams[qp.urlKey]||queryParams[qp.prop]||{};}/**\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            */resetController(_controller,_isExiting,_transition){// We document that subclasses do not have to return *anything* and in fact\n// do not even have to call super, so whiel we *do* return `this`, we need\n// to be explicit in the types that our return type is *effectively* `void`.\nreturn this;}/**\n              @private\n               @method exit\n            */exit(transition){this.deactivate(transition);this.trigger('deactivate',transition);this.teardownViews();}/**\n              @private\n               @method _internalReset\n              @since 3.6.0\n            */_internalReset(isExiting,transition){let controller=this.controller;// SAFETY: Since `_qp` is protected we can't infer the type\ncontroller['_qpDelegate']=get$2(this,'_qp').states.inactive;this.resetController(controller,isExiting,transition);}/**\n              @private\n               @method enter\n            */enter(transition){this[RENDER_STATE]=undefined;this.activate(transition);this.trigger('activate',transition);}/**\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              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              This hook is executed when the router completely exits this route. It is\n              not executed when the model for the route changes.\n               @method deactivate\n              @param {Transition} transition\n              @since 1.0.0\n              @public\n            */deactivate(_transition){}/**\n              This hook is executed when the router enters the route. It is not executed\n              when the model for the route changes.\n               @method activate\n              @param {Transition} transition\n              @since 1.0.0\n              @public\n            */activate(_transition){}/**\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             */intermediateTransitionTo(){for(var _len60=arguments.length,args=new Array(_len60),_key61=0;_key61<_len60;_key61++){args[_key61]=arguments[_key61];}let[name,...preparedArgs]=prefixRouteNameArg(this,args);this._router.intermediateTransitionTo(name,...preparedArgs);}/**\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             */refresh(){return this._router._routerMicrolib.refresh(this);}/**\n              This hook is the entry point for router.js\n               @private\n              @method setup\n            */setup(context,transition){let controllerName=this.controllerName||this.routeName;let definedController=this.controllerFor(controllerName,true);let controller=definedController!==null&&definedController!==void 0?definedController:this.generateController(controllerName);// SAFETY: Since `_qp` is protected we can't infer the type\nlet queryParams=get$2(this,'_qp');// Assign the route's controller so that it can more easily be\n// referenced in action handlers. Side effects. Side effects everywhere.\nif(!this.controller){let propNames=queryParams.propertyNames;addQueryParamsObservers(controller,propNames);this.controller=controller;}let states=queryParams.states;controller._qpDelegate=states.allowOverrides;if(transition){// Update the model dep values used to calculate cache keys.\nstashParamNames(this._router,transition[STATE_SYMBOL].routeInfos);let cache=this._bucketCache;let params=transition[PARAMS_SYMBOL];let allParams=queryParams.propertyNames;allParams.forEach(prop=>{let aQp=queryParams.map[prop];!aQp&&assert$1('expected aQp',aQp);aQp.values=params;let cacheKey=calculateCacheKey(aQp.route.fullRouteName,aQp.parts,aQp.values);let value=cache.lookup(cacheKey,prop,aQp.undecoratedDefaultValue);set(controller,prop,value);});let qpValues=getQueryParamsFor(this,transition[STATE_SYMBOL]);setProperties(controller,qpValues);}this.setupController(controller,context,transition);if(this._environment.options.shouldRender){this[RENDER]();}// 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.\nflushAsyncObservers(false);}/*\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            */_qpChanged(prop,value,qp){if(!qp){return;}// Update model-dep cache\nlet cache=this._bucketCache;let cacheKey=calculateCacheKey(qp.route.fullRouteName,qp.parts,qp.values);cache.stash(cacheKey,prop,value);}/**\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              `router.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            */beforeModel(_transition){}/**\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              import { service } from '@ember/service';\n               export default class PostsRoute extends Route {\n                @service router;\n                 afterModel(posts, transition) {\n                  if (posts.get('length') === 1) {\n                    this.router.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             */afterModel(_resolvedModel,_transition){}/**\n              A hook you can implement to optionally redirect to another route.\n               Calling `this.router.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.router.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            */redirect(_model,_transition){}/**\n              Called when the context is changed by router.js.\n               @private\n              @method contextDidChange\n            */contextDidChange(){this.currentModel=this.context;}/**\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               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.router.transitionTo('posts');\n               // model passed in, so model hook not called\n              thePost = store.findRecord('post', 1);\n              this.router.transitionTo('post', thePost);\n               // integer passed in, model hook is called\n              this.router.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.router.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               Note that the legacy behavior of automatically defining a model\n              hook when a dynamic segment ending in `_id` is present is\n              [deprecated](https://deprecations.emberjs.com/v5.x#toc_deprecate-implicit-route-model).\n              You should explicitly define a model hook whenever any segments are\n              present.\n               Example\n               ```app/routes/post.js\n              import Route from '@ember/routing/route';\n              import { service } from '@ember/service';\n               export default class PostRoute extends Route {\n                @service store;\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            */model(params,transition){let name,sawParams,value;// SAFETY: Since `_qp` is protected we can't infer the type\nlet queryParams=get$2(this,'_qp').map;for(let prop in params){if(prop==='queryParams'||queryParams&&prop in queryParams){continue;}let match=prop.match(/^(.*)_id$/);if(match!==null){name=match[1];value=params[prop];}sawParams=true;}if(!name){if(sawParams){// SAFETY: This should be equivalent\nreturn Object.assign({},params);}else{if(transition.resolveIndex<1){return;}// SAFETY: This should be correct, but TS is unable to infer this.\nreturn transition[STATE_SYMBOL].routeInfos[transition.resolveIndex-1].context;}}return this.findModel(name,value);}/**\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             */deserialize(_params,transition){return this.model(this._paramsFor(this.routeName,_params),transition);}/**\n               @method findModel\n              @param {String} type the model type\n              @param {Object} value the value passed to find\n              @private\n            */findModel(type,value){if(ENV._NO_IMPLICIT_ROUTE_MODEL){return;}deprecateUntil(`The implicit model loading behavior for routes is deprecated. `+`Please define an explicit model hook for ${this.fullRouteName}.`,DEPRECATIONS.DEPRECATE_IMPLICIT_ROUTE_MODEL);const store='store'in this?this.store:get$2(this,'_store');!isStoreLike(store)&&assert$1('Expected route to have a store with a find method',isStoreLike(store));// SAFETY: We don't actually know it will return this, but this code path is also deprecated.\nreturn store.find(type,value);}/**\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              import { service } from '@ember/service';\n               export default class PhotosRoute extends Route {\n                @service store;\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 {Transition} [transition]\n              @since 1.0.0\n              @public\n            */setupController(controller,context,_transition){if(controller&&context!==undefined){set(controller,'model',context);}}/**\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 | undefined}\n              @since 1.0.0\n              @public\n            */controllerFor(name){let _skipAssert=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let owner=getOwner$2(this);!owner&&assert$1('Route is unexpectedly missing an owner',owner);let route=owner.lookup(`route:${name}`);if(route&&route.controllerName){name=route.controllerName;}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!(controller!==undefined||_skipAssert===true)&&assert$1(`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);!(controller===undefined||controller instanceof Controller)&&assert$1(`Expected controller:${name} to be an instance of Controller`,controller===undefined||controller instanceof Controller);return controller;}/**\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            */generateController(name){let owner=getOwner$2(this);!owner&&assert$1('Route is unexpectedly missing an owner',owner);return generateController(owner,name);}/**\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            */modelFor(_name){let name;let owner=getOwner$2(this);!(owner instanceof EngineInstance)&&assert$1('Expected router owner to be an EngineInstance',owner instanceof EngineInstance);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.\nif(owner.routable&&transition!==undefined){name=getEngineRouteName(owner,_name);}else{name=_name;}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.\nif(transition!==undefined&&transition!==null){let modelLookupName=route&&route.routeName||name;if(Object.prototype.hasOwnProperty.call(transition.resolvedModels,modelLookupName)){return transition.resolvedModels[modelLookupName];}}return route===null||route===void 0?void 0:route.currentModel;}/**\n              `this[RENDER]` is used to set up the rendering option for the outlet state.\n              @method this[RENDER]\n              @private\n             */[RENDER](){this[RENDER_STATE]=buildRenderState(this);once(this._router,'_setOutlets');}willDestroy(){this.teardownViews();}/**\n              @private\n               @method teardownViews\n            */teardownViews(){if(this[RENDER_STATE]){this[RENDER_STATE]=undefined;once(this._router,'_setOutlets');}}/**\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 { 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             */buildRouteInfoMetadata(){}_paramsFor(routeName,params){let transition=this._router._routerMicrolib.activeTransition;if(transition!==undefined){return this.paramsFor(routeName);}return params;}/** @deprecated Manually define your own store, such as with `@service store` */get _store(){const owner=getOwner$2(this);!owner&&assert$1('Route is unexpectedly missing an owner',owner);let routeName=this.routeName;return{find(name,value){let modelClass=owner.factoryFor(`model:${name}`);!Boolean(modelClass)&&assert$1(`You used the dynamic segment \\`${name}_id\\` in your route `+`\\`${routeName}\\` for which Ember requires you provide a `+`data-loading implementation. Commonly, that is done by `+`adding a model hook implementation on the route `+`(\\`model({${name}_id}) {\\`) or by injecting an implemention of `+`a data store: \\`@service store;\\`.`,Boolean(modelClass));if(!modelClass){return;}modelClass=modelClass.class;!(typeof modelClass.find==='function')&&assert$1(`You used the dynamic segment \\`${name}_id\\` in your route `+`\\`${routeName}\\` for which Ember requires you provide a `+`data-loading implementation. Commonly, that is done by `+`adding a model hook implementation on the route `+`(\\`model({${name}_id}) {\\`) or by injecting an implemention of `+`a data store: \\`@service store;\\`.\\n\\n`+`Rarely, applications may attempt to use a legacy behavior where `+`the model class (in this case \\`${name}\\`) is resolved and the `+`\\`find\\` method on that class is invoked to load data. In this `+`application, a model of \\`${name}\\` was found but it did not `+`provide a \\`find\\` method. You should not add a \\`find\\` `+`method to your model. Instead, please implement an appropriate `+`\\`model\\` hook on the \\`${routeName}\\` route.`,typeof modelClass.find==='function');return modelClass.find(value);}};}/**\n              @private\n              @property _qp\n              */get _qp(){let combinedQueryParameterConfiguration={};let controllerName=this.controllerName||this.routeName;let owner=getOwner$2(this);!owner&&assert$1('Route is unexpectedly missing an owner',owner);let controller=owner.lookup(`controller:${controllerName}`);let queryParameterConfiguraton=get$2(this,'queryParams');let hasRouterDefinedQueryParams=Object.keys(queryParameterConfiguraton).length>0;if(controller){!(controller instanceof Controller)&&assert$1('Expected an instance of controller',controller instanceof Controller);// 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 `{}`\nlet controllerDefinedQueryParameterConfiguration=get$2(controller,'queryParams')||[];let normalizedControllerQueryParameterConfiguration=normalizeControllerQueryParams(controllerDefinedQueryParameterConfiguration);combinedQueryParameterConfiguration=mergeEachQueryParams(normalizedControllerQueryParameterConfiguration,queryParameterConfiguraton);}else if(hasRouterDefinedQueryParams){// 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\ncontroller=generateController(owner,controllerName);combinedQueryParameterConfiguration=queryParameterConfiguraton;}let qps=[];let map={};let propertyNames=[];for(let propName in combinedQueryParameterConfiguration){if(!Object.prototype.hasOwnProperty.call(combinedQueryParameterConfiguration,propName)){continue;}// to support the dubious feature of using unknownProperty\n// on queryParams configuration\nif(propName==='unknownProperty'||propName==='_super'){// possible todo: issue deprecation warning?\ncontinue;}let desc=combinedQueryParameterConfiguration[propName];!desc&&assert$1(`[BUG] missing query parameter configuration for ${propName}`,desc);let scope=desc.scope||'model';let parts=undefined;if(scope==='controller'){parts=[];}let urlKey=desc.as||this.serializeQueryParamKey(propName);let defaultValue=get$2(controller,propName);defaultValue=copyDefaultValue(defaultValue);let type=desc.type||typeOf(defaultValue);let defaultValueSerialized=this.serializeQueryParam(defaultValue,urlKey,type);let scopedPropertyName=`${controllerName}:${propName}`;let qp={undecoratedDefaultValue:get$2(controller,propName),defaultValue,serializedDefaultValue:defaultValueSerialized,serializedValue:defaultValueSerialized,type,urlKey,prop:propName,scopedPropertyName,controllerName,route:this,parts,// provided later when stashNames is called if 'model' scope\nvalues:null,// provided later when setup is called. no idea why.\nscope};map[propName]=map[urlKey]=map[scopedPropertyName]=qp;qps.push(qp);propertyNames.push(propName);}return{qps,map,propertyNames,states:{/*\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                  */inactive:(prop,value)=>{let qp=map[prop];!qp&&assert$1('expected inactive callback to only be called for registered qps',qp);this._qpChanged(prop,value,qp);},/*\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                  */active:(prop,value)=>{let qp=map[prop];!qp&&assert$1('expected active callback to only be called for registered qps',qp);this._qpChanged(prop,value,qp);return this._activeQPChanged(qp,value);},/*\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                  */allowOverrides:(prop,value)=>{let qp=map[prop];!qp&&assert$1('expected allowOverrides callback to only be called for registered qps',qp);this._qpChanged(prop,value,qp);return this._updatingQPChanged(qp);}}};}// Set in reopen\n/**\n              Sends an action to the router, which will delegate it to the currently\n              active route hierarchy per the bubbling rules explained under `actions`.\n               Example\n               ```app/router.js\n              // ...\n               Router.map(function() {\n                this.route('index');\n              });\n               export default Router;\n              ```\n               ```app/routes/application.js\n              import Route from '@ember/routing/route';\n              import { action } from '@ember/object';\n               export default class ApplicationRoute extends Route {\n                @action\n                track(arg) {\n                  console.log(arg, 'was clicked');\n                }\n              }\n              ```\n               ```app/routes/index.js\n              import Route from '@ember/routing/route';\n              import { action } from '@ember/object';\n               export default class IndexRoute extends Route {\n                @action\n                trackIfDebug(arg) {\n                  if (debug) {\n                    this.send('track', arg);\n                  }\n                }\n              }\n              ```\n               @method send\n              @param {String} name the name of the action to trigger\n              @param {...*} args\n              @since 1.0.0\n              @public\n            */// Set with reopen to override parent behavior\n}_Route=Route;_defineProperty(Route,\"isRouteFactory\",true);decorateMethodV2(_Route.prototype,\"_store\",[computed]);decorateMethodV2(_Route.prototype,\"_qp\",[computed]);function getRenderState(route){return route[RENDER_STATE];}function buildRenderState(route){var _template2;let owner=getOwner$2(route);!owner&&assert$1('Route is unexpectedly missing an owner',owner);let name=route.routeName;let controller=owner.lookup(`controller:${route.controllerName||name}`);!(controller instanceof Controller)&&assert$1('Expected an instance of controller',controller instanceof Controller);let model=route.currentModel;let template=owner.lookup(`template:${route.templateName||name}`);let render={owner,into:undefined,outlet:'main',name,controller,model,template:(_template2=template===null||template===void 0?void 0:template(owner))!==null&&_template2!==void 0?_template2:route._topLevelViewTemplate(owner)};{let LOG_VIEW_LOOKUPS=get$2(route._router,'namespace.LOG_VIEW_LOOKUPS');if(LOG_VIEW_LOOKUPS&&!template){info(`Could not find \"${name}\" template. Nothing will be rendered`,{fullName:`template:${name}`});}}return render;}function getFullQueryParams(router,state){if(state.fullQueryParams){return state.fullQueryParams;}let haveAllRouteInfosResolved=state.routeInfos.every(routeInfo=>routeInfo.route);let fullQueryParamsState={...state.queryParams};router._deserializeQueryParams(state.routeInfos,fullQueryParamsState);// only cache query params state if all routeinfos have resolved; it's possible\n// for lazy routes to not have resolved when `getFullQueryParams` is called, so\n// we wait until all routes have resolved prior to caching query params state\nif(haveAllRouteInfosResolved){state.fullQueryParams=fullQueryParamsState;}return fullQueryParamsState;}function getQueryParamsFor(route,state){state.queryParamsFor=state.queryParamsFor||{};let name=route.fullRouteName;let existing=state.queryParamsFor[name];if(existing){return existing;}let fullQueryParams=getFullQueryParams(route._router,state);let params=state.queryParamsFor[name]={};// Copy over all the query params for this route/controller into params hash.\n// SAFETY: Since `_qp` is protected we can't infer the type\nlet qps=get$2(route,'_qp').qps;for(let qp of qps){// Put deserialized qp on params hash.\nlet qpValueWasPassedIn=qp.prop in fullQueryParams;params[qp.prop]=qpValueWasPassedIn?fullQueryParams[qp.prop]:copyDefaultValue(qp.defaultValue);}return params;}// FIXME: This should probably actually return a `NativeArray` if the passed in value is an Array.\nfunction copyDefaultValue(value){if(Array.isArray(value)){// SAFETY: We lost the type data about the array if we don't cast.\nreturn A(value.slice());}return value;}/*\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          */function mergeEachQueryParams(controllerQP,routeQP){let qps={};let keysAlreadyMergedOrSkippable={defaultValue:true,type:true,scope:true,as:true};// first loop over all controller qps, merging them with any matching route qps\n// into a new empty object to avoid mutating.\nfor(let cqpName in controllerQP){if(!Object.prototype.hasOwnProperty.call(controllerQP,cqpName)){continue;}qps[cqpName]={...controllerQP[cqpName],...routeQP[cqpName]};// allows us to skip this QP when we check route QPs.\nkeysAlreadyMergedOrSkippable[cqpName]=true;}// loop over all route qps, skipping those that were merged in the first pass\n// because they also appear in controller qps\nfor(let rqpName in routeQP){if(!Object.prototype.hasOwnProperty.call(routeQP,rqpName)||keysAlreadyMergedOrSkippable[rqpName]){continue;}qps[rqpName]={...routeQP[rqpName],...controllerQP[rqpName]};}return qps;}function addQueryParamsObservers(controller,propNames){propNames.forEach(prop=>{if(descriptorForProperty(controller,prop)===undefined){let desc=lookupDescriptor(controller,prop);if(desc!==null&&(typeof desc.get==='function'||typeof desc.set==='function')){defineProperty(controller,prop,dependentKeyCompat({get:desc.get,set:desc.set}));}}addObserver(controller,`${prop}.[]`,controller,controller._qpChanged,false);});}function getEngineRouteName(engine,routeName){if(engine.routable){let prefix=engine.mountPoint;if(routeName==='application'){return prefix;}else{return`${prefix}.${routeName}`;}}return routeName;}const defaultSerialize=Route.prototype.serialize;function hasDefaultSerialize(route){return route.serialize===defaultSerialize;}// Set these here so they can be overridden with extend\nRoute.reopen({mergedProperties:['queryParams'],queryParams:{},templateName:null,controllerName:null,send(){for(var _len61=arguments.length,args=new Array(_len61),_key62=0;_key62<_len61;_key62++){args[_key62]=arguments[_key62];}!(!this.isDestroying&&!this.isDestroyed)&&assert$1(`Attempted to call .send() with the action '${args[0]}' on the destroyed route '${this.routeName}'.`,!this.isDestroying&&!this.isDestroyed);if(this._router&&this._router._routerMicrolib||!isTesting()){this._router.send(...args);}else{let name=args.shift();let action=this.actions[name];if(action){return action.apply(this,args);}}},/**\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            */actions:{/**\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              */queryParamsDidChange(changed,_totalPresent,removed){// SAFETY: Since `_qp` is protected we can't infer the type\nlet qpMap=get$2(this,'_qp').map;let totalChanged=Object.keys(changed).concat(Object.keys(removed));for(let change of totalChanged){let qp=qpMap[change];if(qp){let options=this._optionsForQueryParam(qp);!(options&&typeof options==='object')&&assert$1('options exists',options&&typeof options==='object');if(get$2(options,'refreshModel')&&this._router.currentState){this.refresh();break;}}}return true;},finalizeQueryParamChange(params,finalParams,transition){if(this.fullRouteName!=='application'){return true;}// Transition object is absent for intermediate transitions.\nif(!transition){return;}let routeInfos=transition[STATE_SYMBOL].routeInfos;let router=this._router;let qpMeta=router._queryParamsFor(routeInfos);let changes=router._qpUpdates;let qpUpdated=false;let replaceUrl;stashParamNames(router,routeInfos);for(let qp of qpMeta.qps){let route=qp.route;let controller=route.controller;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.\nlet value;let svalue;if(changes.has(qp.urlKey)){// Value updated in/before setupController\nvalue=get$2(controller,qp.prop);svalue=route.serializeQueryParam(value,qp.urlKey,qp.type);}else{if(presentKey){svalue=params[presentKey];if(svalue!==undefined){value=route.deserializeQueryParam(svalue,qp.urlKey,qp.type);}}else{// No QP provided; use default value.\nsvalue=qp.serializedDefaultValue;value=copyDefaultValue(qp.defaultValue);}}// SAFETY: Since `_qp` is protected we can't infer the type\ncontroller._qpDelegate=get$2(route,'_qp').states.inactive;let thisQueryParamChanged=svalue!==qp.serializedValue;if(thisQueryParamChanged){if(transition.queryParamsOnly&&replaceUrl!==false){let options=route._optionsForQueryParam(qp);let replaceConfigValue=get$2(options,'replace');if(replaceConfigValue){replaceUrl=true;}else if(replaceConfigValue===false){// Explicit pushState wins over any other replaceStates.\nreplaceUrl=false;}}set(controller,qp.prop,value);qpUpdated=true;}// Stash current serialized value of controller.\nqp.serializedValue=svalue;let thisQueryParamHasDefaultValue=qp.serializedDefaultValue===svalue;if(!thisQueryParamHasDefaultValue){finalParams.push({value:svalue,visible:true,key:presentKey||qp.urlKey});}}// Some QPs have been updated, and those changes need to be propogated\n// immediately. Eventually, we should work on making this async somehow.\nif(qpUpdated===true){flushAsyncObservers(false);}if(replaceUrl){transition.method('replace');}qpMeta.qps.forEach(qp=>{// SAFETY: Since `_qp` is protected we can't infer the type\nlet routeQpMeta=get$2(qp.route,'_qp');let finalizedController=qp.route.controller;finalizedController['_qpDelegate']=get$2(routeQpMeta,'states.active');});router._qpUpdates.clear();return;}}});const emberRoutingRoute=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Route,defaultSerialize,getFullQueryParams,getRenderState,hasDefaultSerialize},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/routing/router\n          */function defaultDidTransition(infos){updatePaths(this);this._cancelSlowTransitionTimer();this.notifyPropertyChange('url');this.set('currentState',this.targetState);{// @ts-expect-error namespace isn't public\nif(this.namespace.LOG_TRANSITIONS){// eslint-disable-next-line no-console\nconsole.log(`Transitioned into '${EmberRouter._routePath(infos)}'`);}}}function defaultWillTransition(oldInfos,newInfos){{// @ts-expect-error namespace isn't public\nif(this.namespace.LOG_TRANSITIONS){// eslint-disable-next-line no-console\nconsole.log(`Preparing to transition from '${EmberRouter._routePath(oldInfos)}' to '${EmberRouter._routePath(newInfos)}'`);}}}let freezeRouteInfo;{freezeRouteInfo=transition=>{if(transition.from!==null&&!Object.isFrozen(transition.from)){Object.freeze(transition.from);}if(transition.to!==null&&!Object.isFrozen(transition.to)){Object.freeze(transition.to);}};}function K(){return this;}const{slice}=Array.prototype;/**\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          */class EmberRouter extends EmberObject.extend(Evented){/**\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            */static map(callback){if(!this.dslCallbacks){this.dslCallbacks=[];// FIXME: Can we remove this?\nthis.reopenClass({dslCallbacks:this.dslCallbacks});}this.dslCallbacks.push(callback);return this;}static _routePath(routeInfos){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'\nfunction intersectionMatches(a1,a2){for(let i=0;i<a1.length;++i){if(a1[i]!==a2[i]){return false;}}return true;}let name,nameParts,oldNameParts;for(let i=1;i<routeInfos.length;i++){let routeInfo=routeInfos[i];!routeInfo&&assert$1('has routeInfo',routeInfo);name=routeInfo.name;nameParts=name.split('.');oldNameParts=slice.call(path);while(oldNameParts.length){if(intersectionMatches(oldNameParts,nameParts)){break;}oldNameParts.shift();}path.push(...nameParts.slice(oldNameParts.length));}return path.join('.');}// Note that owner is actually required in this scenario, but since it is strictly\n// optional in other contexts trying to make it required here confuses TS.\nconstructor(owner){super(owner);/**\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            */// Set with reopen to allow overriding via extend\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 `history` by the `locationType` setting of `/config/environment.js`\n               @property location\n              @default 'hash'\n              @see {Location}\n              @public\n            */// Set with reopen to allow overriding via extend\n_defineProperty(this,\"_routerMicrolib\",void 0);_defineProperty(this,\"_didSetupRouter\",false);_defineProperty(this,\"_initialTransitionStarted\",false);_defineProperty(this,\"currentURL\",null);_defineProperty(this,\"currentRouteName\",null);_defineProperty(this,\"currentPath\",null);_defineProperty(this,\"currentRoute\",null);_defineProperty(this,\"_qpCache\",Object.create(null));// Set of QueryParam['urlKey']\n_defineProperty(this,\"_qpUpdates\",new Set());_defineProperty(this,\"_queuedQPChanges\",{});_defineProperty(this,\"_bucketCache\",void 0);_defineProperty(this,\"_toplevelView\",null);_defineProperty(this,\"_handledErrors\",new Set());_defineProperty(this,\"_engineInstances\",Object.create(null));_defineProperty(this,\"_engineInfoByRoute\",Object.create(null));_defineProperty(this,\"_routerService\",void 0);_defineProperty(this,\"_slowTransitionTimer\",null);_defineProperty(this,\"namespace\",void 0);_defineProperty(this,\"currentState\",null);_defineProperty(this,\"targetState\",null);!owner&&assert$1('BUG: Missing owner',owner);this._resetQueuedQueryParameterChanges();this.namespace=owner.lookup('application:main');let bucketCache=owner.lookup(privatize`-bucket-cache:main`);!(bucketCache instanceof BucketCache)&&assert$1('BUG: BucketCache should always be present',bucketCache instanceof BucketCache);this._bucketCache=bucketCache;let routerService=owner.lookup('service:router');!(routerService!==undefined)&&assert$1('BUG: RouterService should always be present',routerService!==undefined);this._routerService=routerService;}_initRouterJs(){let location=get$2(this,'location');let router=this;const owner=getOwner$1(this);!owner&&assert$1('Router is unexpectedly missing an owner',owner);let seen=Object.create(null);class PrivateRouter extends Router{getRoute(name){let routeName=name;let routeOwner=owner;let engineInfo=router._engineInfoByRoute[routeName];if(engineInfo){let engineInstance=router._getEngineInstance(engineInfo);routeOwner=engineInstance;routeName=engineInfo.localFullName;}let fullRouteName=`route:${routeName}`;!routeOwner&&assert$1('Route is unexpectedly missing an owner',routeOwner);let route=routeOwner.lookup(fullRouteName);if(seen[name]){!route&&assert$1('seen routes should exist',route);return route;}seen[name]=true;if(!route){// SAFETY: this is configured in `commonSetupRegistry` in the\n// `@ember/application/lib` package.\nlet DefaultRoute=routeOwner.factoryFor('route:basic').class;routeOwner.register(fullRouteName,DefaultRoute.extend());route=routeOwner.lookup(fullRouteName);{if(router.namespace.LOG_ACTIVE_GENERATION){info(`generated -> ${fullRouteName}`,{fullName:fullRouteName});}}}route._setRouteName(routeName);if(engineInfo&&!hasDefaultSerialize(route)){throw new Error('Defining a custom serialize method on an Engine route is not supported.');}return route;}getSerializer(name){let engineInfo=router._engineInfoByRoute[name];// If this is not an Engine route, we fall back to the handler for serialization\nif(!engineInfo){return;}return engineInfo.serializeMethod||defaultSerialize;}updateURL(path){once(()=>{location.setURL(path);set(router,'currentURL',path);});}// TODO: merge into routeDidChange\ndidTransition(infos){!(router.didTransition===defaultDidTransition)&&assert$1('You attempted to override the \"didTransition\" method which has been deprecated. Please inject the router service and listen to the \"routeDidChange\" event.',router.didTransition===defaultDidTransition);router.didTransition(infos);}// TODO: merge into routeWillChange\nwillTransition(oldInfos,newInfos){!(router.willTransition===defaultWillTransition)&&assert$1('You attempted to override the \"willTransition\" method which has been deprecated. Please inject the router service and listen to the \"routeWillChange\" event.',router.willTransition===defaultWillTransition);router.willTransition(oldInfos,newInfos);}triggerEvent(routeInfos,ignoreFailure,name,args){return triggerEvent.bind(router)(routeInfos,ignoreFailure,name,args);}routeWillChange(transition){router.trigger('routeWillChange',transition);{freezeRouteInfo(transition);}router._routerService.trigger('routeWillChange',transition);// in case of intermediate transition we update the current route\n// to make router.currentRoute.name consistent with router.currentRouteName\n// see https://github.com/emberjs/ember.js/issues/19449\nif(transition.isIntermediate){router.set('currentRoute',transition.to);}}routeDidChange(transition){router.set('currentRoute',transition.to);once(()=>{router.trigger('routeDidChange',transition);{freezeRouteInfo(transition);}router._routerService.trigger('routeDidChange',transition);});}transitionDidError(error,transition){if(error.wasAborted||transition.isAborted){// If the error was a transition erorr or the transition aborted\n// log the abort.\nreturn logAbort(transition);}else{// Otherwise trigger the \"error\" event to attempt an intermediate\n// transition into an error substate\ntransition.trigger(false,'error',error.error,transition,error.route);if(router._isErrorHandled(error.error)){// 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.\ntransition.rollback();this.routeDidChange(transition);return error.error;}else{// If it was not handled, abort the transition completely and return\n// the error.\ntransition.abort();return error.error;}}}replaceURL(url){if(location.replaceURL){let doReplaceURL=()=>{location.replaceURL(url);set(router,'currentURL',url);};once(doReplaceURL);}else{this.updateURL(url);}}}let routerMicrolib=this._routerMicrolib=new PrivateRouter();let dslCallbacks=this.constructor.dslCallbacks||[K];let dsl=this._buildDSL();dsl.route('application',{path:'/',resetNamespace:true,overrideNameAssertion:true},function(){for(let i=0;i<dslCallbacks.length;i++){dslCallbacks[i].call(this);}});{if(this.namespace.LOG_TRANSITIONS_INTERNAL){routerMicrolib.log=console.log.bind(console);// eslint-disable-line no-console\n}}routerMicrolib.map(dsl.generate());}_buildDSL(){let enableLoadingSubstates=this._hasModuleBasedResolver();let router=this;const owner=getOwner$1(this);!owner&&assert$1('Router is unexpectedly missing an owner',owner);let options={enableLoadingSubstates,resolveRouteMap(name){return owner.factoryFor(`route-map:${name}`);},addRouteForEngine(name,engineInfo){if(!router._engineInfoByRoute[name]){router._engineInfoByRoute[name]=engineInfo;}}};return new DSLImpl(null,options);}/*\n              Resets all pending query parameter changes.\n              Called after transitioning to a new route\n              based on query parameter changes.\n            */_resetQueuedQueryParameterChanges(){this._queuedQPChanges={};}_hasModuleBasedResolver(){let owner=getOwner$1(this);!owner&&assert$1('Router is unexpectedly missing an owner',owner);let resolver=get$2(owner,'application.__registry__.resolver.moduleBasedResolver');return Boolean(resolver);}/**\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            */startRouting(){if(this.setupRouter()){let initialURL=get$2(this,'initialURL');if(initialURL===undefined){initialURL=get$2(this,'location').getURL();}let initialTransition=this.handleURL(initialURL);if(initialTransition&&initialTransition.error){throw initialTransition.error;}}}setupRouter(){if(this._didSetupRouter){return false;}this._didSetupRouter=true;this._setupLocation();let location=get$2(this,'location');// Allow the Location class to cancel the router setup while it refreshes\n// the page\nif(get$2(location,'cancelRouterSetup')){return false;}this._initRouterJs();location.onUpdateURL(url=>{this.handleURL(url);});return true;}_setOutlets(){// 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)\nif(this.isDestroying||this.isDestroyed){return;}let routeInfos=this._routerMicrolib.currentRouteInfos;if(!routeInfos){return;}let root=null;let parent=null;for(let routeInfo of routeInfos){let route=routeInfo.route;let render=getRenderState(route);if(render){let state={render,outlets:{main:undefined}};if(parent){parent.outlets.main=state;}else{root=state;}parent=state;}else{// It used to be that we would create a stub entry and keep traversing,\n// but I don't think that is necessary anymore – if a parent route did\n// not render, then the child routes have nowhere to render into these\n// days. That wasn't always the case since in the past any route can\n// render into any other route's outlets.\nbreak;}}// 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\nif(root===null){return;}if(!this._toplevelView){let owner=getOwner$1(this);!owner&&assert$1('Router is unexpectedly missing an owner',owner);// SAFETY: we don't presently have any type registries internally to make\n// this safe, so in each of these cases we assume that nothing *else* is\n// registered at this `FullName`, and simply check to make sure that\n// *something* is.\nlet OutletView=owner.factoryFor('view:-outlet');!(OutletView!==undefined)&&assert$1('[BUG] unexpectedly missing `view:-outlet`',OutletView!==undefined);let application=owner.lookup('application:main');!(application!==undefined)&&assert$1('[BUG] unexpectedly missing `application:-main`',application!==undefined);let environment=owner.lookup('-environment:main');!(environment!==undefined)&&assert$1('[BUG] unexpectedly missing `-environment:main`',environment!==undefined);let template=owner.lookup('template:-outlet');!(template!==undefined)&&assert$1('[BUG] unexpectedly missing `template:-outlet`',template!==undefined);this._toplevelView=OutletView.create({environment,template,application});this._toplevelView.setOutletState(root);// TODO(SAFETY): At least one test runs without this set correctly. At a\n// later time, update the test to configure this correctly. The test ID:\n// `Router Service - non application test:  RouterService#transitionTo with basic route`\nlet instance=owner.lookup('-application-instance:main');// let instance = owner.lookup('-application-instance:main') as ApplicationInstance | undefined;\n// assert('[BUG] unexpectedly missing `-application-instance:main`', instance !== undefined);\nif(instance){// SAFETY: LOL. This is calling a deprecated API with a type that we\n// cannot actually confirm at a type level *is* a `ViewMixin`. Seems:\n// not great on multiple fronts!\ninstance.didCreateRootView(this._toplevelView);}}else{this._toplevelView.setOutletState(root);}}handleURL(url){// 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.\nlet _url=url.split(/#(.+)?/)[0];return this._doURLTransition('handleURL',_url);}_doURLTransition(routerJsMethod,url){this._initialTransitionStarted=true;let transition=this._routerMicrolib[routerJsMethod](url||'/');didBeginTransition(transition,this);return transition;}/**\n              Transition the application into another route. The route may\n              be either a single route or route path:\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            */transitionTo(){for(var _len62=arguments.length,args=new Array(_len62),_key63=0;_key63<_len62;_key63++){args[_key63]=arguments[_key63];}if(resemblesURL(args[0])){!(!this.isDestroying&&!this.isDestroyed)&&assert$1(`A transition was attempted from '${this.currentRouteName}' to '${args[0]}' but the application instance has already been destroyed.`,!this.isDestroying&&!this.isDestroyed);return this._doURLTransition('transitionTo',args[0]);}let{routeName,models,queryParams}=extractRouteArgs(args);!(!this.isDestroying&&!this.isDestroyed)&&assert$1(`A transition was attempted from '${this.currentRouteName}' to '${routeName}' but the application instance has already been destroyed.`,!this.isDestroying&&!this.isDestroyed);return this._doTransition(routeName,models,queryParams);}intermediateTransitionTo(name){for(var _len63=arguments.length,args=new Array(_len63>1?_len63-1:0),_key64=1;_key64<_len63;_key64++){args[_key64-1]=arguments[_key64];}this._routerMicrolib.intermediateTransitionTo(name,...args);updatePaths(this);{let infos=this._routerMicrolib.currentRouteInfos;if(this.namespace.LOG_TRANSITIONS){!infos&&assert$1('expected infos to be set',infos);// eslint-disable-next-line no-console\nconsole.log(`Intermediate-transitioned into '${EmberRouter._routePath(infos)}'`);}}}/**\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               @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              @public\n            */replaceWith(){return this.transitionTo(...arguments).method('replace');}generate(name){for(var _len64=arguments.length,args=new Array(_len64>1?_len64-1:0),_key65=1;_key65<_len64;_key65++){args[_key65-1]=arguments[_key65];}let url=this._routerMicrolib.generate(name,...args);!(typeof this.location!=='string')&&assert$1('expected non-string location',typeof this.location!=='string');return this.location.formatURL(url);}/**\n              Determines if the supplied route is currently active.\n               @method isActive\n              @param routeName\n              @return {Boolean}\n              @private\n            */isActive(routeName){return this._routerMicrolib.isActive(routeName);}/**\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            */isActiveIntent(routeName,models,queryParams){return this.currentState.isActiveIntent(routeName,models,queryParams);}send(name){for(var _len65=arguments.length,args=new Array(_len65>1?_len65-1:0),_key66=1;_key66<_len65;_key66++){args[_key66-1]=arguments[_key66];}/*name, context*/this._routerMicrolib.trigger(name,...args);}/**\n              Does this router instance have the given route.\n               @method hasRoute\n              @return {Boolean}\n              @private\n            */hasRoute(route){return this._routerMicrolib.hasRoute(route);}/**\n              Resets the state of the router by clearing the current route\n              handlers and deactivating them.\n               @private\n              @method reset\n             */reset(){this._didSetupRouter=false;this._initialTransitionStarted=false;if(this._routerMicrolib){this._routerMicrolib.reset();}}willDestroy(){if(this._toplevelView){this._toplevelView.destroy();this._toplevelView=null;}super.willDestroy();this.reset();let instances=this._engineInstances;for(let name in instances){let instanceMap=instances[name];!instanceMap&&assert$1('has instanceMap',instanceMap);for(let id in instanceMap){let instance=instanceMap[id];!instance&&assert$1('has instance',instance);run$1(instance,'destroy');}}}/*\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            */_activeQPChanged(queryParameterName,newValue){this._queuedQPChanges[queryParameterName]=newValue;once(this,this._fireQueryParamTransition);}// The queryParameterName is QueryParam['urlKey']\n_updatingQPChanged(queryParameterName){this._qpUpdates.add(queryParameterName);}/*\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            */_fireQueryParamTransition(){this.transitionTo({queryParams:this._queuedQPChanges});this._resetQueuedQueryParameterChanges();}_setupLocation(){let location=this.location;let rootURL=this.rootURL;let owner=getOwner$1(this);!owner&&assert$1('Router is unexpectedly missing an owner',owner);if('string'===typeof location){let resolvedLocation=owner.lookup(`location:${location}`);!resolvedLocation&&assert$1(`Could not resolve a location class at 'location:${location}'`,resolvedLocation);location=set(this,'location',resolvedLocation);}if(location!==null&&typeof location==='object'){if(rootURL){set(location,'rootURL',rootURL);}// ensure that initState is called AFTER the rootURL is set on\n// the location instance\nif(typeof location.initState==='function'){location.initState();}}}/**\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            */_serializeQueryParams(routeInfos,queryParams){forEachQueryParam(this,routeInfos,queryParams,(key,value,qp)=>{if(qp){delete queryParams[key];queryParams[qp.urlKey]=qp.route.serializeQueryParam(value,qp.urlKey,qp.type);}else if(value===undefined){return;// We don't serialize undefined values\n}else{queryParams[key]=this._serializeQueryParam(value,typeOf(value));}});}/**\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            */_serializeQueryParam(value,type){if(value===null||value===undefined){return value;}else if(type==='array'){return JSON.stringify(value);}return`${value}`;}/**\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            */_deserializeQueryParams(routeInfos,queryParams){forEachQueryParam(this,routeInfos,queryParams,(key,value,qp)=>{// 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\nif(qp){delete queryParams[key];queryParams[qp.prop]=qp.route.deserializeQueryParam(value,qp.urlKey,qp.type);}});}/**\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            */_deserializeQueryParam(value,defaultType){if(value===null||value===undefined){return value;}else if(defaultType==='boolean'){return value==='true';}else if(defaultType==='number'){return Number(value).valueOf();}else if(defaultType==='array'){return A(JSON.parse(value));}return value;}/**\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            */_pruneDefaultQueryParamValues(routeInfos,queryParams){let qps=this._queryParamsFor(routeInfos);for(let key in queryParams){let qp=qps.map[key];if(qp&&qp.serializedDefaultValue===queryParams[key]){delete queryParams[key];}}}_doTransition(_targetRouteName,models,_queryParams,_fromRouterService){let targetRouteName=_targetRouteName||getActiveTargetName(this._routerMicrolib);!(Boolean(targetRouteName)&&this._routerMicrolib.hasRoute(targetRouteName))&&assert$1(`The route ${targetRouteName} was not found`,Boolean(targetRouteName)&&this._routerMicrolib.hasRoute(targetRouteName));this._initialTransitionStarted=true;let queryParams={};this._processActiveTransitionQueryParams(targetRouteName,models,queryParams,_queryParams);Object.assign(queryParams,_queryParams);this._prepareQueryParams(targetRouteName,models,queryParams,Boolean(_fromRouterService));let transition=this._routerMicrolib.transitionTo(targetRouteName,...models,{queryParams});didBeginTransition(transition,this);return transition;}_processActiveTransitionQueryParams(targetRouteName,models,queryParams,_queryParams){// merge in any queryParams from the active transition which could include\n// queryParams from the url on initial load.\nif(!this._routerMicrolib.activeTransition){return;}let unchangedQPs={};let qpUpdates=this._qpUpdates;let params=getFullQueryParams(this,this._routerMicrolib.activeTransition[STATE_SYMBOL]);for(let key in params){if(!qpUpdates.has(key)){unchangedQPs[key]=params[key];}}// 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.\nthis._fullyScopeQueryParams(targetRouteName,models,_queryParams);this._fullyScopeQueryParams(targetRouteName,models,unchangedQPs);Object.assign(queryParams,unchangedQPs);}/**\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            */_prepareQueryParams(targetRouteName,models,queryParams,_fromRouterService){let state=calculatePostTransitionState(this,targetRouteName,models);this._hydrateUnsuppliedQueryParams(state,queryParams,Boolean(_fromRouterService));this._serializeQueryParams(state.routeInfos,queryParams);if(!_fromRouterService){this._pruneDefaultQueryParamValues(state.routeInfos,queryParams);}}/**\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            */_getQPMeta(routeInfo){let route=routeInfo.route;return route&&get$2(route,'_qp');}/**\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             */_queryParamsFor(routeInfos){let routeInfoLength=routeInfos.length;let leafRouteName=routeInfos[routeInfoLength-1].name;let cached=this._qpCache[leafRouteName];if(cached!==undefined){return cached;}let shouldCache=true;let map={};let qps=[];let qpsByUrlKey={};let qpMeta;let urlKey;let qpOther;for(let routeInfo of routeInfos){qpMeta=this._getQPMeta(routeInfo);if(!qpMeta){shouldCache=false;continue;}// Loop over each QP to make sure we don't have any collisions by urlKey\nfor(let qp of qpMeta.qps){{urlKey=qp.urlKey;qpOther=qpsByUrlKey[urlKey];if(qpOther&&qpOther.controllerName!==qp.controllerName){assert$1(`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);}qpsByUrlKey[urlKey]=qp;}qps.push(qp);}Object.assign(map,qpMeta.map);}let finalQPMeta={qps,map};if(shouldCache){this._qpCache[leafRouteName]=finalQPMeta;}return finalQPMeta;}/**\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            */_fullyScopeQueryParams(leafRouteName,contexts,queryParams){let state=calculatePostTransitionState(this,leafRouteName,contexts);let routeInfos=state.routeInfos;let qpMeta;for(let routeInfo of routeInfos){qpMeta=this._getQPMeta(routeInfo);if(!qpMeta){continue;}for(let qp of qpMeta.qps){let presentProp=qp.prop in queryParams&&qp.prop||qp.scopedPropertyName in queryParams&&qp.scopedPropertyName||qp.urlKey in queryParams&&qp.urlKey;if(presentProp){if(presentProp!==qp.scopedPropertyName){queryParams[qp.scopedPropertyName]=queryParams[presentProp];delete queryParams[presentProp];}}}}}/**\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            */_hydrateUnsuppliedQueryParams(state,queryParams,_fromRouterService){let routeInfos=state.routeInfos;let appCache=this._bucketCache;let qpMeta;let qp;let presentProp;for(let routeInfo of routeInfos){qpMeta=this._getQPMeta(routeInfo);if(!qpMeta){continue;}// Needs to stay for index loop to avoid throwIfClosureRequired\nfor(let j=0,qpLen=qpMeta.qps.length;j<qpLen;++j){qp=qpMeta.qps[j];!qp&&assert$1('expected qp',qp);presentProp=qp.prop in queryParams&&qp.prop||qp.scopedPropertyName in queryParams&&qp.scopedPropertyName||qp.urlKey in queryParams&&qp.urlKey;!function(){if(qp.urlKey===presentProp||qp.scopedPropertyName===presentProp){return true;}if(_fromRouterService&&presentProp!==false&&qp.urlKey!==qp.prop){// 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\nreturn false;}return true;}()&&assert$1(`You passed the \\`${presentProp}\\` query parameter during a transition into ${qp.route.routeName}, please update to ${qp.urlKey}`,function(){if(qp.urlKey===presentProp||qp.scopedPropertyName===presentProp){return true;}if(_fromRouterService&&presentProp!==false&&qp.urlKey!==qp.prop){return false;}return true;}());if(presentProp){if(presentProp!==qp.scopedPropertyName){queryParams[qp.scopedPropertyName]=queryParams[presentProp];delete queryParams[presentProp];}}else{let cacheKey=calculateCacheKey(qp.route.fullRouteName,qp.parts,state.params);!appCache&&assert$1('ROUTER BUG: expected appCache to be defined. This is an internal bug, please open an issue on Github if you see this message!',appCache);queryParams[qp.scopedPropertyName]=appCache.lookup(cacheKey,qp.prop,qp.defaultValue);}}}}_scheduleLoadingEvent(transition,originRoute){this._cancelSlowTransitionTimer();this._slowTransitionTimer=scheduleOnce('routerTransitions',this,this._handleSlowTransition,transition,originRoute);}_handleSlowTransition(transition,originRoute){if(!this._routerMicrolib.activeTransition){// Don't fire an event if we've since moved on from\n// the transition that put us in a loading state.\nreturn;}let targetState=new RouterState(this,this._routerMicrolib,this._routerMicrolib.activeTransition[STATE_SYMBOL]);this.set('targetState',targetState);transition.trigger(true,'loading',transition,originRoute);}_cancelSlowTransitionTimer(){if(this._slowTransitionTimer){cancel(this._slowTransitionTimer);}this._slowTransitionTimer=null;}// 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_markErrorAsHandled(error){this._handledErrors.add(error);}_isErrorHandled(error){return this._handledErrors.has(error);}_clearHandledError(error){this._handledErrors.delete(error);}_getEngineInstance(_ref147){let{name,instanceId,mountPoint}=_ref147;let engineInstances=this._engineInstances;let namedInstances=engineInstances[name];if(!namedInstances){namedInstances=Object.create(null);engineInstances[name]=namedInstances;}// We just set these!\n!namedInstances&&assert$1('has namedInstances',namedInstances);let engineInstance=namedInstances[instanceId];if(!engineInstance){let owner=getOwner$1(this);!(owner instanceof EngineInstance)&&assert$1('Expected router to have EngineInstance as owner',owner instanceof EngineInstance);!owner.hasRegistration(`engine:${name}`)&&assert$1(`You attempted to mount the engine '${name}' in your router map, but the engine can not be found.`,owner.hasRegistration(`engine:${name}`));engineInstance=owner.buildChildEngineInstance(name,{routable:true,mountPoint});engineInstance.boot();namedInstances[instanceId]=engineInstance;}return engineInstance;}/**\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 { 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              @private\n              @since 1.2.0\n            */// Set with reopen to allow overriding via extend\n/**\n              Handles notifying any listeners of an impending URL\n              change.\n               Triggers the router level `willTransition` hook.\n               @method willTransition\n              @private\n              @since 1.11.0\n            */// Set with reopen to allow overriding via extend\n/**\n             Represents the current URL.\n               @property url\n              @type {String}\n              @private\n            */// Set with reopen to allow overriding via extend\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           */// Begin Evented\n// End Evented\n// Set with reopenClass\n_defineProperty(EmberRouter,\"dslCallbacks\",void 0);function forEachRouteAbove(routeInfos,callback){for(let i=routeInfos.length-1;i>=0;--i){let routeInfo=routeInfos[i];!routeInfo&&assert$1('has routeInfo',routeInfo);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...\nif(route===undefined){continue;}if(callback(route,routeInfo)!==true){return;}}}// These get invoked when an action bubbles above ApplicationRoute\n// and are not meant to be overridable.\nlet defaultActionHandlers={willResolveModel(_routeInfos,transition,originRoute){this._scheduleLoadingEvent(transition,originRoute);},// Attempt to find an appropriate error route or substate to enter.\nerror(routeInfos,error,transition){let router=this;let routeInfoWithError=routeInfos[routeInfos.length-1];forEachRouteAbove(routeInfos,(route,routeInfo)=>{// We don't check the leaf most routeInfo since that would\n// technically be below where we're at in the route hierarchy.\nif(routeInfo!==routeInfoWithError){// Check for the existence of an 'error' route.\nlet errorRouteName=findRouteStateName(route,'error');if(errorRouteName){router._markErrorAsHandled(error);router.intermediateTransitionTo(errorRouteName,error);return false;}}// Check for an 'error' substate route\nlet errorSubstateName=findRouteSubstateName(route,'error');if(errorSubstateName){router._markErrorAsHandled(error);router.intermediateTransitionTo(errorSubstateName,error);return false;}return true;});logError(error,`Error while processing route: ${transition.targetName}`);},// Attempt to find an appropriate loading route or substate to enter.\nloading(routeInfos,transition){let router=this;let routeInfoWithSlowLoading=routeInfos[routeInfos.length-1];forEachRouteAbove(routeInfos,(route,routeInfo)=>{// We don't check the leaf most routeInfos since that would\n// technically be below where we're at in the route hierarchy.\nif(routeInfo!==routeInfoWithSlowLoading){// Check for the existence of a 'loading' route.\nlet loadingRouteName=findRouteStateName(route,'loading');if(loadingRouteName){router.intermediateTransitionTo(loadingRouteName);return false;}}// Check for loading substate\nlet loadingSubstateName=findRouteSubstateName(route,'loading');if(loadingSubstateName){router.intermediateTransitionTo(loadingSubstateName);return false;}// Don't bubble above pivot route.\nreturn transition.pivotHandler!==route;});}};function logError(_error,initialMessage){let errorArgs=[];let error;if(_error&&typeof _error==='object'&&typeof _error.errorThrown==='object'){error=_error.errorThrown;}else{error=_error;}if(initialMessage){errorArgs.push(initialMessage);}if(error){if(error.message){errorArgs.push(error.message);}if(error.stack){errorArgs.push(error.stack);}if(typeof error==='string'){errorArgs.push(error);}}console.error(...errorArgs);//eslint-disable-line no-console\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          */function findRouteSubstateName(route,state){let owner=getOwner$1(route);!owner&&assert$1('Route is unexpectedly missing an owner',owner);let{routeName,fullRouteName,_router:router}=route;let substateName=`${routeName}_${state}`;let substateNameFull=`${fullRouteName}_${state}`;return routeHasBeenDefined(owner,router,substateName,substateNameFull)?substateNameFull:'';}/**\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          */function findRouteStateName(route,state){let owner=getOwner$1(route);!owner&&assert$1('Route is unexpectedly missing an owner',owner);let{routeName,fullRouteName,_router:router}=route;let stateName=routeName==='application'?state:`${routeName}.${state}`;let stateNameFull=fullRouteName==='application'?state:`${fullRouteName}.${state}`;return routeHasBeenDefined(owner,router,stateName,stateNameFull)?stateNameFull:'';}/**\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          */function routeHasBeenDefined(owner,router,localName,fullName){let routerHasRoute=router.hasRoute(fullName);let ownerHasRoute=owner.factoryFor(`template:${localName}`)||owner.factoryFor(`route:${localName}`);return routerHasRoute&&ownerHasRoute;}function triggerEvent(routeInfos,ignoreFailure,name,args){if(!routeInfos){if(ignoreFailure){return;}// TODO: update?\nthrow new Error(`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.`);}let eventWasHandled=false;let routeInfo,handler,actionHandler;for(let i=routeInfos.length-1;i>=0;i--){routeInfo=routeInfos[i];!routeInfo&&assert$1('[BUG] Missing routeInfo',routeInfo);handler=routeInfo.route;actionHandler=handler&&handler.actions&&handler.actions[name];if(actionHandler){if(actionHandler.apply(handler,args)===true){eventWasHandled=true;}else{// Should only hit here if a non-bubbling error action is triggered on a route.\nif(name==='error'){!handler&&assert$1('[BUG] Missing handler',handler);handler._router._markErrorAsHandled(args[0]);}return;}}}let defaultHandler=defaultActionHandlers[name];if(defaultHandler){defaultHandler.call(this,routeInfos,...args);return;}if(!eventWasHandled&&!ignoreFailure){throw new Error(`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.`);}}function calculatePostTransitionState(emberRouter,leafRouteName,contexts){let state=emberRouter._routerMicrolib.applyIntent(leafRouteName,contexts);let{routeInfos,params}=state;for(let routeInfo of routeInfos){// If the routeInfo is not resolved, we serialize the context into params\nif(!routeInfo.isResolved){params[routeInfo.name]=routeInfo.serialize(routeInfo.context);}else{params[routeInfo.name]=routeInfo.params;}}return state;}function updatePaths(router){let infos=router._routerMicrolib.currentRouteInfos;if(infos.length===0){return;}let path=EmberRouter._routePath(infos);let info=infos[infos.length-1];!info&&assert$1('expected info',info);let currentRouteName=info.name;let location=router.location;!(typeof location!=='string')&&assert$1('expected location to not be a string',typeof location!=='string');let currentURL=location.getURL();set(router,'currentPath',path);set(router,'currentRouteName',currentRouteName);set(router,'currentURL',currentURL);}function didBeginTransition(transition,router){let routerState=new RouterState(router,router._routerMicrolib,transition[STATE_SYMBOL]);if(!router.currentState){router.set('currentState',routerState);}router.set('targetState',routerState);transition.promise=transition.catch(error=>{if(router._isErrorHandled(error)){router._clearHandledError(error);}else{throw error;}},'Transition Error');}function forEachQueryParam(router,routeInfos,queryParams,callback){let qpCache=router._queryParamsFor(routeInfos);for(let key in queryParams){if(!Object.prototype.hasOwnProperty.call(queryParams,key)){continue;}let value=queryParams[key];let qp=qpCache.map[key];callback(key,value,qp);}}EmberRouter.reopen({didTransition:defaultDidTransition,willTransition:defaultWillTransition,rootURL:'/',location:'hash',// FIXME: Does this need to be overrideable via extend?\nurl:computed(function(){let location=get$2(this,'location');if(typeof location==='string'){return undefined;}return location.getURL();})});const emberRoutingRouter=/*#__PURE__*/Object.defineProperty({__proto__:null,default:EmberRouter,triggerEvent},Symbol.toStringTag,{value:'Module'});/**\n           * @module @ember/routing/router-service\n           */const ROUTER=Symbol('ROUTER');function cleanURL(url,rootURL){if(rootURL==='/'){return url;}return url.substring(rootURL.length);}/**\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 { 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           */var _currentRouteName=/*#__PURE__*/new WeakMap();var _currentURL=/*#__PURE__*/new WeakMap();var _location=/*#__PURE__*/new WeakMap();var _rootURL=/*#__PURE__*/new WeakMap();var _currentRoute=/*#__PURE__*/new WeakMap();class RouterService extends Service.extend(Evented){constructor(){super(...arguments);_defineProperty(this,ROUTER,void 0);_classPrivateFieldInitSpec(this,_currentRouteName,(initializeDeferredDecorator(this,\"currentRouteName\"),void 0));_classPrivateFieldInitSpec(this,_currentURL,(initializeDeferredDecorator(this,\"currentURL\"),void 0));_classPrivateFieldInitSpec(this,_location,(initializeDeferredDecorator(this,\"location\"),void 0));_classPrivateFieldInitSpec(this,_rootURL,(initializeDeferredDecorator(this,\"rootURL\"),void 0));_classPrivateFieldInitSpec(this,_currentRoute,(initializeDeferredDecorator(this,\"currentRoute\"),void 0));}get _router(){let router=this[ROUTER];if(router!==undefined){return router;}let owner=getOwner$2(this);!owner&&assert$1('RouterService is unexpectedly missing an owner',owner);let _router=owner.lookup('router:main');!(_router instanceof EmberRouter)&&assert$1('ROUTER SERVICE BUG: Expected router to be an instance of EmberRouter',_router instanceof EmberRouter);return this[ROUTER]=_router;}willDestroy(){super.willDestroy();this[ROUTER]=undefined;}/**\n               Transition the application into another route. The route may\n               be either a single route or route path:\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 { 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             */transitionTo(){for(var _len66=arguments.length,args=new Array(_len66),_key67=0;_key67<_len66;_key67++){args[_key67]=arguments[_key67];}if(resemblesURL(args[0])){// 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.\nreturn this._router._doURLTransition('transitionTo',args[0]);}let{routeName,models,queryParams}=extractRouteArgs(args);let transition=this._router._doTransition(routeName,models,queryParams,true);return transition;}/**\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                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               import { service } from '@ember/service';\n                export default class extends Route {\n                 @service router;\n                 beforeModel() {\n                   if (!authorized()){\n                     this.router.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             */replaceWith(){return this.transitionTo(...arguments).method('replace');}/**\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 { 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 { 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) for 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             */urlFor(routeName){this._router.setupRouter();for(var _len67=arguments.length,args=new Array(_len67>1?_len67-1:0),_key68=1;_key68<_len67;_key68++){args[_key68-1]=arguments[_key68];}return this._router.generate(routeName,...args);}/**\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 { service } from '@ember/service';\n                export default class extends Component {\n                 @service router;\n                  displayComments() {\n                   return this.router.isActive('posts');\n                 }\n               });\n               ```\n                The next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,\n               assuming the post has an id of 1:\n                ```app/components/posts.js\n               import Component from '@glimmer/component';\n               import { service } from '@ember/service';\n                export default class extends Component {\n                 @service router;\n                  displayComments(post) {\n                   return this.router.isActive('posts', post.id);\n                 }\n               });\n               ```\n                Where `post.id` is the id of a specific post, which is represented in the route as /posts/[post.id].\n               If `post.id` is equal to 1, then isActive will return true if the current route is /posts/1, and false if the route is anything else.\n                @method isActive\n               @param {String} routeName the name of the route\n               @param {...Object} models the model(s) or identifier(s) to be used when determining the active route.\n               @param {Object} [options] optional hash with a queryParams property\n                 containing a mapping of query parameters\n               @return {boolean} true if the provided routeName/models/queryParams are active\n               @public\n             */isActive(){for(var _len68=arguments.length,args=new Array(_len68),_key69=0;_key69<_len68;_key69++){args[_key69]=arguments[_key69];}let{routeName,models,queryParams}=extractRouteArgs(args);let routerMicrolib=this._router._routerMicrolib;// When using isActive() in a getter, we want to entagle with the auto-tracking system\n// for example,\n// in\n// get isBarActive() {\n//   return isActive('foo.bar');\n// }\n//\n// you'd expect isBarActive to be dirtied when the route changes.\n//\n// https://github.com/emberjs/ember.js/issues/19004\nconsumeTag(tagFor(this._router,'currentURL'));// UNSAFE: casting `routeName as string` here encodes the existing\n// assumption but may be wrong: `extractRouteArgs` correctly returns it as\n// `string | undefined`. There may be bugs if `isActiveIntent` does\n// not correctly account for `undefined` values for `routeName`. Spoilers:\n// it *does not* account for this being `undefined`.\nif(!routerMicrolib.isActiveIntent(routeName,models)){return false;}let hasQueryParams=Object.keys(queryParams).length>0;if(hasQueryParams){// 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`.\nlet targetRouteName=routeName;queryParams=Object.assign({},queryParams);this._router._prepareQueryParams(targetRouteName,models,queryParams,true/* fromRouterService */);let currentQueryParams=Object.assign({},routerMicrolib.state.queryParams);this._router._prepareQueryParams(targetRouteName,models,currentQueryParams,true/* fromRouterService */);return shallowEqual(queryParams,currentQueryParams);}return true;}/**\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 { 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                @return {RouteInfo | null}\n                @public\n              */recognize(url){!(url.indexOf(this.rootURL)===0)&&assert$1(`You must pass a url that begins with the application's rootURL \"${this.rootURL}\"`,url.indexOf(this.rootURL)===0);this._router.setupRouter();let internalURL=cleanURL(url,this.rootURL);return this._router._routerMicrolib.recognize(internalURL);}/**\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                @return {RouteInfo}\n                @public\n             */recognizeAndLoad(url){!(url.indexOf(this.rootURL)===0)&&assert$1(`You must pass a url that begins with the application's rootURL \"${this.rootURL}\"`,url.indexOf(this.rootURL)===0);this._router.setupRouter();let internalURL=cleanURL(url,this.rootURL);return this._router._routerMicrolib.recognizeAndLoad(internalURL);}/**\n              You can register a listener for events emitted by this service with `.on()`:\n               ```app/routes/contact-form.js\n              import Route from '@ember/routing';\n              import { service } from '@ember/service';\n               export default class extends Route {\n                @service router;\n                 activate() {\n                  this.router.on('routeWillChange', (transition) => {\n                    if (!transition.to.find(route => route.name === this.routeName)) {\n                      alert(\"Please save or cancel your changes.\");\n                      transition.abort();\n                    }\n                  })\n                }\n              }\n              ```\n               @method on\n              @param {String} eventName\n              @param {Function} callback\n              @public\n            *//**\n              You can unregister a listener for events emitted by this service with `.off()`:\n               ```app/routes/contact-form.js\n              import Route from '@ember/routing';\n              import { service } from '@ember/service';\n               export default class ContactFormRoute extends Route {\n                @service router;\n                 callback = (transition) => {\n                  if (!transition.to.find(route => route.name === this.routeName)) {\n                    alert('Please save or cancel your changes.');\n                    transition.abort();\n                  }\n                };\n                 activate() {\n                  this.router.on('routeWillChange', this.callback);\n                }\n                 deactivate() {\n                  this.router.off('routeWillChange', this.callback);\n                }\n              }\n              ```\n               @method off\n              @param {String} eventName\n              @param {Function} callback\n              @public\n            *//**\n              The `routeWillChange` event 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';\n              import { service } from '@ember/service';\n               export default class extends Route {\n                @service router;\n                 activate() {\n                  this.router.on('routeWillChange', (transition) => {\n                    if (!transition.to.find(route => route.name === this.routeName)) {\n                      alert(\"Please save or cancel your changes.\");\n                      transition.abort();\n                    }\n                  })\n                }\n              }\n              ```\n               The `routeWillChange` event fires whenever a new route is chosen as the desired target of a transition. This includes `transitionTo`, `replaceWith`, all redirection for any reason including error handling, and abort. Aborting implies changing the desired target back to where you already were. Once a transition has completed, `routeDidChange` fires.\n               @event routeWillChange\n              @param {Transition} transition\n              @public\n            *//**\n              The `routeDidChange` event only fires once a transition has settled.\n              This includes aborts and error substates. Like the `routeWillChange` event\n              it receives a Transition as the sole argument.\n               A good example is sending some analytics when the route has transitioned:\n               ```app/routes/contact-form.js\n              import Route from '@ember/routing';\n              import { service } from '@ember/service';\n               export default class extends Route {\n                @service router;\n                 activate() {\n                  this.router.on('routeDidChange', (transition) => {\n                    ga.send('pageView', {\n                      current: transition.to.name,\n                      from: transition.from.name\n                    });\n                  })\n                }\n              }\n              ```\n               `routeDidChange` will be called after any `Route`'s\n              [didTransition](/ember/release/classes/Route/events/didTransition?anchor=didTransition)\n              action has been fired.\n              The updates of properties\n              [currentURL](/ember/release/classes/RouterService/properties/currentURL?anchor=currentURL),\n              [currentRouteName](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRouteName)\n              and\n              [currentRoute](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRoute)\n              are completed at the time `routeDidChange` is called.\n               @event routeDidChange\n              @param {Transition} transition\n              @public\n            *//**\n             * Refreshes all currently active routes, doing a full transition.\n             * If a route name is provided and refers to a currently active route,\n             * it will refresh only that route and its descendents.\n             * Returns a promise that will be resolved once the refresh is complete.\n             * All resetController, beforeModel, model, afterModel, redirect, and setupController\n             * hooks will be called again. You will get new data from the model hook.\n             *\n             * @method refresh\n             * @param {String} [routeName] the route to refresh (along with all child routes)\n             * @return Transition\n             * @public\n             */refresh(pivotRouteName){if(!pivotRouteName){return this._router._routerMicrolib.refresh();}!this._router.hasRoute(pivotRouteName)&&assert$1(`The route \"${pivotRouteName}\" was not found`,this._router.hasRoute(pivotRouteName));!this.isActive(pivotRouteName)&&assert$1(`The route \"${pivotRouteName}\" is currently not active`,this.isActive(pivotRouteName));let owner=getOwner$2(this);!owner&&assert$1('RouterService is unexpectedly missing an owner',owner);let pivotRoute=owner.lookup(`route:${pivotRouteName}`);return this._router._routerMicrolib.refresh(pivotRoute);}/**\n             Name of the current route.\n               This property represents the logical name of the route,\n              which is dot 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 | null}\n              @public\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 { 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            */}_RouterService=RouterService;decorateFieldV2(_RouterService.prototype,\"currentRouteName\",[readOnly('_router.currentRouteName')]);decorateFieldV2(_RouterService.prototype,\"currentURL\",[readOnly('_router.currentURL')]);/**\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            */decorateFieldV2(_RouterService.prototype,\"location\",[readOnly('_router.location')]);/**\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              `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               @property location\n              @default 'hash'\n              @see {Location}\n              @public\n            */decorateFieldV2(_RouterService.prototype,\"rootURL\",[readOnly('_router.rootURL')]);/**\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            */decorateFieldV2(_RouterService.prototype,\"currentRoute\",[readOnly('_router.currentRoute')]);const emberRoutingRouterService=/*#__PURE__*/Object.defineProperty({__proto__:null,ROUTER,default:RouterService},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          *//**\n            The Routing service is used by LinkTo, 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          */class RoutingService extends Service{constructor(){super(...arguments);_defineProperty(this,ROUTER,void 0);}get router(){let router=this[ROUTER];if(router!==undefined){return router;}let owner=getOwner$2(this);!owner&&assert$1('RoutingService is unexpectedly missing an owner',owner);let _router=owner.lookup('router:main');!(_router instanceof EmberRouter)&&assert$1('ROUTING SERVICE BUG: Expected router to be an instance of EmberRouter',_router instanceof EmberRouter);_router.setupRouter();return this[ROUTER]=_router;}hasRoute(routeName){return this.router.hasRoute(routeName);}transitionTo(routeName,models,queryParams,shouldReplace){let transition=this.router._doTransition(routeName,models,queryParams);if(shouldReplace){transition.method('replace');}return transition;}normalizeQueryParams(routeName,models,queryParams){this.router._prepareQueryParams(routeName,models,queryParams);}_generateURL(routeName,models,queryParams){let visibleQueryParams={};if(queryParams){Object.assign(visibleQueryParams,queryParams);this.normalizeQueryParams(routeName,models,visibleQueryParams);}return this.router.generate(routeName,...models,{queryParams:visibleQueryParams});}generateURL(routeName,models,queryParams){if(this.router._initialTransitionStarted){return this._generateURL(routeName,models,queryParams);}else{// Swallow error when transition has not started.\n// When rendering in tests without visit(), we cannot infer the route context which <LinkTo/> needs be aware of\ntry{return this._generateURL(routeName,models,queryParams);}catch(_e){return;}}}isActiveForRoute(contexts,queryParams,routeName,routerState){let handlers=this.router._routerMicrolib.recognizer.handlersFor(routeName);let leafName=handlers[handlers.length-1].handler;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\nif(contexts.length>maximumContexts){routeName=leafName;}return routerState.isActiveIntent(routeName,contexts,queryParams);}}RoutingService.reopen({targetState:readOnly('router.targetState'),currentState:readOnly('router.currentState'),currentRouteName:readOnly('router.currentRouteName'),currentPath:readOnly('router.currentPath')});function numberOfContextsAcceptedByHandler(handlerName,handlerInfos){let req=0;for(let i=0;i<handlerInfos.length;i++){req+=handlerInfos[i].names.length;if(handlerInfos[i].handler===handlerName){break;}}return req;}const emberRoutingLibRoutingService=/*#__PURE__*/Object.defineProperty({__proto__:null,default:RoutingService},Symbol.toStringTag,{value:'Module'});/**\n            @module @ember/routing\n          *//**\n            Finds a controller instance.\n\n            @for Ember\n            @method controllerFor\n            @private\n          */function controllerFor(container,controllerName,lookupOptions){return container.lookup(`controller:${controllerName}`,lookupOptions);}const emberRoutingLibControllerFor=/*#__PURE__*/Object.defineProperty({__proto__:null,default:controllerFor},Symbol.toStringTag,{value:'Module'});const emberRoutinginternals=/*#__PURE__*/Object.defineProperty({__proto__:null,BucketCache,DSL:DSLImpl,RouterState,RoutingService,controllerFor,generateController,generateControllerFactory,prefixRouteNameArg},Symbol.toStringTag,{value:'Module'});const CAPABILITIES={dynamicLayout:true,dynamicTag:false,prepareArgs:false,createArgs:true,attributeHook:false,elementHook:false,createCaller:true,dynamicScope:true,updateHook:true,createInstance:true,wrapped:false,willDestroy:false,hasSubOwner:true};class MountManager{getDynamicLayout(state){let templateFactory=state.engine.lookup('template:application');return unwrapTemplate(templateFactory(state.engine)).asLayout();}getCapabilities(){return CAPABILITIES;}getOwner(state){return state.engine;}create(owner,_ref148,args,env){let{name}=_ref148;// 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!(owner instanceof EngineInstance)&&assert$1('Expected owner to be an EngineInstance',owner instanceof EngineInstance);let engine=owner.buildChildEngineInstance(name);engine.boot();let applicationFactory=engine.factoryFor(`controller:application`);let controllerFactory=applicationFactory||generateControllerFactory(engine,'application');let controller;let self;let bucket;let modelRef;if(args.named.has('model')){modelRef=args.named.get('model');}if(modelRef===undefined){controller=controllerFactory.create();self=createConstRef(controller,'this');bucket={engine,controller,self,modelRef};}else{let model=valueForRef(modelRef);controller=controllerFactory.create({model});self=createConstRef(controller,'this');bucket={engine,controller,self,modelRef};}if(env.debugRenderTree){associateDestroyableChild(engine,controller);}return bucket;}getDebugName(_ref149){let{name}=_ref149;return name;}getDebugCustomRenderTree(definition,state,args,templateModuleName){return[{bucket:state.engine,instance:state.engine,type:'engine',name:definition.name,args},{bucket:state.controller,instance:state.controller,type:'route-template',name:'application',args,template:templateModuleName}];}getSelf(_ref150){let{self}=_ref150;return self;}getDestroyable(bucket){return bucket.engine;}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}update(bucket){let{controller,modelRef}=bucket;if(modelRef!==undefined){controller.set('model',valueForRef(modelRef));}}}const MOUNT_MANAGER=new MountManager();class MountDefinition{constructor(resolvedName){// handle is not used by this custom definition\n_defineProperty(this,\"handle\",-1);_defineProperty(this,\"state\",void 0);_defineProperty(this,\"manager\",MOUNT_MANAGER);_defineProperty(this,\"compilable\",null);_defineProperty(this,\"capabilities\",capabilityFlagsFrom(CAPABILITIES));this.resolvedName=resolvedName;this.state={name:resolvedName};}}/**\n          @module ember\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          */const mountHelper=internalHelper((args,owner)=>{!owner&&assert$1('{{mount}} must be used within a component that has an owner',owner);let nameRef=args.positional[0];let captured;!(args.positional.length===1)&&assert$1('You can only pass a single positional argument to the {{mount}} helper, e.g. {{mount \"chat-engine\"}}.',args.positional.length===1);if(args.named){let keys=Object.keys(args.named);let extra=keys.filter(k=>k!=='model');!(extra.length===0)&&assert$1('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);}captured=createCapturedArgs(args.named,EMPTY_POSITIONAL);let lastName,lastDef;return createComputeRef(()=>{let name=valueForRef(nameRef);if(typeof name==='string'){if(lastName===name){return lastDef;}!owner.hasRegistration(`engine:${name}`)&&assert$1(`You used \\`{{mount '${name}'}}\\`, but the engine '${name}' can not be found.`,owner.hasRegistration(`engine:${name}`));lastName=name;lastDef=curry(CurriedTypes.Component,new MountDefinition(name),owner,captured,true);return lastDef;}else{!(name===null||name===undefined)&&assert$1(`Invalid engine name '${name}' specified, engine name must be either a string, null or undefined.`,name===null||name===undefined);lastDef=null;lastName=null;return null;}});});/**\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            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            @for Ember.Templates.helpers\n            @public\n          */const outletHelper=internalHelper((_args,owner,scope)=>{!owner&&assert$1('Expected owner to be present, {{outlet}} requires an owner',owner);!scope&&assert$1('Expected dynamic scope to be present. You may have attempted to use the {{outlet}} keyword dynamically. This keyword cannot be used dynamically.',scope);let outletRef=createComputeRef(()=>{var _state$outlets;let state=valueForRef(scope.get('outletState'));return state===null||state===void 0||(_state$outlets=state.outlets)===null||_state$outlets===void 0?void 0:_state$outlets.main;});let lastState=null;let definition=null;return createComputeRef(()=>{let outletState=valueForRef(outletRef);let state=stateFor(outletRef,outletState);if(!validate(state,lastState)){lastState=state;if(state!==null){var _outletState$render$o,_outletState$render;let named=dict();// Create a ref for the model\nlet modelRef=childRefFromParts(outletRef,['render','model']);// Store the value of the model\nlet model=valueForRef(modelRef);// Create a compute ref which we pass in as the `{{@model}}` reference\n// for the outlet. This ref will update and return the value of the\n// model _until_ the outlet itself changes. Once the outlet changes,\n// dynamic scope also changes, and so the original model ref would not\n// provide the correct updated value. So we stop updating and return\n// the _last_ model value for that outlet.\nnamed['model']=createComputeRef(()=>{if(lastState===state){model=valueForRef(modelRef);}return model;});{named['model']=createDebugAliasRef('@model',named['model']);}let args=createCapturedArgs(named,EMPTY_POSITIONAL);definition=curry(CurriedTypes.Component,new OutletComponentDefinition(state),(_outletState$render$o=outletState===null||outletState===void 0||(_outletState$render=outletState.render)===null||_outletState$render===void 0?void 0:_outletState$render.owner)!==null&&_outletState$render$o!==void 0?_outletState$render$o:owner,args,true);}else{definition=null;}}return definition;});});function stateFor(ref,outlet){if(outlet===undefined)return null;let render=outlet.render;if(render===undefined)return null;let template=render.template;if(template===undefined)return null;if(isTemplateFactory(template)){template=template(render.owner);{let message='The `template` property of `OutletState` should be a '+'`Template` rather than a `TemplateFactory`. This is known to be a '+\"problem in older versions of `@ember/test-helpers`. If you haven't \"+'done so already, try upgrading to the latest version.\\n\\n';if(template.result==='ok'&&typeof template.moduleName==='string'){message+='The offending template has a moduleName `'+template.moduleName+'`, which might be helpful for identifying '+'source of this issue.\\n\\n';}message+='Please note that `OutletState` is a private API in Ember.js '+\"and not meant to be used outside of the framework's internal code.\";deprecate$1(message,false,{id:'outlet-state-template-factory',until:'5.9.0',for:'ember-source',since:{available:'5.6.0',enabled:'5.6.0'}});}}return{ref,name:render.name,template,controller:render.controller,model:render.model};}function validate(state,lastState){if(state===null){return lastState===null;}if(lastState===null){return false;}return state.template===lastState.template&&state.controller===lastState.controller;}function instrumentationPayload(name){return{object:`component:${name}`};}function componentFor(name,owner){let fullName=`component:${name}`;return owner.factoryFor(fullName)||null;}function layoutFor(name,owner,options){if(DEPRECATIONS.DEPRECATE_COMPONENT_TEMPLATE_RESOLVING.isRemoved){return null;}let templateFullName=`template:components/${name}`;let result=owner.lookup(templateFullName,options)||null;if(result){deprecateUntil(`Components with separately resolved templates are deprecated. Migrate to either co-located js/ts + hbs files or to gjs/gts. Tried to lookup '${templateFullName}'.`,DEPRECATIONS.DEPRECATE_COMPONENT_TEMPLATE_RESOLVING);}return result;}function lookupComponentPair(owner,name,options){let component=componentFor(name,owner);if(isFactory(component)&&component.class){let layout=getComponentTemplate(component.class);if(layout!==undefined){return{component,layout};}}let layout=layoutFor(name,owner,options);if(component===null&&layout===null){return null;}else{return{component,layout};}}const BUILTIN_KEYWORD_HELPERS={action,mut,readonly,unbound,'-hash':hash$1,'-each-in':eachIn,'-normalize-class':normalizeClassHelper,'-resolve':resolve$1,'-track-array':trackArray,'-mount':mountHelper,'-outlet':outletHelper,'-in-el-null':inElementNullCheckHelper};const BUILTIN_HELPERS={...BUILTIN_KEYWORD_HELPERS,array:array$1,concat:concat$1,fn:fn$1,get:get$1,hash:hash$1,'unique-id':uniqueId$1};{BUILTIN_HELPERS['-disallow-dynamic-resolution']=disallowDynamicResolution;}const BUILTIN_KEYWORD_MODIFIERS={action:actionModifier};const BUILTIN_MODIFIERS={...BUILTIN_KEYWORD_MODIFIERS,on:on$1};const CLASSIC_HELPER_MANAGER_ASSOCIATED=new WeakSet();class ResolverImpl{constructor(){_defineProperty(this,\"componentDefinitionCache\",new Map());}lookupPartial(){return null;}lookupHelper(name,owner){!!(BUILTIN_HELPERS[name]&&owner.hasRegistration(`helper:${name}`))&&assert$1(`You attempted to overwrite the built-in helper \"${name}\" which is not allowed. Please rename the helper.`,!(BUILTIN_HELPERS[name]&&owner.hasRegistration(`helper:${name}`)));let helper=BUILTIN_HELPERS[name];if(helper!==undefined){return helper;}let factory=owner.factoryFor(`helper:${name}`);if(factory===undefined){return null;}let definition=factory.class;if(definition===undefined){return null;}if(typeof definition==='function'&&isClassicHelper(definition)){// For classic class based helpers, we need to pass the factoryFor result itself rather\n// than the raw value (`factoryFor(...).class`). This is because injections are already\n// bound in the factoryFor result, including type-based injections\n{// In DEBUG we need to only set the associated value once, otherwise\n// we'll trigger an assertion\nif(!CLASSIC_HELPER_MANAGER_ASSOCIATED.has(factory)){CLASSIC_HELPER_MANAGER_ASSOCIATED.add(factory);setInternalHelperManager(CLASSIC_HELPER_MANAGER,factory);}}return factory;}return definition;}lookupBuiltInHelper(name){var _BUILTIN_KEYWORD_HELP;return(_BUILTIN_KEYWORD_HELP=BUILTIN_KEYWORD_HELPERS[name])!==null&&_BUILTIN_KEYWORD_HELP!==void 0?_BUILTIN_KEYWORD_HELP:null;}lookupModifier(name,owner){let builtin=BUILTIN_MODIFIERS[name];if(builtin!==undefined){return builtin;}let modifier=owner.factoryFor(`modifier:${name}`);if(modifier===undefined){return null;}return modifier.class||null;}lookupBuiltInModifier(name){var _BUILTIN_KEYWORD_MODI;return(_BUILTIN_KEYWORD_MODI=BUILTIN_KEYWORD_MODIFIERS[name])!==null&&_BUILTIN_KEYWORD_MODI!==void 0?_BUILTIN_KEYWORD_MODI:null;}lookupComponent(name,owner){let pair=lookupComponentPair(owner,name);if(pair===null){!(name!=='text-area')&&assert$1('Could not find component `<TextArea />` (did you mean `<Textarea />`?)',name!=='text-area');return null;}let template=null;let key;if(pair.component===null){key=template=pair.layout(owner);}else{key=pair.component;}let cachedComponentDefinition=this.componentDefinitionCache.get(key);if(cachedComponentDefinition!==undefined){return cachedComponentDefinition;}if(template===null&&pair.layout!==null){template=pair.layout(owner);}let finalizer=_instrumentStart('render.getComponentDefinition',instrumentationPayload,name);let definition=null;if(pair.component===null){definition={state:templateOnlyComponent(undefined,name),manager:TEMPLATE_ONLY_COMPONENT_MANAGER,template};}else{let factory=pair.component;!(factory.class!==undefined)&&assert$1(`missing component class ${name}`,factory.class!==undefined);let ComponentClass=factory.class;let manager=getInternalComponentManager(ComponentClass);definition={state:isCurlyManager(manager)?factory:ComponentClass,manager,template};}finalizer();this.componentDefinitionCache.set(key,definition);!!(definition===null&&name==='text-area')&&assert$1('Could not find component `<TextArea />` (did you mean `<Textarea />`?)',!(definition===null&&name==='text-area'));return definition;}}// We use the `InternalOwner` notion here because we actually need all of its\n// API for using with renderers (normally, it will be `EngineInstance`).\n// We use `getOwner` from our internal home for it rather than the narrower\n// public API for the same reason.\nconst TOP_LEVEL_NAME='-top-level';class OutletView{static extend(injections){return class extends OutletView{static create(options){if(options){return super.create(Object.assign({},injections,options));}else{return super.create(injections);}}};}static reopenClass(injections){Object.assign(this,injections);}static create(options){let{environment:_environment,application:namespace,template:templateFactory}=options;let owner=getOwner$2(options);!owner&&assert$1('OutletView is unexpectedly missing an owner',owner);let template=templateFactory(owner);return new OutletView(_environment,owner,template,namespace);}constructor(_environment,owner,template,namespace){_defineProperty(this,\"ref\",void 0);_defineProperty(this,\"state\",void 0);this._environment=_environment;this.owner=owner;this.template=template;this.namespace=namespace;let outletStateTag=createTag();let outletState={outlets:{main:undefined},render:{owner:owner,into:undefined,outlet:'main',name:TOP_LEVEL_NAME,controller:undefined,model:undefined,template}};let ref=this.ref=createComputeRef(()=>{consumeTag(outletStateTag);return outletState;},state=>{DIRTY_TAG$1(outletStateTag);outletState.outlets['main']=state;});this.state={ref,name:TOP_LEVEL_NAME,template,controller:undefined,model:undefined};}appendTo(selector){let target;if(this._environment.hasDOM){target=typeof selector==='string'?document.querySelector(selector):selector;}else{target=selector;}let renderer=this.owner.lookup('renderer:-dom');// SAFETY: It's not clear that this cast is safe.\n// The types for appendOutletView may be incorrect or this is a potential bug.\nschedule('render',renderer,'appendOutletView',this,target);}rerender(){/**/}setOutletState(state){updateRef(this.ref,state);}destroy(){/**/}}class DynamicScope{constructor(view,outletState){this.view=view;this.outletState=outletState;}child(){return new DynamicScope(this.view,this.outletState);}get(key){!(key==='outletState')&&assert$1(`Using \\`-get-dynamic-scope\\` is only supported for \\`outletState\\` (you used \\`${key}\\`).`,key==='outletState');return this.outletState;}set(key,value){!(key==='outletState')&&assert$1(`Using \\`-with-dynamic-scope\\` is only supported for \\`outletState\\` (you used \\`${key}\\`).`,key==='outletState');this.outletState=value;return value;}}const NO_OP=()=>{};// This wrapper logic prevents us from rerendering in case of a hard failure\n// during render. This prevents infinite revalidation type loops from occuring,\n// and ensures that errors are not swallowed by subsequent follow on failures.\nfunction errorLoopTransaction(fn){{return()=>{let didError=true;try{fn();didError=false;}finally{if(didError){// Noop the function so that we won't keep calling it and causing\n// infinite looping failures;\nfn=()=>{// eslint-disable-next-line no-console\nconsole.warn('Attempted to rerender, but the Ember application has had an unrecoverable error occur during render. You should reload the application after fixing the cause of the error.');};}}};}}class RootState{constructor(root,runtime,context,owner,template,self,parentElement,dynamicScope,builder){_defineProperty(this,\"id\",void 0);_defineProperty(this,\"result\",void 0);_defineProperty(this,\"destroyed\",void 0);_defineProperty(this,\"render\",void 0);this.root=root;this.runtime=runtime;!(template!==undefined)&&assert$1(`You cannot render \\`${valueForRef(self)}\\` without a template.`,template!==undefined);this.id=root instanceof OutletView?guidFor(root):getViewId(root);this.result=undefined;this.destroyed=false;this.render=errorLoopTransaction(()=>{let layout=unwrapTemplate(template).asLayout();let iterator=renderMain(runtime,context,owner,self,builder(runtime.env,{element:parentElement,nextSibling:null}),layout,dynamicScope);let result=this.result=iterator.sync();// override .render function after initial render\nthis.render=errorLoopTransaction(()=>result.rerender({alwaysRevalidate:false}));});}isFor(possibleRoot){return this.root===possibleRoot;}destroy(){let{result,runtime:{env}}=this;this.destroyed=true;this.runtime=undefined;this.root=null;this.result=undefined;this.render=undefined;if(result!==undefined){/*\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                  */inTransaction(env,()=>destroy(result));}}}const renderers=[];function _resetRenderers(){renderers.length=0;}function register(renderer){!(renderers.indexOf(renderer)===-1)&&assert$1('Cannot register the same renderer twice',renderers.indexOf(renderer)===-1);renderers.push(renderer);}function deregister(renderer){let index=renderers.indexOf(renderer);!(index!==-1)&&assert$1('Cannot deregister unknown unregistered renderer',index!==-1);renderers.splice(index,1);}function loopBegin(){for(let renderer of renderers){renderer._scheduleRevalidate();}}let renderSettledDeferred=null;/*\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          */function renderSettled(){if(renderSettledDeferred===null){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)\nif(!_getCurrentRunLoop()){// ensure a runloop has been kicked off\n_backburner.schedule('actions',null,NO_OP);}}return renderSettledDeferred.promise;}function resolveRenderPromise(){if(renderSettledDeferred!==null){let resolve=renderSettledDeferred.resolve;renderSettledDeferred=null;_backburner.join(null,resolve);}}let loops=0;function loopEnd(){for(let renderer of renderers){if(!renderer._isValid()){if(loops>ENV._RERENDER_LOOP_LIMIT){loops=0;// TODO: do something better\nrenderer.destroy();throw new Error('infinite rendering invalidation detected');}loops++;return _backburner.join(null,NO_OP);}}loops=0;resolveRenderPromise();}_backburner.on('begin',loopBegin);_backburner.on('end',loopEnd);class Renderer{static create(props){let{_viewRegistry}=props;let owner=getOwner$2(props);!owner&&assert$1('Renderer is unexpectedly missing an owner',owner);let document=owner.lookup('service:-document');let env=owner.lookup('-environment:main');let rootTemplate=owner.lookup(privatize`template:-root`);let builder=owner.lookup('service:-dom-builder');return new this(owner,document,env,rootTemplate,_viewRegistry,builder);}constructor(owner,document,env,rootTemplate,viewRegistry){let builder=arguments.length>5&&arguments[5]!==undefined?arguments[5]:clientBuilder;_defineProperty(this,\"_rootTemplate\",void 0);_defineProperty(this,\"_viewRegistry\",void 0);_defineProperty(this,\"_roots\",void 0);_defineProperty(this,\"_removedRoots\",void 0);_defineProperty(this,\"_builder\",void 0);_defineProperty(this,\"_inRenderTransaction\",false);_defineProperty(this,\"_owner\",void 0);_defineProperty(this,\"_context\",void 0);_defineProperty(this,\"_runtime\",void 0);_defineProperty(this,\"_lastRevision\",-1);_defineProperty(this,\"_destroyed\",false);/** @internal */_defineProperty(this,\"_isInteractive\",void 0);_defineProperty(this,\"_runtimeResolver\",void 0);this._owner=owner;this._rootTemplate=rootTemplate(owner);this._viewRegistry=viewRegistry||owner.lookup('-view-registry:main');this._roots=[];this._removedRoots=[];this._builder=builder;this._isInteractive=env.isInteractive;// resolver is exposed for tests\nlet resolver=this._runtimeResolver=new ResolverImpl();let sharedArtifacts=artifacts();this._context=programCompilationContext(sharedArtifacts,resolver,heap=>new RuntimeOpImpl(heap));let runtimeEnvironmentDelegate=new EmberEnvironmentDelegate(owner,env.isInteractive);this._runtime=runtimeContext({appendOperations:env.hasDOM?new DOMTreeConstruction(document):new NodeDOMTreeConstruction(document),updateOperations:new DOMChanges(document)},runtimeEnvironmentDelegate,sharedArtifacts,resolver);}get debugRenderTree(){let{debugRenderTree}=this._runtime.env;!debugRenderTree&&assert$1('Attempted to access the DebugRenderTree, but it did not exist. Is the Ember Inspector open?',debugRenderTree);return debugRenderTree;}// renderer HOOKS\nappendOutletView(view,target){let definition=createRootOutlet(view);this._appendDefinition(view,curry(CurriedTypes.Component,definition,view.owner,null,true),target);}appendTo(view,target){let definition=new RootComponentDefinition(view);this._appendDefinition(view,curry(CurriedTypes.Component,definition,this._owner,null,true),target);}_appendDefinition(root,definition,target){let self=createConstRef(definition,'this');let dynamicScope=new DynamicScope(null,UNDEFINED_REFERENCE);let rootState=new RootState(root,this._runtime,this._context,this._owner,this._rootTemplate,self,target,dynamicScope,this._builder);this._renderRoot(rootState);}rerender(){this._scheduleRevalidate();}register(view){let id=getViewId(view);!!this._viewRegistry[id]&&assert$1('Attempted to register a view with an id already in use: '+id,!this._viewRegistry[id]);this._viewRegistry[id]=view;}unregister(view){delete this._viewRegistry[getViewId(view)];}remove(view){view._transitionTo('destroying');this.cleanupRootFor(view);if(this._isInteractive){view.trigger('didDestroyElement');}}cleanupRootFor(view){// no need to cleanup roots if we have already been destroyed\nif(this._destroyed){return;}let roots=this._roots;// traverse in reverse so we can remove items\n// without mucking up the index\nlet i=this._roots.length;while(i--){let root=roots[i];!root&&assert$1('has root',root);if(root.isFor(view)){root.destroy();roots.splice(i,1);}}}destroy(){if(this._destroyed){return;}this._destroyed=true;this._clearAllRoots();}getElement(view){if(this._isInteractive){return getViewElement(view);}else{throw new Error('Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).');}}getBounds(view){let bounds=view[BOUNDS];!bounds&&assert$1('object passed to getBounds must have the BOUNDS symbol as a property',bounds);let parentElement=bounds.parentElement();let firstNode=bounds.firstNode();let lastNode=bounds.lastNode();return{parentElement,firstNode,lastNode};}createElement(tagName){return this._runtime.env.getAppendOperations().createElement(tagName);}_renderRoot(root){let{_roots:roots}=this;roots.push(root);if(roots.length===1){register(this);}this._renderRootsTransaction();}_renderRoots(){let{_roots:roots,_runtime:runtime,_removedRoots:removedRoots}=this;let initialRootsLength;do{initialRootsLength=roots.length;inTransaction(runtime.env,()=>{// ensure that for the first iteration of the loop\n// each root is processed\nfor(let i=0;i<roots.length;i++){let root=roots[i];true&&!root&&assert$1('has root',root);if(root.destroyed){// add to the list of roots to be removed\n// they will be removed from `this._roots` later\nremovedRoots.push(root);// skip over roots that have been marked as destroyed\ncontinue;}// when processing non-initial reflush loops,\n// do not process more roots than needed\nif(i>=initialRootsLength){continue;}root.render();}this._lastRevision=valueForTag(CURRENT_TAG);});}while(roots.length>initialRootsLength);// remove any roots that were destroyed during this transaction\nwhile(removedRoots.length){let root=removedRoots.pop();let rootIndex=roots.indexOf(root);roots.splice(rootIndex,1);}if(this._roots.length===0){deregister(this);}}_renderRootsTransaction(){if(this._inRenderTransaction){// currently rendering roots, a new root was added and will\n// be processed by the existing _renderRoots invocation\nreturn;}// used to prevent calling _renderRoots again (see above)\n// while we are actively rendering roots\nthis._inRenderTransaction=true;let completedWithoutError=false;try{this._renderRoots();completedWithoutError=true;}finally{if(!completedWithoutError){this._lastRevision=valueForTag(CURRENT_TAG);}this._inRenderTransaction=false;}}_clearAllRoots(){let roots=this._roots;for(let root of roots){root.destroy();}this._removedRoots.length=0;this._roots=[];// if roots were present before destroying\n// deregister this renderer instance\nif(roots.length){deregister(this);}}_scheduleRevalidate(){_backburner.scheduleOnce('render',this,this._revalidate);}_isValid(){return this._destroyed||this._roots.length===0||validateTag(CURRENT_TAG,this._lastRevision);}_revalidate(){if(this._isValid()){return;}this._renderRootsTransaction();}}// STATE within a module is frowned upon, this exists\n// to support Ember.TEMPLATES but shield ember internals from this legacy\n// global API.\nlet TEMPLATES={};function setTemplates(templates){TEMPLATES=templates;}function getTemplates(){return TEMPLATES;}function getTemplate(name){if(Object.prototype.hasOwnProperty.call(TEMPLATES,name)){return TEMPLATES[name];}}function hasTemplate(name){return Object.prototype.hasOwnProperty.call(TEMPLATES,name);}function setTemplate(name,template){return TEMPLATES[name]=template;}const OutletTemplate=templateFactory(/*\n            {{component (outletHelper)}}\n          */{\"id\":\"2c6+lAmT\",\"block\":\"[[[46,[28,[32,0],null,null],null,null,null]],[],false,[\\\"component\\\"]]\",\"moduleName\":\"packages/@ember/-internals/glimmer/lib/templates/outlet.hbs\",\"scope\":()=>[outletHelper],\"isStrictMode\":true});function setupApplicationRegistry(registry){// 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\nregistry.register('service:-dom-builder',{// Additionally, we *must* constrain this to require `props` on create, else\n// we *know* it cannot have an owner.\ncreate(props){let owner=getOwner$2(props);!owner&&assert$1('DomBuilderService is unexpectedly missing an owner',owner);let env=owner.lookup('-environment:main');switch(env._renderMode){case'serialize':return serializeBuilder.bind(null);case'rehydrate':return rehydrationBuilder.bind(null);default:return clientBuilder.bind(null);}}});registry.register(privatize`template:-root`,RootTemplate);registry.register('renderer:-dom',Renderer);}function setupEngineRegistry(registry){registry.optionsForType('template',{instantiate:false});registry.register('view:-outlet',OutletView);registry.register('template:-outlet',OutletTemplate);registry.optionsForType('helper',{instantiate:false});registry.register('component:input',Input);registry.register('component:link-to',LinkTo);registry.register('component:textarea',Textarea);}/**\n             Associate a class with a component manager (an object that is responsible for\n             coordinating the lifecycle events that occurs when invoking, rendering and\n             re-rendering a component).\n\n             @method setComponentManager\n             @param {Function} factory a function to create the owner for an object\n             @param {Object} obj the object to associate with the componetn manager\n             @return {Object} the same object passed in\n             @public\n            */function setComponentManager(manager,obj){return setComponentManager$1(manager,obj);}/**\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           */const emberinternalsGlimmerIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,Component,DOMChanges,DOMTreeConstruction,Helper,Input,LinkTo,NodeDOMTreeConstruction,OutletView,Renderer,RootTemplate,SafeString,Textarea,_resetRenderers,componentCapabilities,escapeExpression,getTemplate,getTemplates,hasTemplate,helper:helper$2,htmlSafe,isHTMLSafe,isSerializationFirstNode,modifierCapabilities,renderSettled,setComponentManager,setTemplate,setTemplates,setupApplicationRegistry,setupEngineRegistry,template:templateFactory,templateCacheCounters,uniqueId:uniqueId$2},Symbol.toStringTag,{value:'Module'});const emberinternalsRoutingIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,RouterDSL:DSLImpl,controllerFor,generateController,generateControllerFactory},Symbol.toStringTag,{value:'Module'});// The formatting here is designed to help make this type actually be\n// comprehensible to mortals, including the mortals who came up with it.\n// prettier-ignore\n// A way of representing non-user-constructible types. You can conveniently use\n// this by doing `interface Type extends Opaque<'some-type-name'> { ... }` for\n// simple types, and/or you can type-parameterize it as makes sense for your use\n// case (see e.g. `@ember/component/helper`'s use with functional helpers).\nclass Opaque{}const emberinternalsUtilityTypesIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,Opaque},Symbol.toStringTag,{value:'Module'});const fallbackViewRegistry=makeDictionary(null);const emberinternalsViewsLibCompatFallbackViewRegistry=/*#__PURE__*/Object.defineProperty({__proto__:null,default:fallbackViewRegistry},Symbol.toStringTag,{value:'Module'});/*globals CustomEvent *//**\n            @module @ember/application\n          */const loadHooks=ENV.EMBER_LOAD_HOOKS||{};const loaded={};let _loaded=loaded;/**\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          */function onLoad(name,callback){var _loadHooks$name;let object=loaded[name];let hooks=(_loadHooks$name=loadHooks[name])!==null&&_loadHooks$name!==void 0?_loadHooks$name:loadHooks[name]=[];hooks.push(callback);if(object){callback(object);}}/**\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          */function runLoadHooks(name,object){var _loadHooks$name2;loaded[name]=object;if(window$1&&typeof CustomEvent==='function'){let event=new CustomEvent(name,{detail:object});window$1.dispatchEvent(event);}(_loadHooks$name2=loadHooks[name])===null||_loadHooks$name2===void 0||_loadHooks$name2.forEach(callback=>callback(object));}const emberApplicationLibLazyLoad=/*#__PURE__*/Object.defineProperty({__proto__:null,_loaded,onLoad,runLoadHooks},Symbol.toStringTag,{value:'Module'});/**\n            @private\n\n            Returns the current `location.pathname`, normalized for IE inconsistencies.\n          */function getPath(location){let pathname=location.pathname;// Various versions of IE/Opera don't always return a leading slash\nif(pathname[0]!=='/'){pathname=`/${pathname}`;}return pathname;}/**\n            @private\n\n            Returns the current `location.search`.\n          */function getQuery(location){return location.search;}/**\n            @private\n\n            Returns the hash or empty string\n          */function getHash(location){if(location.hash!==undefined){return location.hash.substring(0);}return'';}function getFullPath(location){return getPath(location)+getQuery(location)+getHash(location);}function getOrigin(location){let origin=location.origin;// Older browsers, especially IE, don't have origin\nif(!origin){origin=`${location.protocol}//${location.hostname}`;if(location.port){origin+=`:${location.port}`;}}return origin;}/**\n            Replaces the current location, making sure we explicitly include the origin\n            to prevent redirecting to a different origin.\n\n            @private\n          */function replacePath(location,path){location.replace(getOrigin(location)+path);}const emberRoutingLibLocationUtils=/*#__PURE__*/Object.defineProperty({__proto__:null,getFullPath,getHash,getOrigin,getPath,getQuery,replacePath},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/routing/hash-location\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          */class HashLocation extends EmberObject{constructor(){super(...arguments);_defineProperty(this,\"_hashchangeHandler\",void 0);_defineProperty(this,\"_location\",void 0);_defineProperty(this,\"lastSetURL\",null);}init(){var _this$_location;this.location=(_this$_location=this._location)!==null&&_this$_location!==void 0?_this$_location:window.location;this._hashchangeHandler=undefined;}/**\n              @private\n               Returns normalized location.hash\n               @since 1.5.1\n              @method getHash\n            */getHash(){return getHash(this.location);}/**\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            */getURL(){let originalPath=this.getHash().substring(1);let outPath=originalPath;if(outPath[0]!=='/'){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\nif(originalPath){outPath+=`#${originalPath}`;}}return outPath;}/**\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            */setURL(path){this.location.hash=path;this.lastSetURL=path;}/**\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            */replaceURL(path){this.location.replace(`#${path}`);this.lastSetURL=path;}/**\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            */onUpdateURL(callback){this._removeEventListener();this._hashchangeHandler=bind(this,function(_event){let path=this.getURL();if(this.lastSetURL===path){return;}this.lastSetURL=null;callback(path);});window.addEventListener('hashchange',this._hashchangeHandler);}/**\n              Given a URL, formats it to be placed into the page as part\n              of an element's `href` attribute.\n               @private\n              @method formatURL\n              @param url {String}\n            */formatURL(url){return`#${url}`;}/**\n              Cleans up the HashLocation event listener.\n               @private\n              @method willDestroy\n            */willDestroy(){this._removeEventListener();}_removeEventListener(){if(this._hashchangeHandler){window.removeEventListener('hashchange',this._hashchangeHandler);}}}const emberRoutingHashLocation=/*#__PURE__*/Object.defineProperty({__proto__:null,default:HashLocation},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/routing/history-location\n          */let popstateFired=false;function _uuid(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){let r,v;r=Math.random()*16|0;v=c==='x'?r:r&3|8;return v.toString(16);});}/**\n            HistoryLocation implements the location API using the browser's\n            history.pushState API.\n\n            Using `HistoryLocation` results in URLs that are indistinguishable from a\n            standard URL. This relies upon the browser's `history` API.\n\n            Example:\n\n            ```app/router.js\n            Router.map(function() {\n              this.route('posts', function() {\n                this.route('new');\n              });\n            });\n\n            Router.reopen({\n              location: 'history'\n            });\n            ```\n\n            This will result in a posts.new url of `/posts/new`.\n\n            Keep in mind that your server must serve the Ember app at all the routes you\n            define.\n\n            Using `HistoryLocation` will also result in location states being recorded by\n            the browser `history` API with the following schema:\n\n            ```\n            window.history.state -> { path: '/', uuid: '3552e730-b4a6-46bd-b8bf-d8c3c1a97e0a' }\n            ```\n\n            This allows each in-app location state to be tracked uniquely across history\n            state changes via the `uuid` field.\n\n            @class HistoryLocation\n            @extends EmberObject\n            @protected\n          */class HistoryLocation extends EmberObject{constructor(){super(...arguments);// SAFETY: both of these properties initialized via `init`.\n_defineProperty(this,\"history\",void 0);_defineProperty(this,\"_previousURL\",void 0);_defineProperty(this,\"_popstateHandler\",void 0);/**\n              Will be pre-pended to path upon state change\n               @property rootURL\n              @default '/'\n              @private\n            */_defineProperty(this,\"rootURL\",'/');}/**\n              @private\n               Returns normalized location.hash\n               @method getHash\n            */getHash(){return getHash(this.location);}init(){var _this$location;this._super(...arguments);let base=document.querySelector('base');let baseURL='';if(base!==null&&base.hasAttribute('href')){var _base$getAttribute;baseURL=(_base$getAttribute=base.getAttribute('href'))!==null&&_base$getAttribute!==void 0?_base$getAttribute:'';}this.baseURL=baseURL;this.location=(_this$location=this.location)!==null&&_this$location!==void 0?_this$location:window.location;this._popstateHandler=undefined;}/**\n              Used to set state on first call to setURL\n               @private\n              @method initState\n            */initState(){var _this$history;let history=(_this$history=this.history)!==null&&_this$history!==void 0?_this$history:window.history;this.history=history;let{state}=history;let path=this.formatURL(this.getURL());if(state&&state.path===path){// preserve existing state\n// used for webkit workaround, since there will be no initial popstate event\nthis._previousURL=this.getURL();}else{this.replaceState(path);}}/**\n              Returns the current `location.pathname` without `rootURL` or `baseURL`\n               @private\n              @method getURL\n              @return url {String}\n            */getURL(){let{location,rootURL,baseURL}=this;let path=location.pathname;// remove trailing slashes if they exists\nrootURL=rootURL.replace(/\\/$/,'');baseURL=baseURL.replace(/\\/$/,'');// remove baseURL and rootURL from start of path\nlet url=path.replace(new RegExp(`^${baseURL}(?=/|$)`),'').replace(new RegExp(`^${rootURL}(?=/|$)`),'').replace(/\\/\\//g,'/');// remove extra slashes\nlet search=location.search||'';url+=search+this.getHash();return url;}/**\n              Uses `history.pushState` to update the url without a page reload.\n               @private\n              @method setURL\n              @param path {String}\n            */setURL(path){!this.history&&assert$1('HistoryLocation.history is unexpectedly missing',this.history);let{state}=this.history;path=this.formatURL(path);if(!state||state.path!==path){this.pushState(path);}}/**\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            */replaceURL(path){!this.history&&assert$1('HistoryLocation.history is unexpectedly missing',this.history);let{state}=this.history;path=this.formatURL(path);if(!state||state.path!==path){this.replaceState(path);}}/**\n             Pushes a new state.\n              @private\n             @method pushState\n             @param path {String}\n            */pushState(path){let state={path,uuid:_uuid()};!this.history&&assert$1('HistoryLocation.history is unexpectedly missing',this.history);this.history.pushState(state,'',path);// used for webkit workaround\nthis._previousURL=this.getURL();}/**\n             Replaces the current state.\n              @private\n             @method replaceState\n             @param path {String}\n            */replaceState(path){let state={path,uuid:_uuid()};!this.history&&assert$1('HistoryLocation.history is unexpectedly missing',this.history);this.history.replaceState(state,'',path);// used for webkit workaround\nthis._previousURL=this.getURL();}/**\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            */onUpdateURL(callback){this._removeEventListener();this._popstateHandler=()=>{// Ignore initial page load popstate event in Chrome\nif(!popstateFired){popstateFired=true;if(this.getURL()===this._previousURL){return;}}callback(this.getURL());};window.addEventListener('popstate',this._popstateHandler);}/**\n              Formats url to be placed into href attribute.\n               @private\n              @method formatURL\n              @param url {String}\n              @return formatted url {String}\n            */formatURL(url){let{rootURL,baseURL}=this;if(url!==''){// remove trailing slashes if they exists\nrootURL=rootURL.replace(/\\/$/,'');baseURL=baseURL.replace(/\\/$/,'');}else if(baseURL[0]==='/'&&rootURL[0]==='/'){// if baseURL and rootURL both start with a slash\n// ... remove trailing slash from baseURL if it exists\nbaseURL=baseURL.replace(/\\/$/,'');}return baseURL+rootURL+url;}/**\n              Cleans up the HistoryLocation event listener.\n               @private\n              @method willDestroy\n            */willDestroy(){this._removeEventListener();}_removeEventListener(){if(this._popstateHandler){window.removeEventListener('popstate',this._popstateHandler);}}}const emberRoutingHistoryLocation=/*#__PURE__*/Object.defineProperty({__proto__:null,default:HistoryLocation},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/routing/none-location\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          */class NoneLocation extends EmberObject{constructor(){super(...arguments);_defineProperty(this,\"updateCallback\",void 0);}// Set in reopen so it can be overwritten with extend\n/**\n              Will be pre-pended to path.\n               @private\n              @property rootURL\n              @default '/'\n            */// Set in reopen so it can be overwritten with extend\ninitState(){this._super(...arguments);let{rootURL}=this;// This assert doesn't have anything to do with state initialization,\n// but we're hijacking this method since it's called after the route has\n// set the rootURL property on its Location instance.\n!(rootURL.charAt(rootURL.length-1)==='/')&&assert$1('rootURL must end with a trailing forward slash e.g. \"/app/\"',rootURL.charAt(rootURL.length-1)==='/');}/**\n              Returns the current path without `rootURL`.\n               @private\n              @method getURL\n              @return {String} path\n            */getURL(){let{path,rootURL}=this;// remove trailing slashes if they exists\nrootURL=rootURL.replace(/\\/$/,'');// remove rootURL from url\nreturn path.replace(new RegExp(`^${rootURL}(?=/|$)`),'');}/**\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            */setURL(path){this.path=path;}/**\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            */onUpdateURL(callback){this.updateCallback=callback;}/**\n              Sets the path and calls the `updateURL` callback.\n               @private\n              @method handleURL\n              @param url {String}\n            */handleURL(url){this.path=url;if(this.updateCallback){this.updateCallback(url);}}/**\n              Given a URL, formats it to be placed into the page as part\n              of an element's `href` attribute.\n               @private\n              @method formatURL\n              @param {String} url\n              @return {String} url\n            */formatURL(url){let{rootURL}=this;if(url!==''){// remove trailing slashes if they exists\nrootURL=rootURL.replace(/\\/$/,'');}return rootURL+url;}}NoneLocation.reopen({path:'',rootURL:'/'});const emberRoutingNoneLocation=/*#__PURE__*/Object.defineProperty({__proto__:null,default:NoneLocation},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/application\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          */class ApplicationInstance extends EngineInstance{constructor(){super(...arguments);/**\n              The `Application` for which this is an instance.\n               @property {Application} application\n              @private\n            *//**\n              The root DOM element of the Application as an element or a\n              CSS selector.\n               @private\n              @property {String|DOMElement} rootElement\n            */_defineProperty(this,\"rootElement\",null);_defineProperty(this,\"_router\",void 0);}init(properties){super.init(properties);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.\nthis.register('-application-instance:main',this,{instantiate:false});}/**\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            */_bootSync(options){if(this._booted){return this;}options=new _BootOptions(options);this.setupRegistry(options);if(options.rootElement){this.rootElement=options.rootElement;}else{this.rootElement=this.application.rootElement;}if(options.location){set(this.router,'location',options.location);}this.application.runInstanceInitializers(this);if(options.isInteractive){this.setupEventDispatcher();}this._booted=true;return this;}setupRegistry(options){this.constructor.setupRegistry(this.__registry__,options);}get router(){if(!this._router){let router=this.lookup('router:main');!(router instanceof EmberRouter)&&assert$1('expected an instance of Router',router instanceof EmberRouter);this._router=router;}return this._router;}/**\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            */didCreateRootView(view){view.appendTo(this.rootElement);}/**\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            */startRouting(){this.router.startRouting();}/**\n              Sets up the router, initializing the child router and configuring the\n              location before routing begins.\n               Because setup should only occur once, multiple calls to `setupRouter`\n              beyond the first call have no effect.\n               This is commonly used in order to confirm things that rely on the router\n              are functioning properly from tests that are primarily rendering related.\n               For example, from within [ember-qunit](https://github.com/emberjs/ember-qunit)'s\n              `setupRenderingTest` calling `this.owner.setupRouter()` would allow that\n              rendering test to confirm that any `<LinkTo></LinkTo>`'s that are rendered\n              have the correct URL.\n               @public\n            */setupRouter(){this.router.setupRouter();}/**\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            */handleURL(url){this.setupRouter();return this.router.handleURL(url);}/**\n              @private\n            */setupEventDispatcher(){let dispatcher=this.lookup('event_dispatcher:main');!(dispatcher instanceof EventDispatcher)&&assert$1('expected EventDispatcher',dispatcher instanceof EventDispatcher);let applicationCustomEvents=get$2(this.application,'customEvents');let instanceCustomEvents=get$2(this,'customEvents');let customEvents=Object.assign({},applicationCustomEvents,instanceCustomEvents);!(this.rootElement===null||typeof this.rootElement==='string'||this.rootElement instanceof Element)&&assert$1('[BUG] Tried to set up dispatcher with an invalid root element',this.rootElement===null||typeof this.rootElement==='string'||this.rootElement instanceof Element);dispatcher.setup(customEvents,this.rootElement);return dispatcher;}/**\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            */getURL(){return this.router.url;}// `instance.visit(url)` should eventually replace `instance.handleURL()`;\n// the test helpers can probably be switched to use this implementation too\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 transition was aborted due to an error.\n               @public\n              @param url {String} the destination URL\n              @return {Promise<ApplicationInstance>}\n            */visit(url){this.setupRouter();let bootOptions=this.__container__.lookup('-environment:main');let router=this.router;let handleTransitionResolve=()=>{if(!bootOptions.options.shouldRender){// No rendering is needed, and routing has completed, simply return.\nreturn this;}else{// Ensure that the visit promise resolves when all rendering has completed\nreturn renderSettled().then(()=>this);}};let handleTransitionReject=error=>{if(error.error&&error.error instanceof Error){throw error.error;}else if(error.name==='TransitionAborted'&&router._routerMicrolib.activeTransition){return router._routerMicrolib.activeTransition.then(handleTransitionResolve,handleTransitionReject);}else if(error.name==='TransitionAborted'){throw new Error(error.message);}else{throw error;}};let location=get$2(router,'location');!(typeof location!=='string')&&assert$1('location has been initialized',typeof location!=='string');// Keeps the location adapter's internal URL in-sync\nlocation.setURL(url);// getURL returns the set url with the rootURL stripped off\nreturn router.handleURL(location.getURL()).then(handleTransitionResolve,handleTransitionReject);}willDestroy(){super.willDestroy();this.application._unwatchInstance(this);}/**\n             @private\n             @method setupRegistry\n             @param {Registry} registry\n             @param {BootOptions} options\n            */static setupRegistry(registry){let options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let coptions=options instanceof _BootOptions?options:new _BootOptions(options);registry.register('-environment:main',coptions.toEnvironment(),{instantiate:false});registry.register('service:-document',coptions.document,{instantiate:false});super.setupRegistry(registry,coptions);}}/**\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          */class _BootOptions{constructor(){let options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};/**\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            */_defineProperty(this,\"isInteractive\",void 0);/**\n              @property _renderMode\n              @type string\n              @default undefined\n              @private\n            */_defineProperty(this,\"_renderMode\",void 0);/**\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            */_defineProperty(this,\"isBrowser\",void 0);/**\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            */_defineProperty(this,\"location\",null);/**\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            */_defineProperty(this,\"shouldRender\",void 0);/**\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            */_defineProperty(this,\"document\",void 0);/**\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            */_defineProperty(this,\"rootElement\",void 0);this.isInteractive=Boolean(hasDOM);// This default is overridable below\nthis._renderMode=options._renderMode;if(options.isBrowser!==undefined){this.isBrowser=Boolean(options.isBrowser);}else{this.isBrowser=Boolean(hasDOM);}if(!this.isBrowser){this.isInteractive=false;this.location='none';}if(options.shouldRender!==undefined){this.shouldRender=Boolean(options.shouldRender);}else{this.shouldRender=true;}if(!this.shouldRender){this.isInteractive=false;}if(options.document){this.document=options.document;}else{this.document=typeof document!=='undefined'?document:null;}if(options.rootElement){this.rootElement=options.rootElement;}// 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)\nif(options.location!==undefined){this.location=options.location;}if(options.isInteractive!==undefined){this.isInteractive=Boolean(options.isInteractive);}}toEnvironment(){// Do we really want to assign all of this!?\nreturn{...emberinternalsBrowserEnvironmentIndex,// For compatibility with existing code\nhasDOM:this.isBrowser,isInteractive:this.isInteractive,_renderMode:this._renderMode,options:this};}}const emberApplicationInstance=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ApplicationInstance},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/application/namespace\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            @extends EmberObject\n            @public\n          */class Namespace extends EmberObject{init(properties){super.init(properties);addNamespace(this);}toString(){let existing_name=get$2(this,'name')||get$2(this,'modulePrefix');if(existing_name){!(typeof existing_name==='string')&&assert$1(\"name wasn't a string\",typeof existing_name==='string');return existing_name;}findNamespaces();let name=getName(this);if(name===undefined){name=guidFor(this);setName(this,name);}return name;}nameClasses(){processNamespace(this);}destroy(){removeNamespace(this);return super.destroy();}}// Declare on the prototype to have a single shared value.\n_defineProperty(Namespace,\"NAMESPACES\",NAMESPACES);_defineProperty(Namespace,\"NAMESPACES_BY_ID\",NAMESPACES_BY_ID);_defineProperty(Namespace,\"processAll\",processAllNamespaces);_defineProperty(Namespace,\"byName\",findNamespace);Namespace.prototype.isNamespace=true;const emberApplicationNamespace=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Namespace},Symbol.toStringTag,{value:'Module'});/**\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           */var DAG=function(){function DAG(){this._vertices=new Vertices();}/**\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             */DAG.prototype.add=function(key,value,before,after){if(!key)throw new Error('argument `key` is required');var vertices=this._vertices;var v=vertices.add(key);v.val=value;if(before){if(typeof before===\"string\"){vertices.addEdge(v,vertices.add(before));}else{for(var i=0;i<before.length;i++){vertices.addEdge(v,vertices.add(before[i]));}}}if(after){if(typeof after===\"string\"){vertices.addEdge(vertices.add(after),v);}else{for(var i=0;i<after.length;i++){vertices.addEdge(vertices.add(after[i]),v);}}}};/**\n             * @deprecated please use add.\n             */DAG.prototype.addEdges=function(key,value,before,after){this.add(key,value,before,after);};/**\n             * Visits key/value pairs in topological order.\n             *\n             * @public\n             * @param callback The function to be invoked with each key/value.\n             */DAG.prototype.each=function(callback){this._vertices.walk(callback);};/**\n             * @deprecated please use each.\n             */DAG.prototype.topsort=function(callback){this.each(callback);};return DAG;}();/** @private */var Vertices=function(){function Vertices(){this.length=0;this.stack=new IntStack();this.path=new IntStack();this.result=new IntStack();}Vertices.prototype.add=function(key){if(!key)throw new Error(\"missing key\");var l=this.length|0;var vertex;for(var i=0;i<l;i++){vertex=this[i];if(vertex.key===key)return vertex;}this.length=l+1;return this[l]={idx:l,key:key,val:undefined,out:false,flag:false,length:0};};Vertices.prototype.addEdge=function(v,w){this.check(v,w.key);var l=w.length|0;for(var i=0;i<l;i++){if(w[i]===v.idx)return;}w.length=l+1;w[l]=v.idx;v.out=true;};Vertices.prototype.walk=function(cb){this.reset();for(var i=0;i<this.length;i++){var vertex=this[i];if(vertex.out)continue;this.visit(vertex,\"\");}this.each(this.result,cb);};Vertices.prototype.check=function(v,w){if(v.key===w){throw new Error(\"cycle detected: \"+w+\" <- \"+w);}// quick check\nif(v.length===0)return;// shallow check\nfor(var i=0;i<v.length;i++){var key=this[v[i]].key;if(key===w){throw new Error(\"cycle detected: \"+w+\" <- \"+v.key+\" <- \"+w);}}// deep check\nthis.reset();this.visit(v,w);if(this.path.length>0){var msg_1=\"cycle detected: \"+w;this.each(this.path,function(key){msg_1+=\" <- \"+key;});throw new Error(msg_1);}};Vertices.prototype.reset=function(){this.stack.length=0;this.path.length=0;this.result.length=0;for(var i=0,l=this.length;i<l;i++){this[i].flag=false;}};Vertices.prototype.visit=function(start,search){var _a=this,stack=_a.stack,path=_a.path,result=_a.result;stack.push(start.idx);while(stack.length){var index=stack.pop()|0;if(index>=0){// enter\nvar vertex=this[index];if(vertex.flag)continue;vertex.flag=true;path.push(index);if(search===vertex.key)break;// push exit\nstack.push(~index);this.pushIncoming(vertex);}else{// exit\npath.pop();result.push(~index);}}};Vertices.prototype.pushIncoming=function(incomming){var stack=this.stack;for(var i=incomming.length-1;i>=0;i--){var index=incomming[i];if(!this[index].flag){stack.push(index);}}};Vertices.prototype.each=function(indices,cb){for(var i=0,l=indices.length;i<l;i++){var vertex=this[indices[i]];cb(vertex.key,vertex.val);}};return Vertices;}();/** @private */var IntStack=function(){function IntStack(){this.length=0;}IntStack.prototype.push=function(n){this[this.length++]=n|0;};IntStack.prototype.pop=function(){return this[--this.length]|0;};return IntStack;}();const dagMap=/*#__PURE__*/Object.defineProperty({__proto__:null,default:DAG},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/debug/container-debug-adapter\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          */class ContainerDebugAdapter extends EmberObject{constructor(owner){super(owner);/**\n              The resolver instance of the application\n              being debugged. This property will be injected\n              on creation.\n               @property resolver\n              @public\n            */_defineProperty(this,\"resolver\",void 0);this.resolver=getOwner$2(this).lookup('resolver-for-debugging:main');}/**\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            */canCatalogEntriesByType(type){if(type==='model'||type==='template'){return false;}return true;}/**\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            */catalogEntriesByType(type){let namespaces=Namespace.NAMESPACES;let types=[];let typeSuffixRegex=new RegExp(`${classify(type)}$`);namespaces.forEach(namespace=>{for(let key in namespace){if(!Object.prototype.hasOwnProperty.call(namespace,key)){continue;}if(typeSuffixRegex.test(key)){let klass=namespace[key];if(typeOf(klass)==='class'){types.push(dasherize(key.replace(typeSuffixRegex,'')));}}}});return types;}}const emberDebugContainerDebugAdapter=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ContainerDebugAdapter},Symbol.toStringTag,{value:'Module'});function props(obj){let properties=[];for(let key in obj){properties.push(key);}return properties;}/**\n          @module @ember/engine\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 RegistryProxyMixin\n            @public\n          */// eslint-disable-next-line @typescript-eslint/no-empty-interface\nclass Engine extends Namespace.extend(RegistryProxyMixin){constructor(){super(...arguments);/**\n              A private flag indicating whether an engine's initializers have run yet.\n               @private\n              @property _initializersRan\n            */_defineProperty(this,\"_initializersRan\",false);}/**\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            */static buildRegistry(namespace){let registry=new Registry({resolver:resolverFor(namespace)});registry.set=set;registry.register('application:main',namespace,{instantiate:false});commonSetupRegistry$1(registry);setupEngineRegistry(registry);return registry;}/**\n              Set this to provide an alternate class to `DefaultResolver`\n               @property resolver\n              @public\n            */init(properties){super.init(properties);this.buildRegistry();}/**\n              Ensure that initializers are run once, and only once, per engine.\n               @private\n              @method ensureInitializers\n            */ensureInitializers(){if(!this._initializersRan){this.runInitializers();this._initializersRan=true;}}/**\n              Create an EngineInstance for this engine.\n               @public\n              @method buildInstance\n              @return {EngineInstance} the engine instance\n            */buildInstance(){let options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.ensureInitializers();return EngineInstance.create({...options,base:this});}/**\n              Build and configure the registry for the current engine.\n               @private\n              @method buildRegistry\n              @return {Ember.Registry} the configured registry\n            */buildRegistry(){let registry=this.__registry__=this.constructor.buildRegistry(this);return registry;}/**\n              @private\n              @method initializer\n            */initializer(initializer){this.constructor.initializer(initializer);}/**\n              @private\n              @method instanceInitializer\n            */instanceInitializer(initializer){this.constructor.instanceInitializer(initializer);}/**\n              @private\n              @method runInitializers\n            */runInitializers(){this._runInitializer('initializers',(name,initializer)=>{!initializer&&assert$1(`No application initializer named '${name}'`,initializer);initializer.initialize(this);});}/**\n              @private\n              @since 1.12.0\n              @method runInstanceInitializers\n            */runInstanceInitializers(instance){this._runInitializer('instanceInitializers',(name,initializer)=>{!initializer&&assert$1(`No instance initializer named '${name}'`,initializer);initializer.initialize(instance);});}_runInitializer(bucketName,cb){let initializersByName=get$2(this.constructor,bucketName);let initializers=props(initializersByName);let graph=new DAG();let initializer;for(let name of initializers){initializer=initializersByName[name];!initializer&&assert$1(`missing ${bucketName}: ${name}`,initializer);graph.add(initializer.name,initializer,initializer.before,initializer.after);}graph.topsort(cb);}}/**\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.Enginer} namespace the namespace to look for classes\n            @return {*} the resolved value for a given lookup\n          */_defineProperty(Engine,\"initializers\",Object.create(null));_defineProperty(Engine,\"instanceInitializers\",Object.create(null));/**\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            */_defineProperty(Engine,\"initializer\",buildInitializerMethod('initializers','initializer'));/**\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               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 = document.querySelector('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            */_defineProperty(Engine,\"instanceInitializer\",buildInitializerMethod('instanceInitializers','instance initializer'));function resolverFor(namespace){let ResolverClass=namespace.Resolver;let props={namespace};return ResolverClass.create(props);}/** @internal */function buildInitializerMethod(bucketName,humanName){return function(initializer){// 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// SAFETY: The superclass may be an Engine, we don't call unless we confirmed it was ok.\nlet superclass=this.superclass;if(superclass[bucketName]!==undefined&&superclass[bucketName]===this[bucketName]){let attrs={[bucketName]:Object.create(this[bucketName])};this.reopenClass(attrs);}!!this[bucketName][initializer.name]&&assert$1(`The ${humanName} '${initializer.name}' has already been registered`,!this[bucketName][initializer.name]);!canInvoke(initializer,'initialize')&&assert$1(`An ${humanName} cannot be registered without an initialize function`,canInvoke(initializer,'initialize'));!(initializer.name!==undefined)&&assert$1(`An ${humanName} cannot be registered without a name property`,initializer.name!==undefined);let initializers=this[bucketName];initializers[initializer.name]=initializer;};}function commonSetupRegistry$1(registry){registry.optionsForType('component',{singleton:false});registry.optionsForType('view',{singleton:false});registry.register('controller:basic',Controller,{instantiate:false});// Register the routing service...\nregistry.register('service:-routing',RoutingService);// DEBUGGING\nregistry.register('resolver-for-debugging:main',registry.resolver,{instantiate:false});registry.register('container-debug-adapter:main',ContainerDebugAdapter);registry.register('component-lookup:main',ComponentLookup);}const emberEngineIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,buildInitializerMethod,default:Engine,getEngineParent,setEngineParent},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/application\n          *//**\n           * @deprecated Use `import { getOwner } from '@ember/owner';` instead.\n           */const getOwner=getOwner$1;/**\n           * @deprecated Use `import { setOwner } from '@ember/owner';` instead.\n           */const setOwner=setOwner$1;/**\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            export default class App extends Application {\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            export default class App extends Application {\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            export default class App extends Application {\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            export default class App extends Application {\n              rootElement = '#ember-app'\n            }\n            ```\n\n            The `rootElement` can be either a DOM element or a CSS 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            @public\n          */class Application extends Engine{constructor(){super(...arguments);_defineProperty(this,\"Router\",void 0);_defineProperty(this,\"__deprecatedInstance__\",void 0);_defineProperty(this,\"__container__\",void 0);_defineProperty(this,\"_bootPromise\",null);_defineProperty(this,\"_bootResolver\",null);}/**\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            */static buildRegistry(namespace){let registry=super.buildRegistry(namespace);commonSetupRegistry(registry);setupApplicationRegistry(registry);return registry;}/**\n              The root DOM element of the Application. This can be specified as an\n              element or a [selector string](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors#reference_table_of_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               @property _document\n              @type Document | null\n              @default 'window.document'\n              @private\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              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              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              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              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              @private\n            */init(properties){var _this$rootElement,_this$_document,_this$eventDispatcher,_this$customEvents,_this$autoboot,_this$_document2,_this$_globalsMode;super.init(properties);(_this$rootElement=this.rootElement)!==null&&_this$rootElement!==void 0?_this$rootElement:this.rootElement='body';(_this$_document=this._document)!==null&&_this$_document!==void 0?_this$_document:this._document=null;(_this$eventDispatcher=this.eventDispatcher)!==null&&_this$eventDispatcher!==void 0?_this$eventDispatcher:this.eventDispatcher=null;(_this$customEvents=this.customEvents)!==null&&_this$customEvents!==void 0?_this$customEvents:this.customEvents=null;(_this$autoboot=this.autoboot)!==null&&_this$autoboot!==void 0?_this$autoboot:this.autoboot=true;(_this$_document2=this._document)!==null&&_this$_document2!==void 0?_this$_document2:this._document=hasDOM?window.document:null;(_this$_globalsMode=this._globalsMode)!==null&&_this$_globalsMode!==void 0?_this$_globalsMode:this._globalsMode=true;{if(ENV.LOG_VERSION){var _LIBRARIES$logVersion;// we only need to see this once per Application#init\nENV.LOG_VERSION=false;(_LIBRARIES$logVersion=LIBRARIES.logVersions)===null||_LIBRARIES$logVersion===void 0||_LIBRARIES$logVersion.call(LIBRARIES);}}// Start off the number of deferrals at 1. This will be decremented by\n// the Application's own `boot` method.\nthis._readinessDeferrals=1;this._booted=false;this._applicationInstances=new Set();this.autoboot=this._globalsMode=Boolean(this.autoboot);if(this._globalsMode){this._prepareForGlobalsMode();}if(this.autoboot){this.waitForDOMReady();}}/**\n              Create an ApplicationInstance for this application.\n               @public\n              @method buildInstance\n              @return {ApplicationInstance} the application instance\n            */buildInstance(){let options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};!!this.isDestroyed&&assert$1('You cannot build new instances of this application since it has already been destroyed',!this.isDestroyed);!!this.isDestroying&&assert$1('You cannot build new instances of this application since it is being destroyed',!this.isDestroying);return ApplicationInstance.create({...options,base:this,application:this});}/**\n              Start tracking an ApplicationInstance for this application.\n              Used when the ApplicationInstance is created.\n               @private\n              @method _watchInstance\n            */_watchInstance(instance){this._applicationInstances.add(instance);}/**\n              Stop tracking an ApplicationInstance for this application.\n              Used when the ApplicationInstance is about to be destroyed.\n               @private\n              @method _unwatchInstance\n            */_unwatchInstance(instance){return this._applicationInstances.delete(instance);}/**\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            */_prepareForGlobalsMode(){// 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`.\nthis.Router=(this.Router||EmberRouter).extend();this._buildDeprecatedInstance();}/*\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            */_buildDeprecatedInstance(){// Build a default instance\nlet instance=this.buildInstance();// Legacy support for App.__container__ and other global methods\n// on App that rely on a single, default instance.\nthis.__deprecatedInstance__=instance;this.__container__=instance.__container__;}/**\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            */waitForDOMReady(){const document=this._document;// SAFETY: Casting as Document should be safe since we're just reading a property.\n// If it's not actually a Document then it will evaluate false which is fine for our\n// purposes.\nif(document===null||document.readyState!=='loading'){schedule('actions',this,this.domReady);}else{// Ideally we'd just check `document instanceof Document` but currently some tests pass a fake document.\n!function(d){return typeof d.removeEventListener==='function';}(document)&&assert$1('[BUG] Called waitForDOMReady with an invalid document',function(d){return typeof d.removeEventListener==='function';}(document));let callback=()=>{document.removeEventListener('DOMContentLoaded',callback);run$1(this,this.domReady);};document.addEventListener('DOMContentLoaded',callback);}}/**\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            */domReady(){if(this.isDestroying||this.isDestroyed){return;}this._bootSync();// Continues to `didBecomeReady`\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               fetch('/auth-token')\n              .then(response => response.json())\n              .then(data => {\n                App.token = data.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            */deferReadiness(){!(this instanceof Application)&&assert$1('You must call deferReadiness on an instance of Application',this instanceof Application);!!this.isDestroyed&&assert$1('You cannot defer readiness since application has already destroyed',!this.isDestroyed);!!this.isDestroying&&assert$1('You cannot defer readiness since the application is being destroyed',!this.isDestroying);!(this._readinessDeferrals>0)&&assert$1('You cannot defer readiness since the `ready()` hook has already been called',this._readinessDeferrals>0);this._readinessDeferrals++;}/**\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            */advanceReadiness(){!(this instanceof Application)&&assert$1('You must call advanceReadiness on an instance of Application',this instanceof Application);!!this.isDestroyed&&assert$1('You cannot advance readiness since application has already destroyed',!this.isDestroyed);!!this.isDestroying&&assert$1('You cannot advance readiness since the application is being destroyed',!this.isDestroying);!(this._readinessDeferrals>0)&&assert$1('You cannot advance readiness since the `ready()` hook has already been called',this._readinessDeferrals>0);this._readinessDeferrals--;if(this._readinessDeferrals===0){once(this,this.didBecomeReady);}}/**\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            */boot(){!!this.isDestroyed&&assert$1('You cannot boot this application since it has already been destroyed',!this.isDestroyed);!!this.isDestroying&&assert$1('You cannot boot this application since it is being destroyed',!this.isDestroying);if(this._bootPromise){return this._bootPromise;}try{this._bootSync();}catch(_){// Ignore the error: in the asynchronous boot path, the error is already reflected\n// in the promise rejection\n}!this._bootPromise&&assert$1('has boot promise',this._bootPromise);return this._bootPromise;}/**\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            */_bootSync(){if(this._booted||this.isDestroying||this.isDestroyed){return;}// 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.\nlet defer=this._bootResolver=rsvp.defer();this._bootPromise=defer.promise;try{this.runInitializers();runLoadHooks('application',this);this.advanceReadiness();// Continues to `didBecomeReady`\n}catch(error){// For the asynchronous boot path\ndefer.reject(error);// For the synchronous boot path\nthrow error;}}/**\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            */reset(){!!this.isDestroyed&&assert$1('You cannot reset this application since it has already been destroyed',!this.isDestroyed);!!this.isDestroying&&assert$1('You cannot reset this application since it is being destroyed',!this.isDestroying);!(this._globalsMode&&this.autoboot)&&assert$1(`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);let instance=this.__deprecatedInstance__;this._readinessDeferrals=1;this._bootPromise=null;this._bootResolver=null;this._booted=false;function handleReset(){!instance&&assert$1('expected instance',instance);run$1(instance,'destroy');this._buildDeprecatedInstance();schedule('actions',this,'_bootSync');}join(this,handleReset);}/**\n              @private\n              @method didBecomeReady\n            */didBecomeReady(){if(this.isDestroying||this.isDestroyed){return;}!this._bootResolver&&assert$1('expected _bootResolver',this._bootResolver);try{// TODO: Is this still needed for _globalsMode = false?\n// See documentation on `_autoboot()` for details\nif(this.autoboot){let instance;if(this._globalsMode){// If we already have the __deprecatedInstance__ lying around, boot it to\n// avoid unnecessary work\ninstance=this.__deprecatedInstance__;true&&!instance&&assert$1('expected instance',instance);}else{// 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\ninstance=this.buildInstance();}instance._bootSync();// TODO: App.ready() is not called when autoboot is disabled, is this correct?\nthis.ready();instance.startRouting();}// For the asynchronous boot path\nthis._bootResolver.resolve(this);// For the synchronous boot path\nthis._booted=true;}catch(error){// For the asynchronous boot path\nthis._bootResolver.reject(error);// For the synchronous boot path\nthrow error;}}/**\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            */ready(){return this;}// This method must be moved to the application instance object\nwillDestroy(){super.willDestroy();if(_loaded['application']===this){_loaded['application']=undefined;}if(this._applicationInstances.size){this._applicationInstances.forEach(i=>i.destroy());this._applicationInstances.clear();}}/**\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 DOM access 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              };\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              import { service } from '@ember/service';\n               // An example of how the (hypothetical) service is used in routes.\n               export default class IndexRoute extends Route {\n                @service network;\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            */visit(url,options){!!this.isDestroyed&&assert$1('You cannot visit this application since it has already been destroyed',!this.isDestroyed);!!this.isDestroying&&assert$1('You cannot visit this application since it is being destroyed',!this.isDestroying);return this.boot().then(()=>{let instance=this.buildInstance();return instance.boot(options).then(()=>instance.visit(url)).catch(error=>{run$1(instance,'destroy');throw error;});});}}_defineProperty(Application,\"initializer\",buildInitializerMethod('initializers','initializer'));_defineProperty(Application,\"instanceInitializer\",buildInitializerMethod('instanceInitializers','instance initializer'));function commonSetupRegistry(registry){registry.register('router:main',EmberRouter);registry.register('-view-registry:main',{create(){return makeDictionary(null);}});registry.register('route:basic',Route);registry.register('event_dispatcher:main',EventDispatcher);registry.register('location:hash',HashLocation);registry.register('location:history',HistoryLocation);registry.register('location:none',NoneLocation);registry.register(privatize`-bucket-cache:main`,{create(){return new BucketCache();}});registry.register('service:router',RouterService);}const emberApplicationIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,_loaded,default:Application,getOwner,onLoad,runLoadHooks,setOwner},Symbol.toStringTag,{value:'Module'});const emberArrayMutable=/*#__PURE__*/Object.defineProperty({__proto__:null,default:MutableArray},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/array/proxy\n          */function isMutable(obj){return Array.isArray(obj)||typeof obj.replace==='function';}const ARRAY_OBSERVER_MAPPING={willChange:'_arrangedContentArrayWillChange',didChange:'_arrangedContentArrayDidChange'};function customTagForArrayProxy(proxy,key){!(proxy instanceof ArrayProxy)&&assert$1('[BUG] Expected a proxy',proxy instanceof ArrayProxy);if(key==='[]'){proxy._revalidate();return proxy._arrTag;}else if(key==='length'){proxy._revalidate();return proxy._lengthTag;}return tagFor(proxy,key);}/**\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          */class ArrayProxy extends EmberObject{constructor(){super(...arguments);/*\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            *//** @internal */_defineProperty(this,\"_objectsDirtyIndex\",0);/** @internal */_defineProperty(this,\"_objects\",null);/** @internal */_defineProperty(this,\"_lengthDirty\",true);/** @internal */_defineProperty(this,\"_length\",0);/** @internal */_defineProperty(this,\"_arrangedContent\",null);/** @internal */_defineProperty(this,\"_arrangedContentIsUpdating\",false);/** @internal */_defineProperty(this,\"_arrangedContentTag\",null);/** @internal */_defineProperty(this,\"_arrangedContentRevision\",null);/** @internal */_defineProperty(this,\"_lengthTag\",null);/** @internal */_defineProperty(this,\"_arrTag\",null);}init(props){super.init(props);setCustomTagFor(this,customTagForArrayProxy);}[PROPERTY_DID_CHANGE](){this._revalidate();}willDestroy(){this._removeArrangedContentArrayObserver();}objectAtContent(idx){let arrangedContent=get$2(this,'arrangedContent');!arrangedContent&&assert$1('[BUG] Called objectAtContent without content',arrangedContent);return objectAt(arrangedContent,idx);}// See additional docs for `replace` from `MutableArray`:\n// https://api.emberjs.com/ember/release/classes/MutableArray/methods/replace?anchor=replace\nreplace(idx,amt,objects){!(get$2(this,'arrangedContent')===get$2(this,'content'))&&assert$1('Mutating an arranged ArrayProxy is not allowed',get$2(this,'arrangedContent')===get$2(this,'content'));this.replaceContent(idx,amt,objects);}replaceContent(idx,amt,objects){let content=get$2(this,'content');!content&&assert$1('[BUG] Called replaceContent without content',content);!isMutable(content)&&assert$1('Mutating a non-mutable array is not allowed',isMutable(content));replace(content,idx,amt,objects);}// Overriding objectAt is not supported.\nobjectAt(idx){this._revalidate();if(this._objects===null){this._objects=[];}if(this._objectsDirtyIndex!==-1&&idx>=this._objectsDirtyIndex){let arrangedContent=get$2(this,'arrangedContent');if(arrangedContent){let length=this._objects.length=get$2(arrangedContent,'length');for(let i=this._objectsDirtyIndex;i<length;i++){// SAFETY: This is expected to only ever return an instance of T. In other words, there should\n// be no gaps in the array. Unfortunately, we can't actually assert for it since T could include\n// any types, including null or undefined.\nthis._objects[i]=this.objectAtContent(i);}}else{this._objects.length=0;}this._objectsDirtyIndex=-1;}return this._objects[idx];}// Overriding length is not supported.\nget length(){this._revalidate();if(this._lengthDirty){let arrangedContent=get$2(this,'arrangedContent');this._length=arrangedContent?get$2(arrangedContent,'length'):0;this._lengthDirty=false;}!this._lengthTag&&assert$1('[BUG] _lengthTag is not set',this._lengthTag);consumeTag(this._lengthTag);return this._length;}set length(value){let length=this.length;let removedCount=length-value;let added;if(removedCount===0){return;}else if(removedCount<0){added=new Array(-removedCount);removedCount=0;}let content=get$2(this,'content');if(content){!isMutable(content)&&assert$1('Mutating a non-mutable array is not allowed',isMutable(content));replace(content,value,removedCount,added);this._invalidate();}}_updateArrangedContentArray(arrangedContent){let oldLength=this._objects===null?0:this._objects.length;let newLength=arrangedContent?get$2(arrangedContent,'length'):0;this._removeArrangedContentArrayObserver();arrayContentWillChange(this,0,oldLength,newLength);this._invalidate();arrayContentDidChange(this,0,oldLength,newLength,false);this._addArrangedContentArrayObserver(arrangedContent);}_addArrangedContentArrayObserver(arrangedContent){if(arrangedContent&&!arrangedContent.isDestroyed){!(arrangedContent!==this)&&assert$1(\"Can't set ArrayProxy's content to itself\",arrangedContent!==this);!function(arr){return Array.isArray(arr)||EmberArray.detect(arr);}(arrangedContent)&&assert$1(`ArrayProxy expects a native Array, EmberArray, or ArrayProxy, but you passed ${typeof arrangedContent}`,function(arr){return Array.isArray(arr)||EmberArray.detect(arr);}(arrangedContent));!!arrangedContent.isDestroyed&&assert$1('ArrayProxy expected its contents to not be destroyed',!arrangedContent.isDestroyed);addArrayObserver(arrangedContent,this,ARRAY_OBSERVER_MAPPING);this._arrangedContent=arrangedContent;}}_removeArrangedContentArrayObserver(){if(this._arrangedContent){removeArrayObserver(this._arrangedContent,this,ARRAY_OBSERVER_MAPPING);}}_arrangedContentArrayWillChange(){}_arrangedContentArrayDidChange(_proxy,idx,removedCnt,addedCnt){arrayContentWillChange(this,idx,removedCnt,addedCnt);let dirtyIndex=idx;if(dirtyIndex<0){let length=get$2(this._arrangedContent,'length');dirtyIndex+=length+removedCnt-addedCnt;}if(this._objectsDirtyIndex===-1||this._objectsDirtyIndex>dirtyIndex){this._objectsDirtyIndex=dirtyIndex;}this._lengthDirty=true;arrayContentDidChange(this,idx,removedCnt,addedCnt,false);}_invalidate(){this._objectsDirtyIndex=0;this._lengthDirty=true;}_revalidate(){if(this._arrangedContentIsUpdating===true)return;if(this._arrangedContentTag===null||!validateTag(this._arrangedContentTag,this._arrangedContentRevision)){let arrangedContent=this.get('arrangedContent');if(this._arrangedContentTag===null){// This is the first time the proxy has been setup, only add the observer\n// don't trigger any events\nthis._addArrangedContentArrayObserver(arrangedContent);}else{this._arrangedContentIsUpdating=true;this._updateArrangedContentArray(arrangedContent);this._arrangedContentIsUpdating=false;}let arrangedContentTag=this._arrangedContentTag=tagFor(this,'arrangedContent');this._arrangedContentRevision=valueForTag(this._arrangedContentTag);if(isObject$1(arrangedContent)){this._lengthTag=combine([arrangedContentTag,tagForProperty(arrangedContent,'length')]);this._arrTag=combine([arrangedContentTag,tagForProperty(arrangedContent,'[]')]);}else{this._lengthTag=this._arrTag=arrangedContentTag;}}}}ArrayProxy.reopen(MutableArray,{arrangedContent:alias('content')});const emberArrayProxy=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ArrayProxy},Symbol.toStringTag,{value:'Module'});/**\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          */const DEFAULT_FEATURES={// FLAG_NAME: true/false\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          */const FEATURES=Object.assign(DEFAULT_FEATURES,ENV.FEATURES);/**\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          */function isEnabled(feature){let value=FEATURES[feature];if(value===true||value===false){return value;}else if(ENV.ENABLE_OPTIONAL_FEATURES){return true;}else{return false;}}// Uncomment the below when features are present:\n// function featureValue(value: null | boolean) {\n//   if (ENV.ENABLE_OPTIONAL_FEATURES && value === null) {\n//     return true;\n//   }\n//   return value;\n// }\n//\n// export const FLAG_NAME = featureValue(FEATURES.FLAG_NAME);\nconst emberCanaryFeaturesIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,DEFAULT_FEATURES,FEATURES,isEnabled},Symbol.toStringTag,{value:'Module'});const emberComponentHelper=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Helper,helper:helper$2},Symbol.toStringTag,{value:'Module'});/**\n            @module @ember/component\n            @public\n           *//**\n           * Assigns a TemplateFactory to a component class.\n           *\n           * @method setComponentTemplate\n           * @static\n           * @for @ember/component\n           * @public\n           *\n           * ```js\n           * import Component from '@glimmer/component';\n           * import { hbs } from 'ember-cli-htmlbars';\n           * import { setComponentTemplate } from '@ember/component';\n           *\n           * export default class Demo extends Component {\n           *   // ...\n           * }\n           *\n           * setComponentTemplate(hbs`\n           *  <div>my template</div>\n           * `, Demo);\n           * ```\n           *\n           * @param {TemplateFactory} templateFactory\n           * @param {object} componentDefinition\n           *//**\n           * Returns the TemplateFactory associated with a component\n           *\n           * @method getComponentTemplate\n           * @static\n           * @for @ember/component\n           * @public\n           *\n           * ```js\n           * import Component from '@glimmer/component';\n           * import { hbs } from 'ember-cli-htmlbars';\n           * import { getComponentTemplate } from '@ember/component';\n           *\n           * export default class Demo extends Component {\n           *   // ...\n           * }\n           *\n           * let theTemplateFactory = getTemplateFactory(Demo)\n           * ```\n           *\n           * @param {object} componentDefinition\n           * @returns {TemplateFactory}\n           *//**\n           * Tell the VM how manage a type of object / class when encountered\n           * via component-invocation.\n           *\n           * A Component Manager, must implement this interface:\n           * - static create()\n           * - createComponent()\n           * - updateComponent()\n           * - destroyComponent()\n           * - getContext()\n           *\n           * @method setComponentManager\n           * @static\n           * @for @ember/component\n           * @public\n           *\n           *\n           * After a component manager is registered via `setComponentManager`,\n           *\n           * ```js\n           * import { StateNode } from 'xstate';\n           * import ComponentManager from './-private/statechart-manager';\n           *\n           * setComponentManager((owner) => ComponentManager.create(owner), StateNode.prototype);\n           * ```\n           *\n           * Instances of the class can be used as component.\n           * No need to extend from `@glimmer/component`.\n           *\n           * ```js\n           * // app/components/my-component.js\n           * import { createMachine } from 'xstate';\n           *\n           * export default createMachine({ ... });\n           * ```\n           * ```hbs\n           * {{!-- app/templates/application.hbs}}\n           * <MyComponent />\n           * ```\n           *\n           * @param {(owner: Owner) => import('@glimmer/interfaces').ComponentManager} managerFactory\n           * @param {object} object that will be managed by the return value of `managerFactory`\n           *\n           *//**\n           * Tells Glimmer what capabilities a Component Manager will have\n           *\n           * ```js\n           * import { capabilities } from '@ember/component';\n           *\n           * export class MyComponentManager {\n           *   capabilities = capabilities('3.13', {\n           *     // capabilities listed here\n           *   })\n           * }\n           * ```\n           *\n           *\n           * For a full list of capabilities, their defaults, and how they are used, see [@glimmer/manager](https://github.com/glimmerjs/glimmer-vm/blob/4f1bef0d9a8a3c3ebd934c5b6e09de4c5f6e4468/packages/%40glimmer/manager/lib/public/component.ts#L26)\n           *\n           *\n           * @method capabilities\n           * @static\n           * @for @ember/component\n           * @public\n           * @param {'3.13'} managerApiVersion\n           * @param {Parameters<import('@ember/-internals/glimmer').componentCapabilities>[1]} options\n           *\n           */const emberComponentIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,Input,Textarea,capabilities:componentCapabilities,default:Component,getComponentTemplate,setComponentManager,setComponentTemplate},Symbol.toStringTag,{value:'Module'});/**\n            @module @ember/component/template-only\n            @public\n          *//**\n           * Template-only components have no backing class instance, so `this` in their\n           * templates is null. This means that you can only reference passed in arguments\n           * (e.g. `{{@arg}}`).\n           */// eslint-disable-next-line @typescript-eslint/no-empty-interface\n/**\n           * A convenience alias for {@link TemplateOnlyComponent}\n           */// NOTES:\n//\n// 1. The generic here is for a *signature: a way to hang information for tools\n//    like Glint which can provide typey checking for component templates using\n//    information supplied via this generic. While it may appear useless on this\n//    class definition and extension, it is used by external tools and should\n//    not be removed.\n// 2. SAFETY: this cast is *throwing away* information that is not part of the\n//    public API and replacing it with something which has the same calling\n//    contract, but much less information (since we do not want to expose the\n//    internal APIs like `moduleName` etc.).\n// prettier-ignore\nconst templateOnly=templateOnlyComponent;const emberComponentTemplateOnly=/*#__PURE__*/Object.defineProperty({__proto__:null,default:templateOnly},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/debug/data-adapter\n          */// Represents the base contract for iterables as understood in the GLimmer VM\n// historically. This is *not* the public API for it, because there *is* no\n// public API for it. Recent versions of Glimmer simply use `Symbol.iterator`,\n// but some older consumers still use this basic shape.\nfunction iterate(arr,fn){if(Symbol.iterator in arr){for(let item of arr){fn(item);}}else{// SAFETY: this cast required to work this way to interop between TS 4.8\n// and 4.9. When we drop support for 4.8, it will narrow correctly via the\n// use of the `in` operator above. (Preferably we will solve this by just\n// switching to require `Symbol.iterator` instead.)\nassert$1('',typeof arr.forEach==='function');arr.forEach(fn);}}class RecordsWatcher{getCacheForItem(record){let recordCache=this.recordCaches.get(record);if(!recordCache){let hasBeenAdded=false;recordCache=createCache(()=>{if(!hasBeenAdded){this.added.push(this.wrapRecord(record));hasBeenAdded=true;}else{this.updated.push(this.wrapRecord(record));}});this.recordCaches.set(record,recordCache);}return recordCache;}constructor(records,recordsAdded,recordsUpdated,recordsRemoved,wrapRecord,release){_defineProperty(this,\"recordCaches\",new Map());_defineProperty(this,\"added\",[]);_defineProperty(this,\"updated\",[]);_defineProperty(this,\"removed\",[]);this.wrapRecord=wrapRecord;this.release=release;this.recordArrayCache=createCache(()=>{let seen=new Set();// Track `[]` for legacy support\nconsumeTag(tagFor(records,'[]'));iterate(records,record=>{getValue(this.getCacheForItem(record));seen.add(record);});// Untrack this operation because these records are being removed, they\n// should not be polled again in the future\nuntrack(()=>{this.recordCaches.forEach((_cache,record)=>{if(!seen.has(record)){this.removed.push(wrapRecord(record));this.recordCaches.delete(record);}});});if(this.added.length>0){recordsAdded(this.added);this.added=[];}if(this.updated.length>0){recordsUpdated(this.updated);this.updated=[];}if(this.removed.length>0){recordsRemoved(this.removed);this.removed=[];}});}revalidate(){getValue(this.recordArrayCache);}}class TypeWatcher{constructor(records,onChange,release){this.release=release;let hasBeenAccessed=false;this.cache=createCache(()=>{// Empty iteration, we're doing this just\n// to track changes to the records array\niterate(records,()=>{});// Also track `[]` for legacy support\nconsumeTag(tagFor(records,'[]'));if(hasBeenAccessed===true){next(onChange);}else{hasBeenAccessed=true;}});this.release=release;}revalidate(){getValue(this.cache);}}/**\n            The `DataAdapter` helps a data persistence library\n            interface with tools that debug Ember such\n            as the [Ember Inspector](https://github.com/emberjs/ember-inspector)\n            for Chrome and Firefox.\n\n            This class will be extended by a persistence library\n            which will override some of the methods with\n            library-specific code.\n\n            The methods likely to be overridden are:\n\n            * `getFilters`\n            * `detect`\n            * `columnsForType`\n            * `getRecords`\n            * `getRecordColumnValues`\n            * `getRecordKeywords`\n            * `getRecordFilterValues`\n            * `getRecordColor`\n\n            The adapter will need to be registered\n            in the application's container as `dataAdapter:main`.\n\n            Example:\n\n            ```javascript\n            Application.initializer({\n              name: \"data-adapter\",\n\n              initialize: function(application) {\n                application.register('data-adapter:main', DS.DataAdapter);\n              }\n            });\n            ```\n\n            @class DataAdapter\n            @extends EmberObject\n            @public\n          */class DataAdapter extends EmberObject{// TODO: Revisit this\nconstructor(owner){super(owner);_defineProperty(this,\"releaseMethods\",A());_defineProperty(this,\"recordsWatchers\",new Map());_defineProperty(this,\"typeWatchers\",new Map());_defineProperty(this,\"flushWatchers\",null);/**\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              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            */_defineProperty(this,\"attributeLimit\",3);/**\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             */_defineProperty(this,\"acceptsModelName\",true);this.containerDebugAdapter=getOwner$2(this).lookup('container-debug-adapter:main');}/**\n               Map from records arrays to RecordsWatcher instances\n                @private\n               @property recordsWatchers\n               @since 3.26.0\n             *//**\n              Map from records arrays to TypeWatcher instances\n               @private\n              @property typeWatchers\n              @since 3.26.0\n             *//**\n              Callback that is currently scheduled on backburner end to flush and check\n              all active watchers.\n               @private\n              @property flushWatchers\n              @since 3.26.0\n              *//**\n              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              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            */getFilters(){return A();}/**\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            */watchModelTypes(typesAdded,typesUpdated){let modelTypes=this.getModelTypes();let releaseMethods=A();let typesToSend;typesToSend=modelTypes.map(type=>{let klass=type.klass;let wrapped=this.wrapModelType(klass,type.name);releaseMethods.push(this.observeModelType(type.name,typesUpdated));return wrapped;});typesAdded(typesToSend);let release=()=>{releaseMethods.forEach(fn=>fn());this.releaseMethods.removeObject(release);};this.releaseMethods.pushObject(release);return release;}_nameToClass(type){if(typeof type==='string'){let owner=getOwner$2(this);let Factory=owner.factoryFor(`model:${type}`);type=Factory&&Factory.class;}return type;}/**\n              Fetch the records of a given type and observe them for changes.\n               @public\n              @method watchRecords\n               @param {String} modelName The model name.\n               @param {Function} recordsAdded Callback to call to add records.\n              Takes an array of objects containing wrapped records.\n              The object should have the following properties:\n                columnValues: {Object} The key and value of a table cell.\n                object: {Object} The actual record object.\n               @param {Function} recordsUpdated Callback to call when a record has changed.\n              Takes an array of objects containing wrapped records.\n               @param {Function} recordsRemoved Callback to call when a record has removed.\n              Takes an array of objects containing wrapped records.\n               @return {Function} Method to call to remove all observers.\n            */watchRecords(modelName,recordsAdded,recordsUpdated,recordsRemoved){let klass=this._nameToClass(modelName);let records=this.getRecords(klass,modelName);let{recordsWatchers}=this;let recordsWatcher=recordsWatchers.get(records);if(!recordsWatcher){recordsWatcher=new RecordsWatcher(records,recordsAdded,recordsUpdated,recordsRemoved,record=>this.wrapRecord(record),()=>{recordsWatchers.delete(records);this.updateFlushWatchers();});recordsWatchers.set(records,recordsWatcher);this.updateFlushWatchers();recordsWatcher.revalidate();}return recordsWatcher.release;}updateFlushWatchers(){if(this.flushWatchers===null){if(this.typeWatchers.size>0||this.recordsWatchers.size>0){this.flushWatchers=()=>{this.typeWatchers.forEach(watcher=>watcher.revalidate());this.recordsWatchers.forEach(watcher=>watcher.revalidate());};_backburner.on('end',this.flushWatchers);}}else if(this.typeWatchers.size===0&&this.recordsWatchers.size===0){_backburner.off('end',this.flushWatchers);this.flushWatchers=null;}}/**\n              Clear all observers before destruction\n              @private\n              @method willDestroy\n            */willDestroy(){this._super(...arguments);this.typeWatchers.forEach(watcher=>watcher.release());this.recordsWatchers.forEach(watcher=>watcher.release());this.releaseMethods.forEach(fn=>fn());if(this.flushWatchers){_backburner.off('end',this.flushWatchers);}}/**\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            */detect(_klass){return false;}/**\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            */columnsForType(_klass){return A();}/**\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            */observeModelType(modelName,typesUpdated){let klass=this._nameToClass(modelName);let records=this.getRecords(klass,modelName);let onChange=()=>{typesUpdated([this.wrapModelType(klass,modelName)]);};let{typeWatchers}=this;let typeWatcher=typeWatchers.get(records);if(!typeWatcher){typeWatcher=new TypeWatcher(records,onChange,()=>{typeWatchers.delete(records);this.updateFlushWatchers();});typeWatchers.set(records,typeWatcher);this.updateFlushWatchers();typeWatcher.revalidate();}return typeWatcher.release;}/**\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} 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            */wrapModelType(klass,name){let records=this.getRecords(klass,name);return{name,count:get$2(records,'length'),columns:this.columnsForType(klass),object:klass};}/**\n              Fetches all models defined in the application.\n               @private\n              @method getModelTypes\n              @return {Array} Array of model types.\n            */getModelTypes(){let containerDebugAdapter=this.containerDebugAdapter;let stringTypes=containerDebugAdapter.canCatalogEntriesByType('model')?containerDebugAdapter.catalogEntriesByType('model'):this._getObjectsOnNamespaces();// New adapters return strings instead of classes.\nlet klassTypes=stringTypes.map(name=>{return{klass:this._nameToClass(name),name};});return klassTypes.filter(type=>this.detect(type.klass));}/**\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            */_getObjectsOnNamespaces(){let namespaces=Namespace.NAMESPACES;let types=[];namespaces.forEach(namespace=>{for(let key in namespace){if(!Object.prototype.hasOwnProperty.call(namespace,key)){continue;}// Even though we will filter again in `getModelTypes`,\n// we should not call `lookupFactory` on non-models\nif(!this.detect(namespace[key])){continue;}let name=dasherize(key);types.push(name);}});return types;}/**\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            */getRecords(_klass,_name){return A();}/**\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            */wrapRecord(record){return{object:record,columnValues:this.getRecordColumnValues(record),searchKeywords:this.getRecordKeywords(record),filterValues:this.getRecordFilterValues(record),color:this.getRecordColor(record)};}/**\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            */getRecordColumnValues(_record){return{};}/**\n              Returns keywords to match when searching records.\n               @public\n              @method getRecordKeywords\n              @return {Array} Relevant keywords for search.\n            */getRecordKeywords(_record){return A();}/**\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            */getRecordFilterValues(_record){return{};}/**\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            */getRecordColor(_record){return null;}}const emberDebugDataAdapter=/*#__PURE__*/Object.defineProperty({__proto__:null,default:DataAdapter},Symbol.toStringTag,{value:'Module'});/* eslint-disable no-implicit-coercion */// These versions should be the version that the deprecation was _introduced_,\n// not the version that the feature will be removed.\nconst ASSIGN=!!'4.0.0-beta.1';const emberDeprecatedFeaturesIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,ASSIGN},Symbol.toStringTag,{value:'Module'});/**\n            Ember manages the lifecycles and lifetimes of many built in constructs, such\n            as components, and does so in a hierarchical way - when a parent component is\n            destroyed, all of its children are destroyed as well.\n\n            This destroyables API exposes the basic building blocks for destruction:\n\n            * registering a function to be ran when an object is destroyed\n            * checking if an object is in a destroying state\n            * associate an object as a child of another so that the child object will be destroyed\n              when the associated parent object is destroyed.\n\n            @module @ember/destroyable\n            @public\n          *//**\n            This function is used to associate a destroyable object with a parent. When the parent\n            is destroyed, all registered children will also be destroyed.\n\n            ```js\n            class CustomSelect extends Component {\n              constructor(...args) {\n                super(...args);\n\n                // obj is now a child of the component. When the component is destroyed,\n                // obj will also be destroyed, and have all of its destructors triggered.\n                this.obj = associateDestroyableChild(this, {});\n              }\n            }\n            ```\n\n            Returns the associated child for convenience.\n\n            @method associateDestroyableChild\n            @for @ember/destroyable\n            @param {Object|Function} parent the destroyable to entangle the child destroyables lifetime with\n            @param {Object|Function} child the destroyable to be entangled with the parents lifetime\n            @returns {Object|Function} the child argument\n            @static\n            @public\n          *//**\n           Receives a destroyable, and returns true if the destroyable has begun destroying. Otherwise returns\n           false.\n\n            ```js\n            let obj = {};\n            isDestroying(obj); // false\n            destroy(obj);\n            isDestroying(obj); // true\n            // ...sometime later, after scheduled destruction\n            isDestroyed(obj); // true\n            isDestroying(obj); // true\n            ```\n\n            @method isDestroying\n            @for @ember/destroyable\n            @param {Object|Function} destroyable the object to check\n            @returns {Boolean}\n            @static\n            @public\n          *//**\n            Receives a destroyable, and returns true if the destroyable has finished destroying. Otherwise\n            returns false.\n\n            ```js\n            let obj = {};\n\n            isDestroyed(obj); // false\n            destroy(obj);\n\n            // ...sometime later, after scheduled destruction\n\n            isDestroyed(obj); // true\n            ```\n\n            @method isDestroyed\n            @for @ember/destroyable\n            @param {Object|Function} destroyable the object to check\n            @returns {Boolean}\n            @static\n            @public\n          *//**\n            Initiates the destruction of a destroyable object. It runs all associated destructors, and then\n            destroys all children recursively.\n\n            ```js\n            let obj = {};\n\n            registerDestructor(obj, () => console.log('destroyed!'));\n\n            destroy(obj); // this will schedule the destructor to be called\n\n            // ...some time later, during scheduled destruction\n\n            // destroyed!\n            ```\n\n            Destruction via `destroy()` follows these steps:\n\n            1, Mark the destroyable such that `isDestroying(destroyable)` returns `true`\n            2, Call `destroy()` on each of the destroyable's associated children\n            3, Schedule calling the destroyable's destructors\n            4, Schedule setting destroyable such that `isDestroyed(destroyable)` returns `true`\n\n            This results in the entire tree of destroyables being first marked as destroying,\n            then having all of their destructors called, and finally all being marked as isDestroyed.\n            There won't be any in between states where some items are marked as `isDestroying` while\n            destroying, while others are not.\n\n            @method destroy\n            @for @ember/destroyable\n            @param {Object|Function} destroyable the object to destroy\n            @static\n            @public\n          *//**\n            This function asserts that all objects which have associated destructors or associated children\n            have been destroyed at the time it is called. It is meant to be a low level hook that testing\n            frameworks can use to hook into and validate that all destroyables have in fact been destroyed.\n\n            This function requires that `enableDestroyableTracking` was called previously, and is only\n            available in non-production builds.\n\n            @method assertDestroyablesDestroyed\n            @for @ember/destroyable\n            @static\n            @public\n          *//**\n            This function instructs the destroyable system to keep track of all destroyables (their\n            children, destructors, etc). This enables a future usage of `assertDestroyablesDestroyed`\n            to be used to ensure that all destroyable tasks (registered destructors and associated children)\n            have completed when `assertDestroyablesDestroyed` is called.\n\n            @method enableDestroyableTracking\n            @for @ember/destroyable\n            @static\n            @public\n          *//**\n            Receives a destroyable object and a destructor function, and associates the\n            function with it. When the destroyable is destroyed with destroy, or when its\n            parent is destroyed, the destructor function will be called.\n\n            ```js\n            import Component from '@glimmer/component';\n            import { registerDestructor } from '@ember/destroyable';\n\n            class Modal extends Component {\n              @service resize;\n\n              constructor(...args) {\n                super(...args);\n\n                this.resize.register(this, this.layout);\n\n                registerDestructor(this, () => this.resize.unregister(this));\n              }\n            }\n            ```\n\n            Multiple destructors can be associated with a given destroyable, and they can be\n            associated over time, allowing libraries to dynamically add destructors as needed.\n            `registerDestructor` also returns the associated destructor function, for convenience.\n\n            The destructor function is passed a single argument, which is the destroyable itself.\n            This allows the function to be reused multiple times for many destroyables, rather\n            than creating a closure function per destroyable.\n\n            ```js\n            import Component from '@glimmer/component';\n            import { registerDestructor } from '@ember/destroyable';\n\n            function unregisterResize(instance) {\n              instance.resize.unregister(instance);\n            }\n\n            class Modal extends Component {\n              @service resize;\n\n              constructor(...args) {\n                super(...args);\n\n                this.resize.register(this, this.layout);\n\n                registerDestructor(this, unregisterResize);\n              }\n            }\n            ```\n\n            @method registerDestructor\n            @for @ember/destroyable\n            @param {Object|Function} destroyable the destroyable to register the destructor function with\n            @param {Function} destructor the destructor to run when the destroyable object is destroyed\n            @static\n            @public\n          */function registerDestructor(destroyable,destructor){return registerDestructor$1(destroyable,destructor);}/**\n            Receives a destroyable and a destructor function, and de-associates the destructor\n            from the destroyable.\n\n            ```js\n            import Component from '@glimmer/component';\n            import { registerDestructor, unregisterDestructor } from '@ember/destroyable';\n\n            class Modal extends Component {\n              @service modals;\n\n              constructor(...args) {\n                super(...args);\n\n                this.modals.add(this);\n\n                this.modalDestructor = registerDestructor(this, () => this.modals.remove(this));\n              }\n\n              @action pinModal() {\n                unregisterDestructor(this, this.modalDestructor);\n              }\n            }\n            ```\n\n            @method unregisterDestructor\n            @for @ember/destroyable\n            @param {Object|Function} destroyable the destroyable to unregister the destructor function from\n            @param {Function} destructor the destructor to remove from the destroyable\n            @static\n            @public\n          */function unregisterDestructor(destroyable,destructor){return unregisterDestructor$1(destroyable,destructor);}const emberDestroyableIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,get assertDestroyablesDestroyed(){return assertDestroyablesDestroyed;},associateDestroyableChild,destroy,get enableDestroyableTracking(){return enableDestroyableTracking;},isDestroyed,isDestroying,registerDestructor,unregisterDestructor},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/helper\n          *//**\n            `capabilities` returns a capabilities configuration which can be used to modify\n            the behavior of the manager. Manager capabilities _must_ be provided using the\n            `capabilities` function, as the underlying implementation can change over time.\n\n            The first argument to capabilities is a version string, which is the version of\n            Ember that the capabilities were defined in. Ember can add new versions at any\n            time, and these may have entirely different behaviors, but it will not remove\n            old versions until the next major version.\n\n            ```js\n            capabilities('3.23');\n            ```\n\n            The second argument is an object of capabilities and boolean values indicating\n            whether they are enabled or disabled.\n\n            ```js\n            capabilities('3.23', {\n              hasValue: true,\n              hasDestructor: true,\n            });\n            ```\n\n            If no value is specified, then the default value will be used.\n\n            ### `3.23` capabilities\n\n            #### `hasDestroyable`\n\n            - Default value: false\n\n            Determines if the helper has a destroyable to include in the destructor\n            hierarchy. If enabled, the `getDestroyable` hook will be called, and its result\n            will be associated with the destroyable parent block.\n\n            #### `hasValue`\n\n            - Default value: false\n\n            Determines if the helper has a value which can be used externally. The helper's\n            `getValue` hook will be run whenever the value of the helper is accessed if this\n            capability is enabled.\n\n            @method capabilities\n            @for @ember/helper\n            @static\n            @param {String} managerApiVersion The version of capabilities that are being used\n            @param options The capabilities values\n            @return {Capabilities} The capabilities object instance\n            @public\n          */const capabilities=helperCapabilities;/**\n            Sets the helper manager for an object or function.\n\n            ```js\n            setHelperManager((owner) => new ClassHelperManager(owner), Helper)\n            ```\n\n            When a value is used as a helper in a template, the helper manager is looked up\n            on the object by walking up its prototype chain and finding the first helper\n            manager. This manager then receives the value and can create and manage an\n            instance of a helper from it. This provides a layer of indirection that allows\n            users to design high-level helper APIs, without Ember needing to worry about the\n            details. High-level APIs can be experimented with and iterated on while the\n            core of Ember helpers remains stable, and new APIs can be introduced gradually\n            over time to existing code bases.\n\n            `setHelperManager` receives two arguments:\n\n            1. A factory function, which receives the `owner` and returns an instance of a\n              helper manager.\n            2. A helper definition, which is the object or function to associate the factory function with.\n\n            The first time the object is looked up, the factory function will be called to\n            create the helper manager. It will be cached, and in subsequent lookups the\n            cached helper manager will be used instead.\n\n            Only one helper manager is guaranteed to exist per `owner` and per usage of\n            `setHelperManager`, so many helpers will end up using the same instance of the\n            helper manager. As such, you should only store state that is related to the\n            manager itself. If you want to store state specific to a particular helper\n            definition, you should assign a unique helper manager to that helper. In\n            general, most managers should either be stateless, or only have the `owner` they\n            were created with as state.\n\n            Helper managers must fulfill the following interface (This example uses\n            [TypeScript interfaces](https://www.typescriptlang.org/docs/handbook/interfaces.html)\n            for precision, you do not need to write helper managers using TypeScript):\n\n            ```ts\n            interface HelperManager<HelperStateBucket> {\n              capabilities: HelperCapabilities;\n\n              createHelper(definition: HelperDefinition, args: TemplateArgs): HelperStateBucket;\n\n              getValue?(bucket: HelperStateBucket): unknown;\n\n              runEffect?(bucket: HelperStateBucket): void;\n\n              getDestroyable?(bucket: HelperStateBucket): object;\n            }\n            ```\n\n            The capabilities property _must_ be provided using the `capabilities()` function\n            imported from the same module as `setHelperManager`:\n\n            ```js\n            import { capabilities } from '@ember/helper';\n\n            class MyHelperManager {\n              capabilities = capabilities('3.21.0', { hasValue: true });\n\n              // ...snip...\n            }\n            ```\n\n            Below is a description of each of the methods on the interface and their\n            functions.\n\n            #### `createHelper`\n\n            `createHelper` is a required hook on the HelperManager interface. The hook is\n            passed the definition of the helper that is currently being created, and is\n            expected to return a _state bucket_. This state bucket is what represents the\n            current state of the helper, and will be passed to the other lifecycle hooks at\n            appropriate times. It is not necessarily related to the definition of the\n            helper itself - for instance, you could return an object _containing_ an\n            instance of the helper:\n\n            ```js\n            class MyManager {\n              createHelper(Definition, args) {\n                return {\n                  instance: new Definition(args);\n                };\n              }\n            }\n            ```\n\n            This allows the manager to store metadata that it doesn't want to expose to the\n            user.\n\n            This hook is _not_ autotracked - changes to tracked values used within this hook\n            will _not_ result in a call to any of the other lifecycle hooks. This is because\n            it is unclear what should happen if it invalidates, and rather than make a\n            decision at this point, the initial API is aiming to allow as much expressivity\n            as possible. This could change in the future with changes to capabilities and\n            their behaviors.\n\n            If users do want to autotrack some values used during construction, they can\n            either create the instance of the helper in `runEffect` or `getValue`, or they\n            can use the `cache` API to autotrack the `createHelper` hook themselves. This\n            provides maximum flexibility and expressiveness to manager authors.\n\n            This hook has the following timing semantics:\n\n            **Always**\n            - called as discovered during DOM construction\n            - called in definition order in the template\n\n            #### `getValue`\n\n            `getValue` is an optional hook that should return the value of the helper. This\n            is the value that is returned from the helper and passed into the template.\n\n            This hook is called when the value is requested from the helper (e.g. when the\n            template is rendering and the helper value is needed). The hook is autotracked,\n            and will rerun whenever any tracked values used inside of it are updated.\n            Otherwise it does not rerun.\n\n            > Note: This means that arguments which are not _consumed_ within the hook will\n            > not trigger updates.\n\n            This hook is only called for helpers with the `hasValue` capability enabled.\n            This hook has the following timing semantics:\n\n            **Always**\n            - called the first time the helper value is requested\n            - called after autotracked state has changed\n\n            **Never**\n            - called if the `hasValue` capability is disabled\n\n            #### `runEffect`\n\n            `runEffect` is an optional hook that should run the effect that the helper is\n            applying, setting it up or updating it.\n\n            This hook is scheduled to be called some time after render and prior to paint.\n            There is not a guaranteed, 1-to-1 relationship between a render pass and this\n            hook firing. For instance, multiple render passes could occur, and the hook may\n            only trigger once. It may also never trigger if it was dirtied in one render\n            pass and then destroyed in the next.\n\n            The hook is autotracked, and will rerun whenever any tracked values used inside\n            of it are updated. Otherwise it does not rerun.\n\n            The hook is also run during a time period where state mutations are _disabled_\n            in Ember. Any tracked state mutation will throw an error during this time,\n            including changes to tracked properties, changes made using `Ember.set`, updates\n            to computed properties, etc. This is meant to prevent infinite rerenders and\n            other antipatterns.\n\n            This hook is only called for helpers with the `hasScheduledEffect` capability\n            enabled. This hook is also not called in SSR currently, though this could be\n            added as a capability in the future. It has the following timing semantics:\n\n            **Always**\n            - called after the helper was first created, if the helper has not been\n              destroyed since creation\n            - called after autotracked state has changed, if the helper has not been\n              destroyed during render\n\n            **Never**\n            - called if the `hasScheduledEffect` capability is disabled\n            - called in SSR\n\n            #### `getDestroyable`\n\n            `getDestroyable` is an optional hook that users can use to register a\n            destroyable object for the helper. This destroyable will be registered to the\n            containing block or template parent, and will be destroyed when it is destroyed.\n            See the [Destroyables RFC](https://github.com/emberjs/rfcs/blob/master/text/0580-destroyables.md)\n            for more details.\n\n            `getDestroyable` is only called if the `hasDestroyable` capability is enabled.\n\n            This hook has the following timing semantics:\n\n            **Always**\n            - called immediately after the `createHelper` hook is called\n\n            **Never**\n            - called if the `hasDestroyable` capability is disabled\n\n            @method setHelperManager\n            @for @ember/helper\n            @static\n            @param {Function} factory A factory function which receives an optional owner, and returns a helper manager\n            @param {object} definition The definition to associate the manager factory with\n            @return {object} The definition passed into setHelperManager\n            @public\n          */const setHelperManager=setHelperManager$1;/**\n            The `invokeHelper` function can be used to create a helper instance in\n            JavaScript.\n\n            To access a helper's value you have to use `getValue` from\n            `@glimmer/tracking/primitives/cache`.\n\n            ```js\n            // app/components/data-loader.js\n            import Component from '@glimmer/component';\n            import { getValue } from '@glimmer/tracking/primitives/cache';\n            import Helper from '@ember/component/helper';\n            import { invokeHelper } from '@ember/helper';\n\n            class PlusOne extends Helper {\n              compute([number]) {\n                return number + 1;\n              }\n            }\n\n            export default class PlusOneComponent extends Component {\n              plusOne = invokeHelper(this, PlusOne, () => {\n                return {\n                  positional: [this.args.number],\n                };\n              });\n\n              get value() {\n                return getValue(this.plusOne);\n              }\n            }\n            ```\n            ```js\n            {{this.value}}\n            ```\n\n            It receives three arguments:\n\n            * `context`: The parent context of the helper. When the parent is torn down and\n              removed, the helper will be as well.\n            * `definition`: The definition of the helper.\n            * `computeArgs`: An optional function that produces the arguments to the helper.\n              The function receives the parent context as an argument, and must return an\n              object with a `positional` property that is an array and/or a `named`\n              property that is an object.\n\n            And it returns a Cache instance that contains the most recent value of the\n            helper. You can access the helper using `getValue()` like any other cache. The\n            cache is also destroyable, and using the `destroy()` function on it will cause\n            the helper to be torn down.\n\n            Note that using `getValue()` on helpers that have scheduled effects will not\n            trigger the effect early. Effects will continue to run at their scheduled time.\n\n            @method invokeHelper\n            @for @ember/helper\n            @static\n            @param {object} context The parent context of the helper\n            @param {object} definition The helper definition\n            @param {Function} computeArgs An optional function that produces args\n            @returns\n            @public\n          */const invokeHelper=invokeHelper$1;// SAFETY: we need to provide interfaces that Glint can declaration-merge with\n// to provide appropriate completions. In each case, the imported item is\n// currently typed only as `object`, and we are replacing it with a similarly\n// low-information interface type: these are empty objects which are simply able\n// to be distinguished so that Glint can provide the relevant extensions.\n/* eslint-disable @typescript-eslint/no-empty-interface *//**\n           * Using the `{{hash}}` helper, you can pass objects directly from the template\n           * as an argument to your components.\n           *\n           * ```\n           * import { hash } from '@ember/helper';\n           *\n           * <template>\n           *   {{#each-in (hash givenName='Jen' familyName='Weber') as |key value|}}\n           *     <p>{{key}}: {{value}}</p>\n           *   {{/each-in}}\n           * </template>\n           * ```\n           *\n           * **NOTE:** this example uses the experimental `<template>` feature, which is\n           * the only place you need to import `hash` to use it (it is a built-in when\n           * writing standalone `.hbs` files).\n           */const hash=hash$1;/**\n           * Using the `{{array}}` helper, you can pass arrays directly from the template\n           * as an argument to your components.\n           *\n           * ```js\n           * import { array } from '@ember/helper';\n           *\n           * <template>\n           *   <ul>\n           *   {{#each (array 'Tom Dale' 'Yehuda Katz' @anotherPerson) as |person|}}\n           *     <li>{{person}}</li>\n           *   {{/each}}\n           *   </ul>\n           * </template>\n           *\n           * **NOTE:** this example uses the experimental `<template>` feature, which is\n           * the only place you need to import `array` to use it (it is a built-in when\n           * writing standalone `.hbs` files).\n           * ```\n           */const array=array$1;/**\n           * The `{{concat}}` helper makes it easy to dynamically send a number of\n           * parameters to a component or helper as a single parameter in the format of a\n           * concatenated string.\n           *\n           * For example:\n           *\n           * ```js\n           * import { concat } from '@ember/helper';\n           *\n           * <template>\n           *   {{get @foo (concat \"item\" @index)}}\n           * </template>\n           * ```\n           *\n           * This will display the result of `@foo.item1` when `index` is `1`, and\n           * `this.foo.item2` when `index` is `2`, etc.\n           *\n           * **NOTE:** this example uses the experimental `<template>` feature, which is\n           * the only place you need to import `concat` to use it (it is a built-in when\n           * writing standalone `.hbs` files).\n           */const concat=concat$1;/**\n           * The `{{get}}` helper makes it easy to dynamically look up a property on an\n           * object or an element in an array. The second argument to `{{get}}` can be a\n           * string or a number, depending on the object being accessed.\n           *\n           * To access a property on an object with a string key:\n           *\n           * ```js\n           * import { get } from '@ember/helper';\n           *\n           * <template>\n           *   {{get @someObject \"objectKey\"}}\n           * </template>\n           * ```\n           *\n           * To access the first element in an array:\n           *\n           * ```js\n           * import { get } from '@ember/helper';\n           *\n           * <template>\n           *   {{get @someArray 0}}\n           * </template>\n           * ```\n           *\n           * To access a property on an object with a dynamic key:\n           *\n           * ```js\n           * import { get } from '@ember/helper';\n           *\n           * <template>\n           *   {{get @address @field}}\n           * </template>\n           * ```\n           *\n           * This will display the result of `@foo.item1` when `index` is `1`, and\n           * `this.foo.item2` when `index` is `2`, etc.\n           *\n           * **NOTE:** this example uses the experimental `<template>` feature, which is\n           * the only place you need to import `concat` to use it (it is a built-in when\n           * writing standalone `.hbs` files).\n           */const get=get$1;/**\n           * `{{fn}}` is a helper that receives a function and some arguments, and returns\n           * a new function that combines. This allows you to pass parameters along to\n           * functions in your templates:\n           *\n           * ```js\n           * import { fn } from '@ember/helper';\n           *\n           * function showAlert(message) {\n           *   alert(`The message is: '${message}'`);\n           * }\n           *\n           * <template>\n           *   <button type=\"button\" {{on \"click\" (fn showAlert \"Hello!\")}}>\n           *     Click me!\n           *   </button>\n           * </template>\n           * ```\n           */const fn=fn$1;/**\n           * Use the {{uniqueId}} helper to generate a unique ID string suitable for use as\n           * an ID attribute in the DOM.\n           *\n           * Each invocation of {{uniqueId}} will return a new, unique ID string.\n           * You can use the `let` helper to create an ID that can be reused within a template.\n           *\n           * ```js\n           * import { uniqueId } from '@ember/helper';\n           *\n           * <template>\n           *   {{#let (uniqueId) as |emailId|}}\n           *     <label for={{emailId}}>Email address</label>\n           *     <input id={{emailId}} type=\"email\" />\n           *   {{/let}}\n           * </template>\n           * ```\n           */const uniqueId=uniqueId$2;/* eslint-enable @typescript-eslint/no-empty-interface */const emberHelperIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,array,capabilities,concat,fn,get,hash,invokeHelper,setHelperManager,uniqueId},Symbol.toStringTag,{value:'Module'});// NOTE: this uses assignment to *require* that the `glimmerSetModifierManager`\n// is legally assignable to this type, i.e. that variance is properly upheld.\nconst setModifierManager=setModifierManager$1;const emberModifierIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,capabilities:modifierCapabilities,on,setModifierManager},Symbol.toStringTag,{value:'Module'});// This is a legacy location to keep the reexports test happy.\n// Don't add anything new here.\nconst emberObjectInternals=/*#__PURE__*/Object.defineProperty({__proto__:null,cacheFor:getCachedValueFor,guidFor},Symbol.toStringTag,{value:'Module'});const emberObjectObservers=/*#__PURE__*/Object.defineProperty({__proto__:null,addObserver,removeObserver},Symbol.toStringTag,{value:'Module'});/**\n            @module @ember/object/promise-proxy-mixin\n          */function tap(proxy,promise){setProperties(proxy,{isFulfilled:false,isRejected:false});return promise.then(value=>{if(!proxy.isDestroyed&&!proxy.isDestroying){setProperties(proxy,{content:value,isFulfilled:true});}return value;},reason=>{if(!proxy.isDestroyed&&!proxy.isDestroying){setProperties(proxy,{reason,isRejected:true});}throw reason;},'Ember: PromiseProxy');}/**\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          */const PromiseProxyMixin=Mixin.create({reason:null,isPending:computed('isSettled',function(){return!get$2(this,'isSettled');}).readOnly(),isSettled:computed('isRejected','isFulfilled',function(){return get$2(this,'isRejected')||get$2(this,'isFulfilled');}).readOnly(),isRejected:false,isFulfilled:false,promise:computed({get(){throw new Error(\"PromiseProxy's promise must be set\");},set(_key,promise){return tap(this,promise);}}),then:promiseAlias('then'),catch:promiseAlias('catch'),finally:promiseAlias('finally')});function promiseAlias(name){return function(){let promise=get$2(this,'promise');// We need this cast because `Parameters` is deferred so that it is not\n// possible for TS to see it will always produce the right type. However,\n// since `AnyFn` has a rest type, it is allowed. See discussion on [this\n// issue](https://github.com/microsoft/TypeScript/issues/47615).\nreturn promise[name](...arguments);};}const emberObjectPromiseProxyMixin=/*#__PURE__*/Object.defineProperty({__proto__:null,default:PromiseProxyMixin},Symbol.toStringTag,{value:'Module'});/**\n          @module @ember/object/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          */// eslint-disable-next-line @typescript-eslint/no-unused-vars\nclass ObjectProxy extends FrameworkObject{}ObjectProxy.PrototypeMixin.reopen(ProxyMixin);const emberObjectProxy=/*#__PURE__*/Object.defineProperty({__proto__:null,default:ObjectProxy},Symbol.toStringTag,{value:'Module'});/**\n            @module @ember/renderer\n            @public\n          */const emberRendererIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,renderSettled},Symbol.toStringTag,{value:'Module'});const emberRoutingIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,LinkTo},Symbol.toStringTag,{value:'Module'});const emberRoutingLibEngines=/*#__PURE__*/Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:'Module'});class QueryParams{constructor(){let values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;_defineProperty(this,\"values\",void 0);_defineProperty(this,\"isQueryParams\",true);this.values=values;}}const emberRoutingLibQueryParams=/*#__PURE__*/Object.defineProperty({__proto__:null,default:QueryParams},Symbol.toStringTag,{value:'Module'});const emberRoutingLibRouteInfo=/*#__PURE__*/Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:'Module'});const emberRoutingLocation=/*#__PURE__*/Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:'Module'});const emberRoutingRouteInfo=/*#__PURE__*/Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:'Module'});const emberRoutingTransition=/*#__PURE__*/Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:'Module'});const emberRunloopprivateBackburner=/*#__PURE__*/Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:'Module'});// (UN)SAFETY: the public API is that people can import and use this (and indeed\n// it is emitted as part of Ember's build!), so we define it as having the type\n// which makes that work. However, in practice it is supplied by the build,\n// *for* the build, and will *not* be present at runtime, so the actual value\n// here is `undefined` in prod; in dev it is a function which throws a somewhat\n// nicer error. This is janky, but... here we are.\nlet __emberTemplateCompiler;const compileTemplate=function(){if(!__emberTemplateCompiler){throw new Error('Attempted to call `compileTemplate` without first loading the runtime template compiler.');}return __emberTemplateCompiler.compile(...arguments);};let precompileTemplate;{precompileTemplate=()=>{throw new Error('Attempted to call `precompileTemplate` at runtime, but this API is meant to be used at compile time. You should use `compileTemplate` instead.');};}function __registerTemplateCompiler(c){__emberTemplateCompiler=c;}const emberTemplateCompilationIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,get __emberTemplateCompiler(){return __emberTemplateCompiler;},__registerTemplateCompiler,compileTemplate,get precompileTemplate(){return precompileTemplate;}},Symbol.toStringTag,{value:'Module'});// NOTE: this intentionally *only* exports the *type* `SafeString`, not its\n// value, since it should not be constructed by users.\nconst emberTemplateIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,htmlSafe,isHTMLSafe},Symbol.toStringTag,{value:'Module'});function run(fn){if(!_getCurrentRunLoop()){return run$1(fn);}else{return fn();}}const emberTestingLibTestRun=/*#__PURE__*/Object.defineProperty({__proto__:null,default:run},Symbol.toStringTag,{value:'Module'});let lastPromise=null;class TestPromise extends rsvp.Promise{constructor(executor,label){super(executor,label);lastPromise=this;}then(onFulfilled,onRejected,label){let normalizedOnFulfilled=typeof onFulfilled==='function'?result=>isolate(onFulfilled,result):undefined;return super.then(normalizedOnFulfilled,onRejected,label);}}/**\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          */function promise(resolver,label){let fullLabel=`Ember.Test.promise: ${label||'<Unknown Promise>'}`;return new TestPromise(resolver,fullLabel);}/**\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          */function resolve(result,label){return TestPromise.resolve(result,label);}function getLastPromise(){return lastPromise;}// 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\nfunction isolate(onFulfilled,result){// Reset lastPromise for nested helpers\nlastPromise=null;let value=onFulfilled(result);let promise=lastPromise;lastPromise=null;// If the method returned a promise\n// return that promise. If not,\n// return the last async helper's promise\nif(value&&value instanceof TestPromise||!promise){return value;}else{return run(()=>resolve(promise).then(()=>value));}}const emberTestingLibTestPromise=/*#__PURE__*/Object.defineProperty({__proto__:null,default:TestPromise,getLastPromise,promise,resolve},Symbol.toStringTag,{value:'Module'});const helpers={};/**\n           @module @ember/test\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          */function registerHelper$1(name,helperMethod){helpers[name]={method:helperMethod,meta:{wait:false}};}/**\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          */function registerAsyncHelper$1(name,helperMethod){helpers[name]={method:helperMethod,meta:{wait:true}};}/**\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          */function unregisterHelper$1(name){delete helpers[name];// SAFETY: This isn't necessarily a safe thing to do, but in terms of the immediate types here\n// it won't error.\ndelete TestPromise.prototype[name];}const emberTestingLibTestHelpers=/*#__PURE__*/Object.defineProperty({__proto__:null,helpers,registerAsyncHelper:registerAsyncHelper$1,registerHelper:registerHelper$1,unregisterHelper:unregisterHelper$1},Symbol.toStringTag,{value:'Module'});const callbacks$1=[];/**\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          */function onInjectHelpers(callback){callbacks$1.push(callback);}function invokeInjectHelpersCallbacks(app){for(let callback of callbacks$1){callback(app);}}const emberTestingLibTestOnInjectHelpers=/*#__PURE__*/Object.defineProperty({__proto__:null,callbacks:callbacks$1,invokeInjectHelpersCallbacks,onInjectHelpers},Symbol.toStringTag,{value:'Module'});/**\n           @module @ember/test\n          */const contexts=[];const callbacks=[];/**\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          */function registerWaiter$1(){let checkedCallback;let checkedContext;if(arguments.length===1){checkedContext=null;checkedCallback=arguments.length<=0?undefined:arguments[0];}else{checkedContext=arguments.length<=0?undefined:arguments[0];checkedCallback=arguments.length<=1?undefined:arguments[1];}if(indexOf(checkedContext,checkedCallback)>-1){return;}contexts.push(checkedContext);callbacks.push(checkedCallback);}/**\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          */function unregisterWaiter$1(context,callback){if(!callbacks.length){return;}if(arguments.length===1){callback=context;context=null;}let i=indexOf(context,callback);if(i===-1){return;}contexts.splice(i,1);callbacks.splice(i,1);}/**\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          */function checkWaiters(){if(!callbacks.length){return false;}for(let i=0;i<callbacks.length;i++){let context=contexts[i];let callback=callbacks[i];// SAFETY: The loop ensures that this exists\nif(!callback.call(context)){return true;}}return false;}function indexOf(context,callback){for(let i=0;i<callbacks.length;i++){if(callbacks[i]===callback&&contexts[i]===context){return i;}}return-1;}const emberTestingLibTestWaiters=/*#__PURE__*/Object.defineProperty({__proto__:null,checkWaiters,registerWaiter:registerWaiter$1,unregisterWaiter:unregisterWaiter$1},Symbol.toStringTag,{value:'Module'});let adapter;function getAdapter(){return adapter;}function setAdapter(value){adapter=value;if(value&&typeof value.exception==='function'){setDispatchOverride(adapterDispatch);}else{setDispatchOverride(null);}}function asyncStart(){if(adapter){adapter.asyncStart();}}function asyncEnd(){if(adapter){adapter.asyncEnd();}}function adapterDispatch(error){adapter.exception(error);// @ts-expect-error Normally unreachable\nconsole.error(error.stack);// eslint-disable-line no-console\n}const emberTestingLibTestAdapter=/*#__PURE__*/Object.defineProperty({__proto__:null,asyncEnd,asyncStart,getAdapter,setAdapter},Symbol.toStringTag,{value:'Module'});/**\n            @module ember\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          */const Test={/**\n              Hash containing all known test helpers.\n               @property _helpers\n              @private\n              @since 1.7.0\n            */_helpers:helpers,registerHelper:registerHelper$1,registerAsyncHelper:registerAsyncHelper$1,unregisterHelper:unregisterHelper$1,onInjectHelpers,Promise:TestPromise,promise,resolve,registerWaiter:registerWaiter$1,unregisterWaiter:unregisterWaiter$1,checkWaiters};/**\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          */Object.defineProperty(Test,'adapter',{get:getAdapter,set:setAdapter});const emberTestingLibTest=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Test},Symbol.toStringTag,{value:'Module'});/**\n           @module @ember/test\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          */const Adapter=EmberObject.extend({/**\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            */asyncStart(){},/**\n              This callback will be called whenever an async operation has completed.\n               @public\n              @method asyncEnd\n            */asyncEnd(){},/**\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            */exception(error){throw error;}});const emberTestingLibAdaptersAdapter=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Adapter},Symbol.toStringTag,{value:'Module'});/* globals QUnit */function isVeryOldQunit(obj){return obj!=null&&typeof obj.stop==='function';}/**\n             @module ember\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          */const QUnitAdapter=Adapter.extend({init(){this.doneCallbacks=[];},asyncStart(){if(isVeryOldQunit(QUnit)){// very old QUnit version\n// eslint-disable-next-line qunit/no-qunit-stop\nQUnit.stop();}else{this.doneCallbacks.push(QUnit.config.current?QUnit.config.current.assert.async():null);}},asyncEnd(){// 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)\nif(isVeryOldQunit(QUnit)){QUnit.start();}else{let done=this.doneCallbacks.pop();// This can be null if asyncStart() was called outside of a test\nif(done){done();}}},exception(error){QUnit.config.current.assert.ok(false,inspect(error));}});const emberTestingLibAdaptersQunit=/*#__PURE__*/Object.defineProperty({__proto__:null,default:QUnitAdapter},Symbol.toStringTag,{value:'Module'});/* global self *//**\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          */function setupForTesting(){setTesting(true);let adapter=getAdapter();// if adapter is not manually set default to QUnit\nif(!adapter){setAdapter(typeof self.QUnit==='undefined'?Adapter.create():QUnitAdapter.create());}}const emberTestingLibSetupForTesting=/*#__PURE__*/Object.defineProperty({__proto__:null,default:setupForTesting},Symbol.toStringTag,{value:'Module'});Application.reopen({/**\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            */testHelpers:{},/**\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            */originalMethods:{},/**\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            */testing:false,/**\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            */setupForTesting(){setupForTesting();this.testing=true;this.resolveRegistration('router:main').reopen({location:'none'});},/**\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            */helperContainer:null,/**\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            */injectTestHelpers(helperContainer){if(helperContainer){this.helperContainer=helperContainer;}else{this.helperContainer=window;}this.reopen({willDestroy(){this._super(...arguments);this.removeTestHelpers();}});this.testHelpers={};for(let name in helpers){// SAFETY: It is safe to access a property on an object\nthis.originalMethods[name]=this.helperContainer[name];// SAFETY: It is not quite as safe to do this, but it _seems_ to be ok.\nthis.testHelpers[name]=this.helperContainer[name]=helper(this,name);// SAFETY: We checked that it exists\nprotoWrap(TestPromise.prototype,name,helper(this,name),helpers[name].meta.wait);}invokeInjectHelpersCallbacks(this);},/**\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            */removeTestHelpers(){if(!this.helperContainer){return;}for(let name in helpers){this.helperContainer[name]=this.originalMethods[name];// SAFETY: This is a weird thing, but it's not technically unsafe here.\ndelete TestPromise.prototype[name];delete this.testHelpers[name];delete this.originalMethods[name];}}});// This method is no longer needed\n// But still here for backwards compatibility\n// of helper chaining\nfunction protoWrap(proto,name,callback,isAsync){// SAFETY: This isn't entirely safe, but it _seems_ to be ok.\nproto[name]=function(){for(var _len69=arguments.length,args=new Array(_len69),_key70=0;_key70<_len69;_key70++){args[_key70]=arguments[_key70];}if(isAsync){return callback.apply(this,args);}else{// SAFETY: This is not actually safe.\nreturn this.then(function(){return callback.apply(this,args);});}};}function helper(app,name){let helper=helpers[name];!helper&&assert$1(`[BUG] Missing helper: ${name}`,helper);let fn=helper.method;let meta=helper.meta;if(!meta.wait){return function(){for(var _len70=arguments.length,args=new Array(_len70),_key71=0;_key71<_len70;_key71++){args[_key71]=arguments[_key71];}return fn.apply(app,[app,...args]);};}return function(){for(var _len71=arguments.length,args=new Array(_len71),_key72=0;_key72<_len71;_key72++){args[_key72]=arguments[_key72];}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.\nasyncStart();return lastPromise.then(()=>fn.apply(app,[app,...args])).finally(asyncEnd);};}const emberTestingLibExtApplication=/*#__PURE__*/Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:'Module'});rsvp.configure('async',function(callback,promise){// if schedule will cause autorun, we need to inform adapter\n_backburner.schedule('actions',()=>callback(promise));});const emberTestingLibExtRsvp=/*#__PURE__*/Object.defineProperty({__proto__:null,default:rsvp},Symbol.toStringTag,{value:'Module'});function andThen(app,callback){let wait=app.testHelpers['wait'];!wait&&assert$1('[BUG] Missing wait helper',wait);return wait(callback(app));}const emberTestingLibHelpersAndThen=/*#__PURE__*/Object.defineProperty({__proto__:null,default:andThen},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          *//**\n            Returns the current path.\n\n          Example:\n\n          ```javascript\n          function validateURL() {\n            equal(currentPath(), 'some.path.index', \"correct path was transitioned into.\");\n          }\n\n          click('#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          */function currentPath(app){!app.__container__&&assert$1('[BUG] app.__container__ is not set',app.__container__);let routingService=app.__container__.lookup('service:-routing');!(routingService instanceof RoutingService)&&assert$1('[BUG] service:-routing is not a RoutingService',routingService instanceof RoutingService);return get$2(routingService,'currentPath');}const emberTestingLibHelpersCurrentPath=/*#__PURE__*/Object.defineProperty({__proto__:null,default:currentPath},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          *//**\n            Returns the currently active route name.\n\n          Example:\n\n          ```javascript\n          function validateRouteName() {\n            equal(currentRouteName(), 'some.path', \"correct route was transitioned into.\");\n          }\n          visit('/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          */function currentRouteName(app){!app.__container__&&assert$1('[BUG] app.__container__ is not set',app.__container__);let routingService=app.__container__.lookup('service:-routing');!(routingService instanceof RoutingService)&&assert$1('[BUG] service:-routing is not a RoutingService',routingService instanceof RoutingService);return get$2(routingService,'currentRouteName');}const emberTestingLibHelpersCurrentRouteName=/*#__PURE__*/Object.defineProperty({__proto__:null,default:currentRouteName},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          *//**\n            Returns the current URL.\n\n          Example:\n\n          ```javascript\n          function validateURL() {\n            equal(currentURL(), '/some/path', \"correct URL was transitioned into.\");\n          }\n\n          click('#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          */function currentURL(app){!app.__container__&&assert$1('[BUG] app.__container__ is not set',app.__container__);let router=app.__container__.lookup('router:main');!(router instanceof EmberRouter)&&assert$1('[BUG] router:main is not a Router',router instanceof EmberRouter);let location=get$2(router,'location');!(typeof location!=='string')&&assert$1('[BUG] location is still a string',typeof location!=='string');return location.getURL();}const emberTestingLibHelpersCurrentUrl=/*#__PURE__*/Object.defineProperty({__proto__:null,default:currentURL},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          */let resume;/**\n           Resumes a test paused by `pauseTest`.\n\n           @method resumeTest\n           @return {void}\n           @public\n          */function resumeTest(){!resume&&assert$1('Testing has not been paused. There is nothing to resume.',resume);resume();resume=undefined;}/**\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          */function pauseTest(){info('Testing paused. Use `resumeTest()` to continue.');return new rsvp.Promise(resolve=>{resume=resolve;},'TestAdapter paused promise');}const emberTestingLibHelpersPauseTest=/*#__PURE__*/Object.defineProperty({__proto__:null,pauseTest,resumeTest},Symbol.toStringTag,{value:'Module'});/**\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          */function visit(app,url){!app.__container__&&assert$1('[BUG] Missing container',app.__container__);const router=app.__container__.lookup('router:main');!(router instanceof EmberRouter)&&assert$1('[BUG] router:main is not a Router',router instanceof EmberRouter);let shouldHandleURL=false;app.boot().then(()=>{!(typeof router.location!=='string')&&assert$1('[BUG] router.location is still a string',typeof router.location!=='string');router.location.setURL(url);if(shouldHandleURL){!app.__deprecatedInstance__&&assert$1(\"[BUG] __deprecatedInstance__ isn't set\",app.__deprecatedInstance__);run$1(app.__deprecatedInstance__,'handleURL',url);}});if(app._readinessDeferrals>0){// SAFETY: This should be safe, though it is odd.\nrouter.initialURL=url;run$1(app,'advanceReadiness');delete router.initialURL;}else{shouldHandleURL=true;}let wait=app.testHelpers['wait'];!wait&&assert$1('[BUG] missing wait helper',wait);return wait();}const emberTestingLibHelpersVisit=/*#__PURE__*/Object.defineProperty({__proto__:null,default:visit},Symbol.toStringTag,{value:'Module'});let requests=[];function pendingRequests(){return requests.length;}function clearPendingRequests(){requests.length=0;}function incrementPendingRequests(_,xhr){requests.push(xhr);}function decrementPendingRequests(_,xhr){setTimeout(function(){for(let i=0;i<requests.length;i++){if(xhr===requests[i]){requests.splice(i,1);break;}}},0);}const emberTestingLibTestPendingRequests=/*#__PURE__*/Object.defineProperty({__proto__:null,clearPendingRequests,decrementPendingRequests,incrementPendingRequests,pendingRequests},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\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          */function wait(app,value){return new rsvp.Promise(function(resolve){!app.__container__&&assert$1('[BUG] Missing container',app.__container__);const router=app.__container__.lookup('router:main');!(router instanceof EmberRouter)&&assert$1('[BUG] Expected router:main to be a subclass of Ember Router',router instanceof EmberRouter);// Every 10ms, poll for the async thing to have finished\nlet watcher=setInterval(()=>{// 1. If the router is loading, keep polling\nlet routerIsLoading=router._routerMicrolib&&Boolean(router._routerMicrolib.activeTransition);if(routerIsLoading){return;}// 2. If there are pending Ajax requests, keep polling\nif(pendingRequests()){return;}// 3. If there are scheduled timers or we are inside of a run loop, keep polling\nif(_hasScheduledTimers()||_getCurrentRunLoop()){return;}if(checkWaiters()){return;}// Stop polling\nclearInterval(watcher);// Synchronously resolve the promise\nrun$1(null,resolve,value);},10);});}const emberTestingLibHelpersWait=/*#__PURE__*/Object.defineProperty({__proto__:null,default:wait},Symbol.toStringTag,{value:'Module'});registerAsyncHelper$1('visit',visit);registerAsyncHelper$1('wait',wait);registerAsyncHelper$1('andThen',andThen);registerAsyncHelper$1('pauseTest',pauseTest);registerHelper$1('currentRouteName',currentRouteName);registerHelper$1('currentPath',currentPath);registerHelper$1('currentURL',currentURL);registerHelper$1('resumeTest',resumeTest);const emberTestingLibHelpers=/*#__PURE__*/Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:'Module'});let name='deferReadiness in `testing` mode';onLoad('Ember.Application',function(ApplicationClass){if(!ApplicationClass.initializers[name]){ApplicationClass.initializer({name:name,initialize(application){if(application.testing){application.deferReadiness();}}});}});const emberTestingLibInitializers=/*#__PURE__*/Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:'Module'});// to setup initializer\nconst emberTestingLibPublicApi=/*#__PURE__*/Object.defineProperty({__proto__:null,Adapter,QUnitAdapter,Test,setupForTesting},Symbol.toStringTag,{value:'Module'});let registerAsyncHelper;let registerHelper;let registerWaiter;let unregisterHelper;let unregisterWaiter;let _impl;let testingNotAvailableMessage=()=>{throw new Error('Attempted to use test utilities, but `ember-testing` was not included');};registerAsyncHelper=testingNotAvailableMessage;registerHelper=testingNotAvailableMessage;registerWaiter=testingNotAvailableMessage;unregisterHelper=testingNotAvailableMessage;unregisterWaiter=testingNotAvailableMessage;function registerTestImplementation(impl){let{Test}=impl;registerAsyncHelper=Test.registerAsyncHelper;registerHelper=Test.registerHelper;registerWaiter=Test.registerWaiter;unregisterHelper=Test.unregisterHelper;unregisterWaiter=Test.unregisterWaiter;_impl=impl;}const emberTestIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,get _impl(){return _impl;},get registerAsyncHelper(){return registerAsyncHelper;},get registerHelper(){return registerHelper;},registerTestImplementation,get registerWaiter(){return registerWaiter;},get unregisterHelper(){return unregisterHelper;},get unregisterWaiter(){return unregisterWaiter;}},Symbol.toStringTag,{value:'Module'});registerTestImplementation(emberTestingLibPublicApi);const emberTestingIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,Adapter,QUnitAdapter,Test,setupForTesting},Symbol.toStringTag,{value:'Module'});const emberTestAdapter=/*#__PURE__*/Object.defineProperty({__proto__:null,default:Adapter},Symbol.toStringTag,{value:'Module'});/* This file is generated by build/debug.js */function opcodeMetadata(op,isMachine){return null;}function debugSlice(context,start,end){}function logOpcode(type,params){}function debug(c,op,isMachine){}// TODO: How do these map onto constant and machine types?\nnew Array(Op.Size).fill(null),new Array(Op.Size).fill(null);const OPERAND_TYPES=[\"u32\",\"i32\",\"owner\",\"handle\",\"str\",\"option-str\",\"array\",\"str-array\",\"bool\",\"primitive\",\"register\",\"unknown\",\"symbol-table\",\"scope\"];function normalize(key,input){let name;if(void 0===input.format)throw new Error(`Missing format in ${JSON.stringify(input)}`);name=Array.isArray(input.format)?input.format[0]:input.format;let ops=Array.isArray(input.format)?function(input){if(!Array.isArray(input))throw new Error(`Expected operands array, got ${JSON.stringify(input)}`);return input.map(op);}(input.format.slice(1)):[];return{name:name,mnemonic:key,before:null,stackChange:stackChange(input[\"operand-stack\"]),ops:ops,operands:ops.length,check:!0!==input.skip};}function stackChange(stack){if(void 0===stack)return 0;let before=stack[0],after=stack[1];return hasRest(before)||hasRest(after)?null:after.length-before.length;}function hasRest(input){if(!Array.isArray(input))throw new Error(`Unexpected stack entry: ${JSON.stringify(input)}`);return input.some(s=>\"...\"===s.slice(-3));}function op(input){let[name,type]=input.split(\":\");if(s=type,-1!==OPERAND_TYPES.indexOf(s))return{name:name,type:type};throw new Error(`Expected operand, found ${JSON.stringify(input)}`);var s;}function normalizeAll(parsed){return{machine:normalizeParsed(parsed.machine),syscall:normalizeParsed(parsed.syscall)};}function normalizeParsed(parsed){let out=Object.create(null);for(const[key,value]of Object.entries(parsed))out[key]=normalize(key,value);return out;}function buildEnum(name,parsed,offset,max){let last,e=[`export enum ${name} {`];Object.values(parsed).forEach((value,i)=>{e.push(`  ${value.name} = ${offset+i},`),last=i;}),e.push(`  Size = ${last+offset+1},`),e.push(\"}\");let predicate,enumString=e.join(\"\\n\");return predicate=max?strip`\n      export function is${name}(value: number): value is ${name} {\n        return value >= ${offset} && value <= ${max};\n      }\n    `:strip`\n      export function is${name}(value: number): value is ${name} {\n        return value >= ${offset};\n      }\n    `,{enumString:enumString,predicate:predicate};}function strip(strings){let out=\"\";for(var _len72=arguments.length,args=new Array(_len72>1?_len72-1:0),_key73=1;_key73<_len72;_key73++){args[_key73-1]=arguments[_key73];}for(let i=0;i<strings.length;i++)out+=`${strings[i]}${void 0!==args[i]?String(args[i]):\"\"}`;// eslint-disable-next-line regexp/no-super-linear-backtracking\nout=/^\\s*?\\n?([\\s\\S]*?)\\s*$/u.exec(out)[1];let min=Number.MAX_SAFE_INTEGER;for(let line of out.split(\"\\n\")){let leading=/^\\s*/u.exec(line)[0].length;min=Math.min(min,leading);}let stripped=\"\";for(let line of out.split(\"\\n\"))stripped+=line.slice(min)+\"\\n\";return stripped;}const META_KIND=[\"METADATA\",\"MACHINE_METADATA\"];function buildSingleMeta(kind,all,key){return`${kind}[${\"MACHINE_METADATA\"===kind?\"MachineOp\":\"Op\"}.${all[key].name}] = ${stringify(all[key],0)};`;}function stringify(o,pad){if(\"object\"!=typeof o||null===o)return\"string\"==typeof o?`'${o}'`:JSON.stringify(o);if(Array.isArray(o))return`[${o.map(v=>stringify(v,pad)).join(\", \")}]`;let out=[\"{\"];for(let key of Object.keys(o))out.push(`${\" \".repeat(pad+2)}${key}: ${stringify(o[key],pad+2)},`);return out.push(`${\" \".repeat(pad)}}`),out.join(\"\\n\");}function buildMetas(kind,all){let out=[];for(let key of Object.keys(all))out.push(buildSingleMeta(kind,all,key));return out.join(\"\\n\\n\");}class NoopChecker{validate(value){return!0;}expected(){return\"<noop>\";}}function wrap(checker){return new NoopChecker();}function CheckInstanceof(Class){return new NoopChecker();}function CheckOption(checker){return new NoopChecker();}function CheckMaybe(checker){return new NoopChecker();}function CheckInterface(obj){return new NoopChecker();}function CheckArray(obj){return new NoopChecker();}function CheckDict(obj){return new NoopChecker();}function defaultMessage(value,expected){return`Got ${value}, expected:\\n${expected}`;}function check(value,checker){let message=arguments.length>2&&arguments[2]!==undefined?arguments[2]:defaultMessage;return value;}function recordStackSize(sp){}const CheckPrimitive=new NoopChecker(),CheckFunction=new NoopChecker(),CheckNumber=new NoopChecker(),CheckBoolean=new NoopChecker(),CheckHandle=new NoopChecker(),CheckString=new NoopChecker(),CheckUndefined=new NoopChecker(),CheckUnknown=new NoopChecker(),CheckSafeString=new NoopChecker(),CheckObject=new NoopChecker();function CheckOr(left,right){return new NoopChecker();}const CheckBlockSymbolTable=new NoopChecker(),CheckProgramSymbolTable=new NoopChecker(),CheckElement=new NoopChecker(),CheckDocumentFragment=new NoopChecker(),CheckNode=new NoopChecker();const glimmerDebug=/*#__PURE__*/Object.defineProperty({__proto__:null,CheckArray,CheckBlockSymbolTable,CheckBoolean,CheckDict,CheckDocumentFragment,CheckElement,CheckFunction,CheckHandle,CheckInstanceof,CheckInterface,CheckMaybe,CheckNode,CheckNumber,CheckObject,CheckOption,CheckOr,CheckPrimitive,CheckProgramSymbolTable,CheckSafeString,CheckString,CheckUndefined,CheckUnknown,META_KIND,OPERAND_TYPES,buildEnum,buildMetas,buildSingleMeta,check,debug,debugSlice,logOpcode,normalize,normalizeAll,normalizeParsed,opcodeMetadata,recordStackSize,strip,wrap},Symbol.toStringTag,{value:'Module'});const DEBUG=false;const CI=false;const glimmerEnv=/*#__PURE__*/Object.defineProperty({__proto__:null,CI,DEBUG},Symbol.toStringTag,{value:'Module'});/**\n            In order to tell Ember a value might change, we need to mark it as trackable.\n            Trackable values are values that:\n\n            - Can change over their component’s lifetime and\n            - Should cause Ember to rerender if and when they change\n\n            We can do this by marking the field with the `@tracked` decorator.\n\n            @module @glimmer/tracking\n            @public\n          *//**\n            Marks a property as tracked. By default, values that are rendered in Ember app\n            templates are _static_, meaning that updates to them won't cause the\n            application to rerender. Marking a property as tracked means that when that\n            property changes, any templates that used that property, directly or\n            indirectly, will rerender. For instance, consider this component:\n\n            ```handlebars\n            <div>Count: {{this.count}}</div>\n            <div>Times Ten: {{this.timesTen}}</div>\n            <div>\n              <button {{on \"click\" this.plusOne}}>\n                Plus One\n              </button>\n            </div>\n            ```\n\n            ```javascript\n            import Component from '@glimmer/component';\n            import { tracked } from '@glimmer/tracking';\n            import { action } from '@ember/object';\n\n            export default class CounterComponent extends Component {\n              @tracked count = 0;\n\n              get timesTen() {\n                return this.count * 10;\n              }\n\n              @action\n              plusOne() {\n                this.count += 1;\n              }\n            }\n            ```\n\n            Both the `{{this.count}}` and the `{{this.timesTen}}` properties in the\n            template will update whenever the button is clicked. Any tracked properties\n            that are used in any way to calculate a value that is used in the template\n            will cause a rerender when updated - this includes through method calls and\n            other means:\n\n            ```javascript\n            import Component from '@glimmer/component';\n            import { tracked } from '@glimmer/tracking';\n\n            class Entry {\n              @tracked name;\n              @tracked phoneNumber;\n\n              constructor(name, phoneNumber) {\n                this.name = name;\n                this.phoneNumber = phoneNumber;\n              }\n            }\n\n            export default class PhoneBookComponent extends Component {\n              entries = [\n                new Entry('Pizza Palace', 5551234),\n                new Entry('1st Street Cleaners', 5554321),\n                new Entry('Plants R Us', 5552468),\n              ];\n\n              // Any usage of this property will update whenever any of the names in the\n              // entries arrays are updated\n              get names() {\n                return this.entries.map(e => e.name);\n              }\n\n              // Any usage of this property will update whenever any of the numbers in the\n              // entries arrays are updated\n              get numbers() {\n                return this.getFormattedNumbers();\n              }\n\n              getFormattedNumbers() {\n                return this.entries\n                  .map(e => e.phoneNumber)\n                  .map(number => {\n                    let numberString = '' + number;\n\n                    return numberString.slice(0, 3) + '-' + numberString.slice(3);\n                  });\n              }\n            }\n            ```\n\n            It's important to note that setting tracked properties will always trigger an\n            update, even if the property is set to the same value as it was before.\n\n            ```js\n            let entry = new Entry('Pizza Palace', 5551234);\n            // if entry was used when rendering, this would cause a rerender, even though\n            // the name is being set to the same value as it was before\n            entry.name = entry.name;\n            ```\n\n            `tracked` can also be used with the classic Ember object model in a similar\n            manner to classic computed properties:\n\n            ```javascript\n            import EmberObject from '@ember/object';\n            import { tracked } from '@glimmer/tracking';\n\n            const Entry = EmberObject.extend({\n              name: tracked(),\n              phoneNumber: tracked()\n            });\n            ```\n\n            Often this is unnecessary, but to ensure robust auto-tracking behavior it is\n            advisable to mark tracked state appropriately wherever possible.\n            This form of `tracked` also accepts an optional configuration object\n            containing either an initial `value` or an `initializer` function (but not\n            both).\n\n            ```javascript\n            import EmberObject from '@ember/object';\n            import { tracked } from '@glimmer/tracking';\n\n            const Entry = EmberObject.extend({\n              name: tracked({ value: 'Zoey' }),\n              favoriteSongs: tracked({\n                initializer: () => ['Raspberry Beret', 'Time After Time']\n              })\n            });\n            ```\n\n            @method tracked\n            @static\n            @for @glimmer/tracking\n            @public\n          *//**\n            The `@cached` decorator can be used on getters in order to cache the return\n            value of the getter. This is useful when a getter is expensive and used very\n            often. For instance, in this guest list class, we have the `sortedGuests`\n            getter that sorts the guests alphabetically:\n\n            ```js\n            import { tracked } from '@glimmer/tracking';\n\n            class GuestList {\n              @tracked guests = ['Zoey', 'Tomster'];\n\n              get sortedGuests() {\n                return this.guests.slice().sort()\n              }\n            }\n            ```\n\n            Every time `sortedGuests` is accessed, a new array will be created and sorted,\n            because JavaScript getters do not cache by default. When the guest list is\n            small, like the one in the example, this is not a problem. However, if the guest\n            list were to grow very large, it would mean that we would be doing a large\n            amount of work each time we accessed `sortedGetters`. With `@cached`, we can\n            cache the value instead:\n\n            ```js\n            import { tracked, cached } from '@glimmer/tracking';\n\n            class GuestList {\n              @tracked guests = ['Zoey', 'Tomster'];\n\n              @cached\n              get sortedGuests() {\n                return this.guests.slice().sort()\n              }\n            }\n            ```\n\n            Now the `sortedGuests` getter will be cached based on _autotracking_. It will\n            only rerun and create a new sorted array when the `guests` tracked property is\n            updated.\n\n            In general, you should avoid using `@cached` unless you have confirmed that the\n            getter you are decorating is computationally expensive. `@cached` adds a small\n            amount of overhead to the getter, making it more expensive. While this overhead\n            is small, if `@cached` is overused it can add up to a large impact overall in\n            your app. Many getters and tracked properties are only accessed once, rendered,\n            and then never rerendered, so adding `@cached` when it is unnecessary can\n            negatively impact performance.\n\n            @method cached\n            @static\n            @for @glimmer/tracking\n            @public\n           */const glimmerTrackingIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,cached,tracked},Symbol.toStringTag,{value:'Module'});const glimmerTrackingPrimitivesCache=/*#__PURE__*/Object.defineProperty({__proto__:null,createCache,getValue,isConst},Symbol.toStringTag,{value:'Module'});/**\n          @module ember\n          */// eslint-disable-next-line @typescript-eslint/no-namespace\nlet Ember;(function(_Ember){_Ember.isNamespace=true;function toString(){return'Ember';}_Ember.toString=toString;_Ember.Container=Container;_Ember.Registry=Registry;// ****@ember/-internals/glimmer****\n// Partially re-exported from @glimmer/manager\n_Ember._setComponentManager=setComponentManager;_Ember._componentManagerCapabilities=componentCapabilities;_Ember._modifierManagerCapabilities=modifierCapabilities;_Ember.meta=meta;_Ember._createCache=createCache;_Ember._cacheGetValue=getValue;_Ember._cacheIsConst=isConst;_Ember._descriptor=nativeDescDecorator;_Ember._getPath=_getPath;_Ember._setClassicDecorator=setClassicDecorator;_Ember._tracked=tracked;_Ember.beginPropertyChanges=beginPropertyChanges;_Ember.changeProperties=changeProperties;_Ember.endPropertyChanges=endPropertyChanges;_Ember.hasListeners=hasListeners;_Ember.libraries=LIBRARIES;_Ember._ContainerProxyMixin=ContainerProxyMixin;_Ember._ProxyMixin=ProxyMixin;_Ember._RegistryProxyMixin=RegistryProxyMixin;_Ember.ActionHandler=ActionHandler;_Ember.Comparable=Comparable;_Ember.ComponentLookup=ComponentLookup;_Ember.EventDispatcher=EventDispatcher;_Ember._Cache=Cache;_Ember.GUID_KEY=GUID_KEY;_Ember.canInvoke=canInvoke;_Ember.generateGuid=generateGuid;_Ember.guidFor=guidFor;_Ember.uuid=uuid$1;_Ember.wrap=wrap$1;_Ember.getOwner=getOwner;_Ember.onLoad=onLoad;_Ember.runLoadHooks=runLoadHooks;_Ember.setOwner=setOwner;_Ember.Application=Application;// ****@ember/application/instance****\n_Ember.ApplicationInstance=ApplicationInstance;// // ****@ember/application/namespace****\n_Ember.Namespace=Namespace;// ****@ember/array****\n_Ember.A=A;_Ember.Array=EmberArray;_Ember.NativeArray=NativeArray;_Ember.isArray=isArray$2;_Ember.makeArray=makeArray;_Ember.MutableArray=MutableArray;// ****@ember/array/proxy****\n_Ember.ArrayProxy=ArrayProxy;// ****@ember/canary-features****\n_Ember.FEATURES={isEnabled,...FEATURES};_Ember._Input=Input;_Ember.Component=Component;// // ****@ember/component/helper****\n_Ember.Helper=Helper;// ****@ember/controller****\n_Ember.Controller=Controller;_Ember.ControllerMixin=ControllerMixin;// ****@ember/debug****\n_Ember._captureRenderTree=captureRenderTree;_Ember.assert=assert$1;_Ember.warn=warn;_Ember.debug=debug$2;_Ember.deprecate=deprecate$1;_Ember.deprecateFunc=deprecateFunc;_Ember.runInDebug=runInDebug;_Ember.inspect=inspect;_Ember.Debug={registerDeprecationHandler:registerHandler$1,registerWarnHandler:registerHandler,// ****@ember/-internals/metal****\nisComputed:isComputed};_Ember.ContainerDebugAdapter=ContainerDebugAdapter;// ****@ember/debug/data-adapter****\n_Ember.DataAdapter=DataAdapter;// ****@ember/destroyable****\n_Ember._assertDestroyablesDestroyed=assertDestroyablesDestroyed;_Ember._associateDestroyableChild=associateDestroyableChild;_Ember._enableDestroyableTracking=enableDestroyableTracking;_Ember._isDestroying=isDestroying;_Ember._isDestroyed=isDestroyed;_Ember._registerDestructor=registerDestructor;_Ember._unregisterDestructor=unregisterDestructor;_Ember.destroy=destroy;_Ember.Engine=Engine;// ****@ember/engine/instance****\n_Ember.EngineInstance=EngineInstance;// ****@ember/enumerable****\n_Ember.Enumerable=Enumerable;// ****@ember/enumerable/mutable****\n_Ember.MutableEnumerable=MutableEnumerable;// ****@ember/instrumentation****\n/** @private */_Ember.instrument=instrument;_Ember.subscribe=subscribe;_Ember.Instrumentation={instrument:instrument,subscribe:subscribe,unsubscribe:unsubscribe,reset:reset};_Ember.Object=EmberObject;_Ember._action=action$1;_Ember.computed=computed;_Ember.defineProperty=defineProperty;_Ember.get=get$2;_Ember.getProperties=getProperties;_Ember.notifyPropertyChange=notifyPropertyChange;_Ember.observer=observer;_Ember.set=set;_Ember.trySet=trySet;_Ember.setProperties=setProperties;_Ember.cacheFor=getCachedValueFor;_Ember._dependentKeyCompat=dependentKeyCompat;_Ember.ComputedProperty=ComputedProperty;_Ember.expandProperties=expandProperties;_Ember.CoreObject=CoreObject;// ****@ember/object/evented****\n_Ember.Evented=Evented;_Ember.on=on$3;_Ember.addListener=addListener;_Ember.removeListener=removeListener;_Ember.sendEvent=sendEvent;_Ember.Mixin=Mixin;_Ember.mixin=mixin;_Ember.Observable=Observable;// ****@ember/object/observers****\n_Ember.addObserver=addObserver;_Ember.removeObserver=removeObserver;_Ember.PromiseProxyMixin=PromiseProxyMixin;// ****@ember/object/proxy****\n_Ember.ObjectProxy=ObjectProxy;// ****@ember/routing/-internals****\n_Ember.RouterDSL=DSLImpl;_Ember.controllerFor=controllerFor;_Ember.generateController=generateController;_Ember.generateControllerFactory=generateControllerFactory;_Ember.HashLocation=HashLocation;// ****@ember/routing/history-location****\n_Ember.HistoryLocation=HistoryLocation;// ****@ember/routing/none-location****\n_Ember.NoneLocation=NoneLocation;// ****@ember/routing/route****\n_Ember.Route=Route;// ****@ember/routing/router****\n_Ember.Router=EmberRouter;// // ****@ember/runloop****\n_Ember.run=run$1;_Ember.Service=Service;// ****@ember/utils****\n_Ember.compare=compare;_Ember.isBlank=isBlank;_Ember.isEmpty=isEmpty;_Ember.isEqual=isEqual;_Ember.isNone=isNone;_Ember.isPresent=isPresent;_Ember.typeOf=typeOf;_Ember.VERSION=Version;_Ember.ViewUtils={// ****@ember/-internals/views****\ngetChildViews:getChildViews,getElementView:getElementView,getRootViews:getRootViews,getViewBounds:getViewBounds,getViewBoundingClientRect:getViewBoundingClientRect,getViewClientRects:getViewClientRects,getViewElement:getViewElement,isSimpleClick:isSimpleClick,// ****@ember/-internals/glimmer****\nisSerializationFirstNode};_Ember._getComponentTemplate=getComponentTemplate;_Ember._helperManagerCapabilities=helperCapabilities;_Ember._setComponentTemplate=setComponentTemplate;_Ember._setHelperManager=setHelperManager$1;_Ember._setModifierManager=setModifierManager$1;_Ember._templateOnlyComponent=templateOnlyComponent;_Ember._invokeHelper=invokeHelper$1;_Ember._hash=hash$1;_Ember._array=array$1;_Ember._concat=concat$1;_Ember._get=get$1;_Ember._on=on$1;_Ember._fn=fn$1;_Ember._Backburner=Backburner;// // ****@ember/controller, @ember/service****\n/**\n              Namespace for injection helper methods.\n               @class inject\n              @namespace Ember\n              @static\n              @public\n            */function inject$1(){// uses `globalThis` to avoid clobbering with `Ember.Object` in TS namespace\nassert$1(`Injected properties must be created through helpers, see '${globalThis.Object.keys(inject$1).map(k=>`'inject.${k}'`).join(' or ')}'`);}_Ember.inject=inject$1;// ****@ember/controller****\ninject$1.controller=inject;// ****@ember/service****\ninject$1.service=service;_Ember.__loader={get require(){return globalThis.require;},get define(){return globalThis.define;},get registry(){var _g$requirejs$entries,_g$requirejs;let g=globalThis;return(_g$requirejs$entries=(_g$requirejs=g.requirejs)===null||_g$requirejs===void 0?void 0:_g$requirejs.entries)!==null&&_g$requirejs$entries!==void 0?_g$requirejs$entries:g.require.entries;}};// ------------------------------------------------------------------------ //\n// These properties are assigned to the namespace with getters (and, in some\n// cases setters) with `Object.defineProperty` below.\n// ------------------------------------------------------------------------ //\n// ****@ember/-internals/environment****\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               ```javascript\n               Ember.onerror = function(error) {\n                const payload = {\n                  stack: error.stack,\n                  otherInformation: 'whatever app state you want to provide'\n                };\n                 fetch('/report-error', {\n                  method: 'POST',\n                  body: JSON.stringify(payload)\n                });\n              };\n              ```\n               Internally, `Ember.onerror` is used as Backburner's error handler.\n               @event onerror\n              @for Ember\n              @param {Error} error the error object\n              @public\n            */// ****@ember/-internals/error-handling****\n/**\n              Whether searching on the global for new Namespace instances is enabled.\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               Internally this is only exposing a flag in Namespace.\n               @property BOOTED\n              @for Ember\n              @type Boolean\n              @private\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               @property TEMPLATES\n              @for Ember\n              @type Object\n              @private\n            */})(Ember||(Ember={}));Object.defineProperty(Ember,'ENV',{get:getENV,enumerable:false});Object.defineProperty(Ember,'lookup',{get:getLookup,set:setLookup,enumerable:false});Object.defineProperty(Ember,'onerror',{get:getOnerror,set:setOnerror,enumerable:false});Object.defineProperty(Ember,'testing',{get:isTesting,set:setTesting,enumerable:false});Object.defineProperty(Ember,'BOOTED',{configurable:false,enumerable:false,get:isSearchDisabled,set:setSearchDisabled});Object.defineProperty(Ember,'TEMPLATES',{get:getTemplates,set:setTemplates,configurable:false,enumerable:false});Object.defineProperty(Ember,'TEMPLATES',{get:getTemplates,set:setTemplates,configurable:false,enumerable:false});// ****@ember/debug****\nObject.defineProperty(Ember,'testing',{get:isTesting,set:setTesting,enumerable:false});runLoadHooks('Ember.Application',Application);let EmberHandlebars={template:templateFactory,Utils:{escapeExpression}};let EmberHTMLBars={template:templateFactory};function defineEmberTemplateCompilerLazyLoad(key){Object.defineProperty(Ember,key,{configurable:true,enumerable:true,get(){if(__emberTemplateCompiler){EmberHTMLBars.precompile=EmberHandlebars.precompile=__emberTemplateCompiler.precompile;EmberHTMLBars.compile=EmberHandlebars.compile=compileTemplate;Object.defineProperty(Ember,'HTMLBars',{configurable:true,writable:true,enumerable:true,value:EmberHTMLBars});Object.defineProperty(Ember,'Handlebars',{configurable:true,writable:true,enumerable:true,value:EmberHandlebars});}return key==='Handlebars'?EmberHandlebars:EmberHTMLBars;}});}defineEmberTemplateCompilerLazyLoad('HTMLBars');defineEmberTemplateCompilerLazyLoad('Handlebars');// do this to ensure that Ember.Test is defined properly on the global\n// if it is present.\nfunction defineEmberTestingLazyLoad(key){Object.defineProperty(Ember,key,{configurable:true,enumerable:true,get(){if(_impl){let{Test,Adapter,QUnitAdapter,setupForTesting}=_impl;// @ts-expect-error We should not do this\nTest.Adapter=Adapter;// @ts-expect-error We should not do this\nTest.QUnitAdapter=QUnitAdapter;Object.defineProperty(Ember,'Test',{configurable:true,writable:true,enumerable:true,value:Test});Object.defineProperty(Ember,'setupForTesting',{configurable:true,writable:true,enumerable:true,value:setupForTesting});return key==='Test'?Test:setupForTesting;}return undefined;}});}defineEmberTestingLazyLoad('Test');defineEmberTestingLazyLoad('setupForTesting');// @ts-expect-error Per types, runLoadHooks requires a second parameter. Should we loosen types?\nrunLoadHooks('Ember');// the special \"export import\" syntax above doesn't actually transpile correctly\n// under all build configurations. It seems to work if you're simultaneously\n// transpiling ESM to AMD but breaks when keeping ESM output.\n//\n// This is a workaround to ensure that the runtime is actually included.\nEmber.RSVP=rsvp;const doNotUseThis=Ember;const index=new Proxy(doNotUseThis,{get(target,key,receiver){// We don't have symbol exports, so this is probably fine.\nif(typeof key==='string'){deprecateUntil(`importing ${key} from the 'ember' barrel file is deprecated.`,DEPRECATIONS.DEPRECATE_IMPORT_EMBER(key));}return Reflect.get(target,key,receiver);},getOwnPropertyDescriptor(target,key){if(typeof key==='string'){deprecateUntil(`importing ${key} from the 'ember' barrel file is deprecated.`,DEPRECATIONS.DEPRECATE_IMPORT_EMBER(key));}return Object.getOwnPropertyDescriptor(target,key);}});const emberIndex=/*#__PURE__*/Object.defineProperty({__proto__:null,default:index},Symbol.toStringTag,{value:'Module'});/* eslint-disable */d('ember-testing/index',emberTestingIndex);d('ember-testing/lib/adapters/adapter',emberTestingLibAdaptersAdapter);d('ember-testing/lib/adapters/qunit',emberTestingLibAdaptersQunit);d('ember-testing/lib/ext/application',emberTestingLibExtApplication);d('ember-testing/lib/ext/rsvp',emberTestingLibExtRsvp);d('ember-testing/lib/helpers',emberTestingLibHelpers);d('ember-testing/lib/helpers/and_then',emberTestingLibHelpersAndThen);d('ember-testing/lib/helpers/current_path',emberTestingLibHelpersCurrentPath);d('ember-testing/lib/helpers/current_route_name',()=>emberTestingLibHelpersCurrentRouteName);d('ember-testing/lib/helpers/current_url',emberTestingLibHelpersCurrentUrl);d('ember-testing/lib/helpers/pause_test',emberTestingLibHelpersPauseTest);d('ember-testing/lib/helpers/visit',emberTestingLibHelpersVisit);d('ember-testing/lib/helpers/wait',emberTestingLibHelpersWait);d('ember-testing/lib/initializers',emberTestingLibInitializers);d('ember-testing/lib/public-api',emberTestingLibPublicApi);d('ember-testing/lib/setup_for_testing',emberTestingLibSetupForTesting);d('ember-testing/lib/test',emberTestingLibTest);d('ember-testing/lib/test/adapter',emberTestingLibTestAdapter);d('ember-testing/lib/test/helpers',emberTestingLibTestHelpers);d('ember-testing/lib/test/on_inject_helpers',emberTestingLibTestOnInjectHelpers);d('ember-testing/lib/test/pending_requests',emberTestingLibTestPendingRequests);d('ember-testing/lib/test/promise',emberTestingLibTestPromise);d('ember-testing/lib/test/run',emberTestingLibTestRun);d('ember-testing/lib/test/waiters',emberTestingLibTestWaiters);/* eslint-disable */d('@ember/-internals/browser-environment/index',emberinternalsBrowserEnvironmentIndex);d('@ember/-internals/container/index',emberinternalsContainerIndex);d('@ember/-internals/deprecations/index',emberinternalsDeprecationsIndex);d('@ember/-internals/environment/index',emberinternalsEnvironmentIndex);d('@ember/-internals/error-handling/index',emberinternalsErrorHandlingIndex);d('@ember/-internals/glimmer/index',emberinternalsGlimmerIndex);d('@ember/-internals/meta/index',emberinternalsMetaIndex);d('@ember/-internals/meta/lib/meta',emberinternalsMetaLibMeta);d('@ember/-internals/metal/index',emberinternalsMetalIndex);d('@ember/-internals/owner/index',emberinternalsOwnerIndex);d('@ember/-internals/routing/index',emberinternalsRoutingIndex);d('@ember/-internals/runtime/index',emberinternalsRuntimeIndex);d('@ember/-internals/runtime/lib/ext/rsvp',emberinternalsRuntimeLibExtRsvp);d('@ember/-internals/runtime/lib/mixins/-proxy',emberinternalsRuntimeLibMixinsproxy);d('@ember/-internals/runtime/lib/mixins/action_handler',emberinternalsRuntimeLibMixinsActionHandler);d('@ember/-internals/runtime/lib/mixins/comparable',emberinternalsRuntimeLibMixinsComparable);d('@ember/-internals/runtime/lib/mixins/container_proxy',emberinternalsRuntimeLibMixinsContainerProxy);d('@ember/-internals/runtime/lib/mixins/registry_proxy',emberinternalsRuntimeLibMixinsRegistryProxy);d('@ember/-internals/runtime/lib/mixins/target_action_support',emberinternalsRuntimeLibMixinsTargetActionSupport);d('@ember/-internals/string/index',emberinternalsStringIndex);d('@ember/-internals/utility-types/index',emberinternalsUtilityTypesIndex);d('@ember/-internals/utils/index',emberinternalsUtilsIndex);d('@ember/-internals/views/index',emberinternalsViewsIndex);d('@ember/-internals/views/lib/compat/attrs',emberinternalsViewsLibCompatAttrs);d('@ember/-internals/views/lib/compat/fallback-view-registry',emberinternalsViewsLibCompatFallbackViewRegistry);d('@ember/-internals/views/lib/component_lookup',emberinternalsViewsLibComponentLookup);d('@ember/-internals/views/lib/mixins/action_support',emberinternalsViewsLibMixinsActionSupport);d('@ember/-internals/views/lib/mixins/child_views_support',emberinternalsViewsLibMixinsChildViewsSupport);d('@ember/-internals/views/lib/mixins/class_names_support',emberinternalsViewsLibMixinsClassNamesSupport);d('@ember/-internals/views/lib/mixins/view_state_support',emberinternalsViewsLibMixinsViewStateSupport);d('@ember/-internals/views/lib/mixins/view_support',emberinternalsViewsLibMixinsViewSupport);d('@ember/-internals/views/lib/system/action_manager',emberinternalsViewsLibSystemActionManager);d('@ember/-internals/views/lib/system/event_dispatcher',emberinternalsViewsLibSystemEventDispatcher);d('@ember/-internals/views/lib/system/utils',emberinternalsViewsLibSystemUtils);d('@ember/-internals/views/lib/views/core_view',emberinternalsViewsLibViewsCoreView);d('@ember/-internals/views/lib/views/states',emberinternalsViewsLibViewsStates);d('@ember/application/index',emberApplicationIndex);d('@ember/application/instance',emberApplicationInstance);d('@ember/application/lib/lazy_load',emberApplicationLibLazyLoad);d('@ember/application/namespace',emberApplicationNamespace);d('@ember/array/-internals',emberArrayinternals);d('@ember/array/index',emberArrayIndex);d('@ember/array/lib/make-array',emberArrayLibMakeArray);d('@ember/array/mutable',emberArrayMutable);d('@ember/array/proxy',emberArrayProxy);d('@ember/canary-features/index',emberCanaryFeaturesIndex);d('@ember/component/helper',emberComponentHelper);d('@ember/component/index',emberComponentIndex);d('@ember/component/template-only',emberComponentTemplateOnly);d('@ember/controller/index',emberControllerIndex);d('@ember/debug/index',emberDebugIndex);d('@ember/debug/lib/capture-render-tree',emberDebugLibCaptureRenderTree);d('@ember/debug/lib/deprecate',emberDebugLibDeprecate);d('@ember/debug/lib/handlers',emberDebugLibHandlers);d('@ember/debug/lib/inspect',emberDebugLibInspect);d('@ember/debug/lib/testing',emberDebugLibTesting);d('@ember/debug/lib/warn',emberDebugLibWarn);d('@ember/debug/container-debug-adapter',emberDebugContainerDebugAdapter);d('@ember/debug/data-adapter',emberDebugDataAdapter);d('@ember/deprecated-features/index',emberDeprecatedFeaturesIndex);d('@ember/destroyable/index',emberDestroyableIndex);d('@ember/engine/index',emberEngineIndex);d('@ember/engine/instance',emberEngineInstance);d('@ember/engine/lib/engine-parent',emberEngineLibEngineParent);d('@ember/enumerable/index',emberEnumerableIndex);d('@ember/enumerable/mutable',emberEnumerableMutable);d('@ember/helper/index',emberHelperIndex);d('@ember/instrumentation/index',emberInstrumentationIndex);d('@ember/modifier/index',emberModifierIndex);d('@ember/object/-internals',emberObjectinternals);d('@ember/object/compat',emberObjectCompat);d('@ember/object/computed',emberObjectComputed);d('@ember/object/core',emberObjectCore);d('@ember/object/evented',emberObjectEvented);d('@ember/object/events',emberObjectEvents);d('@ember/object/index',emberObjectIndex);d('@ember/object/internals',emberObjectInternals);d('@ember/object/lib/computed/computed_macros',emberObjectLibComputedComputedMacros);d('@ember/object/lib/computed/reduce_computed_macros',emberObjectLibComputedReduceComputedMacros);d('@ember/object/mixin',emberObjectMixin);d('@ember/object/observable',emberObjectObservable);d('@ember/object/observers',emberObjectObservers);d('@ember/object/promise-proxy-mixin',emberObjectPromiseProxyMixin);d('@ember/object/proxy',emberObjectProxy);d('@ember/owner/index',emberOwnerIndex);d('@ember/renderer/index',emberRendererIndex);d('@ember/routing/-internals',emberRoutinginternals);d('@ember/routing/hash-location',emberRoutingHashLocation);d('@ember/routing/history-location',emberRoutingHistoryLocation);d('@ember/routing/index',emberRoutingIndex);d('@ember/routing/lib/cache',emberRoutingLibCache);d('@ember/routing/lib/controller_for',emberRoutingLibControllerFor);d('@ember/routing/lib/dsl',emberRoutingLibDsl);d('@ember/routing/lib/engines',emberRoutingLibEngines);d('@ember/routing/lib/generate_controller',emberRoutingLibGenerateController);d('@ember/routing/lib/location-utils',emberRoutingLibLocationUtils);d('@ember/routing/lib/query_params',emberRoutingLibQueryParams);d('@ember/routing/lib/route-info',emberRoutingLibRouteInfo);d('@ember/routing/lib/router_state',emberRoutingLibRouterState);d('@ember/routing/lib/routing-service',emberRoutingLibRoutingService);d('@ember/routing/lib/utils',emberRoutingLibUtils);d('@ember/routing/location',emberRoutingLocation);d('@ember/routing/none-location',emberRoutingNoneLocation);d('@ember/routing/route-info',emberRoutingRouteInfo);d('@ember/routing/route',emberRoutingRoute);d('@ember/routing/router-service',emberRoutingRouterService);d('@ember/routing/router',emberRoutingRouter);d('@ember/routing/transition',emberRoutingTransition);d('@ember/runloop/-private/backburner',emberRunloopprivateBackburner);d('@ember/runloop/index',emberRunloopIndex);d('@ember/service/index',emberServiceIndex);d('@ember/template-compilation/index',emberTemplateCompilationIndex);d('@ember/template-factory/index',emberTemplateFactoryIndex);d('@ember/template/index',emberTemplateIndex);d('@ember/test/adapter',emberTestAdapter);d('@ember/test/index',emberTestIndex);d('@ember/utils/index',emberUtilsIndex);d('@ember/utils/lib/compare',emberUtilsLibCompare);d('@ember/utils/lib/is-equal',emberUtilsLibIsEqual);d('@ember/utils/lib/is_blank',emberUtilsLibIsBlank);d('@ember/utils/lib/is_empty',emberUtilsLibIsEmpty);d('@ember/utils/lib/is_none',emberUtilsLibIsNone);d('@ember/utils/lib/is_present',emberUtilsLibIsPresent);d('@ember/utils/lib/type-of',emberUtilsLibTypeOf);d('@ember/version/index',emberVersionIndex);d('@glimmer/debug',glimmerDebug);d('@glimmer/destroyable',glimmerDestroyable);d('@glimmer/encoder',glimmerEncoder);d('@glimmer/env',glimmerEnv);d('@glimmer/global-context',glimmerGlobalContext);d('@glimmer/manager',glimmerManager);d('@glimmer/node',glimmerNode);d('@glimmer/opcode-compiler',glimmerOpcodeCompiler);d('@glimmer/owner',glimmerOwner);d('@glimmer/program',glimmerProgram);d('@glimmer/reference',glimmerReference);d('@glimmer/runtime',glimmerRuntime);d('@glimmer/tracking/index',glimmerTrackingIndex);d('@glimmer/tracking/primitives/cache',glimmerTrackingPrimitivesCache);d('@glimmer/util',glimmerUtil);d('@glimmer/validator',glimmerValidator);d('@glimmer/vm',glimmerVm);d('@glimmer/wire-format',glimmerWireFormat);d('@simple-dom/document',simpleDomDocument);d('backburner.js',backburnerjs);d('dag-map',dagMap);d('ember/index',emberIndex);d('ember/version',emberVersion);d('route-recognizer',routeRecognizer);d('router_js',routerJs);d('rsvp',rsvp);if(typeof module==='object'&&typeof module.require==='function'){module.exports=index;}})();","/* eslint-disable no-empty */\n/* global require */\n\n(function () {\n  try {\n    require('ember-cli-deprecation-workflow').default();\n  } catch (e) {}\n})();\n","/* eslint-disable no-empty, no-prototype-builtins, ember/use-ember-data-rfc-395-imports, no-global-assign, prettier/prettier */\n'use strict';\n\n/* globals Ember, require */\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  const _Ember = typeof require === 'function' && typeof require.has === 'function' && require.has('ember') ? require('ember').default : Ember;\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  if (_Ember.Location) { // Not present from Ember 5.3 onward\n    IS_PERMA_CLASSIC.set(_Ember.Location, false);\n  }\n  if (_Ember.AutoLocation) { // Not present from Ember 5.3 onward\n    IS_PERMA_CLASSIC.set(_Ember.AutoLocation, false);\n  }\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  if (_Ember.Location) { // Not present from Ember 5.3 onward\n    BASE_CLASSES.set(_Ember.Location, true);\n  }\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","define(\"@ember-data/adapter/-private\", [\"exports\", \"@ember-data/adapter/serialize-into-hash-b9092b25\", \"@ember-data/adapter/build-url-mixin-18db8c8b\"], function (_exports, _serializeIntoHashB9092b, _buildUrlMixin18db8c8b) {\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 _buildUrlMixin18db8c8b.B;\n    }\n  });\n  Object.defineProperty(_exports, \"determineBodyPromise\", {\n    enumerable: true,\n    get: function () {\n      return _serializeIntoHashB9092b.d;\n    }\n  });\n  Object.defineProperty(_exports, \"fetch\", {\n    enumerable: true,\n    get: function () {\n      return _serializeIntoHashB9092b.g;\n    }\n  });\n  Object.defineProperty(_exports, \"parseResponseHeaders\", {\n    enumerable: true,\n    get: function () {\n      return _serializeIntoHashB9092b.p;\n    }\n  });\n  Object.defineProperty(_exports, \"serializeIntoHash\", {\n    enumerable: true,\n    get: function () {\n      return _serializeIntoHashB9092b.b;\n    }\n  });\n  Object.defineProperty(_exports, \"serializeQueryParams\", {\n    enumerable: true,\n    get: function () {\n      return _serializeIntoHashB9092b.s;\n    }\n  });\n  Object.defineProperty(_exports, \"setupFastboot\", {\n    enumerable: true,\n    get: function () {\n      return _serializeIntoHashB9092b.a;\n    }\n  });\n});","define(\"@ember-data/adapter/build-url-mixin-18db8c8b\", [\"exports\", \"@ember/object/mixin\", \"@ember/string\", \"ember-inflector\"], function (_exports, _mixin, _string, _emberInflector) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.B = void 0;\n  /**\n    @module @ember-data/adapter\n  */\n\n  /*\n   The structure of this file is such because typing Mixins is hard. Here we've structured it in\n   such a way as to maximize the type information that a consumer can utilize. There are simpler\n   ways to type a mixin but we would not be able to provide the nice overload signature for buildURL\n  */\n  // the interface must fully declare the function signatures that the individual functions\n  // will also declare. If instead we try to keep them in sync by doing something like\n  // `interface BuildURLMixin { buildURL: typeof buildURL }`\n  // then an extending class overwriting one of the methods will break because typescript\n  // thinks it is a switch from an instance prop (that is a method) to an instance method.\n  // prevents the final constructed object from needing to add\n  // host and namespace which are provided by the final consuming\n  // class to the prototype which can result in overwrite errors\n  /**\n    ## Using BuildURLMixin\n  \n    To use URL building, include the mixin when extending an adapter, and call `buildURL` where needed.\n    The default behaviour is designed for RESTAdapter.\n  \n    ### Example\n  \n    ```javascript\n    import Adapter, { BuildURLMixin } from '@ember-data/adapter';\n  \n    export default class ApplicationAdapter extends Adapter.extend(BuildURLMixin) {\n      findRecord(store, type, id, snapshot) {\n        var url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n        return this.ajax(url, 'GET');\n      }\n    }\n    ```\n  \n    ### Attributes\n  \n    The `host` and `namespace` attributes will be used if defined, and are optional.\n  \n    @class BuildURLMixin\n    @public\n  */\n  /**\n      Builds a URL for a given type and optional ID.\n  \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](./pathForType?anchor=pathForType).\n  \n      If an ID is specified, it adds the ID to the path generated\n      for the type, separated by a `/`.\n  \n      When called by `RESTAdapter.findMany()` the `id` and `snapshot` parameters\n      will be arrays of ids and snapshots.\n  \n      @method buildURL\n      @public\n      @param {String} modelName\n      @param {(String|Array|Object)} id single id or array of ids or query\n      @param {(Snapshot|SnapshotRecordArray)} snapshot single snapshot or array of snapshots\n      @param {String} requestType\n      @param {Object} query object of query parameters to send for query requests.\n      @return {String} url\n    */\n  function buildURL(modelName, id, snapshot, requestType, query) {\n    /*\n        Switch statements in typescript don't currently narrow even when the function is implemented\n        with overloads.\n         We still extract this to stand alone so that we can provide nice overloads for calling signatures,\n        but we will still require all of this casting (or a ridiculous number of assertsthat narrow it down\n        for us).\n    */\n    switch (requestType) {\n      case 'findRecord':\n        return this.urlForFindRecord(id, modelName, snapshot);\n      case 'findAll':\n        return this.urlForFindAll(modelName, snapshot);\n      case 'query':\n        return this.urlForQuery(query || {}, modelName);\n      case 'queryRecord':\n        return this.urlForQueryRecord(query || {}, modelName);\n      case 'findMany':\n        return this.urlForFindMany(id, modelName, snapshot);\n      case 'findHasMany':\n        return this.urlForFindHasMany(id, modelName, snapshot);\n      case 'findBelongsTo':\n        return this.urlForFindBelongsTo(id, modelName, snapshot);\n      case 'createRecord':\n        return this.urlForCreateRecord(modelName, snapshot);\n      case 'updateRecord':\n        return this.urlForUpdateRecord(id, modelName, snapshot);\n      case 'deleteRecord':\n        return this.urlForDeleteRecord(id, modelName, snapshot);\n      default:\n        // this is the 'never' case but someone may call `buildURL` manually so\n        // we try to do something for them.\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  function _buildURL(modelName, id) {\n    let path;\n    let url = [];\n    let {\n      host\n    } = this;\n    let prefix = this.urlPrefix();\n    if (modelName) {\n      path = this.pathForType(modelName);\n      if (path) {\n        url.push(path);\n      }\n    }\n    if (id) {\n      url.push(encodeURIComponent(id));\n    }\n    if (prefix) {\n      url.unshift(prefix);\n    }\n    let urlString = url.join('/');\n    if (!host && urlString && urlString.charAt(0) !== '/') {\n      urlString = '/' + urlString;\n    }\n    return urlString;\n  }\n\n  /**\n     Builds a URL for a `store.findRecord(type, id)` call.\n  \n     Example:\n  \n     ```app/adapters/user.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n     export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindRecord(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id, snapshot);\n         return `${baseUrl}/users/${snapshot.adapterOptions.user_id}/playlists/${id}`;\n       }\n     }\n     ```\n  \n     @method urlForFindRecord\n     @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n  \n     */\n  function urlForFindRecord(id, modelName, snapshot) {\n    return this._buildURL(modelName, id);\n  }\n\n  /**\n     Builds a URL for a `store.findAll(type)` call.\n  \n     Example:\n  \n     ```app/adapters/comment.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n     export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindAll(modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName);\n         return `${baseUrl}/data/comments.json`;\n       }\n     }\n     ```\n  \n     @method urlForFindAll\n      @public\n     @param {String} modelName\n     @param {SnapshotRecordArray} snapshot\n     @return {String} url\n     */\n  function urlForFindAll(modelName, snapshots) {\n    return this._buildURL(modelName);\n  }\n\n  /**\n     Builds a URL for a `store.query(type, query)` call.\n  \n     Example:\n  \n     ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n  \n     export default class ApplicationAdapter extends RESTAdapter {\n       host = 'https://api.github.com';\n       urlForQuery (query, modelName) {\n         switch(modelName) {\n           case 'repo':\n             return `https://api.github.com/orgs/${query.orgId}/repos`;\n           default:\n             return super.urlForQuery(...arguments);\n         }\n       }\n     }\n     ```\n  \n     @method urlForQuery\n      @public\n     @param {Object} query\n     @param {String} modelName\n     @return {String} url\n     */\n  function urlForQuery(query, modelName) {\n    return this._buildURL(modelName);\n  }\n\n  /**\n     Builds a URL for a `store.queryRecord(type, query)` call.\n  \n     Example:\n  \n     ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n  \n     export default class ApplicationAdapter extends RESTAdapter {\n       urlForQueryRecord({ slug }, modelName) {\n         let baseUrl = this.buildURL();\n         return `${baseUrl}/${encodeURIComponent(slug)}`;\n       }\n     }\n     ```\n  \n     @method urlForQueryRecord\n      @public\n     @param {Object} query\n     @param {String} modelName\n     @return {String} url\n     */\n  function 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  \n     Example:\n  \n     ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n  \n     export default class ApplicationAdapter extends RESTAdapter {\n       urlForFindMany(ids, modelName) {\n         let baseUrl = this.buildURL();\n         return `${baseUrl}/coalesce`;\n       }\n     }\n     ```\n  \n     @method urlForFindMany\n      @public\n     @param {Array} ids\n     @param {String} modelName\n     @param {Array} snapshots\n     @return {String} url\n     */\n  function 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  \n     Example:\n  \n     ```app/adapters/application.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n     export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindHasMany(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id);\n         return `${baseUrl}/relationships`;\n       }\n     }\n     ```\n  \n     @method urlForFindHasMany\n      @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n  function 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  \n     Example:\n  \n     ```app/adapters/application.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n     export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindBelongsTo(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id);\n         return `${baseUrl}/relationships`;\n       }\n     }\n     ```\n  \n     @method urlForFindBelongsTo\n      @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n  function 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  \n     Example:\n  \n     ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n  \n     export default class ApplicationAdapter extends RESTAdapter {\n       urlForCreateRecord(modelName, snapshot) {\n         return super.urlForCreateRecord(...arguments) + '/new';\n       }\n     }\n     ```\n  \n     @method urlForCreateRecord\n      @public\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n  function 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  \n     Example:\n  \n     ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n  \n     export default class ApplicationAdapter extends RESTAdapter {\n       urlForUpdateRecord(id, modelName, snapshot) {\n         return `/${id}/feed?access_token=${snapshot.adapterOptions.token}`;\n       }\n     }\n     ```\n  \n     @method urlForUpdateRecord\n      @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n  function 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  \n     Example:\n  \n     ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n  \n     export default class ApplicationAdapter extends RESTAdapter {\n       urlForDeleteRecord(id, modelName, snapshot) {\n         return super.urlForDeleteRecord(...arguments) + '/destroy';\n       }\n     }\n     ```\n  \n     @method urlForDeleteRecord\n      @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n  function 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  function urlPrefix(path, parentURL) {\n    let {\n      host,\n      namespace\n    } = this;\n    if (!host || host === '/') {\n      host = '';\n    }\n    if (path) {\n      // Protocol relative url\n      if (/^\\/\\//.test(path) || /http(s)?:\\/\\//.test(path)) {\n        // Do nothing, the full host is already included.\n        return path;\n\n        // Absolute path\n      } else if (path.charAt(0) === '/') {\n        return `${host}${path}`;\n        // Relative path\n      } else {\n        return `${parentURL}/${path}`;\n      }\n    }\n\n    // No path provided\n    let url = [];\n    if (host) {\n      url.push(host);\n    }\n    if (namespace) {\n      url.push(namespace);\n    }\n    return url.join('/');\n  }\n\n  /**\n      Determines the pathname for a given type.\n  \n      By default, it pluralizes the type's name (for example,\n      'post' becomes 'posts' and 'person' becomes 'people').\n  \n      ### Pathname customization\n  \n      For example, if you have an object `LineItem` with an\n      endpoint of `/line_items/`.\n  \n      ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n      import { decamelize, pluralize } from '<app-name>/utils/string-utils';\n  \n      export default class ApplicationAdapter extends RESTAdapter {\n        pathForType(modelName) {\n          var decamelized = decamelize(modelName);\n          return pluralize(decamelized);\n        }\n      }\n      ```\n  \n      @method pathForType\n      @public\n      @param {String} modelName\n      @return {String} path\n    **/\n  function pathForType(modelName) {\n    let camelized = (0, _string.camelize)(modelName);\n    return (0, _emberInflector.pluralize)(camelized);\n  }\n\n  // we build it this way vs casting to BuildURLMixin so that any\n  // changes to the interface surface as errors here.\n  const mixinProps = {\n    buildURL,\n    _buildURL,\n    urlForFindRecord,\n    urlForFindAll,\n    urlForQueryRecord,\n    urlForQuery,\n    urlForFindMany,\n    urlForFindHasMany,\n    urlForFindBelongsTo,\n    urlForCreateRecord,\n    urlForDeleteRecord,\n    urlForUpdateRecord,\n    urlPrefix,\n    pathForType\n  };\n  var BuildURLMixin = _exports.B = _mixin.default.create(mixinProps);\n});","define(\"@ember-data/adapter/error\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.UnauthorizedError = _exports.TimeoutError = _exports.ServerError = _exports.NotFoundError = _exports.InvalidError = _exports.ForbiddenError = _exports.ConflictError = _exports.AbortError = void 0;\n  _exports.default = AdapterError;\n  _exports.errorsArrayToHash = errorsArrayToHash;\n  _exports.errorsHashToArray = errorsHashToArray;\n  /**\n    ## Overview\n  \n    <blockquote style=\"margin: 1em; padding: .1em 1em .1em 1em; border-left: solid 1em #E34C32; background: #e0e0e0;\">\n    <p>\n      ⚠️ <strong>This is LEGACY documentation</strong> for a feature that is no longer encouraged to be used.\n      If starting a new app or thinking of implementing a new adapter, consider writing a\n      <a href=\"/ember-data/release/classes/%3CInterface%3E%20Handler\">Handler</a> instead to be used with the <a href=\"https://github.com/emberjs/data/tree/main/packages/request#readme\">RequestManager</a>\n    </p>\n    </blockquote>\n  \n    An `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.\n  \n    To create a custom error to signal a specific error state in communicating\n    with an external API, extend the `AdapterError`. For example, if the\n    external API exclusively used HTTP `503 Service Unavailable` to indicate\n    it was closed for maintenance:\n  \n    ```app/adapters/maintenance-error.js\n    import AdapterError from '@ember-data/adapter/error';\n  \n    export default AdapterError.extend({ message: \"Down for maintenance.\" });\n    ```\n  \n    This error would then be returned by an adapter's `handleResponse` method:\n  \n    ```app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n    import MaintenanceError from './maintenance-error';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter {\n      handleResponse(status) {\n        if (503 === status) {\n          return new MaintenanceError();\n        }\n  \n        return super.handleResponse(...arguments);\n      }\n    }\n    ```\n  \n    And can then be detected in an application and used to send the user to an\n    `under-maintenance` route:\n  \n    ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import MaintenanceError from '../adapters/maintenance-error';\n  \n    export default class ApplicationRoute extends Route {\n      actions: {\n        error(error, transition) {\n          if (error instanceof MaintenanceError) {\n            this.transitionTo('under-maintenance');\n            return;\n          }\n  \n          // ...other error handling logic\n        }\n      }\n    }\n    ```\n  \n    @main @ember-data/adapter/error\n    @class AdapterError\n    @public\n  */\n  function AdapterError(errors) {\n    let message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Adapter operation failed';\n    this.isAdapterError = true;\n    let error = Error.call(this, message);\n    if (error) {\n      this.stack = error.stack;\n      this.description = error.description;\n      this.fileName = error.fileName;\n      this.lineNumber = error.lineNumber;\n      this.message = error.message;\n      this.name = error.name;\n      this.number = error.number;\n    }\n    this.errors = errors || [{\n      title: 'Adapter Error',\n      detail: message\n    }];\n  }\n  function extendFn(ErrorClass) {\n    return function () {\n      let {\n        message: defaultMessage\n      } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      return extend(ErrorClass, defaultMessage);\n    };\n  }\n  function extend(ParentErrorClass, defaultMessage) {\n    let ErrorClass = function (errors, message) {\n      (true && !(Array.isArray(errors || [])) && (0, _debug.assert)('`AdapterError` expects json-api formatted errors array.', Array.isArray(errors || [])));\n      ParentErrorClass.call(this, errors, message || defaultMessage);\n    };\n    ErrorClass.prototype = Object.create(ParentErrorClass.prototype);\n    ErrorClass.extend = extendFn(ErrorClass);\n    return ErrorClass;\n  }\n  AdapterError.prototype = Object.create(Error.prototype);\n  AdapterError.prototype.code = 'AdapterError';\n  AdapterError.extend = extendFn(AdapterError);\n\n  /**\n    A `InvalidError` is used by an adapter to signal the external API\n    was unable to process a request because the content was not\n    semantically correct or meaningful per the API. Usually, this means a\n    record failed some form of server-side validation. When a promise\n    from an adapter is rejected with a `InvalidError` the record will\n    transition to the `invalid` state and the errors will be set to the\n    `errors` property on the record.\n  \n    For Ember Data to correctly map errors to their corresponding\n    properties on the model, Ember Data expects each error to be\n    a valid JSON-API error object with a `source/pointer` that matches\n    the property name. For example, if you had a Post model that\n    looked like this.\n  \n    ```app/models/post.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @attr('string') title;\n      @attr('string') content;\n    }\n    ```\n  \n    To show an error from the server related to the `title` and\n    `content` properties your adapter could return a promise that\n    rejects with a `InvalidError` object that looks like this:\n  \n    ```app/adapters/post.js\n    import RSVP from 'RSVP';\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { InvalidError } from '@ember-data/adapter/error';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      updateRecord() {\n        // Fictional adapter that always rejects\n        return RSVP.reject(new InvalidError([\n          {\n            detail: 'Must be unique',\n            source: { pointer: '/data/attributes/title' }\n          },\n          {\n            detail: 'Must not be blank',\n            source: { pointer: '/data/attributes/content'}\n          }\n        ]));\n      }\n    }\n    ```\n  \n    Your backend may use different property names for your records the\n    store will attempt to extract and normalize the errors using the\n    serializer's `extractErrors` method before the errors get added to\n    the model. As a result, it is safe for the `InvalidError` to\n    wrap the error payload unaltered.\n  \n    @class InvalidError\n    @public\n    @extends AdapterError\n  */\n  // TODO @deprecate extractError documentation\n  const InvalidError = _exports.InvalidError = extend(AdapterError, 'The adapter rejected the commit because it was invalid');\n  InvalidError.prototype.code = 'InvalidError';\n\n  /**\n    A `TimeoutError` is used by an adapter to signal that a request\n    to the external API has timed out. I.e. no response was received from\n    the external API within an allowed time period.\n  \n    An example use case would be to warn the user to check their internet\n    connection if an adapter operation has timed out:\n  \n    ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { TimeoutError } from '@ember-data/adapter/error';\n    import { action } from '@ember/object';\n  \n    export default class ApplicationRoute extends Route {\n      @action\n      error(error, transition) {\n        if (error instanceof TimeoutError) {\n          // alert the user\n          alert('Are you still connected to the Internet?');\n          return;\n        }\n  \n        // ...other error handling logic\n      }\n    }\n    ```\n  \n    @class TimeoutError\n    @public\n    @extends AdapterError\n  */\n  const TimeoutError = _exports.TimeoutError = extend(AdapterError, 'The adapter operation timed out');\n  TimeoutError.prototype.code = 'TimeoutError';\n\n  /**\n    A `AbortError` is used by an adapter to signal that a request to\n    the external API was aborted. For example, this can occur if the user\n    navigates away from the current page after a request to the external API\n    has been initiated but before a response has been received.\n  \n    @class AbortError\n    @public\n    @extends AdapterError\n  */\n  const AbortError = _exports.AbortError = extend(AdapterError, 'The adapter operation was aborted');\n  AbortError.prototype.code = 'AbortError';\n\n  /**\n    A `UnauthorizedError` equates to a HTTP `401 Unauthorized` response\n    status. It is used by an adapter to signal that a request to the external\n    API was rejected because authorization is required and has failed or has not\n    yet been provided.\n  \n    An example use case would be to redirect the user to a login route if a\n    request is unauthorized:\n  \n    ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { UnauthorizedError } from '@ember-data/adapter/error';\n    import { action } from '@ember/object';\n  \n    export default class ApplicationRoute extends Route {\n      @action\n      error(error, transition) {\n        if (error instanceof UnauthorizedError) {\n          // go to the login route\n          this.transitionTo('login');\n          return;\n        }\n  \n        // ...other error handling logic\n      }\n    }\n    ```\n  \n    @class UnauthorizedError\n    @public\n    @extends AdapterError\n  */\n  const UnauthorizedError = _exports.UnauthorizedError = extend(AdapterError, 'The adapter operation is unauthorized');\n  UnauthorizedError.prototype.code = 'UnauthorizedError';\n\n  /**\n    A `ForbiddenError` equates to a HTTP `403 Forbidden` response status.\n    It is used by an adapter to signal that a request to the external API was\n    valid but the server is refusing to respond to it. If authorization was\n    provided and is valid, then the authenticated user does not have the\n    necessary permissions for the request.\n  \n    @class ForbiddenError\n    @public\n    @extends AdapterError\n  */\n  const ForbiddenError = _exports.ForbiddenError = extend(AdapterError, 'The adapter operation is forbidden');\n  ForbiddenError.prototype.code = 'ForbiddenError';\n\n  /**\n    A `NotFoundError` equates to a HTTP `404 Not Found` response status.\n    It is used by an adapter to signal that a request to the external API\n    was rejected because the resource could not be found on the API.\n  \n    An example use case would be to detect if the user has entered a route\n    for a specific model that does not exist. For example:\n  \n    ```app/routes/post.js\n    import Route from '@ember/routing/route';\n    import { NotFoundError } from '@ember-data/adapter/error';\n    import { inject as service } from '@ember/service';\n    import { action } from '@ember/object';\n  \n    export default class PostRoute extends Route {\n      @service store;\n      model(params) {\n        return this.store.findRecord('post', params.post_id);\n      }\n      @action\n      error(error, transition) {\n        if (error instanceof NotFoundError) {\n          // redirect to a list of all posts instead\n          this.transitionTo('posts');\n        } else {\n          // otherwise let the error bubble\n          return true;\n        }\n      }\n    }\n    ```\n  \n    @class NotFoundError\n    @public\n    @extends AdapterError\n  */\n  const NotFoundError = _exports.NotFoundError = extend(AdapterError, 'The adapter could not find the resource');\n  NotFoundError.prototype.code = 'NotFoundError';\n\n  /**\n    A `ConflictError` equates to a HTTP `409 Conflict` response status.\n    It is used by an adapter to indicate that the request could not be processed\n    because of a conflict in the request. An example scenario would be when\n    creating a record with a client-generated ID but that ID is already known\n    to the external API.\n  \n    @class ConflictError\n    @public\n    @extends AdapterError\n  */\n  const ConflictError = _exports.ConflictError = extend(AdapterError, 'The adapter operation failed due to a conflict');\n  ConflictError.prototype.code = 'ConflictError';\n\n  /**\n    A `ServerError` equates to a HTTP `500 Internal Server Error` response\n    status. It is used by the adapter to indicate that a request has failed\n    because of an error in the external API.\n  \n    @class ServerError\n    @public\n    @extends AdapterError\n  */\n  const ServerError = _exports.ServerError = extend(AdapterError, 'The adapter operation failed due to a server error');\n  ServerError.prototype.code = 'ServerError';\n  function makeArray(value) {\n    return Array.isArray(value) ? value : [value];\n  }\n  const SOURCE_POINTER_REGEXP = /^\\/?data\\/(attributes|relationships)\\/(.*)/;\n  const SOURCE_POINTER_PRIMARY_REGEXP = /^\\/?data/;\n  const PRIMARY_ATTRIBUTE_KEY = 'base';\n  /**\n    Convert an hash of errors into an array with errors in JSON-API format.\n     ```javascript\n     import { errorsHashToArray } from '@ember-data/adapter/error';\n  \n     let errors = {\n      base: 'Invalid attributes on saving this record',\n      name: 'Must be present',\n      age: ['Must be present', 'Must be a number']\n    };\n     let errorsArray = errorsHashToArray(errors);\n    // [\n    //   {\n    //     title: \"Invalid Document\",\n    //     detail: \"Invalid attributes on saving this record\",\n    //     source: { pointer: \"/data\" }\n    //   },\n    //   {\n    //     title: \"Invalid Attribute\",\n    //     detail: \"Must be present\",\n    //     source: { pointer: \"/data/attributes/name\" }\n    //   },\n    //   {\n    //     title: \"Invalid Attribute\",\n    //     detail: \"Must be present\",\n    //     source: { pointer: \"/data/attributes/age\" }\n    //   },\n    //   {\n    //     title: \"Invalid Attribute\",\n    //     detail: \"Must be a number\",\n    //     source: { pointer: \"/data/attributes/age\" }\n    //   }\n    // ]\n    ```\n    @method errorsHashToArray\n    @for @ember-data/adapter/error\n    @static\n    @deprecated\n    @public\n    @param {Object} errors hash with errors as properties\n    @return {Array} array of errors in JSON-API format\n  */\n  function errorsHashToArray(errors) {\n    {\n      (true && !(false) && (0, _debug.deprecate)(`errorsHashToArray helper has been deprecated.`, false, {\n        id: 'ember-data:deprecate-errors-hash-to-array-helper',\n        for: 'ember-data',\n        until: '5.0',\n        since: {\n          available: '4.7',\n          enabled: '4.7'\n        }\n      }));\n      let out = [];\n      if (errors) {\n        Object.keys(errors).forEach(key => {\n          let messages = makeArray(errors[key]);\n          for (let i = 0; i < messages.length; i++) {\n            let title = 'Invalid Attribute';\n            let pointer = `/data/attributes/${key}`;\n            if (key === PRIMARY_ATTRIBUTE_KEY) {\n              title = 'Invalid Document';\n              pointer = `/data`;\n            }\n            out.push({\n              title: title,\n              detail: messages[i],\n              source: {\n                pointer: pointer\n              }\n            });\n          }\n        });\n      }\n      return out;\n    }\n    (true && !(false) && (0, _debug.assert)(`errorsHashToArray helper has been removed`));\n  }\n\n  /**\n    Convert an array of errors in JSON-API format into an object.\n  \n    ```javascript\n    import { errorsArrayToHash } from '@ember-data/adapter/error';\n  \n    let errorsArray = [\n      {\n        title: 'Invalid Attribute',\n        detail: 'Must be present',\n        source: { pointer: '/data/attributes/name' }\n      },\n      {\n        title: 'Invalid Attribute',\n        detail: 'Must be present',\n        source: { pointer: '/data/attributes/age' }\n      },\n      {\n        title: 'Invalid Attribute',\n        detail: 'Must be a number',\n        source: { pointer: '/data/attributes/age' }\n      }\n    ];\n  \n    let errors = errorsArrayToHash(errorsArray);\n    // {\n    //   \"name\": [\"Must be present\"],\n    //   \"age\":  [\"Must be present\", \"must be a number\"]\n    // }\n    ```\n  \n    @method errorsArrayToHash\n    @static\n    @for @ember-data/adapter/error\n    @deprecated\n    @public\n    @param {Array} errors array of errors in JSON-API format\n    @return {Object}\n  */\n  function errorsArrayToHash(errors) {\n    {\n      (true && !(false) && (0, _debug.deprecate)(`errorsArrayToHash helper has been deprecated.`, false, {\n        id: 'ember-data:deprecate-errors-array-to-hash-helper',\n        for: 'ember-data',\n        until: '5.0',\n        since: {\n          available: '4.7',\n          enabled: '4.7'\n        }\n      }));\n      let out = {};\n      if (errors) {\n        errors.forEach(error => {\n          if (error.source && error.source.pointer) {\n            let key = error.source.pointer.match(SOURCE_POINTER_REGEXP);\n            if (key) {\n              key = key[2];\n            } else if (error.source.pointer.search(SOURCE_POINTER_PRIMARY_REGEXP) !== -1) {\n              key = PRIMARY_ATTRIBUTE_KEY;\n            }\n            if (key) {\n              out[key] = out[key] || [];\n              out[key].push(error.detail || error.title);\n            }\n          }\n        });\n      }\n      return out;\n    }\n    (true && !(false) && (0, _debug.assert)(`errorsArrayToHash helper has been removed`));\n  }\n});","define(\"@ember-data/adapter/index-f54121ea\", [\"exports\", \"@ember/object\", \"@ember/service\"], function (_exports, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.A = void 0;\n  _exports._ = _applyDecoratedDescriptor;\n  function _initializerDefineProperty(target, property, descriptor, context) {\n    if (!descriptor) return;\n    Object.defineProperty(target, property, {\n      enumerable: descriptor.enumerable,\n      configurable: descriptor.configurable,\n      writable: descriptor.writable,\n      value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n    });\n  }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n    var desc = {};\n    Object.keys(descriptor).forEach(function (key) {\n      desc[key] = descriptor[key];\n    });\n    desc.enumerable = !!desc.enumerable;\n    desc.configurable = !!desc.configurable;\n    if ('value' in desc || desc.initializer) {\n      desc.writable = true;\n    }\n    desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n      return decorator(target, property, desc) || desc;\n    }, desc);\n    if (context && desc.initializer !== void 0) {\n      desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n      desc.initializer = undefined;\n    }\n    if (desc.initializer === void 0) {\n      Object.defineProperty(target, property, desc);\n      desc = null;\n    }\n    return desc;\n  }\n  var _class, _descriptor;\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    > ⚠️ CAUTION you likely want the docs for [<Interface> Adapter](/ember-data/release/classes/%3CInterface%3E%20Adapter)\n    > as extending this abstract class is unnecessary.\n  \n    ### Creating an Adapter\n  \n    Create a new subclass of `Adapter` in the `app/adapters` folder:\n  \n    ```app/adapters/application.js\n    import Adapter from '@ember-data/adapter';\n  \n    export default Adapter.extend({\n      // ...your code here\n    });\n    ```\n  \n    Model-specific adapters can be created by putting your adapter\n    class in an `app/adapters/` + `model-name` + `.js` file of the application.\n  \n    ```app/adapters/post.js\n    import Adapter from '@ember-data/adapter';\n  \n    export default Adapter.extend({\n      // ...Post-specific adapter code goes here\n    });\n    ```\n  \n    `Adapter` is an abstract base class that you should override in your\n    application to customize it for your backend. The minimum set of methods\n    that you should implement is:\n  \n      * `findRecord()`\n      * `createRecord()`\n      * `updateRecord()`\n      * `deleteRecord()`\n      * `findAll()`\n      * `query()`\n  \n    To improve the network performance of your application, you can optimize\n    your adapter by overriding these lower-level methods:\n  \n      * `findMany()`\n  \n  \n    For an example of the implementation, see `RESTAdapter`, the\n    included REST adapter.\n  \n    @class Adapter\n    @public\n    @extends Ember.EmberObject\n  */\n  let Adapter = _exports.A = (_class = class Adapter extends _object.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n    }\n    /**\n      The `findRecord()` method is invoked when the store is asked for a record that\n      has not previously been loaded. In response to `findRecord()` being called, you\n      should query your persistence layer for a record with the given ID. The `findRecord`\n      method should return a promise that will resolve to a JavaScript object that will be\n      normalized by the serializer.\n       Here is an example of the `findRecord` implementation:\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        findRecord(store, type, id, snapshot) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}/${id}`).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method findRecord\n      @param {Store} store\n      @param {Model} type\n      @param {String} id\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n      @public\n    */ // @ts-expect-error\n    findRecord(store, type, id, snapshot) {\n      {\n        throw new Error('You subclassed the Adapter class but missing a findRecord override');\n      }\n    }\n\n    /**\n      The `findAll()` method is used to retrieve all records for a given type.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        findAll(store, type) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}`).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method findAll\n      @param {Store} store\n      @param {Model} type\n      @param {undefined} neverSet a value is never provided to this argument\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Promise} promise\n      @public\n    */\n    findAll(store, type, neverSet, snapshotRecordArray) {\n      {\n        throw new Error('You subclassed the Adapter class but missing a findAll override');\n      }\n    }\n\n    /**\n      This method is called when you call `query` on the store.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        query(store, type, query) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}`, query).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method query\n      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @param {Collection} recordArray\n      @param {Object} adapterOptions\n      @return {Promise} promise\n      @public\n    */\n    // @ts-expect-error\n    query(store, type, query) {\n      {\n        throw new Error('You subclassed the Adapter class but missing a query override');\n      }\n    }\n\n    /**\n      The `queryRecord()` method is invoked when the store is asked for a single\n      record through a query object.\n       In response to `queryRecord()` being called, you should always fetch fresh\n      data. Once found, you can asynchronously call the store's `push()` method\n      to push the record into the store.\n       Here is an example `queryRecord` implementation:\n       Example\n       ```app/adapters/application.js\n      import Adapter, { BuildURLMixin } from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter.extend(BuildURLMixin) {\n        queryRecord(store, type, query) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}`, query).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method queryRecord\n      @param {Store} store\n      @param {subclass of Model} type\n      @param {Object} query\n      @param {Object} adapterOptions\n      @return {Promise} promise\n      @public\n    */\n    // @ts-expect-error\n    queryRecord(store, type, query, adapterOptions) {\n      {\n        throw new Error('You subclassed the Adapter class but missing a queryRecord override');\n      }\n    }\n\n    /**\n      If the globally unique IDs for your records should be generated on the client,\n      implement the `generateIdForRecord()` method. This method will be invoked\n      each time you create a new record, and the value returned from it will be\n      assigned to the record's `primaryKey`.\n       Most traditional REST-like HTTP APIs will not use this method. Instead, the ID\n      of the record will be set by the server, and your adapter will update the store\n      with the new ID when it calls `didCreateRecord()`. Only implement this method if\n      you intend to generate record IDs on the client-side.\n       The `generateIdForRecord()` method will be invoked with the requesting store as\n      the first parameter and the newly created record as the second parameter:\n       ```javascript\n      import Adapter from '@ember-data/adapter';\n      import { v4 } from 'uuid';\n       export default class ApplicationAdapter extends Adapter {\n        generateIdForRecord(store, type, inputProperties) {\n          return v4();\n        }\n      }\n      ```\n       @method generateIdForRecord\n      @param {Store} store\n      @param {Model} type   the Model class of the record\n      @param {Object} inputProperties a hash of properties to set on the\n        newly created record.\n      @return {(String|Number)} id\n      @public\n    */\n\n    /**\n      Proxies to the serializer's `serialize` method.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n       export default class ApplicationAdapter extends Adapter {\n        createRecord(store, type, snapshot) {\n          let data = this.serialize(snapshot, { includeId: true });\n          let url = `/${type.modelName}`;\n           // ...\n        }\n      }\n      ```\n       @method serialize\n      @param {Snapshot} snapshot\n      @param {Object}   options\n      @return {Object} serialized snapshot\n      @public\n    */\n    serialize(snapshot, options) {\n      return snapshot.serialize(options);\n    }\n\n    /**\n      Implement this method in a subclass to handle the creation of\n      new records.\n       Serializes the record and sends it to the server.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        createRecord(store, type, snapshot) {\n          let data = this.serialize(snapshot, { includeId: true });\n           return new RSVP.Promise(function (resolve, reject) {\n            $.ajax({\n              type: 'POST',\n              url: `/${type.modelName}`,\n              dataType: 'json',\n              data: data\n            }).then(function (data) {\n              resolve(data);\n            }, function (jqXHR) {\n              jqXHR.then = null; // tame jQuery's ill mannered promises\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method createRecord\n      @param {Store} store\n      @param {Model} type   the Model class of the record\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n      @public\n    */\n    // @ts-expect-error\n    createRecord(store, type, snapshot) {\n      {\n        throw new Error('You subclassed the Adapter class but missing a createRecord override');\n      }\n    }\n\n    /**\n      Implement this method in a subclass to handle the updating of\n      a record.\n       Serializes the record update and sends it to the server.\n       The updateRecord method is expected to return a promise that will\n      resolve with the serialized record. This allows the backend to\n      inform the Ember Data store the current state of this record after\n      the update. If it is not possible to return a serialized record\n      the updateRecord promise can also resolve with `undefined` and the\n      Ember Data store will assume all of the updates were successfully\n      applied on the backend.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        updateRecord(store, type, snapshot) {\n          let data = this.serialize(snapshot, { includeId: true });\n          let id = snapshot.id;\n           return new RSVP.Promise(function(resolve, reject) {\n            $.ajax({\n              type: 'PUT',\n              url: `/${type.modelName}/${id}`,\n              dataType: 'json',\n              data: data\n            }).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              jqXHR.then = null; // tame jQuery's ill mannered promises\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method updateRecord\n      @param {Store} store\n      @param {Model} type   the Model class of the record\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n      @public\n    */\n    // @ts-expect-error\n    updateRecord(store, type, snapshot) {\n      {\n        throw new Error('You subclassed the Adapter class but missing a updateRecord override');\n      }\n    }\n\n    /**\n      Implement this method in a subclass to handle the deletion of\n      a record.\n       Sends a delete request for the record to the server.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        deleteRecord(store, type, snapshot) {\n          let data = this.serialize(snapshot, { includeId: true });\n          let id = snapshot.id;\n           return new RSVP.Promise(function(resolve, reject) {\n            $.ajax({\n              type: 'DELETE',\n              url: `/${type.modelName}/${id}`,\n              dataType: 'json',\n              data: data\n            }).then(function(data) {\n              resolve(data)\n            }, function(jqXHR) {\n              jqXHR.then = null; // tame jQuery's ill mannered promises\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method deleteRecord\n      @param {Store} store\n      @param {Model} type   the Model class of the record\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n      @public\n    */\n    // @ts-expect-error\n    deleteRecord(store, type, snapshot) {\n      {\n        throw new Error('You subclassed the Adapter class but missing a deleteRecord override');\n      }\n    }\n\n    /**\n      By default the store will try to coalesce all `findRecord` calls within the same runloop\n      into as few requests as possible by calling groupRecordsForFindMany and passing it into a findMany call.\n      You can opt out of this behaviour by either not implementing the findMany hook or by setting\n      coalesceFindRequests to false.\n       @property coalesceFindRequests\n      @public\n      @type {boolean}\n    */\n    get coalesceFindRequests() {\n      let coalesceFindRequests = this._coalesceFindRequests;\n      if (typeof coalesceFindRequests === 'boolean') {\n        return coalesceFindRequests;\n      }\n      return this._coalesceFindRequests = true;\n    }\n    set coalesceFindRequests(value) {\n      this._coalesceFindRequests = value;\n    }\n\n    /**\n      The store will call `findMany` instead of multiple `findRecord`\n      requests to find multiple records at once if coalesceFindRequests\n      is true.\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        findMany(store, type, ids, snapshots) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.ajax({\n              type: 'GET',\n              url: `/${type.modelName}/`,\n              dataType: 'json',\n              data: { filter: { id: ids.join(',') } }\n            }).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              jqXHR.then = null; // tame jQuery's ill mannered promises\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method findMany\n      @param {Store} store\n      @param {Model} type   the Model class of the records\n      @param {Array}    ids\n      @param {Array} snapshots\n      @return {Promise} promise\n      @public\n    */\n\n    /**\n      Organize records into groups, each of which is to be passed to separate\n      calls to `findMany`.\n       For example, if your API has nested URLs that depend on the parent, you will\n      want to group records by their parent.\n       The default implementation returns the records as a single group.\n       @method groupRecordsForFindMany\n      @public\n      @param {Store} store\n      @param {Array} snapshots\n      @return {Array}  an array of arrays of records, each of which is to be\n                        loaded separately by `findMany`.\n    */\n    groupRecordsForFindMany(store, snapshots) {\n      return [snapshots];\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload a record from the adapter when a record is requested by\n      `store.findRecord`.\n       If this method returns `true`, the store will re-fetch a record from\n      the adapter. If this method returns `false`, the store will resolve\n      immediately using the cached record.\n       For example, if you are building an events ticketing system, in which users\n      can only reserve tickets for 20 minutes at a time, and want to ensure that\n      in each route you have data that is no more than 20 minutes old you could\n      write:\n       ```javascript\n      shouldReloadRecord(store, ticketSnapshot) {\n        let lastAccessedAt = ticketSnapshot.attr('lastAccessedAt');\n        let timeDiff = moment().diff(lastAccessedAt, 'minutes');\n         if (timeDiff > 20) {\n          return true;\n        } else {\n          return false;\n        }\n      }\n      ```\n       This method would ensure that whenever you do `store.findRecord('ticket',\n      id)` you will always get a ticket that is no more than 20 minutes old. In\n      case the cached version is more than 20 minutes old, `findRecord` will not\n      resolve until you fetched the latest version.\n       By default this hook returns `false`, as most UIs should not block user\n      interactions while waiting on data update.\n       Note that, with default settings, `shouldBackgroundReloadRecord` will always\n      re-fetch the records in the background even if `shouldReloadRecord` returns\n      `false`. You can override `shouldBackgroundReloadRecord` if this does not\n      suit your use case.\n       @since 1.13.0\n      @method shouldReloadRecord\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @return {Boolean}\n      @public\n    */\n    shouldReloadRecord(store, snapshot) {\n      return false;\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload all records from the adapter when records are requested by\n      `store.findAll`.\n       If this method returns `true`, the store will re-fetch all records from\n      the adapter. If this method returns `false`, the store will resolve\n      immediately using the cached records.\n       For example, if you are building an events ticketing system, in which users\n      can only reserve tickets for 20 minutes at a time, and want to ensure that\n      in each route you have data that is no more than 20 minutes old you could\n      write:\n       ```javascript\n      shouldReloadAll(store, snapshotArray) {\n        let snapshots = snapshotArray.snapshots();\n         return snapshots.any((ticketSnapshot) => {\n          let lastAccessedAt = ticketSnapshot.attr('lastAccessedAt');\n          let timeDiff = moment().diff(lastAccessedAt, 'minutes');\n           if (timeDiff > 20) {\n            return true;\n          } else {\n            return false;\n          }\n        });\n      }\n      ```\n       This method would ensure that whenever you do `store.findAll('ticket')` you\n      will always get a list of tickets that are no more than 20 minutes old. In\n      case a cached version is more than 20 minutes old, `findAll` will not\n      resolve until you fetched the latest versions.\n       By default, this method returns `true` if the passed `snapshotRecordArray`\n      is empty (meaning that there are no records locally available yet),\n      otherwise, it returns `false`.\n       Note that, with default settings, `shouldBackgroundReloadAll` will always\n      re-fetch all the records in the background even if `shouldReloadAll` returns\n      `false`. You can override `shouldBackgroundReloadAll` if this does not suit\n      your use case.\n       @since 1.13.0\n      @method shouldReloadAll\n      @param {Store} store\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Boolean}\n      @public\n    */\n    shouldReloadAll(store, snapshotRecordArray) {\n      return !snapshotRecordArray.length;\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload a record after the `store.findRecord` method resolves a\n      cached record.\n       This method is *only* checked by the store when the store is\n      returning a cached record.\n       If this method returns `true` the store will re-fetch a record from\n      the adapter.\n       For example, if you do not want to fetch complex data over a mobile\n      connection, or if the network is down, you can implement\n      `shouldBackgroundReloadRecord` as follows:\n       ```javascript\n      shouldBackgroundReloadRecord(store, snapshot) {\n        let { downlink, effectiveType } = navigator.connection;\n         return downlink > 0 && effectiveType === '4g';\n      }\n      ```\n       By default, this hook returns `true` so the data for the record is updated\n      in the background.\n       @since 1.13.0\n      @method shouldBackgroundReloadRecord\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @return {Boolean}\n      @public\n    */\n    shouldBackgroundReloadRecord(store, Snapshot) {\n      return true;\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload a record array after the `store.findAll` method resolves\n      with a cached record array.\n       This method is *only* checked by the store when the store is\n      returning a cached record array.\n       If this method returns `true` the store will re-fetch all records\n      from the adapter.\n       For example, if you do not want to fetch complex data over a mobile\n      connection, or if the network is down, you can implement\n      `shouldBackgroundReloadAll` as follows:\n       ```javascript\n      shouldBackgroundReloadAll(store, snapshotArray) {\n        let { downlink, effectiveType } = navigator.connection;\n         return downlink > 0 && effectiveType === '4g';\n      }\n      ```\n       By default this method returns `true`, indicating that a background reload\n      should always be triggered.\n       @since 1.13.0\n      @method shouldBackgroundReloadAll\n      @param {Store} store\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Boolean}\n      @public\n    */\n    shouldBackgroundReloadAll(store, snapshotRecordArray) {\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"@ember-data/adapter/index\", [\"exports\", \"@ember-data/adapter/index-f54121ea\", \"@ember-data/adapter/build-url-mixin-18db8c8b\"], function (_exports, _indexF54121ea, _buildUrlMixin18db8c8b) {\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 _buildUrlMixin18db8c8b.B;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _indexF54121ea.A;\n    }\n  });\n});","define(\"@ember-data/adapter/json-api\", [\"exports\", \"@ember/debug\", \"@ember/string\", \"ember-inflector\", \"@ember-data/adapter/serialize-into-hash-b9092b25\", \"@ember-data/adapter/rest\"], function (_exports, _debug, _string, _emberInflector, _serializeIntoHashB9092b, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module @ember-data/adapter/json-api\n   */\n\n  /**\n    ## Overview\n  \n    <blockquote style=\"margin: 1em; padding: .1em 1em .1em 1em; border-left: solid 1em #E34C32; background: #e0e0e0;\">\n    <p>\n      ⚠️ <strong>This is LEGACY documentation</strong> for a feature that is no longer encouraged to be used.\n      If starting a new app or thinking of implementing a new adapter, consider writing a\n      <a href=\"/ember-data/release/classes/%3CInterface%3E%20Handler\">Handler</a> instead to be used with the <a href=\"https://github.com/emberjs/data/tree/main/packages/request#readme\">RequestManager</a>\n    </p>\n    </blockquote>\n  \n    The `JSONAPIAdapter` is an adapter whichtransforms the store's\n    requests into HTTP requests that follow the [JSON API format](http://jsonapi.org/format/).\n  \n    ## JSON API Conventions\n  \n    The JSONAPIAdapter uses JSON API conventions for building the URL\n    for a record and selecting the HTTP verb to use with a request. The\n    actions you can take on a record map onto the following URLs in the\n    JSON API adapter:\n  \n  <table>\n    <tr>\n      <th>\n        Action\n      </th>\n      <th>\n        HTTP Verb\n      </th>\n      <th>\n        URL\n      </th>\n    </tr>\n    <tr>\n      <th>\n        `store.findRecord('post', 123)`\n      </th>\n      <td>\n        GET\n      </td>\n      <td>\n        /posts/123\n      </td>\n    </tr>\n    <tr>\n      <th>\n        `store.findAll('post')`\n      </th>\n      <td>\n        GET\n      </td>\n      <td>\n        /posts\n      </td>\n    </tr>\n    <tr>\n      <th>\n        Update `postRecord.save()`\n      </th>\n      <td>\n        PATCH\n      </td>\n      <td>\n        /posts/123\n      </td>\n    </tr>\n    <tr>\n      <th>\n        Create `store.createRecord('post').save()`\n      </th>\n      <td>\n        POST\n      </td>\n      <td>\n        /posts\n      </td>\n    </tr>\n    <tr>\n      <th>\n        Delete `postRecord.destroyRecord()`\n      </th>\n      <td>\n        DELETE\n      </td>\n      <td>\n        /posts/123\n      </td>\n    </tr>\n  </table>\n  \n    ## Success and failure\n  \n    The JSONAPIAdapter will consider a success any response with a\n    status code of the 2xx family (\"Success\"), as well as 304 (\"Not\n    Modified\"). Any other status code will be considered a failure.\n  \n    On success, the request promise will be resolved with the full\n    response payload.\n  \n    Failed responses with status code 422 (\"Unprocessable Entity\") will\n    be considered \"invalid\". The response will be discarded, except for\n    the `errors` key. The request promise will be rejected with a\n    `InvalidError`. This error object will encapsulate the saved\n    `errors` value.\n  \n    Any other status codes will be treated as an adapter error. The\n    request promise will be rejected, similarly to the invalid case,\n    but with an instance of `AdapterError` instead.\n  \n    ### Endpoint path customization\n  \n    Endpoint paths can be prefixed with a `namespace` by setting the\n    namespace property on the adapter:\n  \n    ```app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter {\n      namespace = 'api/1';\n    }\n    ```\n    Requests for the `person` model would now target `/api/1/people/1`.\n  \n    ### Host customization\n  \n    An adapter can target other hosts by setting the `host` property.\n  \n    ```app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter {\n      host = 'https://api.example.com';\n    }\n    ```\n  \n    Requests for the `person` model would now target\n    `https://api.example.com/people/1`.\n  \n    @since 1.13.0\n    @class JSONAPIAdapter\n    @main @ember-data/adapter/json-api\n    @public\n    @constructor\n    @extends RESTAdapter\n  */\n  class JSONAPIAdapter extends _rest.default {\n    constructor() {\n      super(...arguments);\n      this._defaultContentType = 'application/vnd.api+json';\n    }\n    /**\n      @method ajaxOptions\n      @private\n      @param {String} url\n      @param {String} type The request type GET, POST, PUT, DELETE etc.\n      @param {Object} options\n      @return {Object}\n    */\n    ajaxOptions(url, type) {\n      let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      let hash = super.ajaxOptions(url, type, options);\n      hash.headers['Accept'] = hash.headers['Accept'] || 'application/vnd.api+json';\n      return hash;\n    }\n\n    /**\n      By default the JSONAPIAdapter will send each find request coming from a `store.find`\n      or from accessing a relationship separately to the server. If your server supports passing\n      ids as a query string, you can set coalesceFindRequests to true to coalesce all find requests\n      within a single runloop.\n       For example, if you have an initial payload of:\n       ```javascript\n      {\n        data: {\n          id: 1,\n          type: 'post',\n          relationship: {\n            comments: {\n              data: [\n                { id: 1, type: 'comment' },\n                { id: 2, type: 'comment' }\n              ]\n            }\n          }\n        }\n      }\n      ```\n       By default calling `post.comments` will trigger the following requests(assuming the\n      comments haven't been loaded before):\n       ```\n      GET /comments/1\n      GET /comments/2\n      ```\n       If you set coalesceFindRequests to `true` it will instead trigger the following request:\n       ```\n      GET /comments?filter[id]=1,2\n      ```\n       Setting coalesceFindRequests to `true` also works for `store.find` requests and `belongsTo`\n      relationships accessed within the same runloop. If you set `coalesceFindRequests: true`\n       ```javascript\n      store.findRecord('comment', 1);\n      store.findRecord('comment', 2);\n      ```\n       will also send a request to: `GET /comments?filter[id]=1,2`\n       Note: Requests coalescing rely on URL building strategy. So if you override `buildURL` in your app\n      `groupRecordsForFindMany` more likely should be overridden as well in order for coalescing to work.\n       @property coalesceFindRequests\n      @public\n      @type {boolean}\n    */\n    get coalesceFindRequests() {\n      let coalesceFindRequests = this._coalesceFindRequests;\n      if (typeof coalesceFindRequests === 'boolean') {\n        return coalesceFindRequests;\n      }\n      return this._coalesceFindRequests = false;\n    }\n    set coalesceFindRequests(value) {\n      this._coalesceFindRequests = value;\n    }\n    findMany(store, type, ids, snapshots) {\n      let url = this.buildURL(type.modelName, ids, snapshots, 'findMany');\n      return this.ajax(url, 'GET', {\n        data: {\n          filter: {\n            id: ids.join(',')\n          }\n        }\n      });\n    }\n    pathForType(modelName) {\n      let dasherized = (0, _string.dasherize)(modelName);\n      return (0, _emberInflector.pluralize)(dasherized);\n    }\n    updateRecord(store, schema, snapshot) {\n      const data = (0, _serializeIntoHashB9092b.b)(store, schema, snapshot);\n      const type = snapshot.modelName;\n      const id = snapshot.id;\n      (true && !(typeof id === 'string' && id.length > 0) && (0, _debug.assert)(`Attempted to update the ${type} record, but the record has no id`, typeof id === 'string' && id.length > 0));\n      let url = this.buildURL(type, id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PATCH', {\n        data: data\n      });\n    }\n  }\n  _exports.default = JSONAPIAdapter;\n});","define(\"@ember-data/adapter/rest\", [\"exports\", \"@ember-data/adapter/index-f54121ea\", \"@ember/application\", \"@ember/debug\", \"@ember/object\", \"@ember/runloop\", \"@ember-data/adapter/serialize-into-hash-b9092b25\", \"@ember-data/adapter/build-url-mixin-18db8c8b\", \"@ember-data/adapter/error\"], function (_exports, _indexF54121ea, _application, _debug, _object, _runloop, _serializeIntoHashB9092b, _buildUrlMixin18db8c8b, _error) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.fetchOptions = fetchOptions;\n  var _dec, _class;\n  /**\n   * <blockquote style=\"margin: 1em; padding: .1em 1em .1em 1em; border-left: solid 1em #E34C32; background: #e0e0e0;\">\n    <p>\n      ⚠️ <strong>This is LEGACY documentation</strong> for a feature that is no longer encouraged to be used.\n      If starting a new app or thinking of implementing a new adapter, consider writing a\n      <a href=\"/ember-data/release/classes/%3CInterface%3E%20Handler\">Handler</a> instead to be used with the <a href=\"https://github.com/emberjs/data/tree/main/packages/request#readme\">RequestManager</a>\n    </p>\n    </blockquote>\n  \n    The REST adapter allows your store to communicate with an HTTP server by\n    transmitting JSON via XHR.\n  \n    This adapter is designed around the idea that the JSON exchanged with\n    the server should be conventional. It builds URLs in a manner that follows\n    the structure of most common REST-style web services.\n  \n    ## Success and failure\n  \n    The REST adapter will consider a success any response with a status code\n    of the 2xx family (\"Success\"), as well as 304 (\"Not Modified\"). Any other\n    status code will be considered a failure.\n  \n    On success, the request promise will be resolved with the full response\n    payload.\n  \n    Failed responses with status code 422 (\"Unprocessable Entity\") will be\n    considered \"invalid\". The response will be discarded, except for the\n    `errors` key. The request promise will be rejected with a `InvalidError`.\n    This error object will encapsulate the saved `errors` value.\n  \n    Any other status codes will be treated as an \"adapter error\". The request\n    promise will be rejected, similarly to the \"invalid\" case, but with\n    an instance of `AdapterError` instead.\n  \n    ## JSON Structure\n  \n    The REST adapter expects the JSON returned from your server to follow\n    these conventions.\n  \n    ### Object Root\n  \n    The JSON payload should be an object that contains the record inside a\n    root property. For example, in response to a `GET` request for\n    `/posts/1`, the JSON should look like this:\n  \n    ```js\n    {\n      \"posts\": {\n        \"id\": 1,\n        \"title\": \"I'm Running to Reform the W3C's Tag\",\n        \"author\": \"Yehuda Katz\"\n      }\n    }\n    ```\n  \n    Similarly, in response to a `GET` request for `/posts`, the JSON should\n    look like this:\n  \n    ```js\n    {\n      \"posts\": [\n        {\n          \"id\": 1,\n          \"title\": \"I'm Running to Reform the W3C's Tag\",\n          \"author\": \"Yehuda Katz\"\n        },\n        {\n          \"id\": 2,\n          \"title\": \"Rails is omakase\",\n          \"author\": \"D2H\"\n        }\n      ]\n    }\n    ```\n  \n    Note that the object root can be pluralized for both a single-object response\n    and an array response: the REST adapter is not strict on this. Further, if the\n    HTTP server responds to a `GET` request to `/posts/1` (e.g. the response to a\n    `findRecord` query) with more than one object in the array, Ember Data will\n    only display the object with the matching ID.\n  \n    ### Conventional Names\n  \n    Attribute names in your JSON payload should be the camelCased versions of\n    the attributes in your Ember.js models.\n  \n    For example, if you have a `Person` model:\n  \n    ```app/models/person.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default Model.extend({\n      firstName: attr('string'),\n      lastName: attr('string'),\n      occupation: attr('string')\n    });\n    ```\n  \n    The JSON returned should look like this:\n  \n    ```js\n    {\n      \"people\": {\n        \"id\": 5,\n        \"firstName\": \"Zaphod\",\n        \"lastName\": \"Beeblebrox\",\n        \"occupation\": \"President\"\n      }\n    }\n    ```\n  \n    #### Relationships\n  \n    Relationships are usually represented by ids to the record in the\n    relationship. The related records can then be sideloaded in the\n    response under a key for the type.\n  \n    ```js\n    {\n      \"posts\": {\n        \"id\": 5,\n        \"title\": \"I'm Running to Reform the W3C's Tag\",\n        \"author\": \"Yehuda Katz\",\n        \"comments\": [1, 2]\n      },\n      \"comments\": [{\n        \"id\": 1,\n        \"author\": \"User 1\",\n        \"message\": \"First!\",\n      }, {\n        \"id\": 2,\n        \"author\": \"User 2\",\n        \"message\": \"Good Luck!\",\n      }]\n    }\n    ```\n  \n    If the records in the relationship are not known when the response\n    is serialized it's also possible to represent the relationship as a\n    URL using the `links` key in the response. Ember Data will fetch\n    this URL to resolve the relationship when it is accessed for the\n    first time.\n  \n    ```js\n    {\n      \"posts\": {\n        \"id\": 5,\n        \"title\": \"I'm Running to Reform the W3C's Tag\",\n        \"author\": \"Yehuda Katz\",\n        \"links\": {\n          \"comments\": \"/posts/5/comments\"\n        }\n      }\n    }\n    ```\n  \n    ### Errors\n  \n    If a response is considered a failure, the JSON payload is expected to include\n    a top-level key `errors`, detailing any specific issues. For example:\n  \n    ```js\n    {\n      \"errors\": {\n        \"msg\": \"Something went wrong\"\n      }\n    }\n    ```\n  \n    This adapter does not make any assumptions as to the format of the `errors`\n    object. It will simply be passed along as is, wrapped in an instance\n    of `InvalidError` or `AdapterError`. The serializer can interpret it\n    afterwards.\n  \n    ## Customization\n  \n    ### Endpoint path customization\n  \n    Endpoint paths can be prefixed with a `namespace` by setting the namespace\n    property on the adapter:\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      namespace = 'api/1';\n    }\n    ```\n    Requests for the `Person` model would now target `/api/1/people/1`.\n  \n    ### Host customization\n  \n    An adapter can target other hosts by setting the `host` property.\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      host = 'https://api.example.com';\n    }\n    ```\n  \n    ### Headers customization\n  \n    Some APIs require HTTP headers, e.g. to provide an API key. Arbitrary\n    headers can be set as key/value pairs on the `RESTAdapter`'s `headers`\n    object and Ember Data will send them along with each ajax request.\n  \n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      headers: computed(function() {\n        return {\n          'API_KEY': 'secret key',\n          'ANOTHER_HEADER': 'Some header value'\n        };\n      }\n    }\n    ```\n  \n    `headers` can also be used as a computed property to support dynamic\n    headers. In the example below, the `session` object has been\n    injected into an adapter by Ember's container.\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      headers: computed('session.authToken', function() {\n        return {\n          'API_KEY': this.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 { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      headers: computed(function() {\n        return {\n          'API_KEY': document.cookie.match(/apiKey\\=([^;]*)/)['1'],\n          'ANOTHER_HEADER': 'Some header value'\n        };\n      }).volatile()\n    }\n    ```\n  \n    @class RESTAdapter\n    @main @ember-data/adapter/rest\n    @public\n    @constructor\n    @extends Adapter\n    @uses BuildURLMixin\n  */\n  let RESTAdapter = _exports.default = (_dec = (0, _object.computed)(), _class = class RESTAdapter extends _indexF54121ea.A.extend(_buildUrlMixin18db8c8b.B) {\n    constructor() {\n      super(...arguments);\n      /**\n        This property allows ajax to still be used instead when `false`.\n         @property useFetch\n        @type {Boolean}\n        @default true\n        @public\n      */\n      this.useFetch = true;\n      this._defaultContentType = 'application/json; charset=utf-8';\n      // http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers\n      this.maxURLLength = 2048;\n    }\n    get fastboot() {\n      // Avoid computed property override deprecation in fastboot as suggested by:\n      // https://deprecations.emberjs.com/v3.x/#toc_computed-property-override\n      let fastboot = this._fastboot;\n      if (fastboot) {\n        return fastboot;\n      }\n      return this._fastboot = (0, _application.getOwner)(this).lookup('service:fastboot');\n    }\n    set fastboot(value) {\n      this._fastboot = value;\n    }\n\n    /**\n      By default, the RESTAdapter will send the query params sorted alphabetically to the\n      server.\n       For example:\n       ```js\n      store.query('posts', { sort: 'price', category: 'pets' });\n      ```\n       will generate a requests like this `/posts?category=pets&sort=price`, even if the\n      parameters were specified in a different order.\n       That way the generated URL will be deterministic and that simplifies caching mechanisms\n      in the backend.\n       Setting `sortQueryParams` to a falsey value will respect the original order.\n       In case you want to sort the query parameters with a different criteria, set\n      `sortQueryParams` to your custom sort function.\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n       export default class ApplicationAdapter extends RESTAdapter {\n        sortQueryParams(params) {\n          let sortedKeys = Object.keys(params).sort().reverse();\n          let len = sortedKeys.length, newParams = {};\n           for (let i = 0; i < len; i++) {\n            newParams[sortedKeys[i]] = params[sortedKeys[i]];\n          }\n           return newParams;\n        }\n      }\n      ```\n       @method sortQueryParams\n      @param {Object} obj\n      @return {Object}\n      @public\n    */\n    sortQueryParams(obj) {\n      let keys = Object.keys(obj);\n      let len = keys.length;\n      if (len < 2) {\n        return obj;\n      }\n      let newQueryParams = {};\n      let sortedKeys = keys.sort();\n      for (let i = 0; i < len; i++) {\n        newQueryParams[sortedKeys[i]] = obj[sortedKeys[i]];\n      }\n      return newQueryParams;\n    }\n\n    /**\n      By default the RESTAdapter will send each find request coming from a `store.find`\n      or from accessing a relationship separately to the server. If your server supports passing\n      ids as a query string, you can set coalesceFindRequests to true to coalesce all find requests\n      within a single runloop.\n       For example, if you have an initial payload of:\n       ```javascript\n      {\n        post: {\n          id: 1,\n          comments: [1, 2]\n        }\n      }\n      ```\n       By default calling `post.comments` will trigger the following requests(assuming the\n      comments haven't been loaded before):\n       ```\n      GET /comments/1\n      GET /comments/2\n      ```\n       If you set coalesceFindRequests to `true` it will instead trigger the following request:\n       ```\n      GET /comments?ids[]=1&ids[]=2\n      ```\n       Setting coalesceFindRequests to `true` also works for `store.find` requests and `belongsTo`\n      relationships accessed within the same runloop. If you set `coalesceFindRequests: true`\n       ```javascript\n      store.findRecord('comment', 1);\n      store.findRecord('comment', 2);\n      ```\n       will also send a request to: `GET /comments?ids[]=1&ids[]=2`\n       Note: Requests coalescing rely on URL building strategy. So if you override `buildURL` in your app\n      `groupRecordsForFindMany` more likely should be overridden as well in order for coalescing to work.\n       @property coalesceFindRequests\n      @public\n      @type {boolean}\n    */\n    get coalesceFindRequests() {\n      let coalesceFindRequests = this._coalesceFindRequests;\n      if (typeof coalesceFindRequests === 'boolean') {\n        return coalesceFindRequests;\n      }\n      return this._coalesceFindRequests = false;\n    }\n    set coalesceFindRequests(value) {\n      this._coalesceFindRequests = value;\n    }\n\n    /**\n      Endpoint paths can be prefixed with a `namespace` by setting the namespace\n      property on the adapter:\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n       export default class ApplicationAdapter extends RESTAdapter {\n        namespace = 'api/1';\n      }\n      ```\n       Requests for the `Post` model would now target `/api/1/post/`.\n       @property namespace\n      @public\n      @type {String}\n    */\n\n    /**\n      An adapter can target other hosts by setting the `host` property.\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n       export default class ApplicationAdapter extends RESTAdapter {\n        host = 'https://api.example.com';\n      }\n      ```\n       Requests for the `Post` model would now target `https://api.example.com/post/`.\n       @property host\n      @public\n      @type {String}\n    */\n\n    /**\n      Some APIs require HTTP headers, e.g. to provide an API\n      key. Arbitrary headers can be set as key/value pairs on the\n      `RESTAdapter`'s `headers` object and Ember Data will send them\n      along with each ajax request. For dynamic headers see [headers\n      customization](/ember-data/release/classes/RESTAdapter).\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n      import { computed } from '@ember/object';\n       export default class ApplicationAdapter extends RESTAdapter {\n        headers: computed(function() {\n          return {\n            'API_KEY': 'secret key',\n            'ANOTHER_HEADER': 'Some header value'\n          };\n        })\n      }\n      ```\n       @property headers\n      @public\n      @type {Object}\n     */\n    /**\n      Called by the store in order to fetch the JSON for a given\n      type and ID.\n       The `findRecord` method makes an Ajax request to a URL computed by\n      `buildURL`, and returns a promise for the resulting payload.\n       This method performs an HTTP `GET` request with the id provided as part of the query string.\n       @since 1.13.0\n      @method findRecord\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {String} id\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    findRecord(store, type, id, snapshot) {\n      let url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n      let query = this.buildQuery(snapshot);\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON array for all\n      of the records for a given type.\n       The `findAll` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a\n      promise for the resulting payload.\n       @method findAll\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {undefined} neverSet a value is never provided to this argument\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Promise} promise\n    */\n    findAll(store, type, sinceToken, snapshotRecordArray) {\n      let query = this.buildQuery(snapshotRecordArray);\n      let url = this.buildURL(type.modelName, null, snapshotRecordArray, 'findAll');\n      if (sinceToken) {\n        query.since = sinceToken;\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON array for\n      the records that match a particular query.\n       The `query` method makes an Ajax (HTTP GET) request to a URL\n      computed by `buildURL`, and returns a promise for the resulting\n      payload.\n       The `query` argument is a simple JavaScript object that will be passed directly\n      to the server as parameters.\n       @method query\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @param {Collection} recordArray\n      @param {Object} adapterOptions\n      @return {Promise} promise\n    */\n    query(store, type, query) {\n      let url = this.buildURL(type.modelName, null, null, 'query', query);\n      if (this.sortQueryParams) {\n        query = this.sortQueryParams(query);\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON object for\n      the record that matches a particular query.\n       The `queryRecord` method makes an Ajax (HTTP GET) request to a URL\n      computed by `buildURL`, and returns a promise for the resulting\n      payload.\n       The `query` argument is a simple JavaScript object that will be passed directly\n      to the server as parameters.\n       @since 1.13.0\n      @method queryRecord\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @param {Object} adapterOptions\n      @return {Promise} promise\n    */\n    queryRecord(store, type, query, adapterOptions) {\n      let url = this.buildURL(type.modelName, null, null, 'queryRecord', query);\n      if (this.sortQueryParams) {\n        query = this.sortQueryParams(query);\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch several records together if `coalesceFindRequests` is true\n       For example, if the original payload looks like:\n       ```js\n      {\n        \"id\": 1,\n        \"title\": \"Rails is omakase\",\n        \"comments\": [ 1, 2, 3 ]\n      }\n      ```\n       The IDs will be passed as a URL-encoded Array of IDs, in this form:\n       ```\n      ids[]=1&ids[]=2&ids[]=3\n      ```\n       Many servers, such as Rails and PHP, will automatically convert this URL-encoded array\n      into an Array for you on the server-side. If you want to encode the\n      IDs, differently, just override this (one-line) method.\n       The `findMany` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a\n      promise for the resulting payload.\n       @method findMany\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Array} ids\n      @param {Array} snapshots\n      @return {Promise} promise\n    */\n    findMany(store, type, ids, snapshots) {\n      let url = this.buildURL(type.modelName, ids, snapshots, 'findMany');\n      return this.ajax(url, 'GET', {\n        data: {\n          ids: ids\n        }\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON array for\n      the unloaded records in a has-many relationship that were originally\n      specified as a URL (inside of `links`).\n       For example, if your original payload looks like this:\n       ```js\n      {\n        \"post\": {\n          \"id\": 1,\n          \"title\": \"Rails is omakase\",\n          \"links\": { \"comments\": \"/posts/1/comments\" }\n        }\n      }\n      ```\n       This method will be called with the parent record and `/posts/1/comments`.\n       The `findHasMany` method will make an Ajax (HTTP GET) request to the originally specified URL.\n       The format of your `links` value will influence the final request URL via the `urlPrefix` method:\n       * Links beginning with `//`, `http://`, `https://`, will be used as is, with no further manipulation.\n       * Links beginning with a single `/` will have the current adapter's `host` value prepended to it.\n       * Links with no beginning `/` will have a parentURL prepended to it, via the current adapter's `buildURL`.\n       @method findHasMany\n      @public\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @param {String} url\n      @param {Object} relationship meta object describing the relationship\n      @return {Promise} promise\n    */\n    findHasMany(store, snapshot, url, relationship) {\n      let id = snapshot.id;\n      let type = snapshot.modelName;\n      (true && !(typeof id === 'string' && id.length > 0) && (0, _debug.assert)(`Attempted to fetch the hasMany relationship for ${type}, but the record has no id`, typeof id === 'string' && id.length > 0));\n      url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasMany'));\n      return this.ajax(url, 'GET');\n    }\n\n    /**\n      Called by the store in order to fetch the JSON for the unloaded record in a\n      belongs-to relationship that was originally specified as a URL (inside of\n      `links`).\n       For example, if your original payload looks like this:\n       ```js\n      {\n        \"person\": {\n          \"id\": 1,\n          \"name\": \"Tom Dale\",\n          \"links\": { \"group\": \"/people/1/group\" }\n        }\n      }\n      ```\n       This method will be called with the parent record and `/people/1/group`.\n       The `findBelongsTo` method will make an Ajax (HTTP GET) request to the originally specified URL.\n       The format of your `links` value will influence the final request URL via the `urlPrefix` method:\n       * Links beginning with `//`, `http://`, `https://`, will be used as is, with no further manipulation.\n       * Links beginning with a single `/` will have the current adapter's `host` value prepended to it.\n       * Links with no beginning `/` will have a parentURL prepended to it, via the current adapter's `buildURL`.\n       @method findBelongsTo\n      @public\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @param {String} url\n      @param {Object} relationship meta object describing the relationship\n      @return {Promise} promise\n    */\n    findBelongsTo(store, snapshot, url, relationship) {\n      let id = snapshot.id;\n      let type = snapshot.modelName;\n      (true && !(typeof id === 'string' && id.length > 0) && (0, _debug.assert)(`Attempted to fetch the belongsTo relationship for ${type}, but the record has no id`, typeof id === 'string' && id.length > 0));\n      url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findBelongsTo'));\n      return this.ajax(url, 'GET');\n    }\n\n    /**\n      Called by the store when a newly created record is\n      saved via the `save` method on a model record instance.\n       The `createRecord` method serializes the record and makes an Ajax (HTTP POST) request\n      to a URL computed by `buildURL`.\n       See `serialize` for information on how to customize the serialized form\n      of a record.\n       @method createRecord\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    createRecord(store, type, snapshot) {\n      let url = this.buildURL(type.modelName, null, snapshot, 'createRecord');\n      const data = (0, _serializeIntoHashB9092b.b)(store, type, snapshot);\n      return this.ajax(url, 'POST', {\n        data\n      });\n    }\n\n    /**\n      Called by the store when an existing record is saved\n      via the `save` method on a model record instance.\n       The `updateRecord` method serializes the record and makes an Ajax (HTTP PUT) request\n      to a URL computed by `buildURL`.\n       See `serialize` for information on how to customize the serialized form\n      of a record.\n       @method updateRecord\n      @public\n      @param {Store} store\n      @param {Model} schema\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    updateRecord(store, schema, snapshot) {\n      const data = (0, _serializeIntoHashB9092b.b)(store, schema, snapshot, {});\n      const type = snapshot.modelName;\n      const id = snapshot.id;\n      (true && !(typeof id === 'string' && id.length > 0) && (0, _debug.assert)(`Attempted to update the ${type} record, but the record has no id`, typeof id === 'string' && id.length > 0));\n      let url = this.buildURL(type, id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PUT', {\n        data\n      });\n    }\n\n    /**\n      Called by the store when a record is deleted.\n       The `deleteRecord` method  makes an Ajax (HTTP DELETE) request to a URL computed by `buildURL`.\n       @method deleteRecord\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    deleteRecord(store, schema, snapshot) {\n      const type = snapshot.modelName;\n      const id = snapshot.id;\n      (true && !(typeof id === 'string' && id.length > 0) && (0, _debug.assert)(`Attempted to delete the ${type} record, but the record has no id`, typeof id === 'string' && id.length > 0));\n      return this.ajax(this.buildURL(type, id, snapshot, 'deleteRecord'), 'DELETE');\n    }\n    _stripIDFromURL(store, snapshot) {\n      const type = snapshot.modelName;\n      const id = snapshot.id;\n      (true && !(typeof id === 'string' && id.length > 0) && (0, _debug.assert)(`Attempted to strip the url from the ${type} record for coalescing, but the record has no id`, typeof id === 'string' && id.length > 0));\n      let url = this.buildURL(type, id, snapshot);\n      let expandedURL = url.split('/');\n      // Case when the url is of the format ...something/:id\n      // We are decodeURIComponent-ing the lastSegment because if it represents\n      // the id, it has been encodeURIComponent-ified within `buildURL`. If we\n      // don't do this, then records with id having special characters are not\n      // coalesced correctly (see GH #4190 for the reported bug)\n      let lastSegment = expandedURL[expandedURL.length - 1];\n      if (decodeURIComponent(lastSegment) === id) {\n        expandedURL[expandedURL.length - 1] = '';\n      } else if (id && endsWith(lastSegment, '?id=' + id)) {\n        //Case when the url is of the format ...something?id=:id\n        expandedURL[expandedURL.length - 1] = lastSegment.substring(0, lastSegment.length - id.length - 1);\n      }\n      return expandedURL.join('/');\n    }\n    /**\n      Organize records into groups, each of which is to be passed to separate\n      calls to `findMany`.\n       This implementation groups together records that have the same base URL but\n      differing ids. For example `/comments/1` and `/comments/2` will be grouped together\n      because we know findMany can coalesce them together as `/comments?ids[]=1&ids[]=2`\n       It also supports urls where ids are passed as a query param, such as `/comments?id=1`\n      but not those where there is more than 1 query param such as `/comments?id=2&name=David`\n      Currently only the query param of `id` is supported. If you need to support others, please\n      override this or the `_stripIDFromURL` method.\n       It does not group records that have differing base urls, such as for example: `/posts/1/comments/2`\n      and `/posts/2/comments/3`\n       @method groupRecordsForFindMany\n      @public\n      @param {Store} store\n      @param {Array} snapshots\n      @return {Array}  an array of arrays of records, each of which is to be\n                        loaded separately by `findMany`.\n    */\n    groupRecordsForFindMany(store, snapshots) {\n      let groups = new Map();\n      let adapter = this;\n      let maxURLLength = this.maxURLLength;\n      snapshots.forEach(snapshot => {\n        let baseUrl = adapter._stripIDFromURL(store, snapshot);\n        if (!groups.has(baseUrl)) {\n          groups.set(baseUrl, []);\n        }\n        groups.get(baseUrl).push(snapshot);\n      });\n      function splitGroupToFitInUrl(group, maxURLLength, paramNameLength) {\n        let idsSize = 0;\n        let baseUrl = adapter._stripIDFromURL(store, group[0]);\n        let splitGroups = [[]];\n        group.forEach(snapshot => {\n          let additionalLength = encodeURIComponent(snapshot.id).length + paramNameLength;\n          if (baseUrl.length + idsSize + additionalLength >= maxURLLength) {\n            idsSize = 0;\n            splitGroups.push([]);\n          }\n          idsSize += additionalLength;\n          let lastGroupIndex = splitGroups.length - 1;\n          splitGroups[lastGroupIndex].push(snapshot);\n        });\n        return splitGroups;\n      }\n      let groupsArray = [];\n      groups.forEach((group, key) => {\n        let paramNameLength = '&ids%5B%5D='.length;\n        let splitGroups = splitGroupToFitInUrl(group, maxURLLength, paramNameLength);\n        splitGroups.forEach(splitGroup => groupsArray.push(splitGroup));\n      });\n      return groupsArray;\n    }\n\n    /**\n      Takes an ajax response, and returns the json payload or an error.\n       By default this hook just returns the json payload passed to it.\n      You might want to override it in two cases:\n       1. Your API might return useful results in the response headers.\n      Response headers are passed in as the second argument.\n       2. Your API might return errors as successful responses with status code\n      200 and an Errors text or object. You can return a `InvalidError` or a\n      `AdapterError` (or a sub class) from this hook and it will automatically\n      reject the promise and put your record into the invalid or error state.\n       Returning a `InvalidError` from this method will cause the\n      record to transition into the `invalid` state and make the\n      `errors` object available on the record. When returning an\n      `InvalidError` the store will attempt to normalize the error data\n      returned from the server using the serializer's `extractErrors`\n      method.\n       @since 1.13.0\n      @method handleResponse\n      @public\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @param  {Object} requestData - the original request information\n      @return {Object | AdapterError} response\n    */\n    handleResponse(status, headers, payload, requestData) {\n      if (this.isSuccess(status, headers, payload)) {\n        return payload;\n      } else if (this.isInvalid(status, headers, payload)) {\n        return new _error.InvalidError(typeof payload === 'object' && 'errors' in payload ? payload.errors : undefined);\n      }\n      let errors = this.normalizeErrorResponse(status, headers, payload);\n      let detailedMessage = this.generatedDetailedMessage(status, headers, payload, requestData);\n      switch (status) {\n        case 401:\n          return new _error.UnauthorizedError(errors, detailedMessage);\n        case 403:\n          return new _error.ForbiddenError(errors, detailedMessage);\n        case 404:\n          return new _error.NotFoundError(errors, detailedMessage);\n        case 409:\n          return new _error.ConflictError(errors, detailedMessage);\n        default:\n          if (status >= 500) {\n            return new _error.ServerError(errors, detailedMessage);\n          }\n      }\n      return new _error.default(errors, detailedMessage);\n    }\n\n    /**\n      Default `handleResponse` implementation uses this hook to decide if the\n      response is a success.\n       @since 1.13.0\n      @method isSuccess\n      @public\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Boolean}\n    */\n    isSuccess(status, _headers, _payload) {\n      return status >= 200 && status < 300 || status === 304;\n    }\n\n    /**\n      Default `handleResponse` implementation uses this hook to decide if the\n      response is an invalid error.\n       @since 1.13.0\n      @method isInvalid\n      @public\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Boolean}\n    */\n    isInvalid(status, _headers, _payload) {\n      return status === 422;\n    }\n\n    /**\n      Takes a URL, an HTTP method and a hash of data, and makes an\n      HTTP request.\n       When the server responds with a payload, Ember Data will call into `extractSingle`\n      or `extractArray` (depending on whether the original query was for one record or\n      many records).\n       By default, `ajax` method has the following behavior:\n       * It sets the response `dataType` to `\"json\"`\n      * If the HTTP method is not `\"GET\"`, it sets the `Content-Type` to be\n        `application/json; charset=utf-8`\n      * If the HTTP method is not `\"GET\"`, it stringifies the data passed in. The\n        data is the serialized record in the case of a save.\n      * Registers success and failure handlers.\n       @method ajax\n      @private\n      @param {String} url\n      @param {String} type The request type GET, POST, PUT, DELETE etc.\n      @param {Object} options\n      @return {Promise} promise\n    */\n    async ajax(url, type) {\n      let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      let adapter = this;\n      let requestData = {\n        url: url,\n        method: type\n      };\n      if (this.useFetch) {\n        let hash = adapter.ajaxOptions(url, type, options);\n        let response = await this._fetchRequest(hash);\n        let payload = await (0, _serializeIntoHashB9092b.d)(response, requestData);\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      } else {\n        let hash = adapter.ajaxOptions(url, type, options);\n        return new Promise(function (resolve, reject) {\n          hash.success = function (payload, textStatus, jqXHR) {\n            let response = ajaxSuccessHandler(adapter, payload, jqXHR, requestData);\n            (0, _runloop.join)(null, resolve, response);\n          };\n          hash.error = function (jqXHR, textStatus, errorThrown) {\n            let error = ajaxErrorHandler(adapter, jqXHR, errorThrown, requestData);\n            (0, _runloop.join)(null, reject, error);\n          };\n          adapter._ajax(hash);\n        });\n      }\n    }\n\n    /**\n      @method _ajaxRequest\n      @private\n      @param {Object} options jQuery ajax options to be used for the ajax request\n    */\n    _ajaxRequest(options) {\n      // TODO add assertion that jquery is there rather then equality check\n      typeof jQuery !== 'undefined' && jQuery.ajax(options);\n    }\n    _fetchRequest(options) {\n      let fetchFunction = (0, _serializeIntoHashB9092b.g)();\n      return fetchFunction(options.url, options);\n    }\n    _ajax(options) {\n      if (this.useFetch) {\n        this._fetchRequest(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      let reqOptions = Object.assign({\n        url,\n        method,\n        type: method\n      }, options);\n      if (this.headers !== undefined) {\n        reqOptions.headers = {\n          ...this.headers,\n          ...reqOptions.headers\n        };\n      } else if (!options.headers) {\n        reqOptions.headers = {};\n      }\n      let contentType = reqOptions.contentType || this._defaultContentType;\n      if (this.useFetch) {\n        if (reqOptions.data && reqOptions.type !== 'GET' && reqOptions.headers) {\n          if (!reqOptions.headers['Content-Type'] && !reqOptions.headers['content-type']) {\n            reqOptions.headers['content-type'] = contentType;\n          }\n        }\n        reqOptions = fetchOptions(reqOptions);\n      } else {\n        // GET requests without a body should not have a content-type header\n        // and may be unexpected by a server\n        if (reqOptions.data && reqOptions.type !== 'GET') {\n          reqOptions = {\n            ...reqOptions,\n            contentType\n          };\n        }\n        reqOptions = ajaxOptions(reqOptions, this);\n      }\n      reqOptions.url = this._ajaxURL(reqOptions.url);\n      return reqOptions;\n    }\n    _ajaxURL(url) {\n      var _this$fastboot;\n      if ((_this$fastboot = this.fastboot) !== null && _this$fastboot !== void 0 && _this$fastboot.isFastBoot) {\n        let httpRegex = /^https?:\\/\\//;\n        let protocolRelativeRegex = /^\\/\\//;\n        let protocol = this.fastboot.request.protocol;\n        let host = this.fastboot.request.host;\n        if (protocolRelativeRegex.test(url)) {\n          return `${protocol}${url}`;\n        } else if (!httpRegex.test(url)) {\n          try {\n            return `${protocol}//${host}${url}`;\n          } catch (fbError) {\n            throw new Error('You are using Ember Data with no host defined in your adapter. This will attempt to use the host of the FastBoot request, which is not configured for the current host of this request. Please set the hostWhitelist property for in your environment.js. FastBoot Error: ' + fbError.message);\n          }\n        }\n      }\n      return url;\n    }\n\n    /**\n      @method parseErrorResponse\n      @private\n      @param {String} responseText\n      @return {Object}\n    */\n    parseErrorResponse(responseText) {\n      let json = responseText;\n      try {\n        json = JSON.parse(responseText);\n      } catch (e) {\n        // ignored\n      }\n      return json;\n    }\n\n    /**\n      @method normalizeErrorResponse\n      @private\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Array} errors payload\n    */\n    normalizeErrorResponse(status, _headers, payload) {\n      if (payload && typeof payload === 'object' && 'errors' in payload && Array.isArray(payload.errors)) {\n        return payload.errors;\n      } else {\n        return [{\n          status: `${status}`,\n          // Set to a string per the JSON API spec: https://jsonapi.org/format/#errors\n          title: 'The backend responded with an error',\n          // Detail is intended to be a string, but backends be non-compliant.\n          // stringifying gives the user a more friendly error in this situation, whereas\n          // they'd instead receive [object Object].\n          // JSON.stringify will convert *anything* to a string without erroring.\n          detail: typeof payload === 'string' ? payload : JSON.stringify(payload)\n        }];\n      }\n    }\n\n    /**\n      Generates a detailed (\"friendly\") error message, with plenty\n      of information for debugging (good luck!)\n       @method generatedDetailedMessage\n      @private\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @param  {Object} requestData\n      @return {String} detailed error message\n    */\n    generatedDetailedMessage(status, headers, payload, requestData) {\n      let shortenedPayload;\n      let payloadContentType = headers['content-type'] || 'Empty Content-Type';\n      if (payloadContentType === 'text/html' && typeof payload === 'string' && payload.length > 250) {\n        shortenedPayload = '[Omitted Lengthy HTML]';\n      } else {\n        shortenedPayload = payload;\n      }\n      let requestDescription = requestData.method + ' ' + requestData.url;\n      let payloadDescription = 'Payload (' + payloadContentType + ')';\n      return ['Ember Data Request ' + requestDescription + ' returned a ' + status, payloadDescription, shortenedPayload].join('\\n');\n    }\n\n    /**\n      Used by `findAll` and `findRecord` to build the query's `data` hash\n      supplied to the ajax method.\n       @method buildQuery\n      @since 2.5.0\n      @public\n      @param  {Snapshot} snapshot\n      @return {Object}\n    */\n    buildQuery(snapshot) {\n      let query = {};\n      if (snapshot) {\n        let {\n          include\n        } = snapshot;\n        if (include) {\n          query.include = include;\n        }\n      }\n      return query;\n    }\n  }, (0, _indexF54121ea._)(_class.prototype, \"fastboot\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"fastboot\"), _class.prototype), _class);\n  function ajaxSuccess(adapter, payload, requestData, responseData) {\n    let response;\n    try {\n      response = adapter.handleResponse(responseData.status, responseData.headers, payload, requestData);\n    } catch (error) {\n      return Promise.reject(error);\n    }\n    if (response && response.isAdapterError) {\n      return Promise.reject(response);\n    } else {\n      return response;\n    }\n  }\n  function ajaxError(adapter, payload, requestData, responseData) {\n    let error;\n    if (responseData.errorThrown instanceof Error && payload !== '') {\n      error = responseData.errorThrown;\n    } else if (responseData.textStatus === 'timeout') {\n      error = new _error.TimeoutError();\n    } else if (responseData.textStatus === 'abort' || responseData.status === 0) {\n      error = handleAbort(requestData, responseData);\n    } else {\n      try {\n        error = adapter.handleResponse(responseData.status, responseData.headers, payload || responseData.errorThrown, requestData);\n      } catch (e) {\n        error = e;\n      }\n    }\n    return error;\n  }\n\n  // Adapter abort error to include any relevent info, e.g. request/response:\n  function handleAbort(requestData, responseData) {\n    let {\n      method,\n      url,\n      errorThrown\n    } = requestData;\n    let {\n      status\n    } = responseData;\n    let msg = `Request failed: ${method} ${url} ${errorThrown || ''}`;\n    let errors = [{\n      title: 'Adapter Error',\n      detail: msg.trim(),\n      status\n    }];\n    return new _error.AbortError(errors);\n  }\n\n  //From http://stackoverflow.com/questions/280634/endswith-in-javascript\n  function endsWith(string, suffix) {\n    if (typeof String.prototype.endsWith !== 'function') {\n      return string.indexOf(suffix, string.length - suffix.length) !== -1;\n    } else {\n      return string.endsWith(suffix);\n    }\n  }\n  function fetchSuccessHandler(adapter, payload, response, requestData) {\n    let responseData = fetchResponseData(response);\n    return ajaxSuccess(adapter, payload, requestData, responseData);\n  }\n  function fetchErrorHandler(adapter, payload, response, errorThrown, requestData) {\n    let responseData = fetchResponseData(response);\n    if (responseData.status === 200 && payload instanceof Error) {\n      responseData.errorThrown = payload;\n      payload = responseData.errorThrown.payload;\n    } else {\n      responseData.errorThrown = errorThrown;\n      if (typeof payload === 'string') {\n        payload = adapter.parseErrorResponse(payload);\n      }\n    }\n    return ajaxError(adapter, payload, requestData, responseData);\n  }\n  function ajaxSuccessHandler(adapter, payload, jqXHR, requestData) {\n    let responseData = ajaxResponseData(jqXHR);\n    return ajaxSuccess(adapter, payload, requestData, responseData);\n  }\n  function ajaxErrorHandler(adapter, jqXHR, errorThrown, requestData) {\n    let responseData = ajaxResponseData(jqXHR);\n    responseData.errorThrown = errorThrown;\n    let payload = adapter.parseErrorResponse(jqXHR.responseText);\n    {\n      let 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      let validJSONString = !(responseData.textStatus === 'parsererror' && payload === '');\n      (true && (0, _debug.warn)(message, validJSONString, {\n        id: 'ds.adapter.returned-empty-string-as-JSON'\n      }));\n    }\n    return ajaxError(adapter, payload, requestData, responseData);\n  }\n  function fetchResponseData(response) {\n    return {\n      status: response.status,\n      textStatus: response.statusText,\n      headers: headersToObject(response.headers)\n    };\n  }\n  function ajaxResponseData(jqXHR) {\n    return {\n      status: jqXHR.status,\n      textStatus: jqXHR.statusText,\n      headers: (0, _serializeIntoHashB9092b.p)(jqXHR.getAllResponseHeaders())\n    };\n  }\n  function headersToObject(headers) {\n    let headersObject = {};\n    if (headers) {\n      headers.forEach((value, key) => headersObject[key] = value);\n    }\n    return headersObject;\n  }\n\n  /**\n   * Helper function that translates the options passed to `jQuery.ajax` into a format that `fetch` expects.\n   *\n   * @method fetchOptions\n   * @for @ember-data/adapter/rest\n   * @param {Object} _options\n   * @param {Adapter} adapter\n   * @private\n   * @returns {Object}\n   */\n  function fetchOptions(options, adapter) {\n    options.credentials = options.credentials || 'same-origin';\n    if (options.data) {\n      // GET and HEAD requests can't have a `body`\n      if (options.method === 'GET' || options.method === 'HEAD') {\n        // If no options are passed, Ember Data sets `data` to an empty object, which we test for.\n        if (Object.keys(options.data).length && options.url) {\n          // Test if there are already query params in the url (mimics jQuey.ajax).\n          const queryParamDelimiter = options.url.indexOf('?') > -1 ? '&' : '?';\n          options.url += `${queryParamDelimiter}${(0, _serializeIntoHashB9092b.s)(options.data)}`;\n        }\n      } else {\n        // NOTE: a request's body cannot be an object, so we stringify it if it is.\n        // JSON.stringify removes keys with values of `undefined` (mimics jQuery.ajax).\n        // If the data is not a POJO (it's a String, FormData, etc), we just set it.\n        // If the data is a string, we assume it's a stringified object.\n\n        /* We check for Objects this way because we want the logic inside the consequent to run\n         * if `options.data` is a POJO, not if it is a data structure whose `typeof` returns \"object\"\n         * when it's not (Array, FormData, etc). The reason we don't use `options.data.constructor`\n         * to check is in case `data` is an object with no prototype (e.g. created with null).\n         */\n        if (Object.prototype.toString.call(options.data) === '[object Object]') {\n          options.body = JSON.stringify(options.data);\n        } else {\n          options.body = options.data;\n        }\n      }\n    }\n    return options;\n  }\n  function ajaxOptions(options, adapter) {\n    options.dataType = 'json';\n    options.context = adapter;\n    if (options.data && options.type !== 'GET') {\n      options.data = JSON.stringify(options.data);\n    }\n    options.beforeSend = function (xhr) {\n      if (options.headers) {\n        Object.keys(options.headers).forEach(key => {\n          let headerValue = options.headers && options.headers[key];\n          const isString = value => typeof value === 'string';\n          if (isString(headerValue)) {\n            xhr.setRequestHeader(key, headerValue);\n          }\n        });\n      }\n    };\n    return options;\n  }\n});","define(\"@ember-data/adapter/serialize-into-hash-b9092b25\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.a = setupFastboot;\n  _exports.b = serializeIntoHash;\n  _exports.d = determineBodyPromise;\n  _exports.g = getFetchFunction;\n  _exports.p = parseResponseHeaders;\n  _exports.s = serializeQueryParams;\n  const newline = /\\r?\\n/;\n  function parseResponseHeaders(headersString) {\n    const headers = Object.create(null);\n    if (!headersString) {\n      return headers;\n    }\n    const headerPairs = headersString.split(newline);\n    for (let i = 0; i < headerPairs.length; i++) {\n      let header = headerPairs[i];\n      let j = 0;\n      let foundSep = false;\n      for (; j < header.length; j++) {\n        if (header.charCodeAt(j) === 58 /* ':' */) {\n          foundSep = true;\n          break;\n        }\n      }\n      if (foundSep === false) {\n        continue;\n      }\n      let field = header.substring(0, j).trim();\n      let value = header.substring(j + 1, header.length).trim();\n      if (value) {\n        let lowerCasedField = field.toLowerCase();\n        headers[lowerCasedField] = value;\n        headers[field] = value;\n      }\n    }\n    return headers;\n  }\n  function continueOnReject(promise) {\n    return Promise.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    let ret = payload;\n    let error = null;\n    if (!response.ok) {\n      return payload;\n    }\n    let status = response.status;\n    let payloadIsEmpty = payload === '' || payload === null;\n    let statusIndicatesEmptyResponse = status === 204 || status === 205 || requestData.method === 'HEAD';\n    {\n      if (payloadIsEmpty && !statusIndicatesEmptyResponse) {\n        let message = `The server returned an empty string for ${requestData.method} ${requestData.url}, which cannot be parsed into a valid JSON. Return either null or {}.`;\n        if (payload === '') {\n          (true && (0, _debug.warn)(message, {\n            id: 'ds.adapter.returned-empty-string-as-JSON'\n          }));\n        }\n      }\n    }\n    if (response.ok && (statusIndicatesEmptyResponse || payloadIsEmpty)) {\n      return;\n    }\n    try {\n      ret = JSON.parse(payload);\n    } catch (e) {\n      if (!(e instanceof SyntaxError)) {\n        return e;\n      }\n      e.payload = payload;\n      error = e;\n    }\n    if (error) {\n      {\n        // eslint-disable-next-line no-console\n        console.warn('This response was unable to be parsed as json.', payload);\n      }\n      return error;\n    }\n    return ret;\n  }\n  function determineBodyPromise(response, requestData) {\n    // response.text() may resolve or reject\n    // it is a native promise, may not have finally\n    return continueOnReject(response.text()).then(payload => _determineContent(response, requestData, payload));\n  }\n  const RBRACKET = /\\[\\]$/;\n  function isPlainObject(obj) {\n    return Object.prototype.toString.call(obj) === '[object Object]';\n  }\n\n  /*\n   * Helper function that turns the data/body of a request into a query param string.\n   * This is directly copied from jQuery.param.\n   */\n  function serializeQueryParams(queryParamsObject) {\n    let s = [];\n    function buildParams(prefix, obj) {\n      let i, len, key;\n      if (prefix) {\n        if (Array.isArray(obj)) {\n          for (i = 0, len = obj.length; i < len; i++) {\n            if (RBRACKET.test(prefix)) {\n              add(s, prefix, obj[i]);\n            } else {\n              buildParams(prefix + '[' + (typeof obj[i] === 'object' && obj[i] !== null ? i : '') + ']', obj[i]);\n            }\n          }\n        } else if (isPlainObject(obj)) {\n          for (key in obj) {\n            buildParams(prefix + '[' + key + ']', obj[key]);\n          }\n        } else {\n          add(s, prefix, obj);\n        }\n      } else if (Array.isArray(obj)) {\n        for (i = 0, len = obj.length; i < len; i++) {\n          add(s, obj[i].name, obj[i].value);\n        }\n      } else {\n        for (key in obj) {\n          buildParams(key, obj[key]);\n        }\n      }\n      return s;\n    }\n    return buildParams('', queryParamsObject).join('&');\n  }\n\n  /*\n   * Part of the `serializeQueryParams` helper function.\n   */\n  function add(s, k, v) {\n    // Strip out keys with undefined value and replace null values with\n    // empty strings (mimics jQuery.ajax)\n    if (v === undefined) {\n      return;\n    } else if (v === null) {\n      v = '';\n    }\n    v = typeof v === 'function' ? v() : v;\n    s[s.length] = `${encodeURIComponent(k)}=${encodeURIComponent(v)}`;\n  }\n  let _fetch = null;\n  let REQUEST = null;\n  function getFetchFunction() {\n    // return cached fetch function\n    if (_fetch !== null) {\n      return _fetch();\n    }\n\n    // grab browser native fetch if available, or global fetch if otherwise configured\n    if (typeof fetch === 'function') {\n      // fallback to using global fetch\n      _fetch = () => fetch;\n\n      /* global FastBoot */\n      // grab fetch from node-fetch\n    } else if (typeof FastBoot !== 'undefined') {\n      try {\n        const nodeFetch = FastBoot.require('node-fetch');\n        const httpRegex = /^https?:\\/\\//;\n        const protocolRelativeRegex = /^\\/\\//;\n\n        // eslint-disable-next-line no-inner-declarations\n        function parseRequest(request) {\n          if (request === null) {\n            throw new Error(\"Trying to fetch with relative url but the application hasn't finished loading FastBootInfo, see details at https://github.com/ember-cli/ember-fetch#relative-url\");\n          }\n          // Old Prember version is not sending protocol\n          const protocol = request.protocol === 'undefined:' ? 'http:' : request.protocol;\n          return [request.get('host'), protocol];\n        }\n\n        // eslint-disable-next-line no-inner-declarations\n        function buildAbsoluteUrl(url) {\n          if (protocolRelativeRegex.test(url)) {\n            let [host] = parseRequest(REQUEST);\n            url = host + url;\n          } else if (!httpRegex.test(url)) {\n            let [host, protocol] = parseRequest(REQUEST);\n            url = protocol + '//' + host + url;\n          }\n          return url;\n        }\n\n        // eslint-disable-next-line no-inner-declarations\n        function patchedFetch(input, options) {\n          if (input && input.href) {\n            input.url = buildAbsoluteUrl(input.href);\n          } else if (typeof input === 'string') {\n            input = buildAbsoluteUrl(input);\n          }\n          return nodeFetch(input, options);\n        }\n        _fetch = () => patchedFetch;\n      } catch (e) {\n        throw new Error(`Unable to create a compatible 'fetch' for FastBoot with node-fetch`);\n      }\n    }\n    (true && !(_fetch) && (0, _debug.assert)(`Cannot find a 'fetch' global and did not detect FastBoot.`, _fetch));\n    return _fetch();\n  }\n  function setupFastboot(fastBootRequest) {\n    REQUEST = fastBootRequest;\n  }\n  function serializeIntoHash(store, modelClass, snapshot) {\n    let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {\n      includeId: true\n    };\n    const serializer = store.serializerFor(modelClass.modelName);\n    (true && !(serializer) && (0, _debug.assert)(`Cannot serialize record, no serializer defined`, serializer));\n    if (typeof serializer.serializeIntoHash === 'function') {\n      const data = {};\n      serializer.serializeIntoHash(data, modelClass, snapshot, options);\n      return data;\n    }\n    return serializer.serialize(snapshot, options);\n  }\n});","define(\"@ember-data/debug/index\", [\"exports\", \"@ember/array\", \"@ember/debug\", \"@ember/debug/data-adapter\", \"@ember/object/observers\", \"@ember/service\", \"@ember/string\", \"@ember/runloop\", \"@ember-data/debug/setup\"], function (_exports, _array, _debug, _dataAdapter, _observers, _service, _string, _runloop, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/debug\",0,\"@ember/debug/data-adapter\",0,\"@ember/object/observers\",0,\"@ember/service\",0,\"@ember/string\",0,\"@ember/runloop\",0,\"@ember-data/debug/setup\"eaimeta@70e063a35619d71f\n  /**\n    # Overview\n  \n    This package provides the `DataAdapter` which the [Ember Inspector](https://github.com/emberjs/ember-inspector)\n    uses to subscribe and retrieve information for the `data` tab in the inspector.\n  \n    This package adds roughly .6 KB when minified and compressed to your application in production; however,\n    you can opt out of shipping this addon in production via options in `ember-cli-build.js`\n  \n    ```js\n    let app = new EmberApp(defaults, {\n      emberData: {\n        includeDataAdapterInProduction: false\n      }\n    });\n    ```\n  \n    When using `ember-data` as a dependency of your app, the default is to ship the inspector support to production.\n  \n    When not using `ember-data` as a dependency but instead using EmberData via declaring specific `@ember-data/<package>`\n    dependencies the default is to not ship to production.\n  \n    @module @ember-data/debug\n    @main @ember-data/debug\n  */\n  /**\n    Implements `@ember/debug/data-adapter` with for EmberData\n    integration with the ember-inspector.\n  \n    @class InspectorDataAdapter\n    @extends DataAdapter\n    @private\n  */\n  var _default = _exports.default = _dataAdapter.default.extend({\n    store: (0, _service.inject)('store'),\n    /**\n      Specifies how records can be filtered based on the state of the record\n      Records returned will need to have a `filterValues`\n      property with a key for every name in the returned array\n       @method getFilters\n      @private\n      @return {Array} List of objects defining filters\n       The object should have a `name` and `desc` property\n    */\n    getFilters() {\n      return [{\n        name: 'isNew',\n        desc: 'New'\n      }, {\n        name: 'isModified',\n        desc: 'Modified'\n      }, {\n        name: 'isClean',\n        desc: 'Clean'\n      }];\n    },\n    _nameToClass(type) {\n      return this.store.modelFor(type);\n    },\n    /**\n      Fetch the model types and observe them for changes.\n      Maintains the list of model types without needing the Model package for detection.\n       @method watchModelTypes\n      @private\n      @param {Function} typesAdded Callback to call to add types.\n      Takes an array of objects containing wrapped types (returned from `wrapModelType`).\n      @param {Function} typesUpdated Callback to call when a type has changed.\n      Takes an array of objects containing wrapped types.\n      @return {Function} Method to call to remove all observers\n    */\n    watchModelTypes(typesAdded, typesUpdated) {\n      const {\n        store\n      } = this;\n      const __getResourceCache = store._instanceCache.getResourceCache;\n      const _releaseMethods = [];\n      const discoveredTypes = (0, _setup.typesMapFor)(store);\n\n      // Add any models that were added during initialization of the app, before the inspector was opened\n      discoveredTypes.forEach((_, type) => {\n        this.watchTypeIfUnseen(store, discoveredTypes, type, typesAdded, typesUpdated, _releaseMethods);\n      });\n\n      // Overwrite _createRecordData so newly added models will get added to the list\n      store._instanceCache.getResourceCache = identifier => {\n        // defer to ensure first-create does not result in an infinite loop, see https://github.com/emberjs/data/issues/8006\n        (0, _runloop.next)(() => this.watchTypeIfUnseen(store, discoveredTypes, identifier.type, typesAdded, typesUpdated, _releaseMethods));\n        return __getResourceCache.call(store._instanceCache, identifier);\n      };\n      let release = () => {\n        _releaseMethods.forEach(fn => fn());\n        store._instanceCache.getResourceCache = __getResourceCache;\n        // reset the list so the models can be added if the inspector is re-opened\n        // the entries are set to false instead of removed, since the models still exist in the app\n        // we just need the inspector to become aware of them\n        discoveredTypes.forEach((value, key) => {\n          discoveredTypes.set(key, false);\n        });\n        this.releaseMethods.removeObject(release);\n      };\n      this.releaseMethods.pushObject(release);\n      return release;\n    },\n    /**\n     * Loop over the discovered types and use the callbacks from watchModelTypes to notify\n     * the consumer of this adapter about the mdoels.\n     *\n     * @method watchTypeIfUnseen\n     * @param {store} store\n     * @param {Map} discoveredTypes\n     * @param {String} type\n     * @param {Function} typesAdded\n     * @param {Function} typesUpdated\n     * @param {Array} releaseMethods\n     * @private\n     */\n    watchTypeIfUnseen(store, discoveredTypes, type, typesAdded, typesUpdated, releaseMethods) {\n      if (discoveredTypes.get(type) !== true) {\n        let klass = store.modelFor(type);\n        let wrapped = this.wrapModelType(klass, type);\n        releaseMethods.push(this.observeModelType(type, typesUpdated));\n        typesAdded([wrapped]);\n        discoveredTypes.set(type, true);\n      }\n    },\n    /**\n      Creates a human readable string used for column headers\n       @method columnNameToDesc\n      @private\n      @param {String} name The attribute name\n      @return {String} Human readable string based on the attribute name\n    */\n    columnNameToDesc(name) {\n      return (0, _string.capitalize)((0, _string.underscore)(name).replace(/_/g, ' ').trim());\n    },\n    /**\n      Get the columns for a given model type\n       @method columnsForType\n      @private\n      @param {Model} typeClass\n      @return {Array} An array of columns of the following format:\n       name: {String} The name of the column\n       desc: {String} Humanized description (what would show in a table column name)\n    */\n    columnsForType(typeClass) {\n      let columns = [{\n        name: 'id',\n        desc: 'Id'\n      }];\n      let count = 0;\n      let self = this;\n      typeClass.attributes.forEach((meta, name) => {\n        if (count++ > self.attributeLimit) {\n          return false;\n        }\n        let desc = this.columnNameToDesc(name);\n        columns.push({\n          name: name,\n          desc: desc\n        });\n      });\n      return columns;\n    },\n    /**\n      Fetches all loaded records for a given type\n       @method getRecords\n      @private\n      @param {Model} modelClass of the record\n      @param {String} modelName of the record\n      @return {Array} An array of Model records\n       This array will be observed for changes,\n       so it should update when new records are added/removed\n    */\n    getRecords(modelClass, modelName) {\n      if (arguments.length < 2) {\n        // Legacy Ember.js < 1.13 support\n        let containerKey = modelClass._debugContainerKey;\n        if (containerKey) {\n          let match = containerKey.match(/model:(.*)/);\n          if (match !== null) {\n            modelName = match[1];\n          }\n        }\n      }\n      (true && !(!!modelName) && (0, _debug.assert)('Cannot find model name. Please upgrade to Ember.js >= 1.13 for Ember Inspector support', !!modelName));\n      return this.store.peekAll(modelName);\n    },\n    /**\n      Gets the values for each column\n      This is the attribute values for a given record\n       @method getRecordColumnValues\n      @private\n      @param {Model} record to get values from\n      @return {Object} Keys should match column names defined by the model type\n    */\n    getRecordColumnValues(record) {\n      let count = 0;\n      let columnValues = {\n        id: record.id\n      };\n      record.eachAttribute(key => {\n        if (count++ > this.attributeLimit) {\n          return false;\n        }\n        columnValues[key] = record[key];\n      });\n      return columnValues;\n    },\n    /**\n      Returns keywords to match when searching records\n       @method getRecordKeywords\n      @private\n      @param {Model} record\n      @return {Array} Relevant keywords for search based on the record's attribute values\n    */\n    getRecordKeywords(record) {\n      let keywords = [];\n      let keys = (0, _array.A)(['id']);\n      record.eachAttribute(key => keys.push(key));\n      keys.forEach(key => keywords.push(record[key]));\n      return keywords;\n    },\n    /**\n      Returns the values of filters defined by `getFilters`\n      These reflect the state of the record\n       @method getRecordFilterValues\n      @private\n      @param {Model} record\n      @return {Object} The record state filter values\n    */\n    getRecordFilterValues(record) {\n      return {\n        isNew: record.isNew,\n        isModified: record.hasDirtyAttributes && !record.isNew,\n        isClean: !record.hasDirtyAttributes\n      };\n    },\n    /**\n      Returns a color that represents the record's state\n      Possible colors: black, blue, green\n       @method getRecordColor\n      @private\n      @param {Model} record\n      @return {String} The record color\n    */\n    getRecordColor(record) {\n      let color = 'black';\n      if (record.isNew) {\n        color = 'green';\n      } else if (record.hasDirtyAttributes) {\n        color = 'blue';\n      }\n      return color;\n    },\n    /**\n      Observes all relevant properties and re-sends the wrapped record\n      when a change occurs\n       @method observeRecord\n      @private\n      @param {Model} record\n      @param {Function} recordUpdated Callback used to notify changes\n      @return {Function} The function to call to remove all observers\n    */\n    observeRecord(record, recordUpdated) {\n      let releaseMethods = (0, _array.A)();\n      let keysToObserve = (0, _array.A)(['id', 'isNew', 'hasDirtyAttributes']);\n      record.eachAttribute(key => keysToObserve.push(key));\n      let adapter = this;\n      keysToObserve.forEach(function (key) {\n        let handler = function () {\n          recordUpdated(adapter.wrapRecord(record));\n        };\n        (0, _observers.addObserver)(record, key, handler);\n        releaseMethods.push(function () {\n          (0, _observers.removeObserver)(record, key, handler);\n        });\n      });\n      let release = function () {\n        releaseMethods.forEach(fn => fn());\n      };\n      return release;\n    }\n  });\n});","define(\"@ember-data/debug/setup\", [\"exports\", \"@ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.typesMapFor = typesMapFor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/store\"eaimeta@70e063a35619d71f\n  // dirty hack to add the known models to the typesMap\n  const StoreTypesMap = new WeakMap();\n  function typesMapFor(store) {\n    let typesMap = StoreTypesMap.get(store);\n    if (typesMap === undefined) {\n      typesMap = new Map();\n      StoreTypesMap.set(store, typesMap);\n    }\n    return typesMap;\n  }\n\n  // EmberData 4.7+\n  Object.defineProperty(_store.default.prototype, '_instanceCache', {\n    get() {\n      return this.__instanceCache;\n    },\n    set(value) {\n      const getResourceCache = value.getResourceCache;\n      const store = this;\n      value.getResourceCache = function (identifier) {\n        const typesMap = typesMapFor(store);\n        if (!typesMap.has(identifier.type)) {\n          typesMap.set(identifier.type, false);\n        }\n        return getResourceCache.call(this, identifier);\n      };\n      this.__instanceCache = value;\n    }\n  });\n\n  // EmberData <= 4.6\n  const __createRecordData = _store.default.prototype._createRecordData;\n  _store.default.prototype._createRecordData = function (identifier) {\n    const typesMap = typesMapFor(this);\n    if (!typesMap.has(identifier.type)) {\n      typesMap.set(identifier.type, false);\n    }\n    return __createRecordData.call(this, identifier);\n  };\n  var _default = _exports.default = {\n    name: '@ember-data/data-adapter',\n    initialize() {}\n  };\n});","define(\"@ember-data/graph/-private\", [\"exports\", \"@ember/debug\", \"@ember-data/store/-private\"], function (_exports, _debug, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.graphFor = graphFor;\n  _exports.peekGraph = peekGraph;\n  // that developers may provide IDs as numbers (e.g., `store.findRecord('person', 1)`),\n  // it is important that internally we use strings, since IDs may be serialized\n  // and lose type information.  For example, Ember's router may put a record's\n  // ID into the URL, and if we later try to deserialize that URL and find the\n  // corresponding record, we will not know if it is a string or a number.\n  function coerceId(id) {\n    if (id === null || id === undefined || id === '') {\n      return null;\n    }\n    if (typeof id === 'string') {\n      return id;\n    }\n    if (typeof id === 'symbol') {\n      return id.toString();\n    }\n    return '' + id;\n  }\n  function getStore(wrapper) {\n    (true && !('_store' in wrapper) && (0, _debug.assert)(`expected a private _store property`, '_store' in wrapper));\n    return wrapper._store;\n  }\n  function expandingGet(cache, key1, key2) {\n    let mainCache = cache[key1] = cache[key1] || Object.create(null);\n    return mainCache[key2];\n  }\n  function expandingSet(cache, key1, key2, value) {\n    let mainCache = cache[key1] = cache[key1] || Object.create(null);\n    mainCache[key2] = value;\n  }\n  function assertValidRelationshipPayload(graph, op) {\n    const relationship = graph.get(op.record, op.field);\n    (true && !(isHasMany(relationship) || isBelongsTo(relationship)) && (0, _debug.assert)(`Cannot update an implicit relationship`, isHasMany(relationship) || isBelongsTo(relationship)));\n    const payload = op.value;\n    const {\n      definition,\n      identifier,\n      state\n    } = relationship;\n    const {\n      type\n    } = identifier;\n    const {\n      field\n    } = op;\n    const {\n      isAsync,\n      kind\n    } = definition;\n    if (payload.links) {\n      (true && (0, _debug.warn)(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. EmberData will treat this relationship as known-to-be-empty.`, isAsync || !!payload.data || state.hasReceivedData, {\n        id: 'ds.store.push-link-for-sync-relationship'\n      }));\n    } else if (payload.data) {\n      if (kind === 'belongsTo') {\n        (true && !(!Array.isArray(payload.data)) && (0, _debug.assert)(`A ${type} record was pushed into the store with the value of ${field} being ${(0, _debug.inspect)(payload.data)}, but ${field} is a belongsTo relationship so the value must not be an array. You should probably check your data payload or serializer.`, !Array.isArray(payload.data)));\n        assertRelationshipData(getStore(graph.store), identifier, payload.data, definition);\n      } else if (kind === 'hasMany') {\n        (true && !(Array.isArray(payload.data)) && (0, _debug.assert)(`A ${type} record was pushed into the store with the value of ${field} being '${(0, _debug.inspect)(payload.data)}', but ${field} is a hasMany relationship so the value must be an array. You should probably check your data payload or serializer.`, Array.isArray(payload.data)));\n        if (Array.isArray(payload.data)) {\n          for (let i = 0; i < payload.data.length; i++) {\n            assertRelationshipData(getStore(graph.store), identifier, payload.data[i], definition);\n          }\n        }\n      }\n    }\n  }\n  function isNew(identifier) {\n    if (!identifier.id) {\n      return true;\n    }\n    const cache = (0, _private.peekCache)(identifier);\n    return Boolean(cache === null || cache === void 0 ? void 0 : cache.isNew(identifier));\n  }\n  function isBelongsTo(relationship) {\n    return relationship.definition.kind === 'belongsTo';\n  }\n  function isImplicit(relationship) {\n    return relationship.definition.isImplicit;\n  }\n  function isHasMany(relationship) {\n    return relationship.definition.kind === 'hasMany';\n  }\n  function forAllRelatedIdentifiers(rel, cb) {\n    if (isBelongsTo(rel)) {\n      if (rel.remoteState) {\n        cb(rel.remoteState);\n      }\n      if (rel.localState && rel.localState !== rel.remoteState) {\n        cb(rel.localState);\n      }\n    } else if (isHasMany(rel)) {\n      // ensure we don't walk anything twice if an entry is\n      // in both localMembers and remoteMembers\n      let seen = new Set();\n      for (let i = 0; i < rel.localState.length; i++) {\n        const inverseIdentifier = rel.localState[i];\n        if (!seen.has(inverseIdentifier)) {\n          seen.add(inverseIdentifier);\n          cb(inverseIdentifier);\n        }\n      }\n      for (let i = 0; i < rel.remoteState.length; i++) {\n        const inverseIdentifier = rel.remoteState[i];\n        if (!seen.has(inverseIdentifier)) {\n          seen.add(inverseIdentifier);\n          cb(inverseIdentifier);\n        }\n      }\n    } else {\n      let seen = new Set();\n      rel.localMembers.forEach(inverseIdentifier => {\n        if (!seen.has(inverseIdentifier)) {\n          seen.add(inverseIdentifier);\n          cb(inverseIdentifier);\n        }\n      });\n      rel.remoteMembers.forEach(inverseIdentifier => {\n        if (!seen.has(inverseIdentifier)) {\n          seen.add(inverseIdentifier);\n          cb(inverseIdentifier);\n        }\n      });\n    }\n  }\n\n  /*\n    Removes the given identifier from BOTH remote AND local state.\n  \n    This method is useful when either a deletion or a rollback on a new record\n    needs to entirely purge itself from an inverse relationship.\n    */\n  function removeIdentifierCompletelyFromRelationship(graph, relationship, value, silenceNotifications) {\n    if (isBelongsTo(relationship)) {\n      if (relationship.remoteState === value) {\n        relationship.remoteState = null;\n      }\n      if (relationship.localState === value) {\n        relationship.localState = null;\n        // This allows dematerialized inverses to be rematerialized\n        // we shouldn't be notifying here though, figure out where\n        // a notification was missed elsewhere.\n        if (!silenceNotifications) {\n          notifyChange(graph, relationship.identifier, relationship.definition.key);\n        }\n      }\n    } else if (isHasMany(relationship)) {\n      relationship.remoteMembers.delete(value);\n      relationship.localMembers.delete(value);\n      const canonicalIndex = relationship.remoteState.indexOf(value);\n      if (canonicalIndex !== -1) {\n        relationship.remoteState.splice(canonicalIndex, 1);\n      }\n      const currentIndex = relationship.localState.indexOf(value);\n      if (currentIndex !== -1) {\n        relationship.localState.splice(currentIndex, 1);\n        // This allows dematerialized inverses to be rematerialized\n        // we shouldn't be notifying here though, figure out where\n        // a notification was missed elsewhere.\n        if (!silenceNotifications) {\n          notifyChange(graph, relationship.identifier, relationship.definition.key);\n        }\n      }\n    } else {\n      relationship.remoteMembers.delete(value);\n      relationship.localMembers.delete(value);\n    }\n  }\n\n  // TODO add silencing at the graph level\n  function notifyChange(graph, identifier, key) {\n    if (identifier === graph._removing) {\n      return;\n    }\n    graph.store.notifyChange(identifier, 'relationships', key);\n  }\n  function assertRelationshipData(store, identifier, data, meta) {\n    (true && !(!Array.isArray(data)) && (0, _debug.assert)(`A ${identifier.type} record was pushed into the store with the value of ${meta.key} being '${JSON.stringify(data)}', but ${meta.key} is a belongsTo relationship so the value must not be an array. You should probably check your data payload or serializer.`, !Array.isArray(data)));\n    (true && !(data === null || typeof data.type === 'string' && data.type.length) && (0, _debug.assert)(`Encountered a relationship identifier without a type for the ${meta.kind} relationship '${meta.key}' on <${identifier.type}:${identifier.id}>, expected an identifier with type '${meta.type}' but found\\n\\n'${JSON.stringify(data, null, 2)}'\\n\\nPlease 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    (true && !(data === null || !!coerceId(data.id)) && (0, _debug.assert)(`Encountered a relationship identifier without an id for the ${meta.kind} relationship '${meta.key}' on <${identifier.type}:${identifier.id}>, expected an identifier but found\\n\\n'${JSON.stringify(data, null, 2)}'\\n\\nPlease check your serializer and make sure it is serializing the relationship payload into a JSON API format.`, data === null || !!coerceId(data.id)));\n    (true && !(data === null || !data.type || store.getSchemaDefinitionService().doesTypeExist(data.type)) && (0, _debug.assert)(`Encountered a relationship identifier with type '${data.type}' for the ${meta.kind} relationship '${meta.key}' on <${identifier.type}:${identifier.id}>, Expected an identifier with type '${meta.type}'. No model was found for '${data.type}'.`, data === null || !data.type || store.getSchemaDefinitionService().doesTypeExist(data.type)));\n  }\n  function createState() {\n    return {\n      hasReceivedData: false,\n      isEmpty: true,\n      isStale: false,\n      hasFailedLoadAttempt: false,\n      shouldForceReload: false,\n      hasDematerializedInverse: false\n    };\n  }\n  class BelongsToRelationship {\n    constructor(definition, identifier) {\n      this.definition = definition;\n      this.identifier = identifier;\n      this._state = null;\n      this.transactionRef = 0;\n      this.meta = null;\n      this.links = null;\n      this.localState = null;\n      this.remoteState = null;\n    }\n    get state() {\n      let {\n        _state\n      } = this;\n      if (!_state) {\n        _state = this._state = createState();\n      }\n      return _state;\n    }\n    getData() {\n      let data;\n      let payload = {};\n      if (this.localState) {\n        data = this.localState;\n      }\n      if (this.localState === null && this.state.hasReceivedData) {\n        data = null;\n      }\n      if (this.links) {\n        payload.links = this.links;\n      }\n      if (data !== undefined) {\n        payload.data = data;\n      }\n      if (this.meta) {\n        payload.meta = this.meta;\n      }\n      return payload;\n    }\n  }\n  class ManyRelationship {\n    constructor(definition, identifier) {\n      this.definition = definition;\n      this.identifier = identifier;\n      this._state = null;\n      this.transactionRef = 0;\n      this.localMembers = new Set();\n      this.remoteMembers = new Set();\n      this.meta = null;\n      this.links = null;\n\n      // persisted state\n      this.remoteState = [];\n      // local client state\n      this.localState = [];\n    }\n    get state() {\n      let {\n        _state\n      } = this;\n      if (!_state) {\n        _state = this._state = createState();\n      }\n      return _state;\n    }\n    getData() {\n      let payload = {};\n      if (this.state.hasReceivedData) {\n        payload.data = this.localState.slice();\n      }\n      if (this.links) {\n        payload.links = this.links;\n      }\n      if (this.meta) {\n        payload.meta = this.meta;\n      }\n      return payload;\n    }\n  }\n\n  /*\n    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 stable record identifiers and the `relationshipMeta` needs to be the meta\n    information about the relationship, retrieved via\n    `record.relationshipFor(key)`.\n  */\n  let assertPolymorphicType;\n  let assertInheritedSchema;\n  {\n    let checkPolymorphic = function checkPolymorphic(modelClass, addedModelClass) {\n      if (modelClass.__isMixin) {\n        return modelClass.__mixin.detect(addedModelClass.PrototypeMixin) ||\n        // handle native class extension e.g. `class Post extends Model.extend(Commentable) {}`\n        modelClass.__mixin.detect(Object.getPrototypeOf(addedModelClass).PrototypeMixin);\n      }\n      return addedModelClass.prototype instanceof modelClass || modelClass.detect(addedModelClass);\n    };\n    function validateSchema(definition, meta) {\n      const errors = new Map();\n      if (definition.inverseKey !== meta.name) {\n        errors.set('name', ` <---- should be '${definition.inverseKey}'`);\n      }\n      if (definition.inverseType !== meta.type) {\n        errors.set('type', ` <---- should be '${definition.inverseType}'`);\n      }\n      if (definition.inverseKind !== meta.kind) {\n        errors.set('type', ` <---- should be '${definition.inverseKind}'`);\n      }\n      if (definition.inverseIsAsync !== meta.options.async) {\n        errors.set('async', ` <---- should be ${definition.inverseIsAsync}`);\n      }\n      if (definition.inverseIsPolymorphic && definition.inverseIsPolymorphic !== meta.options.polymorphic) {\n        errors.set('polymorphic', ` <---- should be ${definition.inverseIsPolymorphic}`);\n      }\n      if (definition.key !== meta.options.inverse) {\n        errors.set('inverse', ` <---- should be '${definition.key}'`);\n      }\n      if (definition.type !== meta.options.as) {\n        errors.set('as', ` <---- should be '${definition.type}'`);\n      }\n      return errors;\n    }\n    function expectedSchema(definition) {\n      return printSchema({\n        name: definition.inverseKey,\n        type: definition.inverseType,\n        kind: definition.inverseKind,\n        options: {\n          as: definition.type,\n          async: definition.inverseIsAsync,\n          polymorphic: definition.inverseIsPolymorphic || false,\n          inverse: definition.key\n        }\n      });\n    }\n    function printSchema(config, errors) {\n      return `\n\n\\`\\`\\`\n{\n  ${config.name}: {\n    name: '${config.name}',${(errors === null || errors === void 0 ? void 0 : errors.get('name')) || ''}\n    type: '${config.type}',${(errors === null || errors === void 0 ? void 0 : errors.get('type')) || ''}\n    kind: '${config.kind}',${(errors === null || errors === void 0 ? void 0 : errors.get('kind')) || ''}\n    options: {\n      as: '${config.options.as}',${(errors === null || errors === void 0 ? void 0 : errors.get('as')) || ''}\n      async: ${config.options.async},${(errors === null || errors === void 0 ? void 0 : errors.get('async')) || ''}\n      polymorphic: ${config.options.polymorphic},${(errors === null || errors === void 0 ? void 0 : errors.get('polymorphic')) || ''}\n      inverse: '${config.options.inverse}'${(errors === null || errors === void 0 ? void 0 : errors.get('inverse')) || ''}\n    }\n  }\n}\n\\`\\`\\`\n\n`;\n    }\n    function metaFrom(definition) {\n      return {\n        name: definition.key,\n        type: definition.type,\n        kind: definition.kind,\n        options: {\n          async: definition.isAsync,\n          polymorphic: definition.isPolymorphic,\n          inverse: definition.inverseKey\n        }\n      };\n    }\n    function inverseMetaFrom(definition) {\n      return {\n        name: definition.inverseKey,\n        type: definition.inverseType,\n        kind: definition.inverseKind,\n        options: {\n          as: definition.isPolymorphic ? definition.type : undefined,\n          async: definition.inverseIsAsync,\n          polymorphic: definition.inverseIsPolymorphic,\n          inverse: definition.key\n        }\n      };\n    }\n    function inverseDefinition(definition) {\n      return {\n        key: definition.inverseKey,\n        type: definition.inverseType,\n        kind: definition.inverseKind,\n        isAsync: definition.inverseIsAsync,\n        isPolymorphic: true,\n        inverseKey: definition.key,\n        inverseType: definition.type,\n        inverseKind: definition.kind,\n        inverseIsAsync: definition.isAsync,\n        inverseIsPolymorphic: definition.isPolymorphic\n      };\n    }\n    function definitionWithPolymorphic(definition) {\n      return Object.assign({}, definition, {\n        inverseIsPolymorphic: true\n      });\n    }\n    assertInheritedSchema = function assertInheritedSchema(definition, type) {\n      let meta1 = metaFrom(definition);\n      let meta2 = inverseMetaFrom(definition);\n      let errors1 = validateSchema(inverseDefinition(definition), meta1);\n      let errors2 = validateSchema(definitionWithPolymorphic(definition), meta2);\n      if (errors2.size === 0 && errors1.size > 0) {\n        throw new Error(`The schema for the relationship '${type}.${definition.key}' is not configured to satisfy '${definition.inverseType}' and thus cannot utilize the '${definition.inverseType}.${definition.key}' relationship to connect with '${definition.type}.${definition.inverseKey}'\\n\\nIf using this relationship in a polymorphic manner is desired, the relationships schema definition for '${type}' should include:${printSchema(meta1, errors1)}`);\n      } else if (errors1.size > 0) {\n        throw new Error(`The schema for the relationship '${type}.${definition.key}' is not configured to satisfy '${definition.inverseType}' and thus cannot utilize the '${definition.inverseType}.${definition.key}' relationship to connect with '${definition.type}.${definition.inverseKey}'\\n\\nIf using this relationship in a polymorphic manner is desired, the relationships schema definition for '${type}' should include:${printSchema(meta1, errors1)} and the relationships schema definition for '${definition.type}' should include:${printSchema(meta2, errors2)}`);\n      } else if (errors2.size > 0) {\n        throw new Error(`The schema for the relationship '${type}.${definition.key}' satisfies '${definition.inverseType}' but cannot utilize the '${definition.inverseType}.${definition.key}' relationship to connect with '${definition.type}.${definition.inverseKey}' because that relationship is not polymorphic.\\n\\nIf using this relationship in a polymorphic manner is desired, the relationships schema definition for '${definition.type}' should include:${printSchema(meta2, errors2)}`);\n      }\n    };\n    assertPolymorphicType = function assertPolymorphicType(parentIdentifier, parentDefinition, addedIdentifier, store) {\n      let asserted = false;\n      if (parentDefinition.inverseIsImplicit) {\n        return;\n      }\n      if (parentDefinition.isPolymorphic) {\n        let meta = store.getSchemaDefinitionService().relationshipsDefinitionFor(addedIdentifier)[parentDefinition.inverseKey];\n        {\n          var _meta$options;\n          if (meta !== null && meta !== void 0 && (_meta$options = meta.options) !== null && _meta$options !== void 0 && _meta$options.as) {\n            var _meta$options$as;\n            asserted = true;\n            (true && !(meta) && (0, _debug.assert)(`No '${parentDefinition.inverseKey}' field exists on '${addedIdentifier.type}'. To use this type in the polymorphic relationship '${parentDefinition.inverseType}.${parentDefinition.key}' the relationships schema definition for ${addedIdentifier.type} should include:${expectedSchema(parentDefinition)}`, meta));\n            (true && !(!(meta.options.inverse === null && (meta === null || meta === void 0 || (_meta$options$as = meta.options.as) === null || _meta$options$as === void 0 ? void 0 : _meta$options$as.length) > 0)) && (0, _debug.assert)(`You should not specify both options.as and options.inverse as null on ${addedIdentifier.type}.${parentDefinition.inverseKey}, as if there is no inverse field there is no abstract type to conform to. You may have intended for this relationship to be polymorphic, or you may have mistakenly set inverse to null.`, !(meta.options.inverse === null && (meta === null || meta === void 0 || (_meta$options$as = meta.options.as) === null || _meta$options$as === void 0 ? void 0 : _meta$options$as.length) > 0)));\n            let errors = validateSchema(parentDefinition, meta);\n            (true && !(errors.size === 0) && (0, _debug.assert)(`The schema for the relationship '${parentDefinition.inverseKey}' on '${addedIdentifier.type}' type does not correctly implement '${parentDefinition.type}' and thus cannot be assigned to the '${parentDefinition.key}' relationship in '${parentIdentifier.type}'. If using this record in this polymorphic relationship is desired, correct the errors in the schema shown below:${printSchema(meta, errors)}`, errors.size === 0));\n          }\n        }\n      } else if (addedIdentifier.type !== parentDefinition.type) {\n        var _meta$options2;\n        // if we are not polymorphic\n        // then the addedIdentifier.type must be the same as the parentDefinition.type\n        let meta = store.getSchemaDefinitionService().relationshipsDefinitionFor(addedIdentifier)[parentDefinition.inverseKey];\n        if ((meta === null || meta === void 0 || (_meta$options2 = meta.options) === null || _meta$options2 === void 0 || (_meta$options2 = _meta$options2.as) === null || _meta$options2 === void 0 ? void 0 : _meta$options2.length) > 0) {\n          asserted = true;\n          if ((meta === null || meta === void 0 ? void 0 : meta.options.as) === parentDefinition.type) {\n            // inverse is likely polymorphic but missing the polymorphic flag\n            let meta = store.getSchemaDefinitionService().relationshipsDefinitionFor({\n              type: parentDefinition.inverseType\n            })[parentDefinition.key];\n            let errors = validateSchema(definitionWithPolymorphic(inverseDefinition(parentDefinition)), meta);\n            (true && !(false) && (0, _debug.assert)(`The '<${addedIdentifier.type}>.${parentDefinition.inverseKey}' relationship cannot be used polymorphically because '<${parentDefinition.inverseType}>.${parentDefinition.key} is not a polymorphic relationship. To use this relationship in a polymorphic manner, fix the following schema issues on the relationships schema for '${parentDefinition.inverseType}':${printSchema(meta, errors)}`));\n          } else {\n            (true && !(false) && (0, _debug.assert)(`The '${addedIdentifier.type}' type does not implement '${parentDefinition.type}' and thus cannot be assigned to the '${parentDefinition.key}' relationship in '${parentIdentifier.type}'. If this relationship should be polymorphic, mark ${parentDefinition.inverseType}.${parentDefinition.key} as \\`polymorphic: true\\` and ${addedIdentifier.type}.${parentDefinition.inverseKey} as implementing it via \\`as: '${parentDefinition.type}'\\`.`));\n          }\n        }\n      }\n      {\n        if (!asserted) {\n          store = store._store ? store._store : store; // allow usage with storeWrapper\n          let addedModelName = addedIdentifier.type;\n          let parentModelName = parentIdentifier.type;\n          let key = parentDefinition.key;\n          let relationshipModelName = parentDefinition.type;\n          let relationshipClass = store.modelFor(relationshipModelName);\n          let addedClass = store.modelFor(addedModelName);\n          let 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          let isPolymorphic = checkPolymorphic(relationshipClass, addedClass);\n          (true && !(isPolymorphic) && (0, _debug.assert)(assertionMessage, isPolymorphic));\n        }\n      }\n    };\n  }\n\n  /**\n   *\n   * Given RHS (Right Hand Side)\n   *\n   * ```ts\n   * class User extends Model {\n   *   @hasMany('animal', { async: false, inverse: 'owner' }) pets;\n   * }\n   * ```\n   *\n   * Given LHS (Left Hand Side)\n   *\n   * ```ts\n   * class Animal extends Model {\n   *  @belongsTo('user', { async: false, inverse: 'pets' }) owner;\n   * }\n   * ```\n   *\n   * The UpgradedMeta for the RHS would be:\n   *\n   * ```ts\n   * {\n   *   kind: 'hasMany',\n   *   key: 'pets',\n   *   type: 'animal',\n   *   isAsync: false,\n   *   isImplicit: false,\n   *   isCollection: true,\n   *   isPolymorphic: false,\n   *   inverseKind: 'belongsTo',\n   *   inverseKey: 'owner',\n   *   inverseType: 'user',\n   *   inverseIsAsync: false,\n   *   inverseIsImplicit: false,\n   *   inverseIsCollection: false,\n   *   inverseIsPolymorphic: false,\n   * }\n   *\n   * The UpgradeMeta for the LHS would be:\n   *\n   * ```ts\n   * {\n   *   kind: 'belongsTo',\n   *   key: 'owner',\n   *   type: 'user',\n   *   isAsync: false,\n   *   isImplicit: false,\n   *   isCollection: false,\n   *   isPolymorphic: false,\n   *   inverseKind: 'hasMany',\n   *   inverseKey: 'pets',\n   *   inverseType: 'animal',\n   *   inverseIsAsync: false,\n   *   inverseIsImplicit: false,\n   *   inverseIsCollection: true,\n   *   inverseIsPolymorphic: false,\n   * }\n   * ```\n   *\n   *\n   * @class UpgradedMeta\n   * @internal\n   */\n\n  const BOOL_LATER = null;\n  const STR_LATER = '';\n  const IMPLICIT_KEY_RAND = Date.now();\n  function implicitKeyFor(type, key) {\n    return `implicit-${type}:${key}${IMPLICIT_KEY_RAND}`;\n  }\n  function syncMeta(definition, inverseDefinition) {\n    definition.inverseKind = inverseDefinition.kind;\n    definition.inverseKey = inverseDefinition.key;\n    definition.inverseType = inverseDefinition.type;\n    definition.inverseIsAsync = inverseDefinition.isAsync;\n    definition.inverseIsCollection = inverseDefinition.isCollection;\n    definition.inverseIsPolymorphic = inverseDefinition.isPolymorphic;\n    definition.inverseIsImplicit = inverseDefinition.isImplicit;\n  }\n  function upgradeMeta(meta) {\n    let niceMeta = {};\n    let options = meta.options;\n    niceMeta.kind = meta.kind;\n    niceMeta.key = meta.name;\n    niceMeta.type = meta.type;\n    (true && !(typeof (options === null || options === void 0 ? void 0 : options.async) === 'boolean') && (0, _debug.assert)(`Expected relationship definition to specify async`, typeof (options === null || options === void 0 ? void 0 : options.async) === 'boolean'));\n    niceMeta.isAsync = options.async;\n    niceMeta.isImplicit = false;\n    niceMeta.isCollection = meta.kind === 'hasMany';\n    niceMeta.isPolymorphic = options && !!options.polymorphic;\n    niceMeta.inverseKey = options && options.inverse || STR_LATER;\n    niceMeta.inverseType = STR_LATER;\n    niceMeta.inverseIsAsync = BOOL_LATER;\n    niceMeta.inverseIsImplicit = options && options.inverse === null || BOOL_LATER;\n    niceMeta.inverseIsCollection = BOOL_LATER;\n    return niceMeta;\n  }\n  function assertConfiguration(info, type, key) {\n    {\n      let isSelfReferential = info.isSelfReferential;\n      if (isSelfReferential) {\n        return true;\n      }\n      let isRHS = key === info.rhs_relationshipName && (type === info.rhs_baseModelName ||\n      // base or non-polymorphic\n      // if the other side is polymorphic then we need to scan our modelNames\n      info.lhs_isPolymorphic && info.rhs_modelNames.indexOf(type) !== -1); // polymorphic\n      let isLHS = key === info.lhs_relationshipName && (type === info.lhs_baseModelName ||\n      // base or non-polymorphic\n      // if the other side is polymorphic then we need to scan our modelNames\n      info.rhs_isPolymorphic && info.lhs_modelNames.indexOf(type) !== -1); // polymorphic;\n\n      if (!isRHS && !isLHS) {\n        /*\n          this occurs when we are likely polymorphic but not configured to be polymorphic\n          most often due to extending a class that has a relationship definition on it.\n           e.g.\n           ```ts\n          class Pet extends Model {\n            @belongsTo('human', { async: false, inverse: 'pet' }) owner;\n          }\n          class Human extends Model {\n            @belongsTo('pet', { async: false, inverse: 'owner' }) pet;\n          }\n          class Farmer extends Human {}\n          ```\n           In the above case, the following would trigger this error:\n           ```ts\n          let pet = store.createRecord('pet');\n          let farmer = store.createRecord('farmer');\n          farmer.pet = pet; // error\n          ```\n           The correct way to fix this is to specify the polymorphic option on Pet\n          and to specify the abstract type 'human' on the Human base class.\n           ```ts\n          class Pet extends Model {\n            @belongsTo('human', { async: false, inverse: 'pet', polymorphic: true }) owner;\n          }\n          class Human extends Model {\n            @belongsTo('pet', { async: false, inverse: 'owner', as: 'human' }) pet;\n          }\n          class Farmer extends Human {}\n          ```\n           Alternatively both Human and Farmer could declare the relationship, because relationship\n          definitions are \"structural\".\n           ```ts\n          class Pet extends Model {\n            @belongsTo('human', { async: false, inverse: 'pet', polymorphic: true }) owner;\n          }\n          class Human extends Model {\n            @belongsTo('pet', { async: false, inverse: 'owner', as: 'human' }) pet;\n          }\n          class Farmer extends Model {\n            @belongsTo('pet', { async: false, inverse: 'owner', as: 'human' }) pet;\n          }\n          ```\n          */\n        if (key === info.lhs_relationshipName && info.lhs_modelNames.indexOf(type) !== -1) {\n          // parentIdentifier, parentDefinition, addedIdentifier, store\n          assertInheritedSchema(info.lhs_definition, type);\n        } else if (key === info.rhs_relationshipName && info.rhs_modelNames.indexOf(type) !== -1) {\n          assertInheritedSchema(info.lhs_definition, type);\n        }\n        // OPEN AN ISSUE :: we would like to improve our errors but need to understand what corner case got us here\n        throw new Error(`PLEASE OPEN AN ISSUE :: Found a relationship that is neither the LHS nor RHS of the same edge. This is not supported. Please report this to the EmberData team.`);\n      }\n      if (isRHS && isLHS) {\n        // not sure how we get here but it's probably the result of some form of inheritance\n        // without having specified polymorphism correctly leading to it not being self-referential\n        // OPEN AN ISSUE :: we would like to improve our errors but need to understand what corner case got us here\n        throw new Error(`PLEASE OPEN AN ISSUE :: Found a relationship that is both the LHS and RHS of the same edge but is not self-referential. This is not supported. Please report this to the EmberData team.`);\n      }\n    }\n  }\n  function isLHS(info, type, key) {\n    let isSelfReferential = info.isSelfReferential;\n    let isRelationship = key === info.lhs_relationshipName;\n    {\n      assertConfiguration(info, type, key);\n    }\n    if (isRelationship === true) {\n      return isSelfReferential === true ||\n      // itself\n      type === info.lhs_baseModelName ||\n      // base or non-polymorphic\n      // if the other side is polymorphic then we need to scan our modelNames\n      info.rhs_isPolymorphic && info.lhs_modelNames.indexOf(type) !== -1 // polymorphic\n;\n    }\n    return false;\n  }\n  function upgradeDefinition(graph, identifier, propertyName) {\n    let isImplicit = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n    const cache = graph._definitionCache;\n    const storeWrapper = graph.store;\n    const polymorphicLookup = graph._potentialPolymorphicTypes;\n    const {\n      type\n    } = identifier;\n    let cached = expandingGet(cache, type, propertyName);\n\n    // CASE: We have a cached resolution (null if no relationship exists)\n    if (cached !== undefined) {\n      return cached;\n    }\n    (true && !(!isImplicit) && (0, _debug.assert)(`Expected to find relationship definition in the cache for the implicit relationship ${propertyName}`, !isImplicit));\n    let relationships = storeWrapper.getSchemaDefinitionService().relationshipsDefinitionFor(identifier);\n    (true && !(relationships) && (0, _debug.assert)(`Expected to have a relationship definition for ${type} but none was found.`, relationships));\n    let meta = relationships[propertyName];\n    if (!meta) {\n      // TODO potentially we should just be permissive here since this is an implicit relationship\n      // and not require the lookup table to be populated\n      if (polymorphicLookup[type]) {\n        const altTypes = Object.keys(polymorphicLookup[type]);\n        for (let i = 0; i < altTypes.length; i++) {\n          let cached = expandingGet(cache, altTypes[i], propertyName);\n          if (cached) {\n            expandingSet(cache, type, propertyName, cached);\n            cached.rhs_modelNames.push(type);\n            return cached;\n          }\n        }\n      }\n\n      // CASE: We don't have a relationship at all\n      // we should only hit this in prod\n      (true && !(meta) && (0, _debug.assert)(`Expected to find a relationship definition for ${type}.${propertyName} but none was found.`, meta));\n      cache[type][propertyName] = null;\n      return null;\n    }\n    const definition = upgradeMeta(meta);\n    let inverseDefinition;\n    let inverseKey;\n    const inverseType = definition.type;\n\n    // CASE: Inverse is explicitly null\n    if (definition.inverseKey === null) {\n      // TODO probably dont need this assertion if polymorphic\n      (true && !(getStore(storeWrapper).modelFor(inverseType)) && (0, _debug.assert)(`Expected the inverse model to exist`, getStore(storeWrapper).modelFor(inverseType)));\n      inverseDefinition = null;\n    } else {\n      inverseKey = inverseForRelationship(getStore(storeWrapper), identifier, propertyName);\n\n      // CASE: If we are polymorphic, and we declared an inverse that is non-null\n      // we must assume that the lack of inverseKey means that there is no\n      // concrete type as the baseType, so we must construct and artificial\n      // placeholder\n      if (!inverseKey && definition.isPolymorphic && definition.inverseKey) {\n        inverseDefinition = {\n          kind: 'belongsTo',\n          // this must be updated when we find the first belongsTo or hasMany definition that matches\n          key: definition.inverseKey,\n          type: type,\n          isAsync: false,\n          // this must be updated when we find the first belongsTo or hasMany definition that matches\n          isImplicit: false,\n          isCollection: false,\n          // this must be updated when we find the first belongsTo or hasMany definition that matches\n          isPolymorphic: false,\n          isInitialized: false // tracks whether we have seen the other side at least once\n        };\n\n        // CASE: Inverse resolves to null\n      } else if (!inverseKey) {\n        inverseDefinition = null;\n      } else {\n        // CASE: We have an explicit inverse or were able to resolve one\n        let inverseDefinitions = storeWrapper.getSchemaDefinitionService().relationshipsDefinitionFor({\n          type: inverseType\n        });\n        (true && !(inverseDefinitions) && (0, _debug.assert)(`Expected to have a relationship definition for ${inverseType} but none was found.`, inverseDefinitions));\n        let meta = inverseDefinitions[inverseKey];\n        (true && !(meta) && (0, _debug.assert)(`Expected to find a relationship definition for ${inverseType}.${inverseKey} but none was found.`, meta));\n        inverseDefinition = upgradeMeta(meta);\n      }\n    }\n\n    // CASE: We have no inverse\n    if (!inverseDefinition) {\n      // polish off meta\n      inverseKey = implicitKeyFor(type, propertyName);\n      inverseDefinition = {\n        kind: 'implicit',\n        key: inverseKey,\n        type: type,\n        isAsync: false,\n        isImplicit: true,\n        isCollection: true,\n        // with implicits any number of records could point at us\n        isPolymorphic: false\n      };\n      syncMeta(definition, inverseDefinition);\n      syncMeta(inverseDefinition, definition);\n      const info = {\n        lhs_key: `${type}:${propertyName}`,\n        lhs_modelNames: [type],\n        lhs_baseModelName: type,\n        lhs_relationshipName: propertyName,\n        lhs_definition: definition,\n        lhs_isPolymorphic: definition.isPolymorphic,\n        rhs_key: inverseDefinition.key,\n        rhs_modelNames: [inverseType],\n        rhs_baseModelName: inverseType,\n        rhs_relationshipName: inverseDefinition.key,\n        rhs_definition: inverseDefinition,\n        rhs_isPolymorphic: false,\n        hasInverse: false,\n        isSelfReferential: type === inverseType,\n        // this could be wrong if we are self-referential but also polymorphic\n        isReflexive: false // we can't be reflexive if we don't define an inverse\n      };\n      expandingSet(cache, inverseType, inverseKey, info);\n      expandingSet(cache, type, propertyName, info);\n      return info;\n    }\n\n    // CASE: We do have an inverse\n    const baseType = inverseDefinition.type;\n\n    // TODO we want to assert this but this breaks all of our shoddily written tests\n    /*\n      if (DEBUG) {\n        let inverseDoubleCheck = inverseMeta.type.inverseFor(inverseRelationshipName, store);\n         assert(`The ${inverseBaseModelName}:${inverseRelationshipName} relationship declares 'inverse: null', but it was resolved as the inverse for ${baseModelName}:${relationshipName}.`, inverseDoubleCheck);\n      }\n    */\n    // CASE: We may have already discovered the inverse for the baseModelName\n    // CASE: We have already discovered the inverse\n    cached = expandingGet(cache, baseType, propertyName) || expandingGet(cache, inverseType, inverseKey);\n    if (cached) {\n      // TODO this assert can be removed if the above assert is enabled\n      (true && !(cached.hasInverse !== false) && (0, _debug.assert)(`The ${inverseType}:${inverseKey} relationship declares 'inverse: null', but it was resolved as the inverse for ${type}:${propertyName}.`, cached.hasInverse !== false));\n      let isLHS = cached.lhs_baseModelName === baseType;\n      let modelNames = isLHS ? cached.lhs_modelNames : cached.rhs_modelNames;\n      // make this lookup easier in the future by caching the key\n      modelNames.push(type);\n      expandingSet(cache, type, propertyName, cached);\n      return cached;\n    }\n\n    // this is our first time so polish off the metas\n    syncMeta(definition, inverseDefinition);\n    syncMeta(inverseDefinition, definition);\n    const lhs_modelNames = [type];\n    if (type !== baseType) {\n      lhs_modelNames.push(baseType);\n    }\n    const isSelfReferential = baseType === inverseType;\n    const info = {\n      lhs_key: `${baseType}:${propertyName}`,\n      lhs_modelNames,\n      lhs_baseModelName: baseType,\n      lhs_relationshipName: propertyName,\n      lhs_definition: definition,\n      lhs_isPolymorphic: definition.isPolymorphic,\n      rhs_key: `${inverseType}:${inverseKey}`,\n      rhs_modelNames: [inverseType],\n      rhs_baseModelName: inverseType,\n      rhs_relationshipName: inverseKey,\n      rhs_definition: inverseDefinition,\n      rhs_isPolymorphic: inverseDefinition.isPolymorphic,\n      hasInverse: true,\n      isSelfReferential,\n      isReflexive: isSelfReferential && propertyName === inverseKey\n    };\n\n    // Create entries for the baseModelName as well as modelName to speed up\n    //  inverse lookups\n    expandingSet(cache, baseType, propertyName, info);\n    expandingSet(cache, type, propertyName, info);\n\n    // Greedily populate the inverse\n    expandingSet(cache, inverseType, inverseKey, info);\n    return info;\n  }\n  function metaIsRelationshipDefinition(meta) {\n    return typeof meta._inverseKey === 'function';\n  }\n  function inverseForRelationship(store, identifier, key) {\n    var _definition$options, _definition$options2;\n    const definition = store.getSchemaDefinitionService().relationshipsDefinitionFor(identifier)[key];\n    if (!definition) {\n      return null;\n    }\n    {\n      if (metaIsRelationshipDefinition(definition)) {\n        const modelClass = store.modelFor(identifier.type);\n        return definition._inverseKey(store, modelClass);\n      }\n    }\n    (true && !(((_definition$options = definition.options) === null || _definition$options === void 0 ? void 0 : _definition$options.inverse) === null || typeof ((_definition$options2 = definition.options) === null || _definition$options2 === void 0 ? void 0 : _definition$options2.inverse) === 'string' && definition.options.inverse.length > 0) && (0, _debug.assert)(`Expected the relationship defintion to specify the inverse type or null.`, ((_definition$options = definition.options) === null || _definition$options === void 0 ? void 0 : _definition$options.inverse) === null || typeof ((_definition$options2 = definition.options) === null || _definition$options2 === void 0 ? void 0 : _definition$options2.inverse) === 'string' && definition.options.inverse.length > 0));\n    return definition.options.inverse;\n  }\n\n  /*\n      case many:1\n      ========\n      In a bi-directional graph with Many:1 edges, adding a value\n      results in up-to 3 discrete value transitions, while removing\n      a value is only 2 transitions.\n  \n      For adding C to A\n      If: A <<-> B, C <->> D is the initial state,\n      and: B <->> A <<-> C, D is the final state\n  \n      then we would undergo the following transitions.\n  \n      add C to A\n      remove C from D\n      add A to C\n  \n      For removing B from A\n      If: A <<-> B, C <->> D is the initial state,\n      and: A, B, C <->> D is the final state\n  \n      then we would undergo the following transitions.\n  \n      remove B from A\n      remove A from B\n  \n      case many:many\n      ===========\n      In a bi-directional graph with Many:Many edges, adding or\n      removing a value requires only 2 value transitions.\n  \n      For Adding\n      If: A<<->>B, C<<->>D is the initial state (double arrows representing the many side)\n      And: D<<->>C<<->>A<<->>B is the final state\n  \n      Then we would undergo two transitions.\n  \n      add C to A.\n      add A to C\n  \n      For Removing\n      If: A<<->>B, C<<->>D is the initial state (double arrows representing the many side)\n      And: A, B, C<<->>D is the final state\n  \n      Then we would undergo two transitions.\n  \n      remove B from A\n      remove A from B\n  \n      case many:?\n      ========\n      In a uni-directional graph with Many:? edges (modeled in EmberData with `inverse:null`) with\n      artificial (implicit) inverses, replacing a value results in 2 discrete value transitions.\n      This is because a Many:? relationship is effectively Many:Many.\n    */\n  function replaceRelatedRecords(graph, op, isRemote) {\n    if (isRemote) {\n      replaceRelatedRecordsRemote(graph, op, isRemote);\n    } else {\n      replaceRelatedRecordsLocal(graph, op, isRemote);\n    }\n  }\n  function replaceRelatedRecordsLocal(graph, op, isRemote) {\n    const identifiers = op.value;\n    const relationship = graph.get(op.record, op.field);\n    (true && !(isHasMany(relationship)) && (0, _debug.assert)(`expected hasMany relationship`, isHasMany(relationship)));\n    relationship.state.hasReceivedData = true;\n\n    // cache existing state\n    const {\n      localState,\n      localMembers,\n      definition\n    } = relationship;\n    const newValues = new Set(identifiers);\n    const identifiersLength = identifiers.length;\n    const newState = new Array(newValues.size);\n    const newMembership = new Set();\n\n    // wipe existing state\n    relationship.localMembers = newMembership;\n    relationship.localState = newState;\n    const {\n      type\n    } = relationship.definition;\n    let changed = false;\n    const currentLength = localState.length;\n    const iterationLength = currentLength > identifiersLength ? currentLength : identifiersLength;\n    const equalLength = currentLength === identifiersLength;\n    for (let i = 0, j = 0; i < iterationLength; i++) {\n      let adv = false;\n      if (i < identifiersLength) {\n        const identifier = identifiers[i];\n        // skip processing if we encounter a duplicate identifier in the array\n        if (!newMembership.has(identifier)) {\n          if (type !== identifier.type) {\n            {\n              assertPolymorphicType(relationship.identifier, relationship.definition, identifier, graph.store);\n            }\n            graph.registerPolymorphicType(type, identifier.type);\n          }\n          newState[j] = identifier;\n          adv = true;\n          newMembership.add(identifier);\n          if (!localMembers.has(identifier)) {\n            changed = true;\n            addToInverse(graph, identifier, definition.inverseKey, op.record, isRemote);\n          }\n        }\n      }\n      if (i < currentLength) {\n        const identifier = localState[i];\n\n        // detect reordering\n        if (!newMembership.has(identifier)) {\n          if (equalLength && newState[i] !== identifier) {\n            changed = true;\n          }\n          if (!newValues.has(identifier)) {\n            changed = true;\n            removeFromInverse(graph, identifier, definition.inverseKey, op.record, isRemote);\n          }\n        }\n      }\n      if (adv) {\n        j++;\n      }\n    }\n    if (changed) {\n      notifyChange(graph, relationship.identifier, relationship.definition.key);\n    }\n  }\n  function replaceRelatedRecordsRemote(graph, op, isRemote) {\n    const identifiers = op.value;\n    const relationship = graph.get(op.record, op.field);\n    (true && !(isHasMany(relationship)) && (0, _debug.assert)(`You can only '${op.op}' on a hasMany relationship. ${op.record.type}.${op.field} is a ${relationship.definition.kind}`, isHasMany(relationship)));\n    if (isRemote) {\n      graph._addToTransaction(relationship);\n    }\n    relationship.state.hasReceivedData = true;\n\n    // cache existing state\n    const {\n      remoteState,\n      remoteMembers,\n      definition\n    } = relationship;\n    const newValues = new Set(identifiers);\n    const identifiersLength = identifiers.length;\n    const newState = new Array(newValues.size);\n    const newMembership = new Set();\n\n    // wipe existing state\n    relationship.remoteMembers = newMembership;\n    relationship.remoteState = newState;\n    const {\n      type\n    } = relationship.definition;\n    let changed = false;\n    const canonicalLength = remoteState.length;\n    const iterationLength = canonicalLength > identifiersLength ? canonicalLength : identifiersLength;\n    const equalLength = canonicalLength === identifiersLength;\n    for (let i = 0, j = 0; i < iterationLength; i++) {\n      let adv = false;\n      if (i < identifiersLength) {\n        const identifier = identifiers[i];\n        if (!newMembership.has(identifier)) {\n          if (type !== identifier.type) {\n            {\n              assertPolymorphicType(relationship.identifier, relationship.definition, identifier, graph.store);\n            }\n            graph.registerPolymorphicType(type, identifier.type);\n          }\n          newState[j] = identifier;\n          newMembership.add(identifier);\n          adv = true;\n          if (!remoteMembers.has(identifier)) {\n            changed = true;\n            addToInverse(graph, identifier, definition.inverseKey, op.record, isRemote);\n          }\n        }\n      }\n      if (i < canonicalLength) {\n        const identifier = remoteState[i];\n        if (!newMembership.has(identifier)) {\n          // detect reordering\n          if (equalLength && newState[j] !== identifier) {\n            changed = true;\n          }\n          if (!newValues.has(identifier)) {\n            changed = true;\n            removeFromInverse(graph, identifier, definition.inverseKey, op.record, isRemote);\n          }\n        }\n      }\n      if (adv) {\n        j++;\n      }\n    }\n    if (changed) {\n      flushCanonical(graph, relationship);\n      /*\n      replaceRelatedRecordsLocal(\n        graph,\n        {\n          op: op.op,\n          record: op.record,\n          field: op.field,\n          value: remoteState,\n        },\n        false\n      );*/\n    } else {\n      // preserve legacy behavior we want to change but requires some sort\n      // of deprecation.\n      flushCanonical(graph, relationship);\n    }\n  }\n  function addToInverse(graph, identifier, key, value, isRemote) {\n    const relationship = graph.get(identifier, key);\n    const {\n      type\n    } = relationship.definition;\n    if (type !== value.type) {\n      {\n        assertPolymorphicType(relationship.identifier, relationship.definition, value, graph.store);\n      }\n      graph.registerPolymorphicType(type, value.type);\n    }\n    if (isBelongsTo(relationship)) {\n      relationship.state.hasReceivedData = true;\n      relationship.state.isEmpty = false;\n      if (isRemote) {\n        graph._addToTransaction(relationship);\n        if (relationship.remoteState !== null) {\n          removeFromInverse(graph, relationship.remoteState, relationship.definition.inverseKey, identifier, isRemote);\n        }\n        relationship.remoteState = value;\n      }\n      if (relationship.localState !== value) {\n        if (!isRemote && relationship.localState) {\n          removeFromInverse(graph, relationship.localState, relationship.definition.inverseKey, identifier, isRemote);\n        }\n        relationship.localState = value;\n        notifyChange(graph, relationship.identifier, relationship.definition.key);\n      }\n    } else if (isHasMany(relationship)) {\n      if (isRemote) {\n        if (!relationship.remoteMembers.has(value)) {\n          graph._addToTransaction(relationship);\n          relationship.remoteState.push(value);\n          relationship.remoteMembers.add(value);\n          relationship.state.hasReceivedData = true;\n          flushCanonical(graph, relationship);\n        }\n      } else {\n        if (!relationship.localMembers.has(value)) {\n          relationship.localState.push(value);\n          relationship.localMembers.add(value);\n          relationship.state.hasReceivedData = true;\n          notifyChange(graph, relationship.identifier, relationship.definition.key);\n        }\n      }\n    } else {\n      if (isRemote) {\n        if (!relationship.remoteMembers.has(value)) {\n          relationship.remoteMembers.add(value);\n          relationship.localMembers.add(value);\n        }\n      } else {\n        if (!relationship.localMembers.has(value)) {\n          relationship.localMembers.add(value);\n        }\n      }\n    }\n  }\n  function notifyInverseOfPotentialMaterialization(graph, identifier, key, value, isRemote) {\n    const relationship = graph.get(identifier, key);\n    if (isHasMany(relationship) && isRemote && relationship.remoteMembers.has(value)) {\n      notifyChange(graph, relationship.identifier, relationship.definition.key);\n    }\n  }\n  function removeFromInverse(graph, identifier, key, value, isRemote) {\n    const relationship = graph.get(identifier, key);\n    if (isBelongsTo(relationship)) {\n      relationship.state.isEmpty = true;\n      if (isRemote) {\n        graph._addToTransaction(relationship);\n        relationship.remoteState = null;\n      }\n      if (relationship.localState === value) {\n        relationship.localState = null;\n        notifyChange(graph, identifier, key);\n      }\n    } else if (isHasMany(relationship)) {\n      if (isRemote) {\n        graph._addToTransaction(relationship);\n        let index = relationship.remoteState.indexOf(value);\n        if (index !== -1) {\n          relationship.remoteMembers.delete(value);\n          relationship.remoteState.splice(index, 1);\n        }\n      }\n      let index = relationship.localState.indexOf(value);\n      if (index !== -1) {\n        relationship.localMembers.delete(value);\n        relationship.localState.splice(index, 1);\n      }\n      notifyChange(graph, relationship.identifier, relationship.definition.key);\n    } else {\n      if (isRemote) {\n        relationship.remoteMembers.delete(value);\n        relationship.localMembers.delete(value);\n      } else {\n        if (value && relationship.localMembers.has(value)) {\n          relationship.localMembers.delete(value);\n        }\n      }\n    }\n  }\n  function syncRemoteToLocal(graph, rel) {\n    let toSet = rel.remoteState;\n    let newIdentifiers = rel.localState.filter(identifier => isNew(identifier) && toSet.indexOf(identifier) === -1);\n    let existingState = rel.localState;\n    rel.localState = toSet.concat(newIdentifiers);\n    let localMembers = rel.localMembers = new Set();\n    rel.remoteMembers.forEach(v => localMembers.add(v));\n    for (let i = 0; i < newIdentifiers.length; i++) {\n      localMembers.add(newIdentifiers[i]);\n    }\n\n    // TODO always notifying fails only one test and we should probably do away with it\n    if (existingState.length !== rel.localState.length) {\n      notifyChange(graph, rel.identifier, rel.definition.key);\n    } else {\n      for (let i = 0; i < existingState.length; i++) {\n        if (existingState[i] !== rel.localState[i]) {\n          notifyChange(graph, rel.identifier, rel.definition.key);\n          break;\n        }\n      }\n    }\n  }\n  function flushCanonical(graph, rel) {\n    graph._scheduleLocalSync(rel);\n  }\n  function addToRelatedRecords(graph, op, isRemote) {\n    const {\n      record,\n      value,\n      index\n    } = op;\n    const relationship = graph.get(record, op.field);\n    (true && !(isHasMany(relationship)) && (0, _debug.assert)(`You can only '${op.op}' on a hasMany relationship. ${record.type}.${op.field} is a ${relationship.definition.kind}`, isHasMany(relationship)));\n    if (Array.isArray(value)) {\n      for (let i = 0; i < value.length; i++) {\n        addRelatedRecord(graph, relationship, record, value[i], index !== undefined ? index + i : index, isRemote);\n      }\n    } else {\n      addRelatedRecord(graph, relationship, record, value, index, isRemote);\n    }\n    notifyChange(graph, relationship.identifier, relationship.definition.key);\n  }\n  function addRelatedRecord(graph, relationship, record, value, index, isRemote) {\n    (true && !(value) && (0, _debug.assert)(`expected an identifier to add to the relationship`, value));\n    const {\n      localMembers,\n      localState\n    } = relationship;\n    if (localMembers.has(value)) {\n      return;\n    }\n    const {\n      type\n    } = relationship.definition;\n    if (type !== value.type) {\n      {\n        assertPolymorphicType(record, relationship.definition, value, graph.store);\n      }\n      graph.registerPolymorphicType(value.type, type);\n    }\n    relationship.state.hasReceivedData = true;\n    localMembers.add(value);\n    if (index === undefined) {\n      localState.push(value);\n    } else {\n      localState.splice(index, 0, value);\n    }\n    addToInverse(graph, value, relationship.definition.inverseKey, record, isRemote);\n  }\n  function mergeIdentifier(graph, op, relationships) {\n    Object.keys(relationships).forEach(key => {\n      const rel = relationships[key];\n      if (!rel) {\n        return;\n      }\n      mergeIdentifierForRelationship(graph, op, rel);\n    });\n  }\n  function mergeIdentifierForRelationship(graph, op, rel) {\n    rel.identifier = op.value;\n    forAllRelatedIdentifiers(rel, identifier => {\n      const inverse = graph.get(identifier, rel.definition.inverseKey);\n      mergeInRelationship(graph, inverse, op);\n    });\n  }\n  function mergeInRelationship(graph, rel, op) {\n    if (isBelongsTo(rel)) {\n      mergeBelongsTo(graph, rel, op);\n    } else if (isHasMany(rel)) {\n      mergeHasMany(graph, rel, op);\n    } else {\n      mergeImplicit(graph, rel, op);\n    }\n  }\n  function mergeBelongsTo(graph, rel, op) {\n    if (rel.remoteState === op.record) {\n      rel.remoteState = op.value;\n    }\n    if (rel.localState === op.record) {\n      rel.localState = op.value;\n      notifyChange(graph, rel.identifier, rel.definition.key);\n    }\n  }\n  function mergeHasMany(graph, rel, op) {\n    if (rel.remoteMembers.has(op.record)) {\n      rel.remoteMembers.delete(op.record);\n      rel.remoteMembers.add(op.value);\n      const index = rel.remoteState.indexOf(op.record);\n      rel.remoteState.splice(index, 1, op.value);\n    }\n    if (rel.localMembers.has(op.record)) {\n      rel.localMembers.delete(op.record);\n      rel.localMembers.add(op.value);\n      const index = rel.localState.indexOf(op.record);\n      rel.localState.splice(index, 1, op.value);\n      notifyChange(graph, rel.identifier, rel.definition.key);\n    }\n  }\n  function mergeImplicit(graph, rel, op) {\n    if (rel.remoteMembers.has(op.record)) {\n      rel.remoteMembers.delete(op.record);\n      rel.remoteMembers.add(op.value);\n    }\n    if (rel.localMembers.has(op.record)) {\n      rel.localMembers.delete(op.record);\n      rel.localMembers.add(op.value);\n    }\n  }\n  function removeFromRelatedRecords(graph, op, isRemote) {\n    const {\n      record,\n      value\n    } = op;\n    const relationship = graph.get(record, op.field);\n    (true && !(isHasMany(relationship)) && (0, _debug.assert)(`You can only '${op.op}' on a hasMany relationship. ${record.type}.${op.field} is a ${relationship.definition.kind}`, isHasMany(relationship)));\n    if (Array.isArray(value)) {\n      for (let i = 0; i < value.length; i++) {\n        removeRelatedRecord(graph, relationship, record, value[i], isRemote);\n      }\n    } else {\n      removeRelatedRecord(graph, relationship, record, value, isRemote);\n    }\n    notifyChange(graph, relationship.identifier, relationship.definition.key);\n  }\n  function removeRelatedRecord(graph, relationship, record, value, isRemote) {\n    (true && !(value) && (0, _debug.assert)(`expected an identifier to add to the relationship`, value));\n    const {\n      localMembers,\n      localState\n    } = relationship;\n    if (!localMembers.has(value)) {\n      return;\n    }\n    localMembers.delete(value);\n    let index = localState.indexOf(value);\n    (true && !(index !== -1) && (0, _debug.assert)(`expected localMembers and localState to be in sync`, index !== -1));\n    localState.splice(index, 1);\n    removeFromInverse(graph, value, relationship.definition.inverseKey, record, isRemote);\n  }\n  function replaceRelatedRecord(graph, op) {\n    let isRemote = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n    const relationship = graph.get(op.record, op.field);\n    (true && !(isBelongsTo(relationship)) && (0, _debug.assert)(`You can only '${op.op}' on a belongsTo relationship. ${op.record.type}.${op.field} is a ${relationship.definition.kind}`, isBelongsTo(relationship)));\n    if (isRemote) {\n      graph._addToTransaction(relationship);\n    }\n    const {\n      definition,\n      state\n    } = relationship;\n    const prop = isRemote ? 'remoteState' : 'localState';\n    const existingState = relationship[prop];\n\n    /*\n      case 1:1\n      ========\n      In a bi-directional graph with 1:1 edges, replacing a value\n      results in up-to 4 discrete value transitions.\n       If: A <-> B, C <-> D is the initial state,\n      and: A <-> C, B, D is the final state\n       then we would undergo the following 4 transitions.\n       remove A from B\n      add C to A\n      remove C from D\n      add A to C\n       case 1:many\n      ===========\n      In a bi-directional graph with 1:Many edges, replacing a value\n      results in up-to 3 discrete value transitions.\n       If: A<->>B<<->D, C<<->D is the initial state (double arrows representing the many side)\n      And: A<->>C<<->D, B<<->D is the final state\n       Then we would undergo three transitions.\n       remove A from B\n      add C to A.\n      add A to C\n       case 1:?\n      ========\n      In a uni-directional graph with 1:? edges (modeled in EmberData with `inverse:null`) with\n      artificial (implicit) inverses, replacing a value results in up-to 3 discrete value transitions.\n      This is because a 1:? relationship is effectively 1:many.\n       If: A->B, C->B is the initial state\n      And: A->C, C->B is the final state\n       Then we would undergo three transitions.\n       Remove A from B\n      Add C to A\n      Add A to C\n    */\n\n    // nothing for us to do\n    if (op.value === existingState) {\n      // if we were empty before but now know we are empty this needs to be true\n      state.hasReceivedData = true;\n      // if this is a remote update we still sync\n      if (isRemote) {\n        const {\n          localState\n        } = relationship;\n        // don't sync if localState is a new record and our remoteState is null\n        if (localState && isNew(localState) && !existingState) {\n          return;\n        }\n        if (existingState && localState === existingState) {\n          notifyInverseOfPotentialMaterialization(graph, existingState, definition.inverseKey, op.record, isRemote);\n        } else {\n          relationship.localState = existingState;\n          notifyChange(graph, relationship.identifier, relationship.definition.key);\n        }\n      }\n      return;\n    }\n\n    // remove this value from the inverse if required\n    if (existingState) {\n      removeFromInverse(graph, existingState, definition.inverseKey, op.record, isRemote);\n    }\n\n    // update value to the new value\n    relationship[prop] = op.value;\n    state.hasReceivedData = true;\n    state.isEmpty = op.value === null;\n    state.isStale = false;\n    state.hasFailedLoadAttempt = false;\n    if (op.value) {\n      if (definition.type !== op.value.type) {\n        // assert(\n        //   `The '<${definition.inverseType}>.${op.field}' relationship expects only '${definition.type}' records since it is not polymorphic. Received a Record of type '${op.value.type}'`,\n        //   definition.isPolymorphic\n        // );\n\n        // TODO this should now handle the deprecation warning if isPolymorphic is not set\n        // but the record does turn out to be polymorphic\n        // this should still assert if the user is relying on legacy inheritance/mixins to\n        // provide polymorphic behavior and has not yet added the polymorphic flags\n        {\n          assertPolymorphicType(relationship.identifier, definition, op.value, graph.store);\n        }\n        graph.registerPolymorphicType(definition.type, op.value.type);\n      }\n      addToInverse(graph, op.value, definition.inverseKey, op.record, isRemote);\n    }\n    if (isRemote) {\n      const {\n        localState,\n        remoteState\n      } = relationship;\n      if (localState && isNew(localState) && !remoteState) {\n        return;\n      }\n      if (localState !== remoteState) {\n        relationship.localState = remoteState;\n        notifyChange(graph, relationship.identifier, relationship.definition.key);\n      }\n    } else {\n      notifyChange(graph, relationship.identifier, relationship.definition.key);\n    }\n  }\n\n  /*\n    This method normalizes a link to an \"links object\". If the passed link is\n    already an object it's returned without any modifications.\n  \n    See http://jsonapi.org/format/#document-links for more information.\n  */\n  function _normalizeLink(link) {\n    switch (typeof link) {\n      case 'object':\n        return link;\n      case 'string':\n        return {\n          href: link\n        };\n    }\n  }\n\n  /*\n      Updates the \"canonical\" or \"remote\" state of a relationship, replacing any existing\n      state and blowing away any local changes (excepting new records).\n  */\n  function updateRelationshipOperation(graph, op) {\n    const relationship = graph.get(op.record, op.field);\n    (true && !(isHasMany(relationship) || isBelongsTo(relationship)) && (0, _debug.assert)(`Cannot update an implicit relationship`, isHasMany(relationship) || isBelongsTo(relationship)));\n    const {\n      definition,\n      state,\n      identifier\n    } = relationship;\n    const {\n      isCollection\n    } = definition;\n    const payload = op.value;\n    let hasRelationshipDataProperty = false;\n    let hasUpdatedLink = false;\n    if (payload.meta) {\n      relationship.meta = payload.meta;\n    }\n    if (payload.data !== undefined) {\n      hasRelationshipDataProperty = true;\n      if (isCollection) {\n        // TODO deprecate this case. We\n        // have tests saying we support it.\n        if (payload.data === null) {\n          payload.data = [];\n        }\n        (true && !(Array.isArray(payload.data)) && (0, _debug.assert)(`Expected an array`, Array.isArray(payload.data)));\n        const cache = graph.store.identifierCache;\n        // TODO may not need to cast to stable identifiers here since update likely does this too\n        graph.update({\n          op: 'replaceRelatedRecords',\n          record: identifier,\n          field: op.field,\n          value: payload.data.map(i => cache.getOrCreateRecordIdentifier(i))\n        }, true);\n      } else {\n        // TODO may not need to cast to stable identifiers here since update likely does this too\n        graph.update({\n          op: 'replaceRelatedRecord',\n          record: identifier,\n          field: op.field,\n          value: payload.data ? graph.store.identifierCache.getOrCreateRecordIdentifier(payload.data) : null\n        }, true);\n      }\n    } else if (definition.isAsync === false && !state.hasReceivedData) {\n      hasRelationshipDataProperty = true;\n      if (isCollection) {\n        graph.update({\n          op: 'replaceRelatedRecords',\n          record: identifier,\n          field: op.field,\n          value: []\n        }, true);\n      } else {\n        graph.update({\n          op: 'replaceRelatedRecord',\n          record: identifier,\n          field: op.field,\n          value: null\n        }, true);\n      }\n    }\n    if (payload.links) {\n      let originalLinks = relationship.links;\n      relationship.links = payload.links;\n      if (payload.links.related) {\n        let relatedLink = _normalizeLink(payload.links.related);\n        let currentLink = originalLinks && originalLinks.related ? _normalizeLink(originalLinks.related) : null;\n        let currentLinkHref = currentLink ? currentLink.href : null;\n        if (relatedLink && relatedLink.href && relatedLink.href !== currentLinkHref) {\n          (true && (0, _debug.warn)(`You pushed a record of type '${identifier.type}' with a relationship '${definition.key}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. EmberData will treat this relationship as known-to-be-empty.`, definition.isAsync || state.hasReceivedData, {\n            id: 'ds.store.push-link-for-sync-relationship'\n          }));\n          (true && !(typeof relatedLink.href === 'string' || relatedLink.href === null) && (0, _debug.assert)(`You have pushed a record of type '${identifier.type}' with '${definition.key}' as a link, but the value of that link is not a string.`, typeof relatedLink.href === 'string' || relatedLink.href === null));\n          hasUpdatedLink = true;\n        }\n      }\n    }\n\n    /*\n         Data being pushed into the relationship might contain only data or links,\n         or a combination of both.\n          IF contains only data\n         IF contains both links and data\n          state.isEmpty -> true if is empty array (has-many) or is null (belongs-to)\n          state.hasReceivedData -> true\n          hasDematerializedInverse -> false\n          state.isStale -> false\n          allInverseRecordsAreLoaded -> run-check-to-determine\n          IF contains only links\n          state.isStale -> true\n         */\n    relationship.state.hasFailedLoadAttempt = false;\n    if (hasRelationshipDataProperty) {\n      let relationshipIsEmpty = payload.data === null || Array.isArray(payload.data) && payload.data.length === 0;\n\n      // we don't need to notify here as the update op we pushed in above will notify once\n      // membership is in the correct state.\n      relationship.state.hasReceivedData = true;\n      relationship.state.isStale = false;\n      relationship.state.hasDematerializedInverse = false;\n      relationship.state.isEmpty = relationshipIsEmpty;\n    } else if (hasUpdatedLink) {\n      // only notify stale if we have not previously received membership data.\n      // within this same transaction\n      // this prevents refetching when only one side of the relationship in the\n      // payload contains the info while the other side contains just a link\n      // this only works when the side with just a link is a belongsTo, as we\n      // don't know if a hasMany has full information or not.\n      // see #7049 for context.\n      if (isCollection || !relationship.state.hasReceivedData || relationship.transactionRef === 0) {\n        relationship.state.isStale = true;\n        notifyChange(graph, relationship.identifier, relationship.definition.key);\n      } else {\n        relationship.state.isStale = false;\n      }\n    }\n  }\n  const Graphs = new Map();\n\n  /*\n   * Graph acts as the cache for relationship data. It allows for\n   * us to ask about and update relationships for a given Identifier\n   * without requiring other objects for that Identifier to be\n   * instantiated (such as `RecordData` or a `Record`)\n   *\n   * This also allows for us to make more substantive changes to relationships\n   * with increasingly minor alterations to other portions of the internals\n   * over time.\n   *\n   * The graph is made up of nodes and edges. Each unique identifier gets\n   * its own node, which is a dictionary with a list of that node's edges\n   * (or connections) to other nodes. In `Model` terms, a node represents a\n   * record instance, with each key (an edge) in the dictionary correlating\n   * to either a `hasMany` or `belongsTo` field on that record instance.\n   *\n   * The value for each key, or `edge` is the identifier(s) the node relates\n   * to in the graph from that key.\n   */\n  class Graph {\n    constructor(store) {\n      this._definitionCache = Object.create(null);\n      this._potentialPolymorphicTypes = Object.create(null);\n      this.identifiers = new Map();\n      this.store = store;\n      this.isDestroyed = false;\n      this._willSyncRemote = false;\n      this._willSyncLocal = false;\n      this._pushedUpdates = {\n        belongsTo: [],\n        hasMany: [],\n        deletions: []\n      };\n      this._updatedRelationships = new Set();\n      this._transaction = null;\n      this._removing = null;\n    }\n    has(identifier, propertyName) {\n      let relationships = this.identifiers.get(identifier);\n      if (!relationships) {\n        return false;\n      }\n      return relationships[propertyName] !== undefined;\n    }\n    get(identifier, propertyName) {\n      (true && !(propertyName) && (0, _debug.assert)(`expected propertyName`, propertyName));\n      let relationships = this.identifiers.get(identifier);\n      if (!relationships) {\n        relationships = Object.create(null);\n        this.identifiers.set(identifier, relationships);\n      }\n      let relationship = relationships[propertyName];\n      if (!relationship) {\n        const info = upgradeDefinition(this, identifier, propertyName);\n        (true && !(info !== null) && (0, _debug.assert)(`Could not determine relationship information for ${identifier.type}.${propertyName}`, info !== null)); // if (info.rhs_definition?.kind === 'implicit') {\n        //   // we should possibly also do this\n        //   // but it would result in being extremely permissive for other relationships by accident\n        //   // this.registerPolymorphicType(info.rhs_baseModelName, identifier.type);\n        // }\n        const meta = isLHS(info, identifier.type, propertyName) ? info.lhs_definition : info.rhs_definition;\n        if (meta.kind !== 'implicit') {\n          const Klass = meta.kind === 'hasMany' ? ManyRelationship : BelongsToRelationship;\n          relationship = relationships[propertyName] = new Klass(meta, identifier);\n        } else {\n          relationship = relationships[propertyName] = {\n            definition: meta,\n            identifier,\n            localMembers: new Set(),\n            remoteMembers: new Set()\n          };\n        }\n      }\n      return relationship;\n    }\n\n    /*\n     * Allows for the graph to dynamically discover polymorphic connections\n     * without needing to walk prototype chains.\n     *\n     * Used by edges when an added `type` does not match the expected `type`\n     * for that edge.\n     *\n     * Currently we assert before calling this. For a public API we will want\n     * to call out to the schema manager to ask if we should consider these\n     * types as equivalent for a given relationship.\n     */\n    registerPolymorphicType(type1, type2) {\n      const typeCache = this._potentialPolymorphicTypes;\n      let t1 = typeCache[type1];\n      if (!t1) {\n        t1 = typeCache[type1] = Object.create(null);\n      }\n      t1[type2] = true;\n      let t2 = typeCache[type2];\n      if (!t2) {\n        t2 = typeCache[type2] = Object.create(null);\n      }\n      t2[type1] = true;\n    }\n\n    /*\n     TODO move this comment somewhere else\n     implicit relationships are relationships which have not been declared but the inverse side exists on\n     another record somewhere\n      For example if there was:\n      ```app/models/comment.js\n     import Model, { attr } from '@ember-data/model';\n      export default class Comment extends Model {\n       @attr text;\n     }\n     ```\n      and there is also:\n      ```app/models/post.js\n     import Model, { attr, hasMany } from '@ember-data/model';\n      export default class Post extends Model {\n       @attr title;\n       @hasMany('comment', { async: true, inverse: null }) comments;\n     }\n     ```\n      Then we would have a implicit 'post' relationship for the comment record in order\n     to be do things like remove the comment from the post if the comment were to be deleted.\n    */\n\n    isReleasable(identifier) {\n      const relationships = this.identifiers.get(identifier);\n      if (!relationships) {\n        return true;\n      }\n      const keys = Object.keys(relationships);\n      for (let i = 0; i < keys.length; i++) {\n        const relationship = relationships[keys[i]];\n        // account for previously unloaded relationships\n        // typically from a prior deletion of a record that pointed to this one implicitly\n        if (relationship === undefined) {\n          continue;\n        }\n        (true && !(relationship) && (0, _debug.assert)(`Expected a relationship`, relationship));\n        if (relationship.definition.inverseIsAsync) {\n          return false;\n        }\n      }\n      return true;\n    }\n    unload(identifier, silenceNotifications) {\n      const relationships = this.identifiers.get(identifier);\n      if (relationships) {\n        // cleans up the graph but retains some nodes\n        // to allow for rematerialization\n        Object.keys(relationships).forEach(key => {\n          let rel = relationships[key];\n          if (!rel) {\n            return;\n          }\n          destroyRelationship(this, rel, silenceNotifications);\n          if (isImplicit(rel)) {\n            relationships[key] = undefined;\n          }\n        });\n      }\n    }\n    remove(identifier) {\n      (true && !(!this._removing) && (0, _debug.assert)(`Cannot remove ${String(identifier)} while still removing ${String(this._removing)}`, !this._removing));\n      this._removing = identifier;\n      this.unload(identifier);\n      this.identifiers.delete(identifier);\n      this._removing = null;\n    }\n\n    /*\n     * Remote state changes\n     */\n    push(op) {\n      if (op.op === 'deleteRecord') {\n        this._pushedUpdates.deletions.push(op);\n      } else if (op.op === 'replaceRelatedRecord') {\n        this._pushedUpdates.belongsTo.push(op);\n      } else {\n        const relationship = this.get(op.record, op.field);\n        (true && !(!isImplicit(relationship)) && (0, _debug.assert)(`Cannot push a remote update for an implicit relationship`, !isImplicit(relationship)));\n        this._pushedUpdates[relationship.definition.kind].push(op);\n      }\n      if (!this._willSyncRemote) {\n        this._willSyncRemote = true;\n        getStore(this.store)._schedule('coalesce', () => this._flushRemoteQueue());\n      }\n    }\n\n    /*\n     * Local state changes\n     */\n\n    update(op) {\n      let isRemote = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n      (true && !(op.op === 'deleteRecord' || op.op === 'mergeIdentifiers' || !isImplicit(this.get(op.record, op.field))) && (0, _debug.assert)(`Cannot update an implicit relationship`, op.op === 'deleteRecord' || op.op === 'mergeIdentifiers' || !isImplicit(this.get(op.record, op.field))));\n      switch (op.op) {\n        case 'mergeIdentifiers':\n          {\n            const relationships = this.identifiers.get(op.record);\n            if (relationships) {\n              mergeIdentifier(this, op, relationships);\n            }\n            break;\n          }\n        case 'updateRelationship':\n          (true && !(isRemote) && (0, _debug.assert)(`Can only perform the operation updateRelationship on remote state`, isRemote));\n          {\n            // in debug, assert payload validity eagerly\n            // TODO add deprecations/assertion here for duplicates\n            assertValidRelationshipPayload(this, op);\n          }\n          updateRelationshipOperation(this, op);\n          break;\n        case 'deleteRecord':\n          {\n            (true && !(isRemote) && (0, _debug.assert)(`Can only perform the operation deleteRelationship on remote state`, isRemote));\n            const identifier = op.record;\n            const relationships = this.identifiers.get(identifier);\n            if (relationships) {\n              Object.keys(relationships).forEach(key => {\n                const rel = relationships[key];\n                if (!rel) {\n                  return;\n                }\n                // works together with the has check\n                relationships[key] = undefined;\n                removeCompletelyFromInverse(this, rel);\n              });\n              this.identifiers.delete(identifier);\n            }\n            break;\n          }\n        case 'replaceRelatedRecord':\n          replaceRelatedRecord(this, op, isRemote);\n          break;\n        case 'addToRelatedRecords':\n          addToRelatedRecords(this, op, isRemote);\n          break;\n        case 'removeFromRelatedRecords':\n          removeFromRelatedRecords(this, op, isRemote);\n          break;\n        case 'replaceRelatedRecords':\n          replaceRelatedRecords(this, op, isRemote);\n          break;\n        default:\n          (true && !(false) && (0, _debug.assert)(`No local relationship update operation exists for '${op.op}'`));\n      }\n    }\n    _scheduleLocalSync(relationship) {\n      this._updatedRelationships.add(relationship);\n      if (!this._willSyncLocal) {\n        this._willSyncLocal = true;\n        getStore(this.store)._schedule('sync', () => this._flushLocalQueue());\n      }\n    }\n    _flushRemoteQueue() {\n      if (!this._willSyncRemote) {\n        return;\n      }\n      this._transaction = new Set();\n      this._willSyncRemote = false;\n      const {\n        deletions,\n        hasMany,\n        belongsTo\n      } = this._pushedUpdates;\n      this._pushedUpdates.deletions = [];\n      this._pushedUpdates.hasMany = [];\n      this._pushedUpdates.belongsTo = [];\n      for (let i = 0; i < deletions.length; i++) {\n        this.update(deletions[i], true);\n      }\n      for (let i = 0; i < hasMany.length; i++) {\n        this.update(hasMany[i], true);\n      }\n      for (let i = 0; i < belongsTo.length; i++) {\n        this.update(belongsTo[i], true);\n      }\n      this._finalize();\n    }\n    _addToTransaction(relationship) {\n      (true && !(this._transaction !== null) && (0, _debug.assert)(`expected a transaction`, this._transaction !== null));\n      relationship.transactionRef++;\n      this._transaction.add(relationship);\n    }\n    _finalize() {\n      if (this._transaction) {\n        this._transaction.forEach(v => v.transactionRef = 0);\n        this._transaction = null;\n      }\n    }\n    _flushLocalQueue() {\n      if (!this._willSyncLocal) {\n        return;\n      }\n      this._willSyncLocal = false;\n      let updated = this._updatedRelationships;\n      this._updatedRelationships = new Set();\n      updated.forEach(rel => syncRemoteToLocal(this, rel));\n    }\n    destroy() {\n      Graphs.delete(this.store);\n      {\n        Graphs.delete(getStore(this.store));\n        if (Graphs.size) {\n          Graphs.forEach((_, key) => {\n            (true && !(\n            // @ts-expect-error\n            !key.isDestroyed && !key.isDestroying) && (0, _debug.assert)(`Memory Leak Detected, likely the test or app instance previous to this was not torn down properly`, !key.isDestroyed && !key.isDestroying));\n          });\n        }\n      }\n      this.identifiers.clear();\n      this.store = null;\n      this.isDestroyed = true;\n    }\n  }\n\n  // Handle dematerialization for relationship `rel`.  In all cases, notify the\n  // relationship of the dematerialization: this is done so the relationship can\n  // notify its inverse which needs to update state\n  //\n  // If the inverse is sync, unloading this record is treated as a client-side\n  // delete, so we remove the inverse records from this relationship to\n  // disconnect the graph.  Because it's not async, we don't need to keep around\n  // the identifier as an id-wrapper for references\n  function destroyRelationship(graph, rel, silenceNotifications) {\n    if (isImplicit(rel)) {\n      if (graph.isReleasable(rel.identifier)) {\n        removeCompletelyFromInverse(graph, rel);\n      }\n      return;\n    }\n    const {\n      identifier\n    } = rel;\n    const {\n      inverseKey\n    } = rel.definition;\n    if (!rel.definition.inverseIsImplicit) {\n      forAllRelatedIdentifiers(rel, inverseIdentifer => notifyInverseOfDematerialization(graph, inverseIdentifer, inverseKey, identifier, silenceNotifications));\n    }\n    if (!rel.definition.inverseIsImplicit && !rel.definition.inverseIsAsync) {\n      rel.state.isStale = true;\n      clearRelationship(rel);\n\n      // necessary to clear relationships in the ui from dematerialized records\n      // hasMany is managed by Model which calls `retreiveLatest` after\n      // dematerializing the resource-cache instance.\n      // but sync belongsTo requires this since they don't have a proxy to update.\n      // so we have to notify so it will \"update\" to null.\n      // we should discuss whether we still care about this, probably fine to just\n      // leave the ui relationship populated since the record is destroyed and\n      // internally we've fully cleaned up.\n      if (!rel.definition.isAsync && !silenceNotifications) {\n        notifyChange(graph, rel.identifier, rel.definition.key);\n      }\n    }\n  }\n  function notifyInverseOfDematerialization(graph, inverseIdentifier, inverseKey, identifier, silenceNotifications) {\n    if (!graph.has(inverseIdentifier, inverseKey)) {\n      return;\n    }\n    let relationship = graph.get(inverseIdentifier, inverseKey);\n    (true && !(!isImplicit(relationship)) && (0, _debug.assert)(`expected no implicit`, !isImplicit(relationship))); // For remote members, it is possible that inverseRecordData has already been associated to\n    // to another record. For such cases, do not dematerialize the inverseRecordData\n    if (!isBelongsTo(relationship) || !relationship.localState || identifier === relationship.localState) {\n      removeDematerializedInverse(graph, relationship, identifier, silenceNotifications);\n    }\n  }\n  function clearRelationship(relationship) {\n    if (isBelongsTo(relationship)) {\n      relationship.localState = null;\n      relationship.remoteState = null;\n      relationship.state.hasReceivedData = false;\n      relationship.state.isEmpty = true;\n    } else {\n      relationship.localMembers.clear();\n      relationship.remoteMembers.clear();\n      relationship.localState = [];\n      relationship.remoteState = [];\n    }\n  }\n  function removeDematerializedInverse(graph, relationship, inverseIdentifier, silenceNotifications) {\n    if (isBelongsTo(relationship)) {\n      const inverseIdentifier = relationship.localState;\n      if (!relationship.definition.isAsync || inverseIdentifier && isNew(inverseIdentifier)) {\n        // unloading inverse of a sync relationship is treated as a client-side\n        // delete, so actually remove the models don't merely invalidate the cp\n        // cache.\n        // if the record being unloaded only exists on the client, we similarly\n        // treat it as a client side delete\n        if (relationship.localState === inverseIdentifier && inverseIdentifier !== null) {\n          relationship.localState = null;\n        }\n        if (relationship.remoteState === inverseIdentifier && inverseIdentifier !== null) {\n          relationship.remoteState = null;\n          relationship.state.hasReceivedData = true;\n          relationship.state.isEmpty = true;\n          if (relationship.localState && !isNew(relationship.localState)) {\n            relationship.localState = null;\n          }\n        }\n      } else {\n        relationship.state.hasDematerializedInverse = true;\n      }\n      if (!silenceNotifications) {\n        notifyChange(graph, relationship.identifier, relationship.definition.key);\n      }\n    } else {\n      if (!relationship.definition.isAsync || inverseIdentifier && isNew(inverseIdentifier)) {\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        removeIdentifierCompletelyFromRelationship(graph, relationship, inverseIdentifier);\n      } else {\n        relationship.state.hasDematerializedInverse = true;\n      }\n      if (!silenceNotifications) {\n        notifyChange(graph, relationship.identifier, relationship.definition.key);\n      }\n    }\n  }\n  function removeCompletelyFromInverse(graph, relationship) {\n    const {\n      identifier\n    } = relationship;\n    const {\n      inverseKey\n    } = relationship.definition;\n    forAllRelatedIdentifiers(relationship, inverseIdentifier => {\n      if (graph.has(inverseIdentifier, inverseKey)) {\n        removeIdentifierCompletelyFromRelationship(graph, graph.get(inverseIdentifier, inverseKey), identifier);\n      }\n    });\n    if (isBelongsTo(relationship)) {\n      if (!relationship.definition.isAsync) {\n        clearRelationship(relationship);\n      }\n      relationship.localState = null;\n    } else if (isHasMany(relationship)) {\n      if (!relationship.definition.isAsync) {\n        clearRelationship(relationship);\n        notifyChange(graph, relationship.identifier, relationship.definition.key);\n      }\n    } else {\n      relationship.remoteMembers.clear();\n      relationship.localMembers.clear();\n    }\n  }\n  function isStore(maybeStore) {\n    return maybeStore._instanceCache !== undefined;\n  }\n  function getWrapper(store) {\n    return isStore(store) ? store._instanceCache._storeWrapper : store;\n  }\n  function peekGraph(store) {\n    return Graphs.get(getWrapper(store));\n  }\n  function graphFor(store) {\n    const wrapper = getWrapper(store);\n    let graph = Graphs.get(wrapper);\n    if (!graph) {\n      graph = new Graph(wrapper);\n      Graphs.set(wrapper, graph);\n\n      // in DEBUG we attach the graph to the main store for improved debuggability\n      {\n        if (getStore(wrapper).isDestroying) {\n          throw new Error(`Memory Leak Detected During Teardown`);\n        }\n        Graphs.set(getStore(wrapper), graph);\n      }\n    }\n    return graph;\n  }\n});","define(\"@ember-data/json-api/index\", [\"exports\", \"@ember/debug\", \"@ember/runloop\", \"@ember-data/graph/-private\"], function (_exports, _debug, _runloop, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function isImplicit(relationship) {\n    return relationship.definition.isImplicit;\n  }\n  const EMPTY_ITERATOR = {\n    iterator() {\n      return {\n        next() {\n          return {\n            done: true,\n            value: undefined\n          };\n        }\n      };\n    }\n  };\n  function makeCache() {\n    return {\n      id: null,\n      remoteAttrs: null,\n      localAttrs: null,\n      inflightAttrs: null,\n      changes: null,\n      errors: null,\n      isNew: false,\n      isDeleted: false,\n      isDeletionCommitted: false\n    };\n  }\n\n  /**\n    A JSON:API Cache implementation.\n  \n    What cache the store uses is configurable. Using a different\n    implementation can be achieved by implementing the store's\n    createCache hook.\n  \n    This is the cache implementation used by `ember-data`.\n  \n    ```js\n    import Cache from '@ember-data/json-api';\n    import Store from '@ember-data/store';\n  \n    export default class extends Store {\n      createCache(wrapper) {\n        return new Cache(wrapper);\n      }\n    }\n    ```\n  \n    @class Cache\n    @public\n   */\n\n  class JSONAPICache {\n    /**\n     * The Cache Version that this implementation implements.\n     *\n     * @type {'2'}\n     * @public\n     * @property version\n     */\n\n    constructor(storeWrapper) {\n      this.version = '2';\n      this.__storeWrapper = storeWrapper;\n      this.__cache = new Map();\n      this.__destroyedCache = new Map();\n      this.__documents = new Map();\n    }\n\n    // Cache Management\n    // ================\n\n    /**\n     * Cache the response to a request\n     *\n     * Implements `Cache.put`.\n     *\n     * Expects a StructuredDocument whose `content` member is a JsonApiDocument.\n     *\n     * ```js\n     * cache.put({\n     *   request: { url: 'https://api.example.com/v1/user/1' },\n     *   content: {\n     *     data: {\n     *       type: 'user',\n     *       id: '1',\n     *       attributes: {\n     *         name: 'Chris'\n     *       }\n     *     }\n     *   }\n     * })\n     * ```\n     *\n     * > **Note:** The nested `content` and `data` members are not a mistake. This is because\n     * > there are two separate concepts involved here, the `StructuredDocument` which contains\n     * > the context of a given Request that has been issued with the returned contents as its\n     * > `content` property, and a `JSON:API Document` which is the json contents returned by\n     * > this endpoint and which uses its `data` property to signify which resources are the\n     * > primary resources associated with the request.\n     *\n     * StructuredDocument's with urls will be cached as full documents with\n     * associated resource membership order and contents preserved but linked\n     * into the cache.\n     *\n     * @method put\n     * @param {StructuredDocument} doc\n     * @returns {ResourceDocument}\n     * @public\n     */\n    put(doc) {\n      if (isErrorDocument(doc)) {\n        return this._putDocument(doc);\n      } else if (isMetaDocument(doc)) {\n        return this._putDocument(doc);\n      }\n      const jsonApiDoc = doc.content;\n      let included = jsonApiDoc.included;\n      let i, length;\n      const {\n        identifierCache\n      } = this.__storeWrapper;\n      if (included) {\n        for (i = 0, length = included.length; i < length; i++) {\n          putOne(this, identifierCache, included[i]);\n        }\n      }\n      if (Array.isArray(jsonApiDoc.data)) {\n        length = jsonApiDoc.data.length;\n        let identifiers = [];\n        for (i = 0; i < length; i++) {\n          identifiers.push(putOne(this, identifierCache, jsonApiDoc.data[i]));\n        }\n        return this._putDocument(doc, identifiers);\n      }\n      if (jsonApiDoc.data === null) {\n        return this._putDocument(doc, null);\n      }\n      (true && !(typeof jsonApiDoc.data === 'object') && (0, _debug.assert)(`Expected an object in the 'data' property in a call to 'push', but was ${typeof jsonApiDoc.data}`, typeof jsonApiDoc.data === 'object'));\n      let identifier = putOne(this, identifierCache, jsonApiDoc.data);\n      return this._putDocument(doc, identifier);\n    }\n    _putDocument(doc, data) {\n      // @ts-expect-error narrowing within is just horrible  in TS :/\n      const resourceDocument = isErrorDocument(doc) ? fromStructuredError(doc) : fromBaseDocument(doc);\n      if (data !== undefined) {\n        resourceDocument.data = data;\n      }\n      const request = doc.request;\n      const identifier = request ? this.__storeWrapper.identifierCache.getOrCreateDocumentIdentifier(request) : null;\n      if (identifier) {\n        resourceDocument.lid = identifier.lid;\n\n        // @ts-expect-error\n        doc.content = resourceDocument;\n        const hasExisting = this.__documents.has(identifier.lid);\n        this.__documents.set(identifier.lid, doc);\n        this.__storeWrapper.notifyChange(identifier, hasExisting ? 'updated' : 'added');\n      }\n      return resourceDocument;\n    }\n\n    /**\n     * Update the \"remote\" or \"canonical\" (persisted) state of the Cache\n     * by merging new information into the existing state.\n     *\n     * Note: currently the only valid resource operation is a MergeOperation\n     * which occurs when a collision of identifiers is detected.\n     *\n     * @method patch\n     * @public\n     * @param {Operation} op the operation to perform\n     * @returns {void}\n     */\n    patch(op) {\n      if (op.op === 'mergeIdentifiers') {\n        const cache = this.__cache.get(op.record);\n        if (cache) {\n          this.__cache.set(op.value, cache);\n          this.__cache.delete(op.record);\n        }\n        (0, _private.graphFor)(this.__storeWrapper).update(op, true);\n      }\n    }\n\n    /**\n     * Update the \"local\" or \"current\" (unpersisted) state of the Cache\n     *\n     * @method mutate\n     * @param {Mutation} mutation\n     * @returns {void}\n     * @public\n     */\n    mutate(mutation) {\n      (0, _private.graphFor)(this.__storeWrapper).update(mutation, false);\n    }\n\n    /**\n     * Peek resource data from the Cache.\n     *\n     * In development, if the return value\n     * is JSON the return value\n     * will be deep-cloned and deep-frozen\n     * to prevent mutation thereby enforcing cache\n     * Immutability.\n     *\n     * This form of peek is useful for implementations\n     * that want to feed raw-data from cache to the UI\n     * or which want to interact with a blob of data\n     * directly from the presentation cache.\n     *\n     * An implementation might want to do this because\n     * de-referencing records which read from their own\n     * blob is generally safer because the record does\n     * not require retainining connections to the Store\n     * and Cache to present data on a per-field basis.\n     *\n     * This generally takes the place of `getAttr` as\n     * an API and may even take the place of `getRelationship`\n     * depending on implementation specifics, though this\n     * latter usage is less recommended due to the advantages\n     * of the Graph handling necessary entanglements and\n     * notifications for relational data.\n     *\n     * @method peek\n     * @public\n     * @param {StableRecordIdentifier | StableDocumentIdentifier} identifier\n     * @returns {ResourceDocument | ResourceBlob | null} the known resource data\n     */\n\n    peek(identifier) {\n      if ('type' in identifier) {\n        const peeked = this.__safePeek(identifier, false);\n        if (!peeked) {\n          return null;\n        }\n        const {\n          type,\n          id,\n          lid\n        } = identifier;\n        const attributes = Object.assign({}, peeked.remoteAttrs, peeked.inflightAttrs, peeked.localAttrs);\n        const relationships = {};\n        const graph = (0, _private.graphFor)(this.__storeWrapper);\n        const rels = graph.identifiers.get(identifier);\n        if (rels) {\n          Object.keys(rels).forEach(key => {\n            const rel = rels[key];\n            if (!rel || rel.definition.isImplicit) {\n              return;\n            }\n            relationships[key] = rel.getData();\n          });\n        }\n        return {\n          type,\n          id,\n          lid,\n          attributes,\n          relationships\n        };\n      }\n      const document = this.peekRequest(identifier);\n      if (document) {\n        if ('content' in document) return document.content;\n      }\n      return null;\n    }\n\n    /**\n     * Peek the Cache for the existing request data associated with\n     * a cacheable request\n     *\n     * @method peekRequest\n     * @param {StableDocumentIdentifier}\n     * @returns {StableDocumentIdentifier | null}\n     * @public\n     */\n    peekRequest(identifier) {\n      return this.__documents.get(identifier.lid) || null;\n    }\n\n    /**\n     * Push resource data from a remote source into the cache for this identifier\n     *\n     * @method upsert\n     * @public\n     * @param identifier\n     * @param data\n     * @param hasRecord\n     * @returns {void | string[]} if `hasRecord` is true then calculated key changes should be returned\n     */\n    upsert(identifier, data, calculateChanges) {\n      let changedKeys;\n      const peeked = this.__safePeek(identifier, false);\n      const existed = !!peeked;\n      const cached = peeked || this._createCache(identifier);\n      const isLoading = _isLoading(peeked, this.__storeWrapper, identifier) || !recordIsLoaded(peeked);\n      let isUpdate = !_isEmpty(peeked) && !isLoading;\n      if (cached.isNew) {\n        cached.isNew = false;\n        this.__storeWrapper.notifyChange(identifier, 'identity');\n        this.__storeWrapper.notifyChange(identifier, 'state');\n      }\n      if (calculateChanges) {\n        changedKeys = existed ? calculateChangedKeys(cached, data.attributes) : Object.keys(data.attributes || {});\n      }\n      cached.remoteAttrs = Object.assign(cached.remoteAttrs || Object.create(null), data.attributes);\n      if (cached.localAttrs) {\n        if (patchLocalAttributes(cached)) {\n          this.__storeWrapper.notifyChange(identifier, 'state');\n        }\n      }\n      if (!isUpdate) {\n        this.__storeWrapper.notifyChange(identifier, 'added');\n      }\n      if (data.id) {\n        cached.id = data.id;\n      }\n      if (data.relationships) {\n        setupRelationships(this.__storeWrapper, identifier, data);\n      }\n      if (changedKeys && changedKeys.length) {\n        notifyAttributes(this.__storeWrapper, identifier, changedKeys);\n      }\n      return changedKeys;\n    }\n\n    // Cache Forking Support\n    // =====================\n\n    /**\n     * Create a fork of the cache from the current state.\n     *\n     * Applications should typically not call this method themselves,\n     * preferring instead to fork at the Store level, which will\n     * utilize this method to fork the cache.\n     *\n     * @method fork\n     * @internal\n     * @returns Promise<Cache>\n     */\n    fork() {\n      throw new Error(`Not Implemented`);\n    }\n\n    /**\n     * Merge a fork back into a parent Cache.\n     *\n     * Applications should typically not call this method themselves,\n     * preferring instead to merge at the Store level, which will\n     * utilize this method to merge the caches.\n     *\n     * @method merge\n     * @param {Cache} cache\n     * @public\n     * @returns Promise<void>\n     */\n    merge(cache) {\n      throw new Error(`Not Implemented`);\n    }\n\n    /**\n     * Generate the list of changes applied to all\n     * record in the store.\n     *\n     * Each individual resource or document that has\n     * been mutated should be described as an individual\n     * `Change` entry in the returned array.\n     *\n     * A `Change` is described by an object containing up to\n     * three properties: (1) the `identifier` of the entity that\n     * changed; (2) the `op` code of that change being one of\n     * `upsert` or `remove`, and if the op is `upsert` a `patch`\n     * containing the data to merge into the cache for the given\n     * entity.\n     *\n     * This `patch` is opaque to the Store but should be understood\n     * by the Cache and may expect to be utilized by an Adapter\n     * when generating data during a `save` operation.\n     *\n     * It is generally recommended that the `patch` contain only\n     * the updated state, ignoring fields that are unchanged\n     *\n     * ```ts\n     * interface Change {\n     *  identifier: StableRecordIdentifier | StableDocumentIdentifier;\n     *  op: 'upsert' | 'remove';\n     *  patch?: unknown;\n     * }\n     * ```\n     *\n     * @method diff\n     * @public\n     */\n    diff() {\n      throw new Error(`Not Implemented`);\n    }\n\n    // SSR Support\n    // ===========\n\n    /**\n     * Serialize the entire contents of the Cache into a Stream\n     * which may be fed back into a new instance of the same Cache\n     * via `cache.hydrate`.\n     *\n     * @method dump\n     * @returns {Promise<ReadableStream>}\n     * @public\n     */\n    dump() {\n      throw new Error(`Not Implemented`);\n    }\n\n    /**\n     * hydrate a Cache from a Stream with content previously serialized\n     * from another instance of the same Cache, resolving when hydration\n     * is complete.\n     *\n     * This method should expect to be called both in the context of restoring\n     * the Cache during application rehydration after SSR **AND** at unknown\n     * times during the lifetime of an already booted application when it is\n     * desired to bulk-load additional information into the cache. This latter\n     * behavior supports optimizing pre/fetching of data for route transitions\n     * via data-only SSR modes.\n     *\n     * @method hydrate\n     * @param {ReadableStream} stream\n     * @returns {Promise<void>}\n     * @public\n     */\n    hydrate(stream) {\n      throw new Error('Not Implemented');\n    }\n\n    // Resource Support\n    // ================\n\n    /**\n     * [LIFECYCLE] Signal to the cache that a new record has been instantiated on the client\n     *\n     * It returns properties from options that should be set on the record during the create\n     * process. This return value behavior is deprecated.\n     *\n     * @method clientDidCreate\n     * @public\n     * @param identifier\n     * @param createArgs\n     */\n    clientDidCreate(identifier, options) {\n      const cached = this._createCache(identifier);\n      cached.isNew = true;\n      let createOptions = {};\n      if (options !== undefined) {\n        const storeWrapper = this.__storeWrapper;\n        let attributeDefs = storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n        let relationshipDefs = storeWrapper.getSchemaDefinitionService().relationshipsDefinitionFor(identifier);\n        const graph = (0, _private.graphFor)(storeWrapper);\n        let propertyNames = Object.keys(options);\n        for (let i = 0; i < propertyNames.length; i++) {\n          let name = propertyNames[i];\n          let propertyValue = options[name];\n          if (name === 'id') {\n            continue;\n          }\n          const fieldType = relationshipDefs[name] || attributeDefs[name];\n          let kind = fieldType !== undefined ? 'kind' in fieldType ? fieldType.kind : 'attribute' : null;\n          let relationship;\n          switch (kind) {\n            case 'attribute':\n              this.setAttr(identifier, name, propertyValue);\n              break;\n            case 'belongsTo':\n              this.mutate({\n                op: 'replaceRelatedRecord',\n                field: name,\n                record: identifier,\n                value: propertyValue\n              });\n              relationship = graph.get(identifier, name);\n              relationship.state.hasReceivedData = true;\n              relationship.state.isEmpty = false;\n              break;\n            case 'hasMany':\n              this.mutate({\n                op: 'replaceRelatedRecords',\n                field: name,\n                record: identifier,\n                value: propertyValue\n              });\n              relationship = graph.get(identifier, name);\n              relationship.state.hasReceivedData = true;\n              relationship.state.isEmpty = false;\n              break;\n            default:\n              // reflect back (pass-thru) unknown properties\n              createOptions[name] = propertyValue;\n          }\n        }\n      }\n      this.__storeWrapper.notifyChange(identifier, 'added');\n      return createOptions;\n    }\n\n    /**\n     * [LIFECYCLE] Signals to the cache that a resource\n     * will be part of a save transaction.\n     *\n     * @method willCommit\n     * @public\n     * @param identifier\n     */\n    willCommit(identifier) {\n      const cached = this.__peek(identifier, false);\n\n      /*\n        if we have multiple saves in flight at once then\n        we have information loss no matter what. This\n        attempts to lose the least information.\n         If we were to clear inflightAttrs, previous requests\n        would not be able to use it during their didCommit.\n         If we upsert inflightattrs, previous requests incorrectly\n        see more recent inflight changes as part of their own and\n        will incorrectly mark the new state as the correct remote state.\n         We choose this latter behavior to avoid accidentally removing\n        earlier changes.\n         If apps do not want this behavior they can either\n         - chain save requests serially vs allowing concurrent saves\n        - move to using a request handler that caches the inflight state\n          on a per-request basis\n        - change their save requests to only send a \"PATCH\" instead of a \"PUT\"\n          so that only latest changes are involved in each request, and then also\n          ensure that the API or their handler reflects only those changes back\n          for upsert into the cache.\n      */\n      if (cached.inflightAttrs) {\n        if (!cached.localAttrs) {\n          return;\n        }\n        Object.assign(cached.inflightAttrs, cached.localAttrs);\n        cached.localAttrs = null;\n        return;\n      }\n      cached.inflightAttrs = cached.localAttrs;\n      cached.localAttrs = null;\n    }\n\n    /**\n     * [LIFECYCLE] Signals to the cache that a resource\n     * was successfully updated as part of a save transaction.\n     *\n     * @method didCommit\n     * @public\n     * @param identifier\n     * @param data\n     */\n    didCommit(committedIdentifier, result) {\n      const payload = result.content;\n      const operation = result.request.op;\n      const data = payload && payload.data;\n      if (!data) {\n        (true && !(committedIdentifier.id) && (0, _debug.assert)(`Your ${committedIdentifier.type} 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.`, committedIdentifier.id));\n      }\n      const {\n        identifierCache\n      } = this.__storeWrapper;\n      const existingId = committedIdentifier.id;\n      const identifier = operation !== 'deleteRecord' && data ? identifierCache.updateRecordIdentifier(committedIdentifier, data) : committedIdentifier;\n      const cached = this.__peek(identifier, false);\n      if (cached.isDeleted) {\n        (0, _private.graphFor)(this.__storeWrapper).push({\n          op: 'deleteRecord',\n          record: identifier,\n          isNew: false\n        });\n        cached.isDeletionCommitted = true;\n        this.__storeWrapper.notifyChange(identifier, 'removed');\n        // TODO @runspired should we early exit here?\n      }\n      {\n        if (cached.isNew && !identifier.id && (typeof (data === null || data === void 0 ? void 0 : data.id) !== 'string' || data.id.length > 0)) {\n          const error = new Error(`Expected an id ${String(identifier)} in response ${JSON.stringify(data)}`);\n          //@ts-expect-error\n          error.isAdapterError = true;\n          //@ts-expect-error\n          error.code = 'InvalidError';\n          throw error;\n        }\n      }\n      cached.isNew = false;\n      let newCanonicalAttributes;\n      if (data) {\n        if (data.id && !cached.id) {\n          cached.id = data.id;\n        }\n        if (identifier === committedIdentifier && identifier.id !== existingId) {\n          this.__storeWrapper.notifyChange(identifier, 'identity');\n        }\n        (true && !(identifier.id === cached.id) && (0, _debug.assert)(`Expected the ID received for the primary '${identifier.type}' resource being saved to match the current id '${cached.id}' but received '${identifier.id}'.`, identifier.id === cached.id));\n        if (data.relationships) {\n          setupRelationships(this.__storeWrapper, identifier, data);\n        }\n        newCanonicalAttributes = data.attributes;\n      }\n      let changedKeys = calculateChangedKeys(cached, newCanonicalAttributes);\n      cached.remoteAttrs = Object.assign(cached.remoteAttrs || Object.create(null), cached.inflightAttrs, newCanonicalAttributes);\n      cached.inflightAttrs = null;\n      patchLocalAttributes(cached);\n      if (cached.errors) {\n        cached.errors = null;\n        this.__storeWrapper.notifyChange(identifier, 'errors');\n      }\n      notifyAttributes(this.__storeWrapper, identifier, changedKeys);\n      this.__storeWrapper.notifyChange(identifier, 'state');\n      const included = payload && payload.included;\n      if (included) {\n        for (let i = 0, length = included.length; i < length; i++) {\n          putOne(this, identifierCache, included[i]);\n        }\n      }\n      return {\n        data: identifier\n      };\n    }\n\n    /**\n     * [LIFECYCLE] Signals to the cache that a resource\n     * was update via a save transaction failed.\n     *\n     * @method commitWasRejected\n     * @public\n     * @param identifier\n     * @param errors\n     */\n    commitWasRejected(identifier, errors) {\n      const cached = this.__peek(identifier, false);\n      if (cached.inflightAttrs) {\n        let keys = Object.keys(cached.inflightAttrs);\n        if (keys.length > 0) {\n          let attrs = cached.localAttrs = cached.localAttrs || Object.create(null);\n          for (let i = 0; i < keys.length; i++) {\n            if (attrs[keys[i]] === undefined) {\n              attrs[keys[i]] = cached.inflightAttrs[keys[i]];\n            }\n          }\n        }\n        cached.inflightAttrs = null;\n      }\n      if (errors) {\n        cached.errors = errors;\n      }\n      this.__storeWrapper.notifyChange(identifier, 'errors');\n    }\n\n    /**\n     * [LIFECYCLE] Signals to the cache that all data for a resource\n     * should be cleared.\n     *\n     * This method is a candidate to become a mutation\n     *\n     * @method unloadRecord\n     * @public\n     * @param identifier\n     */\n    unloadRecord(identifier) {\n      var _peekGraph2;\n      const storeWrapper = this.__storeWrapper;\n      // TODO this is necessary because\n      // we maintain memebership inside InstanceCache\n      // for peekAll, so even though we haven't created\n      // any data we think this exists.\n      // TODO can we eliminate that membership now?\n      if (!this.__cache.has(identifier)) {\n        var _peekGraph;\n        // the graph may still need to unload identity\n        (_peekGraph = (0, _private.peekGraph)(storeWrapper)) === null || _peekGraph === void 0 || _peekGraph.unload(identifier);\n        return;\n      }\n      const removeFromRecordArray = !this.isDeletionCommitted(identifier);\n      let removed = false;\n      const cached = this.__peek(identifier, false);\n      (_peekGraph2 = (0, _private.peekGraph)(storeWrapper)) === null || _peekGraph2 === void 0 || _peekGraph2.unload(identifier);\n\n      // effectively clearing these is ensuring that\n      // we report as `isEmpty` during teardown.\n      cached.localAttrs = null;\n      cached.remoteAttrs = null;\n      cached.inflightAttrs = null;\n      let relatedIdentifiers = _allRelatedIdentifiers(storeWrapper, identifier);\n      if (areAllModelsUnloaded(storeWrapper, relatedIdentifiers)) {\n        for (let i = 0; i < relatedIdentifiers.length; ++i) {\n          let identifier = relatedIdentifiers[i];\n          storeWrapper.notifyChange(identifier, 'removed');\n          removed = true;\n          storeWrapper.disconnectRecord(identifier);\n        }\n      }\n      this.__cache.delete(identifier);\n      this.__destroyedCache.set(identifier, cached);\n\n      /*\n       * The destroy cache is a hack to prevent applications\n       * from blowing up during teardown. Accessing state\n       * on a destroyed record is not safe, but historically\n       * was possible due to a combination of teardown timing\n       * and retention of cached state directly on the\n       * record itself.\n       *\n       * Once we have deprecated accessing state on a destroyed\n       * instance we may remove this. The timing isn't a huge deal\n       * as momentarily retaining the objects outside the bounds\n       * of a test won't cause issues.\n       */\n      if (this.__destroyedCache.size === 1) {\n        (0, _runloop.schedule)('destroy', () => {\n          setTimeout(() => {\n            this.__destroyedCache.clear();\n          }, 100);\n        });\n      }\n      if (!removed && removeFromRecordArray) {\n        storeWrapper.notifyChange(identifier, 'removed');\n      }\n    }\n\n    // Granular Resource Data APIs\n    // ===========================\n\n    /**\n     * Retrieve the data for an attribute from the cache\n     *\n     * @method getAttr\n     * @public\n     * @param identifier\n     * @param field\n     * @returns {unknown}\n     */\n    getAttr(identifier, attr) {\n      const cached = this.__peek(identifier, true);\n      (true && !(cached) && (0, _debug.assert)(`Cannot retrieve attributes for identifier ${identifier} as it is not present in the cache`, cached)); // in Prod we try to recover when accessing something that\n      // doesn't exist\n      if (!cached) {\n        return undefined;\n      }\n      if (cached.localAttrs && attr in cached.localAttrs) {\n        return cached.localAttrs[attr];\n      } else if (cached.inflightAttrs && attr in cached.inflightAttrs) {\n        return cached.inflightAttrs[attr];\n      } else if (cached.remoteAttrs && attr in cached.remoteAttrs) {\n        return cached.remoteAttrs[attr];\n      } else {\n        const attrSchema = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier)[attr];\n        return getDefaultValue(attrSchema === null || attrSchema === void 0 ? void 0 : attrSchema.options);\n      }\n    }\n\n    /**\n     * Mutate the data for an attribute in the cache\n     *\n     * This method is a candidate to become a mutation\n     *\n     * @method setAttr\n     * @public\n     * @param identifier\n     * @param field\n     * @param value\n     */\n    setAttr(identifier, attr, value) {\n      const cached = this.__peek(identifier, false);\n      const existing = cached.inflightAttrs && attr in cached.inflightAttrs ? cached.inflightAttrs[attr] : cached.remoteAttrs && attr in cached.remoteAttrs ? cached.remoteAttrs[attr] : undefined;\n      if (existing !== value) {\n        cached.localAttrs = cached.localAttrs || Object.create(null);\n        cached.localAttrs[attr] = value;\n        cached.changes = cached.changes || Object.create(null);\n        cached.changes[attr] = [existing, value];\n      } else if (cached.localAttrs) {\n        delete cached.localAttrs[attr];\n        delete cached.changes[attr];\n      }\n      this.__storeWrapper.notifyChange(identifier, 'attributes', attr);\n    }\n\n    /**\n     * Query the cache for the changed attributes of a resource.\n     *\n     * @method changedAttrs\n     * @public\n     * @deprecated\n     * @param identifier\n     * @returns { <field>: [<old>, <new>] }\n     */\n    changedAttrs(identifier) {\n      const cached = this.__peek(identifier, false);\n      (true && !(cached) && (0, _debug.assert)(`Cannot retrieve changed attributes for identifier ${identifier} as it is not present in the cache`, cached)); // in Prod we try to recover when accessing something that\n      // doesn't exist\n      if (!cached) {\n        return Object.create(null);\n      }\n\n      // TODO freeze in dev\n      return cached.changes || Object.create(null);\n    }\n\n    /**\n     * Query the cache for whether any mutated attributes exist\n     *\n     * @method hasChangedAttrs\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    hasChangedAttrs(identifier) {\n      const cached = this.__peek(identifier, true);\n      (true && !(cached) && (0, _debug.assert)(`Cannot retrieve changed attributes for identifier ${identifier} as it is not present in the cache`, cached)); // in Prod we try to recover when accessing something that\n      // doesn't exist\n      if (!cached) {\n        return false;\n      }\n      return cached.inflightAttrs !== null && Object.keys(cached.inflightAttrs).length > 0 || cached.localAttrs !== null && Object.keys(cached.localAttrs).length > 0;\n    }\n\n    /**\n     * Tell the cache to discard any uncommitted mutations to attributes\n     *\n     * This method is a candidate to become a mutation\n     *\n     * @method rollbackAttrs\n     * @public\n     * @param identifier\n     * @returns {string[]} the names of fields that were restored\n     */\n    rollbackAttrs(identifier) {\n      const cached = this.__peek(identifier, false);\n      let dirtyKeys;\n      cached.isDeleted = false;\n      if (cached.localAttrs !== null) {\n        dirtyKeys = Object.keys(cached.localAttrs);\n        cached.localAttrs = null;\n        cached.changes = null;\n      }\n      if (cached.isNew) {\n        (0, _private.graphFor)(this.__storeWrapper).push({\n          op: 'deleteRecord',\n          record: identifier,\n          isNew: true\n        });\n        cached.isDeleted = true;\n        cached.isNew = false;\n      }\n      cached.inflightAttrs = null;\n      if (cached.errors) {\n        cached.errors = null;\n        this.__storeWrapper.notifyChange(identifier, 'errors');\n      }\n      this.__storeWrapper.notifyChange(identifier, 'state');\n      if (dirtyKeys && dirtyKeys.length) {\n        notifyAttributes(this.__storeWrapper, identifier, dirtyKeys);\n      }\n      return dirtyKeys || [];\n    }\n\n    /**\n     * Query the cache for the current state of a relationship property\n     *\n     * @method getRelationship\n     * @public\n     * @param identifier\n     * @param field\n     * @returns resource relationship object\n     */\n    getRelationship(identifier, field) {\n      return (0, _private.graphFor)(this.__storeWrapper).get(identifier, field).getData();\n    }\n\n    // Resource State\n    // ===============\n\n    /**\n     * Update the cache state for the given resource to be marked\n     * as locally deleted, or remove such a mark.\n     *\n     * This method is a candidate to become a mutation\n     *\n     * @method setIsDeleted\n     * @public\n     * @param identifier\n     * @param isDeleted {boolean}\n     */\n    setIsDeleted(identifier, isDeleted) {\n      const cached = this.__peek(identifier, false);\n      cached.isDeleted = isDeleted;\n      if (cached.isNew) {\n        // TODO can we delete this since we will do this in unload?\n        (0, _private.graphFor)(this.__storeWrapper).push({\n          op: 'deleteRecord',\n          record: identifier,\n          isNew: true\n        });\n      }\n      this.__storeWrapper.notifyChange(identifier, 'state');\n    }\n\n    /**\n     * Query the cache for any validation errors applicable to the given resource.\n     *\n     * @method getErrors\n     * @public\n     * @param identifier\n     * @returns {JsonApiError[]}\n     */\n    getErrors(identifier) {\n      return this.__peek(identifier, true).errors || [];\n    }\n\n    /**\n     * Query the cache for whether a given resource has any available data\n     *\n     * @method isEmpty\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    isEmpty(identifier) {\n      const cached = this.__safePeek(identifier, true);\n      return cached ? cached.remoteAttrs === null && cached.inflightAttrs === null && cached.localAttrs === null : true;\n    }\n\n    /**\n     * Query the cache for whether a given resource was created locally and not\n     * yet persisted.\n     *\n     * @method isNew\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    isNew(identifier) {\n      var _this$__safePeek;\n      // TODO can we assert here?\n      return ((_this$__safePeek = this.__safePeek(identifier, true)) === null || _this$__safePeek === void 0 ? void 0 : _this$__safePeek.isNew) || false;\n    }\n\n    /**\n     * Query the cache for whether a given resource is marked as deleted (but not\n     * necessarily persisted yet).\n     *\n     * @method isDeleted\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    isDeleted(identifier) {\n      var _this$__safePeek2;\n      // TODO can we assert here?\n      return ((_this$__safePeek2 = this.__safePeek(identifier, true)) === null || _this$__safePeek2 === void 0 ? void 0 : _this$__safePeek2.isDeleted) || false;\n    }\n\n    /**\n     * Query the cache for whether a given resource has been deleted and that deletion\n     * has also been persisted.\n     *\n     * @method isDeletionCommitted\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    isDeletionCommitted(identifier) {\n      var _this$__safePeek3;\n      // TODO can we assert here?\n      return ((_this$__safePeek3 = this.__safePeek(identifier, true)) === null || _this$__safePeek3 === void 0 ? void 0 : _this$__safePeek3.isDeletionCommitted) || false;\n    }\n\n    /**\n     * Private method used to populate an entry for the identifier\n     *\n     * @method _createCache\n     * @internal\n     * @param {StableRecordIdentifier} identifier\n     * @returns {CachedResource}\n     */\n    _createCache(identifier) {\n      (true && !(!this.__cache.has(identifier)) && (0, _debug.assert)(`Expected no resource data to yet exist in the cache`, !this.__cache.has(identifier)));\n      const cache = makeCache();\n      this.__cache.set(identifier, cache);\n      return cache;\n    }\n\n    /**\n     * Peek whether we have cached resource data matching the identifier\n     * without asserting if the resource data is missing.\n     *\n     * @method __safePeek\n     * @param {StableRecordIdentifier} identifier\n     * @param {Boolean} allowDestroyed\n     * @internal\n     * @returns {CachedResource | undefined}\n     */\n    __safePeek(identifier, allowDestroyed) {\n      let resource = this.__cache.get(identifier);\n      if (!resource && allowDestroyed) {\n        resource = this.__destroyedCache.get(identifier);\n      }\n      return resource;\n    }\n\n    /**\n     * Peek whether we have cached resource data matching the identifier\n     * Asserts if the resource data is missing.\n     *\n     * @method __Peek\n     * @param {StableRecordIdentifier} identifier\n     * @param {Boolean} allowDestroyed\n     * @internal\n     * @returns {CachedResource}\n     */\n    __peek(identifier, allowDestroyed) {\n      let resource = this.__safePeek(identifier, allowDestroyed);\n      (true && !(resource) && (0, _debug.assert)(`Expected Cache to have a resource entry for the identifier ${String(identifier)} but none was found`, resource));\n      return resource;\n    }\n  }\n  _exports.default = JSONAPICache;\n  function areAllModelsUnloaded(wrapper, identifiers) {\n    for (let i = 0; i < identifiers.length; ++i) {\n      let identifier = identifiers[i];\n      if (wrapper.hasRecord(identifier)) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function getLocalState(rel) {\n    if (rel.definition.kind === 'belongsTo') {\n      return rel.localState ? [rel.localState] : [];\n    }\n    return rel.localState;\n  }\n  function getRemoteState(rel) {\n    if (rel.definition.kind === 'belongsTo') {\n      return rel.remoteState ? [rel.remoteState] : [];\n    }\n    return rel.remoteState;\n  }\n  function getDefaultValue(options) {\n    if (!options) {\n      return;\n    }\n    if (typeof options.defaultValue === 'function') {\n      // If anyone opens an issue for args not working right, we'll restore + deprecate it via a Proxy\n      // that lazily instantiates the record. We don't want to provide any args here\n      // because in a non @ember-data/model world they don't make sense.\n      return options.defaultValue();\n    } else {\n      let defaultValue = options.defaultValue;\n      (true && !(typeof defaultValue !== 'object' || defaultValue === null) && (0, _debug.assert)(`Non primitive defaultValues are not supported because they are shared between all instances. If you would like to use a complex object as a default value please provide a function that returns the complex object.`, typeof defaultValue !== 'object' || defaultValue === null));\n      return defaultValue;\n    }\n  }\n  function notifyAttributes(storeWrapper, identifier, keys) {\n    if (!keys) {\n      storeWrapper.notifyChange(identifier, 'attributes');\n      return;\n    }\n    for (let i = 0; i < keys.length; i++) {\n      storeWrapper.notifyChange(identifier, 'attributes', keys[i]);\n    }\n  }\n\n  /*\n        TODO @deprecate 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  function calculateChangedKeys(cached, updates) {\n    let changedKeys = [];\n    if (updates) {\n      const keys = Object.keys(updates);\n      const length = keys.length;\n      const localAttrs = cached.localAttrs;\n      const original = Object.assign(Object.create(null), cached.remoteAttrs, cached.inflightAttrs);\n      for (let i = 0; i < length; i++) {\n        let key = keys[i];\n        let value = updates[key];\n\n        // A value in localAttrs means the user has a local change to\n        // this attribute. We never override this value when merging\n        // updates from the backend so we should not sent a change\n        // notification if the server value differs from the original.\n        if (localAttrs && localAttrs[key] !== undefined) {\n          continue;\n        }\n        if (original[key] !== value) {\n          changedKeys.push(key);\n        }\n      }\n    }\n    return changedKeys;\n  }\n  function cacheIsEmpty(cached) {\n    return !cached || cached.remoteAttrs === null && cached.inflightAttrs === null && cached.localAttrs === null;\n  }\n  function _isEmpty(peeked) {\n    if (!peeked) {\n      return true;\n    }\n    const isNew = peeked.isNew;\n    const isDeleted = peeked.isDeleted;\n    const isEmpty = cacheIsEmpty(peeked);\n    return (!isNew || isDeleted) && isEmpty;\n  }\n  function recordIsLoaded(cached) {\n    let filterDeleted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n    if (!cached) {\n      return false;\n    }\n    const isNew = cached.isNew;\n    const isEmpty = cacheIsEmpty(cached);\n\n    // if we are new we must consider ourselves loaded\n    if (isNew) {\n      return !cached.isDeleted;\n    }\n    // even if we have a past request, if we are now empty we are not loaded\n    // typically this is true after an unloadRecord call\n\n    // if we are not empty, not new && we have a fulfilled request then we are loaded\n    // we should consider allowing for something to be loaded that is simply \"not empty\".\n    // which is how RecordState currently handles this case; however, RecordState is buggy\n    // in that it does not account for unloading.\n    return filterDeleted && cached.isDeletionCommitted ? false : !isEmpty;\n  }\n  function _isLoading(peeked, storeWrapper, identifier) {\n    // TODO refactor things such that the cache is not required to know\n    // about isLoading\n    // @ts-expect-error\n    const req = storeWrapper._store.getRequestStateService();\n    // const fulfilled = req.getLastRequestForRecord(identifier);\n    const isLoaded = recordIsLoaded(peeked);\n    return !isLoaded &&\n    // fulfilled === null &&\n    req.getPendingRequestsForRecord(identifier).some(req => req.type === 'query');\n  }\n  function setupRelationships(storeWrapper, identifier, data) {\n    // TODO @runspired iterating by definitions instead of by payload keys\n    // allows relationship payloads to be ignored silently if no relationship\n    // definition exists. Ensure there's a test for this and then consider\n    // moving this to an assertion. This check should possibly live in the graph.\n    const relationships = storeWrapper.getSchemaDefinitionService().relationshipsDefinitionFor(identifier);\n    const keys = Object.keys(relationships);\n    for (let i = 0; i < keys.length; i++) {\n      const relationshipName = keys[i];\n      const relationshipData = data.relationships[relationshipName];\n      if (!relationshipData) {\n        continue;\n      }\n      (0, _private.graphFor)(storeWrapper).push({\n        op: 'updateRelationship',\n        record: identifier,\n        field: relationshipName,\n        value: relationshipData\n      });\n    }\n  }\n  function patchLocalAttributes(cached) {\n    const {\n      localAttrs,\n      remoteAttrs,\n      inflightAttrs,\n      changes\n    } = cached;\n    if (!localAttrs) {\n      cached.changes = null;\n      return false;\n    }\n    let hasAppliedPatch = false;\n    let mutatedKeys = Object.keys(localAttrs);\n    for (let i = 0, length = mutatedKeys.length; i < length; i++) {\n      let attr = mutatedKeys[i];\n      const existing = inflightAttrs && attr in inflightAttrs ? inflightAttrs[attr] : remoteAttrs && attr in remoteAttrs ? remoteAttrs[attr] : undefined;\n      if (existing === localAttrs[attr]) {\n        hasAppliedPatch = true;\n        delete localAttrs[attr];\n        delete changes[attr];\n      }\n    }\n    return hasAppliedPatch;\n  }\n  function putOne(cache, identifiers, resource) {\n    let identifier = identifiers.peekRecordIdentifier(resource);\n    if (identifier) {\n      identifier = identifiers.updateRecordIdentifier(identifier, resource);\n    } else {\n      identifier = identifiers.getOrCreateRecordIdentifier(resource);\n    }\n    cache.upsert(identifier, resource, cache.__storeWrapper.hasRecord(identifier));\n    // even if the identifier was not \"existing\" before, it is now\n    return identifier;\n  }\n\n  /*\n      Iterates over the set of internal models reachable from `this` across exactly one\n      relationship.\n    */\n  function _directlyRelatedIdentifiersIterable(storeWrapper, originating) {\n    const graph = (0, _private.peekGraph)(storeWrapper);\n    const initializedRelationships = graph === null || graph === void 0 ? void 0 : graph.identifiers.get(originating);\n    if (!initializedRelationships) {\n      return EMPTY_ITERATOR;\n    }\n    const initializedRelationshipsArr = [];\n    Object.keys(initializedRelationships).forEach(key => {\n      const rel = initializedRelationships[key];\n      if (rel && !isImplicit(rel)) {\n        initializedRelationshipsArr.push(rel);\n      }\n    });\n    let i = 0;\n    let j = 0;\n    let k = 0;\n    const findNext = () => {\n      while (i < initializedRelationshipsArr.length) {\n        while (j < 2) {\n          let relatedIdentifiers = j === 0 ? getLocalState(initializedRelationshipsArr[i]) : getRemoteState(initializedRelationshipsArr[i]);\n          while (k < relatedIdentifiers.length) {\n            let relatedIdentifier = relatedIdentifiers[k++];\n            if (relatedIdentifier !== null) {\n              return relatedIdentifier;\n            }\n          }\n          k = 0;\n          j++;\n        }\n        j = 0;\n        i++;\n      }\n      return undefined;\n    };\n    return {\n      iterator() {\n        return {\n          next: () => {\n            const value = findNext();\n            return {\n              value,\n              done: value === undefined\n            };\n          }\n        };\n      }\n    };\n  }\n\n  /*\n        Computes the set of Identifiers reachable from this Identifier.\n  \n        Reachability is determined over the relationship graph (ie a graph where\n        nodes are identifiers and edges are belongs to or has many\n        relationships).\n  \n        Returns an array including `this` and all identifiers reachable\n        from `this.identifier`.\n      */\n  function _allRelatedIdentifiers(storeWrapper, originating) {\n    let array = [];\n    let queue = [];\n    let seen = new Set();\n    queue.push(originating);\n    while (queue.length > 0) {\n      let identifier = queue.shift();\n      array.push(identifier);\n      seen.add(identifier);\n      const iterator = _directlyRelatedIdentifiersIterable(storeWrapper, originating).iterator();\n      for (let obj = iterator.next(); !obj.done; obj = iterator.next()) {\n        const identifier = obj.value;\n        if (identifier && !seen.has(identifier)) {\n          seen.add(identifier);\n          queue.push(identifier);\n        }\n      }\n    }\n    return array;\n  }\n  function isMetaDocument(doc) {\n    return !(doc instanceof Error) && !('data' in doc.content) && !('included' in doc.content) && 'meta' in doc.content;\n  }\n  function isErrorDocument(doc) {\n    return doc instanceof Error;\n  }\n  function fromBaseDocument(doc) {\n    const resourceDocument = {};\n    const jsonApiDoc = doc.content;\n    if (jsonApiDoc) {\n      copyLinksAndMeta(resourceDocument, jsonApiDoc);\n    }\n    return resourceDocument;\n  }\n  function fromStructuredError(doc) {\n    const errorDoc = {};\n    if (doc.content) {\n      copyLinksAndMeta(errorDoc, doc.content);\n      if ('errors' in doc.content) {\n        errorDoc.errors = doc.content.errors;\n      } else if (typeof doc.error === 'object' && 'errors' in doc.error) {\n        errorDoc.errors = doc.error.errors;\n      } else {\n        errorDoc.errors = [{\n          title: doc.message\n        }];\n      }\n    }\n    return errorDoc;\n  }\n  function copyLinksAndMeta(target, source) {\n    if ('links' in source) {\n      target.links = source.links;\n    }\n    if ('meta' in source) {\n      target.meta = source.meta;\n    }\n  }\n});","define(\"@ember-data/legacy-compat/-private\", [\"exports\", \"@ember-data/legacy-compat/fetch-manager-025964e9\"], function (_exports, _fetchManager025964e) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"FetchManager\", {\n    enumerable: true,\n    get: function () {\n      return _fetchManager025964e.F;\n    }\n  });\n  Object.defineProperty(_exports, \"SaveOp\", {\n    enumerable: true,\n    get: function () {\n      return _fetchManager025964e.a;\n    }\n  });\n  Object.defineProperty(_exports, \"Snapshot\", {\n    enumerable: true,\n    get: function () {\n      return _fetchManager025964e.b;\n    }\n  });\n  Object.defineProperty(_exports, \"SnapshotRecordArray\", {\n    enumerable: true,\n    get: function () {\n      return _fetchManager025964e.S;\n    }\n  });\n});","define(\"@ember-data/legacy-compat/builders\", [\"exports\", \"@ember/debug\", \"@ember-data/request\", \"@ember/string\", \"@ember-data/store/-private\", \"@ember-data/store\"], function (_exports, _debug, _request, _string, _private, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.findAll = findAllBuilder;\n  _exports.findRecord = findRecordBuilder;\n  _exports.query = queryBuilder;\n  _exports.queryRecord = queryRecordBuilder;\n  _exports.saveRecord = saveRecordBuilder;\n  function isMaybeIdentifier(maybeIdentifier) {\n    return Boolean(maybeIdentifier !== null && typeof maybeIdentifier === 'object' && ('id' in maybeIdentifier && 'type' in maybeIdentifier && maybeIdentifier.id && maybeIdentifier.type || maybeIdentifier.lid));\n  }\n  function normalizeModelName(type) {\n    return (0, _string.dasherize)(type);\n  }\n\n  /**\n   * @module @ember-data/legacy-compat/builders\n   */\n\n  // Keeping unused generics for consistency with 5x types\n\n  /**\n    This function builds a request config to perform a `findAll` request for the given type.\n    When passed to `store.request`, this config will result in the same behavior as a `store.findAll` request.\n    Additionally, it takes the same options as `store.findAll`.\n  \n    All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.\n    This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.\n    To that end, these builders are deprecated and will be removed in a future version of Ember Data.\n  \n    @method findAll\n    @deprecated\n    @public\n    @static\n    @for @ember-data/legacy-compat/builders\n    @param {string} type the name of the resource\n    @param {object} query a query to be used by the adapter\n    @param {FindAllBuilderOptions} [options] optional, may include `adapterOptions` hash which will be passed to adapter.findAll\n    @return {FindAllRequestInput} request config\n  */\n\n  function findAllBuilder(type) {\n    let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    (true && !(type) && (0, _debug.assert)(`You need to pass a model name to the findAll builder`, type));\n    (true && !(typeof type === 'string') && (0, _debug.assert)(`Model name passed to the findAll builder must be a dasherized string instead of ${type}`, typeof type === 'string'));\n    return {\n      op: 'findAll',\n      data: {\n        type: normalizeModelName(type),\n        options: options || {}\n      },\n      cacheOptions: {\n        [_request.SkipCache]: true\n      }\n    };\n  }\n\n  /**\n   * @module @ember-data/legacy-compat/builders\n   */\n\n  /**\n    This function builds a request config to find the record for a given identifier or type and id combination.\n    When passed to `store.request`, this config will result in the same behavior as a `store.findRecord` request.\n    Additionally, it takes the same options as `store.findRecord`, with the exception of `preload` (which is unsupported).\n  \n    **Example 1**\n  \n    ```ts\n    import { findRecord } from '@ember-data/legacy-compat/builders';\n    const { content: post } = await store.request<Post>(findRecord<Post>('post', '1'));\n    ```\n  \n    **Example 2**\n  \n    `findRecord` can be called with a single identifier argument instead of the combination\n    of `type` (modelName) and `id` as separate arguments. You may recognize this combo as\n    the typical pairing from [JSON:API](https://jsonapi.org/format/#document-resource-object-identification)\n  \n    ```ts\n    import { findRecord } from '@ember-data/legacy-compat/builders';\n    const { content: post } = await store.request<Post>(findRecord<Post>({ type: 'post', id }));\n    ```\n  \n    All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.\n    This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.\n    To that end, these builders are deprecated and will be removed in a future version of Ember Data.\n  \n    @method findRecord\n    @deprecated\n    @public\n    @static\n    @for @ember-data/legacy-compat/builders\n    @param {string|object} type - either a string representing the name of the resource or a ResourceIdentifier object containing both the type (a string) and the id (a string) for the record or an lid (a string) of an existing record\n    @param {string|number|object} id - optional object with options for the request only if the first param is a ResourceIdentifier, else the string id of the record to be retrieved\n    @param {FindRecordBuilderOptions} [options] - if the first param is a string this will be the optional options for the request. See examples for available options.\n    @return {FindRecordRequestInput} request config\n  */\n\n  function findRecordBuilder(resource, idOrOptions, options) {\n    (true && !(resource) && (0, _debug.assert)(`You need to pass a modelName or resource identifier as the first argument to the findRecord builder`, resource));\n    if (isMaybeIdentifier(resource)) {\n      options = idOrOptions;\n    } else {\n      (true && !(typeof resource === 'string') && (0, _debug.assert)(`You need to pass a modelName or resource identifier as the first argument to the findRecord builder (passed ${resource})`, typeof resource === 'string'));\n      const type = normalizeModelName(resource);\n      const normalizedId = (0, _private.ensureStringId)(idOrOptions);\n      resource = (0, _private.constructResource)(type, normalizedId);\n    }\n    options = options || {};\n    (true && !(!options.preload) && (0, _debug.assert)('findRecord builder does not support options.preload', !options.preload));\n    return {\n      op: 'findRecord',\n      data: {\n        record: resource,\n        options\n      },\n      cacheOptions: {\n        [_request.SkipCache]: true\n      }\n    };\n  }\n\n  /**\n   * @module @ember-data/legacy-compat/builders\n   */\n\n  /**\n    This function builds a request config for a given type and query object.\n    When passed to `store.request`, this config will result in the same behavior as a `store.query` request.\n    Additionally, it takes the same options as `store.query`.\n  \n    All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.\n    This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.\n    To that end, these builders are deprecated and will be removed in a future version of Ember Data.\n  \n    @method query\n    @deprecated\n    @public\n    @static\n    @for @ember-data/legacy-compat/builders\n    @param {string} type the name of the resource\n    @param {object} query a query to be used by the adapter\n    @param {QueryBuilderOptions} [options] optional, may include `adapterOptions` hash which will be passed to adapter.query\n    @return {QueryRequestInput} request config\n  */\n\n  function queryBuilder(type, query) {\n    let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n    (true && !(type) && (0, _debug.assert)(`You need to pass a model name to the query builder`, type));\n    (true && !(query) && (0, _debug.assert)(`You need to pass a query hash to the query builder`, query));\n    (true && !(typeof type === 'string') && (0, _debug.assert)(`Model name passed to the query builder must be a dasherized string instead of ${type}`, typeof type === 'string'));\n    return {\n      op: 'query',\n      data: {\n        type: normalizeModelName(type),\n        query,\n        options: options\n      },\n      cacheOptions: {\n        [_request.SkipCache]: true\n      }\n    };\n  }\n\n  /**\n    This function builds a request config for a given type and query object.\n    When passed to `store.request`, this config will result in the same behavior as a `store.queryRecord` request.\n    Additionally, it takes the same options as `store.queryRecord`.\n  \n    All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.\n    This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.\n    To that end, these builders are deprecated and will be removed in a future version of Ember Data.\n  \n    @method queryRecord\n    @deprecated\n    @public\n    @static\n    @for @ember-data/legacy-compat/builders\n    @param {string} type the name of the resource\n    @param {object} query a query to be used by the adapter\n    @param {QueryBuilderOptions} [options] optional, may include `adapterOptions` hash which will be passed to adapter.query\n    @return {QueryRecordRequestInput} request config\n  */\n\n  function queryRecordBuilder(type, query, options) {\n    (true && !(type) && (0, _debug.assert)(`You need to pass a model name to the queryRecord builder`, type));\n    (true && !(query) && (0, _debug.assert)(`You need to pass a query hash to the queryRecord builder`, query));\n    (true && !(typeof type === 'string') && (0, _debug.assert)(`Model name passed to the queryRecord builder must be a dasherized string instead of ${type}`, typeof type === 'string'));\n    return {\n      op: 'queryRecord',\n      data: {\n        type: normalizeModelName(type),\n        query,\n        options: options || {}\n      },\n      cacheOptions: {\n        [_request.SkipCache]: true\n      }\n    };\n  }\n\n  /**\n   * @module @ember-data/legacy-compat/builders\n   */\n  function _resourceIsFullDeleted(identifier, cache) {\n    return cache.isDeletionCommitted(identifier) || cache.isNew(identifier) && cache.isDeleted(identifier);\n  }\n  function resourceIsFullyDeleted(instanceCache, identifier) {\n    const cache = instanceCache.cache;\n    return !cache || _resourceIsFullDeleted(identifier, cache);\n  }\n\n  /**\n    This function builds a request config for saving the given record (e.g. creating, updating, or deleting the record).\n    When passed to `store.request`, this config will result in the same behavior as a legacy `store.saveRecord` request.\n    Additionally, it takes the same options as `store.saveRecord`.\n  \n    All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.\n    This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.\n    To that end, these builders are deprecated and will be removed in a future version of Ember Data.\n  \n    @method saveRecord\n    @deprecated\n    @public\n    @static\n    @for @ember-data/legacy-compat/builders\n    @param {object} record a record to save\n    @param {SaveRecordBuilderOptions} options optional, may include `adapterOptions` hash which will be passed to adapter.saveRecord\n    @return {SaveRecordRequestInput} request config\n  */\n  function saveRecordBuilder(record) {\n    let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    const store = (0, _store.storeFor)(record);\n    (true && !(store) && (0, _debug.assert)(`Unable to initiate save for a record in a disconnected state`, store));\n    const identifier = (0, _store.recordIdentifierFor)(record);\n    if (!identifier) {\n      // this commonly means we're disconnected\n      // but just in case we throw here to prevent bad things.\n      throw new Error(`Record Is Disconnected`);\n    }\n    (true && !(store._instanceCache.recordIsLoaded(identifier)) && (0, _debug.assert)(`Cannot initiate a save request for an unloaded record: ${identifier.lid}`, store._instanceCache.recordIsLoaded(identifier)));\n    if (resourceIsFullyDeleted(store._instanceCache, identifier)) {\n      throw new Error('cannot build saveRecord request for deleted record');\n    }\n    if (!options) {\n      options = {};\n    }\n    let operation = 'updateRecord';\n    const cache = store.cache;\n    if (cache.isNew(identifier)) {\n      operation = 'createRecord';\n    } else if (cache.isDeleted(identifier)) {\n      operation = 'deleteRecord';\n    }\n    return {\n      op: operation,\n      data: {\n        options,\n        record: identifier\n      },\n      records: [identifier],\n      cacheOptions: {\n        [_request.SkipCache]: true\n      }\n    };\n  }\n});","define(\"@ember-data/legacy-compat/fetch-manager-025964e9\", [\"exports\", \"@ember/debug\", \"@ember-data/store/-private\", \"@ember-data/request\", \"@embroider/macros/es-compat2\"], function (_exports, _debug, _private, _request, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.S = _exports.F = void 0;\n  _exports._ = _objectIsAlive;\n  _exports.b = _exports.a = void 0;\n  _exports.c = _guard;\n  _exports.d = _bind;\n  _exports.e = assertIdentifierHasId;\n  _exports.g = guardDestroyedStore;\n  _exports.i = iterateData;\n  _exports.n = normalizeResponseHelper;\n  _exports.p = payloadIsNotBlank;\n  /**\n    SnapshotRecordArray is not directly instantiable.\n    Instances are provided to consuming application's\n    adapters for certain requests.\n  \n    @class SnapshotRecordArray\n    @public\n  */class SnapshotRecordArray {\n    /**\n      SnapshotRecordArray is not directly instantiable.\n      Instances are provided to consuming application's\n      adapters and serializers for certain requests.\n       @method constructor\n      @private\n      @constructor\n      @param {Store} store\n      @param {string} type\n      @param options\n     */\n    constructor(store, type) {\n      let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      this.__store = store;\n      /**\n        An array of snapshots\n        @private\n        @property _snapshots\n        @type {Array}\n      */\n      this._snapshots = null;\n\n      /**\n      The modelName of the underlying records for the snapshots in the array, as a Model\n      @property modelName\n      @public\n      @type {Model}\n      */\n      this.modelName = type;\n\n      /**\n        A hash of adapter options passed into the store method for this request.\n         Example\n         ```app/adapters/post.js\n        import MyCustomAdapter from './custom-adapter';\n         export default class PostAdapter extends MyCustomAdapter {\n          findAll(store, type, sinceToken, snapshotRecordArray) {\n            if (snapshotRecordArray.adapterOptions.subscribe) {\n              // ...\n            }\n            // ...\n          }\n        }\n        ```\n         @property adapterOptions\n        @public\n        @type {Object}\n      */\n      this.adapterOptions = options.adapterOptions;\n\n      /**\n        The relationships to include for this request.\n         Example\n         ```app/adapters/application.js\n        import Adapter from '@ember-data/adapter';\n         export default class ApplicationAdapter extends Adapter {\n          findAll(store, type, snapshotRecordArray) {\n            let url = `/${type.modelName}?include=${encodeURIComponent(snapshotRecordArray.include)}`;\n             return fetch(url).then((response) => response.json())\n          }\n        }\n        ```\n         @property include\n        @public\n        @type {String|Array}\n      */\n      this.include = options.include;\n    }\n\n    /**\n      An array of records\n       @property _recordArray\n      @private\n      @type {Array}\n    */\n    get _recordArray() {\n      return this.__store.peekAll(this.modelName);\n    }\n\n    /**\n        Number of records in the array\n         Example\n         ```app/adapters/post.js\n        import JSONAPIAdapter from '@ember-data/adapter/json-api';\n         export default class PostAdapter extends JSONAPIAdapter {\n          shouldReloadAll(store, snapshotRecordArray) {\n            return !snapshotRecordArray.length;\n          }\n        });\n        ```\n         @property length\n        @public\n        @type {Number}\n      */\n    get length() {\n      return this._recordArray.length;\n    }\n\n    /**\n      Get snapshots of the underlying record array\n       Example\n       ```app/adapters/post.js\n      import JSONAPIAdapter from '@ember-data/adapter/json-api';\n       export default class PostAdapter extends JSONAPIAdapter {\n        shouldReloadAll(store, snapshotArray) {\n          let snapshots = snapshotArray.snapshots();\n           return snapshots.any(function(ticketSnapshot) {\n            let timeDiff = moment().diff(ticketSnapshot.attr('lastAccessedAt'), 'minutes');\n            if (timeDiff > 20) {\n              return true;\n            } else {\n              return false;\n            }\n          });\n        }\n      }\n      ```\n       @method snapshots\n      @public\n      @return {Array} Array of snapshots\n    */\n    snapshots() {\n      if (this._snapshots !== null) {\n        return this._snapshots;\n      }\n      const {\n        _fetchManager\n      } = this.__store;\n      this._snapshots = this._recordArray[_private.SOURCE].map(identifier => _fetchManager.createSnapshot(identifier));\n      return this._snapshots;\n    }\n  }\n  _exports.S = SnapshotRecordArray;\n  {\n    /**\n      The type of the underlying records for the snapshots in the array, as a Model\n       @deprecated\n      @property type\n      @public\n      @type {Model}\n    */\n    Object.defineProperty(SnapshotRecordArray.prototype, 'type', {\n      get() {\n        (true && !(false) && (0, _debug.deprecate)(`Using SnapshotRecordArray.type to access the ModelClass for a record is deprecated. Use store.modelFor(<modelName>) instead.`, false, {\n          id: 'ember-data:deprecate-snapshot-model-class-access',\n          until: '5.0',\n          for: 'ember-data',\n          since: {\n            available: '4.5.0',\n            enabled: '4.5.0'\n          }\n        })); // @ts-expect-error\n        return this._recordArray.type;\n      }\n    });\n  }\n  function _bind(fn) {\n    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      args[_key - 1] = arguments[_key];\n    }\n    return function () {\n      return fn.apply(undefined, args);\n    };\n  }\n  function _guard(promise, test) {\n    let guarded = promise.finally(() => {\n      if (!test()) {\n        guarded._subscribers ? guarded._subscribers.length = 0 : null;\n      }\n    });\n    return guarded;\n  }\n  function _objectIsAlive(object) {\n    return !(object.isDestroyed || object.isDestroying);\n  }\n  function guardDestroyedStore(promise, store) {\n    return promise.then(_v => {\n      if (!_objectIsAlive(store)) {\n        {\n          (true && !(false) && (0, _debug.deprecate)(`A Promise did not resolve by the time the store was destroyed. This will error in a future release.`, false, {\n            id: 'ember-data:rsvp-unresolved-async',\n            until: '5.0',\n            for: '@ember-data/store',\n            since: {\n              available: '4.5',\n              enabled: '4.5'\n            }\n          }));\n        }\n      }\n      return _v;\n    });\n  }\n  function assertIdentifierHasId(identifier) {\n    (true && !(identifier.id !== null) && (0, _debug.assert)(`Attempted to schedule a fetch for a record without an id.`, identifier.id !== null));\n  }\n  function iterateData(data, fn) {\n    if (Array.isArray(data)) {\n      return data.map(fn);\n    } else {\n      return fn(data);\n    }\n  }\n  function payloadIsNotBlank(adapterPayload) {\n    if (Array.isArray(adapterPayload)) {\n      return true;\n    } else {\n      return Object.keys(adapterPayload || {}).length !== 0;\n    }\n  }\n\n  /**\n    This is a helper method that validates a JSON API top-level document\n  \n    The format of a document is described here:\n    http://jsonapi.org/format/#document-top-level\n  \n    @internal\n  */\n  function validateDocumentStructure(doc) {\n    {\n      let errors = [];\n      if (!doc || typeof doc !== 'object') {\n        errors.push('Top level of a JSON API document must be an object');\n      } else {\n        if (!('data' in doc) && !('errors' in doc) && !('meta' in doc)) {\n          errors.push('One or more of the following keys must be present: \"data\", \"errors\", \"meta\".');\n        } else {\n          if ('data' in doc && 'errors' in doc) {\n            errors.push('Top level keys \"errors\" and \"data\" cannot both be present in a JSON API document');\n          }\n        }\n        if ('data' in doc) {\n          if (!(doc.data === null || Array.isArray(doc.data) || typeof doc.data === 'object')) {\n            errors.push('data must be null, an object, or an array');\n          }\n        }\n        if ('meta' in doc) {\n          if (typeof doc.meta !== 'object') {\n            errors.push('meta must be an object');\n          }\n        }\n        if ('errors' in doc) {\n          if (!Array.isArray(doc.errors)) {\n            errors.push('errors must be an array');\n          }\n        }\n        if ('links' in doc) {\n          if (typeof doc.links !== 'object') {\n            errors.push('links must be an object');\n          }\n        }\n        if ('jsonapi' in doc) {\n          if (typeof doc.jsonapi !== 'object') {\n            errors.push('jsonapi must be an object');\n          }\n        }\n        if ('included' in doc) {\n          if (typeof doc.included !== 'object') {\n            errors.push('included must be an array');\n          }\n        }\n      }\n      (true && !(errors.length === 0) && (0, _debug.assert)(`Response must be normalized to a valid JSON API document:\\n\\t* ${errors.join('\\n\\t* ')}`, errors.length === 0));\n    }\n  }\n  function normalizeResponseHelper(serializer, store, modelClass, payload, id, requestType) {\n    let normalizedResponse = serializer ? serializer.normalizeResponse(store, modelClass, payload, id, requestType) : payload;\n    validateDocumentStructure(normalizedResponse);\n    return normalizedResponse;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  /**\n    Snapshot is not directly instantiable.\n    Instances are provided to a consuming application's\n    adapters and serializers for certain requests.\n  \n    Snapshots are only available when using `@ember-data/legacy-compat`\n    for legacy compatibility with adapters and serializers.\n  \n    @class Snapshot\n    @public\n  */\n  class Snapshot {\n    /**\n     * @method constructor\n     * @constructor\n     * @private\n     * @param options\n     * @param identifier\n     * @param _store\n     */\n    constructor(options, identifier, store) {\n      this._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      const hasRecord = !!store._instanceCache.peek({\n        identifier,\n        bucket: 'record'\n      });\n      this.modelName = identifier.type;\n\n      /**\n        The unique RecordIdentifier associated with this Snapshot.\n         @property identifier\n        @public\n        @type {StableRecordIdentifier}\n      */\n      this.identifier = identifier;\n\n      /*\n        If the we do not yet have a record, then we are\n        likely a snapshot being provided to a find request, so we\n        populate __attributes lazily. Else, to preserve the \"moment\n        in time\" in which a snapshot is created, we greedily grab\n        the values.\n       */\n      if (hasRecord) {\n        this._attributes;\n      }\n\n      /**\n       The id of the snapshot's underlying record\n        Example\n        ```javascript\n       // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n       postSnapshot.id; // => '1'\n       ```\n        @property id\n       @type {String}\n       @public\n       */\n      this.id = identifier.id;\n\n      /**\n       A hash of adapter options\n       @property adapterOptions\n       @type {Object}\n       @public\n       */\n      this.adapterOptions = options.adapterOptions;\n\n      /**\n       If `include` was passed to the options hash for the request, the value\n       would be available here.\n        @property include\n       @type {String|Array}\n       @public\n       */\n      this.include = options.include;\n\n      /**\n       The name of the type of the underlying record for this snapshot, as a string.\n        @property modelName\n       @type {String}\n       @public\n       */\n      this.modelName = identifier.type;\n      if (hasRecord) {\n        const cache = this._store._instanceCache.getResourceCache(identifier);\n        this._changedAttributes = cache.changedAttrs(identifier);\n      }\n    }\n\n    /**\n     The underlying record for this snapshot. Can be used to access methods and\n     properties defined on the record.\n      Example\n      ```javascript\n     let json = snapshot.record.toJSON();\n     ```\n      @property record\n     @type {Model}\n     @public\n     */\n    get record() {\n      const record = this._store.peekRecord(this.identifier);\n      (true && !(record !== null) && (0, _debug.assert)(`Record ${this.identifier.type} ${String(this.identifier.id)} (${this.identifier.lid}) is not yet loaded and thus cannot be accessed from the Snapshot during serialization`, record !== null));\n      return record;\n    }\n    get _attributes() {\n      if (this.__attributes !== null) {\n        return this.__attributes;\n      }\n      const attributes = this.__attributes = Object.create(null);\n      const {\n        identifier\n      } = this;\n      const attrs = Object.keys(this._store.getSchemaDefinitionService().attributesDefinitionFor(identifier));\n      const cache = this._store._instanceCache.getResourceCache(identifier);\n      attrs.forEach(keyName => {\n        attributes[keyName] = cache.getAttr(identifier, keyName);\n      });\n      return attributes;\n    }\n\n    /**\n     The type of the underlying record for this snapshot, as a Model.\n      @property type\n      @public\n      @deprecated\n     @type {Model}\n     */\n\n    get isNew() {\n      const cache = this._store._instanceCache.peek({\n        identifier: this.identifier,\n        bucket: 'resourceCache'\n      });\n      return (cache === null || cache === void 0 ? void 0 : cache.isNew(this.identifier)) || false;\n    }\n\n    /**\n     Returns the value of an attribute.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n     postSnapshot.attr('author'); // => 'Tomster'\n     postSnapshot.attr('title'); // => 'Ember.js rocks'\n     ```\n      Note: Values are loaded eagerly and cached when the snapshot is created.\n      @method attr\n     @param {String} keyName\n     @return {Object} The attribute value or undefined\n     @public\n     */\n    attr(keyName) {\n      if (keyName in this._attributes) {\n        return this._attributes[keyName];\n      }\n      (true && !(false) && (0, _debug.assert)(`Model '${this.identifier.lid}' has no attribute named '${keyName}' defined.`, false));\n    }\n\n    /**\n     Returns all attributes and their corresponding values.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n     postSnapshot.attributes(); // => { author: 'Tomster', title: 'Ember.js rocks' }\n     ```\n      @method attributes\n     @return {Object} All attributes of the current snapshot\n     @public\n     */\n    attributes() {\n      return {\n        ...this._attributes\n      };\n    }\n\n    /**\n     Returns all changed attributes and their old and new values.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n     postModel.set('title', 'Ember.js rocks!');\n     postSnapshot.changedAttributes(); // => { title: ['Ember.js rocks', 'Ember.js rocks!'] }\n     ```\n      @method changedAttributes\n     @return {Object} All changed attributes of the current snapshot\n     @public\n     */\n    changedAttributes() {\n      let changedAttributes = Object.create(null);\n      if (!this._changedAttributes) {\n        return changedAttributes;\n      }\n      let changedAttributeKeys = Object.keys(this._changedAttributes);\n      for (let i = 0, length = changedAttributeKeys.length; i < length; i++) {\n        let key = changedAttributeKeys[i];\n        changedAttributes[key] = this._changedAttributes[key].slice();\n      }\n      return changedAttributes;\n    }\n\n    /**\n     Returns the current value of a belongsTo relationship.\n      `belongsTo` takes an optional hash of options as a second parameter,\n     currently supported options are:\n      - `id`: set to `true` if you only want the ID of the related record to be\n     returned.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, title: 'Hello World' });\n     // store.createRecord('comment', { body: 'Lorem ipsum', post: post });\n     commentSnapshot.belongsTo('post'); // => Snapshot\n     commentSnapshot.belongsTo('post', { id: true }); // => '1'\n      // store.push('comment', { id: 1, body: 'Lorem ipsum' });\n     commentSnapshot.belongsTo('post'); // => undefined\n     ```\n      Calling `belongsTo` will return a new Snapshot as long as there's any known\n     data for the relationship available, such as an ID. If the relationship is\n     known but unset, `belongsTo` will return `null`. If the contents of the\n     relationship is unknown `belongsTo` will return `undefined`.\n      Note: Relationships are loaded lazily and cached upon first access.\n      @method belongsTo\n     @param {String} keyName\n     @param {Object} [options]\n     @public\n     @return {(Snapshot|String|null|undefined)} A snapshot or ID of a known\n     relationship or null if the relationship is known but unset. undefined\n     will be returned if the contents of the relationship is unknown.\n     */\n    belongsTo(keyName, options) {\n      let returnModeIsId = !!(options && options.id);\n      let result;\n      let store = this._store;\n      if (returnModeIsId === true && keyName in this._belongsToIds) {\n        return this._belongsToIds[keyName];\n      }\n      if (returnModeIsId === false && keyName in this._belongsToRelationships) {\n        return this._belongsToRelationships[keyName];\n      }\n      let relationshipMeta = store.getSchemaDefinitionService().relationshipsDefinitionFor({\n        type: this.modelName\n      })[keyName];\n      (true && !(relationshipMeta && relationshipMeta.kind === 'belongsTo') && (0, _debug.assert)(`Model '${this.identifier.lid}' 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      // this check is not a regression in behavior because relationships don't currently\n      // function without access to intimate API contracts between RecordData and Model.\n      // This is a requirement we should fix as soon as the relationship layer does not require\n      // this intimate API usage.\n      const graphFor = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).graphFor;\n      const {\n        identifier\n      } = this;\n      const relationship = graphFor(this._store).get(identifier, keyName);\n      (true && !(relationship) && (0, _debug.assert)(`You looked up the ${keyName} belongsTo relationship for { type: ${identifier.type}, id: ${identifier.id || ''}, lid: ${identifier.lid} but no such relationship was found.`, relationship));\n      (true && !(relationship.definition.kind === 'belongsTo') && (0, _debug.assert)(`You looked up the ${keyName} belongsTo relationship for { type: ${identifier.type}, id: ${identifier.id || ''}, lid: ${identifier.lid} but that relationship is a hasMany.`, relationship.definition.kind === 'belongsTo'));\n      let value = relationship.getData();\n      let data = value && value.data;\n      let inverseIdentifier = data ? store.identifierCache.getOrCreateRecordIdentifier(data) : null;\n      if (value && value.data !== undefined) {\n        const cache = inverseIdentifier && store._instanceCache.getResourceCache(inverseIdentifier);\n        if (inverseIdentifier && !cache.isDeleted(inverseIdentifier)) {\n          if (returnModeIsId) {\n            result = inverseIdentifier.id;\n          } else {\n            result = store._fetchManager.createSnapshot(inverseIdentifier);\n          }\n        } else {\n          result = null;\n        }\n      }\n      if (returnModeIsId) {\n        this._belongsToIds[keyName] = result;\n      } else {\n        this._belongsToRelationships[keyName] = result;\n      }\n      return result;\n    }\n\n    /**\n     Returns the current value of a hasMany relationship.\n      `hasMany` takes an optional hash of options as a second parameter,\n     currently supported options are:\n      - `ids`: set to `true` if you only want the IDs of the related records to be\n     returned.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, title: 'Hello World', comments: [2, 3] });\n     postSnapshot.hasMany('comments'); // => [Snapshot, Snapshot]\n     postSnapshot.hasMany('comments', { ids: true }); // => ['2', '3']\n      // store.push('post', { id: 1, title: 'Hello World' });\n     postSnapshot.hasMany('comments'); // => undefined\n     ```\n      Note: Relationships are loaded lazily and cached upon first access.\n      @method hasMany\n     @param {String} keyName\n     @param {Object} [options]\n     @public\n     @return {(Array|undefined)} An array of snapshots or IDs of a known\n     relationship or an empty array if the relationship is known but unset.\n     undefined will be returned if the contents of the relationship is unknown.\n     */\n    hasMany(keyName, options) {\n      let returnModeIsIds = !!(options && options.ids);\n      let results;\n      let cachedIds = this._hasManyIds[keyName];\n      let cachedSnapshots = this._hasManyRelationships[keyName];\n      if (returnModeIsIds === true && keyName in this._hasManyIds) {\n        return cachedIds;\n      }\n      if (returnModeIsIds === false && keyName in this._hasManyRelationships) {\n        return cachedSnapshots;\n      }\n      let store = this._store;\n      let relationshipMeta = store.getSchemaDefinitionService().relationshipsDefinitionFor({\n        type: this.modelName\n      })[keyName];\n      (true && !(relationshipMeta && relationshipMeta.kind === 'hasMany') && (0, _debug.assert)(`Model '${this.identifier.lid}' 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      // this check is not a regression in behavior because relationships don't currently\n      // function without access to intimate API contracts between RecordData and Model.\n      // This is a requirement we should fix as soon as the relationship layer does not require\n      // this intimate API usage.\n      const graphFor = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).graphFor;\n      const {\n        identifier\n      } = this;\n      const relationship = graphFor(this._store).get(identifier, keyName);\n      (true && !(relationship) && (0, _debug.assert)(`You looked up the ${keyName} hasMany relationship for { type: ${identifier.type}, id: ${identifier.id || ''}, lid: ${identifier.lid} but no such relationship was found.`, relationship));\n      (true && !(relationship.definition.kind === 'hasMany') && (0, _debug.assert)(`You looked up the ${keyName} hasMany relationship for { type: ${identifier.type}, id: ${identifier.id || ''}, lid: ${identifier.lid} but that relationship is a belongsTo.`, relationship.definition.kind === 'hasMany'));\n      let value = relationship.getData();\n      if (value.data) {\n        results = [];\n        value.data.forEach(member => {\n          let inverseIdentifier = store.identifierCache.getOrCreateRecordIdentifier(member);\n          const cache = store._instanceCache.getResourceCache(inverseIdentifier);\n          if (!cache.isDeleted(inverseIdentifier)) {\n            if (returnModeIsIds) {\n              results.push(inverseIdentifier.id);\n            } else {\n              results.push(store._fetchManager.createSnapshot(inverseIdentifier));\n            }\n          }\n        });\n      }\n\n      // we assign even if `undefined` so that we don't reprocess the relationship\n      // on next access. This works with the `keyName in` checks above.\n      if (returnModeIsIds) {\n        this._hasManyIds[keyName] = results;\n      } else {\n        this._hasManyRelationships[keyName] = results;\n      }\n      return results;\n    }\n\n    /**\n      Iterates through all the attributes of the model, calling the passed\n      function on each attribute.\n       Example\n       ```javascript\n      snapshot.eachAttribute(function(name, meta) {\n        // ...\n      });\n      ```\n       @method eachAttribute\n      @param {Function} callback the callback to execute\n      @param {Object} [binding] the value to which the callback's `this` should be bound\n      @public\n    */\n    eachAttribute(callback, binding) {\n      let attrDefs = this._store.getSchemaDefinitionService().attributesDefinitionFor(this.identifier);\n      Object.keys(attrDefs).forEach(key => {\n        callback.call(binding, key, attrDefs[key]);\n      });\n    }\n\n    /**\n      Iterates through all the relationships of the model, calling the passed\n      function on each relationship.\n       Example\n       ```javascript\n      snapshot.eachRelationship(function(name, relationship) {\n        // ...\n      });\n      ```\n       @method eachRelationship\n      @param {Function} callback the callback to execute\n      @param {Object} [binding] the value to which the callback's `this` should be bound\n      @public\n    */\n    eachRelationship(callback, binding) {\n      let relationshipDefs = this._store.getSchemaDefinitionService().relationshipsDefinitionFor(this.identifier);\n      Object.keys(relationshipDefs).forEach(key => {\n        callback.call(binding, key, relationshipDefs[key]);\n      });\n    }\n\n    /**\n      Serializes the snapshot using the serializer for the model.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n       export default Adapter.extend({\n        createRecord(store, type, snapshot) {\n          let data = snapshot.serialize({ includeId: true });\n          let url = `/${type.modelName}`;\n           return fetch(url, {\n            method: 'POST',\n            body: data,\n          }).then((response) => response.json())\n        }\n      });\n      ```\n       @method serialize\n      @param {Object} options\n      @return {Object} an object whose values are primitive JSON values only\n      @public\n     */\n    serialize(options) {\n      const serializer = this._store.serializerFor(this.modelName);\n      (true && !(serializer) && (0, _debug.assert)(`Cannot serialize record, no serializer found`, serializer));\n      return serializer.serialize(this, options);\n    }\n  }\n  _exports.b = Snapshot;\n  {\n    Object.defineProperty(Snapshot.prototype, 'type', {\n      get() {\n        (true && !(false) && (0, _debug.deprecate)(`Using Snapshot.type to access the ModelClass for a record is deprecated. Use store.modelFor(<modelName>) instead.`, false, {\n          id: 'ember-data:deprecate-snapshot-model-class-access',\n          until: '5.0',\n          for: 'ember-data',\n          since: {\n            available: '4.5.0',\n            enabled: '4.5.0'\n          }\n        }));\n        return this._store.modelFor(this.identifier.type);\n      }\n    });\n  }\n  const SaveOp = _exports.a = Symbol('SaveOp');\n  class FetchManager {\n    // fetches pending in the runloop, waiting to be coalesced\n\n    constructor(store) {\n      this._store = store;\n      // used to keep track of all the find requests that need to be coalesced\n      this._pendingFetch = new Map();\n      this.requestCache = store.getRequestStateService();\n      this.isDestroyed = false;\n    }\n    createSnapshot(identifier) {\n      let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      return new Snapshot(options, identifier, this._store);\n    }\n\n    /**\n      This method is called by `record.save`, and gets passed a\n      resolver for the promise that `record.save` returns.\n       It schedules saving to happen at the end of the run loop.\n       @internal\n    */\n    scheduleSave(identifier, options) {\n      let resolver = (0, _request.createDeferred)();\n      let query = {\n        op: 'saveRecord',\n        recordIdentifier: identifier,\n        options\n      };\n      let queryRequest = {\n        data: [query]\n      };\n      const snapshot = this.createSnapshot(identifier, options);\n      const pendingSaveItem = {\n        snapshot: snapshot,\n        resolver: resolver,\n        identifier,\n        options,\n        queryRequest\n      };\n      const monitored = this.requestCache._enqueue(resolver.promise, pendingSaveItem.queryRequest);\n      _flushPendingSave(this._store, pendingSaveItem);\n      return monitored;\n    }\n    scheduleFetch(identifier, options, request) {\n      let query = {\n        op: 'findRecord',\n        recordIdentifier: identifier,\n        options\n      };\n      let queryRequest = {\n        data: [query]\n      };\n      let pendingFetch = this.getPendingFetch(identifier, options);\n      if (pendingFetch) {\n        return pendingFetch;\n      }\n      let modelName = identifier.type;\n      const resolver = (0, _request.createDeferred)();\n      const pendingFetchItem = {\n        identifier,\n        resolver,\n        options,\n        queryRequest\n      };\n      let resolverPromise = resolver.promise;\n      const store = this._store;\n      const isInitialLoad = !store._instanceCache.recordIsLoaded(identifier); // we don't use isLoading directly because we are the request\n\n      const monitored = this.requestCache._enqueue(resolverPromise, pendingFetchItem.queryRequest);\n      let promise = monitored.then(payload => {\n        // ensure that regardless of id returned we assign to the correct record\n        if (payload.data && !Array.isArray(payload.data)) {\n          payload.data.lid = identifier.lid;\n        }\n\n        // additional data received in the payload\n        // may result in the merging of identifiers (and thus records)\n        let potentiallyNewIm = store._push(payload, options.reload);\n        if (potentiallyNewIm && !Array.isArray(potentiallyNewIm)) {\n          return potentiallyNewIm;\n        }\n        return identifier;\n      }, error => {\n        (true && !(!store.isDestroyed) && (0, _debug.assert)(`Async Leak Detected: Expected the store to not be destroyed`, !store.isDestroyed));\n        const cache = store._instanceCache.peek({\n          identifier,\n          bucket: 'resourceCache'\n        });\n        if (!cache || cache.isEmpty(identifier) || isInitialLoad) {\n          let isReleasable = true;\n          {\n            if (!cache) {\n              const graphFor = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).graphFor;\n              const graph = graphFor(store);\n              isReleasable = graph.isReleasable(identifier);\n              if (!isReleasable) {\n                graph.unload(identifier, true);\n              }\n            }\n          }\n          if (cache || isReleasable) {\n            store._enableAsyncFlush = true;\n            store._instanceCache.unloadRecord(identifier);\n            store._enableAsyncFlush = null;\n          }\n        }\n        throw error;\n      });\n      if (this._pendingFetch.size === 0) {\n        void new Promise(resolve => setTimeout(resolve, 0)).then(() => {\n          this.flushAllPendingFetches();\n        });\n      }\n      let fetchesByType = this._pendingFetch;\n      let fetchesById = fetchesByType.get(modelName);\n      if (!fetchesById) {\n        fetchesById = new Map();\n        fetchesByType.set(modelName, fetchesById);\n      }\n      let requestsForIdentifier = fetchesById.get(identifier);\n      if (!requestsForIdentifier) {\n        requestsForIdentifier = [];\n        fetchesById.set(identifier, requestsForIdentifier);\n      }\n      requestsForIdentifier.push(pendingFetchItem);\n      {\n        if (!request.disableTestWaiter) {\n          const {\n            waitForPromise\n          } = (0, _esCompat.default)(require(\"@ember/test-waiters\"));\n          promise = waitForPromise(promise);\n        }\n      }\n      pendingFetchItem.promise = promise;\n      return promise;\n    }\n    getPendingFetch(identifier, options) {\n      var _this$_pendingFetch$g;\n      let pendingFetches = (_this$_pendingFetch$g = this._pendingFetch.get(identifier.type)) === null || _this$_pendingFetch$g === void 0 ? void 0 : _this$_pendingFetch$g.get(identifier);\n\n      // We already have a pending fetch for this\n      if (pendingFetches) {\n        let matchingPendingFetch = pendingFetches.find(fetch => isSameRequest(options, fetch.options));\n        if (matchingPendingFetch) {\n          return matchingPendingFetch.promise;\n        }\n      }\n    }\n    flushAllPendingFetches() {\n      if (this.isDestroyed) {\n        return;\n      }\n      const store = this._store;\n      this._pendingFetch.forEach((fetchItem, type) => _flushPendingFetchForType(store, fetchItem, type));\n      this._pendingFetch.clear();\n    }\n    fetchDataIfNeededForIdentifier(identifier) {\n      let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      let request = arguments.length > 2 ? arguments[2] : undefined;\n      // pre-loading will change the isEmpty value\n      const isEmpty = _isEmpty(this._store._instanceCache, identifier);\n      const isLoading = _isLoading(this._store._instanceCache, identifier);\n      let promise;\n      if (isEmpty) {\n        assertIdentifierHasId(identifier);\n        {\n          promise = this.scheduleFetch(identifier, Object.assign({}, options, {\n            reload: true\n          }), request);\n        }\n      } else if (isLoading) {\n        promise = this.getPendingFetch(identifier, options);\n        (true && !(promise) && (0, _debug.assert)(`Expected to find a pending request for a record in the loading state, but found none`, promise));\n      } else {\n        promise = Promise.resolve(identifier);\n      }\n      return promise;\n    }\n    destroy() {\n      this.isDestroyed = true;\n    }\n  }\n  _exports.F = FetchManager;\n  function _isEmpty(instanceCache, identifier) {\n    const cache = instanceCache.__instances.resourceCache.get(identifier);\n    if (!cache) {\n      return true;\n    }\n    const isNew = cache.isNew(identifier);\n    const isDeleted = cache.isDeleted(identifier);\n    const isEmpty = cache.isEmpty(identifier);\n    return (!isNew || isDeleted) && isEmpty;\n  }\n  function _isLoading(cache, identifier) {\n    const req = cache.store.getRequestStateService();\n    // const fulfilled = req.getLastRequestForRecord(identifier);\n    const isLoaded = cache.recordIsLoaded(identifier);\n    return !isLoaded &&\n    // fulfilled === null &&\n    req.getPendingRequestsForRecord(identifier).some(req => req.type === 'query');\n  }\n  function includesSatisfies(current, existing) {\n    // if we have no includes we are good\n    if (!(current !== null && current !== void 0 && current.length)) {\n      return true;\n    }\n\n    // if we are here we have includes,\n    // and if existing has no includes then we will need a new request\n    if (!(existing !== null && existing !== void 0 && existing.length)) {\n      return false;\n    }\n    const arrCurrent = (Array.isArray(current) ? current : current.split(',')).sort();\n    const arrExisting = (Array.isArray(existing) ? existing : existing.split(',')).sort();\n\n    // includes are identical\n    if (arrCurrent.join(',') === arrExisting.join(',')) {\n      return true;\n    }\n\n    // if all of current includes are in existing includes then we are good\n    // so if we find one that is not in existing then we need a new request\n    for (let i = 0; i < arrCurrent.length; i++) {\n      if (!arrExisting.includes(arrCurrent[i])) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function optionsSatisfies(current, existing) {\n    return !current || current === existing || Object.keys(current).length === 0;\n  }\n\n  // this function helps resolve whether we have a pending request that we should use instead\n  function isSameRequest() {\n    let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    let existingOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    return optionsSatisfies(options.adapterOptions, existingOptions.adapterOptions) && includesSatisfies(options.include, existingOptions.include);\n  }\n  function _findMany(store, adapter, modelName, snapshots) {\n    let modelClass = store.modelFor(modelName); // `adapter.findMany` gets the modelClass still\n    let promise = Promise.resolve().then(() => {\n      const ids = snapshots.map(s => s.id);\n      (true && !(ids.every(v => v !== null)) && (0, _debug.assert)(`Cannot fetch a record without an id`, ids.every(v => v !== null))); // eslint-disable-next-line @typescript-eslint/unbound-method\n      (true && !(adapter.findMany) && (0, _debug.assert)(`Expected this adapter to implement findMany for coalescing`, adapter.findMany));\n      let ret = adapter.findMany(store, modelClass, ids, snapshots);\n      (true && !(ret !== undefined) && (0, _debug.assert)('adapter.findMany returned undefined, this was very likely a mistake', ret !== undefined));\n      return ret;\n    });\n    promise = guardDestroyedStore(promise, store);\n    return promise.then(adapterPayload => {\n      (true && !(!!payloadIsNotBlank(adapterPayload)) && (0, _debug.assert)(`You made a 'findMany' request for '${modelName}' records with ids '[${snapshots.map(s => s.id).join(',')}]', but the adapter's response did not have any data`, !!payloadIsNotBlank(adapterPayload)));\n      let serializer = store.serializerFor(modelName);\n      let payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findMany');\n      return payload;\n    });\n  }\n  function rejectFetchedItems(fetchMap, snapshots, error) {\n    for (let i = 0, l = snapshots.length; i < l; i++) {\n      let snapshot = snapshots[i];\n      let pair = fetchMap.get(snapshot);\n      if (pair) {\n        pair.resolver.reject(error || new Error(`Expected: '<${snapshot.modelName}:${snapshot.id}>' to be present in the adapter provided payload, but it was not found.`));\n      }\n    }\n  }\n  function handleFoundRecords(store, fetchMap, snapshots, coalescedPayload) {\n    /*\n      It is possible that the same ID is included multiple times\n      via multiple snapshots. This happens when more than one\n      options hash was supplied, each of which must be uniquely\n      accounted for.\n       However, since we can't map from response to a specific\n      options object, we resolve all snapshots by id with\n      the first response we see.\n    */\n    let snapshotsById = new Map();\n    for (let i = 0; i < snapshots.length; i++) {\n      let id = snapshots[i].id;\n      let snapshotGroup = snapshotsById.get(id);\n      if (!snapshotGroup) {\n        snapshotGroup = [];\n        snapshotsById.set(id, snapshotGroup);\n      }\n      snapshotGroup.push(snapshots[i]);\n    }\n    const included = Array.isArray(coalescedPayload.included) ? coalescedPayload.included : [];\n\n    // resolve found records\n    let resources = coalescedPayload.data;\n    for (let i = 0, l = resources.length; i < l; i++) {\n      let resource = resources[i];\n      let snapshotGroup = snapshotsById.get(resource.id);\n      snapshotsById.delete(resource.id);\n      if (!snapshotGroup) {\n        // TODO consider whether this should be a deprecation/assertion\n        included.push(resource);\n      } else {\n        snapshotGroup.forEach(snapshot => {\n          let pair = fetchMap.get(snapshot);\n          let resolver = pair.resolver;\n          resolver.resolve({\n            data: resource\n          });\n        });\n      }\n    }\n    if (included.length > 0) {\n      store._push({\n        data: null,\n        included\n      }, true);\n    }\n    if (snapshotsById.size === 0) {\n      return;\n    }\n\n    // reject missing records\n    let rejected = [];\n    snapshotsById.forEach(snapshots => {\n      rejected.push(...snapshots);\n    });\n    (true && (0, _debug.warn)('Ember Data expected to find records with the following ids in the adapter response from findMany but they were missing: [ \"' + [...snapshotsById.values()].map(r => r[0].id).join('\", \"') + '\" ]', {\n      id: 'ds.store.missing-records-from-adapter'\n    }));\n    rejectFetchedItems(fetchMap, rejected);\n  }\n  function _fetchRecord(store, adapter, fetchItem) {\n    let identifier = fetchItem.identifier;\n    let modelName = identifier.type;\n    (true && !(adapter) && (0, _debug.assert)(`You tried to find a record but you have no adapter (for ${modelName})`, adapter));\n    (true && !(typeof adapter.findRecord === 'function') && (0, _debug.assert)(`You tried to find a record but your adapter (for ${modelName}) does not implement 'findRecord'`, typeof adapter.findRecord === 'function'));\n    let snapshot = store._fetchManager.createSnapshot(identifier, fetchItem.options);\n    let klass = store.modelFor(identifier.type);\n    let id = identifier.id;\n    let promise = Promise.resolve().then(() => {\n      return adapter.findRecord(store, klass, identifier.id, snapshot);\n    });\n    promise = promise.then(adapterPayload => {\n      (true && !(_objectIsAlive(store)) && (0, _debug.assert)(`Async Leak Detected: Expected the store to not be destroyed`, _objectIsAlive(store)));\n      (true && !(!!payloadIsNotBlank(adapterPayload)) && (0, _debug.assert)(`You made a 'findRecord' request for a '${modelName}' with id '${id}', but the adapter's response did not have any data`, !!payloadIsNotBlank(adapterPayload)));\n      let serializer = store.serializerFor(modelName);\n      let payload = normalizeResponseHelper(serializer, store, klass, adapterPayload, id, 'findRecord');\n      (true && !(!Array.isArray(payload.data)) && (0, _debug.assert)(`Ember Data expected the primary data returned from a 'findRecord' response to be an object but instead it found an array.`, !Array.isArray(payload.data)));\n      (true && !('data' in payload && payload.data !== null && typeof payload.data === 'object') && (0, _debug.assert)(`The 'findRecord' request for ${modelName}:${id} resolved indicating success but contained no primary data. To indicate a 404 not found you should either reject the promise returned by the adapter's findRecord method or throw a NotFoundError.`, 'data' in payload && payload.data !== null && typeof payload.data === 'object'));\n      (true && (0, _debug.warn)(`You requested a record of type '${modelName}' with id '${id}' but the adapter returned a payload with primary data having an id of '${payload.data.id}'. Use 'store.findRecord()' when the requested id is the same as the one returned by the adapter. In other cases use 'store.queryRecord()' instead.`, (0, _private.coerceId)(payload.data.id) === (0, _private.coerceId)(id), {\n        id: 'ds.store.findRecord.id-mismatch'\n      }));\n      return payload;\n    });\n    fetchItem.resolver.resolve(promise);\n  }\n  function _processCoalescedGroup(store, fetchMap, group, adapter, modelName) {\n    if (group.length > 1) {\n      _findMany(store, adapter, modelName, group).then(payloads => {\n        handleFoundRecords(store, fetchMap, group, payloads);\n      }).catch(error => {\n        rejectFetchedItems(fetchMap, group, error);\n      });\n    } else if (group.length === 1) {\n      _fetchRecord(store, adapter, fetchMap.get(group[0]));\n    } else {\n      (true && !(false) && (0, _debug.assert)(\"You cannot return an empty array from adapter's method groupRecordsForFindMany\", false));\n    }\n  }\n  function _flushPendingFetchForType(store, pendingFetchMap, modelName) {\n    let adapter = store.adapterFor(modelName);\n    let shouldCoalesce = !!adapter.findMany && adapter.coalesceFindRequests;\n    if (shouldCoalesce) {\n      const pendingFetchItems = [];\n      pendingFetchMap.forEach((requestsForIdentifier, identifier) => {\n        if (requestsForIdentifier.length > 1) {\n          return;\n        }\n\n        // remove this entry from the map so it's not processed again\n        pendingFetchMap.delete(identifier);\n        pendingFetchItems.push(requestsForIdentifier[0]);\n      });\n      let totalItems = pendingFetchItems.length;\n      if (totalItems > 1) {\n        let snapshots = new Array(totalItems);\n        let fetchMap = new Map();\n        for (let i = 0; i < totalItems; i++) {\n          let fetchItem = pendingFetchItems[i];\n          snapshots[i] = store._fetchManager.createSnapshot(fetchItem.identifier, fetchItem.options);\n          fetchMap.set(snapshots[i], fetchItem);\n        }\n        let groups;\n        if (adapter.groupRecordsForFindMany) {\n          groups = adapter.groupRecordsForFindMany(store, snapshots);\n        } else {\n          groups = [snapshots];\n        }\n        for (let i = 0, l = groups.length; i < l; i++) {\n          _processCoalescedGroup(store, fetchMap, groups[i], adapter, modelName);\n        }\n      } else if (totalItems === 1) {\n        void _fetchRecord(store, adapter, pendingFetchItems[0]);\n      }\n    }\n    pendingFetchMap.forEach(pendingFetchItems => {\n      pendingFetchItems.forEach(pendingFetchItem => {\n        void _fetchRecord(store, adapter, pendingFetchItem);\n      });\n    });\n  }\n  function _flushPendingSave(store, pending) {\n    const {\n      snapshot,\n      resolver,\n      identifier,\n      options\n    } = pending;\n    const adapter = store.adapterFor(identifier.type);\n    const operation = options[SaveOp];\n    let modelName = snapshot.modelName;\n    let modelClass = store.modelFor(modelName);\n    const record = store._instanceCache.getRecord(identifier);\n    (true && !(adapter) && (0, _debug.assert)(`You tried to update a record but you have no adapter (for ${modelName})`, adapter));\n    (true && !(typeof adapter[operation] === 'function') && (0, _debug.assert)(`You tried to update a record but your adapter (for ${modelName}) does not implement '${operation}'`, typeof adapter[operation] === 'function'));\n    let promise = Promise.resolve().then(() => adapter[operation](store, modelClass, snapshot));\n    let serializer = store.serializerFor(modelName);\n    (true && !(promise !== undefined) && (0, _debug.assert)(`Your adapter's '${operation}' method must return a value, but it returned 'undefined'`, promise !== undefined));\n    promise = promise.then(adapterPayload => {\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n      if (!_objectIsAlive(record)) {\n        {\n          (true && !(false) && (0, _debug.deprecate)(`A Promise while saving ${modelName} did not resolve by the time your model was destroyed. This will error in a future release.`, false, {\n            id: 'ember-data:rsvp-unresolved-async',\n            until: '5.0',\n            for: '@ember-data/store',\n            since: {\n              available: '4.5',\n              enabled: '4.5'\n            }\n          }));\n        }\n      }\n      if (adapterPayload) {\n        return normalizeResponseHelper(serializer, store, modelClass, adapterPayload, snapshot.id, operation);\n      }\n    });\n    resolver.resolve(promise);\n  }\n});","define(\"@ember-data/legacy-compat/index\", [\"exports\", \"@ember/debug\", \"@ember-data/legacy-compat/fetch-manager-025964e9\", \"@embroider/macros/es-compat2\"], function (_exports, _debug, _fetchManager025964e, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.LegacyNetworkHandler = void 0;\n  function _findHasMany(adapter, store, identifier, link, relationship, options) {\n    let promise = Promise.resolve().then(() => {\n      const snapshot = store._fetchManager.createSnapshot(identifier, options);\n      let useLink = !link || typeof link === 'string';\n      let relatedLink = useLink ? link : link.href;\n      return adapter.findHasMany(store, snapshot, relatedLink, relationship);\n    });\n    promise = (0, _fetchManager025964e.g)(promise, store);\n    promise = promise.then(adapterPayload => {\n      const record = store._instanceCache.getRecord(identifier);\n      if (!(0, _fetchManager025964e._)(record)) {\n        {\n          (true && !(false) && (0, _debug.deprecate)(`A Promise for fetching ${relationship.type} did not resolve by the time your model was destroyed. This will error in a future release.`, false, {\n            id: 'ember-data:rsvp-unresolved-async',\n            until: '5.0',\n            for: '@ember-data/store',\n            since: {\n              available: '4.5',\n              enabled: '4.5'\n            }\n          }));\n        }\n      }\n      (true && !((0, _fetchManager025964e.p)(adapterPayload)) && (0, _debug.assert)(`You made a 'findHasMany' request for a ${identifier.type}'s '${relationship.key}' relationship, using link '${link}' , but the adapter's response did not have any data`, (0, _fetchManager025964e.p)(adapterPayload)));\n      const modelClass = store.modelFor(relationship.type);\n      let serializer = store.serializerFor(relationship.type);\n      let payload = (0, _fetchManager025964e.n)(serializer, store, modelClass, adapterPayload, null, 'findHasMany');\n      (true && !('data' in payload && Array.isArray(payload.data)) && (0, _debug.assert)(`fetched the hasMany relationship '${relationship.name}' for ${identifier.type}:${identifier.id} with link '${link}', but no data member is present in the response. If no data exists, the response should set { data: [] }`, 'data' in payload && Array.isArray(payload.data)));\n      payload = syncRelationshipDataFromLink(store, payload, identifier, relationship);\n      return store._push(payload, true);\n    }, null, `DS: Extract payload of '${identifier.type}' : hasMany '${relationship.type}'`);\n    {\n      const record = store._instanceCache.getRecord(identifier);\n      promise = (0, _fetchManager025964e.c)(promise, (0, _fetchManager025964e.d)(_fetchManager025964e._, record));\n    }\n    return promise;\n  }\n  function _findBelongsTo(store, identifier, link, relationship, options) {\n    let promise = Promise.resolve().then(() => {\n      let adapter = store.adapterFor(identifier.type);\n      (true && !(adapter) && (0, _debug.assert)(`You tried to load a belongsTo relationship but you have no adapter (for ${identifier.type})`, adapter));\n      (true && !(typeof adapter.findBelongsTo === 'function') && (0, _debug.assert)(`You tried to load a belongsTo relationship from a specified 'link' in the original payload but your adapter does not implement 'findBelongsTo'`, typeof adapter.findBelongsTo === 'function'));\n      let snapshot = store._fetchManager.createSnapshot(identifier, options);\n      let useLink = !link || typeof link === 'string';\n      let relatedLink = useLink ? link : link.href;\n      return adapter.findBelongsTo(store, snapshot, relatedLink, relationship);\n    });\n    {\n      const record = store._instanceCache.getRecord(identifier);\n      promise = (0, _fetchManager025964e.g)(promise, store);\n      promise = (0, _fetchManager025964e.c)(promise, (0, _fetchManager025964e.d)(_fetchManager025964e._, record));\n    }\n    promise = promise.then(adapterPayload => {\n      {\n        const record = store._instanceCache.getRecord(identifier);\n        if (!(0, _fetchManager025964e._)(record)) {\n          (true && !(false) && (0, _debug.deprecate)(`A Promise for fetching ${relationship.type} did not resolve by the time your model was destroyed. This will error in a future release.`, false, {\n            id: 'ember-data:rsvp-unresolved-async',\n            until: '5.0',\n            for: '@ember-data/store',\n            since: {\n              available: '4.5',\n              enabled: '4.5'\n            }\n          }));\n        }\n      }\n      let modelClass = store.modelFor(relationship.type);\n      let serializer = store.serializerFor(relationship.type);\n      let payload = (0, _fetchManager025964e.n)(serializer, store, modelClass, adapterPayload, null, 'findBelongsTo');\n      (true && !('data' in payload && (payload.data === null || typeof payload.data === 'object' && !Array.isArray(payload.data))) && (0, _debug.assert)(`fetched the belongsTo relationship '${relationship.name}' for ${identifier.type}:${identifier.id} with link '${link}', but no data member is present in the response. If no data exists, the response should set { data: null }`, 'data' in payload && (payload.data === null || typeof payload.data === 'object' && !Array.isArray(payload.data))));\n      if (!payload.data && !payload.links && !payload.meta) {\n        return null;\n      }\n      payload = syncRelationshipDataFromLink(store, payload, identifier, relationship);\n      return store._push(payload, true);\n    }, null, `DS: Extract payload of ${identifier.type} : ${relationship.type}`);\n    return promise;\n  }\n\n  // sync\n  // iterate over records in payload.data\n  // for each record\n  //   assert that record.relationships[inverse] is either undefined (so we can fix it)\n  //     or provide a data: {id, type} that matches the record that requested it\n  //   return the relationship data for the parent\n  function syncRelationshipDataFromLink(store, payload, parentIdentifier, relationship) {\n    // ensure the right hand side (incoming payload) points to the parent record that\n    // requested this relationship\n    let relationshipData = payload.data ? (0, _fetchManager025964e.i)(payload.data, (data, index) => {\n      const {\n        id,\n        type\n      } = data;\n      ensureRelationshipIsSetToParent(data, parentIdentifier, store, relationship, index);\n      return {\n        id,\n        type\n      };\n    }) : null;\n    const relatedDataHash = {};\n    if ('meta' in payload) {\n      relatedDataHash.meta = payload.meta;\n    }\n    if ('links' in payload) {\n      relatedDataHash.links = payload.links;\n    }\n    if ('data' in payload) {\n      relatedDataHash.data = relationshipData;\n    }\n\n    // now, push the left hand side (the parent record) to ensure things are in sync, since\n    // the payload will be pushed with store._push\n    const parentPayload = {\n      id: parentIdentifier.id,\n      type: parentIdentifier.type,\n      relationships: {\n        [relationship.key]: relatedDataHash\n      }\n    };\n    if (!Array.isArray(payload.included)) {\n      payload.included = [];\n    }\n    payload.included.push(parentPayload);\n    return payload;\n  }\n  function ensureRelationshipIsSetToParent(payload, parentIdentifier, store, parentRelationship, index) {\n    let {\n      id,\n      type\n    } = payload;\n    if (!payload.relationships) {\n      payload.relationships = {};\n    }\n    let {\n      relationships\n    } = payload;\n    let inverse = getInverse(store, parentIdentifier, parentRelationship, type);\n    if (inverse) {\n      let {\n        inverseKey,\n        kind\n      } = inverse;\n      let relationshipData = relationships[inverseKey] && relationships[inverseKey].data;\n      {\n        if (typeof relationshipData !== 'undefined' && !relationshipDataPointsToParent(relationshipData, parentIdentifier)) {\n          let inspect = function inspect(thing) {\n            return `'${JSON.stringify(thing)}'`;\n          };\n          let quotedType = inspect(type);\n          let quotedInverse = inspect(inverseKey);\n          let expected = inspect({\n            id: parentIdentifier.id,\n            type: parentIdentifier.type\n          });\n          let expectedModel = `${parentIdentifier.type}:${parentIdentifier.id}`;\n          let got = inspect(relationshipData);\n          let prefix = typeof index === 'number' ? `data[${index}]` : `data`;\n          let path = `${prefix}.relationships.${inverseKey}.data`;\n          let other = relationshipData ? `<${relationshipData.type}:${relationshipData.id}>` : null;\n          let relationshipFetched = `${expectedModel}.${parentRelationship.kind}(\"${parentRelationship.name}\")`;\n          let includedRecord = `<${type}:${id}>`;\n          let 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 ${parentIdentifier.type} record instead.`, `Ember Data has corrected the ${includedRecord} record's ${quotedInverse} relationship to ${expectedModel} so that ${relationshipFetched} will include ${includedRecord}.`, `Please update the response from the server or change your serializer to either ensure that the response for only includes ${quotedType} records that specify ${expectedModel} as their ${quotedInverse}, or omit the ${quotedInverse} relationship from the response.`].join('\\n');\n          (true && !(false) && (0, _debug.assert)(message));\n        }\n      }\n      if (kind !== 'hasMany' || typeof relationshipData !== 'undefined') {\n        relationships[inverseKey] = relationships[inverseKey] || {};\n        relationships[inverseKey].data = fixRelationshipData(relationshipData, kind, parentIdentifier);\n      }\n    }\n  }\n  function metaIsRelationshipDefinition(meta) {\n    return typeof meta._inverseKey === 'function';\n  }\n  function inverseForRelationship(store, identifier, key) {\n    var _definition$options, _definition$options2;\n    const definition = store.getSchemaDefinitionService().relationshipsDefinitionFor(identifier)[key];\n    if (!definition) {\n      return null;\n    }\n    {\n      if (metaIsRelationshipDefinition(definition)) {\n        const modelClass = store.modelFor(identifier.type);\n        return definition._inverseKey(store, modelClass);\n      }\n    }\n    (true && !(((_definition$options = definition.options) === null || _definition$options === void 0 ? void 0 : _definition$options.inverse) === null || typeof ((_definition$options2 = definition.options) === null || _definition$options2 === void 0 ? void 0 : _definition$options2.inverse) === 'string' && definition.options.inverse.length > 0) && (0, _debug.assert)(`Expected the relationship defintion to specify the inverse type or null.`, ((_definition$options = definition.options) === null || _definition$options === void 0 ? void 0 : _definition$options.inverse) === null || typeof ((_definition$options2 = definition.options) === null || _definition$options2 === void 0 ? void 0 : _definition$options2.inverse) === 'string' && definition.options.inverse.length > 0));\n    return definition.options.inverse;\n  }\n  function getInverse(store, parentIdentifier, parentRelationship, type) {\n    let {\n      name: lhs_relationshipName\n    } = parentRelationship;\n    let {\n      type: parentType\n    } = parentIdentifier;\n    let inverseKey = inverseForRelationship(store, {\n      type: parentType\n    }, lhs_relationshipName);\n    if (inverseKey) {\n      const definition = store.getSchemaDefinitionService().relationshipsDefinitionFor({\n        type\n      });\n      let {\n        kind\n      } = definition[inverseKey];\n      return {\n        inverseKey,\n        kind\n      };\n    }\n  }\n  function relationshipDataPointsToParent(relationshipData, identifier) {\n    if (relationshipData === null) {\n      return false;\n    }\n    if (Array.isArray(relationshipData)) {\n      if (relationshipData.length === 0) {\n        return false;\n      }\n      for (let i = 0; i < relationshipData.length; i++) {\n        let entry = relationshipData[i];\n        if (validateRelationshipEntry(entry, identifier)) {\n          return true;\n        }\n      }\n    } else {\n      return validateRelationshipEntry(relationshipData, identifier);\n    }\n    return false;\n  }\n  function fixRelationshipData(relationshipData, relationshipKind, _ref) {\n    let {\n      id,\n      type\n    } = _ref;\n    let parentRelationshipData = {\n      id,\n      type\n    };\n    let payload;\n    if (relationshipKind === 'hasMany') {\n      payload = relationshipData || [];\n      if (relationshipData) {\n        // these arrays could be massive so this is better than filter\n        // Note: this is potentially problematic if type/id are not in the\n        // same state of normalization.\n        let found = relationshipData.find(v => {\n          return v.type === parentRelationshipData.type && v.id === parentRelationshipData.id;\n        });\n        if (!found) {\n          payload.push(parentRelationshipData);\n        }\n      } else {\n        payload.push(parentRelationshipData);\n      }\n    } else {\n      payload = relationshipData || {};\n      Object.assign(payload, parentRelationshipData);\n    }\n    return payload;\n  }\n  function validateRelationshipEntry(_ref2, _ref3) {\n    let {\n      id\n    } = _ref2;\n    let {\n      id: parentModelID\n    } = _ref3;\n    return id && id.toString() === parentModelID;\n  }\n  const PotentialLegacyOperations = new Set(['findRecord', 'findAll', 'query', 'queryRecord', 'findBelongsTo', 'findHasMany', 'updateRecord', 'createRecord', 'deleteRecord']);\n  const LegacyNetworkHandler = _exports.LegacyNetworkHandler = {\n    request(context, next) {\n      // if we are not a legacy request, move on\n      if (context.request.url || !context.request.op || !PotentialLegacyOperations.has(context.request.op)) {\n        return next(context.request);\n      }\n      const {\n        store\n      } = context.request;\n      if (!store._fetchManager) {\n        store._fetchManager = new _fetchManager025964e.F(store);\n      }\n      switch (context.request.op) {\n        case 'findRecord':\n          return findRecord(context);\n        case 'findAll':\n          return findAll(context);\n        case 'query':\n          return query(context);\n        case 'queryRecord':\n          return queryRecord(context);\n        case 'findBelongsTo':\n          return findBelongsTo(context);\n        case 'findHasMany':\n          return findHasMany(context);\n        case 'updateRecord':\n          return saveRecord(context);\n        case 'createRecord':\n          return saveRecord(context);\n        case 'deleteRecord':\n          return saveRecord(context);\n        default:\n          return next(context.request);\n      }\n    }\n  };\n  function findBelongsTo(context) {\n    const {\n      store,\n      data,\n      records: identifiers\n    } = context.request;\n    const {\n      options,\n      record,\n      links,\n      useLink,\n      field\n    } = data;\n    const identifier = identifiers === null || identifiers === void 0 ? void 0 : identifiers[0];\n\n    // short circuit if we are already loading\n    let pendingRequest = identifier && store._fetchManager.getPendingFetch(identifier, options);\n    if (pendingRequest) {\n      return pendingRequest;\n    }\n    if (useLink) {\n      return _findBelongsTo(store, record, links.related, field, options);\n    }\n    (true && !(Array.isArray(identifiers) && identifiers.length === 1) && (0, _debug.assert)(`Expected an identifier`, Array.isArray(identifiers) && identifiers.length === 1));\n    const manager = store._fetchManager;\n    (0, _fetchManager025964e.e)(identifier);\n    return options.reload ? manager.scheduleFetch(identifier, options, context.request) : manager.fetchDataIfNeededForIdentifier(identifier, options, context.request);\n  }\n  function findHasMany(context) {\n    const {\n      store,\n      data,\n      records: identifiers\n    } = context.request;\n    const {\n      options,\n      record,\n      links,\n      useLink,\n      field\n    } = data;\n\n    // link case\n    if (useLink) {\n      const adapter = store.adapterFor(record.type);\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      */\n      (true && !(adapter) && (0, _debug.assert)(`You tried to load a hasMany relationship but you have no adapter (for ${record.type})`, adapter));\n      (true && !(typeof adapter.findHasMany === 'function') && (0, _debug.assert)(`You tried to load a hasMany relationship from a specified 'link' in the original payload but your adapter does not implement 'findHasMany'`, typeof adapter.findHasMany === 'function'));\n      return _findHasMany(adapter, store, record, links.related, field, options);\n    }\n\n    // identifiers case\n\n    const fetches = new Array(identifiers.length);\n    const manager = store._fetchManager;\n    for (let i = 0; i < identifiers.length; i++) {\n      let identifier = identifiers[i];\n      // TODO we probably can be lenient here and return from cache for the isNew case\n      (0, _fetchManager025964e.e)(identifier);\n      fetches[i] = options.reload ? manager.scheduleFetch(identifier, options, context.request) : manager.fetchDataIfNeededForIdentifier(identifier, options, context.request);\n    }\n    return Promise.all(fetches);\n  }\n  function saveRecord(context) {\n    const {\n      store,\n      data,\n      op: operation\n    } = context.request;\n    const {\n      options,\n      record: identifier\n    } = data;\n    store.cache.willCommit(identifier, context);\n    const saveOptions = Object.assign({\n      [_fetchManager025964e.a]: operation\n    }, options);\n    const fetchManagerPromise = store._fetchManager.scheduleSave(identifier, saveOptions);\n    return fetchManagerPromise.then(payload => {\n      let result;\n      /*\n      // TODO @runspired re-evaluate the below claim now that\n      // the save request pipeline is more streamlined.\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.saveRecord` 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._join(() => {\n        //We first make sure the primary data has been updated\n        const cache = store._instanceCache.getResourceCache(identifier);\n        result = cache.didCommit(identifier, {\n          request: context.request,\n          content: payload\n        });\n        if (payload && payload.included) {\n          store._push({\n            data: null,\n            included: payload.included\n          }, true);\n        }\n      });\n      return store.peekRecord(result.data);\n    }).catch(e => {\n      let err = e;\n      if (!e) {\n        err = new Error(`Unknown Error Occurred During Request`);\n      } else if (typeof e === 'string') {\n        err = new Error(e);\n      }\n      adapterDidInvalidate(store, identifier, err);\n      throw err;\n    });\n  }\n  function adapterDidInvalidate(store, identifier, error) {\n    if (error && error.isAdapterError === true && error.code === 'InvalidError') {\n      let serializer = store.serializerFor(identifier.type);\n\n      // TODO @deprecate extractErrors being called\n      // TODO remove extractErrors from the default serializers.\n      if (serializer && typeof serializer.extractErrors === 'function') {\n        let errorsHash = serializer.extractErrors(store, store.modelFor(identifier.type), error, identifier.id);\n        error.errors = errorsHashToArray(errorsHash);\n      }\n    }\n    const cache = store._instanceCache.getResourceCache(identifier);\n    if (error.errors) {\n      (true && !(typeof cache.getErrors === 'function') && (0, _debug.assert)(`Expected the cache in use by resource ${String(identifier)} to have a getErrors(identifier) method for retreiving errors.`, typeof cache.getErrors === 'function'));\n      let jsonApiErrors = error.errors;\n      if (jsonApiErrors.length === 0) {\n        jsonApiErrors = [{\n          title: 'Invalid Error',\n          detail: '',\n          source: {\n            pointer: '/data'\n          }\n        }];\n      }\n      cache.commitWasRejected(identifier, jsonApiErrors);\n    } else {\n      cache.commitWasRejected(identifier);\n    }\n  }\n  function makeArray(value) {\n    return Array.isArray(value) ? value : [value];\n  }\n  const PRIMARY_ATTRIBUTE_KEY = 'base';\n  function errorsHashToArray(errors) {\n    const out = [];\n    if (errors) {\n      Object.keys(errors).forEach(key => {\n        let messages = makeArray(errors[key]);\n        for (let i = 0; i < messages.length; i++) {\n          let title = 'Invalid Attribute';\n          let pointer = `/data/attributes/${key}`;\n          if (key === PRIMARY_ATTRIBUTE_KEY) {\n            title = 'Invalid Document';\n            pointer = `/data`;\n          }\n          out.push({\n            title: title,\n            detail: messages[i],\n            source: {\n              pointer: pointer\n            }\n          });\n        }\n      });\n    }\n    return out;\n  }\n  function findRecord(context) {\n    const {\n      store,\n      data\n    } = context.request;\n    const {\n      record: identifier,\n      options\n    } = data;\n    let promise;\n\n    // if not loaded start loading\n    if (!store._instanceCache.recordIsLoaded(identifier)) {\n      promise = store._fetchManager.fetchDataIfNeededForIdentifier(identifier, options, context.request);\n\n      // Refetch if the reload option is passed\n    } else if (options.reload) {\n      (0, _fetchManager025964e.e)(identifier);\n      promise = store._fetchManager.scheduleFetch(identifier, options, context.request);\n    } else {\n      let snapshot = null;\n      let adapter = store.adapterFor(identifier.type);\n\n      // Refetch the record if the adapter thinks the record is stale\n      if (typeof options.reload === 'undefined' && adapter.shouldReloadRecord && adapter.shouldReloadRecord(store, snapshot = store._fetchManager.createSnapshot(identifier, options))) {\n        (0, _fetchManager025964e.e)(identifier);\n        {\n          promise = store._fetchManager.scheduleFetch(identifier, Object.assign({}, options, {\n            reload: true\n          }), context.request);\n        }\n      } else {\n        // Trigger the background refetch if backgroundReload option is passed\n        if (options.backgroundReload !== false && (options.backgroundReload || !adapter.shouldBackgroundReloadRecord || adapter.shouldBackgroundReloadRecord(store, snapshot = snapshot || store._fetchManager.createSnapshot(identifier, options)))) {\n          (0, _fetchManager025964e.e)(identifier);\n          {\n            void store._fetchManager.scheduleFetch(identifier, Object.assign({}, options, {\n              backgroundReload: true\n            }), context.request);\n          }\n        }\n\n        // Return the cached record\n        promise = Promise.resolve(identifier);\n      }\n    }\n    return promise.then(identifier => store.peekRecord(identifier));\n  }\n  function findAll(context) {\n    const {\n      store,\n      data\n    } = context.request;\n    const {\n      type,\n      options\n    } = data;\n    const adapter = store.adapterFor(type);\n    (true && !(adapter) && (0, _debug.assert)(`You tried to load all records but you have no adapter (for ${type})`, adapter));\n    (true && !(typeof adapter.findAll === 'function') && (0, _debug.assert)(`You tried to load all records but your adapter does not implement 'findAll'`, typeof adapter.findAll === 'function')); // avoid initializing the liveArray just to set `isUpdating`\n    const maybeRecordArray = store.recordArrayManager._live.get(type);\n    const snapshotArray = new _fetchManager025964e.S(store, type, options);\n    const shouldReload = options.reload || options.reload !== false && (adapter.shouldReloadAll && adapter.shouldReloadAll(store, snapshotArray) || !adapter.shouldReloadAll && snapshotArray.length === 0);\n    let fetch;\n    if (shouldReload) {\n      maybeRecordArray && (maybeRecordArray.isUpdating = true);\n      fetch = _findAll(adapter, store, type, snapshotArray, context.request, true);\n    } else {\n      fetch = Promise.resolve(store.peekAll(type));\n      if (options.backgroundReload || options.backgroundReload !== false && (!adapter.shouldBackgroundReloadAll || adapter.shouldBackgroundReloadAll(store, snapshotArray))) {\n        maybeRecordArray && (maybeRecordArray.isUpdating = true);\n        void _findAll(adapter, store, type, snapshotArray, context.request, false);\n      }\n    }\n    return fetch;\n  }\n  function _findAll(adapter, store, type, snapshotArray, request, isAsyncFlush) {\n    const schema = store.modelFor(type);\n    let promise = Promise.resolve().then(() => adapter.findAll(store, schema, null, snapshotArray));\n    promise = (0, _fetchManager025964e.g)(promise, store);\n    promise = promise.then(adapterPayload => {\n      (true && !((0, _fetchManager025964e.p)(adapterPayload)) && (0, _debug.assert)(`You made a 'findAll' request for '${type}' records, but the adapter's response did not have any data`, (0, _fetchManager025964e.p)(adapterPayload)));\n      const serializer = store.serializerFor(type);\n      const payload = (0, _fetchManager025964e.n)(serializer, store, schema, adapterPayload, null, 'findAll');\n      store._push(payload, isAsyncFlush);\n      snapshotArray._recordArray.isUpdating = false;\n      return snapshotArray._recordArray;\n    });\n    {\n      if (!request.disableTestWaiter) {\n        const {\n          waitForPromise\n        } = (0, _esCompat.default)(require(\"@ember/test-waiters\"));\n        promise = waitForPromise(promise);\n      }\n    }\n    return promise;\n  }\n  function query(context) {\n    const {\n      store,\n      data\n    } = context.request;\n    let {\n      options\n    } = data;\n    const {\n      type,\n      query\n    } = data;\n    const adapter = store.adapterFor(type);\n    (true && !(adapter) && (0, _debug.assert)(`You tried to make a query but you have no adapter (for ${type})`, adapter));\n    (true && !(typeof adapter.query === 'function') && (0, _debug.assert)(`You tried to make a query but your adapter does not implement 'query'`, typeof adapter.query === 'function'));\n    const recordArray = options._recordArray || store.recordArrayManager.createArray({\n      type,\n      query\n    });\n    {\n      options = Object.assign({}, options);\n      delete options._recordArray;\n    }\n    const schema = store.modelFor(type);\n    let promise = Promise.resolve().then(() => adapter.query(store, schema, query, recordArray, options));\n    promise = (0, _fetchManager025964e.g)(promise, store);\n    return promise.then(adapterPayload => {\n      const serializer = store.serializerFor(type);\n      const payload = (0, _fetchManager025964e.n)(serializer, store, schema, adapterPayload, null, 'query');\n      const identifiers = store._push(payload, true);\n      (true && !(Array.isArray(identifiers)) && (0, _debug.assert)('The response to store.query is expected to be an array but it was a single record. Please wrap your response in an array or use `store.queryRecord` to query for a single record.', Array.isArray(identifiers)));\n      store.recordArrayManager.populateManagedArray(recordArray, identifiers, payload);\n      return recordArray;\n    });\n  }\n  function assertSingleResourceDocument(payload) {\n    (true && !(!Array.isArray(payload.data)) && (0, _debug.assert)(`Expected the primary data returned by the serializer for a 'queryRecord' response to be a single object or null but instead it was an array.`, !Array.isArray(payload.data)));\n  }\n  function queryRecord(context) {\n    const {\n      store,\n      data\n    } = context.request;\n    const {\n      type,\n      query,\n      options\n    } = data;\n    const adapter = store.adapterFor(type);\n    (true && !(adapter) && (0, _debug.assert)(`You tried to make a query but you have no adapter (for ${type})`, adapter));\n    (true && !(typeof adapter.queryRecord === 'function') && (0, _debug.assert)(`You tried to make a query but your adapter does not implement 'queryRecord'`, typeof adapter.queryRecord === 'function'));\n    const schema = store.modelFor(type);\n    let promise = Promise.resolve().then(() => adapter.queryRecord(store, schema, query, options));\n    promise = (0, _fetchManager025964e.g)(promise, store);\n    return promise.then(adapterPayload => {\n      const serializer = store.serializerFor(type);\n      const payload = (0, _fetchManager025964e.n)(serializer, store, schema, adapterPayload, null, 'queryRecord');\n      assertSingleResourceDocument(payload);\n      const identifier = store._push(payload, true);\n      return identifier ? store.peekRecord(identifier) : null;\n    });\n  }\n});","define(\"@ember-data/model/-private\", [\"exports\", \"@ember-data/model/has-many-d45aa09e\", \"@ember/application\"], function (_exports, _hasManyD45aa09e, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Errors\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.E;\n    }\n  });\n  Object.defineProperty(_exports, \"LEGACY_SUPPORT\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.L;\n    }\n  });\n  Object.defineProperty(_exports, \"ManyArray\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.R;\n    }\n  });\n  Object.defineProperty(_exports, \"Model\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.M;\n    }\n  });\n  Object.defineProperty(_exports, \"PromiseBelongsTo\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.P;\n    }\n  });\n  Object.defineProperty(_exports, \"PromiseManyArray\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.c;\n    }\n  });\n  _exports._modelForMixin = modelForMixin;\n  Object.defineProperty(_exports, \"attr\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.a;\n    }\n  });\n  Object.defineProperty(_exports, \"belongsTo\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.b;\n    }\n  });\n  _exports.diffArray = diffArray;\n  Object.defineProperty(_exports, \"hasMany\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.h;\n    }\n  });\n  /*\n      In case someone defined a relationship to a mixin, for example:\n      ```\n        import Model, { belongsTo, hasMany } from '@ember-data/model';\n        import Mixin from '@ember/object/mixin';\n  \n        class CommentModel extends Model {\n          @belongsTo('commentable', { polymorphic: true }) owner;\n        }\n  \n        let Commentable = Mixin.create({\n          @hasMany('comment') comments;\n        });\n      ```\n      we want to look up a Commentable class which has all the necessary\n      relationship meta data. Thus, we look up the mixin and create a mock\n      Model, so we can access the relationship CPs of the mixin (`comments`)\n      in this case\n    */\n  function modelForMixin(store, normalizedModelName) {\n    let owner = (0, _application.getOwner)(store);\n    let MaybeMixin = owner.factoryFor(`mixin:${normalizedModelName}`);\n    let mixin = MaybeMixin && MaybeMixin.class;\n    if (mixin) {\n      let ModelForMixin = _hasManyD45aa09e.M.extend(mixin);\n      ModelForMixin.__isMixin = true;\n      ModelForMixin.__mixin = mixin;\n      //Cache the class as a model\n      owner.register('model:' + normalizedModelName, ModelForMixin);\n    }\n    return owner.factoryFor(`model:${normalizedModelName}`);\n  }\n\n  /**\n    @module @ember-data/model\n  */\n\n  /**\n    @method diffArray\n    @internal\n    @param {Array} oldArray the old array\n    @param {Array} newArray the new array\n    @return {hash} {\n        firstChangeIndex: <integer>,  // null if no change\n        addedCount: <integer>,        // 0 if no change\n        removedCount: <integer>       // 0 if no change\n      }\n  */\n  function diffArray(oldArray, newArray) {\n    const oldLength = oldArray.length;\n    const newLength = newArray.length;\n    const shortestLength = Math.min(oldLength, newLength);\n    let firstChangeIndex = null; // null signifies no changes\n\n    // find the first change\n    for (let i = 0; i < shortestLength; i++) {\n      // compare each item in the array\n      if (oldArray[i] !== newArray[i]) {\n        firstChangeIndex = i;\n        break;\n      }\n    }\n    if (firstChangeIndex === null && newLength !== oldLength) {\n      // no change found in the overlapping block\n      // and array lengths differ,\n      // so change starts at end of overlap\n      firstChangeIndex = shortestLength;\n    }\n    let addedCount = 0;\n    let removedCount = 0;\n    if (firstChangeIndex !== null) {\n      // we found a change, find the end of the change\n      let unchangedEndBlockLength = shortestLength - firstChangeIndex;\n      // walk back from the end of both arrays until we find a change\n      for (let i = 1; i <= shortestLength; i++) {\n        // compare each item in the array\n        if (oldArray[oldLength - i] !== newArray[newLength - i]) {\n          unchangedEndBlockLength = i - 1;\n          break;\n        }\n      }\n      addedCount = newLength - unchangedEndBlockLength - firstChangeIndex;\n      removedCount = oldLength - unchangedEndBlockLength - firstChangeIndex;\n    }\n    return {\n      firstChangeIndex,\n      addedCount,\n      removedCount\n    };\n  }\n});","define(\"@ember-data/model/has-many-d45aa09e\", [\"exports\", \"@ember/debug\", \"@ember/object\", \"@ember-data/store\", \"@ember-data/store/-private\", \"@ember/string\", \"@ember/array\", \"ember-inflector\", \"@ember/object/compat\", \"@ember/runloop\", \"@glimmer/tracking\", \"ember\", \"@ember/object/promise-proxy-mixin\", \"@ember/object/proxy\", \"@ember/array/proxy\", \"@ember/object/computed\", \"@ember-data/tracking/-private\", \"@ember/object/internals\", \"@embroider/macros/es-compat2\"], function (_exports, _debug, _object, _store, _private, _string, _array, _emberInflector, _compat, _runloop, _tracking, _ember, _promiseProxyMixin, _proxy, _proxy2, _computed, _private2, _internals, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.h = _exports.c = _exports.b = _exports.a = _exports.R = _exports.P = _exports.M = _exports.L = _exports.E = void 0;\n  let cached = (0, _esCompat.default)(require(\"ember-cached-decorator-polyfill\")).cached;\n  function isElementDescriptor(args) {\n    let [maybeTarget, maybeKey, maybeDesc] = args;\n    return (\n      // Ensure we have the right number of args\n      args.length === 3 && (\n      // Make sure the target is a class or object (prototype)\n      typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) &&\n      // Make sure the key is a string\n      typeof maybeKey === 'string' && (\n      // Make sure the descriptor is the right shape\n      typeof maybeDesc === 'object' && maybeDesc !== null && 'enumerable' in maybeDesc && 'configurable' in maybeDesc ||\n      // TS compatibility\n      maybeDesc === undefined)\n    );\n  }\n  function computedMacroWithOptionalParams(fn) {\n    return function () {\n      for (var _len = arguments.length, maybeDesc = new Array(_len), _key = 0; _key < _len; _key++) {\n        maybeDesc[_key] = arguments[_key];\n      }\n      return isElementDescriptor(maybeDesc) ? fn()(...maybeDesc) : fn(...maybeDesc);\n    };\n  }\n\n  /**\n    @module @ember-data/model\n  */\n\n  /**\n    `attr` defines an attribute on a [Model](/ember-data/release/classes/Model).\n    By default, attributes are passed through as-is, however you can specify an\n    optional type to have the value automatically transformed.\n    Ember Data ships with four basic transform types: `string`, `number`,\n    `boolean` and `date`. You can define your own transforms by subclassing\n    [Transform](/ember-data/release/classes/Transform).\n  \n    Note that you cannot use `attr` to define an attribute of `id`.\n  \n    `attr` takes an optional hash as a second parameter, currently\n    supported options are:\n  \n    - `defaultValue`: Pass a string or a function to be called to set the attribute\n    to a default value if and only if the key is absent from the payload response.\n  \n    Example\n  \n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @attr('string') username;\n      @attr('string') email;\n      @attr('boolean', { defaultValue: false }) verified;\n    }\n    ```\n  \n    Default value can also be a function. This is useful it you want to return\n    a new object for each attribute.\n  \n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @attr('string') username;\n      @attr('string') email;\n  \n      @attr({\n        defaultValue() {\n          return {};\n        }\n      })\n      settings;\n    }\n    ```\n  \n    The `options` hash is passed as second argument to a transforms'\n    `serialize` and `deserialize` method. This allows to configure a\n    transformation and adapt the corresponding value, based on the config:\n  \n    ```app/models/post.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @attr('text', {\n        uppercase: true\n      })\n      text;\n    }\n    ```\n  \n    ```app/transforms/text.js\n    export default class TextTransform {\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      static create() {\n        return new this();\n      }\n    }\n    ```\n  \n    @method attr\n    @public\n    @static\n    @for @ember-data/model\n    @param {String|Object} type the attribute type\n    @param {Object} options a hash of options\n    @return {Attribute}\n  */\n  function attr(type, options) {\n    if (typeof type === 'object') {\n      options = type;\n      type = undefined;\n    } else {\n      options = options || {};\n    }\n    let meta = {\n      type: type,\n      isAttribute: true,\n      options: options\n    };\n    return (0, _object.computed)({\n      get(key) {\n        {\n          if (['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        if (this.isDestroyed || this.isDestroying) {\n          return;\n        }\n        return (0, _private.peekCache)(this).getAttr((0, _store.recordIdentifierFor)(this), key);\n      },\n      set(key, value) {\n        {\n          if (['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        (true && !(!this.currentState.isDeleted) && (0, _debug.assert)(`Attempted to set '${key}' on the deleted record ${(0, _store.recordIdentifierFor)(this)}`, !this.currentState.isDeleted));\n        const identifier = (0, _store.recordIdentifierFor)(this);\n        const cache = (0, _private.peekCache)(this);\n        let currentValue = cache.getAttr(identifier, key);\n        if (currentValue !== value) {\n          cache.setAttr(identifier, key, value);\n          if (!this.isValid) {\n            const {\n              errors\n            } = this;\n            if (errors.get(key)) {\n              errors.remove(key);\n              this.currentState.cleanErrorRequests();\n            }\n          }\n        }\n        return value;\n      }\n    }).meta(meta);\n  }\n  var attr$1 = _exports.a = computedMacroWithOptionalParams(attr);\n  function _initializerDefineProperty(target, property, descriptor, context) {\n    if (!descriptor) return;\n    Object.defineProperty(target, property, {\n      enumerable: descriptor.enumerable,\n      configurable: descriptor.configurable,\n      writable: descriptor.writable,\n      value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n    });\n  }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n    var desc = {};\n    Object.keys(descriptor).forEach(function (key) {\n      desc[key] = descriptor[key];\n    });\n    desc.enumerable = !!desc.enumerable;\n    desc.configurable = !!desc.configurable;\n    if ('value' in desc || desc.initializer) {\n      desc.writable = true;\n    }\n    desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n      return decorator(target, property, desc) || desc;\n    }, desc);\n    if (context && desc.initializer !== void 0) {\n      desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n      desc.initializer = undefined;\n    }\n    if (desc.initializer === void 0) {\n      Object.defineProperty(target, property, desc);\n      desc = null;\n    }\n    return desc;\n  }\n  const PromiseObject = _proxy.default.extend(_promiseProxyMixin.default);\n  function promiseObject(promise) {\n    return PromiseObject.create({\n      promise\n    });\n  }\n\n  // constructor is accessed in some internals but not including it in the copyright for the deprecation\n  const ALLOWABLE_METHODS = ['constructor', 'then', 'catch', 'finally'];\n  const ALLOWABLE_PROPS = ['__ec_yieldable__', '__ec_cancel__'];\n  const PROXIED_OBJECT_PROPS = ['content', 'isPending', 'isSettled', 'isRejected', 'isFulfilled', 'promise', 'reason'];\n  const ProxySymbolString = String(Symbol.for('PROXY_CONTENT'));\n  function deprecatedPromiseObject(promise) {\n    const promiseObjectProxy = promiseObject(promise);\n    const handler = {\n      get(target, prop, receiver) {\n        if (typeof prop === 'symbol') {\n          if (String(prop) === ProxySymbolString) {\n            return;\n          }\n          return Reflect.get(target, prop, receiver);\n        }\n        if (prop === 'constructor') {\n          return target.constructor;\n        }\n        if (ALLOWABLE_PROPS.includes(prop)) {\n          return target[prop];\n        }\n        if (!ALLOWABLE_METHODS.includes(prop)) {\n          (true && !(false) && (0, _debug.deprecate)(`Accessing ${prop} is deprecated. The return type is being changed from PromiseObjectProxy to a Promise. The only available methods to access on this promise are .then, .catch and .finally`, false, {\n            id: 'ember-data:model-save-promise',\n            until: '5.0',\n            for: '@ember-data/store',\n            since: {\n              available: '4.4',\n              enabled: '4.4'\n            }\n          }));\n        } else {\n          return target[prop].bind(target);\n        }\n        if (PROXIED_OBJECT_PROPS.includes(prop)) {\n          return target[prop];\n        }\n        const value = (0, _object.get)(target, prop);\n        if (value && typeof value === 'function' && typeof value.bind === 'function') {\n          return value.bind(receiver);\n        }\n        return undefined;\n      }\n    };\n    return new Proxy(promiseObjectProxy, handler);\n  }\n  var _dec$1, _dec2, _dec3, _dec4, _class$6, _descriptor$5, _descriptor2$2;\n\n  /**\n    @module @ember-data/model\n  */\n\n  // we force the type here to our own construct because mixin and extend patterns\n  // lose generic signatures. We also do this because we need to Omit `clear` from\n  // the type of ArrayProxy as we override it's signature.\n  const ArrayProxyWithCustomOverrides = _proxy2.default;\n\n  /**\n    Holds validation errors for a given record, organized by attribute names.\n  \n    This class is not directly instantiable.\n  \n    Every `Model` has an `errors` property that is an instance of\n    `Errors`. This can be used to display validation error\n    messages returned from the server when a `record.save()` rejects.\n  \n    For Example, if you had a `User` model that looked like this:\n  \n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @attr('string') username;\n      @attr('string') email;\n    }\n    ```\n    And you attempted to save a record that did not validate on the backend:\n  \n    ```javascript\n    let user = store.createRecord('user', {\n      username: 'tomster',\n      email: 'invalidEmail'\n    });\n    user.save();\n    ```\n  \n    Your backend would be expected to return an error response that described\n    the problem, so that error messages can be generated on the app.\n  \n    API responses will be translated into instances of `Errors` differently,\n    depending on the specific combination of adapter and serializer used. You\n    may want to check the documentation or the source code of the libraries\n    that you are using, to know how they expect errors to be communicated.\n  \n    Errors can be displayed to the user by accessing their property name\n    to get an array of all the error objects for that property. Each\n    error object is a JavaScript object with two keys:\n  \n    - `message` A string containing the error message from the backend\n    - `attribute` The name of the property associated with this error message\n  \n    ```handlebars\n    <label>Username: <Input @value={{@model.username}} /> </label>\n    {{#each @model.errors.username as |error|}}\n      <div class=\"error\">\n        {{error.message}}\n      </div>\n    {{/each}}\n  \n    <label>Email: <Input @value={{@model.email}} /> </label>\n    {{#each @model.errors.email as |error|}}\n      <div class=\"error\">\n        {{error.message}}\n      </div>\n    {{/each}}\n    ```\n  \n    You can also access the special `messages` property on the error\n    object to get an array of all the error strings.\n  \n    ```handlebars\n    {{#each @model.errors.messages as |message|}}\n      <div class=\"error\">\n        {{message}}\n      </div>\n    {{/each}}\n    ```\n  \n    @class Errors\n    @public\n    @extends Ember.ArrayProxy\n   */\n  let Errors = _exports.E = (_dec$1 = (0, _object.computed)(), _dec2 = (0, _computed.mapBy)('content', 'message'), _dec3 = (0, _object.computed)(), _dec4 = (0, _computed.not)('length'), _class$6 = class Errors extends ArrayProxyWithCustomOverrides {\n    constructor() {\n      super(...arguments);\n      /**\n        An array containing all of the error messages for this\n        record. This is useful for displaying all errors to the user.\n         ```handlebars\n        {{#each @model.errors.messages as |message|}}\n          <div class=\"error\">\n            {{message}}\n          </div>\n        {{/each}}\n        ```\n         @property messages\n        @public\n        @type {Array}\n      */\n      _initializerDefineProperty(this, \"messages\", _descriptor$5, this);\n      /**\n        Total number of errors.\n         @property length\n        @type {Number}\n        @public\n        @readOnly\n      */\n      /**\n        `true` if we have no errors.\n         @property isEmpty\n        @type {Boolean}\n        @public\n        @readOnly\n      */\n      _initializerDefineProperty(this, \"isEmpty\", _descriptor2$2, this);\n    }\n    /**\n      @property errorsByAttributeName\n      @type {MapWithDefault}\n      @private\n    */\n    get errorsByAttributeName() {\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.errors.errorsFor('email'); // returns:\n        // [{attribute: \"email\", message: \"Doesn't look like a valid email.\"}]\n      });\n      ```\n       @method errorsFor\n      @public\n      @param {String} attribute\n      @return {Array}\n    */\n    errorsFor(attribute) {\n      let map = this.errorsByAttributeName;\n      let errors = map.get(attribute);\n      if (errors === undefined) {\n        errors = (0, _array.A)();\n        map.set(attribute, errors);\n      }\n\n      // Errors may be a native array with extensions turned on. Since we access\n      // the array via a method, and not a computed or using `Ember.get`, it does\n      // not entangle properly with autotracking, so we entangle manually by\n      // getting the `[]` property.\n      (0, _object.get)(errors, '[]');\n      return errors;\n    }\n    /**\n      @property content\n      @type {Array}\n      @private\n    */\n    get content() {\n      return (0, _array.A)();\n    }\n\n    /**\n      @method unknownProperty\n      @private\n    */\n    unknownProperty(attribute) {\n      let errors = this.errorsFor(attribute);\n      if (errors.length === 0) {\n        return undefined;\n      }\n      return errors;\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 = user.errors;\n       // add multiple errors\n      errors.add('password', [\n        'Must be at least 12 characters',\n        'Must contain at least one symbol',\n        'Cannot contain your name'\n      ]);\n       errors.errorsFor('password');\n      // =>\n      // [\n      //   { attribute: 'password', message: 'Must be at least 12 characters' },\n      //   { attribute: 'password', message: 'Must contain at least one symbol' },\n      //   { attribute: 'password', message: 'Cannot contain your name' },\n      // ]\n       // add a single error\n      errors.add('username', 'This field is required');\n       errors.errorsFor('username');\n      // =>\n      // [\n      //   { attribute: 'username', message: 'This field is required' },\n      // ]\n     ```\n      @method add\n      @public\n      @param {string} attribute - the property name of an attribute or relationship\n      @param {string[]|string} messages - an error message or array of error messages for the attribute\n     */\n    add(attribute, messages) {\n      const errors = this._findOrCreateMessages(attribute, messages);\n      this.addObjects(errors);\n      this.errorsFor(attribute).addObjects(errors);\n      this.__record.currentState.notify('isValid');\n      this.notifyPropertyChange(attribute);\n    }\n\n    /**\n      @method _findOrCreateMessages\n      @private\n    */\n    _findOrCreateMessages(attribute, messages) {\n      let errors = this.errorsFor(attribute);\n      let messagesArray = Array.isArray(messages) ? messages : [messages];\n      let _messages = new Array(messagesArray.length);\n      for (let i = 0; i < messagesArray.length; i++) {\n        let message = messagesArray[i];\n        let err = errors.findBy('message', message);\n        if (err) {\n          _messages[i] = err;\n        } else {\n          _messages[i] = {\n            attribute: attribute,\n            message\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 = user.errors;\n      errors.add('phone', ['error-1', 'error-2']);\n       errors.errorsFor('phone');\n      // =>\n      // [\n      //   { attribute: 'phone', message: 'error-1' },\n      //   { attribute: 'phone', message: 'error-2' },\n      // ]\n       errors.remove('phone');\n       errors.errorsFor('phone');\n      // => undefined\n     ```\n     @method remove\n      @public\n     @param {string} member - the property name of an attribute or relationship\n     */\n    remove(attribute) {\n      if (this.isEmpty) {\n        return;\n      }\n      let content = this.rejectBy('attribute', attribute);\n      this.content.setObjects(content);\n\n      // Although errorsByAttributeName.delete is technically enough to sync errors state, we also\n      // must mutate the array as well for autotracking\n      let errors = this.errorsFor(attribute);\n      for (let 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      this.errorsByAttributeName.delete(attribute);\n      this.__record.currentState.notify('isValid');\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 = 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.messages\n     // => []\n     ```\n     @method clear\n     @public\n     */\n    clear() {\n      if (this.isEmpty) {\n        return;\n      }\n      let errorsByAttributeName = this.errorsByAttributeName;\n      let attributes = [];\n      errorsByAttributeName.forEach(function (_, attribute) {\n        attributes.push(attribute);\n      });\n      errorsByAttributeName.clear();\n      attributes.forEach(attribute => {\n        this.notifyPropertyChange(attribute);\n      });\n      this.__record.currentState.notify('isValid');\n      super.clear();\n    }\n\n    /**\n      Checks if there are error messages for the given attribute.\n       ```app/controllers/user/edit.js\n      import Controller from '@ember/controller';\n      import { action } from '@ember/object';\n       export default class UserEditController extends Controller {\n        @action\n        save(user) {\n          if (user.errors.has('email')) {\n            return alert('Please update your email before attempting to save.');\n          }\n          user.save();\n        }\n      }\n      ```\n       @method has\n      @public\n      @param {String} attribute\n      @return {Boolean} true if there some errors on given attribute\n    */\n    has(attribute) {\n      return this.errorsFor(attribute).length > 0;\n    }\n  }, _applyDecoratedDescriptor(_class$6.prototype, \"errorsByAttributeName\", [_dec$1], Object.getOwnPropertyDescriptor(_class$6.prototype, \"errorsByAttributeName\"), _class$6.prototype), _descriptor$5 = _applyDecoratedDescriptor(_class$6.prototype, \"messages\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class$6.prototype, \"content\", [_dec3], Object.getOwnPropertyDescriptor(_class$6.prototype, \"content\"), _class$6.prototype), _descriptor2$2 = _applyDecoratedDescriptor(_class$6.prototype, \"isEmpty\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class$6);\n\n  /*\n  NOTES ON MANY ARRAY DUPLICATION DEPRECATION APPROACH:\n  \n  // 4.6 behavior\n  \n  dedupe, no error and no deprecation\n  \n  // 4.12 approach\n  \n  DEPRECATE_MANY_ARRAY_DUPLICATES_4_12 === true => dedupe, no error\n  DEPRECATE_MANY_ARRAY_DUPLICATES_4_12 === false => no dedupe, error (same as 6.0)\n  \n  // 5.3 approach\n  \n  DEPRECATE_MANY_ARRAY_DUPLICATES === true => dedupe, deprecation\n  DEPRECATE_MANY_ARRAY_DUPLICATES === false => no dedupe, error (same as 6.0)\n  \n  // 6.0 approach\n  \n  no-dedupe, error\n  */\n\n  /**\n    A `ManyArray` is a `MutableArray` that represents the contents of a has-many\n    relationship.\n  \n    The `ManyArray` is instantiated lazily the first time the relationship is\n    requested.\n  \n    This class is not intended to be directly instantiated by consuming applications.\n  \n    ### Inverses\n  \n    Often, the relationships in Ember Data applications will have\n    an inverse. For example, imagine the following models are\n    defined:\n  \n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @hasMany('comment') comments;\n    }\n    ```\n  \n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n  \n    export default class CommentModel extends Model {\n      @belongsTo('post') post;\n    }\n    ```\n  \n    If you created a new instance of `Post` and added\n    a `Comment` record to its `comments` has-many\n    relationship, you would expect the comment's `post`\n    property to be set to the post that contained\n    the has-many.\n  \n    We call the record to which a relationship belongs-to the\n    relationship's _owner_.\n  \n    @class ManyArray\n    @public\n  */\n  class RelatedCollection extends _private.RecordArray {\n    /**\n      The loading state of this array\n       @property {Boolean} isLoaded\n      @public\n      */\n\n    /**\n      `true` if the relationship is polymorphic, `false` otherwise.\n       @property {Boolean} isPolymorphic\n      @private\n      */\n\n    /**\n      Metadata associated with the request for async hasMany relationships.\n       Example\n       Given that the server returns the following JSON payload when fetching a\n      hasMany relationship:\n       ```js\n      {\n        \"comments\": [{\n          \"id\": 1,\n          \"comment\": \"This is the first comment\",\n        }, {\n      // ...\n        }],\n         \"meta\": {\n          \"page\": 1,\n          \"total\": 5\n        }\n      }\n      ```\n       You can then access the meta data via the `meta` property:\n       ```js\n      let comments = await post.comments;\n      let meta = comments.meta;\n       // meta.page => 1\n      // meta.total => 5\n      ```\n       @property {Object | null} meta\n      @public\n      */\n\n    /**\n       * Retrieve the links for this relationship\n       *\n       @property {Object | null} links\n       @public\n       */\n\n    // @ts-expect-error\n\n    constructor(options) {\n      super(options);\n      this.isLoaded = options.isLoaded || false;\n      this.isAsync = options.isAsync || false;\n      this.isPolymorphic = options.isPolymorphic || false;\n      this.identifier = options.identifier;\n      this.key = options.key;\n    }\n    [_private.MUTATE](target, receiver, prop, args, _TAG) {\n      switch (prop) {\n        case 'length 0':\n          {\n            Reflect.set(target, 'length', 0);\n            mutateReplaceRelatedRecords(this, [], _TAG);\n            return true;\n          }\n        case 'replace cell':\n          {\n            const [index, prior, value] = args;\n            target[index] = value;\n            mutateReplaceRelatedRecord(this, {\n              value,\n              prior,\n              index\n            }, _TAG);\n            return true;\n          }\n        case 'push':\n          {\n            {\n              // dedupe, no error\n              const seen = new Set(target);\n              const unique = new Set();\n              args.forEach(item => {\n                const identifier = (0, _private.recordIdentifierFor)(item);\n                if (!seen.has(identifier)) {\n                  seen.add(identifier);\n                  unique.add(item);\n                }\n              });\n              const newArgs = Array.from(unique);\n              const result = Reflect.apply(target[prop], receiver, newArgs);\n              if (newArgs.length) {\n                mutateAddToRelatedRecords(this, {\n                  value: extractIdentifiersFromRecords(newArgs)\n                }, _TAG);\n              }\n              return result;\n            }\n\n            // else, no dedupe, error on duplicates\n            const newValues = extractIdentifiersFromRecords(args);\n            assertNoDuplicates(this, target, currentState => currentState.push(...newValues), `Cannot push duplicates to a hasMany's state.`);\n            const result = Reflect.apply(target[prop], receiver, args);\n            if (newValues.length) {\n              mutateAddToRelatedRecords(this, {\n                value: newValues\n              }, _TAG);\n            }\n            return result;\n          }\n        case 'pop':\n          {\n            const result = Reflect.apply(target[prop], receiver, args);\n            if (result) {\n              mutateRemoveFromRelatedRecords(this, {\n                value: (0, _private.recordIdentifierFor)(result)\n              }, _TAG);\n            }\n            return result;\n          }\n        case 'unshift':\n          {\n            {\n              // dedupe, no error\n              const seen = new Set(target);\n              const unique = new Set();\n              args.forEach(item => {\n                const identifier = (0, _private.recordIdentifierFor)(item);\n                if (!seen.has(identifier)) {\n                  seen.add(identifier);\n                  unique.add(item);\n                }\n              });\n              const newArgs = Array.from(unique);\n              const result = Reflect.apply(target[prop], receiver, newArgs);\n              if (newArgs.length) {\n                mutateAddToRelatedRecords(this, {\n                  value: extractIdentifiersFromRecords(newArgs),\n                  index: 0\n                }, _TAG);\n              }\n              return result;\n            }\n\n            // else, no dedupe, error on duplicates\n            const newValues = extractIdentifiersFromRecords(args);\n            assertNoDuplicates(this, target, currentState => currentState.unshift(...newValues), `Cannot unshift duplicates to a hasMany's state.`);\n            const result = Reflect.apply(target[prop], receiver, args);\n            if (newValues.length) {\n              mutateAddToRelatedRecords(this, {\n                value: newValues,\n                index: 0\n              }, _TAG);\n            }\n            return result;\n          }\n        case 'shift':\n          {\n            const result = Reflect.apply(target[prop], receiver, args);\n            if (result) {\n              mutateRemoveFromRelatedRecords(this, {\n                value: (0, _private.recordIdentifierFor)(result),\n                index: 0\n              }, _TAG);\n            }\n            return result;\n          }\n        case 'sort':\n          {\n            const result = Reflect.apply(target[prop], receiver, args);\n            mutateSortRelatedRecords(this, result.map(_private.recordIdentifierFor), _TAG);\n            return result;\n          }\n        case 'splice':\n          {\n            const [start, deleteCount, ...adds] = args;\n\n            // detect a full replace\n            if (start === 0 && deleteCount === this[_private.SOURCE].length) {\n              {\n                // dedupe, no error\n                const current = new Set(adds);\n                const unique = Array.from(current);\n                const newArgs = [start, deleteCount].concat(unique);\n                const result = Reflect.apply(target[prop], receiver, newArgs);\n                mutateReplaceRelatedRecords(this, extractIdentifiersFromRecords(unique), _TAG);\n                return result;\n              }\n\n              // else, no dedupe, error on duplicates\n              const newValues = extractIdentifiersFromRecords(adds);\n              assertNoDuplicates(this, target, currentState => currentState.splice(start, deleteCount, ...newValues), `Cannot replace a hasMany's state with a new state that contains duplicates.`);\n              const result = Reflect.apply(target[prop], receiver, args);\n              mutateReplaceRelatedRecords(this, newValues, _TAG);\n              return result;\n            }\n            {\n              // dedupe, no error\n              const currentState = target.slice();\n              currentState.splice(start, deleteCount);\n              const seen = new Set(currentState);\n              const unique = [];\n              adds.forEach(item => {\n                const identifier = (0, _private.recordIdentifierFor)(item);\n                if (!seen.has(identifier)) {\n                  seen.add(identifier);\n                  unique.push(item);\n                }\n              });\n              const newArgs = [start, deleteCount, ...unique];\n              const result = Reflect.apply(target[prop], receiver, newArgs);\n              if (deleteCount > 0) {\n                mutateRemoveFromRelatedRecords(this, {\n                  value: result.map(_private.recordIdentifierFor),\n                  index: start\n                }, _TAG);\n              }\n              if (unique.length > 0) {\n                mutateAddToRelatedRecords(this, {\n                  value: extractIdentifiersFromRecords(unique),\n                  index: start\n                }, _TAG);\n              }\n              return result;\n            }\n\n            // else, no dedupe, error on duplicates\n            const newValues = extractIdentifiersFromRecords(adds);\n            assertNoDuplicates(this, target, currentState => currentState.splice(start, deleteCount, ...newValues), `Cannot splice a hasMany's state with a new state that contains duplicates.`);\n            const result = Reflect.apply(target[prop], receiver, args);\n            if (deleteCount > 0) {\n              mutateRemoveFromRelatedRecords(this, {\n                value: result.map(_private.recordIdentifierFor),\n                index: start\n              }, _TAG);\n            }\n            if (newValues.length > 0) {\n              mutateAddToRelatedRecords(this, {\n                value: newValues,\n                index: start\n              }, _TAG);\n            }\n            return result;\n          }\n        default:\n          (true && !(false) && (0, _debug.assert)(`unable to convert ${prop} into a transaction that updates the cache state for this record array`));\n      }\n    }\n    notify() {\n      const tag = this[_private.IDENTIFIER_ARRAY_TAG];\n      tag.shouldReset = true;\n      // @ts-expect-error\n      (0, _private.notifyArray)(this);\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      let user = store.peekRecord('user', '1')\n      await login(user);\n       let permissions = await user.permissions;\n      await permissions.reload();\n      ```\n       @method reload\n      @public\n    */\n    reload(options) {\n      // TODO this is odd, we don't ask the store for anything else like this?\n      return this._manager.reloadHasMany(this.key, options);\n    }\n\n    /**\n      Saves all of the records in the `ManyArray`.\n       Example\n       ```javascript\n      let inbox = await store.findRecord('inbox', '1');\n      let messages = await inbox.messages;\n      messages.forEach((message) => {\n        message.isRead = true;\n      });\n      messages.save();\n      ```\n       @method save\n      @public\n      @return {PromiseArray} promise\n    */\n\n    /**\n      Create a child record within the owner\n       @method createRecord\n      @public\n      @param {Object} hash\n      @return {Model} record\n    */\n    createRecord(hash) {\n      const {\n        store\n      } = this;\n      (true && !(this.modelName) && (0, _debug.assert)(`Expected modelName to be set`, this.modelName));\n      const record = store.createRecord(this.modelName, hash);\n      this.push(record);\n      return record;\n    }\n    destroy() {\n      super.destroy(false);\n    }\n  }\n  _exports.R = RelatedCollection;\n  RelatedCollection.prototype.isAsync = false;\n  RelatedCollection.prototype.isPolymorphic = false;\n  RelatedCollection.prototype.identifier = null;\n  RelatedCollection.prototype.cache = null;\n  RelatedCollection.prototype._inverseIsAsync = false;\n  RelatedCollection.prototype.key = '';\n  RelatedCollection.prototype.DEPRECATED_CLASS_NAME = 'ManyArray';\n  function assertRecordPassedToHasMany(record) {\n    (true && !(function () {\n      try {\n        (0, _private.recordIdentifierFor)(record);\n        return true;\n      } catch {\n        return false;\n      }\n    }()) && (0, _debug.assert)(`All elements of a hasMany relationship must be instances of Model, you passed $${typeof record}`, function () {\n      try {\n        (0, _private.recordIdentifierFor)(record);\n        return true;\n      } catch {\n        return false;\n      }\n    }()));\n  }\n  function extractIdentifiersFromRecords(records) {\n    return records.map(extractIdentifierFromRecord$1);\n  }\n  function extractIdentifierFromRecord$1(recordOrPromiseRecord) {\n    {\n      if (isPromiseRecord$1(recordOrPromiseRecord)) {\n        let content = recordOrPromiseRecord.content;\n        (true && !(content !== undefined && content !== null) && (0, _debug.assert)('You passed in a promise that did not originate from an EmberData relationship. You can only pass promises that come from a belongsTo relationship.', content !== undefined && content !== null));\n        (true && !(false) && (0, _debug.deprecate)(`You passed in a PromiseProxy to a Relationship API that now expects a resolved value. await the value before setting it.`, false, {\n          id: 'ember-data:deprecate-promise-proxies',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          },\n          for: 'ember-data'\n        }));\n        assertRecordPassedToHasMany(content);\n        return (0, _private.recordIdentifierFor)(content);\n      }\n    }\n    assertRecordPassedToHasMany(recordOrPromiseRecord);\n    return (0, _private.recordIdentifierFor)(recordOrPromiseRecord);\n  }\n  function isPromiseRecord$1(record) {\n    return !!record.then;\n  }\n  function assertNoDuplicates(collection, target, callback, reason) {\n    const state = target.slice();\n    callback(state);\n    if (state.length !== new Set(state).size) {\n      const duplicates = state.filter((currentValue, currentIndex) => state.indexOf(currentValue) !== currentIndex);\n      throw new Error(`${reason} Found duplicates for the following records within the new state provided to \\`<${collection.identifier.type}:${collection.identifier.id || collection.identifier.lid}>.${collection.key}\\`\\n\\t- ${Array.from(new Set(duplicates)).map(r => (0, _private.isStableIdentifier)(r) ? r.lid : (0, _private.recordIdentifierFor)(r).lid).sort((a, b) => a.localeCompare(b)).join('\\n\\t- ')}`);\n    }\n  }\n  function mutateAddToRelatedRecords(collection, operationInfo, _TAG) {\n    mutate(collection, {\n      op: 'addToRelatedRecords',\n      record: collection.identifier,\n      field: collection.key,\n      ...operationInfo\n    }, _TAG);\n  }\n  function mutateRemoveFromRelatedRecords(collection, operationInfo, _TAG) {\n    mutate(collection, {\n      op: 'removeFromRelatedRecords',\n      record: collection.identifier,\n      field: collection.key,\n      ...operationInfo\n    }, _TAG);\n  }\n  function mutateReplaceRelatedRecord(collection, operationInfo, _TAG) {\n    mutate(collection, {\n      op: 'replaceRelatedRecord',\n      record: collection.identifier,\n      field: collection.key,\n      ...operationInfo\n    }, _TAG);\n  }\n  function mutateReplaceRelatedRecords(collection, value, _TAG) {\n    mutate(collection, {\n      op: 'replaceRelatedRecords',\n      record: collection.identifier,\n      field: collection.key,\n      value\n    }, _TAG);\n  }\n  function mutateSortRelatedRecords(collection, value, _TAG) {\n    mutate(collection, {\n      op: 'sortRelatedRecords',\n      record: collection.identifier,\n      field: collection.key,\n      value\n    }, _TAG);\n  }\n  function mutate(collection, mutation, _TAG) {\n    collection._manager.mutate(mutation);\n    (0, _private2.addToTransaction)(_TAG);\n  }\n  var _dec, _class$5;\n\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n\n  const Extended = PromiseObject;\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      * `reload()`\n    @class PromiseBelongsTo\n    @extends PromiseObject\n    @private\n  */\n  let PromiseBelongsTo = _exports.P = (_dec = (0, _object.computed)(), _class$5 = class PromiseBelongsTo extends Extended {\n    get id() {\n      const {\n        key,\n        legacySupport\n      } = this._belongsToState;\n      const ref = legacySupport.referenceFor('belongsTo', key);\n      return ref.id();\n    }\n\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    get meta() {\n      // eslint-disable-next-line no-constant-condition\n      {\n        (true && !(false) && (0, _debug.assert)('You attempted to access meta on the promise for the async belongsTo relationship ' + `${this.get('_belongsToState').modelName}:${this.get('_belongsToState').key}'.` + '\\nUse `record.belongsTo(relationshipName).meta()` instead.', false));\n      }\n      return;\n    }\n    async reload(options) {\n      (true && !(this.content !== undefined) && (0, _debug.assert)('You are trying to reload an async belongsTo before it has been created', this.content !== undefined));\n      let {\n        key,\n        legacySupport\n      } = this._belongsToState;\n      await legacySupport.reloadBelongsTo(key, options);\n      return this;\n    }\n  }, _applyDecoratedDescriptor(_class$5.prototype, \"id\", [cached], Object.getOwnPropertyDescriptor(_class$5.prototype, \"id\"), _class$5.prototype), _applyDecoratedDescriptor(_class$5.prototype, \"meta\", [_dec], Object.getOwnPropertyDescriptor(_class$5.prototype, \"meta\"), _class$5.prototype), _class$5);\n  var _class$4, _descriptor$4, _descriptor2$1, _descriptor3, _descriptor4, _descriptor5;\n\n  /**\n   @module @ember-data/model\n   */\n  /**\n    This class is returned as the result of accessing an async hasMany relationship\n    on an instance of a Model extending from `@ember-data/model`.\n  \n    A PromiseManyArray is an iterable proxy that allows templates to consume related\n    ManyArrays and update once their contents are no longer pending.\n  \n    In your JS code you should resolve the promise first.\n  \n    ```js\n    const comments = await post.comments;\n    ```\n  \n    @class PromiseManyArray\n    @public\n  */\n  let PromiseManyArray = _exports.c = (_class$4 = class PromiseManyArray {\n    // @deprecated (isDestroyed is not deprecated)\n\n    constructor(promise, content) {\n      //---- Methods/Properties on ArrayProxy that we will keep as our API\n      _initializerDefineProperty(this, \"content\", _descriptor$4, this);\n      //----  Properties/Methods from the PromiseProxyMixin that we will keep as our API\n      /**\n       * Whether the loading promise is still pending\n       *\n       * @property {boolean} isPending\n       * @public\n       */\n      _initializerDefineProperty(this, \"isPending\", _descriptor2$1, this);\n      /**\n       * Whether the loading promise rejected\n       *\n       * @property {boolean} isRejected\n       * @public\n       */\n      _initializerDefineProperty(this, \"isRejected\", _descriptor3, this);\n      /**\n       * Whether the loading promise succeeded\n       *\n       * @property {boolean} isFulfilled\n       * @public\n       */\n      _initializerDefineProperty(this, \"isFulfilled\", _descriptor4, this);\n      /**\n       * Whether the loading promise completed (resolved or rejected)\n       *\n       * @property {boolean} isSettled\n       * @public\n       */\n      _initializerDefineProperty(this, \"isSettled\", _descriptor5, this);\n      this._update(promise, content);\n      this.isDestroyed = false;\n      this.isDestroying = false;\n      {\n        const meta = _ember.default.meta(this);\n        meta.hasMixin = mixin => {\n          (true && !(false) && (0, _debug.deprecate)(`Do not use A() on an EmberData PromiseManyArray`, false, {\n            id: 'ember-data:no-a-with-array-like',\n            until: '5.0',\n            since: {\n              enabled: '4.7',\n              available: '4.7'\n            },\n            for: 'ember-data'\n          })); // @ts-expect-error ArrayMixin is more than a type\n          if (mixin === _array.NativeArray || mixin === _array.default) {\n            return true;\n          }\n          return false;\n        };\n      }\n    }\n    /**\n     * Retrieve the length of the content\n     * @property length\n     * @public\n     */\n    get length() {\n      // shouldn't be needed, but ends up being needed\n      // for computed chains even in 4.x\n      {\n        this['[]'];\n      }\n      return this.content ? this.content.length : 0;\n    }\n\n    // ember-source < 3.23 (e.g. 3.20 lts)\n    // requires that the tag `'[]'` be notified\n    // on the ArrayProxy in order for `{{#each}}`\n    // to recompute. We entangle the '[]' tag from\n    get '[]'() {\n      {\n        var _this$content;\n        return ((_this$content = this.content) === null || _this$content === void 0 ? void 0 : _this$content.length) && this.content;\n      }\n    }\n\n    /**\n     * Iterate the proxied content. Called by the glimmer iterator in #each\n     * We do not guarantee that forEach will always be available. This\n     * may eventually be made to use Symbol.Iterator once glimmer supports it.\n     *\n     * @method forEach\n     * @param cb\n     * @returns\n     * @private\n     */\n    forEach(cb) {\n      if (this.content && this.length) {\n        this.content.forEach(cb);\n      }\n    }\n\n    /**\n     * Reload the relationship\n     * @method reload\n     * @public\n     * @param options\n     * @returns\n     */\n    reload(options) {\n      (true && !(this.content) && (0, _debug.assert)('You are trying to reload an async manyArray before it has been created', this.content));\n      this.content.reload(options);\n      return this;\n    }\n    /**\n     * chain this promise\n     *\n     * @method then\n     * @public\n     * @param success\n     * @param fail\n     * @returns Promise\n     */\n    then(s, f) {\n      return this.promise.then(s, f);\n    }\n\n    /**\n     * catch errors thrown by this promise\n     * @method catch\n     * @public\n     * @param callback\n     * @returns Promise\n     */\n    catch(cb) {\n      return this.promise.catch(cb);\n    }\n\n    /**\n     * run cleanup after this promise completes\n     *\n     * @method finally\n     * @public\n     * @param callback\n     * @returns Promise\n     */\n    finally(cb) {\n      return this.promise.finally(cb);\n    }\n\n    //---- Methods on EmberObject that we should keep\n\n    destroy() {\n      this.isDestroying = true;\n      this.isDestroyed = true;\n      this.content = null;\n      this.promise = null;\n    }\n\n    //---- Methods/Properties on ManyArray that we own and proxy to\n\n    /**\n     * Retrieve the links for this relationship\n     * @property links\n     * @public\n     */\n    get links() {\n      return this.content ? this.content.links : undefined;\n    }\n\n    /**\n     * Retrieve the meta for this relationship\n     * @property meta\n     * @public\n     */\n    get meta() {\n      return this.content ? this.content.meta : undefined;\n    }\n\n    //---- Our own stuff\n\n    _update(promise, content) {\n      if (content !== undefined) {\n        this.content = content;\n      }\n      this.promise = tapPromise(this, promise);\n    }\n    static create(_ref) {\n      let {\n        promise,\n        content\n      } = _ref;\n      return new this(promise, content);\n    }\n  }, _descriptor$4 = _applyDecoratedDescriptor(_class$4.prototype, \"content\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class$4.prototype, \"length\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$4.prototype, \"length\"), _class$4.prototype), _applyDecoratedDescriptor(_class$4.prototype, '[]', [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$4.prototype, '[]'), _class$4.prototype), _descriptor2$1 = _applyDecoratedDescriptor(_class$4.prototype, \"isPending\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class$4.prototype, \"isRejected\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class$4.prototype, \"isFulfilled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class$4.prototype, \"isSettled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class$4.prototype, \"links\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$4.prototype, \"links\"), _class$4.prototype), _applyDecoratedDescriptor(_class$4.prototype, \"meta\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$4.prototype, \"meta\"), _class$4.prototype), _class$4);\n  {\n    PromiseManyArray.prototype.createRecord = function createRecord() {\n      (true && !(false) && (0, _debug.deprecate)(`The createRecord method on ember-data's PromiseManyArray is deprecated. await the promise and work with the ManyArray directly.`, false, {\n        id: 'ember-data:deprecate-promise-many-array-behaviors',\n        until: '5.0',\n        since: {\n          enabled: '4.7',\n          available: '4.7'\n        },\n        for: 'ember-data'\n      }));\n      (true && !(this.content) && (0, _debug.assert)('You are trying to createRecord on an async manyArray before it has been created', this.content));\n      return this.content.createRecord(...arguments);\n    };\n    Object.defineProperty(PromiseManyArray.prototype, 'firstObject', {\n      get() {\n        (true && !(false) && (0, _debug.deprecate)(`The firstObject property on ember-data's PromiseManyArray is deprecated. await the promise and work with the ManyArray directly.`, false, {\n          id: 'ember-data:deprecate-promise-many-array-behaviors',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          },\n          for: 'ember-data'\n        }));\n        return this.content ? this.content.firstObject : undefined;\n      }\n    });\n    Object.defineProperty(PromiseManyArray.prototype, 'lastObject', {\n      get() {\n        (true && !(false) && (0, _debug.deprecate)(`The lastObject property on ember-data's PromiseManyArray is deprecated. await the promise and work with the ManyArray directly.`, false, {\n          id: 'ember-data:deprecate-promise-many-array-behaviors',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          },\n          for: 'ember-data'\n        }));\n        return this.content ? this.content.lastObject : undefined;\n      }\n    });\n  }\n  function tapPromise(proxy, promise) {\n    proxy.isPending = true;\n    proxy.isSettled = false;\n    proxy.isFulfilled = false;\n    proxy.isRejected = false;\n    return Promise.resolve(promise).then(content => {\n      proxy.isPending = false;\n      proxy.isFulfilled = true;\n      proxy.isSettled = true;\n      proxy.content = content;\n      return content;\n    }, error => {\n      proxy.isPending = false;\n      proxy.isFulfilled = false;\n      proxy.isRejected = true;\n      proxy.isSettled = true;\n      throw error;\n    });\n  }\n  {\n    const EmberObjectMethods = ['addObserver', 'cacheFor', 'decrementProperty', 'get', 'getProperties', 'incrementProperty', 'notifyPropertyChange', 'removeObserver', 'set', 'setProperties', 'toggleProperty'];\n    EmberObjectMethods.forEach(method => {\n      PromiseManyArray.prototype[method] = function delegatedMethod() {\n        (true && !(false) && (0, _debug.deprecate)(`The ${method} method on ember-data's PromiseManyArray is deprecated. await the promise and work with the ManyArray directly.`, false, {\n          id: 'ember-data:deprecate-promise-many-array-behaviors',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          },\n          for: 'ember-data'\n        }));\n        for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n          args[_key2] = arguments[_key2];\n        }\n        return _ember.default[method](this, ...args);\n      };\n    });\n    const InheritedProxyMethods = ['addArrayObserver', 'addObject', 'addObjects', 'any', 'arrayContentDidChange', 'arrayContentWillChange', 'clear', 'compact', 'every', 'filter', 'filterBy', 'find', 'findBy', 'getEach', 'includes', 'indexOf', 'insertAt', 'invoke', 'isAny', 'isEvery', 'lastIndexOf', 'map', 'mapBy',\n    // TODO update RFC to note objectAt was deprecated (forEach was left for iteration)\n    'objectAt', 'objectsAt', 'popObject', 'pushObject', 'pushObjects', 'reduce', 'reject', 'rejectBy', 'removeArrayObserver', 'removeAt', 'removeObject', 'removeObjects', 'replace', 'reverseObjects', 'setEach', 'setObjects', 'shiftObject', 'slice', 'sortBy', 'toArray', 'uniq', 'uniqBy', 'unshiftObject', 'unshiftObjects', 'without'];\n    InheritedProxyMethods.forEach(method => {\n      PromiseManyArray.prototype[method] = function proxiedMethod() {\n        (true && !(false) && (0, _debug.deprecate)(`The ${method} method on ember-data's PromiseManyArray is deprecated. await the promise and work with the ManyArray directly.`, false, {\n          id: 'ember-data:deprecate-promise-many-array-behaviors',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          },\n          for: 'ember-data'\n        }));\n        (true && !(this.content) && (0, _debug.assert)(`Cannot call ${method} before content is assigned.`, this.content));\n        return this.content[method](...arguments);\n      };\n    });\n  }\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 stable record identifiers and the `relationshipMeta` needs to be the meta\n    information about the relationship, retrieved via\n    `record.relationshipFor(key)`.\n  */\n  let assertPolymorphicType;\n  {\n    let checkPolymorphic = function checkPolymorphic(modelClass, addedModelClass) {\n      if (modelClass.__isMixin) {\n        return modelClass.__mixin.detect(addedModelClass.PrototypeMixin) ||\n        // handle native class extension e.g. `class Post extends Model.extend(Commentable) {}`\n        modelClass.__mixin.detect(Object.getPrototypeOf(addedModelClass).PrototypeMixin);\n      }\n      return addedModelClass.prototype instanceof modelClass || modelClass.detect(addedModelClass);\n    };\n    assertPolymorphicType = function assertPolymorphicType(parentIdentifier, parentDefinition, addedIdentifier, store) {\n      let asserted = false;\n      if (parentDefinition.inverseIsImplicit) {\n        return;\n      }\n      if (parentDefinition.isPolymorphic) {\n        var _meta$options;\n        let meta = store.getSchemaDefinitionService().relationshipsDefinitionFor(addedIdentifier)[parentDefinition.inverseKey];\n        if ((meta === null || meta === void 0 || (_meta$options = meta.options) === null || _meta$options === void 0 || (_meta$options = _meta$options.as) === null || _meta$options === void 0 ? void 0 : _meta$options.length) > 0) {\n          asserted = true;\n          (true && !(meta.options.as === parentDefinition.type) && (0, _debug.assert)(`The schema for the relationship '${parentDefinition.inverseKey}' on '${addedIdentifier.type}' type does not implement '${parentDefinition.type}' and thus cannot be assigned to the '${parentDefinition.key}' relationship in '${parentIdentifier.type}'. The definition should specify 'as: \"${parentDefinition.type}\"' in options.`, meta.options.as === parentDefinition.type));\n        }\n      }\n      {\n        if (!asserted) {\n          store = store._store ? store._store : store; // allow usage with storeWrapper\n          let addedModelName = addedIdentifier.type;\n          let parentModelName = parentIdentifier.type;\n          let key = parentDefinition.key;\n          let relationshipModelName = parentDefinition.type;\n          let relationshipClass = store.modelFor(relationshipModelName);\n          let addedClass = store.modelFor(addedModelName);\n          let 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          let isPolymorphic = checkPolymorphic(relationshipClass, addedClass);\n          (true && !(isPolymorphic) && (0, _debug.assert)(assertionMessage, isPolymorphic));\n        }\n      }\n    };\n  }\n  var _class$3, _descriptor$3;\n\n  /**\n    @module @ember-data/model\n  */\n\n  function isResourceIdentiferWithRelatedLinks$1(value) {\n    return Boolean(value && value.links && value.links.related);\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   @public\n   */\n  let BelongsToReference = (_class$3 = class BelongsToReference {\n    // unsubscribe tokens given to us by the notification manager\n\n    constructor(store, graph, parentIdentifier, belongsToRelationship, key) {\n      this.___identifier = void 0;\n      this.___token = void 0;\n      this.___relatedToken = null;\n      _initializerDefineProperty(this, \"_ref\", _descriptor$3, this);\n      this.graph = graph;\n      this.key = key;\n      this.belongsToRelationship = belongsToRelationship;\n      this.type = belongsToRelationship.definition.type;\n      this.store = store;\n      this.___identifier = parentIdentifier;\n      this.___token = store.notifications.subscribe(parentIdentifier, (_, bucket, notifiedKey) => {\n        if (bucket === 'relationships' && notifiedKey === key) {\n          this._ref++;\n        }\n      });\n\n      // TODO inverse\n    }\n    destroy() {\n      // TODO @feature we need the notification manager often enough\n      // we should potentially just expose it fully public\n      this.store.notifications.unsubscribe(this.___token);\n      this.___token = null;\n      if (this.___relatedToken) {\n        this.store.notifications.unsubscribe(this.___relatedToken);\n        this.___relatedToken = null;\n      }\n    }\n\n    /**\n     * The identifier of the record that this reference refers to.\n     * `null` if no related record is known.\n     *\n     * @property {StableRecordIdentifier | null} identifier\n     * @public\n     */\n    get identifier() {\n      if (this.___relatedToken) {\n        this.store.notifications.unsubscribe(this.___relatedToken);\n        this.___relatedToken = null;\n      }\n      let resource = this._resource();\n      if (resource && resource.data) {\n        const identifier = this.store.identifierCache.getOrCreateRecordIdentifier(resource.data);\n        this.___relatedToken = this.store.notifications.subscribe(identifier, (_, bucket, notifiedKey) => {\n          if (bucket === 'identity' || bucket === 'attributes' && notifiedKey === 'id') {\n            this._ref++;\n          }\n        });\n        return identifier;\n      }\n      return null;\n    }\n\n    /**\n     The `id` of the record that this reference refers to. Together, the\n     `type()` and `id()` methods form a composite key for the identity\n     map. This can be used to access the id of an async relationship\n     without triggering a fetch that would normally happen if you\n     attempted to use `record.relationship.id`.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n      @belongsTo('user', { async: true, inverse: null }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // get the identifier of the reference\n     if (userRef.remoteType() === \"id\") {\n        let id = userRef.id();\n      }\n     ```\n      @method id\n     @public\n     @return {String} The id of the record in this belongsTo relationship.\n     */\n    id() {\n      var _this$identifier;\n      return ((_this$identifier = this.identifier) === null || _this$identifier === void 0 ? void 0 : _this$identifier.id) || null;\n    }\n\n    /**\n     The link Ember Data will use to fetch or reload this belongs-to\n     relationship. By default it uses only the \"related\" resource linkage.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n     export default Model.extend({\n        user: belongsTo('user', { async: true, inverse: null })\n      });\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              links: {\n                related: '/articles/1/author'\n              }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // get the identifier of the reference\n     if (userRef.remoteType() === \"link\") {\n        let link = userRef.link();\n      }\n     ```\n      @method link\n     @public\n     @return {String} The link Ember Data will use to fetch or reload this belongs-to relationship.\n     */\n    link() {\n      let resource = this._resource();\n      if (isResourceIdentiferWithRelatedLinks$1(resource)) {\n        if (resource.links) {\n          let related = resource.links.related;\n          return !related || typeof related === 'string' ? related : related.href;\n        }\n      }\n      return null;\n    }\n\n    /**\n     * any links that have been received for this relationship\n     *\n     * @method links\n     * @public\n     * @returns\n     */\n    links() {\n      let resource = this._resource();\n      return resource && resource.links ? resource.links : null;\n    }\n\n    /**\n     The meta data for the belongs-to relationship.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n     export default Model.extend({\n        user: belongsTo('user', { async: true, inverse: null })\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              },\n              meta: {\n                lastUpdated: 1458014400000\n              }\n            }\n          }\n        }\n      });\n      let userRef = blog.belongsTo('user');\n      userRef.meta() // { lastUpdated: 1458014400000 }\n     ```\n      @method meta\n      @public\n     @return {Object} The meta information for the belongs-to relationship.\n     */\n    meta() {\n      let meta = null;\n      let resource = this._resource();\n      if (resource && resource.meta && typeof resource.meta === 'object') {\n        meta = resource.meta;\n      }\n      return meta;\n    }\n    _resource() {\n      this._ref; // subscribe\n      const cache = this.store._instanceCache.getResourceCache(this.___identifier);\n      return cache.getRelationship(this.___identifier, this.key);\n    }\n\n    /**\n     This returns a string that represents how the reference will be\n     looked up when it is loaded. If the relationship has a link it will\n     use the \"link\" otherwise it defaults to \"id\".\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany('comment', { async: true, inverse: null }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      // get the identifier of the reference\n     if (commentsRef.remoteType() === \"ids\") {\n       let ids = commentsRef.ids();\n     } else if (commentsRef.remoteType() === \"link\") {\n       let link = commentsRef.link();\n     }\n     ```\n      @method remoteType\n     @public\n     @return {String} The name of the remote type. This should either be `link` or `id`\n     */\n    remoteType() {\n      let value = this._resource();\n      if (isResourceIdentiferWithRelatedLinks$1(value)) {\n        return 'link';\n      }\n      return 'id';\n    }\n\n    /**\n     `push` can be used to update the data in the relationship and Ember\n     Data will treat the new data as the canonical value of this\n     relationship on the backend.\n      Example\n      ```app/models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @belongsTo('user', { async: true, inverse: null }) user;\n      }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // provide data for reference\n     userRef.push({\n        data: {\n          type: 'user',\n          id: 1,\n          attributes: {\n            username: \"@user\"\n          }\n        }\n      }).then(function(user) {\n        userRef.value() === user;\n      });\n     ```\n      @method push\n      @public\n     @param {Object|Promise} objectOrPromise a promise that resolves to a JSONAPI document object describing the new value of this relationship.\n     @return {Promise<record>} A promise that resolves with the new value in this belongs-to relationship.\n     */\n    async push(data) {\n      let jsonApiDoc = data;\n      {\n        if (data.then) {\n          jsonApiDoc = await data;\n          if (jsonApiDoc !== data) {\n            (true && !(false) && (0, _debug.deprecate)(`You passed in a Promise to a Reference API that now expects a resolved value. await the value before setting it.`, false, {\n              id: 'ember-data:deprecate-promise-proxies',\n              until: '5.0',\n              since: {\n                enabled: '4.7',\n                available: '4.7'\n              },\n              for: 'ember-data'\n            }));\n          }\n        }\n      }\n      let record = this.store.push(jsonApiDoc);\n      {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n        assertPolymorphicType(this.belongsToRelationship.identifier, this.belongsToRelationship.definition, (0, _private.recordIdentifierFor)(record), this.store);\n      }\n      const {\n        identifier\n      } = this.belongsToRelationship;\n      this.store._join(() => {\n        this.graph.push({\n          op: 'replaceRelatedRecord',\n          record: identifier,\n          field: this.key,\n          value: (0, _private.recordIdentifierFor)(record)\n        });\n      });\n      return record;\n    }\n\n    /**\n     `value()` synchronously returns the current value of the belongs-to\n     relationship. Unlike `record.relationshipName`, calling\n     `value()` on a reference does not trigger a fetch if the async\n     relationship is not yet loaded. If the relationship is not loaded\n     it will always return `null`.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n       @belongsTo('user', { async: true, inverse: null }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      userRef.value(); // null\n      // provide data for reference\n     userRef.push({\n        data: {\n          type: 'user',\n          id: 1,\n          attributes: {\n            username: \"@user\"\n          }\n        }\n      }).then(function(user) {\n        userRef.value(); // user\n      });\n     ```\n      @method value\n      @public\n     @return {Model} the record in this relationship\n     */\n    value() {\n      let resource = this._resource();\n      return resource && resource.data ? this.store.peekRecord(resource.data) : null;\n    }\n\n    /**\n     Loads a record in a belongs-to relationship if it is not already\n     loaded. If the relationship is already loaded this method does not\n     trigger a new load.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n       @belongsTo('user', { async: true, inverse: null }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      userRef.value(); // null\n      userRef.load().then(function(user) {\n        userRef.value() === user\n      });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference.\n      Example\n      ```javascript\n     userRef.load({ adapterOptions: { isPrivate: true } }).then(function(user) {\n       userRef.value() === user;\n     });\n     ```\n     ```app/adapters/user.js\n     import Adapter from '@ember-data/adapter';\n      export default class UserAdapter extends Adapter {\n       findRecord(store, type, id, snapshot) {\n         // In the adapter you will have access to adapterOptions.\n         let adapterOptions = snapshot.adapterOptions;\n       }\n     });\n     ```\n      @method load\n      @public\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the record in this belongs-to relationship.\n     */\n    load(options) {\n      const support = LEGACY_SUPPORT.get(this.___identifier);\n      const fetchSyncRel = !this.belongsToRelationship.definition.isAsync && !areAllInverseRecordsLoaded(this.store, this._resource());\n      return fetchSyncRel ? support.reloadBelongsTo(this.key, options).then(() => this.value()) : support.getBelongsTo(this.key, options);\n    }\n\n    /**\n     Triggers a reload of the value in this relationship. If the\n     remoteType is `\"link\"` Ember Data will use the relationship link to\n     reload the relationship. Otherwise it will reload the record by its\n     id.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n       @belongsTo('user', { async: true, inverse: null }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      userRef.reload().then(function(user) {\n        userRef.value() === user\n      });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference. A full example\n     can be found in the `load` method.\n      Example\n      ```javascript\n     userRef.reload({ adapterOptions: { isPrivate: true } })\n     ```\n      @method reload\n      @public\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the record in this belongs-to relationship after the reload has completed.\n     */\n    reload(options) {\n      const support = LEGACY_SUPPORT.get(this.___identifier);\n      return support.reloadBelongsTo(this.key, options).then(() => this.value());\n    }\n  }, _descriptor$3 = _applyDecoratedDescriptor(_class$3.prototype, \"_ref\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class$3.prototype, \"identifier\", [cached, _compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$3.prototype, \"identifier\"), _class$3.prototype), _class$3);\n  var _class$2, _descriptor$2;\n\n  /**\n    @module @ember-data/model\n  */\n\n  function isResourceIdentiferWithRelatedLinks(value) {\n    return Boolean(value && value.links && value.links.related);\n  }\n  /**\n   A `HasManyReference` is a low-level API that allows users and addon\n   authors to perform meta-operations on a has-many relationship.\n  \n   @class HasManyReference\n   @public\n   @extends Reference\n   */\n  let HasManyReference = (_class$2 = class HasManyReference {\n    // unsubscribe tokens given to us by the notification manager\n\n    constructor(store, graph, parentIdentifier, hasManyRelationship, key) {\n      this.___token = void 0;\n      this.___identifier = void 0;\n      this.___relatedTokenMap = void 0;\n      _initializerDefineProperty(this, \"_ref\", _descriptor$2, this);\n      this.graph = graph;\n      this.key = key;\n      this.hasManyRelationship = hasManyRelationship;\n      this.type = hasManyRelationship.definition.type;\n      this.store = store;\n      this.___identifier = parentIdentifier;\n      this.___token = store.notifications.subscribe(parentIdentifier, (_, bucket, notifiedKey) => {\n        if (bucket === 'relationships' && notifiedKey === key) {\n          this._ref++;\n        }\n      });\n      this.___relatedTokenMap = new Map();\n      // TODO inverse\n    }\n    destroy() {\n      this.store.notifications.unsubscribe(this.___token);\n      this.___relatedTokenMap.forEach(token => {\n        this.store.notifications.unsubscribe(token);\n      });\n      this.___relatedTokenMap.clear();\n    }\n\n    /**\n     * An array of identifiers for the records that this reference refers to.\n     *\n     * @property {StableRecordIdentifier[]} identifiers\n     * @public\n     */\n    get identifiers() {\n      this._ref; // consume the tracked prop\n\n      let resource = this._resource();\n      let map = this.___relatedTokenMap;\n      this.___relatedTokenMap = new Map();\n      if (resource && resource.data) {\n        return resource.data.map(resourceIdentifier => {\n          const identifier = this.store.identifierCache.getOrCreateRecordIdentifier(resourceIdentifier);\n          let token = map.get(identifier);\n          if (token) {\n            map.delete(identifier);\n          } else {\n            token = this.store.notifications.subscribe(identifier, (_, bucket, notifiedKey) => {\n              if (bucket === 'identity' || bucket === 'attributes' && notifiedKey === 'id') {\n                this._ref++;\n              }\n            });\n          }\n          this.___relatedTokenMap.set(identifier, token);\n          return identifier;\n        });\n      }\n      map.forEach(token => {\n        this.store.notifications.unsubscribe(token);\n      });\n      map.clear();\n      return [];\n    }\n    _resource() {\n      const cache = this.store._instanceCache.getResourceCache(this.___identifier);\n      return cache.getRelationship(this.___identifier, this.key);\n    }\n\n    /**\n     This returns a string that represents how the reference will be\n     looked up when it is loaded. If the relationship has a link it will\n     use the \"link\" otherwise it defaults to \"id\".\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany('comment', { async: true, inverse: null }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      // get the identifier of the reference\n     if (commentsRef.remoteType() === \"ids\") {\n       let ids = commentsRef.ids();\n     } else if (commentsRef.remoteType() === \"link\") {\n       let link = commentsRef.link();\n     }\n     ```\n      @method remoteType\n     @public\n     @return {String} The name of the remote type. This should either be `link` or `ids`\n     */\n    remoteType() {\n      let value = this._resource();\n      if (value && value.links && value.links.related) {\n        return 'link';\n      }\n      return 'ids';\n    }\n\n    /**\n     `ids()` returns an array of the record IDs in this relationship.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany('comment', { async: true, inverse: null }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.ids(); // ['1']\n     ```\n      @method ids\n      @public\n     @return {Array} The ids in this has-many relationship\n     */\n    ids() {\n      return this.identifiers.map(identifier => identifier.id);\n    }\n\n    /**\n     The link Ember Data will use to fetch or reload this belongs-to\n     relationship. By default it uses only the \"related\" resource linkage.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n     export default Model.extend({\n        user: belongsTo('user', { async: true, inverse: null })\n      });\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              links: {\n                related: '/articles/1/author'\n              }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // get the identifier of the reference\n     if (userRef.remoteType() === \"link\") {\n        let link = userRef.link();\n      }\n     ```\n      @method link\n     @public\n     @return {String} The link Ember Data will use to fetch or reload this belongs-to relationship.\n     */\n    link() {\n      let resource = this._resource();\n      if (isResourceIdentiferWithRelatedLinks(resource)) {\n        if (resource.links) {\n          let related = resource.links.related;\n          return !related || typeof related === 'string' ? related : related.href;\n        }\n      }\n      return null;\n    }\n\n    /**\n     * any links that have been received for this relationship\n     *\n     * @method links\n     * @public\n     * @returns\n     */\n    links() {\n      let resource = this._resource();\n      return resource && resource.links ? resource.links : null;\n    }\n\n    /**\n     The meta data for the has-many relationship.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { hasMany } from '@ember-data/model';\n     export default Model.extend({\n        users: hasMany('user', { async: true, inverse: null })\n      });\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            users: {\n              links: {\n                related: {\n                  href: '/articles/1/authors'\n                },\n              },\n              meta: {\n                lastUpdated: 1458014400000\n              }\n            }\n          }\n        }\n      });\n      let usersRef = blog.hasMany('user');\n      usersRef.meta() // { lastUpdated: 1458014400000 }\n     ```\n     @method meta\n    @public\n    @return {Object} The meta information for the belongs-to relationship.\n    */\n    meta() {\n      let meta = null;\n      let resource = this._resource();\n      if (resource && resource.meta && typeof resource.meta === 'object') {\n        meta = resource.meta;\n      }\n      return meta;\n    }\n\n    /**\n     `push` can be used to update the data in the relationship and Ember\n     Data will treat the new data as the canonical value of this\n     relationship on the backend.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany('comment', { async: true, inverse: null }) comments;\n     }\n     ```\n      ```\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.ids(); // ['1']\n      commentsRef.push([\n     [{ type: 'comment', id: 2 }],\n     [{ type: 'comment', id: 3 }],\n     ])\n      commentsRef.ids(); // ['2', '3']\n     ```\n      @method push\n      @public\n     @param {Array|Promise} objectOrPromise a promise that resolves to a JSONAPI document object describing the new value of this relationship.\n     @return {ManyArray}\n     */\n    async push(objectOrPromise) {\n      let payload = objectOrPromise;\n      {\n        if (objectOrPromise.then) {\n          payload = await objectOrPromise;\n          if (payload !== objectOrPromise) {\n            (true && !(false) && (0, _debug.deprecate)(`You passed in a Promise to a Reference API that now expects a resolved value. await the value before setting it.`, false, {\n              id: 'ember-data:deprecate-promise-proxies',\n              until: '5.0',\n              since: {\n                enabled: '4.7',\n                available: '4.7'\n              },\n              for: 'ember-data'\n            }));\n          }\n        }\n      }\n      let array;\n      if (!Array.isArray(payload) && typeof payload === 'object' && Array.isArray(payload.data)) {\n        array = payload.data;\n      } else {\n        array = payload;\n      }\n      const {\n        store\n      } = this;\n      let identifiers = array.map(obj => {\n        let record;\n        if ('data' in obj) {\n          // TODO deprecate pushing non-valid JSON:API here\n          record = store.push(obj);\n        } else {\n          record = store.push({\n            data: obj\n          });\n        }\n        {\n          let relationshipMeta = this.hasManyRelationship.definition;\n          let identifier = this.hasManyRelationship.identifier;\n\n          // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n          assertPolymorphicType(identifier, relationshipMeta, (0, _store.recordIdentifierFor)(record), store);\n        }\n        return (0, _store.recordIdentifierFor)(record);\n      });\n      const {\n        identifier\n      } = this.hasManyRelationship;\n      store._join(() => {\n        this.graph.push({\n          op: 'replaceRelatedRecords',\n          record: identifier,\n          field: this.key,\n          value: identifiers\n        });\n      });\n      return this.load();\n    }\n    _isLoaded() {\n      let hasRelationshipDataProperty = this.hasManyRelationship.state.hasReceivedData;\n      if (!hasRelationshipDataProperty) {\n        return false;\n      }\n      let localState = this.hasManyRelationship.localState;\n      return localState.every(identifier => {\n        return this.store._instanceCache.recordIsLoaded(identifier, true) === true;\n      });\n    }\n\n    /**\n     `value()` synchronously returns the current value of the has-many\n     relationship. Unlike `record.relationshipName`, calling\n     `value()` on a reference does not trigger a fetch if the async\n     relationship is not yet loaded. If the relationship is not loaded\n     it will always return `null`.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany('comment', { async: true, inverse: null }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      post.comments.then(function(comments) {\n       commentsRef.value() === comments\n     })\n     ```\n      @method value\n      @public\n     @return {ManyArray}\n     */\n    value() {\n      const support = LEGACY_SUPPORT.get(this.___identifier);\n      const loaded = this._isLoaded();\n      if (!loaded) {\n        // subscribe to changes\n        // for when we are not loaded yet\n        this._ref;\n        return null;\n      }\n      return support.getManyArray(this.key);\n    }\n\n    /**\n     Loads the relationship if it is not already loaded.  If the\n     relationship is already loaded this method does not trigger a new\n     load. This causes a request to the specified\n     relationship link or reloads all items currently in the relationship.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany('comment', { async: true, inverse: null }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.load().then(function(comments) {\n       //...\n     });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference.\n      Example\n      ```javascript\n     commentsRef.load({ adapterOptions: { isPrivate: true } })\n       .then(function(comments) {\n         //...\n       });\n     ```\n      ```app/adapters/comment.js\n     export default ApplicationAdapter.extend({\n       findMany(store, type, id, snapshots) {\n         // In the adapter you will have access to adapterOptions.\n         let adapterOptions = snapshots[0].adapterOptions;\n       }\n     });\n     ```\n      @method load\n      @public\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the ManyArray in\n     this has-many relationship.\n     */\n    async load(options) {\n      const support = LEGACY_SUPPORT.get(this.___identifier);\n      const fetchSyncRel = !this.hasManyRelationship.definition.isAsync && !areAllInverseRecordsLoaded(this.store, this._resource());\n      return fetchSyncRel ? support.reloadHasMany(this.key, options) : support.getHasMany(this.key, options); // this cast is necessary because typescript does not work properly with custom thenables;\n    }\n\n    /**\n     Reloads this has-many relationship. This causes a request to the specified\n     relationship link or reloads all items currently in the relationship.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany('comment', { async: true, inverse: null }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.reload().then(function(comments) {\n       //...\n     });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference. A full example\n     can be found in the `load` method.\n      Example\n      ```javascript\n     commentsRef.reload({ adapterOptions: { isPrivate: true } })\n     ```\n      @method reload\n      @public\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the ManyArray in this has-many relationship.\n     */\n    reload(options) {\n      const support = LEGACY_SUPPORT.get(this.___identifier);\n      return support.reloadHasMany(this.key, options);\n    }\n  }, _descriptor$2 = _applyDecoratedDescriptor(_class$2.prototype, \"_ref\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class$2.prototype, \"identifiers\", [cached, _compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$2.prototype, \"identifiers\"), _class$2.prototype), _class$2);\n  class LegacySupport {\n    constructor(record) {\n      this.record = record;\n      this.store = (0, _private.storeFor)(record);\n      this.identifier = (0, _private.recordIdentifierFor)(record);\n      this.cache = (0, _private.peekCache)(record);\n      this._manyArrayCache = Object.create(null);\n      this._relationshipPromisesCache = Object.create(null);\n      this._relationshipProxyCache = Object.create(null);\n      this._pending = Object.create(null);\n      this.references = Object.create(null);\n    }\n    _syncArray(array) {\n      // It’s possible the parent side of the relationship may have been destroyed by this point\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n      const currentState = array[_private.SOURCE];\n      const identifier = this.identifier;\n      let [identifiers, jsonApi] = this._getCurrentState(identifier, array.key);\n      if (jsonApi.meta) {\n        array.meta = jsonApi.meta;\n      }\n      if (jsonApi.links) {\n        array.links = jsonApi.links;\n      }\n      currentState.length = 0;\n      (0, _private.fastPush)(currentState, identifiers);\n    }\n    mutate(mutation) {\n      this.cache.mutate(mutation);\n    }\n    _findBelongsTo(key, resource, relationship, options) {\n      // TODO @runspired follow up if parent isNew then we should not be attempting load here\n      // TODO @runspired follow up on whether this should be in the relationship requests cache\n      return this._findBelongsToByJsonApiResource(resource, this.identifier, relationship, options).then(identifier => handleCompletedRelationshipRequest(this, key, relationship, identifier), e => handleCompletedRelationshipRequest(this, key, relationship, null, e));\n    }\n    reloadBelongsTo(key, options) {\n      let loadingPromise = this._relationshipPromisesCache[key];\n      if (loadingPromise) {\n        return loadingPromise;\n      }\n      const graphFor = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).graphFor;\n      const relationship = graphFor(this.store).get(this.identifier, key);\n      (true && !(isBelongsTo(relationship)) && (0, _debug.assert)(`Expected ${key} to be a belongs-to relationship`, isBelongsTo(relationship)));\n      let resource = this.cache.getRelationship(this.identifier, key);\n      relationship.state.hasFailedLoadAttempt = false;\n      relationship.state.shouldForceReload = true;\n      let promise = this._findBelongsTo(key, resource, relationship, options);\n      if (this._relationshipProxyCache[key]) {\n        return this._updatePromiseProxyFor('belongsTo', key, {\n          promise\n        });\n      }\n      return promise;\n    }\n    getBelongsTo(key, options) {\n      const {\n        identifier,\n        cache\n      } = this;\n      let resource = cache.getRelationship(this.identifier, key);\n      let relatedIdentifier = resource && resource.data ? resource.data : null;\n      (true && !(!relatedIdentifier || (0, _private.isStableIdentifier)(relatedIdentifier)) && (0, _debug.assert)(`Expected a stable identifier`, !relatedIdentifier || (0, _private.isStableIdentifier)(relatedIdentifier)));\n      const store = this.store;\n      const graphFor = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).graphFor;\n      const relationship = graphFor(store).get(this.identifier, key);\n      (true && !(isBelongsTo(relationship)) && (0, _debug.assert)(`Expected ${key} to be a belongs-to relationship`, isBelongsTo(relationship)));\n      let isAsync = relationship.definition.isAsync;\n      let _belongsToState = {\n        key,\n        store,\n        legacySupport: this,\n        modelName: relationship.definition.type\n      };\n      if (isAsync) {\n        if (relationship.state.hasFailedLoadAttempt) {\n          return this._relationshipProxyCache[key];\n        }\n        let promise = this._findBelongsTo(key, resource, relationship, options);\n        const isLoaded = relatedIdentifier && store._instanceCache.recordIsLoaded(relatedIdentifier);\n        return this._updatePromiseProxyFor('belongsTo', key, {\n          promise,\n          content: isLoaded ? store._instanceCache.getRecord(relatedIdentifier) : null,\n          _belongsToState\n        });\n      } else {\n        if (relatedIdentifier === null) {\n          return null;\n        } else {\n          (true && !(store._instanceCache.recordIsLoaded(relatedIdentifier, true)) && (0, _debug.assert)(`You looked up the '${key}' relationship on a '${identifier.type}' with id ${identifier.id || 'null'} 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(<type>, { async: true, inverse: <inverse> })\\`)`, store._instanceCache.recordIsLoaded(relatedIdentifier, true)));\n          return store._instanceCache.getRecord(relatedIdentifier);\n        }\n      }\n    }\n    setDirtyBelongsTo(key, value) {\n      return this.cache.mutate({\n        op: 'replaceRelatedRecord',\n        record: this.identifier,\n        field: key,\n        value: extractIdentifierFromRecord(value)\n      },\n      // @ts-expect-error\n      true);\n    }\n    _getCurrentState(identifier, field) {\n      let jsonApi = this.cache.getRelationship(identifier, field, true);\n      const cache = this.store._instanceCache;\n      let identifiers = [];\n      if (jsonApi.data) {\n        for (let i = 0; i < jsonApi.data.length; i++) {\n          const identifier = jsonApi.data[i];\n          (true && !((0, _private.isStableIdentifier)(identifier)) && (0, _debug.assert)(`Expected a stable identifier`, (0, _private.isStableIdentifier)(identifier)));\n          if (cache.recordIsLoaded(identifier, true)) {\n            identifiers.push(identifier);\n          }\n        }\n      }\n      return [identifiers, jsonApi];\n    }\n    getManyArray(key, definition) {\n      {\n        let manyArray = this._manyArrayCache[key];\n        if (!definition) {\n          const graphFor = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).graphFor;\n          definition = graphFor(this.store).get(this.identifier, key).definition;\n        }\n        if (!manyArray) {\n          const [identifiers, doc] = this._getCurrentState(this.identifier, key);\n          manyArray = new RelatedCollection({\n            store: this.store,\n            type: definition.type,\n            identifier: this.identifier,\n            cache: this.cache,\n            identifiers,\n            key,\n            meta: doc.meta || null,\n            links: doc.links || null,\n            isPolymorphic: definition.isPolymorphic,\n            isAsync: definition.isAsync,\n            _inverseIsAsync: definition.inverseIsAsync,\n            manager: this,\n            isLoaded: !definition.isAsync,\n            allowMutation: true\n          });\n          this._manyArrayCache[key] = manyArray;\n        }\n        return manyArray;\n      }\n      (true && !(false) && (0, _debug.assert)('hasMany only works with the @ember-data/json-api package'));\n    }\n    fetchAsyncHasMany(key, relationship, manyArray, options) {\n      {\n        let loadingPromise = this._relationshipPromisesCache[key];\n        if (loadingPromise) {\n          return loadingPromise;\n        }\n        const jsonApi = this.cache.getRelationship(this.identifier, key);\n        const promise = this._findHasManyByJsonApiResource(jsonApi, this.identifier, relationship, options);\n        if (!promise) {\n          manyArray.isLoaded = true;\n          return Promise.resolve(manyArray);\n        }\n        loadingPromise = promise.then(() => handleCompletedRelationshipRequest(this, key, relationship, manyArray), e => handleCompletedRelationshipRequest(this, key, relationship, manyArray, e));\n        this._relationshipPromisesCache[key] = loadingPromise;\n        return loadingPromise;\n      }\n      (true && !(false) && (0, _debug.assert)('hasMany only works with the @ember-data/json-api package'));\n    }\n    reloadHasMany(key, options) {\n      {\n        let loadingPromise = this._relationshipPromisesCache[key];\n        if (loadingPromise) {\n          return loadingPromise;\n        }\n        const graphFor = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).graphFor;\n        const relationship = graphFor(this.store).get(this.identifier, key);\n        const {\n          definition,\n          state\n        } = relationship;\n        state.hasFailedLoadAttempt = false;\n        state.shouldForceReload = true;\n        let manyArray = this.getManyArray(key, definition);\n        let promise = this.fetchAsyncHasMany(key, relationship, manyArray, options);\n        if (this._relationshipProxyCache[key]) {\n          return this._updatePromiseProxyFor('hasMany', key, {\n            promise\n          });\n        }\n        return promise;\n      }\n      (true && !(false) && (0, _debug.assert)(`hasMany only works with the @ember-data/json-api package`));\n    }\n    getHasMany(key, options) {\n      {\n        const graphFor = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).graphFor;\n        const relationship = graphFor(this.store).get(this.identifier, key);\n        const {\n          definition,\n          state\n        } = relationship;\n        let manyArray = this.getManyArray(key, definition);\n        if (definition.isAsync) {\n          if (state.hasFailedLoadAttempt) {\n            return this._relationshipProxyCache[key];\n          }\n          let promise = this.fetchAsyncHasMany(key, relationship, manyArray, options);\n          return this._updatePromiseProxyFor('hasMany', key, {\n            promise,\n            content: manyArray\n          });\n        } else {\n          (true && !(!anyUnloaded(this.store, relationship)) && (0, _debug.assert)(`You looked up the '${key}' relationship on a '${this.identifier.type}' with id ${this.identifier.id || 'null'} 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(<type>, { async: true, inverse: <inverse> })')`, !anyUnloaded(this.store, relationship)));\n          return manyArray;\n        }\n      }\n      (true && !(false) && (0, _debug.assert)(`hasMany only works with the @ember-data/json-api package`));\n    }\n    _updatePromiseProxyFor(kind, key, args) {\n      let promiseProxy = this._relationshipProxyCache[key];\n      if (kind === 'hasMany') {\n        const {\n          promise,\n          content\n        } = args;\n        if (promiseProxy) {\n          (true && !('_update' in promiseProxy) && (0, _debug.assert)(`Expected a PromiseManyArray`, '_update' in promiseProxy));\n          promiseProxy._update(promise, content);\n        } else {\n          promiseProxy = this._relationshipProxyCache[key] = new PromiseManyArray(promise, content);\n        }\n        return promiseProxy;\n      }\n      if (promiseProxy) {\n        const {\n          promise,\n          content\n        } = args;\n        (true && !('_belongsToState' in promiseProxy) && (0, _debug.assert)(`Expected a PromiseBelongsTo`, '_belongsToState' in promiseProxy));\n        if (content !== undefined) {\n          promiseProxy.set('content', content);\n        }\n        void promiseProxy.set('promise', promise);\n      } else {\n        promiseProxy = PromiseBelongsTo.create(args);\n        this._relationshipProxyCache[key] = promiseProxy;\n      }\n      return promiseProxy;\n    }\n    referenceFor(kind, name) {\n      let reference = this.references[name];\n      if (!reference) {\n        const graphFor = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).graphFor;\n        const graph = graphFor(this.store);\n        const relationship = graph.get(this.identifier, name);\n        {\n          if (kind) {\n            let modelName = this.identifier.type;\n            let actualRelationshipKind = relationship.definition.kind;\n            (true && !(actualRelationshipKind === kind) && (0, _debug.assert)(`You tried to get the '${name}' relationship on a '${modelName}' via record.${kind}('${name}'), but the relationship is of kind '${actualRelationshipKind}'. Use record.${actualRelationshipKind}('${name}') instead.`, actualRelationshipKind === kind));\n          }\n        }\n        let relationshipKind = relationship.definition.kind;\n        if (relationshipKind === 'belongsTo') {\n          reference = new BelongsToReference(this.store, graph, this.identifier, relationship, name);\n        } else if (relationshipKind === 'hasMany') {\n          reference = new HasManyReference(this.store, graph, this.identifier, relationship, name);\n        }\n        this.references[name] = reference;\n      }\n      return reference;\n    }\n    _findHasManyByJsonApiResource(resource, parentIdentifier, relationship) {\n      let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n      {\n        if (!resource) {\n          return;\n        }\n        const {\n          definition,\n          state\n        } = relationship;\n        const adapter = this.store.adapterFor(definition.type);\n        const {\n          isStale,\n          hasDematerializedInverse,\n          hasReceivedData,\n          isEmpty,\n          shouldForceReload\n        } = state;\n        const allInverseRecordsAreLoaded = areAllInverseRecordsLoaded(this.store, resource);\n        const identifiers = resource.data;\n        const shouldFindViaLink = resource.links && resource.links.related && (typeof adapter.findHasMany === 'function' || typeof identifiers === 'undefined') && (shouldForceReload || hasDematerializedInverse || isStale || !allInverseRecordsAreLoaded && !isEmpty);\n        const relationshipMeta = this.store.getSchemaDefinitionService().relationshipsDefinitionFor({\n          type: definition.inverseType\n        })[definition.key];\n        const request = {\n          useLink: shouldFindViaLink,\n          field: relationshipMeta,\n          links: resource.links,\n          meta: resource.meta,\n          options,\n          record: parentIdentifier\n        };\n\n        // fetch via link\n        if (shouldFindViaLink) {\n          (true && !(!identifiers || Array.isArray(identifiers)) && (0, _debug.assert)(`Expected collection to be an array`, !identifiers || Array.isArray(identifiers)));\n          (true && !(!identifiers || identifiers.every(_private.isStableIdentifier)) && (0, _debug.assert)(`Expected stable identifiers`, !identifiers || identifiers.every(_private.isStableIdentifier)));\n          return this.store.request({\n            op: 'findHasMany',\n            records: identifiers || [],\n            data: request,\n            cacheOptions: {\n              [Symbol.for('ember-data:skip-cache')]: true\n            }\n          });\n        }\n        const preferLocalCache = hasReceivedData && !isEmpty;\n        const hasLocalPartialData = hasDematerializedInverse || isEmpty && Array.isArray(identifiers) && identifiers.length > 0;\n        const attemptLocalCache = !shouldForceReload && !isStale && (preferLocalCache || hasLocalPartialData);\n        if (attemptLocalCache && allInverseRecordsAreLoaded) {\n          return;\n        }\n        const hasData = hasReceivedData && !isEmpty;\n        if (attemptLocalCache || hasData || hasLocalPartialData) {\n          (true && !(Array.isArray(identifiers)) && (0, _debug.assert)(`Expected collection to be an array`, Array.isArray(identifiers)));\n          (true && !(identifiers.every(_private.isStableIdentifier)) && (0, _debug.assert)(`Expected stable identifiers`, identifiers.every(_private.isStableIdentifier)));\n          options.reload = options.reload || !attemptLocalCache || undefined;\n          return this.store.request({\n            op: 'findHasMany',\n            records: identifiers,\n            data: request,\n            cacheOptions: {\n              [Symbol.for('ember-data:skip-cache')]: true\n            }\n          });\n        }\n\n        // we were explicitly told we have no data and no links.\n        //   TODO if the relationshipIsStale, should we hit the adapter anyway?\n        return;\n      }\n      (true && !(false) && (0, _debug.assert)(`hasMany only works with the @ember-data/json-api package`));\n    }\n    _findBelongsToByJsonApiResource(resource, parentIdentifier, relationship) {\n      var _resource$links;\n      let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n      if (!resource) {\n        return Promise.resolve(null);\n      }\n      const key = relationship.definition.key;\n\n      // interleaved promises mean that we MUST cache this here\n      // in order to prevent infinite re-render if the request\n      // fails.\n      if (this._pending[key]) {\n        return this._pending[key];\n      }\n      const identifier = resource.data ? resource.data : null;\n      (true && !(!identifier || (0, _private.isStableIdentifier)(identifier)) && (0, _debug.assert)(`Expected a stable identifier`, !identifier || (0, _private.isStableIdentifier)(identifier)));\n      let {\n        isStale,\n        hasDematerializedInverse,\n        hasReceivedData,\n        isEmpty,\n        shouldForceReload\n      } = relationship.state;\n      const allInverseRecordsAreLoaded = areAllInverseRecordsLoaded(this.store, resource);\n      const shouldFindViaLink = ((_resource$links = resource.links) === null || _resource$links === void 0 ? void 0 : _resource$links.related) && (shouldForceReload || hasDematerializedInverse || isStale || !allInverseRecordsAreLoaded && !isEmpty);\n      const relationshipMeta = this.store.getSchemaDefinitionService().relationshipsDefinitionFor(this.identifier)[relationship.definition.key];\n      (true && !(relationshipMeta) && (0, _debug.assert)(`Attempted to access a belongsTo relationship but no definition exists for it`, relationshipMeta));\n      const request = {\n        useLink: shouldFindViaLink,\n        field: relationshipMeta,\n        links: resource.links,\n        meta: resource.meta,\n        options,\n        record: parentIdentifier\n      };\n\n      // fetch via link\n      if (shouldFindViaLink) {\n        const future = this.store.request({\n          op: 'findBelongsTo',\n          records: identifier ? [identifier] : [],\n          data: request,\n          cacheOptions: {\n            [Symbol.for('ember-data:skip-cache')]: true\n          }\n        });\n        this._pending[key] = future.then(doc => doc.content).finally(() => {\n          this._pending[key] = undefined;\n        });\n        return this._pending[key];\n      }\n      const preferLocalCache = hasReceivedData && allInverseRecordsAreLoaded && !isEmpty;\n      const hasLocalPartialData = hasDematerializedInverse || isEmpty && resource.data;\n      // null is explicit empty, undefined is \"we don't know anything\"\n      const localDataIsEmpty = !identifier;\n      const attemptLocalCache = !shouldForceReload && !isStale && (preferLocalCache || hasLocalPartialData);\n\n      // we dont need to fetch and are empty\n      if (attemptLocalCache && localDataIsEmpty) {\n        return Promise.resolve(null);\n      }\n\n      // we dont need to fetch because we are local state\n      const resourceIsLocal = (identifier === null || identifier === void 0 ? void 0 : identifier.id) === null;\n      if (attemptLocalCache && allInverseRecordsAreLoaded || resourceIsLocal) {\n        return Promise.resolve(identifier);\n      }\n\n      // we may need to fetch\n      if (identifier) {\n        (true && !(identifier) && (0, _debug.assert)(`Cannot fetch belongs-to relationship with no information`, identifier));\n        options.reload = options.reload || !attemptLocalCache || undefined;\n        this._pending[key] = this.store.request({\n          op: 'findBelongsTo',\n          records: [identifier],\n          data: request,\n          cacheOptions: {\n            [Symbol.for('ember-data:skip-cache')]: true\n          }\n        }).then(doc => doc.content).finally(() => {\n          this._pending[key] = undefined;\n        });\n        return this._pending[key];\n      }\n\n      // we were explicitly told we have no data and no links.\n      //   TODO if the relationshipIsStale, should we hit the adapter anyway?\n      return Promise.resolve(null);\n    }\n    destroy() {\n      this.isDestroying = true;\n      let cache = this._manyArrayCache;\n      this._manyArrayCache = Object.create(null);\n      Object.keys(cache).forEach(key => {\n        cache[key].destroy();\n      });\n      cache = this._relationshipProxyCache;\n      this._relationshipProxyCache = Object.create(null);\n      Object.keys(cache).forEach(key => {\n        const proxy = cache[key];\n        if (proxy.destroy) {\n          proxy.destroy();\n        }\n      });\n      cache = this.references;\n      this.references = Object.create(null);\n      Object.keys(cache).forEach(key => {\n        cache[key].destroy();\n      });\n      this.isDestroyed = true;\n    }\n  }\n  function handleCompletedRelationshipRequest(recordExt, key, relationship, value, error) {\n    delete recordExt._relationshipPromisesCache[key];\n    relationship.state.shouldForceReload = false;\n    const isHasMany = relationship.definition.kind === 'hasMany';\n    if (isHasMany) {\n      // we don't notify the record property here to avoid refetch\n      // only the many array\n      value.notify();\n    }\n    if (error) {\n      relationship.state.hasFailedLoadAttempt = true;\n      let proxy = recordExt._relationshipProxyCache[key];\n      // belongsTo relationships are sometimes unloaded\n      // when a load fails, in this case we need\n      // to make sure that we aren't proxying\n      // to destroyed content\n      // for the sync belongsTo reload case there will be no proxy\n      // for the async reload case there will be no proxy if the ui\n      // has never been accessed\n      if (proxy && !isHasMany) {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n        if (proxy.content && proxy.content.isDestroying) {\n          proxy.set('content', null);\n        }\n        recordExt.store.notifications._flush();\n      }\n      throw error;\n    }\n    if (isHasMany) {\n      value.isLoaded = true;\n    } else {\n      recordExt.store.notifications._flush();\n    }\n    relationship.state.hasFailedLoadAttempt = false;\n    // only set to not stale if no error is thrown\n    relationship.state.isStale = false;\n    return isHasMany || !value ? value : recordExt.store.peekRecord(value);\n  }\n  function extractIdentifierFromRecord(recordOrPromiseRecord) {\n    if (!recordOrPromiseRecord) {\n      return null;\n    }\n    {\n      if (isPromiseRecord(recordOrPromiseRecord)) {\n        let content = recordOrPromiseRecord.content;\n        (true && !(content !== undefined) && (0, _debug.assert)('You passed in a promise that did not originate from an EmberData relationship. You can only pass promises that come from a belongsTo or hasMany relationship to the get call.', content !== undefined));\n        (true && !(false) && (0, _debug.deprecate)(`You passed in a PromiseProxy to a Relationship API that now expects a resolved value. await the value before setting it.`, false, {\n          id: 'ember-data:deprecate-promise-proxies',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          },\n          for: 'ember-data'\n        }));\n        return content ? (0, _private.recordIdentifierFor)(content) : null;\n      }\n    }\n    return (0, _private.recordIdentifierFor)(recordOrPromiseRecord);\n  }\n  function isPromiseRecord(record) {\n    return !!record.then;\n  }\n  function anyUnloaded(store, relationship) {\n    let state = relationship.localState;\n    const cache = store._instanceCache;\n    const unloaded = state.find(s => {\n      let isLoaded = cache.recordIsLoaded(s, true);\n      return !isLoaded;\n    });\n    return unloaded || false;\n  }\n  function areAllInverseRecordsLoaded(store, resource) {\n    const instanceCache = store._instanceCache;\n    const identifiers = resource.data;\n    if (Array.isArray(identifiers)) {\n      (true && !(identifiers.every(_private.isStableIdentifier)) && (0, _debug.assert)(`Expected stable identifiers`, identifiers.every(_private.isStableIdentifier))); // treat as collection\n      // check for unloaded records\n      return identifiers.every(identifier => instanceCache.recordIsLoaded(identifier));\n    }\n\n    // treat as single resource\n    if (!identifiers) return true;\n    (true && !((0, _private.isStableIdentifier)(identifiers)) && (0, _debug.assert)(`Expected stable identifiers`, (0, _private.isStableIdentifier)(identifiers)));\n    return instanceCache.recordIsLoaded(identifiers);\n  }\n  function isBelongsTo(relationship) {\n    return relationship.definition.kind === 'belongsTo';\n  }\n  function notifyChanges(identifier, value, key, record, store) {\n    if (value === 'attributes') {\n      if (key) {\n        notifyAttribute(store, identifier, key, record);\n      } else {\n        record.eachAttribute(key => {\n          notifyAttribute(store, identifier, key, record);\n        });\n      }\n    } else if (value === 'relationships') {\n      if (key) {\n        let meta = record.constructor.relationshipsByName.get(key);\n        notifyRelationship(identifier, key, record, meta);\n      } else {\n        record.eachRelationship((key, meta) => {\n          notifyRelationship(identifier, key, record, meta);\n        });\n      }\n    } else if (value === 'identity') {\n      record.notifyPropertyChange('id');\n    }\n  }\n  function notifyRelationship(identifier, key, record, meta) {\n    if (meta.kind === 'belongsTo') {\n      record.notifyPropertyChange(key);\n    } else if (meta.kind === 'hasMany') {\n      let support = LEGACY_SUPPORT.get(identifier);\n      let manyArray = support && support._manyArrayCache[key];\n      let hasPromise = support && support._relationshipPromisesCache[key];\n      if (manyArray && hasPromise) {\n        // do nothing, we will notify the ManyArray directly\n        // once the fetch has completed.\n        return;\n      }\n      if (manyArray) {\n        manyArray.notify();\n\n        //We need to notifyPropertyChange in the adding case because we need to make sure\n        //we fetch the newly added record in case it is unloaded\n        //TODO(Igor): Consider whether we could do this only if the record state is unloaded\n        if (!meta.options || meta.options.async || meta.options.async === undefined) {\n          record.notifyPropertyChange(key);\n        }\n      }\n    }\n  }\n  function notifyAttribute(store, identifier, key, record) {\n    let currentValue = (0, _internals.cacheFor)(record, key);\n    const cache = (0, _private.peekCache)(record);\n    if (currentValue !== cache.getAttr(identifier, key)) {\n      record.notifyPropertyChange(key);\n    }\n  }\n  var _class$1, _descriptor$1, _class3, _descriptor2;\n  const SOURCE_POINTER_REGEXP = /^\\/?data\\/(attributes|relationships)\\/(.*)/;\n  const SOURCE_POINTER_PRIMARY_REGEXP = /^\\/?data/;\n  const PRIMARY_ATTRIBUTE_KEY = 'base';\n  function isInvalidError(error) {\n    return error && error.isAdapterError === true && error.code === 'InvalidError';\n  }\n\n  /**\n   * Tag provides a cache for a getter\n   * that recomputes only when a specific\n   * tracked property that it manages is dirtied.\n   *\n   * This allows us to bust the cache for a value\n   * that otherwise doesn't access anything tracked\n   * as well as control the timing of that notification.\n   *\n   * @internal\n   */\n  let Tag = (_class$1 = class Tag {\n    constructor() {\n      _initializerDefineProperty(this, \"ref\", _descriptor$1, this);\n      {\n        const [base, prop] = arguments;\n        this._debug_base = base;\n        this._debug_prop = prop;\n      }\n      this.rev = 1;\n      this.isDirty = true;\n      this.value = undefined;\n      /*\n       * whether this was part of a transaction when mutated\n       */\n      this.t = false;\n    }\n    notify() {\n      this.isDirty = true;\n      (0, _private2.addToTransaction)(this);\n      this.rev++;\n    }\n    consume(v) {\n      this.isDirty = false;\n      this.value = v; // set cached value\n    }\n  }, _descriptor$1 = _applyDecoratedDescriptor(_class$1.prototype, \"ref\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class$1);\n  const Tags = new WeakMap();\n  function getTag(record, key) {\n    let tags = Tags.get(record);\n    if (!tags) {\n      tags = Object.create(null);\n      Tags.set(record, tags);\n    }\n    // @ts-expect-error\n    return tags[key] = tags[key] || new Tag(record.constructor.modelName, key);\n  }\n  function peekTag(record, key) {\n    let tags = Tags.get(record);\n    return tags && tags[key];\n  }\n\n  /**\n   * A decorattor that caches a getter while\n   * providing the ability to bust that cache\n   * when we so choose in a way that notifies\n   * glimmer's tracking system.\n   *\n   * @internal\n   */\n  function tagged(_target, key, desc) {\n    const getter = desc.get;\n    const setter = desc.set;\n    desc.get = function () {\n      let tag = getTag(this, key);\n      (0, _private2.subscribe)(tag);\n      if (tag.isDirty) {\n        tag.consume(getter.call(this));\n      }\n      return tag.value;\n    };\n    desc.set = function (v) {\n      getTag(this, key); // ensure tag is setup in case we want to use it.\n      // probably notify here but not yet.\n      setter.call(this, v);\n    };\n    (0, _compat.dependentKeyCompat)(desc);\n    return desc;\n  }\n\n  /**\n  Historically EmberData managed a state machine\n  for each record, the localState for which\n  was reflected onto Model.\n  \n  This implements the flags and stateName for backwards compat\n  with the state tree that used to be possible (listed below).\n  \n  stateName and dirtyType are candidates for deprecation.\n  \n  root\n    empty\n      deleted    // hidden from stateName\n      preloaded  // hidden from stateName\n  \n    loading\n       empty     // hidden from stateName\n       preloaded // hidden from stateName\n  \n    loaded\n      saved\n      updated\n        uncommitted\n        invalid\n        inFlight\n      created\n        uncommitted\n        invalid\n        inFlight\n  \n    deleted\n      saved\n        new      // hidden from stateName\n      uncommitted\n      invalid\n      inFlight\n  \n    @internal\n  */\n  let RecordState = (_class3 = class RecordState {\n    constructor(record) {\n      _initializerDefineProperty(this, \"isSaving\", _descriptor2, this);\n      const store = (0, _store.storeFor)(record);\n      const identity = (0, _private.recordIdentifierFor)(record);\n      this.identifier = identity;\n      this.record = record;\n      this.cache = (0, _private.peekCache)(record);\n      this.pendingCount = 0;\n      this.fulfilledCount = 0;\n      this.rejectedCount = 0;\n      this._errorRequests = [];\n      this._lastError = null;\n      let requests = store.getRequestStateService();\n      let notifications = store.notifications;\n      const handleRequest = req => {\n        if (req.type === 'mutation') {\n          switch (req.state) {\n            case 'pending':\n              this.isSaving = true;\n              break;\n            case 'rejected':\n              this.isSaving = false;\n              this._lastError = req;\n              if (!(req.response && isInvalidError(req.response.data))) {\n                this._errorRequests.push(req);\n              }\n              notifyErrorsStateChanged(this);\n              break;\n            case 'fulfilled':\n              this._errorRequests = [];\n              this._lastError = null;\n              this.isSaving = false;\n              notifyErrorsStateChanged(this);\n              break;\n          }\n        } else {\n          switch (req.state) {\n            case 'pending':\n              this.pendingCount++;\n              this.notify('isLoading');\n              break;\n            case 'rejected':\n              this.pendingCount--;\n              this._lastError = req;\n              if (!(req.response && isInvalidError(req.response.data))) {\n                this._errorRequests.push(req);\n              }\n              this.notify('isLoading');\n              notifyErrorsStateChanged(this);\n              break;\n            case 'fulfilled':\n              this.pendingCount--;\n              this.fulfilledCount++;\n              this.notify('isLoading');\n              this.notify('isDirty');\n              notifyErrorsStateChanged(this);\n              this._errorRequests = [];\n              this._lastError = null;\n              break;\n          }\n        }\n      };\n      requests.subscribeForRecord(identity, handleRequest);\n\n      // we instantiate lazily\n      // so we grab anything we don't have yet\n\n      this.handler = notifications.subscribe(identity, (identifier, type, key) => {\n        switch (type) {\n          case 'state':\n            this.notify('isNew');\n            this.notify('isDeleted');\n            this.notify('isDirty');\n            break;\n          case 'attributes':\n            this.notify('isEmpty');\n            this.notify('isDirty');\n            break;\n          case 'errors':\n            this.updateInvalidErrors(this.record.errors);\n            this.notify('isValid');\n            break;\n        }\n      });\n    }\n    destroy() {\n      (0, _store.storeFor)(this.record).notifications.unsubscribe(this.handler);\n    }\n    notify(key) {\n      getTag(this, key).notify();\n    }\n    updateInvalidErrors(errors) {\n      (true && !(typeof this.cache.getErrors === 'function') && (0, _debug.assert)(`Expected the Cache instance for ${this.identifier}  to implement getErrors(identifier)`, typeof this.cache.getErrors === 'function'));\n      let jsonApiErrors = this.cache.getErrors(this.identifier);\n      errors.clear();\n      for (let i = 0; i < jsonApiErrors.length; i++) {\n        let error = jsonApiErrors[i];\n        if (error.source && error.source.pointer) {\n          let keyMatch = error.source.pointer.match(SOURCE_POINTER_REGEXP);\n          let key;\n          if (keyMatch) {\n            key = keyMatch[2];\n          } else if (error.source.pointer.search(SOURCE_POINTER_PRIMARY_REGEXP) !== -1) {\n            key = PRIMARY_ATTRIBUTE_KEY;\n          }\n          if (key) {\n            let errMsg = error.detail || error.title;\n            errors.add(key, errMsg);\n          }\n        }\n      }\n    }\n    cleanErrorRequests() {\n      this.notify('isValid');\n      this.notify('isError');\n      this.notify('adapterError');\n      this._errorRequests = [];\n      this._lastError = null;\n    }\n    get isLoading() {\n      return !this.isLoaded && this.pendingCount > 0 && this.fulfilledCount === 0;\n    }\n    get isLoaded() {\n      if (this.isNew) {\n        return true;\n      }\n      return this.fulfilledCount > 0 || !this.isEmpty;\n    }\n    get isSaved() {\n      let rd = this.cache;\n      if (this.isDeleted) {\n        (true && !(rd.isDeletionCommitted) && (0, _debug.assert)(`Expected Cache to implement isDeletionCommitted()`, rd.isDeletionCommitted));\n        return rd.isDeletionCommitted(this.identifier);\n      }\n      if (this.isNew || this.isEmpty || !this.isValid || this.isDirty || this.isLoading) {\n        return false;\n      }\n      return true;\n    }\n    get isEmpty() {\n      let rd = this.cache;\n      // TODO this is not actually an RFC'd concept. Determine the\n      // correct heuristic to replace this with.\n      (true && !(rd.isEmpty) && (0, _debug.assert)(`Expected Cache to implement isEmpty()`, rd.isEmpty));\n      return !this.isNew && rd.isEmpty(this.identifier);\n    }\n    get isNew() {\n      let rd = this.cache;\n      (true && !(rd.isNew) && (0, _debug.assert)(`Expected Cache to implement isNew()`, rd.isNew));\n      return rd.isNew(this.identifier);\n    }\n    get isDeleted() {\n      let rd = this.cache;\n      (true && !(rd.isDeleted) && (0, _debug.assert)(`Expected Cache to implement isDeleted()`, rd.isDeleted));\n      return rd.isDeleted(this.identifier);\n    }\n    get isValid() {\n      return this.record.errors.length === 0;\n    }\n    get isDirty() {\n      let rd = this.cache;\n      if (rd.isDeletionCommitted(this.identifier) || this.isDeleted && this.isNew) {\n        return false;\n      }\n      return this.isNew || rd.hasChangedAttrs(this.identifier);\n    }\n    get isError() {\n      let errorReq = this._errorRequests[this._errorRequests.length - 1];\n      if (!errorReq) {\n        return false;\n      } else {\n        return true;\n      }\n    }\n    get adapterError() {\n      let request = this._lastError;\n      if (!request) {\n        return null;\n      }\n      return request.state === 'rejected' && request.response.data;\n    }\n    get isPreloaded() {\n      return !this.isEmpty && this.isLoading;\n    }\n    get stateName() {\n      // we might be empty while loading so check this first\n      if (this.isLoading) {\n        return 'root.loading';\n\n        // got nothing yet or were unloaded\n      } else if (this.isEmpty) {\n        return 'root.empty';\n\n        // deleted substates\n      } else if (this.isDeleted) {\n        if (this.isSaving) {\n          return 'root.deleted.inFlight';\n        } else if (this.isSaved) {\n          // TODO ensure isSaved isn't true from previous requests\n          return 'root.deleted.saved';\n        } else if (!this.isValid) {\n          return 'root.deleted.invalid';\n        } else {\n          return 'root.deleted.uncommitted';\n        }\n\n        // loaded.created substates\n      } else if (this.isNew) {\n        if (this.isSaving) {\n          return 'root.loaded.created.inFlight';\n        } else if (!this.isValid) {\n          return 'root.loaded.created.invalid';\n        }\n        return 'root.loaded.created.uncommitted';\n\n        // loaded.updated substates\n      } else if (this.isSaving) {\n        return 'root.loaded.updated.inFlight';\n      } else if (!this.isValid) {\n        return 'root.loaded.updated.invalid';\n      } else if (this.isDirty) {\n        return 'root.loaded.updated.uncommitted';\n\n        // if nothing remains, we are loaded saved!\n      } else {\n        return 'root.loaded.saved';\n      }\n    }\n    get dirtyType() {\n      // we might be empty while loading so check this first\n      if (this.isLoading || this.isEmpty) {\n        return '';\n\n        // deleted substates\n      } else if (this.isDeleted) {\n        return 'deleted';\n\n        // loaded.created substates\n      } else if (this.isNew) {\n        return 'created';\n\n        // loaded.updated substates\n      } else if (this.isSaving || !this.isValid || this.isDirty) {\n        return 'updated';\n\n        // if nothing remains, we are loaded saved!\n      } else {\n        return '';\n      }\n    }\n  }, _descriptor2 = _applyDecoratedDescriptor(_class3.prototype, \"isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class3.prototype, \"isLoading\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isLoading\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"isLoaded\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isLoaded\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"isSaved\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isSaved\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"isEmpty\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isEmpty\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"isNew\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isNew\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"isDeleted\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isDeleted\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"isValid\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isValid\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"isDirty\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isDirty\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"isError\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isError\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"adapterError\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"adapterError\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"isPreloaded\", [cached], Object.getOwnPropertyDescriptor(_class3.prototype, \"isPreloaded\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"stateName\", [cached], Object.getOwnPropertyDescriptor(_class3.prototype, \"stateName\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"dirtyType\", [cached], Object.getOwnPropertyDescriptor(_class3.prototype, \"dirtyType\"), _class3.prototype), _class3);\n  function notifyErrorsStateChanged(state) {\n    state.notify('isValid');\n    state.notify('isError');\n    state.notify('adapterError');\n  }\n  function typeForRelationshipMeta(meta) {\n    let modelName = (0, _string.dasherize)(meta.type || meta.key);\n    if (meta.kind === 'hasMany') {\n      modelName = (0, _emberInflector.singularize)(modelName);\n    }\n    return modelName;\n  }\n  function shouldFindInverse(relationshipMeta) {\n    let options = relationshipMeta.options;\n    return !(options && options.inverse === null);\n  }\n  class RelationshipDefinition {\n    constructor(meta) {\n      this._type = '';\n      this.__inverseKey = '';\n      this.__hasCalculatedInverse = false;\n      this.parentModelName = meta.parentModelName;\n      this.meta = meta;\n    }\n\n    /**\n     * @internal\n     * @deprecated\n     */\n    get key() {\n      return this.meta.key;\n    }\n    get kind() {\n      return this.meta.kind;\n    }\n    get type() {\n      if (this._type) {\n        return this._type;\n      }\n      this._type = typeForRelationshipMeta(this.meta);\n      return this._type;\n    }\n    get options() {\n      return this.meta.options;\n    }\n    get name() {\n      return this.meta.name;\n    }\n    _inverseKey(store, modelClass) {\n      if (this.__hasCalculatedInverse === false) {\n        this._calculateInverse(store, modelClass);\n      }\n      return this.__inverseKey;\n    }\n    _calculateInverse(store, modelClass) {\n      this.__hasCalculatedInverse = true;\n      let inverseKey;\n      let inverse = null;\n      if (shouldFindInverse(this.meta)) {\n        inverse = modelClass.inverseFor(this.key, store);\n      }\n      // TODO make this error again for the non-polymorphic case\n      {\n        if (!this.options.polymorphic) {\n          modelClass.typeForRelationship(this.key, store);\n        }\n      }\n      if (inverse) {\n        inverseKey = inverse.name;\n      } else {\n        inverseKey = null;\n      }\n      this.__inverseKey = inverseKey;\n    }\n  }\n  function relationshipFromMeta(meta) {\n    return new RelationshipDefinition(meta);\n  }\n  var _class, _descriptor, _class2;\n  const {\n    changeProperties\n  } = _ember.default;\n  const LEGACY_SUPPORT = _exports.L = new Map();\n  function lookupLegacySupport(record) {\n    const identifier = (0, _store.recordIdentifierFor)(record);\n    let support = LEGACY_SUPPORT.get(identifier);\n    if (!support) {\n      (true && !(!record.isDestroyed && !record.isDestroying) && (0, _debug.assert)(`Memory Leak Detected`, !record.isDestroyed && !record.isDestroying));\n      support = new LegacySupport(record);\n      LEGACY_SUPPORT.set(identifier, support);\n      LEGACY_SUPPORT.set(record, support);\n    }\n    return support;\n  }\n  function findPossibleInverses(type, inverseType, name, relationshipsSoFar) {\n    let possibleRelationships = relationshipsSoFar || [];\n    let relationshipMap = inverseType.relationships;\n    if (!relationshipMap) {\n      return possibleRelationships;\n    }\n    let relationshipsForType = relationshipMap.get(type.modelName);\n    let relationships = Array.isArray(relationshipsForType) ? relationshipsForType.filter(relationship => {\n      let optionsForRelationship = relationship.options;\n      if (!optionsForRelationship.inverse && optionsForRelationship.inverse !== null) {\n        return true;\n      }\n      return name === optionsForRelationship.inverse;\n    }) : null;\n    if (relationships) {\n      possibleRelationships.push.apply(possibleRelationships, relationships);\n    }\n\n    //Recurse to support polymorphism\n    if (type.superclass) {\n      findPossibleInverses(type.superclass, inverseType, name, possibleRelationships);\n    }\n    return possibleRelationships;\n  }\n\n  /*\n   * This decorator allows us to lazily compute\n   * an expensive getter on first-access and thereafter\n   * never recompute it.\n   */\n  function computeOnce(target, key, desc) {\n    const cache = new WeakMap();\n    let getter = desc.get;\n    desc.get = function () {\n      let meta = cache.get(this);\n      if (!meta) {\n        meta = {\n          hasComputed: false,\n          value: undefined\n        };\n        cache.set(this, meta);\n      }\n      if (!meta.hasComputed) {\n        meta.value = getter.call(this);\n        meta.hasComputed = true;\n      }\n      return meta.value;\n    };\n    return desc;\n  }\n\n  /**\n    Base class from which Models can be defined.\n  \n    ```js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class User extends Model {\n      @attr name;\n    }\n    ```\n  \n    @class Model\n    @public\n    @extends Ember.EmberObject\n  */\n  let Model = _exports.M = (_class = (_class2 = class Model extends _object.default {\n    constructor() {\n      super(...arguments);\n      this.___private_notifications = void 0;\n      /**\n        If `true` the store is attempting to reload the record from the adapter.\n         Example\n         ```javascript\n        record.isReloading; // false\n        record.reload();\n        record.isReloading; // true\n        ```\n         @property isReloading\n        @public\n        @type {Boolean}\n        @readOnly\n      */\n      _initializerDefineProperty(this, \"isReloading\", _descriptor, this);\n    }\n    init() {\n      let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      {\n        if (!options._secretInit && !options._createProps) {\n          throw new Error('You should not call `create` on a model. Instead, call `store.createRecord` with the attributes you would like to set.');\n        }\n      }\n      const createProps = options._createProps;\n      const _secretInit = options._secretInit;\n      options._createProps = null;\n      options._secretInit = null;\n      let store = this.store = _secretInit.store;\n      super.init(options);\n      let identity = _secretInit.identifier;\n      _secretInit.cb(this, _secretInit.cache, identity, _secretInit.store);\n      this.___recordState = new RecordState(this);\n      this.setProperties(createProps);\n      let notifications = store.notifications;\n      this.___private_notifications = notifications.subscribe(identity, (identifier, type, key) => {\n        notifyChanges(identifier, type, key, this, store);\n      });\n    }\n    destroy() {\n      var _this$___recordState, _LEGACY_SUPPORT$get;\n      const identifier = (0, _store.recordIdentifierFor)(this);\n      (_this$___recordState = this.___recordState) === null || _this$___recordState === void 0 || _this$___recordState.destroy();\n      const store = (0, _store.storeFor)(this);\n      store.notifications.unsubscribe(this.___private_notifications);\n      // Legacy behavior is to notify the relationships on destroy\n      // such that they \"clear\". It's uncertain this behavior would\n      // be good for a new model paradigm, likely cheaper and safer\n      // to simply not notify, for this reason the store does not itself\n      // notify individual changes once the delete has been signaled,\n      // this decision is left to model instances.\n\n      this.eachRelationship((key, meta) => {\n        if (meta.kind === 'belongsTo') {\n          this.notifyPropertyChange(key);\n        }\n      });\n      (_LEGACY_SUPPORT$get = LEGACY_SUPPORT.get(this)) === null || _LEGACY_SUPPORT$get === void 0 || _LEGACY_SUPPORT$get.destroy();\n      LEGACY_SUPPORT.delete(this);\n      LEGACY_SUPPORT.delete(identifier);\n      super.destroy();\n    }\n\n    /**\n      If this property is `true` the record is in the `empty`\n      state. Empty is the first state all records enter after they have\n      been created. Most records created by the store will quickly\n      transition to the `loading` state if data needs to be fetched from\n      the server or the `created` state if the record is created on the\n      client. A record can also enter the empty state if the adapter is\n      unable to locate the record.\n       @property isEmpty\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isEmpty() {\n      return this.currentState.isEmpty;\n    }\n\n    /**\n      If this property is `true` the record is in the `loading` state. A\n      record enters this state when the store asks the adapter for its\n      data. It remains in this state until the adapter provides the\n      requested data.\n       @property isLoading\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isLoading() {\n      return this.currentState.isLoading;\n    }\n\n    /**\n      If this property is `true` the record is in the `loaded` state. A\n      record enters this state when its data is populated. Most of a\n      record's lifecycle is spent inside substates of the `loaded`\n      state.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.isLoaded; // true\n       store.findRecord('model', 1).then(function(model) {\n        model.isLoaded; // true\n      });\n      ```\n       @property isLoaded\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isLoaded() {\n      return this.currentState.isLoaded;\n    }\n\n    /**\n      If this property is `true` the record is in the `dirty` state. The\n      record has local changes that have not yet been saved by the\n      adapter. This includes records that have been created (but not yet\n      saved) or deleted.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.hasDirtyAttributes; // true\n       store.findRecord('model', 1).then(function(model) {\n        model.hasDirtyAttributes; // false\n        model.set('foo', 'some value');\n        model.hasDirtyAttributes; // true\n      });\n      ```\n       @since 1.13.0\n      @property hasDirtyAttributes\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get hasDirtyAttributes() {\n      return this.currentState.isDirty;\n    }\n\n    /**\n      If this property is `true` the record is in the `saving` state. A\n      record enters the saving state when `save` is called, but the\n      adapter has not yet acknowledged that the changes have been\n      persisted to the backend.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.isSaving; // false\n      let promise = record.save();\n      record.isSaving; // true\n      promise.then(function() {\n        record.isSaving; // false\n      });\n      ```\n       @property isSaving\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isSaving() {\n      return this.currentState.isSaving;\n    }\n\n    /**\n      If this property is `true` the record is in the `deleted` state\n      and has been marked for deletion. When `isDeleted` is true and\n      `hasDirtyAttributes` is true, the record is deleted locally but the deletion\n      was not yet persisted. When `isSaving` is true, the change is\n      in-flight. When both `hasDirtyAttributes` and `isSaving` are false, the\n      change has persisted.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.isDeleted;    // false\n      record.deleteRecord();\n       // Locally deleted\n      record.isDeleted;           // true\n      record.hasDirtyAttributes;  // true\n      record.isSaving;            // false\n       // Persisting the deletion\n      let promise = record.save();\n      record.isDeleted;    // true\n      record.isSaving;     // true\n       // Deletion Persisted\n      promise.then(function() {\n        record.isDeleted;          // true\n        record.isSaving;           // false\n        record.hasDirtyAttributes; // false\n      });\n      ```\n       @property isDeleted\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isDeleted() {\n      return this.currentState.isDeleted;\n    }\n\n    /**\n      If this property is `true` the record is in the `new` state. A\n      record will be in the `new` state when it has been created on the\n      client and the adapter has not yet report that it was successfully\n      saved.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.isNew; // true\n       record.save().then(function(model) {\n        model.isNew; // false\n      });\n      ```\n       @property isNew\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isNew() {\n      return this.currentState.isNew;\n    }\n\n    /**\n      If this property is `true` the record is in the `valid` state.\n       A record will be in the `valid` state when the adapter did not report any\n      server-side validation failures.\n       @property isValid\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isValid() {\n      return this.currentState.isValid;\n    }\n\n    /**\n      If the record is in the dirty state this property will report what\n      kind of change has caused it to move into the dirty\n      state. Possible values are:\n       - `created` The record has been created by the client and not yet saved to the adapter.\n      - `updated` The record has been updated by the client and not yet saved to the adapter.\n      - `deleted` The record has been deleted by the client and not yet saved to the adapter.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.dirtyType; // 'created'\n      ```\n       @property dirtyType\n      @public\n      @type {String}\n      @readOnly\n    */\n    get dirtyType() {\n      return this.currentState.dirtyType;\n    }\n\n    /**\n      If `true` the adapter reported that it was unable to save local\n      changes to the backend for any reason other than a server-side\n      validation error.\n       Example\n       ```javascript\n      record.isError; // false\n      record.set('foo', 'valid value');\n      record.save().then(null, function() {\n        record.isError; // true\n      });\n      ```\n       @property isError\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isError() {\n      return this.currentState.isError;\n    }\n    set isError(v) {\n      {\n        throw new Error(`isError is not directly settable`);\n      }\n    }\n    /**\n      All ember models have an id property. This is an identifier\n      managed by an external source. These are always coerced to be\n      strings before being used internally. Note when declaring the\n      attributes for a model it is an error to declare an id\n      attribute.\n       ```javascript\n      let record = store.createRecord('model');\n      record.id; // null\n       store.findRecord('model', 1).then(function(model) {\n        model.id; // '1'\n      });\n      ```\n       @property id\n      @public\n      @type {String}\n    */\n    get id() {\n      // this guard exists, because some dev-only deprecation code\n      // (addListener via validatePropertyInjections) invokes toString before the\n      // object is real.\n      {\n        try {\n          return (0, _store.recordIdentifierFor)(this).id;\n        } catch {\n          return void 0;\n        }\n      }\n      return (0, _store.recordIdentifierFor)(this).id;\n    }\n    set id(id) {\n      const normalizedId = (0, _private.coerceId)(id);\n      const identifier = (0, _store.recordIdentifierFor)(this);\n      let didChange = normalizedId !== identifier.id;\n      (true && !(!didChange || identifier.id === null) && (0, _debug.assert)(`Cannot set ${identifier.type} record's id to ${id}, because id is already ${identifier.id}`, !didChange || identifier.id === null));\n      if (normalizedId !== null && didChange) {\n        this.store._instanceCache.setRecordId(identifier, normalizedId);\n        this.store.notifications.notify(identifier, 'identity');\n      }\n    }\n    toString() {\n      return `<model::${this.constructor.modelName}:${this.id}>`;\n    }\n\n    /**\n      @property currentState\n      @private\n      @type {Object}\n    */\n    // TODO we can probably make this a computeOnce\n    // we likely do not need to notify the currentState root anymore\n    get currentState() {\n      // descriptors are called with the wrong `this` context during mergeMixins\n      // when using legacy/classic ember classes. Basically: lazy in prod and eager in dev.\n      // so we do this to try to steer folks to the nicer \"dont user currentState\"\n      // error.\n\n      return this.___recordState;\n    }\n    set currentState(_v) {\n      throw new Error('cannot set currentState');\n    }\n\n    /**\n      The store service instance which created this record instance\n      @property store\n      @public\n     */\n\n    /**\n      When the record is in the `invalid` state this object will contain\n      any errors returned by the adapter. When present the errors hash\n      contains keys corresponding to the invalid property names\n      and values which are arrays of Javascript objects with two keys:\n       - `message` A string containing the error message from the backend\n      - `attribute` The name of the property associated with this error message\n       ```javascript\n      record.errors.length; // 0\n      record.set('foo', 'invalid value');\n      record.save().catch(function() {\n        record.errors.foo;\n        // [{message: 'foo should be a number.', attribute: 'foo'}]\n      });\n      ```\n       The `errors` property is useful for displaying error messages to\n      the user.\n       ```handlebars\n      <label>Username: <Input @value={{@model.username}} /> </label>\n      {{#each @model.errors.username as |error|}}\n        <div class=\"error\">\n          {{error.message}}\n        </div>\n      {{/each}}\n      <label>Email: <Input @value={{@model.email}} /> </label>\n      {{#each @model.errors.email as |error|}}\n        <div class=\"error\">\n          {{error.message}}\n        </div>\n      {{/each}}\n      ```\n        You can also access the special `messages` property on the error\n      object to get an array of all the error strings.\n       ```handlebars\n      {{#each @model.errors.messages as |message|}}\n        <div class=\"error\">\n          {{message}}\n        </div>\n      {{/each}}\n      ```\n       @property errors\n      @public\n      @type {Errors}\n    */\n    get errors() {\n      let errors = Errors.create({\n        __record: this\n      });\n      this.currentState.updateInvalidErrors(errors);\n      return errors;\n    }\n\n    /**\n      This property holds the `AdapterError` object with which\n      last adapter operation was rejected.\n       @property adapterError\n      @public\n      @type {AdapterError}\n    */\n    get adapterError() {\n      return this.currentState.adapterError;\n    }\n    set adapterError(v) {\n      throw new Error(`adapterError is not directly settable`);\n    }\n\n    /**\n      Create a JSON representation of the record, using the serialization\n      strategy of the store's adapter.\n      `serialize` takes an optional hash as a parameter, currently\n      supported options are:\n      - `includeId`: `true` if the record's ID should be included in the\n        JSON representation.\n       @method serialize\n      @public\n      @param {Object} options\n      @return {Object} an object whose values are primitive JSON values only\n    */\n    serialize(options) {\n      return (0, _store.storeFor)(this).serializeRecord(this, options);\n    }\n\n    /*\n      We hook the default implementation to ensure\n      our tagged properties are properly notified\n      as well. We still super for everything because\n      sync observers require a direct call occuring\n      to trigger their flush. We wouldn't need to\n      super in 4.0+ where sync observers are removed.\n     */\n    notifyPropertyChange(key) {\n      let tag = peekTag(this, key);\n      if (tag) {\n        tag.notify();\n      }\n      super.notifyPropertyChange(key);\n    }\n\n    /**\n      Marks the record as deleted but does not save it. You must call\n      `save` afterwards if you want to persist it. You might use this\n      method if you want to allow the user to still `rollbackAttributes()`\n      after a delete was made.\n       Example\n       ```app/controllers/model/delete.js\n      import Controller from '@ember/controller';\n      import { action } from '@ember/object';\n       export default class ModelDeleteController extends Controller {\n        @action\n        softDelete() {\n          this.model.deleteRecord();\n        }\n         @action\n        confirm() {\n          this.model.save();\n        }\n         @action\n        undo() {\n          this.model.rollbackAttributes();\n        }\n      }\n      ```\n       @method deleteRecord\n      @public\n    */\n    deleteRecord() {\n      // ensure we've populated currentState prior to deleting a new record\n      if (this.currentState) {\n        (0, _store.storeFor)(this).deleteRecord(this);\n      }\n    }\n\n    /**\n      Same as `deleteRecord`, but saves the record immediately.\n       Example\n       ```app/controllers/model/delete.js\n      import Controller from '@ember/controller';\n      import { action } from '@ember/object';\n       export default class ModelDeleteController extends Controller {\n        @action\n        delete() {\n          this.model.destroyRecord().then(function() {\n            this.transitionToRoute('model.index');\n          });\n        }\n      }\n      ```\n       If you pass an object on the `adapterOptions` property of the options\n      argument it will be passed to your adapter via the snapshot\n       ```js\n      record.destroyRecord({ adapterOptions: { subscribe: false } });\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class PostAdapter extends MyCustomAdapter {\n        deleteRecord(store, type, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       @method destroyRecord\n      @public\n      @param {Object} options\n      @return {Promise} a promise that will be resolved when the adapter returns\n      successfully or rejected if the adapter returns with an error.\n    */\n    destroyRecord(options) {\n      const {\n        isNew\n      } = this.currentState;\n      this.deleteRecord();\n      if (isNew) {\n        return Promise.resolve(this);\n      }\n      return this.save(options).then(_ => {\n        (0, _runloop.run)(() => {\n          this.unloadRecord();\n        });\n        return this;\n      });\n    }\n\n    /**\n      Unloads the record from the store. This will not send a delete request\n      to your server, it just unloads the record from memory.\n       @method unloadRecord\n      @public\n    */\n    unloadRecord() {\n      if (this.currentState.isNew && (this.isDestroyed || this.isDestroying)) {\n        return;\n      }\n      (0, _store.storeFor)(this).unloadRecord(this);\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        let key;\n        for (let i = 0, length = keys.length; i < length; i++) {\n          key = keys[i];\n          this.notifyPropertyChange(key);\n        }\n      });\n    }\n\n    /**\n      Returns an object, whose keys are changed properties, and value is\n      an [oldProp, newProp] array.\n       The array represents the diff of the canonical state with the local state\n      of the model. Note: if the model is created locally, the canonical state is\n      empty since the adapter hasn't acknowledged the attributes yet:\n       Example\n       ```app/models/mascot.js\n      import Model, { attr } from '@ember-data/model';\n       export default class MascotModel extends Model {\n        @attr('string') name;\n        @attr('boolean', {\n          defaultValue: false\n        })\n        isAdmin;\n      }\n      ```\n       ```javascript\n      let mascot = store.createRecord('mascot');\n       mascot.changedAttributes(); // {}\n       mascot.set('name', 'Tomster');\n      mascot.changedAttributes(); // { name: [undefined, 'Tomster'] }\n       mascot.set('isAdmin', true);\n      mascot.changedAttributes(); // { isAdmin: [undefined, true], name: [undefined, 'Tomster'] }\n       mascot.save().then(function() {\n        mascot.changedAttributes(); // {}\n         mascot.set('isAdmin', false);\n        mascot.changedAttributes(); // { isAdmin: [true, false] }\n      });\n      ```\n       @method changedAttributes\n      @public\n      @return {Object} an object, whose keys are changed properties,\n        and value is an [oldProp, newProp] array.\n    */\n    changedAttributes() {\n      return (0, _private.peekCache)(this).changedAttrs((0, _store.recordIdentifierFor)(this));\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.name; // 'Untitled Document'\n      record.set('name', 'Doc 1');\n      record.name; // 'Doc 1'\n      record.rollbackAttributes();\n      record.name; // 'Untitled Document'\n      ```\n       @since 1.13.0\n      @method rollbackAttributes\n      @public\n    */\n    rollbackAttributes() {\n      const {\n        currentState\n      } = this;\n      const {\n        isNew\n      } = currentState;\n      (0, _store.storeFor)(this)._join(() => {\n        (0, _private.peekCache)(this).rollbackAttrs((0, _store.recordIdentifierFor)(this));\n        this.errors.clear();\n        currentState.cleanErrorRequests();\n        if (isNew) {\n          this.unloadRecord();\n        }\n      });\n    }\n\n    /**\n      @method _createSnapshot\n      @private\n    */\n    // TODO @deprecate in favor of a public API or examples of how to test successfully\n    _createSnapshot() {\n      const store = (0, _store.storeFor)(this);\n      if (!store._fetchManager) {\n        const FetchManager = (0, _esCompat.default)(require(\"@ember-data/legacy-compat/-private\")).FetchManager;\n        store._fetchManager = new FetchManager(store);\n      }\n      return store._fetchManager.createSnapshot((0, _store.recordIdentifierFor)(this));\n    }\n\n    /**\n      Save the record and persist any changes to the record to an\n      external source via the adapter.\n       Example\n       ```javascript\n      record.set('name', 'Tomster');\n      record.save().then(function() {\n        // Success callback\n      }, function() {\n        // Error callback\n      });\n      ```\n      If you pass an object using the `adapterOptions` property of the options\n     argument it will be passed to your adapter via the snapshot.\n       ```js\n      record.save({ adapterOptions: { subscribe: false } });\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class PostAdapter extends MyCustomAdapter {\n        updateRecord(store, type, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       @method save\n      @public\n      @param {Object} options\n      @return {Promise} a promise that will be resolved when the adapter returns\n      successfully or rejected if the adapter returns with an error.\n    */\n    save(options) {\n      let promise;\n      if (this.currentState.isNew && this.currentState.isDeleted) {\n        promise = Promise.resolve(this);\n      } else {\n        promise = (0, _store.storeFor)(this).saveRecord(this, options);\n      }\n      {\n        return deprecatedPromiseObject(promise);\n      }\n      return promise;\n    }\n\n    /**\n      Reload the record from the adapter.\n       This will only work if the record has already finished loading.\n       Example\n       ```app/controllers/model/view.js\n      import Controller from '@ember/controller';\n      import { action } from '@ember/object';\n       export default class ViewController extends Controller {\n        @action\n        reload() {\n          this.model.reload().then(function(model) {\n          // do something with the reloaded model\n          });\n        }\n      }\n      ```\n       @method reload\n      @public\n      @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter request\n      @return {Promise} a promise that will be resolved with the record when the\n      adapter returns successfully or rejected if the adapter returns\n      with an error.\n    */\n    reload() {\n      let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      options.isReloading = true;\n      options.reload = true;\n      const identifier = (0, _store.recordIdentifierFor)(this);\n      (true && !(identifier.id) && (0, _debug.assert)(`You cannot reload a record without an ID`, identifier.id));\n      this.isReloading = true;\n      const promise = (0, _store.storeFor)(this).request({\n        op: 'findRecord',\n        data: {\n          options,\n          record: identifier\n        },\n        cacheOptions: {\n          [Symbol.for('ember-data:skip-cache')]: true\n        }\n      }).then(() => this).finally(() => {\n        this.isReloading = false;\n      });\n      {\n        return deprecatedPromiseObject(promise);\n      }\n      return promise;\n    }\n    attr() {\n      (true && !(false) && (0, _debug.assert)('The `attr` method is not available on Model, a Snapshot was probably expected. Are you passing a Model instead of a Snapshot to your serializer?', false));\n    }\n\n    /**\n      Get the reference for the specified belongsTo relationship.\n       Example\n       ```app/models/blog.js\n      import Model, { belongsTo } from '@ember-data/model';\n       export default class BlogModel extends Model {\n        @belongsTo('user', { async: true, inverse: null }) user;\n      }\n      ```\n       ```javascript\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n      let userRef = blog.belongsTo('user');\n       // check if the user relationship is loaded\n      let isLoaded = userRef.value() !== null;\n       // get the record of the reference (null if not yet available)\n      let user = userRef.value();\n       // get the identifier of the reference\n      if (userRef.remoteType() === \"id\") {\n        let id = userRef.id();\n      } else if (userRef.remoteType() === \"link\") {\n        let link = userRef.link();\n      }\n       // load user (via store.findRecord or store.findBelongsTo)\n      userRef.load().then(...)\n       // or trigger a reload\n      userRef.reload().then(...)\n       // provide data for reference\n      userRef.push({\n        type: 'user',\n        id: 1,\n        attributes: {\n          username: \"@user\"\n        }\n      }).then(function(user) {\n        userRef.value() === user;\n      });\n      ```\n       @method belongsTo\n      @public\n      @param {String} name of the relationship\n      @since 2.5.0\n      @return {BelongsToReference} reference for this relationship\n    */\n    belongsTo(name) {\n      return lookupLegacySupport(this).referenceFor('belongsTo', name);\n    }\n\n    /**\n      Get the reference for the specified hasMany relationship.\n       Example\n       ```app/models/blog.js\n      import Model, { hasMany } from '@ember-data/model';\n       export default class BlogModel extends Model {\n        @hasMany('comment', { async: true, inverse: null }) comments;\n      }\n       let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            comments: {\n              data: [\n                { type: 'comment', id: 1 },\n                { type: 'comment', id: 2 }\n              ]\n            }\n          }\n        }\n      });\n      let commentsRef = blog.hasMany('comments');\n       // check if the comments are loaded already\n      let isLoaded = commentsRef.value() !== null;\n       // get the records of the reference (null if not yet available)\n      let comments = commentsRef.value();\n       // get the identifier of the reference\n      if (commentsRef.remoteType() === \"ids\") {\n        let ids = commentsRef.ids();\n      } else if (commentsRef.remoteType() === \"link\") {\n        let link = commentsRef.link();\n      }\n       // load comments (via store.findMany or store.findHasMany)\n      commentsRef.load().then(...)\n       // or trigger a reload\n      commentsRef.reload().then(...)\n       // provide data for reference\n      commentsRef.push([{ type: 'comment', id: 1 }, { type: 'comment', id: 2 }]).then(function(comments) {\n        commentsRef.value() === comments;\n      });\n      ```\n       @method hasMany\n      @public\n      @param {String} name of the relationship\n      @since 2.5.0\n      @return {HasManyReference} reference for this relationship\n    */\n    hasMany(name) {\n      return lookupLegacySupport(this).referenceFor('hasMany', name);\n    }\n\n    /**\n     Given a callback, iterates over each of the relationships in the model,\n     invoking the callback with the name of each relationship and its relationship\n     descriptor.\n       The callback method you provide should have the following signature (all\n     parameters are optional):\n      ```javascript\n     function(name, descriptor);\n     ```\n      - `name` the name of the current property in the iteration\n     - `descriptor` the meta object that describes this relationship\n      The relationship descriptor argument is an object with the following properties.\n      - **key** <span class=\"type\">String</span> the name of this relationship on the Model\n     - **kind** <span class=\"type\">String</span> \"hasMany\" or \"belongsTo\"\n     - **options** <span class=\"type\">Object</span> the original options hash passed when the relationship was declared\n     - **parentType** <span class=\"type\">Model</span> the type of the Model that owns this relationship\n     - **type** <span class=\"type\">String</span> the type name of the related Model\n      Note that in addition to a callback, you can also pass an optional target\n     object that will be set as `this` on the context.\n      Example\n      ```app/serializers/application.js\n     import JSONSerializer from '@ember-data/serializer/json';\n      export default class ApplicationSerializer extends JSONSerializer {\n        serialize(record, options) {\n        let json = {};\n         record.eachRelationship(function(name, descriptor) {\n          if (descriptor.kind === 'hasMany') {\n            let serializedHasManyName = name.toUpperCase() + '_IDS';\n            json[serializedHasManyName] = record.get(name).map(r => r.id);\n          }\n        });\n         return json;\n      }\n    }\n     ```\n      @method eachRelationship\n      @public\n     @param {Function} callback the callback to invoke\n     @param {any} binding the value to which the callback's `this` should be bound\n     */\n    eachRelationship(callback, binding) {\n      this.constructor.eachRelationship(callback, binding);\n    }\n    relationshipFor(name) {\n      return this.constructor.relationshipsByName.get(name);\n    }\n    inverseFor(key) {\n      return this.constructor.inverseFor(key, (0, _store.storeFor)(this));\n    }\n    eachAttribute(callback, binding) {\n      this.constructor.eachAttribute(callback, binding);\n    }\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     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 '<app-name>/utils/string-utils';\n      export default const PostSerializer = RESTSerializer.extend({\n       payloadKeyFromModelName(modelName) {\n         return underscore(modelName);\n       }\n     });\n     ```\n     @property modelName\n      @public\n     @type String\n     @readonly\n     @static\n    */\n    /*\n     These class methods below provide relationship\n     introspection abilities about relationships.\n      A note about the computed properties contained here:\n      **These properties are effectively sealed once called for the first time.**\n     To avoid repeatedly doing expensive iteration over a model's fields, these\n     values are computed once and then cached for the remainder of the runtime of\n     your application.\n      If your application needs to modify a class after its initial definition\n     (for example, using `reopen()` to add additional attributes), make sure you\n     do it before using your model with the store, which uses these properties\n     extensively.\n     */\n    /**\n     For a given relationship name, returns the model type of the relationship.\n      For example, if you define a model like this:\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany('comment') comments;\n     }\n     ```\n      Calling `store.modelFor('post').typeForRelationship('comments', store)` will return `Comment`.\n      @method typeForRelationship\n      @public\n     @static\n     @param {String} name the name of the relationship\n     @param {store} store an instance of Store\n     @return {Model} the type of the relationship, or undefined\n     */\n    static typeForRelationship(name, store) {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let relationship = this.relationshipsByName.get(name);\n      return relationship && store.modelFor(relationship.type);\n    }\n    static get inverseMap() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      return Object.create(null);\n    }\n\n    /**\n     Find the relationship which is the inverse of the one asked for.\n      For example, if you define models like this:\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n        @hasMany('message') comments;\n      }\n     ```\n      ```app/models/message.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class MessageModel extends Model {\n        @belongsTo('post') owner;\n      }\n     ```\n      ``` js\n     store.modelFor('post').inverseFor('comments', store) // { type: App.Message, name: 'owner', kind: 'belongsTo' }\n     store.modelFor('message').inverseFor('owner', store) // { type: App.Post, name: 'comments', kind: 'hasMany' }\n     ```\n      @method inverseFor\n      @public\n     @static\n     @param {String} name the name of the relationship\n     @param {Store} store\n     @return {Object} the inverse relationship, or null\n     */\n    static inverseFor(name, store) {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let inverseMap = this.inverseMap;\n      if (inverseMap[name]) {\n        return inverseMap[name];\n      } else {\n        let inverse = this._findInverseFor(name, store);\n        inverseMap[name] = inverse;\n        return inverse;\n      }\n    }\n\n    //Calculate the inverse, ignoring the cache\n    static _findInverseFor(name, store) {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      const relationship = this.relationshipsByName.get(name);\n      const {\n        options\n      } = relationship;\n      const isPolymorphic = options.polymorphic;\n\n      //If inverse is manually specified to be null, like  `comments: hasMany('message', { inverse: null })`\n      const isExplicitInverseNull = options.inverse === null;\n      const isAbstractType = !isExplicitInverseNull && isPolymorphic && !store.getSchemaDefinitionService().doesTypeExist(relationship.type);\n      if (isExplicitInverseNull || isAbstractType) {\n        (true && !(!isPolymorphic || isExplicitInverseNull) && (0, _debug.assert)(`No schema for the abstract type '${relationship.type}' for the polymorphic relationship '${name}' on '${this.modelName}' was provided by the SchemaDefinitionService.`, !isPolymorphic || isExplicitInverseNull));\n        return null;\n      }\n      let fieldOnInverse, inverseKind, inverseRelationship, inverseOptions;\n      let inverseSchema = this.typeForRelationship(name, store);\n\n      // if the type does not exist and we are not polymorphic\n      //If inverse is specified manually, return the inverse\n      if (options.inverse !== undefined) {\n        fieldOnInverse = options.inverse;\n        inverseRelationship = inverseSchema && inverseSchema.relationshipsByName.get(fieldOnInverse);\n        (true && !(inverseRelationship) && (0, _debug.assert)(`We found no field named '${fieldOnInverse}' on the schema for '${inverseSchema.modelName}' to be the inverse of the '${name}' relationship on '${this.modelName}'. This is most likely due to a missing field on your model definition.`, inverseRelationship)); // TODO probably just return the whole inverse here\n        inverseKind = inverseRelationship.kind;\n        inverseOptions = inverseRelationship.options;\n      } else {\n        //No inverse was specified manually, we need to use a heuristic to guess one\n        if (relationship.type === relationship.parentModelName) {\n          (true && (0, _debug.warn)(`Detected a reflexive relationship named '${name}' on the schema for '${relationship.type}' 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        let possibleRelationships = findPossibleInverses(this, inverseSchema, name);\n        if (possibleRelationships.length === 0) {\n          return null;\n        }\n        {\n          let filteredRelationships = possibleRelationships.filter(possibleRelationship => {\n            let optionsForRelationship = possibleRelationship.options;\n            return name === optionsForRelationship.inverse;\n          });\n          (true && !(filteredRelationships.length < 2) && (0, _debug.assert)(\"You defined the '\" + name + \"' relationship on \" + this + ', but you defined the inverse relationships of type ' + inverseSchema.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        let explicitRelationship = possibleRelationships.find(relationship => relationship.options.inverse === name);\n        if (explicitRelationship) {\n          possibleRelationships = [explicitRelationship];\n        }\n        (true && !(possibleRelationships.length === 1) && (0, _debug.assert)(\"You defined the '\" + name + \"' relationship on \" + this + ', but multiple possible inverse relationships of type ' + this + ' were found on ' + inverseSchema + '. Look at https://guides.emberjs.com/current/models/relationships/#toc_explicit-inverses for how to explicitly specify inverses', possibleRelationships.length === 1));\n        fieldOnInverse = possibleRelationships[0].name;\n        inverseKind = possibleRelationships[0].kind;\n        inverseOptions = possibleRelationships[0].options;\n      }\n\n      // ensure inverse is properly configured\n      {\n        if (isPolymorphic) {\n          {\n            if (!inverseOptions.as) {\n              (true && !(false) && (0, _debug.deprecate)(`Relationships that satisfy polymorphic relationships MUST define which abstract-type they are satisfying using 'as'. The field '${fieldOnInverse}' on type '${inverseSchema.modelName}' is misconfigured.`, false, {\n                id: 'ember-data:non-explicit-relationships',\n                since: {\n                  enabled: '4.7',\n                  available: '4.7'\n                },\n                until: '5.0',\n                for: 'ember-data'\n              }));\n            }\n          }\n        }\n      }\n\n      // ensure we are properly configured\n      {\n        if (inverseOptions.polymorphic) {\n          {\n            if (!options.as) {\n              (true && !(false) && (0, _debug.deprecate)(`Relationships that satisfy polymorphic relationships MUST define which abstract-type they are satisfying using 'as'. The field '${name}' on type '${this.modelName}' is misconfigured.`, false, {\n                id: 'ember-data:non-explicit-relationships',\n                since: {\n                  enabled: '4.7',\n                  available: '4.7'\n                },\n                until: '5.0',\n                for: 'ember-data'\n              }));\n            }\n          }\n        }\n      }\n      (true && !(inverseOptions.inverse !== null) && (0, _debug.assert)(`The ${inverseSchema.modelName}:${fieldOnInverse} relationship declares 'inverse: null', but it was resolved as the inverse for ${this.modelName}:${name}.`, inverseOptions.inverse !== null));\n      return {\n        type: inverseSchema,\n        name: fieldOnInverse,\n        kind: inverseKind,\n        options: inverseOptions\n      };\n    }\n\n    /**\n     The model's relationships as a map, keyed on the type of the\n     relationship. The value of each entry is an array containing a descriptor\n     for each relationship with that type, describing the name of the relationship\n     as well as the type.\n      For example, given the following model definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n        @hasMany('post') posts;\n      }\n     ```\n      This computed property would return a map describing these\n     relationships, like this:\n      ```javascript\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog';\n     import User from 'app/models/user';\n     import Post from 'app/models/post';\n      let relationships = Blog.relationships;\n     relationships.user;\n     //=> [ { name: 'users', kind: 'hasMany' },\n     //     { name: 'owner', kind: 'belongsTo' } ]\n     relationships.post;\n     //=> [ { name: 'posts', kind: 'hasMany' } ]\n     ```\n      @property relationships\n      @public\n     @static\n     @type Map\n     @readOnly\n     */\n\n    static get relationships() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let map = new Map();\n      let relationshipsByName = this.relationshipsByName;\n\n      // Loop through each computed property on the class\n      relationshipsByName.forEach(desc => {\n        let {\n          type\n        } = desc;\n        if (!map.has(type)) {\n          map.set(type, []);\n        }\n        map.get(type).push(desc);\n      });\n      return map;\n    }\n\n    /**\n     A hash containing lists of the model's relationships, grouped\n     by the relationship kind. For example, given a model with this\n     definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n         @hasMany('post') posts;\n      }\n     ```\n      This property would contain the following:\n      ```javascript\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog';\n      let relationshipNames = Blog.relationshipNames;\n     relationshipNames.hasMany;\n     //=> ['users', 'posts']\n     relationshipNames.belongsTo;\n     //=> ['owner']\n     ```\n      @property relationshipNames\n      @public\n     @static\n     @type Object\n     @readOnly\n     */\n    static get relationshipNames() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let names = {\n        hasMany: [],\n        belongsTo: []\n      };\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isRelationship) {\n          names[meta.kind].push(name);\n        }\n      });\n      return names;\n    }\n\n    /**\n     An array of types directly related to a model. Each type will be\n     included once, regardless of the number of relationships it has with\n     the model.\n      For example, given a model with this definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n         @hasMany('post') posts;\n      }\n     ```\n      This property would contain the following:\n      ```javascript\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog';\n      let relatedTypes = Blog.relatedTypes');\n     //=> ['user', 'post']\n     ```\n      @property relatedTypes\n      @public\n     @static\n     @type Ember.Array\n     @readOnly\n     */\n    static get relatedTypes() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let types = [];\n      let rels = this.relationshipsObject;\n      let relationships = Object.keys(rels);\n\n      // create an array of the unique types involved\n      // in relationships\n      for (let i = 0; i < relationships.length; i++) {\n        let name = relationships[i];\n        let meta = rels[name];\n        let modelName = meta.type;\n        if (types.indexOf(modelName) === -1) {\n          types.push(modelName);\n        }\n      }\n      return types;\n    }\n\n    /**\n     A map whose keys are the relationships of a model and whose values are\n     relationship descriptors.\n      For example, given a model with this\n     definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n         @hasMany('post') posts;\n      }\n     ```\n      This property would contain the following:\n      ```javascript\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog';\n      let relationshipsByName = Blog.relationshipsByName;\n     relationshipsByName.users;\n     //=> { key: 'users', kind: 'hasMany', type: 'user', options: Object, isRelationship: true }\n     relationshipsByName.owner;\n     //=> { key: 'owner', kind: 'belongsTo', type: 'user', options: Object, isRelationship: true }\n     ```\n      @property relationshipsByName\n      @public\n     @static\n     @type Map\n     @readOnly\n     */\n    static get relationshipsByName() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let map = new Map();\n      let rels = this.relationshipsObject;\n      let relationships = Object.keys(rels);\n      for (let i = 0; i < relationships.length; i++) {\n        let key = relationships[i];\n        let value = rels[key];\n        map.set(value.name || value.key, value);\n      }\n      return map;\n    }\n    static get relationshipsObject() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let relationships = Object.create(null);\n      let modelName = this.modelName;\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isRelationship) {\n          var _meta$options$as;\n          meta.key = name;\n          meta.name = name;\n          meta.parentModelName = modelName;\n          relationships[name] = relationshipFromMeta(meta);\n          (true && !(!(meta.options.inverse === null && ((_meta$options$as = meta.options.as) === null || _meta$options$as === void 0 ? void 0 : _meta$options$as.length) > 0)) && (0, _debug.assert)(`You should not specify both options.as and options.inverse as null on ${modelName}.${meta.name}, as if there is no inverse field there is no abstract type to conform to. You may have intended for this relationship to be polymorphic, or you may have mistakenly set inverse to null.`, !(meta.options.inverse === null && ((_meta$options$as = meta.options.as) === null || _meta$options$as === void 0 ? void 0 : _meta$options$as.length) > 0)));\n        }\n      });\n      return relationships;\n    }\n\n    /**\n     A map whose keys are the fields of the model and whose values are strings\n     describing the kind of the field. A model's fields are the union of all of its\n     attributes and relationships.\n      For example:\n      ```app/models/blog.js\n     import Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n         @hasMany('post') posts;\n         @attr('string') title;\n      }\n     ```\n      ```js\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog'\n      let fields = Blog.fields;\n     fields.forEach(function(kind, field) {\n        // do thing\n      });\n      // prints:\n     // users, hasMany\n     // owner, belongsTo\n     // posts, hasMany\n     // title, attribute\n     ```\n      @property fields\n      @public\n     @static\n     @type Map\n     @readOnly\n     */\n    static get fields() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let map = new Map();\n      this.eachComputedProperty((name, meta) => {\n        // TODO end reliance on these booleans and stop leaking them in the spec\n        if (meta.isRelationship) {\n          map.set(name, meta.kind);\n        } else if (meta.isAttribute) {\n          map.set(name, 'attribute');\n        }\n      });\n      return map;\n    }\n\n    /**\n     Given a callback, iterates over each of the relationships in the model,\n     invoking the callback with the name of each relationship and its relationship\n     descriptor.\n      @method eachRelationship\n      @public\n     @static\n     @param {Function} callback the callback to invoke\n     @param {any} binding the value to which the callback's `this` should be bound\n     */\n    static eachRelationship(callback, binding) {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      this.relationshipsByName.forEach((relationship, name) => {\n        callback.call(binding, name, relationship);\n      });\n    }\n\n    /**\n     Given a callback, iterates over each of the types related to a model,\n     invoking the callback with the related type's class. Each type will be\n     returned just once, regardless of how many different relationships it has\n     with a model.\n      @method eachRelatedType\n      @public\n     @static\n     @param {Function} callback the callback to invoke\n     @param {any} binding the value to which the callback's `this` should be bound\n     */\n    static eachRelatedType(callback, binding) {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let relationshipTypes = this.relatedTypes;\n      for (let i = 0; i < relationshipTypes.length; i++) {\n        let type = relationshipTypes[i];\n        callback.call(binding, type);\n      }\n    }\n    static determineRelationshipType(knownSide, store) {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let knownKey = knownSide.key;\n      let knownKind = knownSide.kind;\n      let inverse = this.inverseFor(knownKey, store);\n      // let key;\n      let otherKind;\n      if (!inverse) {\n        return knownKind === 'belongsTo' ? 'oneToNone' : 'manyToNone';\n      }\n\n      // key = inverse.name;\n      otherKind = inverse.kind;\n      if (otherKind === 'belongsTo') {\n        return knownKind === 'belongsTo' ? 'oneToOne' : 'manyToOne';\n      } else {\n        return knownKind === 'belongsTo' ? 'oneToMany' : 'manyToMany';\n      }\n    }\n\n    /**\n     A map whose keys are the attributes of the model (properties\n     described by attr) and whose values are the meta object for the\n     property.\n      Example\n      ```app/models/person.js\n     import Model, { attr } from '@ember-data/model';\n      export default class PersonModel extends Model {\n        @attr('string') firstName;\n        @attr('string') lastName;\n        @attr('date') birthday;\n      }\n     ```\n      ```javascript\n     import { get } from '@ember/object';\n     import Person from 'app/models/person'\n      let attributes = Person.attributes\n      attributes.forEach(function(meta, name) {\n        // do thing\n      });\n      // prints:\n     // firstName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"firstName\"}\n     // lastName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"lastName\"}\n     // birthday {type: \"date\", isAttribute: true, options: Object, parentType: function, name: \"birthday\"}\n     ```\n      @property attributes\n      @public\n     @static\n     @type {Map}\n     @readOnly\n     */\n    static get attributes() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let map = new Map();\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isAttribute) {\n          (true && !(name !== 'id') && (0, _debug.assert)(\"You may not set `id` as an attribute on your model. Please remove any lines that look like: `id: attr('<type>')` from \" + this.toString(), name !== 'id'));\n          meta.name = name;\n          map.set(name, meta);\n        }\n      });\n      return map;\n    }\n\n    /**\n     A map whose keys are the attributes of the model (properties\n     described by attr) and whose values are type of transformation\n     applied to each attribute. This map does not include any\n     attributes that do not have an transformation type.\n      Example\n      ```app/models/person.js\n     import Model, { attr } from '@ember-data/model';\n      export default class PersonModel extends Model {\n        @attr firstName;\n        @attr('string') lastName;\n        @attr('date') birthday;\n      }\n     ```\n      ```javascript\n     import { get } from '@ember/object';\n     import Person from 'app/models/person';\n      let transformedAttributes = Person.transformedAttributes\n      transformedAttributes.forEach(function(field, type) {\n        // do thing\n      });\n      // prints:\n     // lastName string\n     // birthday date\n     ```\n      @property transformedAttributes\n      @public\n     @static\n     @type {Map}\n     @readOnly\n     */\n    static get transformedAttributes() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      let map = new Map();\n      this.eachAttribute((key, meta) => {\n        if (meta.type) {\n          map.set(key, meta.type);\n        }\n      });\n      return map;\n    }\n\n    /**\n     Iterates through the attributes of the model, calling the passed function on each\n     attribute.\n      The callback method you provide should have the following signature (all\n     parameters are optional):\n      ```javascript\n     function(name, meta);\n     ```\n      - `name` the name of the current property in the iteration\n     - `meta` the meta object for the attribute property in the iteration\n      Note that in addition to a callback, you can also pass an optional target\n     object that will be set as `this` on the context.\n      Example\n      ```javascript\n     import Model, { attr } from '@ember-data/model';\n      class PersonModel extends Model {\n        @attr('string') firstName;\n        @attr('string') lastName;\n        @attr('date') birthday;\n      }\n      PersonModel.eachAttribute(function(name, meta) {\n        // do thing\n      });\n      // prints:\n     // firstName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"firstName\"}\n     // lastName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"lastName\"}\n     // birthday {type: \"date\", isAttribute: true, options: Object, parentType: function, name: \"birthday\"}\n     ```\n      @method eachAttribute\n      @public\n     @param {Function} callback The callback to execute\n     @param {Object} [binding] the value to which the callback's `this` should be bound\n     @static\n     */\n    static eachAttribute(callback, binding) {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      this.attributes.forEach((meta, name) => {\n        callback.call(binding, name, meta);\n      });\n    }\n\n    /**\n     Iterates through the transformedAttributes of the model, calling\n     the passed function on each attribute. Note the callback will not be\n     called for any attributes that do not have an transformation type.\n      The callback method you provide should have the following signature (all\n     parameters are optional):\n      ```javascript\n     function(name, type);\n     ```\n      - `name` the name of the current property in the iteration\n     - `type` a string containing the name of the type of transformed\n     applied to the attribute\n      Note that in addition to a callback, you can also pass an optional target\n     object that will be set as `this` on the context.\n      Example\n      ```javascript\n     import Model, { attr } from '@ember-data/model';\n      let Person = Model.extend({\n        firstName: attr(),\n        lastName: attr('string'),\n        birthday: attr('date')\n      });\n      Person.eachTransformedAttribute(function(name, type) {\n        // do thing\n      });\n      // prints:\n     // lastName string\n     // birthday date\n     ```\n      @method eachTransformedAttribute\n      @public\n     @param {Function} callback The callback to execute\n     @param {Object} [binding] the value to which the callback's `this` should be bound\n     @static\n     */\n    static eachTransformedAttribute(callback, binding) {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      this.transformedAttributes.forEach((type, name) => {\n        callback.call(binding, name, type);\n      });\n    }\n\n    /**\n     Returns the name of the model class.\n      @method toString\n      @public\n     @static\n     */\n    static toString() {\n      {\n        (true && !(this.modelName) && (0, _debug.deprecate)(`Accessing schema information on Models without looking up the model via the store is deprecated. Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.`, this.modelName, {\n          id: 'ember-data:deprecate-early-static',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n      }\n      return `model:${this.modelName}`;\n    }\n  }, _class2.isModel = true, _class2.modelName = null, _class2), _applyDecoratedDescriptor(_class.prototype, \"isEmpty\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isEmpty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isLoading\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isLoaded\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isLoaded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasDirtyAttributes\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"hasDirtyAttributes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isSaving\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isSaving\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isDeleted\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isDeleted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isNew\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isNew\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isValid\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isValid\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dirtyType\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"dirtyType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isError\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isError\"), _class.prototype), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isReloading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"id\", [tagged], Object.getOwnPropertyDescriptor(_class.prototype, \"id\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"currentState\", [tagged], Object.getOwnPropertyDescriptor(_class.prototype, \"currentState\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"errors\", [computeOnce], Object.getOwnPropertyDescriptor(_class.prototype, \"errors\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"adapterError\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"adapterError\"), _class.prototype), _applyDecoratedDescriptor(_class, \"inverseMap\", [computeOnce], Object.getOwnPropertyDescriptor(_class, \"inverseMap\"), _class), _applyDecoratedDescriptor(_class, \"relationships\", [computeOnce], Object.getOwnPropertyDescriptor(_class, \"relationships\"), _class), _applyDecoratedDescriptor(_class, \"relationshipNames\", [computeOnce], Object.getOwnPropertyDescriptor(_class, \"relationshipNames\"), _class), _applyDecoratedDescriptor(_class, \"relatedTypes\", [computeOnce], Object.getOwnPropertyDescriptor(_class, \"relatedTypes\"), _class), _applyDecoratedDescriptor(_class, \"relationshipsByName\", [computeOnce], Object.getOwnPropertyDescriptor(_class, \"relationshipsByName\"), _class), _applyDecoratedDescriptor(_class, \"relationshipsObject\", [computeOnce], Object.getOwnPropertyDescriptor(_class, \"relationshipsObject\"), _class), _applyDecoratedDescriptor(_class, \"fields\", [computeOnce], Object.getOwnPropertyDescriptor(_class, \"fields\"), _class), _applyDecoratedDescriptor(_class, \"attributes\", [computeOnce], Object.getOwnPropertyDescriptor(_class, \"attributes\"), _class), _applyDecoratedDescriptor(_class, \"transformedAttributes\", [computeOnce], Object.getOwnPropertyDescriptor(_class, \"transformedAttributes\"), _class), _class); // this is required to prevent `init` from passing\n  // the values initialized during create to `setUnknownProperty`\n  Model.prototype._createProps = null;\n  Model.prototype._secretInit = null;\n  {\n    /**\n     Provides info about the model for debugging purposes\n     by grouping the properties into more semantic groups.\n      Meant to be used by debugging tools such as the Chrome Ember Extension.\n      - Groups all attributes in \"Attributes\" group.\n     - Groups all belongsTo relationships in \"Belongs To\" group.\n     - Groups all hasMany relationships in \"Has Many\" group.\n     - Groups all flags in \"Flags\" group.\n     - Flags relationship CPs as expensive properties.\n      @method _debugInfo\n     @for Model\n     @private\n     */\n    Model.prototype._debugInfo = function () {\n      let relationships = {};\n      let expensiveProperties = [];\n      const identifier = (0, _store.recordIdentifierFor)(this);\n      const schema = this.store.getSchemaDefinitionService();\n      const attrDefs = schema.attributesDefinitionFor(identifier);\n      const relDefs = schema.relationshipsDefinitionFor(identifier);\n      const attributes = Object.keys(attrDefs);\n      attributes.unshift('id');\n      let groups = [{\n        name: 'Attributes',\n        properties: attributes,\n        expand: true\n      }];\n      Object.keys(relDefs).forEach(name => {\n        const relationship = relDefs[name];\n        let properties = relationships[relationship.kind];\n        if (properties === undefined) {\n          properties = relationships[relationship.kind] = [];\n          groups.push({\n            name: relationship.kind,\n            properties,\n            expand: true\n          });\n        }\n        properties.push(name);\n        expensiveProperties.push(name);\n      });\n      groups.push({\n        name: 'Flags',\n        properties: ['isLoaded', 'hasDirtyAttributes', 'isSaving', 'isDeleted', 'isError', 'isNew', 'isValid']\n      });\n      return {\n        propertyInfo: {\n          // include all other mixins / properties (not just the grouped ones)\n          includeOtherProperties: true,\n          groups: groups,\n          // don't pre-calculate unless cached\n          expensiveProperties: expensiveProperties\n        }\n      };\n    };\n  }\n  {\n    let lookupDescriptor = function lookupDescriptor(obj, keyName) {\n      let current = obj;\n      do {\n        let descriptor = Object.getOwnPropertyDescriptor(current, keyName);\n        if (descriptor !== undefined) {\n          return descriptor;\n        }\n        current = Object.getPrototypeOf(current);\n      } while (current !== null);\n      return null;\n    };\n    Model.reopen({\n      init() {\n        this._super(...arguments);\n        let ourDescriptor = lookupDescriptor(Model.prototype, 'currentState');\n        let theirDescriptor = lookupDescriptor(this, 'currentState');\n        let realState = this.___recordState;\n        if (ourDescriptor.get !== theirDescriptor.get || realState !== this.currentState) {\n          throw new Error(`'currentState' is a reserved property name on instances of classes extending Model. Please choose a different property name for ${this.constructor.toString()}`);\n        }\n        const ID_DESCRIPTOR = lookupDescriptor(Model.prototype, 'id');\n        let idDesc = lookupDescriptor(this, 'id');\n        if (idDesc.get !== ID_DESCRIPTOR.get) {\n          throw new 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    {\n      const originalReopen = Model.reopen;\n      const originalReopenClass = Model.reopenClass;\n      Model.reopen = function deprecatedReopen() {\n        (true && !(false) && (0, _debug.deprecate)(`Model.reopen is deprecated. Use Foo extends Model to extend your class instead.`, false, {\n          id: 'ember-data:deprecate-model-reopen',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n        return originalReopen.call(this, ...arguments);\n      };\n      Model.reopenClass = function deprecatedReopenClass() {\n        (true && !(false) && (0, _debug.deprecate)(`Model.reopenClass is deprecated. Use Foo extends Model to add static methods and properties to your class instead.`, false, {\n          id: 'ember-data:deprecate-model-reopenclass',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          }\n        }));\n        return originalReopenClass.call(this, ...arguments);\n      };\n    }\n  }\n  function normalizeType$1(type) {\n    {\n      if (!type) {\n        return;\n      }\n    }\n    return (0, _string.dasherize)(type);\n  }\n  /**\n    @module @ember-data/model\n  */\n\n  /**\n    `belongsTo` is used to define One-To-One and One-To-Many\n    relationships on a [Model](/ember-data/release/classes/Model).\n  \n  \n    `belongsTo` takes an optional hash as a second parameter, currently\n    supported options are:\n  \n    - `async`: A boolean value used to explicitly declare this to be an async relationship. The default is true.\n    - `inverse`: A string used to identify the inverse property on a\n      related model in a One-To-Many relationship. See [Explicit Inverses](#explicit-inverses)\n    - `polymorphic` A boolean value to mark the relationship as polymorphic\n  \n    #### One-To-One\n    To declare a one-to-one relationship between two models, use\n    `belongsTo`:\n  \n    ```app/models/user.js\n    import Model, { belongsTo } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @belongsTo('profile') profile;\n    }\n    ```\n  \n    ```app/models/profile.js\n    import Model, { belongsTo } from '@ember-data/model';\n  \n    export default class ProfileModel extends Model {\n      @belongsTo('user') user;\n    }\n    ```\n  \n    #### One-To-Many\n  \n    To declare a one-to-many relationship between two models, use\n    `belongsTo` in combination with `hasMany`, like this:\n  \n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @hasMany('comment', { async: false, inverse: 'post' }) comments;\n    }\n    ```\n  \n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n  \n    export default class CommentModel extends Model {\n      @belongsTo('post', { async: false, inverse: 'comments' }) post;\n    }\n    ```\n  \n    #### Sync relationships\n  \n    Ember Data resolves sync relationships with the related resources\n    available in its local store, hence it is expected these resources\n    to be loaded before or along-side the primary resource.\n  \n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n  \n    export default class CommentModel extends Model {\n      @belongsTo('post', {\n        async: false,\n        inverse: null\n      })\n      post;\n    }\n    ```\n  \n    In contrast to async relationship, accessing a sync relationship\n    will always return the record (Model instance) for the existing\n    local resource, or null. But it will error on access when\n    a related resource is known to exist and it has not been loaded.\n  \n    ```\n    let post = comment.post;\n  \n    ```\n  \n    @method belongsTo\n    @public\n    @static\n    @for @ember-data/model\n    @param {String} modelName (optional) type of the relationship\n    @param {Object} options (optional) a hash of options\n    @return {Ember.computed} relationship\n  */\n  function belongsTo(modelName, options) {\n    let opts = options;\n    let userEnteredModelName = modelName;\n    {\n      if (typeof modelName !== 'string' || !modelName.length) {\n        (true && !(false) && (0, _debug.deprecate)('belongsTo() must specify the string type of the related resource as the first parameter', false, {\n          id: 'ember-data:deprecate-non-strict-relationships',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n        if (typeof modelName === 'object') {\n          opts = modelName;\n          userEnteredModelName = undefined;\n        } else {\n          opts = options;\n          userEnteredModelName = modelName;\n        }\n        (true && !(typeof userEnteredModelName === 'string' || typeof userEnteredModelName === 'undefined') && (0, _debug.assert)('The first argument to belongsTo must be a string representing a model type key, not an instance of ' + typeof userEnteredModelName + \". E.g., to define a relation to the Person model, use belongsTo('person')\", typeof userEnteredModelName === 'string' || typeof userEnteredModelName === 'undefined'));\n      }\n    }\n    {\n      if (!opts || typeof opts.async !== 'boolean') {\n        opts = opts || {};\n        if (!('async' in opts)) {\n          opts.async = true;\n        }\n        (true && !(false) && (0, _debug.deprecate)('belongsTo(<type>, <options>) must specify options.async as either `true` or `false`.', false, {\n          id: 'ember-data:deprecate-non-strict-relationships',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      } else {\n        (true && !(opts && typeof opts.async === 'boolean') && (0, _debug.assert)(`Expected belongsTo options.async to be a boolean`, opts && typeof opts.async === 'boolean'));\n      }\n    }\n    {\n      if (opts.inverse !== null && (typeof opts.inverse !== 'string' || opts.inverse.length === 0)) {\n        (true && !(false) && (0, _debug.deprecate)('belongsTo(<type>, <options>) must specify options.inverse as either `null` or the name of the field on the related resource type.', false, {\n          id: 'ember-data:deprecate-non-strict-relationships',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      } else {\n        (true && !(opts.inverse === null || typeof opts.inverse === 'string' && opts.inverse.length > 0) && (0, _debug.assert)(`Expected belongsTo options.inverse to be either null or the string type of the related resource.`, opts.inverse === null || typeof opts.inverse === 'string' && opts.inverse.length > 0));\n      }\n    }\n    let meta = {\n      type: normalizeType$1(userEnteredModelName),\n      isRelationship: true,\n      options: opts,\n      kind: 'belongsTo',\n      name: 'Belongs To',\n      key: null\n    };\n    return (0, _object.computed)({\n      get(key) {\n        // this is a legacy behavior we may not carry into a new model setup\n        // it's better to error on disconnected records so users find errors\n        // in their logic.\n        if (this.isDestroying || this.isDestroyed) {\n          return null;\n        }\n        const support = lookupLegacySupport(this);\n        {\n          if (['currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your belongsTo on ${this.constructor.toString()}`);\n          }\n          if (Object.prototype.hasOwnProperty.call(opts, 'serialize')) {\n            (true && (0, _debug.warn)(`You provided a serialize option on the \"${key}\" property in the \"${support.identifier.type}\" class, this belongs in the serializer. See Serializer and it's implementations https://api.emberjs.com/ember-data/release/classes/Serializer`, false, {\n              id: 'ds.model.serialize-option-in-belongs-to'\n            }));\n          }\n          if (Object.prototype.hasOwnProperty.call(opts, 'embedded')) {\n            (true && (0, _debug.warn)(`You provided an embedded option on the \"${key}\" property in the \"${support.identifier.type}\" class, this belongs in the serializer. See EmbeddedRecordsMixin https://api.emberjs.com/ember-data/release/classes/EmbeddedRecordsMixin`, false, {\n              id: 'ds.model.embedded-option-in-belongs-to'\n            }));\n          }\n        }\n        return support.getBelongsTo(key);\n      },\n      set(key, value) {\n        const support = lookupLegacySupport(this);\n        {\n          if (['currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your belongsTo on ${this.constructor.toString()}`);\n          }\n        }\n        this.store._join(() => {\n          support.setDirtyBelongsTo(key, value);\n        });\n        return support.getBelongsTo(key);\n      }\n    }).meta(meta);\n  }\n  var belongsTo$1 = _exports.b = computedMacroWithOptionalParams(belongsTo);\n  function normalizeType(type) {\n    {\n      if (!type) {\n        return;\n      }\n    }\n    return (0, _emberInflector.singularize)((0, _string.dasherize)(type));\n  }\n\n  /**\n    `hasMany` is used to define One-To-Many and Many-To-Many\n    relationships on a [Model](/ember-data/release/classes/Model).\n  \n    `hasMany` takes an optional hash as a second parameter, currently\n    supported options are:\n  \n    - `async`: A boolean value used to explicitly declare this to be an async relationship. The default is true.\n    - `inverse`: A string used to identify the inverse property on a related model.\n    - `polymorphic` A boolean value to mark the relationship as polymorphic\n  \n    #### One-To-Many\n    To declare a one-to-many relationship between two models, use\n    `belongsTo` in combination with `hasMany`, like this:\n  \n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @hasMany('comment') comments;\n    }\n    ```\n  \n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n  \n    export default class CommentModel extends Model {\n      @belongsTo('post') post;\n    }\n    ```\n  \n    #### Many-To-Many\n    To declare a many-to-many relationship between two models, use\n    `hasMany`:\n  \n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @hasMany('tag') tags;\n    }\n    ```\n  \n    ```app/models/tag.js\n    import Model, { hasMany } from '@ember-data/model';\n  \n    export default class TagModel extends Model {\n      @hasMany('post') posts;\n    }\n    ```\n  \n    You can avoid passing a string as the first parameter. In that case Ember Data\n    will infer the type from the singularized key name.\n  \n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @hasMany tags;\n    }\n    ```\n  \n    will lookup for a Tag type.\n  \n    #### Explicit Inverses\n  \n    Ember Data will do its best to discover which relationships map to\n    one another. In the one-to-many code above, for example, Ember Data\n    can figure out that changing the `comments` relationship should update\n    the `post` relationship on the inverse because post is the only\n    relationship to that model.\n  \n    However, sometimes you may have multiple `belongsTo`/`hasMany` for the\n    same type. You can specify which property on the related model is\n    the inverse using `hasMany`'s `inverse` option:\n  \n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n  \n    export default class CommentModel extends Model {\n      @belongsTo('post') onePost;\n      @belongsTo('post') twoPost\n      @belongsTo('post') redPost;\n      @belongsTo('post') bluePost;\n    }\n    ```\n  \n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @hasMany('comment', {\n        inverse: 'redPost'\n      })\n      comments;\n    }\n    ```\n  \n    You can also specify an inverse on a `belongsTo`, which works how\n    you'd expect.\n  \n    #### Sync relationships\n  \n    Ember Data resolves sync relationships with the related resources\n    available in its local store, hence it is expected these resources\n    to be loaded before or along-side the primary resource.\n  \n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @hasMany('comment', {\n        async: false\n      })\n      comments;\n    }\n    ```\n  \n    In contrast to async relationship, accessing a sync relationship\n    will always return a [ManyArray](/ember-data/release/classes/ManyArray) instance\n    containing the existing local resources. But it will error on access\n    when any of the known related resources have not been loaded.\n  \n    ```\n    post.comments.forEach((comment) => {\n  \n    });\n  \n    ```\n  \n    If you are using `links` with sync relationships, you have to use\n    `ref.reload` to fetch the resources.\n  \n    @method hasMany\n    @public\n    @static\n    @for @ember-data/model\n    @param {String} type (optional) type of the relationship\n    @param {Object} options (optional) a hash of options\n    @return {Ember.computed} relationship\n  */\n  function hasMany(type, options) {\n    {\n      if (typeof type !== 'string' || !type.length) {\n        (true && !(false) && (0, _debug.deprecate)('hasMany(<type>, <options>) must specify the string type of the related resource as the first parameter', false, {\n          id: 'ember-data:deprecate-non-strict-relationships',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n        if (typeof type === 'object') {\n          options = type;\n          type = undefined;\n        }\n        (true && !(typeof type === 'string' || typeof type === 'undefined') && (0, _debug.assert)(`The first argument to hasMany must be a string representing a model type key, not an instance of ${(0, _debug.inspect)(type)}. E.g., to define a relation to the Comment model, use hasMany('comment')`, typeof type === 'string' || typeof type === 'undefined'));\n      }\n    }\n    {\n      if (!options || typeof options.async !== 'boolean') {\n        options = options || {};\n        if (!('async' in options)) {\n          options.async = true;\n        }\n        (true && !(false) && (0, _debug.deprecate)('hasMany(<type>, <options>) must specify options.async as either `true` or `false`.', false, {\n          id: 'ember-data:deprecate-non-strict-relationships',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      } else {\n        (true && !(options && typeof options.async === 'boolean') && (0, _debug.assert)(`Expected hasMany options.async to be a boolean`, options && typeof options.async === 'boolean'));\n      }\n    }\n    {\n      if (options.inverse !== null && (typeof options.inverse !== 'string' || options.inverse.length === 0)) {\n        (true && !(false) && (0, _debug.deprecate)('hasMany(<type>, <options>) must specify options.inverse as either `null` or the name of the field on the related resource type.', false, {\n          id: 'ember-data:deprecate-non-strict-relationships',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      }\n    }\n\n    // Metadata about relationships is stored on the meta of\n    // the relationship. This is used for introspection and\n    // serialization. Note that `key` is populated lazily\n    // the first time the CP is called.\n    let meta = {\n      type: normalizeType(type),\n      options,\n      isRelationship: true,\n      kind: 'hasMany',\n      name: 'Has Many',\n      key: null\n    };\n    return (0, _object.computed)({\n      get(key) {\n        {\n          if (['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        if (this.isDestroying || this.isDestroyed) {\n          return (0, _array.A)();\n        }\n        return lookupLegacySupport(this).getHasMany(key);\n      },\n      set(key, records) {\n        {\n          if (['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        const support = lookupLegacySupport(this);\n        const manyArray = support.getManyArray(key);\n        (true && !(Array.isArray(records)) && (0, _debug.assert)(`You must pass an array of records to set a hasMany relationship`, Array.isArray(records)));\n        this.store._join(() => {\n          manyArray.splice(0, manyArray.length, ...records);\n        });\n        return support.getHasMany(key);\n      }\n    }).meta(meta);\n  }\n  var hasMany$1 = _exports.h = computedMacroWithOptionalParams(hasMany);\n});","define(\"@ember-data/model/index\", [\"exports\", \"@ember-data/model/has-many-d45aa09e\"], function (_exports, _hasManyD45aa09e) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"attr\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.a;\n    }\n  });\n  Object.defineProperty(_exports, \"belongsTo\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.b;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.M;\n    }\n  });\n  Object.defineProperty(_exports, \"hasMany\", {\n    enumerable: true,\n    get: function () {\n      return _hasManyD45aa09e.h;\n    }\n  });\n});","define(\"@ember-data/request/context-e36ee987\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.S = _exports.I = void 0;\n  _exports._ = _classPrivateFieldBase;\n  _exports.a = assertValidRequest;\n  _exports.b = clearRequestResult;\n  _exports.c = cloneResponseProperties;\n  _exports.d = _classPrivateFieldKey;\n  _exports.e = executeNextHandler;\n  _exports.f = createDeferred;\n  _exports.g = getRequestResult;\n  _exports.h = getPromiseResult;\n  _exports.s = setPromiseResult;\n  _exports.u = upgradePromise;\n  function _classPrivateFieldBase(receiver, privateKey) {\n    if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {\n      throw new TypeError(\"attempted to use private field on non-instance\");\n    }\n    return receiver;\n  }\n  var id = 0;\n  function _classPrivateFieldKey(name) {\n    return \"__private_\" + id++ + \"_\" + name;\n  }\n  const BODY_TYPES = {\n    type: 'string',\n    klass: ['Blob', 'ArrayBuffer', 'TypedArray', 'DataView', 'FormData', 'URLSearchParams', 'ReadableStream']\n  };\n  const ValidKeys = new Map([['records', 'array'], ['data', 'json'], ['body', BODY_TYPES], ['disableTestWaiter', 'boolean'], ['options', 'object'], ['cacheOptions', 'object'], ['op', 'string'], ['store', 'object'], ['url', 'string'], ['cache', ['default', 'force-cache', 'no-cache', 'no-store', 'only-if-cached', 'reload']], ['credentials', ['include', 'omit', 'same-origin']], ['destination', ['', 'object', 'audio', 'audioworklet', 'document', 'embed', 'font', 'frame', 'iframe', 'image', 'manifest', 'paintworklet', 'report', 'script', 'sharedworker', 'style', 'track', 'video', 'worker', 'xslt']], ['headers', 'headers'], ['integrity', 'string'], ['keepalive', 'boolean'], ['method', ['GET', 'PUT', 'PATCH', 'DELETE', 'POST', 'OPTIONS']], ['mode', ['same-origin', 'cors', 'navigate', 'no-cors']], ['redirect', ['error', 'follow', 'manual']], ['referrer', 'string'], ['signal', 'AbortSignal'], ['controller', 'AbortController'], ['referrerPolicy', ['', 'same-origin', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url']]]);\n  const IS_FROZEN = Symbol('FROZEN');\n  const IS_COLLECTION = Symbol.for('Collection');\n  function freezeHeaders(headers) {\n    headers.delete = headers.set = headers.append = () => {\n      throw new Error(`Cannot Mutate Immutatable Headers, use headers.clone to get a copy`);\n    };\n    upgradeHeaders(headers);\n    return headers;\n  }\n  function deepFreeze(value) {\n    if (value && value[IS_FROZEN]) {\n      return value;\n    }\n    const _type = typeof value;\n    switch (_type) {\n      case 'boolean':\n      case 'string':\n      case 'number':\n      case 'symbol':\n      case 'undefined':\n      case 'bigint':\n        return value;\n      case 'function':\n        throw new Error(`Cannot deep-freeze a function`);\n      case 'object':\n        {\n          const _niceType = niceTypeOf(value);\n          switch (_niceType) {\n            case 'array':\n              {\n                if (value[IS_COLLECTION]) {\n                  return value;\n                }\n                const arr = value.map(deepFreeze);\n                arr[IS_FROZEN] = true;\n                return Object.freeze(arr);\n              }\n            case 'null':\n              return value;\n            case 'object':\n              Object.keys(value).forEach(key => {\n                try {\n                  value[key] = deepFreeze(value[key]);\n                } catch {\n                  // continue\n                }\n              });\n              value[IS_FROZEN] = true;\n              return Object.freeze(value);\n            case 'headers':\n              return freezeHeaders(value);\n            case 'Collection':\n            case 'Store':\n            case 'AbortSignal':\n              return value;\n            case 'date':\n            case 'map':\n            case 'set':\n            case 'error':\n            case 'stream':\n            default:\n              // eslint-disable-next-line no-console\n              // console.log(`Cannot deep-freeze ${_niceType}`);\n              return value;\n          }\n        }\n    }\n  }\n  function isMaybeContext(request) {\n    if (request && typeof request === 'object') {\n      const keys = Object.keys(request);\n      if (keys.length === 1 && keys[0] === 'request') {\n        return true;\n      }\n    }\n    return false;\n  }\n  function niceTypeOf(v) {\n    if (v === null) {\n      return 'null';\n    }\n    if (typeof v === 'string') {\n      return v ? 'non-empty-string' : 'empty-string';\n    }\n    if (!v) {\n      return typeof v;\n    }\n    if (Array.isArray(v)) {\n      return 'array';\n    }\n    if (v instanceof Date) {\n      return 'date';\n    }\n    if (v instanceof Map) {\n      return 'map';\n    }\n    if (v instanceof Set) {\n      return 'set';\n    }\n    if (v instanceof Error) {\n      return 'error';\n    }\n    if (v instanceof ReadableStream || v instanceof WritableStream || v instanceof TransformStream) {\n      return 'stream';\n    }\n    if (v instanceof Headers) {\n      return 'headers';\n    }\n    if (typeof v === 'object' && v.constructor && v.constructor.name !== 'Object') {\n      return v.constructor.name;\n    }\n    return typeof v;\n  }\n  function validateKey(key, value, errors) {\n    const schema = ValidKeys.get(key);\n    if (!schema && !IgnoredKeys.has(key)) {\n      errors.push(`InvalidKey: '${key}'`);\n      return;\n    }\n    if (schema) {\n      if (schema === BODY_TYPES) {\n        if (typeof value === 'string' || value instanceof ReadableStream) {\n          return;\n        }\n        let type = niceTypeOf(value);\n        if (schema.klass.includes(type)) {\n          return;\n        }\n        errors.push(`InvalidValue: key 'body' should be a string or one of '${schema.klass.join(\"', '\")}', received ${'<a value of type ' + niceTypeOf(value) + '>'}`);\n        return;\n      }\n      if (Array.isArray(schema)) {\n        if (!schema.includes(value)) {\n          errors.push(`InvalidValue: key ${key} should be a one of '${schema.join(\"', '\")}', received ${typeof value === 'string' ? value : '<a value of type ' + niceTypeOf(value) + '>'}`);\n        }\n        return;\n      } else if (schema === 'json') {\n        try {\n          JSON.stringify(value);\n        } catch (e) {\n          errors.push(`InvalidValue: key ${key} should be a JSON serializable value, but failed to serialize with Error - ${e.message}`);\n        }\n        return;\n      } else if (schema === 'headers') {\n        if (!(value instanceof Headers)) {\n          errors.push(`InvalidValue: key ${key} should be an instance of Headers, received ${niceTypeOf(value)}`);\n        }\n        return;\n      } else if (schema === 'record') {\n        const _type = typeof value;\n        // record must extend plain object or Object.create(null)\n        if (!value || _type !== 'object' || value.constructor && value.constructor !== Object) {\n          errors.push(`InvalidValue: key ${key} should be a dictionary of string keys to string values, received ${niceTypeOf(value)}`);\n          return;\n        }\n        const keys = Object.keys(value);\n        keys.forEach(k => {\n          let v = value[k];\n          if (typeof k !== 'string') {\n            errors.push(`\\tThe key ${String(k)} on ${key} should be a string key`);\n          } else if (typeof v !== 'string') {\n            errors.push(`\\tThe value of ${key}.${k} should be a string not ${niceTypeOf(v)}`);\n          }\n        });\n        return;\n      } else if (schema === 'string') {\n        if (typeof value !== 'string' || value.length === 0) {\n          errors.push(`InvalidValue: key ${key} should be a non-empty string, received ${typeof value === 'string' ? \"''\" : typeof value}`);\n        }\n        return;\n      } else if (schema === 'object') {\n        if (!value || Array.isArray(value) || typeof value !== 'object') {\n          errors.push(`InvalidValue: key ${key} should be an object`);\n        }\n        return;\n      } else if (schema === 'boolean') {\n        if (typeof value !== 'boolean') {\n          errors.push(`InvalidValue: key ${key} should be a boolean, received ${typeof value}`);\n        }\n        return;\n      } else if (schema === 'array') {\n        if (!Array.isArray(value)) {\n          errors.push(`InvalidValue: key ${key} should be an array, received ${typeof value}`);\n        }\n        return;\n      }\n    }\n  }\n  const IgnoredKeys = new Set([]);\n  function assertValidRequest(request, isTopLevel) {\n    {\n      // handle basic shape\n      if (!request) {\n        throw new Error(`Expected ${isTopLevel ? 'RequestManager.request' : 'next'}(<request>) to be called with a request, but none was provided.`);\n      }\n      if (Array.isArray(request) || typeof request !== 'object') {\n        throw new Error(`The \\`request\\` passed to \\`${isTopLevel ? 'RequestManager.request' : 'next'}(<request>)\\` should be an object, received \\`${niceTypeOf(request)}\\``);\n      }\n      if (Object.keys(request).length === 0) {\n        throw new Error(`The \\`request\\` passed to \\`${isTopLevel ? 'RequestManager.request' : 'next'}(<request>)\\` was empty (\\`{}\\`). Requests need at least one valid key.`);\n      }\n\n      // handle accidentally passing context entirely\n      if (request instanceof Context) {\n        throw new Error(`Expected a request passed to \\`${isTopLevel ? 'RequestManager.request' : 'next'}(<request>)\\` but received the previous handler's context instead`);\n      }\n      // handle Object.assign({}, context);\n      if (isMaybeContext(request)) {\n        throw new Error(`Expected a request passed to \\`${isTopLevel ? 'RequestManager.request' : 'next'}(<request>)\\` but received an object with a request key instead.`);\n      }\n\n      // handle schema\n      const keys = Object.keys(request);\n      const validationErrors = [];\n      const isLegacyRequest = Boolean('op' in request && !request.url);\n      keys.forEach(key => {\n        if (isLegacyRequest && key === 'data') {\n          return;\n        }\n        validateKey(key, request[key], validationErrors);\n      });\n      if (validationErrors.length) {\n        const error = new Error(`Invalid Request passed to \\`${isTopLevel ? 'RequestManager.request' : 'next'}(<request>)\\`.\\n\\nThe following issues were found:\\n\\n\\t${validationErrors.join('\\n\\t')}`);\n        error.errors = validationErrors;\n        throw error;\n      }\n    }\n  }\n  const PromiseCache = new WeakMap();\n  const RequestMap = new Map();\n  function setRequestResult(requestId, result) {\n    RequestMap.set(requestId, result);\n  }\n  function clearRequestResult(requestId) {\n    RequestMap.delete(requestId);\n  }\n  function getRequestResult(requestId) {\n    return RequestMap.get(requestId);\n  }\n  function setPromiseResult(promise, result) {\n    PromiseCache.set(promise, result);\n  }\n  function getPromiseResult(promise) {\n    return PromiseCache.get(promise);\n  }\n  const STRUCTURED = Symbol('DOC');\n  const IS_CACHE_HANDLER = _exports.I = Symbol('IS_CACHE_HANDLER');\n  function curryFuture(owner, inbound, outbound) {\n    owner.setStream(inbound.getStream());\n    inbound.then(doc => {\n      const document = {\n        [STRUCTURED]: true,\n        request: owner.request,\n        response: doc.response,\n        content: doc.content\n      };\n      outbound.resolve(document);\n    }, error => {\n      if (isDoc(error)) {\n        owner.setStream(owner.god.stream);\n      }\n      if (!error || !(error instanceof Error)) {\n        try {\n          throw new Error(error ? error : `Request Rejected with an Unknown Error`);\n        } catch (e) {\n          if (error && typeof error === 'object') {\n            Object.assign(e, error);\n            e.message = error.message || `Request Rejected with an Unknown Error`;\n          }\n          error = e;\n        }\n      }\n      error[STRUCTURED] = true;\n      error.request = owner.request;\n      error.response = owner.getResponse();\n      error.error = error.error || error.message;\n      outbound.reject(error);\n    });\n    return outbound.promise;\n  }\n  function isDoc(doc) {\n    return doc && doc[STRUCTURED] === true;\n  }\n  function enhanceReason(reason) {\n    return new DOMException(reason || 'The user aborted a request.', 'AbortError');\n  }\n  function handleOutcome(owner, inbound, outbound) {\n    inbound.then(content => {\n      if (owner.controller.signal.aborted) {\n        // the next function did not respect the signal, we handle it here\n        outbound.reject(enhanceReason(owner.controller.signal.reason));\n        return;\n      }\n      if (isDoc(content)) {\n        owner.setStream(owner.god.stream);\n        content = content.content;\n      }\n      const document = {\n        [STRUCTURED]: true,\n        request: owner.request,\n        response: owner.getResponse(),\n        content\n      };\n      outbound.resolve(document);\n    }, error => {\n      if (isDoc(error)) {\n        owner.setStream(owner.god.stream);\n      }\n      if (!error || !(error instanceof Error)) {\n        try {\n          throw new Error(error ? error : `Request Rejected with an Unknown Error`);\n        } catch (e) {\n          if (error && typeof error === 'object') {\n            Object.assign(e, error);\n            e.message = error.message || `Request Rejected with an Unknown Error`;\n          }\n          error = e;\n        }\n      }\n      error[STRUCTURED] = true;\n      error.request = owner.request;\n      error.response = owner.getResponse();\n      error.error = error.error || error.message;\n      outbound.reject(error);\n    });\n    return outbound.promise;\n  }\n  function isCacheHandler(handler, index) {\n    return index === 0 && Boolean(handler[IS_CACHE_HANDLER]);\n  }\n  function executeNextHandler(wares, request, i, god) {\n    {\n      if (i === wares.length) {\n        throw new Error(`No handler was able to handle this request.`);\n      }\n      assertValidRequest(request, false);\n    }\n    const owner = new ContextOwner(request, god, i === 0);\n    function next(r) {\n      owner.nextCalled++;\n      return executeNextHandler(wares, r, i + 1, god);\n    }\n    const context = new Context(owner);\n    let outcome;\n    try {\n      outcome = wares[i].request(context, next);\n      // eslint-disable-next-line @typescript-eslint/no-misused-promises\n      if (!!outcome && isCacheHandler(wares[i], i)) {\n        if (!(outcome instanceof Promise)) {\n          setRequestResult(owner.requestId, {\n            isError: false,\n            result: outcome\n          });\n          outcome = Promise.resolve(outcome);\n        }\n      } else {\n        // eslint-disable-next-line @typescript-eslint/no-misused-promises\n        if (!outcome || !(outcome instanceof Promise) && !(typeof outcome === 'object' && 'then' in outcome)) {\n          // eslint-disable-next-line no-console\n          console.log({\n            request,\n            handler: wares[i],\n            outcome\n          });\n          if (outcome === undefined) {\n            throw new Error(`Expected handler.request to return a promise, instead received undefined.`);\n          }\n          throw new Error(`Expected handler.request to return a promise, instead received a synchronous value.`);\n        }\n      }\n    } catch (e) {\n      if (isCacheHandler(wares[i], i)) {\n        setRequestResult(owner.requestId, {\n          isError: true,\n          result: e\n        });\n      }\n      outcome = Promise.reject(e);\n    }\n    const future = createFuture(owner);\n    if (isFuture(outcome)) {\n      return curryFuture(owner, outcome, future);\n    }\n    return handleOutcome(owner, outcome, future);\n  }\n  const IS_FUTURE = Symbol('IS_FUTURE');\n  function isFuture(maybe) {\n    return Boolean(maybe && maybe instanceof Promise && maybe[IS_FUTURE] === true);\n  }\n  function createDeferred() {\n    let resolve;\n    let reject;\n    const promise = new Promise((res, rej) => {\n      resolve = res;\n      reject = rej;\n    });\n    return {\n      resolve,\n      reject,\n      promise\n    };\n  }\n  function upgradePromise(promise, future) {\n    promise[IS_FUTURE] = true;\n    // eslint-disable-next-line @typescript-eslint/unbound-method\n    promise.getStream = future.getStream;\n    // eslint-disable-next-line @typescript-eslint/unbound-method\n    promise.abort = future.abort;\n    // eslint-disable-next-line @typescript-eslint/unbound-method\n    promise.onFinalize = future.onFinalize;\n    return promise;\n  }\n  function createFuture(owner) {\n    const deferred = createDeferred();\n    let {\n      promise\n    } = deferred;\n    let cbs;\n    promise = promise.finally(() => {\n      owner.resolveStream();\n      if (cbs) {\n        cbs.forEach(cb => cb());\n      }\n    });\n    promise.onFinalize = fn => {\n      cbs = cbs || [];\n      cbs.push(fn);\n    };\n    promise[IS_FUTURE] = true;\n    promise.getStream = () => {\n      return owner.getStream();\n    };\n    promise.abort = reason => {\n      owner.abort(enhanceReason(reason));\n    };\n    deferred.promise = promise;\n    return deferred;\n  }\n\n  /* eslint-disable no-irregular-whitespace */\n  /**\n   * @module @ember-data/request\n   */\n\n  /**\n   * A Future is a Promise which resolves to a StructuredDocument\n   * while providing the ability to `abort` the underlying request,\n   * `getStream` the response before the outer promise resolves;\n   *\n   * @class Future\n   * @extends Promise\n   * @public\n   */\n\n  const SkipCache = _exports.S = Symbol.for('ember-data:skip-cache');\n\n  /**\n   * Requests are fulfilled by handlers. A handler receives the request context\n  as well as a `next` function with which to pass along a request to the next\n  handler if it so chooses.\n  \n  A handler may be any object with a `request` method. This allows both stateful and non-stateful\n  handlers to be utilized.\n  \n  If a handler calls `next`, it receives a `Future` which resolves to a `StructuredDocument`\n  that it can then compose how it sees fit with its own response.\n  \n  ```ts\n  type NextFn<P> = (req: RequestInfo) => Future<P>;\n  \n  interface Handler {\n    async request<T>(context: RequestContext, next: NextFn<P>): T;\n  }\n  ```\n  \n  `RequestContext` contains a readonly version of the RequestInfo as well as a few methods for building up the `StructuredDocument` and `Future` that will be part of the response.\n  \n  ```ts\n  interface RequestContext<T> {\n    readonly request: RequestInfo;\n  \n    setStream(stream: ReadableStream | Promise<ReadableStream>): void;\n    setResponse(response: Response | ResponseInfo): void;\n  }\n  ```\n  \n  A basic `fetch` handler with support for streaming content updates while\n  the download is still underway might look like the following, where we use\n  [`response.clone()`](https://developer.mozilla.org/en-US/docs/Web/API/Response/clone) to `tee` the `ReadableStream` into two streams.\n  \n  A more efficient handler might read from the response stream, building up the\n  response content before passing along the chunk downstream.\n  \n  ```ts\n  const FetchHandler = {\n    async request(context) {\n      const response = await fetch(context.request);\n      context.setResponse(reponse);\n      context.setStream(response.clone().body);\n  \n      return response.json();\n    }\n  }\n  ```\n  \n  ### Stream Currying\n  \n  `RequestManager.request` and `next` differ from `fetch` in one **crucial detail** in that the outer Promise resolves only once the response stream has been processed.\n  \n  For context, it helps to understand a few of the use-cases that RequestManager\n  is intended to allow.\n  \n   - to manage and return streaming content (such as video files)\n   - to fulfill a request from multiple sources or by splitting one request into multiple requests\n     - for instance one API call for a user and another for the user's friends\n     - or e.g. fulfilling part of the request from one source (one API, in-memory, localStorage, IndexedDB etc.) and the rest from another source (a different API, a WebWorker, etc.)\n   - to coalesce multiple requests\n   - to decorate a request with additional info\n     - e.g. an Auth handler that ensures the correct tokens or headers or cookies are attached.\n  \n  ----\n  \n  `await fetch(<req>)` resolves at the moment headers are received. This allows for the body of the request to be processed as a stream by application\n  code *while chunks are still being received by the browser*.\n  \n  When an app chooses to `await response.json()` what occurs is the browser reads the stream to completion and then returns the result. Additionally, this stream may only be read **once**.\n  \n  The `RequestManager` preserves this ability to subscribe to and utilize the stream by either the application or the handler – thereby delivering the full power and flexibility of native APIs – without restricting developers in ways that lead to complicated workarounds.\n  \n  Each handler may call `setStream` only once, but may do so *at any time* until the promise that the handler returns has resolved. The associated promise returned by calling `future.getStream` will resolve with the stream set by `setStream` if that method is called, or `null` if that method\n  has not been called by the time that the handler's request method has resolved.\n  \n  Handlers that do not create a stream of their own, but which call `next`, should defensively pipe the stream forward. While this is not required (see automatic currying below) it is better to do so in most cases as otherwise the stream may not become available to downstream handlers or the application until the upstream handler has fully read it.\n  \n  ```ts\n  context.setStream(future.getStream());\n  ```\n  \n  Handlers that either call `next` multiple times or otherwise have reason to create multiple  fetch requests should either choose to return no stream, meaningfully combine the streams, or select a single prioritized stream.\n  \n  Of course, any handler may choose to read and handle the stream, and return either no stream or a different stream in the process.\n  \n  ### Automatic Currying of Stream and Response\n  \n  In order to simplify the common case for handlers which decorate a request, if `next` is called only a single time and `setResponse` was never called by the handler, the response set by the next handler in the chain will be applied to that handler's outcome. For instance, this makes the following pattern possible `return (await next(<req>)).content;`.\n  \n  Similarly, if `next` is called only a single time and neither `setStream` nor `getStream` was called, we automatically curry the stream from the future returned by `next` onto the future returned by the handler.\n  \n  Finally, if the return value of a handler is a `Future`, we curry `content` and `errors` as well, thus enabling the simplest form `return next(<req>)`.\n  \n  In the case of the `Future` being returned, `Stream` proxying is automatic and immediate and does not wait for the `Future` to resolve.\n  \n  ### Handler Order\n  \n  Request handlers are registered by configuring the manager via `use`\n  \n  ```ts\n  const manager = new RequestManager();\n  \n  manager.use([Handler1, Handler2]);\n  ```\n  \n  Handlers will be invoked in the order they are registered (\"fifo\", first-in first-out), and may only be registered up until the first request is made. It is recommended but not required to register all handlers at one time in order to ensure explicitly visible handler ordering.\n  \n  \n   @class <Interface> Handler\n   @public\n  */\n\n  /**\n   * The CacheHandler is identical to other handlers ecxept that it\n   * is allowed to return a value synchronously. This is useful for\n   * features like reducing microtask queueing when de-duping.\n   *\n   * A RequestManager may only have one CacheHandler, registered via\n   * `manager.useCache(CacheHandler)`.\n   *\n   * @class <Interface> CacheHandler\n   * @public\n   */\n\n  function upgradeHeaders(headers) {\n    headers.clone = () => {\n      return new Headers(headers);\n    };\n    headers.toJSON = () => {\n      return Array.from(headers);\n    };\n    return headers;\n  }\n  function cloneResponseProperties(response) {\n    const {\n      headers,\n      ok,\n      redirected,\n      status,\n      statusText,\n      type,\n      url\n    } = response;\n    upgradeHeaders(headers);\n    return {\n      headers: headers,\n      ok,\n      redirected,\n      status,\n      statusText,\n      type,\n      url\n    };\n  }\n  class ContextOwner {\n    constructor(request, god) {\n      let isRoot = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n      this.hasSetStream = false;\n      this.hasSetResponse = false;\n      this.hasSubscribers = false;\n      this.stream = createDeferred();\n      this.response = null;\n      this.nextCalled = 0;\n      this.isRoot = isRoot;\n      this.requestId = god.id;\n      this.controller = request.controller || god.controller;\n      this.stream.promise.sizeHint = 0;\n      if (request.controller) {\n        if (request.controller !== god.controller) {\n          god.controller.signal.addEventListener('abort', () => {\n            this.controller.abort(god.controller.signal.reason);\n          });\n        }\n        delete request.controller;\n      }\n      let enhancedRequest = Object.assign({\n        signal: this.controller.signal\n      }, request);\n      {\n        var _request;\n        if (!((_request = request) !== null && _request !== void 0 && (_request = _request.cacheOptions) !== null && _request !== void 0 && _request[SkipCache])) {\n          request = deepFreeze(request);\n          enhancedRequest = deepFreeze(enhancedRequest);\n        }\n      }\n      this.enhancedRequest = enhancedRequest;\n      this.request = request;\n      this.god = god;\n      this.stream.promise = this.stream.promise.then(stream => {\n        if (this.god.stream === stream && this.hasSubscribers) {\n          this.god.stream = null;\n        }\n        return stream;\n      });\n    }\n    get hasRequestedStream() {\n      return this.god.hasRequestedStream;\n    }\n    getResponse() {\n      if (this.hasSetResponse) {\n        return this.response;\n      }\n      if (this.nextCalled === 1) {\n        return this.god.response;\n      }\n      return null;\n    }\n    getStream() {\n      if (this.isRoot) {\n        this.god.hasRequestedStream = true;\n      }\n      if (!this.hasSetResponse) {\n        var _this$god$response;\n        const hint = (_this$god$response = this.god.response) === null || _this$god$response === void 0 || (_this$god$response = _this$god$response.headers) === null || _this$god$response === void 0 ? void 0 : _this$god$response.get('content-length');\n        this.stream.promise.sizeHint = hint ? parseInt(hint, 10) : 0;\n      }\n      this.hasSubscribers = true;\n      return this.stream.promise;\n    }\n    abort(reason) {\n      this.controller.abort(reason);\n    }\n    setStream(stream) {\n      if (!this.hasSetStream) {\n        this.hasSetStream = true;\n        if (!(stream instanceof Promise)) {\n          this.god.stream = stream;\n        }\n        // @ts-expect-error\n        this.stream.resolve(stream);\n      }\n    }\n    resolveStream() {\n      this.setStream(this.nextCalled === 1 ? this.god.stream : null);\n    }\n    setResponse(response) {\n      if (this.hasSetResponse) {\n        {\n          throw new Error(`Cannot setResponse when a response has already been set`);\n        }\n        return;\n      }\n      this.hasSetResponse = true;\n      if (response instanceof Response) {\n        var _response$headers;\n        // TODO potentially avoid cloning in prod\n        let responseData = cloneResponseProperties(response);\n        {\n          responseData = deepFreeze(responseData);\n        }\n        this.response = responseData;\n        this.god.response = responseData;\n        const sizeHint = (_response$headers = response.headers) === null || _response$headers === void 0 ? void 0 : _response$headers.get('content-length');\n        this.stream.promise.sizeHint = sizeHint ? parseInt(sizeHint, 10) : 0;\n      } else {\n        this.response = response;\n        this.god.response = response;\n      }\n    }\n  }\n  var _owner = /*#__PURE__*/_classPrivateFieldKey(\"owner\");\n  class Context {\n    constructor(owner) {\n      Object.defineProperty(this, _owner, {\n        writable: true,\n        value: void 0\n      });\n      this.id = owner.requestId;\n      _classPrivateFieldBase(this, _owner)[_owner] = owner;\n      this.request = owner.enhancedRequest;\n    }\n    setStream(stream) {\n      _classPrivateFieldBase(this, _owner)[_owner].setStream(stream);\n    }\n    setResponse(response) {\n      _classPrivateFieldBase(this, _owner)[_owner].setResponse(response);\n    }\n    get hasRequestedStream() {\n      return _classPrivateFieldBase(this, _owner)[_owner].hasRequestedStream;\n    }\n  }\n});","define(\"@ember-data/request/fetch\", [\"exports\", \"@ember-data/request/context-e36ee987\"], function (_exports, _contextE36ee) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // Lazily close over fetch to avoid breaking Mirage\n  const _fetch = typeof fetch !== 'undefined' ? function () {\n    return fetch(...arguments);\n  } : typeof FastBoot !== 'undefined' ? function () {\n    return FastBoot.require('node-fetch')(...arguments);\n  } : () => {\n    throw new Error('No Fetch Implementation Found');\n  };\n\n  // clones a response in a way that should still\n  // allow it to stream\n  function cloneResponse(response, overrides) {\n    const props = (0, _contextE36ee.c)(response);\n    return new Response(response.body, Object.assign(props, overrides));\n  }\n  let IS_MAYBE_MIRAGE = () => false;\n  {\n    IS_MAYBE_MIRAGE = () => {\n      var _window$server;\n      return Boolean(typeof window !== 'undefined' && (((_window$server = window.server) === null || _window$server === void 0 ? void 0 : _window$server.pretender) || window.fetch.toString() !== 'function fetch() { [native code] }' && window.fetch.toString() !== 'function fetch() {\\n    [native code]\\n}'));\n    };\n  }\n  const MUTATION_OPS = new Set(['updateRecord', 'createRecord', 'deleteRecord']);\n  const ERROR_STATUS_CODE_FOR = new Map([[400, 'Bad Request'], [401, 'Unauthorized'], [402, 'Payment Required'], [403, 'Forbidden'], [404, 'Not Found'], [405, 'Method Not Allowed'], [406, 'Not Acceptable'], [407, 'Proxy Authentication Required'], [408, 'Request Timeout'], [409, 'Conflict'], [410, 'Gone'], [411, 'Length Required'], [412, 'Precondition Failed'], [413, 'Payload Too Large'], [414, 'URI Too Long'], [415, 'Unsupported Media Type'], [416, 'Range Not Satisfiable'], [417, 'Expectation Failed'], [419, 'Page Expired'], [420, 'Enhance Your Calm'], [421, 'Misdirected Request'], [422, 'Unprocessable Entity'], [423, 'Locked'], [424, 'Failed Dependency'], [425, 'Too Early'], [426, 'Upgrade Required'], [428, 'Precondition Required'], [429, 'Too Many Requests'], [430, 'Request Header Fields Too Large'], [431, 'Request Header Fields Too Large'], [450, 'Blocked By Windows Parental Controls'], [451, 'Unavailable For Legal Reasons'], [500, 'Internal Server Error'], [501, 'Not Implemented'], [502, 'Bad Gateway'], [503, 'Service Unavailable'], [504, 'Gateway Timeout'], [505, 'HTTP Version Not Supported'], [506, 'Variant Also Negotiates'], [507, 'Insufficient Storage'], [508, 'Loop Detected'], [509, 'Bandwidth Limit Exceeded'], [510, 'Not Extended'], [511, 'Network Authentication Required']]);\n\n  /**\n   * A basic handler which converts a request into a\n   * `fetch` call presuming the response to be `json`.\n   *\n   * ```ts\n   * import Fetch from '@ember-data/request/fetch';\n   *\n   * manager.use([Fetch]);\n   * ```\n   *\n   * @class Fetch\n   * @public\n   */\n  const Fetch = _exports.default = {\n    async request(context) {\n      let response;\n      try {\n        response = await _fetch(context.request.url, context.request);\n      } catch (e) {\n        if (e instanceof DOMException && e.name === 'AbortError') {\n          e.statusText = 'Aborted';\n          e.status = 20;\n          e.isRequestError = true;\n        } else {\n          e.statusText = 'Unknown Network Error';\n          e.status = 0;\n          e.isRequestError = true;\n        }\n        throw e;\n      }\n      const isError = !response.ok || response.status >= 400;\n      const op = context.request.op;\n      const isMutationOp = Boolean(op && MUTATION_OPS.has(op));\n      if (!isError && !isMutationOp && response.status !== 204 && !response.headers.has('date')) {\n        if (IS_MAYBE_MIRAGE()) {\n          response.headers.set('date', new Date().toUTCString());\n        } else {\n          const headers = new Headers(response.headers);\n          headers.set('date', new Date().toUTCString());\n          response = cloneResponse(response, {\n            headers\n          });\n        }\n      }\n      context.setResponse(response);\n      if (response.status === 204) {\n        return null;\n      }\n      let text = '';\n      // if we are in a mirage context, we cannot support streaming\n      if (IS_MAYBE_MIRAGE()) {\n        text = await response.text();\n      } else {\n        var _stream;\n        const reader = response.body.getReader();\n        const decoder = new TextDecoder();\n        let isStreaming = context.hasRequestedStream;\n        let stream = isStreaming ? new TransformStream() : null;\n        let writer = (_stream = stream) === null || _stream === void 0 ? void 0 : _stream.writable.getWriter();\n        if (isStreaming) {\n          var _context$request$sign;\n          // Listen for the abort event on the AbortSignal\n          (_context$request$sign = context.request.signal) === null || _context$request$sign === void 0 || _context$request$sign.addEventListener('abort', () => {\n            if (!isStreaming) {\n              return;\n            }\n            void stream.writable.abort('Request Aborted');\n            void stream.readable.cancel('Request Aborted');\n          });\n          context.setStream(stream.readable);\n        }\n\n        // eslint-disable-next-line no-constant-condition\n        while (true) {\n          // we manually read the stream instead of using `response.json()`\n          // or `response.text()` because if we need to stream the body\n          // we need to be able to pass the stream along efficiently.\n          const {\n            done,\n            value\n          } = await reader.read();\n          if (done) {\n            if (isStreaming) {\n              isStreaming = false;\n              await writer.ready;\n              await writer.close();\n            }\n            break;\n          }\n          text += decoder.decode(value, {\n            stream: true\n          });\n\n          // if we are streaming, we want to pass the stream along\n          if (isStreaming) {\n            await writer.ready;\n            await writer.write(value);\n          } else if (context.hasRequestedStream) {\n            var _context$request$sign2;\n            const encode = new TextEncoder();\n            isStreaming = true;\n            stream = new TransformStream();\n            // Listen for the abort event on the AbortSignal\n            // eslint-disable-next-line @typescript-eslint/no-loop-func\n            (_context$request$sign2 = context.request.signal) === null || _context$request$sign2 === void 0 || _context$request$sign2.addEventListener('abort', () => {\n              if (!isStreaming) {\n                return;\n              }\n              void stream.writable.abort('Request Aborted');\n              void stream.readable.cancel('Request Aborted');\n            });\n            context.setStream(stream.readable);\n            writer = stream.writable.getWriter();\n            await writer.ready;\n            await writer.write(encode.encode(text));\n            await writer.ready;\n            await writer.write(value);\n          }\n        }\n        if (isStreaming) {\n          isStreaming = false;\n          await writer.ready;\n          await writer.close();\n        }\n      }\n      // if we are an error, we will want to throw\n      if (isError) {\n        var _context$request$meth;\n        let errorPayload;\n        try {\n          errorPayload = JSON.parse(text);\n        } catch {\n          // void;\n        }\n        // attempt errors discovery\n        const errors = Array.isArray(errorPayload) ? errorPayload : isDict(errorPayload) && Array.isArray(errorPayload.errors) ? errorPayload.errors : null;\n        const statusText = response.statusText || ERROR_STATUS_CODE_FOR.get(response.status) || 'Unknown Request Error';\n        const msg = `[${response.status} ${statusText}] ${(_context$request$meth = context.request.method) !== null && _context$request$meth !== void 0 ? _context$request$meth : 'GET'} (${response.type}) - ${response.url}`;\n        const error = errors ? new AggregateError(errors, msg) : new Error(msg);\n        error.status = response.status;\n        error.statusText = statusText;\n        error.isRequestError = true;\n        error.code = error.status;\n        error.name = error.statusText.replaceAll(' ', '') + 'Error';\n        error.content = errorPayload;\n        throw error;\n      } else {\n        return JSON.parse(text);\n      }\n    }\n  };\n  function isDict(v) {\n    return v !== null && typeof v === 'object';\n  }\n});","define(\"@ember-data/request/index\", [\"exports\", \"@ember-data/request/context-e36ee987\", \"@embroider/macros/es-compat2\"], function (_exports, _contextE36ee, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"SkipCache\", {\n    enumerable: true,\n    get: function () {\n      return _contextE36ee.S;\n    }\n  });\n  Object.defineProperty(_exports, \"createDeferred\", {\n    enumerable: true,\n    get: function () {\n      return _contextE36ee.f;\n    }\n  });\n  _exports.default = void 0;\n  Object.defineProperty(_exports, \"getPromiseResult\", {\n    enumerable: true,\n    get: function () {\n      return _contextE36ee.h;\n    }\n  });\n  Object.defineProperty(_exports, \"setPromiseResult\", {\n    enumerable: true,\n    get: function () {\n      return _contextE36ee.s;\n    }\n  });\n  let REQ_ID = 0;\n  /**\n   * ```js\n   * import RequestManager from '@ember-data/request';\n   * ```\n   *\n   * A RequestManager provides a request/response flow in which configured\n   * handlers are successively given the opportunity to handle, modify, or\n   * pass-along a request.\n   *\n   * ```ts\n   * interface RequestManager {\n   *   request<T>(req: RequestInfo): Future<T>;\n   * }\n   * ```\n   *\n   * For example:\n   *\n   * ```ts\n   * import RequestManager from '@ember-data/request';\n   * import Fetch from '@ember-data/request/fetch';\n   * import Auth from 'ember-simple-auth/ember-data-handler';\n   * import Config from './config';\n   *\n   * const { apiUrl } = Config;\n   *\n   * // ... create manager\n   * const manager = new RequestManager();\n   * manager.use([Auth, Fetch]);\n   *\n   * // ... execute a request\n   * const response = await manager.request({\n   *   url: `${apiUrl}/users`\n   * });\n   * ```\n   *\n   * ### Futures\n   *\n   * The return value of `manager.request` is a `Future`, which allows\n   * access to limited information about the request while it is still\n   * pending and fulfills with the final state when the request completes.\n   *\n   * A `Future` is cancellable via `abort`.\n   *\n   * Handlers may optionally expose a `ReadableStream` to the `Future` for\n   * streaming data; however, when doing so the future should not resolve\n   * until the response stream is fully read.\n   *\n   * ```ts\n   * interface Future<T> extends Promise<StructuredDocument<T>> {\n   *   abort(): void;\n   *\n   *   async getStream(): ReadableStream | null;\n   * }\n   * ```\n   *\n   * ### StructuredDocuments\n   *\n   * A Future resolves with a `StructuredDataDocument` or rejects with a `StructuredErrorDocument`.\n   *\n   * ```ts\n   * interface StructuredDataDocument<T> {\n   *   request: ImmutableRequestInfo;\n   *   response: ImmutableResponseInfo;\n   *   content: T;\n   * }\n   * interface StructuredErrorDocument extends Error {\n   *   request: ImmutableRequestInfo;\n   *   response: ImmutableResponseInfo;\n   *   error: string | object;\n   * }\n   * type StructuredDocument<T> = StructuredDataDocument<T> | StructuredErrorDocument;\n   * ```\n   *\n   * @class RequestManager\n   * @public\n   */\n  var _handlers = /*#__PURE__*/(0, _contextE36ee.d)(\"handlers\");\n  class RequestManager {\n    constructor(options) {\n      Object.defineProperty(this, _handlers, {\n        writable: true,\n        value: []\n      });\n      Object.assign(this, options);\n      this._pending = new Map();\n    }\n\n    /**\n     * Register a handler to use for primary cache intercept.\n     *\n     * Only one such handler may exist. If using the same\n     * RequestManager as the Store instance the Store\n     * registers itself as a Cache handler.\n     *\n     * @method useCache\n     * @public\n     * @param {Handler[]} cacheHandler\n     * @return {void}\n     */\n    useCache(cacheHandler) {\n      {\n        if (this._hasCacheHandler) {\n          throw new Error(`\\`RequestManager.useCache(<handler>)\\` May only be invoked once.`);\n        }\n        if (Object.isFrozen((0, _contextE36ee._)(this, _handlers)[_handlers])) {\n          throw new Error(`\\`RequestManager.useCache(<handler>)\\` May only be invoked prior to any request having been made.`);\n        }\n        this._hasCacheHandler = true;\n      }\n      cacheHandler[_contextE36ee.I] = true;\n      (0, _contextE36ee._)(this, _handlers)[_handlers].unshift(cacheHandler);\n    }\n\n    /**\n     * Register handler(s) to use when a request is issued.\n     *\n     * Handlers will be invoked in the order they are registered.\n     * Each Handler is given the opportunity to handle the request,\n     * curry the request, or pass along a modified request.\n     *\n     * @method use\n     * @public\n     * @param {Handler[]} newHandlers\n     * @return {void}\n     */\n    use(newHandlers) {\n      const handlers = (0, _contextE36ee._)(this, _handlers)[_handlers];\n      {\n        if (Object.isFrozen(handlers)) {\n          throw new Error(`Cannot add a Handler to a RequestManager after a request has been made`);\n        }\n        if (!Array.isArray(newHandlers)) {\n          throw new Error(`\\`RequestManager.use(<Handler[]>)\\` expects an array of handlers, but was called with \\`${typeof newHandlers}\\``);\n        }\n        newHandlers.forEach((handler, index) => {\n          if (!handler || typeof handler !== 'object' || typeof handler.request !== 'function') {\n            throw new Error(`\\`RequestManager.use(<Handler[]>)\\` expected to receive an array of handler objects with request methods, by the handler at index ${index} does not conform.`);\n          }\n        });\n      }\n      handlers.push(...newHandlers);\n    }\n\n    /**\n     * Issue a Request.\n     *\n     * Returns a Future that fulfills with a StructuredDocument\n     *\n     * @method request\n     * @public\n     * @param {RequestInfo} request\n     * @return {Future}\n     */\n    request(request) {\n      const handlers = (0, _contextE36ee._)(this, _handlers)[_handlers];\n      {\n        if (!Object.isFrozen(handlers)) {\n          Object.freeze(handlers);\n        }\n        (0, _contextE36ee.a)(request, true);\n      }\n      const controller = request.controller || new AbortController();\n      if (request.controller) {\n        delete request.controller;\n      }\n      const requestId = REQ_ID++;\n      const promise = (0, _contextE36ee.e)(handlers, request, 0, {\n        controller,\n        response: null,\n        stream: null,\n        hasRequestedStream: false,\n        id: requestId\n      });\n\n      // the cache handler will set the result of the request synchronously\n      // if it is able to fulfill the request from the cache\n      const cacheResult = (0, _contextE36ee.g)(requestId);\n      {\n        if (!request.disableTestWaiter) {\n          const {\n            waitForPromise\n          } = (0, _esCompat.default)(require(\"@ember/test-waiters\"));\n          const newPromise = waitForPromise(promise);\n          const finalPromise = (0, _contextE36ee.u)(newPromise.then(result => {\n            (0, _contextE36ee.s)(finalPromise, {\n              isError: false,\n              result\n            });\n            (0, _contextE36ee.b)(requestId);\n            return result;\n          }, error => {\n            (0, _contextE36ee.s)(finalPromise, {\n              isError: true,\n              result: error\n            });\n            (0, _contextE36ee.b)(requestId);\n            throw error;\n          }), promise);\n          if (cacheResult) {\n            (0, _contextE36ee.s)(finalPromise, cacheResult);\n          }\n          return finalPromise;\n        }\n      }\n\n      // const promise1 = store.request(myRequest);\n      // const promise2 = store.request(myRequest);\n      // promise1 === promise2; // false\n      // either we need to make promise1 === promise2, or we need to make sure that\n      // we need to have a way to key from request to result\n      // such that we can lookup the result here and return it if it exists\n      const finalPromise = (0, _contextE36ee.u)(promise.then(result => {\n        (0, _contextE36ee.s)(finalPromise, {\n          isError: false,\n          result\n        });\n        (0, _contextE36ee.b)(requestId);\n        return result;\n      }, error => {\n        (0, _contextE36ee.s)(finalPromise, {\n          isError: true,\n          result: error\n        });\n        (0, _contextE36ee.b)(requestId);\n        throw error;\n      }), promise);\n      if (cacheResult) {\n        (0, _contextE36ee.s)(finalPromise, cacheResult);\n      }\n      return finalPromise;\n    }\n    static create(options) {\n      return new this(options);\n    }\n  }\n  _exports.default = RequestManager;\n});","define(\"@ember-data/serializer/-private\", [\"exports\", \"@ember-data/serializer/embedded-records-mixin-d75385ff\", \"@ember/object\"], function (_exports, _embeddedRecordsMixinD75385ff, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DateTransform = _exports.BooleanTransform = void 0;\n  Object.defineProperty(_exports, \"EmbeddedRecordsMixin\", {\n    enumerable: true,\n    get: function () {\n      return _embeddedRecordsMixinD75385ff.e;\n    }\n  });\n  _exports.StringTransform = _exports.NumberTransform = void 0;\n  Object.defineProperty(_exports, \"Transform\", {\n    enumerable: true,\n    get: function () {\n      return _object.default;\n    }\n  });\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    The `BooleanTransform` class is used to serialize and deserialize\n    boolean attributes on Ember Data record objects. This transform is\n    used when `boolean` is passed as the type parameter to the\n    [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function.\n  \n    Usage\n  \n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @attr('boolean') isAdmin;\n      @attr('string') name;\n      @attr('string') email;\n    }\n    ```\n  \n    By default, the boolean transform only allows for values of `true` or\n    `false`. You can opt into allowing `null` values for\n    boolean attributes via `attr('boolean', { allowNull: true })`\n  \n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @attr('string') email;\n      @attr('string') username;\n      @attr('boolean', { allowNull: true }) wantsWeeklyEmail;\n    }\n    ```\n  \n    @class BooleanTransform\n    @public\n   */\n  class BooleanTransform {\n    deserialize(serialized, options) {\n      if ((serialized === null || serialized === undefined) && options.allowNull === true) {\n        return null;\n      }\n      let type = typeof serialized;\n      if (type === 'boolean') {\n        return serialized;\n      } else if (type === 'string') {\n        return /^(true|t|1)$/i.test(serialized);\n      } else if (type === 'number') {\n        return serialized === 1;\n      } else {\n        return false;\n      }\n    }\n    serialize(deserialized, options) {\n      if ((deserialized === null || deserialized === undefined) && options.allowNull === true) {\n        return null;\n      }\n      return Boolean(deserialized);\n    }\n    static create() {\n      return new this();\n    }\n  }\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n   The `DateTransform` class is used to serialize and deserialize\n   date attributes on Ember Data record objects. This transform is used\n   when `date` is passed as the type parameter to the\n   [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function. It uses the [`ISO 8601`](https://en.wikipedia.org/wiki/ISO_8601)\n   standard.\n  \n   ```app/models/score.js\n   import Model, { attr, belongsTo } from '@ember-data/model';\n  \n   export default class ScoreModel extends Model {\n      @attr('number') value;\n      @belongsTo('player') player;\n      @attr('date') date;\n    }\n   ```\n  \n   @class DateTransform\n    @public\n   */\n  _exports.BooleanTransform = BooleanTransform;\n  class DateTransform {\n    deserialize(serialized) {\n      let type = typeof serialized;\n      if (type === 'string') {\n        let offset = serialized.indexOf('+');\n        if (offset !== -1 && serialized.length - 5 === offset) {\n          offset += 3;\n          return new Date(serialized.slice(0, offset) + ':' + serialized.slice(offset));\n        }\n        return new Date(serialized);\n      } else if (type === 'number') {\n        return new Date(serialized);\n      } else if (serialized === null || serialized === undefined) {\n        // if the value is null return null\n        // if the value is not present in the data return undefined\n        return serialized;\n      } else {\n        return null;\n      }\n    }\n    serialize(date) {\n      if (date instanceof Date && !isNaN(date)) {\n        return date.toISOString();\n      } else {\n        return null;\n      }\n    }\n    static create() {\n      return new this();\n    }\n  }\n\n  /**\n    @module @ember-data/serializer\n  */\n  _exports.DateTransform = DateTransform;\n  function isNumber(value) {\n    return value === value && value !== Infinity && value !== -Infinity;\n  }\n\n  /**\n    The `NumberTransform` class is used to serialize and deserialize\n    numeric attributes on Ember Data record objects. This transform is\n    used when `number` is passed as the type parameter to the\n    [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function.\n  \n    Usage\n  \n    ```app/models/score.js\n    import Model, { attr, belongsTo } from '@ember-data/model';\n  \n    export default class ScoreModel extends Model {\n      @attr('number') value;\n      @belongsTo('player') player;\n      @attr('date') date;\n    }\n    ```\n  \n    @class NumberTransform\n    @public\n   */\n  class NumberTransform {\n    deserialize(serialized) {\n      let transformed;\n      if (serialized === '' || serialized === null || serialized === undefined) {\n        return null;\n      } else {\n        transformed = Number(serialized);\n        return isNumber(transformed) ? transformed : null;\n      }\n    }\n    serialize(deserialized) {\n      let transformed;\n      if (deserialized === '' || deserialized === null || deserialized === undefined) {\n        return null;\n      } else {\n        transformed = Number(deserialized);\n        return isNumber(transformed) ? transformed : null;\n      }\n    }\n    static create() {\n      return new this();\n    }\n  }\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    The `StringTransform` class is used to serialize and deserialize\n    string attributes on Ember Data record objects. This transform is\n    used when `string` is passed as the type parameter to the\n    [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function.\n  \n    Usage\n  \n    ```app/models/user.js\n    import Model, { attr, belongsTo } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @attr('boolean') isAdmin;\n      @attr('string') name;\n      @attr('string') email;\n    }\n    ```\n  \n    @class StringTransform\n    @public\n   */\n  _exports.NumberTransform = NumberTransform;\n  class StringTransform {\n    deserialize(serialized) {\n      return !serialized && serialized !== '' ? null : String(serialized);\n    }\n    serialize(deserialized) {\n      return !deserialized && deserialized !== '' ? null : String(deserialized);\n    }\n    static create() {\n      return new this();\n    }\n  }\n  _exports.StringTransform = StringTransform;\n});","define(\"@ember-data/serializer/embedded-records-mixin-d75385ff\", [\"exports\", \"@ember/array\", \"@ember/debug\", \"@ember/object/mixin\", \"@ember/string\"], function (_exports, _array, _debug, _mixin, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.e = void 0;\n  /**\n    @module @ember-data/serializer/rest\n  */\n\n  /**\n    ## Using Embedded Records\n  \n    `EmbeddedRecordsMixin` supports serializing embedded records.\n  \n    To set up embedded records, include the mixin when extending a serializer,\n    then define and configure embedded (model) relationships.\n  \n    Note that embedded records will serialize with the serializer for their model instead of the serializer in which they are defined.\n  \n    Note also that this mixin does not work with JSONAPISerializer because the JSON:API specification does not describe how to format embedded resources.\n  \n    Below is an example of a per-type serializer (`post` type).\n  \n    ```app/serializers/post.js\n    import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n  \n    export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n      attrs = {\n        author: { embedded: 'always' },\n        comments: { serialize: 'ids' }\n      }\n    }\n    ```\n    Note that this use of `{ embedded: 'always' }` is unrelated to\n    the `{ embedded: 'always' }` that is defined as an option on `attr` as part of\n    defining a model while working with the `ActiveModelSerializer`.  Nevertheless,\n    using `{ embedded: 'always' }` as an option to `attr` is not a valid way to set up\n    embedded records.\n  \n    The `attrs` option for a resource `{ embedded: 'always' }` is shorthand for:\n  \n    ```js\n    {\n      serialize: 'records',\n      deserialize: 'records'\n    }\n    ```\n  \n    ### Configuring Attrs\n  \n    A resource's `attrs` option may be set to use `ids`, `records` or false for the\n    `serialize`  and `deserialize` settings.\n  \n    The `attrs` property can be set on the `ApplicationSerializer` or a per-type\n    serializer.\n  \n    In the case where embedded JSON is expected while extracting a payload (reading)\n    the setting is `deserialize: 'records'`, there is no need to use `ids` when\n    extracting as that is the default behaviour without this mixin if you are using\n    the vanilla `EmbeddedRecordsMixin`. Likewise, to embed JSON in the payload while\n    serializing `serialize: 'records'` is the setting to use. There is an option of\n    not embedding JSON in the serialized payload by using `serialize: 'ids'`. If you\n    do not want the relationship sent at all, you can use `serialize: false`.\n  \n  \n    ### EmbeddedRecordsMixin defaults\n    If you do not overwrite `attrs` for a specific relationship, the `EmbeddedRecordsMixin`\n    will behave in the following way:\n  \n    BelongsTo: `{ serialize: 'id', deserialize: 'id' }`\n    HasMany:   `{ serialize: false, deserialize: 'ids' }`\n  \n    ### Model Relationships\n  \n    Embedded records must have a model defined to be extracted and serialized. Note that\n    when defining any relationships on your model such as `belongsTo` and `hasMany`, you\n    should not both specify `async: true` and also indicate through the serializer's\n    `attrs` attribute that the related model should be embedded for deserialization.\n    If a model is declared embedded for deserialization (`embedded: 'always'` or `deserialize: 'records'`),\n    then do not use `async: true`.\n  \n    To successfully extract and serialize embedded records the model relationships\n    must be set up correctly. See the\n    [defining relationships](https://guides.emberjs.com/current/models/relationships)\n    section of the **Defining Models** guide page.\n  \n    Records without an `id` property are not considered embedded records, model\n    instances must have an `id` property to be used with Ember Data.\n  \n    ### Example JSON payloads, Models and Serializers\n  \n    **When customizing a serializer it is important to grok what the customizations\n    are. Please read the docs for the methods this mixin provides, in case you need\n    to modify it to fit your specific needs.**\n  \n    For example, review the docs for each method of this mixin:\n    * [normalize](/ember-data/release/classes/EmbeddedRecordsMixin/methods/normalize?anchor=normalize)\n    * [serializeBelongsTo](/ember-data/release/classes/EmbeddedRecordsMixin/methods/serializeBelongsTo?anchor=serializeBelongsTo)\n    * [serializeHasMany](/ember-data/release/classes/EmbeddedRecordsMixin/methods/serializeHasMany?anchor=serializeHasMany)\n  \n    @class EmbeddedRecordsMixin\n    @public\n  */\n  var embeddedRecordsMixin = _exports.e = _mixin.default.create({\n    /**\n      Normalize the record and recursively normalize/extract all the embedded records\n      while pushing them into the store as they are encountered\n       A payload with an attr configured for embedded records needs to be extracted:\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"comments\": [{\n            \"id\": \"1\",\n            \"body\": \"Rails is unagi\"\n          }, {\n            \"id\": \"2\",\n            \"body\": \"Omakase O_o\"\n          }]\n        }\n      }\n      ```\n     @method normalize\n      @public\n     @param {Model} typeClass\n     @param {Object} hash to be normalized\n     @param {String} prop the hash has been referenced by\n     @return {Object} the normalized hash\n    **/\n    normalize(typeClass, hash, prop) {\n      let normalizedHash = this._super(typeClass, hash, prop);\n      return this._extractEmbeddedRecords(this, this.store, typeClass, normalizedHash);\n    },\n    keyForRelationship(key, typeClass, method) {\n      if (method === 'serialize' && this.hasSerializeRecordsOption(key) || method === 'deserialize' && this.hasDeserializeRecordsOption(key)) {\n        return this.keyForAttribute(key, method);\n      } else {\n        return this._super(key, typeClass, method) || key;\n      }\n    },\n    /**\n      Serialize `belongsTo` relationship when it is configured as an embedded object.\n       This example of an author model belongs to a post model:\n       ```js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       Post = Model.extend({\n        title:    attr('string'),\n        body:     attr('string'),\n        author:   belongsTo('author')\n      });\n       Author = Model.extend({\n        name:     attr('string'),\n        post:     belongsTo('post')\n      });\n      ```\n       Use a custom (type) serializer for the post model to configure embedded author\n       ```app/serializers/post.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          author: { embedded: 'always' }\n        }\n      }\n      ```\n       A payload with an attribute configured for embedded records can serialize\n      the records together under the root attribute's payload:\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"author\": {\n            \"id\": \"2\"\n            \"name\": \"dhh\"\n          }\n        }\n      }\n      ```\n       @method serializeBelongsTo\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeBelongsTo(snapshot, json, relationship) {\n      let attr = relationship.key;\n      if (this.noSerializeOptionSpecified(attr)) {\n        this._super(snapshot, json, relationship);\n        return;\n      }\n      let includeIds = this.hasSerializeIdsOption(attr);\n      let includeRecords = this.hasSerializeRecordsOption(attr);\n      let embeddedSnapshot = snapshot.belongsTo(attr);\n      if (includeIds) {\n        let schema = this.store.modelFor(snapshot.modelName);\n        let serializedKey = this._getMappedKey(relationship.key, schema);\n        if (serializedKey === relationship.key && this.keyForRelationship) {\n          serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n        }\n        if (!embeddedSnapshot) {\n          json[serializedKey] = null;\n        } else {\n          json[serializedKey] = embeddedSnapshot.id;\n          if (relationship.options.polymorphic) {\n            this.serializePolymorphicType(snapshot, json, relationship);\n          }\n        }\n      } else if (includeRecords) {\n        this._serializeEmbeddedBelongsTo(snapshot, json, relationship);\n      }\n    },\n    _serializeEmbeddedBelongsTo(snapshot, json, relationship) {\n      let embeddedSnapshot = snapshot.belongsTo(relationship.key);\n      let schema = this.store.modelFor(snapshot.modelName);\n      let serializedKey = this._getMappedKey(relationship.key, schema);\n      if (serializedKey === relationship.key && this.keyForRelationship) {\n        serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n      }\n      if (!embeddedSnapshot) {\n        json[serializedKey] = null;\n      } else {\n        json[serializedKey] = embeddedSnapshot.serialize({\n          includeId: true\n        });\n        this.removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, json[serializedKey]);\n        if (relationship.options.polymorphic) {\n          this.serializePolymorphicType(snapshot, json, relationship);\n        }\n      }\n    },\n    /**\n      Serializes `hasMany` relationships when it is configured as embedded objects.\n       This example of a post model has many comments:\n       ```js\n      import Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n       Post = Model.extend({\n        title:    attr('string'),\n        body:     attr('string'),\n        comments: hasMany('comment')\n      });\n       Comment = Model.extend({\n        body:     attr('string'),\n        post:     belongsTo('post')\n      });\n      ```\n       Use a custom (type) serializer for the post model to configure embedded comments\n       ```app/serializers/post.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          comments: { embedded: 'always' }\n        }\n      }\n      ```\n       A payload with an attribute configured for embedded records can serialize\n      the records together under the root attribute's payload:\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"body\": \"I want this for my ORM, I want that for my template language...\"\n          \"comments\": [{\n            \"id\": \"1\",\n            \"body\": \"Rails is unagi\"\n          }, {\n            \"id\": \"2\",\n            \"body\": \"Omakase O_o\"\n          }]\n        }\n      }\n      ```\n       The attrs options object can use more specific instruction for extracting and\n      serializing. When serializing, an option to embed `ids`, `ids-and-types` or `records` can be set.\n      When extracting the only option is `records`.\n       So `{ embedded: 'always' }` is shorthand for:\n      `{ serialize: 'records', deserialize: 'records' }`\n       To embed the `ids` for a related object (using a hasMany relationship):\n       ```app/serializers/post.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          comments: { serialize: 'ids', deserialize: 'records' }\n        }\n      }\n      ```\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"body\": \"I want this for my ORM, I want that for my template language...\"\n          \"comments\": [\"1\", \"2\"]\n        }\n      }\n      ```\n       To embed the relationship as a collection of objects with `id` and `type` keys, set\n      `ids-and-types` for the related object.\n       This is particularly useful for polymorphic relationships where records don't share\n      the same table and the `id` is not enough information.\n       For example having a user that has many pets:\n       ```js\n      User = Model.extend({\n        name: attr('string'),\n        pets: hasMany('pet', { polymorphic: true })\n      });\n       Pet = Model.extend({\n        name: attr('string'),\n      });\n       Cat = Pet.extend({\n        // ...\n      });\n       Parrot = Pet.extend({\n        // ...\n      });\n      ```\n       ```app/serializers/user.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class UserSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          pets: { serialize: 'ids-and-types', deserialize: 'records' }\n        }\n      }\n      ```\n       ```js\n      {\n        \"user\": {\n          \"id\": \"1\"\n          \"name\": \"Bertin Osborne\",\n          \"pets\": [\n            { \"id\": \"1\", \"type\": \"Cat\" },\n            { \"id\": \"1\", \"type\": \"Parrot\"}\n          ]\n        }\n      }\n      ```\n       @method serializeHasMany\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeHasMany(snapshot, json, relationship) {\n      let attr = relationship.key;\n      if (this.noSerializeOptionSpecified(attr)) {\n        this._super(snapshot, json, relationship);\n        return;\n      }\n      if (this.hasSerializeIdsOption(attr)) {\n        let schema = this.store.modelFor(snapshot.modelName);\n        let serializedKey = this._getMappedKey(relationship.key, schema);\n        if (serializedKey === relationship.key && this.keyForRelationship) {\n          serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n        }\n        json[serializedKey] = snapshot.hasMany(attr, {\n          ids: true\n        });\n      } else if (this.hasSerializeRecordsOption(attr)) {\n        this._serializeEmbeddedHasMany(snapshot, json, relationship);\n      } else {\n        if (this.hasSerializeIdsAndTypesOption(attr)) {\n          this._serializeHasManyAsIdsAndTypes(snapshot, json, relationship);\n        }\n      }\n    },\n    /*\n      Serializes a hasMany relationship as an array of objects containing only `id` and `type`\n      keys.\n      This has its use case on polymorphic hasMany relationships where the server is not storing\n      all records in the same table using STI, and therefore the `id` is not enough information\n       TODO: Make the default in Ember-data 3.0??\n    */\n    _serializeHasManyAsIdsAndTypes(snapshot, json, relationship) {\n      let serializedKey = this.keyForAttribute(relationship.key, 'serialize');\n      let hasMany = snapshot.hasMany(relationship.key);\n      json[serializedKey] = (0, _array.A)(hasMany).map(function (recordSnapshot) {\n        //\n        // I'm sure I'm being utterly naive here. Probably id is a configurable property and\n        // type too, and the modelName has to be normalized somehow.\n        //\n        return {\n          id: recordSnapshot.id,\n          type: recordSnapshot.modelName\n        };\n      });\n    },\n    _serializeEmbeddedHasMany(snapshot, json, relationship) {\n      let schema = this.store.modelFor(snapshot.modelName);\n      let serializedKey = this._getMappedKey(relationship.key, schema);\n      if (serializedKey === relationship.key && this.keyForRelationship) {\n        serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n      }\n      (true && (0, _debug.warn)(`The embedded relationship '${serializedKey}' is undefined for '${snapshot.modelName}' with id '${snapshot.id}'. Please include it in your original payload.`, typeof snapshot.hasMany(relationship.key) !== 'undefined', {\n        id: 'ds.serializer.embedded-relationship-undefined'\n      }));\n      json[serializedKey] = this._generateSerializedHasMany(snapshot, relationship);\n    },\n    /*\n      Returns an array of embedded records serialized to JSON\n    */\n    _generateSerializedHasMany(snapshot, relationship) {\n      let hasMany = snapshot.hasMany(relationship.key);\n      let manyArray = (0, _array.A)(hasMany);\n      let ret = new Array(manyArray.length);\n      for (let i = 0; i < manyArray.length; i++) {\n        let embeddedSnapshot = manyArray[i];\n        let embeddedJson = embeddedSnapshot.serialize({\n          includeId: true\n        });\n        this.removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, embeddedJson);\n        ret[i] = embeddedJson;\n      }\n      return ret;\n    },\n    /**\n      When serializing an embedded record, modify the property (in the `JSON` payload)\n      that refers to the parent record (foreign key for the relationship).\n       Serializing a `belongsTo` relationship removes the property that refers to the\n      parent record\n       Serializing a `hasMany` relationship does not remove the property that refers to\n      the parent record.\n       @method removeEmbeddedForeignKey\n      @public\n      @param {Snapshot} snapshot\n      @param {Snapshot} embeddedSnapshot\n      @param {Object} relationship\n      @param {Object} json\n    */\n    removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, json) {\n      if (relationship.kind === 'belongsTo') {\n        let schema = this.store.modelFor(snapshot.modelName);\n        let parentRecord = schema.inverseFor(relationship.key, this.store);\n        if (parentRecord) {\n          let name = parentRecord.name;\n          let embeddedSerializer = this.store.serializerFor(embeddedSnapshot.modelName);\n          let parentKey = embeddedSerializer.keyForRelationship(name, parentRecord.kind, 'deserialize');\n          if (parentKey) {\n            delete json[parentKey];\n          }\n        }\n      } /*else if (relationship.kind === 'hasMany') {\n        return;\n        }*/\n    },\n    // checks config for attrs option to embedded (always) - serialize and deserialize\n    hasEmbeddedAlwaysOption(attr) {\n      let option = this.attrsOption(attr);\n      return option && option.embedded === 'always';\n    },\n    // checks config for attrs option to serialize ids\n    hasSerializeRecordsOption(attr) {\n      let alwaysEmbed = this.hasEmbeddedAlwaysOption(attr);\n      let option = this.attrsOption(attr);\n      return alwaysEmbed || option && option.serialize === 'records';\n    },\n    // checks config for attrs option to serialize records\n    hasSerializeIdsOption(attr) {\n      let option = this.attrsOption(attr);\n      return option && (option.serialize === 'ids' || option.serialize === 'id');\n    },\n    // checks config for attrs option to serialize records as objects containing id and types\n    hasSerializeIdsAndTypesOption(attr) {\n      let option = this.attrsOption(attr);\n      return option && (option.serialize === 'ids-and-types' || option.serialize === 'id-and-type');\n    },\n    // checks config for attrs option to serialize records\n    noSerializeOptionSpecified(attr) {\n      let option = this.attrsOption(attr);\n      return !(option && (option.serialize || option.embedded));\n    },\n    // checks config for attrs option to deserialize records\n    // a defined option object for a resource is treated the same as\n    // `deserialize: 'records'`\n    hasDeserializeRecordsOption(attr) {\n      let alwaysEmbed = this.hasEmbeddedAlwaysOption(attr);\n      let option = this.attrsOption(attr);\n      return alwaysEmbed || option && option.deserialize === 'records';\n    },\n    attrsOption(attr) {\n      let attrs = this.attrs;\n      return attrs && (attrs[(0, _string.camelize)(attr)] || attrs[attr]);\n    },\n    /**\n     @method _extractEmbeddedRecords\n     @private\n    */\n    _extractEmbeddedRecords(serializer, store, typeClass, partial) {\n      typeClass.eachRelationship((key, relationship) => {\n        if (serializer.hasDeserializeRecordsOption(key)) {\n          if (relationship.kind === 'hasMany') {\n            this._extractEmbeddedHasMany(store, key, partial, relationship);\n          }\n          if (relationship.kind === 'belongsTo') {\n            this._extractEmbeddedBelongsTo(store, key, partial, relationship);\n          }\n        }\n      });\n      return partial;\n    },\n    /**\n     @method _extractEmbeddedHasMany\n     @private\n    */\n    _extractEmbeddedHasMany(store, key, hash, relationshipMeta) {\n      var _hash$data;\n      let relationshipHash = (_hash$data = hash.data) === null || _hash$data === void 0 || (_hash$data = _hash$data.relationships) === null || _hash$data === void 0 || (_hash$data = _hash$data[key]) === null || _hash$data === void 0 ? void 0 : _hash$data.data;\n      if (!relationshipHash) {\n        return;\n      }\n      let hasMany = new Array(relationshipHash.length);\n      for (let i = 0; i < relationshipHash.length; i++) {\n        let item = relationshipHash[i];\n        let {\n          data,\n          included\n        } = this._normalizeEmbeddedRelationship(store, relationshipMeta, item);\n        hash.included = hash.included || [];\n        hash.included.push(data);\n        if (included) {\n          hash.included = hash.included.concat(included);\n        }\n        hasMany[i] = {\n          id: data.id,\n          type: data.type\n        };\n      }\n      let relationship = {\n        data: hasMany\n      };\n      hash.data.relationships[key] = relationship;\n    },\n    /**\n     @method _extractEmbeddedBelongsTo\n     @private\n    */\n    _extractEmbeddedBelongsTo(store, key, hash, relationshipMeta) {\n      var _hash$data2;\n      let relationshipHash = (_hash$data2 = hash.data) === null || _hash$data2 === void 0 || (_hash$data2 = _hash$data2.relationships) === null || _hash$data2 === void 0 || (_hash$data2 = _hash$data2[key]) === null || _hash$data2 === void 0 ? void 0 : _hash$data2.data;\n      if (!relationshipHash) {\n        return;\n      }\n      let {\n        data,\n        included\n      } = this._normalizeEmbeddedRelationship(store, relationshipMeta, relationshipHash);\n      hash.included = hash.included || [];\n      hash.included.push(data);\n      if (included) {\n        hash.included = hash.included.concat(included);\n      }\n      let belongsTo = {\n        id: data.id,\n        type: data.type\n      };\n      let relationship = {\n        data: belongsTo\n      };\n      hash.data.relationships[key] = relationship;\n    },\n    /**\n     @method _normalizeEmbeddedRelationship\n     @private\n    */\n    _normalizeEmbeddedRelationship(store, relationshipMeta, relationshipHash) {\n      let modelName = relationshipMeta.type;\n      if (relationshipMeta.options.polymorphic) {\n        modelName = relationshipHash.type;\n      }\n      let modelClass = store.modelFor(modelName);\n      let serializer = store.serializerFor(modelName);\n      return serializer.normalize(modelClass, relationshipHash, null);\n    },\n    isEmbeddedRecordsMixin: true\n  });\n});","define(\"@ember-data/serializer/index\", [\"exports\", \"@ember/object\", \"@ember/service\"], function (_exports, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _initializerDefineProperty(target, property, descriptor, context) {\n    if (!descriptor) return;\n    Object.defineProperty(target, property, {\n      enumerable: descriptor.enumerable,\n      configurable: descriptor.configurable,\n      writable: descriptor.writable,\n      value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n    });\n  }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n    var desc = {};\n    Object.keys(descriptor).forEach(function (key) {\n      desc[key] = descriptor[key];\n    });\n    desc.enumerable = !!desc.enumerable;\n    desc.configurable = !!desc.configurable;\n    if ('value' in desc || desc.initializer) {\n      desc.writable = true;\n    }\n    desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n      return decorator(target, property, desc) || desc;\n    }, desc);\n    if (context && desc.initializer !== void 0) {\n      desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n      desc.initializer = undefined;\n    }\n    if (desc.initializer === void 0) {\n      Object.defineProperty(target, property, desc);\n      desc = null;\n    }\n    return desc;\n  }\n  var _class2, _descriptor;\n  /**\n    > ⚠️ CAUTION you likely want the docs for [<Interface> Serializer](/ember-data/release/classes/%3CInterface%3E%20Serializer)\n    > as extending this abstract class is unnecessary.\n  \n    `Serializer` is an abstract base class that you may override in your\n    application to customize it for your backend. The minimum set of methods\n    that you should implement is:\n  \n      * `normalizeResponse()`\n      * `serialize()`\n  \n    And you can optionally override the following methods:\n  \n      * `normalize()`\n  \n    For an example implementation, see\n    [JSONSerializer](JSONSerializer), the included JSON serializer.\n  \n    @class Serializer\n    @public\n    @extends Ember.EmberObject\n  */\n  let _class = _exports.default = (_class2 = class _class2 extends _object.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n    }\n    /**\n      The `store` property is the application's `store` that contains\n      all records. It can be used to look up serializers for other model\n      types that may be nested inside the payload response.\n       Example:\n       ```js\n      Serializer.extend({\n        extractRelationship(relationshipModelName, relationshipHash) {\n          let modelClass = this.store.modelFor(relationshipModelName);\n          let relationshipSerializer = this.store.serializerFor(relationshipModelName);\n          return relationshipSerializer.normalize(modelClass, relationshipHash);\n        }\n      });\n      ```\n       @property store\n      @type {Store}\n      @public\n    */\n\n    /**\n      The `normalizeResponse` method is used to normalize a payload from the\n      server to a JSON-API Document.\n       http://jsonapi.org/format/#document-structure\n       Example:\n       ```js\n      Serializer.extend({\n        normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n          if (requestType === 'findRecord') {\n            return this.normalize(primaryModelClass, payload);\n          } else {\n            return payload.reduce(function(documentHash, item) {\n              let { data, included } = this.normalize(primaryModelClass, item);\n              documentHash.included.push(...included);\n              documentHash.data.push(data);\n              return documentHash;\n            }, { data: [], included: [] })\n          }\n        }\n      });\n      ```\n       @since 1.13.0\n      @method normalizeResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n\n    /**\n      The `serialize` method is used when a record is saved in order to convert\n      the record into the form that your external data source expects.\n       `serialize` takes an optional `options` hash with a single option:\n       - `includeId`: If this is `true`, `serialize` should include the ID\n        in the serialized object it builds.\n       Example:\n       ```js\n      Serializer.extend({\n        serialize(snapshot, options) {\n          let json = {\n            id: snapshot.id\n          };\n           snapshot.eachAttribute((key, attribute) => {\n            json[key] = snapshot.attr(key);\n          });\n           snapshot.eachRelationship((key, relationship) => {\n            if (relationship.kind === 'belongsTo') {\n              json[key] = snapshot.belongsTo(key, { id: true });\n            } else if (relationship.kind === 'hasMany') {\n              json[key] = snapshot.hasMany(key, { ids: true });\n            }\n          });\n           return json;\n        },\n      });\n      ```\n       @method serialize\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} [options]\n      @return {Object}\n    */\n    /**\n      The `normalize` method is used to convert a payload received from your\n      external data source into the normalized form `store.push()` expects. You\n      should override this method, munge the hash and return the normalized\n      payload.\n       Example:\n       ```js\n      Serializer.extend({\n        normalize(modelClass, resourceHash) {\n          let data = {\n            id:            resourceHash.id,\n            type:          modelClass.modelName,\n            attributes:    resourceHash\n          };\n          return { data: data };\n        }\n      })\n      ```\n       @method normalize\n      @public\n      @param {Model} typeClass\n      @param {Object} hash\n      @return {Object}\n    */\n    normalize(typeClass, hash) {\n      return hash;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"@ember-data/serializer/json-api\", [\"exports\", \"@ember/debug\", \"@ember/string\", \"ember-inflector\", \"@ember-data/serializer/json\"], function (_exports, _debug, _string, _emberInflector, _json) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * <blockquote style=\"margin: 1em; padding: .1em 1em .1em 1em; border-left: solid 1em #E34C32; background: #e0e0e0;\">\n    <p>\n      ⚠️ <strong>This is LEGACY documentation</strong> for a feature that is no longer encouraged to be used.\n      If starting a new app or thinking of implementing a new adapter, consider writing a\n      <a href=\"/ember-data/release/classes/%3CInterface%3E%20Handler\">Handler</a> instead to be used with the <a href=\"https://github.com/emberjs/data/tree/main/packages/request#readme\">RequestManager</a>\n    </p>\n    </blockquote>\n  \n    In EmberData a Serializer is used to serialize and deserialize\n    records when they are transferred in and out of an external source.\n    This process involves normalizing property names, transforming\n    attribute values and serializing relationships.\n  \n    `JSONAPISerializer` supports the http://jsonapi.org/ spec and is the\n    serializer recommended by Ember Data.\n  \n    This serializer normalizes a JSON API payload that looks like:\n  \n    ```app/models/player.js\n    import Model, { attr, belongsTo } from '@ember-data/model';\n  \n    export default class Player extends Model {\n      @attr('string') name;\n      @attr('string') skill;\n      @attr('number') gamesPlayed;\n      @belongsTo('club') club;\n    }\n    ```\n  \n    ```app/models/club.js\n    import Model, { attr, hasMany } from '@ember-data/model';\n  \n    export default class Club extends Model {\n      @attr('string') name;\n      @attr('string') location;\n      @hasMany('player') players;\n    }\n    ```\n  \n    ```js\n      {\n        \"data\": [\n          {\n            \"attributes\": {\n              \"name\": \"Benfica\",\n              \"location\": \"Portugal\"\n            },\n            \"id\": \"1\",\n            \"relationships\": {\n              \"players\": {\n                \"data\": [\n                  {\n                    \"id\": \"3\",\n                    \"type\": \"players\"\n                  }\n                ]\n              }\n            },\n            \"type\": \"clubs\"\n          }\n        ],\n        \"included\": [\n          {\n            \"attributes\": {\n              \"name\": \"Eusebio Silva Ferreira\",\n              \"skill\": \"Rocket shot\",\n              \"games-played\": 431\n            },\n            \"id\": \"3\",\n            \"relationships\": {\n              \"club\": {\n                \"data\": {\n                  \"id\": \"1\",\n                  \"type\": \"clubs\"\n                }\n              }\n            },\n            \"type\": \"players\"\n          }\n        ]\n      }\n    ```\n  \n    to the format that the Ember Data store expects.\n  \n    ### Customizing meta\n  \n    Since a JSON API Document can have meta defined in multiple locations you can\n    use the specific serializer hooks if you need to customize the meta.\n  \n    One scenario would be to camelCase the meta keys of your payload. The example\n    below shows how this could be done using `normalizeArrayResponse` and\n    `extractRelationship`.\n  \n    ```app/serializers/application.js\n    import JSONAPISerializer from '@ember-data/serializer/json-api';\n  \n    export default class ApplicationSerializer extends JSONAPISerializer {\n      normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {\n        let normalizedDocument = super.normalizeArrayResponse(...arguments);\n  \n        // Customize document meta\n        normalizedDocument.meta = camelCaseKeys(normalizedDocument.meta);\n  \n        return normalizedDocument;\n      }\n  \n      extractRelationship(relationshipHash) {\n        let normalizedRelationship = super.extractRelationship(...arguments);\n  \n        // Customize relationship meta\n        normalizedRelationship.meta = camelCaseKeys(normalizedRelationship.meta);\n  \n        return normalizedRelationship;\n      }\n    }\n    ```\n  \n    @main @ember-data/serializer/json-api\n    @since 1.13.0\n    @class JSONAPISerializer\n    @public\n    @extends JSONSerializer\n  */\n  const JSONAPISerializer = _exports.default = _json.default.extend({\n    /**\n      @method _normalizeDocumentHelper\n      @param {Object} documentHash\n      @return {Object}\n      @private\n    */\n    _normalizeDocumentHelper(documentHash) {\n      if (Array.isArray(documentHash.data)) {\n        let ret = new Array(documentHash.data.length);\n        for (let i = 0; i < documentHash.data.length; i++) {\n          let data = documentHash.data[i];\n          ret[i] = this._normalizeResourceHelper(data);\n        }\n        documentHash.data = ret;\n      } else if (documentHash.data && typeof documentHash.data === 'object') {\n        documentHash.data = this._normalizeResourceHelper(documentHash.data);\n      }\n      if (Array.isArray(documentHash.included)) {\n        let ret = new Array();\n        for (let i = 0; i < documentHash.included.length; i++) {\n          let included = documentHash.included[i];\n          let normalized = this._normalizeResourceHelper(included);\n          if (normalized !== null) {\n            // can be null when unknown type is encountered\n            ret.push(normalized);\n          }\n        }\n        documentHash.included = ret;\n      }\n      return documentHash;\n    },\n    /**\n      @method _normalizeRelationshipDataHelper\n      @param {Object} relationshipDataHash\n      @return {Object}\n      @private\n    */\n    _normalizeRelationshipDataHelper(relationshipDataHash) {\n      relationshipDataHash.type = this.modelNameFromPayloadKey(relationshipDataHash.type);\n      return relationshipDataHash;\n    },\n    /**\n      @method _normalizeResourceHelper\n      @param {Object} resourceHash\n      @return {Object}\n      @private\n    */\n    _normalizeResourceHelper(resourceHash) {\n      (true && !(resourceHash.type) && (0, _debug.assert)(this.warnMessageForUndefinedType(), resourceHash.type));\n      let modelName, usedLookup;\n      modelName = this.modelNameFromPayloadKey(resourceHash.type);\n      usedLookup = 'modelNameFromPayloadKey';\n      if (!this.store.getSchemaDefinitionService().doesTypeExist(modelName)) {\n        (true && (0, _debug.warn)(this.warnMessageNoModelForType(modelName, resourceHash.type, usedLookup), false, {\n          id: 'ds.serializer.model-for-type-missing'\n        }));\n        return null;\n      }\n      let modelClass = this.store.modelFor(modelName);\n      let serializer = this.store.serializerFor(modelName);\n      let {\n        data\n      } = serializer.normalize(modelClass, resourceHash);\n      return data;\n    },\n    /**\n      Normalize some data and push it into the store.\n       @method pushPayload\n      @public\n      @param {Store} store\n      @param {Object} payload\n    */\n    pushPayload(store, payload) {\n      let normalizedPayload = this._normalizeDocumentHelper(payload);\n      store.push(normalizedPayload);\n    },\n    /**\n      @method _normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @param {Boolean} isSingle\n      @return {Object} JSON-API Document\n      @private\n    */\n    _normalizeResponse(store, primaryModelClass, payload, id, requestType, isSingle) {\n      let normalizedPayload = this._normalizeDocumentHelper(payload);\n      return normalizedPayload;\n    },\n    normalizeQueryRecordResponse() {\n      let normalized = this._super(...arguments);\n      (true && !(!Array.isArray(normalized.data)) && (0, _debug.assert)('Expected the primary data returned by the serializer for a `queryRecord` response to be a single object but instead it was an array.', !Array.isArray(normalized.data)));\n      return normalized;\n    },\n    extractAttributes(modelClass, resourceHash) {\n      let attributes = {};\n      if (resourceHash.attributes) {\n        modelClass.eachAttribute(key => {\n          let attributeKey = this.keyForAttribute(key, 'deserialize');\n          if (resourceHash.attributes[attributeKey] !== undefined) {\n            attributes[key] = resourceHash.attributes[attributeKey];\n          }\n          {\n            if (resourceHash.attributes[attributeKey] === undefined && resourceHash.attributes[key] !== undefined) {\n              (true && !(false) && (0, _debug.assert)(`Your payload for '${modelClass.modelName}' contains '${key}', but your serializer is setup to look for '${attributeKey}'. This is most likely because Ember Data's JSON API serializer dasherizes attribute keys by default. You should subclass JSONAPISerializer and implement 'keyForAttribute(key) { return key; }' to prevent Ember Data from customizing your attribute keys.`, false));\n            }\n          }\n        });\n      }\n      return attributes;\n    },\n    /**\n       Returns a relationship formatted as a JSON-API \"relationship object\".\n        http://jsonapi.org/format/#document-resource-object-relationships\n        @method extractRelationship\n      @public\n       @param {Object} relationshipHash\n       @return {Object}\n    */\n    extractRelationship(relationshipHash) {\n      if (Array.isArray(relationshipHash.data)) {\n        let ret = new Array(relationshipHash.data.length);\n        for (let i = 0; i < relationshipHash.data.length; i++) {\n          let data = relationshipHash.data[i];\n          ret[i] = this._normalizeRelationshipDataHelper(data);\n        }\n        relationshipHash.data = ret;\n      } else if (relationshipHash.data && typeof relationshipHash.data === 'object') {\n        relationshipHash.data = this._normalizeRelationshipDataHelper(relationshipHash.data);\n      }\n      return relationshipHash;\n    },\n    /**\n       Returns the resource's relationships formatted as a JSON-API \"relationships object\".\n        http://jsonapi.org/format/#document-resource-object-relationships\n        @method extractRelationships\n      @public\n       @param {Object} modelClass\n       @param {Object} resourceHash\n       @return {Object}\n    */\n    extractRelationships(modelClass, resourceHash) {\n      let relationships = {};\n      if (resourceHash.relationships) {\n        modelClass.eachRelationship((key, relationshipMeta) => {\n          let relationshipKey = this.keyForRelationship(key, relationshipMeta.kind, 'deserialize');\n          if (resourceHash.relationships[relationshipKey] !== undefined) {\n            let relationshipHash = resourceHash.relationships[relationshipKey];\n            relationships[key] = this.extractRelationship(relationshipHash);\n          }\n          {\n            if (resourceHash.relationships[relationshipKey] === undefined && resourceHash.relationships[key] !== undefined) {\n              (true && !(false) && (0, _debug.assert)(`Your payload for '${modelClass.modelName}' contains '${key}', but your serializer is setup to look for '${relationshipKey}'. This is most likely because Ember Data's JSON API serializer dasherizes relationship keys by default. You should subclass JSONAPISerializer and implement 'keyForRelationship(key) { return key; }' to prevent Ember Data from customizing your relationship keys.`, false));\n            }\n          }\n        });\n      }\n      return relationships;\n    },\n    /**\n      @method _extractType\n      @param {Model} modelClass\n      @param {Object} resourceHash\n      @return {String}\n      @private\n    */\n    _extractType(modelClass, resourceHash) {\n      return this.modelNameFromPayloadKey(resourceHash.type);\n    },\n    /**\n      Dasherizes and singularizes the model name in the payload to match\n      the format Ember Data uses internally for the model name.\n       For example the key `posts` would be converted to `post` and the\n      key `studentAssesments` would be converted to `student-assesment`.\n       @method modelNameFromPayloadKey\n      @public\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    modelNameFromPayloadKey(key) {\n      return (0, _emberInflector.singularize)((0, _string.dasherize)(key));\n    },\n    /**\n      Converts the model name to a pluralized version of the model name.\n       For example `post` would be converted to `posts` and\n      `student-assesment` would be converted to `student-assesments`.\n       @method payloadKeyFromModelName\n      @public\n      @param {String} modelName\n      @return {String}\n    */\n    payloadKeyFromModelName(modelName) {\n      return (0, _emberInflector.pluralize)(modelName);\n    },\n    normalize(modelClass, resourceHash) {\n      if (resourceHash.attributes) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash.attributes);\n      }\n      if (resourceHash.relationships) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash.relationships);\n      }\n      let data = {\n        id: this.extractId(modelClass, resourceHash),\n        type: this._extractType(modelClass, resourceHash),\n        attributes: this.extractAttributes(modelClass, resourceHash),\n        relationships: this.extractRelationships(modelClass, resourceHash)\n      };\n      this.applyTransforms(modelClass, data.attributes);\n      return {\n        data\n      };\n    },\n    /**\n      `keyForAttribute` can be used to define rules for how to convert an\n      attribute name in your model to a key in your JSON.\n      By default `JSONAPISerializer` follows the format used on the examples of\n      http://jsonapi.org/format and uses dashes as the word separator in the JSON\n      attribute keys.\n       This behaviour can be easily customized by extending this method.\n       Example\n       ```app/serializers/application.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n      import { dasherize } from '<app-name>/utils/string-utils';\n       export default class ApplicationSerializer extends JSONAPISerializer {\n        keyForAttribute(attr, method) {\n          return dasherize(attr).toUpperCase();\n        }\n      }\n      ```\n       @method keyForAttribute\n      @public\n      @param {String} key\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForAttribute(key, method) {\n      return (0, _string.dasherize)(key);\n    },\n    /**\n     `keyForRelationship` can be used to define a custom key when\n     serializing and deserializing relationship properties.\n     By default `JSONAPISerializer` follows the format used on the examples of\n     http://jsonapi.org/format and uses dashes as word separators in\n     relationship properties.\n      This behaviour can be easily customized by extending this method.\n      Example\n       ```app/serializers/post.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n      import { underscore } from '<app-name>/utils/string-utils';\n       export default class ApplicationSerializer extends JSONAPISerializer {\n        keyForRelationship(key, relationship, method) {\n          return underscore(key);\n        }\n      }\n      ```\n     @method keyForRelationship\n      @public\n     @param {String} key\n     @param {String} typeClass\n     @param {String} method\n     @return {String} normalized key\n    */\n    keyForRelationship(key, typeClass, method) {\n      return (0, _string.dasherize)(key);\n    },\n    /**\n      Called when a record is saved in order to convert the\n      record into JSON.\n       For example, consider this model:\n       ```app/models/comment.js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       export default class CommentModel extends Model {\n        @attr title;\n        @attr body;\n         @belongsTo('user', { async: false, inverse: null })\n        author;\n      }\n      ```\n       The default serialization would create a JSON-API resource object like:\n       ```javascript\n      {\n        \"data\": {\n          \"type\": \"comments\",\n          \"attributes\": {\n            \"title\": \"Rails is unagi\",\n            \"body\": \"Rails? Omakase? O_O\",\n          },\n          \"relationships\": {\n            \"author\": {\n              \"data\": {\n                \"id\": \"12\",\n                \"type\": \"users\"\n              }\n            }\n          }\n        }\n      }\n      ```\n       By default, attributes are passed through as-is, unless\n      you specified an attribute type (`attr('date')`). If\n      you specify a transform, the JavaScript value will be\n      serialized when inserted into the attributes hash.\n       Belongs-to relationships are converted into JSON-API\n      resource identifier objects.\n       ## IDs\n       `serialize` takes an options hash with a single option:\n      `includeId`. If this option is `true`, `serialize` will,\n      by default include the ID in the JSON object it builds.\n       The JSONAPIAdapter passes in `includeId: true` when serializing a record\n      for `createRecord` or `updateRecord`.\n       ## Customization\n       Your server may expect data in a different format than the\n      built-in serialization format.\n       In that case, you can implement `serialize` yourself and\n      return data formatted to match your API's expectations, or override\n      the invoked adapter method and do the serialization in the adapter directly\n      by using the provided snapshot.\n       If your API's format differs greatly from the JSON:API spec, you should\n      consider authoring your own adapter and serializer instead of extending\n      this class.\n       ```app/serializers/post.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n       export default class PostSerializer extends JSONAPISerializer {\n        serialize(snapshot, options) {\n          let json = {\n            POST_TTL: snapshot.attr('title'),\n            POST_BDY: snapshot.attr('body'),\n            POST_CMS: snapshot.hasMany('comments', { ids: true })\n          };\n           if (options.includeId) {\n            json.POST_ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n      ```\n       ## Customizing an App-Wide Serializer\n       If you want to define a serializer for your entire\n      application, you'll probably want to use `eachAttribute`\n      and `eachRelationship` on the record.\n       ```app/serializers/application.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n      import { underscore, singularize } from '<app-name>/utils/string-utils';\n       export default class ApplicationSerializer extends JSONAPISerializer {\n        serialize(snapshot, options) {\n          let json = {};\n           snapshot.eachAttribute((name) => {\n            json[serverAttributeName(name)] = snapshot.attr(name);\n          });\n           snapshot.eachRelationship((name, relationship) => {\n            if (relationship.kind === 'hasMany') {\n              json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true });\n            }\n          });\n           if (options.includeId) {\n            json.ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n       function serverAttributeName(attribute) {\n        return underscore(attribute).toUpperCase();\n      }\n       function serverHasManyName(name) {\n        return serverAttributeName(singularize(name)) + '_IDS';\n      }\n      ```\n       This serializer will generate JSON that looks like this:\n       ```javascript\n      {\n        \"TITLE\": \"Rails is omakase\",\n        \"BODY\": \"Yep. Omakase.\",\n        \"COMMENT_IDS\": [ \"1\", \"2\", \"3\" ]\n      }\n      ```\n       ## Tweaking the Default Formatting\n       If you just want to do some small tweaks on the default JSON:API formatted response,\n      you can call `super.serialize` first and make the tweaks\n      on the returned object.\n       ```app/serializers/post.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n       export default class PostSerializer extends JSONAPISerializer {\n        serialize(snapshot, options) {\n          let json = super.serialize(...arguments);\n           json.data.attributes.subject = json.data.attributes.title;\n          delete json.data.attributes.title;\n           return json;\n        }\n      }\n      ```\n       @method serialize\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} options\n      @return {Object} json\n    */\n    serialize(snapshot, options) {\n      let data = this._super(...arguments);\n      data.type = this.payloadKeyFromModelName(snapshot.modelName);\n      return {\n        data\n      };\n    },\n    serializeAttribute(snapshot, json, key, attribute) {\n      let type = attribute.type;\n      if (this._canSerialize(key)) {\n        json.attributes = json.attributes || {};\n        let value = snapshot.attr(key);\n        if (type) {\n          let transform = this.transformFor(type);\n          value = transform.serialize(value, attribute.options);\n        }\n        let schema = this.store.modelFor(snapshot.modelName);\n        let payloadKey = this._getMappedKey(key, schema);\n        if (payloadKey === key) {\n          payloadKey = this.keyForAttribute(key, 'serialize');\n        }\n        json.attributes[payloadKey] = value;\n      }\n    },\n    serializeBelongsTo(snapshot, json, relationship) {\n      let key = relationship.key;\n      if (this._canSerialize(key)) {\n        let belongsTo = snapshot.belongsTo(key);\n        let belongsToIsNotNew = belongsTo && !belongsTo.isNew;\n        if (belongsTo === null || belongsToIsNotNew) {\n          json.relationships = json.relationships || {};\n          let schema = this.store.modelFor(snapshot.modelName);\n          let payloadKey = this._getMappedKey(key, schema);\n          if (payloadKey === key) {\n            payloadKey = this.keyForRelationship(key, 'belongsTo', 'serialize');\n          }\n          let data = null;\n          if (belongsTo) {\n            let payloadType = this.payloadKeyFromModelName(belongsTo.modelName);\n            data = {\n              type: payloadType,\n              id: belongsTo.id\n            };\n          }\n          json.relationships[payloadKey] = {\n            data\n          };\n        }\n      }\n    },\n    serializeHasMany(snapshot, json, relationship) {\n      let key = relationship.key;\n      if (this.shouldSerializeHasMany(snapshot, key, relationship)) {\n        let hasMany = snapshot.hasMany(key);\n        if (hasMany !== undefined) {\n          json.relationships = json.relationships || {};\n          let schema = this.store.modelFor(snapshot.modelName);\n          let payloadKey = this._getMappedKey(key, schema);\n          if (payloadKey === key && this.keyForRelationship) {\n            payloadKey = this.keyForRelationship(key, 'hasMany', 'serialize');\n          }\n\n          // only serialize has many relationships that are not new\n          let nonNewHasMany = hasMany.filter(item => !item.isNew);\n          let data = new Array(nonNewHasMany.length);\n          for (let i = 0; i < nonNewHasMany.length; i++) {\n            let item = hasMany[i];\n            let payloadType = this.payloadKeyFromModelName(item.modelName);\n            data[i] = {\n              type: payloadType,\n              id: item.id\n            };\n          }\n          json.relationships[payloadKey] = {\n            data\n          };\n        }\n      }\n    }\n  });\n  {\n    JSONAPISerializer.reopen({\n      init() {\n        this._super(...arguments);\n        (true && !(!this.isEmbeddedRecordsMixin || this.isEmbeddedRecordsMixinCompatible === true) && (0, _debug.assert)(`You've used the EmbeddedRecordsMixin in ${this.toString()} which is not fully compatible with the JSON:API specification. Please confirm that this works for your specific API and add \\`this.isEmbeddedRecordsMixinCompatible = true\\` to your serializer.`, !this.isEmbeddedRecordsMixin || this.isEmbeddedRecordsMixinCompatible === true));\n        let constructor = this.constructor;\n        (true && (0, _debug.warn)(`You've defined 'extractMeta' in ${constructor.toString()} which is not used for serializers extending JSONAPISerializer. Read more at https://api.emberjs.com/ember-data/release/classes/JSONAPISerializer on how to customize meta when using JSON API.`, this.extractMeta === _json.default.prototype.extractMeta, {\n          id: 'ds.serializer.json-api.extractMeta'\n        }));\n      },\n      warnMessageForUndefinedType() {\n        return 'Encountered a resource object with an undefined type (resolved resource using ' + this.constructor.toString() + ')';\n      },\n      warnMessageNoModelForType(modelName, originalType, usedLookup) {\n        return `Encountered a resource object with type \"${originalType}\", but no model was found for model name \"${modelName}\" (resolved model name using '${this.constructor.toString()}.${usedLookup}(\"${originalType}\")').`;\n      }\n    });\n  }\n});","define(\"@ember-data/serializer/json\", [\"exports\", \"@ember/application\", \"@ember/debug\", \"@ember/string\", \"@ember-data/store/-private\", \"@ember-data/serializer/index\"], function (_exports, _application, _debug, _string, _private, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module @ember-data/serializer/json\n   */\n  const SOURCE_POINTER_REGEXP = /^\\/?data\\/(attributes|relationships)\\/(.*)/;\n  const SOURCE_POINTER_PRIMARY_REGEXP = /^\\/?data/;\n  const PRIMARY_ATTRIBUTE_KEY = 'base';\n\n  /**\n   * <blockquote style=\"margin: 1em; padding: .1em 1em .1em 1em; border-left: solid 1em #E34C32; background: #e0e0e0;\">\n    <p>\n      ⚠️ <strong>This is LEGACY documentation</strong> for a feature that is no longer encouraged to be used.\n      If starting a new app or thinking of implementing a new adapter, consider writing a\n      <a href=\"/ember-data/release/classes/%3CInterface%3E%20Handler\">Handler</a> instead to be used with the <a href=\"https://github.com/emberjs/data/tree/main/packages/request#readme\">RequestManager</a>\n    </p>\n    </blockquote>\n  \n    In EmberData 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, EmberData uses and recommends the `JSONAPISerializer`.\n  \n    `JSONSerializer` is useful for simpler or legacy backends that may\n    not support the http://jsonapi.org/ spec.\n  \n    For example, given the following `User` model and JSON payload:\n  \n    ```app/models/user.js\n    import Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @hasMany('user') friends;\n      @belongsTo('location') house;\n  \n      @attr('string') name;\n    }\n    ```\n  \n    ```js\n    {\n      id: 1,\n      name: 'Sebastian',\n      friends: [3, 4],\n      links: {\n        house: '/houses/lefkada'\n      }\n    }\n    ```\n  \n    `JSONSerializer` will normalize the JSON payload to the JSON API format that the\n    Ember Data store expects.\n  \n    You can customize how JSONSerializer processes its payload by passing options in\n    the `attrs` hash or by subclassing the `JSONSerializer` and overriding hooks:\n  \n      - To customize how a single record is normalized, use the `normalize` hook.\n      - To customize how `JSONSerializer` normalizes the whole server response, use the\n        `normalizeResponse` hook.\n      - To customize how `JSONSerializer` normalizes a specific response from the server,\n        use one of the many specific `normalizeResponse` hooks.\n      - To customize how `JSONSerializer` normalizes your id, attributes or relationships,\n        use the `extractId`, `extractAttributes` and `extractRelationships` hooks.\n  \n    The `JSONSerializer` normalization process follows these steps:\n  \n      1. `normalizeResponse`\n          - entry method to the serializer.\n      2. `normalizeCreateRecordResponse`\n          - a `normalizeResponse` for a specific operation is called.\n      3. `normalizeSingleResponse`|`normalizeArrayResponse`\n          - for methods like `createRecord` we expect a single record back, while for methods like `findAll` we expect multiple records back.\n      4. `normalize`\n          - `normalizeArrayResponse` iterates and calls `normalize` for each of its records while `normalizeSingle`\n            calls it once. This is the method you most likely want to subclass.\n      5. `extractId` | `extractAttributes` | `extractRelationships`\n          - `normalize` delegates to these methods to\n            turn the record payload into the JSON API format.\n  \n    @main @ember-data/serializer/json\n    @class JSONSerializer\n    @public\n    @extends Serializer\n  */\n  const JSONSerializer = _exports.default = _index.default.extend({\n    /**\n      The `primaryKey` is used when serializing and deserializing\n      data. Ember Data always uses the `id` property to store the id of\n      the record. The external source may not always follow this\n      convention. In these cases it is useful to override the\n      `primaryKey` property to match the `primaryKey` of your external\n      store.\n       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class ApplicationSerializer extends JSONSerializer {\n        primaryKey = '_id'\n      }\n      ```\n       @property primaryKey\n      @type {String}\n      @public\n      @default 'id'\n    */\n    primaryKey: 'id',\n    /**\n      The `attrs` object can be used to declare a simple mapping between\n      property names on `Model` records and payload keys in the\n      serialized JSON object representing the record. An object with the\n      property `key` can also be used to designate the attribute's key on\n      the response payload.\n       Example\n       ```app/models/person.js\n      import Model, { attr } from '@ember-data/model';\n       export default class PersonModel extends Model {\n        @attr('string') firstName;\n        @attr('string') lastName;\n        @attr('string') occupation;\n        @attr('boolean') admin;\n      }\n      ```\n       ```app/serializers/person.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PersonSerializer extends JSONSerializer {\n        attrs = {\n          admin: 'is_admin',\n          occupation: { key: 'career' }\n        }\n      }\n      ```\n       You can also remove attributes and relationships by setting the `serialize`\n      key to `false` in your mapping object.\n       Example\n       ```app/serializers/person.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        attrs = {\n          admin: { serialize: false },\n          occupation: { key: 'career' }\n        }\n      }\n      ```\n       When serialized:\n       ```javascript\n      {\n        \"firstName\": \"Harry\",\n        \"lastName\": \"Houdini\",\n        \"career\": \"magician\"\n      }\n      ```\n       Note that the `admin` is now not included in the payload.\n       Setting `serialize` to `true` enforces serialization for hasMany\n      relationships even if it's neither a many-to-many nor many-to-none\n      relationship.\n       @property attrs\n      @public\n      @type {Object}\n    */\n    mergedProperties: ['attrs'],\n    /**\n     Given a subclass of `Model` and a JSON object this method will\n     iterate through each attribute of the `Model` and invoke the\n     `Transform#deserialize` method on the matching property of the\n     JSON object.  This method is typically called after the\n     serializer's `normalize` method.\n      @method applyTransforms\n     @private\n     @param {Model} typeClass\n     @param {Object} data The data to transform\n     @return {Object} data The transformed data object\n    */\n    applyTransforms(typeClass, data) {\n      let attributes = typeClass.attributes;\n      typeClass.eachTransformedAttribute((key, typeClass) => {\n        if (data[key] === undefined) {\n          return;\n        }\n        let transform = this.transformFor(typeClass);\n        let transformMeta = attributes.get(key);\n        data[key] = transform.deserialize(data[key], transformMeta.options);\n      });\n      return data;\n    },\n    /**\n      The `normalizeResponse` method is used to normalize a payload from the\n      server to a JSON-API Document.\n       http://jsonapi.org/format/#document-structure\n       This method delegates to a more specific normalize method based on\n      the `requestType`.\n       To override this method with a custom one, make sure to call\n      `return super.normalizeResponse(store, primaryModelClass, payload, id, requestType)` with your\n      pre-processed data.\n       Here's an example of using `normalizeResponse` manually:\n       ```javascript\n      socket.on('message', function(message) {\n        let data = message.data;\n        let modelClass = store.modelFor(data.modelName);\n        let serializer = store.serializerFor(data.modelName);\n        let normalized = serializer.normalizeSingleResponse(store, modelClass, data, data.id);\n         store.push(normalized);\n      });\n      ```\n       @since 1.13.0\n      @method normalizeResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n      switch (requestType) {\n        case 'findRecord':\n          return this.normalizeFindRecordResponse(...arguments);\n        case 'queryRecord':\n          return this.normalizeQueryRecordResponse(...arguments);\n        case 'findAll':\n          return this.normalizeFindAllResponse(...arguments);\n        case 'findBelongsTo':\n          return this.normalizeFindBelongsToResponse(...arguments);\n        case 'findHasMany':\n          return this.normalizeFindHasManyResponse(...arguments);\n        case 'findMany':\n          return this.normalizeFindManyResponse(...arguments);\n        case 'query':\n          return this.normalizeQueryResponse(...arguments);\n        case 'createRecord':\n          return this.normalizeCreateRecordResponse(...arguments);\n        case 'deleteRecord':\n          return this.normalizeDeleteRecordResponse(...arguments);\n        case 'updateRecord':\n          return this.normalizeUpdateRecordResponse(...arguments);\n      }\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findRecord`\n       @since 1.13.0\n      @method normalizeFindRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `queryRecord`\n       @since 1.13.0\n      @method normalizeQueryRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeQueryRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findAll`\n       @since 1.13.0\n      @method normalizeFindAllResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindAllResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findBelongsTo`\n       @since 1.13.0\n      @method normalizeFindBelongsToResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindBelongsToResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findHasMany`\n       @since 1.13.0\n      @method normalizeFindHasManyResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindHasManyResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findMany`\n       @since 1.13.0\n      @method normalizeFindManyResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindManyResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `query`\n       @since 1.13.0\n      @method normalizeQueryResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeQueryResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `createRecord`\n       @since 1.13.0\n      @method normalizeCreateRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeCreateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSaveResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `deleteRecord`\n       @since 1.13.0\n      @method normalizeDeleteRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeDeleteRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSaveResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `updateRecord`\n       @since 1.13.0\n      @method normalizeUpdateRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeUpdateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSaveResponse(...arguments);\n    },\n    /**\n      normalizeUpdateRecordResponse, normalizeCreateRecordResponse and\n      normalizeDeleteRecordResponse delegate to this method by default.\n       @since 1.13.0\n      @method normalizeSaveResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeSaveResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      normalizeQueryResponse and normalizeFindRecordResponse delegate to this\n      method by default.\n       @since 1.13.0\n      @method normalizeSingleResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeSingleResponse(store, primaryModelClass, payload, id, requestType) {\n      return this._normalizeResponse(store, primaryModelClass, payload, id, requestType, true);\n    },\n    /**\n      normalizeQueryResponse, normalizeFindManyResponse, and normalizeFindHasManyResponse delegate\n      to this method by default.\n       @since 1.13.0\n      @method normalizeArrayResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {\n      return this._normalizeResponse(store, primaryModelClass, payload, id, requestType, false);\n    },\n    /**\n      @method _normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @param {Boolean} isSingle\n      @return {Object} JSON-API Document\n      @private\n    */\n    _normalizeResponse(store, primaryModelClass, payload, id, requestType, isSingle) {\n      let documentHash = {\n        data: null,\n        included: []\n      };\n      let meta = this.extractMeta(store, primaryModelClass, payload);\n      if (meta) {\n        (true && !(typeof meta === 'object') && (0, _debug.assert)('The `meta` returned from `extractMeta` has to be an object, not \"' + typeof meta + '\".', typeof meta === 'object'));\n        documentHash.meta = meta;\n      }\n      if (isSingle) {\n        let {\n          data,\n          included\n        } = this.normalize(primaryModelClass, payload);\n        documentHash.data = data;\n        if (included) {\n          documentHash.included = included;\n        }\n      } else {\n        let ret = new Array(payload.length);\n        for (let i = 0, l = payload.length; i < l; i++) {\n          let item = payload[i];\n          let {\n            data,\n            included\n          } = this.normalize(primaryModelClass, item);\n          if (included) {\n            documentHash.included = documentHash.included.concat(included);\n          }\n          ret[i] = data;\n        }\n        documentHash.data = ret;\n      }\n      return documentHash;\n    },\n    /**\n      Normalizes a part of the JSON payload returned by\n      the server. You should override this method, munge the hash\n      and call super if you have generic normalization to do.\n       It takes the type of the record that is being normalized\n      (as a Model class), the property where the hash was\n      originally found, and the hash to normalize.\n       You can use this method, for example, to normalize underscored keys to camelized\n      or other general-purpose normalizations.\n       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { underscore } from '<app-name>/utils/string-utils';\n      import { get } from '@ember/object';\n       export default class ApplicationSerializer extends JSONSerializer {\n        normalize(typeClass, hash) {\n          let fields = typeClass.fields;\n           fields.forEach(function(type, field) {\n            let payloadField = underscore(field);\n            if (field === payloadField) { return; }\n             hash[field] = hash[payloadField];\n            delete hash[payloadField];\n          });\n           return super.normalize(...arguments);\n        }\n      }\n      ```\n       @method normalize\n      @public\n      @param {Model} typeClass\n      @param {Object} hash\n      @return {Object}\n    */\n    normalize(modelClass, resourceHash) {\n      let data = null;\n      if (resourceHash) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash);\n        if (typeof resourceHash.links === 'object') {\n          this.normalizeUsingDeclaredMapping(modelClass, resourceHash.links);\n        }\n        data = {\n          id: this.extractId(modelClass, resourceHash),\n          type: modelClass.modelName,\n          attributes: this.extractAttributes(modelClass, resourceHash),\n          relationships: this.extractRelationships(modelClass, resourceHash)\n        };\n        this.applyTransforms(modelClass, data.attributes);\n      }\n      return {\n        data\n      };\n    },\n    /**\n      Returns the resource's ID.\n       @method extractId\n      @public\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {String}\n    */\n    extractId(modelClass, resourceHash) {\n      let primaryKey = this.primaryKey;\n      let id = resourceHash[primaryKey];\n      return (0, _private.coerceId)(id);\n    },\n    /**\n      Returns the resource's attributes formatted as a JSON-API \"attributes object\".\n       http://jsonapi.org/format/#document-resource-object-attributes\n       @method extractAttributes\n      @public\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {Object}\n    */\n    extractAttributes(modelClass, resourceHash) {\n      let attributeKey;\n      let attributes = {};\n      modelClass.eachAttribute(key => {\n        attributeKey = this.keyForAttribute(key, 'deserialize');\n        if (resourceHash[attributeKey] !== undefined) {\n          attributes[key] = resourceHash[attributeKey];\n        }\n      });\n      return attributes;\n    },\n    /**\n      Returns a relationship formatted as a JSON-API \"relationship object\".\n       http://jsonapi.org/format/#document-resource-object-relationships\n       @method extractRelationship\n      @public\n      @param {Object} relationshipModelName\n      @param {Object} relationshipHash\n      @return {Object}\n    */\n    extractRelationship(relationshipModelName, relationshipHash) {\n      if (!relationshipHash) {\n        return null;\n      }\n      /*\n        When `relationshipHash` is an object it usually means that the relationship\n        is polymorphic. It could however also be embedded resources that the\n        EmbeddedRecordsMixin has be able to process.\n      */\n      if (relationshipHash && typeof relationshipHash === 'object' && !Array.isArray(relationshipHash)) {\n        if (relationshipHash.id) {\n          relationshipHash.id = (0, _private.coerceId)(relationshipHash.id);\n        }\n        let modelClass = this.store.modelFor(relationshipModelName);\n        if (relationshipHash.type && !modelClass.fields.has('type')) {\n          relationshipHash.type = this.modelNameFromPayloadKey(relationshipHash.type);\n        }\n        return relationshipHash;\n      }\n      return {\n        id: (0, _private.coerceId)(relationshipHash),\n        type: relationshipModelName\n      };\n    },\n    /**\n      Returns a polymorphic relationship formatted as a JSON-API \"relationship object\".\n       http://jsonapi.org/format/#document-resource-object-relationships\n       `relationshipOptions` is a hash which contains more information about the\n      polymorphic relationship which should be extracted:\n        - `resourceHash` complete hash of the resource the relationship should be\n          extracted from\n        - `relationshipKey` key under which the value for the relationship is\n          extracted from the resourceHash\n        - `relationshipMeta` meta information about the relationship\n       @method extractPolymorphicRelationship\n      @public\n      @param {Object} relationshipModelName\n      @param {Object} relationshipHash\n      @param {Object} relationshipOptions\n      @return {Object}\n    */\n    extractPolymorphicRelationship(relationshipModelName, relationshipHash, relationshipOptions) {\n      return this.extractRelationship(relationshipModelName, relationshipHash);\n    },\n    /**\n      Returns the resource's relationships formatted as a JSON-API \"relationships object\".\n       http://jsonapi.org/format/#document-resource-object-relationships\n       @method extractRelationships\n      @public\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {Object}\n    */\n    extractRelationships(modelClass, resourceHash) {\n      let relationships = {};\n      modelClass.eachRelationship((key, relationshipMeta) => {\n        let relationship = null;\n        let relationshipKey = this.keyForRelationship(key, relationshipMeta.kind, 'deserialize');\n        if (resourceHash[relationshipKey] !== undefined) {\n          let data = null;\n          let relationshipHash = resourceHash[relationshipKey];\n          if (relationshipMeta.kind === 'belongsTo') {\n            if (relationshipMeta.options.polymorphic) {\n              // extracting a polymorphic belongsTo may need more information\n              // than the type and the hash (which might only be an id) for the\n              // relationship, hence we pass the key, resource and\n              // relationshipMeta too\n              data = this.extractPolymorphicRelationship(relationshipMeta.type, relationshipHash, {\n                key,\n                resourceHash,\n                relationshipMeta\n              });\n            } else {\n              data = this.extractRelationship(relationshipMeta.type, relationshipHash);\n            }\n          } else if (relationshipMeta.kind === 'hasMany') {\n            if (relationshipHash) {\n              data = new Array(relationshipHash.length);\n              if (relationshipMeta.options.polymorphic) {\n                for (let i = 0, l = relationshipHash.length; i < l; i++) {\n                  let item = relationshipHash[i];\n                  data[i] = this.extractPolymorphicRelationship(relationshipMeta.type, item, {\n                    key,\n                    resourceHash,\n                    relationshipMeta\n                  });\n                }\n              } else {\n                for (let i = 0, l = relationshipHash.length; i < l; i++) {\n                  let item = relationshipHash[i];\n                  data[i] = this.extractRelationship(relationshipMeta.type, item);\n                }\n              }\n            }\n          }\n          relationship = {\n            data\n          };\n        }\n        let linkKey = this.keyForLink(key, relationshipMeta.kind);\n        if (resourceHash.links && resourceHash.links[linkKey] !== undefined) {\n          let related = resourceHash.links[linkKey];\n          relationship = relationship || {};\n          relationship.links = {\n            related\n          };\n        }\n        if (relationship) {\n          relationships[key] = relationship;\n        }\n      });\n      return relationships;\n    },\n    /**\n      Dasherizes the model name in the payload\n       @method modelNameFromPayloadKey\n      @public\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    modelNameFromPayloadKey(key) {\n      return (0, _string.dasherize)(key);\n    },\n    /**\n      @method normalizeRelationships\n      @private\n    */\n    normalizeRelationships(typeClass, hash) {\n      let payloadKey;\n      if (this.keyForRelationship) {\n        typeClass.eachRelationship((key, relationship) => {\n          payloadKey = this.keyForRelationship(key, relationship.kind, 'deserialize');\n          if (key === payloadKey) {\n            return;\n          }\n          if (hash[payloadKey] === undefined) {\n            return;\n          }\n          hash[key] = hash[payloadKey];\n          delete hash[payloadKey];\n        });\n      }\n    },\n    /**\n      @method normalizeUsingDeclaredMapping\n      @private\n    */\n    normalizeUsingDeclaredMapping(modelClass, hash) {\n      let attrs = this.attrs;\n      let normalizedKey;\n      let payloadKey;\n      if (attrs) {\n        for (let key in attrs) {\n          normalizedKey = payloadKey = this._getMappedKey(key, modelClass);\n          if (hash[payloadKey] === undefined) {\n            continue;\n          }\n          if (modelClass.attributes.has(key)) {\n            normalizedKey = this.keyForAttribute(key, 'deserialize');\n          }\n          if (modelClass.relationshipsByName.has(key)) {\n            normalizedKey = this.keyForRelationship(key, modelClass, 'deserialize');\n          }\n          if (payloadKey !== normalizedKey) {\n            hash[normalizedKey] = hash[payloadKey];\n            delete hash[payloadKey];\n          }\n        }\n      }\n    },\n    /**\n      Looks up the property key that was set by the custom `attr` mapping\n      passed to the serializer.\n       @method _getMappedKey\n      @private\n      @param {String} key\n      @return {String} key\n    */\n    _getMappedKey(key, modelClass) {\n      (true && (0, _debug.warn)('There is no attribute or relationship with the name `' + key + '` on `' + modelClass.modelName + '`. Check your serializers attrs hash.', modelClass.attributes.has(key) || modelClass.relationshipsByName.has(key), {\n        id: 'ds.serializer.no-mapped-attrs-key'\n      }));\n      let attrs = this.attrs;\n      let mappedKey;\n      if (attrs && attrs[key]) {\n        mappedKey = attrs[key];\n        //We need to account for both the { title: 'post_title' } and\n        //{ title: { key: 'post_title' }} forms\n        if (mappedKey.key) {\n          mappedKey = mappedKey.key;\n        }\n        if (typeof mappedKey === 'string') {\n          key = mappedKey;\n        }\n      }\n      return key;\n    },\n    /**\n      Check attrs.key.serialize property to inform if the `key`\n      can be serialized\n       @method _canSerialize\n      @private\n      @param {String} key\n      @return {boolean} true if the key can be serialized\n    */\n    _canSerialize(key) {\n      let attrs = this.attrs;\n      return !attrs || !attrs[key] || attrs[key].serialize !== false;\n    },\n    /**\n      When attrs.key.serialize is set to true then\n      it takes priority over the other checks and the related\n      attribute/relationship will be serialized\n       @method _mustSerialize\n      @private\n      @param {String} key\n      @return {boolean} true if the key must be serialized\n    */\n    _mustSerialize(key) {\n      let attrs = this.attrs;\n      return attrs && attrs[key] && attrs[key].serialize === true;\n    },\n    /**\n      Check if the given hasMany relationship should be serialized\n       By default only many-to-many and many-to-none relationships are serialized.\n      This could be configured per relationship by Serializer's `attrs` object.\n       @method shouldSerializeHasMany\n      @public\n      @param {Snapshot} snapshot\n      @param {String} key\n      @param {String} relationshipType\n      @return {boolean} true if the hasMany relationship should be serialized\n    */\n    shouldSerializeHasMany(snapshot, key, relationship) {\n      const schema = this.store.modelFor(snapshot.modelName);\n      let relationshipType = schema.determineRelationshipType(relationship, this.store);\n      if (this._mustSerialize(key)) {\n        return true;\n      }\n      return this._canSerialize(key) && (relationshipType === 'manyToNone' || relationshipType === 'manyToMany');\n    },\n    // SERIALIZE\n    /**\n      Called when a record is saved in order to convert the\n      record into JSON.\n       By default, it creates a JSON object with a key for\n      each attribute and belongsTo relationship.\n       For example, consider this model:\n       ```app/models/comment.js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       export default class CommentModel extends Model {\n        @attr title;\n        @attr body;\n         @belongsTo('user') author;\n      }\n      ```\n       The default serialization would create a JSON object like:\n       ```javascript\n      {\n        \"title\": \"Rails is unagi\",\n        \"body\": \"Rails? Omakase? O_O\",\n        \"author\": 12\n      }\n      ```\n       By default, attributes are passed through as-is, unless\n      you specified an attribute type (`attr('date')`). If\n      you specify a transform, the JavaScript value will be\n      serialized when inserted into the JSON hash.\n       By default, belongs-to relationships are converted into\n      IDs when inserted into the JSON hash.\n       ## IDs\n       `serialize` takes an options hash with a single option:\n      `includeId`. If this option is `true`, `serialize` will,\n      by default include the ID in the JSON object it builds.\n       The adapter passes in `includeId: true` when serializing\n      a record for `createRecord`, but not for `updateRecord`.\n       ## Customization\n       Your server may expect a different JSON format than the\n      built-in serialization format.\n       In that case, you can implement `serialize` yourself and\n      return a JSON hash of your choosing.\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        serialize(snapshot, options) {\n          let json = {\n            POST_TTL: snapshot.attr('title'),\n            POST_BDY: snapshot.attr('body'),\n            POST_CMS: snapshot.hasMany('comments', { ids: true })\n          };\n           if (options.includeId) {\n            json.POST_ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n      ```\n       ## Customizing an App-Wide Serializer\n       If you want to define a serializer for your entire\n      application, you'll probably want to use `eachAttribute`\n      and `eachRelationship` on the record.\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { singularize } from '<app-name>/utils/string-utils';\n       export default class ApplicationSerializer extends JSONSerializer {\n        serialize(snapshot, options) {\n          let json = {};\n           snapshot.eachAttribute((name) => {\n            json[serverAttributeName(name)] = snapshot.attr(name);\n          });\n           snapshot.eachRelationship((name, relationship) => {\n            if (relationship.kind === 'hasMany') {\n              json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true });\n            }\n          });\n           if (options.includeId) {\n            json.ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n       function serverAttributeName(attribute) {\n        return attribute.underscore().toUpperCase();\n      }\n       function serverHasManyName(name) {\n        return serverAttributeName(singularize(name)) + \"_IDS\";\n      }\n      ```\n       This serializer will generate JSON that looks like this:\n       ```javascript\n      {\n        \"TITLE\": \"Rails is omakase\",\n        \"BODY\": \"Yep. Omakase.\",\n        \"COMMENT_IDS\": [ \"1\", \"2\", \"3\" ]\n      }\n      ```\n       ## Tweaking the Default JSON\n       If you just want to do some small tweaks on the default JSON,\n      you can call `super.serialize` first and make the tweaks on\n      the returned JSON.\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        serialize(snapshot, options) {\n          let json = super.serialize(...arguments);\n           json.subject = json.title;\n          delete json.title;\n           return json;\n        }\n      }\n      ```\n       @method serialize\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} options\n      @return {Object} json\n    */\n    serialize(snapshot, options) {\n      let json = {};\n      if (options && options.includeId) {\n        const id = snapshot.id;\n        if (id) {\n          json[this.primaryKey] = id;\n        }\n      }\n      snapshot.eachAttribute((key, attribute) => {\n        this.serializeAttribute(snapshot, json, key, attribute);\n      });\n      snapshot.eachRelationship((key, relationship) => {\n        if (relationship.kind === 'belongsTo') {\n          this.serializeBelongsTo(snapshot, json, relationship);\n        } else if (relationship.kind === 'hasMany') {\n          this.serializeHasMany(snapshot, json, relationship);\n        }\n      });\n      return json;\n    },\n    /**\n      You can use this method to customize how a serialized record is added to the complete\n      JSON hash to be sent to the server. By default the JSON Serializer does not namespace\n      the payload and just sends the raw serialized JSON object.\n      If your server expects namespaced keys, you should consider using the RESTSerializer.\n      Otherwise you can override this method to customize how the record is added to the hash.\n      The hash property should be modified by reference.\n       For example, your server may expect underscored root objects.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { decamelize } from '<app-name>/utils/string-utils';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serializeIntoHash(data, type, snapshot, options) {\n          let root = decamelize(type.modelName);\n          data[root] = this.serialize(snapshot, options);\n        }\n      }\n      ```\n       @method serializeIntoHash\n      @public\n      @param {Object} hash\n      @param {Model} typeClass\n      @param {Snapshot} snapshot\n      @param {Object} options\n    */\n    serializeIntoHash(hash, typeClass, snapshot, options) {\n      Object.assign(hash, this.serialize(snapshot, options));\n    },\n    /**\n      `serializeAttribute` can be used to customize how `attr`\n      properties are serialized\n       For example if you wanted to ensure all your attributes were always\n      serialized as properties on an `attributes` object you could\n      write:\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class ApplicationSerializer extends JSONSerializer {\n        serializeAttribute(snapshot, json, key, attributes) {\n          json.attributes = json.attributes || {};\n          super.serializeAttribute(snapshot, json.attributes, key, attributes);\n        }\n      }\n      ```\n       @method serializeAttribute\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {String} key\n      @param {Object} attribute\n    */\n    serializeAttribute(snapshot, json, key, attribute) {\n      if (this._canSerialize(key)) {\n        let type = attribute.type;\n        let value = snapshot.attr(key);\n        if (type) {\n          let transform = this.transformFor(type);\n          value = transform.serialize(value, attribute.options);\n        }\n\n        // if provided, use the mapping provided by `attrs` in\n        // the serializer\n        let schema = this.store.modelFor(snapshot.modelName);\n        let payloadKey = this._getMappedKey(key, schema);\n        if (payloadKey === key && this.keyForAttribute) {\n          payloadKey = this.keyForAttribute(key, 'serialize');\n        }\n        json[payloadKey] = value;\n      }\n    },\n    /**\n      `serializeBelongsTo` can be used to customize how `belongsTo`\n      properties are serialized.\n       Example\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        serializeBelongsTo(snapshot, json, relationship) {\n          let key = relationship.key;\n          let belongsTo = snapshot.belongsTo(key);\n           key = this.keyForRelationship ? this.keyForRelationship(key, \"belongsTo\", \"serialize\") : key;\n           json[key] = !belongsTo ? null : belongsTo.record.toJSON();\n        }\n      }\n      ```\n       @method serializeBelongsTo\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeBelongsTo(snapshot, json, relationship) {\n      let key = relationship.key;\n      if (this._canSerialize(key)) {\n        let belongsToId = snapshot.belongsTo(key, {\n          id: true\n        });\n\n        // if provided, use the mapping provided by `attrs` in\n        // the serializer\n        let schema = this.store.modelFor(snapshot.modelName);\n        let payloadKey = this._getMappedKey(key, schema);\n        if (payloadKey === key && this.keyForRelationship) {\n          payloadKey = this.keyForRelationship(key, 'belongsTo', 'serialize');\n        }\n\n        //Need to check whether the id is there for new&async records\n        if (!belongsToId) {\n          json[payloadKey] = null;\n        } else {\n          json[payloadKey] = belongsToId;\n        }\n        if (relationship.options.polymorphic) {\n          this.serializePolymorphicType(snapshot, json, relationship);\n        }\n      }\n    },\n    /**\n     `serializeHasMany` can be used to customize how `hasMany`\n     properties are serialized.\n      Example\n      ```app/serializers/post.js\n     import JSONSerializer from '@ember-data/serializer/json';\n      export default class PostSerializer extends JSONSerializer {\n       serializeHasMany(snapshot, json, relationship) {\n         let key = relationship.key;\n         if (key === 'comments') {\n           return;\n         } else {\n           super.serializeHasMany(...arguments);\n         }\n       }\n     }\n     ```\n      @method serializeHasMany\n      @public\n     @param {Snapshot} snapshot\n     @param {Object} json\n     @param {Object} relationship\n    */\n    serializeHasMany(snapshot, json, relationship) {\n      let key = relationship.key;\n      if (this.shouldSerializeHasMany(snapshot, key, relationship)) {\n        let hasMany = snapshot.hasMany(key, {\n          ids: true\n        });\n        if (hasMany !== undefined) {\n          // if provided, use the mapping provided by `attrs` in\n          // the serializer\n          let schema = this.store.modelFor(snapshot.modelName);\n          let payloadKey = this._getMappedKey(key, schema);\n          if (payloadKey === key && this.keyForRelationship) {\n            payloadKey = this.keyForRelationship(key, 'hasMany', 'serialize');\n          }\n          json[payloadKey] = hasMany;\n          // TODO support for polymorphic manyToNone and manyToMany relationships\n        }\n      }\n    },\n    /**\n      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       export default class CommentSerializer extends JSONSerializer {\n        serializePolymorphicType(snapshot, json, relationship) {\n          let key = relationship.key;\n          let belongsTo = snapshot.belongsTo(key);\n           key = this.keyForAttribute ? this.keyForAttribute(key, 'serialize') : key;\n           if (!belongsTo) {\n            json[key + '_type'] = null;\n          } else {\n            json[key + '_type'] = belongsTo.modelName;\n          }\n        }\n      }\n      ```\n       @method serializePolymorphicType\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializePolymorphicType() {},\n    /**\n      `extractMeta` is used to deserialize any meta information in the\n      adapter payload. By default Ember Data expects meta information to\n      be located on the `meta` property of the payload object.\n       Example\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        extractMeta(store, typeClass, payload) {\n          if (payload && payload.hasOwnProperty('_pagination')) {\n            let meta = payload._pagination;\n            delete payload._pagination;\n            return meta;\n          }\n        }\n      }\n      ```\n       @method extractMeta\n      @public\n      @param {Store} store\n      @param {Model} modelClass\n      @param {Object} payload\n    */\n    extractMeta(store, modelClass, payload) {\n      if (payload && payload['meta'] !== undefined) {\n        let meta = payload.meta;\n        delete payload.meta;\n        return meta;\n      }\n    },\n    /**\n      `extractErrors` is used to extract model errors when a call\n      to `Model#save` fails with an `InvalidError`. By default\n      Ember Data expects error information to be located on the `errors`\n      property of the payload object.\n       This serializer expects this `errors` object to be an Array similar\n      to the following, compliant with the https://jsonapi.org/format/#errors specification:\n       ```js\n      {\n        \"errors\": [\n          {\n            \"detail\": \"This username is already taken!\",\n            \"source\": {\n              \"pointer\": \"data/attributes/username\"\n            }\n          }, {\n            \"detail\": \"Doesn't look like a valid email.\",\n            \"source\": {\n              \"pointer\": \"data/attributes/email\"\n            }\n          }\n        ]\n      }\n      ```\n       The key `detail` provides a textual description of the problem.\n      Alternatively, the key `title` can be used for the same purpose.\n       The nested keys `source.pointer` detail which specific element\n      of the request data was invalid.\n       Note that JSON-API also allows for object-level errors to be placed\n      in an object with pointer `data`, signifying that the problem\n      cannot be traced to a specific attribute:\n       ```javascript\n      {\n        \"errors\": [\n          {\n            \"detail\": \"Some generic non property error message\",\n            \"source\": {\n              \"pointer\": \"data\"\n            }\n          }\n        ]\n      }\n      ```\n       When turn into a `Errors` object, you can read these errors\n      through the property `base`:\n       ```handlebars\n      {{#each @model.errors.base as |error|}}\n        <div class=\"error\">\n          {{error.message}}\n        </div>\n      {{/each}}\n      ```\n       Example of alternative implementation, overriding the default\n      behavior to deal with a different format of errors:\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        extractErrors(store, typeClass, payload, id) {\n          if (payload && typeof payload === 'object' && payload._problems) {\n            payload = payload._problems;\n            this.normalizeErrors(typeClass, payload);\n          }\n          return payload;\n        }\n      }\n      ```\n       @method extractErrors\n      @public\n      @param {Store} store\n      @param {Model} typeClass\n      @param {Object} payload\n      @param {(String|Number)} id\n      @return {Object} json The deserialized errors\n    */\n    extractErrors(store, typeClass, payload, id) {\n      if (payload && typeof payload === 'object' && payload.errors) {\n        // the default assumption is that errors is already in JSON:API format\n        const extracted = {};\n        payload.errors.forEach(error => {\n          if (error.source && error.source.pointer) {\n            let key = error.source.pointer.match(SOURCE_POINTER_REGEXP);\n            if (key) {\n              key = key[2];\n            } else if (error.source.pointer.search(SOURCE_POINTER_PRIMARY_REGEXP) !== -1) {\n              key = PRIMARY_ATTRIBUTE_KEY;\n            }\n            if (key) {\n              extracted[key] = extracted[key] || [];\n              extracted[key].push(error.detail || error.title);\n            }\n          }\n        });\n\n        // if the user has an attrs hash, convert keys using it\n        this.normalizeUsingDeclaredMapping(typeClass, extracted);\n\n        // for each attr and relationship, make sure that we use\n        // the normalized key\n        typeClass.eachAttribute(name => {\n          let key = this.keyForAttribute(name, 'deserialize');\n          if (key !== name && extracted[key] !== undefined) {\n            extracted[name] = extracted[key];\n            delete extracted[key];\n          }\n        });\n        typeClass.eachRelationship(name => {\n          let key = this.keyForRelationship(name, 'deserialize');\n          if (key !== name && extracted[key] !== undefined) {\n            extracted[name] = extracted[key];\n            delete extracted[key];\n          }\n        });\n        return extracted;\n      }\n      return payload;\n    },\n    /**\n      `keyForAttribute` can be used to define rules for how to convert an\n      attribute name in your model to a key in your JSON.\n       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { underscore } from '<app-name>/utils/string-utils';\n       export default class ApplicationSerializer extends JSONSerializer {\n        keyForAttribute(attr, method) {\n          return underscore(attr).toUpperCase();\n        }\n      }\n      ```\n       @method keyForAttribute\n      @public\n      @param {String} key\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForAttribute(key, method) {\n      return key;\n    },\n    /**\n      `keyForRelationship` can be used to define a custom key when\n      serializing and deserializing relationship properties. By default\n      `JSONSerializer` does not provide an implementation of this method.\n       Example\n         ```app/serializers/post.js\n        import JSONSerializer from '@ember-data/serializer/json';\n        import { underscore } from '<app-name>/utils/string-utils';\n         export default class PostSerializer extends JSONSerializer {\n          keyForRelationship(key, relationship, method) {\n            return `rel_${underscore(key)}`;\n          }\n        }\n        ```\n       @method keyForRelationship\n      @public\n      @param {String} key\n      @param {String} typeClass\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForRelationship(key, typeClass, method) {\n      return key;\n    },\n    /**\n     `keyForLink` can be used to define a custom key when deserializing link\n     properties.\n      @method keyForLink\n      @public\n     @param {String} key\n     @param {String} kind `belongsTo` or `hasMany`\n     @return {String} normalized key\n    */\n    keyForLink(key, kind) {\n      return key;\n    },\n    // HELPERS\n\n    /**\n     @method transformFor\n     @private\n     @param {String} attributeType\n     @param {Boolean} skipAssertion\n     @return {Transform} transform\n    */\n    transformFor(attributeType, skipAssertion) {\n      let transform = (0, _application.getOwner)(this).lookup('transform:' + attributeType);\n      (true && !(skipAssertion || !!transform) && (0, _debug.assert)(`Unable to find the transform for \\`attr('${attributeType}')\\``, skipAssertion || !!transform));\n      return transform;\n    }\n  });\n});","define(\"@ember-data/serializer/rest\", [\"exports\", \"@ember/debug\", \"@ember/string\", \"ember-inflector\", \"@ember-data/store/-private\", \"@ember-data/serializer/json\", \"@ember-data/serializer/embedded-records-mixin-d75385ff\"], function (_exports, _debug, _string, _emberInflector, _private, _json, _embeddedRecordsMixinD75385ff) {\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 _embeddedRecordsMixinD75385ff.e;\n    }\n  });\n  _exports.default = void 0;\n  function makeArray(value) {\n    return Array.isArray(value) ? value : [value];\n  }\n\n  /**\n   * <blockquote style=\"margin: 1em; padding: .1em 1em .1em 1em; border-left: solid 1em #E34C32; background: #e0e0e0;\">\n    <p>\n      ⚠️ <strong>This is LEGACY documentation</strong> for a feature that is no longer encouraged to be used.\n      If starting a new app or thinking of implementing a new adapter, consider writing a\n      <a href=\"/ember-data/release/classes/%3CInterface%3E%20Handler\">Handler</a> instead to be used with the <a href=\"https://github.com/emberjs/data/tree/main/packages/request#readme\">RequestManager</a>\n    </p>\n    </blockquote>\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 '<app-name>/utils/string-utils';\n  \n    export default class ApplicationSerializer extends RESTSerializer {\n      keyForAttribute(attr, method) {\n        return underscore(attr).toUpperCase();\n      }\n    }\n    ```\n  \n    You can also implement `keyForRelationship`, which takes the name\n    of the relationship as the first parameter, the kind of\n    relationship (`hasMany` or `belongsTo`) as the second parameter, and\n    the method (`serialize` or `deserialize`) as the third parameter.\n  \n    @class RESTSerializer\n    @main @ember-data/serializer/rest\n    @public\n    @extends JSONSerializer\n  */\n  const RESTSerializer = _exports.default = _json.default.extend({\n    /**\n     `keyForPolymorphicType` can be used to define a custom key when\n     serializing and deserializing a polymorphic type. By default, the\n     returned key is `${key}Type`.\n      Example\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        keyForPolymorphicType(key, relationship) {\n          let relationshipKey = this.keyForRelationship(key);\n           return 'type-' + relationshipKey;\n        }\n      }\n      ```\n      @method keyForPolymorphicType\n      @public\n     @param {String} key\n     @param {String} typeClass\n     @param {String} method\n     @return {String} normalized key\n    */\n    keyForPolymorphicType(key, typeClass, method) {\n      let relationshipKey = this.keyForRelationship(key);\n      return `${relationshipKey}Type`;\n    },\n    /**\n      Normalizes a part of the JSON payload returned by\n      the server. You should override this method, munge the hash\n      and call super if you have generic normalization to do.\n       It takes the type of the record that is being normalized\n      (as a Model class), the property where the hash was\n      originally found, and the hash to normalize.\n       For example, if you have a payload that looks like this:\n       ```js\n      {\n        \"post\": {\n          \"id\": 1,\n          \"title\": \"Rails is omakase\",\n          \"comments\": [ 1, 2 ]\n        },\n        \"comments\": [{\n          \"id\": 1,\n          \"body\": \"FIRST\"\n        }, {\n          \"id\": 2,\n          \"body\": \"Rails is unagi\"\n        }]\n      }\n      ```\n       The `normalize` method will be called three times:\n       * With `App.Post`, `\"posts\"` and `{ id: 1, title: \"Rails is omakase\", ... }`\n      * With `App.Comment`, `\"comments\"` and `{ id: 1, body: \"FIRST\" }`\n      * With `App.Comment`, `\"comments\"` and `{ id: 2, body: \"Rails is unagi\" }`\n       You can use this method, for example, to normalize underscored keys to camelized\n      or other general-purpose normalizations. You will only need to implement\n      `normalize` and manipulate the payload as desired.\n       For example, if the `IDs` under `\"comments\"` are provided as `_id` instead of\n      `id`, you can specify how to normalize just the comments:\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        normalize(model, hash, prop) {\n          if (prop === 'comments') {\n            hash.id = hash._id;\n            delete hash._id;\n          }\n           return super.normalize(...arguments);\n        }\n      }\n      ```\n       On each call to the `normalize` method, the third parameter (`prop`) is always\n      one of the keys that were in the original payload or in the result of another\n      normalization as `normalizeResponse`.\n       @method normalize\n      @public\n      @param {Model} modelClass\n      @param {Object} resourceHash\n      @param {String} prop\n      @return {Object}\n    */\n\n    /**\n      Normalizes an array of resource payloads and returns a JSON-API Document\n      with primary data and, if any, included data as `{ data, included }`.\n       @method _normalizeArray\n      @param {Store} store\n      @param {String} modelName\n      @param {Object} arrayHash\n      @param {String} prop\n      @return {Object}\n      @private\n    */\n    _normalizeArray(store, modelName, arrayHash, prop) {\n      let documentHash = {\n        data: [],\n        included: []\n      };\n      let modelClass = store.modelFor(modelName);\n      let serializer = store.serializerFor(modelName);\n      makeArray(arrayHash).forEach(hash => {\n        let {\n          data,\n          included\n        } = this._normalizePolymorphicRecord(store, hash, prop, modelClass, serializer);\n        documentHash.data.push(data);\n        if (included) {\n          documentHash.included = documentHash.included.concat(included);\n        }\n      });\n      return documentHash;\n    },\n    _normalizePolymorphicRecord(store, hash, prop, primaryModelClass, primarySerializer) {\n      let serializer = primarySerializer;\n      let modelClass = primaryModelClass;\n      let primaryHasTypeAttribute = primaryModelClass.fields.has('type');\n      if (!primaryHasTypeAttribute && hash.type) {\n        // Support polymorphic records in async relationships\n        let modelName = this.modelNameFromPayloadKey(hash.type);\n        if (store.getSchemaDefinitionService().doesTypeExist(modelName)) {\n          serializer = store.serializerFor(modelName);\n          modelClass = store.modelFor(modelName);\n        }\n      }\n      return serializer.normalize(modelClass, hash, prop);\n    },\n    /**\n      @method _normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @param {Boolean} isSingle\n      @return {Object} JSON-API Document\n      @private\n    */\n    _normalizeResponse(store, primaryModelClass, payload, id, requestType, isSingle) {\n      let documentHash = {\n        data: null,\n        included: []\n      };\n      let meta = this.extractMeta(store, primaryModelClass, payload);\n      if (meta) {\n        (true && !(typeof meta === 'object') && (0, _debug.assert)('The `meta` returned from `extractMeta` has to be an object, not \"' + typeof meta + '\".', typeof meta === 'object'));\n        documentHash.meta = meta;\n      }\n      let keys = Object.keys(payload);\n      for (var i = 0, length = keys.length; i < length; i++) {\n        var prop = keys[i];\n        var modelName = prop;\n        var forcedSecondary = false;\n\n        /*\n          If you want to provide sideloaded records of the same type that the\n          primary data you can do that by prefixing the key with `_`.\n           Example\n           ```\n          {\n            users: [\n              { id: 1, title: 'Tom', manager: 3 },\n              { id: 2, title: 'Yehuda', manager: 3 }\n            ],\n            _users: [\n              { id: 3, title: 'Tomster' }\n            ]\n          }\n          ```\n           This forces `_users` to be added to `included` instead of `data`.\n         */\n        if (prop.charAt(0) === '_') {\n          forcedSecondary = true;\n          modelName = prop.substr(1);\n        }\n        var typeName = this.modelNameFromPayloadKey(modelName);\n        if (!store.getSchemaDefinitionService().doesTypeExist(typeName)) {\n          (true && (0, _debug.warn)(this.warnMessageNoModelForKey(modelName, typeName), false, {\n            id: 'ds.serializer.model-for-key-missing'\n          }));\n          continue;\n        }\n        var isPrimary = !forcedSecondary && this.isPrimaryType(store, typeName, primaryModelClass);\n        var value = payload[prop];\n        if (value === null) {\n          continue;\n        }\n        (true && !(!(requestType === 'queryRecord' && isPrimary && Array.isArray(value))) && (0, _debug.assert)('The adapter returned an array for the primary data of a `queryRecord` response. `queryRecord` should return a single record.', !(requestType === 'queryRecord' && isPrimary && Array.isArray(value))));\n        /*\n          Support primary data as an object instead of an array.\n           Example\n           ```\n          {\n            user: { id: 1, title: 'Tom', manager: 3 }\n          }\n          ```\n         */\n        if (isPrimary && !Array.isArray(value)) {\n          let {\n            data,\n            included\n          } = this._normalizePolymorphicRecord(store, value, prop, primaryModelClass, this);\n          documentHash.data = data;\n          if (included) {\n            documentHash.included = documentHash.included.concat(included);\n          }\n          continue;\n        }\n        let {\n          data,\n          included\n        } = this._normalizeArray(store, typeName, value, prop);\n        if (included) {\n          documentHash.included = documentHash.included.concat(included);\n        }\n        if (isSingle) {\n          data.forEach(resource => {\n            /*\n              Figures out if this is the primary record or not.\n               It's either:\n               1. The record with the same ID as the original request\n              2. If it's a newly created record without an ID, the first record\n                 in the array\n             */\n            let isUpdatedRecord = isPrimary && (0, _private.coerceId)(resource.id) === id;\n            let isFirstCreatedRecord = isPrimary && !id && !documentHash.data;\n            if (isFirstCreatedRecord || isUpdatedRecord) {\n              documentHash.data = resource;\n            } else {\n              documentHash.included.push(resource);\n            }\n          });\n        } else {\n          if (isPrimary) {\n            documentHash.data = data;\n          } else {\n            if (data) {\n              documentHash.included = documentHash.included.concat(data);\n            }\n          }\n        }\n      }\n      return documentHash;\n    },\n    isPrimaryType(store, modelName, primaryModelClass) {\n      return (0, _string.dasherize)(modelName) === primaryModelClass.modelName;\n    },\n    /**\n      This method allows you to push a payload containing top-level\n      collections of records organized per type.\n       ```js\n      {\n        \"posts\": [{\n          \"id\": \"1\",\n          \"title\": \"Rails is omakase\",\n          \"author\", \"1\",\n          \"comments\": [ \"1\" ]\n        }],\n        \"comments\": [{\n          \"id\": \"1\",\n          \"body\": \"FIRST\"\n        }],\n        \"users\": [{\n          \"id\": \"1\",\n          \"name\": \"@d2h\"\n        }]\n      }\n      ```\n       It will first normalize the payload, so you can use this to push\n      in data streaming in from your server structured the same way\n      that fetches and saves are structured.\n       @method pushPayload\n      @public\n      @param {Store} store\n      @param {Object} payload\n    */\n    pushPayload(store, payload) {\n      let documentHash = {\n        data: [],\n        included: []\n      };\n      for (var prop in payload) {\n        var modelName = this.modelNameFromPayloadKey(prop);\n        if (!store.getSchemaDefinitionService().doesTypeExist(modelName)) {\n          (true && (0, _debug.warn)(this.warnMessageNoModelForKey(prop, modelName), false, {\n            id: 'ds.serializer.model-for-key-missing'\n          }));\n          continue;\n        }\n        var type = store.modelFor(modelName);\n        var typeSerializer = store.serializerFor(type.modelName);\n        makeArray(payload[prop]).forEach(hash => {\n          let {\n            data,\n            included\n          } = typeSerializer.normalize(type, hash, prop);\n          documentHash.data.push(data);\n          if (included) {\n            documentHash.included = documentHash.included.concat(included);\n          }\n        });\n      }\n      store.push(documentHash);\n    },\n    /**\n      This method is used to convert each JSON root key in the payload\n      into a modelName that it can use to look up the appropriate model for\n      that part of the payload.\n       For example, your server may send a model name that does not correspond with\n      the name of the model in your app. Let's take a look at an example model,\n      and an example payload:\n       ```app/models/post.js\n      import Model from '@ember-data/model';\n       export default class Post extends Model {}\n      ```\n       ```javascript\n        {\n          \"blog/post\": {\n            \"id\": \"1\n          }\n        }\n      ```\n       Ember Data is going to normalize the payload's root key for the modelName. As a result,\n      it will try to look up the \"blog/post\" model. Since we don't have a model called \"blog/post\"\n      (or a file called app/models/blog/post.js in ember-cli), Ember Data will throw an error\n      because it cannot find the \"blog/post\" model.\n       Since we want to remove this namespace, we can define a serializer for the application that will\n      remove \"blog/\" from the payload key whenver it's encountered by Ember Data:\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        modelNameFromPayloadKey(payloadKey) {\n          if (payloadKey === 'blog/post') {\n            return super.modelNameFromPayloadKey(payloadKey.replace('blog/', ''));\n          } else {\n           return super.modelNameFromPayloadKey(payloadKey);\n          }\n        }\n      }\n      ```\n       After refreshing, Ember Data will appropriately look up the \"post\" model.\n       By default the modelName for a model is its\n      name in dasherized form. This means that a payload key like \"blogPost\" would be\n      normalized to \"blog-post\" when Ember Data looks up the model. Usually, Ember Data\n      can use the correct inflection to do this for you. Most of the time, you won't\n      need to override `modelNameFromPayloadKey` for this purpose.\n       @method modelNameFromPayloadKey\n      @public\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    modelNameFromPayloadKey(key) {\n      return (0, _emberInflector.singularize)((0, _string.dasherize)(key));\n    },\n    // SERIALIZE\n\n    /**\n      Called when a record is saved in order to convert the\n      record into JSON.\n       By default, it creates a JSON object with a key for\n      each attribute and belongsTo relationship.\n       For example, consider this model:\n       ```app/models/comment.js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       export default class Comment extends Model {\n        @attr title\n        @attr body\n         @belongsTo('user') author\n      }\n      ```\n       The default serialization would create a JSON object like:\n       ```js\n      {\n        \"title\": \"Rails is unagi\",\n        \"body\": \"Rails? Omakase? O_O\",\n        \"author\": 12\n      }\n      ```\n       By default, attributes are passed through as-is, unless\n      you specified an attribute type (`attr('date')`). If\n      you specify a transform, the JavaScript value will be\n      serialized when inserted into the JSON hash.\n       By default, belongs-to relationships are converted into\n      IDs when inserted into the JSON hash.\n       ## IDs\n       `serialize` takes an options hash with a single option:\n      `includeId`. If this option is `true`, `serialize` will,\n      by default include the ID in the JSON object it builds.\n       The adapter passes in `includeId: true` when serializing\n      a record for `createRecord`, but not for `updateRecord`.\n       ## Customization\n       Your server may expect a different JSON format than the\n      built-in serialization format.\n       In that case, you can implement `serialize` yourself and\n      return a JSON hash of your choosing.\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serialize(snapshot, options) {\n          let json = {\n            POST_TTL: snapshot.attr('title'),\n            POST_BDY: snapshot.attr('body'),\n            POST_CMS: snapshot.hasMany('comments', { ids: true })\n          };\n           if (options.includeId) {\n            json.POST_ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n      ```\n       ## Customizing an App-Wide Serializer\n       If you want to define a serializer for your entire\n      application, you'll probably want to use `eachAttribute`\n      and `eachRelationship` on the record.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { pluralize } from '<app-name>/utils/string-utils';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serialize(snapshot, options) {\n          let json = {};\n           snapshot.eachAttribute(function(name) {\n            json[serverAttributeName(name)] = snapshot.attr(name);\n          });\n           snapshot.eachRelationship(function(name, relationship) {\n            if (relationship.kind === 'hasMany') {\n              json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true });\n            }\n          });\n           if (options.includeId) {\n            json.ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n       function serverAttributeName(attribute) {\n        return attribute.underscore().toUpperCase();\n      }\n       function serverHasManyName(name) {\n        return serverAttributeName(singularize(name)) + \"_IDS\";\n      }\n      ```\n       This serializer will generate JSON that looks like this:\n       ```js\n      {\n        \"TITLE\": \"Rails is omakase\",\n        \"BODY\": \"Yep. Omakase.\",\n        \"COMMENT_IDS\": [ 1, 2, 3 ]\n      }\n      ```\n       ## Tweaking the Default JSON\n       If you just want to do some small tweaks on the default JSON,\n      you can call super first and make the tweaks on the returned\n      JSON.\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serialize(snapshot, options) {\n          let json = super.serialize(snapshot, options);\n           json.subject = json.title;\n          delete json.title;\n           return json;\n        }\n      }\n      ```\n       @method serialize\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} options\n      @return {Object} json\n    */\n    serialize(snapshot, options) {\n      return this._super(...arguments);\n    },\n    /**\n      You can use this method to customize the root keys serialized into the JSON.\n      The hash property should be modified by reference (possibly using something like _.extend)\n      By default the REST Serializer sends the modelName of a model, which is a camelized\n      version of the name.\n       For example, your server may expect underscored root objects.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { decamelize } from '<app-name>/utils/string-utils';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serializeIntoHash(data, type, record, options) {\n          let root = decamelize(type.modelName);\n          data[root] = this.serialize(record, options);\n        }\n      }\n      ```\n       @method serializeIntoHash\n      @public\n      @param {Object} hash\n      @param {Model} typeClass\n      @param {Snapshot} snapshot\n      @param {Object} options\n    */\n    serializeIntoHash(hash, typeClass, snapshot, options) {\n      let normalizedRootKey = this.payloadKeyFromModelName(typeClass.modelName);\n      hash[normalizedRootKey] = this.serialize(snapshot, options);\n    },\n    /**\n      You can use `payloadKeyFromModelName` to override the root key for an outgoing\n      request. By default, the RESTSerializer returns a camelized version of the\n      model's name.\n       For a model called TacoParty, its `modelName` would be the string `taco-party`. The RESTSerializer\n      will send it to the server with `tacoParty` as the root key in the JSON payload:\n       ```js\n      {\n        \"tacoParty\": {\n          \"id\": \"1\",\n          \"location\": \"Matthew Beale's House\"\n        }\n      }\n      ```\n       For example, your server may expect dasherized root objects:\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { dasherize } from '<app-name>/utils/string-utils';\n       export default class ApplicationSerializer extends RESTSerializer {\n        payloadKeyFromModelName(modelName) {\n          return dasherize(modelName);\n        }\n      }\n      ```\n       Given a `TacoParty` model, calling `save` on it would produce an outgoing\n      request like:\n       ```js\n      {\n        \"taco-party\": {\n          \"id\": \"1\",\n          \"location\": \"Matthew Beale's House\"\n        }\n      }\n      ```\n       @method payloadKeyFromModelName\n      @public\n      @param {String} modelName\n      @return {String}\n    */\n    payloadKeyFromModelName(modelName) {\n      return (0, _string.camelize)(modelName);\n    },\n    /**\n      You can use this method to customize how polymorphic objects are serialized.\n      By default the REST Serializer creates the key by appending `Type` to\n      the attribute and value from the model's camelcased model name.\n       @method serializePolymorphicType\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializePolymorphicType(snapshot, json, relationship) {\n      let key = relationship.key;\n      let typeKey = this.keyForPolymorphicType(key, relationship.type, 'serialize');\n      let belongsTo = snapshot.belongsTo(key);\n      if (!belongsTo) {\n        json[typeKey] = null;\n      } else {\n        json[typeKey] = (0, _string.camelize)(belongsTo.modelName);\n      }\n    },\n    /**\n      You can use this method to customize how a polymorphic relationship should\n      be extracted.\n       @method extractPolymorphicRelationship\n      @public\n      @param {Object} relationshipType\n      @param {Object} relationshipHash\n      @param {Object} relationshipOptions\n      @return {Object}\n     */\n    extractPolymorphicRelationship(relationshipType, relationshipHash, relationshipOptions) {\n      let {\n        key,\n        resourceHash,\n        relationshipMeta\n      } = relationshipOptions;\n\n      // A polymorphic belongsTo relationship can be present in the payload\n      // either in the form where the `id` and the `type` are given:\n      //\n      //   {\n      //     message: { id: 1, type: 'post' }\n      //   }\n      //\n      // or by the `id` and a `<relationship>Type` attribute:\n      //\n      //   {\n      //     message: 1,\n      //     messageType: 'post'\n      //   }\n      //\n      // The next code checks if the latter case is present and returns the\n      // corresponding JSON-API representation. The former case is handled within\n      // the base class JSONSerializer.\n      let isPolymorphic = relationshipMeta.options.polymorphic;\n      let typeProperty = this.keyForPolymorphicType(key, relationshipType, 'deserialize');\n      if (isPolymorphic && resourceHash[typeProperty] !== undefined && typeof relationshipHash !== 'object') {\n        let type = this.modelNameFromPayloadKey(resourceHash[typeProperty]);\n        return {\n          id: relationshipHash,\n          type: type\n        };\n      }\n      return this._super(...arguments);\n    }\n  });\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});","define(\"@ember-data/serializer/transform\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\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 _object.default;\n    }\n  });\n});","define(\"@ember-data/store/-private\", [\"exports\", \"@ember-data/store/index-cc461d33\"], function (_exports, _indexCc461d) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"AdapterPopulatedRecordArray\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.h;\n    }\n  });\n  Object.defineProperty(_exports, \"CacheHandler\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.C;\n    }\n  });\n  Object.defineProperty(_exports, \"IDENTIFIER_ARRAY_TAG\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.l;\n    }\n  });\n  Object.defineProperty(_exports, \"IdentifierArray\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.I;\n    }\n  });\n  Object.defineProperty(_exports, \"MUTATE\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.M;\n    }\n  });\n  Object.defineProperty(_exports, \"RecordArray\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.I;\n    }\n  });\n  Object.defineProperty(_exports, \"RecordArrayManager\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.R;\n    }\n  });\n  Object.defineProperty(_exports, \"SOURCE\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.k;\n    }\n  });\n  Object.defineProperty(_exports, \"Store\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.S;\n    }\n  });\n  Object.defineProperty(_exports, \"_clearCaches\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d._;\n    }\n  });\n  Object.defineProperty(_exports, \"coerceId\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.f;\n    }\n  });\n  Object.defineProperty(_exports, \"constructResource\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.e;\n    }\n  });\n  Object.defineProperty(_exports, \"ensureStringId\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.g;\n    }\n  });\n  Object.defineProperty(_exports, \"fastPush\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.m;\n    }\n  });\n  Object.defineProperty(_exports, \"isStableIdentifier\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.i;\n    }\n  });\n  Object.defineProperty(_exports, \"normalizeModelName\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.n;\n    }\n  });\n  Object.defineProperty(_exports, \"notifyArray\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.j;\n    }\n  });\n  Object.defineProperty(_exports, \"peekCache\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.p;\n    }\n  });\n  Object.defineProperty(_exports, \"recordIdentifierFor\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.r;\n    }\n  });\n  Object.defineProperty(_exports, \"removeRecordDataFor\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.o;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierForgetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.c;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierGenerationMethod\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.a;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierResetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.d;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierUpdateMethod\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.b;\n    }\n  });\n  Object.defineProperty(_exports, \"storeFor\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.s;\n    }\n  });\n});","define(\"@ember-data/store/index-cc461d33\", [\"exports\", \"@ember/debug\", \"@ember/string\", \"@ember/application\", \"@ember/object\", \"@ember/runloop\", \"@glimmer/tracking\", \"@ember-data/tracking/-private\", \"@ember/-internals/metal\", \"@ember/object/compat\", \"@ember/utils\", \"@glimmer/validator\", \"ember\", \"@ember/object/computed\", \"@ember/array/proxy\", \"@ember/object/promise-proxy-mixin\", \"@ember/object/proxy\", \"@embroider/macros/es-compat2\"], function (_exports, _debug, _string, _application, _object, _runloop, _tracking, _private, _metal, _compat, _utils, _validator, _ember, _computed, _proxy, _promiseProxyMixin, _proxy2, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.S = _exports.R = _exports.M = _exports.I = _exports.C = void 0;\n  _exports._ = _clearCaches;\n  _exports.a = setIdentifierGenerationMethod;\n  _exports.b = setIdentifierUpdateMethod;\n  _exports.c = setIdentifierForgetMethod;\n  _exports.d = setIdentifierResetMethod;\n  _exports.e = constructResource;\n  _exports.f = coerceId;\n  _exports.g = ensureStringId;\n  _exports.h = void 0;\n  _exports.i = isStableIdentifier;\n  _exports.j = notifyArray;\n  _exports.l = _exports.k = void 0;\n  _exports.m = fastPush;\n  _exports.n = normalizeModelName;\n  _exports.o = removeRecordDataFor;\n  _exports.p = peekCache;\n  _exports.r = recordIdentifierFor;\n  _exports.s = storeFor;\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   This method normalizes a modelName into the format Ember Data uses\n   internally by dasherizing it.\n  \n    @method normalizeModelName\n    @static\n    @public\n    @deprecated\n    @for @ember-data/store\n    @param {String} modelName\n    @return {String} normalizedModelName\n  */function normalizeModelName$1(modelName) {\n    return (0, _string.dasherize)(modelName);\n  }\n  function _initializerDefineProperty(target, property, descriptor, context) {\n    if (!descriptor) return;\n    Object.defineProperty(target, property, {\n      enumerable: descriptor.enumerable,\n      configurable: descriptor.configurable,\n      writable: descriptor.writable,\n      value: descriptor.initializer ? descriptor.initializer.call(context) : void 0\n    });\n  }\n  function _classPrivateFieldBase(receiver, privateKey) {\n    if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {\n      throw new TypeError(\"attempted to use private field on non-instance\");\n    }\n    return receiver;\n  }\n  var id = 0;\n  function _classPrivateFieldKey(name) {\n    return \"__private_\" + id++ + \"_\" + name;\n  }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {\n    var desc = {};\n    Object.keys(descriptor).forEach(function (key) {\n      desc[key] = descriptor[key];\n    });\n    desc.enumerable = !!desc.enumerable;\n    desc.configurable = !!desc.configurable;\n    if ('value' in desc || desc.initializer) {\n      desc.writable = true;\n    }\n    desc = decorators.slice().reverse().reduce(function (desc, decorator) {\n      return decorator(target, property, desc) || desc;\n    }, desc);\n    if (context && desc.initializer !== void 0) {\n      desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n      desc.initializer = undefined;\n    }\n    if (desc.initializer === void 0) {\n      Object.defineProperty(target, property, desc);\n      desc = null;\n    }\n    return desc;\n  }\n  var _class$3, _descriptor$3, _descriptor2$1, _descriptor3, _descriptor4, _store$1, _request;\n  function urlFromLink(link) {\n    if (typeof link === 'string') return link;\n    return link.href;\n  }\n  let Document = (_class$3 = (_store$1 = /*#__PURE__*/_classPrivateFieldKey(\"store\"), _request = /*#__PURE__*/_classPrivateFieldKey(\"request\"), class Document {\n    constructor(store, identifier) {\n      Object.defineProperty(this, _request, {\n        value: _request2\n      });\n      _initializerDefineProperty(this, \"links\", _descriptor$3, this);\n      _initializerDefineProperty(this, \"data\", _descriptor2$1, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor3, this);\n      _initializerDefineProperty(this, \"meta\", _descriptor4, this);\n      Object.defineProperty(this, _store$1, {\n        writable: true,\n        value: void 0\n      });\n      _classPrivateFieldBase(this, _store$1)[_store$1] = store;\n      this.identifier = identifier;\n    }\n    fetch() {\n      var _this$links, _this$identifier;\n      let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      (true && !(_this$links.self) && (0, _debug.assert)(`No self link`, (_this$links = this.links) === null || _this$links === void 0 ? void 0 : _this$links.self));\n      options.cacheOptions = options.cacheOptions || {};\n      options.cacheOptions.key = (_this$identifier = this.identifier) === null || _this$identifier === void 0 ? void 0 : _this$identifier.lid;\n      return _classPrivateFieldBase(this, _request)[_request]('self', options);\n    }\n    next(options) {\n      return _classPrivateFieldBase(this, _request)[_request]('next', options);\n    }\n    prev(options) {\n      return _classPrivateFieldBase(this, _request)[_request]('prev', options);\n    }\n    first(options) {\n      return _classPrivateFieldBase(this, _request)[_request]('first', options);\n    }\n    last(options) {\n      return _classPrivateFieldBase(this, _request)[_request]('last', options);\n    }\n    toJSON() {\n      const data = {};\n      data.identifier = this.identifier;\n      if (this.data !== undefined) {\n        data.data = this.data;\n      }\n      if (this.links !== undefined) {\n        data.links = this.links;\n      }\n      if (this.errors !== undefined) {\n        data.errors = this.errors;\n      }\n      if (this.meta !== undefined) {\n        data.meta = this.meta;\n      }\n      return data;\n    }\n  }), _descriptor$3 = _applyDecoratedDescriptor(_class$3.prototype, \"links\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2$1 = _applyDecoratedDescriptor(_class$3.prototype, \"data\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class$3.prototype, \"errors\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class$3.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class$3);\n  async function _request2(link) {\n    var _this$links2;\n    let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    const href = (_this$links2 = this.links) === null || _this$links2 === void 0 ? void 0 : _this$links2[link];\n    if (!href) {\n      return null;\n    }\n    const response = await _classPrivateFieldBase(this, _store$1)[_store$1].request(Object.assign(options, {\n      url: urlFromLink(href)\n    }));\n    return response.content;\n  }\n\n  /**\n   * A service which an application may provide to the store via\n   * the store's `lifetimes` property to configure the behavior\n   * of the CacheHandler.\n   *\n   * The default behavior for request lifetimes is to never expire\n   * unless manually refreshed via `cacheOptions.reload` or `cacheOptions.backgroundReload`.\n   *\n   * Implementing this service allows you to programatically define\n   * when a request should be considered expired.\n   *\n   * @class <Interface> LifetimesService\n   * @public\n   */\n\n  const MUTATION_OPS = new Set(['createRecord', 'updateRecord', 'deleteRecord']);\n  function isErrorDocument(document) {\n    return 'errors' in document;\n  }\n  function maybeUpdateUiObjects(store, request, options, document, isFromCache) {\n    const {\n      identifier\n    } = options;\n    if (!document) {\n      (true && !(!options.shouldHydrate) && (0, _debug.assert)(`The CacheHandler expected response content but none was found`, !options.shouldHydrate));\n      return document;\n    }\n    if (isErrorDocument(document)) {\n      if (!identifier && !options.shouldHydrate) {\n        return document;\n      }\n      let doc;\n      if (identifier) {\n        doc = store._documentCache.get(identifier);\n      }\n      if (!doc) {\n        doc = new Document(store, identifier);\n        copyDocumentProperties(doc, document);\n        if (identifier) {\n          store._documentCache.set(identifier, doc);\n        }\n      } else if (!isFromCache) {\n        doc.data = undefined;\n        copyDocumentProperties(doc, document);\n      }\n      return options.shouldHydrate ? doc : document;\n    }\n    if (Array.isArray(document.data)) {\n      const {\n        recordArrayManager\n      } = store;\n      if (!identifier) {\n        if (!options.shouldHydrate) {\n          return document;\n        }\n        const data = recordArrayManager.createArray({\n          type: request.url,\n          identifiers: document.data,\n          doc: document,\n          query: request\n        });\n        const doc = new Document(store, null);\n        doc.data = data;\n        doc.meta = document.meta;\n        doc.links = document.links;\n        return doc;\n      }\n      let managed = recordArrayManager._keyedArrays.get(identifier.lid);\n      if (!managed) {\n        managed = recordArrayManager.createArray({\n          type: identifier.lid,\n          identifiers: document.data,\n          doc: document\n        });\n        recordArrayManager._keyedArrays.set(identifier.lid, managed);\n        const doc = new Document(store, identifier);\n        doc.data = managed;\n        doc.meta = document.meta;\n        doc.links = document.links;\n        store._documentCache.set(identifier, doc);\n        return options.shouldHydrate ? doc : document;\n      } else {\n        const doc = store._documentCache.get(identifier);\n        if (!isFromCache) {\n          recordArrayManager.populateManagedArray(managed, document.data, document);\n          doc.data = managed;\n          doc.meta = document.meta;\n          doc.links = document.links;\n        }\n        return options.shouldHydrate ? doc : document;\n      }\n    } else {\n      if (!identifier && !options.shouldHydrate) {\n        return document;\n      }\n      const data = document.data ? store.peekRecord(document.data) : null;\n      let doc;\n      if (identifier) {\n        doc = store._documentCache.get(identifier);\n      }\n      if (!doc) {\n        doc = new Document(store, identifier);\n        doc.data = data;\n        copyDocumentProperties(doc, document);\n        if (identifier) {\n          store._documentCache.set(identifier, doc);\n        }\n      } else if (!isFromCache) {\n        doc.data = data;\n        copyDocumentProperties(doc, document);\n      }\n      return options.shouldHydrate ? doc : document;\n    }\n  }\n  function calcShouldFetch(store, request, hasCachedValue, identifier) {\n    const {\n      cacheOptions\n    } = request;\n    return request.op && MUTATION_OPS.has(request.op) || (cacheOptions === null || cacheOptions === void 0 ? void 0 : cacheOptions.reload) || !hasCachedValue || (store.lifetimes && identifier ? store.lifetimes.isHardExpired(identifier, store) : false);\n  }\n  function calcShouldBackgroundFetch(store, request, willFetch, identifier) {\n    const {\n      cacheOptions\n    } = request;\n    return !willFetch && ((cacheOptions === null || cacheOptions === void 0 ? void 0 : cacheOptions.backgroundReload) || (store.lifetimes && identifier ? store.lifetimes.isSoftExpired(identifier, store) : false));\n  }\n  function isMutation(request) {\n    return Boolean(request.op && MUTATION_OPS.has(request.op));\n  }\n  function fetchContentAndHydrate(next, context, identifier, shouldFetch, shouldBackgroundFetch) {\n    var _store$lifetimes, _context$request$data4, _context$request$reco4;\n    const {\n      store\n    } = context.request;\n    const shouldHydrate = context.request[EnableHydration] || false;\n    let isMut = false;\n    if (isMutation(context.request)) {\n      var _context$request$data, _context$request$reco;\n      isMut = true;\n      // TODO should we handle multiple records in request.records by iteratively calling willCommit for each\n      const record = ((_context$request$data = context.request.data) === null || _context$request$data === void 0 ? void 0 : _context$request$data.record) || ((_context$request$reco = context.request.records) === null || _context$request$reco === void 0 ? void 0 : _context$request$reco[0]);\n      (true && !(record || !shouldHydrate) && (0, _debug.assert)(`Expected to receive a list of records included in the ${context.request.op} request`, record || !shouldHydrate));\n      if (record) {\n        store.cache.willCommit(record, context);\n      }\n    }\n    if ((_store$lifetimes = store.lifetimes) !== null && _store$lifetimes !== void 0 && _store$lifetimes.willRequest) {\n      store.lifetimes.willRequest(context.request, identifier, store);\n    }\n    const promise = next(context.request).then(document => {\n      var _store$lifetimes2;\n      store.requestManager._pending.delete(context.id);\n      store._enableAsyncFlush = true;\n      let response;\n      store._join(() => {\n        if (isMutation(context.request)) {\n          var _context$request$data2, _context$request$reco2;\n          const record = ((_context$request$data2 = context.request.data) === null || _context$request$data2 === void 0 ? void 0 : _context$request$data2.record) || ((_context$request$reco2 = context.request.records) === null || _context$request$reco2 === void 0 ? void 0 : _context$request$reco2[0]);\n          if (record) {\n            response = store.cache.didCommit(record, document);\n\n            // a mutation combined with a 204 has no cache impact when no known records were involved\n            // a createRecord with a 201 with an empty response and no known records should similarly\n            // have no cache impact\n          } else if (isCacheAffecting(document)) {\n            response = store.cache.put(document);\n          }\n        } else {\n          response = store.cache.put(document);\n        }\n        response = maybeUpdateUiObjects(store, context.request, {\n          shouldHydrate,\n          shouldFetch,\n          shouldBackgroundFetch,\n          identifier\n        }, response, false);\n      });\n      store._enableAsyncFlush = null;\n      if ((_store$lifetimes2 = store.lifetimes) !== null && _store$lifetimes2 !== void 0 && _store$lifetimes2.didRequest) {\n        store.lifetimes.didRequest(context.request, document.response, identifier, store);\n      }\n      if (shouldFetch) {\n        return response;\n      } else if (shouldBackgroundFetch) {\n        store.notifications._flush();\n      }\n    }, error => {\n      var _context$request$sign, _store$lifetimes3;\n      store.requestManager._pending.delete(context.id);\n      if ((_context$request$sign = context.request.signal) !== null && _context$request$sign !== void 0 && _context$request$sign.aborted) {\n        throw error;\n      }\n      store.requestManager._pending.delete(context.id);\n      store._enableAsyncFlush = true;\n      let response;\n      store._join(() => {\n        if (isMutation(context.request)) {\n          var _context$request$data3, _context$request$reco3;\n          // TODO similar to didCommit we should spec this to be similar to cache.put for handling full response\n          // currently we let the response remain undefiend.\n          const errors = error && error.content && typeof error.content === 'object' && 'errors' in error.content && Array.isArray(error.content.errors) ? error.content.errors : undefined;\n          const record = ((_context$request$data3 = context.request.data) === null || _context$request$data3 === void 0 ? void 0 : _context$request$data3.record) || ((_context$request$reco3 = context.request.records) === null || _context$request$reco3 === void 0 ? void 0 : _context$request$reco3[0]);\n          store.cache.commitWasRejected(record, errors);\n          // re-throw the original error to preserve `errors` property.\n          throw error;\n        } else {\n          response = store.cache.put(error);\n          response = maybeUpdateUiObjects(store, context.request, {\n            shouldHydrate,\n            shouldFetch,\n            shouldBackgroundFetch,\n            identifier\n          }, response, false);\n        }\n      });\n      store._enableAsyncFlush = null;\n      if (identifier && (_store$lifetimes3 = store.lifetimes) !== null && _store$lifetimes3 !== void 0 && _store$lifetimes3.didRequest) {\n        store.lifetimes.didRequest(context.request, error.response, identifier, store);\n      }\n      if (!shouldBackgroundFetch) {\n        const newError = cloneError(error);\n        newError.content = response;\n        throw newError;\n      } else {\n        store.notifications._flush();\n      }\n    });\n    if (!isMut) {\n      return promise;\n    }\n    (true && !(isMutation(context.request)) && (0, _debug.assert)(`Expected a mutation`, isMutation(context.request))); // for mutations we need to enqueue the promise with the requestStateService\n    // TODO should we enque a request per record in records?\n    const record = ((_context$request$data4 = context.request.data) === null || _context$request$data4 === void 0 ? void 0 : _context$request$data4.record) || ((_context$request$reco4 = context.request.records) === null || _context$request$reco4 === void 0 ? void 0 : _context$request$reco4[0]);\n    return store._requestCache._enqueue(promise, {\n      data: [{\n        op: 'saveRecord',\n        recordIdentifier: record,\n        options: undefined\n      }]\n    });\n  }\n  function isAggregateError(error) {\n    return error instanceof AggregateError || error.name === 'AggregateError' && Array.isArray(error.errors);\n  }\n  // TODO @runspired, consider if we should deep freeze errors (potentially only in debug) vs cloning them\n  function cloneError(error) {\n    const isAggregate = isAggregateError(error);\n    const cloned = isAggregate ?\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n    new AggregateError(structuredClone(error.errors), error.message) : new Error(error.message);\n    cloned.stack = error.stack;\n    cloned.error = error.error;\n\n    // copy over enumerable properties\n    Object.assign(cloned, error);\n    return cloned;\n  }\n  const SkipCache = Symbol.for('ember-data:skip-cache');\n  const EnableHydration = Symbol.for('ember-data:enable-hydration');\n\n  /**\n   * A CacheHandler that adds support for using an EmberData Cache with a RequestManager.\n   *\n   * This handler will only run when a request has supplied a `store` instance. Requests\n   * issued by the store via `store.request()` will automatically have the `store` instance\n   * attached to the request.\n   *\n   * ```ts\n   * requestManager.request({\n   *   store: store,\n   *   url: '/api/posts',\n   *   method: 'GET'\n   * });\n   * ```\n   *\n   * When this handler elects to handle a request, it will return the raw `StructuredDocument`\n   * unless the request has `[EnableHydration]` set to `true`. In this case, the handler will\n   * return a `Document` instance that will automatically update the UI when the cache is updated\n   * in the future and will hydrate any identifiers in the StructuredDocument into Record instances.\n   *\n   * When issuing a request via the store, [EnableHydration] is automatically set to `true`. This\n   * means that if desired you can issue requests that utilize the cache without needing to also\n   * utilize Record instances if desired.\n   *\n   * Said differently, you could elect to issue all requests via a RequestManager, without ever using\n   * the store directly, by setting [EnableHydration] to `true` and providing a store instance. Not\n   * necessarily the most useful thing, but the decoupled nature of the RequestManager and incremental-feature\n   * approach of EmberData allows for this flexibility.\n   *\n   * ```ts\n   * import { EnableHydration } from '@warp-drive/core-types/request';\n   *\n   * requestManager.request({\n   *   store: store,\n   *   url: '/api/posts',\n   *   method: 'GET',\n   *   [EnableHydration]: true\n   * });\n   *\n   * @typedoc\n   */\n  const CacheHandler = _exports.C = {\n    request(context, next) {\n      var _context$request$cach;\n      // if we have no cache or no cache-key skip cache handling\n      if (!context.request.store || (_context$request$cach = context.request.cacheOptions) !== null && _context$request$cach !== void 0 && _context$request$cach[SkipCache]) {\n        return next(context.request);\n      }\n      const {\n        store\n      } = context.request;\n      const identifier = store.identifierCache.getOrCreateDocumentIdentifier(context.request);\n      const peeked = identifier ? store.cache.peekRequest(identifier) : null;\n\n      // determine if we should skip cache\n      if (calcShouldFetch(store, context.request, !!peeked, identifier)) {\n        return fetchContentAndHydrate(next, context, identifier, true, false);\n      }\n\n      // if we have not skipped cache, determine if we should update behind the scenes\n      if (calcShouldBackgroundFetch(store, context.request, false, identifier)) {\n        const promise = fetchContentAndHydrate(next, context, identifier, false, true);\n        store.requestManager._pending.set(context.id, promise);\n      }\n      const shouldHydrate = context.request[EnableHydration] || false;\n      if ('error' in peeked) {\n        const content = shouldHydrate ? maybeUpdateUiObjects(store, context.request, {\n          shouldHydrate,\n          identifier\n        }, peeked.content, true) : peeked.content;\n        const newError = cloneError(peeked);\n        newError.content = content;\n        throw newError;\n      }\n      const result = shouldHydrate ? maybeUpdateUiObjects(store, context.request, {\n        shouldHydrate,\n        identifier\n      }, peeked.content, true) : peeked.content;\n      return result;\n    }\n  };\n  function copyDocumentProperties(target, source) {\n    if ('links' in source) {\n      target.links = source.links;\n    }\n    if ('meta' in source) {\n      target.meta = source.meta;\n    }\n    if ('errors' in source) {\n      target.errors = source.errors;\n    }\n  }\n  function isCacheAffecting(document) {\n    var _document$response, _document$response2;\n    if (!isMutation(document.request)) {\n      return true;\n    }\n    // a mutation combined with a 204 has no cache impact when no known records were involved\n    // a createRecord with a 201 with an empty response and no known records should similarly\n    // have no cache impact\n\n    if (document.request.op === 'createRecord' && ((_document$response = document.response) === null || _document$response === void 0 ? void 0 : _document$response.status) === 201) {\n      return document.content ? Object.keys(document.content).length > 0 : false;\n    }\n    return ((_document$response2 = document.response) === null || _document$response2 === void 0 ? void 0 : _document$response2.status) !== 204;\n  }\n\n  /*\n   * Returns the Cache instance associated with a given\n   * Model or Identifier\n   */\n\n  const CacheForIdentifierCache = new Map();\n  function setCacheFor(identifier, cache) {\n    (true && !(!CacheForIdentifierCache.has(identifier) || CacheForIdentifierCache.get(identifier) === cache) && (0, _debug.assert)(`Illegal set of identifier`, !CacheForIdentifierCache.has(identifier) || CacheForIdentifierCache.get(identifier) === cache));\n    CacheForIdentifierCache.set(identifier, cache);\n  }\n  function removeRecordDataFor(identifier) {\n    CacheForIdentifierCache.delete(identifier);\n  }\n  function peekCache(instance) {\n    if (CacheForIdentifierCache.has(instance)) {\n      return CacheForIdentifierCache.get(instance);\n    }\n    return null;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  // Used by the store to normalize IDs entering the store.  Despite the fact\n  // that developers may provide IDs as numbers (e.g., `store.findRecord('person', 1)`),\n  // it is important that internally we use strings, since IDs may be serialized\n  // and lose type information.  For example, Ember's router may put a record's\n  // ID into the URL, and if we later try to deserialize that URL and find the\n  // corresponding record, we will not know if it is a string or a number.\n\n  function coerceId(id) {\n    if (id === null || id === undefined || id === '') {\n      return null;\n    }\n    if (typeof id === 'string') {\n      return id;\n    }\n    if (typeof id === 'symbol') {\n      return id.toString();\n    }\n    return '' + id;\n  }\n  function ensureStringId(id) {\n    let normalized = null;\n    if (typeof id === 'string') {\n      normalized = id.length > 0 ? id : null;\n    } else if (typeof id === 'number' && !isNaN(id)) {\n      normalized = '' + id;\n    }\n    if (normalized === null) {\n      throw new Error(`Expected id to be a string or number, received ${String(id)}`);\n    }\n    return normalized;\n  }\n\n  // provided for additional debuggability\n  const DEBUG_CLIENT_ORIGINATED = Symbol('record-originated-on-client');\n  const DEBUG_IDENTIFIER_BUCKET = Symbol('identifier-bucket');\n  function isNonEmptyString(str) {\n    return str && typeof str === 'string';\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function installPolyfill() {\n    const isFastBoot = typeof FastBoot !== 'undefined';\n    const CRYPTO = isFastBoot ? FastBoot.require('crypto') : window.crypto;\n    if (!CRYPTO.randomUUID) {\n      // we might be able to optimize this by requesting more bytes than we need at a time\n      const rng = function () {\n        // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n        let rnds8 = new Uint8Array(16);\n        if (!CRYPTO.getRandomValues && !isFastBoot) {\n          throw new Error(`Unable to generate bytes for UUID`);\n        }\n        return CRYPTO.getRandomValues ? CRYPTO.getRandomValues(rnds8) : CRYPTO.randomFillSync(rnds8);\n      };\n\n      /*\n       * Convert array of 16 byte values to UUID string format of the form:\n       * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n       */\n      const byteToHex = [];\n      for (let i = 0; i < 256; ++i) {\n        byteToHex[i] = (i + 0x100).toString(16).substr(1);\n      }\n      const bytesToUuid = function (buf) {\n        let bth = byteToHex;\n        // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n        return [bth[buf[0]], bth[buf[1]], bth[buf[2]], bth[buf[3]], '-', bth[buf[4]], bth[buf[5]], '-', bth[buf[6]], bth[buf[7]], '-', bth[buf[8]], bth[buf[9]], '-', bth[buf[10]], bth[buf[11]], bth[buf[12]], bth[buf[13]], bth[buf[14]], bth[buf[15]]].join('');\n      };\n      CRYPTO.randomUUID = function uuidv4() {\n        let rnds = rng();\n\n        // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n        rnds[6] = rnds[6] & 0x0f | 0x40;\n        rnds[8] = rnds[8] & 0x3f | 0x80;\n        return bytesToUuid(rnds);\n      };\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  const IDENTIFIERS = new Set();\n  const DOCUMENTS = new Set();\n  function isStableIdentifier(identifier) {\n    return IDENTIFIERS.has(identifier);\n  }\n  function isDocumentIdentifier(identifier) {\n    return DOCUMENTS.has(identifier);\n  }\n  const isFastBoot = typeof FastBoot !== 'undefined';\n  const _crypto = isFastBoot ? FastBoot.require('crypto') : window.crypto;\n  {\n    installPolyfill();\n  }\n  function uuidv4() {\n    (true && !(_crypto.randomUUID) && (0, _debug.assert)('crypto.randomUUID needs to be avaliable. Some browsers incorrectly disallow it in insecure contexts. You maybe want to enable the polyfill: https://github.com/emberjs/data#randomuuid-polyfill', _crypto.randomUUID));\n    return _crypto.randomUUID();\n  }\n  function freeze(obj) {\n    if (typeof Object.freeze === 'function') {\n      return Object.freeze(obj);\n    }\n    return obj;\n  }\n  let configuredForgetMethod;\n  let configuredGenerationMethod;\n  let configuredResetMethod;\n  let configuredUpdateMethod;\n  function setIdentifierGenerationMethod(method) {\n    configuredGenerationMethod = method;\n  }\n  function setIdentifierUpdateMethod(method) {\n    configuredUpdateMethod = method;\n  }\n  function setIdentifierForgetMethod(method) {\n    configuredForgetMethod = method;\n  }\n  function setIdentifierResetMethod(method) {\n    configuredResetMethod = method;\n  }\n  function defaultGenerationMethod(data, bucket) {\n    if (bucket === 'record') {\n      if (isNonEmptyString(data.lid)) {\n        return data.lid;\n      }\n      if (data.id !== undefined) {\n        let {\n          type,\n          id\n        } = data;\n        // TODO: add test for id not a string\n        if (isNonEmptyString(coerceId(id))) {\n          return `@lid:${normalizeModelName$1(type)}-${id}`;\n        }\n      }\n      return uuidv4();\n    } else if (bucket === 'document') {\n      if (!data.url) {\n        return null;\n      }\n      if (!data.method || data.method.toUpperCase() === 'GET') {\n        return data.url;\n      }\n      return null;\n    }\n    (true && !(false) && (0, _debug.assert)(`Unknown bucket ${bucket}`, false));\n  }\n  function defaultEmptyCallback() {}\n  let DEBUG_MAP;\n  {\n    DEBUG_MAP = new WeakMap();\n  }\n\n  /**\n   * Each instance of {Store} receives a unique instance of a IdentifierCache.\n   *\n   * This cache is responsible for assigning or retrieving the unique identify\n   * for arbitrary resource data encountered by the store. Data representing\n   * a unique resource or record should always be represented by the same\n   * identifier.\n   *\n   * It can be configured by consuming applications.\n   *\n   * @class IdentifierCache\n     @public\n   */\n  class IdentifierCache {\n    constructor() {\n      this._cache = {\n        lids: new Map(),\n        types: Object.create(null),\n        documents: new Map()\n      };\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      this._isDefaultConfig = !configuredGenerationMethod;\n    }\n\n    /**\n     * Internal hook to allow management of merge conflicts with identifiers.\n     *\n     * we allow late binding of this private internal merge so that\n     * the cache can insert itself here to handle elimination of duplicates\n     *\n     * @method __configureMerge\n     * @private\n     */\n    __configureMerge(method) {\n      this._merge = method || defaultEmptyCallback;\n    }\n\n    /**\n     * @method _getRecordIdentifier\n     * @private\n     */\n\n    _getRecordIdentifier(resource) {\n      let shouldGenerate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 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 (!this._cache.lids.has(resource.lid) || this._cache.lids.get(resource.lid) !== resource) {\n            throw new Error(`The supplied identifier ${resource} does not belong to this store instance`);\n          }\n        }\n        return resource;\n      }\n      let lid = coerceId(resource.lid);\n      let identifier = lid !== null ? this._cache.lids.get(lid) : undefined;\n      if (identifier !== undefined) {\n        return identifier;\n      }\n      if (shouldGenerate === false) {\n        if (!resource.type || !resource.id) {\n          return;\n        }\n      }\n\n      // `type` must always be present\n      (true && !('type' in resource && isNonEmptyString(resource.type)) && (0, _debug.assert)('resource.type needs to be a string', 'type' in resource && isNonEmptyString(resource.type)));\n      let type = resource.type && normalizeModelName$1(resource.type);\n      let id = coerceId(resource.id);\n      let keyOptions = getTypeIndex(this._cache.types, type);\n\n      // go straight for the stable RecordIdentifier key'd to `lid`\n      if (lid !== null) {\n        identifier = keyOptions.lid.get(lid);\n      }\n\n      // we may have not seen this resource before\n      // but just in case we check our own secondary lookup (`id`)\n      if (identifier === undefined && id !== null) {\n        identifier = keyOptions.id.get(id);\n      }\n      if (identifier === undefined) {\n        // we have definitely not seen this resource before\n        // so we allow the user configured `GenerationMethod` to tell us\n        let newLid = this._generate(resource, 'record');\n        // we do this _even_ when `lid` is present because secondary lookups\n        // may need to be populated, but we enforce not giving us something\n        // different than expected\n        if (lid !== null && newLid !== lid) {\n          throw new Error(`You should not change the <lid> of a RecordIdentifier`);\n        } else if (lid === null && !this._isDefaultConfig) {\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.get(newLid);\n        }\n        if (shouldGenerate === true) {\n          if (identifier === undefined) {\n            // if we still don't have an identifier, time to generate one\n            identifier = makeStableRecordIdentifier(id, type, newLid, 'record', false);\n\n            // populate our unique table\n            {\n              // realistically if you hit this it means you changed `type` :/\n              // TODO consider how to handle type change assertions more gracefully\n              if (this._cache.lids.has(identifier.lid)) {\n                throw new Error(`You should not change the <type> of a RecordIdentifier`);\n              }\n            }\n            this._cache.lids.set(identifier.lid, identifier);\n\n            // populate our primary lookup table\n            // TODO consider having the `lid` cache be\n            // one level up\n            keyOptions.lid.set(identifier.lid, identifier);\n          }\n\n          // populate our own secondary lookup table\n          // even for the \"successful\" secondary lookup\n          // by `_generate()`, since we missed the cache\n          // previously\n          // we use identifier.id instead of id here\n          // because they may not match and we prefer\n          // what we've set via resource data\n          if (identifier.id !== null) {\n            keyOptions.id.set(identifier.id, identifier);\n\n            // TODO allow filling out of `id` here\n            // for the `username` non-client created\n            // case.\n          }\n        }\n      }\n      return identifier;\n    }\n\n    /**\n     * allows us to peek without generating when needed\n     * useful for the \"create\" case when we need to see if\n     * we are accidentally overwritting something\n     *\n     * @method peekRecordIdentifier\n     * @param resource\n     * @returns {StableRecordIdentifier | undefined}\n     * @private\n     */\n    peekRecordIdentifier(resource) {\n      return this._getRecordIdentifier(resource, false);\n    }\n\n    /**\n      Returns the DocumentIdentifier for the given Request, creates one if it does not yet exist.\n      Returns `null` if the request does not have a `cacheKey` or `url`.\n       @method getOrCreateDocumentIdentifier\n      @param request\n      @returns {StableDocumentIdentifier | null}\n      @public\n    */\n    getOrCreateDocumentIdentifier(request) {\n      var _request$cacheOptions;\n      let cacheKey = (_request$cacheOptions = request.cacheOptions) === null || _request$cacheOptions === void 0 ? void 0 : _request$cacheOptions.key;\n      if (!cacheKey) {\n        cacheKey = this._generate(request, 'document');\n      }\n      if (!cacheKey) {\n        return null;\n      }\n      let identifier = this._cache.documents.get(cacheKey);\n      if (identifier === undefined) {\n        identifier = {\n          lid: cacheKey\n        };\n        {\n          Object.freeze(identifier);\n        }\n        DOCUMENTS.add(identifier);\n        this._cache.documents.set(cacheKey, identifier);\n      }\n      return identifier;\n    }\n\n    /**\n      Returns the Identifier for the given Resource, creates one if it does not yet exist.\n       Specifically this means that we:\n       - validate the `id` `type` and `lid` combo against known identifiers\n      - return an object with an `lid` that is stable (repeated calls with the same\n        `id` + `type` or `lid` will return the same `lid` value)\n      - this referential stability of the object itself is guaranteed\n       @method getOrCreateRecordIdentifier\n      @param resource\n      @returns {StableRecordIdentifier}\n      @public\n    */\n\n    getOrCreateRecordIdentifier(resource) {\n      return this._getRecordIdentifier(resource, true);\n    }\n\n    /**\n     Returns a new Identifier for the supplied data. Call this method to generate\n     an identifier when a new resource is being created local to the client and\n     potentially does not have an `id`.\n      Delegates generation to the user supplied `GenerateMethod` if one has been provided\n     with the signature `generateMethod({ type }, 'record')`.\n      @method createIdentifierForNewRecord\n     @param data\n     @returns {StableRecordIdentifier}\n     @public\n    */\n    createIdentifierForNewRecord(data) {\n      let newLid = this._generate(data, 'record');\n      let identifier = makeStableRecordIdentifier(data.id || null, data.type, newLid, 'record', true);\n      let keyOptions = getTypeIndex(this._cache.types, data.type);\n\n      // populate our unique table\n      {\n        if (this._cache.lids.has(identifier.lid)) {\n          throw new Error(`The lid generated for the new record is not unique as it matches an existing identifier`);\n        }\n      }\n      this._cache.lids.set(identifier.lid, identifier);\n\n      // populate the type+lid cache\n      keyOptions.lid.set(newLid, identifier);\n      if (data.id) {\n        keyOptions.id.set(data.id, identifier);\n      }\n      return identifier;\n    }\n\n    /**\n     Provides the opportunity to update secondary lookup tables for existing identifiers\n     Called after an identifier created with `createIdentifierForNewRecord` has been\n     committed.\n      Assigned `id` to an `Identifier` if `id` has not previously existed; however,\n     attempting to change the `id` or calling update without providing an `id` when\n     one is missing will throw an error.\n       - sets `id` (if `id` was previously `null`)\n      - `lid` and `type` MUST NOT be altered post creation\n       If a merge occurs, it is possible the returned identifier does not match the originally\n      provided identifier. In this case the abandoned identifier will go through the usual\n      `forgetRecordIdentifier` codepaths.\n       @method updateRecordIdentifier\n      @param identifierObject\n      @param data\n      @returns {StableRecordIdentifier}\n      @public\n    */\n    updateRecordIdentifier(identifierObject, data) {\n      let identifier = this.getOrCreateRecordIdentifier(identifierObject);\n      let newId = data.id !== undefined ? coerceId(data.id) : null;\n      let existingIdentifier = detectMerge(this._cache.types, identifier, data, newId, this._cache.lids);\n      if (!existingIdentifier) {\n        // If the incoming type does not match the identifier type, we need to create an identifier for the incoming\n        // data so we can merge the incoming data with the existing identifier, see #7325 and #7363\n        if (data.type && identifier.type !== normalizeModelName$1(data.type)) {\n          let incomingDataResource = {\n            ...data\n          };\n          // Need to strip the lid from the incomingData in order force a new identifier creation\n          delete incomingDataResource.lid;\n          existingIdentifier = this.getOrCreateRecordIdentifier(incomingDataResource);\n        }\n      }\n      if (existingIdentifier) {\n        let keyOptions = getTypeIndex(this._cache.types, identifier.type);\n        let generatedIdentifier = identifier;\n        identifier = this._mergeRecordIdentifiers(keyOptions, generatedIdentifier, existingIdentifier, data, newId);\n      }\n      let id = identifier.id;\n      performRecordIdentifierUpdate(identifier, data, this._update);\n      newId = identifier.id;\n\n      // add to our own secondary lookup table\n      if (id !== newId && newId !== null) {\n        let keyOptions = getTypeIndex(this._cache.types, identifier.type);\n        keyOptions.id.set(newId, identifier);\n        if (id !== null) {\n          keyOptions.id.delete(id);\n        }\n      }\n      return identifier;\n    }\n\n    /**\n     * @method _mergeRecordIdentifiers\n     * @private\n     */\n    _mergeRecordIdentifiers(keyOptions, identifier, existingIdentifier, data, newId) {\n      // delegate determining which identifier to keep to the configured MergeMethod\n      let kept = this._merge(identifier, existingIdentifier, data);\n      let abandoned = kept === identifier ? existingIdentifier : identifier;\n\n      // cleanup the identifier we no longer need\n      this.forgetRecordIdentifier(abandoned);\n\n      // ensure a secondary cache entry for this id for the identifier we do keep\n      keyOptions.id.set(newId, kept);\n      // ensure a secondary cache entry for this id for the abandoned identifier's type we do keep\n      let baseKeyOptions = getTypeIndex(this._cache.types, existingIdentifier.type);\n      baseKeyOptions.id.set(newId, kept);\n\n      // make sure that the `lid` on the data we are processing matches the lid we kept\n      data.lid = kept.lid;\n      return kept;\n    }\n\n    /**\n     Provides the opportunity to eliminate an identifier from secondary lookup tables\n     as well as eliminates it from ember-data's own lookup tables and book keeping.\n      Useful when a record has been deleted and the deletion has been persisted and\n     we do not care about the record anymore. Especially useful when an `id` of a\n     deleted record might be reused later for a new record.\n      @method forgetRecordIdentifier\n     @param identifierObject\n     @public\n    */\n    forgetRecordIdentifier(identifierObject) {\n      let identifier = this.getOrCreateRecordIdentifier(identifierObject);\n      let keyOptions = getTypeIndex(this._cache.types, identifier.type);\n      if (identifier.id !== null) {\n        keyOptions.id.delete(identifier.id);\n      }\n      this._cache.lids.delete(identifier.lid);\n      keyOptions.lid.delete(identifier.lid);\n      IDENTIFIERS.delete(identifierObject);\n      this._forget(identifier, 'record');\n    }\n    destroy() {\n      this._cache.documents.forEach(identifier => {\n        DOCUMENTS.delete(identifier);\n      });\n      this._reset();\n    }\n  }\n  function getTypeIndex(typeMap, type) {\n    let typeIndex = typeMap[type];\n    if (typeIndex === undefined) {\n      typeIndex = {\n        lid: new Map(),\n        id: new Map()\n      };\n      typeMap[type] = typeIndex;\n    }\n    return typeIndex;\n  }\n  function makeStableRecordIdentifier(id, type, lid, bucket) {\n    let clientOriginated = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n    let recordIdentifier = {\n      lid,\n      id,\n      type\n    };\n    IDENTIFIERS.add(recordIdentifier);\n    {\n      // we enforce immutability in dev\n      //  but preserve our ability to do controlled updates to the reference\n      let wrapper = {\n        get lid() {\n          return recordIdentifier.lid;\n        },\n        get id() {\n          return recordIdentifier.id;\n        },\n        get type() {\n          return recordIdentifier.type;\n        },\n        toString() {\n          let {\n            type,\n            id,\n            lid\n          } = recordIdentifier;\n          return `${clientOriginated ? '[CLIENT_ORIGINATED] ' : ''}${type}:${id} (${lid})`;\n        },\n        toJSON() {\n          let {\n            type,\n            id,\n            lid\n          } = recordIdentifier;\n          return {\n            type,\n            id,\n            lid\n          };\n        }\n      };\n      wrapper[DEBUG_CLIENT_ORIGINATED] = clientOriginated;\n      wrapper[DEBUG_IDENTIFIER_BUCKET] = bucket;\n      IDENTIFIERS.add(wrapper);\n      DEBUG_MAP.set(wrapper, recordIdentifier);\n      wrapper = freeze(wrapper);\n      return wrapper;\n    }\n    return recordIdentifier;\n  }\n  function performRecordIdentifierUpdate(identifier, data, updateFn) {\n    {\n      let {\n        lid\n      } = data;\n      let id = 'id' in data ? data.id : undefined;\n      let type = 'type' in data && data.type && normalizeModelName$1(data.type);\n\n      // get the mutable instance behind our proxy wrapper\n      let wrapper = identifier;\n      identifier = DEBUG_MAP.get(wrapper);\n      if (lid !== undefined) {\n        let newLid = coerceId(lid);\n        if (newLid !== identifier.lid) {\n          throw new Error(`The 'lid' for a RecordIdentifier cannot be updated once it has been created. Attempted to set lid for '${wrapper}' to '${lid}'.`);\n        }\n      }\n      if (id !== undefined) {\n        let newId = coerceId(id);\n        if (identifier.id !== null && identifier.id !== newId) {\n          // here we warn and ignore, as this may be a mistake, but we allow the user\n          // to have multiple cache-keys pointing at a single lid so we cannot error\n          (true && (0, _debug.warn)(`The 'id' for a RecordIdentifier should not be updated once it has been set. Attempted to set id for '${wrapper}' to '${newId}'.`, false, {\n            id: 'ember-data:multiple-ids-for-identifier'\n          }));\n        }\n      }\n\n      // TODO consider just ignoring here to allow flexible polymorphic support\n      if (type && type !== identifier.type) {\n        throw new Error(`The 'type' for a RecordIdentifier cannot be updated once it has been set. Attempted to set type for '${wrapper}' to '${type}'.`);\n      }\n      updateFn(wrapper, data, 'record');\n    }\n\n    // upgrade the ID, this is a \"one time only\" ability\n    // for the multiple-cache-key scenario we \"could\"\n    // use a heuristic to guess the best id for display\n    // (usually when `data.id` is available and `data.attributes` is not)\n    if (data.id !== undefined) {\n      identifier.id = coerceId(data.id);\n    }\n  }\n  function detectMerge(typesCache, identifier, data, newId, lids) {\n    const {\n      id,\n      type,\n      lid\n    } = identifier;\n    if (id !== null && id !== newId && newId !== null) {\n      let keyOptions = getTypeIndex(typesCache, identifier.type);\n      let existingIdentifier = keyOptions.id.get(newId);\n      return existingIdentifier !== undefined ? existingIdentifier : false;\n    } else {\n      let newType = data.type && normalizeModelName$1(data.type);\n\n      // If the ids and type are the same but lid is not the same, we should trigger a merge of the identifiers\n      if (id !== null && id === newId && newType === type && data.lid && data.lid !== lid) {\n        let existingIdentifier = lids.get(data.lid);\n        return existingIdentifier !== undefined ? existingIdentifier : false;\n        // If the lids are the same, and ids are the same, but types are different we should trigger a merge of the identifiers\n      } else if (id !== null && id === newId && newType && newType !== type && data.lid && data.lid === lid) {\n        let keyOptions = getTypeIndex(typesCache, newType);\n        let existingIdentifier = keyOptions.id.get(id);\n        return existingIdentifier !== undefined ? existingIdentifier : false;\n      }\n    }\n    return false;\n  }\n  var _class$2, _descriptor$2;\n\n  /**\n    @module @ember-data/store\n  */\n  /**\n    @module @ember-data/store\n  */\n  /**\n     A `RecordReference` is a low-level API that allows users and\n     addon authors to perform meta-operations on a record.\n  \n     @class RecordReference\n     @public\n     @extends Reference\n  */\n  let RecordReference = (_class$2 = class RecordReference {\n    // unsubscribe token given to us by the notification manager\n\n    constructor(store, identifier) {\n      this.___token = void 0;\n      this.___identifier = void 0;\n      _initializerDefineProperty(this, \"_ref\", _descriptor$2, this);\n      this.store = store;\n      this.___identifier = identifier;\n      this.___token = store.notifications.subscribe(identifier, (_, bucket, notifiedKey) => {\n        if (bucket === 'identity' || bucket === 'attributes' && notifiedKey === 'id') {\n          this._ref++;\n        }\n      });\n    }\n    destroy() {\n      this.store.notifications.unsubscribe(this.___token);\n    }\n    get type() {\n      return this.identifier().type;\n    }\n\n    /**\n       The `id` of the record that this reference refers to.\n        Together, the `type` and `id` properties form a composite key for\n       the identity map.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        userRef.id(); // '1'\n       ```\n        @method id\n      @public\n       @return {String} The id of the record.\n    */\n    id() {\n      this._ref; // consume the tracked prop\n      return this.___identifier.id;\n    }\n\n    /**\n       The `identifier` of the record that this reference refers to.\n        Together, the `type` and `id` properties form a composite key for\n       the identity map.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        userRef.identifier(); // '1'\n       ```\n        @method identifier\n      @public\n       @return {String} The identifier of the record.\n    */\n    identifier() {\n      return this.___identifier;\n    }\n\n    /**\n       How the reference will be looked up when it is loaded. Currently\n       this always returns `identity` to signify that a record will be\n       loaded by its `type` and `id`.\n        Example\n        ```javascript\n       const userRef = store.getReference('user', 1);\n        userRef.remoteType(); // 'identity'\n       ```\n        @method remoteType\n       @public\n       @return {String} 'identity'\n    */\n    remoteType() {\n      return 'identity';\n    }\n\n    /**\n      This API allows you to provide a reference with new data. The\n      simplest usage of this API is similar to `store.push`: you provide a\n      normalized hash of data and the object represented by the reference\n      will update.\n       If you pass a promise to `push`, Ember Data will not ask the adapter\n      for the data if another attempt to fetch it is made in the\n      interim. When the promise resolves, the underlying object is updated\n      with the new data, and the promise returned by *this function* is resolved\n      with that object.\n       For example, `recordReference.push(promise)` will be resolved with a\n      record.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        // provide data for reference\n       userRef.push({\n         data: {\n           id: \"1\",\n           type: \"user\",\n           attributes: {\n             username: \"@user\"\n           }\n         }\n       }).then(function(user) {\n         userRef.value() === user;\n       });\n       ```\n       @method push\n      @public\n      @param objectOrPromise a JSON:API ResourceDocument or a promise resolving to one\n      @return a promise for the value (record or relationship)\n    */\n    push(objectOrPromise) {\n      // TODO @deprecate pushing unresolved payloads\n      return Promise.resolve(objectOrPromise).then(data => {\n        return this.store.push(data);\n      });\n    }\n\n    /**\n      If the entity referred to by the reference is already loaded, it is\n      present as `reference.value`. Otherwise the value returned by this function\n      is `null`.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        userRef.value(); // user\n       ```\n        @method value\n      @public\n       @return {Model} the record for this RecordReference\n    */\n    value() {\n      return this.store.peekRecord(this.___identifier);\n    }\n\n    /**\n       Triggers a fetch for the backing entity based on its `remoteType`\n       (see `remoteType` definitions per reference type).\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        // load user (via store.find)\n       userRef.load().then(...)\n       ```\n        @method load\n      @public\n       @return {Promise<record>} the record for this RecordReference\n    */\n    load() {\n      const id = this.id();\n      if (id !== null) {\n        return this.store.findRecord(this.type, id);\n      }\n      (true && !(false) && (0, _debug.assert)(`Unable to fetch record of type ${this.type} without an id`));\n    }\n\n    /**\n       Reloads the record if it is already loaded. If the record is not\n       loaded it will load the record via `store.findRecord`\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        // or trigger a reload\n       userRef.reload().then(...)\n       ```\n        @method reload\n      @public\n       @return {Promise<record>} the record for this RecordReference\n    */\n    reload() {\n      const id = this.id();\n      if (id !== null) {\n        return this.store.findRecord(this.type, id, {\n          reload: true\n        });\n      }\n      (true && !(false) && (0, _debug.assert)(`Unable to fetch record of type ${this.type} without an id`));\n    }\n  }, _descriptor$2 = _applyDecoratedDescriptor(_class$2.prototype, \"_ref\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _class$2);\n  function legacyCachePut(store, doc) {\n    const jsonApiDoc = doc.content;\n    let ret;\n    store._join(() => {\n      let included = jsonApiDoc.included;\n      let i, length;\n      if (included) {\n        for (i = 0, length = included.length; i < length; i++) {\n          store._instanceCache.loadData(included[i]);\n        }\n      }\n      if (Array.isArray(jsonApiDoc.data)) {\n        length = jsonApiDoc.data.length;\n        let identifiers = [];\n        for (i = 0; i < length; i++) {\n          identifiers.push(store._instanceCache.loadData(jsonApiDoc.data[i]));\n        }\n        ret = {\n          data: identifiers\n        };\n        return;\n      }\n      if (jsonApiDoc.data === null) {\n        ret = {\n          data: null\n        };\n        return;\n      }\n      (true && !(typeof jsonApiDoc.data === 'object') && (0, _debug.assert)(`Expected an object in the 'data' property in a call to 'push', but was ${typeof jsonApiDoc.data}`, typeof jsonApiDoc.data === 'object'));\n      ret = {\n        data: store._instanceCache.loadData(jsonApiDoc.data)\n      };\n      return;\n    });\n    return ret;\n  }\n\n  /**\n   * The CacheManager wraps a Cache enforcing that only\n   * the public API surface area is exposed.\n   *\n   * Hence, it is the value of `Store.cache`, wrapping\n   * the cache instance returned by `Store.createCache`.\n   *\n   * This class is the the return value of both the\n   * `recordDataFor` function supplied to the store\n   * hook `instantiateRecord`, and the `recordDataFor`\n   * method on the `CacheStoreWrapper`. It is not\n   * directly instantiable.\n   *\n   * It handles translating between cache versions when\n   * necessary, for instance when a Store is configured\n   * to use both a v1 and a v2 cache depending on some\n   * heuristic.\n   *\n   * Starting with the v2 spec, the cache is designed such\n   * that it must be implemented as a singleton. However,\n   * because the v1 spec was not designed for this whenever\n   * we encounter any v1 cache we must wrap all caches, even\n   * singletons, in non-singleton managers to preserve v1\n   * compatibility.\n   *\n   * To avoid this performance penalty being paid by all\n   * applications, singleton behavior may be opted-in via\n   * the configuration supplied to your Ember application\n   * at build time. This effectively removes support for\n   * v1 caches.\n   *\n   * ```js\n   * let app = new EmberApp(defaults, {\n   *   emberData: {\n   *     useSingletonManager: true\n   *   },\n   * });\n   * ```\n   *\n   * @class CacheManager\n   * @public\n   */\n  var _store = /*#__PURE__*/_classPrivateFieldKey(\"store\");\n  var _cache = /*#__PURE__*/_classPrivateFieldKey(\"cache\");\n  var _identifier = /*#__PURE__*/_classPrivateFieldKey(\"identifier\");\n  var _isDeprecated = /*#__PURE__*/_classPrivateFieldKey(\"isDeprecated\");\n  class NonSingletonCacheManager {\n    get managedVersion() {\n      return _classPrivateFieldBase(this, _cache)[_cache].version || '1';\n    }\n    constructor(store, _cache2, identifier) {\n      Object.defineProperty(this, _isDeprecated, {\n        value: _isDeprecated2\n      });\n      this.version = '2';\n      Object.defineProperty(this, _store, {\n        writable: true,\n        value: void 0\n      });\n      Object.defineProperty(this, _cache, {\n        writable: true,\n        value: void 0\n      });\n      Object.defineProperty(this, _identifier, {\n        writable: true,\n        value: void 0\n      });\n      _classPrivateFieldBase(this, _store)[_store] = store;\n      _classPrivateFieldBase(this, _cache)[_cache] = _cache2;\n      _classPrivateFieldBase(this, _identifier)[_identifier] = identifier;\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](_cache2)) {\n        (true && !(false) && (0, _debug.deprecate)(`This RecordData uses the deprecated V1 RecordData Spec. Upgrade to V2 to maintain compatibility.`, false, {\n          id: 'ember-data:deprecate-v1-cache',\n          until: '5.0',\n          since: {\n            available: '4.7',\n            enabled: '4.7'\n          },\n          for: 'ember-data'\n        }));\n      }\n    }\n    // Cache Management\n    // ================\n    /**\n     * Cache the response to a request\n     *\n     * Unlike `store.push` which has UPSERT\n     * semantics, `put` has `replace` semantics similar to\n     * the `http` method `PUT`\n     *\n     * the individually cacheable\n     * e resource data it may contain\n     * should upsert, but the document data surrounding it should\n     * fully replace any existing information\n     *\n     * Note that in order to support inserting arbitrary data\n     * to the cache that did not originate from a request `put`\n     * should expect to sometimes encounter a document with only\n     * a `content` member and therefor must not assume the existence\n     * of `request` and `response` on the document.\n     *\n     * @method put\n     * @param {StructuredDocument} doc\n     * @returns {ResourceDocument}\n     * @public\n     */\n    put(doc) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        if (doc instanceof Error) {\n          // in legacy we don't know how to handle this\n          throw doc;\n        }\n        return legacyCachePut(_classPrivateFieldBase(this, _store)[_store], doc);\n      }\n      return cache.put(doc);\n    }\n\n    /**\n     * Perform an operation on the cache to update the remote state.\n     *\n     * Note: currently the only valid operation is a MergeOperation\n     * which occurs when a collision of identifiers is detected.\n     *\n     * @method patch\n     * @public\n     * @param op the operation to perform\n     * @returns {void}\n     */\n    patch(op) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        return;\n      }\n      cache.patch(op);\n    }\n\n    /**\n     * Update resource data with a local mutation. Currently supports operations\n     * on relationships only.\n     *\n     * @method mutate\n     * @public\n     * @param mutation\n     */\n    // isResource is only needed for interop with v1 cache\n    mutate(mutation, isResource) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        const instanceCache = _classPrivateFieldBase(this, _store)[_store]._instanceCache;\n        switch (mutation.op) {\n          case 'addToRelatedRecords':\n            cache.addToHasMany(mutation.field, mutation.value.map(i => instanceCache.getResourceCache(i)), mutation.index);\n            return;\n          case 'removeFromRelatedRecords':\n            cache.removeFromHasMany(mutation.field, mutation.value.map(i => instanceCache.getResourceCache(i)));\n            return;\n          case 'replaceRelatedRecords':\n            cache.setDirtyHasMany(mutation.field, mutation.value.map(i => instanceCache.getResourceCache(i)));\n            return;\n          case 'replaceRelatedRecord':\n            if (isResource) {\n              cache.setDirtyBelongsTo(mutation.field, mutation.value ? instanceCache.getResourceCache(mutation.value) : null);\n              return;\n            }\n            cache.removeFromHasMany(mutation.field, [instanceCache.getResourceCache(mutation.prior)]);\n            cache.addToHasMany(mutation.field, [instanceCache.getResourceCache(mutation.value)], mutation.index);\n            return;\n          case 'sortRelatedRecords':\n            return;\n          default:\n            return;\n        }\n      } else {\n        cache.mutate(mutation);\n      }\n    }\n\n    /**\n     * Peek resource data from the Cache.\n     *\n     * In development, if the return value\n     * is JSON the return value\n     * will be deep-cloned and deep-frozen\n     * to prevent mutation thereby enforcing cache\n     * Immutability.\n     *\n     * This form of peek is useful for implementations\n     * that want to feed raw-data from cache to the UI\n     * or which want to interact with a blob of data\n     * directly from the presentation cache.\n     *\n     * An implementation might want to do this because\n     * de-referencing records which read from their own\n     * blob is generally safer because the record does\n     * not require retaining connections to the Store\n     * and Cache to present data on a per-field basis.\n     *\n     * This generally takes the place of `getAttr` as\n     * an API and may even take the place of `getRelationship`\n     * depending on implementation specifics, though this\n     * latter usage is less recommended due to the advantages\n     * of the Graph handling necessary entanglements and\n     * notifications for relational data.\n     *\n     * @method peek\n     * @public\n     * @param {StableRecordIdentifier | StableDocumentIdentifier} identifier\n     * @returns {ResourceDocument | ResourceBlob | null} the known resource data\n     */\n\n    peek(identifier) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        throw new Error(`Expected cache to implement peek`);\n      }\n      return cache.peek(identifier);\n    }\n\n    /**\n     * Peek the Cache for the existing request data associated with\n     * a cacheable request\n     *\n     * @method peekRequest\n     * @param {StableDocumentIdentifier}\n     * @returns {StableDocumentIdentifier | null}\n     * @public\n     */\n    peekRequest(identifier) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        throw new Error(`Expected cache to implement peekRequest`);\n      }\n      return cache.peekRequest(identifier);\n    }\n\n    /**\n     * Push resource data from a remote source into the cache for this identifier\n     *\n     * @method upsert\n     * @public\n     * @param identifier\n     * @param data\n     * @param hasRecord\n     * @returns {void | string[]} if `hasRecord` is true then calculated key changes should be returned\n     */\n    upsert(identifier, data, hasRecord) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      // called by something V1\n      if (!isStableIdentifier(identifier)) {\n        data = identifier;\n        hasRecord = data;\n        identifier = _classPrivateFieldBase(this, _identifier)[_identifier];\n      }\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        return cache.pushData(data, hasRecord);\n      }\n      return cache.upsert(identifier, data, hasRecord);\n    }\n\n    // Cache Forking Support\n    // =====================\n\n    /**\n     * Create a fork of the cache from the current state.\n     *\n     * Applications should typically not call this method themselves,\n     * preferring instead to fork at the Store level, which will\n     * utilize this method to fork the cache.\n     *\n     * @method fork\n     * @public\n     * @returns Promise<Cache>\n     */\n    fork() {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        throw new Error(`Expected cache to implement fork`);\n      }\n      return cache.fork();\n    }\n\n    /**\n     * Merge a fork back into a parent Cache.\n     *\n     * Applications should typically not call this method themselves,\n     * preferring instead to merge at the Store level, which will\n     * utilize this method to merge the caches.\n     *\n     * @method merge\n     * @param {Cache} cache\n     * @public\n     * @returns Promise<void>\n     */\n    merge(updates) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        throw new Error(`Expected cache to implement merge`);\n      }\n      return cache.merge(updates);\n    }\n\n    /**\n     * Generate the list of changes applied to all\n     * record in the store.\n     *\n     * Each individual resource or document that has\n     * been mutated should be described as an individual\n     * `Change` entry in the returned array.\n     *\n     * A `Change` is described by an object containing up to\n     * three properties: (1) the `identifier` of the entity that\n     * changed; (2) the `op` code of that change being one of\n     * `upsert` or `remove`, and if the op is `upsert` a `patch`\n     * containing the data to merge into the cache for the given\n     * entity.\n     *\n     * This `patch` is opaque to the Store but should be understood\n     * by the Cache and may expect to be utilized by an Adapter\n     * when generating data during a `save` operation.\n     *\n     * It is generally recommended that the `patch` contain only\n     * the updated state, ignoring fields that are unchanged\n     *\n     * ```ts\n     * interface Change {\n     *  identifier: StableRecordIdentifier | StableDocumentIdentifier;\n     *  op: 'upsert' | 'remove';\n     *  patch?: unknown;\n     * }\n     * ```\n     *\n     * @method diff\n     * @public\n     */\n    diff() {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        throw new Error(`Expected cache to implement diff`);\n      }\n      return cache.diff();\n    }\n\n    // SSR Support\n    // ===========\n\n    /**\n     * Serialize the entire contents of the Cache into a Stream\n     * which may be fed back into a new instance of the same Cache\n     * via `cache.hydrate`.\n     *\n     * @method dump\n     * @returns {Promise<ReadableStream>}\n     * @public\n     */\n    dump() {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        throw new Error(`Expected cache to implement dump`);\n      }\n      return cache.dump();\n    }\n\n    /**\n     * hydrate a Cache from a Stream with content previously serialized\n     * from another instance of the same Cache, resolving when hydration\n     * is complete.\n     *\n     * This method should expect to be called both in the context of restoring\n     * the Cache during application rehydration after SSR **AND** at unknown\n     * times during the lifetime of an already booted application when it is\n     * desired to bulk-load additional information into the cache. This latter\n     * behavior supports optimizing pre/fetching of data for route transitions\n     * via data-only SSR modes.\n     *\n     * @method hydrate\n     * @param {ReadableStream} stream\n     * @returns {Promise<void>}\n     * @public\n     */\n    hydrate(stream) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        throw new Error(`Expected cache to implement hydrate`);\n      }\n      return cache.hydrate(stream);\n    }\n\n    // Cache\n    // =====\n\n    /**\n     * Retrieve the identifier for this v1 cache\n     *\n     * DEPRECATED Caches should not be assumed to be 1:1 with resources\n     *\n     * @method getResourceIdentifier\n     * @public\n     * @deprecated\n     */\n    getResourceIdentifier() {\n      return _classPrivateFieldBase(this, _identifier)[_identifier];\n    }\n\n    /**\n     * Push resource data from a remote source into the cache for this identifier\n     *\n     * DEPRECATED Use upsert. Caches should not be assumed to be 1:1 with resources\n     *\n     * @method pushData\n     * @param data\n     * @param hasRecord\n     * @returns {void | string[]} if `hasRecord` is true then calculated key changes should be returned\n     * @public\n     * @deprecated\n     */\n    pushData(data, hasRecord) {\n      return this.upsert(_classPrivateFieldBase(this, _identifier)[_identifier], data, hasRecord);\n    }\n\n    // Resource Support\n    // ================\n\n    /**\n     * [LIFECYCLE] Signal to the cache that a new record has been instantiated on the client\n     *\n     * It returns properties from options that should be set on the record during the create\n     * process. This return value behavior is deprecated.\n     *\n     * @method clientDidCreate\n     * @public\n     * @param identifier\n     * @param options\n     */\n    clientDidCreate(identifier, options) {\n      // called by something V1\n      if (!isStableIdentifier(identifier)) {\n        options = identifier;\n        identifier = _classPrivateFieldBase(this, _identifier)[_identifier];\n      }\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n\n      // TODO deprecate return value\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        cache.clientDidCreate();\n        // if a V2 is calling a V1 we need to call both methods\n        return cache._initRecordCreateOptions(options);\n      } else {\n        return cache.clientDidCreate(identifier, options);\n      }\n    }\n\n    /**\n     * Pass options to the cache that were supplied to a new record\n     * instantiated on the client.\n     *\n     * DEPRECATED: options are now passed via `clientDidCreate`\n     *\n     * @method clientDidCreate\n     * @public\n     * @deprecated\n     * @param options\n     */\n    _initRecordCreateOptions(options) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        return cache._initRecordCreateOptions(options);\n      }\n    }\n\n    /**\n     * [LIFECYCLE] Signals to the cache that a resource\n     * will be part of a save transaction.\n     *\n     * @method willCommit\n     * @public\n     * @param identifier\n     */\n    willCommit(identifier, context) {\n      // called by something V1\n      if (!isStableIdentifier(identifier)) {\n        identifier = _classPrivateFieldBase(this, _identifier)[_identifier];\n      }\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n\n      // TODO deprecate return value\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        cache.willCommit();\n      } else {\n        (true && !(!!context) && (0, _debug.assert)(`Cannot call a v2 cache willCommit from a v1 cache`, !!context));\n        cache.willCommit(identifier, context);\n      }\n    }\n\n    /**\n     * [LIFECYCLE] Signals to the cache that a resource\n     * was successfully updated as part of a save transaction.\n     *\n     * @method didCommit\n     * @public\n     * @param identifier\n     * @param data\n     */\n    didCommit(identifier, result) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        var _result$content;\n        // called by something V1\n        if (!isStableIdentifier(identifier)) {\n          cache.didCommit(identifier);\n          return {\n            data: _classPrivateFieldBase(this, _identifier)[_identifier]\n          };\n        }\n        cache.didCommit((_result$content = result.content) === null || _result$content === void 0 ? void 0 : _result$content.data);\n        return {\n          data: _classPrivateFieldBase(this, _identifier)[_identifier]\n        };\n      } else {\n        // called by something V1\n        if (!isStableIdentifier(identifier)) {\n          cache.didCommit(_classPrivateFieldBase(this, _identifier)[_identifier], {\n            content: {\n              data: identifier\n            }\n          });\n          return {\n            data: _classPrivateFieldBase(this, _identifier)[_identifier]\n          };\n        }\n        return cache.didCommit(identifier, result);\n      }\n    }\n\n    /**\n     * [LIFECYCLE] Signals to the cache that a resource\n     * was update via a save transaction failed.\n     *\n     * @method commitWasRejected\n     * @public\n     * @param identifier\n     * @param errors\n     */\n    commitWasRejected(identifier, errors) {\n      _classPrivateFieldBase(this, _cache)[_cache].commitWasRejected(identifier || _classPrivateFieldBase(this, _identifier)[_identifier], errors);\n    }\n\n    /**\n     * [LIFECYCLE] Signals to the cache that all data for a resource\n     * should be cleared.\n     *\n     * @method unloadRecord\n     * @public\n     * @param identifier\n     */\n    unloadRecord(identifier) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        cache.unloadRecord();\n      } else {\n        cache.unloadRecord(identifier || _classPrivateFieldBase(this, _identifier)[_identifier]);\n      }\n    }\n\n    // Granular Resource Data APIs\n    // ===========================\n\n    /**\n     * Retrieve the data for an attribute from the cache\n     *\n     * @method getAttr\n     * @public\n     * @param identifier\n     * @param propertyName\n     * @returns {unknown}\n     */\n    getAttr(identifier, propertyName) {\n      // called by something V1\n      if (!isStableIdentifier(identifier)) {\n        propertyName = identifier;\n        identifier = _classPrivateFieldBase(this, _identifier)[_identifier];\n      }\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      return _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.getAttr(propertyName) : cache.getAttr(identifier, propertyName);\n    }\n\n    /**\n     * Mutate the data for an attribute in the cache\n     *\n     * @method setAttr\n     * @public\n     * @param identifier\n     * @param propertyName\n     * @param value\n     */\n    setAttr(identifier, propertyName, value) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.setDirtyAttribute(propertyName, value) : cache.setAttr(identifier, propertyName, value);\n    }\n\n    /**\n     * Mutate the data for an attribute in the cache\n     *\n     * DEPRECATED use setAttr\n     *\n     * @method setDirtyAttribute\n     * @public\n     * @deprecated\n     * @param identifier\n     * @param propertyName\n     * @param value\n     */\n    setDirtyAttribute(propertyName, value) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.setDirtyAttribute(propertyName, value) : cache.setAttr(_classPrivateFieldBase(this, _identifier)[_identifier], propertyName, value);\n    }\n\n    /**\n     * Query the cache for the changed attributes of a resource.\n     *\n     * DEPRECATED use changedAttrs\n     *\n     * @method changedAttributes\n     * @public\n     * @deprecated\n     * @param identifier\n     * @returns\n     */\n    changedAttributes() {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        return cache.changedAttributes();\n      }\n      return cache.changedAttrs(_classPrivateFieldBase(this, _identifier)[_identifier]);\n    }\n\n    /**\n     * Query the cache for the changed attributes of a resource.\n     *\n     * @method changedAttrs\n     * @public\n     * @deprecated\n     * @param identifier\n     * @returns\n     */\n    changedAttrs(identifier) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        return cache.changedAttributes();\n      }\n      return cache.changedAttrs(identifier);\n    }\n\n    /**\n     * Query the cache for whether any mutated attributes exist\n     *\n     * DEPRECATED use hasChangedAttrs\n     *\n     * @method hasChangedAttributes\n     * @public\n     * @deprecated\n     * @returns {boolean}\n     */\n    hasChangedAttributes() {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      return _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.hasChangedAttributes() : cache.hasChangedAttrs(_classPrivateFieldBase(this, _identifier)[_identifier]);\n    }\n\n    /**\n     * Query the cache for whether any mutated attributes exist\n     *\n     * @method hasChangedAttrs\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    hasChangedAttrs(identifier) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      return _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.hasChangedAttributes() : cache.hasChangedAttrs(identifier);\n    }\n\n    /**\n     * Tell the cache to discard any uncommitted mutations to attributes\n     *\n     * DEPRECATED use rollbackAttrs\n     *\n     * @method rollbackAttributes\n     * @public\n     * @deprecated\n     * @returns\n     */\n    rollbackAttributes() {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      return _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.rollbackAttributes() : cache.rollbackAttrs(_classPrivateFieldBase(this, _identifier)[_identifier]);\n    }\n\n    /**\n     * Tell the cache to discard any uncommitted mutations to attributes\n     *\n     * @method rollbackAttrs\n     * @public\n     * @param identifier\n     * @returns the names of attributes that were restored\n     */\n    rollbackAttrs(identifier) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      return _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.rollbackAttributes() : cache.rollbackAttrs(identifier);\n    }\n\n    // Relationships\n    // =============\n\n    // the third arg here is \"private\". In a world with only V2 it is not necessary\n    // but in one in which we must convert a call from V2 -> V1 it is required to do this\n    // or else to do nasty schema lookup things\n    // @runspired has implemented this concept in relationships spikes and is confident\n    // we do not need any signal about whether a relationship is a collection or not at this\n    // boundary\n    /**\n     * Query the cache for the current state of a relationship property\n     *\n     * @method getRelationship\n     * @public\n     * @param identifier\n     * @param propertyName\n     * @returns resource relationship object\n     */\n    getRelationship(identifier, propertyName) {\n      let isCollection = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        let isBelongsTo = !isCollection;\n        return isBelongsTo ? cache.getBelongsTo(propertyName) : cache.getHasMany(propertyName);\n      }\n      return cache.getRelationship(identifier, propertyName);\n    }\n\n    /**\n     * Query the cache for the current state of a belongsTo field\n     *\n     * DEPRECATED use `getRelationship`\n     *\n     * @method getBelongsTo\n     * @public\n     * @deprecated\n     * @param propertyName\n     * @returns single resource relationship object\n     */\n    getBelongsTo(propertyName) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        return cache.getBelongsTo(propertyName);\n      } else {\n        let identifier = _classPrivateFieldBase(this, _identifier)[_identifier];\n        return cache.getRelationship(identifier, propertyName);\n      }\n    }\n\n    /**\n     * Query the cache for the current state of a hasMany field\n     *\n     * DEPRECATED use `getRelationship`\n     *\n     * @method getHasMany\n     * @public\n     * @deprecated\n     * @param propertyName\n     * @returns single resource relationship object\n     */\n    getHasMany(propertyName) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      if (_classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache)) {\n        return cache.getHasMany(propertyName);\n      } else {\n        let identifier = _classPrivateFieldBase(this, _identifier)[_identifier];\n        return cache.getRelationship(identifier, propertyName);\n      }\n    }\n\n    /**\n     * Mutate the current state of a belongsTo relationship\n     *\n     * DEPRECATED use update\n     *\n     * @method setDirtyBelongsTo\n     * @public\n     * @deprecated\n     * @param propertyName\n     * @param value\n     */\n    setDirtyBelongsTo(propertyName, value) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.setDirtyBelongsTo(propertyName, value) : cache.mutate({\n        op: 'replaceRelatedRecord',\n        record: _classPrivateFieldBase(this, _identifier)[_identifier],\n        field: propertyName,\n        value: value ? value.getResourceIdentifier() : null\n      });\n    }\n\n    /**\n     * Mutate the current state of a hasMany relationship by adding values\n     * An index may optionally be specified which the cache should use for\n     * where in the list to insert the records\n     *\n     * DEPRECATED use update\n     *\n     * @method addToHasMany\n     * @deprecated\n     * @public\n     * @param propertyName\n     * @param value\n     * @param idx\n     */\n    addToHasMany(propertyName, value, idx) {\n      const identifier = _classPrivateFieldBase(this, _identifier)[_identifier];\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.addToHasMany(propertyName, value, idx) : cache.mutate({\n        op: 'addToRelatedRecords',\n        field: propertyName,\n        record: identifier,\n        value: value.map(v => v.getResourceIdentifier())\n      });\n    }\n\n    /**\n     * Mutate the current state of a hasMany relationship by removing values.\n     *\n     * DEPRECATED use update\n     *\n     * @method removeFromHasMany\n     * @deprecated\n     * @public\n     * @param propertyName\n     * @param value\n     */\n    removeFromHasMany(propertyName, value) {\n      const identifier = _classPrivateFieldBase(this, _identifier)[_identifier];\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.removeFromHasMany(propertyName, value) : cache.mutate({\n        op: 'removeFromRelatedRecords',\n        record: identifier,\n        field: propertyName,\n        value: value.map(v => v.getResourceIdentifier())\n      });\n    }\n\n    /**\n     * Mutate the current state of a hasMany relationship by replacing it entirely\n     *\n     * DEPRECATED use `setHasMany`\n     *\n     * @method setDirtyHasMany\n     * @public\n     * @deprecated\n     * @param propertyName\n     * @param value\n     */\n    setDirtyHasMany(propertyName, value) {\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.setDirtyHasMany(propertyName, value) : cache.mutate({\n        op: 'replaceRelatedRecords',\n        record: _classPrivateFieldBase(this, _identifier)[_identifier],\n        field: propertyName,\n        value: value.map(rd => rd.getResourceIdentifier())\n      });\n    }\n\n    // Resource State\n    // ===============\n\n    /**\n     * Update the cache state for the given resource to be marked as locally deleted,\n     * or remove such a mark.\n     *\n     * @method setIsDeleted\n     * @public\n     * @param identifier\n     * @param isDeleted\n     */\n    setIsDeleted(identifier, isDeleted) {\n      if (!isStableIdentifier(identifier)) {\n        isDeleted = identifier;\n        identifier = _classPrivateFieldBase(this, _identifier)[_identifier];\n      }\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? cache.setIsDeleted(isDeleted) : cache.setIsDeleted(identifier, isDeleted);\n    }\n\n    /**\n     * Query the cache for any validation errors applicable to the given resource.\n     *\n     * @method getErrors\n     * @public\n     * @param identifier\n     * @returns\n     */\n    getErrors(identifier) {\n      return _classPrivateFieldBase(this, _cache)[_cache].getErrors(identifier || _classPrivateFieldBase(this, _identifier)[_identifier]);\n    }\n\n    /**\n     * Query the cache for whether a given resource has any available data\n     *\n     * @method isEmpty\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    isEmpty(identifier) {\n      var _cache$isEmpty;\n      const cache = _classPrivateFieldBase(this, _cache)[_cache];\n      return _classPrivateFieldBase(this, _isDeprecated)[_isDeprecated](cache) ? ((_cache$isEmpty = cache.isEmpty) === null || _cache$isEmpty === void 0 ? void 0 : _cache$isEmpty.call(cache, identifier || _classPrivateFieldBase(this, _identifier)[_identifier])) || false : cache.isEmpty(identifier || _classPrivateFieldBase(this, _identifier)[_identifier]);\n    }\n\n    /**\n     * Query the cache for whether a given resource was created locally and not\n     * yet persisted.\n     *\n     * @method isNew\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    isNew(identifier) {\n      return _classPrivateFieldBase(this, _cache)[_cache].isNew(identifier || _classPrivateFieldBase(this, _identifier)[_identifier]);\n    }\n\n    /**\n     * Query the cache for whether a given resource is marked as deleted (but not\n     * necessarily persisted yet).\n     *\n     * @method isDeleted\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    isDeleted(identifier) {\n      return _classPrivateFieldBase(this, _cache)[_cache].isDeleted(identifier || _classPrivateFieldBase(this, _identifier)[_identifier]);\n    }\n\n    /**\n     * Query the cache for whether a given resource has been deleted and that deletion\n     * has also been persisted.\n     *\n     * @method isDeletionCommitted\n     * @public\n     * @param identifier\n     * @returns {boolean}\n     */\n    isDeletionCommitted(identifier) {\n      return _classPrivateFieldBase(this, _cache)[_cache].isDeletionCommitted(identifier || _classPrivateFieldBase(this, _identifier)[_identifier]);\n    }\n  }\n  function _isDeprecated2(cache) {\n    let version = cache.version || '1';\n    return version !== this.version;\n  }\n  var _cache3 = /*#__PURE__*/_classPrivateFieldKey(\"cache\");\n  class SingletonCacheManager {\n    constructor(cache) {\n      this.version = '2';\n      Object.defineProperty(this, _cache3, {\n        writable: true,\n        value: void 0\n      });\n      _classPrivateFieldBase(this, _cache3)[_cache3] = cache;\n    }\n    put(doc) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].put(doc);\n    }\n    peek(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].peek(identifier);\n    }\n    peekRequest(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].peekRequest(identifier);\n    }\n    fork() {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].fork();\n    }\n    merge(cache) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].merge(cache);\n    }\n    diff() {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].diff();\n    }\n    dump() {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].dump();\n    }\n    hydrate(stream) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].hydrate(stream);\n    }\n\n    // Cache\n    // =====\n\n    upsert(identifier, data, hasRecord) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].upsert(identifier, data, hasRecord);\n    }\n    patch(op) {\n      _classPrivateFieldBase(this, _cache3)[_cache3].patch(op);\n    }\n    clientDidCreate(identifier, options) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].clientDidCreate(identifier, options);\n    }\n    willCommit(identifier, context) {\n      _classPrivateFieldBase(this, _cache3)[_cache3].willCommit(identifier, context);\n    }\n    didCommit(identifier, result) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].didCommit(identifier, result);\n    }\n    commitWasRejected(identifier, errors) {\n      _classPrivateFieldBase(this, _cache3)[_cache3].commitWasRejected(identifier, errors);\n    }\n    unloadRecord(identifier) {\n      _classPrivateFieldBase(this, _cache3)[_cache3].unloadRecord(identifier);\n    }\n\n    // Attrs\n    // =====\n\n    getAttr(identifier, propertyName) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].getAttr(identifier, propertyName);\n    }\n    setAttr(identifier, propertyName, value) {\n      _classPrivateFieldBase(this, _cache3)[_cache3].setAttr(identifier, propertyName, value);\n    }\n    changedAttrs(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].changedAttrs(identifier);\n    }\n    hasChangedAttrs(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].hasChangedAttrs(identifier);\n    }\n    rollbackAttrs(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].rollbackAttrs(identifier);\n    }\n    getRelationship(identifier, propertyName) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].getRelationship(identifier, propertyName);\n    }\n    mutate(mutation) {\n      _classPrivateFieldBase(this, _cache3)[_cache3].mutate(mutation);\n    }\n\n    // State\n    // =============\n\n    setIsDeleted(identifier, isDeleted) {\n      _classPrivateFieldBase(this, _cache3)[_cache3].setIsDeleted(identifier, isDeleted);\n    }\n    getErrors(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].getErrors(identifier);\n    }\n    isEmpty(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].isEmpty(identifier);\n    }\n    isNew(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].isNew(identifier);\n    }\n    isDeleted(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].isDeleted(identifier);\n    }\n    isDeletionCommitted(identifier) {\n      return _classPrivateFieldBase(this, _cache3)[_cache3].isDeletionCommitted(identifier);\n    }\n  }\n  function constructResource(type, id, lid) {\n    if (typeof type === 'object' && type !== null) {\n      let resource = type;\n      if (isStableIdentifier(resource)) {\n        return resource;\n      }\n      if ('id' in resource) {\n        resource.id = coerceId(resource.id);\n      }\n      (true && !('id' in resource && isNonEmptyString(resource.id) || isNonEmptyString(resource.lid)) && (0, _debug.assert)('Expected either id or lid to be a valid string', 'id' in resource && isNonEmptyString(resource.id) || isNonEmptyString(resource.lid)));\n      (true && !(!('id' in resource) || typeof resource.type === 'string') && (0, _debug.assert)('if id is present, the type must be a string', !('id' in resource) || typeof resource.type === 'string'));\n      return resource;\n    } else {\n      const trueId = coerceId(id);\n      if (!isNonEmptyString(trueId)) {\n        if (isNonEmptyString(lid)) {\n          return {\n            lid\n          };\n        }\n        throw new Error('Expected either id or lid to be a valid string');\n      }\n      (true && !(typeof type === 'string') && (0, _debug.assert)('type must be a string', typeof type === 'string'));\n      if (isNonEmptyString(lid)) {\n        return {\n          type,\n          id: trueId,\n          lid\n        };\n      }\n      return {\n        type,\n        id: trueId\n      };\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  class LegacyWrapper {\n    constructor(_store) {\n      this._store = _store;\n      this._willNotify = false;\n      this._pendingNotifies = new Map();\n    }\n    get identifierCache() {\n      return this._store.identifierCache;\n    }\n    _scheduleNotification(identifier, key) {\n      let pending = this._pendingNotifies.get(identifier);\n      if (!pending) {\n        pending = new Set();\n        this._pendingNotifies.set(identifier, pending);\n      }\n      pending.add(key);\n      if (this._willNotify === true) {\n        return;\n      }\n      this._willNotify = true;\n      // it's possible a RecordData adhoc notifies us,\n      // in which case we sync flush\n      if (this._store._cbs) {\n        this._store._schedule('notify', () => this._flushNotifications());\n      } else {\n        this._flushNotifications();\n      }\n    }\n    _flushNotifications() {\n      if (this._willNotify === false) {\n        return;\n      }\n      let pending = this._pendingNotifies;\n      this._pendingNotifies = new Map();\n      this._willNotify = false;\n      pending.forEach((set, identifier) => {\n        set.forEach(key => {\n          this._store.notifications.notify(identifier, 'relationships', key);\n        });\n      });\n    }\n    notifyChange(identifier, namespace, key) {\n      (true && !(isStableIdentifier(identifier) || isDocumentIdentifier(identifier)) && (0, _debug.assert)(`Expected a stable identifier`, isStableIdentifier(identifier) || isDocumentIdentifier(identifier))); // TODO do we still get value from this?\n      if (namespace === 'relationships' && key) {\n        this._scheduleNotification(identifier, key);\n        return;\n      }\n\n      // @ts-expect-error\n      this._store.notifications.notify(identifier, namespace, key);\n    }\n    notifyErrorsChange(type, id, lid) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.notifyErrorsChange has been deprecated in favor of StoreWrapper.notifyChange`, false, {\n          id: 'ember-data:deprecate-v1cache-store-apis',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      }\n      const resource = constructResource(type, id, lid);\n      const identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      this._store.notifications.notify(identifier, 'errors');\n    }\n    attributesDefinitionFor(type) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.attributesDefinitionFor has been deprecated in favor of StoreWrapper.getSchemaDefinitionService().attributesDefinitionFor`, false, {\n          id: 'ember-data:deprecate-v1cache-store-apis',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      }\n      return this._store.getSchemaDefinitionService().attributesDefinitionFor({\n        type\n      });\n    }\n    relationshipsDefinitionFor(type) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.relationshipsDefinitionFor has been deprecated in favor of StoreWrapper.getSchemaDefinitionService().relationshipsDefinitionFor`, false, {\n          id: 'ember-data:deprecate-v1cache-store-apis',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      }\n      return this._store.getSchemaDefinitionService().relationshipsDefinitionFor({\n        type\n      });\n    }\n    getSchemaDefinitionService() {\n      return this._store.getSchemaDefinitionService();\n    }\n    notifyPropertyChange(type, id, lid, key) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.notifyPropertyChange has been deprecated in favor of StoreWrapper.notifyChange`, false, {\n          id: 'ember-data:deprecate-v1cache-store-apis',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      }\n      const resource = constructResource(type, id, lid);\n      const identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      this._store.notifications.notify(identifier, 'attributes', key);\n    }\n    notifyHasManyChange(type, id, lid, key) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.notifyHasManyChange has been deprecated in favor of StoreWrapper.notifyChange`, false, {\n          id: 'ember-data:deprecate-v1cache-store-apis',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      }\n      const resource = constructResource(type, id, lid);\n      const identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      this._scheduleNotification(identifier, key);\n    }\n    notifyBelongsToChange(type, id, lid, key) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.notifyBelongsToChange has been deprecated in favor of StoreWrapper.notifyChange`, false, {\n          id: 'ember-data:deprecate-v1cache-store-apis',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      }\n      const resource = constructResource(type, id, lid);\n      const identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      this._scheduleNotification(identifier, key);\n    }\n    notifyStateChange(type, id, lid, key) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.notifyStateChange has been deprecated in favor of StoreWrapper.notifyChange`, false, {\n          id: 'ember-data:deprecate-v1cache-store-apis',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      }\n      const resource = constructResource(type, id, lid);\n      const identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      this._store.notifications.notify(identifier, 'state');\n    }\n    recordDataFor(type, id, lid) {\n      let identifier;\n      {\n        if (!isStableIdentifier(type)) {\n          // we also deprecate create capability. This behavior was problematic because\n          // there's no outside association between this RecordData and an Identifier.\n          // It's likely a mistake when we hit this code-path, but we said in an early\n          // RFC we'd allow this.\n          // With V2 we are enforcing someone to use the record-data and identifier-cache APIs to\n          // create a new identifier and then call clientDidCreate on the RecordData\n          // instead.\n          identifier = !id && !lid ? this.identifierCache.createIdentifierForNewRecord({\n            type: type\n          }) : this.identifierCache.getOrCreateRecordIdentifier(constructResource(type, id, lid));\n        } else {\n          identifier = type;\n        }\n      }\n      const cache = this._store._instanceCache.getResourceCache(identifier);\n      {\n        if (!id && !lid && typeof type === 'string') {\n          cache.clientDidCreate(identifier);\n          this._store.recordArrayManager.identifierAdded(identifier);\n        }\n      }\n      return cache;\n    }\n    setRecordId(type, id, lid) {\n      let identifier;\n      {\n        if (!isStableIdentifier(type)) {\n          const modelName = normalizeModelName$1(type);\n          const resource = constructResource(modelName, null, coerceId(lid));\n          identifier = this.identifierCache.peekRecordIdentifier(resource);\n        } else {\n          identifier = type;\n        }\n      }\n      (true && !(identifier) && (0, _debug.assert)(`Unable to find an identifier to update the ID for for ${String(lid)}`, identifier));\n      this._store._instanceCache.setRecordId(identifier, id);\n    }\n    isRecordInUse(type, id, lid) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.isRecordInUSe has been deprecated in favor of StoreWrapper.hasRecord`, false, {\n          id: 'ember-data:deprecate-v1cache-store-apis',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          }\n        }));\n      }\n      const resource = constructResource(type, id, lid);\n      const identifier = this.identifierCache.peekRecordIdentifier(resource);\n      const record = identifier && this._store._instanceCache.peek({\n        identifier,\n        bucket: 'record'\n      });\n      return record ? !(record.isDestroyed || record.isDestroying) : false;\n    }\n    hasRecord(identifier) {\n      return Boolean(this._store._instanceCache.peek({\n        identifier,\n        bucket: 'record'\n      }));\n    }\n    disconnectRecord(type, id, lid) {\n      let identifier;\n      {\n        if (typeof type === 'string') {\n          (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.disconnectRecord(<type>) has been deprecated in favor of StoreWrapper.disconnectRecord(<identifier>)`, false, {\n            id: 'ember-data:deprecate-v1cache-store-apis',\n            for: 'ember-data',\n            until: '5.0',\n            since: {\n              enabled: '4.7',\n              available: '4.7'\n            }\n          }));\n          let resource = constructResource(type, id, lid);\n          identifier = this.identifierCache.peekRecordIdentifier(resource);\n        } else {\n          identifier = type;\n        }\n      }\n      (true && !(isStableIdentifier(identifier)) && (0, _debug.assert)(`Expected a stable identifier`, isStableIdentifier(identifier)));\n      this._store._instanceCache.disconnect(identifier);\n      this._pendingNotifies.delete(identifier);\n    }\n  }\n  class V2CacheStoreWrapper {\n    constructor(_store) {\n      this._store = _store;\n      this._willNotify = false;\n      this._pendingNotifies = new Map();\n    }\n    get identifierCache() {\n      return this._store.identifierCache;\n    }\n    _scheduleNotification(identifier, key) {\n      let pending = this._pendingNotifies.get(identifier);\n      if (!pending) {\n        pending = new Set();\n        this._pendingNotifies.set(identifier, pending);\n      }\n      pending.add(key);\n      if (this._willNotify === true) {\n        return;\n      }\n      this._willNotify = true;\n      // it's possible a cache adhoc notifies us,\n      // in which case we sync flush\n      if (this._store._cbs) {\n        this._store._schedule('notify', () => this._flushNotifications());\n      } else {\n        // TODO @runspired determine if relationship mutations should schedule\n        // into join/run vs immediate flush\n        this._flushNotifications();\n      }\n    }\n    _flushNotifications() {\n      if (this._willNotify === false) {\n        return;\n      }\n      let pending = this._pendingNotifies;\n      this._pendingNotifies = new Map();\n      this._willNotify = false;\n      pending.forEach((set, identifier) => {\n        set.forEach(key => {\n          this._store.notifications.notify(identifier, 'relationships', key);\n        });\n      });\n    }\n    notifyChange(identifier, namespace, key) {\n      (true && !(isStableIdentifier(identifier) || isDocumentIdentifier(identifier)) && (0, _debug.assert)(`Expected a stable identifier`, isStableIdentifier(identifier) || isDocumentIdentifier(identifier))); // TODO do we still get value from this?\n      if (namespace === 'relationships' && key) {\n        this._scheduleNotification(identifier, key);\n        return;\n      }\n\n      // @ts-expect-error\n      this._store.notifications.notify(identifier, namespace, key);\n    }\n    getSchemaDefinitionService() {\n      return this._store.getSchemaDefinitionService();\n    }\n    recordDataFor(identifier) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`StoreWrapper.recordDataFor is deprecated. With Singleton Cache, this method is no longer needed as the caller is its own cache reference.`, false, {\n          for: '@ember-data/store',\n          id: 'ember-data:deprecate-record-data-for',\n          since: {\n            available: '4.10',\n            enabled: '4.10'\n          },\n          until: '5.0'\n        }));\n      }\n      (true && !(isStableIdentifier(identifier)) && (0, _debug.assert)(`Expected a stable identifier`, isStableIdentifier(identifier)));\n      return this._store._instanceCache.getResourceCache(identifier);\n    }\n    setRecordId(identifier, id) {\n      (true && !(isStableIdentifier(identifier)) && (0, _debug.assert)(`Expected a stable identifier`, isStableIdentifier(identifier)));\n      this._store._instanceCache.setRecordId(identifier, id);\n    }\n    hasRecord(identifier) {\n      return Boolean(this._store._instanceCache.peek({\n        identifier,\n        bucket: 'record'\n      }));\n    }\n    disconnectRecord(identifier) {\n      (true && !(isStableIdentifier(identifier)) && (0, _debug.assert)(`Expected a stable identifier`, isStableIdentifier(identifier)));\n      this._store._instanceCache.disconnect(identifier);\n      this._pendingNotifies.delete(identifier);\n    }\n  }\n  const CacheStoreWrapper = LegacyWrapper;\n  let _peekGraph;\n  {\n    let __peekGraph;\n    _peekGraph = wrapper => {\n      let a = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).peekGraph;\n      __peekGraph = __peekGraph || a;\n      return __peekGraph(wrapper);\n    };\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  const RecordCache = new Map();\n  function peekRecordIdentifier(record) {\n    return RecordCache.get(record);\n  }\n\n  /**\n    Retrieves the unique referentially-stable [RecordIdentifier](/ember-data/release/classes/StableRecordIdentifier)\n    assigned to the given record instance.\n    ```js\n    import { recordIdentifierFor } from \"@ember-data/store\";\n    // ... gain access to a record, for instance with peekRecord or findRecord\n    const record = store.peekRecord(\"user\", \"1\");\n    // get the identifier for the record (see docs for StableRecordIdentifier)\n    const identifier = recordIdentifierFor(record);\n    // access the identifier's properties.\n    const { id, type, lid } = identifier;\n    ```\n    @method recordIdentifierFor\n    @public\n    @static\n    @for @ember-data/store\n    @param {Object} record a record instance previously obstained from the store.\n    @returns {StableRecordIdentifier}\n   */\n  function recordIdentifierFor(record) {\n    (true && !(RecordCache.has(record)) && (0, _debug.assert)(`${String(record)} is not a record instantiated by @ember-data/store`, RecordCache.has(record)));\n    return RecordCache.get(record);\n  }\n  function setRecordIdentifier(record, identifier) {\n    {\n      if (RecordCache.has(record) && RecordCache.get(record) !== identifier) {\n        throw new Error(`${String(record)} was already assigned an identifier`);\n      }\n    }\n\n    /*\n    It would be nice to do a reverse check here that an identifier has not\n    previously been assigned a record; however, unload + rematerialization\n    prevents us from having a great way of doing so when CustomRecordClasses\n    don't necessarily give us access to a `isDestroyed` for dematerialized\n    instance.\n    */\n\n    RecordCache.set(record, identifier);\n  }\n  const StoreMap = new Map();\n  function storeFor(record) {\n    const store = StoreMap.get(record);\n    (true && !(store) && (0, _debug.assert)(`A record in a disconnected state cannot utilize the store. This typically means the record has been destroyed, most commonly by unloading it.`, store));\n    return store;\n  }\n  class InstanceCache {\n    constructor(store) {\n      this.__instances = {\n        record: new Map(),\n        resourceCache: new Map(),\n        reference: new WeakMap()\n      };\n      this.store = store;\n      this._storeWrapper = new CacheStoreWrapper(this.store);\n      {\n        this.__cacheFor = resource => {\n          // TODO enforce strict\n          const identifier = this.store.identifierCache.getOrCreateRecordIdentifier(resource);\n          return this.getResourceCache(identifier);\n        };\n      }\n      store.identifierCache.__configureMerge((identifier, matchedIdentifier, resourceData) => {\n        let keptIdentifier = identifier;\n        if (identifier.id !== matchedIdentifier.id) {\n          keptIdentifier = 'id' in resourceData && identifier.id === resourceData.id ? identifier : matchedIdentifier;\n        } else if (identifier.type !== matchedIdentifier.type) {\n          keptIdentifier = 'type' in resourceData && identifier.type === resourceData.type ? identifier : matchedIdentifier;\n        }\n        let staleIdentifier = identifier === keptIdentifier ? matchedIdentifier : identifier;\n\n        // check for duplicate entities\n        let keptHasRecord = this.__instances.record.has(keptIdentifier);\n        let staleHasRecord = this.__instances.record.has(staleIdentifier);\n        let keptResourceCache = this.__instances.resourceCache.get(keptIdentifier) || null;\n        let staleResourceCache = this.__instances.resourceCache.get(staleIdentifier) || null;\n\n        // we cannot merge entities when both have records\n        // (this may not be strictly true, we could probably swap the cache data the record points at)\n        if (keptHasRecord && staleHasRecord) {\n          // TODO we probably don't need to throw these errors anymore\n          // we can probably just \"swap\" what data source the abandoned\n          // record points at so long as\n          // it itself is not retained by the store in any way.\n          if ('id' in resourceData) {\n            throw new Error(`Failed to update the 'id' for the RecordIdentifier '${identifier.type}:${String(identifier.id)} (${identifier.lid})' to '${String(resourceData.id)}', because that id is already in use by '${matchedIdentifier.type}:${String(matchedIdentifier.id)} (${matchedIdentifier.lid})'`);\n          }\n          (true && !(false) && (0, _debug.assert)(`Failed to update the RecordIdentifier '${identifier.type}:${String(identifier.id)} (${identifier.lid})' to merge with the detected duplicate identifier '${matchedIdentifier.type}:${String(matchedIdentifier.id)} (${String(matchedIdentifier.lid)})'`));\n        }\n        let resourceCache = keptResourceCache || staleResourceCache;\n        if (resourceCache) {\n          resourceCache.patch({\n            op: 'mergeIdentifiers',\n            record: staleIdentifier,\n            value: keptIdentifier\n          });\n        } else {\n          this.store.cache.patch({\n            op: 'mergeIdentifiers',\n            record: staleIdentifier,\n            value: keptIdentifier\n          });\n        }\n        if (staleResourceCache === null) {\n          return keptIdentifier;\n        }\n\n        /*\n        TODO @runspired consider adding this to make polymorphism even nicer\n        if (HAS_GRAPH_PACKAGE) {\n        if (identifier.type !== matchedIdentifier.type) {\n          const graphFor = importSync('@ember-data/graph/-private').graphFor;\n          graphFor(this).registerPolymorphicType(identifier.type, matchedIdentifier.type);\n        }\n        }\n        */\n\n        this.unloadRecord(staleIdentifier);\n        return keptIdentifier;\n      });\n    }\n    peek(_ref) {\n      var _this$__instances$buc;\n      let {\n        identifier,\n        bucket\n      } = _ref;\n      return (_this$__instances$buc = this.__instances[bucket]) === null || _this$__instances$buc === void 0 ? void 0 : _this$__instances$buc.get(identifier);\n    }\n    getRecord(identifier, properties) {\n      let record = this.__instances.record.get(identifier);\n      if (!record) {\n        (true && !(!this.store.isDestroying && !this.store.isDestroyed) && (0, _debug.assert)(`Cannot create a new record instance while the store is being destroyed`, !this.store.isDestroying && !this.store.isDestroyed));\n        const cache = this.getResourceCache(identifier);\n        {\n          if (this.store.instantiateRecord.length > 2) {\n            (true && !(false) && (0, _debug.deprecate)(`Expected store.instantiateRecord to have an arity of 2. recordDataFor and notificationManager args have been deprecated.`, false, {\n              for: '@ember-data/store',\n              id: 'ember-data:deprecate-instantiate-record-args',\n              since: {\n                available: '4.12',\n                enabled: '4.12'\n              },\n              until: '5.0'\n            }));\n          }\n          (true && !(\n          // @ts-expect-error managedVersion is private and debug only\n          Boolean(cache.managedVersion === '1' || cache.peek(identifier))) && (0, _debug.assert)(`Cannot create a record for ${identifier.type + ':' + String(identifier.id)} (${identifier.lid}) as no resource data exists`, Boolean(cache.managedVersion === '1' || cache.peek(identifier))));\n          record = this.store.instantiateRecord(identifier, properties || {},\n          // @ts-expect-error\n          this.__cacheFor, this.store.notifications);\n        }\n        setRecordIdentifier(record, identifier);\n        setCacheFor(record, cache);\n        StoreMap.set(record, this.store);\n        this.__instances.record.set(identifier, record);\n      }\n      return record;\n    }\n    getResourceCache(identifier) {\n      let cache = this.__instances.resourceCache.get(identifier);\n      if (cache) {\n        return cache;\n      }\n      if (this.store.createRecordDataFor) {\n        (true && !(false) && (0, _debug.deprecate)(`Store.createRecordDataFor(<type>, <id>, <lid>, <storeWrapper>) has been deprecated in favor of Store.createCache(<storeWrapper>)`, false, {\n          id: 'ember-data:deprecate-v1-cache',\n          for: 'ember-data',\n          until: '5.0',\n          since: {\n            enabled: '4.12',\n            available: '4.12'\n          }\n        }));\n        {\n          if (this.store.createRecordDataFor.length > 2) {\n            let cacheInstance = this.store.createRecordDataFor(identifier.type, identifier.id,\n            // @ts-expect-error\n            identifier.lid, this._storeWrapper);\n            cache = new NonSingletonCacheManager(this.store, cacheInstance, identifier);\n          }\n        }\n        if (!cache) {\n          let cacheInstance = this.store.createRecordDataFor(identifier, this._storeWrapper);\n          cache = cacheInstance.version === '2' ? cacheInstance : new NonSingletonCacheManager(this.store, cacheInstance, identifier);\n        }\n      } else {\n        cache = this.store.cache;\n      }\n      setCacheFor(identifier, cache);\n      this.__instances.resourceCache.set(identifier, cache);\n      return cache;\n    }\n    getReference(identifier) {\n      let cache = this.__instances.reference;\n      let reference = cache.get(identifier);\n      if (!reference) {\n        reference = new RecordReference(this.store, identifier);\n        cache.set(identifier, reference);\n      }\n      return reference;\n    }\n    recordIsLoaded(identifier) {\n      let filterDeleted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n      const cache = this.__instances.resourceCache.get(identifier) || this.cache;\n      if (!cache) {\n        return false;\n      }\n      const isNew = cache.isNew(identifier);\n      const isEmpty = cache.isEmpty(identifier);\n\n      // if we are new we must consider ourselves loaded\n      if (isNew) {\n        return !cache.isDeleted(identifier);\n      }\n      // even if we have a past request, if we are now empty we are not loaded\n      // typically this is true after an unloadRecord call\n\n      // if we are not empty, not new && we have a fulfilled request then we are loaded\n      // we should consider allowing for something to be loaded that is simply \"not empty\".\n      // which is how RecordState currently handles this case; however, RecordState is buggy\n      // in that it does not account for unloading.\n      return filterDeleted && cache.isDeletionCommitted(identifier) ? false : !isEmpty;\n    }\n    disconnect(identifier) {\n      const record = this.__instances.record.get(identifier);\n      (true && !(!record || record.isDestroyed || record.isDestroying) && (0, _debug.assert)('Cannot destroy record while it is still materialized', !record || record.isDestroyed || record.isDestroying));\n      {\n        let graph = _peekGraph(this.store);\n        if (graph) {\n          graph.remove(identifier);\n        }\n      }\n      this.store.identifierCache.forgetRecordIdentifier(identifier);\n      this.__instances.resourceCache.delete(identifier);\n      removeRecordDataFor(identifier);\n      this.store._requestCache._clearEntries(identifier);\n    }\n    unloadRecord(identifier) {\n      {\n        const requests = this.store.getRequestStateService().getPendingRequestsForRecord(identifier);\n        if (requests.some(req => {\n          return req.type === 'mutation';\n        })) {\n          (true && !(false) && (0, _debug.assert)(`You can only unload a record which is not inFlight. '${String(identifier)}'`));\n        }\n      }\n      // TODO is this join still necessary?\n      this.store._join(() => {\n        const record = this.__instances.record.get(identifier);\n        const cache = this.__instances.resourceCache.get(identifier);\n        if (record) {\n          this.store.teardownRecord(record);\n          this.__instances.record.delete(identifier);\n          StoreMap.delete(record);\n          RecordCache.delete(record);\n          removeRecordDataFor(record);\n        }\n        if (cache) {\n          cache.unloadRecord(identifier);\n          this.__instances.resourceCache.delete(identifier);\n          removeRecordDataFor(identifier);\n        } else {\n          this.disconnect(identifier);\n        }\n        this.store._requestCache._clearEntries(identifier);\n      });\n    }\n    clear(type) {\n      const cache = this.store.identifierCache._cache;\n      if (type === undefined) {\n        // it would be cool if we could just de-ref cache here\n        // but probably would require WeakRef models to do so.\n        cache.lids.forEach(identifier => {\n          this.unloadRecord(identifier);\n        });\n      } else {\n        var _typeCache$type;\n        const typeCache = cache.types;\n        let identifiers = (_typeCache$type = typeCache[type]) === null || _typeCache$type === void 0 ? void 0 : _typeCache$type.lid;\n        // const rds = this.__instances.resourceCache;\n        if (identifiers) {\n          identifiers.forEach(identifier => {\n            // if (rds.has(identifier)) {\n            this.unloadRecord(identifier);\n            // }\n            // TODO we don't remove the identifier, should we?\n          });\n        }\n      }\n    }\n\n    // TODO this should move into something coordinating operations\n    setRecordId(identifier, id) {\n      const {\n        type,\n        lid\n      } = identifier;\n      let oldId = identifier.id;\n\n      // ID absolutely can't be missing if the oldID is empty (missing Id in response for a new record)\n      (true && !(!(id === null && oldId === null)) && (0, _debug.assert)(`'${type}' 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      (true && !(!(oldId !== null && id !== oldId)) && (0, _debug.assert)(`Cannot update the id for '${type}:${lid}' from '${String(oldId)}' to '${id}'.`, !(oldId !== null && id !== oldId))); // ID can be null if oldID is not null (altered ID in response for a record)\n      // however, this is more than likely a developer error.\n      if (oldId !== null && id === null) {\n        (true && (0, _debug.warn)(`Your ${type} record was saved to the server, but the response does not have an id.`, !(oldId !== null && id === null)));\n        return;\n      }\n      let existingIdentifier = this.store.identifierCache.peekRecordIdentifier({\n        type,\n        id\n      });\n      (true && !(!existingIdentifier || existingIdentifier === identifier) && (0, _debug.assert)(`'${type}' was saved to the server, but the response returned the new id '${id}', which has already been used with another record.'`, !existingIdentifier || existingIdentifier === identifier));\n      if (identifier.id === null) {\n        // TODO potentially this needs to handle merged result\n        this.store.identifierCache.updateRecordIdentifier(identifier, {\n          type,\n          id\n        });\n      }\n\n      // TODO update resource cache if needed ?\n      // TODO handle consequences of identifier merge for notifications\n      this.store.notifications.notify(identifier, 'identity');\n    }\n\n    // TODO ths should be wrapped in a deprecation flag since cache.put\n    // handles this the rest of the time\n    loadData(data) {\n      let modelName = data.type;\n      (true && !(data.id !== null && data.id !== undefined && data.id !== '') && (0, _debug.assert)(`You must include an 'id' for ${modelName} in an object passed to 'push'`, data.id !== null && data.id !== undefined && data.id !== ''));\n      (true && !(this.store.getSchemaDefinitionService().doesTypeExist(modelName)) && (0, _debug.assert)(`You tried to push data with a type '${modelName}' but no model could be found with that name.`, this.store.getSchemaDefinitionService().doesTypeExist(modelName)));\n      const resource = constructResource(normalizeModelName$1(data.type), ensureStringId(data.id), coerceId(data.lid));\n      let identifier = this.store.identifierCache.peekRecordIdentifier(resource);\n      let isUpdate = false;\n\n      // store.push will be from empty\n      // findRecord will be from root.loading\n      // this cannot be loading state if we do not already have an identifier\n      // all else will be updates\n      if (identifier) {\n        const isLoading = _isLoading(this, identifier) || !this.recordIsLoaded(identifier);\n        isUpdate = !_isEmpty(this, identifier) && !isLoading;\n\n        // exclude store.push (root.empty) case\n        if (isUpdate || isLoading) {\n          identifier = this.store.identifierCache.updateRecordIdentifier(identifier, data);\n        }\n      } else {\n        identifier = this.store.identifierCache.getOrCreateRecordIdentifier(data);\n      }\n      const cache = this.getResourceCache(identifier);\n      const hasRecord = this.__instances.record.has(identifier);\n      cache.upsert(identifier, data, hasRecord);\n      return identifier;\n    }\n  }\n  function _resourceIsFullDeleted(identifier, cache) {\n    return cache.isDeletionCommitted(identifier) || cache.isNew(identifier) && cache.isDeleted(identifier);\n  }\n  function resourceIsFullyDeleted(instanceCache, identifier) {\n    const cache = instanceCache.__instances.resourceCache.get(identifier);\n    return !cache || _resourceIsFullDeleted(identifier, cache);\n  }\n\n  /*\n      When a find request is triggered on the store, the user can optionally pass in\n      attributes and relationships to be preloaded. These are meant to behave as if they\n      came back from the server, except the user obtained them out of band and is informing\n      the store of their existence. The most common use case is for supporting client side\n      nested URLs, such as `/posts/1/comments/2` so the user can do\n      `store.findRecord('comment', 2, { preload: { post: 1 } })` without having to fetch the post.\n  \n      Preloaded data can be attributes and relationships passed in either as IDs or as actual\n      models.\n    */\n\n  function preloadData(store, identifier, preload) {\n    let jsonPayload = {};\n    //TODO(Igor) consider the polymorphic case\n    const schemas = store.getSchemaDefinitionService();\n    const relationships = schemas.relationshipsDefinitionFor(identifier);\n    Object.keys(preload).forEach(key => {\n      let preloadValue = preload[key];\n      let relationshipMeta = relationships[key];\n      if (relationshipMeta) {\n        if (!jsonPayload.relationships) {\n          jsonPayload.relationships = {};\n        }\n        jsonPayload.relationships[key] = preloadRelationship(relationshipMeta, preloadValue);\n      } else {\n        if (!jsonPayload.attributes) {\n          jsonPayload.attributes = {};\n        }\n        jsonPayload.attributes[key] = preloadValue;\n      }\n    });\n    const cache = store._instanceCache.getResourceCache(identifier);\n    const hasRecord = Boolean(store._instanceCache.peek({\n      identifier,\n      bucket: 'record'\n    }));\n    cache.upsert(identifier, jsonPayload, hasRecord);\n  }\n  function preloadRelationship(schema, preloadValue) {\n    const relatedType = schema.type;\n    if (schema.kind === 'hasMany') {\n      (true && !(Array.isArray(preloadValue)) && (0, _debug.assert)('You need to pass in an array to set a hasMany property on a record', Array.isArray(preloadValue)));\n      return {\n        data: preloadValue.map(value => _convertPreloadRelationshipToJSON(value, relatedType))\n      };\n    }\n    (true && !(!Array.isArray(preloadValue)) && (0, _debug.assert)('You should not pass in an array to set a belongsTo property on a record', !Array.isArray(preloadValue)));\n    return {\n      data: preloadValue ? _convertPreloadRelationshipToJSON(preloadValue, relatedType) : null\n    };\n  }\n\n  /*\n    findRecord('user', '1', { preload: { friends: ['1'] }});\n    findRecord('user', '1', { preload: { friends: [record] }});\n  */\n  function _convertPreloadRelationshipToJSON(value, type) {\n    if (typeof value === 'string' || typeof value === 'number') {\n      return {\n        type,\n        id: value\n      };\n    }\n    // TODO if not a record instance assert it's an identifier\n    // and allow identifiers to be used\n    return recordIdentifierFor(value);\n  }\n  function _isEmpty(instanceCache, identifier) {\n    const cache = instanceCache.__instances.resourceCache.get(identifier);\n    if (!cache) {\n      return true;\n    }\n    const isNew = cache.isNew(identifier);\n    const isDeleted = cache.isDeleted(identifier);\n    const isEmpty = cache.isEmpty(identifier);\n    return (!isNew || isDeleted) && isEmpty;\n  }\n  function _isLoading(cache, identifier) {\n    const req = cache.store.getRequestStateService();\n    // const fulfilled = req.getLastRequestForRecord(identifier);\n    const isLoaded = cache.recordIsLoaded(identifier);\n    return !isLoaded &&\n    // fulfilled === null &&\n    req.getPendingRequestsForRecord(identifier).some(req => req.type === 'query');\n  }\n  function _clearCaches() {\n    RecordCache.clear();\n    StoreMap.clear();\n    CacheForIdentifierCache.clear();\n  }\n  let _modelForMixin;\n  {\n    let _found;\n    _modelForMixin = function () {\n      if (!_found) {\n        _found = (0, _esCompat.default)(require(\"@ember-data/model/-private\"))._modelForMixin;\n      }\n      return _found(...arguments);\n    };\n  }\n  class DSModelSchemaDefinitionService {\n    constructor(store) {\n      this.store = store;\n      this._relationshipsDefCache = Object.create(null);\n      this._attributesDefCache = Object.create(null);\n    }\n\n    // Following the existing RD implementation\n    attributesDefinitionFor(identifier) {\n      let modelName, attributes;\n      {\n        if (typeof identifier === 'string') {\n          (true && !(false) && (0, _debug.deprecate)(`attributesDefinitionFor expects either a record identifier or an argument of shape { type: string }, received a string.`, false, {\n            id: 'ember-data:deprecate-string-arg-schemas',\n            for: 'ember-data',\n            until: '5.0',\n            since: {\n              enabled: '4.5',\n              available: '4.5'\n            }\n          }));\n          modelName = identifier;\n        } else {\n          modelName = identifier.type;\n        }\n      }\n      attributes = this._attributesDefCache[modelName];\n      if (attributes === undefined) {\n        let modelClass = this.store.modelFor(modelName);\n        let attributeMap = modelClass.attributes;\n        attributes = Object.create(null);\n        attributeMap.forEach((meta, name) => attributes[name] = meta);\n        this._attributesDefCache[modelName] = attributes;\n      }\n      return attributes;\n    }\n\n    // Following the existing RD implementation\n    relationshipsDefinitionFor(identifier) {\n      let modelName, relationships;\n      {\n        if (typeof identifier === 'string') {\n          (true && !(false) && (0, _debug.deprecate)(`relationshipsDefinitionFor expects either a record identifier or an argument of shape { type: string }, received a string.`, false, {\n            id: 'ember-data:deprecate-string-arg-schemas',\n            for: 'ember-data',\n            until: '5.0',\n            since: {\n              enabled: '4.5',\n              available: '4.5'\n            }\n          }));\n          modelName = identifier;\n        } else {\n          modelName = identifier.type;\n        }\n      }\n      relationships = this._relationshipsDefCache[modelName];\n      if (relationships === undefined) {\n        let modelClass = this.store.modelFor(modelName);\n        relationships = modelClass.relationshipsObject || null;\n        this._relationshipsDefCache[modelName] = relationships;\n      }\n      return relationships;\n    }\n    doesTypeExist(modelName) {\n      let normalizedModelName = normalizeModelName$1(modelName);\n      let factory = getModelFactory(this.store, this.store._modelFactoryCache, normalizedModelName);\n      return factory !== null;\n    }\n  }\n  function getModelFactory(store, cache, normalizedModelName) {\n    let factory = cache[normalizedModelName];\n    if (!factory) {\n      let owner = (0, _application.getOwner)(store);\n      factory = owner.factoryFor(`model:${normalizedModelName}`);\n      {\n        if (!factory) {\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      let klass = factory.class;\n      if (klass.isModel) {\n        let hasOwnModelNameSet = klass.modelName && Object.prototype.hasOwnProperty.call(klass, 'modelName');\n        if (!hasOwnModelNameSet) {\n          Object.defineProperty(klass, 'modelName', {\n            value: normalizedModelName\n          });\n        }\n      }\n      cache[normalizedModelName] = factory;\n    }\n    return factory;\n  }\n\n  // if modelFor turns out to be a bottleneck we should replace with a Map\n  // and clear it during store teardown.\n  const AvailableShims = new WeakMap();\n  function getShimClass(store, modelName) {\n    let shims = AvailableShims.get(store);\n    if (!shims) {\n      shims = Object.create(null);\n      AvailableShims.set(store, shims);\n    }\n    let shim = shims[modelName];\n    if (shim === undefined) {\n      shim = shims[modelName] = new ShimModelClass(store, modelName);\n    }\n    return shim;\n  }\n  function mapFromHash(hash) {\n    let map = new Map();\n    for (let i in hash) {\n      if (Object.prototype.hasOwnProperty.call(hash, i)) {\n        map.set(i, hash[i]);\n      }\n    }\n    return map;\n  }\n\n  // Mimics the static apis of DSModel\n  class ShimModelClass {\n    constructor(store, modelName) {\n      this.__store = store;\n      this.modelName = modelName;\n    }\n    get fields() {\n      let attrs = this.__store.getSchemaDefinitionService().attributesDefinitionFor({\n        type: this.modelName\n      });\n      let relationships = this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({\n        type: this.modelName\n      });\n      let fields = new Map();\n      Object.keys(attrs).forEach(key => fields.set(key, 'attribute'));\n      Object.keys(relationships).forEach(key => fields.set(key, relationships[key].kind));\n      return fields;\n    }\n    get attributes() {\n      let attrs = this.__store.getSchemaDefinitionService().attributesDefinitionFor({\n        type: this.modelName\n      });\n      return mapFromHash(attrs);\n    }\n    get relationshipsByName() {\n      let relationships = this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({\n        type: this.modelName\n      });\n      return mapFromHash(relationships);\n    }\n    eachAttribute(callback, binding) {\n      let attrDefs = this.__store.getSchemaDefinitionService().attributesDefinitionFor({\n        type: this.modelName\n      });\n      Object.keys(attrDefs).forEach(key => {\n        callback.call(binding, key, attrDefs[key]);\n      });\n    }\n    eachRelationship(callback, binding) {\n      let relationshipDefs = this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({\n        type: this.modelName\n      });\n      Object.keys(relationshipDefs).forEach(key => {\n        callback.call(binding, key, relationshipDefs[key]);\n      });\n    }\n    eachTransformedAttribute(callback, binding) {\n      const attrDefs = this.__store.getSchemaDefinitionService().attributesDefinitionFor({\n        type: this.modelName\n      });\n      Object.keys(attrDefs).forEach(key => {\n        if (attrDefs[key].type) {\n          var _attrDefs$key$type, _attrDefs$key;\n          callback.call(binding, key, (_attrDefs$key$type = (_attrDefs$key = attrDefs[key]) === null || _attrDefs$key === void 0 ? void 0 : _attrDefs$key.type) !== null && _attrDefs$key$type !== void 0 ? _attrDefs$key$type : null);\n        }\n      });\n    }\n  }\n  let tokenId = 0;\n  const CacheOperations = new Set(['added', 'removed', 'state', 'updated']);\n  function isCacheOperationValue(value) {\n    return CacheOperations.has(value);\n  }\n  function runLoopIsFlushing() {\n    //@ts-expect-error\n    return !!_runloop._backburner.currentInstance && _runloop._backburner._autorun !== true;\n  }\n  function _unsubscribe(tokens, token, cache) {\n    let identifier = tokens.get(token);\n    if (identifier) {\n      tokens.delete(token);\n      const map = cache.get(identifier);\n      map === null || map === void 0 || map.delete(token);\n    }\n  }\n\n  /**\n   * The NotificationManager provides the ability to subscribe to\n   * changes to Cache state.\n   *\n   * This Feature is what allows EmberData to create subscriptions that\n   * work with any framework or change-notification system.\n   *\n   * @class NotificationManager\n   * @public\n   */\n  class NotificationManager {\n    constructor(store) {\n      this.store = store;\n      this.isDestroyed = false;\n      this._buffered = new Map();\n      this._hasFlush = false;\n      this._cache = new Map();\n      this._tokens = new Map();\n    }\n\n    /**\n     * Subscribe to changes for a given resource identifier, resource addition/removal, or document addition/removal.\n     *\n     * ```ts\n     * export type CacheOperation = 'added' | 'removed' | 'updated' | 'state';\n     *\n     * export interface NotificationCallback {\n     *   (identifier: StableRecordIdentifier, notificationType: 'attributes' | 'relationships', key?: string): void;\n     *   (identifier: StableRecordIdentifier, notificationType: 'errors' | 'meta' | 'identity' | 'state'): void;\n     *   (identifier: StableRecordIdentifier, notificationType: NotificationType, key?: string): void;\n     * }\n     * export interface ResourceOperationCallback {\n     *   // resource updates\n     *   (identifier: StableRecordIdentifier, notificationType: CacheOperation): void;\n     * }\n     * export interface DocumentOperationCallback {\n     *   // document updates\n     *   (identifier: StableDocumentIdentifier, notificationType: CacheOperation): void;\n     * }\n     * ```\n     *\n     * @method subscribe\n     * @public\n     * @param {StableDocumentIdentifier | StableRecordIdentifier | 'resource' | 'document'} identifier\n     * @param {NotificationCallback | ResourceOperationCallback | DocumentOperationCallback} callback\n     * @returns {UnsubscribeToken} an opaque token to be used with unsubscribe\n     */\n\n    subscribe(identifier, callback) {\n      (true && !(identifier === 'resource' || identifier === 'document' || isStableIdentifier(identifier) || isDocumentIdentifier(identifier)) && (0, _debug.assert)(`Expected to receive a stable Identifier to subscribe to`, identifier === 'resource' || identifier === 'document' || isStableIdentifier(identifier) || isDocumentIdentifier(identifier)));\n      let map = this._cache.get(identifier);\n      if (!map) {\n        map = new Map();\n        this._cache.set(identifier, map);\n      }\n      let unsubToken = {\n        _tokenRef: tokenId++\n      };\n      map.set(unsubToken, callback);\n      this._tokens.set(unsubToken, identifier);\n      return unsubToken;\n    }\n\n    /**\n     * remove a previous subscription\n     *\n     * @method unsubscribe\n     * @public\n     * @param {UnsubscribeToken} token\n     */\n    unsubscribe(token) {\n      if (!this.isDestroyed) {\n        _unsubscribe(this._tokens, token, this._cache);\n      }\n    }\n\n    /**\n     * Custom Caches and Application Code should not call this method directly.\n     *\n     * @method notify\n     * @param identifier\n     * @param value\n     * @param key\n     * @return {Boolean} whether a notification was delivered to any subscribers\n     * @private\n     */\n\n    notify(identifier, value, key) {\n      var _this$_cache$get;\n      (true && !(!key || value === 'attributes' || value === 'relationships') && (0, _debug.assert)(`Notify does not accept a key argument for the namespace '${value}'. Received key '${key || ''}'.`, !key || value === 'attributes' || value === 'relationships'));\n      if (!isStableIdentifier(identifier) && !isDocumentIdentifier(identifier)) {\n        return false;\n      }\n      const hasSubscribers = Boolean((_this$_cache$get = this._cache.get(identifier)) === null || _this$_cache$get === void 0 ? void 0 : _this$_cache$get.size);\n      if (isCacheOperationValue(value) || hasSubscribers) {\n        let buffer = this._buffered.get(identifier);\n        if (!buffer) {\n          buffer = [];\n          this._buffered.set(identifier, buffer);\n        }\n        buffer.push([value, key]);\n        void this._scheduleNotify();\n      }\n      return hasSubscribers;\n    }\n    _onNextFlush(cb) {\n      this._onFlushCB = cb;\n    }\n    _scheduleNotify() {\n      const asyncFlush = this.store._enableAsyncFlush;\n      if (this._hasFlush) {\n        if (asyncFlush !== false && !runLoopIsFlushing()) {\n          return;\n        }\n      }\n      if (asyncFlush && !runLoopIsFlushing()) {\n        this._hasFlush = true;\n        return;\n      }\n      this._flush();\n    }\n    _flush() {\n      var _this$_onFlushCB;\n      if (this._buffered.size) {\n        this._buffered.forEach((states, identifier) => {\n          states.forEach(args => {\n            // @ts-expect-error\n            this._flushNotification(identifier, args[0], args[1]);\n          });\n        });\n        this._buffered = new Map();\n      }\n      this._hasFlush = false;\n      (_this$_onFlushCB = this._onFlushCB) === null || _this$_onFlushCB === void 0 || _this$_onFlushCB.call(this);\n      this._onFlushCB = undefined;\n    }\n    _flushNotification(identifier, value, key) {\n      // TODO for documents this will need to switch based on Identifier kind\n      if (isCacheOperationValue(value)) {\n        let callbackMap = this._cache.get(isDocumentIdentifier(identifier) ? 'document' : 'resource');\n        if (callbackMap) {\n          callbackMap.forEach(cb => {\n            cb(identifier, value);\n          });\n        }\n      }\n      let callbackMap = this._cache.get(identifier);\n      if (!callbackMap || !callbackMap.size) {\n        return false;\n      }\n      callbackMap.forEach(cb => {\n        // @ts-expect-error overload doesn't narrow within body\n        cb(identifier, value, key);\n      });\n      return true;\n    }\n    destroy() {\n      this.isDestroyed = true;\n      this._tokens.clear();\n      this._cache.clear();\n    }\n  }\n  const PromiseArrayProxy = _proxy.default.extend(_promiseProxyMixin.default);\n  const PromiseObjectProxy = _proxy2.default.extend(_promiseProxyMixin.default);\n  var _dec, _class$1, _descriptor$1;\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    A `PromiseArray` is an object that acts like both an `Ember.Array`\n    and a promise. When the promise is resolved the resulting value\n    will be set to the `PromiseArray`'s `content` property. This makes\n    it easy to create data bindings with the `PromiseArray` that will be\n    updated when the promise resolves.\n  \n    This class should not be imported and instantiated directly.\n  \n    For more information see the [Ember.PromiseProxyMixin\n    documentation](/ember/release/classes/PromiseProxyMixin).\n  \n    Example\n  \n    ```javascript\n    let promiseArray = PromiseArray.create({\n      promise: $.getJSON('/some/remote/data.json')\n    });\n  \n    promiseArray.length; // 0\n  \n    promiseArray.then(function() {\n      promiseArray.length; // 100\n    });\n    ```\n  \n    @class PromiseArray\n    @public\n    @extends Ember.ArrayProxy\n    @uses Ember.PromiseProxyMixin\n  */\n  let PromiseArray = (_dec = (0, _computed.reads)('content.meta'), _class$1 = class PromiseArray extends PromiseArrayProxy {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"meta\", _descriptor$1, this);\n    }\n  }, _descriptor$1 = _applyDecoratedDescriptor(_class$1.prototype, \"meta\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class$1);\n  function _promiseObject(promise) {\n    return PromiseObjectProxy.create({\n      promise\n    });\n  }\n  function _promiseArray(promise) {\n    return PromiseArray.create({\n      promise\n    });\n  }\n\n  // constructor is accessed in some internals but not including it in the copyright for the deprecation\n  const ALLOWABLE_METHODS = ['constructor', 'then', 'catch', 'finally'];\n  const ALLOWABLE_PROPS = ['__ec_yieldable__', '__ec_cancel__'];\n  const PROXIED_ARRAY_PROPS = ['length', '[]', 'firstObject', 'lastObject', 'meta', 'content', 'isPending', 'isSettled', 'isRejected', 'isFulfilled', 'promise', 'reason'];\n  const PROXIED_OBJECT_PROPS = ['content', 'isPending', 'isSettled', 'isRejected', 'isFulfilled', 'promise', 'reason'];\n  function promiseArray(promise) {\n    const promiseObjectProxy = _promiseArray(promise);\n    const handler = {\n      get(target, prop, receiver) {\n        if (typeof prop === 'symbol') {\n          return Reflect.get(target, prop, receiver);\n        }\n        if (ALLOWABLE_PROPS.includes(prop)) {\n          return target[prop];\n        }\n        if (!ALLOWABLE_METHODS.includes(prop)) {\n          (true && !(false) && (0, _debug.deprecate)(`Accessing ${prop} on this PromiseArray is deprecated. The return type is being changed from PromiseArray to a Promise. The only available methods to access on this promise are .then, .catch and .finally`, false, {\n            id: 'ember-data:deprecate-promise-proxies',\n            until: '5.0',\n            for: '@ember-data/store',\n            since: {\n              available: '4.7',\n              enabled: '4.7'\n            }\n          }));\n        }\n        const value = target[prop];\n        if (value && typeof value === 'function' && typeof value.bind === 'function') {\n          return value.bind(target);\n        }\n        if (PROXIED_ARRAY_PROPS.includes(prop)) {\n          return value;\n        }\n        return undefined;\n      }\n    };\n    return new Proxy(promiseObjectProxy, handler);\n  }\n  const ProxySymbolString = String(Symbol.for('PROXY_CONTENT'));\n  function promiseObject(promise) {\n    const promiseObjectProxy = _promiseObject(promise);\n    const handler = {\n      get(target, prop, receiver) {\n        if (typeof prop === 'symbol') {\n          if (String(prop) === ProxySymbolString) {\n            return;\n          }\n          return Reflect.get(target, prop, receiver);\n        }\n        if (prop === 'constructor') {\n          return target.constructor;\n        }\n        if (ALLOWABLE_PROPS.includes(prop)) {\n          return target[prop];\n        }\n        if (!ALLOWABLE_METHODS.includes(prop)) {\n          (true && !(false) && (0, _debug.deprecate)(`Accessing ${prop} on this PromiseObject is deprecated. The return type is being changed from PromiseObject to a Promise. The only available methods to access on this promise are .then, .catch and .finally`, false, {\n            id: 'ember-data:deprecate-promise-proxies',\n            until: '5.0',\n            for: '@ember-data/store',\n            since: {\n              available: '4.7',\n              enabled: '4.7'\n            }\n          }));\n        } else {\n          return target[prop].bind(target);\n        }\n        if (PROXIED_OBJECT_PROPS.includes(prop)) {\n          return target[prop];\n        }\n        const value = (0, _object.get)(target, prop);\n        if (value && typeof value === 'function' && typeof value.bind === 'function') {\n          return value.bind(receiver);\n        }\n        return undefined;\n      }\n    };\n    return new Proxy(promiseObjectProxy, handler);\n  }\n  var _class, _descriptor, _class3, _descriptor2;\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  const ARRAY_SETTER_METHODS = new Set(['push', 'pop', 'unshift', 'shift', 'splice', 'sort']);\n  const SYNC_PROPS = new Set(['[]', 'length', 'links', 'meta']);\n  function isArrayGetter(prop) {\n    return ARRAY_GETTER_METHODS.has(prop);\n  }\n  function isArraySetter(prop) {\n    return ARRAY_SETTER_METHODS.has(prop);\n  }\n  const IDENTIFIER_ARRAY_TAG = _exports.l = Symbol('#tag');\n  const SOURCE = _exports.k = Symbol('#source');\n  const MUTATE = _exports.M = Symbol('#update');\n  const NOTIFY = Symbol('#notify');\n  const IS_COLLECTION = Symbol.for('Collection');\n  function notifyArray(arr) {\n    (0, _private.addToTransaction)(arr[IDENTIFIER_ARRAY_TAG]);\n    {\n      // eslint-disable-next-line\n      (0, _validator.dirtyTag)((0, _metal.tagForProperty)(arr, 'length'));\n      // eslint-disable-next-line\n      (0, _validator.dirtyTag)((0, _metal.tagForProperty)(arr, '[]'));\n    }\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  let Tag = (_class = class Tag {\n    /*\n     * whether this was part of a transaction when last mutated\n     */\n\n    constructor() {\n      _initializerDefineProperty(this, \"ref\", _descriptor, this);\n      {\n        const [arr, prop] = arguments;\n        this._debug_base = arr.constructor.name + ':' + String(arr.modelName);\n        this._debug_prop = prop;\n      }\n      this.shouldReset = false;\n      this.t = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"ref\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class);\n  function deprecateArrayLike(className, fnName, replName) {\n    (true && !(false) && (0, _debug.deprecate)(`The \\`${fnName}\\` method on the class ${className} is deprecated. Use the native array method \\`${replName}\\` instead.`, false, {\n      id: 'ember-data:deprecate-array-like',\n      until: '5.0',\n      since: {\n        enabled: '4.7',\n        available: '4.7'\n      },\n      for: 'ember-data'\n    }));\n  }\n  function safeForEach(instance, arr, store, callback, target) {\n    if (target === undefined) {\n      target = null;\n    }\n    // clone to prevent mutation\n    arr = arr.slice();\n    (true && !(typeof callback === 'function') && (0, _debug.assert)('`forEach` expects a function as first argument.', typeof callback === 'function')); // because we retrieveLatest above we need not worry if array is mutated during iteration\n    // by unloadRecord/rollbackAttributes\n    // push/add/removeObject may still be problematic\n    // but this is a more traditionally expected forEach bug.\n    const length = arr.length; // we need to access length to ensure we are consumed\n\n    for (let index = 0; index < length; index++) {\n      callback.call(target, store._instanceCache.getRecord(arr[index]), index, instance);\n    }\n    return instance;\n  }\n\n  /**\n    A record array is an array that contains records of a certain type (or modelName).\n    The record array materializes records as needed when they are retrieved for the first\n    time. You should not create record arrays yourself. Instead, an instance of\n    `RecordArray` or its subclasses will be returned by your application's store\n    in response to queries.\n  \n    This class should not be imported and instantiated by consuming applications.\n  \n    @class RecordArray\n    @public\n  */\n  let IdentifierArray = _exports.I = (_class3 = class IdentifierArray {\n    /**\n      The flag to signal a `RecordArray` is currently loading data.\n      Example\n      ```javascript\n      let people = store.peekAll('person');\n      people.isUpdating; // false\n      people.update();\n      people.isUpdating; // true\n      ```\n      @property isUpdating\n      @public\n      @type Boolean\n    */\n\n    [NOTIFY]() {\n      notifyArray(this);\n    }\n\n    /**\n     The modelClass represented by this record array.\n      @property type\n      @public\n      @deprecated\n     @type {subclass of Model}\n     */\n\n    /**\n      The store that created this record array.\n       @property store\n      @private\n      @type Store\n      */\n\n    destroy(clear) {\n      this.isDestroying = !clear;\n      // changing the reference breaks the Proxy\n      // this[SOURCE] = [];\n      this[SOURCE].length = 0;\n      this[NOTIFY]();\n      this.isDestroyed = !clear;\n    }\n\n    // length must be on self for proxied methods to work properly\n    get length() {\n      return this[SOURCE].length;\n    }\n    set length(value) {\n      this[SOURCE].length = value;\n    }\n\n    // here to support computed chains\n    // and {{#each}}\n    get '[]'() {\n      {\n        return this;\n      }\n    }\n    constructor(options) {\n      _initializerDefineProperty(this, \"isUpdating\", _descriptor2, this);\n      this.isLoaded = true;\n      this.isDestroying = false;\n      this.isDestroyed = false;\n      this._updatingPromise = null;\n      this[IS_COLLECTION] = true;\n      this[SOURCE] = void 0;\n      // eslint-disable-next-line @typescript-eslint/no-this-alias\n      const self = this;\n      this.modelName = options.type;\n      this.store = options.store;\n      this._manager = options.manager;\n      this[SOURCE] = options.identifiers;\n      // @ts-expect-error\n      this[IDENTIFIER_ARRAY_TAG] = new Tag(this, 'length');\n      const store = options.store;\n      const boundFns = new Map();\n      const _TAG = this[IDENTIFIER_ARRAY_TAG];\n      const PrivateState = {\n        links: options.links || null,\n        meta: options.meta || null\n      };\n      let transaction = false;\n\n      // when a mutation occurs\n      // we track all mutations within the call\n      // and forward them as one\n\n      const proxy = new Proxy(this[SOURCE], {\n        get(target, prop, receiver) {\n          let index = convertToInt(prop);\n          if (_TAG.shouldReset && (index !== null || SYNC_PROPS.has(prop) || isArrayGetter(prop))) {\n            options.manager._syncArray(receiver);\n            _TAG.t = false;\n            _TAG.shouldReset = false;\n          }\n          if (index !== null) {\n            const identifier = target[index];\n            if (!transaction) {\n              (0, _private.subscribe)(_TAG);\n            }\n            return identifier && store._instanceCache.getRecord(identifier);\n          }\n          if (prop === 'meta') return (0, _private.subscribe)(_TAG), PrivateState.meta;\n          if (prop === 'links') return (0, _private.subscribe)(_TAG), PrivateState.links;\n          if (prop === '[]') return (0, _private.subscribe)(_TAG), receiver;\n          if (isArrayGetter(prop)) {\n            let fn = boundFns.get(prop);\n            if (fn === undefined) {\n              if (prop === 'forEach') {\n                fn = function () {\n                  (0, _private.subscribe)(_TAG);\n                  transaction = true;\n                  const result = safeForEach(receiver, target, store, arguments[0], arguments[1]);\n                  transaction = false;\n                  return result;\n                };\n              } else {\n                fn = function () {\n                  (0, _private.subscribe)(_TAG);\n                  // array functions must run through Reflect to work properly\n                  // binding via other means will not work.\n                  transaction = true;\n                  const result = Reflect.apply(target[prop], receiver, arguments);\n                  transaction = false;\n                  return result;\n                };\n              }\n              boundFns.set(prop, fn);\n            }\n            return fn;\n          }\n          if (isArraySetter(prop)) {\n            let fn = boundFns.get(prop);\n            if (fn === undefined) {\n              fn = function () {\n                // array functions must run through Reflect to work properly\n                // binding via other means will not work.\n                if (!options.allowMutation) {\n                  (true && !(options.allowMutation) && (0, _debug.assert)(`Mutating this array of records via ${String(prop)} is not allowed.`, options.allowMutation));\n                  return;\n                }\n                const args = Array.prototype.slice.call(arguments);\n                (true && !(!transaction) && (0, _debug.assert)(`Cannot start a new array transaction while a previous transaction is underway`, !transaction));\n                transaction = true;\n                const result = self[MUTATE](target, receiver, prop, args, _TAG);\n                transaction = false;\n                return result;\n              };\n              boundFns.set(prop, fn);\n            }\n            return fn;\n          }\n          if (prop in self) {\n            {\n              if (prop === 'firstObject') {\n                deprecateArrayLike(self.DEPRECATED_CLASS_NAME, prop, '[0]');\n                return receiver[0];\n              } else if (prop === 'lastObject') {\n                deprecateArrayLike(self.DEPRECATED_CLASS_NAME, prop, 'at(-1)');\n                return receiver[receiver.length - 1];\n              }\n            }\n            if (prop === NOTIFY || prop === IDENTIFIER_ARRAY_TAG || prop === SOURCE) {\n              return self[prop];\n            }\n            let fn = boundFns.get(prop);\n            if (fn) return fn;\n            let outcome = self[prop];\n            if (typeof outcome === 'function') {\n              fn = function () {\n                (0, _private.subscribe)(_TAG);\n                // array functions must run through Reflect to work properly\n                // binding via other means will not work.\n                return Reflect.apply(outcome, receiver, arguments);\n              };\n              boundFns.set(prop, fn);\n              return fn;\n            }\n            return (0, _private.subscribe)(_TAG), outcome;\n          }\n          return target[prop];\n        },\n        set(target, prop, value, receiver) {\n          if (prop === 'length') {\n            if (!transaction && value === 0) {\n              transaction = true;\n              self[MUTATE](target, receiver, 'length 0', [], _TAG);\n              transaction = false;\n              return true;\n            } else if (transaction) {\n              return Reflect.set(target, prop, value);\n            } else {\n              (true && !(false) && (0, _debug.assert)(`unexpected length set`));\n            }\n          }\n          if (prop === 'links') {\n            PrivateState.links = value || null;\n            return true;\n          }\n          if (prop === 'meta') {\n            PrivateState.meta = value || null;\n            return true;\n          }\n          let index = convertToInt(prop);\n\n          // we do not allow \"holey\" arrays and so if the index is\n          // greater than length then we will disallow setting it.\n          // however, there is a special case for \"unshift\" with more than\n          // one item being inserted since current items will be moved to the\n          // new indices first.\n          // we \"loosely\" detect this by just checking whether we are in\n          // a transaction.\n          if (index === null || index > target.length) {\n            if (index !== null && transaction) {\n              const identifier = recordIdentifierFor(value);\n              (true && !(isStableIdentifier(identifier)) && (0, _debug.assert)(`Cannot set index ${index} past the end of the array.`, isStableIdentifier(identifier)));\n              target[index] = identifier;\n              return true;\n            } else if (prop in self) {\n              self[prop] = value;\n              return true;\n            }\n            return false;\n          }\n          if (!options.allowMutation) {\n            (true && !(options.allowMutation) && (0, _debug.assert)(`Mutating ${String(prop)} on this RecordArray is not allowed.`, options.allowMutation));\n            return false;\n          }\n          let original = target[index];\n          let newIdentifier = extractIdentifierFromRecord$1(value);\n          (true && !(isStableIdentifier(newIdentifier)) && (0, _debug.assert)(`Expected a record`, isStableIdentifier(newIdentifier))); // We generate \"transactions\" whenever a setter method on the array\n          // is called and might bulk update multiple array cells. Fundamentally,\n          // all array operations decompose into individual cell replacements.\n          // e.g. a push is really a \"replace cell at next index with new value\"\n          // or a splice is \"shift all values left/right by X and set out of new\n          // bounds cells to undefined\"\n          //\n          // so, if we are in a transaction, then this is not a user generated change\n          // but one generated by a setter method. In this case we want to only apply\n          // the change to the target array and not call the MUTATE method.\n          // If there is no transaction though, then this means the user themselves has\n          // directly changed the value of a specific index and we need to thus generate\n          // a mutation for that change.\n          // e.g. \"arr.push(newVal)\" is handled by a \"addToRelatedRecords\" mutation within\n          // a transaction.\n          // while \"arr[arr.length] = newVal;\" is handled by this replace cell code path.\n          if (!transaction) {\n            self[MUTATE](target, receiver, 'replace cell', [index, original, newIdentifier], _TAG);\n          } else {\n            target[index] = newIdentifier;\n          }\n          return true;\n        },\n        deleteProperty(target, prop) {\n          (true && !(transaction) && (0, _debug.assert)(`Deleting keys on managed arrays is disallowed`, transaction));\n          if (!transaction) {\n            return false;\n          }\n          return Reflect.deleteProperty(target, prop);\n        },\n        getPrototypeOf() {\n          return IdentifierArray.prototype;\n        }\n      });\n      {\n        const meta = _ember.default.meta(this);\n        meta.hasMixin = mixin => {\n          (true && !(false) && (0, _debug.deprecate)(`Do not call A() on EmberData RecordArrays`, false, {\n            id: 'ember-data:no-a-with-array-like',\n            until: '5.0',\n            since: {\n              enabled: '4.7',\n              available: '4.7'\n            },\n            for: 'ember-data'\n          })); // @ts-expect-error ArrayMixin is more than a type\n          if (mixin === NativeArray || mixin === ArrayMixin) {\n            return true;\n          }\n          return false;\n        };\n      }\n      this[NOTIFY] = this[NOTIFY].bind(proxy);\n      return proxy;\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      let people = store.peekAll('person');\n      people.isUpdating; // false\n       people.update().then(function() {\n        people.isUpdating; // false\n      });\n       people.isUpdating; // true\n      ```\n       @method update\n      @public\n    */\n    update() {\n      if (this.isUpdating) {\n        return this._updatingPromise;\n      }\n      this.isUpdating = true;\n      let updatingPromise = this._update();\n      updatingPromise.finally(() => {\n        this._updatingPromise = null;\n        if (this.isDestroying || this.isDestroyed) {\n          return;\n        }\n        this.isUpdating = false;\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      (true && !(this.modelName) && (0, _debug.assert)(`_update cannot be used with this array`, this.modelName));\n      return this.store.findAll(this.modelName, {\n        reload: true\n      });\n    }\n\n    // TODO deprecate\n    /**\n      Saves all of the records in the `RecordArray`.\n       Example\n       ```javascript\n      let messages = store.peekAll('message');\n      messages.forEach(function(message) {\n        message.hasBeenSeen = true;\n      });\n      messages.save();\n      ```\n       @method save\n      @public\n      @return {PromiseArray} promise\n    */\n    save() {\n      let promise = Promise.all(this.map(record => this.store.saveRecord(record))).then(() => this);\n      {\n        return promiseArray(promise);\n      }\n      return promise;\n    }\n  }, _descriptor2 = _applyDecoratedDescriptor(_class3.prototype, \"isUpdating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class3.prototype, \"length\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class3.prototype, \"length\"), _class3.prototype), _class3);\n  {\n    Object.defineProperty(IdentifierArray.prototype, 'type', {\n      get() {\n        (true && !(false) && (0, _debug.deprecate)(`Using RecordArray.type to access the ModelClass for a record is deprecated. Use store.modelFor(<modelName>) instead.`, false, {\n          id: 'ember-data:deprecate-snapshot-model-class-access',\n          until: '5.0',\n          for: 'ember-data',\n          since: {\n            available: '4.5.0',\n            enabled: '4.5.0'\n          }\n        })); // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n        if (!this.modelName) {\n          return null;\n        }\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n        return this.store.modelFor(this.modelName);\n      }\n    });\n  }\n  class Collection extends IdentifierArray {\n    constructor(options) {\n      super(options);\n      this.query = null;\n      this.query = options.query || null;\n      this.isLoaded = options.isLoaded || false;\n    }\n    _update() {\n      const {\n        store,\n        query\n      } = this;\n\n      // TODO save options from initial request?\n      (true && !(this.modelName) && (0, _debug.assert)(`update cannot be used with this array`, this.modelName));\n      (true && !(query) && (0, _debug.assert)(`update cannot be used with no query`, query));\n      const promise = store.query(this.modelName, query, {\n        _recordArray: this\n      });\n      {\n        return promiseArray(promise);\n      }\n      return promise;\n    }\n    destroy(clear) {\n      super.destroy(clear);\n      this._manager._managed.delete(this);\n      this._manager._pending.delete(this);\n    }\n  }\n  // trick the proxy \"in\" check\n  _exports.h = Collection;\n  Collection.prototype.query = null;\n\n  // Ensure instanceof works correctly\n  //Object.setPrototypeOf(IdentifierArray.prototype, Array.prototype);\n\n  {\n    IdentifierArray.prototype.DEPRECATED_CLASS_NAME = 'RecordArray';\n    Collection.prototype.DEPRECATED_CLASS_NAME = 'RecordArray';\n    const EmberObjectMethods = ['addObserver', 'cacheFor', 'decrementProperty', 'get', 'getProperties', 'incrementProperty', 'notifyPropertyChange', 'removeObserver', 'set', 'setProperties', 'toggleProperty'];\n    EmberObjectMethods.forEach(method => {\n      IdentifierArray.prototype[method] = function delegatedMethod() {\n        (true && !(false) && (0, _debug.deprecate)(`The EmberObject ${method} method on the class ${this.DEPRECATED_CLASS_NAME} is deprecated. Use dot-notation javascript get/set access instead.`, false, {\n          id: 'ember-data:deprecate-array-like',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          },\n          for: 'ember-data'\n        }));\n        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n          args[_key] = arguments[_key];\n        }\n        return _ember.default[method](this, ...args);\n      };\n    });\n    IdentifierArray.prototype.addObject = function (obj) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'addObject', 'push');\n      let index = this.indexOf(obj);\n      if (index === -1) {\n        this.push(obj);\n      }\n      return this;\n    };\n    IdentifierArray.prototype.addObjects = function (objs) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'addObjects', 'push');\n      objs.forEach(obj => {\n        let index = this.indexOf(obj);\n        if (index === -1) {\n          this.push(obj);\n        }\n      });\n      return this;\n    };\n    IdentifierArray.prototype.popObject = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'popObject', 'pop');\n      return this.pop();\n    };\n    IdentifierArray.prototype.pushObject = function (obj) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'pushObject', 'push');\n      this.push(obj);\n      return obj;\n    };\n    IdentifierArray.prototype.pushObjects = function (objs) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'pushObjects', 'push');\n      this.push(...objs);\n      return this;\n    };\n    IdentifierArray.prototype.shiftObject = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'shiftObject', 'shift');\n      return this.shift();\n    };\n    IdentifierArray.prototype.unshiftObject = function (obj) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'unshiftObject', 'unshift');\n      this.unshift(obj);\n      return obj;\n    };\n    IdentifierArray.prototype.unshiftObjects = function (objs) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'unshiftObjects', 'unshift');\n      this.unshift(...objs);\n      return this;\n    };\n    IdentifierArray.prototype.objectAt = function (index) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'objectAt', 'at');\n      //For negative index values go back from the end of the array\n      let arrIndex = Math.sign(index) === -1 ? this.length + index : index;\n      return this[arrIndex];\n    };\n    IdentifierArray.prototype.objectsAt = function (indices) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'objectsAt', 'at');\n      return indices.map(index => this.objectAt(index));\n    };\n    IdentifierArray.prototype.removeAt = function (index) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'removeAt', 'splice');\n      this.splice(index, 1);\n      return this;\n    };\n    IdentifierArray.prototype.insertAt = function (index, obj) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'insertAt', 'splice');\n      this.splice(index, 0, obj);\n      return this;\n    };\n    IdentifierArray.prototype.removeObject = function (obj) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'removeObject', 'splice');\n      const index = this.indexOf(obj);\n      if (index !== -1) {\n        this.splice(index, 1);\n      }\n      return this;\n    };\n    IdentifierArray.prototype.removeObjects = function (objs) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'removeObjects', 'splice');\n      objs.forEach(obj => {\n        const index = this.indexOf(obj);\n        if (index !== -1) {\n          this.splice(index, 1);\n        }\n      });\n      return this;\n    };\n    IdentifierArray.prototype.toArray = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'toArray', 'slice');\n      return this.slice();\n    };\n    IdentifierArray.prototype.replace = function (idx, amt, objects) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'replace', 'splice');\n      if (objects) {\n        this.splice(idx, amt, ...objects);\n      } else {\n        this.splice(idx, amt);\n      }\n    };\n    IdentifierArray.prototype.clear = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'clear', 'length = 0');\n      this.splice(0, this.length);\n      return this;\n    };\n    IdentifierArray.prototype.setObjects = function (objects) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'setObjects', '`arr.length = 0; arr.push(objects);`');\n      (true && !(Array.isArray(objects)) && (0, _debug.assert)(`${this.DEPRECATED_CLASS_NAME}.setObjects expects to receive an array as its argument`, Array.isArray(objects)));\n      this.splice(0, this.length);\n      this.push(...objects);\n      return this;\n    };\n    IdentifierArray.prototype.reverseObjects = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'reverseObjects', 'reverse');\n      this.reverse();\n      return this;\n    };\n    IdentifierArray.prototype.compact = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'compact', 'filter');\n      return this.filter(v => v !== null && v !== undefined);\n    };\n    IdentifierArray.prototype.any = function (callback, target) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'any', 'some');\n      return this.some(callback, target);\n    };\n    IdentifierArray.prototype.isAny = function (prop, value) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'isAny', 'some');\n      let hasValue = arguments.length === 2;\n      return this.some(v => hasValue ? v[prop] === value : v[prop] === true);\n    };\n    IdentifierArray.prototype.isEvery = function (prop, value) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'isEvery', 'every');\n      let hasValue = arguments.length === 2;\n      return this.every(v => hasValue ? v[prop] === value : v[prop] === true);\n    };\n    IdentifierArray.prototype.getEach = function (key) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'getEach', 'map');\n      return this.map(value => (0, _object.get)(value, key));\n    };\n    IdentifierArray.prototype.mapBy = function (key) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'mapBy', 'map');\n      return this.map(value => (0, _object.get)(value, key));\n    };\n    IdentifierArray.prototype.findBy = function (key, value) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'findBy', 'find');\n      if (arguments.length === 2) {\n        return this.find(val => {\n          return (0, _object.get)(val, key) === value;\n        });\n      } else {\n        return this.find(val => Boolean((0, _object.get)(val, key)));\n      }\n    };\n    IdentifierArray.prototype.filterBy = function (key, value) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'filterBy', 'filter');\n      if (arguments.length === 2) {\n        return this.filter(record => {\n          return (0, _object.get)(record, key) === value;\n        });\n      }\n      return this.filter(record => {\n        return Boolean((0, _object.get)(record, key));\n      });\n    };\n    IdentifierArray.prototype.sortBy = function () {\n      for (var _len2 = arguments.length, sortKeys = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n        sortKeys[_key2] = arguments[_key2];\n      }\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'sortBy', '.slice().sort');\n      return this.slice().sort((a, b) => {\n        for (let i = 0; i < sortKeys.length; i++) {\n          let key = sortKeys[i];\n          let propA = (0, _object.get)(a, key);\n          let propB = (0, _object.get)(b, key);\n          // return 1 or -1 else continue to the next sortKey\n          let compareValue = (0, _utils.compare)(propA, propB);\n          if (compareValue) {\n            return compareValue;\n          }\n        }\n        return 0;\n      });\n    };\n\n    // @ts-expect-error\n    IdentifierArray.prototype.invoke = function (key) {\n      for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n        args[_key3 - 1] = arguments[_key3];\n      }\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'invoke', 'forEach');\n      return this.map(value => value[key](...args));\n    };\n\n    // @ts-expect-error\n    IdentifierArray.prototype.addArrayObserver = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'addArrayObserver', 'derived state or reacting at the change source');\n    };\n\n    // @ts-expect-error\n    IdentifierArray.prototype.removeArrayObserver = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'removeArrayObserver', 'derived state or reacting at the change source');\n    };\n\n    // @ts-expect-error\n    IdentifierArray.prototype.arrayContentWillChange = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'arrayContentWillChange', 'derived state or reacting at the change source');\n    };\n\n    // @ts-expect-error\n    IdentifierArray.prototype.arrayContentDidChange = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'arrayContentDidChange', 'derived state or reacting at the change source.');\n    };\n    IdentifierArray.prototype.reject = function (callback, target) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'reject', 'filter');\n      (true && !(typeof callback === 'function') && (0, _debug.assert)('`reject` expects a function as first argument.', typeof callback === 'function'));\n      return this.filter(function () {\n        for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n          args[_key4] = arguments[_key4];\n        }\n        return !callback.apply(target, args);\n      });\n    };\n    IdentifierArray.prototype.rejectBy = function (key, value) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'rejectBy', 'filter');\n      if (arguments.length === 2) {\n        return this.filter(record => {\n          return (0, _object.get)(record, key) !== value;\n        });\n      }\n      return this.filter(record => {\n        return !(0, _object.get)(record, key);\n      });\n    };\n    IdentifierArray.prototype.setEach = function (key, value) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'setEach', 'forEach');\n      this.forEach(item => (0, _object.set)(item, key, value));\n    };\n    IdentifierArray.prototype.uniq = function () {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'uniq', 'filter');\n      // all current managed arrays are already enforced as unique\n      return this.slice();\n    };\n\n    // @ts-expect-error\n    IdentifierArray.prototype.uniqBy = function (key) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'uniqBy', 'filter');\n      // all current managed arrays are already enforced as unique\n      let seen = new Set();\n      let result = [];\n      this.forEach(item => {\n        let value = (0, _object.get)(item, key);\n        if (seen.has(value)) {\n          return;\n        }\n        seen.add(value);\n        result.push(item);\n      });\n      return result;\n    };\n    IdentifierArray.prototype.without = function (value) {\n      deprecateArrayLike(this.DEPRECATED_CLASS_NAME, 'without', 'slice');\n      const newArr = this.slice();\n      const index = this.indexOf(value);\n      if (index !== -1) {\n        newArr.splice(index, 1);\n      }\n      return newArr;\n    };\n\n    // @ts-expect-error\n    IdentifierArray.prototype.firstObject = null;\n    // @ts-expect-error\n    IdentifierArray.prototype.lastObject = null;\n  }\n  function assertRecordPassedToHasMany(record) {\n    (true && !(function () {\n      try {\n        recordIdentifierFor(record);\n        return true;\n      } catch {\n        return false;\n      }\n    }()) && (0, _debug.assert)(`All elements of a hasMany relationship must be instances of Model, you passed $${typeof record}`, function () {\n      try {\n        recordIdentifierFor(record);\n        return true;\n      } catch {\n        return false;\n      }\n    }()));\n  }\n  function extractIdentifierFromRecord$1(recordOrPromiseRecord) {\n    if (!recordOrPromiseRecord) {\n      return null;\n    }\n    if (isPromiseRecord$1(recordOrPromiseRecord)) {\n      let content = recordOrPromiseRecord.content;\n      (true && !(content !== undefined && content !== null) && (0, _debug.assert)('You passed in a promise that did not originate from an EmberData relationship. You can only pass promises that come from a belongsTo relationship.', content !== undefined && content !== null));\n      assertRecordPassedToHasMany(content);\n      return recordIdentifierFor(content);\n    }\n    assertRecordPassedToHasMany(recordOrPromiseRecord);\n    return recordIdentifierFor(recordOrPromiseRecord);\n  }\n  function isPromiseRecord$1(record) {\n    return !!record.then;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  const FAKE_ARR = {};\n  const SLICE_BATCH_SIZE = 1200;\n  /**\n   * This is a clever optimization.\n   *\n   * clever optimizations rarely stand the test of time, so if you're\n   * ever curious or think something better is possible please benchmark\n   * and discuss. The benchmark for this at the time of writing is in\n   * `scripts/benchmark-push.js`\n   *\n   * This approach turns out to be 150x faster in Chrome and node than\n   * simply using push or concat. It's highly susceptible to the specifics\n   * of the batch size, and may require tuning.\n   *\n   * Clever optimizations should always come with a `why`. This optimization\n   * exists for two reasons.\n   *\n   * 1) array.push(...objects) and Array.prototype.push.apply(arr, objects)\n   *   are susceptible to stack overflows. The size of objects at which this\n   *   occurs varies by environment, browser, and current stack depth and memory\n   *   pressure; however, it occurs in all browsers in fairly pristine conditions\n   *   somewhere around 125k to 200k elements. Since EmberData regularly encounters\n   *   arrays larger than this in size, we cannot use push.\n   *\n   * 2) `array.concat` or simply setting the array to a new reference is often an\n   *   easier approach; however, native Proxy to an array cannot swap it's target array\n   *   and attempts at juggling multiple array sources have proven to be victim to a number\n   *   of browser implementation bugs. Should these bugs be addressed then we could\n   *   simplify to using `concat`, however, do note this is currently 150x faster\n   *   than concat, and due to the overloaded signature of concat will likely always\n   *   be faster.\n   *\n   * Sincerely,\n   *   - runspired (Chris Thoburn) 08/21/2022\n   *\n   * @function fastPush\n   * @internal\n   * @param target the array to push into\n   * @param source the items to push into target\n   */\n  function fastPush(target, source) {\n    let startLength = 0;\n    let newLength = source.length;\n    while (newLength - startLength > SLICE_BATCH_SIZE) {\n      // eslint-disable-next-line prefer-spread\n      target.push.apply(target, source.slice(startLength, startLength + SLICE_BATCH_SIZE));\n      startLength += SLICE_BATCH_SIZE;\n    }\n    // eslint-disable-next-line prefer-spread\n    target.push.apply(target, source.slice(startLength));\n  }\n  /**\n    @class RecordArrayManager\n    @internal\n  */\n  class RecordArrayManager {\n    constructor(options) {\n      this.store = options.store;\n      this.isDestroying = false;\n      this.isDestroyed = false;\n      this._live = new Map();\n      this._managed = new Set();\n      this._pending = new Map();\n      this._staged = new Map();\n      this._keyedArrays = new Map();\n      this._identifiers = new Map();\n      this._set = new Map();\n      this._visibilitySet = new Map();\n      this._subscription = this.store.notifications.subscribe('resource', (identifier, type) => {\n        if (type === 'added') {\n          this._visibilitySet.set(identifier, true);\n          this.identifierAdded(identifier);\n        } else if (type === 'removed') {\n          this._visibilitySet.set(identifier, false);\n          this.identifierRemoved(identifier);\n        } else if (type === 'state') {\n          this.identifierChanged(identifier);\n        }\n      });\n    }\n    _syncArray(array) {\n      const pending = this._pending.get(array);\n      if (!pending || this.isDestroying || this.isDestroyed) {\n        return;\n      }\n      sync(array, pending, this._set.get(array));\n      this._pending.delete(array);\n    }\n\n    /**\n      Get the `RecordArray` for a modelName, which contains all loaded records of\n      given modelName.\n       @method liveArrayFor\n      @internal\n      @param {String} modelName\n      @return {RecordArray}\n    */\n    liveArrayFor(type) {\n      let array = this._live.get(type);\n      let identifiers = [];\n      let staged = this._staged.get(type);\n      if (staged) {\n        staged.forEach((value, key) => {\n          if (value === 'add') {\n            identifiers.push(key);\n          }\n        });\n        this._staged.delete(type);\n      }\n      if (!array) {\n        array = new IdentifierArray({\n          type,\n          identifiers,\n          store: this.store,\n          allowMutation: false,\n          manager: this\n        });\n        this._live.set(type, array);\n        this._set.set(array, new Set(identifiers));\n      }\n      return array;\n    }\n    createArray(config) {\n      var _config$doc, _config$doc2, _config$identifiers;\n      let options = {\n        type: config.type,\n        links: ((_config$doc = config.doc) === null || _config$doc === void 0 ? void 0 : _config$doc.links) || null,\n        meta: ((_config$doc2 = config.doc) === null || _config$doc2 === void 0 ? void 0 : _config$doc2.meta) || null,\n        query: config.query || null,\n        identifiers: config.identifiers || [],\n        isLoaded: !!((_config$identifiers = config.identifiers) !== null && _config$identifiers !== void 0 && _config$identifiers.length),\n        allowMutation: false,\n        store: this.store,\n        manager: this\n      };\n      let array = new Collection(options);\n      this._managed.add(array);\n      this._set.set(array, new Set(options.identifiers || []));\n      if (config.identifiers) {\n        associate(this._identifiers, array, config.identifiers);\n      }\n      return array;\n    }\n    dirtyArray(array, delta) {\n      if (array === FAKE_ARR) {\n        return;\n      }\n      let tag = array[IDENTIFIER_ARRAY_TAG];\n      if (!tag.shouldReset) {\n        tag.shouldReset = true;\n        (0, _private.addTransactionCB)(array[NOTIFY]);\n      } else if (delta > 0 && !tag.t) {\n        (0, _private.addTransactionCB)(array[NOTIFY]);\n      }\n    }\n    _getPendingFor(identifier, includeManaged, isRemove) {\n      if (this.isDestroying || this.isDestroyed) {\n        return;\n      }\n      let liveArray = this._live.get(identifier.type);\n      const allPending = this._pending;\n      let pending = new Map();\n      if (includeManaged) {\n        let managed = this._identifiers.get(identifier);\n        if (managed) {\n          managed.forEach(arr => {\n            let changes = allPending.get(arr);\n            if (!changes) {\n              changes = new Map();\n              allPending.set(arr, changes);\n            }\n            pending.set(arr, changes);\n          });\n        }\n      }\n\n      // during unloadAll we can ignore removes since we've already\n      // cleared the array.\n      if (liveArray && liveArray[SOURCE].length === 0 && isRemove) {\n        const pendingLive = allPending.get(liveArray);\n        if (!pendingLive || pendingLive.size === 0) {\n          return pending;\n        }\n      }\n      if (!liveArray) {\n        // start building a changeset for when we eventually\n        // do have a live array\n        let changes = this._staged.get(identifier.type);\n        if (!changes) {\n          changes = new Map();\n          this._staged.set(identifier.type, changes);\n        }\n        pending.set(FAKE_ARR, changes);\n      } else {\n        let changes = allPending.get(liveArray);\n        if (!changes) {\n          changes = new Map();\n          allPending.set(liveArray, changes);\n        }\n        pending.set(liveArray, changes);\n      }\n      return pending;\n    }\n    populateManagedArray(array, identifiers, payload) {\n      this._pending.delete(array);\n      const source = array[SOURCE];\n      const old = source.slice();\n      source.length = 0;\n      fastPush(source, identifiers);\n      this._set.set(array, new Set(identifiers));\n      notifyArray(array);\n      array.meta = payload.meta || null;\n      array.links = payload.links || null;\n      array.isLoaded = true;\n      disassociate(this._identifiers, array, old);\n      associate(this._identifiers, array, identifiers);\n    }\n    identifierAdded(identifier) {\n      let changeSets = this._getPendingFor(identifier, false);\n      if (changeSets) {\n        changeSets.forEach((changes, array) => {\n          let existing = changes.get(identifier);\n          if (existing === 'del') {\n            changes.delete(identifier);\n          } else {\n            changes.set(identifier, 'add');\n            this.dirtyArray(array, changes.size);\n          }\n        });\n      }\n    }\n    identifierRemoved(identifier) {\n      let changeSets = this._getPendingFor(identifier, true, true);\n      if (changeSets) {\n        changeSets.forEach((changes, array) => {\n          let existing = changes.get(identifier);\n          if (existing === 'add') {\n            changes.delete(identifier);\n          } else {\n            changes.set(identifier, 'del');\n            this.dirtyArray(array, changes.size);\n          }\n        });\n      }\n    }\n    identifierChanged(identifier) {\n      let newState = this.store._instanceCache.recordIsLoaded(identifier, true);\n\n      // if the change matches the most recent direct added/removed\n      // state, then we can ignore it\n      if (this._visibilitySet.get(identifier) === newState) {\n        return;\n      }\n      if (newState) {\n        this.identifierAdded(identifier);\n      } else {\n        this.identifierRemoved(identifier);\n      }\n    }\n    clear() {\n      let isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n      this._live.forEach(array => array.destroy(isClear));\n      this._managed.forEach(array => array.destroy(isClear));\n      this._managed.clear();\n      this._identifiers.clear();\n      this._pending.clear();\n      this._set.forEach(set => set.clear());\n      this._visibilitySet.clear();\n    }\n    destroy() {\n      this.isDestroying = true;\n      this.clear(false);\n      this._live.clear();\n      this.isDestroyed = true;\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n      this.store.notifications.unsubscribe(this._subscription);\n    }\n  }\n  _exports.R = RecordArrayManager;\n  function associate(ArraysCache, array, identifiers) {\n    for (let i = 0; i < identifiers.length; i++) {\n      let identifier = identifiers[i];\n      let cache = ArraysCache.get(identifier);\n      if (!cache) {\n        cache = new Set();\n        ArraysCache.set(identifier, cache);\n      }\n      cache.add(array);\n    }\n  }\n  function disassociate(ArraysCache, array, identifiers) {\n    for (let i = 0; i < identifiers.length; i++) {\n      disassociateIdentifier(ArraysCache, array, identifiers[i]);\n    }\n  }\n  function disassociateIdentifier(ArraysCache, array, identifier) {\n    let cache = ArraysCache.get(identifier);\n    if (cache) {\n      cache.delete(array);\n    }\n  }\n  function sync(array, changes, arraySet) {\n    let state = array[SOURCE];\n    const adds = [];\n    const removes = [];\n    changes.forEach((value, key) => {\n      if (value === 'add') {\n        // likely we want to keep a Set along-side\n        if (arraySet.has(key)) {\n          return;\n        }\n        adds.push(key);\n        arraySet.add(key);\n      } else {\n        if (arraySet.has(key)) {\n          removes.push(key);\n          arraySet.delete(key);\n        }\n      }\n    });\n    if (removes.length) {\n      if (removes.length === state.length) {\n        state.length = 0;\n        // changing the reference breaks the Proxy\n        // state = array[SOURCE] = [];\n      } else {\n        removes.forEach(i => {\n          const index = state.indexOf(i);\n          if (index !== -1) {\n            state.splice(index, 1);\n            arraySet.delete(i);\n          }\n        });\n      }\n    }\n    if (adds.length) {\n      fastPush(state, adds);\n      // changing the reference breaks the Proxy\n      // else we could do this\n      /*\n      if (state.length === 0) {\n        array[SOURCE] = adds;\n      } else {\n        array[SOURCE] = state.concat(adds);\n      }\n      */\n    }\n  }\n\n  /**\n   * @module @ember-data/store\n   */\n  const Touching = Symbol('touching');\n  const RequestPromise = Symbol('promise');\n  function hasRecordIdentifier(op) {\n    return 'recordIdentifier' in op;\n  }\n\n  /**\n   * The RequestStateService is used to track the state of requests\n   * for fetching or updating known resource identifies that are inflight.\n   *\n   * @class RequestStateService\n   * @public\n   */\n  class RequestStateService {\n    constructor(store) {\n      this._pending = Object.create(null);\n      this._done = new Map();\n      this._subscriptions = Object.create(null);\n      this._toFlush = [];\n      this._store = void 0;\n      this._store = store;\n    }\n    _clearEntries(identifier) {\n      this._done.delete(identifier);\n    }\n    _enqueue(promise, queryRequest) {\n      let query = queryRequest.data[0];\n      if (hasRecordIdentifier(query)) {\n        let lid = query.recordIdentifier.lid;\n        let type = query.op === 'saveRecord' ? 'mutation' : 'query';\n        if (!this._pending[lid]) {\n          this._pending[lid] = [];\n        }\n        let request = {\n          state: 'pending',\n          request: queryRequest,\n          type\n        };\n        request[Touching] = [query.recordIdentifier];\n        request[RequestPromise] = promise;\n        this._pending[lid].push(request);\n        this._triggerSubscriptions(request);\n        return promise.then(result => {\n          this._dequeue(lid, request);\n          let finalizedRequest = {\n            state: 'fulfilled',\n            request: queryRequest,\n            type,\n            response: {\n              data: result\n            }\n          };\n          finalizedRequest[Touching] = request[Touching];\n          this._addDone(finalizedRequest);\n          this._triggerSubscriptions(finalizedRequest);\n          return result;\n        }, error => {\n          this._dequeue(lid, request);\n          let finalizedRequest = {\n            state: 'rejected',\n            request: queryRequest,\n            type,\n            response: {\n              data: error\n            }\n          };\n          finalizedRequest[Touching] = request[Touching];\n          this._addDone(finalizedRequest);\n          this._triggerSubscriptions(finalizedRequest);\n          throw error;\n        });\n      }\n      (true && !(false) && (0, _debug.assert)(`Expected a well formed  query`));\n    }\n    _triggerSubscriptions(req) {\n      if (req.state === 'pending') {\n        this._flushRequest(req);\n        return;\n      }\n      this._toFlush.push(req);\n      if (this._toFlush.length === 1) {\n        this._store.notifications._onNextFlush(() => {\n          this._flush();\n        });\n      }\n    }\n    _flush() {\n      this._toFlush.forEach(req => {\n        this._flushRequest(req);\n      });\n      this._toFlush = [];\n    }\n    _flushRequest(req) {\n      req[Touching].forEach(identifier => {\n        if (this._subscriptions[identifier.lid]) {\n          this._subscriptions[identifier.lid].forEach(callback => callback(req));\n        }\n      });\n    }\n    _dequeue(lid, request) {\n      this._pending[lid] = this._pending[lid].filter(req => req !== request);\n    }\n    _addDone(request) {\n      request[Touching].forEach(identifier => {\n        // TODO add support for multiple\n        let requestDataOp = request.request.data[0].op;\n        let requests = this._done.get(identifier);\n        if (requests) {\n          requests = requests.filter(req => {\n            // TODO add support for multiple\n            let data;\n            if (req.request.data instanceof Array) {\n              data = req.request.data[0];\n            } else {\n              data = req.request.data;\n            }\n            return data.op !== requestDataOp;\n          });\n        }\n        requests = requests || [];\n        requests.push(request);\n        this._done.set(identifier, requests);\n      });\n    }\n\n    /**\n     * Subscribe to requests for a given resource identity.\n     *\n     * The callback will receive the current state of the request.\n     *\n     * ```ts\n     * interface RequestState {\n     *   state: 'pending' | 'fulfilled' | 'rejected';\n     *   type: 'query' | 'mutation';\n     *   request: Request;\n     *   response?: { data: unknown };\n     * }\n     * ```\n     *\n     * Note: It should be considered dangerous to use this API for more than simple\n     * state derivation or debugging. The `request` and `response` properties are poorly\n     * spec'd and may change unexpectedly when shifting what Handlers are in use or how\n     * requests are issued from the Store.\n     *\n     * We expect to revisit this API in the near future as we continue to refine the\n     * RequestManager ergonomics, as a simpler but more powerful direct integration\n     * with the RequestManager for these purposes is likely to be a better long-term\n     * design.\n     *\n     * @method subscribeForRecord\n     * @public\n     * @param {StableRecordIdentifier} identifier\n     * @param {(state: RequestState) => void} callback\n     */\n    subscribeForRecord(identifier, callback) {\n      if (!this._subscriptions[identifier.lid]) {\n        this._subscriptions[identifier.lid] = [];\n      }\n      this._subscriptions[identifier.lid].push(callback);\n    }\n\n    /**\n     * Retrieve all active requests for a given resource identity.\n     *\n     * @method getPendingRequestsForRecord\n     * @public\n     * @param {StableRecordIdentifier} identifier\n     * @returns {RequestState[]} an array of request states for any pending requests for the given identifier\n     */\n    getPendingRequestsForRecord(identifier) {\n      if (this._pending[identifier.lid]) {\n        return this._pending[identifier.lid];\n      }\n      return [];\n    }\n\n    /**\n     * Retrieve the last completed request for a given resource identity.\n     *\n     * @method getLastRequestForRecord\n     * @public\n     * @param {StableRecordIdentifier} identifier\n     * @returns {RequestState | null} the state of the most recent request for the given identifier\n     */\n    getLastRequestForRecord(identifier) {\n      let requests = this._done.get(identifier);\n      if (requests) {\n        return requests[requests.length - 1];\n      }\n      return null;\n    }\n  }\n\n  /**\n    @module @ember-data/store\n   */\n\n  // hello world\n\n  let _Cache;\n\n  /**\n   * A Store coordinates interaction between your application, a [Cache](https://api.emberjs.com/ember-data/release/classes/%3CInterface%3E%20Cache),\n   * and sources of data (such as your API or a local persistence layer)\n   * accessed via a [RequestManager](https://github.com/emberjs/data/tree/main/packages/request).\n   *\n   * ```app/services/store.js\n   * import Store from '@ember-data/store';\n   *\n   * export default class extends Store {}\n   * ```\n   *\n   * Most Ember applications will only have a single `Store` configured as a Service\n   * in this manner. However, setting up multiple stores is possible, including using\n   * each as a unique service.\n   *\n  \n    @class Store\n    @public\n  */ // @ts-expect-error\n  class Store extends _object.default {\n    /**\n     * Provides access to the NotificationManager associated\n     * with this Store instance.\n     *\n     * The NotificationManager can be used to subscribe to\n     * changes to the cache.\n     *\n     * @property {NotificationManager} notifications\n     * @public\n     */\n\n    /**\n     * Provides access to the SchemaService instance\n     * for this Store instance.\n     *\n     * The SchemaService can be used to query for\n     * information about the schema of a resource.\n     *\n     * @property {SchemaService} schema\n     * @public\n     */\n    get schema() {\n      return this.getSchemaDefinitionService();\n    }\n\n    /**\n     * Provides access to the IdentifierCache instance\n     * for this store.\n     *\n     * The IdentifierCache can be used to generate or\n     * retrieve a stable unique identifier for any resource.\n     *\n     * @property {IdentifierCache} identifierCache\n     * @public\n     */\n\n    /**\n     * Provides access to the requestManager instance associated\n     * with this Store instance.\n     *\n     * When using `ember-data` this property is automatically\n     * set to an instance of `RequestManager`. When not using `ember-data`\n     * you must configure this property yourself, either by declaring\n     * it as a service or by initializing it.\n     *\n     * ```ts\n     * import Store, { CacheHandler } from '@ember-data/store';\n     * import RequestManager from '@ember-data/request';\n     * import Fetch from '@ember/data/request/fetch';\n     *\n     * class extends Store {\n     *   constructor() {\n     *     super(...arguments);\n     *     this.requestManager = new RequestManager();\n     *     this.requestManager.use([Fetch]);\n     *     this.requestManager.useCache(CacheHandler);\n     *   }\n     * }\n     * ```\n     *\n     * @public\n     * @property {RequestManager} requestManager\n     */\n\n    /**\n     * A Property which an App may set to provide a Lifetimes Service\n     * to control when a cached request becomes stale.\n     *\n     * Note, when defined, these methods will only be invoked if a\n     * cache key exists for the request, either because the request\n     * contains `cacheOptions.key` or because the [IdentifierCache](/ember-data/release/classes/IdentifierCache)\n     * was able to generate a key for the request using the configured\n     * [generation method](/ember-data/release/functions/@ember-data%2Fstore/setIdentifierGenerationMethod).\n     *\n     * `isSoftExpired` will only be invoked if `isHardExpired` returns `false`.\n     *\n     * ```ts\n     * store.lifetimes = {\n     *   // make the request and ignore the current cache state\n     *   isHardExpired(identifier: StableDocumentIdentifier): boolean {\n     *     return false;\n     *   }\n     *\n     *   // make the request in the background if true, return cache state\n     *   isSoftExpired(identifier: StableDocumentIdentifier): boolean {\n     *     return false;\n     *   }\n     * }\n     * ```\n     *\n     * @public\n     * @property {LivetimesService|undefined} lifetimes\n     */\n\n    // Private\n\n    // DEBUG-only properties\n\n    // @ts-expect-error\n    get isDestroying() {\n      return this._isDestroying;\n    }\n    set isDestroying(value) {\n      this._isDestroying = value;\n    }\n    // @ts-expect-error\n    get isDestroyed() {\n      return this._isDestroyed;\n    }\n    set isDestroyed(value) {\n      this._isDestroyed = value;\n    }\n\n    /**\n      @method init\n      @private\n    */\n    constructor(createArgs) {\n      super(createArgs);\n      Object.assign(this, createArgs);\n      this.identifierCache = new IdentifierCache();\n      this.notifications = new NotificationManager(this);\n\n      // private but maybe useful to be here, somewhat intimate\n      this.recordArrayManager = new RecordArrayManager({\n        store: this\n      });\n\n      // private\n      this._requestCache = new RequestStateService(this);\n      this._instanceCache = new InstanceCache(this);\n      this._adapterCache = Object.create(null);\n      this._serializerCache = Object.create(null);\n      this._modelFactoryCache = Object.create(null);\n      this._documentCache = new Map();\n      this.isDestroying = false;\n      this.isDestroyed = false;\n    }\n    _run(cb) {\n      (true && !(!this._cbs) && (0, _debug.assert)(`EmberData should never encounter a nested run`, !this._cbs));\n      const _cbs = this._cbs = {};\n      {\n        try {\n          cb();\n          if (_cbs.coalesce) {\n            _cbs.coalesce();\n          }\n          if (_cbs.sync) {\n            _cbs.sync();\n          }\n          if (_cbs.notify) {\n            _cbs.notify();\n          }\n        } finally {\n          this._cbs = null;\n        }\n      }\n    }\n    _join(cb) {\n      if (this._cbs) {\n        cb();\n      } else {\n        this._run(cb);\n      }\n    }\n    _schedule(name, cb) {\n      (true && !(!!this._cbs) && (0, _debug.assert)(`EmberData expects to schedule only when there is an active run`, !!this._cbs));\n      (true && !(!this._cbs[name]) && (0, _debug.assert)(`EmberData expects only one flush per queue name, cannot schedule ${name}`, !this._cbs[name]));\n      this._cbs[name] = cb;\n    }\n\n    /**\n     * Retrieve the RequestStateService instance\n     * associated with this Store.\n     *\n     * This can be used to query the status of requests\n     * that have been initiated for a given identifier.\n     *\n     * @method getRequestStateService\n     * @returns {RequestStateService}\n     * @public\n     */\n    getRequestStateService() {\n      return this._requestCache;\n    }\n    _getAllPending() {\n      {\n        const all = [];\n        const pending = this._requestCache._pending;\n        const lids = Object.keys(pending);\n        lids.forEach(lid => {\n          all.push(...pending[lid].map(v => v[RequestPromise]));\n        });\n        this.requestManager._pending.forEach(v => all.push(v));\n        const promise = Promise.allSettled(all);\n        promise.length = all.length;\n        return promise;\n      }\n    }\n\n    /**\n     * Issue a request via the configured RequestManager,\n     * inserting the response into the cache and handing\n     * back a Future which resolves to a ResponseDocument\n     *\n     * Resource data is always updated in the cache.\n     *\n     * Only GET requests have the request result and document\n     * cached by default when a cache key is present.\n     *\n     * The cache key used is `requestConfig.cacheOptions.key`\n     * if present, falling back to `requestconfig.url`.\n     *\n     * Params are not serialized as part of the cache-key, so\n     * either ensure they are already in the url or utilize\n     * `requestConfig.cacheOptions.key`. For queries issued\n     * via the `POST` method `requestConfig.cacheOptions.key`\n     * MUST be supplied for the document to be cached.\n     *\n     * @method request\n     * @param {StoreRequestInfo} requestConfig\n     * @returns {Future}\n     * @public\n     */\n    request(requestConfig) {\n      // we lazily set the cache handler when we issue the first request\n      // because constructor doesn't allow for this to run after\n      // the user has had the chance to set the prop.\n      let opts = {\n        store: this,\n        [EnableHydration]: true\n      };\n      {\n        if (this.DISABLE_WAITER) {\n          opts.disableTestWaiter = typeof requestConfig.disableTestWaiter === 'boolean' ? requestConfig.disableTestWaiter : true;\n        }\n      }\n      const future = this.requestManager.request(Object.assign(requestConfig, opts));\n      future.onFinalize(() => {\n        // skip flush for legacy belongsTo\n        if (requestConfig.op === 'findBelongsTo' && !requestConfig.url) {\n          return;\n        }\n        this.notifications._flush();\n      });\n      return future;\n    }\n\n    /**\n     * A hook which an app or addon may implement. Called when\n     * the Store is attempting to create a Record Instance for\n     * a resource.\n     *\n     * This hook can be used to select or instantiate any desired\n     * mechanism of presentating cache data to the ui for access\n     * mutation, and interaction.\n     *\n     * @method instantiateRecord (hook)\n     * @param identifier\n     * @param createRecordArgs\n     * @param recordDataFor deprecated use this.cache\n     * @param notificationManager deprecated use this.notifications\n     * @returns A record instance\n     * @public\n     */\n    instantiateRecord(identifier, createRecordArgs) {\n      {\n        let modelName = identifier.type;\n        const cache = this._instanceCache.getResourceCache(identifier);\n        // TODO deprecate allowing unknown args setting\n        let createOptions = {\n          _createProps: createRecordArgs,\n          // TODO @deprecate consider deprecating accessing record properties during init which the below is necessary for\n          _secretInit: {\n            identifier,\n            cache,\n            store: this,\n            cb: secretInit\n          }\n        };\n\n        // ensure that `getOwner(this)` works inside a model instance\n        (0, _application.setOwner)(createOptions, (0, _application.getOwner)(this));\n        const factory = getModelFactory(this, this._modelFactoryCache, modelName);\n        (true && !(factory) && (0, _debug.assert)(`No model was found for '${modelName}'`, factory));\n        return factory.class.create(createOptions);\n      }\n      (true && !(false) && (0, _debug.assert)(`You must implement the store's instantiateRecord hook for your custom model class.`));\n    }\n\n    /**\n     * A hook which an app or addon may implement. Called when\n     * the Store is destroying a Record Instance. This hook should\n     * be used to teardown any custom record instances instantiated\n     * with `instantiateRecord`.\n     *\n     * @method teardownRecord (hook)\n     * @public\n     * @param record\n     */\n    teardownRecord(record) {\n      {\n        (true && !('destroy' in record) && (0, _debug.assert)(`expected to receive an instance of DSModel. If using a custom model make sure you implement teardownRecord`, 'destroy' in record));\n        record.destroy();\n      }\n    }\n\n    /**\n     * Provides access to the SchemaDefinitionService instance\n     * for this Store instance.\n     *\n     * The SchemaDefinitionService can be used to query for\n     * information about the schema of a resource.\n     *\n     * @method getSchemaDefinitionService\n     * @public\n     */\n    getSchemaDefinitionService() {\n      {\n        if (!this._schema) {\n          // it is potentially a mistake for the RFC to have not enabled chaining these services, though highlander rule is nice.\n          // what ember-m3 did via private API to allow both worlds to interop would be much much harder using this.\n          this._schema = new DSModelSchemaDefinitionService(this);\n        }\n      }\n      (true && !(this._schema) && (0, _debug.assert)(`You must registerSchemaDefinitionService with the store to use custom model classes`, this._schema));\n      return this._schema;\n    }\n\n    /**\n     * DEPRECATED - Use `registerSchema` instead.\n     *\n     * Allows an app to register a custom SchemaService\n     * for use when information about a resource's schema needs\n     * to be queried.\n     *\n     * This method can only be called more than once, but only one schema\n     * definition service may exist. Therefore if you wish to chain services\n     * you must lookup the existing service and close over it with the new\n     * service by accessing `store.schema` prior to registration.\n     *\n     * For Example:\n     *\n     * ```ts\n     * import Store from '@ember-data/store';\n     *\n     * class SchemaDelegator {\n     *   constructor(schema) {\n     *     this._schema = schema;\n     *   }\n     *\n     *   doesTypeExist(type: string): boolean {\n     *     if (AbstractSchemas.has(type)) {\n     *       return true;\n     *     }\n     *     return this._schema.doesTypeExist(type);\n     *   }\n     *\n     *   attributesDefinitionFor(identifier: RecordIdentifier | { type: string }): AttributesSchema {\n     *     return this._schema.attributesDefinitionFor(identifier);\n     *   }\n     *\n     *   relationshipsDefinitionFor(identifier: RecordIdentifier | { type: string }): RelationshipsSchema {\n     *     const schema = AbstractSchemas.get(identifier.type);\n     *     return schema || this._schema.relationshipsDefinitionFor(identifier);\n     *   }\n     * }\n     *\n     * export default class extends Store {\n     *   constructor(...args) {\n     *     super(...args);\n     *\n     *     const schema = this.schema;\n     *     this.registerSchemaDefinitionService(new SchemaDelegator(schema));\n     *   }\n     * }\n     * ```\n     *\n     * @method registerSchemaDefinitionService\n     * @param {SchemaService} schema\n     * @deprecated\n     * @public\n     */\n    registerSchemaDefinitionService(schema) {\n      this._schema = schema;\n    }\n    /**\n     * Allows an app to register a custom SchemaService\n     * for use when information about a resource's schema needs\n     * to be queried.\n     *\n     * This method can only be called more than once, but only one schema\n     * definition service may exist. Therefore if you wish to chain services\n     * you must lookup the existing service and close over it with the new\n     * service by accessing `store.schema` prior to registration.\n     *\n     * For Example:\n     *\n     * ```ts\n     * import Store from '@ember-data/store';\n     *\n     * class SchemaDelegator {\n     *   constructor(schema) {\n     *     this._schema = schema;\n     *   }\n     *\n     *   doesTypeExist(type: string): boolean {\n     *     if (AbstractSchemas.has(type)) {\n     *       return true;\n     *     }\n     *     return this._schema.doesTypeExist(type);\n     *   }\n     *\n     *   attributesDefinitionFor(identifier: RecordIdentifier | { type: string }): AttributesSchema {\n     *     return this._schema.attributesDefinitionFor(identifier);\n     *   }\n     *\n     *   relationshipsDefinitionFor(identifier: RecordIdentifier | { type: string }): RelationshipsSchema {\n     *     const schema = AbstractSchemas.get(identifier.type);\n     *     return schema || this._schema.relationshipsDefinitionFor(identifier);\n     *   }\n     * }\n     *\n     * export default class extends Store {\n     *   constructor(...args) {\n     *     super(...args);\n     *\n     *     const schema = this.schema;\n     *     this.registerSchema(new SchemaDelegator(schema));\n     *   }\n     * }\n     * ```\n     *\n     * @method registerSchema\n     * @param {SchemaService} schema\n     * @public\n     */\n    registerSchema(schema) {\n      this._schema = schema;\n    }\n\n    /**\n      Returns the schema for a particular `modelName`.\n       When used with Model from @ember-data/model the return is the model class,\n      but this is not guaranteed.\n       If looking to query attribute or relationship information it is\n      recommended to use `getSchemaDefinitionService` instead. This method\n      should be considered legacy and exists primarily to continue to support\n      Adapter/Serializer APIs which expect it's return value in their method\n      signatures.\n       The class of a model might be useful if you want to get a list of all the\n      relationship names of the model, see\n      [`relationshipNames`](/ember-data/release/classes/Model?anchor=relationshipNames)\n      for example.\n       @method modelFor\n      @public\n      @param {String} modelName\n      @return {subclass of Model | ShimModelClass}\n      */\n    // TODO @deprecate in favor of schema APIs, requires adapter/serializer overhaul or replacement\n\n    modelFor(modelName) {\n      {\n        assertDestroyedStoreOnly(this, 'modelFor');\n      }\n      (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's modelFor method`, modelName));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      {\n        let normalizedModelName = normalizeModelName$1(modelName);\n        let maybeFactory = getModelFactory(this, this._modelFactoryCache, normalizedModelName);\n\n        // for factorFor factory/class split\n        const klass = maybeFactory && maybeFactory.class ? maybeFactory.class : null;\n        if (!klass || !klass.isModel || this._forceShim) {\n          (true && !(this.getSchemaDefinitionService().doesTypeExist(modelName)) && (0, _debug.assert)(`No model was found for '${modelName}' and no schema handles the type`, this.getSchemaDefinitionService().doesTypeExist(modelName)));\n          return getShimClass(this, modelName);\n        } else {\n          // TODO @deprecate ever returning the klass, always return the shim\n          return klass;\n        }\n      }\n      (true && !(this.getSchemaDefinitionService().doesTypeExist(modelName)) && (0, _debug.assert)(`No model was found for '${modelName}' and no schema handles the type`, this.getSchemaDefinitionService().doesTypeExist(modelName)));\n      return getShimClass(this, modelName);\n    }\n\n    /**\n      Create a new record in the current store. The properties passed\n      to this method are set on the newly created record.\n       To create a new instance of a `Post`:\n       ```js\n      store.createRecord('post', {\n        title: 'Ember is awesome!'\n      });\n      ```\n       To create a new instance of a `Post` that has a relationship with a `User` record:\n       ```js\n      let user = this.store.peekRecord('user', 1);\n      store.createRecord('post', {\n        title: 'Ember is awesome!',\n        user: user\n      });\n      ```\n       @method createRecord\n      @public\n      @param {String} modelName\n      @param {Object} inputProperties a hash of properties to set on the\n        newly created record.\n      @return {Model} record\n    */\n    createRecord(modelName, inputProperties) {\n      {\n        assertDestroyingStore(this, 'createRecord');\n      }\n      (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's createRecord method`, modelName));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string')); // This is wrapped in a `run.join` so that in test environments users do not need to manually wrap\n      //   calls to `createRecord`. The run loop usage here is because we batch the joining and updating\n      //   of record-arrays via ember's run loop, not our own.\n      //\n      //   to remove this, we would need to move to a new `async` API.\n      let record;\n      _runloop._backburner.join(() => {\n        this._join(() => {\n          let normalizedModelName = normalizeModelName$1(modelName);\n          let properties = {\n            ...inputProperties\n          };\n\n          // If the passed properties do not include a primary key,\n          // give the adapter an opportunity to generate one. Typically,\n          // client-side ID generators will use something like uuid.js\n          // to avoid conflicts.\n\n          if (properties.id === null || properties.id === undefined) {\n            let adapter = this.adapterFor(modelName);\n            if (adapter && adapter.generateIdForRecord) {\n              properties.id = adapter.generateIdForRecord(this, modelName, properties);\n            } else {\n              properties.id = null;\n            }\n          }\n\n          // Coerce ID to a string\n          properties.id = coerceId(properties.id);\n          const resource = {\n            type: normalizedModelName,\n            id: properties.id\n          };\n          if (resource.id) {\n            const identifier = this.identifierCache.peekRecordIdentifier(resource);\n            (true && !(!identifier) && (0, _debug.assert)(`The id ${properties.id} has already been used with another '${normalizedModelName}' record.`, !identifier));\n          }\n          const identifier = this.identifierCache.createIdentifierForNewRecord(resource);\n          const cache = this._instanceCache.getResourceCache(identifier);\n          const createOptions = normalizeProperties(this, identifier, properties, cache.managedVersion === '1');\n          const resultProps = cache.clientDidCreate(identifier, createOptions);\n          record = this._instanceCache.getRecord(identifier, resultProps);\n        });\n      });\n      return record;\n    }\n\n    /**\n      For symmetry, a record can be deleted via the store.\n       Example\n       ```javascript\n      let post = store.createRecord('post', {\n        title: 'Ember is awesome!'\n      });\n       store.deleteRecord(post);\n      ```\n       @method deleteRecord\n      @public\n      @param {Model} record\n    */\n    deleteRecord(record) {\n      {\n        assertDestroyingStore(this, 'deleteRecord');\n      }\n      const identifier = peekRecordIdentifier(record);\n      const cache = identifier && this._instanceCache.peek({\n        identifier,\n        bucket: 'resourceCache'\n      });\n      (true && !(cache) && (0, _debug.assert)(`expected a cache instance to exist for the record`, cache));\n      this._join(() => {\n        cache.setIsDeleted(identifier, true);\n        if (cache.isNew(identifier)) {\n          _runloop._backburner.join(() => {\n            this._instanceCache.unloadRecord(identifier);\n          });\n        }\n      });\n    }\n\n    /**\n      For symmetry, a record can be unloaded via the store.\n      This will cause the record to be destroyed and freed up for garbage collection.\n       Example\n       ```javascript\n      store.findRecord('post', 1).then(function(post) {\n        store.unloadRecord(post);\n      });\n      ```\n       @method unloadRecord\n      @public\n      @param {Model} record\n    */\n    unloadRecord(record) {\n      {\n        assertDestroyingStore(this, 'unloadRecord');\n      }\n      const identifier = peekRecordIdentifier(record);\n      if (identifier) {\n        this._instanceCache.unloadRecord(identifier);\n      }\n    }\n\n    /**\n      @method find\n      @param {String} modelName\n      @param {String|Integer} id\n      @param {Object} options\n      @return {Promise} promise\n      @deprecated\n      @private\n    */\n    find(modelName, id, options) {\n      {\n        assertDestroyingStore(this, 'find');\n      }\n      // The default `model` hook in Route calls `find(modelName, id)`,\n      // that's why we have to keep this method around even though `findRecord` is\n      // the public way to get a record by modelName and id.\n      (true && !(arguments.length !== 1) && (0, _debug.assert)(`Using store.find(type) has been removed. Use store.findAll(modelName) to retrieve all records for a given type.`, arguments.length !== 1));\n      (true && !(!options) && (0, _debug.assert)(`Calling store.find(modelName, id, { preload: preload }) is no longer supported. Use store.findRecord(modelName, id, { preload: preload }) instead.`, !options));\n      (true && !(arguments.length === 2) && (0, _debug.assert)(`You need to pass the model name and id to the store's find method`, arguments.length === 2));\n      (true && !(typeof id === 'string' || typeof id === 'number') && (0, _debug.assert)(`You cannot pass '${id}' as id to the store's find method`, typeof id === 'string' || typeof id === 'number'));\n      (true && !(typeof id !== 'object') && (0, _debug.assert)(`Calling store.find() with a query object is no longer supported. Use store.query() instead.`, typeof id !== 'object'));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      {\n        (true && !(false) && (0, _debug.deprecate)(`Using store.find is deprecated, use store.findRecord instead. Likely this means you are relying on the implicit store fetching behavior of routes unknowingly.`, false, {\n          id: 'ember-data:deprecate-store-find',\n          since: {\n            available: '4.5',\n            enabled: '4.5'\n          },\n          for: 'ember-data',\n          until: '5.0'\n        }));\n        return this.findRecord(modelName, id);\n      }\n      (true && !(false) && (0, _debug.assert)(`store.find has been removed. Use store.findRecord instead.`));\n    }\n\n    /**\n      This method returns a record for a given identifier or type and id combination.\n       The `findRecord` method will always resolve its promise with the same\n      object for a given identifier or type and `id`.\n       The `findRecord` method will always return a **promise** that will be\n      resolved with the record.\n       **Example 1**\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model({ post_id }) {\n          return this.store.findRecord('post', post_id);\n        }\n      }\n      ```\n       **Example 2**\n       `findRecord` can be called with a single identifier argument instead of the combination\n      of `type` (modelName) and `id` as separate arguments. You may recognize this combo as\n      the typical pairing from [JSON:API](https://jsonapi.org/format/#document-resource-object-identification)\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model({ post_id: id }) {\n          return this.store.findRecord({ type: 'post', id });\n        }\n      }\n      ```\n       **Example 3**\n       If you have previously received an lid via an Identifier for this record, and the record\n      has already been assigned an id, you can find the record again using just the lid.\n       ```app/routes/post.js\n      store.findRecord({ lid });\n      ```\n       If the record is not yet available, the store will ask the adapter's `findRecord`\n      method to retrieve and supply the necessary data. If the record is already present\n      in the 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 also fetching the post you can pass in the post to the `findRecord` call:\n       ```app/routes/post-comments.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model({ post_id, comment_id: id }) {\n          return this.store.findRecord({ type: 'comment', id, { preload: { post: post_id }} });\n        }\n      }\n      ```\n       In your adapter you can then access this id without triggering a network request via the\n      snapshot:\n       ```app/adapters/application.js\n      import EmberObject from '@ember/object';\n       export default class Adapter extends EmberObject {\n         findRecord(store, schema, id, snapshot) {\n          let type = schema.modelName;\n           if (type === 'comment')\n            let postId = snapshot.belongsTo('post', { id: true });\n             return fetch(`./posts/${postId}/comments/${id}`)\n              .then(response => response.json())\n          }\n        }\n      }\n      ```\n       This could also be achieved by supplying the post id to the adapter via the adapterOptions\n      property on the options hash.\n       ```app/routes/post-comments.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model({ post_id, comment_id: id }) {\n          return this.store.findRecord({ type: 'comment', id, { adapterOptions: { post: post_id }} });\n        }\n      }\n      ```\n       ```app/adapters/application.js\n      import EmberObject from '@ember/object';\n       export default class Adapter extends EmberObject {\n         findRecord(store, schema, id, snapshot) {\n          let type = schema.modelName;\n           if (type === 'comment')\n            let postId = snapshot.adapterOptions.post;\n             return fetch(`./posts/${postId}/comments/${id}`)\n              .then(response => response.json())\n          }\n        }\n      }\n      ```\n       If you have access to the post model you can also pass the model itself to preload:\n       ```javascript\n      let post = await store.findRecord('post', 1);\n      let comment = await store.findRecord('comment', 2, { post: myPostModel });\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.revision; // 2\n      });\n      ```\n       If no reload is indicated via the above mentioned ways, then the promise\n      immediately resolves with the cached version in the store.\n       ### Background Reloading\n       Optionally, if `adapter.shouldBackgroundReloadRecord` evaluates to `true`,\n      then a background reload is started, which updates the records' data, once\n      it is available:\n       ```js\n      // app/adapters/post.js\n      import ApplicationAdapter from \"./application\";\n       export default class PostAdapter extends ApplicationAdapter {\n        shouldReloadRecord(store, snapshot) {\n          return false;\n        },\n         shouldBackgroundReloadRecord(store, snapshot) {\n          return true;\n        }\n      });\n       // ...\n       store.push({\n        data: {\n          id: 1,\n          type: 'post',\n          revision: 1\n        }\n      });\n       let blogPost = store.findRecord('post', 1).then(function(post) {\n        post.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.revision; // 2\n      ```\n       If you would like to force or prevent background reloading, you can set a\n      boolean value for `backgroundReload` in the options object for\n      `findRecord`.\n       ```app/routes/post/edit.js\n      import Route from '@ember/routing/route';\n       export default class PostEditRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { backgroundReload: false });\n        }\n      }\n      ```\n       If you pass an object on the `adapterOptions` property of the options\n      argument it will be passed to your adapter via the snapshot\n       ```app/routes/post/edit.js\n      import Route from '@ember/routing/route';\n       export default class PostEditRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, {\n            adapterOptions: { subscribe: false }\n          });\n        }\n      }\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class PostAdapter extends MyCustomAdapter {\n        findRecord(store, type, id, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       See [peekRecord](../methods/peekRecord?anchor=peekRecord) to get the cached version of a record.\n       ### Retrieving Related Model Records\n       If you use an adapter such as Ember's default\n      [`JSONAPIAdapter`](/ember-data/release/classes/JSONAPIAdapter)\n      that supports the [JSON API specification](http://jsonapi.org/) and if your server\n      endpoint supports the use of an\n      ['include' query parameter](http://jsonapi.org/format/#fetching-includes),\n      you can use `findRecord()` or `findAll()` to automatically retrieve additional records related to\n      the one you request by supplying an `include` parameter in the `options` object.\n       For example, given a `post` model that has a `hasMany` relationship with a `comment`\n      model, when we retrieve a specific post we can have the server also return that post's\n      comments in the same request:\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { include: 'comments' });\n        }\n      }\n      ```\n       ```app/adapters/application.js\n      import EmberObject from '@ember/object';\n       export default class Adapter extends EmberObject {\n         findRecord(store, schema, id, snapshot) {\n          let type = schema.modelName;\n           if (type === 'post')\n            let includes = snapshot.adapterOptions.include;\n             return fetch(`./posts/${postId}?include=${includes}`)\n              .then(response => response.json())\n          }\n        }\n      }\n      ```\n       In this case, the post's comments would then be available in your template as\n      `model.comments`.\n       Multiple relationships can be requested using an `include` parameter consisting of a\n      comma-separated list (without white-space) while nested relationships can be specified\n      using a dot-separated sequence of relationship names. So to request both the post's\n      comments and the authors of those comments the request would look like this:\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { include: 'comments,comments.author' });\n        }\n      }\n      ```\n       ### Retrieving Specific Fields by Type\n       If your server endpoint supports the use of a ['fields' query parameter](https://jsonapi.org/format/#fetching-sparse-fieldsets),\n      you can use pass those fields through to your server.  At this point in time, this requires a few manual steps on your part.\n       1. Implement `buildQuery` in your adapter.\n       ```app/adapters/application.js\n      buildQuery(snapshot) {\n        let query = super.buildQuery(...arguments);\n         let { fields } = snapshot.adapterOptions;\n         if (fields) {\n          query.fields = fields;\n        }\n         return query;\n      }\n      ```\n       2. Then pass through the applicable fields to your `findRecord` request.\n       Given a `post` model with attributes body, title, publishDate and meta, you can retrieve a filtered list of attributes.\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n      export default Route.extend({\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title' } });\n        }\n      });\n      ```\n       Moreover, you can filter attributes on related models as well. If a `post` has a `belongsTo` relationship to a user,\n      just include the relationship key and attributes.\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n      export default Route.extend({\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title', user: 'name,email' } });\n        }\n      });\n      ```\n       @since 1.13.0\n      @method findRecord\n      @public\n      @param {String|object} modelName - either a string representing the modelName or a ResourceIdentifier object containing both the type (a string) and the id (a string) for the record or an lid (a string) of an existing record\n      @param {(String|Integer|Object)} id - optional object with options for the request only if the first param is a ResourceIdentifier, else the string id of the record to be retrieved\n      @param {Object} [options] - if the first param is a string this will be the optional options for the request. See examples for available options.\n      @return {Promise} promise\n    */\n\n    findRecord(resource, id, options) {\n      {\n        assertDestroyingStore(this, 'findRecord');\n      }\n      (true && !(resource) && (0, _debug.assert)(`You need to pass a modelName or resource identifier as the first argument to the store's findRecord method`, resource));\n      if (isMaybeIdentifier(resource)) {\n        options = id;\n      } else {\n        (true && !(typeof resource === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${resource}`, typeof resource === 'string'));\n        const type = normalizeModelName$1(resource);\n        const normalizedId = ensureStringId(id);\n        resource = constructResource(type, normalizedId);\n      }\n      const identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      options = options || {};\n      if (options.preload) {\n        // force reload if we preload to ensure we don't resolve the promise\n        // until we are complete, else we will end up background-reloading\n        // even for initial load.\n        if (!this._instanceCache.recordIsLoaded(identifier)) {\n          options.reload = true;\n        }\n        this._join(() => {\n          preloadData(this, identifier, options.preload);\n        });\n      }\n      const promise = this.request({\n        op: 'findRecord',\n        data: {\n          record: identifier,\n          options\n        },\n        cacheOptions: {\n          [SkipCache]: true\n        }\n      });\n      {\n        return promiseObject(promise.then(document => {\n          return document.content;\n        }));\n      }\n      return promise.then(document => {\n        return document.content;\n      });\n    }\n\n    /**\n      Get the reference for the specified record.\n       Example\n       ```javascript\n      let userRef = store.getReference('user', 1);\n       // check if the user is loaded\n      let isLoaded = userRef.value() !== null;\n       // get the record of the reference (null if not yet available)\n      let user = userRef.value();\n       // get the identifier of the reference\n      if (userRef.remoteType() === 'id') {\n      let id = userRef.id();\n      }\n       // load user (via store.find)\n      userRef.load().then(...)\n       // or trigger a reload\n      userRef.reload().then(...)\n       // provide data for reference\n      userRef.push({ id: 1, username: '@user' }).then(function(user) {\n        userRef.value() === user;\n      });\n      ```\n       @method getReference\n      @public\n      @param {String|object} resource - modelName (string) or Identifier (object)\n      @param {String|Integer} id\n      @since 2.5.0\n      @return {RecordReference}\n    */\n    // TODO @deprecate getReference (and references generally)\n    getReference(resource, id) {\n      {\n        assertDestroyingStore(this, 'getReference');\n      }\n      let resourceIdentifier;\n      if (arguments.length === 1 && isMaybeIdentifier(resource)) {\n        resourceIdentifier = resource;\n      } else {\n        const type = normalizeModelName$1(resource);\n        const normalizedId = ensureStringId(id);\n        resourceIdentifier = constructResource(type, normalizedId);\n      }\n      (true && !(isMaybeIdentifier(resourceIdentifier)) && (0, _debug.assert)('getReference expected to receive either a resource identifier or type and id as arguments', isMaybeIdentifier(resourceIdentifier)));\n      let identifier = this.identifierCache.getOrCreateRecordIdentifier(resourceIdentifier);\n      return this._instanceCache.getReference(identifier);\n    }\n\n    /**\n      Get a record by a given type and ID without triggering a fetch.\n       This method will synchronously return the record if it is available in the store,\n      otherwise it will return `null`. A record is available if it has been fetched earlier, or\n      pushed manually into the store.\n       See [findRecord](../methods/findRecord?anchor=findRecord) if you would like to request this record from the backend.\n       _Note: This is a synchronous method and does not return a promise._\n       **Example 1**\n       ```js\n      let post = store.peekRecord('post', 1);\n       post.id; // 1\n      ```\n       `peekRecord` can be called with a single identifier argument instead of the combination\n      of `type` (modelName) and `id` as separate arguments. You may recognize this combo as\n      the typical pairing from [JSON:API](https://jsonapi.org/format/#document-resource-object-identification)\n       **Example 2**\n       ```js\n      let post = store.peekRecord({ type: 'post', id });\n      post.id; // 1\n      ```\n       If you have previously received an lid from an Identifier for this record, you can lookup the record again using\n      just the lid.\n       **Example 3**\n       ```js\n      let post = store.peekRecord({ lid });\n      post.id; // 1\n      ```\n        @since 1.13.0\n      @method peekRecord\n      @public\n      @param {String|object} modelName - either a string representing the modelName or a ResourceIdentifier object containing both the type (a string) and the id (a string) for the record or an lid (a string) of an existing record\n      @param {String|Integer} id - optional only if the first param is a ResourceIdentifier, else the string id of the record to be retrieved.\n      @return {Model|null} record\n    */\n\n    peekRecord(identifier, id) {\n      if (arguments.length === 1 && isMaybeIdentifier(identifier)) {\n        const stableIdentifier = this.identifierCache.peekRecordIdentifier(identifier);\n        const isLoaded = stableIdentifier && this._instanceCache.recordIsLoaded(stableIdentifier);\n        // TODO come up with a better mechanism for determining if we have data and could peek.\n        // this is basically an \"are we not empty\" query.\n        return isLoaded ? this._instanceCache.getRecord(stableIdentifier) : null;\n      }\n      {\n        assertDestroyingStore(this, 'peekRecord');\n      }\n      (true && !(identifier) && (0, _debug.assert)(`You need to pass a model name to the store's peekRecord method`, identifier));\n      (true && !(typeof identifier === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${identifier}`, typeof identifier === 'string'));\n      const type = normalizeModelName$1(identifier);\n      const normalizedId = ensureStringId(id);\n      const resource = {\n        type,\n        id: normalizedId\n      };\n      const stableIdentifier = this.identifierCache.peekRecordIdentifier(resource);\n      const isLoaded = stableIdentifier && this._instanceCache.recordIsLoaded(stableIdentifier);\n      return isLoaded ? this._instanceCache.getRecord(stableIdentifier) : null;\n    }\n\n    /**\n     This method returns true if a record for a given modelName and id is already\n     loaded in the store. Use this function to know beforehand if a findRecord()\n     will result in a request or that it will be a cache hit.\n      Example\n      ```javascript\n     store.hasRecordForId('post', 1); // false\n     store.findRecord('post', 1).then(function() {\n       store.hasRecordForId('post', 1); // true\n     });\n     ```\n       @method hasRecordForId\n      @deprecated\n      @public\n      @param {String} modelName\n      @param {(String|Integer)} id\n      @return {Boolean}\n    */\n    hasRecordForId(modelName, id) {\n      {\n        (true && !(false) && (0, _debug.deprecate)(`store.hasRecordForId has been deprecated in favor of store.peekRecord`, false, {\n          id: 'ember-data:deprecate-has-record-for-id',\n          since: {\n            available: '4.5',\n            enabled: '4.5'\n          },\n          until: '5.0',\n          for: 'ember-data'\n        }));\n        {\n          assertDestroyingStore(this, 'hasRecordForId');\n        }\n        (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's hasRecordForId method`, modelName));\n        (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n        const type = normalizeModelName$1(modelName);\n        const trueId = ensureStringId(id);\n        const resource = {\n          type,\n          id: trueId\n        };\n        const identifier = this.identifierCache.peekRecordIdentifier(resource);\n        return Boolean(identifier && this._instanceCache.recordIsLoaded(identifier));\n      }\n      (true && !(false) && (0, _debug.assert)(`store.hasRecordForId has been removed`));\n    }\n\n    /**\n      This method delegates a query to the adapter. This is the one place where\n      adapter-level semantics are exposed to the application.\n       Each time this method is called a new request is made through the adapter.\n       Exposing queries this way seems preferable to creating an abstract query\n      language for all server-side queries, and then require all adapters to\n      implement them.\n       ---\n       If you do something like this:\n       ```javascript\n      store.query('person', { page: 1 });\n      ```\n       The request made to the server will look something like this:\n       ```\n      GET \"/api/v1/person?page=1\"\n      ```\n       ---\n       If you do something like this:\n       ```javascript\n      store.query('person', { ids: [1, 2, 3] });\n      ```\n       The request made to the server will look something like this:\n       ```\n      GET \"/api/v1/person?ids%5B%5D=1&ids%5B%5D=2&ids%5B%5D=3\"\n      decoded: \"/api/v1/person?ids[]=1&ids[]=2&ids[]=3\"\n      ```\n       This method returns a promise, which is resolved with a\n      [`Collection`](/ember-data/release/classes/Collection)\n      once the server returns.\n       @since 1.13.0\n      @method query\n      @public\n      @param {String} modelName\n      @param {any} query an opaque query to be used by the adapter\n      @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter.query\n      @return {Promise} promise\n    */\n    query(modelName, query, options) {\n      {\n        assertDestroyingStore(this, 'query');\n      }\n      (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's query method`, modelName));\n      (true && !(query) && (0, _debug.assert)(`You need to pass a query hash to the store's query method`, query));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      const promise = this.request({\n        op: 'query',\n        data: {\n          type: normalizeModelName$1(modelName),\n          query,\n          options: options || {}\n        },\n        cacheOptions: {\n          [SkipCache]: true\n        }\n      });\n      {\n        return promiseArray(promise.then(document => document.content));\n      }\n      return promise.then(document => document.content);\n    }\n\n    /**\n      This method makes a request for one record, where the `id` is not known\n      beforehand (if the `id` is known, use [`findRecord`](../methods/findRecord?anchor=findRecord)\n      instead).\n       This method can be used when it is certain that the server will return a\n      single object for the primary data.\n       Each time this method is called a new request is made through the adapter.\n       Let's assume our API provides an endpoint for the currently logged in user\n      via:\n       ```\n      // GET /api/current_user\n      {\n        user: {\n          id: 1234,\n          username: 'admin'\n        }\n      }\n      ```\n       Since the specific `id` of the `user` is not known beforehand, we can use\n      `queryRecord` to get the user:\n       ```javascript\n      store.queryRecord('user', {}).then(function(user) {\n        let username = user.username;\n        // do thing\n      });\n      ```\n       The request is made through the adapters' `queryRecord`:\n       ```app/adapters/user.js\n      import Adapter from '@ember-data/adapter';\n      import $ from 'jquery';\n       export default class UserAdapter extends Adapter {\n        queryRecord(modelName, query) {\n          return $.getJSON('/api/current_user');\n        }\n      }\n      ```\n       Note: the primary use case for `store.queryRecord` is when a single record\n      is queried and the `id` is not known beforehand. In all other cases\n      `store.query` and using the first item of the array is likely the preferred\n      way:\n       ```\n      // GET /users?username=unique\n      {\n        data: [{\n          id: 1234,\n          type: 'user',\n          attributes: {\n            username: \"unique\"\n          }\n        }]\n      }\n      ```\n       ```javascript\n      store.query('user', { username: 'unique' }).then(function(users) {\n        return users.firstObject;\n      }).then(function(user) {\n        let id = user.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         // user is null\n      });\n      ```\n       @since 1.13.0\n      @method queryRecord\n      @public\n      @param {String} modelName\n      @param {any} query an opaque query to be used by the adapter\n      @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter.queryRecord\n      @return {Promise} promise which resolves with the found record or `null`\n    */\n    queryRecord(modelName, query, options) {\n      {\n        assertDestroyingStore(this, 'queryRecord');\n      }\n      (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's queryRecord method`, modelName));\n      (true && !(query) && (0, _debug.assert)(`You need to pass a query hash to the store's queryRecord method`, query));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      const promise = this.request({\n        op: 'queryRecord',\n        data: {\n          type: normalizeModelName$1(modelName),\n          query,\n          options: options || {}\n        },\n        cacheOptions: {\n          [SkipCache]: true\n        }\n      });\n      {\n        return promiseObject(promise.then(document => document.content));\n      }\n      return promise.then(document => document.content);\n    }\n\n    /**\n      `findAll` asks the adapter's `findAll` method to find the records for the\n      given type, and returns a promise which will resolve with all records of\n      this type present in the store, even if the adapter only returns a subset\n      of them.\n       ```app/routes/authors.js\n      import Route from '@ember/routing/route';\n       export default class AuthorsRoute extends Route {\n        model(params) {\n          return this.store.findAll('author');\n        }\n      }\n      ```\n       _When_ the returned promise resolves depends on the reload behavior,\n      configured via the passed `options` hash and the result of the adapter's\n      `shouldReloadAll` method.\n       ### Reloading\n       If `{ reload: true }` is passed or `adapter.shouldReloadAll` evaluates to\n      `true`, then the returned promise resolves once the adapter returns data,\n      regardless if there are already records in the store:\n       ```js\n      store.push({\n        data: {\n          id: 'first',\n          type: 'author'\n        }\n      });\n       // adapter#findAll resolves with\n      // [\n      //   {\n      //     id: 'second',\n      //     type: 'author'\n      //   }\n      // ]\n      store.findAll('author', { reload: true }).then(function(authors) {\n        authors.getEach('id'); // ['first', 'second']\n      });\n      ```\n       If no reload is indicated via the above mentioned ways, then the promise\n      immediately resolves with all the records currently loaded in the store.\n       ### Background Reloading\n       Optionally, if `adapter.shouldBackgroundReloadAll` evaluates to `true`,\n      then a background reload is started. Once this resolves, the array with\n      which the promise resolves, is updated automatically so it contains all the\n      records in the store:\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n       export default class ApplicationAdapter extends Adapter {\n        shouldReloadAll(store, snapshotsArray) {\n          return false;\n        },\n         shouldBackgroundReloadAll(store, snapshotsArray) {\n          return true;\n        }\n      });\n       // ...\n       store.push({\n        data: {\n          id: 'first',\n          type: 'author'\n        }\n      });\n       let allAuthors;\n      store.findAll('author').then(function(authors) {\n        authors.getEach('id'); // ['first']\n         allAuthors = authors;\n      });\n       // later, once adapter#findAll resolved with\n      // [\n      //   {\n      //     id: 'second',\n      //     type: 'author'\n      //   }\n      // ]\n       allAuthors.getEach('id'); // ['first', 'second']\n      ```\n       If you would like to force or prevent background reloading, you can set a\n      boolean value for `backgroundReload` in the options object for\n      `findAll`.\n       ```app/routes/post/edit.js\n      import Route from '@ember/routing/route';\n       export default class PostEditRoute extends Route {\n        model() {\n          return this.store.findAll('post', { backgroundReload: false });\n        }\n      }\n      ```\n       If you pass an object on the `adapterOptions` property of the options\n      argument it will be passed to you adapter via the `snapshotRecordArray`\n       ```app/routes/posts.js\n      import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n        model(params) {\n          return this.store.findAll('post', {\n            adapterOptions: { subscribe: false }\n          });\n        }\n      }\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class UserAdapter extends MyCustomAdapter {\n        findAll(store, type, sinceToken, snapshotRecordArray) {\n          if (snapshotRecordArray.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       See [peekAll](../methods/peekAll?anchor=peekAll) to get an array of current records in the\n      store, without waiting until a reload is finished.\n       ### Retrieving Related Model Records\n       If you use an adapter such as Ember's default\n      [`JSONAPIAdapter`](/ember-data/release/classes/JSONAPIAdapter)\n      that supports the [JSON API specification](http://jsonapi.org/) and if your server\n      endpoint supports the use of an\n      ['include' query parameter](http://jsonapi.org/format/#fetching-includes),\n      you can use `findAll()` to automatically retrieve additional records related to\n      those requested by supplying an `include` parameter in the `options` object.\n       For example, given a `post` model that has a `hasMany` relationship with a `comment`\n      model, when we retrieve all of the post records we can have the server also return\n      all of the posts' comments in the same request:\n       ```app/routes/posts.js\n      import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n        model() {\n          return this.store.findAll('post', { include: 'comments' });\n        }\n      }\n      ```\n      Multiple relationships can be requested using an `include` parameter consisting of a\n      comma-separated list (without white-space) while nested relationships can be specified\n      using a dot-separated sequence of relationship names. So to request both the posts'\n      comments and the authors of those comments the request would look like this:\n       ```app/routes/posts.js\n      import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n        model() {\n          return this.store.findAll('post', { include: 'comments,comments.author' });\n        }\n      }\n      ```\n       See [query](../methods/query?anchor=query) to only get a subset of records from the server.\n       @since 1.13.0\n      @method findAll\n      @public\n      @param {String} modelName\n      @param {Object} options\n      @return {Promise} promise\n    */\n    findAll(modelName) {\n      let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      {\n        assertDestroyingStore(this, 'findAll');\n      }\n      (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's findAll method`, modelName));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      const promise = this.request({\n        op: 'findAll',\n        data: {\n          type: normalizeModelName$1(modelName),\n          options: options || {}\n        },\n        cacheOptions: {\n          [SkipCache]: true\n        }\n      });\n      {\n        return promiseArray(promise.then(document => document.content));\n      }\n      return promise.then(document => document.content);\n    }\n\n    /**\n      This method returns a filtered array that contains all of the\n      known records for a given type in the store.\n       Note that because it's just a filter, the result will contain any\n      locally created records of the type, however, it will not make a\n      request to the backend to retrieve additional records. If you\n      would like to request all the records from the backend please use\n      [store.findAll](../methods/findAll?anchor=findAll).\n       Also note that multiple calls to `peekAll` for a given type will always\n      return the same `RecordArray`.\n       Example\n       ```javascript\n      let localPosts = store.peekAll('post');\n      ```\n       @since 1.13.0\n      @method peekAll\n      @public\n      @param {String} modelName\n      @return {RecordArray}\n    */\n    peekAll(modelName) {\n      {\n        assertDestroyingStore(this, 'peekAll');\n      }\n      (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's peekAll method`, modelName));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      let type = normalizeModelName$1(modelName);\n      return this.recordArrayManager.liveArrayFor(type);\n    }\n\n    /**\n      This method unloads all records in the store.\n      It schedules unloading to happen during the next run loop.\n       Optionally you can pass a type which unload all records for a given type.\n       ```javascript\n      store.unloadAll();\n      store.unloadAll('post');\n      ```\n       @method unloadAll\n      @public\n      @param {String} modelName\n    */\n    unloadAll(modelName) {\n      {\n        assertDestroyedStoreOnly(this, 'unloadAll');\n      }\n      (true && !(!modelName || typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, !modelName || typeof modelName === 'string'));\n      this._join(() => {\n        if (modelName === undefined) {\n          // destroy the graph before unloadAll\n          // since then we avoid churning relationships\n          // during unload\n          {\n            const peekGraph = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).peekGraph;\n            const graph = peekGraph(this);\n            if (graph) {\n              graph.identifiers.clear();\n            }\n          }\n          this.recordArrayManager.clear();\n          this._instanceCache.clear();\n        } else {\n          let normalizedModelName = normalizeModelName$1(modelName);\n          this._instanceCache.clear(normalizedModelName);\n        }\n      });\n    }\n\n    /**\n      Push some data for a given type into the store.\n       This method expects normalized [JSON API](http://jsonapi.org/) document. This means you have to follow [JSON API specification](http://jsonapi.org/format/) with few minor adjustments:\n      - record's `type` should always be in singular, dasherized form\n      - members (properties) should be camelCased\n       [Your primary data should be wrapped inside `data` property](http://jsonapi.org/format/#document-top-level):\n       ```js\n      store.push({\n        data: {\n          // primary data for single record of type `Person`\n          id: '1',\n          type: 'person',\n          attributes: {\n            firstName: 'Daniel',\n            lastName: 'Kmak'\n          }\n        }\n      });\n      ```\n       [Demo.](http://ember-twiddle.com/fb99f18cd3b4d3e2a4c7)\n       `data` property can also hold an array (of records):\n       ```js\n      store.push({\n        data: [\n          // an array of records\n          {\n            id: '1',\n            type: 'person',\n            attributes: {\n              firstName: 'Daniel',\n              lastName: 'Kmak'\n            }\n          },\n          {\n            id: '2',\n            type: 'person',\n            attributes: {\n              firstName: 'Tom',\n              lastName: 'Dale'\n            }\n          }\n        ]\n      });\n      ```\n       [Demo.](http://ember-twiddle.com/69cdbeaa3702159dc355)\n       There are some typical properties for `JSONAPI` payload:\n      * `id` - mandatory, unique record's key\n      * `type` - mandatory string which matches `model`'s dasherized name in singular form\n      * `attributes` - object which holds data for record attributes - `attr`'s declared in model\n      * `relationships` - object which must contain any of the following properties under each relationships' respective key (example path is `relationships.achievements.data`):\n        - [`links`](http://jsonapi.org/format/#document-links)\n        - [`data`](http://jsonapi.org/format/#document-resource-object-linkage) - place for primary data\n        - [`meta`](http://jsonapi.org/format/#document-meta) - object which contains meta-information about relationship\n       For this model:\n       ```app/models/person.js\n      import Model, { attr, hasMany } from '@ember-data/model';\n       export default class PersonRoute extends Route {\n        @attr('string') firstName;\n        @attr('string') lastName;\n         @hasMany('person') children;\n      }\n      ```\n       To represent the children as IDs:\n       ```js\n      {\n        data: {\n          id: '1',\n          type: 'person',\n          attributes: {\n            firstName: 'Tom',\n            lastName: 'Dale'\n          },\n          relationships: {\n            children: {\n              data: [\n                {\n                  id: '2',\n                  type: 'person'\n                },\n                {\n                  id: '3',\n                  type: 'person'\n                },\n                {\n                  id: '4',\n                  type: 'person'\n                }\n              ]\n            }\n          }\n        }\n      }\n      ```\n       [Demo.](http://ember-twiddle.com/343e1735e034091f5bde)\n       To represent the children relationship as a URL:\n       ```js\n      {\n        data: {\n          id: '1',\n          type: 'person',\n          attributes: {\n            firstName: 'Tom',\n            lastName: 'Dale'\n          },\n          relationships: {\n            children: {\n              links: {\n                related: '/people/1/children'\n              }\n            }\n          }\n        }\n      }\n      ```\n       If you're streaming data or implementing an adapter, make sure\n      that you have converted the incoming data into this form. The\n      store's [normalize](../methods/normalize?anchor=normalize) method is a convenience\n      helper for converting a json payload into the form Ember Data\n      expects.\n       ```js\n      store.push(store.normalize('person', data));\n      ```\n       This method can be used both to push in brand new\n      records, as well as to update existing records.\n       @method push\n      @public\n      @param {Object} data\n      @return the record(s) that was created or\n        updated.\n    */\n\n    push(data) {\n      {\n        assertDestroyingStore(this, 'push');\n      }\n      let pushed = this._push(data, false);\n      if (Array.isArray(pushed)) {\n        let records = pushed.map(identifier => this._instanceCache.getRecord(identifier));\n        return records;\n      }\n      if (pushed === null) {\n        return null;\n      }\n      return this._instanceCache.getRecord(pushed);\n    }\n\n    /**\n      Push some data in the form of a json-api document into the store,\n      without creating materialized records.\n       @method _push\n      @private\n      @param {Object} jsonApiDoc\n      @return {StableRecordIdentifier|Array<StableRecordIdentifier>} identifiers for the primary records that had data loaded\n    */\n    _push(jsonApiDoc, asyncFlush) {\n      {\n        assertDestroyingStore(this, '_push');\n      }\n      if (asyncFlush) {\n        this._enableAsyncFlush = true;\n      }\n      let ret;\n      this._join(() => {\n        {\n          ret = legacyCachePut(this, {\n            content: jsonApiDoc\n          });\n        }\n      });\n      this._enableAsyncFlush = null;\n      return ret.data;\n    }\n\n    /**\n      Push some raw data into the store.\n       This method can be used both to push in brand new\n      records, as well as to update existing records. You\n      can push in more than one type of object at once.\n      All objects should be in the format expected by the\n      serializer.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer;\n      ```\n       ```js\n      let pushData = {\n        posts: [\n          { id: 1, postTitle: \"Great post\", commentIds: [2] }\n        ],\n        comments: [\n          { id: 2, commentBody: \"Insightful comment\" }\n        ]\n      }\n       store.pushPayload(pushData);\n      ```\n       By default, the data will be deserialized using a default\n      serializer (the application serializer if it exists).\n       Alternatively, `pushPayload` will accept a model type which\n      will determine which serializer will process the payload.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n        export default class ApplicationSerializer extends RESTSerializer;\n      ```\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default JSONSerializer;\n      ```\n       ```js\n      store.pushPayload(pushData); // Will use the application serializer\n      store.pushPayload('post', pushData); // Will use the post serializer\n      ```\n       @method pushPayload\n      @public\n      @param {String} modelName Optionally, a model type used to determine which serializer will be used\n      @param {Object} inputPayload\n    */\n    // TODO @runspired @deprecate pushPayload in favor of looking up the serializer\n    pushPayload(modelName, inputPayload) {\n      {\n        assertDestroyingStore(this, 'pushPayload');\n      }\n      let serializer;\n      let payload;\n      if (!inputPayload) {\n        payload = modelName;\n        serializer = this.serializerFor('application');\n        (true && !(typeof serializer.pushPayload === 'function') && (0, _debug.assert)(`You cannot use 'store#pushPayload' without a modelName unless your default serializer defines 'pushPayload'`, typeof serializer.pushPayload === 'function'));\n      } else {\n        payload = inputPayload;\n        (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n        let normalizedModelName = normalizeModelName$1(modelName);\n        serializer = this.serializerFor(normalizedModelName);\n      }\n      (true && !(serializer.pushPayload) && (0, _debug.assert)(`You must define a pushPayload method in your serializer in order to call store.pushPayload`, serializer.pushPayload));\n      serializer.pushPayload(this, payload);\n    }\n\n    // TODO @runspired @deprecate records should implement their own serialization if desired\n    serializeRecord(record, options) {\n      // TODO we used to check if the record was destroyed here\n      {\n        if (!this._fetchManager) {\n          const FetchManager = (0, _esCompat.default)(require(\"@ember-data/legacy-compat/-private\")).FetchManager;\n          this._fetchManager = new FetchManager(this);\n        }\n        return this._fetchManager.createSnapshot(recordIdentifierFor(record)).serialize(options);\n      }\n      (true && !(false) && (0, _debug.assert)(`Store.serializeRecord is only available when utilizing @ember-data/legacy-compat for legacy compatibility`));\n    }\n\n    /**\n     * Trigger a save for a Record.\n     *\n     * @method saveRecord\n     * @public\n     * @param {RecordInstance} record\n     * @param options\n     * @returns {Promise<RecordInstance>}\n     */\n    saveRecord(record) {\n      let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      {\n        assertDestroyingStore(this, 'saveRecord');\n      }\n      (true && !(storeFor(record)) && (0, _debug.assert)(`Unable to initate save for a record in a disconnected state`, storeFor(record)));\n      let identifier = recordIdentifierFor(record);\n      const cache = identifier && this._instanceCache.peek({\n        identifier,\n        bucket: 'resourceCache'\n      });\n      if (!cache) {\n        // this commonly means we're disconnected\n        // but just in case we reject here to prevent bad things.\n        return Promise.reject(`Record Is Disconnected`);\n      }\n      // TODO we used to check if the record was destroyed here\n      (true && !(cache && this._instanceCache.recordIsLoaded(identifier)) && (0, _debug.assert)(`Cannot initiate a save request for an unloaded record: ${identifier}`, cache && this._instanceCache.recordIsLoaded(identifier)));\n      if (resourceIsFullyDeleted(this._instanceCache, identifier)) {\n        return Promise.resolve(record);\n      }\n      if (isDSModel(record)) {\n        record.errors.clear();\n      }\n      if (!options) {\n        options = {};\n      }\n      let operation = 'updateRecord';\n      if (cache.isNew(identifier)) {\n        operation = 'createRecord';\n      } else if (cache.isDeleted(identifier)) {\n        operation = 'deleteRecord';\n      }\n      const request = {\n        op: operation,\n        data: {\n          options,\n          record: identifier\n        },\n        cacheOptions: {\n          [SkipCache]: true\n        }\n      };\n      return this.request(request).then(document => document.content);\n    }\n\n    /**\n     * Instantiation hook allowing applications or addons to configure the store\n     * to utilize a custom Cache implementation.\n     *\n     * This hook should not be called directly by consuming applications or libraries.\n     * Use `Store.cache` to access the Cache instance.\n     *\n     * @method createCache (hook)\n     * @public\n     * @param storeWrapper\n     * @returns {Cache}\n     */\n    createCache(storeWrapper) {\n      {\n        if (_Cache === undefined) {\n          _Cache = (0, _esCompat.default)(require(\"@ember-data/json-api\")).default;\n        }\n        return new _Cache(storeWrapper);\n      }\n      (true && !(false) && (0, _debug.assert)(`Expected store.createCache to be implemented but it wasn't`));\n    }\n\n    /**\n     * Returns the cache instance associated to this Store, instantiates the Cache\n     * if necessary via `Store.createCache`\n     *\n     * @property {Cache} cache\n     * @public\n     */\n    get cache() {\n      let {\n        cache\n      } = this._instanceCache;\n      if (!cache) {\n        cache = this._instanceCache.cache = this.createCache(this._instanceCache._storeWrapper);\n        {\n          cache = new SingletonCacheManager(cache);\n        }\n      }\n      return cache;\n    }\n\n    /**\n     * [DEPRECATED] use Store.createCache\n     *\n     * Instantiation hook allowing applications or addons to configure the store\n     * to utilize a custom RecordData implementation.\n     *\n     * @method createRecordDataFor (hook)\n     * @deprecated\n     * @public\n     * @param identifier\n     * @param storeWrapper\n     * @returns {Cache}\n     */\n\n    /**\n      `normalize` converts a json payload into the normalized form that\n      [push](../methods/push?anchor=push) expects.\n       Example\n       ```js\n      socket.on('message', function(message) {\n        let modelName = message.model;\n        let data = message.data;\n        store.push(store.normalize(modelName, data));\n      });\n      ```\n       @method normalize\n      @public\n      @param {String} modelName The name of the model type for this payload\n      @param {Object} payload\n      @return {Object} The normalized payload\n    */\n    // TODO @runspired @deprecate users should call normalize on the associated serializer directly\n    normalize(modelName, payload) {\n      {\n        assertDestroyingStore(this, 'normalize');\n      }\n      (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's normalize method`, modelName));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${typeof modelName}`, typeof modelName === 'string'));\n      let normalizedModelName = normalizeModelName$1(modelName);\n      let serializer = this.serializerFor(normalizedModelName);\n      let model = this.modelFor(normalizedModelName);\n      (true && !(serializer.normalize) && (0, _debug.assert)(`You must define a normalize method in your serializer in order to call store.normalize`, serializer === null || serializer === void 0 ? void 0 : serializer.normalize));\n      return serializer.normalize(model, payload);\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      the adapter located at `app/adapters/person.js`\n       If no `person` adapter is found, this method will look\n      for an `application` adapter (the default adapter for\n      your entire application).\n       @method adapterFor\n      @public\n      @param {String} modelName\n      @return Adapter\n    */\n    adapterFor(modelName) {\n      {\n        assertDestroyingStore(this, 'adapterFor');\n      }\n      (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's adapterFor method`, modelName));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store.adapterFor has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      let normalizedModelName = normalizeModelName$1(modelName);\n      let {\n        _adapterCache\n      } = this;\n      let adapter = _adapterCache[normalizedModelName];\n      if (adapter) {\n        return adapter;\n      }\n      let owner = (0, _application.getOwner)(this);\n\n      // name specific adapter\n      adapter = owner.lookup(`adapter:${normalizedModelName}`);\n      if (adapter !== undefined) {\n        _adapterCache[normalizedModelName] = adapter;\n        return adapter;\n      }\n\n      // no adapter found for the specific name, fallback and check for application adapter\n      adapter = _adapterCache.application || owner.lookup('adapter:application');\n      if (adapter !== undefined) {\n        _adapterCache[normalizedModelName] = adapter;\n        _adapterCache.application = adapter;\n        return adapter;\n      }\n      {\n        // final fallback, no model specific adapter, no application adapter, no\n        // `adapter` property on store: use json-api adapter\n        adapter = _adapterCache['-json-api'] || owner.lookup('adapter:-json-api');\n        if (adapter !== undefined) {\n          (true && !(false) && (0, _debug.deprecate)(`Your application is utilizing a deprecated hidden fallback adapter (-json-api). Please implement an application adapter to function as your fallback.`, false, {\n            id: 'ember-data:deprecate-secret-adapter-fallback',\n            for: 'ember-data',\n            until: '5.0',\n            since: {\n              available: '4.5',\n              enabled: '4.5'\n            }\n          }));\n          _adapterCache[normalizedModelName] = adapter;\n          _adapterCache['-json-api'] = adapter;\n          return adapter;\n        }\n      }\n      (true && !(false) && (0, _debug.assert)(`No adapter was found for '${modelName}' and no 'application' adapter was found as a fallback.`));\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 a serializer cannot be found on the adapter, it will fall back\n      to an instance of `JSONSerializer`.\n       @method serializerFor\n      @public\n      @param {String} modelName the record to serialize\n      @return {Serializer}\n    */\n    serializerFor(modelName) {\n      {\n        assertDestroyingStore(this, 'serializerFor');\n      }\n      (true && !(modelName) && (0, _debug.assert)(`You need to pass a model name to the store's serializerFor method`, modelName));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store.serializerFor has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      let normalizedModelName = normalizeModelName$1(modelName);\n      let {\n        _serializerCache\n      } = this;\n      let serializer = _serializerCache[normalizedModelName];\n      if (serializer) {\n        return serializer;\n      }\n      let owner = (0, _application.getOwner)(this);\n\n      // by name\n      serializer = owner.lookup(`serializer:${normalizedModelName}`);\n      if (serializer !== undefined) {\n        _serializerCache[normalizedModelName] = serializer;\n        return serializer;\n      }\n\n      // no serializer found for the specific model, fallback and check for application serializer\n      serializer = _serializerCache.application || owner.lookup('serializer:application');\n      if (serializer !== undefined) {\n        _serializerCache[normalizedModelName] = serializer;\n        _serializerCache.application = serializer;\n        return serializer;\n      }\n      return null;\n    }\n\n    // @ts-expect-error\n    destroy() {\n      if (this.isDestroyed) {\n        // @ember/test-helpers will call destroy multiple times\n        return;\n      }\n      this.isDestroying = true;\n      // enqueue destruction of any adapters/serializers we have created\n      for (let adapterName in this._adapterCache) {\n        let adapter = this._adapterCache[adapterName];\n        if (typeof adapter.destroy === 'function') {\n          adapter.destroy();\n        }\n      }\n      for (let serializerName in this._serializerCache) {\n        let serializer = this._serializerCache[serializerName];\n        if (typeof serializer.destroy === 'function') {\n          serializer.destroy();\n        }\n      }\n      {\n        const peekGraph = (0, _esCompat.default)(require(\"@ember-data/graph/-private\")).peekGraph;\n        let graph = peekGraph(this);\n        if (graph) {\n          graph.destroy();\n        }\n      }\n      this.notifications.destroy();\n      this.recordArrayManager.destroy();\n      this.identifierCache.destroy();\n      this.unloadAll();\n      this.isDestroyed = true;\n    }\n    static create(args) {\n      return new this(args);\n    }\n  }\n  _exports.S = Store;\n  let assertDestroyingStore;\n  let assertDestroyedStoreOnly;\n  {\n    assertDestroyingStore = function assertDestroyedStore(store, method) {\n      (true && !(!(store.isDestroying || store.isDestroyed)) && (0, _debug.assert)(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed)));\n    };\n    assertDestroyedStoreOnly = function assertDestroyedStoreOnly(store, method) {\n      (true && !(!store.isDestroyed) && (0, _debug.assert)(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed));\n    };\n  }\n  function isMaybeIdentifier(maybeIdentifier) {\n    return Boolean(maybeIdentifier !== null && typeof maybeIdentifier === 'object' && ('id' in maybeIdentifier && 'type' in maybeIdentifier && maybeIdentifier.id && maybeIdentifier.type || maybeIdentifier.lid));\n  }\n  function isDSModel(record) {\n    return !!record && 'constructor' in record && 'isModel' in record.constructor && record.constructor.isModel === true;\n  }\n  function normalizeProperties(store, identifier, properties) {\n    let isForV1 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n    // assert here\n    if (properties !== undefined) {\n      if ('id' in properties) {\n        (true && !(properties.id !== undefined) && (0, _debug.assert)(`expected id to be a string or null`, properties.id !== undefined));\n      }\n      (true && !(typeof properties === 'object' && properties !== null) && (0, _debug.assert)(`You passed '${typeof properties}' as properties for record creation instead of an object.`, typeof properties === 'object' && properties !== null));\n      const {\n        type\n      } = identifier;\n\n      // convert relationship Records to RecordDatas before passing to RecordData\n      let defs = store.getSchemaDefinitionService().relationshipsDefinitionFor({\n        type\n      });\n      if (defs !== null) {\n        let keys = Object.keys(properties);\n        let relationshipValue;\n        for (let i = 0; i < keys.length; i++) {\n          let prop = keys[i];\n          let def = defs[prop];\n          if (def !== undefined) {\n            if (def.kind === 'hasMany') {\n              {\n                assertRecordsPassedToHasMany(properties[prop]);\n              }\n              relationshipValue = extractIdentifiersFromRecords(properties[prop], isForV1);\n            } else {\n              relationshipValue = extractIdentifierFromRecord(properties[prop], isForV1);\n            }\n            properties[prop] = relationshipValue;\n          }\n        }\n      }\n    }\n    return properties;\n  }\n  function assertRecordsPassedToHasMany(records) {\n    (true && !(Array.isArray(records)) && (0, _debug.assert)(`You must pass an array of records to set a hasMany relationship`, Array.isArray(records)));\n    (true && !(function () {\n      return records.every(record => {\n        try {\n          recordIdentifierFor(record);\n          return true;\n        } catch {\n          return false;\n        }\n      });\n    }()) && (0, _debug.assert)(`All elements of a hasMany relationship must be instances of Model, you passed ${records.map(r => `${typeof r}`).join(', ')}`, function () {\n      return records.every(record => {\n        try {\n          recordIdentifierFor(record);\n          return true;\n        } catch {\n          return false;\n        }\n      });\n    }()));\n  }\n  function extractIdentifiersFromRecords(records) {\n    let isForV1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n    return records.map(record => extractIdentifierFromRecord(record, isForV1));\n  }\n  function extractIdentifierFromRecord(recordOrPromiseRecord) {\n    let isForV1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n    if (!recordOrPromiseRecord) {\n      return null;\n    }\n    const extract = isForV1 ? peekCache : recordIdentifierFor;\n    {\n      if (isPromiseRecord(recordOrPromiseRecord)) {\n        let content = recordOrPromiseRecord.content;\n        (true && !(content !== undefined) && (0, _debug.assert)('You passed in a promise that did not originate from an EmberData relationship. You can only pass promises that come from a belongsTo or hasMany relationship to the get call.', content !== undefined));\n        (true && !(false) && (0, _debug.deprecate)(`You passed in a PromiseProxy to a Relationship API that now expects a resolved value. await the value before setting it.`, false, {\n          id: 'ember-data:deprecate-promise-proxies',\n          until: '5.0',\n          since: {\n            enabled: '4.7',\n            available: '4.7'\n          },\n          for: 'ember-data'\n        }));\n        return content ? extract(content) : null;\n      }\n    }\n    return extract(recordOrPromiseRecord);\n  }\n  function isPromiseRecord(record) {\n    return !!record.then;\n  }\n  function secretInit(record, cache, identifier, store) {\n    setRecordIdentifier(record, identifier);\n    StoreMap.set(record, store);\n    setCacheFor(record, cache);\n  }\n  function normalizeModelName(modelName) {\n    {\n      (true && !(false) && (0, _debug.deprecate)(`the helper function normalizeModelName is deprecated. You should use model names that are already normalized, or use string helpers of your own. This function is primarily an alias for dasherize from @ember/string.`, false, {\n        id: 'ember-data:deprecate-normalize-modelname-helper',\n        for: 'ember-data',\n        until: '5.0',\n        since: {\n          available: '4.7',\n          enabled: '4.7'\n        }\n      }));\n      return normalizeModelName$1(modelName);\n    }\n    (true && !(false) && (0, _debug.assert)(`normalizeModelName support has been removed`));\n  }\n});","define(\"@ember-data/store/index\", [\"exports\", \"@ember-data/store/index-cc461d33\"], function (_exports, _indexCc461d) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"CacheHandler\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.C;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.S;\n    }\n  });\n  Object.defineProperty(_exports, \"normalizeModelName\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.n;\n    }\n  });\n  Object.defineProperty(_exports, \"recordIdentifierFor\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.r;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierForgetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.c;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierGenerationMethod\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.a;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierResetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.d;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierUpdateMethod\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.b;\n    }\n  });\n  Object.defineProperty(_exports, \"storeFor\", {\n    enumerable: true,\n    get: function () {\n      return _indexCc461d.s;\n    }\n  });\n});","define(\"@ember-data/tracking/-private\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addToTransaction = addToTransaction;\n  _exports.addTransactionCB = addTransactionCB;\n  _exports.memoTransact = memoTransact;\n  _exports.subscribe = subscribe;\n  _exports.transact = transact;\n  _exports.untracked = untracked;\n  /**\n   * This package provides primitives that allow powerful low-level\n   * adjustments to change tracking notification behaviors.\n   *\n   * Typically you want to use these primitives when you want to divorce\n   * property accesses on EmberData provided objects from the current\n   * tracking context. Typically this sort of thing occurs when serializing\n   * tracked data to send in a request: the data itself is often ancillary\n   * to the thing which triggered the request in the first place and you\n   * would not want to re-trigger the request for any update to the data.\n   *\n   * @module @ember-data/tracking\n   * @main @ember-data/tracking\n   */\n  let TRANSACTION = null;\n  function createTransaction() {\n    let transaction = {\n      cbs: new Set(),\n      props: new Set(),\n      sub: new Set(),\n      parent: null\n    };\n    if (TRANSACTION) {\n      transaction.parent = TRANSACTION;\n    }\n    TRANSACTION = transaction;\n  }\n  function subscribe(obj) {\n    if (TRANSACTION) {\n      TRANSACTION.sub.add(obj);\n    } else {\n      obj.ref;\n    }\n  }\n  function updateRef(obj) {\n    {\n      try {\n        obj.ref = null;\n      } catch (e) {\n        if (e instanceof Error) {\n          if (e.message.includes('You attempted to update `ref` on `Tag`')) {\n            var _e$stack, _e$stack2;\n            e.message = e.message.replace('You attempted to update `ref` on `Tag`',\n            // @ts-expect-error\n            `You attempted to update <${obj._debug_base}>.${obj._debug_prop}` // eslint-disable-line\n            );\n            e.stack = (_e$stack = e.stack) === null || _e$stack === void 0 ? void 0 : _e$stack.replace('You attempted to update `ref` on `Tag`',\n            // @ts-expect-error\n            `You attempted to update <${obj._debug_base}>.${obj._debug_prop}` // eslint-disable-line\n            );\n            const lines = (_e$stack2 = e.stack) === null || _e$stack2 === void 0 ? void 0 : _e$stack2.split(`\\n`);\n            const finalLines = [];\n            let lastFile = null;\n            lines === null || lines === void 0 || lines.forEach(line => {\n              if (line.trim().startsWith('at ')) {\n                // get the last string in the line which contains the code source location\n                const location = line.split(' ').at(-1);\n                // remove the line and char offset info\n\n                if (location.includes(':')) {\n                  const parts = location.split(':');\n                  parts.pop();\n                  parts.pop();\n                  const file = parts.join(':');\n                  if (file !== lastFile) {\n                    lastFile = file;\n                    finalLines.push('');\n                  }\n                }\n                finalLines.push(line);\n              }\n            });\n            const splitstr = '`ref` was first used:';\n            const parts = e.message.split(splitstr);\n            parts.splice(1, 0, `Original Stack\\n=============\\n${finalLines.join(`\\n`)}\\n\\n${splitstr}`);\n            e.message = parts.join('');\n          }\n        }\n        throw e;\n      }\n    }\n  }\n  function flushTransaction() {\n    let transaction = TRANSACTION;\n    TRANSACTION = transaction.parent;\n    transaction.cbs.forEach(cb => {\n      cb();\n    });\n    transaction.props.forEach(obj => {\n      // mark this mutation as part of a transaction\n      obj.t = true;\n      updateRef(obj);\n    });\n    transaction.sub.forEach(obj => {\n      obj.ref;\n    });\n  }\n  async function untrack() {\n    let transaction = TRANSACTION;\n    TRANSACTION = transaction.parent;\n\n    // defer writes\n    await Promise.resolve();\n    transaction.cbs.forEach(cb => {\n      cb();\n    });\n    transaction.props.forEach(obj => {\n      // mark this mutation as part of a transaction\n      obj.t = true;\n      updateRef(obj);\n    });\n  }\n  function addToTransaction(obj) {\n    if (TRANSACTION) {\n      TRANSACTION.props.add(obj);\n    } else {\n      updateRef(obj);\n    }\n  }\n  function addTransactionCB(method) {\n    if (TRANSACTION) {\n      TRANSACTION.cbs.add(method);\n    } else {\n      method();\n    }\n  }\n\n  /**\n   * Run `method` without subscribing to any tracked properties\n   * controlled by EmberData.\n   *\n   * This should rarely be used except by libraries that really\n   * know what they are doing. It is most useful for wrapping\n   * certain kinds of fetch/query logic from within a `Resource`\n   * `hook` or other similar pattern.\n   *\n   * @function untracked\n   * @public\n   * @static\n   * @for @ember-data/tracking\n   * @param method\n   * @returns result of invoking method\n   */\n  function untracked(method) {\n    createTransaction();\n    const ret = method();\n    void untrack();\n    return ret;\n  }\n\n  /**\n   * Run the method, subscribing to any tracked properties\n   * managed by EmberData that were accessed or written during\n   * the method's execution as per-normal but while allowing\n   * interleaving of reads and writes.\n   *\n   * This is useful when for instance you want to perform\n   * a mutation based on existing state that must be read first.\n   *\n   * @function transact\n   * @public\n   * @static\n   * @for @ember-data/tracking\n   * @param method\n   * @returns result of invoking method\n   */\n  function transact(method) {\n    createTransaction();\n    const ret = method();\n    flushTransaction();\n    return ret;\n  }\n\n  /**\n   * A helpful utility for creating a new function that\n   * always runs in a transaction. E.G. this \"memoizes\"\n   * calling `transact(fn)`, currying args as necessary.\n   *\n   * @method memoTransact\n   * @public\n   * @static\n   * @for @ember-data/tracking\n   * @param method\n   * @returns a function that will invoke method in a transaction with any provided args and return its result\n   */\n  function memoTransact(method) {\n    return function () {\n      createTransaction();\n      const ret = method(...arguments);\n      flushTransaction();\n      return ret;\n    };\n  }\n});","define(\"@ember-data/tracking/index\", [\"exports\", \"@ember-data/tracking/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"memoTransact\", {\n    enumerable: true,\n    get: function () {\n      return _private.memoTransact;\n    }\n  });\n  Object.defineProperty(_exports, \"transact\", {\n    enumerable: true,\n    get: function () {\n      return _private.transact;\n    }\n  });\n  Object.defineProperty(_exports, \"untracked\", {\n    enumerable: true,\n    get: function () {\n      return _private.untracked;\n    }\n  });\n});","define(\"@ember-decorators/component/index\", [\"exports\", \"@ember/debug\", \"@ember-decorators/utils/collapse-proto\", \"@ember-decorators/utils/decorator\"], function (_exports, _debug, _collapseProto, _decorator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.tagName = _exports.layout = _exports.classNames = _exports.classNameBindings = _exports.className = _exports.attributeBindings = _exports.attribute = void 0;\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 = _exports.attribute = (0, _decorator.decoratorWithParams)(function (target, key, desc) {\n    let params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n    (true && !(params.length <= 1) && (0, _debug.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')) && (0, _debug.assert)(`The @attribute decorator may only receive strings as parameters. Received: ${params}`, params.every(s => typeof s === 'string')));\n    (0, _collapseProto.default)(target);\n    if (!target.hasOwnProperty('attributeBindings')) {\n      let parentValue = target.attributeBindings;\n      target.attributeBindings = Array.isArray(parentValue) ? parentValue.slice() : [];\n    }\n    let binding = params[0] ? `${key}:${params[0]}` : key;\n    target.attributeBindings.push(binding);\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    return desc;\n  });\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  const className = _exports.className = (0, _decorator.decoratorWithParams)(function (target, key, desc) {\n    let params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n    (true && !(params.length <= 2) && (0, _debug.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')) && (0, _debug.assert)(`The @className decorator may only receive strings as parameters. Received: ${params}`, params.every(s => typeof s === 'string')));\n    (0, _collapseProto.default)(target);\n    if (!target.hasOwnProperty('classNameBindings')) {\n      let parentValue = target.classNameBindings;\n      target.classNameBindings = Array.isArray(parentValue) ? parentValue.slice() : [];\n    }\n    let binding = params.length > 0 ? `${key}:${params.join(':')}` : key;\n    target.classNameBindings.push(binding);\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    return desc;\n  });\n  function concattedPropDecorator(propName) {\n    return (0, _decorator.decoratorWithRequiredParams)((target, propValues) => {\n      (true && !(propValues.reduce((allStrings, name) => allStrings && typeof name === 'string', true)) && (0, _debug.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      if (propName in target.prototype) {\n        let parentValues = target.prototype[propName];\n        propValues.unshift(...parentValues);\n      }\n      target.prototype[propName] = propValues;\n      return target;\n    }, propName);\n  }\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  const classNames = _exports.classNames = concattedPropDecorator('classNames');\n\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  const classNameBindings = _exports.classNameBindings = concattedPropDecorator('classNameBindings');\n\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  const attributeBindings = _exports.attributeBindings = concattedPropDecorator('attributeBindings');\n\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  const tagName = _exports.tagName = (0, _decorator.decoratorWithRequiredParams)((target, params) => {\n    let [tagName] = params;\n    (true && !(params.length === 1) && (0, _debug.assert)(`The @tagName decorator must be provided exactly one argument, received: ${tagName}`, params.length === 1));\n    (true && !(typeof tagName === 'string') && (0, _debug.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  /**\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  const layout = function () {\n    for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n      params[_key] = arguments[_key];\n    }\n    return target => {\n      let [template] = params;\n      (true && !(params.length === 1) && (0, _debug.assert)(`The @layout decorator must be provided exactly one argument, received: ${params.length}`, params.length === 1));\n      (true && !(typeof template !== 'string') && (0, _debug.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') && (0, _debug.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/debug\", \"@ember/object\", \"@ember/object/computed\", \"@ember/object/events\", \"@ember/object/observers\", \"@ember-decorators/utils/decorator\"], function (_exports, _debug, _object, _computed, _events, _observers, _decorator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.unobserves = _exports.on = _exports.off = _exports.observes = void 0;\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 = _exports.observes = (0, _decorator.decoratorWithRequiredParams)((target, key, desc, params) => {\n    (true && !(desc && typeof desc.value === 'function') && (0, _debug.assert)('The @observes decorator must be applied to functions', desc && typeof desc.value === 'function'));\n    (true && !(target instanceof _object.default) && (0, _debug.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 _object.default));\n    for (let path of params) {\n      (0, _computed.expandProperties)(path, expandedPath => {\n        (0, _observers.addObserver)(target, expandedPath, null, key);\n      });\n    }\n    return desc;\n  }, 'observes');\n\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  const unobserves = _exports.unobserves = (0, _decorator.decoratorWithRequiredParams)((target, key, desc, params) => {\n    for (let path of params) {\n      (0, _computed.expandProperties)(path, expandedPath => {\n        (0, _observers.removeObserver)(target, expandedPath, null, key);\n      });\n    }\n    return desc;\n  }, 'unobserves');\n\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  const on = _exports.on = (0, _decorator.decoratorWithRequiredParams)((target, key, desc, params) => {\n    (true && !(desc && typeof desc.value === 'function') && (0, _debug.assert)('The @on decorator must be applied to functions', desc && typeof desc.value === 'function'));\n    for (let eventName of params) {\n      (0, _events.addListener)(target, eventName, null, key);\n    }\n    return desc;\n  }, 'on');\n\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  const off = _exports.off = (0, _decorator.decoratorWithRequiredParams)((target, key, desc, params) => {\n    for (let eventName of params) {\n      (0, _events.removeListener)(target, eventName, null, key);\n    }\n    return desc;\n  }, '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.isDescriptor = isDescriptor;\n  _exports.isFieldDescriptor = isFieldDescriptor;\n  function isClassDescriptor(possibleDesc) {\n    let [target] = possibleDesc;\n    return possibleDesc.length === 1 && typeof target === 'function' && 'prototype' in target && !target.__isComputedDecorator;\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  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  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/debug\", \"@ember-decorators/utils/-private/class-field-descriptor\"], function (_exports, _debug, _classFieldDescriptor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.decoratorWithParams = decoratorWithParams;\n  _exports.decoratorWithRequiredParams = decoratorWithRequiredParams;\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 () {\n      for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n        params[_key] = arguments[_key];\n      }\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 function () {\n          for (var _len2 = arguments.length, desc = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n            desc[_key2] = arguments[_key2];\n          }\n          return fn(...desc, params);\n        };\n      }\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  function decoratorWithRequiredParams(fn, name) {\n    return function () {\n      for (var _len3 = arguments.length, params = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n        params[_key3] = arguments[_key3];\n      }\n      (true && !(!(0, _classFieldDescriptor.isDescriptor)(params) && params.length > 0) && (0, _debug.assert)(`The @${name || fn.name} decorator requires parameters`, !(0, _classFieldDescriptor.isDescriptor)(params) && params.length > 0));\n      return function () {\n        for (var _len4 = arguments.length, desc = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n          desc[_key4] = arguments[_key4];\n        }\n        return fn(...desc, params);\n      };\n    };\n  }\n});","define(\"@ember/render-modifiers/modifiers/did-insert\", [\"exports\", \"@ember/modifier\"], function (_exports, _modifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The `{{did-insert}}` element modifier is activated when an element is\n    inserted into the DOM.\n  \n    In this example, the `fadeIn` function receives the `div` DOM element as its\n    first argument and is executed after the element is inserted into the DOM.\n  \n    ```handlebars\n    <div {{did-insert this.fadeIn}} class=\"alert\">\n      {{yield}}\n    </div>\n    ```\n  \n    ```js\n    export default Component.extend({\n      fadeIn(element) {\n        element.classList.add('fade-in');\n      }\n    });\n    ```\n  \n    By default, the executed function will be unbound. If you would like to access\n    the component context in your function, use the `action` decorator as follows:\n  \n    ```handlebars\n    <div {{did-insert this.incrementCount}}>first</div>\n    <div {{did-insert this.incrementCount}}>second</div>\n  \n    <p>{{this.count}} elements were rendered</p>\n    ```\n  \n    ```js\n    export default Component.extend({\n      count: tracked({ value: 0 }),\n  \n      incrementCount: action(function() {\n        this.count++;\n      })\n    });\n    ```\n  \n    @method did-insert\n    @public\n  */\n  var _default = _exports.default = (0, _modifier.setModifierManager)(() => ({\n    capabilities: (0, _modifier.capabilities)('3.22', {\n      disableAutoTracking: true\n    }),\n    createModifier() {},\n    installModifier(_state, element, _ref) {\n      let {\n        positional: [fn, ...args],\n        named\n      } = _ref;\n      fn(element, args, named);\n    },\n    updateModifier() {},\n    destroyModifier() {}\n  }), class DidInsertModifier {});\n});","define(\"@ember/render-modifiers/modifiers/did-update\", [\"exports\", \"@ember/modifier\", \"@embroider/macros/es-compat2\"], function (_exports, _modifier, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const untrack = function () {\n    {\n      // ember-source@3.27 shipped \"real modules\" by default, so we can just use\n      // importSync to get @glimmer/validator directly\n      return (0, _esCompat.default)(require(\"@glimmer/validator\")).untrack;\n    }\n  }();\n\n  /**\n    The `{{did-update}}` element modifier is activated when any of its arguments\n    are updated. It does not run on initial render.\n  \n    In this example, the `resize` function receives the `textarea` DOM element as its\n    first argument and is executed anytime the `@text` argument changes.\n  \n    ```handlebars\n    <textarea {{did-update this.resize @text}} readonly style=\"padding: 0px;\">\n      {{@text}}\n    </textarea>\n    ```\n  \n    ```js\n    export default Component.extend({\n      resize(element) {\n        element.style.height = `${element.scrollHeight}px`;\n      }\n    });\n    ```\n  \n    In addition to the `element`, both named and positional arguments are passed to the\n    executed function:\n  \n    ```handlebars\n    <div {{did-update this.logArguments @first @second third=@third}} />\n    ```\n  \n    ```js\n    export default Component.extend({\n      logArguments(element, [first, second], { third }) {\n        console.log('element', element);\n        console.log('positional args', first, second);\n        console.log('names args', third);\n      }\n    });\n    ```\n  \n    By default, the executed function will be unbound. If you would like to access\n    the component context in your function, use the `action` decorator as follows:\n  \n    ```handlebars\n    <div {{did-update this.someFunction @someArg} />\n    ```\n  \n    ```js\n    export default Component.extend({\n      someFunction: action(function(element, [someArg]) {\n        // the `this` context will be the component instance\n      })\n    });\n    ```\n  \n    @method did-update\n    @public\n  */\n  var _default = _exports.default = (0, _modifier.setModifierManager)(() => ({\n    capabilities: (0, _modifier.capabilities)('3.22', {\n      disableAutoTracking: false\n    }),\n    createModifier() {\n      return {\n        element: null\n      };\n    },\n    installModifier(state, element, args) {\n      // save element into state bucket\n      state.element = element;\n      {\n        // Consume individual properties to entangle tracking.\n        // https://github.com/emberjs/ember.js/issues/19277\n        // https://github.com/ember-modifier/ember-modifier/pull/63#issuecomment-815908201\n        args.positional.forEach(() => {});\n        args.named && Object.values(args.named);\n      }\n    },\n    updateModifier(_ref, args) {\n      let {\n        element\n      } = _ref;\n      let [fn, ...positional] = args.positional;\n      {\n        // Consume individual properties to entangle tracking.\n        // https://github.com/emberjs/ember.js/issues/19277\n        // https://github.com/ember-modifier/ember-modifier/pull/63#issuecomment-815908201\n        args.positional.forEach(() => {});\n        args.named && Object.values(args.named);\n        untrack(() => {\n          fn(element, positional, args.named);\n        });\n      }\n    },\n    destroyModifier() {}\n  }), class DidUpdateModifier {});\n});","define(\"@ember/render-modifiers/modifiers/will-destroy\", [\"exports\", \"@ember/modifier\"], function (_exports, _modifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The `{{will-destroy}}` element modifier is activated immediately before the element\n    is removed from the DOM.\n  \n    ```handlebars\n    <div {{will-destroy this.teardownPlugin}}>\n      {{yield}}\n    </div>\n    ```\n  \n    ```js\n    export default Component.extend({\n      teardownPlugin(element) {\n        // teardown logic here\n      }\n    });\n    ```\n  \n    By default, the executed function will be unbound. If you would like to access\n    the component context in your function, use the `action` decorator as follows:\n  \n    ```handlebars\n    <div {{will-destroy this.teardownPlugin}}>\n      {{yield}}\n    </div>\n    ```\n  \n    ```js\n    export default Component.extend({\n      teardownPlugin: action(function(element) {\n        // the `this` context will be the component instance\n      })\n    });\n    ```\n  \n    @method will-destroy\n    @public\n  */\n  var _default = _exports.default = (0, _modifier.setModifierManager)(() => ({\n    capabilities: (0, _modifier.capabilities)('3.22', {\n      disableAutoTracking: true\n    }),\n    createModifier() {\n      return {\n        element: null\n      };\n    },\n    installModifier(state, element) {\n      state.element = element;\n    },\n    updateModifier() {},\n    destroyModifier(_ref, args) {\n      let {\n        element\n      } = _ref;\n      let [fn, ...positional] = args.positional;\n      fn(element, positional, args.named);\n    }\n  }), class WillDestroyModifier {});\n});","define(\"@ember/test-waiters/build-waiter\", [\"exports\", \"@ember/debug\", \"@ember/test-waiters/token\", \"@ember/test-waiters/waiter-manager\"], function (_exports, _debug, _token, _waiterManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports._resetWaiterNames = _resetWaiterNames;\n  _exports.default = buildWaiter;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const WAITER_NAME_PATTERN = /^[^:]*:?.*/;\n  let WAITER_NAMES = true /* DEBUG */ ? new Set() : undefined;\n  function _resetWaiterNames() {\n    WAITER_NAMES = new Set();\n  }\n  function getNextToken() {\n    return new _token.default();\n  }\n  class TestWaiterImpl {\n    constructor(name, nextToken) {\n      _defineProperty(this, \"isRegistered\", false);\n      _defineProperty(this, \"items\", new Map());\n      _defineProperty(this, \"completedOperationsForTokens\", new WeakMap());\n      _defineProperty(this, \"completedOperationsForPrimitives\", new Map());\n      this.name = name; // @ts-ignore\n\n      this.nextToken = nextToken || getNextToken;\n    }\n    beginAsync() {\n      let token = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.nextToken();\n      let label = arguments.length > 1 ? arguments[1] : undefined;\n      this._register();\n      if (this.items.has(token)) {\n        throw new Error(`beginAsync called for ${token} but it is already pending.`);\n      }\n      let error = new Error();\n      this.items.set(token, {\n        get stack() {\n          return error.stack;\n        },\n        label\n      });\n      return token;\n    }\n    endAsync(token) {\n      if (!this.items.has(token) && !this._getCompletedOperations(token).has(token)) {\n        throw new Error(`testWaiter.endAsync called with no preceding testWaiter.beginAsync call.\n        Test waiter calls should always be paired. This can occur when a test waiter's paired calls are invoked in a non-deterministic order.\n\n        See https://github.com/emberjs/ember-test-waiters#keep-beginasyncendasync-in-same-block-scope for more information.`);\n      }\n      this.items.delete(token); // Mark when a waiter operation has completed so we can distinguish\n      // whether endAsync is being called before a prior beginAsync call above.\n\n      this._getCompletedOperations(token).set(token, true);\n    }\n    waitUntil() {\n      return this.items.size === 0;\n    }\n    debugInfo() {\n      let result = [];\n      this.items.forEach(value => {\n        result.push(value);\n      });\n      return result;\n    }\n    reset() {\n      this.items.clear();\n    }\n    _register() {\n      if (!this.isRegistered) {\n        (0, _waiterManager.register)(this);\n        this.isRegistered = true;\n      }\n    }\n    _getCompletedOperations(token) {\n      let type = typeof token;\n      let isFunction = type === 'function';\n      let isObject = token !== null && type === 'object';\n      let isPrimitive = !isFunction && !isObject;\n      return isPrimitive ? this.completedOperationsForPrimitives : this.completedOperationsForTokens;\n    }\n  }\n  class NoopTestWaiter {\n    constructor(name) {\n      this.name = name;\n    }\n    beginAsync() {\n      return this;\n    }\n    endAsync() {}\n    waitUntil() {\n      return true;\n    }\n    debugInfo() {\n      return [];\n    }\n    reset() {}\n  }\n  /**\n   * Builds and returns a test waiter. The type of the\n   * returned waiter is dependent on whether the app or\n   * addon is in `DEBUG` mode or not.\n   *\n   * @public\n   *\n   * @param name {string} The name of the test waiter\n   * @returns {TestWaiter}\n   *\n   * @example\n   *\n   * import Component from '@ember/component';\n   * import { buildWaiter } from '@ember/test-waiters';\n   *\n   * if (DEBUG) {\n   *   let waiter = buildWaiter('friend-waiter');\n   * }\n   *\n   * export default class Friendz extends Component {\n   *   didInsertElement() {\n   *     let token = waiter.beginAsync(this);\n   *\n   *     someAsyncWork().then(() => {\n   *       waiter.endAsync(token);\n   *     });\n   *   }\n   * }\n   */\n\n  function buildWaiter(name) {\n    if (true /* DEBUG */) {\n      (true && (0, _debug.warn)(`The waiter name '${name}' is already in use`, !WAITER_NAMES.has(name), {\n        id: '@ember/test-waiters.duplicate-waiter-name'\n      }));\n      WAITER_NAMES.add(name);\n    }\n    if (!true /* DEBUG */) {\n      return new NoopTestWaiter(name);\n    } else {\n      (true && (0, _debug.warn)(`You must provide a name that contains a descriptive prefix separated by a colon.\n\n        Example: ember-fictitious-addon:some-file\n\n        You passed: ${name}`, WAITER_NAME_PATTERN.test(name), {\n        id: '@ember/test-waiters.invalid-waiter-name'\n      }));\n      return new TestWaiterImpl(name);\n    }\n  }\n});","define(\"@ember/test-waiters/index\", [\"exports\", \"@ember/test-waiters/waiter-manager\", \"@ember/test-waiters/build-waiter\", \"@ember/test-waiters/wait-for-promise\", \"@ember/test-waiters/wait-for\"], function (_exports, _waiterManager, _buildWaiter, _waitForPromise, _waitFor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"_reset\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager._reset;\n    }\n  });\n  Object.defineProperty(_exports, \"_resetWaiterNames\", {\n    enumerable: true,\n    get: function () {\n      return _buildWaiter._resetWaiterNames;\n    }\n  });\n  Object.defineProperty(_exports, \"buildWaiter\", {\n    enumerable: true,\n    get: function () {\n      return _buildWaiter.default;\n    }\n  });\n  Object.defineProperty(_exports, \"getPendingWaiterState\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getPendingWaiterState;\n    }\n  });\n  Object.defineProperty(_exports, \"getWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"hasPendingWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.hasPendingWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"register\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.register;\n    }\n  });\n  Object.defineProperty(_exports, \"unregister\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.unregister;\n    }\n  });\n  Object.defineProperty(_exports, \"waitFor\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.default;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForPromise\", {\n    enumerable: true,\n    get: function () {\n      return _waitForPromise.default;\n    }\n  });\n});","define(\"@ember/test-waiters/token\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * A class representing a test waiter token.\n   *\n   * @public\n   * @class\n   */\n  class Token {}\n  _exports.default = Token;\n});","define(\"@ember/test-waiters/types/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n});","define(\"@ember/test-waiters/wait-for-promise\", [\"exports\", \"@ember/test-waiters/build-waiter\"], function (_exports, _buildWaiter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = waitForPromise;\n  const PROMISE_WAITER = (0, _buildWaiter.default)('@ember/test-waiters:promise-waiter');\n  /**\n   * A convenient utility function to simplify waiting for a promise.\n   *\n   * @public\n   * @param promise {Promise<T> | RSVP.Promise<T>} The promise to track async operations for\n   * @param label {string} An optional string to identify the promise\n   *\n   * @example\n   *\n   * import Component from '@ember/component';\n   * import { waitForPromise } from '@ember/test-waiters';\n   *\n   * export default class Friendz extends Component {\n   *   didInsertElement() {\n   *     waitForPromise(new Promise(resolve => {\n   *       doSomeWork();\n   *       resolve();\n   *     }));\n   *   }\n   * }\n   */\n\n  function waitForPromise(promise, label) {\n    let result = promise;\n    if (true /* DEBUG */) {\n      PROMISE_WAITER.beginAsync(promise, label);\n      result = promise.then(value => {\n        PROMISE_WAITER.endAsync(promise);\n        return value;\n      }, error => {\n        PROMISE_WAITER.endAsync(promise);\n        throw error;\n      });\n    }\n    return result;\n  }\n});","define(\"@ember/test-waiters/wait-for\", [\"exports\", \"@ember/test-waiters/wait-for-promise\", \"@ember/test-waiters/build-waiter\"], function (_exports, _waitForPromise, _buildWaiter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = waitFor;\n  function waitFor() {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    let isFunction = args.length < 3;\n    if (isFunction) {\n      let [fn, label] = args;\n      return wrapFunction(fn, label);\n    } else {\n      let [,, descriptor, label] = args;\n      if (!true /* DEBUG */) {\n        return descriptor;\n      }\n      let fn = descriptor.value;\n      descriptor.value = wrapFunction(fn, label);\n      return descriptor;\n    }\n  }\n  function wrapFunction(fn, label) {\n    if (!true /* DEBUG */) {\n      return fn;\n    }\n    return function () {\n      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n        args[_key2] = arguments[_key2];\n      }\n      let result = fn.call(this, ...args);\n      if (isThenable(result)) {\n        return (0, _waitForPromise.default)(result, label);\n      } else if (isGenerator(result)) {\n        return waitForGenerator(result, label);\n      } else {\n        return result;\n      }\n    };\n  }\n  function isThenable(maybePromise) {\n    let type = typeof maybePromise;\n    return (maybePromise !== null && type === 'object' || type === 'function') && typeof maybePromise.then === 'function';\n  }\n  function isGenerator(maybeGenerator) {\n    // Because we don't have Symbol.iterator in IE11\n    return typeof maybeGenerator.next === 'function' && typeof maybeGenerator.return === 'function' && typeof maybeGenerator.throw === 'function';\n  }\n  const GENERATOR_WAITER = (0, _buildWaiter.default)('@ember/test-waiters:generator-waiter');\n  function waitForGenerator(generator, label) {\n    GENERATOR_WAITER.beginAsync(generator, label);\n    let isWaiting = true;\n    function stopWaiting() {\n      if (isWaiting) {\n        GENERATOR_WAITER.endAsync(generator);\n        isWaiting = false;\n      }\n    }\n    return {\n      next() {\n        let hasErrored = true;\n        try {\n          let val = generator.next(...arguments);\n          hasErrored = false;\n          if (val.done) {\n            stopWaiting();\n          }\n          return val;\n        } finally {\n          // If generator.next() throws, we need to stop waiting. But if we catch\n          // and re-throw exceptions, it could move the location from which the\n          // uncaught exception is thrown, interfering with the developer\n          // debugging experience if they have break-on-exceptions enabled. So we\n          // use a boolean flag and a finally block to emulate a catch block.\n          if (hasErrored) {\n            stopWaiting();\n          }\n        }\n      },\n      return() {\n        stopWaiting();\n        return generator.return(...arguments);\n      },\n      throw() {\n        stopWaiting();\n        return generator.throw(...arguments);\n      }\n    };\n  }\n});","define(\"@ember/test-waiters/waiter-manager\", [\"exports\", \"ember\", \"@ember/test\"], function (_exports, _ember, _test) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports._reset = _reset;\n  _exports.getPendingWaiterState = getPendingWaiterState;\n  _exports.getWaiters = getWaiters;\n  _exports.hasPendingWaiters = hasPendingWaiters;\n  _exports.register = register;\n  _exports.unregister = unregister;\n  // this ensures that if @ember/test-waiters exists in multiple places in the\n  // build output we will still use a single map of waiters (there really should\n  // only be one of them, or else `settled` will not work at all)\n  const WAITERS = function () {\n    const HAS_SYMBOL = typeof Symbol !== 'undefined';\n    let symbolName = 'TEST_WAITERS';\n    let symbol = HAS_SYMBOL ? Symbol.for(symbolName) : symbolName;\n    let global = getGlobal();\n    let waiters = global[symbol];\n    if (waiters === undefined) {\n      waiters = global[symbol] = new Map();\n    }\n    return waiters;\n  }();\n  function indexable(input) {\n    return input;\n  }\n  function getGlobal() {\n    // eslint-disable-next-line node/no-unsupported-features/es-builtins\n    if (typeof globalThis !== 'undefined') return indexable(globalThis);\n    if (typeof self !== 'undefined') return indexable(self);\n    if (typeof window !== 'undefined') return indexable(window);\n    if (typeof global !== 'undefined') return indexable(global);\n    throw new Error('unable to locate global object');\n  }\n  /**\n   * Backwards compatibility with legacy waiters system.\n   *\n   * We want to always register a waiter using the legacy waiter system, as right\n   * now if consumers are not on the right version of @ember/test-helpers, using\n   * this addon will result in none of these waiters waiting.\n   */\n  // eslint-disable-next-line ember/new-module-imports\n\n  if (_ember.default.Test) {\n    (0, _test.registerWaiter)(() => !hasPendingWaiters());\n  }\n  /**\n   * Registers a waiter.\n   *\n   * @public\n   * @param waiter {Waiter} A test waiter instance\n   */\n\n  function register(waiter) {\n    WAITERS.set(waiter.name, waiter);\n  }\n  /**\n   * Un-registers a waiter.\n   *\n   * @public\n   * @param waiter {Waiter} A test waiter instance\n   */\n\n  function unregister(waiter) {\n    WAITERS.delete(waiter.name);\n  }\n  /**\n   * Gets an array of all waiters current registered.\n   *\n   * @public\n   * @returns {Waiter[]}\n   */\n\n  function getWaiters() {\n    let result = [];\n    WAITERS.forEach(value => {\n      result.push(value);\n    });\n    return result;\n  }\n  /**\n   * Clears all waiters.\n   *\n   * @private\n   */\n\n  function _reset() {\n    for (let waiter of getWaiters()) {\n      waiter.isRegistered = false;\n    }\n    WAITERS.clear();\n  }\n  /**\n   * Gets the current state of all waiters. Any waiters whose\n   * `waitUntil` method returns false will be considered `pending`.\n   *\n   * @returns {PendingWaiterState} An object containing a count of all waiters\n   * pending and a `waiters` object containing the name of all pending waiters\n   * and their debug info.\n   */\n\n  function getPendingWaiterState() {\n    let result = {\n      pending: 0,\n      waiters: {}\n    };\n    WAITERS.forEach(waiter => {\n      if (!waiter.waitUntil()) {\n        result.pending++;\n        let debugInfo = waiter.debugInfo();\n        result.waiters[waiter.name] = debugInfo || true;\n      }\n    });\n    return result;\n  }\n  /**\n   * Determines if there are any pending waiters.\n   *\n   * @returns {boolean} `true` if there are pending waiters, otherwise `false`.\n   */\n\n  function hasPendingWaiters() {\n    let state = getPendingWaiterState();\n    return state.pending > 0;\n  }\n});","define(\"@embroider/macros/es-compat2\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = esCompat;\n  function esCompat(m) {\n    return m !== null && m !== void 0 && m.__esModule ? m : {\n      default: m,\n      ...m\n    };\n  }\n});","define(\"@embroider/macros/runtime\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.config = config;\n  _exports.each = each;\n  _exports.getGlobalConfig = getGlobalConfig;\n  _exports.isTesting = isTesting;\n  _exports.macroCondition = macroCondition;\n  /*\n    These are the runtime implementations for the javascript macros that have\n    runtime implementations.\n  \n    Not every macro has a runtime implementation, some only make sense in the\n    build and always run there.\n  \n    Even when we have runtime implementations, we are still careful to emit static\n    errors during the build wherever possible, and runtime errors when necessary,\n    so that you're not surprised when you switch from runtime-mode to compile-time\n    mode.\n  */\n\n  /*\n    CAUTION: in classic builds, this file gets shared by all present copies of\n    @embroider/macros. If you want to change its public API, you need to rename it\n    and update `pathToRuntime` in ../babel/state.ts to point at it, so that your\n    babel plugin and runtime will match.\n  */\n\n  function each(array) {\n    if (!Array.isArray(array)) {\n      throw new Error(`the argument to the each() macro must be an array`);\n    }\n    return array;\n  }\n  function macroCondition(predicate) {\n    return predicate;\n  }\n\n  // This is here as a compile target for `getConfig` and `getOwnConfig` when\n  // we're in runtime mode. This is not public API to call from your own code.\n  function config(packageRoot) {\n    return runtimeConfig.packages[packageRoot];\n  }\n  function getGlobalConfig() {\n    return runtimeConfig.global;\n  }\n  function isTesting() {\n    let g = runtimeConfig.global;\n    let e = g && g['@embroider/macros'];\n    return Boolean(e && e.isTesting);\n  }\n  const runtimeConfig = initializeRuntimeMacrosConfig();\n\n  // this exists to be targeted by our babel plugin\n  function initializeRuntimeMacrosConfig() {\n    return {\n      \"packages\": {\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+adapter@4.12.8_@ember-data+store@4.12.8_@ember+string@4.0.1_@glint+template@1.5.2_zwkt2p2sxzpcdvvb4uopzhi3h4/node_modules/@ember-data/adapter\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": true,\n            \"HAS_MODEL_PACKAGE\": false,\n            \"HAS_JSON_API_PACKAGE\": false,\n            \"HAS_GRAPH_PACKAGE\": false,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": false,\n            \"HAS_TRACKING_PACKAGE\": false,\n            \"HAS_ADAPTER_PACKAGE\": true,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+legacy-compat@4.12.8_@ember-data+graph@4.12.8_@ember-data+json-api@4.12.8_@ember+_tsaxjvc4apiu2gr2ts7ie5lxry/node_modules/@ember-data/legacy-compat\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": false,\n            \"HAS_MODEL_PACKAGE\": false,\n            \"HAS_JSON_API_PACKAGE\": true,\n            \"HAS_GRAPH_PACKAGE\": true,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": true,\n            \"HAS_TRACKING_PACKAGE\": false,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+model@4.12.8_@babel+core@7.29.7_@ember-data+debug@4.12.8_@ember-data+graph@4.12.8_qdxpfekwgzdrg6rgtfs5jivyoe/node_modules/@ember-data/model\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": true,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": true,\n            \"HAS_MODEL_PACKAGE\": true,\n            \"HAS_JSON_API_PACKAGE\": true,\n            \"HAS_GRAPH_PACKAGE\": true,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": true,\n            \"HAS_TRACKING_PACKAGE\": true,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+request@4.12.8_@glint+template@1.5.2/node_modules/@ember-data/request\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": false,\n            \"HAS_MODEL_PACKAGE\": false,\n            \"HAS_JSON_API_PACKAGE\": false,\n            \"HAS_GRAPH_PACKAGE\": false,\n            \"HAS_REQUEST_PACKAGE\": true,\n            \"HAS_COMPAT_PACKAGE\": false,\n            \"HAS_TRACKING_PACKAGE\": false,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+serializer@4.12.8_@ember-data+store@4.12.8_@ember+string@4.0.1_@glint+template@1._f6torutbdl3xmkbcd4vk4mjah4/node_modules/@ember-data/serializer\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": true,\n            \"HAS_MODEL_PACKAGE\": false,\n            \"HAS_JSON_API_PACKAGE\": false,\n            \"HAS_GRAPH_PACKAGE\": false,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": false,\n            \"HAS_TRACKING_PACKAGE\": false,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": true\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+store@4.12.8_@babel+core@7.29.7_@ember-data+graph@4.12.8_@ember-data+json-api@4.1_wog74ilabmrrvla7rakjtd5vpi/node_modules/@ember-data/store\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": true,\n            \"HAS_MODEL_PACKAGE\": true,\n            \"HAS_JSON_API_PACKAGE\": true,\n            \"HAS_GRAPH_PACKAGE\": true,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": true,\n            \"HAS_TRACKING_PACKAGE\": true,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          },\n          \"polyfillUUID\": true\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+adapter@4.12.8_@ember-data+store@4.12.8_@ember+string@4.0.1_@glint+template@1.5.2_7slg4keeoxuj32kbedhr2xwh24/node_modules/@ember-data/adapter\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": true,\n            \"HAS_MODEL_PACKAGE\": false,\n            \"HAS_JSON_API_PACKAGE\": false,\n            \"HAS_GRAPH_PACKAGE\": false,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": false,\n            \"HAS_TRACKING_PACKAGE\": false,\n            \"HAS_ADAPTER_PACKAGE\": true,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+debug@4.12.8_@ember-data+store@4.12.8_@ember+string@4.0.1_@glint+template@1.5.2_webpack@5.105.4/node_modules/@ember-data/debug\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": true,\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          },\n          \"includeDataAdapterInProduction\": true\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+graph@4.12.8_@ember-data+store@4.12.8_@glint+template@1.5.2/node_modules/@ember-data/graph\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": true,\n            \"HAS_MODEL_PACKAGE\": false,\n            \"HAS_JSON_API_PACKAGE\": false,\n            \"HAS_GRAPH_PACKAGE\": true,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": false,\n            \"HAS_TRACKING_PACKAGE\": false,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+json-api@4.12.8_@ember-data+graph@4.12.8_@ember-data+store@4.12.8_@glint+template@1.5.2/node_modules/@ember-data/json-api\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": true,\n            \"HAS_MODEL_PACKAGE\": false,\n            \"HAS_JSON_API_PACKAGE\": true,\n            \"HAS_GRAPH_PACKAGE\": true,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": false,\n            \"HAS_TRACKING_PACKAGE\": false,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+model@4.12.8_@babel+core@7.29.7_@ember-data+debug@4.12.8_@ember-data+graph@4.12.8_u3ziglao5mcw4cgq5eugyqgvzy/node_modules/@ember-data/model\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": true,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": true,\n            \"HAS_MODEL_PACKAGE\": true,\n            \"HAS_JSON_API_PACKAGE\": true,\n            \"HAS_GRAPH_PACKAGE\": true,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": true,\n            \"HAS_TRACKING_PACKAGE\": true,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+serializer@4.12.8_@ember-data+store@4.12.8_@ember+string@4.0.1_@glint+template@1._7iuclo6xfwf6atjop6432tozve/node_modules/@ember-data/serializer\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": true,\n            \"HAS_MODEL_PACKAGE\": false,\n            \"HAS_JSON_API_PACKAGE\": false,\n            \"HAS_GRAPH_PACKAGE\": false,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": false,\n            \"HAS_TRACKING_PACKAGE\": false,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": true\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/@ember-data+tracking@4.12.8_@glint+template@1.5.2/node_modules/@ember-data/tracking\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": false,\n          \"packages\": {\n            \"HAS_EMBER_DATA_PACKAGE\": false,\n            \"HAS_STORE_PACKAGE\": false,\n            \"HAS_MODEL_PACKAGE\": false,\n            \"HAS_JSON_API_PACKAGE\": false,\n            \"HAS_GRAPH_PACKAGE\": false,\n            \"HAS_REQUEST_PACKAGE\": false,\n            \"HAS_COMPAT_PACKAGE\": false,\n            \"HAS_TRACKING_PACKAGE\": true,\n            \"HAS_ADAPTER_PACKAGE\": false,\n            \"HAS_SERIALIZER_PACKAGE\": false\n          },\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        },\n        \"/vercel/path0/ui/node_modules/.pnpm/ember-data@4.12.8_@babel+core@7.29.7_@ember+string@4.0.1_@glimmer+tracking@1.1.2_@glint+templ_cta2lnb4vkte4yoi34mvl64qwm/node_modules/ember-data\": {\n          \"compatWith\": null,\n          \"debug\": {\n            \"LOG_PAYLOADS\": false,\n            \"LOG_OPERATIONS\": false,\n            \"LOG_MUTATIONS\": false,\n            \"LOG_NOTIFICATIONS\": false,\n            \"LOG_REQUESTS\": false,\n            \"LOG_REQUEST_STATUS\": false,\n            \"LOG_IDENTIFIERS\": false,\n            \"LOG_GRAPH\": false,\n            \"LOG_INSTANCE_CACHE\": false\n          },\n          \"deprecations\": {\n            \"DEPRECATE_CATCH_ALL\": true,\n            \"DEPRECATE_3_12\": true,\n            \"DEPRECATE_RSVP_PROMISE\": true,\n            \"DEPRECATE_SAVE_PROMISE_ACCESS\": true,\n            \"DEPRECATE_SNAPSHOT_MODEL_CLASS_ACCESS\": true,\n            \"DEPRECATE_STORE_FIND\": true,\n            \"DEPRECATE_HAS_RECORD\": true,\n            \"DEPRECATE_STRING_ARG_SCHEMAS\": true,\n            \"DEPRECATE_JSON_API_FALLBACK\": true,\n            \"DEPRECATE_MODEL_REOPEN\": true,\n            \"DEPRECATE_EARLY_STATIC\": true,\n            \"DEPRECATE_HELPERS\": true,\n            \"DEPRECATE_PROMISE_MANY_ARRAY_BEHAVIORS\": true,\n            \"DEPRECATE_V1CACHE_STORE_APIS\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_TYPE\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_ASYNC\": true,\n            \"DEPRECATE_RELATIONSHIPS_WITHOUT_INVERSE\": true,\n            \"DEPRECATE_V1_RECORD_DATA\": true,\n            \"DEPRECATE_A_USAGE\": true,\n            \"DEPRECATE_PROMISE_PROXIES\": true,\n            \"DEPRECATE_ARRAY_LIKE\": true,\n            \"DEPRECATE_COMPUTED_CHAINS\": true,\n            \"DEPRECATE_NON_EXPLICIT_POLYMORPHISM\": true,\n            \"DEPRECATE_INSTANTIATE_RECORD_ARGS\": true,\n            \"DEPRECATE_MANY_ARRAY_DUPLICATES_4_12\": true\n          },\n          \"features\": {\n            \"SAMPLE_FEATURE_FLAG\": false\n          },\n          \"includeDataAdapter\": true,\n          \"env\": {\n            \"TESTING\": true,\n            \"PRODUCTION\": false,\n            \"DEBUG\": true\n          }\n        }\n      },\n      \"global\": {\n        \"@embroider/macros\": {\n          \"isTesting\": false\n        }\n      }\n    };\n  }\n  function updaterMethods() {\n    return {\n      config,\n      getGlobalConfig,\n      setConfig(packageRoot, value) {\n        runtimeConfig.packages[packageRoot] = value;\n      },\n      setGlobalConfig(key, value) {\n        runtimeConfig.global[key] = value;\n      }\n    };\n  }\n\n  // this is how runtime config can get injected at boot. I'm not sure yet if this\n  // should be public API, but we certainly need it internally to set things like\n  // the global fastboot.isRunning.\n  //\n  // consumers of this API push a function onto\n  // window._embroider_macros_runtime_config. The function is given four methods\n  // which allow it to read and write the per-package and global configs. The\n  // reason for allowing both read & write is that merging strategies are up to\n  // each consumers -- read first, then merge, then write.\n  //\n  // For an example user of this API, see where we generate\n  // embroider_macros_fastboot_init.js' in @embroider/core.\n  let updaters = typeof window !== 'undefined' ? window._embroider_macros_runtime_config : undefined;\n  if (updaters) {\n    let methods = updaterMethods();\n    for (let updater of updaters) {\n      updater(methods);\n    }\n  }\n});","define(\"@embroider/util/ember-private-api\", [\"exports\", \"@embroider/macros/es-compat2\"], function (_exports, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isCurriedComponentDefinition = void 0;\n  _exports.lookupCurriedComponentDefinition = lookupCurriedComponentDefinition;\n  let runtime;\n  {\n    // new enough ember has a real module we can import\n    runtime = (0, _esCompat.default)(require(\"@glimmer/runtime\"));\n  }\n  let {\n    isCurriedComponentDefinition,\n    CurriedComponentDefinition,\n    curry,\n    CurriedValue\n  } = runtime;\n\n  // older embers have isCurriedComponentDefinition, new ones have CurriedValue\n  // and instanceof CurriedValue seems good enough.\n  _exports.isCurriedComponentDefinition = isCurriedComponentDefinition;\n  if (!isCurriedComponentDefinition) {\n    _exports.isCurriedComponentDefinition = isCurriedComponentDefinition = function (value) {\n      return value instanceof CurriedValue;\n    };\n  }\n  function runtimeResolver(owner) {\n    let resolver = owner.lookup('renderer:-dom')._runtimeResolver;\n    if (resolver) {\n      return resolver;\n    }\n    let entry = Object.entries(owner.__container__.cache).find(e => e[0].startsWith('template-compiler:main-'));\n    if (entry) {\n      return entry[1].resolver.resolver;\n    }\n    throw new Error(`@embroider/util couldn't locate the runtime resolver on this ember version`);\n  }\n  function lookupCurriedComponentDefinition(name, owner) {\n    let resolver = runtimeResolver(owner);\n    if (typeof resolver.lookupComponentHandle === 'function') {\n      let handle = resolver.lookupComponentHandle(name, contextForLookup(owner));\n      if (handle != null) {\n        return new CurriedComponentDefinition(resolver.resolve(handle), null);\n      }\n    }\n\n    // here we're doing the same thing the internal currying does, in order to\n    // generate a sane error message (even though we don't actually use\n    // resolvedDefinition as part of our return value).\n    let resolvedDefinition = resolver.lookupComponent(name, owner);\n    if (!resolvedDefinition) {\n      throw new Error(`Attempted to resolve \\`${name}\\` via ensureSafeComponent, but nothing was found.`);\n    }\n    return curry(0, name, owner, {\n      named: {},\n      positional: []\n    });\n  }\n  function contextForLookup(owner) {\n    {\n      return owner;\n    }\n  }\n});","define(\"@embroider/util/index\", [\"exports\", \"@ember/debug\", \"@ember/application\", \"@embroider/util/ember-private-api\", \"@ember/component/helper\"], function (_exports, _debug, _application, _emberPrivateApi, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EnsureSafeComponentHelper = void 0;\n  _exports.ensureSafeComponent = ensureSafeComponent;\n  function ensureSafeComponent(value, thingWithOwner) {\n    if (typeof value === 'string') {\n      return handleString(value, thingWithOwner);\n    } else if ((0, _emberPrivateApi.isCurriedComponentDefinition)(value)) {\n      return value;\n    } else if (value == null) {\n      return value;\n    } else {\n      return handleClass(value, thingWithOwner);\n    }\n  }\n  class EnsureSafeComponentHelper extends _helper.default {\n    compute(_ref) {\n      let [value] = _ref;\n      return ensureSafeComponent(value, this);\n    }\n  }\n  _exports.EnsureSafeComponentHelper = EnsureSafeComponentHelper;\n  function handleString(name, thingWithOwner) {\n    (true && !(false) && (0, _debug.deprecate)(`You're trying to invoke the component \"${name}\" by passing its name as a string. This won't work under Embroider.`, false, {\n      id: 'ensure-safe-component.string',\n      url: 'https://github.com/embroider-build/embroider/blob/main/docs/replacing-component-helper.md#when-youre-passing-a-component-to-someone-else',\n      until: 'embroider',\n      for: '@embroider/util',\n      since: '0.27.0'\n    }));\n    let owner = (0, _application.getOwner)(thingWithOwner);\n    return (0, _emberPrivateApi.lookupCurriedComponentDefinition)(name, owner);\n  }\n  function ensureRegistered(klass, owner) {\n    let service = owner.lookup('service:-ensure-registered');\n    (true && !(service) && (0, _debug.assert)('Could not lookup private -ensure-registered service', service));\n    return service.register(klass, owner);\n  }\n  function handleClass(klass, thingWithOwner) {\n    {\n      return klass;\n    }\n  }\n});","define(\"@embroider/util/services/ensure-registered\", [\"exports\", \"@ember/service\", \"@ember/application\"], function (_exports, _service, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class EnsureRegisteredService extends _service.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"classNonces\", new WeakMap());\n      _defineProperty(this, \"nonceCounter\", 0);\n    }\n    register(klass) {\n      let owner = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _application.getOwner)(this);\n      let nonce = this.classNonces.get(klass);\n      if (nonce == null) {\n        nonce = `-ensure${this.nonceCounter++}`;\n        this.classNonces.set(klass, nonce);\n        owner.register(`component:${nonce}`, klass);\n      }\n      return nonce;\n    }\n  }\n  _exports.default = EnsureRegisteredService;\n});","define(\"@glimmer/component/-private/base-component-manager\", [\"exports\", \"@glimmer/component/-private/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = BaseComponentManager;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  /**\n   * This factory function returns a component manager class with common behavior\n   * that can be extend to add Glimmer.js- or Ember.js-specific functionality. As\n   * these environments converge, the need for two component manager\n   * implementations (and thus this factory) should go away.\n   */\n  function BaseComponentManager(setOwner, getOwner, capabilities) {\n    return class {\n      static create(attrs) {\n        let owner = getOwner(attrs);\n        return new this(owner);\n      }\n      constructor(owner) {\n        _defineProperty(this, \"capabilities\", capabilities);\n        setOwner(this, owner);\n      }\n      createComponent(ComponentClass, args) {\n        if (true /* DEBUG */) {\n          _component.ARGS_SET.set(args.named, true);\n        }\n        return new ComponentClass(getOwner(this), args.named);\n      }\n      getContext(component) {\n        return component;\n      }\n    };\n  }\n});","define(\"@glimmer/component/-private/component\", [\"exports\", \"@glimmer/component/-private/owner\", \"@glimmer/component/-private/destroyables\"], function (_exports, _owner, _destroyables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ARGS_SET = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  // This provides a type-safe `WeakMap`: the getter and setter link the key to a\n  // specific value. This is how `WeakMap`s actually behave, but the TS type\n  // system does not (yet!) have a good way to capture that for types like\n  // `WeakMap` where the type is generic over another generic type (here, `Args`).\n\n  // SAFETY: this only holds because we *only* acces this when `DEBUG` is `true`.\n  // There is not a great way to connect that data in TS at present.\n  let ARGS_SET = _exports.ARGS_SET = void 0;\n  if (true /* DEBUG */) {\n    _exports.ARGS_SET = ARGS_SET = new WeakMap();\n  }\n\n  // --- Type utilities for component signatures --- //\n  // Type-only \"symbol\" to use with `EmptyObject` below, so that it is *not*\n  // equivalent to an empty interface.\n\n  /**\n   * This provides us a way to have a \"fallback\" which represents an empty object,\n   * without the downsides of how TS treats `{}`. Specifically: this will\n   * correctly leverage \"excess property checking\" so that, given a component\n   * which has no named args, if someone invokes it with any named args, they will\n   * get a type error.\n   *\n   * @internal This is exported so declaration emit works (if it were not emitted,\n   *   declarations which fall back to it would not work). It is *not* intended for\n   *   public usage, and the specific mechanics it uses may change at any time.\n   *   The location of this export *is* part of the public API, because moving it\n   *   will break existing declarations, but is not legal for end users to import\n   *   themselves, so ***DO NOT RELY ON IT***.\n   */\n\n  /** Given a signature `S`, get back the `Args` type. */\n\n  /**\n   * Given any allowed shorthand form of a signature, desugars it to its full\n   * expanded type.\n   *\n   * @internal This is only exported so we can avoid duplicating it in\n   *   [Glint](https://github.com/typed-ember/glint) or other such tooling. It is\n   *   *not* intended for public usage, and the specific mechanics it uses may\n   *   change at any time. Although the signature produced by is part of Glimmer's\n   *   public API the existence and mechanics of this specific symbol are *not*,\n   *   so ***DO NOT RELY ON IT***.\n   */\n  // The conditional type here is because TS applies conditional types\n  // distributively. This means that for union types, checks like `keyof T` get\n  // all the keys from all elements of the union, instead of ending up as `never`\n  // and then always falling into the `Signature` path instead of falling back to\n  // the legacy args handling path.\n\n  /**\n   * @internal we use this type for convenience internally; inference means users\n   *   should not normally need to name it\n   */\n\n  /**\n   * The `Component` class defines an encapsulated UI element that is rendered to\n   * the DOM. A component is made up of a template and, optionally, this component\n   * object.\n   *\n   * ## Defining a Component\n   *\n   * To define a component, subclass `Component` and add your own properties,\n   * methods and lifecycle hooks:\n   *\n   * ```ts\n   * import Component from '@glimmer/component';\n   *\n   * export default class extends Component {\n   * }\n   * ```\n   *\n   * ## Lifecycle Hooks\n   *\n   * Lifecycle hooks allow you to respond to changes to a component, such as when\n   * it gets created, rendered, updated or destroyed. To add a lifecycle hook to a\n   * component, implement the hook as a method on your component subclass.\n   *\n   * For example, to be notified when Glimmer has rendered your component so you\n   * can attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n   *\n   * ```ts\n   * import Component from '@glimmer/component';\n   *\n   * export default class extends Component {\n   *   didInsertElement() {\n   *     $(this.element).pickadate();\n   *   }\n   * }\n   * ```\n   *\n   * ## Data for Templates\n   *\n   * `Component`s have two different kinds of data, or state, that can be\n   * displayed in templates:\n   *\n   * 1. Arguments\n   * 2. Properties\n   *\n   * Arguments are data that is passed in to a component from its parent\n   * component. For example, if I have a `UserGreeting` component, I can pass it\n   * a name and greeting to use:\n   *\n   * ```hbs\n   * <UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n   * ```\n   *\n   * Inside my `UserGreeting` template, I can access the `@name` and `@greeting`\n   * arguments that I've been given:\n   *\n   * ```hbs\n   * {{@greeting}}, {{@name}}!\n   * ```\n   *\n   * Arguments are also available inside my component:\n   *\n   * ```ts\n   * console.log(this.args.greeting); // prints \"Olá\"\n   * ```\n   *\n   * Properties, on the other hand, are internal to the component and declared in\n   * the class. You can use properties to store data that you want to show in the\n   * template, or pass to another component as an argument.\n   *\n   * ```ts\n   * import Component from '@glimmer/component';\n   *\n   * export default class extends Component {\n   *   user = {\n   *     name: 'Robbie'\n   *   }\n   * }\n   * ```\n   *\n   * In the above example, we've defined a component with a `user` property that\n   * contains an object with its own `name` property.\n   *\n   * We can render that property in our template:\n   *\n   * ```hbs\n   * Hello, {{user.name}}!\n   * ```\n   *\n   * We can also take that property and pass it as an argument to the\n   * `UserGreeting` component we defined above:\n   *\n   * ```hbs\n   * <UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n   * ```\n   *\n   * ## Arguments vs. Properties\n   *\n   * Remember, arguments are data that was given to your component by its parent\n   * component, and properties are data your component has defined for itself.\n   *\n   * You can tell the difference between arguments and properties in templates\n   * because arguments always start with an `@` sign (think \"A is for arguments\"):\n   *\n   * ```hbs\n   * {{@firstName}}\n   * ```\n   *\n   * We know that `@firstName` came from the parent component, not the current\n   * component, because it starts with `@` and is therefore an argument.\n   *\n   * On the other hand, if we see:\n   *\n   * ```hbs\n   * {{name}}\n   * ```\n   *\n   * We know that `name` is a property on the component. If we want to know where\n   * the data is coming from, we can go look at our component class to find out.\n   *\n   * Inside the component itself, arguments always show up inside the component's\n   * `args` property. For example, if `{{@firstName}}` is `Tom` in the template,\n   * inside the component `this.args.firstName` would also be `Tom`.\n   */\n  class BaseComponent {\n    /**\n     * Constructs a new component and assigns itself the passed properties. You\n     * should not construct new components yourself. Instead, Glimmer will\n     * instantiate new components automatically as it renders.\n     *\n     * @param owner\n     * @param args\n     */\n    constructor(owner, args) {\n      /**\n       * Named arguments passed to the component from its parent component.\n       * They can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n       *\n       * Say you have the following component, which will have two `args`, `firstName` and `lastName`:\n       *\n       * ```hbs\n       * <my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n       * ```\n       *\n       * If you needed to calculate `fullName` by combining both of them, you would do:\n       *\n       * ```ts\n       * didInsertElement() {\n       *   console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n       * }\n       * ```\n       *\n       * While in the template you could do:\n       *\n       * ```hbs\n       * <p>Welcome, {{@firstName}} {{@lastName}}!</p>\n       * ```\n       */\n      _defineProperty(this, \"args\", void 0);\n      if (true /* DEBUG */ && !(owner !== null && typeof owner === 'object' && ARGS_SET.has(args))) {\n        throw new Error(`You must pass both the owner and args to super() in your component: ${this.constructor.name}. You can pass them directly, or use ...arguments to pass all arguments through.`);\n      }\n      this.args = args;\n      (0, _owner.setOwner)(this, owner);\n    }\n    get isDestroying() {\n      return (0, _destroyables.isDestroying)(this);\n    }\n    get isDestroyed() {\n      return (0, _destroyables.isDestroyed)(this);\n    }\n\n    /**\n     * Called before the component has been removed from the DOM.\n     */\n    willDestroy() {}\n  }\n  _exports.default = BaseComponent;\n});","define(\"@glimmer/component/-private/destroyables\", [\"exports\", \"ember\"], function (_exports, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isDestroying = _exports.isDestroyed = void 0;\n  const isDestroying = _exports.isDestroying = _ember.default._isDestroying;\n  const isDestroyed = _exports.isDestroyed = _ember.default._isDestroyed;\n});","define(\"@glimmer/component/-private/ember-component-manager\", [\"exports\", \"ember\", \"@ember/object\", \"@ember/application\", \"@ember/component\", \"@ember/runloop\", \"@glimmer/component/-private/base-component-manager\", \"@glimmer/component/-private/destroyables\"], function (_exports, _ember, _object, _application, _component, _runloop, _baseComponentManager, destroyables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    setDestroyed,\n    setDestroying\n  } = destroyables;\n  const CAPABILITIES = true // @ts-ignore\n  // @ts-ignore\n  ? (0, _component.capabilities)('3.13', {\n    destructor: true,\n    asyncLifecycleCallbacks: false,\n    updateHook: false\n  }) : (0, _component.capabilities)('3.4', {\n    destructor: true,\n    asyncLifecycleCallbacks: false\n  });\n  const scheduledDestroyComponent = true ? undefined : (component, meta) => {\n    if (component.isDestroyed) {\n      return;\n    }\n    _ember.default.destroy(component);\n    meta.setSourceDestroyed();\n    setDestroyed(component);\n  };\n  const destroy = true ? _ember.default.destroy : component => {\n    if (component.isDestroying) {\n      return;\n    }\n    let meta = _ember.default.meta(component);\n    meta.setSourceDestroying();\n    setDestroying(component);\n    (0, _runloop.schedule)('actions', component, component.willDestroy);\n    (0, _runloop.schedule)('destroy', void 0, scheduledDestroyComponent, component, meta);\n  };\n  const registerDestructor = true ? _ember.default._registerDestructor : true ? _ember.default.__loader.require('@glimmer/runtime').registerDestructor : undefined;\n\n  /**\n   * This component manager runs in Ember.js environments and extends the base component manager to:\n   *\n   * 1. Properly destroy the component's associated `meta` data structure\n   * 2. Schedule destruction using Ember's runloop\n   */\n  class EmberGlimmerComponentManager extends (0, _baseComponentManager.default)(_application.setOwner, _application.getOwner, CAPABILITIES) {\n    createComponent(ComponentClass, args) {\n      const component = super.createComponent(ComponentClass, args);\n      if (true) {\n        registerDestructor(component, () => {\n          component.willDestroy();\n        });\n      }\n      return component;\n    }\n    destroyComponent(component) {\n      destroy(component);\n    }\n  }\n  // In Ember 3.12 and earlier, the updateComponent hook was mandatory.\n  // As of Ember 3.13, the `args` object is stable and each property of the\n  // object participates in the autotrack stack on its own. This means we do not\n  // need to set the `args` property on the component instance to invalidate\n  // tracked getters that rely on `args`, and therefore don't require the `updateComponent`\n  // hook at all.\n  if (!true) {\n    EmberGlimmerComponentManager.prototype.updateComponent = function updateComponent(component, args) {\n      let argSnapshot = args.named;\n      if (true /* DEBUG */) {\n        argSnapshot = Object.freeze(argSnapshot);\n      }\n      (0, _object.set)(component, 'args', argSnapshot);\n    };\n  }\n  var _default = _exports.default = EmberGlimmerComponentManager;\n});","define(\"@glimmer/component/-private/owner\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"setOwner\", {\n    enumerable: true,\n    get: function () {\n      return _application.setOwner;\n    }\n  });\n});","define(\"@glimmer/component/index\", [\"exports\", \"@ember/component\", \"@glimmer/component/-private/ember-component-manager\", \"@glimmer/component/-private/component\"], function (_exports, _component, _emberComponentManager, _component2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // Hax because the old version of `@types/ember__component` the `1.x` branch\n  // uses does not provide any types for `setComponentManager` *and* because we\n  // are using a very old version of `setComponentManager` for versions before\n  // Ember 3.8.\n\n  let GlimmerComponent = _component2.default;\n  if (true /* DEBUG */) {\n    // Add assertions against using Glimmer.js only APIs\n\n    // TODO: Add GlimmerComponent API docs link to these messages once API docs are live\n    function throwMethodUseError(methodName) {\n      throw new Error(`You attempted to define the '${methodName}' method on a Glimmer Component, but that lifecycle hook does not exist in Ember.js applications, it only exists in Glimmer.js apps. You can rename this method, and you can trigger it using a modifier such as {{did-insert}} from '@ember/render-modifiers': https://github.com/emberjs/ember-render-modifiers.`);\n    }\n    function throwPropertyUseError(propertyName) {\n      throw new Error(`You attempted to access the '${propertyName}' property on a Glimmer Component, but that property does not exist in Ember.js applications, it only exists in Glimmer.js apps. You define a class field with the same name on your component class and it will overwrite this error message, but it will not be used by the framework.`);\n    }\n    GlimmerComponent = class GlimmerDebugComponent extends GlimmerComponent {\n      constructor(owner, args) {\n        super(owner, args);\n        if (typeof this['didInsertElement'] === 'function') {\n          throwMethodUseError('didInsertElement');\n        }\n        if (typeof this['didUpdate'] === 'function') {\n          throwMethodUseError('didUpdate');\n        }\n      }\n    };\n    let proto = GlimmerComponent.prototype;\n    function defineErrorProp(proto, key, getterMethod) {\n      Object.defineProperty(proto, key, {\n        get: () => getterMethod(key),\n        set(value) {\n          Object.defineProperty(this, key, {\n            value\n          });\n        }\n      });\n    }\n\n    // Methods should still throw whenever they are accessed\n    defineErrorProp(proto, 'bounds', throwPropertyUseError);\n    defineErrorProp(proto, 'element', throwPropertyUseError);\n    defineErrorProp(proto, 'debugName', throwPropertyUseError);\n  }\n  if (true) {\n    (0, _component.setComponentManager)(owner => {\n      return new _emberComponentManager.default(owner);\n    }, GlimmerComponent);\n  } else {\n    (0, _component.setComponentManager)('glimmer', GlimmerComponent);\n  }\n  var _default = _exports.default = GlimmerComponent;\n});","define(\"@hashicorp/ember-cli-api-double/index\", [\"exports\", \"pretender\", \"@hashicorp/api-double\", \"@hashicorp/api-double/reader/html\", \"merge-options\"], function (_exports, _pretender, _apiDouble, _html, _mergeOptions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"pretender\",0,\"@hashicorp/api-double\",0,\"@hashicorp/api-double/reader/html\",0,\"merge-options\"eaimeta@70e063a35619d71f\n  const defaultGetCookiesFor = function () {\n    let cookies = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.cookie;\n    return function (type, value) {\n      let obj = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      return cookies.split(';').reduce(function (prev, item) {\n        const temp = item.split('=');\n        prev[temp[0].trim()] = temp[1];\n        return prev;\n      }, {});\n    };\n  };\n  const defaultGetShouldMutateCallback = function () {\n    return function () {\n      return function (type) {\n        return function () {\n          return false;\n        };\n      };\n    };\n  };\n  function _default() {\n    let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    let getCookiesFor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultGetCookiesFor();\n    let getShouldMutateCallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultGetShouldMutateCallback();\n    const key = Object.keys(config.endpoints)[0];\n    const path = config.endpoints[key].replace(key, '');\n    const salt = typeof config.salt === 'undefined' ? 12345 : config.salt;\n    const reader = typeof config.reader === 'undefined' ? 'html' : config.reader;\n    let createAPI;\n    if (reader === 'html') {\n      createAPI = (0, _apiDouble.default)(salt, path, _html.default);\n    } else {\n      createAPI = (0, _apiDouble.default)(salt, path);\n    }\n    let api = createAPI();\n    let cookies = {};\n    let history = [];\n    let statuses = {};\n    let bodies = {};\n    const server = new _pretender.default();\n    server.handleRequest = function (request) {\n      const found = Object.keys(config.endpoints).find(function (url) {\n        return request.url.startsWith(url);\n      });\n      if (!found) {\n        request.passthrough();\n      } else {\n        const temp = request.url.split('?');\n        let url = temp[0];\n        let queryParams = {};\n        if (temp[1]) {\n          queryParams = temp[1].split('&').reduce(function (prev, item) {\n            const temp = item.split('=');\n            prev[decodeURIComponent(temp[0])] = decodeURIComponent(temp[1]);\n            return prev;\n          }, queryParams);\n        }\n        history.push(request);\n        const req = {\n          path: url,\n          url: url,\n          query: queryParams,\n          headers: request.requestHeaders,\n          body: request.requestBody,\n          method: request.method,\n          cookies: Object.assign(cookies, getCookiesFor('*'))\n        };\n        let headers = {\n          'Content-Type': 'application/json'\n        };\n        const response = {\n          _status: 200,\n          set: function (_headers) {\n            headers = Object.assign({}, headers, _headers);\n          },\n          send: function (response) {\n            request.respond(statuses[url] || this._status, headers, bodies[url] || response);\n          },\n          status: function (status) {\n            this._status = status;\n            return this;\n          }\n        };\n        api.serve(req, response, function () {});\n      }\n    };\n    return {\n      api: api,\n      server: {\n        history: history,\n        clearHistory: function () {\n          history = [];\n          this.history = history;\n        },\n        clearResponses: function () {\n          statuses = {};\n          bodies = {};\n        },\n        clearCookies: function () {\n          cookies = {};\n        },\n        reset: function () {\n          api = createAPI();\n          this.clearCookies();\n          this.clearResponses();\n          this.clearHistory();\n        },\n        setCookie: function (name, value) {\n          cookies[name] = value;\n        },\n        respondWithStatus: function (url, s) {\n          statuses[url] = s;\n        },\n        respondWith: function (url, response) {\n          statuses[url] = response.status || 200;\n          bodies[url] = response.body || '';\n        },\n        // keep mirage-like interface\n        createList: function (type, num, value) {\n          cookies = Object.assign(cookies, getCookiesFor(type, num));\n          if (typeof value !== 'undefined') {\n            api.mutate(function (response, config) {\n              if (typeof response.map !== 'function') {\n                try {\n                  return (0, _mergeOptions.default)(response, value);\n                } catch (e) {\n                  // unable to merge the objects\n                  return response;\n                }\n              }\n              return response.map((item, i, arr) => {\n                let res = value;\n                if (typeof value === 'object') {\n                  if (value.constructor == Object) {\n                    // res = { ...item, ...value };\n                    if (typeof item === 'string') {\n                      res = value.toString();\n                    } else {\n                      res = (0, _mergeOptions.default)(item, value);\n                    }\n                  } else if (value.constructor == Array) {\n                    // res = { ...item, ...value[i] };\n                    if (value[i]) {\n                      if (typeof value[i] === \"object\") {\n                        res = (0, _mergeOptions.default)(item, value[i]);\n                      } else {\n                        res = value[i];\n                      }\n                    }\n                  }\n                }\n                return res;\n              });\n            }, getShouldMutateCallback(type));\n          }\n        }\n      }\n    };\n  }\n});","define('@html-next/vertical-collection/-private', ['exports', '@ember/object', '@ember/debug', '@ember/object/internals', '@ember/array', '@ember/runloop', 'ember-raf-scheduler'], (function (exports, object, debug, internals, array, runloop, emberRafScheduler) { 'use strict';\n\n  function identity(item) {\n    let key;\n    const type = typeof item;\n    if (type === 'string' || type === 'number') {\n      key = item;\n    } else {\n      key = internals.guidFor(item);\n    }\n    return key;\n  }\n\n  function keyForItem(item, keyPath, index) {\n    let key;\n    (!(typeof keyPath === 'string') && debug.assert(`keyPath must be a string, received: ${keyPath}`, typeof keyPath === 'string'));\n    switch (keyPath) {\n      case '@index':\n        (!(typeof index === 'number') && debug.assert(`A numerical index must be supplied for keyForItem when keyPath is @index, received: ${index}`, typeof index === 'number'));\n        key = index;\n        break;\n      case '@identity':\n        key = identity(item);\n        break;\n      default:\n        key = object.get(item, keyPath);\n    }\n    if (typeof key === 'number') {\n      key = String(key);\n    }\n    return key;\n  }\n\n  const VENDOR_MATCH_FNS = ['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'];\n  let ELEMENT_MATCH_FN;\n  function setElementMatchFn(el) {\n    VENDOR_MATCH_FNS.forEach(fn => {\n      if (ELEMENT_MATCH_FN === undefined && typeof el[fn] === 'function') {\n        ELEMENT_MATCH_FN = fn;\n      }\n    });\n  }\n  function closest(el, selector) {\n    if (ELEMENT_MATCH_FN === undefined) {\n      setElementMatchFn(el);\n    }\n    while (el) {\n      // TODO add explicit test\n      if (el[ELEMENT_MATCH_FN](selector)) {\n        return el;\n      }\n      el = el.parentElement;\n    }\n    return null;\n  }\n\n  var document$1 = window ? window.document : undefined;\n\n  let VC_IDENTITY = 0;\n  class VirtualComponent {\n    constructor(content, index) {\n      if (content === void 0) {\n        content = null;\n      }\n      if (index === void 0) {\n        index = null;\n      }\n      this.id = `VC-${VC_IDENTITY++}`;\n      this.content = content;\n      this.index = index;\n\n      // We check to see if the document exists in Fastboot. Since RAF won't run in\n      // Fastboot, we'll never have to use these text nodes for measurements, so they\n      // can be empty\n      this.upperBound = document$1 !== undefined ? document$1.createTextNode('') : null;\n      this.lowerBound = document$1 !== undefined ? document$1.createTextNode('') : null;\n      this.rendered = false;\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    get realUpperBound() {\n      return this.upperBound;\n    }\n    get realLowerBound() {\n      return this.lowerBound;\n    }\n    getBoundingClientRect() {\n      let {\n        upperBound,\n        lowerBound\n      } = this;\n      let top = Infinity;\n      let bottom = -Infinity;\n      while (upperBound !== lowerBound) {\n        upperBound = upperBound.nextSibling;\n        if (upperBound instanceof Element) {\n          top = Math.min(top, upperBound.getBoundingClientRect().top);\n          bottom = Math.max(bottom, upperBound.getBoundingClientRect().bottom);\n        }\n        {\n          if (upperBound instanceof Element) {\n            continue;\n          }\n          const text = upperBound.textContent;\n          (!(text === '' || text.match(/^\\s+$/)) && debug.assert(`All content inside of vertical-collection must be wrapped in an element. Detected a text node with content: ${text}`, text === '' || text.match(/^\\s+$/)));\n        }\n      }\n      (!(top !== Infinity && bottom !== -Infinity) && debug.assert('Items in a vertical collection require atleast one element in them', top !== Infinity && bottom !== -Infinity));\n      const height = bottom - top;\n      return {\n        top,\n        bottom,\n        height\n      };\n    }\n    recycle(newContent, newIndex) {\n      (!(newContent) && debug.assert(`You cannot set an item's content to undefined`, newContent));\n      if (this.index !== newIndex) {\n        object.set(this, 'index', newIndex);\n      }\n      if (this.content !== newContent) {\n        object.set(this, 'content', newContent);\n      }\n    }\n    destroy() {\n      object.set(this, 'upperBound', null);\n      object.set(this, 'lowerBound', null);\n      object.set(this, 'content', null);\n      object.set(this, 'index', null);\n    }\n  }\n\n  let OC_IDENTITY = 0;\n  class OccludedContent {\n    constructor(tagName) {\n      this.id = `OC-${OC_IDENTITY++}`;\n      this.isOccludedContent = true;\n\n      // We check to see if the document exists in Fastboot. Since RAF won't run in\n      // Fastboot, we'll never have to use these text nodes for measurements, so they\n      // can be empty\n      if (document$1 !== undefined) {\n        this.element = document$1.createElement(tagName);\n        this.element.className += 'occluded-content';\n        this.upperBound = document$1.createTextNode('');\n        this.lowerBound = document$1.createTextNode('');\n      } else {\n        this.element = null;\n      }\n      this.isOccludedContent = true;\n      this.rendered = false;\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    getBoundingClientRect() {\n      if (this.element !== null) {\n        return this.element.getBoundingClientRect();\n      }\n    }\n    addEventListener(event, listener) {\n      if (this.element !== null) {\n        this.element.addEventListener(event, listener);\n      }\n    }\n    removeEventListener(event, listener) {\n      if (this.element !== null) {\n        this.element.removeEventListener(event, listener);\n      }\n    }\n    get realUpperBound() {\n      return this.upperBound;\n    }\n    get realLowerBound() {\n      return this.lowerBound;\n    }\n    get parentNode() {\n      return this.element !== null ? this.element.parentNode : null;\n    }\n    get style() {\n      return this.element !== null ? this.element.style : {};\n    }\n    set innerHTML(value) {\n      if (this.element !== null) {\n        this.element.innerHTML = value;\n      }\n    }\n    destroy() {\n      object.set(this, 'element', null);\n    }\n  }\n\n  function insertRangeBefore(parent, element, firstNode, lastNode) {\n    let nextNode;\n    while (firstNode) {\n      nextNode = firstNode.nextSibling;\n      parent.insertBefore(firstNode, element);\n      if (firstNode === lastNode) {\n        break;\n      }\n      firstNode = nextNode;\n    }\n  }\n\n  function objectAt(arr, index) {\n    (!(Array.isArray(arr) || typeof arr.objectAt === 'function') && debug.assert('arr must be an instance of a Javascript Array or implement `objectAt`', Array.isArray(arr) || typeof arr.objectAt === 'function'));\n    return arr.objectAt ? arr.objectAt(index) : arr[index];\n  }\n\n  function roundTo(number, decimal) {\n    if (decimal === void 0) {\n      decimal = 2;\n    }\n    const exp = Math.pow(10, decimal);\n    return Math.round(number * exp) / exp;\n  }\n\n  function isPrepend(lenDiff, newItems, key, oldFirstKey, oldLastKey) {\n    const newItemsLength = object.get(newItems, 'length');\n    if (lenDiff <= 0 || lenDiff >= newItemsLength || newItemsLength === 0) {\n      return false;\n    }\n    const newFirstKey = keyForItem(objectAt(newItems, lenDiff), key, lenDiff);\n    const newLastKey = keyForItem(objectAt(newItems, newItemsLength - 1), key, newItemsLength - 1);\n    return oldFirstKey === newFirstKey && oldLastKey === newLastKey;\n  }\n  function isAppend(lenDiff, newItems, key, oldFirstKey, oldLastKey) {\n    const newItemsLength = object.get(newItems, 'length');\n    if (lenDiff <= 0 || lenDiff >= newItemsLength || newItemsLength === 0) {\n      return false;\n    }\n    const newFirstKey = keyForItem(objectAt(newItems, 0), key, 0);\n    const newLastKey = keyForItem(objectAt(newItems, newItemsLength - lenDiff - 1), key, newItemsLength - lenDiff - 1);\n    return oldFirstKey === newFirstKey && oldLastKey === newLastKey;\n  }\n\n  let supportsPassive = false;\n  try {\n    let opts = Object.defineProperty({}, 'passive', {\n      get() {\n        supportsPassive = true;\n        return supportsPassive;\n      }\n    });\n    window.addEventListener('test', null, opts);\n  } catch (e) {\n    // do nothing\n  }\n  var SUPPORTS_PASSIVE = supportsPassive;\n\n  const DEFAULT_ARRAY_SIZE = 10;\n  const UNDEFINED_VALUE = Object.create(null);\n  class ScrollHandler {\n    constructor() {\n      this.elements = new Array(DEFAULT_ARRAY_SIZE);\n      this.maxLength = DEFAULT_ARRAY_SIZE;\n      this.length = 0;\n      this.handlers = new Array(DEFAULT_ARRAY_SIZE);\n      this.isPolling = false;\n      this.isUsingPassive = SUPPORTS_PASSIVE;\n    }\n    addScrollHandler(element, handler) {\n      let index = this.elements.indexOf(element);\n      let handlers, cache;\n      if (index === -1) {\n        index = this.length++;\n        if (index === this.maxLength) {\n          this.maxLength *= 2;\n          this.elements.length = this.maxLength;\n          this.handlers.length = this.maxLength;\n        }\n        handlers = [handler];\n        this.elements[index] = element;\n        cache = this.handlers[index] = {\n          top: element.scrollTop,\n          left: element.scrollLeft,\n          handlers\n        };\n        // TODO add explicit test\n        if (SUPPORTS_PASSIVE) {\n          cache.passiveHandler = function () {\n            ScrollHandler.triggerElementHandlers(element, cache);\n          };\n        } else {\n          cache.passiveHandler = UNDEFINED_VALUE;\n        }\n      } else {\n        cache = this.handlers[index];\n        handlers = cache.handlers;\n        handlers.push(handler);\n      }\n\n      // TODO add explicit test\n      if (this.isUsingPassive && handlers.length === 1) {\n        element.addEventListener('scroll', cache.passiveHandler, {\n          capture: true,\n          passive: true\n        });\n\n        // TODO add explicit test\n      } else if (!this.isPolling) {\n        this.poll();\n      }\n    }\n    removeScrollHandler(element, handler) {\n      let index = this.elements.indexOf(element);\n      let elementCache = this.handlers[index];\n      // TODO add explicit test\n      if (elementCache && elementCache.handlers) {\n        let index = elementCache.handlers.indexOf(handler);\n        if (index === -1) {\n          throw new Error('Attempted to remove an unknown handler');\n        }\n        elementCache.handlers.splice(index, 1);\n\n        // cleanup element entirely if needed\n        // TODO add explicit test\n        if (!elementCache.handlers.length) {\n          index = this.elements.indexOf(element);\n          this.handlers.splice(index, 1);\n          this.elements.splice(index, 1);\n          this.length--;\n          this.maxLength--;\n          if (this.length === 0) {\n            this.isPolling = false;\n          }\n\n          // TODO add explicit test\n          if (this.isUsingPassive) {\n            element.removeEventListener('scroll', elementCache.passiveHandler, {\n              capture: true,\n              passive: true\n            });\n          }\n        }\n      } else {\n        throw new Error('Attempted to remove a handler from an unknown element or an element with no handlers');\n      }\n    }\n    static triggerElementHandlers(element, meta) {\n      let cachedTop = element.scrollTop;\n      let cachedLeft = element.scrollLeft;\n      let topChanged = cachedTop !== meta.top;\n      let leftChanged = cachedLeft !== meta.left;\n      meta.top = cachedTop;\n      meta.left = cachedLeft;\n      let event = {\n        top: cachedTop,\n        left: cachedLeft\n      };\n\n      // TODO add explicit test\n      if (topChanged || leftChanged) {\n        runloop.begin();\n        for (let j = 0; j < meta.handlers.length; j++) {\n          meta.handlers[j](event);\n        }\n        runloop.end();\n      }\n    }\n    poll() {\n      this.isPolling = true;\n      emberRafScheduler.scheduler.schedule('sync', () => {\n        // TODO add explicit test\n        if (!this.isPolling) {\n          return;\n        }\n        for (let i = 0; i < this.length; i++) {\n          let element = this.elements[i];\n          let info = this.handlers[i];\n          ScrollHandler.triggerElementHandlers(element, info);\n        }\n        this.isPolling = this.length > 0;\n        // TODO add explicit test\n        if (this.isPolling) {\n          this.poll();\n        }\n      });\n    }\n  }\n  const instance = new ScrollHandler();\n  function addScrollHandler(element, handler) {\n    instance.addScrollHandler(element, handler);\n  }\n  function removeScrollHandler(element, handler) {\n    instance.removeScrollHandler(element, handler);\n  }\n\n  /*\n   * There are significant differences between browsers\n   * in how they implement \"scroll\" on document.body\n   *\n   * The only cross-browser listener for scroll on body\n   * is to listen on window with capture.\n   *\n   * They also implement different standards for how to\n   * access the scroll position.\n   *\n   * This singleton class provides a cross-browser way\n   * to access and set the scrollTop and scrollLeft properties.\n   *\n   */\n  function ViewportContainer() {\n    // A bug occurs in Chrome when we reload the browser at a lower\n    // scrollTop, window.scrollY becomes stuck on a single value.\n    Object.defineProperty(this, 'scrollTop', {\n      get() {\n        return document.body.scrollTop || document.documentElement.scrollTop;\n      },\n      set(v) {\n        document.body.scrollTop = document.documentElement.scrollTop = v;\n      }\n    });\n    Object.defineProperty(this, 'scrollLeft', {\n      get() {\n        return window.scrollX || window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft;\n      },\n      set(v) {\n        window.scrollX = window.pageXOffset = document.body.scrollLeft = document.documentElement.scrollLeft = v;\n      }\n    });\n    Object.defineProperty(this, 'offsetHeight', {\n      get() {\n        return window.innerHeight;\n      }\n    });\n  }\n  ViewportContainer.prototype.addEventListener = function addEventListener(event, handler, options) {\n    return window.addEventListener(event, handler, options);\n  };\n  ViewportContainer.prototype.removeEventListener = function addEventListener(event, handler, options) {\n    return window.removeEventListener(event, handler, options);\n  };\n  ViewportContainer.prototype.getBoundingClientRect = function getBoundingClientRect() {\n    return {\n      height: window.innerHeight,\n      width: window.innerWidth,\n      top: 0,\n      left: 0,\n      right: window.innerWidth,\n      bottom: window.innerHeight\n    };\n  };\n  var ViewportContainer$1 = new ViewportContainer();\n\n  function estimateElementHeight(element, fallbackHeight) {\n    (!(fallbackHeight) && debug.assert(`You called estimateElement height without a fallbackHeight`, fallbackHeight));\n    (!(element) && debug.assert(`You called estimateElementHeight without an element`, element));\n    if (fallbackHeight.indexOf('%') !== -1) {\n      return getPercentageHeight(element, fallbackHeight);\n    }\n    if (fallbackHeight.indexOf('em') !== -1) {\n      return getEmHeight(element, fallbackHeight);\n    }\n    return parseInt(fallbackHeight, 10);\n  }\n  function getPercentageHeight(element, fallbackHeight) {\n    // We use offsetHeight here to get the element's true height, rather than the\n    // bounding rect which may be scaled with transforms\n    let parentHeight = element.offsetHeight;\n    let percent = parseFloat(fallbackHeight);\n    return percent * parentHeight / 100.0;\n  }\n  function getEmHeight(element, fallbackHeight) {\n    const fontSizeElement = fallbackHeight.indexOf('rem') !== -1 ? document.documentElement : element;\n    const fontSize = window.getComputedStyle(fontSizeElement).getPropertyValue('font-size');\n    return parseFloat(fallbackHeight) * parseFloat(fontSize);\n  }\n\n  function getScaledClientRect(element, scale) {\n    const rect = element.getBoundingClientRect();\n    if (scale === 1) {\n      return rect;\n    }\n    const scaled = {};\n    for (let key in rect) {\n      scaled[key] = rect[key] * scale;\n    }\n    return scaled;\n  }\n\n  class Radar {\n    constructor(parentToken, _ref) {\n      let {\n        bufferSize,\n        containerSelector,\n        estimateHeight,\n        initialRenderCount,\n        items,\n        key,\n        renderAll,\n        renderFromLast,\n        shouldRecycle,\n        startingIndex,\n        occlusionTagName\n      } = _ref;\n      this.token = new emberRafScheduler.Token(parentToken);\n\n      // Public API\n      this.bufferSize = bufferSize;\n      this.containerSelector = containerSelector;\n      this.estimateHeight = estimateHeight;\n      this.initialRenderCount = initialRenderCount;\n      this.items = items;\n      this.key = key;\n      this.renderAll = renderAll;\n      this.renderFromLast = renderFromLast;\n      this.shouldRecycle = shouldRecycle;\n      this.startingIndex = startingIndex;\n\n      // defaults to a no-op intentionally, actions will only be sent if they\n      // are passed into the component\n      this.sendAction = () => {};\n\n      // Calculated constants\n      this._itemContainer = null;\n      this._scrollContainer = null;\n      this._prependOffset = 0;\n      this._calculatedEstimateHeight = 0;\n      this._collectionOffset = 0;\n      this._calculatedScrollContainerHeight = 0;\n      this._transformScale = 1;\n\n      // Event handler\n      this._scrollHandler = _ref2 => {\n        let {\n          top\n        } = _ref2;\n        // debounce scheduling updates by checking to make sure we've moved a minimum amount\n        if (this._didEarthquake(Math.abs(this._scrollTop - top))) {\n          this.scheduleUpdate();\n        }\n      };\n      this._resizeHandler = this.scheduleUpdate.bind(this);\n\n      // Run state\n      this._nextUpdate = null;\n      this._nextLayout = null;\n      this._started = false;\n      this._didReset = true;\n      this._didUpdateItems = false;\n\n      // Cache state\n      this._scrollTop = 0;\n\n      // Setting these values to infinity starts us in a guaranteed good state for the radar,\n      // so it knows that it needs to run certain measurements, etc.\n      this._prevFirstItemIndex = Infinity;\n      this._prevLastItemIndex = -Infinity;\n      this._prevFirstVisibleIndex = 0;\n      this._prevLastVisibleIndex = 0;\n      this._firstReached = false;\n      this._lastReached = false;\n      this._prevTotalItems = 0;\n      this._prevFirstKey = 0;\n      this._prevLastKey = 0;\n      this._componentPool = [];\n      this._prependComponentPool = [];\n      this._appendComponentPool = []; // https://github.com/html-next/vertical-collection/issues/296\n\n      // Boundaries\n      this._occludedContentBefore = new OccludedContent(occlusionTagName);\n      this._occludedContentAfter = new OccludedContent(occlusionTagName);\n      this._pageUpHandler = this.pageUp.bind(this);\n      this._occludedContentBefore.addEventListener('click', this._pageUpHandler);\n      this._pageDownHandler = this.pageDown.bind(this);\n      this._occludedContentAfter.addEventListener('click', this._pageDownHandler);\n\n      // Element to hold pooled component DOM when not in use\n      if (document$1) {\n        this._domPool = document$1.createDocumentFragment();\n      }\n\n      // Initialize virtual components\n      this.virtualComponents = array.A([this._occludedContentBefore, this._occludedContentAfter]);\n      this.orderedComponents = [];\n      this._updateVirtualComponents();\n\n      // In older versions of Ember/IE, binding anything on an object in the template\n      // adds observers which creates __ember_meta__\n      this.__ember_meta__ = null; // eslint-disable-line camelcase\n\n      {\n        this._debugDidUpdate = null;\n      }\n    }\n    destroy() {\n      this.token.cancel();\n      for (let i = 0; i < this.orderedComponents.length; i++) {\n        this.orderedComponents[i].destroy();\n      }\n\n      // Boundaries\n      this._occludedContentBefore.removeEventListener('click', this._pageUpHandler);\n      this._occludedContentAfter.removeEventListener('click', this._pageDownHandler);\n      this._occludedContentBefore.destroy();\n      this._occludedContentAfter.destroy();\n      this.orderedComponents = null;\n      object.set(this, 'virtualComponents', null);\n      if (this._started) {\n        removeScrollHandler(this._scrollContainer, this._scrollHandler);\n        ViewportContainer$1.removeEventListener('resize', this._resizeHandler);\n      }\n    }\n    schedule(queueName, job) {\n      return emberRafScheduler.scheduler.schedule(queueName, job, this.token);\n    }\n\n    /**\n     * Start the Radar. Does initial measurements, adds event handlers,\n     * sets up initial scroll state, and\n     */\n    start() {\n      const {\n        startingIndex,\n        containerSelector,\n        _occludedContentBefore\n      } = this;\n\n      // Use the occluded content element, which has been inserted into the DOM,\n      // to find the item container and the scroll container\n      this._itemContainer = _occludedContentBefore.element.parentNode;\n      this._scrollContainer = containerSelector === 'body' ? ViewportContainer$1 : closest(this._itemContainer, containerSelector);\n      this._updateConstants();\n\n      // Setup initial scroll state\n      if (startingIndex !== 0) {\n        const {\n          renderFromLast,\n          _calculatedEstimateHeight,\n          _collectionOffset,\n          _calculatedScrollContainerHeight\n        } = this;\n        let startingScrollTop = startingIndex * _calculatedEstimateHeight;\n        if (renderFromLast) {\n          startingScrollTop -= _calculatedScrollContainerHeight - _calculatedEstimateHeight;\n        }\n\n        // initialize the scrollTop value, which will be applied to the\n        // scrollContainer after the collection has been initialized\n        this._scrollTop = startingScrollTop + _collectionOffset;\n        this._prevFirstVisibleIndex = startingIndex;\n      } else {\n        this._scrollTop = this._scrollContainer.scrollTop;\n      }\n      this._started = true;\n      this.update();\n\n      // Setup event handlers\n      addScrollHandler(this._scrollContainer, this._scrollHandler);\n      ViewportContainer$1.addEventListener('resize', this._resizeHandler);\n    }\n\n    /*\n     * Schedules an update for the next RAF\n     *\n     * This will first run _updateVirtualComponents in the sync phase, which figures out what\n     * components need to be rerendered and updates the appropriate VCs and moves their associated\n     * DOM. At the end of the `sync` phase the runloop is flushed and Glimmer renders the changes.\n     *\n     * By the `affect` phase the Radar should have had time to measure, meaning it has all of the\n     * current info and we can send actions for any changes.\n     *\n     * @private\n     */\n    scheduleUpdate(didUpdateItems, promiseResolve) {\n      if (didUpdateItems === true) {\n        // Set the update items flag first, in case scheduleUpdate has already been called\n        // but the RAF hasn't yet run\n        this._didUpdateItems = true;\n      }\n      if (this._nextUpdate !== null || this._started === false) {\n        return;\n      }\n      this._nextUpdate = this.schedule('sync', () => {\n        this._nextUpdate = null;\n        this._scrollTop = this._scrollContainer.scrollTop;\n        this.update(promiseResolve);\n      });\n    }\n    update(promiseResolve) {\n      if (this._didUpdateItems === true) {\n        this._determineUpdateType();\n        this._didUpdateItems = false;\n      }\n      this._updateConstants();\n      this._updateIndexes();\n      this._updateVirtualComponents();\n      this.schedule('measure', () => {\n        if (promiseResolve) {\n          promiseResolve();\n        }\n        this.afterUpdate();\n      });\n    }\n    afterUpdate() {\n      const {\n        _prevTotalItems: totalItems\n      } = this;\n      const scrollDiff = this._calculateScrollDiff();\n      if (scrollDiff !== 0) {\n        this._scrollContainer.scrollTop += scrollDiff;\n      }\n\n      // Re-sync scrollTop, since Chrome may have intervened\n      this._scrollTop = this._scrollContainer.scrollTop;\n\n      // Unset prepend offset, we're done with any prepend changes at this point\n      this._prependOffset = 0;\n      if (totalItems !== 0) {\n        this._sendActions();\n      }\n\n      // Cache previous values\n      this._prevFirstItemIndex = this.firstItemIndex;\n      this._prevLastItemIndex = this.lastItemIndex;\n      this._prevFirstVisibleIndex = this.firstVisibleIndex;\n      this._prevLastVisibleIndex = this.lastVisibleIndex;\n\n      // Clear the reset flag\n      this._didReset = false;\n      if (this._debugDidUpdate !== null) {\n        // Hook to update the visual debugger\n        this._debugDidUpdate(this);\n      }\n    }\n\n    /*\n     * The scroll diff is the difference between where we want the container's scrollTop to be,\n     * and where it actually is right now. By default it accounts for the `_prependOffset`, which\n     * is set when items are added to the front of the collection, as well as any discrepancies\n     * that may have arisen between the cached `_scrollTop` value and the actually container's\n     * scrollTop. The container's scrollTop may be modified by the browser when we manipulate DOM\n     * (Chrome specifically does this a lot), so `_scrollTop` should be considered the canonical\n     * scroll top.\n     *\n     * Subclasses should override this method to provide any difference between expected item size\n     * pre-render and actual item size post-render.\n     */\n    _calculateScrollDiff() {\n      return this._prependOffset + this._scrollTop - this._scrollContainer.scrollTop;\n    }\n    _determineUpdateType() {\n      const {\n        items,\n        key,\n        totalItems,\n        _prevTotalItems,\n        _prevFirstKey,\n        _prevLastKey\n      } = this;\n      const lenDiff = totalItems - _prevTotalItems;\n      if (isPrepend(lenDiff, items, key, _prevFirstKey, _prevLastKey) === true) {\n        this.prepend(lenDiff);\n      } else if (isAppend(lenDiff, items, key, _prevFirstKey, _prevLastKey) === true) {\n        this.append(lenDiff);\n      } else {\n        this.reset();\n      }\n      const firstItem = objectAt(this.items, 0);\n      const lastItem = objectAt(this.items, this.totalItems - 1);\n      this._prevTotalItems = totalItems;\n      this._prevFirstKey = totalItems > 0 ? keyForItem(firstItem, key, 0) : 0;\n      this._prevLastKey = totalItems > 0 ? keyForItem(lastItem, key, totalItems - 1) : 0;\n    }\n    _updateConstants() {\n      const {\n        estimateHeight,\n        _occludedContentBefore,\n        _itemContainer,\n        _scrollContainer\n      } = this;\n      (!(estimateHeight !== null) && debug.assert('Must provide a `estimateHeight` value to vertical-collection', estimateHeight !== null));\n      (!(_itemContainer !== null) && debug.assert('itemContainer must be set on Radar before scheduling an update', _itemContainer !== null));\n      (!(_scrollContainer !== null) && debug.assert('scrollContainer must be set on Radar before scheduling an update', _scrollContainer !== null)); // The scroll container's offsetHeight will reflect the actual height of the element, while\n      // it's measured height via bounding client rect will reflect the height with any transformations\n      // applied. We use this to find out the scale of the items so we can store measurements at the\n      // correct heights.\n      const scrollContainerOffsetHeight = _scrollContainer.offsetHeight;\n      const {\n        height: scrollContainerRenderedHeight\n      } = _scrollContainer.getBoundingClientRect();\n      let transformScale;\n\n      // transformScale represents the opposite of the scale, if any, applied to the collection. Check for equality\n      // to guard against floating point errors, and check to make sure we're not dividing by zero (default to scale 1 if so)\n      if (scrollContainerOffsetHeight === scrollContainerRenderedHeight || scrollContainerRenderedHeight === 0) {\n        transformScale = 1;\n      } else {\n        transformScale = scrollContainerOffsetHeight / scrollContainerRenderedHeight;\n      }\n      const {\n        top: scrollContentTop\n      } = getScaledClientRect(_occludedContentBefore, transformScale);\n      const {\n        top: scrollContainerTop\n      } = getScaledClientRect(_scrollContainer, transformScale);\n      let scrollContainerMaxHeight = 0;\n      if (_scrollContainer instanceof Element) {\n        const maxHeightStyle = window.getComputedStyle(_scrollContainer).maxHeight;\n        if (maxHeightStyle !== 'none') {\n          scrollContainerMaxHeight = estimateElementHeight(_scrollContainer.parentElement, maxHeightStyle);\n        }\n      }\n      const calculatedEstimateHeight = typeof estimateHeight === 'string' ? estimateElementHeight(_itemContainer, estimateHeight) : estimateHeight;\n      (!(calculatedEstimateHeight > 0) && debug.assert(`calculatedEstimateHeight must be greater than 0, instead was \"${calculatedEstimateHeight}\" based on estimateHeight: ${estimateHeight}`, calculatedEstimateHeight > 0));\n      this._transformScale = transformScale;\n      this._calculatedEstimateHeight = calculatedEstimateHeight;\n      this._calculatedScrollContainerHeight = roundTo(Math.max(scrollContainerOffsetHeight, scrollContainerMaxHeight));\n\n      // The offset between the top of the collection and the top of the scroll container. Determined by finding\n      // the distance from the collection is from the top of the scroll container's content (scrollTop + actual position)\n      // and subtracting the scroll containers actual top.\n      this._collectionOffset = roundTo(_scrollContainer.scrollTop + scrollContentTop - scrollContainerTop);\n    }\n\n    /*\n     * Updates virtualComponents, which is meant to be a static pool of components that we render to.\n     * In order to decrease the time spent rendering and diffing, we pull the {{each}} out of the DOM\n     * and only replace the content of _virtualComponents which are removed/added.\n     *\n     * For instance, if we start with the following and scroll down, items 2 and 3 do not need to be\n     * rerendered, only item 1 needs to be removed and only item 4 needs to be added. So we replace\n     * item 1 with item 4, and then manually move the DOM:\n     *\n     *   1                        4                         2\n     *   2 -> replace 1 with 4 -> 2 -> manually move DOM -> 3\n     *   3                        3                         4\n     *\n     * However, _virtualComponents is still out of order. Rather than keep track of the state of\n     * things in _virtualComponents, we track the visually ordered components in the\n     * _orderedComponents array. This is possible because all of our operations are relatively simple,\n     * popping some number of components off one end and pushing them onto the other.\n     *\n     * @private\n     */\n    _updateVirtualComponents() {\n      const {\n        items,\n        orderedComponents,\n        virtualComponents,\n        _componentPool,\n        shouldRecycle,\n        renderAll,\n        _started,\n        _didReset,\n        _occludedContentBefore,\n        _occludedContentAfter,\n        totalItems\n      } = this;\n      let renderedFirstItemIndex, renderedLastItemIndex, renderedTotalBefore, renderedTotalAfter;\n      if (renderAll === true) {\n        // All items should be rendered, set indexes based on total item count\n        renderedFirstItemIndex = 0;\n        renderedLastItemIndex = totalItems - 1;\n        renderedTotalBefore = 0;\n        renderedTotalAfter = 0;\n      } else if (_started === false) {\n        // The Radar hasn't been started yet, render the initialRenderCount if it exists\n        renderedFirstItemIndex = this.startingIndex;\n        renderedLastItemIndex = this.startingIndex + this.initialRenderCount - 1;\n        renderedTotalBefore = 0;\n        renderedTotalAfter = 0;\n      } else {\n        renderedFirstItemIndex = this.firstItemIndex;\n        renderedLastItemIndex = this.lastItemIndex;\n        renderedTotalBefore = this.totalBefore;\n        renderedTotalAfter = this.totalAfter;\n      }\n\n      // If there are less items available than rendered, we drop the last rendered item index\n      renderedLastItemIndex = Math.min(renderedLastItemIndex, totalItems - 1);\n\n      // Add components to be recycled to the pool\n      while (orderedComponents.length > 0 && orderedComponents[0].index < renderedFirstItemIndex) {\n        _componentPool.push(orderedComponents.shift());\n      }\n      while (orderedComponents.length > 0 && orderedComponents[orderedComponents.length - 1].index > renderedLastItemIndex) {\n        _componentPool.unshift(orderedComponents.pop());\n      }\n      if (_didReset) {\n        if (shouldRecycle === true) {\n          for (let i = 0; i < orderedComponents.length; i++) {\n            // If the underlying array has changed, the indexes could be the same but\n            // the content may have changed, so recycle the remaining components\n            const component = orderedComponents[i];\n            component.recycle(objectAt(items, component.index), component.index);\n          }\n        } else {\n          while (orderedComponents.length > 0) {\n            // If recycling is disabled we need to delete all components and clear the array\n            _componentPool.push(orderedComponents.shift());\n          }\n        }\n      }\n      let firstIndexInList = orderedComponents.length > 0 ? orderedComponents[0].index : renderedFirstItemIndex;\n      let lastIndexInList = orderedComponents.length > 0 ? orderedComponents[orderedComponents.length - 1].index : renderedFirstItemIndex - 1;\n\n      // Append as many items as needed to the rendered components\n      while (lastIndexInList < renderedLastItemIndex) {\n        let component;\n        if (shouldRecycle === true) {\n          component = _componentPool.pop() || new VirtualComponent();\n        } else {\n          component = new VirtualComponent();\n        }\n        const itemIndex = ++lastIndexInList;\n        component.recycle(objectAt(items, itemIndex), itemIndex);\n        this._appendComponent(component);\n        orderedComponents.push(component);\n      }\n\n      // Prepend as many items as needed to the rendered components\n      while (firstIndexInList > renderedFirstItemIndex) {\n        let component;\n        if (shouldRecycle === true) {\n          component = _componentPool.pop() || new VirtualComponent();\n        } else {\n          component = new VirtualComponent();\n        }\n        const itemIndex = --firstIndexInList;\n        component.recycle(objectAt(items, itemIndex), itemIndex);\n        this._prependComponent(component);\n        orderedComponents.unshift(component);\n      }\n\n      // If there are any items remaining in the pool, remove them\n      if (_componentPool.length > 0) {\n        if (shouldRecycle === true) {\n          // Grab the DOM of the remaining components and move it to temporary node disconnected from\n          // the body if the item can be reused later otherwise delete the component to avoid virtual re-rendering of the\n          // deleted item. If we end up using these components again, we'll grab their DOM and put it back\n          for (let i = _componentPool.length - 1; i >= 0; i--) {\n            const component = _componentPool[i];\n            const item = objectAt(items, component.index);\n            if (item) {\n              insertRangeBefore(this._domPool, null, component.realUpperBound, component.realLowerBound);\n            } else {\n              // Insert the virtual component bound back to make sure Glimmer is\n              // not confused about the state of the DOM.\n              insertRangeBefore(this._itemContainer, null, component.realUpperBound, component.realLowerBound);\n              runloop.run(() => {\n                virtualComponents.removeObject(component);\n              });\n              _componentPool.splice(i, 1);\n            }\n          }\n        } else {\n          virtualComponents.removeObjects(_componentPool);\n          _componentPool.length = 0;\n        }\n      }\n      const totalItemsBefore = renderedFirstItemIndex;\n      const totalItemsAfter = totalItems - renderedLastItemIndex - 1;\n      const beforeItemsText = totalItemsBefore === 1 ? 'item' : 'items';\n      const afterItemsText = totalItemsAfter === 1 ? 'item' : 'items';\n\n      // Set padding element heights.\n      _occludedContentBefore.style.height = `${Math.max(renderedTotalBefore, 0)}px`;\n      _occludedContentBefore.innerHTML = totalItemsBefore > 0 ? `And ${totalItemsBefore} ${beforeItemsText} before` : '';\n      _occludedContentAfter.style.height = `${Math.max(renderedTotalAfter, 0)}px`;\n      _occludedContentAfter.innerHTML = totalItemsAfter > 0 ? `And ${totalItemsAfter} ${afterItemsText} after` : '';\n    }\n    _appendComponent(component) {\n      const {\n        virtualComponents,\n        _occludedContentAfter,\n        _appendComponentPool,\n        shouldRecycle,\n        _itemContainer\n      } = this;\n      const relativeNode = _occludedContentAfter.realUpperBound;\n      if (component.rendered === true) {\n        insertRangeBefore(_itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n      } else {\n        virtualComponents.insertAt(virtualComponents.length - 1, component);\n        component.rendered = true;\n\n        // shouldRecycle=false breaks UI when scrolling the elements fast. \n        // Reference https://github.com/html-next/vertical-collection/issues/296\n        // Components that are both new and appended still need to be rendered at the end because Glimmer.\n        // We have to move them _after_ they render, so we schedule that if they exist\n        if (!shouldRecycle) {\n          _appendComponentPool.unshift(component);\n          if (this._nextLayout === null) {\n            this._nextLayout = this.schedule('layout', () => {\n              this._nextLayout = null;\n              while (_appendComponentPool.length > 0) {\n                const component = _appendComponentPool.pop();\n\n                // Changes with each inserted component\n                const relativeNode = _occludedContentAfter.realUpperBound;\n                insertRangeBefore(this._itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n              }\n            });\n          }\n        }\n      }\n    }\n    _prependComponent(component) {\n      const {\n        virtualComponents,\n        _occludedContentBefore,\n        _prependComponentPool,\n        _itemContainer\n      } = this;\n      const relativeNode = _occludedContentBefore.realLowerBound.nextSibling;\n      if (component.rendered === true) {\n        insertRangeBefore(_itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n      } else {\n        virtualComponents.insertAt(virtualComponents.length - 1, component);\n        component.rendered = true;\n\n        // Components that are both new and prepended still need to be rendered at the end because Glimmer.\n        // We have to move them _after_ they render, so we schedule that if they exist\n        _prependComponentPool.unshift(component);\n        if (this._nextLayout === null) {\n          this._nextLayout = this.schedule('layout', () => {\n            this._nextLayout = null;\n            while (_prependComponentPool.length > 0) {\n              const component = _prependComponentPool.pop();\n\n              // Changes with each inserted component\n              const relativeNode = _occludedContentBefore.realLowerBound.nextSibling;\n              insertRangeBefore(_itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n            }\n          });\n        }\n      }\n    }\n    _sendActions() {\n      const {\n        firstItemIndex,\n        lastItemIndex,\n        firstVisibleIndex,\n        lastVisibleIndex,\n        _prevFirstVisibleIndex,\n        _prevLastVisibleIndex,\n        totalItems,\n        _firstReached,\n        _lastReached,\n        _didReset\n      } = this;\n      if (_didReset || firstVisibleIndex !== _prevFirstVisibleIndex) {\n        this.sendAction('firstVisibleChanged', firstVisibleIndex);\n      }\n      if (_didReset || lastVisibleIndex !== _prevLastVisibleIndex) {\n        this.sendAction('lastVisibleChanged', lastVisibleIndex);\n      }\n      if (_firstReached === false && firstItemIndex === 0) {\n        this.sendAction('firstReached', firstItemIndex);\n        this._firstReached = true;\n      }\n      if (_lastReached === false && lastItemIndex === totalItems - 1) {\n        this.sendAction('lastReached', lastItemIndex);\n        this._lastReached = true;\n      }\n    }\n    prepend(numPrepended) {\n      this._prevFirstItemIndex += numPrepended;\n      this._prevLastItemIndex += numPrepended;\n      this.orderedComponents.forEach(c => object.set(c, 'index', object.get(c, 'index') + numPrepended));\n      this._firstReached = false;\n      this._prependOffset = numPrepended * this._calculatedEstimateHeight;\n    }\n    append() {\n      this._lastReached = false;\n    }\n    reset() {\n      this._firstReached = false;\n      this._lastReached = false;\n      this._didReset = true;\n    }\n    pageUp() {\n      if (this.renderAll) {\n        return; // All items rendered, no need to page up\n      }\n      const {\n        bufferSize,\n        firstItemIndex,\n        totalComponents\n      } = this;\n      if (firstItemIndex !== 0) {\n        const newFirstItemIndex = Math.max(firstItemIndex - totalComponents + bufferSize, 0);\n        const offset = this.getOffsetForIndex(newFirstItemIndex);\n        this._scrollContainer.scrollTop = offset + this._collectionOffset;\n        this.scheduleUpdate();\n      }\n    }\n    pageDown() {\n      if (this.renderAll) {\n        return; // All items rendered, no need to page down\n      }\n      const {\n        bufferSize,\n        lastItemIndex,\n        totalComponents,\n        totalItems\n      } = this;\n      if (lastItemIndex !== totalItems - 1) {\n        const newFirstItemIndex = Math.min(lastItemIndex + bufferSize + 1, totalItems - totalComponents);\n        const offset = this.getOffsetForIndex(newFirstItemIndex);\n        this._scrollContainer.scrollTop = offset + this._collectionOffset;\n        this.scheduleUpdate();\n      }\n    }\n    get totalComponents() {\n      return Math.min(this.totalItems, this.lastItemIndex - this.firstItemIndex + 1);\n    }\n\n    /*\n     * `prependOffset` exists because there are times when we need to do the following in this exact\n     * order:\n     *\n     * 1. Prepend, which means we need to adjust the scroll position by `estimateHeight * numPrepended`\n     * 2. Calculate the items that will be displayed after the prepend, and move VCs around as\n     *    necessary (`scheduleUpdate`).\n     * 3. Actually add the amount prepended to `scrollContainer.scrollTop`\n     *\n     * This is due to some strange behavior in Chrome where it will modify `scrollTop` on it's own\n     * when prepending item elements. We seem to avoid this behavior by doing these things in a RAF\n     * in this exact order.\n     */\n    get visibleTop() {\n      return Math.max(this._scrollTop - this._collectionOffset + this._prependOffset, 0);\n    }\n    get visibleMiddle() {\n      return this.visibleTop + this._calculatedScrollContainerHeight / 2;\n    }\n    get visibleBottom() {\n      // There is a case where the container of this vertical collection could have height 0 at\n      // initial render step but will be updated later. We want to return visibleBottom to be 0 rather\n      // than -1.\n      return Math.max(this.visibleTop + this._calculatedScrollContainerHeight - 1, 0);\n    }\n    get totalItems() {\n      return this.items ? object.get(this.items, 'length') : 0;\n    }\n  }\n\n  /*\n   * `SkipList` is a data structure designed with two main uses in mind:\n   *\n   * - Given a target value, find the index i in the list such that\n   * `sum(list[0]..list[i]) <= value < sum(list[0]..list[i + 1])`\n   *\n   * - Given the index i (the fulcrum point) from above, get `sum(list[0]..list[i])`\n   *   and `sum(list[i + 1]..list[-1])`\n   *\n   * The idea is that given a list of arbitrary heights or widths in pixels, we want to find\n   * the index of the item such that when all of the items before it are added together, it will\n   * be as close to the target (scrollTop of our container) as possible.\n   *\n   * This data structure acts somewhat like a Binary Search Tree. Given a list of size n, the\n   * retreival time for the index is O(log n) and the update time should any values change is\n   * O(log n). The space complexity is O(n log n) in bytes (using Float32Arrays helps a lot\n   * here), and the initialization time is O(n log n).\n   *\n   * It works by constructing layer arrays, each of which is setup such that\n   * `layer[i] = prevLayer[i * 2] + prevLayer[(i * 2) + 1]`. This allows us to traverse the layers\n   * downward using a binary search to arrive at the index we want. We also add the values up as we\n   * traverse to get the total value before and after the final index.\n   */\n\n  function fill(array, value, start, end) {\n    if (start === void 0) {\n      start = 0;\n    }\n    if (end === void 0) {\n      end = array.length;\n    }\n    if (typeof array.fill === 'function') {\n      array.fill(value, start, end);\n    } else {\n      for (; start < end; start++) {\n        array[start] = value;\n      }\n      return array;\n    }\n  }\n  function subarray(array, start, end) {\n    if (typeof array.subarray === 'function') {\n      return array.subarray(start, end);\n    } else {\n      return array.slice(start, end);\n    }\n  }\n  class SkipList {\n    constructor(length, defaultValue) {\n      const values = new Float32Array(new ArrayBuffer(length * 4));\n      fill(values, defaultValue);\n      this.length = length;\n      this.defaultValue = defaultValue;\n      this._initializeLayers(values, defaultValue);\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    _initializeLayers(values, defaultValue) {\n      const layers = [values];\n      let i, length, layer, prevLayer, left, right;\n      prevLayer = layer = values;\n      length = values.length;\n      while (length > 2) {\n        length = Math.ceil(length / 2);\n        layer = new Float32Array(new ArrayBuffer(length * 4));\n        if (defaultValue !== undefined) {\n          // If given a default value we assume that we can fill each\n          // layer of the skip list with the previous layer's value * 2.\n          // This allows us to use the `fill` method on Typed arrays, which\n          // an order of magnitude faster than manually calculating each value.\n          defaultValue = defaultValue * 2;\n          fill(layer, defaultValue);\n          left = prevLayer[(length - 1) * 2] || 0;\n          right = prevLayer[(length - 1) * 2 + 1] || 0;\n\n          // Layers are not powers of 2, and sometimes they may by odd sizes.\n          // Only the last value of a layer will be different, so we calculate\n          // its value manually.\n          layer[length - 1] = left + right;\n        } else {\n          for (i = 0; i < length; i++) {\n            left = prevLayer[i * 2];\n            right = prevLayer[i * 2 + 1];\n            layer[i] = right ? left + right : left;\n          }\n        }\n        layers.unshift(layer);\n        prevLayer = layer;\n      }\n      this.total = layer.length > 0 ? layer.length > 1 ? layer[0] + layer[1] : layer[0] : 0;\n      (!(typeof this.total === 'number') && debug.assert('total must be a number', typeof this.total === 'number'));\n      this.layers = layers;\n      this.values = values;\n    }\n    find(targetValue) {\n      const {\n        layers,\n        total,\n        length,\n        values\n      } = this;\n      const numLayers = layers.length;\n      if (length === 0) {\n        return {\n          index: 0,\n          totalBefore: 0,\n          totalAfter: 0\n        };\n      }\n      let i, layer, left, leftIndex, rightIndex;\n      let index = 0;\n      let totalBefore = 0;\n      let totalAfter = 0;\n      targetValue = Math.min(total - 1, targetValue);\n      (!(typeof targetValue === 'number') && debug.assert('targetValue must be a number', typeof targetValue === 'number'));\n      (!(targetValue >= 0) && debug.assert('targetValue must be greater than or equal to 0', targetValue >= 0));\n      (!(targetValue < total) && debug.assert('targetValue must be no more than total', targetValue < total));\n      for (i = 0; i < numLayers; i++) {\n        layer = layers[i];\n        leftIndex = index;\n        rightIndex = index + 1;\n        left = layer[leftIndex];\n        if (targetValue >= totalBefore + left) {\n          totalBefore = totalBefore + left;\n          index = rightIndex * 2;\n        } else {\n          index = leftIndex * 2;\n        }\n      }\n      index = index / 2;\n      (!(typeof index === 'number') && debug.assert('index must be a number', typeof index === 'number'));\n      (!(index >= 0 && index < this.values.length) && debug.assert('index must be within bounds', index >= 0 && index < this.values.length));\n      totalAfter = total - (totalBefore + values[index]);\n      return {\n        index,\n        totalBefore,\n        totalAfter\n      };\n    }\n    getOffset(targetIndex) {\n      const {\n        layers,\n        length,\n        values\n      } = this;\n      const numLayers = layers.length;\n      if (length === 0) {\n        return 0;\n      }\n      let index = 0;\n      let offset = 0;\n      for (let i = 0; i < numLayers - 1; i++) {\n        const layer = layers[i];\n        const leftIndex = index;\n        const rightIndex = index + 1;\n        if (targetIndex >= rightIndex * Math.pow(2, numLayers - i - 1)) {\n          offset = offset + layer[leftIndex];\n          index = rightIndex * 2;\n        } else {\n          index = leftIndex * 2;\n        }\n      }\n      if (index + 1 === targetIndex) {\n        offset += values[index];\n      }\n      return offset;\n    }\n    set(index, value) {\n      (!(typeof value === 'number') && debug.assert('value must be a number', typeof value === 'number'));\n      (!(value >= 0) && debug.assert('value must non-negative', value >= 0));\n      (!(typeof index === 'number') && debug.assert('index must be a number', typeof index === 'number'));\n      (!(index >= 0 && index < this.values.length) && debug.assert('index must be within bounds', index >= 0 && index < this.values.length));\n      const {\n        layers\n      } = this;\n      const oldValue = layers[layers.length - 1][index];\n      const delta = roundTo(value - oldValue);\n      if (delta === 0) {\n        return delta;\n      }\n      let i, layer;\n      for (i = layers.length - 1; i >= 0; i--) {\n        layer = layers[i];\n        layer[index] += delta;\n        index = Math.floor(index / 2);\n      }\n      this.total += delta;\n      return delta;\n    }\n    prepend(numPrepended) {\n      const {\n        values: oldValues,\n        length: oldLength,\n        defaultValue\n      } = this;\n      const newLength = numPrepended + oldLength;\n      const newValues = new Float32Array(new ArrayBuffer(newLength * 4));\n      newValues.set(oldValues, numPrepended);\n      fill(newValues, defaultValue, 0, numPrepended);\n      this.length = newLength;\n      this._initializeLayers(newValues);\n    }\n    append(numAppended) {\n      const {\n        values: oldValues,\n        length: oldLength,\n        defaultValue\n      } = this;\n      const newLength = numAppended + oldLength;\n      const newValues = new Float32Array(new ArrayBuffer(newLength * 4));\n      newValues.set(oldValues);\n      fill(newValues, defaultValue, oldLength);\n      this.length = newLength;\n      this._initializeLayers(newValues);\n    }\n    reset(newLength) {\n      const {\n        values: oldValues,\n        length: oldLength,\n        defaultValue\n      } = this;\n      if (oldLength === newLength) {\n        return;\n      }\n      const newValues = new Float32Array(new ArrayBuffer(newLength * 4));\n      if (oldLength < newLength) {\n        newValues.set(oldValues);\n        fill(newValues, defaultValue, oldLength);\n      } else {\n        newValues.set(subarray(oldValues, 0, newLength));\n      }\n      this.length = newLength;\n      if (oldLength === 0) {\n        this._initializeLayers(newValues, defaultValue);\n      } else {\n        this._initializeLayers(newValues);\n      }\n    }\n  }\n\n  class DynamicRadar extends Radar {\n    constructor(parentToken, options) {\n      super(parentToken, options);\n      this._firstItemIndex = 0;\n      this._lastItemIndex = 0;\n      this._totalBefore = 0;\n      this._totalAfter = 0;\n      this._minHeight = Infinity;\n      this._nextIncrementalRender = null;\n      this.skipList = null;\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    destroy() {\n      super.destroy();\n      this.skipList = null;\n    }\n    scheduleUpdate(didUpdateItems, promiseResolve) {\n      // Cancel incremental render check, since we'll be remeasuring anyways\n      if (this._nextIncrementalRender !== null) {\n        this._nextIncrementalRender.cancel();\n        this._nextIncrementalRender = null;\n      }\n      super.scheduleUpdate(didUpdateItems, promiseResolve);\n    }\n    afterUpdate() {\n      // Schedule a check to see if we should rerender\n      if (this._nextIncrementalRender === null && this._nextUpdate === null) {\n        this._nextIncrementalRender = this.schedule('sync', () => {\n          this._nextIncrementalRender = null;\n          if (this._shouldScheduleRerender()) {\n            this.update();\n          }\n        });\n      }\n      super.afterUpdate();\n    }\n    _updateConstants() {\n      super._updateConstants();\n      if (this._calculatedEstimateHeight < this._minHeight) {\n        this._minHeight = this._calculatedEstimateHeight;\n      }\n\n      // Create the SkipList only after the estimateHeight has been calculated the first time\n      if (this.skipList === null) {\n        this.skipList = new SkipList(this.totalItems, this._calculatedEstimateHeight);\n      } else {\n        this.skipList.defaultValue = this._calculatedEstimateHeight;\n      }\n    }\n    _updateIndexes() {\n      const {\n        bufferSize,\n        skipList,\n        visibleTop,\n        visibleBottom,\n        totalItems,\n        _didReset\n      } = this;\n      if (totalItems === 0) {\n        this._firstItemIndex = 0;\n        this._lastItemIndex = -1;\n        this._totalBefore = 0;\n        this._totalAfter = 0;\n        return;\n      }\n\n      // Don't measure if the radar has just been instantiated or reset, as we are rendering with a\n      // completely new set of items and won't get an accurate measurement until after they render the\n      // first time.\n      if (_didReset === false) {\n        this._measure();\n      }\n      const {\n        values\n      } = skipList;\n      let {\n        totalBefore,\n        index: firstVisibleIndex\n      } = this.skipList.find(visibleTop);\n      let {\n        totalAfter,\n        index: lastVisibleIndex\n      } = this.skipList.find(visibleBottom);\n      const maxIndex = totalItems - 1;\n      let firstItemIndex = firstVisibleIndex;\n      let lastItemIndex = lastVisibleIndex;\n\n      // Add buffers\n      for (let i = bufferSize; i > 0 && firstItemIndex > 0; i--) {\n        firstItemIndex--;\n        totalBefore -= values[firstItemIndex];\n      }\n      for (let i = bufferSize; i > 0 && lastItemIndex < maxIndex; i--) {\n        lastItemIndex++;\n        totalAfter -= values[lastItemIndex];\n      }\n      this._firstItemIndex = firstItemIndex;\n      this._lastItemIndex = lastItemIndex;\n      this._totalBefore = totalBefore;\n      this._totalAfter = totalAfter;\n    }\n    _calculateScrollDiff() {\n      const {\n        firstItemIndex,\n        _prevFirstVisibleIndex,\n        _prevFirstItemIndex\n      } = this;\n      let beforeVisibleDiff = 0;\n      if (firstItemIndex < _prevFirstItemIndex) {\n        // Measurement only items that could affect scrollTop. This will necesarilly be the\n        // minimum of the either the total number of items that are rendered up to the first\n        // visible item, OR the number of items that changed before the first visible item\n        // (the delta). We want to measure the delta of exactly this number of items, because\n        // items that are after the first visible item should not affect the scroll position,\n        // and neither should items already rendered before the first visible item.\n        const measureLimit = Math.min(Math.abs(firstItemIndex - _prevFirstItemIndex), _prevFirstVisibleIndex - firstItemIndex);\n        beforeVisibleDiff = Math.round(this._measure(measureLimit));\n      }\n      return beforeVisibleDiff + super._calculateScrollDiff();\n    }\n    _shouldScheduleRerender() {\n      const {\n        firstItemIndex,\n        lastItemIndex\n      } = this;\n      this._updateConstants();\n      this._measure();\n\n      // These indexes could change after the measurement, and in the incremental render\n      // case we want to check them _after_ the change.\n      const {\n        firstVisibleIndex,\n        lastVisibleIndex\n      } = this;\n      return firstVisibleIndex < firstItemIndex || lastVisibleIndex > lastItemIndex;\n    }\n    _measure(measureLimit) {\n      if (measureLimit === void 0) {\n        measureLimit = null;\n      }\n      const {\n        orderedComponents,\n        skipList,\n        _occludedContentBefore,\n        _transformScale\n      } = this;\n      const numToMeasure = measureLimit !== null ? Math.min(measureLimit, orderedComponents.length) : orderedComponents.length;\n      let totalDelta = 0;\n      for (let i = 0; i < numToMeasure; i++) {\n        const currentItem = orderedComponents[i];\n        const previousItem = orderedComponents[i - 1];\n        const itemIndex = currentItem.index;\n        const {\n          top: currentItemTop,\n          height: currentItemHeight\n        } = getScaledClientRect(currentItem, _transformScale);\n        let margin;\n        if (previousItem !== undefined) {\n          margin = currentItemTop - getScaledClientRect(previousItem, _transformScale).bottom;\n        } else {\n          margin = currentItemTop - getScaledClientRect(_occludedContentBefore, _transformScale).bottom;\n        }\n        const newHeight = roundTo(currentItemHeight + margin);\n        const itemDelta = skipList.set(itemIndex, newHeight);\n        if (newHeight < this._minHeight) {\n          this._minHeight = newHeight;\n        }\n        if (itemDelta !== 0) {\n          totalDelta += itemDelta;\n        }\n      }\n      return totalDelta;\n    }\n    _didEarthquake(scrollDiff) {\n      return scrollDiff > this._minHeight / 2;\n    }\n    get total() {\n      return this.skipList.total;\n    }\n    get totalBefore() {\n      return this._totalBefore;\n    }\n    get totalAfter() {\n      return this._totalAfter;\n    }\n    get firstItemIndex() {\n      return this._firstItemIndex;\n    }\n    get lastItemIndex() {\n      return this._lastItemIndex;\n    }\n    get firstVisibleIndex() {\n      const {\n        visibleTop\n      } = this;\n      const {\n        index\n      } = this.skipList.find(visibleTop);\n      return index;\n    }\n    get lastVisibleIndex() {\n      const {\n        visibleBottom,\n        totalItems\n      } = this;\n      const {\n        index\n      } = this.skipList.find(visibleBottom);\n      return Math.min(index, totalItems - 1);\n    }\n    prepend(numPrepended) {\n      super.prepend(numPrepended);\n      this.skipList.prepend(numPrepended);\n    }\n    append(numAppended) {\n      super.append(numAppended);\n      this.skipList.append(numAppended);\n    }\n    reset() {\n      super.reset();\n      this.skipList.reset(this.totalItems);\n    }\n\n    /*\n     * Public API to query the skiplist for the offset of an item\n     */\n    getOffsetForIndex(index) {\n      this._measure();\n      return this.skipList.getOffset(index);\n    }\n  }\n\n  class StaticRadar extends Radar {\n    constructor(parentToken, options) {\n      super(parentToken, options);\n      this._firstItemIndex = 0;\n      this._lastItemIndex = 0;\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    _updateIndexes() {\n      const {\n        bufferSize,\n        totalItems,\n        visibleMiddle,\n        _calculatedEstimateHeight,\n        _calculatedScrollContainerHeight\n      } = this;\n      if (totalItems === 0) {\n        this._firstItemIndex = 0;\n        this._lastItemIndex = -1;\n        return;\n      }\n      const maxIndex = totalItems - 1;\n      const middleItemIndex = Math.floor(visibleMiddle / _calculatedEstimateHeight);\n      const shouldRenderCount = Math.min(Math.ceil(_calculatedScrollContainerHeight / _calculatedEstimateHeight), totalItems);\n      let firstItemIndex = middleItemIndex - Math.floor(shouldRenderCount / 2);\n      let lastItemIndex = middleItemIndex + Math.ceil(shouldRenderCount / 2) - 1;\n      if (firstItemIndex < 0) {\n        firstItemIndex = 0;\n        lastItemIndex = shouldRenderCount - 1;\n      }\n      if (lastItemIndex > maxIndex) {\n        lastItemIndex = maxIndex;\n        firstItemIndex = maxIndex - (shouldRenderCount - 1);\n      }\n      firstItemIndex = Math.max(firstItemIndex - bufferSize, 0);\n      lastItemIndex = Math.min(lastItemIndex + bufferSize, maxIndex);\n      this._firstItemIndex = firstItemIndex;\n      this._lastItemIndex = lastItemIndex;\n    }\n    _didEarthquake(scrollDiff) {\n      return scrollDiff > this._calculatedEstimateHeight / 2;\n    }\n    get total() {\n      return this.totalItems * this._calculatedEstimateHeight;\n    }\n    get totalBefore() {\n      return this.firstItemIndex * this._calculatedEstimateHeight;\n    }\n    get totalAfter() {\n      return this.total - (this.lastItemIndex + 1) * this._calculatedEstimateHeight;\n    }\n    get firstItemIndex() {\n      return this._firstItemIndex;\n    }\n    get lastItemIndex() {\n      return this._lastItemIndex;\n    }\n    get firstVisibleIndex() {\n      return Math.ceil(this.visibleTop / this._calculatedEstimateHeight);\n    }\n    get lastVisibleIndex() {\n      return Math.min(Math.ceil(this.visibleBottom / this._calculatedEstimateHeight), this.totalItems) - 1;\n    }\n\n    /*\n     * Public API to query for the offset of an item\n     */\n    getOffsetForIndex(index) {\n      return index * this._calculatedEstimateHeight + 1;\n    }\n  }\n\n  exports.DynamicRadar = DynamicRadar;\n  exports.ScrollHandler = ScrollHandler;\n  exports.StaticRadar = StaticRadar;\n  exports.ViewportContainer = ViewportContainer$1;\n  exports.addScrollHandler = addScrollHandler;\n  exports.closestElement = closest;\n  exports.keyForItem = keyForItem;\n  exports.objectAt = objectAt;\n  exports.removeScrollHandler = removeScrollHandler;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","define(\"@html-next/vertical-collection/components/vertical-collection/component\", [\"exports\", \"@ember/debug\", \"@ember/object/computed\", \"@ember/component\", \"@ember/object\", \"@ember/runloop\", \"@html-next/vertical-collection/components/vertical-collection/template\", \"@html-next/vertical-collection/-private\", \"ember-raf-scheduler\"], function (_exports, _debug, _computed, _component, _object, _runloop, _template, _private, _emberRafScheduler) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /*\n   * BEGIN DEBUG HELPERS\n   *\n   * These methods and the Visualization class are used by DEBUG code paths.\n   */\n  function isNonZero(value) {\n    let int = parseInt(value, 10);\n    let float = parseFloat(value);\n    return !isNaN(int) && (int !== 0 || float !== 0);\n  }\n  function hasStyleValue(styles, key, value) {\n    return styles[key] === value;\n  }\n  function hasStyleWithNonZeroValue(styles, key) {\n    return isNonZero(styles[key]);\n  }\n  function styleIsOneOf(styles, key, values) {\n    return styles[key] && values.indexOf(styles[key]) !== -1;\n  }\n  function applyVerticalStyles(element, geography) {\n    element.style.height = `${geography.height}px`;\n    element.style.top = `${geography.top}px`;\n  }\n  class Visualization {\n    constructor(radar) {\n      this.radar = radar;\n      this.satellites = [];\n      this.cache = [];\n      this.wrapper = document.createElement('div');\n      this.wrapper.className = 'vertical-collection-visual-debugger';\n      this.container = document.createElement('div');\n      this.container.className = 'vc_visualization-container';\n      this.wrapper.appendChild(this.container);\n      this.itemContainer = document.createElement('div');\n      this.itemContainer.className = 'vc_visualization-item-container';\n      this.container.appendChild(this.itemContainer);\n      this.scrollContainer = document.createElement('div');\n      this.scrollContainer.className = 'vc_visualization-scroll-container';\n      this.container.appendChild(this.scrollContainer);\n      this.screen = document.createElement('div');\n      this.screen.className = 'vc_visualization-screen';\n      this.container.appendChild(this.screen);\n      document.body.appendChild(this.wrapper);\n    }\n    render() {\n      this.styleViewport();\n      this.updateSatellites();\n    }\n    styleViewport() {\n      const {\n        _scrollContainer\n      } = this.radar;\n      this.container.style.height = `${_scrollContainer.getBoundingClientRect().height}px`;\n      applyVerticalStyles(this.scrollContainer, _scrollContainer.getBoundingClientRect());\n      applyVerticalStyles(this.screen, _private.ViewportContainer.getBoundingClientRect());\n    }\n    makeSatellite() {\n      let satellite;\n      if (this.cache.length) {\n        satellite = this.cache.pop();\n      } else {\n        satellite = document.createElement('div');\n        satellite.className = 'vc_visualization-virtual-component';\n      }\n      this.satellites.push(satellite);\n      this.itemContainer.append(satellite);\n    }\n    updateSatellites() {\n      const {\n        satellites: sats\n      } = this;\n      let {\n        firstItemIndex,\n        lastItemIndex,\n        totalItems,\n        totalBefore,\n        totalAfter,\n        skipList,\n        _calculatedEstimateHeight\n      } = this.radar;\n      const isDynamic = !!skipList;\n      const itemHeights = isDynamic && skipList.values;\n      const firstVisualizedIndex = Math.max(firstItemIndex - 10, 0);\n      const lastVisualizedIndex = Math.min(lastItemIndex + 10, totalItems - 1);\n      const lengthWithBuffer = lastVisualizedIndex - firstVisualizedIndex + 1;\n      const isShrinking = sats.length > lengthWithBuffer;\n      while (sats.length !== lengthWithBuffer) {\n        if (isShrinking) {\n          const satellite = sats.pop();\n          satellite.parentNode.removeChild(satellite);\n          this.cache.push(satellite);\n        } else {\n          this.makeSatellite();\n        }\n      }\n      for (let itemIndex = firstVisualizedIndex, i = 0; itemIndex <= lastVisualizedIndex; itemIndex++, i++) {\n        const element = sats[i];\n        const itemHeight = isDynamic ? itemHeights[itemIndex] : _calculatedEstimateHeight;\n        element.style.height = `${itemHeight}px`;\n        element.setAttribute('index', String(itemIndex));\n        element.innerText = String(itemIndex);\n        if (itemIndex < firstItemIndex) {\n          element.classList.add('culled');\n          totalBefore -= itemHeight;\n        } else if (itemIndex > lastItemIndex) {\n          element.classList.add('culled');\n          totalAfter -= itemHeight;\n        } else {\n          element.classList.remove('culled');\n        }\n      }\n      this.itemContainer.style.paddingTop = `${totalBefore}px`;\n      this.itemContainer.style.paddingBottom = `${totalAfter}px`;\n    }\n    destroy() {\n      this.wrapper.parentNode.removeChild(this.wrapper);\n      this.wrapper = null;\n      this.radar = null;\n      this.component = null;\n      this.satellites.forEach(satellite => {\n        if (satellite.parentNode) {\n          satellite.parentNode.removeChild(satellite);\n        }\n      });\n      this.satellites = null;\n      this.cache = null;\n    }\n  }\n  /*\n   * END DEBUG HELPERS\n   */\n\n  const VerticalCollection = _component.default.extend({\n    layout: _template.default,\n    tagName: '',\n    /**\n     * Property name used for storing references to each item in items. Accessing this attribute for each item\n     * should yield a unique result for every item in the list.\n     *\n     * @property key\n     * @type String\n     * @default '@identity'\n     */\n    key: '@identity',\n    // –––––––––––––– Required Settings\n\n    /**\n     * Estimated height of an item to be rendered. Use best guess as this will be used to determine how many items\n     * are displayed virtually, before and after the vertical-collection viewport.\n     *\n     * @property estimateHeight\n     * @type Number\n     * @required\n     */\n    estimateHeight: null,\n    /**\n     * List of objects to svelte-render.\n     * Can be called like `<VerticalCollection @items={{itemsArray}} />`.\n     *\n     * @property items\n     * @type Array\n     * @required\n     */\n    items: null,\n    // –––––––––––––– Optional Settings\n    /**\n     * Indicates if the occluded items' heights will change or not.\n     * If true, the vertical-collection will assume that items' heights are always equal to estimateHeight;\n     * this is more performant, but less flexible.\n     *\n     * @property staticHeight\n     * @type Boolean\n     */\n    staticHeight: false,\n    /**\n     * Indicates whether or not list items in the Radar should be reused on update of virtual components (e.g. scroll).\n     * This yields performance benefits because it is not necessary to repopulate the component pool of the radar.\n     * Set to false when recycling a component instance has undesirable ramifications including:\n     *  - When using `unbound` in a component or sub-component\n     *  - When using init for instance state that differs between instances of a component or sub-component\n     *      (can move to didInitAttrs to fix this)\n     *  - When templates for individual items vary widely or are based on conditionals that are likely to change\n     *      (i.e. would defeat any benefits of DOM recycling anyway)\n     *\n     * @property shouldRecycle\n     * @type Boolean\n     */\n    shouldRecycle: true,\n    /*\n     * A selector string that will select the element from\n     * which to calculate the viewable height and needed offsets.\n     *\n     * This element will also have the `scroll` event handler added to it.\n     *\n     * Usually this element will be the component's immediate parent element,\n     * if so, you can leave this null.\n     *\n     * Set this to \"body\" to scroll the entire web page.\n     */\n    containerSelector: '*',\n    // –––––––––––––– Performance Tuning\n    /**\n     * The amount of extra items to keep visible on either side of the viewport -- must be greater than 0.\n     * Increasing this value is useful when doing infinite scrolling and loading data from a remote service,\n     * with the desire to allow records to show as the user scrolls and the backend API takes time to respond.\n     *\n     * @property bufferSize\n     * @type Number\n     * @default 1\n     */\n    bufferSize: 1,\n    // –––––––––––––– Initial Scroll State\n    /**\n     * If set, upon initialization the scroll\n     * position will be set such that the item\n     * with the provided id is at the top left\n     * on screen.\n     *\n     * If the item cannot be found, scrollTop\n     * is set to 0.\n     * @property idForFirstItem\n     */\n    idForFirstItem: null,\n    /**\n     * If set, if scrollPosition is empty\n     * at initialization, the component will\n     * render starting at the bottom.\n     * @property renderFromLast\n     * @type Boolean\n     * @default false\n     */\n    renderFromLast: false,\n    /**\n     * If set to true, the collection will render all of the items passed into the component.\n     * This counteracts the performance benefits of using vertical collection, but has several potential applications,\n     * including but not limited to:\n     *\n     * - It allows for improved accessibility since all elements are rendered and can be picked up by a screen reader.\n     * - Can be applied in SEO solutions (i.e. fastboot) where rendering every item is desirable.\n     * - Can be used to respond to the keyboard input for Find (i.e. ctrl+F/cmd+F) to show all elements, which then\n     *    allows the list items to be searchable\n     *\n     * @property renderAll\n     * @type Boolean\n     * @default false\n     */\n    renderAll: false,\n    /**\n     * The tag name used in DOM elements before and after the rendered list. By default, it is set to\n     * 'occluded-content' to avoid any confusion with user's CSS settings. However, it could be\n     * overriden to provide custom behavior (for example, in table user wants to set it to 'tr' to\n     * comply with table semantics).\n     */\n    occlusionTagName: 'occluded-content',\n    isEmpty: (0, _computed.empty)('items'),\n    shouldYieldToInverse: (0, _computed.readOnly)('isEmpty'),\n    virtualComponents: (0, _object.computed)('items.[]', 'renderAll', 'estimateHeight', 'bufferSize', function () {\n      const {\n        _radar\n      } = this;\n      const items = this.items;\n      _radar.items = items === null || items === undefined ? [] : items;\n      _radar.estimateHeight = this.estimateHeight;\n      _radar.renderAll = this.renderAll;\n      _radar.bufferSize = this.bufferSize;\n      _radar.scheduleUpdate(true);\n      this._clearScheduledActions();\n      return _radar.virtualComponents;\n    }),\n    schedule(queueName, job) {\n      return _emberRafScheduler.scheduler.schedule(queueName, job, this.token);\n    },\n    _clearScheduledActions() {\n      clearTimeout(this._nextSendActions);\n      this._nextSendActions = null;\n      this._scheduledActions.length = 0;\n    },\n    _scheduleSendAction(action, index) {\n      this._scheduledActions.push([action, index]);\n      if (this._nextSendActions === null) {\n        this._nextSendActions = setTimeout(() => {\n          this._nextSendActions = null;\n          (0, _runloop.run)(() => {\n            const items = this.items;\n            const keyPath = this.key;\n            this._scheduledActions.forEach(_ref => {\n              let [action, index] = _ref;\n              const item = (0, _private.objectAt)(items, index);\n              const key = (0, _private.keyForItem)(item, keyPath, index);\n\n              // this.sendAction will be deprecated in ember 4.0\n              const _action = (0, _object.get)(this, action);\n              if (typeof _action == 'function') {\n                _action(item, index, key);\n              } else if (typeof _action === 'string') {\n                this.sendAction(action, item, index, key);\n              }\n            });\n            this._scheduledActions.length = 0;\n          });\n        });\n      }\n    },\n    /* Public API Methods\n       @index => number\n       This will return offset height of the indexed item.\n    */\n    scrollToItem(index) {\n      const {\n        _radar\n      } = this;\n      // Getting the offset height from Radar\n      let scrollTop = _radar.getOffsetForIndex(index);\n      _radar._scrollContainer.scrollTop = scrollTop;\n      // To scroll exactly to specified index, we are changing the prevIndex values to specified index\n      _radar._prevFirstVisibleIndex = _radar._prevFirstItemIndex = index;\n      // Components will be rendered after schedule 'measure' inside 'update' method.\n      // In our case, we need to focus the element after component is rendered. So passing the promise.\n      return new Promise(resolve => {\n        _radar.scheduleUpdate(false, resolve);\n      });\n    },\n    // –––––––––––––– Setup/Teardown\n    didInsertElement() {\n      this.schedule('sync', () => {\n        this._radar.start();\n      });\n    },\n    willDestroy() {\n      this.token.cancel();\n      this._radar.destroy();\n      let registerAPI = this.registerAPI;\n      if (registerAPI) {\n        registerAPI(null);\n      }\n      clearTimeout(this._nextSendActions);\n      if (true /* DEBUG */) {\n        if (this.__visualization) {\n          console.info('destroying visualization'); // eslint-disable-line no-console\n          this.__visualization.destroy();\n          this.__visualization = null;\n        }\n      }\n    },\n    init() {\n      this._super();\n      this.token = new _emberRafScheduler.Token();\n      const RadarClass = this.staticHeight ? _private.StaticRadar : _private.DynamicRadar;\n      const items = this.items || [];\n      const {\n        bufferSize,\n        containerSelector,\n        estimateHeight,\n        initialRenderCount,\n        renderAll,\n        renderFromLast,\n        shouldRecycle,\n        occlusionTagName,\n        idForFirstItem,\n        key\n      } = this;\n      const startingIndex = calculateStartingIndex(items, idForFirstItem, key, renderFromLast);\n      this._radar = new RadarClass(this.token, {\n        bufferSize,\n        containerSelector,\n        estimateHeight,\n        initialRenderCount,\n        items,\n        key,\n        renderAll,\n        renderFromLast,\n        shouldRecycle,\n        startingIndex,\n        occlusionTagName\n      });\n      this._prevItemsLength = 0;\n      this._prevFirstKey = null;\n      this._prevLastKey = null;\n      this._hasAction = null;\n      this._scheduledActions = [];\n      this._nextSendActions = null;\n      let a = !!this.lastReached;\n      let b = !!this.firstReached;\n      let c = !!this.lastVisibleChanged;\n      let d = !!this.firstVisibleChanged;\n      let any = a || b || c || d;\n      if (any) {\n        this._hasAction = {\n          lastReached: a,\n          firstReached: b,\n          lastVisibleChanged: c,\n          firstVisibleChanged: d\n        };\n        this._radar.sendAction = (action, index) => {\n          if (this._hasAction[action]) {\n            this._scheduleSendAction(action, index);\n          }\n        };\n      }\n\n      /* Public methods to Expose to parent\n        \n        Usage:\n         Template:\n         <VerticalCollection @registerAPI={{action \"registerAPI\"}} />\n         Component:\n        \n        export default Component.extend({\n          actions: {\n            registerAPI(api) {\n                this.set('collectionAPI', api);\n            }\n          },\n          scrollToItem() {\n            let collectionAPI = this.collectionAPI;\n            collectionAPI.scrollToItem(index);\n          }\n        });\n          \n        Need to pass this property in the vertical-collection template\n        Listen in the component actions and do your custom logic\n         This API will have below methods.\n          1. scrollToItem\n      */\n\n      let registerAPI = (0, _object.get)(this, 'registerAPI');\n      if (registerAPI) {\n        /* List of methods to be exposed to public should be added here */\n        let publicAPI = {\n          scrollToItem: this.scrollToItem.bind(this)\n        };\n        registerAPI(publicAPI);\n      }\n      if (true /* DEBUG */) {\n        this.__visualization = null;\n        this._radar._debugDidUpdate = () => {\n          // Update visualization\n          //\n          // This debugging mode can be controlled via the argument\n          // `@debugVis={{true}}` at component invocation.\n          //\n          if (this.debugVis !== true) {\n            if (this.__visualization !== null) {\n              console.info('tearing down existing visualization'); // eslint-disable-line no-console\n              this.__visualization.destroy();\n              this.__visualization = null;\n            }\n            return;\n          }\n          if (this.__visualization === null) {\n            this.__visualization = new Visualization(this._radar);\n          }\n          this.__visualization.render();\n\n          // Detect issues with CSS\n          //\n          // This debugging mode can be controlled via the argument\n          // `@debugCSS={{true}}` at component invocation.\n          //\n          if (this.debugCSS !== true) {\n            return;\n          }\n          let radar = this._radar;\n          let styles;\n\n          // check telescope\n          if (radar.scrollContainer !== _private.ViewportContainer) {\n            styles = window.getComputedStyle(radar.scrollContainer);\n          } else {\n            styles = window.getComputedStyle(document.body);\n          }\n          (true && !(styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])) && (0, _debug.assert)(`scrollContainer cannot be inline.`, styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])));\n          (true && !(styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])) && (0, _debug.assert)(`scrollContainer must define position`, styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])));\n          (true && !(hasStyleWithNonZeroValue(styles, 'height') || hasStyleWithNonZeroValue(styles, 'max-height')) && (0, _debug.assert)(`scrollContainer must define height or max-height`, hasStyleWithNonZeroValue(styles, 'height') || hasStyleWithNonZeroValue(styles, 'max-height'))); // conditional perf check for non-body scrolling\n          if (radar.scrollContainer !== _private.ViewportContainer) {\n            (true && !(hasStyleValue(styles, 'overflow-y', 'scroll') || hasStyleValue(styles, 'overflow', 'scroll')) && (0, _debug.assert)(`scrollContainer must define overflow-y`, hasStyleValue(styles, 'overflow-y', 'scroll') || hasStyleValue(styles, 'overflow', 'scroll')));\n          }\n\n          // check itemContainer\n          styles = window.getComputedStyle(radar.itemContainer);\n          (true && !(styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])) && (0, _debug.assert)(`itemContainer cannot be inline.`, styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])));\n          (true && !(styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])) && (0, _debug.assert)(`itemContainer must define position`, styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute']))); // check item defaults\n          (true && !(this.items.length) && (0, _debug.assert)(`You must supply at least one item to the collection to debug it's CSS.`, this.items.length));\n          let element = radar._itemContainer.firstElementChild;\n          styles = window.getComputedStyle(element);\n          (true && !(styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])) && (0, _debug.assert)(`Item cannot be inline.`, styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])));\n          (true && !(styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])) && (0, _debug.assert)(`Item must define position`, styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])));\n        };\n      }\n    }\n  });\n  function calculateStartingIndex(items, idForFirstItem, key, renderFromLast) {\n    const totalItems = (0, _object.get)(items, 'length');\n    let startingIndex = 0;\n    if (idForFirstItem !== undefined && idForFirstItem !== null) {\n      for (let i = 0; i < totalItems; i++) {\n        if ((0, _private.keyForItem)((0, _private.objectAt)(items, i), key, i) === idForFirstItem) {\n          startingIndex = i;\n          break;\n        }\n      }\n    } else if (renderFromLast === true) {\n      // If no id was set and `renderFromLast` is true, start from the bottom\n      startingIndex = totalItems - 1;\n    }\n    return startingIndex;\n  }\n  var _default = _exports.default = VerticalCollection;\n});","define(\"@html-next/vertical-collection/components/vertical-collection/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.virtualComponents key=\"id\" as |virtualComponent| ~}}\n    {{~unbound virtualComponent.upperBound~}}\n    {{~#if virtualComponent.isOccludedContent ~}}\n      {{{unbound virtualComponent.element}}}\n    {{~else~}}\n      {{~yield virtualComponent.content virtualComponent.index ~}}\n    {{~/if~}}\n    {{~unbound virtualComponent.lowerBound~}}\n  {{~/each}}\n  \n  {{#if this.shouldYieldToInverse}}\n    {{yield to=\"inverse\"}}\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"JTfU4LBg\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"virtualComponents\\\"]]],null]],null],\\\"id\\\",[[[1,[28,[35,2],[[30,1,[\\\"upperBound\\\"]]],null]],[41,[30,1,[\\\"isOccludedContent\\\"]],[[[2,[28,[37,2],[[30,1,[\\\"element\\\"]]],null]]],[]],[[[18,2,[[30,1,[\\\"content\\\"]],[30,1,[\\\"index\\\"]]]]],[]]],[1,[28,[35,2],[[30,1,[\\\"lowerBound\\\"]]],null]]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"shouldYieldToInverse\\\"]],[[[1,\\\"  \\\"],[18,3,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"virtualComponent\\\",\\\"&default\\\",\\\"&else\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"unbound\\\",\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"@html-next/vertical-collection/components/vertical-collection/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-array-fns/helpers/array-concat\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayConcat = arrayConcat;\n  _exports.default = void 0;\n  /**\n   * Perform concatenation of two or more arrays.\n   *\n   * @public\n   * @function arrayConcat\n   * @param {...Object[]} arrays The arrays.\n   * @returns {Object[]} The concatenated array.\n   */\n  function arrayConcat(_ref) {\n    let [...arrays] = _ref;\n    return arrays.reduce((accumulator, array) => {\n      if (Array.isArray(array)) {\n        return accumulator.concat(array);\n      } else {\n        return accumulator;\n      }\n    }, []);\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayConcat);\n});","define(\"ember-array-fns/helpers/array-every\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayEvery = arrayEvery;\n  _exports.default = void 0;\n  /**\n   * Perform every of array by function.\n   *\n   * @public\n   * @function arrayEvery\n   * @param {Object[]} array The array.\n   * @param {Function} fn The comparison function.\n   * @returns {boolean} True if all matches are found.\n   */\n  function arrayEvery(_ref) {\n    let [array, fn] = _ref;\n    if (Array.isArray(array)) {\n      return array.every(fn);\n    }\n    return false;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayEvery);\n});","define(\"ember-array-fns/helpers/array-filter\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayFilter = arrayFilter;\n  _exports.default = void 0;\n  /**\n   * Perform filter of array by function.\n   *\n   * @public\n   * @function arrayFilter\n   * @param {Object[]} array The array.\n   * @param {Function} fn The comparison function.\n   * @returns {Object[]} The filtered array.\n   */\n  function arrayFilter(_ref) {\n    let [array, fn] = _ref;\n    if (Array.isArray(array)) {\n      return array.filter(fn);\n    }\n    return [];\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayFilter);\n});","define(\"ember-array-fns/helpers/array-find-index\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayFindIndex = arrayFindIndex;\n  _exports.default = void 0;\n  /**\n   * Perform find of array by function returning the index of the found element.\n   *\n   * @public\n   * @function arrayFindIndex\n   * @param {Object[]} array The array.\n   * @param {Function} fn The comparison function.\n   * @returns {number} Zero based index of the found element else -1.\n   */\n  function arrayFindIndex(_ref) {\n    let [array, fn] = _ref;\n    if (Array.isArray(array)) {\n      return array.findIndex(fn);\n    }\n    return -1;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayFindIndex);\n});","define(\"ember-array-fns/helpers/array-find\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayFind = arrayFind;\n  _exports.default = void 0;\n  /**\n   * Perform find of array by function.\n   *\n   * @public\n   * @function arrayFind\n   * @param {Object[]} array The array.\n   * @param {Function} fn The comparison function.\n   * @returns {Object} The found element else undefined.\n   */\n  function arrayFind(_ref) {\n    let [array, fn] = _ref;\n    if (Array.isArray(array)) {\n      return array.find(fn);\n    }\n    return undefined;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayFind);\n});","define(\"ember-array-fns/helpers/array-includes\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayIncludes = arrayIncludes;\n  _exports.default = void 0;\n  /**\n   * Determine if item is in array.\n   *\n   * @public\n   * @function arrayIncludes\n   * @param {Object[]} array The array.\n   * @param {string} element The element to locate.\n   * @returns {boolean} True if element is found in array.\n   */\n  function arrayIncludes(_ref) {\n    let [array, element] = _ref;\n    if (Array.isArray(array)) {\n      return array.includes(element);\n    }\n    return false;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayIncludes);\n});","define(\"ember-array-fns/helpers/array-index-of\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayIndexOf = arrayIndexOf;\n  _exports.default = void 0;\n  /**\n   * Locate first index of element in array.\n   *\n   * @public\n   * @function arrayIndexOf\n   * @param {Object[]} array The array.\n   * @param {string} element The element to locate.\n   * @returns {number} Zero based index of first item if found else -1.\n   */\n  function arrayIndexOf(_ref) {\n    let [array, element] = _ref;\n    if (Array.isArray(array)) {\n      return array.indexOf(element);\n    }\n    return -1;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayIndexOf);\n});","define(\"ember-array-fns/helpers/array-is-array\", [\"exports\", \"@ember/array\", \"@ember/component/helper\"], function (_exports, _array, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayIsArray = arrayIsArray;\n  _exports.default = void 0;\n  /**\n   * Determine if an array.\n   *\n   * @public\n   * @function arrayIsArray\n   * @param {Object[]} array The array.\n   * @returns {boolean} True if an array.\n   */\n  function arrayIsArray(_ref) {\n    let [array] = _ref;\n    return (0, _array.isArray)(array);\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayIsArray);\n});","define(\"ember-array-fns/helpers/array-is-first-element\", [\"exports\", \"@ember/array\", \"@ember/component/helper\"], function (_exports, _array, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayIsFirstElement = arrayIsFirstElement;\n  _exports.default = void 0;\n  /**\n   * Determine if element is first in array.\n   *\n   * @public\n   * @function arrayIsFirstElement\n   * @param {Object[]} array The array to check.\n   * @param {Object} element The item to compare.\n   * @returns {boolean} True if element is first.\n   */\n  function arrayIsFirstElement(_ref) {\n    let [array, element] = _ref;\n    let result = false;\n\n    // array and element are required\n    if ((0, _array.isArray)(array) && array.length && element) {\n      // if first element\n      result = array[0] === element;\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayIsFirstElement);\n});","define(\"ember-array-fns/helpers/array-is-last-element\", [\"exports\", \"@ember/array\", \"@ember/component/helper\"], function (_exports, _array, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayIsLastElement = arrayIsLastElement;\n  _exports.default = void 0;\n  /**\n   * Determine if element is last in array.\n   *\n   * @public\n   * @function arrayIsLastElement\n   * @param {Object[]} array The array to check.\n   * @param {Object} element The item to compare.\n   * @returns {boolean} True if element is last.\n   */\n  function arrayIsLastElement(_ref) {\n    let [array, element] = _ref;\n    let result = false;\n\n    // array and element are required\n    if ((0, _array.isArray)(array) && array.length && element) {\n      // if last element\n      result = array[array.length - 1] === element;\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayIsLastElement);\n});","define(\"ember-array-fns/helpers/array-join\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayJoin = arrayJoin;\n  _exports.default = void 0;\n  /**\n   * Join an array by a string delimiter.\n   *\n   * @public\n   * @function arrayJoin\n   * @param {Object[]} array The array.\n   * @param {string} delimiter The string join delimiter.\n   * @returns {string} The joined string.\n   */\n  function arrayJoin(_ref) {\n    let [array, delimiter] = _ref;\n    if (Array.isArray(array)) {\n      return array.join(delimiter);\n    }\n    return '';\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayJoin);\n});","define(\"ember-array-fns/helpers/array-last-index-of\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayLastIndexOf = arrayLastIndexOf;\n  _exports.default = void 0;\n  /**\n   * Locate last index of element in array.\n   *\n   * @public\n   * @function arrayLastIndexOf\n   * @param {Object[]} array The array.\n   * @param {string} element The element to locate.\n   * @returns {number} Zero based index of last item if found else -1.\n   */\n  function arrayLastIndexOf(_ref) {\n    let [array, element] = _ref;\n    if (Array.isArray(array)) {\n      return array.lastIndexOf(element);\n    }\n    return -1;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayLastIndexOf);\n});","define(\"ember-array-fns/helpers/array-map\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayMap = arrayMap;\n  _exports.default = void 0;\n  /**\n   * Perform map of array by function.\n   *\n   * @public\n   * @function arrayMap\n   * @param {Object[]} array The array.\n   * @param {Function} fn The comparison function.\n   * @returns {Object[]} The new array of mapped elements.\n   */\n  function arrayMap(_ref) {\n    let [array, fn] = _ref;\n    if (Array.isArray(array)) {\n      return array.map(fn);\n    }\n    return [];\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayMap);\n});","define(\"ember-array-fns/helpers/array-reduce\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayReduce = arrayReduce;\n  _exports.default = void 0;\n  /**\n   * Perform reduce of array by function.\n   *\n   * @public\n   * @function arrayReduce\n   * @param {Object[]} array The array.\n   * @param {Function} fn The comparison function.\n   * @param {Object} accumulator The accumlator.\n   * @returns {Object} The reduced object.\n   */\n  function arrayReduce(_ref) {\n    let [array, fn, accumulator] = _ref;\n    if (Array.isArray(array)) {\n      return array.reduce(fn, accumulator);\n    }\n    return [];\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayReduce);\n});","define(\"ember-array-fns/helpers/array-reverse\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arrayReverse = arrayReverse;\n  _exports.default = void 0;\n  /**\n   * Perform reverse of array.\n   *\n   * @public\n   * @function arrayReverse\n   * @param {Object[]} array The array.\n   * @returns {Object[]} The reversed array.\n   */\n  function arrayReverse(_ref) {\n    let [array] = _ref;\n    if (Array.isArray(array)) {\n      return array.reverse();\n    }\n    return [];\n  }\n  var _default = _exports.default = (0, _helper.helper)(arrayReverse);\n});","define(\"ember-array-fns/helpers/array-slice\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arraySlice = arraySlice;\n  _exports.default = void 0;\n  /**\n   * Perform slice of array.\n   *\n   * @public\n   * @function arraySlice\n   * @param {Object[]} array The array.\n   * @param {number} beginIndex The beginning index.\n   * @param {number} endIndex The optional end index.\n   * @returns {Object[]} The sliced array.\n   */\n  function arraySlice(_ref) {\n    let [array, beginIndex, endIndex] = _ref;\n    let result;\n    if (Array.isArray(array)) {\n      if (endIndex === undefined) {\n        result = array.slice(beginIndex);\n      } else {\n        result = array.slice(beginIndex, endIndex);\n      }\n    } else {\n      result = [];\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arraySlice);\n});","define(\"ember-array-fns/helpers/array-some\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arraySome = arraySome;\n  _exports.default = void 0;\n  /**\n   * Perform some of array by function.\n   *\n   * @public\n   * @function arraySome\n   * @param {Object[]} array The array.\n   * @param {Function} fn The comparison function.\n   * @returns {boolean} True if at least one match is found.\n   */\n  function arraySome(_ref) {\n    let [array, fn] = _ref;\n    if (Array.isArray(array)) {\n      return array.some(fn);\n    }\n    return false;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arraySome);\n});","define(\"ember-array-fns/helpers/array-sort\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arraySort = arraySort;\n  _exports.default = void 0;\n  /**\n   * Perform sort of array by function.\n   *\n   * @public\n   * @function arraySort\n   * @param {Object[]} array The array.\n   * @param {Function} fn The comparison function.\n   * @returns {Object[]} The sorted array\n   */\n  function arraySort(_ref) {\n    let [array, fn] = _ref;\n    if (Array.isArray(array)) {\n      return array.sort(fn);\n    }\n    return [];\n  }\n  var _default = _exports.default = (0, _helper.helper)(arraySort);\n});","define(\"ember-array-fns/helpers/array-splice\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.arraySplice = arraySplice;\n  _exports.default = void 0;\n  /**\n   * Perform splice of array.\n   *\n   * @public\n   * @function arraySplice\n   * @param {Object[]} array The array.\n   * @param {number} beginIndex The beginning index.\n   * @param {number} deleteCount The delete count.\n   * @param {...Object} elements The optional elements\n   * @returns {Object[]} The spliced array.\n   */\n  function arraySplice(_ref) {\n    let [array, beginIndex, deleteCount, ...elements] = _ref;\n    let result;\n    if (Array.isArray(array)) {\n      if (deleteCount === undefined) {\n        result = array.splice(deleteCount);\n      } else if (elements.length === 0) {\n        result = array.splice(beginIndex, deleteCount);\n      } else {\n        result = array.splice(beginIndex, deleteCount, ...elements);\n      }\n    } else {\n      result = [];\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(arraySplice);\n});","define(\"ember-cached-decorator-polyfill/index\", [\"exports\", \"@glimmer/tracking/primitives/cache\", \"@ember/debug\"], function (_exports, _cache, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.cached = cached;\n  function cached() {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    const [target, key, descriptor] = args;\n\n    // Error on `@cached()`, `@cached(...args)`, and `@cached propName = value;`\n    (true && !(target !== undefined) && (0, _debug.assert)('You attempted to use @cached(), which is not necessary nor supported. Remove the parentheses and you will be good to go!', target !== undefined));\n    (true && !(typeof target === 'object' && typeof key === 'string' && typeof descriptor === 'object' && args.length === 3) && (0, _debug.assert)(`You attempted to use @cached on with ${args.length > 1 ? 'arguments' : 'an argument'} ( @cached(${args.map(d => `'${d}'`).join(', ')}), which is not supported. Dependencies are automatically tracked, so you can just use ${'`@cached`'}`, typeof target === 'object' && typeof key === 'string' && typeof descriptor === 'object' && args.length === 3));\n    (true && !(typeof descriptor.get == 'function') && (0, _debug.assert)(`The @cached decorator must be applied to getters. '${key}' is not a getter.`, typeof descriptor.get == 'function'));\n    const caches = new WeakMap();\n    const getter = descriptor.get;\n    descriptor.get = function () {\n      if (!caches.has(this)) caches.set(this, (0, _cache.createCache)(getter.bind(this)));\n      return (0, _cache.getValue)(caches.get(this));\n    };\n  }\n});","define(\"ember-cli-app-version/initializer-factory\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = initializerFactory;\n  function initializerFactory(name, version) {\n    let registered = false;\n    return function () {\n      if (!registered && name && version) {\n        _metal.libraries.register(name, version);\n        registered = true;\n      }\n    };\n  }\n});","define(\"ember-cli-app-version/utils/regexp\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.versionRegExp = _exports.versionExtendedRegExp = _exports.shaRegExp = void 0;\n  const versionRegExp = _exports.versionRegExp = /\\d+[.]\\d+[.]\\d+/; // Match any number of 3 sections of digits separated by .\n  const versionExtendedRegExp = _exports.versionExtendedRegExp = /\\d+[.]\\d+[.]\\d+-[a-z]*([.]\\d+)?/; // Match the above but also hyphen followed by any number of lowercase letters, then optionally period and digits\n  const shaRegExp = _exports.shaRegExp = /[a-z\\d]{8}$/; // Match 8 lowercase letters and digits, at the end of the string only (to avoid matching with version extended part)\n});","define(\"ember-cli-deprecation-workflow/index\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = setupDeprecationWorkflow;\n  _exports.deprecationCollector = deprecationCollector;\n  _exports.detectWorkflow = detectWorkflow;\n  _exports.flushDeprecations = flushDeprecations;\n  _exports.handleDeprecationWorkflow = handleDeprecationWorkflow;\n  const LOG_LIMIT = 100;\n  function setupDeprecationWorkflow(config) {\n    self.deprecationWorkflow = self.deprecationWorkflow || {};\n    self.deprecationWorkflow.deprecationLog = {\n      messages: new Set()\n    };\n    (0, _debug.registerDeprecationHandler)((message, options, next) => handleDeprecationWorkflow(config, message, options, next));\n    (0, _debug.registerDeprecationHandler)(deprecationCollector);\n    self.deprecationWorkflow.flushDeprecations = options => flushDeprecations({\n      config,\n      ...options\n    });\n  }\n  function matchesWorkflow(matcher, value) {\n    return typeof matcher === 'string' && matcher === value || matcher instanceof RegExp && matcher.exec(value);\n  }\n  function detectWorkflow(config, message, options) {\n    if (!config || !config.workflow) {\n      return;\n    }\n    let i, workflow, 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      if (matchesWorkflow(idMatcher, options === null || options === void 0 ? void 0 : options.id) || matchesWorkflow(matcher, message)) {\n        return workflow;\n      }\n    }\n  }\n  function flushDeprecations() {\n    var _config$workflow;\n    let {\n      handler = 'silence',\n      config = {}\n    } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    let messages = self.deprecationWorkflow.deprecationLog.messages;\n    let existing = (_config$workflow = config.workflow) !== null && _config$workflow !== void 0 ? _config$workflow : [];\n    let collected = messages.values().filter(matchId => !existing.some(entry => entry.matchId === matchId)).map(matchId => ({\n      handler,\n      matchId\n    }));\n    let mergedConfig = {\n      ...config,\n      workflow: [...existing, ...collected]\n    };\n    return `import setupDeprecationWorkflow from 'ember-cli-deprecation-workflow';\n\nsetupDeprecationWorkflow(${JSON.stringify(mergedConfig, undefined, 2)});`;\n  }\n  function handleDeprecationWorkflow(config, message, options, next) {\n    let 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          {\n            let key = options && options.id || message;\n            if (!self.deprecationWorkflow.logCounts) {\n              self.deprecationWorkflow.logCounts = {};\n            }\n            let count = self.deprecationWorkflow.logCounts[key] || 0;\n            self.deprecationWorkflow.logCounts[key] = ++count;\n            if (count <= LOG_LIMIT) {\n              console.warn('DEPRECATION: ' + message);\n              if (count === LOG_LIMIT) {\n                console.warn('To avoid console overflow, this deprecation will not be logged any more in this run.');\n              }\n            }\n            break;\n          }\n        case 'throw':\n          throw new Error(message + ` (id: ${(options === null || options === void 0 ? void 0 : options.id) || 'unknown'})`);\n        default:\n          next(message, options);\n          break;\n      }\n    }\n  }\n  function deprecationCollector(message, options, next) {\n    self.deprecationWorkflow.deprecationLog.messages.add(options.id);\n    next(message, options);\n  }\n});","define(\"ember-collection/components/ember-collection\", [\"exports\", \"@ember/array\", \"@ember/component\", \"@ember/object\", \"ember-collection/components/ember-collection/template\", \"ember-collection/utils/identity\", \"ember-collection/utils/needs-revalidate\"], function (_exports, _array, _component, _object, _template, _identity, _needsRevalidate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _obj;\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  class Cell {\n    constructor(key, item, index, style) {\n      this.key = key;\n      this.hidden = false;\n      this.item = item;\n      this.index = index;\n      this.style = style;\n    }\n  }\n  function noop() {}\n  var _default = _exports.default = _component.default.extend((_obj = {\n    layout: _template.default,\n    init() {\n      // State pulled from attrs is prefixed with an underscore\n      // so that there's no chance of shadowing the attrs proxy.\n      this._buffer = undefined;\n      this._cellLayout = undefined;\n      this._rawItems = undefined;\n      this._items = undefined;\n      this._scrollLeft = undefined;\n      this._scrollTop = undefined;\n      this._clientWidth = undefined;\n      this._clientHeight = undefined;\n      this._contentSize = undefined;\n\n      // this.firstCell = undefined;\n      // this.lastCell = undefined;\n      // this.cellCount = undefined;\n      this.contentElement = undefined;\n      this._cells = (0, _array.A)();\n      this._cellMap = Object.create(null);\n\n      // TODO: Super calls should always be at the top of the constructor.\n      // I had to move the super call after the properties were defined to\n      // work around what I believe is a bug in the attrs proxy. The problem\n      // seems to arise when you:\n      //\n      //   1. Call this._super() immediately.\n      //   2. Set a property on `this` that is both not in the\n      //      initial attrs hash and not on the prototype.\n      this._super();\n\n      // initialize from passed in attrs\n      let buffer = this.getAttr('buffer'); // getIntAttr('buffer', 5)\n      this._buffer = typeof buffer === 'number' ? buffer : 5;\n      this._scrollLeft = this.getAttr('scroll-left') | 0;\n      this._scrollTop = this.getAttr('scroll-top') | 0;\n      this._clientWidth = this.getAttr('estimated-width') | 0;\n      this._clientHeight = this.getAttr('estimated-height') | 0;\n      this._scrollChange = this.getAttr('scroll-change');\n    },\n    _needsRevalidate() {\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n      if (this._isGlimmer2()) {\n        this.rerender();\n      } else {\n        (0, _needsRevalidate.default)(this);\n      }\n    },\n    didReceiveAttrs() {\n      // Work around emberjs/ember.js#11992. Affects <=1.13.8 and <=2.0.0.\n      // This will likely be patched in 1.13.9 and 2.0.1.\n      this._super();\n      this.updateItems();\n      this.updateScrollPosition();\n    },\n    willDestroyElement() {\n      if (this._items && this._items.removeArrayObserver) {\n        this._items.removeArrayObserver(this, {\n          willChange: noop,\n          didChange: '_needsRevalidate'\n        });\n      }\n    },\n    updateItems() {\n      this._cellLayout = this.getAttr('cell-layout');\n      var rawItems = this.getAttr('items');\n      if (this._rawItems !== rawItems) {\n        if (this._items && this._items.removeArrayObserver) {\n          this._items.removeArrayObserver(this, {\n            willChange: noop,\n            didChange: '_needsRevalidate'\n          });\n        }\n        this._rawItems = rawItems;\n        var items = (0, _array.A)(rawItems);\n        this.set('_items', items);\n        if (items && items.addArrayObserver) {\n          items.addArrayObserver(this, {\n            willChange: noop,\n            didChange: '_needsRevalidate'\n          });\n        }\n      }\n    },\n    updateScrollPosition() {\n      if (!this._scrollChange) {\n        return;\n      } // don't process bound scroll coords unless our action is being handled\n      let scrollLeftAttr = this.getAttr('scroll-left');\n      if (scrollLeftAttr !== undefined) {\n        scrollLeftAttr = parseInt(scrollLeftAttr, 10);\n        if (this._scrollLeft !== scrollLeftAttr) {\n          this.set('_scrollLeft', scrollLeftAttr);\n        }\n      }\n      let scrollTopAttr = this.getAttr('scroll-top');\n      if (scrollTopAttr !== undefined) {\n        scrollTopAttr = parseInt(scrollTopAttr, 10);\n        if (this._scrollTop !== scrollTopAttr) {\n          // console.log('updateScrollPosition', this._scrollTop, scrollTopAttr);\n          this.set('_scrollTop', scrollTopAttr);\n        }\n      }\n    },\n    updateContentSize() {\n      var cellLayout = this._cellLayout;\n      var contentSize = cellLayout.contentSize(this._clientWidth, this._clientHeight);\n      if (this._contentSize === undefined || contentSize.width !== this._contentSize.width || contentSize.height !== this._contentSize.height) {\n        this.set('_contentSize', contentSize);\n      }\n    },\n    willRender: function () {\n      this.updateCells();\n      this.updateContentSize();\n    },\n    updateCells() {\n      if (!this._items) {\n        return;\n      }\n      const numItems = (0, _object.get)(this._items, 'length');\n      if (this._cellLayout.length !== numItems) {\n        this._cellLayout.length = numItems;\n      }\n      var priorMap = this._cellMap;\n      var cellMap = Object.create(null);\n      var index = this._cellLayout.indexAt(this._scrollLeft, this._scrollTop, this._clientWidth, this._clientHeight);\n      var count = this._cellLayout.count(this._scrollLeft, this._scrollTop, this._clientWidth, this._clientHeight);\n      var items = this._items;\n      var bufferBefore = Math.min(index, this._buffer);\n      index -= bufferBefore;\n      count += bufferBefore;\n      count = Math.min(count + this._buffer, (0, _object.get)(items, 'length') - index);\n      var i, style, itemIndex, itemKey, cell;\n      var newItems = [];\n      for (i = 0; i < count; i++) {\n        itemIndex = index + i;\n        itemKey = (0, _identity.default)(items.objectAt(itemIndex));\n        if (priorMap) {\n          cell = priorMap[itemKey];\n        }\n        if (cell) {\n          style = this._cellLayout.formatItemStyle(itemIndex, this._clientWidth, this._clientHeight);\n          (0, _object.set)(cell, 'style', style);\n          (0, _object.set)(cell, 'hidden', false);\n          (0, _object.set)(cell, 'key', itemKey);\n          (0, _object.set)(cell, 'index', itemIndex);\n          cellMap[itemKey] = cell;\n        } else {\n          newItems.push(itemIndex);\n        }\n      }\n      for (i = 0; i < this._cells.length; i++) {\n        cell = this._cells[i];\n        if (!cellMap[cell.key]) {\n          if (newItems.length) {\n            itemIndex = newItems.pop();\n            let item = items.objectAt(itemIndex);\n            itemKey = (0, _identity.default)(item);\n            style = this._cellLayout.formatItemStyle(itemIndex, this._clientWidth, this._clientHeight);\n            (0, _object.set)(cell, 'style', style);\n            (0, _object.set)(cell, 'key', itemKey);\n            (0, _object.set)(cell, 'index', itemIndex);\n            (0, _object.set)(cell, 'item', item);\n            (0, _object.set)(cell, 'hidden', false);\n            cellMap[itemKey] = cell;\n          } else {\n            (0, _object.set)(cell, 'hidden', true);\n            (0, _object.set)(cell, 'style', 'height: 0; display: none;');\n          }\n        }\n      }\n      for (i = 0; i < newItems.length; i++) {\n        itemIndex = newItems[i];\n        let item = items.objectAt(itemIndex);\n        itemKey = (0, _identity.default)(item);\n        style = this._cellLayout.formatItemStyle(itemIndex, this._clientWidth, this._clientHeight);\n        cell = new Cell(itemKey, item, itemIndex, style);\n        cellMap[itemKey] = cell;\n        this._cells.pushObject(cell);\n      }\n      this._cellMap = cellMap;\n    },\n    _isGlimmer2() {\n      return !this._renderNode;\n    },\n    scrollChange(scrollLeft, scrollTop) {\n      if (this._scrollChange) {\n        this._scrollChange(scrollLeft, scrollTop);\n      } else {\n        if (scrollLeft !== this._scrollLeft || scrollTop !== this._scrollTop) {\n          (0, _object.set)(this, '_scrollLeft', scrollLeft);\n          (0, _object.set)(this, '_scrollTop', scrollTop);\n          this._needsRevalidate();\n        }\n      }\n    },\n    clientSizeChange(clientWidth, clientHeight) {\n      if (this._clientWidth !== clientWidth || this._clientHeight !== clientHeight) {\n        (0, _object.set)(this, '_clientWidth', clientWidth);\n        (0, _object.set)(this, '_clientHeight', clientHeight);\n        this._needsRevalidate();\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"scrollChange\", [_object.action], Object.getOwnPropertyDescriptor(_obj, \"scrollChange\"), _obj), _applyDecoratedDescriptor(_obj, \"clientSizeChange\", [_object.action], Object.getOwnPropertyDescriptor(_obj, \"clientSizeChange\"), _obj), _obj));\n});","define(\"ember-collection/components/ember-collection/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <EmberNativeScrollable @content-size={{this._contentSize}} @scroll-left={{this._scrollLeft}} @scroll-top={{this._scrollTop}} @scrollChange={{this.scrollChange}} @clientSizeChange={{this.clientSizeChange}}>\n    <div>\n      {{~#each this._cells as |cell|~}}\n        <div style={{{cell.style}}}>{{yield cell.item cell.index }}</div>\n      {{~/each~}}\n    </div>\n  </EmberNativeScrollable>\n  \n  */\n  {\n    \"id\": \"grcVxqOf\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@content-size\\\",\\\"@scroll-left\\\",\\\"@scroll-top\\\",\\\"@scrollChange\\\",\\\"@clientSizeChange\\\"],[[30,0,[\\\"_contentSize\\\"]],[30,0,[\\\"_scrollLeft\\\"]],[30,0,[\\\"_scrollTop\\\"]],[30,0,[\\\"scrollChange\\\"]],[30,0,[\\\"clientSizeChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[12],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"_cells\\\"]]],null]],null],null,[[[10,0],[22,5,[30,1,[\\\"style\\\"]]],[12],[18,2,[[30,1,[\\\"item\\\"]],[30,1,[\\\"index\\\"]]]],[13]],[1]],null],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[\\\"cell\\\",\\\"&default\\\"],false,[\\\"ember-native-scrollable\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-collection/components/ember-collection/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-collection/components/ember-native-scrollable\", [\"exports\", \"@ember/runloop\", \"@ember/component\", \"ember-collection/utils/translate\", \"ember-collection/utils/style-properties\"], function (_exports, _runloop, _component, _translate, _styleProperties) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const overflowScrollingProp = (0, _styleProperties.styleProperty)('overflowScrolling');\n  var _default = _exports.default = _component.default.extend({\n    init() {\n      this._clientWidth = 0;\n      this._clientHeight = 0;\n      this._scrollLeft = 0;\n      this._scrollTop = 0;\n      this._animationFrame = undefined;\n      this._super();\n    },\n    didReceiveAttrs() {\n      this._contentSize = this.getAttr('content-size');\n      this._scrollLeft = this.getAttr('scroll-left');\n      this._scrollTop = this.getAttr('scroll-top');\n    },\n    didInsertElement() {\n      this.contentElement = this.element.firstElementChild;\n      this.applyStyle();\n      this.applyContentSize();\n      this.syncScrollFromAttr();\n      this.startScrollCheck();\n    },\n    didUpdate() {\n      this.applyContentSize();\n      this.syncScrollFromAttr();\n    },\n    willDestroyElement() {\n      this.cancelScrollCheck();\n      this.contentElement = undefined;\n    },\n    applyStyle() {\n      if (overflowScrollingProp) {\n        this.element.style.overflow = 'scroll';\n        this.element.style[overflowScrollingProp] = 'touch';\n      } else {\n        this.element.style.overflow = 'auto';\n      }\n\n      // hack to force render buffer so outside doesn't repaint on scroll\n      (0, _translate.translate)(this.element, 0, 0);\n      this.element.style.position = 'absolute';\n      this.element.style.left = 0;\n      this.element.style.top = 0;\n      this.element.style.bottom = 0;\n      this.element.style.right = 0;\n    },\n    applyContentSize() {\n      this.contentElement.style.position = 'relative';\n      this.contentElement.style.width = this._contentSize.width + 'px';\n      this.contentElement.style.height = this._contentSize.height + 'px';\n    },\n    syncScrollFromAttr() {\n      if (this._appliedScrollTop !== this._scrollTop) {\n        this._appliedScrollTop = this._scrollTop;\n        if (this._scrollTop >= 0) {\n          this.element.scrollTop = this._scrollTop;\n        }\n      }\n      if (this._appliedScrollLeft !== this._scrollLeft) {\n        this._appliedScrollLeft = this._scrollLeft;\n        if (this._scrollLeft >= 0) {\n          this.element.scrollLeft = this._scrollLeft;\n        }\n      }\n    },\n    startScrollCheck() {\n      const component = this;\n      function step() {\n        component.scrollCheck();\n        nextStep();\n      }\n      function nextStep() {\n        if (window.requestAnimationFrame) {\n          component._animationFrame = requestAnimationFrame(step);\n        } else {\n          component._animationFrame = setTimeout(step, 16);\n        }\n      }\n      nextStep();\n    },\n    cancelScrollCheck() {\n      if (this._animationFrame) {\n        if (window.requestAnimationFrame) {\n          cancelAnimationFrame(this._animationFrame);\n        } else {\n          clearTimeout(this._animationFrame);\n        }\n        this._animationFrame = undefined;\n      }\n    },\n    scrollCheck() {\n      let element = this.element;\n      let scrollLeft = element.scrollLeft;\n      let scrollTop = element.scrollTop;\n      let scrollChanged = false;\n      if (scrollLeft !== this._appliedScrollLeft || scrollTop !== this._appliedScrollTop) {\n        scrollChanged = true;\n        this._appliedScrollLeft = scrollLeft;\n        this._appliedScrollTop = scrollTop;\n      }\n      let clientWidth = element.clientWidth;\n      let clientHeight = element.clientHeight;\n      let clientSizeChanged = false;\n      if (clientWidth !== this._clientWidth || clientHeight !== this._clientHeight) {\n        clientSizeChanged = true;\n        this._clientWidth = clientWidth;\n        this._clientHeight = clientHeight;\n      }\n      if (scrollChanged || clientSizeChanged) {\n        (0, _runloop.join)(this, function sendActionsFromScrollCheck() {\n          if (scrollChanged) {\n            this.scrollChange(scrollLeft, scrollTop);\n          }\n          if (clientSizeChanged) {\n            this.clientSizeChange(clientWidth, clientHeight);\n          }\n        });\n      }\n    }\n  });\n});","define(\"ember-collection/layouts/grid\", [\"exports\", \"layout-bin-packer/fixed-grid\", \"ember-collection/utils/style-generators\"], function (_exports, _fixedGrid, _styleGenerators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class Grid {\n    constructor(cellWidth, cellHeight) {\n      this.length = 0;\n      this.bin = new _fixedGrid.default(this, cellWidth, cellHeight);\n    }\n    contentSize(clientWidth /*, clientHeight*/) {\n      return {\n        width: clientWidth,\n        height: this.bin.height(clientWidth)\n      };\n    }\n    indexAt(offsetX, offsetY, width, height) {\n      return this.bin.visibleStartingIndex(offsetY, width, height);\n    }\n    positionAt(index, width /*,height*/) {\n      return this.bin.position(index, width);\n    }\n    widthAt(index) {\n      return this.bin.widthAtIndex(index);\n    }\n    heightAt(index) {\n      return this.bin.heightAtIndex(index);\n    }\n    count(offsetX, offsetY, width, height) {\n      return this.bin.numberVisibleWithin(offsetY, width, height, true);\n    }\n    formatItemStyle(itemIndex, clientWidth, clientHeight) {\n      let pos = this.positionAt(itemIndex, clientWidth, clientHeight);\n      let width = this.widthAt(itemIndex, clientWidth, clientHeight);\n      let height = this.heightAt(itemIndex, clientWidth, clientHeight);\n      return (0, _styleGenerators.formatPixelStyle)(pos, width, height);\n    }\n  }\n  _exports.default = Grid;\n});","define(\"ember-collection/layouts/mixed-grid\", [\"exports\", \"layout-bin-packer/shelf-first\", \"ember-collection/utils/style-generators\"], function (_exports, _shelfFirst, _styleGenerators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class MixedGrid {\n    constructor(content, width) {\n      this.content = content;\n      this.bin = new _shelfFirst.default(content, width);\n    }\n    contentSize(clientWidth /*, clientHeight*/) {\n      return {\n        width: clientWidth,\n        height: this.bin.height(clientWidth)\n      };\n    }\n    indexAt(offsetX, offsetY, width, height) {\n      return this.bin.visibleStartingIndex(offsetY, width, height);\n    }\n    positionAt(index, width, height) {\n      return this.bin.position(index, width, height);\n    }\n    widthAt(index) {\n      return this.bin.widthAtIndex(index);\n    }\n    heightAt(index) {\n      return this.bin.heightAtIndex(index);\n    }\n    count(offsetX, offsetY, width, height) {\n      return this.bin.numberVisibleWithin(offsetY, width, height, true);\n    }\n    formatItemStyle(itemIndex, clientWidth, clientHeight) {\n      let pos = this.positionAt(itemIndex, clientWidth, clientHeight);\n      let width = this.widthAt(itemIndex, clientWidth, clientHeight);\n      let height = this.heightAt(itemIndex, clientWidth, clientHeight);\n      return (0, _styleGenerators.formatPixelStyle)(pos, width, height);\n    }\n  }\n  _exports.default = MixedGrid;\n});","define(\"ember-collection/layouts/percentage-columns\", [\"exports\", \"@ember/debug\", \"layout-bin-packer/shelf-first\", \"ember-collection/utils/style-generators\"], function (_exports, _debug, _shelfFirst, _styleGenerators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class PercentageColumns {\n    // How this layout works is by creating a fake grid that is 100px wide.\n    // Each item's width is set to be the size of the column. The ShelfFirst lays out everything according to this fake grid.\n    // When ember-collection asks for the style in formatItemStyle we pull the percent property to use as the width.\n    constructor(itemCount, columns, height) {\n      let total = columns.reduce(function (a, b) {\n        return a + b;\n      });\n      // Assert that the columns add up to 100. We don't want to enforce that they are EXACTLY 100 in case the user wants to use percentages.\n      // for example [33.333, 66.666]\n      (true && !(total > 99 && total <= 100) && (0, _debug.assert)('All columns must total 100 ' + total, total > 99 && total <= 100));\n      let positions = [];\n      var ci = 0;\n      for (var i = 0; i < itemCount; i++) {\n        positions.push({\n          width: columns[ci],\n          height: height,\n          percent: columns[ci]\n        });\n        ci++;\n        if (ci >= columns.length) {\n          ci = 0;\n        }\n      }\n      this.positions = positions;\n      this.bin = new _shelfFirst.default(positions, 100);\n    }\n    contentSize(clientWidth /*, clientHeight*/) {\n      let size = {\n        width: clientWidth,\n        height: this.bin.height(100)\n      };\n      return size;\n    }\n    indexAt(offsetX, offsetY, width, height) {\n      return this.bin.visibleStartingIndex(offsetY, 100, height);\n    }\n    positionAt(index, width, height) {\n      return this.bin.position(index, 100, height);\n    }\n    widthAt(index) {\n      return this.bin.widthAtIndex(index);\n    }\n    heightAt(index) {\n      return this.bin.heightAtIndex(index);\n    }\n    count(offsetX, offsetY, width, height) {\n      return this.bin.numberVisibleWithin(offsetY, 100, height, true);\n    }\n    formatItemStyle(itemIndex, clientWidth, clientHeight) {\n      let pos = this.positionAt(itemIndex, 100, clientHeight);\n      let width = this.positions[itemIndex].percent;\n      let height = this.heightAt(itemIndex, 100, clientHeight);\n      let x = Math.floor(pos.x / 100 * clientWidth);\n      return (0, _styleGenerators.formatPercentageStyle)({\n        x: x,\n        y: pos.y\n      }, width, height);\n    }\n  }\n  _exports.default = PercentageColumns;\n});","define(\"ember-collection/utils/identity\", [\"exports\", \"@ember/object/internals\"], function (_exports, _internals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = identity;\n  function identity(item) {\n    let key;\n    let type = typeof item;\n    if (type === 'string' || type === 'number') {\n      key = item;\n    } else {\n      key = (0, _internals.guidFor)(item);\n    }\n    return key;\n  }\n});","define(\"ember-collection/utils/needs-revalidate\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = needsRevalidate;\n  function needsRevalidate(view) {\n    view._renderNode.isDirty = true;\n    view._renderNode.ownerNode.emberView.scheduleRevalidate(view._renderNode, view.toString(), 'rerendering via needsRevalidate');\n  }\n});","define(\"ember-collection/utils/style-generators\", [\"exports\", \"ember-collection/utils/translate\"], function (_exports, _translate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatPercentageStyle = formatPercentageStyle;\n  _exports.formatPixelStyle = formatPixelStyle;\n  function formatPixelStyle(pos, width, height) {\n    let css = 'position:absolute;top:0;left:0;';\n    css += (0, _translate.translateCSS)(pos.x, pos.y);\n    css += 'width:' + width + 'px;height:' + height + 'px;';\n    return css;\n  }\n  function formatPercentageStyle(pos, width, height) {\n    let css = 'position:absolute;top:0;left:0;';\n    css += (0, _translate.translateCSS)(pos.x, pos.y);\n    css += 'width:' + width + '%;height:' + height + 'px;';\n    return css;\n  }\n});","define(\"ember-collection/utils/style-properties\", [\"exports\", \"@ember/string\"], function (_exports, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.cssProperty = cssProperty;\n  _exports.styleProperty = styleProperty;\n  const stylePrefixes = ['webkit', 'Webkit', 'ms', 'Moz', 'O'];\n  const cssPrefixes = ['-webkit-', '-ms-', '-moz-', '-o-'];\n  const style = typeof document !== 'undefined' && document.documentElement && document.documentElement.style;\n  function findProperty(property, css) {\n    let prop = css ? (0, _string.camelize)(property) : property;\n    if (prop in style) {\n      return property;\n    }\n    let capitalized = (0, _string.capitalize)(prop);\n    for (let i = 0; i < stylePrefixes.length; i++) {\n      let prefixed = stylePrefixes[i] + capitalized;\n      if (prefixed in style) {\n        return css ? cssPrefixes[i] + property : prefixed;\n      }\n    }\n  }\n  function styleProperty(prop) {\n    return findProperty(prop, false);\n  }\n  function cssProperty(cssProp) {\n    return findProperty(cssProp, true);\n  }\n});","define(\"ember-collection/utils/translate\", [\"exports\", \"ember-collection/utils/style-properties\"], function (_exports, _styleProperties) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.translateCSS = _exports.translate = _exports.supports3D = _exports.supports2D = void 0;\n  _exports.translatePosition = translatePosition;\n  _exports.translatePositionCSS = translatePositionCSS;\n  _exports.translateTransform2D = translateTransform2D;\n  _exports.translateTransform2DCSS = translateTransform2DCSS;\n  _exports.translateTransform3D = translateTransform3D;\n  _exports.translateTransform3DCSS = translateTransform3DCSS;\n  const transformCSSProp = (0, _styleProperties.cssProperty)('transform');\n  const transformStyleProp = (0, _styleProperties.styleProperty)('transform');\n  const supports3D = _exports.supports3D = !!(0, _styleProperties.styleProperty)('perspectiveOrigin');\n  const supports2D = _exports.supports2D = !!transformStyleProp;\n  function translatePosition(el, x, y) {\n    el.style.left = x + 'px';\n    el.style.top = y + 'px';\n  }\n  function translateTransform2D(el, x, y) {\n    el.style[transformStyleProp] = matrix2D(x, y);\n  }\n  function translateTransform3D(el, x, y) {\n    el.style[transformStyleProp] = matrix3D(x, y);\n  }\n  function translatePositionCSS(x, y) {\n    return `left:${x}px;top:${y}px;`;\n  }\n  function translateTransform2DCSS(x, y) {\n    return `${transformCSSProp}:${matrix2D(x, y)};`;\n  }\n  function translateTransform3DCSS(x, y) {\n    return `${transformCSSProp}:${matrix3D(x, y)};`;\n  }\n  function matrix2D(x, y) {\n    return `matrix(1, 0, 0, 1, ${x}, ${y})`;\n  }\n  function matrix3D(x, y) {\n    return `matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, ${x}, ${y}, 0, 1)`;\n  }\n  const translate = _exports.translate = supports3D ? translateTransform3D : supports2D ? translateTransform2D : translatePosition;\n  const translateCSS = _exports.translateCSS = supports3D ? translateTransform3DCSS : supports2D ? translateTransform2DCSS : translatePositionCSS;\n});","define(\"ember-composable-helpers/-private/closure-action\", [\"exports\", \"ember\"], function (_exports, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    __loader\n  } = _ember.default;\n  let ClosureActionModule = {\n    ACTION: null\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  var _default = _exports.default = ClosureActionModule.ACTION;\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  function getValueArrayAndUseDeepEqualFromParams(params) {\n    let currentValue = params[0];\n    let array;\n    let useDeepEqual = false;\n    if (params.length === 2) {\n      array = params[1];\n    } else {\n      useDeepEqual = params[1];\n      array = params[2];\n    }\n    return {\n      currentValue,\n      array,\n      useDeepEqual\n    };\n  }\n});","define(\"ember-composable-helpers/helpers/append\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.append = append;\n  _exports.default = void 0;\n  function append(_ref) {\n    let [...arrays] = _ref;\n    return [].concat(...arrays);\n  }\n  var _default = _exports.default = (0, _helper.helper)(append);\n});","define(\"ember-composable-helpers/helpers/call\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.call = call;\n  _exports.default = void 0;\n  /**\n   * Calls a function passed within a template and returns its value.\n   * In order to pass arguments to the function being called, you must\n   * curry the function using the `fn` helper.\n   *\n   ```example\n      <div data-metrics={{call (fn this.myMetrics (hash item=@item))}}\n    ```\n   *\n   * @function apply\n   * @param {Array<Function>} fn - The function to be called\n   * @param {*=} thisArg - An optional `this` context\n   */\n  function call(_ref) {\n    let [fn, thisArg] = _ref;\n    if (fn) {\n      if (thisArg) {\n        return fn.apply(thisArg);\n      } else {\n        return fn();\n      }\n    }\n  }\n  var _default = _exports.default = _helper.default.helper(call);\n});","define(\"ember-composable-helpers/helpers/chunk\", [\"exports\", \"@ember/component/helper\", \"@ember/array\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _array, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.chunk = chunk;\n  _exports.default = void 0;\n  const {\n    max,\n    ceil\n  } = Math;\n  function chunk(num, array) {\n    let integer = parseInt(num, 10);\n    let size = max(integer, 0);\n    let length = 0;\n    if ((0, _array.isArray)(array)) {\n      length = array.length;\n    }\n    array = (0, _asArray.default)(array);\n    if (!length || size < 1) {\n      return [];\n    } else {\n      let index = 0;\n      let resultIndex = -1;\n      let result = new Array(ceil(length / size));\n      while (index < length) {\n        result[++resultIndex] = array.slice(index, index += size);\n      }\n      return result;\n    }\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n    let [num, array] = _ref;\n    return chunk(num, array);\n  });\n});","define(\"ember-composable-helpers/helpers/compact\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\", \"@ember/array\"], function (_exports, _helper, _utils, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.compact = compact;\n  _exports.default = void 0;\n  function compact(_ref) {\n    let [value] = _ref;\n    let array;\n    if (Array.isArray(value) || (0, _array.isArray)(value)) {\n      array = value;\n    } else {\n      array = [value];\n    }\n    return array.filter(item => (0, _utils.isPresent)(item));\n  }\n  var _default = _exports.default = (0, _helper.helper)(compact);\n});","define(\"ember-composable-helpers/helpers/compute\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.compute = compute;\n  _exports.default = void 0;\n  function compute(_ref) {\n    let [action, ...params] = _ref;\n    return action(...params);\n  }\n  var _default = _exports.default = (0, _helper.helper)(compute);\n});","define(\"ember-composable-helpers/helpers/dec\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\"], function (_exports, _helper, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dec = dec;\n  _exports.default = void 0;\n  function dec(_ref) {\n    let [step, val] = _ref;\n    if ((0, _utils.isEmpty)(val)) {\n      val = step;\n      step = undefined;\n    }\n    val = Number(val);\n    if (isNaN(val)) {\n      return;\n    }\n    if (step === undefined) {\n      step = 1;\n    }\n    return val - step;\n  }\n  var _default = _exports.default = (0, _helper.helper)(dec);\n});","define(\"ember-composable-helpers/helpers/drop\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.drop = drop;\n  function drop(_ref) {\n    let [dropAmount, array] = _ref;\n    return (0, _asArray.default)(array).slice(dropAmount);\n  }\n  var _default = _exports.default = (0, _helper.helper)(drop);\n});","define(\"ember-composable-helpers/helpers/entries\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.entries = entries;\n  function entries(_ref) {\n    let [object] = _ref;\n    if (!object) {\n      return object;\n    }\n    return Object.entries(object);\n  }\n  var _default = _exports.default = (0, _helper.helper)(entries);\n});","define(\"ember-composable-helpers/helpers/filter-by\", [\"exports\", \"@ember/component/helper\", \"@ember/array\", \"@ember/utils\", \"@ember/object\", \"ember-composable-helpers/utils/is-equal\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _array, _utils, _object, _isEqual, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.filterBy = filterBy;\n  function filterBy(_ref) {\n    let [byPath, value, array] = _ref;\n    if (!(0, _array.isArray)(array) && (0, _array.isArray)(value)) {\n      array = value;\n      value = undefined;\n    }\n    array = (0, _asArray.default)(array);\n    if ((0, _utils.isEmpty)(byPath) || (0, _utils.isEmpty)(array)) {\n      return [];\n    }\n    let filterFn;\n    if ((0, _utils.isPresent)(value)) {\n      if (typeof value === 'function') {\n        filterFn = item => value((0, _object.get)(item, byPath));\n      } else {\n        filterFn = item => (0, _isEqual.default)((0, _object.get)(item, byPath), value);\n      }\n    } else {\n      filterFn = item => !!(0, _object.get)(item, byPath);\n    }\n    return array.filter(filterFn);\n  }\n  var _default = _exports.default = (0, _helper.helper)(filterBy);\n});","define(\"ember-composable-helpers/helpers/filter\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _utils, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.filter = filter;\n  function filter(_ref) {\n    let [callback, array] = _ref;\n    if ((0, _utils.isEmpty)(callback) || !array) {\n      return [];\n    }\n    return (0, _asArray.default)(array).filter(callback);\n  }\n  var _default = _exports.default = (0, _helper.helper)(filter);\n});","define(\"ember-composable-helpers/helpers/find-by\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\", \"@ember/array\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _utils, _array, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.findBy = findBy;\n  function findBy(_ref) {\n    let [byPath, value, array] = _ref;\n    if ((0, _utils.isEmpty)(byPath)) {\n      return [];\n    }\n    return (0, _array.A)((0, _asArray.default)(array)).findBy(byPath, value);\n  }\n  var _default = _exports.default = (0, _helper.helper)(findBy);\n});","define(\"ember-composable-helpers/helpers/flatten\", [\"exports\", \"@ember/component/helper\", \"@ember/array\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _array, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.flatten = flatten;\n  function flatten(array) {\n    if (!(0, _array.isArray)(array)) {\n      return array;\n    }\n    return (0, _asArray.default)(array).reduce((flattened, el) => {\n      return flattened.concat(flatten(el));\n    }, []);\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n    let [array] = _ref;\n    return flatten(array);\n  });\n});","define(\"ember-composable-helpers/helpers/from-entries\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.fromEntries = fromEntries;\n  function fromEntries(_ref) {\n    let [entries] = _ref;\n    if (!entries) {\n      return entries;\n    }\n    return Object.fromEntries(entries);\n  }\n  var _default = _exports.default = (0, _helper.helper)(fromEntries);\n});","define(\"ember-composable-helpers/helpers/group-by\", [\"exports\", \"@ember/component/helper\", \"@ember/object\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _object, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.groupBy = groupBy;\n  function groupBy(_ref) {\n    let [byPath, array] = _ref;\n    let groups = {};\n    (0, _asArray.default)(array).forEach(item => {\n      let groupName = (0, _object.get)(item, byPath);\n      let group = groups[groupName];\n      if (!Array.isArray(group)) {\n        group = [];\n        groups[groupName] = group;\n      }\n      group.push(item);\n    });\n    return groups;\n  }\n  var _default = _exports.default = (0, _helper.helper)(groupBy);\n});","define(\"ember-composable-helpers/helpers/has-next\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\", \"ember-composable-helpers/helpers/next\", \"ember-composable-helpers/utils/is-equal\", \"ember-composable-helpers/-private/get-value-array-and-use-deep-equal-from-params\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _utils, _next, _isEqual, _getValueArrayAndUseDeepEqualFromParams, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.hasNext = hasNext;\n  function hasNext(currentValue, maybeArray) {\n    let useDeepEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n    let array = (0, _asArray.default)(maybeArray);\n    let nextValue = (0, _next.next)(currentValue, array, useDeepEqual);\n    let isNotSameValue = !(0, _isEqual.default)(nextValue, currentValue, useDeepEqual);\n    return isNotSameValue && (0, _utils.isPresent)(nextValue);\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (params) {\n    let {\n      currentValue,\n      array,\n      useDeepEqual\n    } = (0, _getValueArrayAndUseDeepEqualFromParams.default)(params);\n    return hasNext(currentValue, array, useDeepEqual);\n  });\n});","define(\"ember-composable-helpers/helpers/has-previous\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\", \"ember-composable-helpers/helpers/previous\", \"ember-composable-helpers/utils/is-equal\", \"ember-composable-helpers/-private/get-value-array-and-use-deep-equal-from-params\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _utils, _previous, _isEqual, _getValueArrayAndUseDeepEqualFromParams, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.hasPrevious = hasPrevious;\n  function hasPrevious(currentValue, maybeArray) {\n    let useDeepEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n    let array = (0, _asArray.default)(maybeArray);\n    let previousValue = (0, _previous.previous)(currentValue, array, useDeepEqual);\n    let isNotSameValue = !(0, _isEqual.default)(previousValue, currentValue, useDeepEqual);\n    return isNotSameValue && (0, _utils.isPresent)(previousValue);\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (params) {\n    let {\n      currentValue,\n      array,\n      useDeepEqual\n    } = (0, _getValueArrayAndUseDeepEqualFromParams.default)(params);\n    return hasPrevious(currentValue, array, useDeepEqual);\n  });\n});","define(\"ember-composable-helpers/helpers/inc\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\"], function (_exports, _helper, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.inc = inc;\n  function inc(_ref) {\n    let [step, val] = _ref;\n    if ((0, _utils.isEmpty)(val)) {\n      val = step;\n      step = undefined;\n    }\n    val = Number(val);\n    if (isNaN(val)) {\n      return;\n    }\n    if (step === undefined) {\n      step = 1;\n    }\n    return val + step;\n  }\n  var _default = _exports.default = (0, _helper.helper)(inc);\n});","define(\"ember-composable-helpers/helpers/includes\", [\"exports\", \"@ember/array\", \"@ember/component/helper\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _array, _helper, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.includes = includes;\n  function includes(needleOrNeedles, haystack) {\n    if (!(0, _array.isArray)(haystack)) {\n      return false;\n    }\n    let needles = (0, _array.isArray)(needleOrNeedles) ? needleOrNeedles : [needleOrNeedles];\n    let haystackAsEmberArray = (0, _array.A)((0, _asArray.default)(haystack));\n    return (0, _asArray.default)(needles).every(needle => {\n      return haystackAsEmberArray.includes(needle);\n    });\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n    let [needle, haystack] = _ref;\n    return includes(needle, haystack);\n  });\n});","define(\"ember-composable-helpers/helpers/intersect\", [\"exports\", \"@ember/component/helper\", \"@ember/array\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _array, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.intersect = intersect;\n  function intersect(_ref) {\n    let [...arrays] = _ref;\n    let confirmedArrays = (0, _asArray.default)(arrays).map(array => {\n      return (0, _array.isArray)(array) ? array : [];\n    });\n    // copied from https://github.com/emberjs/ember.js/blob/315ec6472ff542ac714432036cc96fe4bd62bd1f/packages/%40ember/object/lib/computed/reduce_computed_macros.js#L1063-L1100\n    let results = confirmedArrays.pop().filter(candidate => {\n      for (let i = 0; i < confirmedArrays.length; i++) {\n        let found = false;\n        let array = confirmedArrays[i];\n        for (let j = 0; j < array.length; j++) {\n          if (array[j] === candidate) {\n            found = true;\n            break;\n          }\n        }\n        if (found === false) {\n          return false;\n        }\n      }\n      return true;\n    });\n    return results;\n  }\n  var _default = _exports.default = (0, _helper.helper)(intersect);\n});","define(\"ember-composable-helpers/helpers/invoke\", [\"exports\", \"@ember/array\", \"@ember/component/helper\", \"rsvp\"], function (_exports, _array, _helper, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.invoke = invoke;\n  const {\n    all\n  } = _rsvp.default;\n  function invoke(_ref) {\n    let [methodName, ...args] = _ref;\n    let obj = args.pop();\n    if ((0, _array.isArray)(obj)) {\n      return function () {\n        let promises = obj.map(item => {\n          var _item$methodName;\n          return (_item$methodName = item[methodName]) === null || _item$methodName === void 0 ? void 0 : _item$methodName.call(item, ...args);\n        });\n        return all(promises);\n      };\n    }\n    return function () {\n      var _obj$methodName;\n      return (_obj$methodName = obj[methodName]) === null || _obj$methodName === void 0 ? void 0 : _obj$methodName.call(obj, ...args);\n    };\n  }\n  var _default = _exports.default = (0, _helper.helper)(invoke);\n});","define(\"ember-composable-helpers/helpers/join\", [\"exports\", \"@ember/component/helper\", \"@ember/array\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _array, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.join = join;\n  function join(_ref) {\n    let [separator, rawArray] = _ref;\n    let array = (0, _asArray.default)(rawArray);\n    if ((0, _array.isArray)(separator)) {\n      array = separator;\n      separator = ',';\n    }\n    return array.join(separator);\n  }\n  var _default = _exports.default = (0, _helper.helper)(join);\n});","define(\"ember-composable-helpers/helpers/keys\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.keys = keys;\n  function keys(_ref) {\n    let [object] = _ref;\n    if (!object) {\n      return object;\n    }\n    return Object.keys(object);\n  }\n  var _default = _exports.default = (0, _helper.helper)(keys);\n});","define(\"ember-composable-helpers/helpers/map-by\", [\"exports\", \"@ember/component/helper\", \"@ember/object\", \"@ember/utils\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _object, _utils, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.mapBy = mapBy;\n  function mapBy(_ref) {\n    let [byPath, array] = _ref;\n    if ((0, _utils.isEmpty)(byPath)) {\n      return [];\n    }\n    return (0, _asArray.default)(array).map(item => (0, _object.get)(item, byPath));\n  }\n  var _default = _exports.default = (0, _helper.helper)(mapBy);\n});","define(\"ember-composable-helpers/helpers/map\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _utils, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.map = map;\n  function map(_ref) {\n    let [callback, array] = _ref;\n    if ((0, _utils.isEmpty)(callback)) {\n      return [];\n    }\n    return (0, _asArray.default)(array).map(callback);\n  }\n  var _default = _exports.default = (0, _helper.helper)(map);\n});","define(\"ember-composable-helpers/helpers/next\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/utils/get-index\", \"@ember/utils\", \"@ember/array\", \"ember-composable-helpers/-private/get-value-array-and-use-deep-equal-from-params\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _getIndex, _utils, _array, _getValueArrayAndUseDeepEqualFromParams, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.next = next;\n  function next(currentValue, maybeArray) {\n    let useDeepEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n    let array = (0, _asArray.default)(maybeArray);\n    let currentIndex = (0, _getIndex.default)(array, currentValue, useDeepEqual);\n    let lastIndex = array.length - 1;\n    if ((0, _utils.isEmpty)(currentIndex)) {\n      return;\n    }\n    return currentIndex === lastIndex ? currentValue : (0, _array.A)(array).objectAt(currentIndex + 1);\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (params) {\n    let {\n      currentValue,\n      array,\n      useDeepEqual\n    } = (0, _getValueArrayAndUseDeepEqualFromParams.default)(params);\n    return next(currentValue, array, useDeepEqual);\n  });\n});","define(\"ember-composable-helpers/helpers/noop\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.noop = noop;\n  function noop() {\n    return () => {};\n  }\n  var _default = _exports.default = (0, _helper.helper)(noop);\n});","define(\"ember-composable-helpers/helpers/object-at\", [\"exports\", \"@ember/component/helper\", \"@ember/array\"], function (_exports, _helper, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.objectAt = objectAt;\n  function objectAt(index, array) {\n    if (!(0, _array.isArray)(array)) {\n      return undefined;\n    }\n    index = parseInt(index, 10);\n    return (0, _array.A)(array).objectAt(index);\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n    let [index, array] = _ref;\n    return objectAt(index, array);\n  });\n});","define(\"ember-composable-helpers/helpers/optional\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.optional = optional;\n  function optional(_ref) {\n    let [action] = _ref;\n    if (typeof action === 'function') {\n      return action;\n    }\n    return i => i;\n  }\n  var _default = _exports.default = (0, _helper.helper)(optional);\n});","define(\"ember-composable-helpers/helpers/pick\", [\"exports\", \"@ember/component/helper\", \"@ember/object\"], function (_exports, _helper, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.pick = pick;\n  function pick(_ref /*, hash*/) {\n    let [path, action] = _ref;\n    return function (event) {\n      let value = (0, _object.get)(event, path);\n      if (!action) {\n        return value;\n      }\n      action(value);\n    };\n  }\n  var _default = _exports.default = (0, _helper.helper)(pick);\n});","define(\"ember-composable-helpers/helpers/pipe-action\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/helpers/pipe\", \"ember-composable-helpers/-private/closure-action\"], function (_exports, _helper, _pipe, _closureAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const closurePipe = _pipe.pipe;\n  if (_closureAction.default) {\n    closurePipe[_closureAction.default] = true;\n  }\n  var _default = _exports.default = (0, _helper.helper)(closurePipe);\n});","define(\"ember-composable-helpers/helpers/pipe\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/utils/is-promise\"], function (_exports, _helper, _isPromise) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.invokeFunction = invokeFunction;\n  _exports.pipe = pipe;\n  function invokeFunction(acc, curr) {\n    if ((0, _isPromise.default)(acc)) {\n      return acc.then(curr);\n    }\n    return curr(acc);\n  }\n  function pipe() {\n    let actions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n    return function () {\n      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n      return actions.reduce((acc, curr, idx) => {\n        if (idx === 0) {\n          return curr(...args);\n        }\n        return invokeFunction(acc, curr);\n      }, undefined);\n    };\n  }\n  var _default = _exports.default = (0, _helper.helper)(pipe);\n});","define(\"ember-composable-helpers/helpers/previous\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/utils/get-index\", \"@ember/utils\", \"@ember/array\", \"ember-composable-helpers/-private/get-value-array-and-use-deep-equal-from-params\"], function (_exports, _helper, _getIndex, _utils, _array, _getValueArrayAndUseDeepEqualFromParams) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.previous = previous;\n  function previous(currentValue, array) {\n    let useDeepEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n    let currentIndex = (0, _getIndex.default)(array, currentValue, useDeepEqual);\n    if ((0, _utils.isEmpty)(currentIndex)) {\n      return;\n    }\n    return currentIndex === 0 ? currentValue : (0, _array.A)(array).objectAt(currentIndex - 1);\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (params) {\n    let {\n      currentValue,\n      array,\n      useDeepEqual\n    } = (0, _getValueArrayAndUseDeepEqualFromParams.default)(params);\n    return previous(currentValue, array, useDeepEqual);\n  });\n});","define(\"ember-composable-helpers/helpers/queue\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/utils/is-promise\"], function (_exports, _helper, _isPromise) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.queue = queue;\n  function queue() {\n    let actions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n    return function () {\n      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n      let invokeWithArgs = function (acc, curr) {\n        if ((0, _isPromise.default)(acc)) {\n          return acc.then(() => curr(...args));\n        }\n        return curr(...args);\n      };\n      return actions.reduce((acc, curr, idx) => {\n        if (idx === 0) {\n          return curr(...args);\n        }\n        return invokeWithArgs(acc, curr);\n      }, undefined);\n    };\n  }\n  var _default = _exports.default = (0, _helper.helper)(queue);\n});","define(\"ember-composable-helpers/helpers/range\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\", \"ember-composable-helpers/utils/comparison\"], function (_exports, _helper, _utils, _comparison) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.range = range;\n  function range(_ref) {\n    let [min, max, isInclusive] = _ref;\n    isInclusive = (0, _utils.typeOf)(isInclusive) === 'boolean' ? isInclusive : false;\n    let numbers = [];\n    if (min < max) {\n      let testFn = isInclusive ? _comparison.lte : _comparison.lt;\n      for (let i = min; testFn(i, max); i++) {\n        numbers.push(i);\n      }\n    }\n    if (min > max) {\n      let testFn = isInclusive ? _comparison.gte : _comparison.gt;\n      for (let i = min; testFn(i, max); i--) {\n        numbers.push(i);\n      }\n    }\n    if (min === max && isInclusive) {\n      numbers.push(max);\n    }\n    return numbers;\n  }\n  var _default = _exports.default = (0, _helper.helper)(range);\n});","define(\"ember-composable-helpers/helpers/reduce\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _utils, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.reduce = reduce;\n  function reduce(_ref) {\n    let [callback, initialValue, array] = _ref;\n    if ((0, _utils.isEmpty)(callback)) {\n      return [];\n    }\n    return (0, _asArray.default)(array).reduce(callback, initialValue);\n  }\n  var _default = _exports.default = (0, _helper.helper)(reduce);\n});","define(\"ember-composable-helpers/helpers/reject-by\", [\"exports\", \"@ember/component/helper\", \"@ember/array\", \"@ember/utils\", \"@ember/object\", \"ember-composable-helpers/utils/is-equal\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _array, _utils, _object, _isEqual, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.rejectBy = rejectBy;\n  function rejectBy(_ref) {\n    let [byPath, value, array] = _ref;\n    if (!(0, _array.isArray)(array) && (0, _array.isArray)(value)) {\n      array = value;\n      value = undefined;\n    }\n    array = (0, _asArray.default)(array);\n    let filterFn;\n    if ((0, _utils.isPresent)(value)) {\n      if (typeof value === 'function') {\n        filterFn = item => !value((0, _object.get)(item, byPath));\n      } else {\n        filterFn = item => !(0, _isEqual.default)((0, _object.get)(item, byPath), value);\n      }\n    } else {\n      filterFn = item => !(0, _object.get)(item, byPath);\n    }\n    return array.filter(filterFn);\n  }\n  var _default = _exports.default = (0, _helper.helper)(rejectBy);\n});","define(\"ember-composable-helpers/helpers/repeat\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\"], function (_exports, _helper, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.repeat = repeat;\n  function repeat(_ref) {\n    let [length, value] = _ref;\n    if ((0, _utils.typeOf)(length) !== 'number') {\n      return [value];\n    }\n    return Array.apply(null, {\n      length\n    }).map(() => value); // eslint-disable-line\n  }\n  var _default = _exports.default = (0, _helper.helper)(repeat);\n});","define(\"ember-composable-helpers/helpers/reverse\", [\"exports\", \"@ember/component/helper\", \"@ember/array\"], function (_exports, _helper, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.reverse = reverse;\n  function reverse(_ref) {\n    let [array] = _ref;\n    if (!(0, _array.isArray)(array)) {\n      return [array];\n    }\n    return (0, _array.A)(array).slice(0).reverse();\n  }\n  var _default = _exports.default = (0, _helper.helper)(reverse);\n});","define(\"ember-composable-helpers/helpers/shuffle\", [\"exports\", \"@ember/component/helper\", \"@ember/array\", \"@ember/utils\"], function (_exports, _helper, _array, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.shuffle = shuffle;\n  function shuffle(array, randomizer) {\n    array = array.slice(0);\n    let count = array.length;\n    let rand, temp;\n    randomizer = (0, _utils.typeOf)(randomizer) === 'function' && randomizer || Math.random;\n    while (count > 1) {\n      rand = Math.floor(randomizer() * count--);\n      temp = array[count];\n      array[count] = array[rand];\n      array[rand] = temp;\n    }\n    return array;\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n    let [randomizer, array] = _ref;\n    if (array === undefined) {\n      array = randomizer;\n      randomizer = undefined;\n    }\n    if (!(0, _array.isArray)(array)) {\n      return [array];\n    }\n    return shuffle(array, randomizer);\n  });\n});","define(\"ember-composable-helpers/helpers/slice\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.slice = slice;\n  function slice(_ref) {\n    let [...args] = _ref;\n    let array = args.pop();\n    array = (0, _asArray.default)(array);\n    return array.slice(...args);\n  }\n  var _default = _exports.default = (0, _helper.helper)(slice);\n});","define(\"ember-composable-helpers/helpers/sort-by\", [\"exports\", \"@ember/object\", \"@ember/utils\", \"@ember/component/helper\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _object, _utils, _helper, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.sortBy = sortBy;\n  const collator = new Intl.Collator(undefined, {\n    sensitivity: 'base'\n  });\n  function normalizeToBoolean(val) {\n    if (typeof val === 'boolean') {\n      return val;\n    }\n    if (typeof val === 'number') {\n      if (val > 0) {\n        return false;\n      } else if (val < 0) {\n        return true;\n      }\n    }\n    return val;\n  }\n  function safeValueForKey(ctx, key) {\n    if (ctx === null || ctx === undefined) {\n      return ctx;\n    }\n    return (0, _object.get)(ctx, key);\n  }\n  function sortDesc(key, a, b) {\n    if ((0, _utils.isEmpty)(key)) {\n      return 0;\n    }\n    const aValue = safeValueForKey(a, key);\n    const bValue = safeValueForKey(b, key);\n    const isANullable = typeof aValue == 'undefined' || aValue === null;\n    const isBNullable = typeof bValue == 'undefined' || bValue === null;\n    if (isANullable && isBNullable) {\n      //both values are nullable\n      return 0;\n    }\n    if (isBNullable) {\n      // keep bValue last\n      return -1;\n    }\n    if (isANullable) {\n      // put aValue last\n      return 1;\n    }\n    if (aValue.toLowerCase && bValue.toLowerCase) {\n      return collator.compare(bValue, aValue);\n    }\n    if (aValue < bValue) {\n      return 1;\n    } else if (aValue > bValue) {\n      return -1;\n    }\n    return 0;\n  }\n  function sortAsc(key, a, b) {\n    if ((0, _utils.isEmpty)(key)) {\n      return 0;\n    }\n    const aValue = safeValueForKey(a, key);\n    const bValue = safeValueForKey(b, key);\n    const isANullable = typeof aValue == 'undefined' || aValue === null;\n    const isBNullable = typeof bValue == 'undefined' || bValue === null;\n    if (isANullable && isBNullable) {\n      //both values are nullable\n      return 0;\n    }\n    if (isBNullable) {\n      // keep bValue last\n      return -1;\n    }\n    if (isANullable) {\n      // put aValue last\n      return 1;\n    }\n    if (aValue.toLowerCase && bValue.toLowerCase) {\n      return collator.compare(aValue, bValue);\n    }\n    if (aValue < bValue) {\n      return -1;\n    } else if (aValue > bValue) {\n      return 1;\n    }\n    return 0;\n  }\n  class SortBy {\n    constructor() {\n      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n      let [array] = args;\n      if (typeof array.toArray === \"function\") {\n        array = array.toArray();\n      }\n      this.array = [...array];\n    }\n    comparator(key) {\n      return typeof key === 'function' ? key : this.defaultSort(key);\n    }\n    defaultSort(sortKey) {\n      let func = sortAsc;\n      if (sortKey.match(':desc')) {\n        func = sortDesc;\n      }\n      return (a, b) => func(sortKey.replace(/:desc|:asc/, ''), a, b);\n    }\n  }\n\n  /**\n   * best O(n); worst O(n^2)\n   * If we feel like swapping with something more performant like QuickSort or MergeSort\n   * then it should be easy\n   *\n   * @class BubbleSort\n   * @extends SortBy\n   */\n  class BubbleSort extends SortBy {\n    perform() {\n      let keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n      let swapped = false;\n      let compFuncs = keys.map(key => this.comparator(key));\n      let compFunc = (a, b) => {\n        for (let i = 0; i < compFuncs.length; i += 1) {\n          let result = compFuncs[i](a, b);\n          if (result === 0) {\n            continue;\n          }\n          return result;\n        }\n        return 0;\n      };\n      for (let i = 1; i < this.array.length; i += 1) {\n        for (let j = 0; j < this.array.length - i; j += 1) {\n          let shouldSwap = normalizeToBoolean(compFunc(this.array[j + 1], this.array[j]));\n          if (shouldSwap) {\n            [this.array[j], this.array[j + 1]] = [this.array[j + 1], this.array[j]];\n            swapped = true;\n          }\n        }\n\n        // no need to continue sort if not swapped in any inner iteration\n        if (!swapped) {\n          return this.array;\n        }\n      }\n    }\n  }\n  function sortBy(params) {\n    // slice params to avoid mutating the provided params\n    let sortParams = params.slice();\n    let array = (0, _asArray.default)(sortParams.pop());\n    let sortKeys = sortParams;\n    if (!array || !sortKeys || sortKeys.length === 0) {\n      return [];\n    }\n    if (sortKeys.length === 1 && Array.isArray(sortKeys[0])) {\n      sortKeys = sortKeys[0];\n    }\n    const sortKlass = new BubbleSort(array);\n    sortKlass.perform(sortKeys);\n    return sortKlass.array;\n  }\n  var _default = _exports.default = (0, _helper.helper)(sortBy);\n});","define(\"ember-composable-helpers/helpers/take\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.take = take;\n  function take(_ref) {\n    let [takeAmount, array] = _ref;\n    return (0, _asArray.default)(array).slice(0, takeAmount);\n  }\n  var _default = _exports.default = (0, _helper.helper)(take);\n});","define(\"ember-composable-helpers/helpers/toggle-action\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/helpers/toggle\", \"ember-composable-helpers/-private/closure-action\"], function (_exports, _helper, _toggle, _closureAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const closureToggle = _toggle.toggle;\n  if (_closureAction.default) {\n    closureToggle[_closureAction.default] = true;\n  }\n  var _default = _exports.default = (0, _helper.helper)(closureToggle);\n});","define(\"ember-composable-helpers/helpers/toggle\", [\"exports\", \"@ember/component/helper\", \"@ember/object\", \"@ember/utils\"], function (_exports, _helper, _object, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.toggle = toggle;\n  function nextIndex(length, currentIdx) {\n    if (currentIdx === -1 || currentIdx + 1 === length) {\n      return 0;\n    }\n    return currentIdx + 1;\n  }\n  function toggle(_ref) {\n    let [prop, obj, ...values] = _ref;\n    return function () {\n      let currentValue = (0, _object.get)(obj, prop);\n      if ((0, _utils.isPresent)(values)) {\n        let currentIdx = values.indexOf(currentValue);\n        let nextIdx = nextIndex(values.length, currentIdx);\n        return (0, _object.set)(obj, prop, values[nextIdx]);\n      }\n      return (0, _object.set)(obj, prop, !currentValue);\n    };\n  }\n  var _default = _exports.default = (0, _helper.helper)(toggle);\n});","define(\"ember-composable-helpers/helpers/union\", [\"exports\", \"@ember/component/helper\", \"ember-composable-helpers/utils/as-array\"], function (_exports, _helper, _asArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.union = union;\n  function union(_ref) {\n    let [...arrays] = _ref;\n    let items = [].concat(...arrays);\n    return items.filter((value, index, array) => (0, _asArray.default)(array).indexOf(value) === index);\n  }\n  var _default = _exports.default = (0, _helper.helper)(union);\n});","define(\"ember-composable-helpers/helpers/values\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.values = values;\n  function values(_ref) {\n    let [object] = _ref;\n    if (!object) {\n      return object;\n    }\n    return Object.values(object);\n  }\n  var _default = _exports.default = (0, _helper.helper)(values);\n});","define(\"ember-composable-helpers/helpers/without\", [\"exports\", \"@ember/component/helper\", \"@ember/array\"], function (_exports, _helper, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.without = without;\n  function contains(needle, haystack) {\n    return (0, _array.A)(haystack).includes(needle);\n  }\n  function without(needle, haystack) {\n    if (!(0, _array.isArray)(haystack)) {\n      return false;\n    }\n    if ((0, _array.isArray)(needle) && needle.length) {\n      return haystack.reduce((acc, val) => {\n        return contains(val, needle) ? acc : acc.concat(val);\n      }, []);\n    }\n    return (0, _array.A)(haystack).without(needle);\n  }\n  var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n    let [needle, haystack] = _ref;\n    return without(needle, haystack);\n  });\n});","define(\"ember-composable-helpers/index\", [\"exports\", \"ember-composable-helpers/helpers/append\", \"ember-composable-helpers/helpers/chunk\", \"ember-composable-helpers/helpers/compact\", \"ember-composable-helpers/helpers/compute\", \"ember-composable-helpers/helpers/dec\", \"ember-composable-helpers/helpers/drop\", \"ember-composable-helpers/helpers/filter-by\", \"ember-composable-helpers/helpers/filter\", \"ember-composable-helpers/helpers/find-by\", \"ember-composable-helpers/helpers/flatten\", \"ember-composable-helpers/helpers/group-by\", \"ember-composable-helpers/helpers/has-next\", \"ember-composable-helpers/helpers/has-previous\", \"ember-composable-helpers/helpers/inc\", \"ember-composable-helpers/helpers/intersect\", \"ember-composable-helpers/helpers/invoke\", \"ember-composable-helpers/helpers/join\", \"ember-composable-helpers/helpers/map-by\", \"ember-composable-helpers/helpers/map\", \"ember-composable-helpers/helpers/next\", \"ember-composable-helpers/helpers/object-at\", \"ember-composable-helpers/helpers/optional\", \"ember-composable-helpers/helpers/pipe-action\", \"ember-composable-helpers/helpers/pipe\", \"ember-composable-helpers/helpers/previous\", \"ember-composable-helpers/helpers/queue\", \"ember-composable-helpers/helpers/range\", \"ember-composable-helpers/helpers/reduce\", \"ember-composable-helpers/helpers/reject-by\", \"ember-composable-helpers/helpers/repeat\", \"ember-composable-helpers/helpers/reverse\", \"ember-composable-helpers/helpers/shuffle\", \"ember-composable-helpers/helpers/slice\", \"ember-composable-helpers/helpers/sort-by\", \"ember-composable-helpers/helpers/take\", \"ember-composable-helpers/helpers/toggle-action\", \"ember-composable-helpers/helpers/toggle\", \"ember-composable-helpers/helpers/union\", \"ember-composable-helpers/helpers/without\"], function (_exports, _append, _chunk, _compact, _compute, _dec, _drop, _filterBy, _filter, _findBy, _flatten, _groupBy, _hasNext, _hasPrevious, _inc, _intersect, _invoke, _join, _mapBy, _map, _next, _objectAt, _optional, _pipeAction, _pipe, _previous, _queue, _range, _reduce, _rejectBy, _repeat, _reverse, _shuffle, _slice, _sortBy, _take, _toggleAction, _toggle, _union, _without) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"AppendHelper\", {\n    enumerable: true,\n    get: function () {\n      return _append.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ChunkHelper\", {\n    enumerable: true,\n    get: function () {\n      return _chunk.default;\n    }\n  });\n  Object.defineProperty(_exports, \"CompactHelper\", {\n    enumerable: true,\n    get: function () {\n      return _compact.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ComputeHelper\", {\n    enumerable: true,\n    get: function () {\n      return _compute.default;\n    }\n  });\n  Object.defineProperty(_exports, \"DecHelper\", {\n    enumerable: true,\n    get: function () {\n      return _dec.default;\n    }\n  });\n  Object.defineProperty(_exports, \"DropHelper\", {\n    enumerable: true,\n    get: function () {\n      return _drop.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FilterByHelper\", {\n    enumerable: true,\n    get: function () {\n      return _filterBy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FilterHelper\", {\n    enumerable: true,\n    get: function () {\n      return _filter.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FindByHelper\", {\n    enumerable: true,\n    get: function () {\n      return _findBy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FlattenHelper\", {\n    enumerable: true,\n    get: function () {\n      return _flatten.default;\n    }\n  });\n  Object.defineProperty(_exports, \"GroupByHelper\", {\n    enumerable: true,\n    get: function () {\n      return _groupBy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"HasNextHelper\", {\n    enumerable: true,\n    get: function () {\n      return _hasNext.default;\n    }\n  });\n  Object.defineProperty(_exports, \"HasPreviousHelper\", {\n    enumerable: true,\n    get: function () {\n      return _hasPrevious.default;\n    }\n  });\n  Object.defineProperty(_exports, \"IncHelper\", {\n    enumerable: true,\n    get: function () {\n      return _inc.default;\n    }\n  });\n  Object.defineProperty(_exports, \"IntersectHelper\", {\n    enumerable: true,\n    get: function () {\n      return _intersect.default;\n    }\n  });\n  Object.defineProperty(_exports, \"InvokeHelper\", {\n    enumerable: true,\n    get: function () {\n      return _invoke.default;\n    }\n  });\n  Object.defineProperty(_exports, \"JoinHelper\", {\n    enumerable: true,\n    get: function () {\n      return _join.default;\n    }\n  });\n  Object.defineProperty(_exports, \"MapByHelper\", {\n    enumerable: true,\n    get: function () {\n      return _mapBy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"MapHelper\", {\n    enumerable: true,\n    get: function () {\n      return _map.default;\n    }\n  });\n  Object.defineProperty(_exports, \"NextHelper\", {\n    enumerable: true,\n    get: function () {\n      return _next.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ObjectAtHelper\", {\n    enumerable: true,\n    get: function () {\n      return _objectAt.default;\n    }\n  });\n  Object.defineProperty(_exports, \"OptionalHelper\", {\n    enumerable: true,\n    get: function () {\n      return _optional.default;\n    }\n  });\n  Object.defineProperty(_exports, \"PipeActionHelper\", {\n    enumerable: true,\n    get: function () {\n      return _pipeAction.default;\n    }\n  });\n  Object.defineProperty(_exports, \"PipeHelper\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.default;\n    }\n  });\n  Object.defineProperty(_exports, \"PreviousHelper\", {\n    enumerable: true,\n    get: function () {\n      return _previous.default;\n    }\n  });\n  Object.defineProperty(_exports, \"QueueHelper\", {\n    enumerable: true,\n    get: function () {\n      return _queue.default;\n    }\n  });\n  Object.defineProperty(_exports, \"RangeHelper\", {\n    enumerable: true,\n    get: function () {\n      return _range.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ReduceHelper\", {\n    enumerable: true,\n    get: function () {\n      return _reduce.default;\n    }\n  });\n  Object.defineProperty(_exports, \"RejectByHelper\", {\n    enumerable: true,\n    get: function () {\n      return _rejectBy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"RepeatHelper\", {\n    enumerable: true,\n    get: function () {\n      return _repeat.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ReverseHelper\", {\n    enumerable: true,\n    get: function () {\n      return _reverse.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ShuffleHelper\", {\n    enumerable: true,\n    get: function () {\n      return _shuffle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"SliceHelper\", {\n    enumerable: true,\n    get: function () {\n      return _slice.default;\n    }\n  });\n  Object.defineProperty(_exports, \"SortByHelper\", {\n    enumerable: true,\n    get: function () {\n      return _sortBy.default;\n    }\n  });\n  Object.defineProperty(_exports, \"TakeHelper\", {\n    enumerable: true,\n    get: function () {\n      return _take.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ToggleActionHelper\", {\n    enumerable: true,\n    get: function () {\n      return _toggleAction.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ToggleHelper\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"UnionHelper\", {\n    enumerable: true,\n    get: function () {\n      return _union.default;\n    }\n  });\n  Object.defineProperty(_exports, \"WithoutHelper\", {\n    enumerable: true,\n    get: function () {\n      return _without.default;\n    }\n  });\n});","define(\"ember-composable-helpers/utils/as-array\", [\"exports\", \"@ember/array\", \"@ember/object\"], function (_exports, _array, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = asArray;\n  function isIterable(value) {\n    return Symbol.iterator in Object(value);\n  }\n\n  // from https://github.com/flexyford/ember-power-select/blob/78a5430c1ac89daf315d0801fd5201e444e82434/addon/components/power-select.ts\n  function isArrayable(thing) {\n    return typeof thing.toArray === 'function';\n  }\n  function isPromiseLike(thing) {\n    return typeof thing.then === 'function';\n  }\n  function isPromiseProxyLike(thing) {\n    return isPromiseLike(thing) && Object.hasOwnProperty.call(thing, 'content');\n  }\n  function toExtendable(array) {\n    if (!Object.isExtensible(array)) {\n      return Array.from(array);\n    } else {\n      return array;\n    }\n  }\n  function asArray(maybeArray) {\n    return toExtendable(_asArray(maybeArray));\n  }\n  function _asArray(maybeArray) {\n    if (typeof maybeArray === 'number') {\n      throw new Error('Numbers not supported as arrays [ember-composable-helpers]');\n    }\n    if (typeof maybeArray === 'string') {\n      return maybeArray.split('');\n    }\n    // for perf-reasons falling back to e-array, instead of using it first\n    if (Array.isArray(maybeArray)) {\n      return maybeArray;\n    } else if ((0, _array.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    if (typeof maybeArray === 'object') {\n      if (isPromiseProxyLike(maybeArray)) {\n        const content = (0, _object.get)(maybeArray, 'content');\n        if (typeof content !== 'object' || content === null) {\n          throw new Error('Unknown content type in array-like object [ember-composable-helpers]');\n        }\n        if (isArrayable(content)) {\n          return content.toArray();\n        } else {\n          return _asArray(content);\n        }\n      }\n      if (isPromiseLike(maybeArray)) {\n        throw new Error('Promise-like objects is not supported as arrays [ember-composable-helpers]');\n      }\n      if (isArrayable(maybeArray)) {\n        return maybeArray.toArray();\n      }\n      if (maybeArray instanceof _object.default) {\n        throw new Error('EmberObjects is not supported as arrays [ember-composable-helpers]');\n      }\n      return Array.from(Object.values(maybeArray));\n    }\n    if (!maybeArray) {\n      return [];\n    }\n    if (!isIterable(maybeArray)) {\n      throw new Error('Argument, passed as array is not iterable [ember-composable-helpers]');\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.gt = gt;\n  _exports.gte = gte;\n  _exports.lt = lt;\n  _exports.lte = lte;\n  function lte(a, b) {\n    return a <= b;\n  }\n  function lt(a, b) {\n    return a < b;\n  }\n  function gte(a, b) {\n    return a >= b;\n  }\n  function gt(a, b) {\n    return a > b;\n  }\n});","define(\"ember-composable-helpers/utils/get-index\", [\"exports\", \"@ember/array\", \"ember-composable-helpers/utils/is-equal\"], function (_exports, _array, _isEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getIndex;\n  function getIndex(array, currentValue, useDeepEqual) {\n    let needle = currentValue;\n    if (useDeepEqual) {\n      needle = (0, _array.A)(array).find(object => {\n        return (0, _isEqual.default)(object, currentValue, useDeepEqual);\n      });\n    }\n    let index = (0, _array.A)(array).indexOf(needle);\n    return index >= 0 ? index : null;\n  }\n});","define(\"ember-composable-helpers/utils/is-equal\", [\"exports\", \"@ember/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isEqual;\n  function isEqual(firstValue, secondValue) {\n    let useDeepEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n    if (useDeepEqual) {\n      return JSON.stringify(firstValue) === JSON.stringify(secondValue);\n    } else {\n      return (0, _utils.isEqual)(firstValue, secondValue) || (0, _utils.isEqual)(secondValue, firstValue);\n    }\n  }\n});","define(\"ember-composable-helpers/utils/is-object\", [\"exports\", \"@ember/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isObject;\n  function isObject(val) {\n    return (0, _utils.typeOf)(val) === 'object' || (0, _utils.typeOf)(val) === 'instance';\n  }\n});","define(\"ember-composable-helpers/utils/is-promise\", [\"exports\", \"@ember/utils\", \"ember-composable-helpers/utils/is-object\"], function (_exports, _utils, _isObject) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isPromise;\n  function isPromiseLike() {\n    let obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    return (0, _utils.typeOf)(obj.then) === 'function' && (0, _utils.typeOf)(obj.catch) === 'function';\n  }\n  function isPromise(obj) {\n    return (0, _isObject.default)(obj) && isPromiseLike(obj);\n  }\n});","define(\"ember-data-model-fragments/array/fragment\", [\"exports\", \"@ember/debug\", \"@ember/utils\", \"ember-data-model-fragments/array/stateful\", \"ember-data-model-fragments/fragment\", \"ember-data-model-fragments/util/instance-of-type\", \"@ember-data/store\"], function (_exports, _debug, _utils, _stateful, _fragment, _instanceOfType, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module ember-data-model-fragments\n  */\n\n  /**\n    A state-aware array of fragments that is tied to an attribute of a `DS.Model`\n    instance. `FragmentArray` instances should not be created directly, instead\n    use `MF.fragmentArray` or `MF.array`.\n  \n    @class FragmentArray\n    @namespace MF\n    @extends StatefulArray\n  */\n  const FragmentArray = _stateful.default.extend({\n    /**\n      The type of fragments the array contains\n       @property modelName\n      @private\n      @type {String}\n    */\n    modelName: null,\n    _normalizeData(data, index) {\n      (true && !((0, _utils.typeOf)(data) === 'object' || (0, _instanceOfType.default)(this.store.modelFor(this.modelName), data)) && (0, _debug.assert)(`You can only add '${this.modelName}' fragments or object literals to this property`, (0, _utils.typeOf)(data) === 'object' || (0, _instanceOfType.default)(this.store.modelFor(this.modelName), data)));\n      if ((0, _fragment.isFragment)(data)) {\n        const fragmentIdentifier = (0, _store.recordIdentifierFor)(data);\n        (0, _fragment.setFragmentOwner)(data, this.identifier, this.key);\n        // Return the fragment record itself\n        return this.store._instanceCache.getRecord(fragmentIdentifier);\n      }\n      const existing = this.currentState[index];\n      if (existing) {\n        existing.setProperties(data);\n        return existing;\n      }\n      // Create a new fragment via the cache\n      const fragmentIdentifier = this.cache.newFragmentIdentifierForKey(this.identifier, this.key, data);\n      return this.store._instanceCache.getRecord(fragmentIdentifier);\n    },\n    _getFragmentState() {\n      const fragmentIdentifiers = this._super();\n      if (fragmentIdentifiers === null) {\n        return null;\n      }\n      return fragmentIdentifiers === null || fragmentIdentifiers === void 0 ? void 0 : fragmentIdentifiers.map(fragmentIdentifier => this.store._instanceCache.getRecord(fragmentIdentifier));\n    },\n    _setFragmentState(fragments) {\n      const fragmentIdentifiers = fragments.map(fragment => (0, _store.recordIdentifierFor)(fragment));\n      this._super(fragmentIdentifiers);\n    },\n    /**\n      @method _createSnapshot\n      @private\n    */\n    _createSnapshot() {\n      // Snapshot each fragment\n      return this.map(fragment => {\n        return fragment._createSnapshot();\n      });\n    },\n    /**\n      If this property is `true`, either the contents of the array do not match\n      its original state, or one or more of the fragments in the array are dirty.\n       Example\n       ```javascript\n      array.toArray(); // [ <Fragment:1>, <Fragment:2> ]\n      array.get('hasDirtyAttributes'); // false\n      array.get('firstObject').set('prop', 'newValue');\n      array.get('hasDirtyAttributes'); // true\n      ```\n       @property hasDirtyAttributes\n      @type {Boolean}\n      @readOnly\n    */\n\n    /**\n      This method reverts local changes of the array's contents to its original\n      state, and calls `rollbackAttributes` on each fragment.\n       Example\n       ```javascript\n      array.get('firstObject').get('hasDirtyAttributes'); // true\n      array.get('hasDirtyAttributes'); // true\n      array.rollbackAttributes();\n      array.get('firstObject').get('hasDirtyAttributes'); // false\n      array.get('hasDirtyAttributes'); // false\n      ```\n       @method rollbackAttributes\n    */\n\n    /**\n      Serializing a fragment array returns a new array containing the results of\n      calling `serialize` on each fragment in the array.\n       @method serialize\n      @return {Array}\n    */\n    serialize() {\n      return this.invoke('serialize');\n    },\n    /**\n      Adds an existing fragment to the end of the fragment array. Alias for\n      `addObject`.\n       @method addFragment\n      @param {MF.Fragment} fragment\n      @return {MF.Fragment} the newly added fragment\n    */\n    addFragment(fragment) {\n      return this.addObject(fragment);\n    },\n    /**\n      Removes the given fragment from the array. Alias for `removeObject`.\n       @method removeFragment\n      @param {MF.Fragment} fragment\n      @return {MF.Fragment} the removed fragment\n    */\n    removeFragment(fragment) {\n      return this.removeObject(fragment);\n    },\n    /**\n      Creates a new fragment of the fragment array's type and adds it to the end\n      of the fragment array.\n       @method createFragment\n      @param {MF.Fragment} fragment\n      @return {MF.Fragment} the newly added fragment\n      */\n    createFragment(props) {\n      const fragmentIdentifier = this.cache.newFragmentIdentifierForKey(this.identifier, this.key, props);\n      const fragment = this.store._instanceCache.getRecord(fragmentIdentifier, props);\n      return this.pushObject(fragment);\n    }\n  });\n  var _default = _exports.default = FragmentArray;\n});","define(\"ember-data-model-fragments/array/stateful\", [\"exports\", \"@ember/object\", \"@ember/array\", \"@ember/array/mutable\", \"@ember/debug\", \"@ember-data/model/-private\", \"ember-data-model-fragments/util/copy\"], function (_exports, _object, _array, _mutable, _debug, _private, _copy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.HAS_ARRAY_OBSERVERS = void 0;\n  /**\n    @module ember-data-model-fragments\n  */\n\n  /**\n   * Whether the current version of ember supports array observers.\n   * Array observers were deprecated in ember 3.26 and removed in 4.0.\n   * @see https://deprecations.emberjs.com/v3.x#toc_array-observers\n   * @see https://github.com/emberjs/ember.js/pull/19833\n   * @type {boolean}\n   * @private\n   */\n  const HAS_ARRAY_OBSERVERS = _exports.HAS_ARRAY_OBSERVERS = !true;\n\n  /**\n    A state-aware array that is tied to an attribute of a `DS.Model` instance.\n  \n    @class StatefulArray\n    @namespace MF\n    @extends Ember.MutableArray\n  */\n  // eslint-disable-next-line ember/no-classic-classes\n  const StatefulArray = _object.default.extend(_mutable.default, {\n    /**\n      A reference to the array's owner record.\n       @property owner\n      @type {DS.Model}\n    */\n    get owner() {\n      return this.store._instanceCache.getRecord(this.identifier);\n    },\n    /**\n      The identifier of the owner record.\n       @property identifier\n      @private\n      @type {StableRecordIdentifier}\n    */\n    identifier: null,\n    /**\n      The array's property name on the owner record.\n       @property key\n      @private\n      @type {String}\n    */\n    key: null,\n    /**\n      Reference to the store\n       @property store\n      @private\n      @type {Store}\n    */\n    store: null,\n    /**\n      Get the cache from the store\n       @property cache\n      @private\n    */\n    get cache() {\n      return this.store.cache;\n    },\n    init() {\n      this._super(...arguments);\n      this._length = 0;\n      this.currentState = [];\n      this._isUpdating = false;\n      this._isDirty = false;\n      this._hasNotified = false;\n      this.retrieveLatest();\n    },\n    notify() {\n      this._isDirty = true;\n      if (HAS_ARRAY_OBSERVERS && this.hasArrayObservers && !this._hasNotified) {\n        this.retrieveLatest();\n      } else {\n        this._hasNotified = true;\n        this.notifyPropertyChange('[]');\n        this.notifyPropertyChange('firstObject');\n        this.notifyPropertyChange('lastObject');\n      }\n    },\n    get length() {\n      if (this._isDirty) {\n        this.retrieveLatest();\n      }\n      // By using `get()`, the tracking system knows to pay attention to changes that occur.\n      // eslint-disable-next-line ember/no-get\n      (0, _object.get)(this, '[]');\n      return this._length;\n    },\n    /**\n     * Unlike `setObjects`, this method avoids setting up auto-tracking,\n     * which prevents a glimmer rendering error in some circumstances.\n     * @see https://github.com/adopted-ember-addons/ember-data-model-fragments/pull/466\n     * @param objects the new array contents\n     * @private\n     */\n    _setFragments(objects) {\n      if (this._isDirty) {\n        this.retrieveLatest();\n      }\n      this.replace(0, this._length, objects);\n    },\n    objectAt(index) {\n      if (this._isDirty) {\n        this.retrieveLatest();\n      }\n      return this.currentState[index];\n    },\n    _normalizeData(data) {\n      return data;\n    },\n    _getFragmentState() {\n      return this.cache.getFragment(this.identifier, this.key);\n    },\n    _setFragmentState(array) {\n      this.cache.setDirtyFragment(this.identifier, this.key, array);\n    },\n    replace(start, deleteCount, items) {\n      (true && !((0, _array.isArray)(items)) && (0, _debug.assert)('The third argument to replace needs to be an array.', (0, _array.isArray)(items)));\n      (true && !(!this.isDestroyed && !this.isDestroying) && (0, _debug.assert)('Attempted to update the fragment array after it was destroyed', !this.isDestroyed && !this.isDestroying));\n      if (deleteCount === 0 && items.length === 0) {\n        // array is unchanged\n        return;\n      }\n      if (this._isDirty) {\n        this.retrieveLatest();\n      }\n      const data = this.currentState.slice();\n      data.splice(start, deleteCount, ...items.map((item, i) => this._normalizeData(item, start + i)));\n      this._setFragmentState(data);\n      this.notify();\n    },\n    retrieveLatest() {\n      // It's possible the parent side of the relationship may have been destroyed by this point\n      if (this.isDestroyed || this.isDestroying || this._isUpdating) {\n        return;\n      }\n      const currentState = this._getFragmentState();\n      if (currentState == null) {\n        // detached; the underlying fragment array was set to null after this StatefulArray was accessed\n        return;\n      }\n      this._isDirty = false;\n      this._isUpdating = true;\n      if (HAS_ARRAY_OBSERVERS && this.hasArrayObservers && !this._hasNotified) {\n        // diff to find changes\n        const diff = (0, _private.diffArray)(this.currentState, currentState);\n        // it's null if no change found\n        if (diff.firstChangeIndex !== null) {\n          // we found a change\n          this.arrayContentWillChange(diff.firstChangeIndex, diff.removedCount, diff.addedCount);\n          this._length = currentState.length;\n          this.currentState = currentState;\n          this.arrayContentDidChange(diff.firstChangeIndex, diff.removedCount, diff.addedCount);\n        }\n      } else {\n        this._hasNotified = false;\n        this._length = currentState.length;\n        this.currentState = currentState;\n      }\n      this._isUpdating = false;\n    },\n    /**\n      Copies the array by calling copy on each of its members.\n       @method copy\n      @return {array} a new array\n    */\n    copy() {\n      return this.map(_copy.copy);\n    },\n    /**\n      @method _createSnapshot\n      @private\n    */\n    _createSnapshot() {\n      // Since elements are not models, a snapshot is simply a mapping of raw values\n      return this.toArray();\n    },\n    /**\n      If this property is `true` the contents of the array do not match its\n      original state. The array has local changes that have not yet been saved by\n      the adapter. This includes additions, removals, and reordering of elements.\n       Example\n       ```javascript\n      array.toArray(); // [ 'Tom', 'Yehuda' ]\n      array.get('isDirty'); // false\n      array.popObject(); // 'Yehuda'\n      array.get('isDirty'); // true\n      ```\n       @property hasDirtyAttributes\n      @type {Boolean}\n      @readOnly\n    */\n    get hasDirtyAttributes() {\n      return this.cache.isFragmentDirty(this.identifier, this.key);\n    },\n    /**\n      This method reverts local changes of the array's contents to its original\n      state.\n       Example\n       ```javascript\n      array.toArray(); // [ 'Tom', 'Yehuda' ]\n      array.popObject(); // 'Yehuda'\n      array.toArray(); // [ 'Tom' ]\n      array.rollbackAttributes();\n      array.toArray(); // [ 'Tom', 'Yehuda' ]\n      ```\n       @method rollbackAttributes\n    */\n    rollbackAttributes() {\n      this.cache.rollbackFragment(this.identifier, this.key);\n    },\n    /**\n      Method alias for `toArray`.\n       @method serialize\n      @return {Array}\n    */\n    serialize() {\n      return this.toArray();\n    },\n    toStringExtension() {\n      var _this$owner;\n      return `owner(${(_this$owner = this.owner) === null || _this$owner === void 0 ? void 0 : _this$owner.id})`;\n    }\n  });\n  var _default = _exports.default = StatefulArray;\n});","define(\"ember-data-model-fragments/attributes/array\", [\"exports\", \"@ember/object\", \"@ember/array\", \"@ember/debug\", \"@ember-data/store\", \"ember-data-model-fragments/util/meta-type-for\", \"ember-data-model-fragments/array/stateful\"], function (_exports, _object, _array, _debug, _store, _metaTypeFor, _stateful) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = array;\n  /**\n   `MF.array` defines an attribute on a `DS.Model` or `MF.Fragment`. It creates a\n   property that returns an array of values of the given primitive type. The\n   array is aware of its original state and so has a `hasDirtyAttributes`\n   property and a `rollback` method.\n  \n   It takes an optional hash as a second parameter, currently supported options\n   are:\n  \n   - `defaultValue`: An array literal or a function to be called to set the\n   attribute to a default value if none is supplied. Values are deep copied\n   before being used. Note that default values will be passed through the\n   fragment's serializer when creating the fragment.\n  \n   Example\n  \n   ```javascript\n   App.Person = DS.Model.extend({\n      aliases: MF.array('string')\n    });\n   ```\n  \n   @namespace MF\n   @method array\n   @param {String} type the type of value contained in the array\n   @param {Object} options a hash of options\n   @return {Attribute}\n   */\n  function array(type, options) {\n    if (typeof type === 'object') {\n      options = type;\n      type = undefined;\n    } else {\n      options || (options = {});\n    }\n    const metaType = (0, _metaTypeFor.default)('array', type);\n    const meta = {\n      arrayTransform: type,\n      type: metaType,\n      isAttribute: true,\n      isFragment: true,\n      kind: 'array',\n      options\n    };\n\n    // eslint-disable-next-line ember/require-computed-property-dependencies\n    return (0, _object.computed)({\n      get(key) {\n        const identifier = (0, _store.recordIdentifierFor)(this);\n        const cache = this.store.cache;\n        if (cache.getFragment(identifier, key) === null) {\n          return null;\n        }\n        let array = cache.getFragmentArrayCache(identifier, key);\n        if (!array) {\n          array = _stateful.default.create({\n            store: this.store,\n            identifier,\n            key\n          });\n          cache.setFragmentArrayCache(identifier, key, array);\n        }\n        return array;\n      },\n      set(key, value) {\n        (true && !(value === null || (0, _array.isArray)(value)) && (0, _debug.assert)('You must pass an array or null to set an array', value === null || (0, _array.isArray)(value)));\n        const identifier = (0, _store.recordIdentifierFor)(this);\n        const cache = this.store.cache;\n        if (value === null) {\n          cache.setDirtyFragment(identifier, key, null);\n          return null;\n        }\n        cache.setDirtyFragment(identifier, key, value.slice());\n        let array = cache.getFragmentArrayCache(identifier, key);\n        if (!array) {\n          array = _stateful.default.create({\n            store: this.store,\n            identifier,\n            key\n          });\n          cache.setFragmentArrayCache(identifier, key, array);\n        }\n        array._setFragments(value);\n        return array;\n      }\n    }).meta(meta);\n  }\n});","define(\"ember-data-model-fragments/attributes/fragment-array\", [\"exports\", \"@ember/debug\", \"@ember/object\", \"@ember/utils\", \"@ember/array\", \"@ember-data/store\", \"ember-data-model-fragments/fragment\", \"ember-data-model-fragments/util/meta-type-for\", \"ember-data-model-fragments/array/fragment\"], function (_exports, _debug, _object, _utils, _array, _store, _fragment, _metaTypeFor, _fragment2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = fragmentArray;\n  /**\n   `MF.fragmentArray` defines an attribute on a `DS.Model` or `MF.Fragment`.\n   Much like `DS.hasMany`, it creates a property that returns an array of\n   fragments of the given type. The array is aware of its original state and so\n   has a `hasDirtyAttributes` property and a `rollback` method.\n  \n   It takes an optional hash as a second parameter, currently supported options\n   are:\n  \n   - `defaultValue`: An array literal or a function to be called to set the\n   attribute to a default value if none is supplied. Values are deep copied\n   before being used. Note that default values will be passed through the\n   fragment's serializer when creating the fragment. Defaults to an empty\n   array.\n   - `polymorphic`: Whether or not the fragments in the array can be child\n   classes of the given type.\n   - `typeKey`: If `polymorphic` is true, the property to use as the fragment\n   type in the normalized data. Defaults to `type`.\n  \n   Example\n  \n   ```javascript\n   App.Person = DS.Model.extend({\n      addresses: MF.fragmentArray('address')\n    });\n  \n   App.Address = MF.Fragment.extend({\n      street: DS.attr('string'),\n      city: DS.attr('string'),\n      region: DS.attr('string'),\n      country: DS.attr('string')\n    });\n   ```\n  \n   @namespace MF\n   @method fragmentArray\n   @param {String} type the fragment type (optional)\n   @param {Object} options a hash of options\n   @return {Attribute}\n   */\n  function fragmentArray(type, options) {\n    options = options || {};\n    const metaType = (0, _metaTypeFor.default)('fragment-array', type, options);\n    const meta = {\n      modelName: type,\n      type: metaType,\n      isAttribute: true,\n      isFragment: true,\n      kind: 'fragment-array',\n      options\n    };\n\n    // eslint-disable-next-line ember/require-computed-property-dependencies\n    return (0, _object.computed)({\n      get(key) {\n        const identifier = (0, _store.recordIdentifierFor)(this);\n        const cache = this.store.cache;\n        if (cache.getFragment(identifier, key) === null) {\n          return null;\n        }\n        let fragmentArray = cache.getFragmentArrayCache(identifier, key);\n        if (!fragmentArray) {\n          fragmentArray = _fragment2.default.create({\n            modelName: type,\n            store: this.store,\n            identifier,\n            key\n          });\n          cache.setFragmentArrayCache(identifier, key, fragmentArray);\n        }\n        return fragmentArray;\n      },\n      set(key, value) {\n        (true && !(value === null || (0, _array.isArray)(value) && value.every(v => (0, _fragment.isFragment)(v) || (0, _utils.typeOf)(v) === 'object')) && (0, _debug.assert)('You must pass an array of fragments, or null to set a fragmentArray', value === null || (0, _array.isArray)(value) && value.every(v => (0, _fragment.isFragment)(v) || (0, _utils.typeOf)(v) === 'object')));\n        const identifier = (0, _store.recordIdentifierFor)(this);\n        const cache = this.store.cache;\n        if (value === null) {\n          cache.setDirtyFragment(identifier, key, null);\n          return null;\n        }\n        let fragmentArray = cache.getFragmentArrayCache(identifier, key);\n        if (!fragmentArray) {\n          fragmentArray = _fragment2.default.create({\n            modelName: type,\n            store: this.store,\n            identifier,\n            key\n          });\n          cache.setFragmentArrayCache(identifier, key, fragmentArray);\n        }\n        fragmentArray._setFragments(value);\n        return fragmentArray;\n      }\n    }).meta(meta);\n  }\n});","define(\"ember-data-model-fragments/attributes/fragment-owner\", [\"exports\", \"@ember/debug\", \"@ember/object\", \"ember-data-model-fragments/fragment\", \"@ember-data/store\"], function (_exports, _debug, _object, _fragment, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = fragmentOwner;\n  /**\n   `MF.fragmentOwner` defines a read-only attribute on a `MF.Fragment`\n   instance. The attribute returns a reference to the fragment's owner\n   record.\n  \n   Example\n  \n   ```javascript\n   App.Person = DS.Model.extend({\n      name: MF.fragment('name')\n    });\n  \n   App.Name = MF.Fragment.extend({\n      first: DS.attr('string'),\n      last: DS.attr('string'),\n      person: MF.fragmentOwner()\n    });\n   ```\n  \n   @namespace MF\n   @method fragmentOwner\n   @return {Attribute}\n   */\n  function fragmentOwner() {\n    return (0, _object.computed)('store.{_instanceCache,cache}', function () {\n      (true && !((0, _fragment.isFragment)(this)) && (0, _debug.assert)('Fragment owner properties can only be used on fragments.', (0, _fragment.isFragment)(this)));\n      const identifier = (0, _store.recordIdentifierFor)(this);\n      const owner = this.store.cache.getFragmentOwner(identifier);\n      if (!owner) {\n        return null;\n      }\n      // Get the owner record from the identifier\n      return this.store._instanceCache.getRecord(owner.ownerIdentifier);\n    }).meta({\n      isFragmentOwner: true\n    }).readOnly();\n  }\n});","define(\"ember-data-model-fragments/attributes/fragment\", [\"exports\", \"@ember/debug\", \"@ember/object\", \"@ember/utils\", \"@ember-data/store\", \"ember-data-model-fragments/fragment\", \"ember-data-model-fragments/util/meta-type-for\", \"ember-data-model-fragments/util/instance-of-type\"], function (_exports, _debug, _object, _utils, _store, _fragment, _metaTypeFor, _instanceOfType) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = fragment;\n  /**\n   `MF.fragment` defines an attribute on a `DS.Model` or `MF.Fragment`. Much\n   like `DS.belongsTo`, it creates a property that returns a single fragment of\n   the given type.\n  \n   It takes an optional hash as a second parameter, currently supported options\n   are:\n  \n   - `defaultValue`: An object literal or a function to be called to set the\n   attribute to a default value if none is supplied. Values are deep copied\n   before being used. Note that default values will be passed through the\n   fragment's serializer when creating the fragment. Defaults to `null`.\n   - `polymorphic`: Whether or not the fragments in the array can be child\n   classes of the given type.\n   - `typeKey`: If `polymorphic` is true, the property to use as the fragment\n   type in the normalized data. Defaults to `type`.\n  \n   Example\n  \n   ```javascript\n   App.Person = DS.Model.extend({\n      name: MF.fragment('name', { defaultValue: {} })\n    });\n  \n   App.Name = MF.Fragment.extend({\n      first: DS.attr('string'),\n      last: DS.attr('string')\n    });\n   ```\n  \n   @namespace MF\n   @method fragment\n   @param {String} type the fragment type\n   @param {Object} options a hash of options\n   @return {Attribute}\n   */\n  function fragment(type, options) {\n    options = options || {};\n    const metaType = (0, _metaTypeFor.default)('fragment', type, options);\n    const meta = {\n      modelName: type,\n      type: metaType,\n      isAttribute: true,\n      isFragment: true,\n      kind: 'fragment',\n      options\n    };\n    return (0, _object.computed)('store.{_instanceCache,cache}', {\n      get(key) {\n        const identifier = (0, _store.recordIdentifierFor)(this);\n        const cache = this.store.cache;\n        const fragmentIdentifier = cache.getFragment(identifier, key);\n        if (fragmentIdentifier === null) {\n          return null;\n        }\n        // Get the fragment record from the identifier\n        return this.store._instanceCache.getRecord(fragmentIdentifier);\n      },\n      set(key, value) {\n        (true && !(value === null || (0, _fragment.isFragment)(value) || (0, _utils.typeOf)(value) === 'object') && (0, _debug.assert)('You must pass a fragment or null to set a fragment', value === null || (0, _fragment.isFragment)(value) || (0, _utils.typeOf)(value) === 'object'));\n        const identifier = (0, _store.recordIdentifierFor)(this);\n        const cache = this.store.cache;\n        if (value === null) {\n          cache.setDirtyFragment(identifier, key, null);\n          return null;\n        }\n        if ((0, _fragment.isFragment)(value)) {\n          (true && !((0, _instanceOfType.default)(this.store.modelFor(type), value)) && (0, _debug.assert)(`You can only set '${type}' fragments to this property`, (0, _instanceOfType.default)(this.store.modelFor(type), value)));\n          const fragmentIdentifier = (0, _store.recordIdentifierFor)(value);\n          (0, _fragment.setFragmentOwner)(value, identifier, key);\n          cache.setDirtyFragment(identifier, key, fragmentIdentifier);\n          return value;\n        }\n        // Value is a plain object - update existing fragment or create new one\n        const fragmentIdentifier = cache.getFragment(identifier, key);\n        const actualType = (0, _fragment.getActualFragmentType)(type, options, value, this);\n        if ((fragmentIdentifier === null || fragmentIdentifier === void 0 ? void 0 : fragmentIdentifier.type) !== actualType) {\n          // Create a new fragment\n          const fragment = this.store.createFragment(actualType, value);\n          const newFragmentIdentifier = (0, _store.recordIdentifierFor)(fragment);\n          (0, _fragment.setFragmentOwner)(fragment, identifier, key);\n          cache.setDirtyFragment(identifier, key, newFragmentIdentifier);\n          return fragment;\n        }\n        // Update existing fragment\n        const fragment = this.store._instanceCache.getRecord(fragmentIdentifier);\n        fragment.setProperties(value);\n        return fragment;\n      }\n    }).meta(meta);\n  }\n});","define(\"ember-data-model-fragments/attributes/index\", [\"exports\", \"ember-data-model-fragments/attributes/fragment\", \"ember-data-model-fragments/attributes/fragment-array\", \"ember-data-model-fragments/attributes/array\", \"ember-data-model-fragments/attributes/fragment-owner\"], function (_exports, _fragment, _fragmentArray, _array, _fragmentOwner) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"array\", {\n    enumerable: true,\n    get: function () {\n      return _array.default;\n    }\n  });\n  Object.defineProperty(_exports, \"fragment\", {\n    enumerable: true,\n    get: function () {\n      return _fragment.default;\n    }\n  });\n  Object.defineProperty(_exports, \"fragmentArray\", {\n    enumerable: true,\n    get: function () {\n      return _fragmentArray.default;\n    }\n  });\n  Object.defineProperty(_exports, \"fragmentOwner\", {\n    enumerable: true,\n    get: function () {\n      return _fragmentOwner.default;\n    }\n  });\n});","define(\"ember-data-model-fragments/cache/fragment-cache\", [\"exports\", \"@ember-data/json-api\", \"ember-data-model-fragments/cache/fragment-state-manager\", \"ember-data-model-fragments/cache/fragment-record-data-proxy\"], function (_exports, _jsonApi, _fragmentStateManager, _fragmentRecordDataProxy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  /**\n   * FragmentCache wraps the default JSONAPICache and adds fragment-specific\n   * state management. It implements the V2 Cache interface.\n   *\n   * This is a singleton cache that handles ALL resources - both regular models\n   * and fragments.\n   */\n  class FragmentCache {\n    constructor(storeWrapper) {\n      _defineProperty(this, \"version\", '2');\n      this.__storeWrapper = storeWrapper;\n      this.__innerCache = new _jsonApi.default(storeWrapper);\n      this.__fragmentState = new _fragmentStateManager.default(storeWrapper);\n      this.__recordDataProxies = new Map();\n    }\n    get store() {\n      return this.__storeWrapper._store;\n    }\n\n    /**\n     * Get or create a FragmentRecordDataProxy for the given identifier.\n     * This provides backwards compatibility with code expecting per-resource RecordData API.\n     */\n    createFragmentRecordData(identifier) {\n      let proxy = this.__recordDataProxies.get(identifier.lid);\n      if (!proxy) {\n        proxy = new _fragmentRecordDataProxy.default(this, identifier);\n        this.__recordDataProxies.set(identifier.lid, proxy);\n      }\n      return proxy;\n    }\n\n    // ==================\n    // Fragment-specific public API\n    // ==================\n\n    getFragment(identifier, key) {\n      return this.__fragmentState.getFragment(identifier, key);\n    }\n    hasFragment(identifier, key) {\n      return this.__fragmentState.hasFragment(identifier, key);\n    }\n    setDirtyFragment(identifier, key, value) {\n      return this.__fragmentState.setDirtyFragment(identifier, key, value);\n    }\n    isFragmentDirty(identifier, key) {\n      return this.__fragmentState.isFragmentDirty(identifier, key);\n    }\n    getFragmentOwner(identifier) {\n      return this.__fragmentState.getFragmentOwner(identifier);\n    }\n    setFragmentOwner(fragmentIdentifier, ownerIdentifier, key) {\n      return this.__fragmentState.setFragmentOwner(fragmentIdentifier, ownerIdentifier, key);\n    }\n    newFragmentIdentifierForKey(identifier, key, attributes) {\n      return this.__fragmentState._newFragmentIdentifierForKey(identifier, key, attributes);\n    }\n    getFragmentArrayCache(identifier, key) {\n      return this.__fragmentState._getFragmentArrayCacheMap(identifier)[key];\n    }\n    setFragmentArrayCache(identifier, key, value) {\n      this.__fragmentState._getFragmentArrayCacheMap(identifier)[key] = value;\n    }\n    rollbackFragment(identifier, key) {\n      return this.__fragmentState.rollbackFragment(identifier, key);\n    }\n    hasChangedFragments(identifier) {\n      return this.__fragmentState.hasChangedFragments(identifier);\n    }\n    changedFragments(identifier) {\n      return this.__fragmentState.changedFragments(identifier);\n    }\n    getFragmentCanonicalState(identifier) {\n      return this.__fragmentState.getCanonicalState(identifier);\n    }\n    getFragmentCurrentState(identifier) {\n      return this.__fragmentState.getCurrentState(identifier);\n    }\n\n    // ==================\n    // V2 Cache Interface Implementation\n    // ==================\n\n    /**\n     * Cache the response to a request\n     */\n    put(doc) {\n      return this.__innerCache.put(doc);\n    }\n\n    /**\n     * Update the \"remote\" or \"canonical\" state via a merge operation\n     */\n    patch(op) {\n      return this.__innerCache.patch(op);\n    }\n\n    /**\n     * Update the \"local\" or \"current\" (unpersisted) state\n     */\n    mutate(mutation) {\n      return this.__innerCache.mutate(mutation);\n    }\n\n    /**\n     * Peek resource data from the Cache\n     */\n    peek(identifier) {\n      return this.__innerCache.peek(identifier);\n    }\n\n    /**\n     * Peek the Cache for existing request data\n     */\n    peekRequest(identifier) {\n      return this.__innerCache.peekRequest(identifier);\n    }\n\n    /**\n     * Push resource data from a remote source into the cache.\n     * Intercepts to handle fragment attributes.\n     */\n    upsert(identifier, data, calculateChanges) {\n      // Normalize the id to string to match identifier.id (which is always coerced to string)\n      // This ensures cached.id matches identifier.id type when didCommit compares them\n      if (data.id != null && typeof data.id !== 'string') {\n        data = {\n          ...data,\n          id: String(data.id)\n        };\n      }\n\n      // First, extract fragment attributes from data\n      let fragmentAttributeKeys = [];\n      const fragmentData = {};\n      if (data.attributes) {\n        const definitions = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n        for (const [key, definition] of Object.entries(definitions)) {\n          if (definition.isFragment && data.attributes[key] !== undefined) {\n            fragmentData[key] = data.attributes[key];\n            fragmentAttributeKeys.push(key);\n          }\n        }\n\n        // Remove fragment attributes before passing to inner cache\n        if (fragmentAttributeKeys.length > 0) {\n          const cleanedData = {\n            ...data,\n            attributes: {\n              ...data.attributes\n            }\n          };\n          for (const key of fragmentAttributeKeys) {\n            delete cleanedData.attributes[key];\n          }\n          data = cleanedData;\n        }\n      }\n\n      // Let inner cache handle non-fragment attributes\n      const changedKeys = this.__innerCache.upsert(identifier, data, calculateChanges);\n\n      // Handle fragment attributes\n      if (fragmentAttributeKeys.length > 0) {\n        const changedFragmentKeys = this.__fragmentState.pushFragmentData(identifier, {\n          attributes: fragmentData\n        }, calculateChanges);\n        if (calculateChanges && changedFragmentKeys !== null && changedFragmentKeys !== void 0 && changedFragmentKeys.length) {\n          return [...(changedKeys || []), ...changedFragmentKeys];\n        }\n      }\n      return changedKeys;\n    }\n\n    /**\n     * Signal to the cache that a new record has been instantiated on the client\n     */\n    clientDidCreate(identifier, options) {\n      return this.__innerCache.clientDidCreate(identifier, options);\n    }\n\n    /**\n     * Signals to the cache that a resource will be part of a save transaction\n     */\n    willCommit(identifier) {\n      // Handle fragments first\n      this.__fragmentState.willCommitFragments(identifier);\n      return this.__innerCache.willCommit(identifier);\n    }\n\n    /**\n     * Signals to the cache that a resource was successfully updated\n     */\n    didCommit(identifier, data) {\n      var _data, _data2;\n      // In ember-data 4.12+, didCommit receives { request, content } where\n      // content is a ResourceDocument with { data: { id, type, attributes, relationships } }\n      // We need to extract fragment attributes from data.content.data.attributes\n\n      // Normalize the response id to match the identifier id type\n      // ember-data 4.12 does strict equality checking, so '1' !== 1 would fail\n      if (((_data = data) === null || _data === void 0 || (_data = _data.content) === null || _data === void 0 || (_data = _data.data) === null || _data === void 0 ? void 0 : _data.id) != null && typeof data.content.data.id !== 'string') {\n        data = {\n          ...data,\n          content: {\n            ...data.content,\n            data: {\n              ...data.content.data,\n              id: String(data.content.data.id)\n            }\n          }\n        };\n      }\n\n      // Let inner cache handle the owner record commit first\n      const result = this.__innerCache.didCommit(identifier, data);\n\n      // Extract the attributes from the new structure\n      const responseData = (_data2 = data) === null || _data2 === void 0 || (_data2 = _data2.content) === null || _data2 === void 0 ? void 0 : _data2.data;\n      const attributes = responseData === null || responseData === void 0 ? void 0 : responseData.attributes;\n\n      // Extract fragment data from attributes\n      let fragmentData = null;\n      if (attributes) {\n        const definitions = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n        fragmentData = {\n          attributes: {}\n        };\n        for (const [key, definition] of Object.entries(definitions)) {\n          if (definition.isFragment && attributes[key] !== undefined) {\n            fragmentData.attributes[key] = attributes[key];\n          }\n        }\n        if (Object.keys(fragmentData.attributes).length === 0) {\n          fragmentData = null;\n        }\n      }\n\n      // Handle fragment commit\n      const changedFragmentKeys = this.__fragmentState.didCommitFragments(identifier, fragmentData);\n\n      // Notify changed fragments\n      if ((changedFragmentKeys === null || changedFragmentKeys === void 0 ? void 0 : changedFragmentKeys.length) > 0) {\n        changedFragmentKeys.forEach(key => {\n          this.__storeWrapper.notifyChange(identifier, 'attributes', key);\n        });\n      }\n      return result;\n    }\n\n    /**\n     * Signals to the cache that a resource save transaction failed\n     */\n    commitWasRejected(identifier, errors) {\n      this.__fragmentState.commitWasRejectedFragments(identifier);\n      return this.__innerCache.commitWasRejected(identifier, errors);\n    }\n\n    /**\n     * Signals to the cache that all data for a resource should be cleared\n     */\n    unloadRecord(identifier) {\n      this.__fragmentState.unloadFragments(identifier);\n      this.__recordDataProxies.delete(identifier.lid);\n      return this.__innerCache.unloadRecord(identifier);\n    }\n\n    /**\n     * Retrieve the data for an attribute from the cache\n     */\n    getAttr(identifier, attr) {\n      // Check if this is a fragment attribute\n      const definitions = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n      const definition = definitions[attr];\n      if (definition !== null && definition !== void 0 && definition.isFragment) {\n        // Fragment attributes are handled by fragment state manager\n        // getFragment returns identifier(s), we need to convert to Fragment instance(s)\n        const fragmentValue = this.__fragmentState.getFragment(identifier, attr);\n        if (fragmentValue === null || fragmentValue === undefined) {\n          return fragmentValue;\n        }\n\n        // For single fragments, convert identifier to Fragment instance\n        if (definition.kind === 'fragment') {\n          if (fragmentValue.lid) {\n            // It's an identifier, get the record instance\n            return this.store._instanceCache.getRecord(fragmentValue);\n          }\n          return fragmentValue;\n        }\n\n        // For fragment arrays, convert array of identifiers to Fragment instances\n        if (definition.kind === 'fragment-array' && Array.isArray(fragmentValue)) {\n          return fragmentValue.map(item => {\n            if (item !== null && item !== void 0 && item.lid) {\n              return this.store._instanceCache.getRecord(item);\n            }\n            return item;\n          });\n        }\n\n        // For primitive arrays, return as-is\n        return fragmentValue;\n      }\n      return this.__innerCache.getAttr(identifier, attr);\n    }\n\n    /**\n     * Mutate the data for an attribute in the cache\n     */\n    setAttr(identifier, attr, value) {\n      const definitions = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n      const definition = definitions[attr];\n      if (definition !== null && definition !== void 0 && definition.isFragment) {\n        return this.__fragmentState.setDirtyFragment(identifier, attr, value);\n      }\n\n      // Track if we had changes before this setAttr\n      const hadChanges = this.__innerCache.hasChangedAttrs(identifier);\n\n      // Trigger dirty state propagation for regular attrs\n      this.__innerCache.setAttr(identifier, attr, value);\n\n      // Track if we have changes after this setAttr\n      const hasChanges = this.__innerCache.hasChangedAttrs(identifier);\n\n      // If dirty state changed, notify state change for hasDirtyAttributes\n      if (hadChanges !== hasChanges) {\n        this.__storeWrapper.notifyChange(identifier, 'state');\n      }\n\n      // Check if record has fragment owner and propagate dirty state\n      const owner = this.__fragmentState.getFragmentOwner(identifier);\n      if (owner) {\n        // Check if the fragment is now dirty or clean\n        if (this.__fragmentState.hasChangedAttributes(identifier)) {\n          this.__fragmentState._fragmentDidDirty(identifier);\n        } else {\n          this.__fragmentState._fragmentDidReset(identifier);\n        }\n      }\n    }\n\n    /**\n     * Query the cache for the changed attributes of a resource\n     */\n    changedAttrs(identifier) {\n      const changedAttrs = this.__innerCache.changedAttrs(identifier);\n      const changedFragments = this.__fragmentState.changedFragments(identifier);\n      return Object.assign({}, changedAttrs, changedFragments);\n    }\n\n    /**\n     * Query the cache for whether any mutated attributes exist\n     */\n    hasChangedAttrs(identifier) {\n      // New records are considered to have dirty attributes since they haven't been saved\n      // This is important for fragments created via createFragment\n      return this.isNew(identifier) || this.__innerCache.hasChangedAttrs(identifier) || this.__fragmentState.hasChangedFragments(identifier);\n    }\n\n    /**\n     * Tell the cache to discard any uncommitted mutations to attributes\n     */\n    rollbackAttrs(identifier) {\n      const dirtyAttrKeys = this.__innerCache.rollbackAttrs(identifier);\n      const dirtyFragmentKeys = this.__fragmentState.rollbackFragments(identifier);\n      return [...(dirtyAttrKeys || []), ...(dirtyFragmentKeys || [])];\n    }\n\n    /**\n     * Query the cache for the current state of a relationship\n     */\n    getRelationship(identifier, field) {\n      return this.__innerCache.getRelationship(identifier, field);\n    }\n\n    /**\n     * Update the cache state for the given resource to be marked as locally deleted\n     */\n    setIsDeleted(identifier, isDeleted) {\n      return this.__innerCache.setIsDeleted(identifier, isDeleted);\n    }\n\n    /**\n     * Query the cache for any validation errors applicable to the given resource\n     */\n    getErrors(identifier) {\n      return this.__innerCache.getErrors(identifier);\n    }\n\n    /**\n     * Query the cache for whether a given resource has any available data\n     */\n    isEmpty(identifier) {\n      return this.__innerCache.isEmpty(identifier);\n    }\n\n    /**\n     * Query the cache for whether a given resource was created locally\n     */\n    isNew(identifier) {\n      // For fragments that have been committed, they are no longer new\n      if (this.__fragmentState.isFragmentCommitted(identifier)) {\n        return false;\n      }\n      return this.__innerCache.isNew(identifier);\n    }\n\n    /**\n     * Query the cache for whether a given resource is marked as deleted\n     */\n    isDeleted(identifier) {\n      return this.__innerCache.isDeleted(identifier);\n    }\n\n    /**\n     * Query the cache for whether a given resource has been deleted and persisted\n     */\n    isDeletionCommitted(identifier) {\n      return this.__innerCache.isDeletionCommitted(identifier);\n    }\n\n    // ==================\n    // Cache forking (delegate to inner)\n    // ==================\n\n    fork() {\n      return this.__innerCache.fork();\n    }\n    merge(cache) {\n      return this.__innerCache.merge(cache);\n    }\n    diff() {\n      return this.__innerCache.diff();\n    }\n\n    // ==================\n    // SSR Support (delegate to inner)\n    // ==================\n\n    dump() {\n      return this.__innerCache.dump();\n    }\n    hydrate(stream) {\n      return this.__innerCache.hydrate(stream);\n    }\n  }\n  _exports.default = FragmentCache;\n});","define(\"ember-data-model-fragments/cache/fragment-record-data-proxy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * FragmentRecordDataProxy provides a backwards-compatible per-resource API\n   * for code that expects a RecordData instance per record/fragment.\n   *\n   * This is a thin wrapper that delegates to the singleton FragmentCache\n   * with the appropriate identifier.\n   */\n  class FragmentRecordDataProxy {\n    constructor(cache, identifier) {\n      this.__cache = cache;\n      this.identifier = identifier;\n    }\n    get modelName() {\n      return this.identifier.type;\n    }\n    get id() {\n      return this.identifier.id;\n    }\n    get clientId() {\n      return this.identifier.lid;\n    }\n    get storeWrapper() {\n      return this.__cache.__storeWrapper;\n    }\n\n    // Fragment-specific methods\n    getFragment(key) {\n      return this.__cache.getFragment(this.identifier, key);\n    }\n    hasFragment(key) {\n      return this.__cache.hasFragment(this.identifier, key);\n    }\n    setDirtyFragment(key, value) {\n      return this.__cache.setDirtyFragment(this.identifier, key, value);\n    }\n    isFragmentDirty(key) {\n      return this.__cache.isFragmentDirty(this.identifier, key);\n    }\n    getFragmentOwner() {\n      const owner = this.__cache.getFragmentOwner(this.identifier);\n      if (!owner) {\n        return null;\n      }\n      // Return a proxy for the owner for backwards compatibility\n      return this.__cache.createFragmentRecordData(owner.ownerIdentifier);\n    }\n    setFragmentOwner(ownerRecordData, key) {\n      const ownerIdentifier = ownerRecordData.identifier || ownerRecordData;\n      return this.__cache.setFragmentOwner(this.identifier, ownerIdentifier, key);\n    }\n    _newFragmentRecordDataForKey(key, attributes) {\n      const fragmentIdentifier = this.__cache.newFragmentIdentifierForKey(this.identifier, key, attributes);\n      return this.__cache.createFragmentRecordData(fragmentIdentifier);\n    }\n    _newFragmentRecordData(definition, attributes) {\n      // This is called with a definition object, not a key\n      // We need to delegate to the fragment state manager\n      const fragmentIdentifier = this.__cache.__fragmentState._newFragmentIdentifier(this.identifier, definition, attributes);\n      return this.__cache.createFragmentRecordData(fragmentIdentifier);\n    }\n    get _fragmentArrayCache() {\n      return this.__cache.__fragmentState._getFragmentArrayCacheMap(this.identifier);\n    }\n    rollbackFragment(key) {\n      return this.__cache.rollbackFragment(this.identifier, key);\n    }\n    hasChangedFragments() {\n      return this.__cache.hasChangedFragments(this.identifier);\n    }\n    changedFragments() {\n      return this.__cache.changedFragments(this.identifier);\n    }\n\n    // Standard RecordData-like methods\n    hasChangedAttributes() {\n      return this.__cache.hasChangedAttrs(this.identifier);\n    }\n    changedAttributes() {\n      return this.__cache.changedAttrs(this.identifier);\n    }\n    getCanonicalState() {\n      // Get both regular attrs and fragment canonical state\n      const fragmentState = this.__cache.getFragmentCanonicalState(this.identifier);\n      const regularState = this.__cache.peek(this.identifier);\n      return Object.assign({}, (regularState === null || regularState === void 0 ? void 0 : regularState.attributes) || {}, fragmentState);\n    }\n    getCurrentState() {\n      // Get both regular attrs and fragment current state\n      const fragmentState = this.__cache.getFragmentCurrentState(this.identifier);\n      const regularState = {};\n\n      // Get regular attributes from cache\n      const definitions = this.__cache.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(this.identifier);\n      for (const [key, definition] of Object.entries(definitions)) {\n        if (!definition.isFragment) {\n          regularState[key] = this.__cache.getAttr(this.identifier, key);\n        }\n      }\n      return Object.assign({}, regularState, fragmentState);\n    }\n    setDirtyAttribute(key, value) {\n      return this.__cache.setAttr(this.identifier, key, value);\n    }\n    getAttr(key) {\n      return this.__cache.getAttr(this.identifier, key);\n    }\n    rollbackAttributes() {\n      return this.__cache.rollbackAttrs(this.identifier);\n    }\n    isEmpty() {\n      return this.__cache.isEmpty(this.identifier);\n    }\n    isNew() {\n      return this.__cache.isNew(this.identifier);\n    }\n    isDeleted() {\n      return this.__cache.isDeleted(this.identifier);\n    }\n\n    // Methods for InternalModel compatibility\n    _fragmentGetRecord(properties) {\n      return this.__cache.__fragmentState._getRecord(this.identifier, properties);\n    }\n    _fragmentPushData(data) {\n      this.__cache.__fragmentState._fragmentPushData(this.identifier, data);\n    }\n    _fragmentWillCommit() {\n      this.__cache.__fragmentState._fragmentWillCommit(this.identifier);\n    }\n    _fragmentDidCommit(data) {\n      this.__cache.__fragmentState._fragmentDidCommit(this.identifier, data);\n    }\n    _fragmentRollbackAttributes() {\n      this.__cache.__fragmentState._fragmentRollbackAttributes(this.identifier);\n    }\n    _fragmentCommitWasRejected() {\n      this.__cache.__fragmentState._fragmentCommitWasRejected(this.identifier);\n    }\n    _fragmentUnloadRecord() {\n      this.__cache.__fragmentState._fragmentUnloadRecord(this.identifier);\n    }\n    notifyStateChange(key) {\n      this.__cache.__storeWrapper.notifyChange(this.identifier, 'attributes', key);\n    }\n    fragmentDidDirty() {\n      this.__cache.__fragmentState._fragmentDidDirty(this.identifier);\n    }\n    fragmentDidReset() {\n      this.__cache.__fragmentState._fragmentDidReset(this.identifier);\n    }\n  }\n  _exports.default = FragmentRecordDataProxy;\n});","define(\"ember-data-model-fragments/cache/fragment-state-manager\", [\"exports\", \"@ember/debug\", \"@ember/utils\", \"@ember/array\", \"@ember-data/model/-private\", \"@ember-data/store\", \"ember-data-model-fragments/fragment\", \"ember-data-model-fragments/util/instance-of-type\"], function (_exports, _debug, _utils, _array, _private, _store, _fragment, _instanceOfType) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Behavior for single fragment attributes\n   */\n  class FragmentBehavior {\n    constructor(stateManager, identifier, definition) {\n      this.stateManager = stateManager;\n      this.identifier = identifier;\n      this.definition = definition;\n    }\n    getDefaultValue(key) {\n      const {\n        options\n      } = this.definition;\n      if (options.defaultValue === undefined) {\n        return null;\n      }\n      let defaultValue;\n      if (typeof options.defaultValue === 'function') {\n        const record = this.stateManager._getRecord(this.identifier);\n        defaultValue = options.defaultValue.call(null, record, options, key);\n      } else {\n        defaultValue = options.defaultValue;\n      }\n      (true && !(defaultValue === null || (0, _utils.typeOf)(defaultValue) === 'object' || (0, _fragment.isFragment)(defaultValue)) && (0, _debug.assert)(\"The fragment's default value must be an object or null\", defaultValue === null || (0, _utils.typeOf)(defaultValue) === 'object' || (0, _fragment.isFragment)(defaultValue)));\n      if (defaultValue === null) {\n        return null;\n      }\n      if ((0, _fragment.isFragment)(defaultValue)) {\n        (true && !((0, _instanceOfType.default)(this.stateManager.__storeWrapper._store.modelFor(this.definition.modelName), defaultValue)) && (0, _debug.assert)(`The fragment's default value must be a '${this.definition.modelName}' fragment`, (0, _instanceOfType.default)(this.stateManager.__storeWrapper._store.modelFor(this.definition.modelName), defaultValue)));\n        const fragmentIdentifier = this.stateManager._identifierFor(defaultValue);\n        this.stateManager.setFragmentOwner(fragmentIdentifier, this.identifier, key);\n        return fragmentIdentifier;\n      }\n      return this.stateManager._newFragmentIdentifier(this.identifier, this.definition, defaultValue);\n    }\n    pushData(fragment, canonical) {\n      (true && !(canonical === null || (0, _utils.typeOf)(canonical) === 'object') && (0, _debug.assert)('Fragment canonical value must be an object or null', canonical === null || (0, _utils.typeOf)(canonical) === 'object'));\n      if (canonical === null) {\n        return null;\n      }\n      if (fragment) {\n        this.stateManager._fragmentPushData(fragment, {\n          attributes: canonical\n        });\n        return fragment;\n      }\n      return this.stateManager._newFragmentIdentifier(this.identifier, this.definition, canonical);\n    }\n    willCommit(fragment) {\n      this.stateManager._fragmentWillCommit(fragment);\n    }\n    didCommit(fragment, canonical) {\n      (true && !(canonical == null || (0, _utils.typeOf)(canonical) === 'object') && (0, _debug.assert)('Fragment canonical value must be an object', canonical == null || (0, _utils.typeOf)(canonical) === 'object'));\n      if (canonical == null) {\n        if (fragment) {\n          this.stateManager._fragmentDidCommit(fragment, null);\n        }\n        if (canonical === null) {\n          return null;\n        }\n        return fragment;\n      }\n      if (fragment) {\n        this.stateManager._fragmentDidCommit(fragment, {\n          attributes: canonical\n        });\n        return fragment;\n      }\n      return this.stateManager._newFragmentIdentifier(this.identifier, this.definition, canonical);\n    }\n    commitWasRejected(fragment) {\n      this.stateManager._fragmentCommitWasRejected(fragment);\n    }\n    rollback(fragment) {\n      this.stateManager._fragmentRollbackAttributes(fragment);\n    }\n    unload(fragment) {\n      this.stateManager._fragmentUnloadRecord(fragment);\n    }\n    isDirty(value, originalValue) {\n      return value !== originalValue || value !== null && this.stateManager.hasChangedAttributes(value);\n    }\n    currentState(fragment) {\n      return fragment === null ? null : this.stateManager.getCurrentState(fragment);\n    }\n    canonicalState(fragment) {\n      return fragment === null ? null : this.stateManager.getCanonicalState(fragment);\n    }\n  }\n\n  /**\n   * Behavior for fragment array attributes\n   */\n  class FragmentArrayBehavior {\n    constructor(stateManager, identifier, definition) {\n      this.stateManager = stateManager;\n      this.identifier = identifier;\n      this.definition = definition;\n    }\n    getDefaultValue(key) {\n      const {\n        options\n      } = this.definition;\n      if (options.defaultValue === undefined) {\n        return [];\n      }\n      let defaultValue;\n      if (typeof options.defaultValue === 'function') {\n        const record = this.stateManager._getRecord(this.identifier);\n        defaultValue = options.defaultValue.call(null, record, options, key);\n      } else {\n        defaultValue = options.defaultValue;\n      }\n      (true && !(defaultValue === null || (0, _array.isArray)(defaultValue) && defaultValue.every(v => (0, _utils.typeOf)(v) === 'object' || (0, _fragment.isFragment)(v))) && (0, _debug.assert)(\"The fragment array's default value must be an array of fragments or null\", defaultValue === null || (0, _array.isArray)(defaultValue) && defaultValue.every(v => (0, _utils.typeOf)(v) === 'object' || (0, _fragment.isFragment)(v))));\n      if (defaultValue === null) {\n        return null;\n      }\n      return defaultValue.map(item => {\n        if ((0, _fragment.isFragment)(item)) {\n          (true && !((0, _instanceOfType.default)(this.stateManager.__storeWrapper._store.modelFor(this.definition.modelName), item)) && (0, _debug.assert)(`The fragment array's default value can only include '${this.definition.modelName}' fragments`, (0, _instanceOfType.default)(this.stateManager.__storeWrapper._store.modelFor(this.definition.modelName), item)));\n          const fragmentIdentifier = this.stateManager._identifierFor(item);\n          this.stateManager.setFragmentOwner(fragmentIdentifier, this.identifier, key);\n          return fragmentIdentifier;\n        }\n        return this.stateManager._newFragmentIdentifier(this.identifier, this.definition, item);\n      });\n    }\n    pushData(fragmentArray, canonical) {\n      (true && !(canonical === null || (0, _array.isArray)(canonical) && canonical.every(v => (0, _utils.typeOf)(v) === 'object')) && (0, _debug.assert)('Fragment array canonical value must be an array of objects', canonical === null || (0, _array.isArray)(canonical) && canonical.every(v => (0, _utils.typeOf)(v) === 'object')));\n      if (canonical === null) {\n        return null;\n      }\n      return canonical.map((attributes, i) => {\n        const fragment = fragmentArray === null || fragmentArray === void 0 ? void 0 : fragmentArray[i];\n        if (fragment) {\n          this.stateManager._fragmentPushData(fragment, {\n            attributes\n          });\n          return fragment;\n        } else {\n          return this.stateManager._newFragmentIdentifier(this.identifier, this.definition, attributes);\n        }\n      });\n    }\n    willCommit(fragmentArray) {\n      fragmentArray.forEach(fragment => this.stateManager._fragmentWillCommit(fragment));\n    }\n    didCommit(fragmentArray, canonical) {\n      (true && !(canonical == null || (0, _array.isArray)(canonical) && canonical.every(v => (0, _utils.typeOf)(v) === 'object')) && (0, _debug.assert)('Fragment array canonical value must be an array of objects', canonical == null || (0, _array.isArray)(canonical) && canonical.every(v => (0, _utils.typeOf)(v) === 'object')));\n      if (canonical == null) {\n        fragmentArray === null || fragmentArray === void 0 || fragmentArray.forEach(fragment => this.stateManager._fragmentDidCommit(fragment, null));\n        if (canonical === null) {\n          return null;\n        }\n        return fragmentArray;\n      }\n      const result = canonical.map((attributes, i) => {\n        const fragment = fragmentArray === null || fragmentArray === void 0 ? void 0 : fragmentArray[i];\n        if (fragment) {\n          this.stateManager._fragmentDidCommit(fragment, {\n            attributes\n          });\n          return fragment;\n        } else {\n          return this.stateManager._newFragmentIdentifier(this.identifier, this.definition, attributes);\n        }\n      });\n      for (let i = canonical.length; i < (fragmentArray === null || fragmentArray === void 0 ? void 0 : fragmentArray.length); ++i) {\n        this.stateManager._fragmentDidCommit(fragmentArray[i], null);\n      }\n      return result;\n    }\n    commitWasRejected(fragmentArray) {\n      fragmentArray.forEach(fragment => this.stateManager._fragmentCommitWasRejected(fragment));\n    }\n    rollback(fragmentArray) {\n      fragmentArray.forEach(fragment => this.stateManager._fragmentRollbackAttributes(fragment));\n    }\n    unload(fragmentArray) {\n      fragmentArray.forEach(fragment => this.stateManager._fragmentUnloadRecord(fragment));\n    }\n    isDirty(value, originalValue) {\n      return !isArrayEqual(value, originalValue) || value !== null && value.some(id => this.stateManager.hasChangedAttributes(id));\n    }\n    currentState(fragmentArray) {\n      return fragmentArray === null ? null : fragmentArray.map(fragment => this.stateManager.getCurrentState(fragment));\n    }\n    canonicalState(fragmentArray) {\n      return fragmentArray === null ? null : fragmentArray.map(fragment => this.stateManager.getCanonicalState(fragment));\n    }\n  }\n\n  /**\n   * Behavior for plain array attributes\n   */\n  class ArrayBehavior {\n    constructor(stateManager, identifier, definition) {\n      this.stateManager = stateManager;\n      this.identifier = identifier;\n      this.definition = definition;\n    }\n    getDefaultValue(key) {\n      const {\n        options\n      } = this.definition;\n      if (options.defaultValue === undefined) {\n        return [];\n      }\n      let defaultValue;\n      if (typeof options.defaultValue === 'function') {\n        const record = this.stateManager._getRecord(this.identifier);\n        defaultValue = options.defaultValue.call(null, record, options, key);\n      } else {\n        defaultValue = options.defaultValue;\n      }\n      (true && !(defaultValue === null || (0, _array.isArray)(defaultValue)) && (0, _debug.assert)(\"The array's default value must be an array or null\", defaultValue === null || (0, _array.isArray)(defaultValue)));\n      if (defaultValue === null) {\n        return null;\n      }\n      return defaultValue.slice();\n    }\n    pushData(array, canonical) {\n      (true && !(array === null || (0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', array === null || (0, _array.isArray)(array)));\n      (true && !(canonical === null || (0, _array.isArray)(canonical)) && (0, _debug.assert)('Array canonical value must be an array', canonical === null || (0, _array.isArray)(canonical)));\n      if (canonical === null) {\n        return null;\n      }\n      return canonical.slice();\n    }\n    willCommit() {\n      // nothing to do\n    }\n    didCommit(array, canonical) {\n      (true && !(array === null || (0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', array === null || (0, _array.isArray)(array)));\n      (true && !(canonical === null || canonical === undefined || (0, _array.isArray)(canonical)) && (0, _debug.assert)('Array canonical value must be an array', canonical === null || canonical === undefined || (0, _array.isArray)(canonical)));\n      if (canonical === null) {\n        return null;\n      }\n      if (canonical === undefined) {\n        return array;\n      }\n      return canonical.slice();\n    }\n    commitWasRejected() {\n      // nothing to do\n    }\n    rollback() {\n      // nothing to do\n    }\n    unload() {\n      // nothing to do\n    }\n    isDirty(value, originalValue) {\n      return !isArrayEqual(value, originalValue);\n    }\n    currentState(array) {\n      return array === null ? null : array.slice();\n    }\n    canonicalState(array) {\n      return array === null ? null : array.slice();\n    }\n  }\n\n  /**\n   * FragmentStateManager manages fragment-specific state keyed by identifier.\n   * It replaces the per-resource FragmentRecordData with a centralized state store.\n   */\n  class FragmentStateManager {\n    constructor(storeWrapper) {\n      this.__storeWrapper = storeWrapper;\n      // Keyed by identifier.lid\n      this.__fragmentData = new Map(); // canonical server state\n      this.__fragments = new Map(); // dirty local state\n      this.__inFlightFragments = new Map(); // in-flight state\n      this.__fragmentOwners = new Map(); // fragment → {ownerIdentifier, key}\n      this.__fragmentArrayCache = new Map(); // cached StatefulArray/FragmentArray instances\n      this.__behaviors = new Map(); // identifier.lid → {key → Behavior}\n      this.__committedFragments = new Set(); // fragments that have been committed (no longer new)\n      this.__inFlightAttrValues = new Map(); // in-flight non-fragment attribute values (for commit)\n    }\n    get store() {\n      return this.__storeWrapper._store;\n    }\n    _identifierFor(fragmentOrRecord) {\n      // Use recordIdentifierFor for records/fragments that already exist\n      // This is the correct way to get an identifier from an instantiated record\n      return (0, _store.recordIdentifierFor)(fragmentOrRecord);\n    }\n    _getRecord(identifier, properties) {\n      return this.store._instanceCache.getRecord(identifier, properties);\n    }\n    _getBehaviors(identifier) {\n      let behaviors = this.__behaviors.get(identifier.lid);\n      if (!behaviors) {\n        behaviors = Object.create(null);\n        const definitions = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n        for (const [key, definition] of Object.entries(definitions)) {\n          if (!definition.isFragment) {\n            continue;\n          }\n          switch (definition.kind) {\n            case 'fragment-array':\n              behaviors[key] = new FragmentArrayBehavior(this, identifier, definition);\n              break;\n            case 'fragment':\n              behaviors[key] = new FragmentBehavior(this, identifier, definition);\n              break;\n            case 'array':\n              behaviors[key] = new ArrayBehavior(this, identifier, definition);\n              break;\n            default:\n              (true && !(false) && (0, _debug.assert)(`Unsupported fragment type: ${definition.kind}`));\n              break;\n          }\n        }\n        this.__behaviors.set(identifier.lid, behaviors);\n      }\n      return behaviors;\n    }\n    _getFragmentDataMap(identifier) {\n      let data = this.__fragmentData.get(identifier.lid);\n      if (!data) {\n        data = Object.create(null);\n        this.__fragmentData.set(identifier.lid, data);\n      }\n      return data;\n    }\n    _getFragmentsMap(identifier) {\n      let data = this.__fragments.get(identifier.lid);\n      if (!data) {\n        data = Object.create(null);\n        this.__fragments.set(identifier.lid, data);\n      }\n      return data;\n    }\n    _getInFlightFragmentsMap(identifier) {\n      let data = this.__inFlightFragments.get(identifier.lid);\n      if (!data) {\n        data = Object.create(null);\n        this.__inFlightFragments.set(identifier.lid, data);\n      }\n      return data;\n    }\n    _getFragmentArrayCacheMap(identifier) {\n      let cache = this.__fragmentArrayCache.get(identifier.lid);\n      if (!cache) {\n        cache = Object.create(null);\n        this.__fragmentArrayCache.set(identifier.lid, cache);\n      }\n      return cache;\n    }\n    _getFragmentDefault(identifier, key) {\n      const fragmentData = this._getFragmentDataMap(identifier);\n\n      // Guard against re-entrant calls during fragment creation.\n      // When creating a fragment identifier, ember-data may trigger notifications\n      // that cause getAttr to be called again before we've finished initializing.\n      // By checking if the key exists (even as undefined), we prevent infinite recursion.\n      if (key in fragmentData) {\n        return fragmentData[key];\n      }\n      const behaviors = this._getBehaviors(identifier);\n      const behavior = behaviors[key];\n      (true && !(behavior != null) && (0, _debug.assert)(`Attribute '${key}' for model '${identifier.type}' must be a fragment`, behavior != null)); // Set sentinel value BEFORE creating the fragment to prevent re-entrancy.\n      // This ensures any re-entrant calls to getFragment will find this key\n      // and return early instead of trying to create another default.\n      fragmentData[key] = undefined;\n      const defaultValue = behavior.getDefaultValue(key);\n      fragmentData[key] = defaultValue;\n      return defaultValue;\n    }\n    getFragment(identifier, key) {\n      const fragments = this.__fragments.get(identifier.lid);\n      if (fragments && key in fragments) {\n        return fragments[key];\n      }\n      const inFlight = this.__inFlightFragments.get(identifier.lid);\n      if (inFlight && key in inFlight) {\n        return inFlight[key];\n      }\n      const fragmentData = this.__fragmentData.get(identifier.lid);\n      if (fragmentData && key in fragmentData) {\n        return fragmentData[key];\n      }\n      return this._getFragmentDefault(identifier, key);\n    }\n    hasFragment(identifier, key) {\n      const fragments = this.__fragments.get(identifier.lid);\n      if (fragments && key in fragments) {\n        return true;\n      }\n      const inFlight = this.__inFlightFragments.get(identifier.lid);\n      if (inFlight && key in inFlight) {\n        return true;\n      }\n      const fragmentData = this.__fragmentData.get(identifier.lid);\n      return fragmentData && key in fragmentData;\n    }\n    setDirtyFragment(identifier, key, value) {\n      const behaviors = this._getBehaviors(identifier);\n      const behavior = behaviors[key];\n      (true && !(behavior != null) && (0, _debug.assert)(`Attribute '${key}' for model '${identifier.type}' must be a fragment`, behavior != null));\n      const inFlight = this.__inFlightFragments.get(identifier.lid);\n      const fragmentData = this.__fragmentData.get(identifier.lid);\n      let originalValue;\n      if (inFlight && key in inFlight) {\n        originalValue = inFlight[key];\n      } else if (fragmentData && key in fragmentData) {\n        originalValue = fragmentData[key];\n      } else {\n        originalValue = this._getFragmentDefault(identifier, key);\n      }\n      const isDirty = behavior.isDirty(value, originalValue);\n      const oldDirty = this.isFragmentDirty(identifier, key);\n      if (isDirty !== oldDirty) {\n        this._notifyStateChange(identifier, key);\n      }\n      const fragments = this._getFragmentsMap(identifier);\n      if (isDirty) {\n        fragments[key] = value;\n        this._fragmentDidDirty(identifier);\n      } else {\n        delete fragments[key];\n        this._fragmentDidReset(identifier);\n      }\n    }\n    isFragmentDirty(identifier, key) {\n      const fragments = this.__fragments.get(identifier.lid);\n      return (fragments === null || fragments === void 0 ? void 0 : fragments[key]) !== undefined;\n    }\n    getFragmentOwner(identifier) {\n      return this.__fragmentOwners.get(identifier.lid);\n    }\n    setFragmentOwner(fragmentIdentifier, ownerIdentifier, key) {\n      (true && !(!this.__fragmentOwners.has(fragmentIdentifier.lid) || this.__fragmentOwners.get(fragmentIdentifier.lid).ownerIdentifier === ownerIdentifier) && (0, _debug.assert)('Fragments can only belong to one owner, try copying instead', !this.__fragmentOwners.has(fragmentIdentifier.lid) || this.__fragmentOwners.get(fragmentIdentifier.lid).ownerIdentifier === ownerIdentifier));\n      this.__fragmentOwners.set(fragmentIdentifier.lid, {\n        ownerIdentifier,\n        key\n      });\n    }\n    _newFragmentIdentifierForKey(identifier, key, attributes) {\n      const behaviors = this._getBehaviors(identifier);\n      const behavior = behaviors[key];\n      (true && !(behavior != null) && (0, _debug.assert)(`Attribute '${key}' for model '${identifier.type}' must be a fragment`, behavior != null));\n      return this._newFragmentIdentifier(identifier, behavior.definition, attributes);\n    }\n    _newFragmentIdentifier(ownerIdentifier, definition, attributes) {\n      const type = (0, _fragment.getActualFragmentType)(definition.modelName, definition.options, attributes, this._getRecord(ownerIdentifier));\n      const fragmentIdentifier = this.store.identifierCache.createIdentifierForNewRecord({\n        type\n      });\n      this.setFragmentOwner(fragmentIdentifier, ownerIdentifier, definition.name);\n      // Initialize the fragment in the cache - use clientDidCreate to set up\n      // the record's internal state, then upsert to set canonical data\n      this.store.cache.__innerCache.clientDidCreate(fragmentIdentifier, {});\n      // Push the attributes to the inner cache\n      if (attributes) {\n        this.store.cache.__innerCache.upsert(fragmentIdentifier, {\n          attributes\n        }, false);\n      }\n      // Process any nested fragment attributes\n      this.pushFragmentData(fragmentIdentifier, {\n        attributes\n      }, false);\n      return fragmentIdentifier;\n    }\n    hasChangedAttributes(identifier) {\n      // Check both fragment state and inner cache state\n      return this.hasChangedFragments(identifier) || this.store.cache.__innerCache.hasChangedAttrs(identifier);\n    }\n    hasChangedFragments(identifier) {\n      const fragments = this.__fragments.get(identifier.lid);\n      const inFlight = this.__inFlightFragments.get(identifier.lid);\n      // Explicitly return boolean to ensure false instead of undefined\n      return Boolean(fragments && Object.keys(fragments).length > 0 || inFlight && Object.keys(inFlight).length > 0);\n    }\n    getCanonicalState(identifier) {\n      const result = {};\n      const definitions = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n      const cache = this.store.cache.__innerCache;\n\n      // Get changed attrs from inner cache to find original values for dirty attrs\n      const changedAttrs = cache.changedAttrs(identifier);\n\n      // Get canonical values for all attributes\n      for (const [key, definition] of Object.entries(definitions)) {\n        if (definition.isFragment) {\n          // Fragment attributes - use behavior's canonicalState\n          const behaviors = this._getBehaviors(identifier);\n          const behavior = behaviors[key];\n          const fragmentData = this._getFragmentDataMap(identifier);\n          const value = key in fragmentData ? fragmentData[key] : this._getFragmentDefault(identifier, key);\n          result[key] = behavior.canonicalState(value);\n        } else {\n          // Regular attributes - get canonical (original) value\n          // If attr is dirty, changedAttrs has [oldValue, newValue], use oldValue\n          // Otherwise, current value = canonical value\n          if (key in changedAttrs) {\n            result[key] = changedAttrs[key][0]; // old (canonical) value\n          } else {\n            result[key] = cache.getAttr(identifier, key);\n          }\n        }\n      }\n      return result;\n    }\n    getCurrentState(identifier) {\n      const result = {};\n      const definitions = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n\n      // Get current values for all attributes\n      for (const [key, definition] of Object.entries(definitions)) {\n        if (definition.isFragment) {\n          // Fragment attributes - use behavior's currentState\n          const behaviors = this._getBehaviors(identifier);\n          const behavior = behaviors[key];\n          result[key] = behavior.currentState(this.getFragment(identifier, key));\n        } else {\n          // Regular attributes - get from inner cache\n          const cache = this.store.cache.__innerCache;\n          result[key] = cache.getAttr(identifier, key);\n        }\n      }\n      return result;\n    }\n    changedFragments(identifier) {\n      const diffData = Object.create(null);\n      const behaviors = this._getBehaviors(identifier);\n      const fragments = this.__fragments.get(identifier.lid) || {};\n      const inFlight = this.__inFlightFragments.get(identifier.lid) || {};\n      const fragmentsOrInFlight = Object.keys(inFlight).length > 0 ? inFlight : fragments;\n      const fragmentData = this._getFragmentDataMap(identifier);\n\n      // Check keys that are in the dirty fragments map\n      for (const [key, newFragment] of Object.entries(fragmentsOrInFlight)) {\n        const behavior = behaviors[key];\n        const oldFragment = fragmentData[key];\n        diffData[key] = [behavior.canonicalState(oldFragment), behavior.currentState(newFragment)];\n      }\n\n      // Also check canonical fragments that may have internal dirty state\n      // (e.g., when fragment.someAttr = newValue changes the fragment's internal state)\n      for (const [key, behavior] of Object.entries(behaviors)) {\n        if (key in diffData) {\n          continue; // Already handled above\n        }\n        const canonicalValue = fragmentData[key];\n        if (canonicalValue && behavior.isDirty(canonicalValue, canonicalValue)) {\n          // Fragment has internal dirty state but wasn't replaced\n          diffData[key] = [behavior.canonicalState(canonicalValue), behavior.currentState(canonicalValue)];\n        }\n      }\n      return diffData;\n    }\n    _changedFragmentKeys(identifier, updates) {\n      const changedKeys = [];\n      const fragmentData = this._getFragmentDataMap(identifier);\n      const inFlight = this.__inFlightFragments.get(identifier.lid) || {};\n      const fragments = this.__fragments.get(identifier.lid) || {};\n      const original = Object.assign({}, fragmentData, inFlight);\n      for (const key of Object.keys(updates)) {\n        if (fragments[key]) {\n          continue;\n        }\n        const eitherIsNull = original[key] === null || updates[key] === null;\n        if (eitherIsNull || (0, _private.diffArray)(original[key], updates[key]).firstChangeIndex !== null) {\n          changedKeys.push(key);\n        }\n      }\n      return changedKeys;\n    }\n    pushFragmentData(identifier, data, calculateChange) {\n      let changedFragmentKeys;\n      const behaviors = this._getBehaviors(identifier);\n      const subFragmentsToProcess = [];\n      if (data.attributes) {\n        for (const [key, behavior] of Object.entries(behaviors)) {\n          const canonical = data.attributes[key];\n          if (canonical === undefined) {\n            continue;\n          }\n          subFragmentsToProcess.push({\n            key,\n            behavior,\n            canonical\n          });\n        }\n      }\n      if (subFragmentsToProcess.length > 0) {\n        var _changedFragmentKeys;\n        const newCanonicalFragments = {};\n        const fragmentData = this._getFragmentDataMap(identifier);\n        subFragmentsToProcess.forEach(_ref => {\n          let {\n            key,\n            behavior,\n            canonical\n          } = _ref;\n          const current = key in fragmentData ? fragmentData[key] : this._getFragmentDefault(identifier, key);\n          newCanonicalFragments[key] = behavior.pushData(current, canonical);\n        });\n        if (calculateChange) {\n          changedFragmentKeys = this._changedFragmentKeys(identifier, newCanonicalFragments);\n        }\n        Object.assign(fragmentData, newCanonicalFragments);\n        (_changedFragmentKeys = changedFragmentKeys) === null || _changedFragmentKeys === void 0 || _changedFragmentKeys.forEach(key => {\n          var _arrayCache$key;\n          // Notify the storeWrapper that the fragment attribute changed\n          this.__storeWrapper.notifyChange(identifier, 'attributes', key);\n          const arrayCache = this.__fragmentArrayCache.get(identifier.lid);\n          arrayCache === null || arrayCache === void 0 || (_arrayCache$key = arrayCache[key]) === null || _arrayCache$key === void 0 || _arrayCache$key.notify();\n        });\n      }\n      return changedFragmentKeys || [];\n    }\n    willCommitFragments(identifier) {\n      const behaviors = this._getBehaviors(identifier);\n      for (const [key, behavior] of Object.entries(behaviors)) {\n        const data = this.getFragment(identifier, key);\n        if (data) {\n          behavior.willCommit(data);\n        }\n      }\n      const fragments = this.__fragments.get(identifier.lid);\n      this.__inFlightFragments.set(identifier.lid, fragments || Object.create(null));\n      this.__fragments.set(identifier.lid, null);\n    }\n    _updateChangedFragments(identifier) {\n      const fragments = this.__fragments.get(identifier.lid);\n      if (!fragments) return;\n      const fragmentData = this._getFragmentDataMap(identifier);\n      const behaviors = this._getBehaviors(identifier);\n      for (const key of Object.keys(fragments)) {\n        const value = fragments[key];\n        const originalValue = fragmentData[key];\n        const behavior = behaviors[key];\n        const isDirty = behavior.isDirty(value, originalValue);\n        if (!isDirty) {\n          delete fragments[key];\n        }\n      }\n    }\n    didCommitFragments(identifier, data) {\n      const behaviors = this._getBehaviors(identifier);\n      const newCanonicalFragments = {};\n      const inFlight = this.__inFlightFragments.get(identifier.lid) || {};\n      const fragmentData = this._getFragmentDataMap(identifier);\n      for (const [key, behavior] of Object.entries(behaviors)) {\n        let canonical;\n        if (data !== null && data !== void 0 && data.attributes) {\n          canonical = data.attributes[key];\n        }\n        const fragment = key in inFlight ? inFlight[key] : fragmentData[key];\n        newCanonicalFragments[key] = behavior.didCommit(fragment, canonical);\n      }\n      const changedFragmentKeys = this._changedFragmentKeys(identifier, newCanonicalFragments);\n      Object.assign(fragmentData, newCanonicalFragments);\n      this.__inFlightFragments.set(identifier.lid, null);\n      this._updateChangedFragments(identifier);\n      changedFragmentKeys.forEach(key => {\n        var _arrayCache$key2;\n        const arrayCache = this.__fragmentArrayCache.get(identifier.lid);\n        arrayCache === null || arrayCache === void 0 || (_arrayCache$key2 = arrayCache[key]) === null || _arrayCache$key2 === void 0 || _arrayCache$key2.notify();\n      });\n      return changedFragmentKeys;\n    }\n    commitWasRejectedFragments(identifier) {\n      const behaviors = this._getBehaviors(identifier);\n      const inFlight = this.__inFlightFragments.get(identifier.lid) || {};\n      const fragmentData = this._getFragmentDataMap(identifier);\n      for (const [key, behavior] of Object.entries(behaviors)) {\n        const fragment = key in inFlight ? inFlight[key] : fragmentData[key];\n        if (fragment == null) {\n          continue;\n        }\n        behavior.commitWasRejected(fragment);\n      }\n      const fragments = this._getFragmentsMap(identifier);\n      Object.assign(fragments, inFlight);\n      this.__inFlightFragments.set(identifier.lid, null);\n    }\n    rollbackFragments(identifier) {\n      let dirtyFragmentKeys;\n      const fragments = this.__fragments.get(identifier.lid);\n      if (fragments && Object.keys(fragments).length > 0) {\n        dirtyFragmentKeys = Object.keys(fragments);\n        dirtyFragmentKeys.forEach(key => {\n          this.rollbackFragment(identifier, key);\n        });\n        this.__fragments.set(identifier.lid, null);\n      }\n      this._notifyStateChange(identifier);\n      this._fragmentDidReset(identifier);\n      return dirtyFragmentKeys || [];\n    }\n    rollbackFragment(identifier, key) {\n      var _arrayCache$key3;\n      const behaviors = this._getBehaviors(identifier);\n      const behavior = behaviors[key];\n      (true && !(behavior != null) && (0, _debug.assert)(`Attribute '${key}' for model '${identifier.type}' must be a fragment`, behavior != null));\n      if (!this.isFragmentDirty(identifier, key)) {\n        return;\n      }\n      const fragments = this.__fragments.get(identifier.lid);\n      if (fragments) {\n        delete fragments[key];\n      }\n      const fragmentData = this._getFragmentDataMap(identifier);\n      const fragment = fragmentData[key];\n      if (fragment == null) {\n        return;\n      }\n      behavior.rollback(fragment);\n      const arrayCache = this.__fragmentArrayCache.get(identifier.lid);\n      arrayCache === null || arrayCache === void 0 || (_arrayCache$key3 = arrayCache[key]) === null || _arrayCache$key3 === void 0 || _arrayCache$key3.notify();\n      if (!this.hasChangedAttributes(identifier)) {\n        this._notifyStateChange(identifier, key);\n        this._fragmentDidReset(identifier);\n      }\n    }\n    unloadFragments(identifier) {\n      const behaviors = this._getBehaviors(identifier);\n      const fragments = this.__fragments.get(identifier.lid) || {};\n      const inFlight = this.__inFlightFragments.get(identifier.lid) || {};\n      const fragmentData = this._getFragmentDataMap(identifier);\n      for (const [key, behavior] of Object.entries(behaviors)) {\n        var _arrayCache$key4;\n        // Unload the dirty value if it's a fragment (not null)\n        const fragment = fragments[key];\n        if (fragment != null) {\n          behavior.unload(fragment);\n        }\n\n        // Unload in-flight fragments\n        const inFlightFragment = inFlight[key];\n        if (inFlightFragment != null) {\n          behavior.unload(inFlightFragment);\n        }\n\n        // Unload the canonical data\n        const data = fragmentData[key];\n        if (data != null) {\n          behavior.unload(data);\n        }\n\n        // Destroy fragment array cache\n        const arrayCache = this.__fragmentArrayCache.get(identifier.lid);\n        arrayCache === null || arrayCache === void 0 || (_arrayCache$key4 = arrayCache[key]) === null || _arrayCache$key4 === void 0 || _arrayCache$key4.destroy();\n      }\n\n      // Clean up state maps\n      this.__fragmentData.delete(identifier.lid);\n      this.__fragments.delete(identifier.lid);\n      this.__inFlightFragments.delete(identifier.lid);\n      this.__fragmentArrayCache.delete(identifier.lid);\n      this.__behaviors.delete(identifier.lid);\n      this.__fragmentOwners.delete(identifier.lid);\n    }\n    _fragmentDidDirty(identifier) {\n      (true && !(this.hasChangedAttributes(identifier)) && (0, _debug.assert)('Fragment is not dirty', this.hasChangedAttributes(identifier)));\n      const owner = this.__fragmentOwners.get(identifier.lid);\n      if (!owner) {\n        return;\n      }\n      const {\n        ownerIdentifier,\n        key\n      } = owner;\n      if (this.isFragmentDirty(ownerIdentifier, key)) {\n        return;\n      }\n      const fragmentData = this._getFragmentDataMap(ownerIdentifier);\n      (true && !(key in fragmentData) && (0, _debug.assert)(`Fragment '${key}' in owner '${ownerIdentifier.type}' has not been initialized`, key in fragmentData));\n      const fragments = this._getFragmentsMap(ownerIdentifier);\n      fragments[key] = fragmentData[key];\n      this._notifyStateChange(ownerIdentifier, key);\n      this._fragmentDidDirty(ownerIdentifier);\n    }\n    _fragmentDidReset(identifier) {\n      const owner = this.__fragmentOwners.get(identifier.lid);\n      if (!owner) {\n        return;\n      }\n      const {\n        ownerIdentifier,\n        key\n      } = owner;\n      if (!this.isFragmentDirty(ownerIdentifier, key)) {\n        return;\n      }\n      const behaviors = this._getBehaviors(ownerIdentifier);\n      const behavior = behaviors[key];\n      const value = this.getFragment(ownerIdentifier, key);\n      const fragmentData = this._getFragmentDataMap(ownerIdentifier);\n      const originalValue = fragmentData[key];\n      const isDirty = behavior.isDirty(value, originalValue);\n      if (isDirty) {\n        return;\n      }\n      const fragments = this.__fragments.get(ownerIdentifier.lid);\n      if (fragments) {\n        delete fragments[key];\n      }\n      this._notifyStateChange(ownerIdentifier, key);\n      this._fragmentDidReset(ownerIdentifier);\n    }\n    _notifyStateChange(identifier, key) {\n      this.__storeWrapper.notifyChange(identifier, 'attributes', key);\n    }\n\n    // Fragment lifecycle methods using cache API directly\n    _fragmentPushData(identifier, data) {\n      // Push data to the cache for the fragment\n      if (data !== null && data !== void 0 && data.attributes) {\n        // Use the inner cache's upsert for the fragment's own attributes\n        const cache = this.store.cache.__innerCache;\n        cache.upsert(identifier, data, false);\n        // Notify that attributes changed so computed properties are invalidated\n        for (const key of Object.keys(data.attributes)) {\n          this.__storeWrapper.notifyChange(identifier, 'attributes', key);\n        }\n      }\n      // Also process any nested fragment attributes\n      this.pushFragmentData(identifier, data, false);\n    }\n    _fragmentWillCommit(identifier) {\n      // Capture the current attribute values before commit - these are what will be committed\n      const innerCache = this.store.cache.__innerCache;\n      const definitions = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n      const inFlightValues = {};\n      for (const [key, definition] of Object.entries(definitions)) {\n        if (!definition.isFragment) {\n          // getAttr returns dirty value if exists, else canonical\n          inFlightValues[key] = innerCache.getAttr(identifier, key);\n        }\n      }\n      this.__inFlightAttrValues.set(identifier.lid, inFlightValues);\n\n      // Signal to cache that fragment is being committed\n      this.willCommitFragments(identifier);\n      this.store.cache.__innerCache.willCommit(identifier);\n    }\n    _fragmentDidCommit(identifier, data) {\n      // Signal to cache that fragment was committed\n      // Mark this fragment as committed (no longer new)\n      this.__committedFragments.add(identifier.lid);\n\n      // For fragments, we can't use __innerCache.didCommit because it requires an ID match.\n      // Fragments don't have server IDs, just local IDs.\n      //\n      // Strategy:\n      // 1. Use the in-flight values captured during willCommit as the base for canonical\n      // 2. Server response values take precedence over in-flight values\n      // 3. Get current values - if they differ from new canonical, preserve as dirty\n      // 4. Rollback to clear in-flight state\n      // 5. Upsert the committed values as new canonical\n      // 6. Re-apply any new dirty changes that were made during in-flight\n      const innerCache = this.store.cache.__innerCache;\n\n      // Get schema for non-fragment attributes\n      const definitions = this.__storeWrapper.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n\n      // Get the in-flight values captured during willCommit\n      const inFlightValues = this.__inFlightAttrValues.get(identifier.lid) || {};\n      this.__inFlightAttrValues.delete(identifier.lid);\n\n      // Get current values (may include new dirty changes made during in-flight)\n      const currentValues = {};\n      for (const [key, definition] of Object.entries(definitions)) {\n        if (!definition.isFragment) {\n          currentValues[key] = innerCache.getAttr(identifier, key);\n        }\n      }\n\n      // Server response values (if any)\n      const serverAttrs = (data === null || data === void 0 ? void 0 : data.attributes) || {};\n\n      // Calculate canonical values: server response > in-flight values\n      const commitAttrs = {};\n      const newDirtyAttrs = {};\n      for (const [key, definition] of Object.entries(definitions)) {\n        if (definition.isFragment) continue;\n\n        // Determine the new canonical value\n        const canonicalValue = serverAttrs[key] !== undefined ? serverAttrs[key] : inFlightValues[key];\n        commitAttrs[key] = canonicalValue;\n\n        // Check if there's a new dirty change made DURING in-flight\n        // Current value differs from in-flight means user made changes during save\n        const currentValue = currentValues[key];\n        const inFlightValue = inFlightValues[key];\n        if (currentValue !== inFlightValue) {\n          // User made a change during in-flight - preserve it as dirty\n          // (but only if it also differs from the new canonical)\n          if (currentValue !== canonicalValue) {\n            newDirtyAttrs[key] = currentValue;\n          }\n        }\n      }\n\n      // Upsert the committed values as new canonical state BEFORE rollback.\n      // This clears isNew on the inner cache, which prevents rollbackAttrs\n      // from incorrectly setting isDeleted=true for newly created fragments.\n      // (rollbackAttrs treats isNew records as \"discard new record\" and marks\n      // them deleted, but here we want to transition them to saved state.)\n      innerCache.upsert(identifier, {\n        attributes: commitAttrs\n      }, false);\n\n      // Rollback the inner cache to clear dirty/in-flight tracking\n      innerCache.rollbackAttrs(identifier);\n\n      // Re-apply any new dirty changes made during in-flight\n      for (const [key, value] of Object.entries(newDirtyAttrs)) {\n        innerCache.setAttr(identifier, key, value);\n      }\n\n      // Notify that attributes changed so computed properties are invalidated\n      const allChangedKeys = new Set([...Object.keys(commitAttrs), ...Object.keys(newDirtyAttrs)]);\n      for (const key of allChangedKeys) {\n        this.__storeWrapper.notifyChange(identifier, 'attributes', key);\n      }\n\n      // Process any nested fragment attributes on this fragment\n      this.didCommitFragments(identifier, data);\n    }\n\n    /**\n     * Check if a fragment has been committed (is no longer new)\n     */\n    isFragmentCommitted(identifier) {\n      return this.__committedFragments.has(identifier.lid);\n    }\n    _fragmentRollbackAttributes(identifier) {\n      // Rollback fragment attributes\n      this.rollbackFragments(identifier);\n      this.store.cache.__innerCache.rollbackAttrs(identifier);\n    }\n    _fragmentCommitWasRejected(identifier) {\n      // Signal that commit was rejected\n      this.commitWasRejectedFragments(identifier);\n      this.store.cache.__innerCache.commitWasRejected(identifier);\n    }\n    _fragmentUnloadRecord(identifier) {\n      // Unload fragment-specific state first\n      this.unloadFragments(identifier);\n\n      // Use _instanceCache.unloadRecord to properly:\n      // 1. Call teardownRecord which destroys the fragment instance\n      // 2. Clean up the instance cache tracking\n      // 3. Unload from the cache\n      // This is wrapped in try/catch because the fragment may already be unloaded/destroyed\n      try {\n        this.store._instanceCache.unloadRecord(identifier);\n      } catch {\n        // Fragment may already be unloaded or destroyed\n        // Fall back to just clearing the inner cache\n        try {\n          this.store.cache.__innerCache.unloadRecord(identifier);\n        } catch {\n          // May already be unloaded\n        }\n      }\n    }\n  }\n  _exports.default = FragmentStateManager;\n  function isArrayEqual(a, b) {\n    if (a === b) {\n      return true;\n    }\n    if (a === null || b === null) {\n      return false;\n    }\n    if (a.length !== b.length) {\n      return false;\n    }\n    for (let i = 0; i < a.length; ++i) {\n      if (a[i] !== b[i]) {\n        return false;\n      }\n    }\n    return true;\n  }\n});","define(\"ember-data-model-fragments/ext\", [\"exports\", \"@ember/debug\", \"@ember-data/store\", \"@ember-data/model\", \"ember-data/-private\", \"@ember/string\", \"@ember-data/serializer/json\", \"ember-data-model-fragments/cache/fragment-cache\", \"ember-data-model-fragments/fragment\", \"@ember/utils\", \"@ember/application\"], function (_exports, _debug, _store, _model, _private, _string, _json, _fragmentCache, _fragment, _utils, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"JSONSerializer\", {\n    enumerable: true,\n    get: function () {\n      return _json.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Model\", {\n    enumerable: true,\n    get: function () {\n      return _model.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Store\", {\n    enumerable: true,\n    get: function () {\n      return _store.default;\n    }\n  });\n  // eslint-disable-next-line ember/use-ember-data-rfc-395-imports\n\n  function serializerForFragment(owner, normalizedModelName) {\n    let serializer = owner.lookup(`serializer:${normalizedModelName}`);\n    if (serializer !== undefined) {\n      return serializer;\n    }\n\n    // no serializer found for the specific model, fallback and check for application serializer\n    serializer = owner.lookup('serializer:-fragment');\n    if (serializer !== undefined) {\n      return serializer;\n    }\n\n    // final fallback, no model specific serializer, no application serializer, no\n    // `serializer` property on store: use json-api serializer\n    serializer = owner.lookup('serializer:-default');\n    return serializer;\n  }\n  /**\n    @module ember-data-model-fragments\n  */\n\n  /**\n    @class Store\n    @namespace DS\n  */\n  _store.default.reopen({\n    /**\n     * Override createCache to return our FragmentCache\n     * This is the V2 Cache hook introduced in ember-data 4.7+\n     */\n    createCache(storeWrapper) {\n      return new _fragmentCache.default(storeWrapper);\n    },\n    /**\n     * Override teardownRecord to handle fragments in a disconnected state.\n     * In ember-data 4.12+, fragments can end up disconnected during unload,\n     * and the default teardownRecord fails when trying to destroy them.\n     */\n    teardownRecord(record) {\n      // Check if record is a fragment (by checking if it has no id or by model type)\n      // We need to handle the case where the fragment's store is disconnected\n      if (record.isDestroyed || record.isDestroying) {\n        return;\n      }\n      try {\n        record.destroy();\n      } catch (e) {\n        var _e$message, _e$message$includes, _e$message2, _e$message2$includes;\n        // If the error is about disconnected state, just let it go\n        // The fragment will be cleaned up by ember's garbage collection\n        if (e !== null && e !== void 0 && (_e$message = e.message) !== null && _e$message !== void 0 && (_e$message$includes = _e$message.includes) !== null && _e$message$includes !== void 0 && _e$message$includes.call(_e$message, 'disconnected state') || e !== null && e !== void 0 && (_e$message2 = e.message) !== null && _e$message2 !== void 0 && (_e$message2$includes = _e$message2.includes) !== null && _e$message2$includes !== void 0 && _e$message2$includes.call(_e$message2, 'cannot utilize the store')) {\n          return;\n        }\n        throw e;\n      }\n    },\n    /**\n      Create a new fragment that does not yet have an owner record.\n      The properties passed to this method are set on the newly created\n      fragment.\n       To create a new instance of the `name` fragment:\n       ```js\n      store.createFragment('name', {\n        first: 'Alex',\n        last: 'Routé'\n      });\n      ```\n       @method createFragment\n      @param {String} type\n      @param {Object} properties a hash of properties to set on the\n        newly created fragment.\n      @return {MF.Fragment} fragment\n    */\n    createFragment(modelName, props) {\n      (true && !(this.isFragment(modelName)) && (0, _debug.assert)(`The '${modelName}' model must be a subclass of MF.Fragment`, this.isFragment(modelName))); // Create a new identifier for the fragment\n      const identifier = this.identifierCache.createIdentifierForNewRecord({\n        type: modelName\n      });\n      // Signal to cache that this is a new record\n      this.cache.clientDidCreate(identifier, props || {});\n      // Get the record instance\n      return this._instanceCache.getRecord(identifier, props);\n    },\n    /**\n      Returns true if the modelName is a fragment, false if not\n       @method isFragment\n      @private\n      @param {String} the modelName to check if a fragment\n      @return {boolean}\n    */\n    isFragment(modelName) {\n      if (modelName === 'application' || modelName === '-default') {\n        return false;\n      }\n      const type = this.modelFor(modelName);\n      return _fragment.default.detect(type);\n    },\n    serializerFor(modelName) {\n      // this assertion is cargo-culted from ember-data TODO: update comment\n      (true && !((0, _utils.isPresent)(modelName)) && (0, _debug.assert)(\"You need to pass a model name to the store's serializerFor method\", (0, _utils.isPresent)(modelName)));\n      (true && !(typeof modelName === 'string') && (0, _debug.assert)(`Passing classes to store.serializerFor has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      const owner = (0, _application.getOwner)(this);\n      const normalizedModelName = (0, _string.dasherize)(modelName);\n      if (this.isFragment(normalizedModelName)) {\n        return serializerForFragment(owner, normalizedModelName);\n      } else {\n        return this._super(...arguments);\n      }\n    }\n  });\n\n  /**\n    Override `Snapshot._attributes` to snapshot fragment attributes before they are\n    passed to the `DS.Model#serialize`.\n  \n    @private\n  */\n  const oldSnapshotAttributes = Object.getOwnPropertyDescriptor(_private.Snapshot.prototype, '_attributes');\n  Object.defineProperty(_private.Snapshot.prototype, '_attributes', {\n    get() {\n      const attrs = oldSnapshotAttributes.get.call(this);\n      Object.keys(attrs).forEach(key => {\n        const attr = attrs[key];\n        // If the attribute has a `_createSnapshot` method, invoke it before the\n        // snapshot gets passed to the serializer\n        if (attr && typeof attr._createSnapshot === 'function') {\n          attrs[key] = attr._createSnapshot();\n        }\n        // Handle arrays of fragments (fragment arrays)\n        else if (Array.isArray(attr)) {\n          attrs[key] = attr.map(item => {\n            if (item && typeof item._createSnapshot === 'function') {\n              return item._createSnapshot();\n            }\n            return item;\n          });\n        }\n      });\n      return attrs;\n    }\n  });\n\n  /**\n    @class JSONSerializer\n    @namespace DS\n  */\n  _json.default.reopen({\n    /**\n      Enables fragment properties to have custom transforms based on the fragment\n      type, so that deserialization does not have to happen on the fly\n       @method transformFor\n      @private\n    */\n    transformFor(attributeType) {\n      if (attributeType.indexOf('-mf-') !== 0) {\n        return this._super(...arguments);\n      }\n      const owner = (0, _application.getOwner)(this);\n      const containerKey = `transform:${attributeType}`;\n      if (!owner.hasRegistration(containerKey)) {\n        const match = attributeType.match(/^-mf-(fragment|fragment-array|array)(?:\\$([^$]+))?(?:\\$(.+))?$/);\n        (true && !(match != null) && (0, _debug.assert)(`Failed parsing ember-data-model-fragments attribute type ${attributeType}`, match != null));\n        const transformName = match[1];\n        const type = match[2];\n        const polymorphicTypeProp = match[3];\n        let transformClass = owner.factoryFor(`transform:${transformName}`);\n        transformClass = transformClass && transformClass.class;\n        transformClass = transformClass.extend({\n          type,\n          polymorphicTypeProp,\n          store: this.store\n        });\n        owner.register(containerKey, transformClass);\n      }\n      return owner.lookup(containerKey);\n    },\n    // We need to override this to handle polymorphic with a typeKey function\n    applyTransforms(typeClass, data) {\n      const attributes = typeClass.attributes;\n      typeClass.eachTransformedAttribute((key, typeClass) => {\n        if (data[key] === undefined) {\n          return;\n        }\n        const transform = this.transformFor(typeClass);\n        const transformMeta = attributes.get(key);\n        data[key] = transform.deserialize(data[key], transformMeta.options, data);\n      });\n      return data;\n    }\n  });\n});","define(\"ember-data-model-fragments/fragment\", [\"exports\", \"@ember/object\", \"ember\", \"ember-data-model-fragments/ext\", \"ember-data-model-fragments/util/copy\", \"@ember-data/store\"], function (_exports, _object, _ember, _ext, _copy, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.fragmentRecordDataFor = fragmentRecordDataFor;\n  _exports.getActualFragmentType = getActualFragmentType;\n  _exports.isFragment = isFragment;\n  _exports.setFragmentOwner = setFragmentOwner;\n  // DS.Model gets munged to add fragment support, which must be included first\n\n  /**\n    @module ember-data-model-fragments\n  */\n\n  /**\n   * Helper to get the FragmentRecordDataProxy for a fragment.\n   * This provides backwards compatibility with existing code.\n   */\n  function fragmentRecordDataFor(fragment) {\n    const identifier = (0, _store.recordIdentifierFor)(fragment);\n    return fragment.store.cache.createFragmentRecordData(identifier);\n  }\n\n  /**\n    The class that all nested object structures, or 'fragments', descend from.\n    Fragments are bound to a single 'owner' record (an instance of `DS.Model`)\n    and cannot change owners once set. They behave like models, but they have\n    no `save` method since their persistence is managed entirely through their\n    owner. Because of this, a fragment's state directly influences its owner's\n    state, e.g. when a record's fragment `hasDirtyAttributes`, its owner\n    `hasDirtyAttributes`.\n  \n    Example:\n  \n    ```javascript\n    App.Person = DS.Model.extend({\n      name: MF.fragment('name')\n    });\n  \n    App.Name = MF.Fragment.extend({\n      first  : DS.attr('string'),\n      last   : DS.attr('string')\n    });\n    ```\n  \n    With JSON response:\n  \n    ```json\n    {\n      'id': '1',\n      'name': {\n        'first': 'Robert',\n        'last': 'Jackson'\n      }\n    }\n    ```\n  \n    ```javascript\n    let person = store.getbyid('person', '1');\n    let name = person.get('name');\n  \n    person.get('hasDirtyAttributes'); // false\n    name.get('hasDirtyAttributes'); // false\n    name.get('first'); // 'Robert'\n  \n    name.set('first', 'The Animal');\n    name.get('hasDirtyAttributes'); // true\n    person.get('hasDirtyAttributes'); // true\n  \n    person.rollbackAttributes();\n    name.get('first'); // 'Robert'\n    person.get('hasDirtyAttributes'); // false\n    person.get('hasDirtyAttributes'); // false\n    ```\n  \n    @class Fragment\n    @namespace MF\n    @extends CoreModel\n    @uses Ember.Comparable\n    @uses Copyable\n  */\n  const Fragment = _ext.Model.extend(_ember.default.Comparable, {\n    /**\n      Compare two fragments by identity to allow `FragmentArray` to diff arrays.\n       @method compare\n      @param a {MF.Fragment} the first fragment to compare\n      @param b {MF.Fragment} the second fragment to compare\n      @return {Integer} the result of the comparison\n    */\n    compare(f1, f2) {\n      return f1 === f2 ? 0 : 1;\n    },\n    /**\n      Create a new fragment that is a copy of the current fragment. Copied\n      fragments do not have the same owner record set, so they may be added\n      to other records safely.\n       @method copy\n      @return {MF.Fragment} the newly created fragment\n    */\n    copy() {\n      const type = this.constructor;\n      const props = Object.create(null);\n      const modelName = type.modelName || this._internalModel.modelName;\n\n      // Look up model via store to avoid schema access deprecation in ember-data 4.12+\n      const modelClass = this.store.modelFor(modelName);\n\n      // Loop over each attribute and copy individually to ensure nested fragments\n      // are also copied\n      modelClass.eachAttribute(name => {\n        props[name] = (0, _copy.copy)((0, _object.get)(this, name));\n      });\n      return this.store.createFragment(modelName, props);\n    },\n    toStringExtension() {\n      var _owner$ownerIdentifie;\n      const identifier = (0, _store.recordIdentifierFor)(this);\n      const owner = this.store.cache.getFragmentOwner(identifier);\n      return owner ? `owner(${(_owner$ownerIdentifie = owner.ownerIdentifier) === null || _owner$ownerIdentifie === void 0 ? void 0 : _owner$ownerIdentifie.id})` : '';\n    },\n    /**\n      Override toString to include the toStringExtension output.\n      ember-data 4.12+ doesn't call toStringExtension in Model.toString().\n    */\n    toString() {\n      const identifier = (0, _store.recordIdentifierFor)(this);\n      const extension = this.toStringExtension();\n      const extensionStr = extension ? `:${extension}` : '';\n      return `<${identifier.type}:${identifier.id}${extensionStr}>`;\n    }\n  }).reopenClass({\n    fragmentOwnerProperties: (0, _object.computed)(function () {\n      const props = [];\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isFragmentOwner) {\n          props.push(name);\n        }\n      });\n      return props;\n    }).readOnly()\n  });\n\n  /**\n   * `getActualFragmentType` returns the actual type of a fragment based on its declared type\n   * and whether it is configured to be polymorphic.\n   *\n   * @private\n   * @param {String} declaredType the type as declared by `MF.fragment` or `MF.fragmentArray`\n   * @param {Object} options the fragment options\n   * @param {Object} data the fragment data\n   * @return {String} the actual fragment type\n   */\n  function getActualFragmentType(declaredType, options, data, owner) {\n    if (!options.polymorphic || !data) {\n      return declaredType;\n    }\n    const typeKey = options.typeKey || 'type';\n    const actualType = typeof typeKey === 'function' ? typeKey(data, owner) : data[typeKey];\n    return actualType || declaredType;\n  }\n\n  // Sets the owner/key values on a fragment\n  function setFragmentOwner(fragment, ownerRecordDataOrIdentifier, key) {\n    const fragmentIdentifier = (0, _store.recordIdentifierFor)(fragment);\n    const ownerIdentifier = ownerRecordDataOrIdentifier.identifier || ownerRecordDataOrIdentifier;\n    fragment.store.cache.setFragmentOwner(fragmentIdentifier, ownerIdentifier, key);\n\n    // Notify any observers of `fragmentOwner` properties\n    // Look up model via store to avoid schema access deprecation in ember-data 4.12+\n    const modelClass = fragment.store.modelFor(fragment.constructor.modelName);\n    modelClass.fragmentOwnerProperties.forEach(name => {\n      fragment.notifyPropertyChange(name);\n    });\n    return fragment;\n  }\n\n  // Determine whether an object is a fragment instance using a stamp to reduce\n  // the number of instanceof checks\n  function isFragment(obj) {\n    return obj instanceof Fragment;\n  }\n\n  // Override hasDirtyAttributes on Fragment prototype to directly query our cache.\n  // This ensures we always get fresh dirty state even for fragments in fragment\n  // arrays where ember-data's tracking might not invalidate properly.\n  // We use Object.defineProperty to override the inherited getter from Model.\n  Object.defineProperty(Fragment.prototype, 'hasDirtyAttributes', {\n    get() {\n      const identifier = (0, _store.recordIdentifierFor)(this);\n      return this.store.cache.hasChangedAttrs(identifier);\n    },\n    configurable: true\n  });\n  var _default = _exports.default = Fragment;\n});","define(\"ember-data-model-fragments/index\", [\"exports\", \"@ember/application/namespace\", \"ember\", \"ember-data-model-fragments/version\", \"ember-data-model-fragments/fragment\", \"ember-data-model-fragments/array/fragment\", \"ember-data-model-fragments/transforms/fragment\", \"ember-data-model-fragments/transforms/fragment-array\", \"ember-data-model-fragments/transforms/array\", \"ember-data-model-fragments/attributes\"], function (_exports, _namespace, _ember, _version, _fragment, _fragment2, _fragment3, _fragmentArray, _array, _attributes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    Ember Data Model Fragments\n  \n    @module ember-data-model-fragments\n    @main ember-data-model-fragments\n  */\n  const MF = _namespace.default.create({\n    VERSION: _version.default,\n    Fragment: _fragment.default,\n    FragmentArray: _fragment2.default,\n    FragmentTransform: _fragment3.default,\n    FragmentArrayTransform: _fragmentArray.default,\n    ArrayTransform: _array.default,\n    fragment: _attributes.fragment,\n    fragmentArray: _attributes.fragmentArray,\n    array: _attributes.array,\n    fragmentOwner: _attributes.fragmentOwner\n  });\n  if (_ember.default.libraries) {\n    _ember.default.libraries.register('Model Fragments', MF.VERSION);\n  }\n  var _default = _exports.default = MF;\n});","define(\"ember-data-model-fragments/record-data\", [\"exports\", \"ember-data/-private\", \"@ember-data/model/-private\", \"@ember-data/store/-private\", \"@ember/debug\", \"@ember/utils\", \"@ember/array\", \"ember-data-model-fragments/fragment\", \"ember-data-model-fragments/util/instance-of-type\"], function (_exports, _private, _private2, _private3, _debug, _utils, _array, _fragment, _instanceOfType) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // eslint-disable-next-line ember/use-ember-data-rfc-395-imports\n\n  class FragmentBehavior {\n    constructor(recordData, definition) {\n      this.recordData = recordData;\n      this.definition = definition;\n    }\n    getDefaultValue(key) {\n      const {\n        options\n      } = this.definition;\n      if (options.defaultValue === undefined) {\n        return null;\n      }\n      let defaultValue;\n      if (typeof options.defaultValue === 'function') {\n        const record = this.recordData._fragmentGetRecord();\n        defaultValue = options.defaultValue.call(null, record, options, key);\n      } else {\n        defaultValue = options.defaultValue;\n      }\n      (true && !(defaultValue === null || (0, _utils.typeOf)(defaultValue) === 'object' || (0, _fragment.isFragment)(defaultValue)) && (0, _debug.assert)(\"The fragment's default value must be an object or null\", defaultValue === null || (0, _utils.typeOf)(defaultValue) === 'object' || (0, _fragment.isFragment)(defaultValue)));\n      if (defaultValue === null) {\n        return null;\n      }\n      if ((0, _fragment.isFragment)(defaultValue)) {\n        (true && !((0, _instanceOfType.default)(defaultValue.store.modelFor(this.definition.modelName), defaultValue)) && (0, _debug.assert)(`The fragment's default value must be a '${this.definition.modelName}' fragment`, (0, _instanceOfType.default)(defaultValue.store.modelFor(this.definition.modelName), defaultValue)));\n        const recordData = (0, _private3.recordDataFor)(defaultValue);\n        recordData.setFragmentOwner(this.recordData, key);\n        return recordData;\n      }\n      return this.recordData._newFragmentRecordData(this.definition, defaultValue);\n    }\n    pushData(fragment, canonical) {\n      (true && !(fragment === null || fragment instanceof _private.RecordData) && (0, _debug.assert)('Fragment value must be a RecordData', fragment === null || fragment instanceof _private.RecordData));\n      (true && !(canonical === null || (0, _utils.typeOf)(canonical) === 'object') && (0, _debug.assert)('Fragment canonical value must be an object or null', canonical === null || (0, _utils.typeOf)(canonical) === 'object'));\n      if (canonical === null) {\n        // server replaced fragment with null\n        return null;\n      }\n      if (fragment) {\n        // merge the fragment with the new data from the server\n        fragment._fragmentPushData({\n          attributes: canonical\n        });\n        return fragment;\n      }\n      return this.recordData._newFragmentRecordData(this.definition, canonical);\n    }\n    willCommit(fragment) {\n      (true && !(fragment instanceof _private.RecordData) && (0, _debug.assert)('Fragment value must be a RecordData', fragment instanceof _private.RecordData));\n      fragment._fragmentWillCommit();\n    }\n    didCommit(fragment, canonical) {\n      (true && !(fragment === null || fragment instanceof _private.RecordData) && (0, _debug.assert)('Fragment value must be a RecordData', fragment === null || fragment instanceof _private.RecordData));\n      (true && !(canonical == null || (0, _utils.typeOf)(canonical) === 'object') && (0, _debug.assert)('Fragment canonical value must be an object', canonical == null || (0, _utils.typeOf)(canonical) === 'object'));\n      if (canonical == null) {\n        fragment === null || fragment === void 0 || fragment._fragmentDidCommit(null);\n        if (canonical === null) {\n          // server replaced fragment with null\n          return null;\n        }\n\n        // server confirmed in-flight fragment\n        return fragment;\n      }\n      if (fragment) {\n        // merge the fragment with the new data from the server\n        fragment._fragmentDidCommit({\n          attributes: canonical\n        });\n        return fragment;\n      }\n      return this.recordData._newFragmentRecordData(this.definition, canonical);\n    }\n    commitWasRejected(fragment) {\n      (true && !(fragment instanceof _private.RecordData) && (0, _debug.assert)('Fragment value must be a RecordData', fragment instanceof _private.RecordData));\n      fragment._fragmentCommitWasRejected();\n    }\n    rollback(fragment) {\n      (true && !(fragment instanceof _private.RecordData) && (0, _debug.assert)('Fragment value must be a RecordData', fragment instanceof _private.RecordData));\n      fragment._fragmentRollbackAttributes();\n    }\n    unload(fragment) {\n      (true && !(fragment instanceof _private.RecordData) && (0, _debug.assert)('Fragment value must be a RecordData', fragment instanceof _private.RecordData));\n      fragment._fragmentUnloadRecord();\n    }\n    isDirty(value, originalValue) {\n      (true && !(value === null || value instanceof _private.RecordData) && (0, _debug.assert)('Fragment value must be a RecordData', value === null || value instanceof _private.RecordData));\n      (true && !(originalValue === null || originalValue instanceof _private.RecordData) && (0, _debug.assert)('Fragment original value must be a RecordData', originalValue === null || originalValue instanceof _private.RecordData));\n      return value !== originalValue || value !== null && value.hasChangedAttributes();\n    }\n    currentState(fragment) {\n      (true && !(fragment === null || fragment instanceof _private.RecordData) && (0, _debug.assert)('Fragment value must be a RecordData', fragment === null || fragment instanceof _private.RecordData));\n      return fragment === null ? null : fragment.getCurrentState();\n    }\n    canonicalState(fragment) {\n      (true && !(fragment === null || fragment instanceof _private.RecordData) && (0, _debug.assert)('Fragment value must be a RecordData', fragment === null || fragment instanceof _private.RecordData));\n      return fragment === null ? null : fragment.getCanonicalState();\n    }\n  }\n  class FragmentArrayBehavior {\n    constructor(recordData, definition) {\n      this.recordData = recordData;\n      this.definition = definition;\n    }\n    getDefaultValue(key) {\n      const {\n        options\n      } = this.definition;\n      if (options.defaultValue === undefined) {\n        return [];\n      }\n      let defaultValue;\n      if (typeof options.defaultValue === 'function') {\n        const record = this.recordData._fragmentGetRecord();\n        defaultValue = options.defaultValue.call(null, record, options, key);\n      } else {\n        defaultValue = options.defaultValue;\n      }\n      (true && !(defaultValue === null || (0, _array.isArray)(defaultValue) && defaultValue.every(v => (0, _utils.typeOf)(v) === 'object' || (0, _fragment.isFragment)(v))) && (0, _debug.assert)(\"The fragment array's default value must be an array of fragments or null\", defaultValue === null || (0, _array.isArray)(defaultValue) && defaultValue.every(v => (0, _utils.typeOf)(v) === 'object' || (0, _fragment.isFragment)(v))));\n      if (defaultValue === null) {\n        return null;\n      }\n      return defaultValue.map(item => {\n        if ((0, _fragment.isFragment)(item)) {\n          (true && !((0, _instanceOfType.default)(item.store.modelFor(this.definition.modelName), item)) && (0, _debug.assert)(`The fragment array's default value can only include '${this.definition.modelName}' fragments`, (0, _instanceOfType.default)(item.store.modelFor(this.definition.modelName), item)));\n          const recordData = (0, _private3.recordDataFor)(defaultValue);\n          recordData.setFragmentOwner(this.recordData, key);\n          return recordData;\n        }\n        return this.recordData._newFragmentRecordData(this.definition, item);\n      });\n    }\n    pushData(fragmentArray, canonical) {\n      (true && !(fragmentArray === null || (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array value must be an array of RecordData', fragmentArray === null || (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)));\n      (true && !(canonical === null || (0, _array.isArray)(canonical) && canonical.every(v => (0, _utils.typeOf)(v) === 'object')) && (0, _debug.assert)('Fragment array canonical value must be an array of objects', canonical === null || (0, _array.isArray)(canonical) && canonical.every(v => (0, _utils.typeOf)(v) === 'object')));\n      if (canonical === null) {\n        // push replaced fragment array with null\n        return null;\n      }\n\n      // merge the fragment array with the pushed data\n      return canonical.map((attributes, i) => {\n        const fragment = fragmentArray === null || fragmentArray === void 0 ? void 0 : fragmentArray[i];\n        if (fragment) {\n          fragment._fragmentPushData({\n            attributes\n          });\n          return fragment;\n        } else {\n          return this.recordData._newFragmentRecordData(this.definition, attributes);\n        }\n      });\n    }\n    willCommit(fragmentArray) {\n      (true && !((0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array value must be an array of RecordData', (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)));\n      fragmentArray.forEach(fragment => fragment._fragmentWillCommit());\n    }\n    didCommit(fragmentArray, canonical) {\n      (true && !(fragmentArray === null || (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array value must be an array of RecordData', fragmentArray === null || (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)));\n      (true && !(canonical == null || (0, _array.isArray)(canonical) && canonical.every(v => (0, _utils.typeOf)(v) === 'object')) && (0, _debug.assert)('Fragment array canonical value must be an array of objects', canonical == null || (0, _array.isArray)(canonical) && canonical.every(v => (0, _utils.typeOf)(v) === 'object')));\n      if (canonical == null) {\n        fragmentArray === null || fragmentArray === void 0 || fragmentArray.forEach(fragment => fragment._fragmentDidCommit(null));\n        if (canonical === null) {\n          // server replaced fragment array with null\n          return null;\n        }\n        // server confirmed in-flight fragments\n        return fragmentArray;\n      }\n\n      // merge the fragment array with the new data from the server\n      const result = canonical.map((attributes, i) => {\n        const fragment = fragmentArray === null || fragmentArray === void 0 ? void 0 : fragmentArray[i];\n        if (fragment) {\n          fragment._fragmentDidCommit({\n            attributes\n          });\n          return fragment;\n        } else {\n          return this.recordData._newFragmentRecordData(this.definition, attributes);\n        }\n      });\n\n      // cleanup the remaining fragments\n      for (let i = canonical.length; i < (fragmentArray === null || fragmentArray === void 0 ? void 0 : fragmentArray.length); ++i) {\n        fragmentArray[i]._fragmentDidCommit(null);\n      }\n      return result;\n    }\n    commitWasRejected(fragmentArray) {\n      (true && !((0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array value must be an array of RecordData', (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)));\n      fragmentArray.forEach(fragment => fragment._fragmentCommitWasRejected());\n    }\n    rollback(fragmentArray) {\n      (true && !((0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array value must be an array of RecordData', (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)));\n      fragmentArray.forEach(fragment => fragment._fragmentRollbackAttributes());\n    }\n    unload(fragmentArray) {\n      (true && !((0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array value must be an array of RecordData', (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)));\n      fragmentArray.forEach(fragment => fragment._fragmentUnloadRecord());\n    }\n    isDirty(value, originalValue) {\n      (true && !(value === null || (0, _array.isArray)(value) && value.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array value must be an array of RecordData', value === null || (0, _array.isArray)(value) && value.every(rd => rd instanceof _private.RecordData)));\n      (true && !(originalValue === null || (0, _array.isArray)(originalValue) && originalValue.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array original value must be an array of RecordData', originalValue === null || (0, _array.isArray)(originalValue) && originalValue.every(rd => rd instanceof _private.RecordData)));\n      return !isArrayEqual(value, originalValue) || value !== null && value.some(rd => rd.hasChangedAttributes());\n    }\n    currentState(fragmentArray) {\n      (true && !(fragmentArray === null || (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array value must be an array of RecordData', fragmentArray === null || (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)));\n      return fragmentArray === null ? null : fragmentArray.map(fragment => fragment.getCurrentState());\n    }\n    canonicalState(fragmentArray) {\n      (true && !(fragmentArray === null || (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)) && (0, _debug.assert)('Fragment array value must be an array of RecordData', fragmentArray === null || (0, _array.isArray)(fragmentArray) && fragmentArray.every(rd => rd instanceof _private.RecordData)));\n      return fragmentArray === null ? null : fragmentArray.map(fragment => fragment.getCanonicalState());\n    }\n  }\n  class ArrayBehavior {\n    constructor(recordData, definition) {\n      this.recordData = recordData;\n      this.definition = definition;\n    }\n    getDefaultValue(key) {\n      const {\n        options\n      } = this.definition;\n      if (options.defaultValue === undefined) {\n        return [];\n      }\n      let defaultValue;\n      if (typeof options.defaultValue === 'function') {\n        const record = this.recordData._fragmentGetRecord();\n        defaultValue = options.defaultValue.call(null, record, options, key);\n      } else {\n        defaultValue = options.defaultValue;\n      }\n      (true && !(defaultValue === null || (0, _array.isArray)(defaultValue)) && (0, _debug.assert)(\"The array's default value must be an array or null\", defaultValue === null || (0, _array.isArray)(defaultValue)));\n      if (defaultValue === null) {\n        return null;\n      }\n      return defaultValue.slice();\n    }\n    pushData(array, canonical) {\n      (true && !(array === null || (0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', array === null || (0, _array.isArray)(array)));\n      (true && !(canonical === null || (0, _array.isArray)(canonical)) && (0, _debug.assert)('Array canonical value must be an array', canonical === null || (0, _array.isArray)(canonical)));\n      if (canonical === null) {\n        return null;\n      }\n      return canonical.slice();\n    }\n    willCommit(array) {\n      (true && !((0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', (0, _array.isArray)(array))); // nothing to do\n    }\n    didCommit(array, canonical) {\n      (true && !(array === null || (0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', array === null || (0, _array.isArray)(array)));\n      (true && !(canonical === null || canonical === undefined || (0, _array.isArray)(canonical)) && (0, _debug.assert)('Array canonical value must be an array', canonical === null || canonical === undefined || (0, _array.isArray)(canonical)));\n      if (canonical === null) {\n        // server replaced array with null\n        return null;\n      }\n      if (canonical === undefined) {\n        // server confirmed in-flight array\n        return array;\n      }\n      // server returned new canonical data\n      return canonical.slice();\n    }\n    commitWasRejected(array) {\n      (true && !((0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', (0, _array.isArray)(array))); // nothing to do\n    }\n    rollback(array) {\n      (true && !((0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', (0, _array.isArray)(array))); // nothing to do\n    }\n    unload(array) {\n      (true && !((0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', (0, _array.isArray)(array))); // nothing to do\n    }\n    isDirty(value, originalValue) {\n      (true && !(value === null || (0, _array.isArray)(value)) && (0, _debug.assert)('Array value must be an array', value === null || (0, _array.isArray)(value)));\n      (true && !(originalValue === null || (0, _array.isArray)(originalValue)) && (0, _debug.assert)('Array original value must be an array', originalValue === null || (0, _array.isArray)(originalValue)));\n      return !isArrayEqual(value, originalValue);\n    }\n    currentState(array) {\n      (true && !(array === null || (0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', array === null || (0, _array.isArray)(array)));\n      return array === null ? null : array.slice();\n    }\n    canonicalState(array) {\n      (true && !(array === null || (0, _array.isArray)(array)) && (0, _debug.assert)('Array value must be an array', array === null || (0, _array.isArray)(array)));\n      return array === null ? null : array.slice();\n    }\n  }\n  class FragmentRecordData extends _private.RecordData {\n    constructor(identifier, storeWrapper) {\n      super(identifier, storeWrapper);\n      const behavior = Object.create(null);\n      const definitions = this.storeWrapper.attributesDefinitionFor(this.modelName);\n      for (const [key, definition] of Object.entries(definitions)) {\n        if (!definition.isFragment) {\n          continue;\n        }\n        switch (definition.kind) {\n          case 'fragment-array':\n            behavior[key] = new FragmentArrayBehavior(this, definition);\n            break;\n          case 'fragment':\n            behavior[key] = new FragmentBehavior(this, definition);\n            break;\n          case 'array':\n            behavior[key] = new ArrayBehavior(this, definition);\n            break;\n          default:\n            (true && !(false) && (0, _debug.assert)(`Unsupported fragment type: ${definition.kind}`));\n            break;\n        }\n      }\n      this._fragmentBehavior = behavior;\n    }\n    _getFragmentDefault(key) {\n      const behavior = this._fragmentBehavior[key];\n      (true && !(behavior != null) && (0, _debug.assert)(`Attribute '${key}' for model '${this.modelName}' must be a fragment`, behavior != null));\n      (true && !(!this.hasFragment(key)) && (0, _debug.assert)('Fragment default value was already initialized', !this.hasFragment(key)));\n      const defaultValue = behavior.getDefaultValue(key);\n      this._fragmentData[key] = defaultValue;\n      return defaultValue;\n    }\n    getFragment(key) {\n      if (key in this._fragments) {\n        return this._fragments[key];\n      } else if (key in this._inFlightFragments) {\n        return this._inFlightFragments[key];\n      } else if (key in this._fragmentData) {\n        return this._fragmentData[key];\n      } else {\n        return this._getFragmentDefault(key);\n      }\n    }\n    hasFragment(key) {\n      return key in this._fragments || key in this._inFlightFragments || key in this._fragmentData;\n    }\n    setDirtyFragment(key, value) {\n      const behavior = this._fragmentBehavior[key];\n      (true && !(behavior != null) && (0, _debug.assert)(`Attribute '${key}' for model '${this.modelName}' must be a fragment`, behavior != null));\n      let originalValue;\n      if (key in this._inFlightFragments) {\n        originalValue = this._inFlightFragments[key];\n      } else if (key in this._fragmentData) {\n        originalValue = this._fragmentData[key];\n      } else {\n        originalValue = this._getFragmentDefault(key);\n      }\n      const isDirty = behavior.isDirty(value, originalValue);\n      const oldDirty = this.isFragmentDirty(key);\n      if (isDirty !== oldDirty) {\n        this.notifyStateChange(key);\n      }\n      if (isDirty) {\n        this._fragments[key] = value;\n        this.fragmentDidDirty();\n      } else {\n        delete this._fragments[key];\n        this.fragmentDidReset();\n      }\n      // this._fragmentArrayCache[key]?.notify();\n    }\n    setDirtyAttribute(key, value) {\n      (true && !(this._fragmentBehavior[key] == null) && (0, _debug.assert)(`Attribute '${key}' for model '${this.modelName}' must not be a fragment`, this._fragmentBehavior[key] == null));\n      const oldDirty = this.isAttrDirty(key);\n      super.setDirtyAttribute(key, value);\n      const isDirty = this.isAttrDirty(key);\n      if (isDirty !== oldDirty) {\n        this.notifyStateChange(key);\n      }\n      if (isDirty) {\n        this.fragmentDidDirty();\n      } else {\n        this.fragmentDidReset();\n      }\n    }\n    getFragmentOwner() {\n      var _this$_fragmentOwner;\n      return (_this$_fragmentOwner = this._fragmentOwner) === null || _this$_fragmentOwner === void 0 ? void 0 : _this$_fragmentOwner.recordData;\n    }\n    setFragmentOwner(recordData, key) {\n      (true && !(recordData instanceof _private.RecordData) && (0, _debug.assert)('Fragment owner must be a RecordData', recordData instanceof _private.RecordData));\n      (true && !(recordData._fragmentBehavior[key] != null) && (0, _debug.assert)('Fragment owner key must be a fragment', recordData._fragmentBehavior[key] != null));\n      (true && !(!this._fragmentOwner || this._fragmentOwner.recordData === recordData) && (0, _debug.assert)('Fragments can only belong to one owner, try copying instead', !this._fragmentOwner || this._fragmentOwner.recordData === recordData));\n      this._fragmentOwner = {\n        recordData,\n        key\n      };\n    }\n    _newFragmentRecordDataForKey(key, attributes) {\n      const behavior = this._fragmentBehavior[key];\n      (true && !(behavior != null) && (0, _debug.assert)(`Attribute '${key}' for model '${this.modelName}' must be a fragment`, behavior != null));\n      return this._newFragmentRecordData(behavior.definition, attributes);\n    }\n    _newFragmentRecordData(definition, attributes) {\n      const type = (0, _fragment.getActualFragmentType)(definition.modelName, definition.options, attributes, this._fragmentGetRecord());\n      const recordData = this.storeWrapper.recordDataFor(type);\n      recordData.setFragmentOwner(this, definition.name);\n      recordData._fragmentPushData({\n        attributes\n      });\n      return recordData;\n    }\n    hasChangedAttributes() {\n      return super.hasChangedAttributes() || this.hasChangedFragments();\n    }\n    hasChangedFragments() {\n      return Object.keys(this._fragmentsOrInFlight).length > 0;\n    }\n    isFragmentDirty(key) {\n      var _this$__fragments;\n      return ((_this$__fragments = this.__fragments) === null || _this$__fragments === void 0 ? void 0 : _this$__fragments[key]) !== undefined;\n    }\n    getCanonicalState() {\n      const result = Object.assign({}, this._data);\n      for (const [key, behavior] of Object.entries(this._fragmentBehavior)) {\n        const value = key in this._fragmentData ? this._fragmentData[key] : this._getFragmentDefault(key);\n        result[key] = behavior.canonicalState(value);\n      }\n      return result;\n    }\n    getCurrentState() {\n      const result = Object.assign({}, this._data, this._inFlightAttributes, this._attributes);\n      for (const [key, behavior] of Object.entries(this._fragmentBehavior)) {\n        result[key] = behavior.currentState(this.getFragment(key));\n      }\n      return result;\n    }\n\n    /*\n        Returns an object, whose keys are changed properties, and value is an\n        [oldProp, newProp] array.\n         @method changedAttributes\n        @private\n      */\n    changedAttributes() {\n      const result = super.changedAttributes();\n      if (this.hasChangedFragments()) {\n        Object.assign(result, this.changedFragments());\n      }\n      return result;\n    }\n    changedFragments() {\n      const diffData = Object.create(null);\n      for (const [key, newFragment] of Object.entries(this._fragmentsOrInFlight)) {\n        const behavior = this._fragmentBehavior[key];\n        const oldFragment = this._fragmentData[key];\n        diffData[key] = [behavior.canonicalState(oldFragment), behavior.currentState(newFragment)];\n      }\n      return diffData;\n    }\n    _changedFragmentKeys(updates) {\n      const changedKeys = [];\n      const original = Object.assign({}, this._fragmentData, this._inFlightFragments);\n      for (const key of Object.keys(updates)) {\n        if (this._fragments[key]) {\n          continue;\n        }\n        const eitherIsNull = original[key] === null || updates[key] === null;\n        if (eitherIsNull || (0, _private2.diffArray)(original[key], updates[key]).firstChangeIndex !== null) {\n          changedKeys.push(key);\n        }\n      }\n      return changedKeys;\n    }\n    pushData(data, calculateChange) {\n      let changedFragmentKeys;\n      const subFragmentsToProcess = [];\n      if (data.attributes) {\n        // copy so that we don't mutate the caller's data\n        const attributes = Object.assign({}, data.attributes);\n        data = Object.assign({}, data, {\n          attributes\n        });\n        for (const [key, behavior] of Object.entries(this._fragmentBehavior)) {\n          const canonical = data.attributes[key];\n          if (canonical === undefined) {\n            continue;\n          }\n          // strip fragments from the attributes so the super call does not process them\n          delete data.attributes[key];\n          subFragmentsToProcess.push({\n            key,\n            behavior,\n            canonical,\n            attributes\n          });\n        }\n      }\n\n      // Wee need first the attributes to be setup before the fragment, to be able to access them (for polymorphic fragments for example)\n      const changedAttributeKeys = super.pushData(data, calculateChange);\n      if (data.attributes) {\n        var _changedFragmentKeys;\n        const newCanonicalFragments = {};\n        subFragmentsToProcess.forEach(_ref2 => {\n          let {\n            key,\n            behavior,\n            canonical\n          } = _ref2;\n          const current = key in this._fragmentData ? this._fragmentData[key] : this._getFragmentDefault(key);\n          newCanonicalFragments[key] = behavior.pushData(current, canonical);\n        });\n        if (calculateChange) {\n          changedFragmentKeys = this._changedFragmentKeys(newCanonicalFragments);\n        }\n        Object.assign(this._fragmentData, newCanonicalFragments);\n        // update fragment arrays\n        (_changedFragmentKeys = changedFragmentKeys) === null || _changedFragmentKeys === void 0 || _changedFragmentKeys.forEach(key => {\n          var _this$_fragmentArrayC;\n          (_this$_fragmentArrayC = this._fragmentArrayCache[key]) === null || _this$_fragmentArrayC === void 0 || _this$_fragmentArrayC.notify();\n        });\n      }\n      const changedKeys = mergeArrays(changedAttributeKeys, changedFragmentKeys);\n      if (true && (changedKeys === null || changedKeys === void 0 ? void 0 : changedKeys.length) > 0) {\n        internalModelFor(this).notifyAttributes(changedKeys);\n      }\n      // on ember-data 2.8 - 4.4, InternalModel.setupData will notify\n      return changedKeys || [];\n    }\n    willCommit() {\n      for (const [key, behavior] of Object.entries(this._fragmentBehavior)) {\n        const data = this.getFragment(key);\n        if (data) {\n          behavior.willCommit(data);\n        }\n      }\n      this._inFlightFragments = this._fragments;\n      this._fragments = null;\n      // this.notifyStateChange();\n      super.willCommit();\n    }\n\n    /**\n     * Checks if the fragments which are considered as changed are still\n     * different to the state which is acknowledged by the server.\n     *\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     */\n    _updateChangedFragments() {\n      for (const key of Object.keys(this._fragments)) {\n        const value = this._fragments[key];\n        const originalValue = this._fragmentData[key];\n        const behavior = this._fragmentBehavior[key];\n        const isDirty = behavior.isDirty(value, originalValue);\n        if (!isDirty) {\n          delete this._fragments[key];\n        }\n      }\n    }\n    didCommit(data) {\n      var _data;\n      if ((_data = data) !== null && _data !== void 0 && _data.attributes) {\n        // copy so that we don't mutate the caller's data\n        const attributes = Object.assign({}, data.attributes);\n        data = Object.assign({}, data, {\n          attributes\n        });\n      }\n      const newCanonicalFragments = {};\n      for (const [key, behavior] of Object.entries(this._fragmentBehavior)) {\n        var _data2;\n        let canonical;\n        if ((_data2 = data) !== null && _data2 !== void 0 && _data2.attributes) {\n          // strip fragments from the attributes so the super call does not process them\n          canonical = data.attributes[key];\n          delete data.attributes[key];\n        }\n        const fragment = key in this._inFlightFragments ? this._inFlightFragments[key] : this._fragmentData[key];\n        newCanonicalFragments[key] = behavior.didCommit(fragment, canonical);\n      }\n      const changedFragmentKeys = this._changedFragmentKeys(newCanonicalFragments);\n      Object.assign(this._fragmentData, newCanonicalFragments);\n      this._inFlightFragments = null;\n      this._updateChangedFragments();\n      const changedAttributeKeys = super.didCommit(data);\n\n      // update fragment arrays\n      changedFragmentKeys.forEach(key => {\n        var _this$_fragmentArrayC2;\n        (_this$_fragmentArrayC2 = this._fragmentArrayCache[key]) === null || _this$_fragmentArrayC2 === void 0 || _this$_fragmentArrayC2.notify();\n      });\n      const changedKeys = mergeArrays(changedAttributeKeys, changedFragmentKeys);\n      if (true && (changedKeys === null || changedKeys === void 0 ? void 0 : changedKeys.length) > 0) {\n        internalModelFor(this).notifyAttributes(changedKeys);\n      }\n      // on ember-data 2.8 - 4.4, InternalModel.adapterDidCommit will notify\n      return changedKeys;\n    }\n    commitWasRejected(identifier, errors) {\n      for (const [key, behavior] of Object.entries(this._fragmentBehavior)) {\n        const fragment = key in this._inFlightFragments ? this._inFlightFragments[key] : this._fragmentData[key];\n        if (fragment == null) {\n          continue;\n        }\n        behavior.commitWasRejected(fragment);\n      }\n      Object.assign(this._fragments, this._inFlightFragments);\n      this._inFlightFragments = null;\n      super.commitWasRejected(identifier, errors);\n    }\n    rollbackAttributes() {\n      let dirtyFragmentKeys;\n      if (this.hasChangedFragments()) {\n        dirtyFragmentKeys = Object.keys(this._fragments);\n        dirtyFragmentKeys.forEach(key => {\n          this.rollbackFragment(key);\n        });\n        this._fragments = null;\n      }\n      const dirtyAttributeKeys = super.rollbackAttributes();\n      this.notifyStateChange();\n      this.fragmentDidReset();\n      return mergeArrays(dirtyAttributeKeys, dirtyFragmentKeys);\n    }\n    rollbackFragment(key) {\n      var _this$_fragmentArrayC3;\n      const behavior = this._fragmentBehavior[key];\n      (true && !(behavior != null) && (0, _debug.assert)(`Attribute '${key}' for model '${this.modelName}' must be a fragment`, behavior != null));\n      if (!this.isFragmentDirty(key)) {\n        return;\n      }\n      delete this._fragments[key];\n      const fragment = this._fragmentData[key];\n      if (fragment == null) {\n        return;\n      }\n      behavior.rollback(fragment);\n      (_this$_fragmentArrayC3 = this._fragmentArrayCache[key]) === null || _this$_fragmentArrayC3 === void 0 || _this$_fragmentArrayC3.notify();\n      if (!this.hasChangedAttributes()) {\n        this.notifyStateChange(key);\n        this.fragmentDidReset();\n      }\n    }\n    reset() {\n      super.reset();\n      this.__fragments = null;\n      this.__inFlightFragments = null;\n      this.__fragmentData = null;\n      this.__fragmentArrayCache = null;\n      this._fragmentOwner = null;\n    }\n    unloadRecord() {\n      for (const [key, behavior] of Object.entries(this._fragmentBehavior)) {\n        var _this$_fragmentArrayC4;\n        const fragment = this._fragments[key];\n        if (fragment != null) {\n          behavior.unload(fragment);\n        }\n        const inFlight = this._inFlightFragments[key];\n        if (inFlight != null) {\n          behavior.unload(inFlight);\n        }\n        const fragmentData = this._fragmentData[key];\n        if (fragmentData != null) {\n          behavior.unload(fragmentData);\n        }\n        (_this$_fragmentArrayC4 = this._fragmentArrayCache[key]) === null || _this$_fragmentArrayC4 === void 0 || _this$_fragmentArrayC4.destroy();\n      }\n      super.unloadRecord();\n    }\n\n    /**\n     * When a fragment becomes dirty, update the dirty state of the fragment's owner\n     */\n    fragmentDidDirty() {\n      (true && !(this.hasChangedAttributes()) && (0, _debug.assert)('Fragment is not dirty', this.hasChangedAttributes()));\n      if (!this._fragmentOwner) {\n        return;\n      }\n      const {\n        recordData: owner,\n        key\n      } = this._fragmentOwner;\n      if (owner.isFragmentDirty(key)) {\n        // fragment owner is already dirty\n        return;\n      }\n      (true && !(key in owner._fragmentData) && (0, _debug.assert)(`Fragment '${key}' in owner '${owner.modelName}' has not been initialized`, key in owner._fragmentData));\n      owner._fragments[key] = owner._fragmentData[key];\n      owner.notifyStateChange(key);\n      owner.fragmentDidDirty();\n    }\n\n    /**\n     * When a fragment becomes clean, update the fragment owner\n     */\n    fragmentDidReset() {\n      if (!this._fragmentOwner) {\n        return;\n      }\n      const {\n        recordData: owner,\n        key\n      } = this._fragmentOwner;\n      if (!owner.isFragmentDirty(key)) {\n        // fragment owner is already clean\n        return;\n      }\n      const behavior = owner._fragmentBehavior[key];\n      const value = owner.getFragment(key);\n      const originalValue = owner._fragmentData[key];\n      const isDirty = behavior.isDirty(value, originalValue);\n      if (isDirty) {\n        // fragment is still dirty\n        return;\n      }\n      delete owner._fragments[key];\n      owner.notifyStateChange(key);\n      owner.fragmentDidReset();\n    }\n    notifyStateChange(key) {\n      if (key && true) {\n        this.storeWrapper.notifyPropertyChange(this.modelName, this.id, this.clientId, key);\n      } else {\n        this.storeWrapper.notifyStateChange(this.modelName, this.id, this.clientId, key);\n      }\n    }\n\n    /*\n     * Ensure that any changes to the fragment record-data also update the InternalModel's\n     * state machine and fire property change notifications on the Record\n     */\n\n    _fragmentGetRecord(properties) {\n      if (true) {\n        return this.storeWrapper._store._instanceCache.getRecord(this.identifier, properties);\n      }\n      return internalModelFor(this).getRecord(properties);\n    }\n    _fragmentPushData(data) {\n      internalModelFor(this).setupData(data);\n    }\n    _fragmentWillCommit() {\n      internalModelFor(this).adapterWillCommit();\n    }\n    _fragmentDidCommit(data) {\n      internalModelFor(this).adapterDidCommit(data);\n    }\n    _fragmentRollbackAttributes() {\n      internalModelFor(this).rollbackAttributes();\n    }\n    _fragmentCommitWasRejected() {\n      internalModelFor(this).adapterDidInvalidate();\n    }\n    _fragmentUnloadRecord() {\n      internalModelFor(this).unloadRecord();\n    }\n\n    /**\n     * The current dirty state\n     */\n    get _fragments() {\n      if (this.__fragments === null) {\n        this.__fragments = Object.create(null);\n      }\n      return this.__fragments;\n    }\n    set _fragments(v) {\n      this.__fragments = v;\n    }\n\n    /**\n     * The current saved state\n     */\n    get _fragmentData() {\n      if (this.__fragmentData === null) {\n        this.__fragmentData = Object.create(null);\n      }\n      return this.__fragmentData;\n    }\n    set _fragmentData(v) {\n      this.__fragmentData = v;\n    }\n\n    /**\n     * The fragments which are currently being saved to the backend\n     */\n    get _inFlightFragments() {\n      if (this.__inFlightFragments === null) {\n        this.__inFlightFragments = Object.create(null);\n      }\n      return this.__inFlightFragments;\n    }\n    set _inFlightFragments(v) {\n      this.__inFlightFragments = v;\n    }\n    get _fragmentsOrInFlight() {\n      return this.__inFlightFragments && Object.keys(this.__inFlightFragments).length > 0 ? this.__inFlightFragments : this.__fragments || {};\n    }\n\n    /**\n     * Fragment array instances\n     *\n     * This likely belongs in InternalModel, since ember-data caches its has-many\n     * arrays in `InternalModel#_manyArrayCache`. But we can't extend InternalModel.\n     */\n    get _fragmentArrayCache() {\n      if (this.__fragmentArrayCache === null) {\n        this.__fragmentArrayCache = Object.create(null);\n      }\n      return this.__fragmentArrayCache;\n    }\n  }\n  _exports.default = FragmentRecordData;\n  function internalModelFor(recordData) {\n    const store = recordData.storeWrapper._store;\n    if (true) {\n      return store._instanceCache._internalModelForResource(recordData.identifier);\n    }\n    return store._internalModelForResource(recordData.identifier);\n  }\n  function isArrayEqual(a, b) {\n    if (a === b) {\n      return true;\n    }\n    if (a === null || b === null) {\n      return false;\n    }\n    if (a.length !== b.length) {\n      return false;\n    }\n    for (let i = 0; i < a.length; ++i) {\n      if (a[i] !== b[i]) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function mergeArrays(a, b) {\n    if (b == null) {\n      return a;\n    }\n    if (a == null) {\n      return b;\n    }\n    return [...a, ...b];\n  }\n});","define(\"ember-data-model-fragments/transforms/array\", [\"exports\", \"@ember/debug\", \"@ember/application\", \"@ember/array\", \"@ember/object\", \"@ember-data/serializer/transform\", \"@ember/service\"], function (_exports, _debug, _application, _array, _object, _transform, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module ember-data-model-fragments\n  */\n\n  /**\n    Transform for `MF.array` that transforms array data with the given transform\n    type.\n  \n    @class ArrayTransform\n    @namespace MF\n    @extends DS.Transform\n  */\n  // eslint-disable-next-line ember/no-classic-classes\n  const ArrayTransform = _transform.default.extend({\n    store: (0, _service.service)(),\n    type: null,\n    deserialize: function deserializeArray(data) {\n      if (data == null) {\n        return null;\n      }\n      const transform = this.transform;\n      data = (0, _array.makeArray)(data);\n      if (!transform) {\n        return data;\n      }\n      return data.map(transform.deserialize, transform);\n    },\n    serialize: function serializeArray(array) {\n      if (array == null) {\n        return null;\n      }\n      const transform = this.transform;\n      array = array.toArray ? array.toArray() : array;\n      if (!transform) {\n        return array;\n      }\n      return array.map(transform.serialize, transform);\n    },\n    transform: (0, _object.computed)('type', function () {\n      const attributeType = this.type;\n      if (!attributeType) {\n        return null;\n      }\n      const transform = (0, _application.getOwner)(this).lookup(`transform:${attributeType}`);\n      (true && !(!!transform) && (0, _debug.assert)(`Unable to find transform for '${attributeType}'`, !!transform));\n      return transform;\n    })\n  });\n  var _default = _exports.default = ArrayTransform;\n});","define(\"ember-data-model-fragments/transforms/fragment-array\", [\"exports\", \"ember-data-model-fragments/transforms/fragment\", \"@ember-data/store\"], function (_exports, _fragment, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module ember-data-model-fragments\n  */\n\n  /**\n    Transform for `MF.fragmentArray` fragment attribute which delegates work to\n    the fragment type's serializer\n  \n    @class FragmentArrayTransform\n    @namespace MF\n    @extends DS.Transform\n  */\n  const FragmentArrayTransform = _fragment.default.extend({\n    deserialize: function deserializeFragmentArray(data, options, parentData) {\n      if (data == null) {\n        return null;\n      }\n      return data.map(datum => {\n        return this.deserializeSingle(datum, options, parentData);\n      }, this);\n    },\n    serialize: function serializeFragmentArray(snapshots) {\n      if (!snapshots) {\n        return null;\n      }\n      const store = this.store;\n      return snapshots.map(snapshot => {\n        // In ember-data 4.12+, fragment attributes in Snapshot._attributes may be:\n        // 1. A Fragment instance (has _createSnapshot method)\n        // 2. A Snapshot (has eachAttribute method) - from ext.js patch\n        // 3. Raw data object (plain Object) - when cache returns raw data\n\n        if (typeof snapshot._createSnapshot === 'function') {\n          // It's a Fragment instance - create snapshot and serialize\n          const realSnapshot = snapshot._createSnapshot();\n          const identifier = (0, _store.recordIdentifierFor)(snapshot);\n          const modelName = identifier.type;\n          const serializer = store.serializerFor(modelName);\n          return serializer.serialize(realSnapshot);\n        }\n        if (typeof snapshot.eachAttribute === 'function') {\n          var _snapshot$identifier;\n          // It's already a Snapshot - serialize directly\n          const modelName = snapshot.modelName || ((_snapshot$identifier = snapshot.identifier) === null || _snapshot$identifier === void 0 ? void 0 : _snapshot$identifier.type) || this.type;\n          const serializer = store.serializerFor(modelName);\n          return serializer.serialize(snapshot);\n        }\n\n        // It's raw data (plain object) - return as-is\n        // This happens in ember-data 4.12+ where fragment data is stored as plain objects\n        return snapshot;\n      });\n    }\n  });\n  var _default = _exports.default = FragmentArrayTransform;\n});","define(\"ember-data-model-fragments/transforms/fragment\", [\"exports\", \"@ember/debug\", \"@ember-data/serializer/transform\", \"@ember-data/serializer/json-api\", \"@ember/service\", \"@ember-data/store\"], function (_exports, _debug, _transform, _jsonApi, _service, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module ember-data-model-fragments\n  */\n\n  /**\n    Transform for `MF.fragment` fragment attribute which delegates work to\n    the fragment type's serializer\n  \n    @class FragmentTransform\n    @namespace MF\n    @extends DS.Transform\n  */\n  // eslint-disable-next-line ember/no-classic-classes\n  const FragmentTransform = _transform.default.extend({\n    store: (0, _service.service)(),\n    type: null,\n    polymorphicTypeProp: null,\n    deserialize: function deserializeFragment(data, options, parentData) {\n      if (data == null) {\n        return null;\n      }\n      return this.deserializeSingle(data, options, parentData);\n    },\n    serialize: function serializeFragment(snapshot) {\n      if (!snapshot) {\n        return null;\n      }\n      const store = this.store;\n\n      // In ember-data 4.12+, fragment attributes in Snapshot._attributes may be:\n      // 1. A Fragment instance (has _createSnapshot method)\n      // 2. A Snapshot (has eachAttribute method) - from ext.js patch\n      // 3. Raw data object (plain Object) - when cache returns raw data\n\n      if (typeof snapshot._createSnapshot === 'function') {\n        // It's a Fragment instance - create snapshot and serialize\n        const realSnapshot = snapshot._createSnapshot();\n        const identifier = (0, _store.recordIdentifierFor)(snapshot);\n        const modelName = identifier.type;\n        const serializer = store.serializerFor(modelName);\n        return serializer.serialize(realSnapshot);\n      }\n      if (typeof snapshot.eachAttribute === 'function') {\n        var _snapshot$identifier;\n        // It's already a Snapshot - serialize directly\n        const modelName = snapshot.modelName || ((_snapshot$identifier = snapshot.identifier) === null || _snapshot$identifier === void 0 ? void 0 : _snapshot$identifier.type) || this.type;\n        const serializer = store.serializerFor(modelName);\n        return serializer.serialize(snapshot);\n      }\n\n      // It's raw data (plain object) - return as-is\n      // This happens in ember-data 4.12+ where fragment data is stored as plain objects\n      return snapshot;\n    },\n    modelNameFor(data, options, parentData) {\n      let modelName = this.type;\n      const polymorphicTypeProp = this.polymorphicTypeProp;\n      if (data && polymorphicTypeProp && data[polymorphicTypeProp]) {\n        modelName = data[polymorphicTypeProp];\n      } else if (options && typeof options.typeKey === 'function') {\n        modelName = options.typeKey(data, parentData);\n      }\n      return modelName;\n    },\n    deserializeSingle(data, options, parentData) {\n      var _serialized$data;\n      const store = this.store;\n      const modelName = this.modelNameFor(data, options, parentData);\n      const serializer = store.serializerFor(modelName);\n      (true && !(!(serializer instanceof _jsonApi.default)) && (0, _debug.assert)('The `JSONAPISerializer` is not suitable for model fragments, please use `JSONSerializer`', !(serializer instanceof _jsonApi.default)));\n      const typeClass = store.modelFor(modelName);\n      const serialized = serializer.normalize(typeClass, data);\n\n      // `JSONSerializer#normalize` returns a full JSON API document, but we only\n      // need the attributes hash\n      return serialized === null || serialized === void 0 || (_serialized$data = serialized.data) === null || _serialized$data === void 0 ? void 0 : _serialized$data.attributes;\n    }\n  });\n  var _default = _exports.default = FragmentTransform;\n});","define(\"ember-data-model-fragments/util/copy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.copy = copy;\n  function copy(value) {\n    let deep = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n    if (value === null || typeof value !== 'object') {\n      return value;\n    }\n    if (typeof value.copy === 'function') {\n      return value.copy(deep);\n    }\n    if (deep) {\n      return structuredClone(value);\n    }\n    if (Array.isArray(value)) {\n      return [...value];\n    }\n    return {\n      ...value\n    };\n  }\n});","define(\"ember-data-model-fragments/util/instance-of-type\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isInstanceOfType;\n  // Check whether a object is an instance of the given type, respecting model\n  // factory injections\n  function isInstanceOfType(type, obj) {\n    return obj instanceof type;\n  }\n});","define(\"ember-data-model-fragments/util/meta-type-for\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = metaTypeFor;\n  // Create a unique type string for the combination of fragment property type,\n  // transform type (or fragment model), and polymorphic type key\n  function metaTypeFor(name, type, options) {\n    let metaType = `-mf-${name}`;\n    if (type) {\n      metaType += `$${type}`;\n    }\n    if (options && options.polymorphic) {\n      let typeKey = options.typeKey || 'type';\n      typeKey = typeof typeKey === 'function' ? '__dynamic__' : typeKey;\n      metaType += `$${typeKey}`;\n    }\n    return metaType;\n  }\n});","define(\"ember-data-model-fragments/version\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = \"7.0.2\";\n});","define('ember-data/-private', ['exports', '@ember/array/proxy', '@ember/object/promise-proxy-mixin', '@ember/object/proxy', '@ember-data/legacy-compat', '@ember-data/request', '@ember-data/request/fetch', '@ember-data/store', '@ember/application/namespace', 'ember', 'ember-data/version', '@ember-data/model/-private', '@ember-data/legacy-compat/-private', '@ember-data/store/-private'], (function (exports, ArrayProxy, PromiseProxyMixin, ObjectProxy, legacyCompat, RequestManager, Fetch, BaseStore, Namespace, Ember, VERSION, Private, Private$1, Private$2) { 'use strict';\n\n  const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { default: e };\n\n  const ArrayProxy__default = /*#__PURE__*/_interopDefaultLegacy(ArrayProxy);\n  const PromiseProxyMixin__default = /*#__PURE__*/_interopDefaultLegacy(PromiseProxyMixin);\n  const ObjectProxy__default = /*#__PURE__*/_interopDefaultLegacy(ObjectProxy);\n  const RequestManager__default = /*#__PURE__*/_interopDefaultLegacy(RequestManager);\n  const Fetch__default = /*#__PURE__*/_interopDefaultLegacy(Fetch);\n  const BaseStore__default = /*#__PURE__*/_interopDefaultLegacy(BaseStore);\n  const Namespace__default = /*#__PURE__*/_interopDefaultLegacy(Namespace);\n  const Ember__default = /*#__PURE__*/_interopDefaultLegacy(Ember);\n  const VERSION__default = /*#__PURE__*/_interopDefaultLegacy(VERSION);\n\n  const DS = Namespace__default.default.create({\n    VERSION: VERSION__default.default,\n    name: 'DS'\n  });\n  if (Ember__default.default.libraries) {\n    Ember__default.default.libraries.registerCoreLibrary('Ember Data', VERSION__default.default);\n  }\n\n  class Store extends BaseStore__default.default {\n    constructor(args) {\n      super(args);\n      this.requestManager = new RequestManager__default.default();\n      this.requestManager.use([legacyCompat.LegacyNetworkHandler, Fetch__default.default]);\n      this.requestManager.useCache(BaseStore.CacheHandler);\n    }\n  }\n  const PromiseArray = ArrayProxy__default.default.extend(PromiseProxyMixin__default.default);\n  const PromiseObject = ObjectProxy__default.default.extend(PromiseProxyMixin__default.default);\n\n  Object.defineProperty(exports, 'Errors', {\n    enumerable: true,\n    get: () => Private.Errors\n  });\n  Object.defineProperty(exports, 'ManyArray', {\n    enumerable: true,\n    get: () => Private.ManyArray\n  });\n  Object.defineProperty(exports, 'PromiseManyArray', {\n    enumerable: true,\n    get: () => Private.PromiseManyArray\n  });\n  Object.defineProperty(exports, 'Snapshot', {\n    enumerable: true,\n    get: () => Private$1.Snapshot\n  });\n  Object.defineProperty(exports, 'SnapshotRecordArray', {\n    enumerable: true,\n    get: () => Private$1.SnapshotRecordArray\n  });\n  Object.defineProperty(exports, 'RecordArrayManager', {\n    enumerable: true,\n    get: () => Private$2.RecordArrayManager\n  });\n  Object.defineProperty(exports, 'coerceId', {\n    enumerable: true,\n    get: () => Private$2.coerceId\n  });\n  Object.defineProperty(exports, 'normalizeModelName', {\n    enumerable: true,\n    get: () => Private$2.normalizeModelName\n  });\n  exports.DS = DS;\n  exports.PromiseArray = PromiseArray;\n  exports.PromiseObject = PromiseObject;\n  exports.Store = Store;\n\n  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/error\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/json-api\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/rest\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n});","define(\"ember-data/index\", [\"exports\", \"@ember-data/adapter\", \"@ember-data/adapter/error\", \"@ember-data/adapter/json-api\", \"@ember-data/adapter/rest\", \"@ember-data/model\", \"@ember-data/serializer\", \"@ember-data/serializer/-private\", \"@ember-data/serializer/json\", \"@ember-data/serializer/json-api\", \"@ember-data/serializer/rest\", \"@ember-data/serializer/transform\", \"@ember-data/store\", \"ember-data/-private\", \"ember-data/setup-container\", \"@embroider/macros/es-compat2\"], function (_exports, _adapter, _error, _jsonApi, _rest, _model, _serializer, _private, _json, _jsonApi2, _rest2, _transform, _store, _private2, _setupContainer, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector\",0,\"@embroider/macros\",0,\"@ember-data/adapter\",0,\"@ember-data/adapter/error\",0,\"@ember-data/adapter/json-api\",0,\"@ember-data/adapter/rest\",0,\"@ember-data/model\",0,\"@ember-data/serializer\",0,\"@ember-data/serializer/-private\",0,\"@ember-data/serializer/json\",0,\"@ember-data/serializer/json-api\",0,\"@ember-data/serializer/rest\",0,\"@ember-data/serializer/transform\",0,\"@ember-data/store\",0,\"ember-data/-private\",0,\"ember-data/setup-container\",0,\"@ember-data/debug\"eaimeta@70e063a35619d71f\n  /**\n   <p align=\"center\">\n    <img\n      class=\"project-logo\"\n      src=\"https://raw.githubusercontent.com/emberjs/data/4612c9354e4c54d53327ec2cf21955075ce21294/ember-data-logo-light.svg#gh-light-mode-only\"\n      alt=\"EmberData\"\n      width=\"240px\"\n      title=\"EmberData\"\n      />\n  </p>\n  \n  <p align=\"center\">The lightweight reactive data library for JavaScript applications</p>\n  \n  ---\n  \n  Wrangle your application's data management with scalable patterns for developer productivity.\n  \n  - ⚡️  Committed to Best-In-Class Performance\n  - 🌲 Focused on being as svelte as possible\n  - 🚀 SSR Ready\n  - 🔜 Typescript Support\n  - 🐹 Built with ♥️ by [Ember](https://emberjs.com)\n  - ⚛️ Supports any API: `GraphQL` `JSON:API` `REST` `tRPC` ...bespoke or a mix\n  \n  ### 📖 On This Page\n  \n  - [Overview](./#overview)\n    - [Architecture](#🪜-architecture)\n    - [Basic Installation](#basic-installation)\n    - [Advanced Installation](#advanced-installation)\n  - [Configuration](#configuration)\n    - [Deprecation Stripping](#deprecation-stripping)\n    - [randomUUID polyfill](#randomuuid-polyfill)\n    - [Removing inspector support in production](#removing-inspector-support-in-production)\n    - [Debugging](#debugging)\n  \n  \n  # Overview\n  \n  *Ember*‍**Data** is a lightweight reactive data library for JavaScript applications that provides composable primitives for ordering query/mutation/peek flows, managing network and cache, and reducing data for presentation.\n  \n  ## 🪜 Architecture\n  \n  The core of *Ember*‍**Data** is the `Store`, which coordinates interaction between your application, the `Cache`, and sources of data (such as your `API` or a local persistence layer).\n  Optionally, the Store can be configured to hydrate the response data into rich presentation classes.\n  \n  *Ember*‍**Data** is both resource centric and document centric in it's approach to caching, requesting and presenting data. Your application's configuration and usage drives which is important and when.\n  \n  The `Store` is a **coordinator**. When using a `Store` you configure what cache to use, how cache data should be presented to the UI, and where it should look for requested data when it is not available in the cache.\n  \n  This coordination is handled opaquely to the nature of the requests issued and the format of the data being handled. This approach gives applications broad flexibility to configure *Ember*‍**Data** to best suite their needs. This makes *Ember*‍**Data** a powerful solution for applications regardless of their size and complexity.\n  \n  *Ember*‍**Data** is designed to scale, with a religious focus on performance and asset-size to keep its footprint small but speedy while still being able to handle large complex APIs in huge data-driven applications with no additional code and no added application complexity. It's goal is to prevent applications from writing code to manage data that is difficult to maintain or reason about.\n  \n  *Ember*‍**Data**'s power comes not from specific features, data formats, or adherence to specific API specs such as `JSON:API` `trpc` or `GraphQL`, but from solid conventions around requesting and mutating data developed over decades of experience scaling developer productivity.\n  \n  ## Basic Installation\n  \n  Install using your javascript package manager of choice. For instance with [pnpm](https://pnpm.io/)\n  \n  ```no-highlight\n  pnpm add ember-data\n  ```\n  \n  `ember-data` is installed by default for new applications generated with `ember-cli`. You can check what version is installed by looking in the `devDependencies` hash of your project's [package.json](https://docs.npmjs.com/cli/v8/configuring-npm/package-json) file.\n  \n  If you have generated a new `Ember` application using `ember-cli` but do\n  not wish to use `ember-data`, remove `ember-data` from your project's `package.json` file and run your package manager's install command to update your lockfile.\n  \n  ## Advanced Installation\n  \n  *Ember*‍**Data** is organized into primitives that compose together via public APIs.\n  \n  - [@ember-data/store](/ember-data/release/modules/@ember-data%2Fstore) is the core and handles coordination\n  - [@ember-data/json-api](/ember-data/release/modules/@ember-data%2Fjson-api) provides a resource cache for JSON:API structured data. It integrates with the store via the hook `createCache`\n  - [@ember-data/model](/ember-data/release/modules/@ember-data%2Fmodel) is a presentation layer, it integrates with the store via the hooks `instantiateRecord` and `teardownRecord`.\n  - [@ember-data/adapter](/ember-data/release/modules/@ember-data%2Fadapter) provides various network API integrations for APIS built over specific REST or JSON:API conventions.\n  - [@ember-data/serializer](/ember-data/release/modules/@ember-data%2Fserializer) pairs with `@ember-data/adapter` to normalize and serialize data to and from an API format into the `JSON:API` format understood by `@ember-data/json-api`.\n  - [@ember-data/debug](/ember-data/release/modules/@ember-data%2Fdebug) provides debugging support for the `ember-inspector`.\n  - **ember-data** is a \"meta\" package which bundles all of these together for convenience\n  \n  The packages interop with each other through well defined public API boundaries. The core\n  of the library is the store provided by `@ember-data/store`, while each of the other libraries plugs into the store when installed. Because these packages interop via fully\n  public APIs, other libraries or applications may provide their own implementations. For instance, [ember-m3](https://github.com/hjdivad/ember-m3) is a commonly used presentation and cache implementation suitable for complex resource objects and graphs.\n  \n  ## Configuration\n  \n  ### Deprecation Stripping\n  \n  *Ember*‍**Data** allows users to opt-in and remove code that exists to support deprecated behaviors.\n  \n  If your app has resolved all deprecations present in a given version, you may specify that version as your \"compatibility\" version to remove the code that supported the deprecated behavior from your app.\n  \n  ```ts\n  let app = new EmberApp(defaults, {\n    emberData: {\n      compatWith: '4.8',\n    },\n  });\n  ```\n  \n  - [Full Documentation](https://api.emberjs.com/ember-data/release/modules/@ember-data%2Fdeprecations)\n  \n  ### randomUUID polyfill\n  \n  *Ember*‍**Data** uses `UUID V4` by default to generate identifiers for new data created on the client. Identifier generation is configurable, but we also for convenience will polyfill\n  the necessary feature if your browser support or deployment environment demands it. To\n  activate this polyfill:\n  \n  ```ts\n  let app = new EmberApp(defaults, {\n    '@embroider/macros': {\n      setConfig: {\n        '@ember-data/store': {\n          polyfillUUID: true\n        },\n      },\n    },\n  });\n  ```\n  \n  ### removing inspector support in production\n  \n  If you do not with to ship inspector support in your production application, you can specify\n  that all support for it should be stripped from the build.\n  \n  ```ts\n  let app = new EmberApp(defaults, {\n    emberData: {\n      includeDataAdapterInProduction: false\n    }\n  });\n  ```\n  \n  - [Full Documentation](https://api.emberjs.com/ember-data/release/modules/@ember-data%2Fdebug)\n  \n  ### Debugging\n  \n  Many portions of the internals are helpfully instrumented with logging that can be activated\n  at build time. This instrumentation is always removed from production builds or any builds\n  that has not explicitly activated it. To activate it set the appropriate flag to `true`.\n  \n  ```ts\n    let app = new EmberApp(defaults, {\n      emberData: {\n        debug: {\n            LOG_PAYLOADS: false, // data store received to update cache with\n            LOG_OPERATIONS: false, // updates to cache remote state\n            LOG_MUTATIONS: false, // updates to cache local state\n            LOG_NOTIFICATIONS: false,\n            LOG_REQUESTS: false, // log Requests issued via the request manager\n            LOG_REQUEST_STATUS: false,\n            LOG_IDENTIFIERS: false,\n            LOG_GRAPH: false,\n            LOG_INSTANCE_CACHE: false,\n        }\n      }\n    });\n    ```\n  \n   @module ember-data-overview\n   @main ember-data-overview\n  */\n  _private2.DS.Store = _private2.Store;\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.attr = _model.attr;\n  _private2.DS.Errors = _private2.Errors;\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  {\n    _private2.DS.DebugAdapter = (0, _esCompat.default)(require(\"@ember-data/debug\")).default;\n  }\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._setupContainer = _setupContainer.default;\n  Object.defineProperty(_private2.DS, 'normalizeModelName', {\n    enumerable: true,\n    writable: false,\n    configurable: false,\n    value: _store.normalizeModelName\n  });\n  var _default = _exports.default = _private2.DS;\n});","define(\"ember-data/model\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _model.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/rest\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/json-api\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/json\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/rest\"eaimeta@70e063a35619d71f\n});","define(\"ember-data/setup-container\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = setupContainer;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initializeStore(application) {\n    application.registerOptionsForType('serializer', {\n      singleton: false\n    });\n    application.registerOptionsForType('adapter', {\n      singleton: false\n    });\n  }\n  function setupContainer(application) {\n    initializeStore(application);\n  }\n});","define(\"ember-data/store\", [\"exports\", \"ember-data/-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  0; //eaimeta@70e063a35619d71f0,\"ember-data/-private\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\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  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = \"4.12.8\";\n});","define(\"ember-inflector/index\", [\"exports\", \"ember-inflector/lib/system\"], function (_exports, _system) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  Object.defineProperty(_exports, \"pluralize\", {\n    enumerable: true,\n    get: function () {\n      return _system.pluralize;\n    }\n  });\n  Object.defineProperty(_exports, \"singularize\", {\n    enumerable: true,\n    get: function () {\n      return _system.singularize;\n    }\n  });\n  var _default = _exports.default = _system.Inflector;\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 = void 0;\n  /**\n   *\n   * If you have Ember Inflector (such as if Ember Data is present),\n   * pluralize a word. For example, turn \"ox\" into \"oxen\".\n   *\n   * Example:\n   *\n   * {{pluralize count myProperty}}\n   * {{pluralize 1 \"oxen\"}}\n   * {{pluralize myProperty}}\n   * {{pluralize \"ox\"}}\n   *\n   * @for Ember.HTMLBars.helpers\n   * @method pluralize\n   * @param {Number|Property} [count] count of objects\n   * @param {String|Property} word word to pluralize\n   */\n  var _default = _exports.default = (0, _makeHelper.default)(function (params, hash) {\n    let fullParams = new Array(...params);\n    if (fullParams.length === 2) {\n      fullParams.push({\n        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 = void 0;\n  /**\n   *\n   * If you have Ember Inflector (such as if Ember Data is present),\n   * singularize a word. For example, turn \"oxen\" into \"ox\".\n   *\n   * Example:\n   *\n   * {{singularize myProperty}}\n   * {{singularize \"oxen\"}}\n   *\n   * @for Ember.HTMLBars.helpers\n   * @method singularize\n   * @param {String|Property} word word to singularize\n   */\n  var _default = _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\"], function (_exports, _inflector, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Inflector\", {\n    enumerable: true,\n    get: function () {\n      return _inflector.default;\n    }\n  });\n  Object.defineProperty(_exports, \"pluralize\", {\n    enumerable: true,\n    get: function () {\n      return _string.pluralize;\n    }\n  });\n  Object.defineProperty(_exports, \"singularize\", {\n    enumerable: true,\n    get: function () {\n      return _string.singularize;\n    }\n  });\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 = void 0;\n  var _default = _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    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    irregularPairs: [['person', 'people'], ['man', 'men'], ['child', 'children'], ['sex', 'sexes'], ['move', 'moves'], ['cow', 'kine'], ['zombie', 'zombies']],\n    uncountable: ['equipment', 'information', 'rice', 'money', 'species', 'series', 'fish', 'sheep', 'jeans', 'police']\n  };\n});","define(\"ember-inflector/lib/system/inflector\", [\"exports\", \"ember-inflector/lib/system/inflections\"], function (_exports, _inflections) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\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  const CAPITALIZE_REGEX = /(^|\\/)([a-z\\u00C0-\\u024F])/g;\n  function capitalize(str) {\n    return str.replace(CAPITALIZE_REGEX, match => match.toUpperCase());\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  function loadIrregular(rules, irregularPairs) {\n    let pair;\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    const rules = this.rules = {\n      plurals: ruleSet.plurals || [],\n      singular: ruleSet.singular || [],\n      irregular: makeDictionary(),\n      irregularInverse: makeDictionary(),\n      uncountable: makeDictionary()\n    };\n    loadUncountable(rules, ruleSet.uncountable);\n    loadIrregular(rules, ruleSet.irregularPairs);\n    this.enableCache();\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  function makeDictionary() {\n    var cache = Object.create(null);\n    cache['_dict'] = null;\n    delete cache['_dict'];\n    return cache;\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      this.singularize = function (word) {\n        this._cacheUsed = true;\n        return this._sCache[word] || (this._sCache[word] = this._singularize(word));\n      };\n      this.pluralize = function (numberOrWord, word) {\n        let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\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      @public\n       @method purgeCache\n    */\n    purgeCache() {\n      this._cacheUsed = false;\n      this._sCache = makeDictionary();\n      this._pCache = makeDictionary();\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      this.pluralize = function () {\n        return this._pluralize(...arguments);\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      @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      @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      @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      @method pluralize\n      @param {String} word\n    */\n    pluralize() {\n      return this._pluralize(...arguments);\n    },\n    _pluralize(wordOrCount, word) {\n      let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      if (word === undefined) {\n        return this.inflect(wordOrCount, this.rules.plurals, this.rules.irregular);\n      }\n      if (parseFloat(wordOrCount) !== 1) {\n        word = this.inflect(word, this.rules.plurals, this.rules.irregular);\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    _singularize(word) {\n      return this.inflect(word, this.rules.singular, this.rules.irregularInverse);\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      isBlank = !word || BLANK_REGEX.test(word);\n      isCamelized = CAMELIZED_REGEX.test(word);\n      if (isBlank) {\n        return word;\n      }\n      lowercase = word.toLowerCase();\n      wordSplit = LAST_WORD_DASHED_REGEX.exec(word) || LAST_WORD_CAMELIZED_REGEX.exec(word);\n      if (wordSplit) {\n        lastWord = wordSplit[2].toLowerCase();\n      }\n      isUncountable = this.rules.uncountable[lowercase] || this.rules.uncountable[lastWord];\n      if (isUncountable) {\n        return word;\n      }\n      for (rule in irregular) {\n        if (lowercase.match(rule + '$')) {\n          substitution = irregular[rule];\n          if (isCamelized && irregular[lastWord]) {\n            substitution = capitalize(substitution);\n            rule = capitalize(rule);\n          }\n          return word.replace(new RegExp(rule, 'i'), substitution);\n        }\n      }\n      for (var i = typeRules.length, min = 0; i > min; i--) {\n        inflection = typeRules[i - 1];\n        rule = inflection[0];\n        if (rule.test(word)) {\n          break;\n        }\n      }\n      inflection = inflection || [];\n      rule = inflection[0];\n      substitution = inflection[1];\n      result = word.replace(rule, substitution);\n      return result;\n    }\n  };\n  Inflector.defaultRules = _inflections.default;\n  Inflector.inflector = new Inflector(_inflections.default);\n  var _default = _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.pluralize = pluralize;\n  _exports.singularize = singularize;\n  function pluralize() {\n    return _inflector.default.inflector.pluralize(...arguments);\n  }\n  function singularize(word) {\n    return _inflector.default.inflector.singularize(word);\n  }\n});","define(\"ember-inflector/lib/utils/make-helper\", [\"exports\", \"ember\", \"@ember/component/helper\"], function (_exports, _ember, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = makeHelper;\n  function makeHelper(helperFunction) {\n    if (_helper.default) {\n      return _helper.default.helper(helperFunction);\n    }\n    if (_ember.default.HTMLBars) {\n      return _ember.default.HTMLBars.makeBoundHelper(helperFunction);\n    }\n    return _ember.default.Handlebars.makeBoundHelper(helperFunction);\n  }\n});","define(\"ember-intl/-private/formatjs/format-date-range\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatDateRange = formatDateRange;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatDateRange(intlShape) {\n    for (var _len = arguments.length, _ref = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      _ref[_key - 1] = arguments[_key];\n    }\n    let [from, to, formatOptions] = _ref;\n    return intlShape.formatDateTimeRange(from, to, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-date\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatDate = formatDate;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatDate(intlShape) {\n    for (var _len = arguments.length, _ref = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      _ref[_key - 1] = arguments[_key];\n    }\n    let [value, formatOptions] = _ref;\n    return intlShape.formatDate(value, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatList = formatList;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatList(intlShape) {\n    for (var _len = arguments.length, _ref = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      _ref[_key - 1] = arguments[_key];\n    }\n    let [value, formatOptions] = _ref;\n    return intlShape.formatList(value, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatMessage = formatMessage;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatMessage(intlShape) {\n    for (var _len = arguments.length, _ref = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      _ref[_key - 1] = arguments[_key];\n    }\n    let [descriptor, parameters] = _ref;\n    return intlShape.formatMessage(descriptor, parameters, {\n      ignoreTag: true\n    });\n  }\n});","define(\"ember-intl/-private/formatjs/format-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatNumber = formatNumber;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatNumber(intlShape) {\n    for (var _len = arguments.length, _ref = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      _ref[_key - 1] = arguments[_key];\n    }\n    let [value, formatOptions] = _ref;\n    return intlShape.formatNumber(value, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-relative-time\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatRelativeTime = formatRelativeTime;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatRelativeTime(intlShape) {\n    for (var _len = arguments.length, _ref = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      _ref[_key - 1] = arguments[_key];\n    }\n    let [value, unit, formatOptions] = _ref;\n    return intlShape.formatRelativeTime(value, unit, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-relative\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatRelative = formatRelative;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @deprecated\n   */\n\n  /**\n   * @deprecated\n   */\n  function formatRelative(intlShape) {\n    for (var _len = arguments.length, _ref = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      _ref[_key - 1] = arguments[_key];\n    }\n    let [value, unit, formatOptions] = _ref;\n    return intlShape.formatRelativeTime(value, unit, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/format-time\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatTime = formatTime;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatTime(intlShape) {\n    for (var _len = arguments.length, _ref = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      _ref[_key - 1] = arguments[_key];\n    }\n    let [value, formatOptions] = _ref;\n    return intlShape.formatTime(value, formatOptions);\n  }\n});","define(\"ember-intl/-private/formatjs/formats\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertToFormatjsFormats = convertToFormatjsFormats;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function convertToFormatjsFormats(formats) {\n    const formatjsFormats = {\n      dateTimeRange: formats['format-date-range'],\n      date: formats['format-date'],\n      number: formats['format-number'],\n      relative: formats['format-relative-time'],\n      time: formats['format-time']\n    };\n    return formatjsFormats;\n  }\n});","define(\"ember-intl/-private/formatjs/index\", [\"exports\", \"ember-intl/-private/formatjs/format-date\", \"ember-intl/-private/formatjs/format-date-range\", \"ember-intl/-private/formatjs/format-list\", \"ember-intl/-private/formatjs/format-message\", \"ember-intl/-private/formatjs/format-number\", \"ember-intl/-private/formatjs/format-relative\", \"ember-intl/-private/formatjs/format-relative-time\", \"ember-intl/-private/formatjs/format-time\", \"ember-intl/-private/formatjs/formats\", \"@formatjs/intl\"], function (_exports, _formatDate, _formatDateRange, _formatList, _formatMessage, _formatNumber, _formatRelative, _formatRelativeTime, _formatTime, _formats, _intl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  var _exportNames = {\n    createIntl: true,\n    createIntlCache: true\n  };\n  Object.defineProperty(_exports, \"createIntl\", {\n    enumerable: true,\n    get: function () {\n      return _intl.createIntl;\n    }\n  });\n  Object.defineProperty(_exports, \"createIntlCache\", {\n    enumerable: true,\n    get: function () {\n      return _intl.createIntlCache;\n    }\n  });\n  Object.keys(_formatDate).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] === _formatDate[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatDate[key];\n      }\n    });\n  });\n  Object.keys(_formatDateRange).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] === _formatDateRange[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatDateRange[key];\n      }\n    });\n  });\n  Object.keys(_formatList).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] === _formatList[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatList[key];\n      }\n    });\n  });\n  Object.keys(_formatMessage).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] === _formatMessage[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatMessage[key];\n      }\n    });\n  });\n  Object.keys(_formatNumber).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] === _formatNumber[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatNumber[key];\n      }\n    });\n  });\n  Object.keys(_formatRelative).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] === _formatRelative[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatRelative[key];\n      }\n    });\n  });\n  Object.keys(_formatRelativeTime).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] === _formatRelativeTime[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatRelativeTime[key];\n      }\n    });\n  });\n  Object.keys(_formatTime).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] === _formatTime[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formatTime[key];\n      }\n    });\n  });\n  Object.keys(_formats).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] === _formats[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _formats[key];\n      }\n    });\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/-private/formatjs/format-date\",0,\"ember-intl/-private/formatjs/format-date-range\",0,\"ember-intl/-private/formatjs/format-list\",0,\"ember-intl/-private/formatjs/format-message\",0,\"ember-intl/-private/formatjs/format-number\",0,\"ember-intl/-private/formatjs/format-relative\",0,\"ember-intl/-private/formatjs/format-relative-time\",0,\"ember-intl/-private/formatjs/format-time\",0,\"ember-intl/-private/formatjs/formats\",0,\"@formatjs/intl\"eaimeta@70e063a35619d71f\n});","define(\"ember-intl/-private/utils/escape-format-message-options\", [\"exports\", \"@ember/template\"], function (_exports, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.escapeFormatMessageOptions = escapeFormatMessageOptions;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template\"eaimeta@70e063a35619d71f\n  const escaped = {\n    '&': '&amp;',\n    '<': '&lt;',\n    '>': '&gt;',\n    '\"': '&quot;',\n    \"'\": '&#x27;',\n    '`': '&#x60;',\n    '=': '&#x3D;'\n  };\n  const needToEscape = /[&<>\"'`=]/;\n  const badCharacters = /[&<>\"'`=]/g;\n\n  // https://github.com/emberjs/ember.js/blob/v5.12.0/packages/%40ember/-internals/glimmer/lib/utils/string.ts#L103-L118\n  function escapeExpression(value) {\n    if (!needToEscape.test(value)) {\n      return value;\n    }\n    return value.replace(badCharacters, character => {\n      return escaped[character];\n    });\n  }\n\n  /**\n   * @private\n   * @hide\n   */\n  function escapeFormatMessageOptions(options) {\n    const escapedOptions = {};\n    for (const [key, value] of Object.entries(options)) {\n      let newValue;\n      if ((0, _template.isHTMLSafe)(value)) {\n        /*\n          Cast `value`, an instance of `SafeString`, to a string\n          using `.toHTML()`. Since `value` is assumed to be safe,\n          we don't need to call `escapeExpression()`.\n        */\n        newValue = value.toHTML();\n      } else if (typeof value === 'string') {\n        newValue = escapeExpression(value);\n      } else {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n        newValue = value;\n      }\n\n      // @ts-expect-error: Type not specific enough\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      escapedOptions[key] = newValue;\n    }\n    return escapedOptions;\n  }\n});","define(\"ember-intl/-private/utils/get-dom\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getDOM = getDOM;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\"eaimeta@70e063a35619d71f\n  /* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return */\n  // https://github.com/yapplabs/ember-wormhole/blob/0.6.0/addon/utils/dom.js#L45-L63\n  /**\n   * @private\n   * @hide\n   */\n  function getDOM(context) {\n    // @ts-expect-error: Property 'renderer' does not exist on type 'unknown'.\n    let {\n      renderer\n    } = context;\n\n    // Pre-glimmer 2\n    if (!renderer || !renderer._dom) {\n      // @ts-expect-error: 'context' is of type 'unknown'.\n      const container = _application.getOwner ? (0, _application.getOwner)(context) : context.container;\n      const document = container.lookup('service:-document');\n      if (document) {\n        return document;\n      }\n      renderer = container.lookup('renderer:-dom');\n    }\n\n    // Pre-Ember 2.6\n    if (renderer._dom && renderer._dom.document) {\n      return renderer._dom.document;\n    }\n    return null;\n  }\n});","define(\"ember-intl/-private/utils/locale\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertToArray = convertToArray;\n  _exports.convertToString = convertToString;\n  _exports.hasLocaleChanged = hasLocaleChanged;\n  _exports.normalizeLocale = normalizeLocale;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  function convertToArray(locale) {\n    if (Array.isArray(locale)) {\n      return locale;\n    }\n    return [locale];\n  }\n\n  /**\n   * @private\n   * @hide\n   */\n  function convertToString(locale) {\n    if (Array.isArray(locale)) {\n      return locale[0];\n    }\n    return locale;\n  }\n  /**\n   * @private\n   * @hide\n   */\n  function hasLocaleChanged(locale1, locale2) {\n    if (!Array.isArray(locale2)) {\n      return true;\n    }\n    return locale1.toString() !== locale2.toString();\n  }\n\n  /**\n   * @private\n   * @hide\n   */\n  function normalizeLocale(locale) {\n    return locale.replace(/_/g, '-').toLowerCase();\n  }\n});","define(\"ember-intl/-private/utils/service\", [\"exports\", \"@ember/service\"], function (_exports, s) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _s$service;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (_s$service = s.service) !== null && _s$service !== void 0 ? _s$service : s.inject;\n});","define(\"ember-intl/-private/utils/translations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.flattenKeys = flattenKeys;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  function flattenKeys(object) {\n    const result = {};\n    for (const key in object) {\n      if (!Object.prototype.hasOwnProperty.call(object, key)) {\n        continue;\n      }\n      const value = object[key];\n\n      // If `value` is not `null`\n      if (value && typeof value === 'object') {\n        const hash = flattenKeys(value);\n        for (const suffix in hash) {\n          const translation = hash[suffix];\n          if (typeof translation !== 'undefined') {\n            result[`${key}.${suffix}`] = translation;\n          }\n        }\n      } else {\n        if (typeof value !== 'undefined') {\n          result[key] = value;\n        }\n      }\n    }\n    return result;\n  }\n});","define(\"ember-intl/helpers/format-date-range\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatDateRangeHelper = _exports.default = (_class = class FormatDateRangeHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute(_ref, options) {\n      let [from, to] = _ref;\n      return this.intl.formatDateRange(from, to, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-date\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatDateHelper = _exports.default = (_class = class FormatDateHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute(_ref, options) {\n      let [value] = _ref;\n      return this.intl.formatDate(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-list\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatListHelper = _exports.default = (_class = class FormatListHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute(_ref, options) {\n      let [value] = _ref;\n      return this.intl.formatList(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-message\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatMessageHelper = _exports.default = (_class = class FormatMessageHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute(_ref, options) {\n      let [value] = _ref;\n      return this.intl.formatMessage(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-number\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatNumberHelper = _exports.default = (_class = class FormatNumberHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute(_ref, options) {\n      let [value] = _ref;\n      return this.intl.formatNumber(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-relative-time\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatRelativeTimeHelper = _exports.default = (_class = class FormatRelativeTimeHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute(_ref, options) {\n      let [value] = _ref;\n      return this.intl.formatRelativeTime(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-relative\", [\"exports\", \"@ember/component/helper\", \"@ember/debug\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _debug, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/debug\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  /**\n   * @deprecated\n   *\n   * `{{format-relative}}` will be renamed to `{{format-relative-time}}` in `ember-intl@8.0.0`.\n   * Please rename the helper to `{{format-relative-time}}` in your template now.\n   */\n  let FormatRelativeHelper = _exports.default = (_class = class FormatRelativeHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute(_ref, options) {\n      let [value] = _ref;\n      (true && !(false) && (0, _debug.deprecate)('{{format-relative}} will be renamed to {{format-relative-time}} in ember-intl@8.0.0. Please rename the helper to {{format-relative-time}} in your template now.', false, {\n        for: 'ember-intl',\n        id: 'ember-intl.rename-format-relative-helper',\n        since: {\n          available: '7.2.0',\n          enabled: '7.2.0'\n        },\n        until: '8.0.0',\n        url: 'https://ember-intl.github.io/ember-intl/docs/helpers/introduction'\n      }));\n      return this.intl.formatRelative(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/format-time\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatTimeHelper = _exports.default = (_class = class FormatTimeHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute(_ref, options) {\n      let [value] = _ref;\n      return this.intl.formatTime(value, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/helpers/t\", [\"exports\", \"@ember/component/helper\", \"ember-intl/-private/utils/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-intl/-private/utils/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let THelper = _exports.default = (_class = class THelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute(_ref, namedOptions) {\n      let [key, positionalOptions] = _ref;\n      const options = positionalOptions ? Object.assign({}, positionalOptions, namedOptions) : namedOptions;\n      return this.intl.t(key, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.default], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-intl/index\", [\"exports\", \"ember-intl/helpers/format-date\", \"ember-intl/helpers/format-date-range\", \"ember-intl/helpers/format-list\", \"ember-intl/helpers/format-message\", \"ember-intl/helpers/format-number\", \"ember-intl/helpers/format-relative\", \"ember-intl/helpers/format-relative-time\", \"ember-intl/helpers/format-time\", \"ember-intl/helpers/t\"], function (_exports, _formatDate, _formatDateRange, _formatList, _formatMessage, _formatNumber, _formatRelative, _formatRelativeTime, _formatTime, _t) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"formatDate\", {\n    enumerable: true,\n    get: function () {\n      return _formatDate.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatDateRange\", {\n    enumerable: true,\n    get: function () {\n      return _formatDateRange.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatList\", {\n    enumerable: true,\n    get: function () {\n      return _formatList.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatMessage\", {\n    enumerable: true,\n    get: function () {\n      return _formatMessage.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatNumber\", {\n    enumerable: true,\n    get: function () {\n      return _formatNumber.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatRelative\", {\n    enumerable: true,\n    get: function () {\n      return _formatRelative.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatRelativeTime\", {\n    enumerable: true,\n    get: function () {\n      return _formatRelativeTime.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatTime\", {\n    enumerable: true,\n    get: function () {\n      return _formatTime.default;\n    }\n  });\n  Object.defineProperty(_exports, \"t\", {\n    enumerable: true,\n    get: function () {\n      return _t.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-date\",0,\"ember-intl/helpers/format-date-range\",0,\"ember-intl/helpers/format-list\",0,\"ember-intl/helpers/format-message\",0,\"ember-intl/helpers/format-number\",0,\"ember-intl/helpers/format-relative\",0,\"ember-intl/helpers/format-relative-time\",0,\"ember-intl/helpers/format-time\",0,\"ember-intl/helpers/t\"eaimeta@70e063a35619d71f\n});","define(\"ember-intl/services/intl\", [\"exports\", \"@ember/application\", \"@ember/debug\", \"@ember/runloop\", \"@ember/service\", \"@ember/template\", \"@glimmer/tracking\", \"ember-intl/-private/formatjs/index\", \"ember-intl/-private/utils/escape-format-message-options\", \"ember-intl/-private/utils/get-dom\", \"ember-intl/-private/utils/locale\", \"ember-intl/-private/utils/translations\", \"ember-intl/translations\"], function (_exports, _application, _debug, _runloop, _service, _template, _tracking, _index, _escapeFormatMessageOptions, _getDom, _locale, _translations, _translations2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"@ember/debug\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"@ember/template\",0,\"@glimmer/tracking\",0,\"ember-intl/-private/formatjs/index\",0,\"ember-intl/-private/utils/escape-format-message-options\",0,\"ember-intl/-private/utils/get-dom\",0,\"ember-intl/-private/utils/locale\",0,\"ember-intl/-private/utils/translations\",0,\"ember-intl/translations\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let IntlService = _exports.default = (_class = class IntlService extends _service.default {\n    get locales() {\n      return Object.keys(this._intls);\n    }\n    get primaryLocale() {\n      if (!this._locale) {\n        return;\n      }\n      return this._locale[0];\n    }\n    constructor() {\n      // eslint-disable-next-line prefer-rest-params\n      super(...arguments);\n      _initializerDefineProperty(this, \"_intls\", _descriptor, this);\n      _initializerDefineProperty(this, \"_locale\", _descriptor2, this);\n      _defineProperty(this, \"_cache\", (0, _index.createIntlCache)());\n      _defineProperty(this, \"_formats\", {});\n      _defineProperty(this, \"_onFormatjsError\", error => {\n        switch (error.code) {\n          // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison\n          case 'MISSING_DATA':\n            {\n              console.warn(error.message);\n              break;\n            }\n\n          // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison\n          case 'MISSING_TRANSLATION':\n            {\n              // Do nothing\n              break;\n            }\n          default:\n            {\n              throw error;\n            }\n        }\n      });\n      _defineProperty(this, \"_onMissingTranslation\", (key, locales) => {\n        const locale = locales.join(', ');\n        return `Missing translation \"${key}\" for locale \"${locale}\"`;\n      });\n      _defineProperty(this, \"_timer\", void 0);\n      const hasNewConfiguration = Boolean(\n      // @ts-expect-error: Property 'resolveRegistration' does not exist on type 'Owner'\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n      (0, _application.getOwner)(this).resolveRegistration('ember-intl:main'));\n      if (!hasNewConfiguration) {\n        this.getDefaultFormats();\n      }\n\n      // Hydrate\n      _translations2.default.forEach(_ref => {\n        let [locale, translations] = _ref;\n        this.addTranslations(locale, translations);\n      });\n    }\n    addTranslations(locale, translations) {\n      const messages = (0, _translations.flattenKeys)(translations);\n      this.updateIntl(locale, messages);\n    }\n    createIntl(locale) {\n      let messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      const resolvedLocale = (0, _locale.convertToString)(locale);\n      const formats = this._formats;\n      return (0, _index.createIntl)({\n        defaultFormats: formats,\n        defaultLocale: resolvedLocale,\n        formats,\n        locale: resolvedLocale,\n        // @ts-expect-error: Type 'Record<string, unknown>' is not assignable\n        messages,\n        onError: this._onFormatjsError\n      }, this._cache);\n    }\n    exists(key, locale) {\n      const locales = locale ? (0, _locale.convertToArray)(locale) : this._locale;\n      return locales.some(locale => {\n        return this.getTranslation(key, locale) !== undefined;\n      });\n    }\n    formatDate(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options === null || options === void 0 ? void 0 : options.locale);\n      return (0, _index.formatDate)(intlShape, value, options);\n    }\n    formatDateRange(from, to, options) {\n      if (from === undefined || from === null) {\n        return '';\n      }\n      if (to === undefined || to === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options === null || options === void 0 ? void 0 : options.locale);\n      return (0, _index.formatDateRange)(intlShape, from, to, options);\n    }\n    formatList(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options === null || options === void 0 ? void 0 : options.locale);\n      return (0, _index.formatList)(intlShape, value, options);\n    }\n    formatMessage(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options === null || options === void 0 ? void 0 : options.locale);\n      const descriptor = typeof value === 'object' ? value : {\n        defaultMessage: value,\n        description: undefined,\n        id: value\n      };\n      if (options !== null && options !== void 0 && options.htmlSafe) {\n        const output = (0, _index.formatMessage)(intlShape, descriptor, (0, _escapeFormatMessageOptions.escapeFormatMessageOptions)(options));\n        return (0, _template.htmlSafe)(output);\n      }\n      return (0, _index.formatMessage)(intlShape, descriptor, options);\n    }\n    formatNumber(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options === null || options === void 0 ? void 0 : options.locale);\n      return (0, _index.formatNumber)(intlShape, value, options);\n    }\n\n    /**\n     * @deprecated\n     *\n     * `formatRelative()` will be renamed to `formatRelativeTime()` in `ember-intl@8.0.0`.\n     * Please rename the method to `formatRelativeTime()` in your class now.\n     */\n    formatRelative(value, options) {\n      (true && !(false) && (0, _debug.deprecate)('formatRelative() will be renamed to formatRelativeTime() in ember-intl@8.0.0. Please rename the method to formatRelativeTime() in your class now.', false, {\n        for: 'ember-intl',\n        id: 'ember-intl.rename-format-relative-method',\n        since: {\n          available: '7.2.0',\n          enabled: '7.2.0'\n        },\n        until: '8.0.0',\n        url: 'https://ember-intl.github.io/ember-intl/docs/helpers/introduction'\n      }));\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options === null || options === void 0 ? void 0 : options.locale);\n      return (0, _index.formatRelative)(intlShape, value, options === null || options === void 0 ? void 0 : options.unit, options);\n    }\n    formatRelativeTime(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options === null || options === void 0 ? void 0 : options.locale);\n      return (0, _index.formatRelativeTime)(intlShape, value, options === null || options === void 0 ? void 0 : options.unit, options);\n    }\n    formatTime(value, options) {\n      if (value === undefined || value === null) {\n        return '';\n      }\n      const intlShape = this.getIntlShape(options === null || options === void 0 ? void 0 : options.locale);\n      return (0, _index.formatTime)(intlShape, value, options);\n    }\n\n    /**\n     * @deprecated\n     *\n     * Formats, defined in the file `app/formats.js`, will have no effect in\n     * `ember-intl@8.0.0`. Please define formats in `app/ember-intl.{js,ts}`,\n     * then call `setFormats()` before loading your translations.\n     */\n    getDefaultFormats() {\n      // @ts-expect-error: Property 'resolveRegistration' does not exist on type 'Owner'\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n      const formats = (0, _application.getOwner)(this).resolveRegistration('formats:main');\n      this._formats = formats !== null && formats !== void 0 ? formats : {};\n    }\n    getIntl(locale) {\n      const resolvedLocale = (0, _locale.normalizeLocale)((0, _locale.convertToString)(locale));\n      return this._intls[resolvedLocale];\n    }\n    getIntlShape(locale) {\n      if (locale) {\n        return this.createIntl(locale);\n      }\n      return this.getIntl(this._locale);\n    }\n    getTranslation(key, locale) {\n      var _this$getIntl;\n      const messages = (_this$getIntl = this.getIntl(locale)) === null || _this$getIntl === void 0 ? void 0 : _this$getIntl.messages;\n      if (!messages) {\n        return;\n      }\n      return messages[key];\n    }\n    setFormats(formats) {\n      this._formats = (0, _index.convertToFormatjsFormats)(formats);\n\n      // Call `updateIntl` to update `formats` for each locale\n      this.locales.forEach(locale => {\n        this.updateIntl(locale, {});\n      });\n    }\n    setLocale(locale) {\n      const proposedLocale = (0, _locale.convertToArray)(locale);\n      if ((0, _locale.hasLocaleChanged)(proposedLocale, this._locale)) {\n        this._locale = proposedLocale;\n\n        // eslint-disable-next-line ember/no-runloop\n        (0, _runloop.cancel)(this._timer);\n\n        // eslint-disable-next-line ember/no-runloop\n        this._timer = (0, _runloop.next)(() => {\n          this.updateDocumentLanguage();\n        });\n      }\n      this.updateIntl(proposedLocale);\n    }\n    setOnFormatjsError(onFormatjsError) {\n      this._onFormatjsError = onFormatjsError;\n\n      // Call `updateIntl` to update `onError` for each locale\n      this.locales.forEach(locale => {\n        this.updateIntl(locale, {});\n      });\n    }\n    setOnMissingTranslation(onMissingTranslation) {\n      this._onMissingTranslation = onMissingTranslation;\n    }\n    t(key, options) {\n      const locales = options !== null && options !== void 0 && options.locale ? [options.locale] : this._locale;\n      let translation;\n      for (const locale of locales) {\n        translation = this.getTranslation(key, locale);\n        if (translation !== undefined) {\n          break;\n        }\n      }\n      if (translation === undefined) {\n        return this._onMissingTranslation(key, locales, options);\n      }\n\n      // Bypass @formatjs/intl\n      if (translation === '') {\n        return '';\n      }\n      return this.formatMessage({\n        defaultMessage: translation,\n        id: key\n      }, options);\n    }\n    updateDocumentLanguage() {\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      const dom = (0, _getDom.getDOM)(this);\n      if (dom) {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n        const html = dom.documentElement;\n\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access\n        html.setAttribute('lang', this.primaryLocale);\n      }\n    }\n    updateIntl(locale, messages) {\n      const resolvedLocale = (0, _locale.normalizeLocale)((0, _locale.convertToString)(locale));\n      const intl = this._intls[resolvedLocale];\n      let newIntl;\n      if (!intl) {\n        newIntl = this.createIntl(resolvedLocale, messages);\n      } else if (messages) {\n        var _intl$messages;\n        newIntl = this.createIntl(resolvedLocale, {\n          ...((_intl$messages = intl.messages) !== null && _intl$messages !== void 0 ? _intl$messages : {}),\n          ...messages\n        });\n      }\n      if (!newIntl) {\n        return;\n      }\n      this._intls = {\n        ...this._intls,\n        [resolvedLocale]: newIntl\n      };\n    }\n    willDestroy() {\n      super.willDestroy();\n\n      // eslint-disable-next-line ember/no-runloop\n      (0, _runloop.cancel)(this._timer);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_intls\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_locale\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class); // DO NOT DELETE: this is how TypeScript knows how to look up your services.\n});","define(\"ember-intl/template-registry\", [], function () {\n  \"use strict\";\n\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n});","define(\"ember-intl/translations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = [[\"en-us\", {\n    \"common\": {\n      \"brand\": {\n        \"aws\": \"AWS\",\n        \"aws-iam\": \"AWS IAM\",\n        \"consul\": \"Consul\",\n        \"consul-api-gateway\": \"Consul API Gateway\",\n        \"jwt\": \"JWT\",\n        \"kubernetes\": \"Kubernetes\",\n        \"lambda\": \"AWS Lambda\",\n        \"nomad\": \"Nomad\",\n        \"oidc\": \"OIDC\",\n        \"terraform\": \"Terraform\",\n        \"vault\": \"Vault\"\n      },\n      \"consul\": {\n        \"accessorid\": \"AccessorID\",\n        \"address\": \"Address\",\n        \"api-gateway\": \"API Gateway\",\n        \"critical\": \"Critical\",\n        \"datacenter\": \"Datacenter\",\n        \"description\": \"Description\",\n        \"destinationname\": \"Destination Name\",\n        \"displayname\": \"Display Name\",\n        \"empty\": \"No checks\",\n        \"failuretolerance\": \"Fault tolerance\",\n        \"gateway\": \"Gateway\",\n        \"ingress-gateway\": \"Ingress Gateway\",\n        \"localbindaddress\": \"Local Bind Address\",\n        \"localbindport\": \"Local Bind Port\",\n        \"mesh\": \"Mesh\",\n        \"mesh-gateway\": \"Mesh Gateway\",\n        \"meta\": \"Meta\",\n        \"name\": \"Name\",\n        \"node\": \"Node\",\n        \"node-name\": \"Node Name\",\n        \"node.meta\": \"Node Meta\",\n        \"not-registered\": \"Not Registered\",\n        \"partition\": \"Admin Partitions\",\n        \"passing\": \"Passing\",\n        \"peername\": \"Peer\",\n        \"policy\": \"Policy\",\n        \"readreplica\": \"Read replica\",\n        \"redundancyzone\": \"Redundancy zone\",\n        \"registered\": \"Registered\",\n        \"role\": \"Role\",\n        \"service\": \"Service\",\n        \"service-name\": \"Service Name\",\n        \"service.meta\": \"Service Meta\",\n        \"sourcename\": \"Source Name\",\n        \"status\": \"Health Status\",\n        \"tags\": \"Tags\",\n        \"terminating-gateway\": \"Terminating Gateway\",\n        \"version\": \"Version\",\n        \"warning\": \"Warning\"\n      },\n      \"search\": {\n        \"critical\": \"Failing\",\n        \"in-mesh\": \"In service mesh\",\n        \"integrations\": \"Integrations\",\n        \"not-in-mesh\": \"Not in service mesh\",\n        \"search\": \"Search\",\n        \"searchproperty\": \"Search Across\",\n        \"source\": \"Source\"\n      },\n      \"sort\": {\n        \"age\": {\n          \"asc\": \"Oldest to Newest\",\n          \"desc\": \"Newest to Oldest\"\n        },\n        \"alpha\": {\n          \"asc\": \"A to Z\",\n          \"desc\": \"Z to A\"\n        },\n        \"duration\": {\n          \"asc\": \"Longest to shortest\",\n          \"desc\": \"Shortest to longest\"\n        },\n        \"numeric\": {\n          \"asc\": \"Ascending\",\n          \"desc\": \"Descending\"\n        },\n        \"status\": {\n          \"asc\": \"Unhealthy to Healthy\",\n          \"desc\": \"Healthy to Unhealthy\"\n        },\n        \"version\": {\n          \"asc\": \"Oldest to Latest\",\n          \"desc\": \"Latest to Oldest\"\n        }\n      },\n      \"ui\": {\n        \"creation\": \"Creation\",\n        \"enterprisefeature\": \"Enterprise feature\",\n        \"filtered-by\": \"Filtered by {item}\",\n        \"maxttl\": \"Max TTL\",\n        \"name\": \"Name\",\n        \"remove\": \"Remove {item}\"\n      },\n      \"validations\": {\n        \"dns-hostname\": {\n          \"error\": \"{name} must be a valid DNS hostname.\",\n          \"help\": \"Must be a valid DNS hostname. Must contain 1-64 characters (numbers, letters, and hyphens), and must begin with a letter.\\n\",\n          \"test\": \"^[a-zA-Z0-9]([a-zA-Z0-9-]'{0,62}'[a-zA-Z0-9])?$\"\n        },\n        \"immutable\": {\n          \"help\": \"Once created, this cannot be changed.\"\n        },\n        \"server-external-addresses\": {\n          \"help\": \"Enter a comma separated list of this peer's fallback server address(es) to be used in the event of failed automatic updates. This field is required for HCP-managed clusters.\\n\"\n        }\n      }\n    },\n    \"components\": {\n      \"app\": {\n        \"collapsible-notices\": {\n          \"collapse\": \"Collapse Banners\",\n          \"expand\": \"Expand Banners\"\n        },\n        \"complementary\": \"Complementary\",\n        \"main\": \"Main\",\n        \"skip_to_content\": \"Skip to Content\",\n        \"toggle_menu\": \"Toggle Menu\"\n      },\n      \"consul\": {\n        \"acl\": {\n          \"search-bar\": {\n            \"kind\": {\n              \"name\": \"Type\",\n              \"options\": {\n                \"client\": \"Client\",\n                \"management\": \"Management\"\n              }\n            }\n          }\n        },\n        \"auth-method\": {\n          \"binding-list\": {\n            \"bind-type\": {\n              \"node\": \"The bind name value is used as an ACLNodeIdentity.NodeName field in the token that is created.\",\n              \"role\": \"The bind name value is used as an RoleLink.Name field in the token that is created.\",\n              \"service\": \"The bind name value is used as an ACLServiceIdentity.ServiceName field in the token that is created.\"\n            }\n          },\n          \"search-bar\": {\n            \"kind\": {\n              \"name\": \"Type\"\n            },\n            \"locality\": {\n              \"name\": \"Source\",\n              \"options\": {\n                \"global\": \"Creates global tokens\",\n                \"local\": \"Creates local tokens\"\n              }\n            }\n          }\n        },\n        \"health-check\": {\n          \"search-bar\": {\n            \"check\": {\n              \"name\": \"Type\",\n              \"options\": {\n                \"alias\": \"alias\",\n                \"docker\": \"docker\",\n                \"grpc\": \"grpc\",\n                \"http\": \"http\",\n                \"script\": \"script\",\n                \"serf\": \"serf\",\n                \"tcp\": \"tcp\",\n                \"ttl\": \"ttl\"\n              }\n            },\n            \"kind\": {\n              \"name\": \"Kind\",\n              \"options\": {\n                \"node\": \"Node Check\",\n                \"service\": \"Service Check\"\n              }\n            },\n            \"sort\": {\n              \"kind\": {\n                \"asc\": \"Service to Node\",\n                \"desc\": \"Node to Service\",\n                \"name\": \"Check Type\"\n              },\n              \"name\": {\n                \"name\": \"Check Name\"\n              }\n            }\n          }\n        },\n        \"intention\": {\n          \"notice\": {\n            \"permissions\": {\n              \"body\": \"Permissions are L7 attributes. If any of the following permissions match the request, the Intention will apply. Requests that fail to match any of the provided routes will follow the default ACL policy.\",\n              \"footer\": \"Learn more about permissions\"\n            }\n          },\n          \"search-bar\": {\n            \"access\": {\n              \"name\": \"Permission\",\n              \"options\": {\n                \"allow\": \"Allow\",\n                \"app-aware\": \"App aware\",\n                \"deny\": \"Deny\"\n              }\n            },\n            \"sort\": {\n              \"access\": {\n                \"asc\": \"Allow to Deny\",\n                \"desc\": \"Deny to Allow\",\n                \"name\": \"Permission\"\n              },\n              \"destination-name\": {\n                \"asc\": \"Destination: A to Z\",\n                \"desc\": \"Destination: Z to A\",\n                \"name\": \"Destination\"\n              },\n              \"precedence\": {\n                \"asc\": \"Ascending\",\n                \"desc\": \"Descending\",\n                \"name\": \"Precedence\"\n              },\n              \"source-name\": {\n                \"asc\": \"Source: A to Z\",\n                \"desc\": \"Source: Z to A\",\n                \"name\": \"Source\"\n              }\n            }\n          }\n        },\n        \"kv\": {\n          \"search-bar\": {\n            \"kind\": {\n              \"name\": \"Type\",\n              \"options\": {\n                \"folder\": \"Folder\",\n                \"key\": \"Key\"\n              }\n            },\n            \"sort\": {\n              \"kind\": {\n                \"asc\": \"Folders to Keys\",\n                \"desc\": \"Keys to Folders\"\n              }\n            }\n          }\n        },\n        \"peer\": {\n          \"form\": {\n            \"establish-label\": \"Establish peering\",\n            \"generate-label\": \"Generate token\"\n          },\n          \"generate\": {\n            \"addresses\": \"Server address(es)\",\n            \"name\": \"Name of peer\"\n          },\n          \"search-bar\": {\n            \"sort\": {\n              \"state\": {\n                \"asc\": \"Pending to Deleting\",\n                \"desc\": \"Deleting to Pending\",\n                \"name\": \"Status\"\n              }\n            },\n            \"state\": {\n              \"name\": \"Status\",\n              \"options\": {\n                \"active\": \"Active\",\n                \"deleting\": \"Deleting\",\n                \"establishing\": \"Establishing\",\n                \"failing\": \"Failing\",\n                \"pending\": \"Pending\",\n                \"terminated\": \"Terminated\"\n              }\n            }\n          }\n        },\n        \"policy\": {\n          \"search-bar\": {\n            \"kind\": {\n              \"name\": \"Type\",\n              \"options\": {\n                \"global-management\": \"Global Management\",\n                \"standard\": \"Standard\"\n              }\n            }\n          }\n        },\n        \"service\": {\n          \"search-bar\": {\n            \"in-mesh\": \"In service mesh\",\n            \"kind\": \"Service Type\",\n            \"not-in-mesh\": \"Not in service mesh\"\n          }\n        },\n        \"service-instance\": {\n          \"search-bar\": {\n            \"sort\": {\n              \"name\": {\n                \"name\": \"Service Name\"\n              }\n            }\n          }\n        },\n        \"source\": {\n          \"header\": \"This is not a registered Consul service. It’s a routing configuration that routes traffic to real services in Consul. For more information, read our documentation.\",\n          \"links\": {\n            \"documentation\": \"Documentation\"\n          },\n          \"menu-title\": \"About Routing Configs\"\n        },\n        \"token\": {\n          \"search-bar\": {\n            \"kind\": {\n              \"name\": \"Type\",\n              \"options\": {\n                \"global\": \"Global Scope\",\n                \"global-management\": \"Global Management\",\n                \"local\": \"Local Scope\"\n              }\n            }\n          },\n          \"secretID\": \"Secret ID\",\n          \"selector\": {\n            \"logged-in\": \"Logged in with ACL Token'<br><'b class=consul-side-nav__acl-logged-in'>'{token}'<'/b'>'\"\n          }\n        },\n        \"topology-metrics\": {\n          \"popover\": {\n            \"deny\": {\n              \"action\": {\n                \"isExact\": \"Allow\",\n                \"notExact\": \"Create\"\n              },\n              \"body\": {\n                \"isExact\": \"Change the action of this intention to allow.\",\n                \"notExact\": \"Add an intention that allows these two services to connect.\"\n              },\n              \"header\": \"Connection Denied\"\n            },\n            \"l7\": {\n              \"action\": \"View\",\n              \"body\": \"Certain HTTP request info must be identified.\",\n              \"header\": \"Layer 7 permissions\"\n            },\n            \"not-defined\": {\n              \"action\": \"Documentation\",\n              \"body\": \"Add \\\"{upstream}\\\" as an explicit upstream of \\\"{downstream}\\\" or set the \\\"{downstream}\\\" proxy to \\\"transparent\\\" mode to enable traffic.\",\n              \"header\": \"No traffic\"\n            }\n          },\n          \"source-type\": {\n            \"proxy-registration\": {\n              \"text\": \"Defined in proxy registration\",\n              \"tooltip\": \"This connection was defined in a proxy registration.\"\n            },\n            \"routing-config\": {\n              \"text\": \"Routing configuration\",\n              \"tooltip\": \"This is not a registered Consul service. It’s a routing configuration that routes traffic to real services in Consul.\"\n            }\n          },\n          \"status\": {\n            \"error\": \"Unable to load metrics\",\n            \"ingress-gateway\": \"Viewing metrics for Ingress Gateways is not currently supported in the UI.\",\n            \"loading\": \"Loading metrics\",\n            \"remote-dc\": \"Unable to fetch metrics for a remote datacenter\"\n          }\n        },\n        \"transparent-proxy\": \"Transparent Proxy\",\n        \"upstream\": {\n          \"search-bar\": {\n            \"instance\": {\n              \"name\": \"Type\"\n            }\n          }\n        }\n      },\n      \"consul-copy-button\": {\n        \"copy\": \"Copy\",\n        \"error\": \"There was a problem.\",\n        \"success\": \"Copied\",\n        \"title\": \"Copy {name} to the clipboard\"\n      },\n      \"hashicorp-consul\": {\n        \"notifications\": {\n          \"logged-in\": \"You are now logged in.\",\n          \"logged-in-error\": \"There was an error, please check your SecretID/Token\",\n          \"logged-out\": \"You are now logged out.\",\n          \"logged-out-error\": \"There was an error logging out.\"\n        },\n        \"side-nav\": {\n          \"acls\": {\n            \"auth-methods\": \"Auth Methods\",\n            \"policies\": \"Policies\",\n            \"roles\": \"Roles\",\n            \"title\": \"Access Controls\",\n            \"tokens\": \"Tokens\",\n            \"tooltip\": \"ACLs are not currently enabled in this cluster\"\n          },\n          \"datacenters\": {\n            \"description\": \"WAN federated datacenters\",\n            \"placeholder\": \"Search datacenters\",\n            \"title\": \"Datacenter\"\n          },\n          \"footer\": \"Consul v{version}\",\n          \"hcp\": \"Back to HCP\",\n          \"intentions\": \"Intentions\",\n          \"kv\": \"Key/Value\",\n          \"nodes\": \"Nodes\",\n          \"nspaces\": {\n            \"footer\": \"View all namespaces\",\n            \"placeholder\": \"Search namespaces\",\n            \"title\": \"Namespace\"\n          },\n          \"organization\": {\n            \"peers\": \"Peers\",\n            \"title\": \"Organization\"\n          },\n          \"overview\": \"Overview\",\n          \"partitions\": {\n            \"footer\": \"View all partitions\",\n            \"placeholder\": \"Search partitions\",\n            \"title\": \"Admin partition\"\n          },\n          \"services\": \"Services\",\n          \"support-menu\": {\n            \"docs\": \"Documentation\",\n            \"eng-docs\": \"Eng docs\",\n            \"feedback\": \"Give feedback\",\n            \"tutorials\": \"Tutorials\"\n          },\n          \"user-menu\": {\n            \"log-in\": \"Log in\",\n            \"log-out\": \"Log out\",\n            \"settings\": \"Settings\"\n          }\n        }\n      }\n    },\n    \"hds\": {\n      \"components\": {\n        \"advanced-table\": {\n          \"empty-state\": {\n            \"description\": \"There is currently no data to display in the table.\",\n            \"title\": \"No data available\"\n          },\n          \"reordered-message\": \"Moved {columnLabel} column to position {newPosition}\",\n          \"th-button-expand\": {\n            \"aria-description\": \"Toggle the visibility of the related rows\"\n          },\n          \"th-context-menu\": {\n            \"actions\": \"Additional actions for {columnLabel}\",\n            \"move-column\": \"Move column\",\n            \"move-column-to-end\": \"Move column to end\",\n            \"move-column-to-start\": \"Move column to start\",\n            \"pin\": \"Pin column\",\n            \"reset-width\": \"Reset column width\",\n            \"resize\": \"Resize column\",\n            \"unpin\": \"Unpin column\"\n          },\n          \"th-reorder-handle\": {\n            \"aria-description\": \"Use left and right arrow keys while focused on this button to move the column to a new position.\",\n            \"aria-label\": \"Reorder {columnLabel} column\"\n          },\n          \"th-resize-handle\": {\n            \"aria-label\": \"Resize {columnLabel} column\"\n          },\n          \"th-selectable\": {\n            \"aria-label\": \"Select {suffix}\"\n          }\n        },\n        \"app-footer\": {\n          \"copyright\": {\n            \"copyright-text\": \"© {year} HashiCorp, an IBM Company\"\n          },\n          \"legal-links\": {\n            \"accessibility\": \"Accessibility\",\n            \"privacy\": \"Privacy\",\n            \"security\": \"Security\",\n            \"support\": \"Support\",\n            \"terms\": \"Terms\"\n          },\n          \"list\": {\n            \"aria-label\": \"Footer items\"\n          },\n          \"status-link\": {\n            \"status\": {\n              \"degraded\": \"System degraded\",\n              \"maintenance\": \"System maintenance\",\n              \"operational\": \"System operational\",\n              \"outage\": \"System outage\"\n            }\n          }\n        },\n        \"app-side-nav\": {\n          \"list\": {\n            \"aria-label\": \"Application local\"\n          },\n          \"screen-reader-label\": \"Application local navigation\"\n        },\n        \"application-state\": {\n          \"header\": {\n            \"error\": \"ERROR\"\n          }\n        },\n        \"code-block\": {\n          \"height-toggle-button\": {\n            \"show-less\": \"Show less code\",\n            \"show-more\": \"Show more code\"\n          }\n        },\n        \"code-editor\": {\n          \"full-screen-button\": {\n            \"text\": \"Toggle full screen view\"\n          }\n        },\n        \"common\": {\n          \"ascending\": \"Ascending\",\n          \"descending\": \"Descending\",\n          \"loading\": \"Loading\",\n          \"menu\": \"Menu\",\n          \"sort-by\": \"Sort by\",\n          \"toggle\": \"Toggle\",\n          \"tooltip-prefix\": \"More information for\"\n        },\n        \"copy-button\": {\n          \"aria-message-text\": {\n            \"error\": \"Failed to copy to clipboard\",\n            \"success\": \"Copied to clipboard\"\n          }\n        },\n        \"copy-snippet\": {\n          \"aria-message-text\": {\n            \"error\": \"Failed to copy to clipboard\",\n            \"success\": \"Copied to clipboard\"\n          },\n          \"button\": {\n            \"aria-label\": \"copy {textToCopy}\"\n          }\n        },\n        \"dismiss-button\": {\n          \"aria-label\": \"Dismiss\"\n        },\n        \"filter-bar\": {\n          \"actions-dropdown\": {\n            \"toggle-button\": \"Actions\"\n          },\n          \"applied-filters\": {\n            \"clear-filters\": \"Clear all filters\",\n            \"no-filters-applied\": \"No filters applied\",\n            \"tag\": {\n              \"aria-label\": \"Clear filter\",\n              \"date-filter\": {\n                \"separator\": \"and\"\n              },\n              \"numerical-filter\": {\n                \"separator\": \"and\"\n              }\n            },\n            \"toggle-button\": \"View applied filters\"\n          },\n          \"filter-group\": {\n            \"date\": {\n              \"between-value-inputs\": {\n                \"end\": {\n                  \"aria-label\": \"{type} end value\",\n                  \"placeholder\": \"End\"\n                },\n                \"start\": {\n                  \"aria-label\": \"{type} start value\",\n                  \"placeholder\": \"Start\"\n                }\n              },\n              \"date\": {\n                \"label\": \"Date is\"\n              },\n              \"datetime\": {\n                \"label\": \"Datetime is\"\n              },\n              \"legend\": \"Filter by {text}\",\n              \"selector-input\": {\n                \"after\": \"After\",\n                \"before\": \"Before\",\n                \"between\": \"Between\",\n                \"default-value\": \"Pick a selector\",\n                \"exactly\": \"Exactly\"\n              },\n              \"time\": {\n                \"label\": \"Time is\"\n              },\n              \"value-input\": {\n                \"aria-label\": \"{type} value\",\n                \"placeholder\": \"Enter a date\"\n              }\n            },\n            \"numerical\": {\n              \"between-value-inputs\": {\n                \"end\": {\n                  \"aria-label\": \"Number end value\",\n                  \"placeholder\": \"End\"\n                },\n                \"start\": {\n                  \"aria-label\": \"Number start value\",\n                  \"placeholder\": \"Start\"\n                }\n              },\n              \"label\": \"Number is\",\n              \"legend\": \"Filter by {text}\",\n              \"selector-input\": {\n                \"between\": \"Between\",\n                \"default-value\": \"Pick a selector\",\n                \"equal-to\": \"Equal to (=)\",\n                \"greater-than\": \"Greater than (>)\",\n                \"greater-than-or-equal-to\": \"Greater than or equal to (≥)\",\n                \"less-than\": \"Less than (<)\",\n                \"less-than-or-equal-to\": \"Less than or equal to (≤)\"\n              },\n              \"value-input\": {\n                \"aria-label\": \"Number value\",\n                \"placeholder\": \"Enter a value\"\n              }\n            },\n            \"search-input\": {\n              \"aria-description\": \"Search will be performed automatically as you type\",\n              \"aria-label\": \"Search filter options\",\n              \"placeholder\": \"Search\"\n            },\n            \"values-list\": {\n              \"clear-filter\": \"Clear filter\",\n              \"clear-selection\": \"Clear selection\",\n              \"legend\": \"Filter by {text}\"\n            }\n          },\n          \"filters-dropdown\": {\n            \"apply\": \"Apply filters\",\n            \"clear\": \"Clear all filters\",\n            \"expand-collapse-button\": {\n              \"collapse\": \"Collapse filters\",\n              \"expand\": \"Expand filters\"\n            },\n            \"selected-filters\": \"Filters selected\",\n            \"toggle-button\": \"Filters\"\n          },\n          \"live-filtering\": \"Filters will be applied automatically as selections are made\",\n          \"search\": {\n            \"aria-label\": \"Search\",\n            \"placeholder\": \"Search\"\n          },\n          \"tabs\": {\n            \"aria-label\": \"Filter bar tabs\",\n            \"tab\": {\n              \"filters-applied\": \"Filters applied\"\n            }\n          }\n        },\n        \"form\": {\n          \"common\": {\n            \"optional_field_indicator\": \"Optional\",\n            \"required_field_indicator\": \"Required\"\n          },\n          \"key-value-inputs\": {\n            \"add-row-button\": {\n              \"aria-description\": \"Adds a new row of one or more inputs at the end of the form field. Press shift tab to move focus back to the newly added row.\",\n              \"text\": \"Add row\"\n            },\n            \"delete-row-button\": {\n              \"text\": \"Delete row {rowNumber}\"\n            },\n            \"field\": {\n              \"label-hidden-text\": \"row {rowNumber}\"\n            }\n          },\n          \"masked-input\": {\n            \"base\": {\n              \"copy-masked-content\": \"Copy masked content\",\n              \"hide-masked-content\": \"Hide masked content\",\n              \"input-content-is-hidden\": \"Input content is hidden\",\n              \"input-content-is-visible\": \"Input content is visible\",\n              \"show-masked-content\": \"Show masked content\"\n            }\n          },\n          \"super-select\": {\n            \"after-options\": {\n              \"clear-selected\": \"Clear selected\",\n              \"no-options-selected\": \"No options selected\",\n              \"show-all\": \"Show all\",\n              \"show-selected\": \"Show selected\"\n            }\n          }\n        },\n        \"pagination\": {\n          \"compact\": {\n            \"aria-label\": \"Pagination\"\n          },\n          \"info\": {\n            \"page_range\": \"{itemsRangeStart}–{itemsRangeEnd}\",\n            \"page_range_with_total\": \"{itemsRangeStart}–{itemsRangeEnd} of {totalItems}\"\n          },\n          \"nav\": {\n            \"arrow\": {\n              \"aria-label\": {\n                \"direction\": {\n                  \"next\": \"Next page\",\n                  \"prev\": \"Previous page\"\n                }\n              },\n              \"label\": {\n                \"direction\": {\n                  \"next\": \"Next\",\n                  \"prev\": \"Previous\"\n                }\n              }\n            },\n            \"number\": {\n              \"screen-reader-label\": \"page\"\n            }\n          },\n          \"numbered\": {\n            \"aria-label\": \"Pagination\"\n          }\n        },\n        \"stepper\": {\n          \"complete\": \"(complete)\",\n          \"nav\": {\n            \"active\": \"(current)\",\n            \"complete\": \"(complete)\"\n          },\n          \"processing\": \"(in progress)\",\n          \"progress\": \"(current)\"\n        },\n        \"table\": {\n          \"sorted-message-text\": \"Sorted by {sortBy} {sortOrder}\",\n          \"th-selectable\": {\n            \"aria-label\": \"Select {suffix}\"\n          }\n        }\n      },\n      \"modifiers\": {\n        \"hds-code-editor\": {\n          \"lint-panel-description\": \"Press `Ctrl-Shift-m` (`Cmd-Shift-m` on macOS) while focus is on the textbox to open the linting panel\"\n        }\n      }\n    },\n    \"models\": {\n      \"auth-method\": {\n        \"BindNamespace\": \"Bind Namespace\",\n        \"Config\": {\n          \"AllowedRedirectURIs\": \"Allowed redirect URIs\",\n          \"BoundAudiences\": \"Bound audiences\",\n          \"BoundIssuer\": \"Bound issuer\",\n          \"CACert\": \"CA Cert\",\n          \"ClaimMappings\": \"Claim Mappings\",\n          \"ClockSkewLeeway\": \"Clock skew leeway\",\n          \"ExpirationLeeway\": \"Expiration leeway\",\n          \"Host\": \"Host\",\n          \"JWKSCACert\": \"JWKS CA Cert\",\n          \"JWKSURL\": \"JWKS URL\",\n          \"JWTSupportedAlgs\": \"JWT supported algorithms\",\n          \"JWTValidationPubKeys\": \"JWT validation pub keys\",\n          \"ListClaimMappings\": \"List Claim Mappings\",\n          \"NotBeforeLeeway\": \"Not before leeway\",\n          \"OIDCClientAssertionPrivateKey\": \"Client assertion private key\",\n          \"OIDCClientID\": \"Client ID\",\n          \"OIDCClientSecret\": \"Client secret\",\n          \"OIDCDiscoveryCACert\": \"OIDC discovery CA cert\",\n          \"OIDCDiscoveryURL\": \"Discovery URL\",\n          \"OIDCScopes\": \"OIDC scopes\",\n          \"ServiceAccountJWT\": \"Service account JSON Web Token\",\n          \"VerboseOIDCLogging\": \"Verbose OIDC logging\"\n        },\n        \"Description\": \"Description\",\n        \"DisplayName\": \"Display name\",\n        \"MaxTokenTTL\": \"Maximum token TTL\",\n        \"Selector\": \"Selector\",\n        \"TokenLocality\": \"Token locality\",\n        \"TokenNameFormat\": \"Token name format\",\n        \"Type\": \"Type\"\n      },\n      \"binding-rule\": {\n        \"BindType\": \"Type\",\n        \"Description\": \"Description\",\n        \"Selector\": \"Selector\"\n      }\n    },\n    \"routes\": {\n      \"dc\": {\n        \"acls\": {\n          \"auth-methods\": {\n            \"index\": {\n              \"empty\": {\n                \"body\": \"<p>\\n  {items, select,\\n    0 {There don't seem to be any Auth Methods}\\n    other {No Auth Methods were found matching your search}\\n  }, or you may not have <code>acl:read</code> permissions to view Auth Methods yet.\\n</p>\\n\",\n                \"header\": \"{items, select,\\n  0 {Welcome to Auth Methods}\\n  other {No Auth Methods found}\\n}\\n\"\n              }\n            },\n            \"show\": {\n              \"binding-rules\": {\n                \"index\": {\n                  \"empty\": {\n                    \"body\": \"<p>\\n  Binding rules allow an operator to express a systematic way of automatically linking roles and service identities to newly created tokens without operator intervention.\\n</p>\\n\",\n                    \"header\": \"No binding rules\"\n                  }\n                }\n              },\n              \"nspace-rules\": {\n                \"empty\": {\n                  \"body\": \"<p>\\n  A set of rules that can control which namespace tokens created via this auth method will be created within. Unlike binding rules, the first matching namespace rule wins.\\n</p>\\n\",\n                  \"header\": \"No namespace rules\"\n                }\n              }\n            }\n          },\n          \"policies\": {\n            \"index\": {\n              \"empty\": {\n                \"body\": \"<p>\\n  {items, select,\\n    0 {There don't seem to be any Policies}\\n    other {No Policies were found matching your search}\\n  }, or you may not have <code>acl:read</code> permissions to view Policies yet.\\n</p>\\n\",\n                \"header\": \"{items, select,\\n  0 {Welcome to Policies}\\n  other {No Policies found}\\n}\\n\"\n              }\n            }\n          },\n          \"roles\": {\n            \"index\": {\n              \"empty\": {\n                \"body\": \"<p>\\n  {items, select,\\n    0 {There don't seem to be any Roles}\\n    other {No Roles were found matching your search}\\n  }, or you may not have <code>acl:read</code> permissions to view Roles yet.\\n</p>\\n\",\n                \"header\": \"{items, select,\\n  0 {Welcome to Roles}\\n  other {No Roles found}\\n}\\n\"\n              }\n            }\n          },\n          \"tokens\": {\n            \"index\": {\n              \"empty\": {\n                \"body\": \"<p>\\n  {items, select,\\n    0 {There don't seem to be any Tokens}\\n    other {No Tokens were found matching your search}\\n  }, or you may not have <code>acl:read</code> permissions to view Tokens yet.\\n</p>\\n\",\n                \"header\": \"{items, select,\\n  0 {Welcome to Tokens}\\n  other {No Tokens found}\\n}\\n\"\n              }\n            }\n          }\n        },\n        \"intentions\": {\n          \"index\": {\n            \"empty\": {\n              \"body\": \"<p>\\n  {items, select,\\n    0 {There don't seem to be any Intentions in this Consul cluster}\\n    other {No Intentions were found matching your search}\\n  }{canUseACLs, select,\\n    true {, or you may not have intentions:read permissions access to this view.} \\n    other {.}\\n  }\\n</p>\\n\",\n              \"header\": \"{items, select,\\n  0 {Welcome to Intentions}\\n  other {No Intentions found}\\n}\\n\"\n            }\n          }\n        },\n        \"kv\": {\n          \"index\": {\n            \"empty\": {\n              \"body\": \"<p>\\n  {items, select,\\n    0 {There don't seem to be any K/V pairs in this Consul cluster yet}\\n    other {No K/V pairs were found matching your search}\\n  }{canUseACLs, select,\\n    true {, or you may not have <code>key:read</code> permissions access to this view.}\\n    other {.}\\n  }\\n</p>\\n\",\n              \"header\": \"{items, select,\\n  0 {Welcome to Key/Value}\\n  other {No Key/Values found}\\n}\\n\"\n            }\n          }\n        },\n        \"namespaces\": {\n          \"index\": {\n            \"empty\": {\n              \"body\": \"{items, select,\\n  0 {No namespaces were found matching that search{canUseACLs, select,\\n    true {, or you may not have access to view the namespaces you are searching for.}\\n    other {.}\\n  }}\\n  other {There don't seem to be any namespaces{canUseACLs, select,\\n    true {, or you may not have access to view namespaces yet.}\\n    other {.}\\n  }}\\n}\\n\",\n              \"header\": \"{items, select,\\n  0 {Welcome to Namespaces}\\n  other {No namespaces found}\\n}\\n\"\n            }\n          }\n        },\n        \"nodes\": {\n          \"index\": {\n            \"agentless\": {\n              \"notice\": {\n                \"body\": \"Kubernetes clusters do not require client nodes to run as of Consul 1.14. Kubernetes nodes will not appear in this view.\",\n                \"footer\": \"View documentation on Consul Dataplane\",\n                \"header\": \"Consul 1.14 removes client nodes from Kubernetes Service Mesh deployments\"\n              }\n            },\n            \"empty\": {\n              \"body\": \"<p>\\n  {items, select,\\n    0 {There don't seem to be any registered Nodes in this Consul cluster}\\n    other {No Nodes were found matching your search}\\n  }{canUseACLs, select,\\n    true {, or you may not have <code>service:read</code> and <code>node:read</code> permissions access to this view.}\\n    other {.}\\n  }\\n</p>\\n\",\n              \"documentation\": \"Documentation on Nodes\",\n              \"header\": \"{items, select,\\n  0 {Welcome to Nodes}\\n  other {No Nodes found}\\n}\\n\",\n              \"learn\": \"Take the tutorial\"\n            }\n          },\n          \"show\": {\n            \"healthchecks\": {\n              \"critical-serf-notice\": {\n                \"body\": \"<p>\\n  This node has a failing serf node check. The health statuses shown on this page are the statuses as they were known before the node became unreachable.\\n</p>\\n\",\n                \"header\": \"Failing serf check\"\n              },\n              \"empty\": \"<p>\\n  This Node has no Health Checks{items, select,\\n    0 {}\\n    other { matching that search}\\n  }.\\n</p>\\n\",\n              \"title\": \"Health Checks\"\n            },\n            \"metadata\": {\n              \"title\": \"Metadata\"\n            },\n            \"rtt\": {\n              \"title\": \"Round Trip Time\"\n            },\n            \"services\": {\n              \"empty\": \"<p>\\n  This Node has no Service Instances{items, select,\\n    0 {}\\n    other { matching that search}\\n  }.\\n</p>\\n\",\n              \"title\": \"Service Instances\"\n            },\n            \"sessions\": {\n              \"empty\": {\n                \"body\": \"<p>\\nConsul provides a session mechanism which can be used to build distributed locks. Sessions act as a binding layer between Nodes, Health Checks, and Key/Value data. There are currently no Lock Sessions present{canUseACLs, select,\\n  true {, or you may not have <code>key:read</code> or <code>session:read</code> permissions.}\\n  other {.}\\n}\\n</p>\\n\",\n                \"header\": \"Welcome to Lock Sessions\"\n              },\n              \"title\": \"Lock Sessions\"\n            }\n          }\n        },\n        \"partitions\": {\n          \"index\": {\n            \"empty\": {\n              \"body\": \"{items, select,\\n  0 {There don't seem to be any partitions{canUseACLs, select,\\n    true {, or you may not have access to view partitions yet.}\\n    other {.}\\n  }}\\n  other {No partitions were found matching that search{canUseACLs, select,\\n    true {, or you may not have access to view the namesapces you are searching}\\n    other {.}\\n  }}\\n}\\n\",\n              \"header\": \"{items, select,\\n  0 {Welcome to Partitions}\\n  other {No partitions found}\\n}\\n\"\n            }\n          }\n        },\n        \"peers\": {\n          \"index\": {\n            \"detail\": {\n              \"addresses\": {\n                \"tooltip\": \"The number of services exported to {name}\"\n              },\n              \"exported\": {\n                \"count\": \"{count} exported services\\n\",\n                \"tab-tooltip\": \"Services exported to {name}\",\n                \"tooltip\": \"The number of services exported to {name}\"\n              },\n              \"imported\": {\n                \"count\": \"{count} imported services\\n\",\n                \"tab-tooltip\": \"Services imported from {name}\",\n                \"tooltip\": \"The number of services imported from {name}\"\n              }\n            },\n            \"empty\": {\n              \"body\": \"{items, select,\\n  0 {Cluster peering is the recommended way to connect services across or within Consul datacenters. Peering is a one-to-one relationship in which each peer is either a open-source Consul datacenter or a Consul enterprise admin partition. There don't seem to be any peers for this {canUsePartitions, select,\\n    true {admin partition}\\n    other {datacenter}\\n  }}\\n  other {No peers were found matching that search}\\n}{canUseACLs, select,\\n  true {, or you may not have the <code>peering:read</code> permissions to access this view.}\\n  other {.}\\n}\\n\",\n              \"header\": \"{items, select,\\n  0 {Welcome to Peers}\\n  other {No peers found}\\n}\\n\"\n            }\n          },\n          \"show\": {\n            \"addresses\": {\n              \"empty\": {\n                \"body\": \"<div>There don't seem to be any server addresses for this peer.</div>\",\n                \"header\": \"No server adddresses.\"\n              }\n            },\n            \"exported\": {\n              \"empty\": {\n                \"body\": \"<div>\\n{items, select,\\n  0 {Services must be exported from one peer to another to enable service communication across two peers. There don't seem to be any services exported to {name} yet, or you may not have <code>services:read</code> permissions to access to this view.}\\n  other {No services were found matching that search, or you may not have access to view the services you are searching for.}\\n}\\n</div>\\n\",\n                \"header\": \"No visible exported services to {name}\"\n              }\n            },\n            \"imported\": {\n              \"empty\": {\n                \"body\": \"<div>\\n{items, select,\\n  0 {Services must be exported from one peer to another to enable service communication across two peers. There don't seem to be any services imported from {name} yet, or you may not have <code>services:read</code> permissions to access to this view.}\\n  other {No services were found matching that search, or you may not have access to view the services you are searching for.}\\n}\\n</div>\\n\",\n                \"header\": \"No visible imported services from {name}\"\n              }\n            }\n          }\n        },\n        \"routing-config\": {\n          \"source\": \"Routing Configuration\"\n        },\n        \"services\": {\n          \"index\": {\n            \"empty\": {\n              \"body\": \"<p>\\n  {items, select,\\n    0 {There don't seem to be any registered services in this Consul cluster}\\n    other {No Services were found matching your search}\\n  }{canUseACLs, select,\\n    true {, or you may not have <code>service:read</code> and <code>node:read</code> access to this view. Use Terraform, Kubernetes CRDs, Vault, or the Consul CLI to register Services.}\\n    other {.}\\n  }\\n</p>\\n\",\n              \"header\": \"{items, select,\\n  0 {Welcome to Services}\\n  other {No Services found}\\n}\\n\"\n            }\n          },\n          \"instance\": {\n            \"exposedpaths\": {\n              \"empty\": {\n                \"body\": \"<p>\\n  There are no individual HTTP paths exposed through Envoy for external services like Prometheus. Read more about this in our <a href=\\\"{CONSUL_DOCS_URL}/connect/registration/service-registration#expose-paths-configuration-reference\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">documentation</a>.\\n</p>\\n\"\n              },\n              \"intro\": \"<p>\\n  The following list shows individual HTTP paths exposed through Envoy for external services like Prometheus. Read more about this in our <a href=\\\"{CONSUL_DOCS_URL}/connect/registration/service-registration#expose-paths-configuration-reference\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">documentation</a>.\\n</p>\\n\"\n            },\n            \"healthchecks\": {\n              \"critical-serf-notice\": {\n                \"body\": \"This instance has a failing serf node check. The health statuses shown on this page are the statuses as they were known before the node became unreachable.\",\n                \"header\": \"Failing serf check\"\n              },\n              \"empty\": \"<p>\\n  This instance has no health checks{items, select,\\n    0 {}\\n    other { matching that search}\\n  }.\\n</p>\\n\"\n            },\n            \"upstreams\": {\n              \"empty\": \"<p>\\n  This Service Instance has no Upstreams{items, select,\\n    0 {}\\n    other { matching that search}\\n  }.\\n</p>\\n\",\n              \"tproxy-mode\": {\n                \"body\": \"The upstreams listed on this page have been defined in a proxy registration. There may be more upstreams, though, as \\\"transparent\\\" mode is enabled on this proxy.\",\n                \"footer\": {\n                  \"link\": \"/connect/transparent-proxy\",\n                  \"text\": \"Read the documentation\"\n                },\n                \"header\": \"Transparent proxy mode\"\n              }\n            }\n          },\n          \"show\": {\n            \"instances\": {\n              \"empty\": \"<p>\\n  This Service has no Instances{items, select,\\n    0 {}\\n    other { matching that search}\\n  }.\\n</p>\\n\"\n            },\n            \"intentions\": {\n              \"index\": {\n                \"empty\": {\n                  \"body\": \"<p>\\n  {items, select,\\n    0 {There don't seem to be any Intentions in this Consul cluster}\\n    other {No Intentions were found matching your search}\\n  }{canUseACLs, select,\\n    true {, or you may not have <code>intentions:read</code> permissions access to this view.}\\n    other {.}\\n  }\\n</p>\\n\",\n                  \"header\": \"{items, select,\\n  0 {Welcome to Intentions}\\n  other {No Intentions found}\\n}\\n\"\n                }\n              }\n            },\n            \"services\": {\n              \"empty\": \"<p>\\n  There are no Services{items, select,\\n    0 {}\\n    other { matching that search}\\n  }.\\n</p>\\n\",\n              \"intro\": \"<p>\\n  The following services may receive traffic from external services through this gateway. Learn more about configuring gateways in our <a href=\\\"{CONSUL_DOCS_URL}/connect/terminating-gateway\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">step-by-step guide</a>.\\n</p>\\n\"\n            },\n            \"tags\": {\n              \"empty\": {\n                \"body\": \"<p>\\n  There are no tags for this Service.\\n</p>\\n\",\n                \"header\": \"Welcome to Tags\"\n              }\n            },\n            \"topology\": {\n              \"notice\": {\n                \"acls-disabled\": {\n                  \"body\": \"Your current ACL settings allow all services to connect to each other. Either create a deny intention between all services, or enable ACLs and set your default ACL policy to deny to improve your security posture and make this topology view reflect the actual upstreams and downstreams of this service.\",\n                  \"footer\": {\n                    \"link\": \"{ CONSUL_DOCS_URL }/security/acl/acl-system#configuring-acls\",\n                    \"link-text\": \"Read the documentation\"\n                  },\n                  \"header\": \"Restrict which services can connect\"\n                },\n                \"default-allow\": {\n                  \"body\": \"Your current ACL settings allow all services to connect to each other. Either create a deny intention between all services, or set your default ACL policy to deny to improve your security posture and make this topology view reflect the actual upstreams and downstreams of this service.\",\n                  \"footer\": {\n                    \"icon\": \"plus\",\n                    \"link-text\": \"Create a wildcard deny Intention\"\n                  },\n                  \"header\": \"Restrict which services can connect\"\n                },\n                \"filtered-by-acls\": {\n                  \"body\": \"This service may have dependencies you won’t see because you don’t have access to them.\",\n                  \"header\": \"Limited Access\"\n                },\n                \"no-dependencies\": {\n                  \"body\": \"The service you are viewing currently has no dependencies. You will only see metrics for the current service until dependencies are added.\",\n                  \"footer\": {\n                    \"link\": \"{CONSUL_DOCS_URL}/connect/registration/service-registration#upstream-configuration-reference\",\n                    \"link-text\": \"Read the documentation\"\n                  },\n                  \"header\": \"No dependencies\"\n                },\n                \"no-intentions\": {\n                  \"body\": \"There is an upstream registered for this service, but that upstream cannot receive traffic without creating an allow intention.\",\n                  \"footer\": {\n                    \"icon\": \"edit\",\n                    \"link-text\": \"Edit Intentions\"\n                  },\n                  \"header\": \"Add Intention to allow traffic\"\n                },\n                \"not-defined-intention\": {\n                  \"body\": \"An Intention was defined that allows traffic between services, but those services are unable to communicate. Define an explicit upstream in the service definition or enable transparent proxy to fix this.\",\n                  \"footer\": {\n                    \"link\": \"{CONSUL_DOCS_URL}/connect/registration/service-registration#upstreams\",\n                    \"link-text\": \"Learn how to add upstreams\"\n                  },\n                  \"header\": \"Add upstream to allow traffic\"\n                },\n                \"wildcard-intention\": {\n                  \"body\": \"There is currently a wildcard Intention that allows all services to connect to each other. Change the action of that Intention to deny to improve your security posture and have this topology view reflect the actual upstreams and downstreams of this service.\",\n                  \"footer\": {\n                    \"icon\": \"edit\",\n                    \"link-text\": \"Edit wildcard intentions\"\n                  },\n                  \"header\": \"Restrict which services can connect\"\n                }\n              },\n              \"notices\": {\n                \"close\": \"Collapse Banners\",\n                \"open\": \"Expand Banners\"\n              }\n            },\n            \"upstreams\": {\n              \"empty\": \"<p>\\n  This Service has no Upstreams{items, select,\\n    0 {}\\n    other { matching that search}\\n  }.\\n</p>\\n\",\n              \"intro\": \"<p>\\n  Upstreams are services that may receive traffic from this gateway. If you are not using Consul DNS, please make sure your <code>Host:</code> header uses the correct domain name for the gateway to correctly proxy to its upstreams. Learn more about configuring gateways in our <a href=\\\"{CONSUL_DOCS_URL}/connect/ingress-gateways\\\" target=\\\"_blank\\\" rel=\\\"noopener noreferrer\\\">documentation</a>.\\n</p>\\n\"\n            }\n          }\n        },\n        \"show\": {\n          \"cataloghealth\": {\n            \"title\": \"Health\"\n          },\n          \"license\": {\n            \"documentation\": {\n              \"links\": {\n                \"applying-new-license\": {\n                  \"link\": \"/tutorials/nomad/hashicorp-enterprise-license?in=consul/enterprise\",\n                  \"text\": \"Applying a new license\"\n                },\n                \"license-expiration\": {\n                  \"link\": \"/enterprise/license/faq#q-is-there-a-grace-period-when-licenses-expire\",\n                  \"text\": \"License expiration\"\n                },\n                \"renewing-license\": {\n                  \"link\": \"/enterprise/license/faq#q-how-can-i-renew-a-license\",\n                  \"text\": \"Renewing a license\"\n                }\n              },\n              \"title\": \"Learn More\"\n            },\n            \"expiry\": {\n              \"expired\": {\n                \"body\": \"<p>\\n  Your license expired on {date} at {time}.\\n</p>\\n\",\n                \"header\": \"Expired\"\n              },\n              \"header\": \"Expiry\",\n              \"valid\": {\n                \"body\": \"<p>\\n  Your license expires on {date} at {time}.\\n</p>\\n\",\n                \"header\": \"\"\n              }\n            },\n            \"title\": \"License\"\n          },\n          \"serverstatus\": {\n            \"servers\": \"Servers\",\n            \"title\": \"Server status\",\n            \"tolerance\": {\n              \"header\": \"Server fault tolerance\",\n              \"immediate\": {\n                \"body\": \"the number of healthy active voting servers that can fail at once without causing an outage\",\n                \"header\": \"Immediate\"\n              },\n              \"link\": \"/architecture/improving-consul-resilience#strategies-to-increase-fault-tolerance\",\n              \"link-text\": \"Learn how to improve fault tolerance\",\n              \"optimistic\": {\n                \"body\": \"the number of healthy active and back-up voting servers that can fail gradually without causing an outage\",\n                \"header\": \"Optimistic\"\n              }\n            },\n            \"unassigned\": \"Unassigned Zones\"\n          },\n          \"title\": \"Cluster Overview\"\n        }\n      }\n    }\n  }]];\n});","define(\"ember-load-initializers/index\", [\"exports\", \"require\"], function (_exports, _require) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = loadInitializers;\n  function resolveInitializer(moduleName) {\n    var module = (0, _require.default)(moduleName, null, null, true);\n    if (!module) {\n      throw new Error(moduleName + ' must export an initializer.');\n    }\n    var initializer = module['default'];\n    if (!initializer) {\n      throw new Error(moduleName + ' must have a default export');\n    }\n    if (!initializer.name) {\n      initializer.name = moduleName.slice(moduleName.lastIndexOf('/') + 1);\n    }\n    return initializer;\n  }\n  function registerInitializers(app, moduleNames) {\n    for (var i = 0; i < moduleNames.length; i++) {\n      app.initializer(resolveInitializer(moduleNames[i]));\n    }\n  }\n  function registerInstanceInitializers(app, moduleNames) {\n    for (var i = 0; i < moduleNames.length; i++) {\n      app.instanceInitializer(resolveInitializer(moduleNames[i]));\n    }\n  }\n  function _endsWith(str, suffix) {\n    return str.indexOf(suffix, str.length - suffix.length) !== -1;\n  }\n\n  /**\n   * Configure your application as it boots\n   */\n  function loadInitializers(app, prefix) {\n    var initializerPrefix = prefix + '/initializers/';\n    var instanceInitializerPrefix = prefix + '/instance-initializers/';\n    var initializers = [];\n    var instanceInitializers = [];\n    // this is 2 pass because generally the first pass is the problem\n    // and is reduced, and resolveInitializer has potential to deopt\n    var moduleNames = Object.keys(requirejs._eak_seen);\n    for (var i = 0; i < moduleNames.length; i++) {\n      var moduleName = moduleNames[i];\n      if (moduleName.lastIndexOf(initializerPrefix, 0) === 0) {\n        if (!_endsWith(moduleName, '-test')) {\n          initializers.push(moduleName);\n        }\n      } else if (moduleName.lastIndexOf(instanceInitializerPrefix, 0) === 0) {\n        if (!_endsWith(moduleName, '-test')) {\n          instanceInitializers.push(moduleName);\n        }\n      }\n    }\n    registerInitializers(app, initializers);\n    registerInstanceInitializers(app, instanceInitializers);\n  }\n});","define(\"ember-on-helper/helpers/on-document\", [\"exports\", \"ember-on-helper/helpers/on\"], function (_exports, _on) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _on.default.extend({\n    compute(positional, named) {\n      return this._super([document, ...positional], named);\n    }\n  });\n});","define(\"ember-on-helper/helpers/on-window\", [\"exports\", \"ember-on-helper/helpers/on\"], function (_exports, _on) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _on.default.extend({\n    compute(positional, named) {\n      return this._super([window, ...positional], named);\n    }\n  });\n});","define(\"ember-on-helper/helpers/on\", [\"exports\", \"@ember/component/helper\", \"ember-on-helper/utils/event-listener\", \"@ember/debug\"], function (_exports, _helper, _eventListener, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.__counts = __counts;\n  _exports.default = void 0;\n  /* eslint no-param-reassign: \"off\" */\n\n  /**\n   * These are private API and only used for testing instrumentation.\n   */\n  let adds = 0;\n  let removes = 0;\n  function __counts() {\n    return {\n      adds,\n      removes\n    };\n  }\n  const assertValidEventOptions = true /* DEBUG */ && (() => {\n    const ALLOWED_EVENT_OPTIONS = ['capture', 'once', 'passive'];\n    const joinOptions = options => options.map(o => `'${o}'`).join(', ');\n    return function (eventOptions, eventName) {\n      const invalidOptions = Object.keys(eventOptions).filter(o => !ALLOWED_EVENT_OPTIONS.includes(o));\n      (true && !(invalidOptions.length === 0) && (0, _debug.assert)(`ember-on-helper: Provided invalid event options (${joinOptions(invalidOptions)}) to '${eventName}' event listener. Only these options are valid: ${joinOptions(ALLOWED_EVENT_OPTIONS)}`, invalidOptions.length === 0));\n    };\n  })();\n  function setupListener(eventTarget, eventName, callback, eventOptions) {\n    if (true /* DEBUG */) assertValidEventOptions(eventOptions, eventName);\n    (true && !(eventTarget && typeof eventTarget.addEventListener === 'function' && typeof eventTarget.removeEventListener === 'function') && (0, _debug.assert)(`ember-on-helper: '${eventTarget}' is not a valid event target. It has to be an Element or an object that conforms to the EventTarget interface.`, eventTarget && typeof eventTarget.addEventListener === 'function' && typeof eventTarget.removeEventListener === 'function'));\n    (true && !(typeof eventName === 'string' && eventName.length > 1) && (0, _debug.assert)(`ember-on-helper: '${eventName}' is not a valid event name. It has to be a string with a minimum length of 1 character.`, typeof eventName === 'string' && eventName.length > 1));\n    (true && !(typeof callback === 'function') && (0, _debug.assert)(`ember-on-helper: '${callback}' is not a valid callback. Provide a function.`, typeof callback === 'function'));\n    adds++;\n    (0, _eventListener.addEventListener)(eventTarget, eventName, callback, eventOptions);\n    return callback;\n  }\n  function destroyListener(eventTarget, eventName, callback, eventOptions) {\n    if (eventTarget && eventName && callback) {\n      removes++;\n      (0, _eventListener.removeEventListener)(eventTarget, eventName, callback, eventOptions);\n    }\n  }\n  var _default = _exports.default = _helper.default.extend({\n    eventTarget: null,\n    eventName: undefined,\n    callback: undefined,\n    eventOptions: undefined,\n    compute(_ref, eventOptions) {\n      let [eventTarget, eventName, callback] = _ref;\n      destroyListener(this.eventTarget, this.eventName, this.callback, this.eventOptions);\n      this.eventTarget = eventTarget;\n      this.callback = setupListener(this.eventTarget, eventName, callback, eventOptions);\n      this.eventName = eventName;\n      this.eventOptions = eventOptions;\n    },\n    willDestroy() {\n      this._super();\n      destroyListener(this.eventTarget, this.eventName, this.callback, this.eventOptions);\n    }\n  });\n});","define(\"ember-on-helper/utils/event-listener\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SUPPORTS_EVENT_OPTIONS = void 0;\n  _exports.addEventListener = addEventListener;\n  _exports.addEventListenerOnce = addEventListenerOnce;\n  _exports.removeEventListener = removeEventListener;\n  /* eslint no-param-reassign: \"off\" */\n\n  /**\n   * Internet Explorer 11 does not support `once` and also does not support\n   * passing `eventOptions`. In some situations it then throws a weird script\n   * error, like:\n   *\n   * ```\n   * Could not complete the operation due to error 80020101\n   * ```\n   *\n   * This flag determines, whether `{ once: true }` and thus also event options in\n   * general are supported.\n   */\n  const SUPPORTS_EVENT_OPTIONS = _exports.SUPPORTS_EVENT_OPTIONS = (() => {\n    try {\n      const div = document.createElement('div');\n      let counter = 0;\n      div.addEventListener('click', () => counter++, {\n        once: true\n      });\n      let event;\n      if (typeof Event === 'function') {\n        event = new Event('click');\n      } else {\n        event = document.createEvent('Event');\n        event.initEvent('click', true, true);\n      }\n      div.dispatchEvent(event);\n      div.dispatchEvent(event);\n      return counter === 1;\n    } catch (error) {\n      return false;\n    }\n  })();\n\n  /**\n   * Registers an event for an `element` that is called exactly once and then\n   * unregistered again. This is effectively a polyfill for `{ once: true }`.\n   *\n   * It also accepts a fourth optional argument `useCapture`, that will be passed\n   * through to `addEventListener`.\n   *\n   * @param {Element} element\n   * @param {string} eventName\n   * @param {Function} callback\n   * @param {boolean} [useCapture=false]\n   */\n  function addEventListenerOnce(element, eventName, callback) {\n    let useCapture = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n    function listener() {\n      element.removeEventListener(eventName, listener, useCapture);\n      callback();\n    }\n    element.addEventListener(eventName, listener, useCapture);\n  }\n\n  /**\n   * Safely invokes `addEventListener` for IE11 and also polyfills the\n   * `{ once: true }` and `{ capture: true }` options.\n   *\n   * All other options are discarded for IE11. Currently this is only `passive`.\n   *\n   * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\n   *\n   * @param {Element} element\n   * @param {string} eventName\n   * @param {Function} callback\n   * @param {object} [eventOptions]\n   */\n  function addEventListener(element, eventName, callback, eventOptions) {\n    const _callback = true /* DEBUG */ && eventOptions && eventOptions.passive ? function (event) {\n      event.preventDefault = () => {\n        (true && !(false) && (0, _debug.assert)(`ember-on-helper: You marked this listener as 'passive', meaning that you must not call 'event.preventDefault()'.`));\n      };\n      return callback.call(this, event);\n    } : callback;\n    if (SUPPORTS_EVENT_OPTIONS) {\n      element.addEventListener(eventName, _callback, eventOptions);\n    } else if (eventOptions && eventOptions.once) {\n      addEventListenerOnce(element, eventName, _callback, Boolean(eventOptions.capture));\n    } else {\n      element.addEventListener(eventName, _callback, Boolean(eventOptions && eventOptions.capture));\n    }\n  }\n\n  /**\n   * Since the same `capture` event option that was used to add the event listener\n   * needs to be used when removing the listener, it needs to be polyfilled as\n   * `useCapture` for IE11.\n   *\n   * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener\n   *\n   * @param {Element} element\n   * @param {string} eventName\n   * @param {Function} callback\n   * @param {object} [eventOptions]\n   */\n  function removeEventListener(element, eventName, callback, eventOptions) {\n    if (SUPPORTS_EVENT_OPTIONS) {\n      element.removeEventListener(eventName, callback, eventOptions);\n    } else {\n      element.removeEventListener(eventName, callback, Boolean(eventOptions && eventOptions.capture));\n    }\n  }\n});","define(\"ember-on-resize-modifier/modifiers/on-resize\", [\"exports\", \"ember-modifier\", \"@ember/service\", \"@ember/debug\", \"@ember/destroyable\"], function (_exports, _emberModifier, _service, _debug, _destroyable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\",0,\"@ember/service\",0,\"@ember/debug\",0,\"@ember/destroyable\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let OnResizeModifier = _exports.default = (_class = class OnResizeModifier extends _emberModifier.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"resizeObserver\", _descriptor, this);\n      _defineProperty(this, \"callback\", null);\n      _defineProperty(this, \"element\", null);\n      (0, _destroyable.registerDestructor)(this, () => {\n        this.resizeObserver.unobserve(this.element, this.callback);\n      });\n    }\n    modify(element, _ref) {\n      let [callback] = _ref;\n      (true && !(typeof callback === 'function') && (0, _debug.assert)(`on-resize-modifier: callback must be a function, but was ${callback}`, typeof callback === 'function'));\n      this.resizeObserver.observe(element, callback);\n      this.resizeObserver.unobserve(this.element, this.callback);\n      this.callback = callback;\n      this.element = element;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"resizeObserver\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"ember-raf-scheduler/index\", [\"exports\", \"@ember/runloop\", \"@ember/debug\"], function (_exports, _runloop, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.scheduler = _exports.default = _exports.Token = _exports.Scheduler = void 0;\n  class Token {\n    constructor(parent) {\n      this._parent = parent;\n      this._cancelled = false;\n      if (true /* DEBUG */) {\n        Object.seal(this);\n      }\n    }\n    get cancelled() {\n      return this._cancelled || (this._cancelled = this._parent ? this._parent.cancelled : false);\n    }\n    cancel() {\n      this._cancelled = true;\n    }\n  }\n  _exports.Token = Token;\n  function job(cb, token) {\n    return function execJob() {\n      if (token.cancelled === false) {\n        cb();\n      }\n    };\n  }\n  class Scheduler {\n    constructor() {\n      this.sync = [];\n      this.layout = [];\n      this.measure = [];\n      this.affect = [];\n      this.jobs = 0;\n      this._nextFlush = null;\n      this.ticks = 0;\n      if (true /* DEBUG */) {\n        Object.seal(this);\n      }\n    }\n    schedule(queueName, cb, parent) {\n      (true && !(queueName in this) && (0, _debug.assert)(`Attempted to schedule to unknown queue: ${queueName}`, queueName in this));\n      this.jobs++;\n      let token = new Token(parent);\n      this[queueName].push(job(cb, token));\n      this._flush();\n      return token;\n    }\n    forget(token) {\n      // TODO add explicit test\n      if (token) {\n        token.cancel();\n      }\n    }\n    _flush() {\n      if (this._nextFlush !== null) {\n        return;\n      }\n      this._nextFlush = requestAnimationFrame(() => {\n        this.flush();\n      });\n    }\n    flush() {\n      let i, q;\n      this.jobs = 0;\n      if (this.sync.length > 0) {\n        (0, _runloop.begin)();\n        q = this.sync;\n        this.sync = [];\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n        (0, _runloop.end)();\n      }\n      if (this.layout.length > 0) {\n        q = this.layout;\n        this.layout = [];\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n      }\n      if (this.measure.length > 0) {\n        q = this.measure;\n        this.measure = [];\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n      }\n      if (this.affect.length > 0) {\n        q = this.affect;\n        this.affect = [];\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n      }\n      this._nextFlush = null;\n      if (this.jobs > 0) {\n        this._flush();\n      }\n    }\n  }\n  _exports.Scheduler = Scheduler;\n  const scheduler = _exports.scheduler = new Scheduler();\n  var _default = _exports.default = scheduler;\n});","define(\"ember-ref-bucket/helpers/ref-to\", [\"exports\", \"@ember/component/helper\", \"ember-ref-bucket/utils/ref\", \"@ember/destroyable\", \"@ember/application\"], function (_exports, _helper, _ref3, _destroyable, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-ref-bucket/utils/ref\",0,\"@ember/destroyable\",0,\"@ember/application\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class RefToHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"_watcher\", null);\n    }\n    compute(_ref, _ref2) {\n      let [name] = _ref;\n      let {\n        bucket,\n        tracked\n      } = _ref2;\n      const bucketRef = bucket || (0, _application.getOwner)(this);\n      if (this._name !== name) {\n        if (this._watcher) {\n          (0, _destroyable.unregisterDestructor)(this, this._watcher);\n        }\n        this._watcher = (0, _ref3.watchFor)(name, bucketRef, () => {\n          this.recompute();\n        });\n        (0, _destroyable.registerDestructor)(this, this._watcher);\n        this._name = name;\n      }\n      if (tracked) {\n        return (0, _ref3.bucketFor)(bucketRef).getTracked(name);\n      } else {\n        return (0, _ref3.bucketFor)(bucketRef).get(name);\n      }\n    }\n  }\n  _exports.default = RefToHelper;\n});","define(\"ember-ref-bucket/index\", [\"exports\", \"ember-ref-bucket/utils/ref\", \"@ember/application\", \"ember-ref-bucket/utils/prototype-reference\"], function (_exports, _ref, _application, _prototypeReference) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.globalRef = globalRef;\n  _exports.nodeFor = nodeFor;\n  _exports.ref = ref;\n  Object.defineProperty(_exports, \"registerNodeDestructor\", {\n    enumerable: true,\n    get: function () {\n      return _ref.registerNodeDestructor;\n    }\n  });\n  Object.defineProperty(_exports, \"resolveGlobalRef\", {\n    enumerable: true,\n    get: function () {\n      return _ref.resolveGlobalRef;\n    }\n  });\n  _exports.trackedGlobalRef = trackedGlobalRef;\n  _exports.trackedRef = trackedRef;\n  Object.defineProperty(_exports, \"unregisterNodeDestructor\", {\n    enumerable: true,\n    get: function () {\n      return _ref.unregisterNodeDestructor;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-ref-bucket/utils/ref\",0,\"@ember/application\",0,\"ember-ref-bucket/utils/ref\",0,\"ember-ref-bucket/utils/prototype-reference\"eaimeta@70e063a35619d71f\n  function nodeFor(context, name) {\n    return (0, _ref.bucketFor)(context).get(name);\n  }\n  function maybeReturnCreated(value, createdValues, fn, ctx) {\n    if (value === null || value === undefined) {\n      return null;\n    }\n    if (typeof fn === 'function') {\n      if (!createdValues.has(value)) {\n        createdValues.set(value, fn.call(ctx, value));\n      }\n      return createdValues.get(value);\n    } else {\n      return value;\n    }\n  }\n  function ref(name, fn) {\n    return function (klass, objectKey) {\n      const createdValues = new WeakMap();\n      if (typeof fn === 'function') {\n        (0, _prototypeReference.addPrototypeReference)(klass, objectKey, name);\n      }\n      return {\n        get() {\n          const value = (0, _ref.bucketFor)(this).get(name);\n          return maybeReturnCreated(value, createdValues, fn, this);\n        },\n        configurable: true\n      };\n    };\n  }\n  function globalRef(name, fn) {\n    return function (klass, objectKey) {\n      const createdValues = new WeakMap();\n      if (typeof fn === 'function') {\n        (0, _prototypeReference.addPrototypeReference)(klass, objectKey, name);\n      }\n      return {\n        get() {\n          const value = (0, _ref.bucketFor)((0, _application.getOwner)(this) || (0, _ref.resolveGlobalRef)()).get(name);\n          return maybeReturnCreated(value, createdValues, fn, this);\n        },\n        configurable: true\n      };\n    };\n  }\n  function trackedRef(name, fn) {\n    return function (klass, objectKey) {\n      const createdValues = new WeakMap();\n      if (typeof fn === 'function') {\n        (0, _prototypeReference.addPrototypeReference)(klass, objectKey, name);\n      }\n      return {\n        get() {\n          const value = (0, _ref.bucketFor)(this).getTracked(name);\n          return maybeReturnCreated(value, createdValues, fn, this);\n        },\n        configurable: true\n      };\n    };\n  }\n  function trackedGlobalRef(name, fn) {\n    return function (klass, objectKey) {\n      const createdValues = new WeakMap();\n      if (typeof fn === 'function') {\n        (0, _prototypeReference.addPrototypeReference)(klass, objectKey, name);\n      }\n      return {\n        get() {\n          const value = (0, _ref.bucketFor)((0, _application.getOwner)(this) || (0, _ref.resolveGlobalRef)()).getTracked(name);\n          return maybeReturnCreated(value, createdValues, fn, this);\n        },\n        configurable: true\n      };\n    };\n  }\n});","define(\"ember-ref-bucket/instance-initializers/global-ref-cleanup\", [\"exports\", \"@ember/destroyable\", \"ember-ref-bucket/utils/ref\"], function (_exports, _destroyable, _ref) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/destroyable\",0,\"ember-ref-bucket/utils/ref\"eaimeta@70e063a35619d71f\n  function initialize(appInstance) {\n    (0, _destroyable.registerDestructor)(appInstance, () => {\n      (0, _ref.cleanGlobalRef)();\n    });\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"ember-ref-bucket/modifiers/create-ref\", [\"exports\", \"ember-modifier\", \"@ember/application\", \"@ember/object\", \"@ember/debug\", \"ember-ref-bucket/utils/ref\", \"ember-ref-bucket/utils/prototype-reference\", \"@ember/destroyable\"], function (_exports, _emberModifier, _application, _object, _debug, _ref, _prototypeReference, _destroyable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\",0,\"@ember/application\",0,\"@ember/object\",0,\"@ember/debug\",0,\"ember-ref-bucket/utils/ref\",0,\"ember-ref-bucket/utils/prototype-reference\",0,\"@ember/destroyable\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  let RefModifier = _exports.default = (_class = class RefModifier extends _emberModifier.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"_key\", void 0);\n      _defineProperty(this, \"_ctx\", void 0);\n      _defineProperty(this, \"_element\", void 0);\n      // to minimise overhead, user should be specific about\n      // what they want to observe\n      _defineProperty(this, \"defaultMutationObserverOptions\", {\n        attributes: false,\n        characterData: false,\n        childList: false,\n        subtree: false\n      });\n      (0, _ref.setGlobalRef)((0, _application.getOwner)(this));\n      (0, _destroyable.registerDestructor)(this, () => {\n        const element = this._element;\n        this.cleanMutationObservers();\n        this.cleanResizeObservers();\n        (0, _ref.getNodeDestructors)(element).forEach(cb => cb());\n        if (element === (0, _ref.bucketFor)(this._ctx).get(this._key)) {\n          (0, _ref.bucketFor)(this._ctx).add(this._key, null);\n        }\n        delete this._element;\n      });\n    }\n    markDirty() {\n      (0, _ref.bucketFor)(this._ctx).dirtyTrackedCell(this._key);\n    }\n    cleanMutationObservers() {\n      if (this._mutationsObserver) {\n        this._mutationsObserver.disconnect();\n      }\n    }\n    cleanResizeObservers() {\n      if (this._resizeObserver) {\n        this._resizeObserver.unobserve(this._element);\n      }\n    }\n    installMutationObservers() {\n      let named = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      this._mutationsObserver = new MutationObserver(this.markDirty);\n      const opts = this.getObserverOptions(named);\n      delete opts.resize;\n      if (opts.attributes || opts.characterData || opts.childList || opts.subtree) {\n        // mutations observer throws if observe is attempted\n        // with all these options disabled\n        this._mutationsObserver.observe(this._element, opts);\n      }\n    }\n    validateTrackedOptions() {\n      let named = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      const args = ['subtree', 'attributes', 'children', 'resize', 'character'];\n      if (args.some(name => name in named)) {\n        (true && !(this.isTracked(named)) && (0, _debug.assert)(`\"ember-ref-modifier\", looks like you trying to use {{${named.debugName}}} without tracked flag or alias, but, with properties, related to tracked modifier (${args.join(', ')})`, this.isTracked(named)));\n      }\n    }\n    getObserverOptions() {\n      let named = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      // to minimise overhead user\n      // should be specific about\n      // what they want to observe\n      let resize = false;\n      let subtree = this.defaultMutationObserverOptions.subtree;\n      let attributes = this.defaultMutationObserverOptions.attributes;\n      let character = this.defaultMutationObserverOptions.characterData;\n      let children = this.defaultMutationObserverOptions.childList;\n      if ('subtree' in named) {\n        subtree = named.subtree;\n      }\n      if ('attributes' in named) {\n        attributes = named.attributes;\n      }\n      if ('children' in named) {\n        children = named.children;\n      }\n      if ('resize' in named) {\n        resize = named.resize;\n      }\n      if ('character' in named) {\n        character = named.character;\n      }\n      return {\n        subtree,\n        attributes,\n        childList: children,\n        resize,\n        characterData: character\n      };\n    }\n    installResizeObservers(element) {\n      this._resizeObserver = new ResizeObserver(this.markDirty);\n      this._resizeObserver.observe(element);\n    }\n    modify(element, positional, named) {\n      const name = this.name(positional);\n      const ctx = this.ctx(named, positional);\n      this._key = name;\n      this._ctx = ctx;\n      this._element = element;\n      (true && (0, _debug.warn)(`Preprocessor was not executed on create-ref modifier. If the reference is not set, check that ember-ref-bucket is included in the dependencies (not devDependencies) in package.json.`, typeof named.debugName === 'string' || !!named.bucket, {\n        id: 'ember-ref-bucket.no-preprocessor'\n      }));\n      (true && !(typeof name === 'string' && name.length > 0) && (0, _debug.assert)(`You must provide string as first positional argument for {{${named.debugName}}}`, typeof name === 'string' && name.length > 0));\n      this.validateTrackedOptions(named);\n      this.cleanMutationObservers();\n      this.cleanResizeObservers();\n      if (name !== this._key || this._ctx !== ctx) {\n        (0, _ref.bucketFor)(this._ctx).add(this._key, null);\n      }\n      (0, _ref.watchFor)(name, ctx, () => {\n        const keys = (0, _prototypeReference.getReferencedKeys)(ctx, name);\n        keys.forEach(keyName => {\n          // consume keys with callbacks\n          ctx[keyName];\n        });\n      });\n      (0, _ref.bucketFor)(ctx).add(name, element);\n      if (this.isTracked(named)) {\n        this.installMutationObservers(named);\n        if (this.getObserverOptions(named).resize) {\n          this.installResizeObservers(element);\n        }\n      }\n    }\n    ctx() {\n      let named = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      let positional = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [undefined];\n      (true && !(named.bucket !== null) && (0, _debug.assert)(`ember-ref-bucket: You trying to use {{${named.debugName}}} as local reference for template-only component. Replace it to {{global-ref \"${positional[0]}\"}}`, named.bucket !== null));\n      return named.bucket || (0, _application.getOwner)(this);\n    }\n    isTracked() {\n      let named = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      return named.tracked || false;\n    }\n    name(positional) {\n      return positional[0];\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"markDirty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"markDirty\"), _class.prototype), _class);\n});","define(\"ember-ref-bucket/utils/prototype-reference\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addPrototypeReference = addPrototypeReference;\n  _exports.getReferencedKeys = getReferencedKeys;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const PrototypeReferences = new WeakMap();\n  function addPrototypeReference(klass, objectKey, referenceName) {\n    if (!PrototypeReferences.has(klass)) {\n      PrototypeReferences.set(klass, {});\n    }\n    let obj = PrototypeReferences.get(klass);\n    if (!(referenceName in obj)) {\n      obj[referenceName] = new Set();\n    }\n    obj[referenceName].add(objectKey);\n  }\n  function getReferencedKeys(klassInstance, referenceName) {\n    let proto = klassInstance;\n    while (proto.__proto__) {\n      proto = proto.__proto__;\n      if (PrototypeReferences.has(proto)) {\n        let maybeData = PrototypeReferences.get(proto);\n        if (referenceName in maybeData) {\n          return Array.from(maybeData[referenceName]);\n        }\n      }\n    }\n    return [];\n  }\n});","define(\"ember-ref-bucket/utils/ref\", [\"exports\", \"@ember/destroyable\", \"@glimmer/tracking\"], function (_exports, _destroyable, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.bucketFor = bucketFor;\n  _exports.cleanGlobalRef = cleanGlobalRef;\n  _exports.getNodeDestructors = getNodeDestructors;\n  _exports.registerNodeDestructor = registerNodeDestructor;\n  _exports.resolveGlobalRef = resolveGlobalRef;\n  _exports.setGlobalRef = setGlobalRef;\n  _exports.unregisterNodeDestructor = unregisterNodeDestructor;\n  _exports.watchFor = watchFor;\n  var _class, _descriptor; // @ts-check\n  /*eslint no-undef: \"warn\"*/\n  0; //eaimeta@70e063a35619d71f0,\"@ember/destroyable\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  /**\n   * @type {object | null}\n   */\n  let lastGlobalRef = null;\n  /**\n   * @type {WeakMap<object, ReturnType<typeof createBucket>>}\n   */\n  const buckets = new WeakMap();\n  /**\n   * @type {WeakMap<HTMLElement, Array<() => void>>}\n   */\n  const nodeDestructors = new WeakMap();\n  const hasWeakRef = typeof WeakRef !== 'undefined';\n  function fromWeakRefIfSupported(node) {\n    if (hasWeakRef && node instanceof WeakRef) {\n      var _node$deref;\n      return (_node$deref = node.deref()) !== null && _node$deref !== void 0 ? _node$deref : null;\n    }\n    return node;\n  }\n\n  /**\n   *\n   * @param {null | undefined | WeakRef | HTMLElement } node\n   * @returns\n   */\n  function toWeakRefIfSupported(node) {\n    if (node === null || node === undefined) {\n      return null;\n    }\n    if (hasWeakRef) {\n      if (node instanceof WeakRef) {\n        return node;\n      }\n      return new WeakRef(node);\n    }\n    return node;\n  }\n  let FieldCell = (_class = class FieldCell {\n    constructor() {\n      /**\n      /**\n       * @type {null | (WeakRef<HTMLElement> | HTMLElement)}\n       */\n      _initializerDefineProperty(this, \"_element\", _descriptor, this);\n    }\n    get value() {\n      if (this._element) {\n        return fromWeakRefIfSupported(this._element);\n      } else {\n        return null;\n      }\n    }\n    set value(element) {\n      if (element) {\n        this._element = toWeakRefIfSupported(element);\n      } else {\n        this._element = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class);\n  function setGlobalRef(value) {\n    lastGlobalRef = value;\n  }\n  function cleanGlobalRef() {\n    lastGlobalRef = null;\n  }\n  function resolveGlobalRef() {\n    return lastGlobalRef;\n  }\n  function createBucket() {\n    return {\n      /**\n       * @type { Record<string, HTMLElement> }\n       */\n      bucket: {},\n      /**\n       * @type { Record<string, FieldCell> }\n       */\n      keys: {},\n      /**\n       * @param {string} key\n       */\n      createTrackedCell(key) {\n        if (!(key in this.keys)) {\n          this.keys[key] = new FieldCell();\n        }\n      },\n      /**\n       * @param {string} name\n       * @returns { HTMLElement | null }\n       */\n      get(name) {\n        this.createTrackedCell(name);\n        return fromWeakRefIfSupported(this.bucket[name]) || null;\n      },\n      /**\n       * @param {string} name\n       */\n      dirtyTrackedCell(name) {\n        this.createTrackedCell(name);\n        const val = this.keys[name].value;\n        this.keys[name].value = val;\n      },\n      /**\n       * @param {string} name\n       */\n      getTracked(name) {\n        this.createTrackedCell(name);\n        return this.keys[name].value;\n      },\n      /**\n       * @param {string} name\n       * @param {HTMLElement} value\n       */\n      add(name, value) {\n        this.createTrackedCell(name);\n        this.keys[name].value = value;\n        this.bucket[name] = toWeakRefIfSupported(value);\n        if (!(name in this.notificationsFor)) {\n          this.notificationsFor[name] = [];\n        }\n        this.notificationsFor[name].forEach(fn => fn());\n      },\n      /**\n       * @param {string} name\n       * @param {() => void} fn\n       */\n      addNotificationFor(name, fn) {\n        if (!(name in this.notificationsFor)) {\n          this.notificationsFor[name] = [];\n        }\n        this.notificationsFor[name].push(fn);\n        return () => {\n          this.notificationsFor[name] = this.notificationsFor[name].filter(cb => cb !== cb);\n        };\n      },\n      /**\n       * @type { Record<string, Array<() => void>> }\n       */\n      notificationsFor: {}\n    };\n  }\n\n  /**\n   *\n   * @param {HTMLElement} node\n   * @returns {Array<() => void>}\n   */\n  function getNodeDestructors(node) {\n    return nodeDestructors.get(node) || [];\n  }\n\n  /**\n   * @param {HTMLElement} node\n   * @param {() => void} cb\n   */\n  function registerNodeDestructor(node, cb) {\n    var _nodeDestructors$get;\n    if (!nodeDestructors.has(node)) {\n      nodeDestructors.set(node, []);\n    }\n    (_nodeDestructors$get = nodeDestructors.get(node)) === null || _nodeDestructors$get === void 0 || _nodeDestructors$get.push(cb);\n  }\n  /**\n   *\n   * @param {HTMLElement} node\n   * @param {()=> void} cb\n   */\n  function unregisterNodeDestructor(node, cb) {\n    const destructors = nodeDestructors.get(node) || [];\n    nodeDestructors.set(node, destructors.filter(el => el !== cb));\n  }\n  /**\n   *\n   * @param {object} rawCtx\n   * @returns {ReturnType<typeof createBucket> | undefined}\n   */\n  function bucketFor(rawCtx) {\n    const ctx = rawCtx;\n    if (!buckets.has(ctx)) {\n      buckets.set(ctx, createBucket());\n      if ((0, _destroyable.isDestroyed)(ctx) || (0, _destroyable.isDestroying)(ctx)) {\n        try {\n          return buckets.get(ctx);\n        } finally {\n          buckets.delete(ctx);\n        }\n      }\n      (0, _destroyable.registerDestructor)(ctx, () => {\n        buckets.delete(ctx);\n      });\n    }\n    return buckets.get(ctx);\n  }\n  /**\n   *\n   * @param {string} name\n   * @param {object} bucketRef\n   * @param {()=>void} cb\n   * @returns\n   */\n  function watchFor(name, bucketRef, cb) {\n    const bucket = bucketFor(bucketRef);\n    return bucket === null || bucket === void 0 ? void 0 : bucket.addNotificationFor(name, cb);\n  }\n});","define(\"ember-resize-observer-service/services/resize-observer\", [\"exports\", \"@ember/service\", \"@ember/object\", \"@ember/debug\", \"ember-resize-observer-service/utils/ignore-ro-error\"], function (_exports, _service, _object, _debug, _ignoreRoError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const addonName = 'resize-observer-service';\n\n  /**\n   * ResizeObserverService allows to use a single ResizeObserver instance\n   * for observing multiple elements to achieve better performance.\n   */\n  let ResizeObserverService = _exports.default = (_class = class ResizeObserverService extends _service.default {\n    constructor() {\n      super(...arguments);\n      this._setup();\n    }\n    _setup() {\n      this.callbacks = null;\n      this.observer = null;\n      if (typeof FastBoot !== 'undefined' || typeof window === 'undefined') {\n        return;\n      }\n      if (!window.ResizeObserver) {\n        (true && (0, _debug.warn)(`${addonName}: ResizeObserver is not available`, {\n          id: addonName\n        }));\n        return;\n      }\n      (0, _ignoreRoError.default)();\n      this.callbacks = new WeakMap();\n      this.observer = new window.ResizeObserver(this.handleResize);\n    }\n\n    /**\n     * `isEnabled` is `true` if the ResizeObserver API is available,\n     * otherwise the service will ignore any method calls.\n     */\n    get isEnabled() {\n      return !!this.observer;\n    }\n\n    /**\n     * Initiate the observing of the `element` or add an additional `callback`\n     * if the `element` is already observed.\n     *\n     * @param {object} element\n     * @param {function} callback The `callback` is called whenever the size of\n     *    the `element` changes. It is called with `ResizeObserverEntry` object\n     *    for the particular `element`.\n     */\n    observe(element, callback) {\n      if (!this.isEnabled) {\n        return;\n      }\n      const callbacks = this.callbacks.get(element);\n      if (callbacks) {\n        callbacks.add(callback);\n      } else {\n        this.callbacks.set(element, new Set([callback]));\n        this.observer.observe(element);\n      }\n    }\n\n    /**\n     * End the observing of the `element` or just remove the provided `callback`.\n     *\n     * It will unobserve the `element` if the `callback` is not provided\n     * or there are no more callbacks left for this `element`.\n     *\n     * @param {object} element\n     * @param {function?} callback - The `callback` to remove from the listeners\n     *   of the `element` size changes.\n     */\n    unobserve(element, callback) {\n      if (!this.isEnabled) {\n        return;\n      }\n      const callbacks = this.callbacks.get(element);\n      if (!callbacks) {\n        return;\n      }\n      callbacks.delete(callback);\n      if (!callback || !callbacks.size) {\n        this.callbacks.delete(element);\n        this.observer.unobserve(element);\n      }\n    }\n\n    /**\n     * Unobserve all observed elements.\n     */\n    clear() {\n      if (!this.isEnabled) {\n        return;\n      }\n      this.callbacks = new WeakMap();\n      this.observer.disconnect();\n    }\n    willDestroy() {\n      this.clear();\n    }\n    handleResize(entries) {\n      for (const entry of entries) {\n        const callbacks = this.callbacks.get(entry.target);\n        if (callbacks) {\n          for (const callback of callbacks) {\n            callback(entry);\n          }\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"handleResize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleResize\"), _class.prototype), _class);\n});","define(\"ember-resize-observer-service/utils/ignore-ro-error\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = ignoreROError;\n  const errorMessages = ['ResizeObserver loop limit exceeded', 'ResizeObserver loop completed with undelivered notifications.'];\n\n  /**\n   * Ignores \"ResizeObserver loop limit exceeded\" error in Ember tests.\n   *\n   * This \"error\" is safe to ignore as it is just a warning message,\n   * telling that the \"looping\" observation will be skipped in the current frame,\n   * and will be delivered in the next one.\n   *\n   * For some reason, it is fired as an `error` event at `window` failing Ember\n   * tests and exploding Sentry with errors that must be ignored.\n   */\n  function ignoreROError() {\n    if (typeof window.onerror !== 'function') {\n      return;\n    }\n    const onError = window.onerror;\n    window.onerror = function (message) {\n      if (errorMessages.includes(message)) {\n        return true;\n      } else {\n        for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n          args[_key - 1] = arguments[_key];\n        }\n        onError(message, ...args);\n      }\n    };\n  }\n});","define(\"ember-resolver/container-debug-adapter\", [\"exports\", \"@ember/array\", \"@ember/debug/container-debug-adapter\", \"ember-resolver/index\", \"@ember/application\"], function (_exports, _array, _containerDebugAdapter, _index, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function getPod(type, key, prefix) {\n    let match = key.match(new RegExp('^/?' + prefix + '/(.+)/' + type + '$'));\n    if (match !== null) {\n      return match[1];\n    }\n  }\n\n  /*\n   * This module defines a subclass of Ember.ContainerDebugAdapter that adds\n   * support for resolving from modules.\n   *\n   */\n\n  /* eslint-disable ember/no-classic-classes */\n  var _default = _exports.default = _containerDebugAdapter.default.extend({\n    _moduleRegistry: null,\n    init() {\n      this._super(...arguments);\n      this.namespace = (0, _application.getOwner)(this).lookup('application:main');\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new _index.ModuleRegistry();\n      }\n    },\n    /**\n        The container of the application being debugged.\n        This property will be injected\n        on creation.\n         @property container\n        @default null\n        */\n\n    /**\n        The resolver instance of the application\n        being debugged. This property will be injected\n        on creation.\n         @property resolver\n        @default null\n        */\n\n    /**\n        Returns true if it is possible to catalog a list of available\n        classes in the resolver for a given type.\n         @method canCatalogEntriesByType\n        @param {string} type The type. e.g. \"model\", \"controller\", \"route\"\n        @return {boolean} whether a list is available for this type.\n        */\n    canCatalogEntriesByType(type) {\n      if (type === 'model') {\n        return true;\n      }\n      return this._super(...arguments);\n    },\n    /**\n        Returns the available classes a given type.\n         @method catalogEntriesByType\n        @param {string} type The type. e.g. \"model\", \"controller\", \"route\"\n        @return {Array} An array of classes.\n        */\n    catalogEntriesByType(type) {\n      let moduleNames = this._moduleRegistry.moduleNames();\n      let types = (0, _array.A)();\n      let prefix = this.namespace.modulePrefix;\n      for (let i = 0, l = moduleNames.length; i < l; i++) {\n        let key = moduleNames[i];\n        if (key.indexOf(type) !== -1) {\n          // Check if it's a pod module\n          let name = getPod(type, key, this.namespace.podModulePrefix || prefix);\n          if (!name) {\n            // Not pod\n            name = key.split(type + 's/').pop();\n\n            // Support for different prefix (such as ember-cli addons).\n            // Uncomment the code below when\n            // https://github.com/ember-cli/ember-resolver/pull/80 is merged.\n\n            //let match = key.match('^/?(.+)/' + type);\n            //if (match && match[1] !== prefix) {\n            // Different prefix such as an addon\n            //name = match[1] + '@' + name;\n            //}\n          }\n          types.addObject(name);\n        }\n      }\n      return types;\n    }\n  });\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/debug\", \"@ember/object\", \"ember-resolver/string\", \"ember-resolver/utils/class-factory\", \"@ember/owner\"], function (_exports, _debug, _object, _string, _classFactory, _owner) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ModuleRegistry = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } /* globals requirejs, require */\n  if (typeof requirejs.entries === 'undefined') {\n    requirejs.entries = requirejs._eak_seen;\n  }\n  class ModuleRegistry {\n    constructor(entries) {\n      this._entries = entries || requirejs.entries;\n    }\n    moduleNames() {\n      return Object.keys(this._entries);\n    }\n    has(moduleName) {\n      return moduleName in this._entries;\n    }\n    get() {\n      return require(...arguments);\n    }\n  }\n\n  /**\n   * This module defines a subclass of Ember.DefaultResolver that adds two\n   * important features:\n   *\n   *  1) The resolver makes the container aware of es6 modules via the AMD\n   *     output. The loader's _moduleEntries is consulted so that classes can be\n   *     resolved directly via the module loader, without needing a manual\n   *     `import`.\n   *  2) is able to provide injections to classes that implement `extend`\n   *     (as is typical with Ember).\n   */\n  _exports.ModuleRegistry = ModuleRegistry;\n  class Resolver extends _object.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"moduleBasedResolver\", true);\n      _defineProperty(this, \"_deprecatedPodModulePrefix\", false);\n      _defineProperty(this, \"_normalizeCache\", Object.create(null));\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      _defineProperty(this, \"moduleNameLookupPatterns\", [this.podBasedModuleName, this.podBasedComponentsInSubdir, this.mainModuleName, this.defaultModuleName, this.nestedColocationComponentModuleName]);\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new ModuleRegistry();\n      }\n      this.pluralizedTypes = this.pluralizedTypes || Object.create(null);\n      if (!this.pluralizedTypes.config) {\n        this.pluralizedTypes.config = 'config';\n      }\n    }\n    makeToString(factory, fullName) {\n      return '' + this.namespace.modulePrefix + '@' + fullName + ':';\n    }\n    shouldWrapInClassFactory(/* module, parsedName */\n    ) {\n      return false;\n    }\n    parseName(fullName) {\n      if (fullName.parsedName === true) {\n        return fullName;\n      }\n      let prefix, type, name;\n      let fullNameParts = fullName.split('@');\n      if (fullNameParts.length === 3) {\n        if (fullNameParts[0].length === 0) {\n          // leading scoped namespace: `@scope/pkg@type:name`\n          prefix = `@${fullNameParts[1]}`;\n          let prefixParts = fullNameParts[2].split(':');\n          type = prefixParts[0];\n          name = prefixParts[1];\n        } else {\n          // interweaved scoped namespace: `type:@scope/pkg@name`\n          prefix = `@${fullNameParts[1]}`;\n          type = fullNameParts[0].slice(0, -1);\n          name = fullNameParts[2];\n        }\n        if (type === 'template:components') {\n          name = `components/${name}`;\n          type = 'template';\n        }\n      } else if (fullNameParts.length === 2) {\n        let prefixParts = fullNameParts[0].split(':');\n        if (prefixParts.length === 2) {\n          if (prefixParts[1].length === 0) {\n            type = prefixParts[0];\n            name = `@${fullNameParts[1]}`;\n          } else {\n            prefix = prefixParts[1];\n            type = prefixParts[0];\n            name = fullNameParts[1];\n          }\n        } else {\n          let nameParts = fullNameParts[1].split(':');\n          prefix = fullNameParts[0];\n          type = nameParts[0];\n          name = nameParts[1];\n        }\n        if (type === 'template' && prefix.lastIndexOf('components/', 0) === 0) {\n          name = `components/${name}`;\n          prefix = prefix.slice(11);\n        }\n      } else {\n        fullNameParts = fullName.split(':');\n        type = fullNameParts[0];\n        name = fullNameParts[1];\n      }\n      let fullNameWithoutType = name;\n      let namespace = this.namespace;\n      let root = namespace;\n      return {\n        parsedName: true,\n        fullName: fullName,\n        prefix: prefix || this.prefix({\n          type: type\n        }),\n        type: type,\n        fullNameWithoutType: fullNameWithoutType,\n        name: name,\n        root: root,\n        resolveMethodName: 'resolve' + (0, _string.classify)(type)\n      };\n    }\n    resolveOther(parsedName) {\n      (true && !(this.namespace.modulePrefix) && (0, _debug.assert)('`modulePrefix` must be defined', this.namespace.modulePrefix));\n      let normalizedModuleName = this.findModuleName(parsedName);\n      if (normalizedModuleName) {\n        let defaultExport = this._extractDefaultExport(normalizedModuleName, parsedName);\n        if (defaultExport === undefined) {\n          throw new Error(` Expected to find: '${parsedName.fullName}' within '${normalizedModuleName}' but got 'undefined'. Did you forget to 'export default' within '${normalizedModuleName}'?`);\n        }\n        if (this.shouldWrapInClassFactory(defaultExport, parsedName)) {\n          defaultExport = (0, _classFactory.default)(defaultExport);\n        }\n        return defaultExport;\n      }\n    }\n    normalize(fullName) {\n      return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this._normalize(fullName));\n    }\n    resolve(fullName) {\n      let parsedName = this.parseName(fullName);\n      let resolveMethodName = parsedName.resolveMethodName;\n      let resolved;\n      if (typeof this[resolveMethodName] === 'function') {\n        resolved = this[resolveMethodName](parsedName);\n      }\n      if (resolved == null) {\n        resolved = this.resolveOther(parsedName);\n      }\n      return resolved;\n    }\n    _normalize(fullName) {\n      // A) Convert underscores to dashes\n      // B) Convert camelCase to dash-case, except for components (their\n      //    templates) and helpers where we want to avoid shadowing camelCase\n      //    expressions\n      // C) replace `.` with `/` in order to make nested controllers work in the following cases\n      //      1. `needs: ['posts/post']`\n      //      2. `{{render \"posts/post\"}}`\n      //      3. `this.render('posts/post')` from Route\n\n      let split = fullName.split(':');\n      if (split.length > 1) {\n        let type = split[0];\n        if (type === 'component' || type === 'helper' || type === 'modifier' || type === 'template' && split[1].indexOf('components/') === 0) {\n          return type + ':' + split[1].replace(/_/g, '-');\n        } else {\n          return type + ':' + (0, _string.dasherize)(split[1].replace(/\\./g, '/'));\n        }\n      } else {\n        return fullName;\n      }\n    }\n    pluralize(type) {\n      return this.pluralizedTypes[type] || (this.pluralizedTypes[type] = type + 's');\n    }\n    podBasedLookupWithPrefix(podPrefix, parsedName) {\n      let fullNameWithoutType = parsedName.fullNameWithoutType;\n      if (parsedName.type === 'template') {\n        fullNameWithoutType = fullNameWithoutType.replace(/^components\\//, '');\n      }\n      return podPrefix + '/' + fullNameWithoutType + '/' + parsedName.type;\n    }\n    podBasedModuleName(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n    }\n    podBasedComponentsInSubdir(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      podPrefix = podPrefix + '/components';\n      if (parsedName.type === 'component' || /^components/.test(parsedName.fullNameWithoutType)) {\n        return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n      }\n    }\n    resolveEngine(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineModule = engineName + '/engine';\n      if (this._moduleRegistry.has(engineModule)) {\n        return this._extractDefaultExport(engineModule);\n      }\n    }\n    resolveRouteMap(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineRoutesModule = engineName + '/routes';\n      if (this._moduleRegistry.has(engineRoutesModule)) {\n        let routeMap = this._extractDefaultExport(engineRoutesModule);\n        (true && !(routeMap.isRouteMap) && (0, _debug.assert)(`The route map for ${engineName} should be wrapped by 'buildRoutes' before exporting.`, routeMap.isRouteMap));\n        return routeMap;\n      }\n    }\n    resolveTemplate(parsedName) {\n      return this.resolveOther(parsedName);\n    }\n    mainModuleName(parsedName) {\n      if (parsedName.fullNameWithoutType === 'main') {\n        // if router:main or adapter:main look for a module with just the type first\n        return parsedName.prefix + '/' + parsedName.type;\n      }\n    }\n    defaultModuleName(parsedName) {\n      return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType;\n    }\n    nestedColocationComponentModuleName(parsedName) {\n      if (parsedName.type === 'component') {\n        return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType + '/index';\n      }\n    }\n    prefix(parsedName) {\n      let tmpPrefix = this.namespace.modulePrefix;\n      if (this.namespace[parsedName.type + 'Prefix']) {\n        tmpPrefix = this.namespace[parsedName.type + 'Prefix'];\n      }\n      return tmpPrefix;\n    }\n    findModuleName(parsedName, loggingDisabled) {\n      let moduleNameLookupPatterns = this.moduleNameLookupPatterns;\n      let moduleName;\n      for (let index = 0, length = moduleNameLookupPatterns.length; index < length; index++) {\n        let item = moduleNameLookupPatterns[index];\n        let tmpModuleName = item.call(this, parsedName);\n\n        // allow treat all dashed and all underscored as the same thing\n        // supports components with dashes and other stuff with underscores.\n        if (tmpModuleName) {\n          tmpModuleName = this.chooseModuleName(tmpModuleName, parsedName);\n        }\n        if (tmpModuleName && this._moduleRegistry.has(tmpModuleName)) {\n          moduleName = tmpModuleName;\n        }\n        if (!loggingDisabled) {\n          this._logLookup(moduleName, parsedName, tmpModuleName);\n        }\n        if (moduleName) {\n          return moduleName;\n        }\n      }\n    }\n    chooseModuleName(moduleName, parsedName) {\n      let underscoredModuleName = (0, _string.underscore)(moduleName);\n      if (moduleName !== underscoredModuleName && this._moduleRegistry.has(moduleName) && this._moduleRegistry.has(underscoredModuleName)) {\n        throw new TypeError(`Ambiguous module names: '${moduleName}' and '${underscoredModuleName}'`);\n      }\n      if (this._moduleRegistry.has(moduleName)) {\n        return moduleName;\n      } else if (this._moduleRegistry.has(underscoredModuleName)) {\n        return underscoredModuleName;\n      }\n      // workaround for dasherized partials:\n      // something/something/-something => something/something/_something\n      let partializedModuleName = moduleName.replace(/\\/-([^/]*)$/, '/_$1');\n      if (this._moduleRegistry.has(partializedModuleName)) {\n        (true && !(false) && (0, _debug.deprecate)('Modules should not contain underscores. ' + 'Attempted to lookup \"' + moduleName + '\" which ' + 'was not found. Please rename \"' + partializedModuleName + '\" ' + 'to \"' + moduleName + '\" instead.', false, {\n          id: 'ember-resolver.underscored-modules',\n          until: '3.0.0',\n          for: 'ember-resolver',\n          since: '0.1.0'\n        }));\n        return partializedModuleName;\n      }\n      if (true /* DEBUG */) {\n        let isCamelCaseHelper = parsedName.type === 'helper' && /[a-z]+[A-Z]+/.test(moduleName);\n        if (isCamelCaseHelper) {\n          this._camelCaseHelperWarnedNames = this._camelCaseHelperWarnedNames || [];\n          let alreadyWarned = this._camelCaseHelperWarnedNames.indexOf(parsedName.fullName) > -1;\n          if (!alreadyWarned && this._moduleRegistry.has((0, _string.dasherize)(moduleName))) {\n            this._camelCaseHelperWarnedNames.push(parsedName.fullName);\n            (true && (0, _debug.warn)('Attempted to lookup \"' + parsedName.fullName + '\" which ' + 'was not found. In previous versions of ember-resolver, a bug would have ' + 'caused the module at \"' + (0, _string.dasherize)(moduleName) + '\" to be ' + 'returned for this camel case helper name. This has been fixed. ' + 'Use the dasherized name to resolve the module that would have been ' + 'returned in previous versions.', false, {\n              id: 'ember-resolver.camelcase-helper-names',\n              until: '3.0.0'\n            }));\n          }\n        }\n      }\n    }\n\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      var _owner$resolveRegistr;\n      let owner = (0, _owner.getOwner)(this);\n      let env = owner === null || owner === void 0 || (_owner$resolveRegistr = owner.resolveRegistration) === null || _owner$resolveRegistr === void 0 ? void 0 : _owner$resolveRegistr.call(owner, 'config:environment');\n      if (!(env !== null && env !== void 0 && env.LOG_MODULE_RESOLVER) && !parsedName.root.LOG_RESOLVER) {\n        return;\n      }\n      let padding;\n      let symbol = found ? '[✓]' : '[ ]';\n      if (parsedName.fullName.length > 60) {\n        padding = '.';\n      } else {\n        padding = new Array(60 - parsedName.fullName.length).join('.');\n      }\n      if (!description) {\n        description = this.lookupDescription(parsedName);\n      }\n\n      /* eslint-disable no-console */\n      if (console && console.info) {\n        console.info(symbol, parsedName.fullName, padding, description);\n      }\n    }\n    knownForType(type) {\n      let moduleKeys = this._moduleRegistry.moduleNames();\n      let items = Object.create(null);\n      for (let index = 0, length = moduleKeys.length; index < length; index++) {\n        let moduleName = moduleKeys[index];\n        let fullname = this.translateToContainerFullname(type, moduleName);\n        if (fullname) {\n          items[fullname] = true;\n        }\n      }\n      return items;\n    }\n    translateToContainerFullname(type, moduleName) {\n      let prefix = this.prefix({\n        type\n      });\n\n      // Note: using string manipulation here rather than regexes for better performance.\n      // pod modules\n      // '^' + prefix + '/(.+)/' + type + '$'\n      let podPrefix = prefix + '/';\n      let podSuffix = '/' + type;\n      let start = moduleName.indexOf(podPrefix);\n      let end = moduleName.indexOf(podSuffix);\n      if (start === 0 && end === moduleName.length - podSuffix.length && moduleName.length > podPrefix.length + podSuffix.length) {\n        return type + ':' + moduleName.slice(start + podPrefix.length, end);\n      }\n\n      // non-pod modules\n      // '^' + prefix + '/' + pluralizedType + '/(.+)$'\n      let pluralizedType = this.pluralize(type);\n      let nonPodPrefix = prefix + '/' + pluralizedType + '/';\n      if (moduleName.indexOf(nonPodPrefix) === 0 && moduleName.length > nonPodPrefix.length) {\n        return type + ':' + moduleName.slice(nonPodPrefix.length);\n      }\n    }\n    _extractDefaultExport(normalizedModuleName) {\n      let module = this._moduleRegistry.get(normalizedModuleName, null, null, true /* force sync */);\n      if (module && module['default']) {\n        module = module['default'];\n      }\n      return module;\n    }\n  }\n  _defineProperty(Resolver, \"moduleBasedResolver\", true);\n  var _default = _exports.default = Resolver;\n});","define(\"ember-resolver/string/cache\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class 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    get(key) {\n      let value = this.store.get(key);\n      if (this.store.has(key)) {\n        this.hits++;\n        return this.store.get(key);\n      } else {\n        this.misses++;\n        value = this.set(key, this.func(key));\n      }\n      return value;\n    }\n    set(key, value) {\n      if (this.limit > this.size) {\n        this.size++;\n        this.store.set(key, value);\n      }\n      return value;\n    }\n    purge() {\n      this.store.clear();\n      this.size = 0;\n      this.hits = 0;\n      this.misses = 0;\n    }\n  }\n  _exports.default = Cache;\n});","define(\"ember-resolver/string/index\", [\"exports\", \"ember-resolver/string/cache\"], function (_exports, _cache) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.classify = classify;\n  _exports.dasherize = dasherize;\n  _exports.decamelize = decamelize;\n  _exports.getString = getString;\n  _exports.getStrings = getStrings;\n  _exports.setStrings = setStrings;\n  _exports.underscore = underscore;\n  /* eslint-disable no-useless-escape */\n\n  let STRINGS = {};\n  function setStrings(strings) {\n    STRINGS = strings;\n  }\n  function getStrings() {\n    return STRINGS;\n  }\n  function getString(name) {\n    return STRINGS[name];\n  }\n  const STRING_DASHERIZE_REGEXP = /[ _]/g;\n  const STRING_DASHERIZE_CACHE = new _cache.default(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\n  const STRING_CLASSIFY_REGEXP_1 = /^(\\-|_)+(.)?/;\n  const STRING_CLASSIFY_REGEXP_2 = /(.)(\\-|\\_|\\.|\\s)+(.)?/g;\n  const STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\n  const CLASSIFY_CACHE = new _cache.default(1000, str => {\n    const replace1 = (_match, _separator, chr) => chr ? `_${chr.toUpperCase()}` : '';\n    const replace2 = (_match, initialChar, _separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n    const parts = str.split('/');\n    for (let i = 0; i < parts.length; i++) {\n      parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n    }\n    return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, (match /*, separator, chr */) => match.toUpperCase());\n  });\n  const STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\n  const STRING_UNDERSCORE_REGEXP_2 = /\\-|\\s+/g;\n  const UNDERSCORE_CACHE = new _cache.default(1000, str => str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase());\n  const STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\n  const DECAMELIZE_CACHE = new _cache.default(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n  /**\n    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  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  function dasherize(str) {\n    return STRING_DASHERIZE_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  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  function underscore(str) {\n    return UNDERSCORE_CACHE.get(str);\n  }\n});","define(\"ember-resolver/utils/class-factory\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = classFactory;\n  function classFactory(klass) {\n    return {\n      create(injections) {\n        if (typeof klass.extend === 'function') {\n          return klass.extend(injections);\n        } else {\n          return klass;\n        }\n      }\n    };\n  }\n});","define(\"ember-string-fns/helpers/string-char-at\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringCharAt = stringCharAt;\n  /**\n   * Get a character from a string at an index.\n   *\n   * @public\n   * @function stringCharAt\n   * @param {string} value The string value.\n   * @param {number} index The index to get the character at.\n   * @returns {string} The string character.\n   */\n  function stringCharAt(_ref) {\n    let [value = '', index] = _ref;\n    return value.charAt(index);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringCharAt);\n});","define(\"ember-string-fns/helpers/string-char-code-at\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringCharCodeAt = stringCharCodeAt;\n  /**\n   * Get a character by utf-16 code.\n   *\n   * @public\n   * @function stringCharCodeAt\n   * @param {string} value The string value.\n   * @param {number} index The index to get the character at.\n   * @returns {string} The string character.\n   */\n  function stringCharCodeAt(_ref) {\n    let [value = '', index] = _ref;\n    return value.charCodeAt(index);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringCharCodeAt);\n});","define(\"ember-string-fns/helpers/string-code-point-at\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringCodePointAt = stringCodePointAt;\n  /**\n   * Get a code by code point.\n   *\n   * @public\n   * @function stringCodePointAt\n   * @param {string} value The string value.\n   * @param {number} index The index to get the code at.\n   * @returns {string} The string character.\n   */\n  function stringCodePointAt(_ref) {\n    let [value = '', index] = _ref;\n    return value.codePointAt(index);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringCodePointAt);\n});","define(\"ember-string-fns/helpers/string-concat\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringConcat = stringConcat;\n  /**\n   * Concatenate a series of strings.\n   *\n   * @public\n   * @function stringConcat\n   * @param {...string} values The string values.\n   * @returns {string} The concatenated string.\n   */\n  function stringConcat(_ref) {\n    let [...values] = _ref;\n    return values.reduce((accumulator, value) => {\n      accumulator += value;\n      return accumulator;\n    }, '');\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringConcat);\n});","define(\"ember-string-fns/helpers/string-ends-with\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringEndsWith = stringEndsWith;\n  /**\n   * Determine if string ends with another string.\n   *\n   * @public\n   * @function stringEndsWith\n   * @param {string} haystack The string to search.\n   * @param {string} needle The string to look for.\n   * @param {boolean} ignoreCase Whether a case insensitive search should be performed.\n   * @returns {boolean} True if match is found.\n   */\n  function stringEndsWith(_ref) {\n    let [haystack, needle, ignoreCase = false] = _ref;\n    let result = false;\n\n    // haystack and needle are required\n    if (haystack && needle) {\n      // back position up the number of length of the needle\n      let position = haystack.length;\n      position -= needle.length;\n\n      // look for needle by position\n      let lastIndex;\n      if (ignoreCase) {\n        lastIndex = haystack.toLowerCase().indexOf(needle.toLowerCase(), position);\n      } else {\n        lastIndex = haystack.indexOf(needle, position);\n      }\n\n      // construct result\n      result = lastIndex !== -1 && lastIndex === position;\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringEndsWith);\n});","define(\"ember-string-fns/helpers/string-equals\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringEquals = stringEquals;\n  /**\n   * Determine if two or more are exact equals.\n   *\n   * @public\n   * @function stringEquals\n   * @param {...string} values The strings to compare.\n   * @return {boolean} True if all values are equal.\n   */\n  function stringEquals(_ref) {\n    let [...values] = _ref;\n    // range check at least 2 values\n    if (values.length < 2) {\n      return false;\n    }\n\n    // get first value\n    const first = values.shift();\n\n    // compare first with each subsequent value for a match\n    return values.every(value => value === first);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringEquals);\n});","define(\"ember-string-fns/helpers/string-from-char-code\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringFromCharCode = stringFromCharCode;\n  /**\n   * Get a character from utf-16 codes.\n   *\n   * @public\n   * @function stringFromCharCode\n   * @param {...number} codes The array of codes.\n   * @returns {string} The string sequence.\n   */\n  function stringFromCharCode(_ref) {\n    let [...codes] = _ref;\n    return String.fromCharCode(...codes);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringFromCharCode);\n});","define(\"ember-string-fns/helpers/string-from-code-point\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringFromCodePoint = stringFromCodePoint;\n  /**\n   * Get a character from code points.\n   *\n   * @public\n   * @function stringFromCodePoint\n   * @param {...number} points The array of points.\n   * @returns {string} The string sequence.\n   */\n  function stringFromCodePoint(_ref) {\n    let [...points] = _ref;\n    return String.fromCodePoint(...points);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringFromCodePoint);\n});","define(\"ember-string-fns/helpers/string-html-safe\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _helper.helper)(function stringHtmlSafe(params /*, hash*/) {\n    return params;\n  });\n});","define(\"ember-string-fns/helpers/string-includes\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringIncludes = stringIncludes;\n  /**\n   * Determine if string includes another string.\n   *\n   * @public\n   * @function stringIncludes\n   * @param {string} haystack The string to search.\n   * @param {string} needle The string to search for.\n   * @param {boolean} ignoreCase Whether case insenstive search should be performed.\n   * @returns {boolean} True if match is found.\n   */\n  function stringIncludes(_ref) {\n    let [haystack, needle, ignoreCase = false] = _ref;\n    let result = false;\n\n    // haystack and needle are required\n    if (haystack && needle) {\n      if (ignoreCase) {\n        result = haystack.toLowerCase().indexOf(needle.toLowerCase()) !== -1;\n      } else {\n        result = haystack.indexOf(needle) !== -1;\n      }\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringIncludes);\n});","define(\"ember-string-fns/helpers/string-index-of\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringIndexOf = stringIndexOf;\n  /**\n   * Determine the first index of a string within a string.\n   *\n   * @public\n   * @function stringIndexOf\n   * @param {string} haystack The string to search.\n   * @param {string} needle The string to search for.\n   * @param {boolean} ignoreCase Whether a case sensitive search should be performed.\n   * @returns {number} Zero based index of first character in match from the start of the string else -1.\n   */\n  function stringIndexOf(_ref) {\n    let [haystack, needle, ignoreCase = false] = _ref;\n    let result = -1;\n\n    // haystack and needle are required\n    if (haystack && needle) {\n      if (ignoreCase) {\n        result = haystack.toLowerCase().indexOf(needle.toLowerCase());\n      } else {\n        result = haystack.indexOf(needle);\n      }\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringIndexOf);\n});","define(\"ember-string-fns/helpers/string-last-index-of\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringLastIndexOf = stringLastIndexOf;\n  /**\n   * Determine the last index of a string within a string.\n   *\n   * @public\n   * @function stringLastIndexOf\n   * @param {string} haystack The string to search.\n   * @param {string} needle The string to search for.\n   * @param {boolean} ignoreCase Whether a case sensitive search should be performed.\n   * @returns {number} Zero based index of first character in match from the end of the string else -1.\n   */\n  function stringLastIndexOf(_ref) {\n    let [haystack, needle, ignoreCase = false] = _ref;\n    let result = -1;\n\n    // haystack and needle are required\n    if (haystack && needle) {\n      if (ignoreCase) {\n        result = haystack.toLowerCase().lastIndexOf(needle.toLowerCase());\n      } else {\n        result = haystack.lastIndexOf(needle);\n      }\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringLastIndexOf);\n});","define(\"ember-string-fns/helpers/string-not-equals\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringNotEquals = stringNotEquals;\n  /**\n   * Determine if two or more are not equal.\n   *\n   * @public\n   * @function stringNotEquals\n   * @param {...string} values The strings to compare.\n   * @return {boolean} True if all values are equal.\n   */\n  function stringNotEquals(_ref) {\n    let [...values] = _ref;\n    // range check at least 2 operands\n    if (values.length < 2) {\n      return false;\n    }\n\n    // get first value\n    const first = values.shift();\n\n    // compare first with each subsequent value for a non match\n    return values.some(value => value !== first);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringNotEquals);\n});","define(\"ember-string-fns/helpers/string-pad-end\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringPadEnd = stringPadEnd;\n  /**\n   * Pad the right portion of the string with another string up to a total string length.\n   *\n   * @public\n   * @function stringPadEnd\n   * @param {string} value The starting string.\n   * @param {string} padding The string to pad with.\n   * @param {number} length The total number of characters before the function exits.\n   * @returns {string} The padded string.\n   */\n  function stringPadEnd(_ref) {\n    let [value = '', padding = ' ', length = 0] = _ref;\n    // ensure string values\n    let paddedValue = value + '';\n    const paddingValue = padding + '';\n\n    // padding value must be provided else infinite loop\n    if (paddingValue.length > 0) {\n      // do work\n      while (paddedValue.length < length) {\n        paddedValue = paddedValue + padding;\n      }\n\n      // overflow check\n      if (paddedValue.length > length) {\n        paddedValue = paddedValue.substring(0, length);\n      }\n    }\n    return paddedValue;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringPadEnd);\n});","define(\"ember-string-fns/helpers/string-pad-start\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringPadStart = stringPadStart;\n  /**\n   * Pad the left portion of the string with another string up to a total string length.\n   *\n   * @public\n   * @function stringPadStart\n   * @param {string} value The starting string.\n   * @param {string} padding The string to pad with.\n   * @param {number} length The total number of characters before the function exits.\n   * @returns {string} The padded string.\n   */\n  function stringPadStart(_ref) {\n    let [value = '', padding = ' ', length = 0] = _ref;\n    // ensure string values\n    let paddedValue = value + '';\n    const paddingValue = padding + '';\n\n    // padding value must be provided else infinite loop\n    if (paddingValue.length > 0) {\n      // do work\n      while (paddedValue.length < length) {\n        paddedValue = padding + paddedValue;\n      }\n\n      // overflow check\n      if (paddedValue.length > length) {\n        paddedValue = paddedValue.substring(paddedValue.length - length, paddedValue.length);\n      }\n    }\n    return paddedValue;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringPadStart);\n});","define(\"ember-string-fns/helpers/string-repeat\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringRepeat = stringRepeat;\n  /**\n   * Construct a single string by repeating the string a number of times.\n   *\n   * @public\n   * @function stringRepeat\n   * @param {string} value The starting string.\n   * @param {number} repeat The total number of times to repeat.\n   * @returns {string} The repeated string.\n   */\n  function stringRepeat(_ref) {\n    let [value = '', repeat = 0] = _ref;\n    let result = '';\n    for (let i = 0; i < repeat; i++) {\n      result += value;\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringRepeat);\n});","define(\"ember-string-fns/helpers/string-replace-all\", [\"exports\", \"@ember/component/helper\", \"ember-string-fns/helpers/string-replace\"], function (_exports, _helper, _stringReplace) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringReplaceAll = stringReplaceAll;\n  /**\n   * Replace a string with all matches found from another string.\n   *\n   * @public\n   * @function stringReplaceAll\n   * @param {string} value The starting string.\n   * @param {string} find The string to find.\n   * @param {string} replace The string to replace with when found.\n   * @param {boolean} ignoreCase Whether a case insensitive search should be performed.\n   * @returns {string} The replaced string.\n   */\n  function stringReplaceAll(_ref) {\n    let [value, find, replace = '', ignoreCase = false] = _ref;\n    return (0, _stringReplace.stringReplace)([value, find, replace, ignoreCase, true]);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringReplaceAll);\n});","define(\"ember-string-fns/helpers/string-replace\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringReplace = stringReplace;\n  /**\n   * Replace a string with matches found from another string.\n   *\n   * @public\n   * @function stringReplace\n   * @param {string} value The starting string.\n   * @param {string} find The string to find.\n   * @param {string} replace The string to replace with when found.\n   * @param {boolean} ignoreCase Whether a case insensitive search should be performed.\n   * @param {number} global Whether all matches should be replaced for just the first.\n   * @returns {string} The replaced string.\n   */\n  function stringReplace(_ref) {\n    let [value = '', find, replace = '', ignoreCase = false, global = false] = _ref;\n    // ensure there is something to find\n    if (!find) {\n      return value;\n    }\n    let needle = find;\n\n    // regex needed for case insentive or global replace\n    if (ignoreCase || global) {\n      // determine regex flags\n      let flags = '';\n      if (global) {\n        flags += 'g';\n      }\n      if (ignoreCase) {\n        flags += 'i';\n      }\n\n      // build regex\n      needle = new RegExp(find, flags);\n    }\n\n    // return updated string\n    return value.replace(needle, replace);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringReplace);\n});","define(\"ember-string-fns/helpers/string-slice\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringSlice = stringSlice;\n  /**\n   * Slice a string and return the new string.\n   *\n   * @public\n   * @function stringSlice\n   * @param {string} value The string to slice.\n   * @param {number} beginIndex The beginning index to slice.\n   * @param {number} endIndex The optional end index to slice.\n   * @returns {string} The sliced string.\n   */\n  function stringSlice(_ref) {\n    let [value = '', beginIndex = 0, endIndex] = _ref;\n    let result;\n    if (endIndex === undefined) {\n      result = value.slice(beginIndex);\n    } else {\n      result = value.slice(beginIndex, endIndex);\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringSlice);\n});","define(\"ember-string-fns/helpers/string-split\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringSplit = stringSplit;\n  /**\n   * Split a string into a string[] by a delimiter.\n   *\n   * @public\n   * @function stringSplit\n   * @param {string} value The string split.\n   * @param {string} delimiter The delimiter to split on.\n   * @returns {string[]} The split string.\n   */\n  function stringSplit(_ref) {\n    let [value = '', delimiter = ''] = _ref;\n    return value.split(delimiter);\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringSplit);\n});","define(\"ember-string-fns/helpers/string-starts-with\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringStartsWith = stringStartsWith;\n  /**\n   * Determine if string starts with another string.\n   *\n   * @public\n   * @function stringStartsWith\n   * @param {string} haystack The string to search.\n   * @param {string} needle The string to look for.\n   * @param {boolean} ignoreCase Whether a case insensitive search should be performed.\n   * @returns {boolean} True if match is found.\n   */\n  function stringStartsWith(_ref) {\n    let [haystack, needle, ignoreCase = false] = _ref;\n    let result = false;\n\n    // haystack and needle are required\n    if (haystack && needle) {\n      // simple indexof check\n      if (ignoreCase) {\n        result = haystack.toLowerCase().indexOf(needle.toLowerCase(), 0) === 0;\n      } else {\n        result = haystack.indexOf(needle, 0) === 0;\n      }\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringStartsWith);\n});","define(\"ember-string-fns/helpers/string-substring\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringSubstring = stringSubstring;\n  /**\n   * Substring a string and return the new string.\n   *\n   * @public\n   * @function stringSubstring\n   * @param {string} value The string to substring.\n   * @param {number} beginIndex The beginning index to substring.\n   * @param {number} endIndex The optional end index to substring.\n   * @returns {string} The substring string.\n   */\n  function stringSubstring(_ref) {\n    let [value = '', beginIndex = 0, endIndex] = _ref;\n    let result;\n    if (endIndex === undefined) {\n      result = value.substring(beginIndex);\n    } else {\n      result = value.substring(beginIndex, endIndex);\n    }\n    return result;\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringSubstring);\n});","define(\"ember-string-fns/helpers/string-to-camel-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringToCamelCase = stringToCamelCase;\n  /**\n   * camelCase a string.\n   *\n   * @public\n   * @function stringToCamelCase\n   * @param {string} value The string to camelCase.\n   * @returns {string} The camelCased string.\n   */\n  function stringToCamelCase(_ref) {\n    let [value = ''] = _ref;\n    return value.toLowerCase().split(' ').map((word, index) => {\n      return index === 0 ? word : `${word.charAt(0).toUpperCase()}${word.slice(1)}`;\n    }).join('');\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringToCamelCase);\n});","define(\"ember-string-fns/helpers/string-to-kebab-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringToKebabCase = stringToKebabCase;\n  /**\n   * kebab-case a string.\n   *\n   * @public\n   * @function stringToKebabCase\n   * @param {string} value The string to kebab-case.\n   * @returns {string} The kebab-cased string.\n   */\n  function stringToKebabCase(_ref) {\n    let [value = ''] = _ref;\n    return value.toLowerCase().split(' ').join('-');\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringToKebabCase);\n});","define(\"ember-string-fns/helpers/string-to-lower-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringToLowerCase = stringToLowerCase;\n  /**\n   * Lowercase a string.\n   *\n   * @public\n   * @function stringToLowerCase\n   * @param {string} value The string to lowercase.\n   * @returns {string} The lowercased string.\n   */\n  function stringToLowerCase(_ref) {\n    let [value = ''] = _ref;\n    return value.toLowerCase();\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringToLowerCase);\n});","define(\"ember-string-fns/helpers/string-to-pascal-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringToPascalCase = stringToPascalCase;\n  /**\n   * PascalCase a string.\n   *\n   * @public\n   * @function stringToPascalCase\n   * @param {string} value The string to PascalCase.\n   * @returns {string} The PascalCased string.\n   */\n  function stringToPascalCase(_ref) {\n    let [value = ''] = _ref;\n    return value.toLowerCase().split(' ').map(word => {\n      return `${word.charAt(0).toUpperCase()}${word.slice(1)}`;\n    }).join('');\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringToPascalCase);\n});","define(\"ember-string-fns/helpers/string-to-sentence-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringToSentenceCase = stringToSentenceCase;\n  /**\n   *  Sentence case. a string.\n   *\n   * @public\n   * @function stringToSentenceCase\n   * @param {string} value The string to Sentence case.\n   * @returns {string} The Sentence cased. string.\n   */\n  function stringToSentenceCase(_ref) {\n    let [value = ''] = _ref;\n    return value.toLowerCase().replace(/(^\\s*\\w|[.!?]\\s*\\w)/g, match => match.toUpperCase());\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringToSentenceCase);\n});","define(\"ember-string-fns/helpers/string-to-snake-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringToSnakeCase = stringToSnakeCase;\n  /**\n   *  string_case a string.\n   *\n   * @public\n   * @function stringToSnakeCase\n   * @param {string} value The string to string_case.\n   * @returns {string} The string_cased string.\n   */\n  function stringToSnakeCase(_ref) {\n    let [value = ''] = _ref;\n    return value.toLowerCase().split(' ').join('_');\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringToSnakeCase);\n});","define(\"ember-string-fns/helpers/string-to-title-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringToTitleCase = stringToTitleCase;\n  /**\n   *  Title Case a string.\n   *\n   * @public\n   * @function stringToTitleCase\n   * @param {string} value The string to Title Case.\n   * @returns {string} The Title Cased string.\n   */\n  function stringToTitleCase(_ref) {\n    let [value = ''] = _ref;\n    return value.toLowerCase().split(' ').map(word => {\n      return `${word.charAt(0).toUpperCase()}${word.slice(1)}`;\n    }).join(' ');\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringToTitleCase);\n});","define(\"ember-string-fns/helpers/string-to-upper-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringToUpperCase = stringToUpperCase;\n  /**\n   * Uppercase a string.\n   *\n   * @public\n   * @function stringToUpperCase\n   * @param {string} value The string to uppercase.\n   * @returns {string} The uppercased string.\n   */\n  function stringToUpperCase(_ref) {\n    let [value = ''] = _ref;\n    return value.toUpperCase();\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringToUpperCase);\n});","define(\"ember-string-fns/helpers/string-trim-end\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringTrimEnd = stringTrimEnd;\n  /**\n   * Trim the end of a string.\n   *\n   * @public\n   * @function stringTrimEnd\n   * @param {string} value The string to trim.\n   * @returns {string} The trimmed string.\n   */\n  function stringTrimEnd(_ref) {\n    let [value = ''] = _ref;\n    return value.replace(/\\+|[\\s\\uFEFF\\xA0]+$/g, '');\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringTrimEnd);\n});","define(\"ember-string-fns/helpers/string-trim-start\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringTrimStart = stringTrimStart;\n  /**\n   * Trim the start of a string.\n   *\n   * @public\n   * @function stringTrimStart\n   * @param {string} value The string to trim.\n   * @returns {string} The trimmed string.\n   */\n  function stringTrimStart(_ref) {\n    let [value = ''] = _ref;\n    return value.replace(/^[\\s\\uFEFF\\xA0]+/g, '');\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringTrimStart);\n});","define(\"ember-string-fns/helpers/string-trim\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.stringTrim = stringTrim;\n  /**\n   * Trim the start and end of a string.\n   *\n   * @public\n   * @function stringTrim\n   * @param {string} value The string to trim.\n   * @returns {string} The trimmed string.\n   */\n  function stringTrim(_ref) {\n    let [value = ''] = _ref;\n    return value.trim();\n  }\n  var _default = _exports.default = (0, _helper.helper)(stringTrim);\n});","define(\"ember-test-waiters/index\", [\"exports\", \"@ember/debug\", \"@ember/test-waiters\"], function (_exports, _debug, _testWaiters) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.keys(_testWaiters).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (key in _exports && _exports[key] === _testWaiters[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _testWaiters[key];\n      }\n    });\n  });\n  (true && !(false) && (0, _debug.deprecate)('Importing from ember-test-waiters is deprecated. Please import from @ember/test-waiters', false, {\n    id: 'ember-test-waiters-legacy-module-name',\n    until: '3.0.0',\n    for: 'ember-test-waiters',\n    since: {\n      enabled: '2.2.0'\n    }\n  }));\n});","define(\"ember-tracked-storage-polyfill/index\", [\"exports\", \"@glimmer/tracking\", \"@ember/debug\"], function (_exports, _tracking, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.createStorage = createStorage;\n  _exports.getValue = getValue;\n  _exports.setValue = setValue;\n  var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {\n    var c = arguments.length,\n      r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n      d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n  };\n  class TrackedStorageImpl {\n    constructor(initialValue, isEqual) {\n      this._value = this._lastValue = initialValue;\n      this._isEqual = isEqual;\n    }\n  }\n  __decorate([_tracking.tracked], TrackedStorageImpl.prototype, \"_value\", void 0);\n  function tripleEq(a, b) {\n    return a === b;\n  }\n  function createStorage(initialValue) {\n    let isEqual = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : tripleEq;\n    (true && !(typeof isEqual === 'function') && (0, _debug.assert)('the second parameter to `createStorage` must be an equality function or undefined', typeof isEqual === 'function'));\n    return new TrackedStorageImpl(initialValue, isEqual);\n  }\n  function getValue(storage) {\n    (true && !(storage instanceof TrackedStorageImpl) && (0, _debug.assert)('getValue must be passed a tracked store created with `createStorage`.', storage instanceof TrackedStorageImpl));\n    return storage._value;\n  }\n  function setValue(storage, value) {\n    (true && !(storage instanceof TrackedStorageImpl) && (0, _debug.assert)('setValue must be passed a tracked store created with `createStorage`.', storage instanceof TrackedStorageImpl));\n    const {\n      _isEqual: isEqual,\n      _lastValue: lastValue\n    } = storage;\n    if (!isEqual(value, lastValue)) {\n      storage._value = storage._lastValue = value;\n    }\n  }\n});","define(\"layout-bin-packer/bin\", [\"exports\", \"layout-bin-packer/entry\"], function (_exports, _entry) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.rangeError = rangeError;\n  function throwMustImplement(name) {\n    throw new TypeError(\"MustImplement: \" + name);\n  }\n  function rangeError(length, index) {\n    throw new RangeError(`Parameter must be within: [${0} and ${length}) but was: ${index}`);\n  }\n\n  // I don't think this should have args\n  class Bin {\n    constructor(content) {\n      let width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n      this.width = width;\n      this.content = content;\n    }\n    objectAt(collection, index) {\n      return collection[index];\n    }\n    length() {\n      return this.content.length;\n    }\n\n    // maximum offset of content wrt to viewport\n    // The amount by which content (after being layed out) is taller than\n    // the viewport.\n    maxContentOffset(width, height) {\n      return Math.max(this.height(width) - height, 0);\n    }\n    heightAtIndex(index) {\n      return this.content[index].height;\n    }\n    widthAtIndex(index) {\n      return this.content[index].width;\n    }\n\n    // abstract: return coordinates of element at index.\n    //\n    // @param index: index of the element in content\n    // @param width: viewport width.\n    // @returns {x, y} coordinates of element at index.\n    //\n    // May reset cached viewport width.\n    position() {\n      throwMustImplement('position');\n    }\n\n    // abstract: reset internal state to be anchored at index.\n    // @param index: index of the element in content\n    flush() {\n      throwMustImplement('flush');\n    }\n\n    // abstract: return total content height given viewport width.\n    // @param width: viewport width\n    //\n    // May reset cached viewport width.\n    height() {\n      throwMustImplement('height');\n    }\n\n    // abstract: true if layout places more than one object on a line.\n    isGrid() {\n      throwMustImplement('isGrid');\n    }\n\n    // abstract: returns number of elements in content.\n    // abstract: returns index of first visible item.\n    // @param topOffset: scroll position\n    // @param width: width of viewport\n    // @param height: height of viewport\n    //\n    visibleStartingIndex() {\n      throwMustImplement('visibleStartingIndex');\n    }\n\n    // abstract: returns number of items visible in viewport.\n    // @param topOffset: scroll position\n    // @param width: width of viewport\n    // @param height: height of viewport\n    numberVisibleWithin() {\n      throwMustImplement('numberVisibleWithin');\n    }\n  }\n  _exports.default = Bin;\n});","define(\"layout-bin-packer/entry\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class Entry {\n    constructor(height, width, x, y) {\n      this.height = height;\n      this.width = width;\n      this.position = {\n        x: x,\n        y: y\n      };\n    }\n  }\n  _exports.default = Entry;\n});","define(\"layout-bin-packer/fixed-grid\", [\"exports\", \"layout-bin-packer/bin\"], function (_exports, _bin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FixedGrid extends _bin.default {\n    constructor(content, elementWidth, elementHeight) {\n      super(content);\n      this._elementWidth = elementWidth;\n      this._elementHeight = elementHeight;\n    }\n    flush(/* index, to */\n    ) {}\n    isGrid(width) {\n      return (Math.floor(width / this.widthAtIndex(0)) || 1) > 1;\n    }\n    visibleStartingIndex(topOffset, width, height) {\n      topOffset = Math.min(topOffset, this.maxContentOffset(width, height));\n      const columns = Math.floor(width / this.widthAtIndex(0)) || 1;\n      return Math.floor(topOffset / this.heightAtIndex(0)) * columns;\n    }\n    numberVisibleWithin(topOffset, width, height, withPadding) {\n      const startingIndex = this.visibleStartingIndex(topOffset, width, height);\n      const columns = Math.floor(width / this.widthAtIndex(0)) || 1;\n      const length = this.length();\n      const rowHeight = this.heightAtIndex(0);\n      const rows = Math.ceil(height / rowHeight);\n      let maxNeeded = rows * columns;\n      if (withPadding) {\n        maxNeeded += columns;\n      }\n      const potentialVisible = length - startingIndex;\n      return Math.max(Math.min(maxNeeded, potentialVisible), 0);\n    }\n    widthAtIndex(/* index */\n    ) {\n      return this._elementWidth;\n    }\n    heightAtIndex(/* index */\n    ) {\n      return this._elementHeight;\n    }\n    position(index, width) {\n      const length = this.length();\n      if (length === 0 || index > length) {\n        rangeError(length, index);\n      }\n      const columns = Math.floor(width / this.widthAtIndex(index)) || 1;\n      const x = index % columns * this.widthAtIndex(index) | 0;\n      const y = Math.floor(index / columns) * this.heightAtIndex(index);\n      return {\n        x,\n        y\n      };\n    }\n    height(visibleWidth) {\n      if (typeof visibleWidth !== 'number') {\n        throw new TypeError('height depends on the first argument of visibleWidth(number)');\n      }\n      const length = this.length();\n      if (length === 0) {\n        return 0;\n      }\n      let columnCount = Math.max(Math.floor(visibleWidth / this.widthAtIndex(0), 1));\n      columnCount = columnCount > 0 ? columnCount : 1;\n      const rows = Math.ceil(length / columnCount);\n      const totalHeight = rows * this.heightAtIndex(0);\n      return totalHeight;\n    }\n  }\n  _exports.default = FixedGrid;\n});","define(\"layout-bin-packer/shelf-first\", [\"exports\", \"layout-bin-packer/bin\", \"layout-bin-packer/entry\"], function (_exports, _bin, _entry) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ShelfFirst extends _bin.default {\n    constructor(content, width) {\n      super(content, width);\n      this._positionEntries = [];\n    }\n    isGrid(width) {\n      if (width != null && width !== this.width) {\n        this.flush(0);\n        this.width = width;\n      }\n      const length = this.length();\n      let entry;\n\n      // TODO: cache/memoize\n\n      for (let i = 0; i < length; i++) {\n        entry = this._entryAt(i);\n        if (entry.position.x > 0) {\n          return true;\n        }\n      }\n      return false;\n    }\n    height(width) {\n      if (width != null && width !== this.width) {\n        this.flush(0);\n        this.width = width;\n      }\n      const length = this.length();\n      if (length === 0) {\n        return 0;\n      }\n\n      // find tallest in last row, add to Y\n      let tallest = 0;\n      let currentY = 0;\n      let entry;\n      for (let i = length - 1; i >= 0; i--) {\n        entry = this._entryAt(i);\n        if (currentY > entry.position.y) {\n          break; // end of last row\n        } else if (tallest < entry.height) {\n          tallest = entry.height;\n        } else {\n          // do nothing\n        }\n        currentY = entry.position.y;\n      }\n      return currentY + tallest;\n    }\n    flush(position) {\n      const positionEntries = this._positionEntries;\n      if (positionEntries.length > position) {\n        positionEntries.length = position;\n      }\n    }\n    numberVisibleWithin(topOffset, width, height, withPadding) {\n      if (width !== this.width) {\n        this.flush(0);\n        this.width = width;\n      }\n      const startingIndex = this.visibleStartingIndex(topOffset, width, height);\n      return this._numberVisibleWithin(startingIndex, height, withPadding);\n    }\n    _entryAt(index) {\n      const length = this.length();\n      const width = this.width;\n      if (index >= length) {\n        (0, _bin.rangeError)(length, index);\n      }\n      let entry;\n      let startingIndex;\n      const entriesLength = this._positionEntries.length;\n      let y, x, i;\n      let rowHeight = 0;\n      let rowWidth = 0;\n      if (index < entriesLength) {\n        return this._positionEntries[index];\n      } else if (entriesLength === 0) {\n        startingIndex = 0;\n        y = 0;\n      } else {\n        startingIndex = entriesLength - 1;\n        entry = this._positionEntries[startingIndex];\n        rowWidth = entry.position.x + entry.width;\n        rowHeight = entry.height;\n        y = entry.position.y;\n        startingIndex++;\n      }\n      for (let i = startingIndex; i < index + 1; i++) {\n        const currentHeight = this.heightAtIndex(i);\n        const currentWidth = this.widthAtIndex(i);\n        if (entry && currentWidth + rowWidth > width) {\n          // new row\n          y = entry.position.y + entry.height;\n          x = 0;\n          rowWidth = 0;\n          rowHeight = currentHeight;\n        } else {\n          x = rowWidth;\n        }\n        if (currentHeight > rowHeight) {\n          rowHeight = currentHeight;\n        }\n        entry = this._positionEntries[i] = new _entry.default(rowHeight, currentWidth, x, y);\n        rowWidth = x + currentWidth;\n      }\n      return entry;\n    }\n    _numberVisibleWithin(startingIndex, height, withPadding) {\n      let count = 0;\n      let entry, position;\n      const length = this.length();\n      let currentY = 0;\n      let yOffset = 0;\n      if (startingIndex > 0 && startingIndex < length) {\n        yOffset = this._entryAt(startingIndex).position.y;\n      } else {\n        yOffset = 0;\n      }\n      let firstRowHeight;\n      for (let i = startingIndex; i < length; i++) {\n        entry = this._entryAt(i);\n        position = entry.position;\n        if (currentY === position.y) {\n          // same row\n        } else {\n          currentY = position.y - yOffset;\n          if (withPadding && !firstRowHeight) {\n            firstRowHeight = entry.height;\n          }\n        }\n        if (currentY < height) {\n          count++;\n        } else if (withPadding) {\n          withPadding = false;\n          height += Math.max(firstRowHeight, entry.height) + 1;\n          count++;\n        } else {\n          break;\n        }\n      }\n      return count;\n    }\n    position(index, width) {\n      const length = this.length();\n      if (length === 0 || index > length) {\n        (0, _bin.rangeError)(length, index);\n      }\n      if (width !== this.width) {\n        this.flush(0);\n        this.width = width;\n      }\n      return this._entryAt(index).position;\n    }\n    visibleStartingIndex(topOffset, width, visibleHeight) {\n      if (topOffset <= 0) {\n        return 0;\n      }\n      if (width != null && width !== this.width) {\n        this.flush(0);\n        this.width = width;\n      }\n      topOffset = Math.min(topOffset, this.maxContentOffset(width, visibleHeight));\n      const height = this.height();\n      const length = this.length();\n\n      // Start searching using the last item in the list\n      // and the bottom of the list for calculating the average height.\n\n      // This algorithm is necessary for efficiently finding\n      // the starting index of a list with variable heights\n      // in less than O(n) time.\n\n      // Ideally, the performance will be O(log n).\n      // The algorithm implemented assumes that the best case\n      // is a list of items with all equal heights.\n      // Lists with consistent distributions should arrive\n      // at results fairly quickly as well.\n      let index = length;\n      let bottom = height;\n      let previousIndex;\n      for (;;) {\n        // Try to find an item that straddles the top offset\n        // or is flush with it\n        const averageHeight = bottom / index;\n\n        // Guess the index based off the average height\n        index = Math.min(Math.floor(topOffset / averageHeight), length - 1);\n        if (previousIndex === index) {\n          return index;\n        }\n        let entry = this._entryAt(index);\n        let position = entry.position;\n        let top = position.y;\n        bottom = top + entry.height;\n        previousIndex = index;\n        if (bottom > topOffset) {\n          // Walk backwards until we find an item that won't be shown\n          while (bottom >= topOffset) {\n            previousIndex = index;\n            index--;\n            if (index === -1) {\n              break;\n            }\n            entry = this._entryAt(index);\n            position = entry.position;\n            bottom = position.y + entry.height;\n          }\n          return previousIndex;\n        } else if (topOffset === bottom) {\n          // Walk forwards until we find the next one- it should be close\n          while (bottom <= topOffset) {\n            index++;\n            entry = this._entryAt(index);\n            position = entry.position;\n            bottom = position.y + entry.height;\n          }\n          return index;\n        }\n      }\n      return -1;\n    }\n  }\n  _exports.default = ShelfFirst;\n});",";\ndefine('@docfy/ember/output:virtual', [\n  'exports',\n  'consul-ui/docfy-output'\n], function (_exports, _docfyOutput) {\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 _docfyOutput.default;\n    }\n  });\n});\n","define(\"torii/adapters/application\", [\"exports\", \"rsvp\", \"@ember/object\"], function (_exports, _rsvp, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-classic-classes */\n\n  const ApplicationAdapter = _object.default.extend({\n    open() {\n      return new _rsvp.Promise(function () {\n        throw new Error('The Torii adapter must implement `open` for a session to be opened');\n      });\n    },\n    fetch() {\n      return new _rsvp.Promise(function () {\n        throw new Error('The Torii adapter must implement `fetch` for a session to be fetched');\n      });\n    },\n    close() {\n      return new _rsvp.Promise(function () {\n        throw new Error('The Torii adapter must implement `close` for a session to be closed');\n      });\n    }\n  });\n  var _default = _exports.default = ApplicationAdapter;\n});","define(\"torii/bootstrap/routing\", [\"exports\", \"torii/routing/application-route-mixin\", \"torii/routing/authenticated-route-mixin\", \"torii/lib/container-utils\"], function (_exports, _applicationRouteMixin, _authenticatedRouteMixin, _containerUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = toriiBootstrapRouting;\n  var AuthenticatedRoute = null;\n  function reopenOrRegister(applicationInstance, factoryName, mixin) {\n    const factory = (0, _containerUtils.lookup)(applicationInstance, factoryName);\n    if (factory) {\n      factory.reopen(mixin);\n    } else {\n      const basicFactory = (0, _containerUtils.lookupFactory)(applicationInstance, 'route:basic');\n      if (!AuthenticatedRoute) {\n        AuthenticatedRoute = basicFactory.extend(_authenticatedRouteMixin.default);\n      }\n      (0, _containerUtils.register)(applicationInstance, factoryName, AuthenticatedRoute);\n    }\n  }\n  function toriiBootstrapRouting(applicationInstance, authenticatedRoutes) {\n    reopenOrRegister(applicationInstance, 'route:application', _applicationRouteMixin.default);\n    for (var i = 0; i < authenticatedRoutes.length; i++) {\n      var routeName = authenticatedRoutes[i];\n      var factoryName = 'route:' + routeName;\n      reopenOrRegister(applicationInstance, factoryName, _authenticatedRouteMixin.default);\n    }\n  }\n});","define(\"torii/bootstrap/session\", [\"exports\", \"torii/services/torii-session\"], function (_exports, _toriiSession) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(application, sessionName) {\n    var sessionFactoryName = 'service:' + sessionName;\n    application.register(sessionFactoryName, _toriiSession.default);\n  }\n});","define(\"torii/bootstrap/torii\", [\"exports\", \"torii/providers/linked-in-oauth2\", \"torii/providers/google-oauth2\", \"torii/providers/google-oauth2-bearer\", \"torii/providers/google-oauth2-bearer-v2\", \"torii/providers/facebook-connect\", \"torii/providers/facebook-oauth2\", \"torii/adapters/application\", \"torii/providers/twitter-oauth1\", \"torii/providers/github-oauth2\", \"torii/providers/azure-ad-oauth2\", \"torii/providers/stripe-connect\", \"torii/services/torii\", \"torii/services/popup\", \"torii/services/iframe\"], function (_exports, _linkedInOauth, _googleOauth, _googleOauth2Bearer, _googleOauth2BearerV, _facebookConnect, _facebookOauth, _application, _twitterOauth, _githubOauth, _azureAdOauth, _stripeConnect, _torii, _popup, _iframe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(application) {\n    application.register('service:torii', _torii.default);\n    application.register('torii-provider:linked-in-oauth2', _linkedInOauth.default);\n    application.register('torii-provider:google-oauth2', _googleOauth.default);\n    application.register('torii-provider:google-oauth2-bearer', _googleOauth2Bearer.default);\n    application.register('torii-provider:google-oauth2-bearer-v2', _googleOauth2BearerV.default);\n    application.register('torii-provider:facebook-connect', _facebookConnect.default);\n    application.register('torii-provider:facebook-oauth2', _facebookOauth.default);\n    application.register('torii-provider:twitter', _twitterOauth.default);\n    application.register('torii-provider:github-oauth2', _githubOauth.default);\n    application.register('torii-provider:azure-ad-oauth2', _azureAdOauth.default);\n    application.register('torii-provider:stripe-connect', _stripeConnect.default);\n    application.register('torii-adapter:application', _application.default);\n    application.register('torii-service:iframe', _iframe.default);\n    application.register('torii-service:popup', _popup.default);\n  }\n});","define(\"torii/compat/get-router-instance\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getRouterInstance;\n  /* eslint-disable ember/no-private-routing-service */\n  function getRouterInstance(appInstance) {\n    // backwards compat for Ember < 2.0\n    return appInstance.get('router') || appInstance.lookup('router:main');\n  }\n});","define(\"torii/compat/get-router-lib\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getRouterLib;\n  /* eslint-disable ember/no-private-routing-service */\n  function getRouterLib(router) {\n    /**\n     * `router.router` deprecated in 2.13 until 2.16\n     * see https://emberjs.com/deprecations/v2.x/#toc_ember-router-router-renamed-to-ember-router-_routermicrolib\n     */\n    return router._routerMicrolib || router.router;\n  }\n});","define(\"torii/components/torii-iframe-placeholder\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-classic-components, ember/no-classic-classes, ember/require-tagless-components */\n  var _default = _exports.default = _component.default.extend({\n    classNames: ['torii-iframe-placeholder']\n  });\n});","define(\"torii/configuration\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.configurable = configurable;\n  _exports.configure = configure;\n  _exports.default = void 0;\n  _exports.getConfiguration = getConfiguration;\n  /* eslint-disable ember/require-computed-property-dependencies, ember/no-side-effects, ember/no-get */\n\n  const NAMESPACE = 'providers';\n  let configuration = {};\n  function configurable(configKey, defaultValue) {\n    return (0, _object.computed)(function configurableComputed() {\n      // Trigger super wrapping in Ember 2.1.\n      // See: https://github.com/emberjs/ember.js/pull/12359\n      this._super = this._super || function () {\n        throw new Error('should always have _super');\n      }();\n      var configNamespace = NAMESPACE + '.' + this.get('name');\n      var propertyPath = configNamespace + '.' + configKey;\n      let configuration = getConfiguration();\n      var value = (0, _object.get)(configuration, propertyPath);\n      if (typeof value === 'undefined') {\n        if (typeof defaultValue !== 'undefined') {\n          if (typeof defaultValue === 'function') {\n            return defaultValue.call(this);\n          } else {\n            return defaultValue;\n          }\n        } else {\n          throw new Error('Expected configuration value ' + configKey + ' to be defined for provider named ' + this.get('name'));\n        }\n      }\n      return value;\n    });\n  }\n  function configure(settings) {\n    configuration = settings;\n  }\n  function getConfiguration() {\n    return configuration;\n  }\n  var _default = _exports.default = {};\n});","define(\"torii/lib/assert\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = assert;\n  function assert(message, test) {\n    if (!test) {\n      console.error(message); // eslint-disable-line\n    }\n  }\n});","define(\"torii/lib/container-utils\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getOwner = getOwner;\n  _exports.hasRegistration = hasRegistration;\n  _exports.lookup = lookup;\n  _exports.lookupFactory = lookupFactory;\n  _exports.register = register;\n  function hasRegistration(application, name) {\n    if (application && application.hasRegistration) {\n      return application.hasRegistration(name);\n    } else {\n      return application.registry.has(name);\n    }\n  }\n  function register(applicationInstance, name, factory) {\n    if (applicationInstance && applicationInstance.application) {\n      return applicationInstance.application.register(name, factory);\n    } else {\n      return applicationInstance.registry.register(name, factory);\n    }\n  }\n  function lookupFactory(applicationInstance, name) {\n    if (applicationInstance && applicationInstance.lookupFactory) {\n      return applicationInstance.lookupFactory(name);\n    } else if (applicationInstance && applicationInstance.resolveRegistration) {\n      // See https://github.com/Vestorly/torii/issues/362\n      return applicationInstance.resolveRegistration(name);\n    } else if (applicationInstance && applicationInstance.application) {\n      return applicationInstance.application.__container__.lookupFactory(name);\n    } else {\n      return applicationInstance.container.lookupFactory(name);\n    }\n  }\n  function lookup(applicationInstance, name) {\n    if (applicationInstance && applicationInstance.lookup) {\n      return applicationInstance.lookup(name);\n    } else if (applicationInstance && applicationInstance.application) {\n      return applicationInstance.application.__container__.lookup(name);\n    } else {\n      return applicationInstance.container.lookup(name);\n    }\n  }\n  function getOwner(instance) {\n    if (_application.getOwner) {\n      return (0, _application.getOwner)(instance);\n    } else {\n      return instance.container;\n    }\n  }\n});","define(\"torii/lib/load-initializer\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(initializer) {\n    (0, _application.onLoad)('Ember.Application', function (Application) {\n      Application.initializer(initializer);\n    });\n  }\n});","define(\"torii/lib/load-instance-initializer\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(instanceInitializer) {\n    (0, _application.onLoad)('Ember.Application', function (Application) {\n      Application.instanceInitializer(instanceInitializer);\n    });\n  }\n});","define(\"torii/lib/parse-query-string\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-classic-classes */\n  var _default = _exports.default = _object.default.extend({\n    init() {\n      this.validKeys = this.keys;\n    },\n    parse() {\n      var url = this.url,\n        validKeys = this.validKeys,\n        data = {};\n      for (var i = 0; i < validKeys.length; i++) {\n        var key = validKeys[i],\n          regex = new RegExp(key + '=([^&#]*)'),\n          match = regex.exec(url);\n        if (match) {\n          data[key] = match[1];\n        }\n      }\n      return data;\n    }\n  });\n});","define(\"torii/lib/popup-id-serializer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var PopupIdSerializer = {\n    serialize(popupId) {\n      return 'torii-popup:' + popupId;\n    },\n    deserialize(serializedPopupId) {\n      if (!serializedPopupId) {\n        return null;\n      }\n      var match = serializedPopupId.match(/^(torii-popup:)(.*)/);\n      return match ? match[2] : null;\n    }\n  };\n  var _default = _exports.default = PopupIdSerializer;\n});","define(\"torii/lib/query-string\", [\"exports\", \"@ember/array\", \"@ember/string\", \"@ember/object\"], function (_exports, _array, _string, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-classic-classes */\n\n  function isValue(value) {\n    return value || value === false;\n  }\n  function getParamValue(obj, paramName, optional) {\n    var camelizedName = (0, _string.camelize)(paramName),\n      value = (0, _object.get)(obj, camelizedName);\n    if (!optional) {\n      if (!isValue(value) && isValue((0, _object.get)(obj, paramName))) {\n        throw new Error('Use camelized versions of url params. (Did not find ' + '\"' + camelizedName + '\" property but did find ' + '\"' + paramName + '\".');\n      }\n      if (!isValue(value)) {\n        throw new Error('Missing url param: \"' + paramName + '\". (Looked for: property named \"' + camelizedName + '\".');\n      }\n    }\n    return isValue(value) ? encodeURIComponent(value) : undefined;\n  }\n  function getOptionalParamValue(obj, paramName) {\n    return getParamValue(obj, paramName, true);\n  }\n  var _default = _exports.default = _object.default.extend({\n    init() {\n      this.obj = this.provider;\n      this.urlParams = (0, _array.A)(this.requiredParams.slice()).uniq();\n      this.optionalUrlParams = (0, _array.A)(this.optionalParams ? this.optionalParams.slice() : []).uniq();\n      this.optionalUrlParams.forEach(function (param) {\n        if (this.urlParams.indexOf(param) > -1) {\n          throw new Error(\"Required parameters cannot also be optional: '\" + param + \"'\");\n        }\n      }, this);\n    },\n    toString() {\n      var urlParams = this.urlParams,\n        optionalUrlParams = this.optionalUrlParams,\n        obj = this.obj,\n        keyValuePairs = (0, _array.A)([]);\n      urlParams.forEach(function (paramName) {\n        var paramValue = getParamValue(obj, paramName);\n        keyValuePairs.push([paramName, paramValue]);\n      });\n      optionalUrlParams.forEach(function (paramName) {\n        var paramValue = getOptionalParamValue(obj, paramName);\n        if (isValue(paramValue)) {\n          keyValuePairs.push([paramName, paramValue]);\n        }\n      });\n      return keyValuePairs.map(function (pair) {\n        return pair.join('=');\n      }).join('&');\n    }\n  });\n});","define(\"torii/lib/random-url-safe\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = randomUrlSafe;\n  function randomUrlSafe(length) {\n    var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n    var result = '';\n    for (var i = 0; i < length; i++) {\n      result += chars.charAt(Math.floor(Math.random() * chars.length));\n    }\n    return result;\n  }\n});","define(\"torii/lib/required-property\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function requiredProperty() {\n    return (0, _object.computed)(function (key) {\n      throw new Error('Definition of property ' + key + ' by a subclass is required.');\n    });\n  }\n  var _default = _exports.default = requiredProperty;\n});","define(\"torii/lib/state-machine\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /*\n   * Modification of Stefan Penner's StateMachine.js: https://github.com/stefanpenner/state_machine.js/\n   *\n   * This modification requires Ember.js to be loaded first\n   */\n\n  var a_slice = Array.prototype.slice;\n  var o_keys = Object.keys;\n  function makeArray(entry) {\n    if (entry.constructor === Array) {\n      return entry;\n    } else if (entry) {\n      return [entry];\n    } else {\n      return [];\n    }\n  }\n  function StateMachine(options) {\n    var initialState = options.initialState;\n    this.states = options.states;\n    if (!this.states) {\n      throw new Error('StateMachine needs states');\n    }\n    this.state = this.states[initialState];\n    if (!this.state) {\n      throw new Error('Missing initial state');\n    }\n    this.currentStateName = initialState;\n    this._subscriptions = {};\n    var beforeTransitions = options.beforeTransitions || [];\n    var afterTransitions = options.afterTransitions || [];\n    var rule;\n    var i, length;\n    for (i = 0, length = beforeTransitions.length; length > i; i++) {\n      rule = beforeTransitions[i];\n      this.beforeTransition.call(this, rule, rule.fn);\n    }\n    for (i = 0, length = afterTransitions.length; length > i; i++) {\n      rule = afterTransitions[i];\n      this.afterTransition.call(this, rule, rule.fn);\n    }\n  }\n  var SPLAT = StateMachine.SPLAT = '*';\n  StateMachine.transitionTo = function (state) {\n    return function () {\n      this.transitionTo(state);\n    };\n  };\n  StateMachine.prototype = {\n    states: {},\n    toString() {\n      return \"<StateMachine currentState:'\" + this.currentStateName + \"' >\";\n    },\n    transitionTo(nextStateName) {\n      if (nextStateName.charAt(0) === '.') {\n        var splits = this.currentStateName.split('.').slice(0, -1);\n\n        // maybe all states should have an implicit leading dot (kinda like dns)\n        if (0 < splits.length) {\n          nextStateName = splits.join('.') + nextStateName;\n        } else {\n          nextStateName = nextStateName.substring(1);\n        }\n      }\n      var state = this.states[nextStateName],\n        stateName = this.currentStateName;\n      if (!state) {\n        throw new Error('Unknown State: `' + nextStateName + '`');\n      }\n      this.willTransition(stateName, nextStateName);\n      this.state = state;\n      this.currentStateName = nextStateName;\n      this.didTransition(stateName, nextStateName);\n    },\n    beforeTransition(options, fn) {\n      this._transition('willTransition', options, fn);\n    },\n    afterTransition(options, fn) {\n      this._transition('didTransition', options, fn);\n    },\n    _transition(event, filter, fn) {\n      var from = filter.from || SPLAT,\n        to = filter.to || SPLAT,\n        matchingTo,\n        matchingFrom,\n        toSplatOffset,\n        fromSplatOffset,\n        negatedMatchingTo,\n        negatedMatchingFrom;\n      if (to.indexOf('!') === 0) {\n        matchingTo = to.substr(1);\n        negatedMatchingTo = true;\n      } else {\n        matchingTo = to;\n        negatedMatchingTo = false;\n      }\n      if (from.indexOf('!') === 0) {\n        matchingFrom = from.substr(1);\n        negatedMatchingFrom = true;\n      } else {\n        matchingFrom = from;\n        negatedMatchingFrom = false;\n      }\n      fromSplatOffset = matchingFrom.indexOf(SPLAT);\n      toSplatOffset = matchingTo.indexOf(SPLAT);\n      if (fromSplatOffset >= 0) {\n        matchingFrom = matchingFrom.substring(fromSplatOffset, 0);\n      }\n      if (toSplatOffset >= 0) {\n        matchingTo = matchingTo.substring(toSplatOffset, 0);\n      }\n      this.on(event, function (currentFrom, currentTo) {\n        var currentMatcherTo = currentTo,\n          currentMatcherFrom = currentFrom,\n          toMatches,\n          fromMatches;\n        if (fromSplatOffset >= 0) {\n          currentMatcherFrom = currentFrom.substring(fromSplatOffset, 0);\n        }\n        if (toSplatOffset >= 0) {\n          currentMatcherTo = currentTo.substring(toSplatOffset, 0);\n        }\n        toMatches = currentMatcherTo === matchingTo !== negatedMatchingTo;\n        fromMatches = currentMatcherFrom === matchingFrom !== negatedMatchingFrom;\n        if (toMatches && fromMatches) {\n          fn.call(this, currentFrom, currentTo);\n        }\n      });\n    },\n    willTransition(from, to) {\n      this._notify('willTransition', from, to);\n    },\n    didTransition(from, to) {\n      this._notify('didTransition', from, to);\n    },\n    _notify(name, from, to) {\n      var subscriptions = this._subscriptions[name] || [];\n      for (var i = 0, length = subscriptions.length; i < length; i++) {\n        subscriptions[i].call(this, from, to);\n      }\n    },\n    on(event, fn) {\n      this._subscriptions[event] = this._subscriptions[event] || [];\n      this._subscriptions[event].push(fn);\n    },\n    off(event, fn) {\n      var idx = this._subscriptions[event].indexOf(fn);\n      if (fn) {\n        if (idx) {\n          this._subscriptions[event].splice(idx, 1);\n        }\n      } else {\n        this._subscriptions[event] = null;\n      }\n    },\n    send(eventName) {\n      var event = this.state[eventName];\n      var args = a_slice.call(arguments, 1);\n      if (event) {\n        return event.apply(this, args);\n      } else {\n        this.unhandledEvent(eventName);\n      }\n    },\n    trySend(eventName) {\n      var event = this.state[eventName];\n      var args = a_slice.call(arguments, 1);\n      if (event) {\n        return event.apply(this, args);\n      }\n    },\n    event(eventName, callback) {\n      var states = this.states;\n      var eventApi = {\n        transition() {\n          var first = arguments[0],\n            second = arguments[1],\n            events = normalizeEvents(eventName, first, second);\n          o_keys(events).forEach(function (from) {\n            var to = events[from];\n            compileEvent(states, eventName, from, to, StateMachine.transitionTo(to));\n          });\n        }\n      };\n      callback.call(eventApi);\n    },\n    unhandledEvent(event) {\n      var message = 'Unknown Event: `' + event + '` for: ' + this.toString();\n      throw new Error(message);\n    }\n  };\n  function normalizeEvents(eventName, first, second) {\n    var events;\n    if (!first) {\n      throw new Error('invalid Transition');\n    }\n    if (second) {\n      var froms = first,\n        to = second;\n      events = expandArrayEvents(froms, to);\n    } else {\n      if (first.constructor === Object) {\n        events = first;\n      } else {\n        throw new Error('something went wrong');\n      }\n    }\n    return events;\n  }\n  function expandArrayEvents(froms, to) {\n    return makeArray(froms).reduce(function (events, from) {\n      events[from] = to;\n      return events;\n    }, {});\n  }\n  function compileEvent(states, eventName, from, to, fn) {\n    var state = states[from];\n    if (from && to && state) {\n      states[from][eventName] = fn;\n    } else {\n      var message = 'invalid transition state: ' + (state && state.currentStateName) + ' from: ' + from + ' to: ' + to;\n      throw new Error(message);\n    }\n  }\n  var _default = _exports.default = StateMachine;\n});","define(\"torii/lib/uuid-generator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var UUIDGenerator = {\n    generate() {\n      var d = new Date().getTime();\n      var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n        var r = (d + Math.random() * 16) % 16 | 0;\n        d = Math.floor(d / 16);\n        return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);\n      });\n      return uuid;\n    }\n  };\n  var _default = _exports.default = UUIDGenerator;\n});","define(\"torii/mixins/ui-service-mixin\", [\"exports\", \"@ember/runloop\", \"rsvp\", \"@ember/object/mixin\", \"@ember/object/evented\", \"torii/lib/uuid-generator\", \"torii/lib/popup-id-serializer\", \"torii/lib/parse-query-string\", \"torii/lib/assert\", \"torii/configuration\"], function (_exports, _runloop, _rsvp, _mixin, _evented, _uuidGenerator, _popupIdSerializer, _parseQueryString, _assert, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.WARNING_KEY = _exports.CURRENT_REQUEST_KEY = void 0;\n  /* eslint-disable ember/no-new-mixins */\n\n  const CURRENT_REQUEST_KEY = _exports.CURRENT_REQUEST_KEY = '__torii_request';\n  const WARNING_KEY = _exports.WARNING_KEY = '__torii_redirect_warning';\n  function parseMessage(url, keys) {\n    var parser = _parseQueryString.default.create({\n      url: url,\n      keys: keys\n    });\n    var data = parser.parse();\n    return data;\n  }\n  var ServicesMixin = _mixin.default.create({\n    init() {\n      this._super(...arguments);\n      this.remoteIdGenerator = this.remoteIdGenerator || _uuidGenerator.default;\n    },\n    // Open a remote window. Returns a promise that resolves or rejects\n    // according to whether the window is redirected with arguments in the URL.\n    //\n    // For example, an OAuth2 request:\n    //\n    // popup.open('http://some-oauth.com', ['code']).then(function(data){\n    //   // resolves with data.code, as from http://app.com?code=13124\n    // });\n    //\n    // Services that use this mixin should implement openRemote\n    //\n    open(url, keys, options) {\n      let service = this;\n      let lastRemote = this.remote;\n      let storageToriiEventHandler;\n      return new _rsvp.Promise(function (resolve, reject) {\n        if (lastRemote) {\n          service.close();\n        }\n        var remoteId = service.remoteIdGenerator.generate();\n        storageToriiEventHandler = function (storageEvent) {\n          var remoteIdFromEvent = _popupIdSerializer.default.deserialize(storageEvent.key);\n          if (remoteId === remoteIdFromEvent) {\n            var data = parseMessage(storageEvent.newValue, keys);\n            localStorage.removeItem(storageEvent.key);\n            (0, _runloop.run)(function () {\n              resolve(data);\n            });\n          }\n        };\n        var pendingRequestKey = _popupIdSerializer.default.serialize(remoteId);\n        localStorage.setItem(CURRENT_REQUEST_KEY, pendingRequestKey);\n        localStorage.removeItem(WARNING_KEY);\n        service.openRemote(url, pendingRequestKey, options);\n        service.schedulePolling();\n        var onbeforeunload = window.onbeforeunload;\n        window.onbeforeunload = function () {\n          if (typeof onbeforeunload === 'function') {\n            onbeforeunload();\n          }\n          service.close();\n        };\n        if (service.remote && !service.remote.closed) {\n          service.remote.focus();\n        } else {\n          localStorage.removeItem(CURRENT_REQUEST_KEY);\n          reject(new Error('remote could not open or was closed'));\n          return;\n        }\n        service.one('didClose', function () {\n          let hasWarning = localStorage.getItem(WARNING_KEY);\n          if (hasWarning) {\n            localStorage.removeItem(WARNING_KEY);\n            let configuration = (0, _configuration.getConfiguration)();\n            (0, _assert.default)(`[Torii] Using an OAuth redirect that loads your Ember App is deprecated and will be\n              removed in a future release, as doing so is a potential security vulnerability.\n              Hide this message by setting \\`allowUnsafeRedirect: true\\` in your Torii configuration.\n          `, configuration.allowUnsafeRedirect);\n          }\n          var pendingRequestKey = localStorage.getItem(CURRENT_REQUEST_KEY);\n          if (pendingRequestKey) {\n            localStorage.removeItem(pendingRequestKey);\n            localStorage.removeItem(CURRENT_REQUEST_KEY);\n          }\n          // If we don't receive a message before the timeout, we fail. Normally,\n          // the message will be received and the window will close immediately.\n          service.timeout = (0, _runloop.later)(service, function () {\n            reject(new Error('remote was closed, authorization was denied, or an authentication message otherwise not received before the window closed.'));\n          }, 100);\n        });\n        window.addEventListener('storage', storageToriiEventHandler);\n      }).finally(function () {\n        // didClose will reject this same promise, but it has already resolved.\n        service.close();\n        window.removeEventListener('storage', storageToriiEventHandler);\n      });\n    },\n    close() {\n      if (this.remote) {\n        this.closeRemote();\n        this.remote = null;\n        this.trigger('didClose');\n      }\n      this.cleanUp();\n    },\n    cleanUp() {\n      this.clearTimeout();\n    },\n    schedulePolling() {\n      this.polling = (0, _runloop.later)(this, function () {\n        this.pollRemote();\n        this.schedulePolling();\n      }, 35);\n    },\n    // Clear the timeout, in case it hasn't fired.\n    clearTimeout() {\n      (0, _runloop.cancel)(this.timeout);\n      this.timeout = null;\n    },\n    stopPolling: (0, _evented.on)('didClose', function () {\n      (0, _runloop.cancel)(this.polling);\n    })\n  });\n  var _default = _exports.default = ServicesMixin;\n});","define(\"torii/providers/-private/utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.loadScript = loadScript;\n  _exports.overrideLoadScript = overrideLoadScript;\n  _exports.resetLoadScript = resetLoadScript;\n  let alternativeLoadScript = false;\n  function overrideLoadScript(state) {\n    alternativeLoadScript = state;\n  }\n  function resetLoadScript() {\n    alternativeLoadScript = false;\n  }\n  function loadScript(src) {\n    if (alternativeLoadScript) {\n      return alternativeLoadScript(src);\n    }\n    let scriptTag = document.createElement('script');\n    let firstScriptTag = document.getElementsByTagName('script')[0];\n    scriptTag.src = src;\n    firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag);\n  }\n});","define(\"torii/providers/azure-ad-oauth2\", [\"exports\", \"@ember/object\", \"torii/providers/oauth2-code\", \"torii/configuration\"], function (_exports, _object, _oauth2Code, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/require-computed-property-dependencies, ember/no-get, ember/avoid-leaking-state-in-ember-objects */\n\n  /**\n   * This class implements authentication against AzureAD\n   * using the OAuth2 authorization flow in a popup window.\n   * @class\n   */\n  var AzureAdOauth2 = _oauth2Code.default.extend({\n    name: 'azure-ad-oauth2',\n    baseUrl: (0, _object.computed)(function () {\n      return 'https://login.windows.net/' + this.get('tennantId') + '/oauth2/authorize';\n    }),\n    tennantId: (0, _configuration.configurable)('tennantId', 'common'),\n    // additional url params that this provider requires\n    requiredUrlParams: ['api-version', 'client_id'],\n    optionalUrlParams: ['scope', 'nonce', 'response_mode'],\n    responseMode: (0, _configuration.configurable)('responseMode', null),\n    responseParams: (0, _object.computed)(function () {\n      return [this.get('responseType'), 'state'];\n    }),\n    apiVersion: '1.0',\n    responseType: (0, _configuration.configurable)('responseType', 'code'),\n    redirectUri: (0, _configuration.configurable)('redirectUri', function azureRedirectUri() {\n      // A hack that allows redirectUri to be configurable\n      // but default to the superclass\n      return this._super();\n    })\n  });\n  var _default = _exports.default = AzureAdOauth2;\n});","define(\"torii/providers/base\", [\"exports\", \"@ember/object\", \"torii/lib/required-property\", \"torii/lib/container-utils\", \"torii/configuration\"], function (_exports, _object, _requiredProperty, _containerUtils, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-classic-classes, ember/no-get */\n\n  var DEFAULT_REMOTE_SERVICE_NAME = 'popup';\n\n  /**\n   * The base class for all torii providers\n   * @class BaseProvider\n   */\n  var Base = _object.default.extend({\n    /**\n     * The name of the provider\n     * @property {string} name\n     */\n    name: (0, _requiredProperty.default)(),\n    /**\n     * The name of the configuration property\n     * that holds config information for this provider.\n     * @property {string} configNamespace\n     */\n    configNamespace: (0, _object.computed)('name', function () {\n      return 'providers.' + this.get('name');\n    }),\n    popup: (0, _object.computed)('configuredRemoteServiceName', function () {\n      var owner = (0, _containerUtils.getOwner)(this);\n      var remoteServiceName = this.get('configuredRemoteServiceName') || _configuration.default.remoteServiceName || DEFAULT_REMOTE_SERVICE_NAME;\n      return owner.lookup('torii-service:' + remoteServiceName);\n    }),\n    configuredRemoteServiceName: (0, _configuration.configurable)('remoteServiceName', null)\n  });\n  var _default = _exports.default = Base;\n});","define(\"torii/providers/facebook-connect\", [\"exports\", \"@ember/runloop\", \"rsvp\", \"torii/providers/base\", \"torii/providers/-private/utils\", \"torii/configuration\"], function (_exports, _runloop, _rsvp, _base, _utils, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-get */\n  /* global FB */\n\n  /**\n   * This class implements OAuth authorization for Facebook\n   * connect using the Facebook Connect SDK.\n   * It eagerly loads the Facebook Connect script using the settings provided\n   * unless it detects the presence of the global `window.FB`.\n   */\n\n  var fbPromise;\n  function fbLoad(settings) {\n    if (fbPromise) {\n      return fbPromise;\n    }\n    var original = window.fbAsyncInit;\n    var locale = settings.locale;\n    delete settings.locale;\n    fbPromise = new _rsvp.Promise(function (resolve) {\n      if (window.FB) {\n        return resolve();\n      }\n      window.fbAsyncInit = function () {\n        FB.init(settings);\n        (0, _runloop.run)(null, resolve);\n      };\n      (0, _utils.loadScript)('//connect.facebook.net/' + locale + '/sdk.js');\n    }).then(function () {\n      window.fbAsyncInit = original;\n      if (window.fbAsyncInit) {\n        window.fbAsyncInit.hasRun = true;\n        window.fbAsyncInit();\n      }\n    });\n    return fbPromise;\n  }\n  function fbLogin(scope, returnScopes, authType) {\n    return new _rsvp.Promise(function (resolve, reject) {\n      FB.login(function (response) {\n        if (response.authResponse) {\n          (0, _runloop.run)(null, resolve, response.authResponse);\n        } else {\n          (0, _runloop.run)(null, reject, response.status);\n        }\n      }, {\n        scope: scope,\n        return_scopes: returnScopes,\n        auth_type: authType\n      });\n    });\n  }\n  function fbNormalize(response) {\n    var normalized = {\n      userId: response.userID,\n      accessToken: response.accessToken,\n      expiresIn: response.expiresIn\n    };\n    if (response.grantedScopes) {\n      normalized.grantedScopes = response.grantedScopes;\n    }\n    return normalized;\n  }\n  var Facebook = _base.default.extend({\n    // Facebook connect SDK settings:\n    name: 'facebook-connect',\n    scope: (0, _configuration.configurable)('scope', 'email'),\n    returnScopes: (0, _configuration.configurable)('returnScopes', false),\n    appId: (0, _configuration.configurable)('appId'),\n    version: (0, _configuration.configurable)('version', 'v2.2'),\n    xfbml: (0, _configuration.configurable)('xfbml', false),\n    channelUrl: (0, _configuration.configurable)('channelUrl', null),\n    locale: (0, _configuration.configurable)('locale', 'en_US'),\n    init() {\n      this._super(...arguments);\n      fbLoad(this.settings());\n    },\n    // API:\n    //\n    open(options) {\n      if (options === undefined) options = {};\n      var scope = this.get('scope');\n      var authType = options.authType;\n      var returnScopes = this.get('returnScopes');\n      return fbLoad(this.settings()).then(function () {\n        return fbLogin(scope, returnScopes, authType);\n      }).then(fbNormalize);\n    },\n    settings() {\n      return {\n        status: true,\n        cookie: true,\n        xfbml: this.get('xfbml'),\n        version: this.get('version'),\n        appId: this.get('appId'),\n        channelUrl: this.get('channelUrl'),\n        locale: this.get('locale')\n      };\n    }\n  });\n  var _default = _exports.default = Facebook;\n});","define(\"torii/providers/facebook-oauth2\", [\"exports\", \"torii/configuration\", \"torii/providers/oauth2-code\", \"@ember/object\"], function (_exports, _configuration, _oauth2Code, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-get, ember/avoid-leaking-state-in-ember-objects */\n  var _default = _exports.default = _oauth2Code.default.extend({\n    name: 'facebook-oauth2',\n    baseUrl: (0, _object.computed)('apiVersion', function () {\n      if (this.get('apiVersion')) {\n        // Facebook API version must be of shape 'vx.x'.\n        const FACEBOOK_API_VERSION_REGEX = /^v(\\d)\\.(\\d)$/;\n        if (!FACEBOOK_API_VERSION_REGEX.test(this.get('apiVersion'))) {\n          throw new Error(`The Facebook API version must be of the shape 'vX.X'`);\n        }\n        return `https://www.facebook.com/${this.get('apiVersion')}/dialog/oauth`;\n      } else {\n        return `https://www.facebook.com/dialog/oauth`;\n      }\n    }),\n    // Additional url params that this provider requires\n    requiredUrlParams: ['display'],\n    responseParams: ['code', 'state'],\n    scope: (0, _configuration.configurable)('scope', 'email'),\n    apiVersion: (0, _configuration.configurable)('apiVersion', null),\n    display: 'popup',\n    redirectUri: (0, _configuration.configurable)('redirectUri', function () {\n      // A hack that allows redirectUri to be configurable\n      // but default to the superclass\n      return this._super();\n    }),\n    open() {\n      return this._super().then(function (authData) {\n        if (authData.authorizationCode && authData.authorizationCode === '200') {\n          // indication that the user hit 'cancel', not 'ok'\n          throw new Error('User canceled authorization');\n        }\n        return authData;\n      });\n    }\n  });\n});","define(\"torii/providers/github-oauth2\", [\"exports\", \"torii/providers/oauth2-code\", \"torii/configuration\"], function (_exports, _oauth2Code, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/avoid-leaking-state-in-ember-objects */\n\n  /**\n   * This class implements authentication against Github\n   * using the OAuth2 authorization flow in a popup window.\n   * @class\n   */\n  var GithubOauth2 = _oauth2Code.default.extend({\n    name: 'github-oauth2',\n    baseUrl: 'https://github.com/login/oauth/authorize',\n    responseParams: ['code', 'state'],\n    redirectUri: (0, _configuration.configurable)('redirectUri', function () {\n      // A hack that allows redirectUri to be configurable\n      // but default to the superclass\n      return this._super();\n    })\n  });\n  var _default = _exports.default = GithubOauth2;\n});","define(\"torii/providers/google-oauth2-bearer-v2\", [\"exports\", \"rsvp\", \"@ember/runloop\", \"torii/providers/oauth2-code\", \"torii/configuration\"], function (_exports, _rsvp, _runloop, _oauth2Code, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/avoid-leaking-state-in-ember-objects, ember/no-get */\n\n  /**\n   * This class implements a provider allowing authentication against google's\n   * authentication server using v2 of google's OAuth2 authentication flow. The\n   * user is invited to authenticate in a popup window. Once a token is obtained,\n   * it is validated by a second HTTP request (to another url). Authentication is\n   * complte once this validation step has succeeded, and the token is returned.\n   */\n  var GoogleOauth2BearerV2 = _oauth2Code.default.extend({\n    name: 'google-oauth2-bearer-v2',\n    baseUrl: 'https://accounts.google.com/o/oauth2/v2/auth',\n    tokenValidationUrl: 'https://www.googleapis.com/oauth2/v2/tokeninfo',\n    // additional parameters that this provider requires\n    optionalUrlParams: ['scope', 'request_visible_actions'],\n    // a scope MUST be given (no default value because there are so many possible\n    // at Google)\n    scope: (0, _configuration.configurable)('scope'),\n    requestVisibleActions: (0, _configuration.configurable)('requestVisibleActions', ''),\n    responseType: 'token',\n    responseParams: ['access_token', 'token_type', 'expires_in'],\n    redirectUri: (0, _configuration.configurable)('redirectUri'),\n    /**\n     * @method open\n     * @return {Promise<object>} If the authorization attempt is a success,\n     * the promise will resolve an object containing the following keys:\n     *   - authorizationToken: The `token` from the 3rd-party provider\n     *   - provider: The name of the provider (i.e., google-oauth2)\n     *   - redirectUri: The redirect uri (some server-side exchange flows require this)\n     * If there was an error or the user either canceled the authorization or\n     * closed the popup window, the promise rejects.\n     */\n    open(options) {\n      var name = this.get('name'),\n        url = this.buildUrl(),\n        redirectUri = this.get('redirectUri'),\n        responseParams = this.get('responseParams'),\n        tokenValidationUrl = this.get('tokenValidationUrl'),\n        clientId = this.get('apiKey');\n      return this.get('popup').open(url, responseParams, options).then(function (authData) {\n        var missingResponseParams = [];\n        responseParams.forEach(function (param) {\n          if (authData[param] === undefined) {\n            missingResponseParams.push(param);\n          }\n        });\n        if (missingResponseParams.length) {\n          throw new Error('The response from the provider is missing ' + 'these required response params: ' + missingResponseParams.join(', '));\n        }\n\n        /* at this point 'authData' should look like:\n        {\n        access_token: '<some long acces token string>',\n        expires_in: '<time in s, was '3600' in jan 2017>',\n        token_type: 'Bearer'\n        }\n        */\n\n        // Token validation. For details, see\n        // https://developers.google.com/identity/protocols/OAuth2UserAgent#validatetoken\n        return new _rsvp.Promise(function (resolve, reject) {\n          // Token validation request\n          let xhr = new XMLHttpRequest();\n          xhr.overrideMimeType('application/json');\n          xhr.onload = function () {\n            var jsonResponse = JSON.parse(xhr.responseText);\n            /* the response is a JSON that looks like:\n            {\n            \"audience\":\"8819981768.apps.googleusercontent.com\",\n            \"user_id\":\"123456789\",\n            \"scope\":\"profile email\",\n            \"expires_in\":436\n            }\n            */\n            // the token is valid if the 'audience' is the same as the\n            // 'client_id' (apiKey) provided to initiate authentication\n            if (jsonResponse.audience === clientId) {\n              // authentication succeeded. Add name and redirectUri to the\n              // authentication data and resolve\n              (0, _runloop.run)(() => resolve(Object.assign(authData, {\n                provider: name,\n                redirectUri: redirectUri\n              })));\n            } else if (jsonResponse.audience === undefined) {\n              // authentication failed because the response from the server\n              // is not as expected (no 'audience' field)\n              (0, _runloop.run)(() => reject(new Error(\"Unexpected response from token validation server. The 'audience' field may be missing.\")));\n            } else {\n              // authentication failed because the token is invalid or has\n              // been tempered with\n              (0, _runloop.run)(() => reject(new Error(\"Access token is invalid or has been tempered with. You may be subject to a 'confused deputy' attack.\")));\n            }\n          };\n          xhr.onerror = function () {\n            // authentication failed because the validation request failed\n            (0, _runloop.run)(() => reject(new Error(`Token validation request failed with status '${xhr.statusText}' (server '${tokenValidationUrl}' '${xhr.responseText}').`)));\n          };\n          xhr.open('GET', `${tokenValidationUrl}?access_token=${encodeURIComponent(authData['access_token'])}`);\n          xhr.send();\n        });\n      });\n    },\n    fetch(authenticationData) {\n      // this is the most basic for ember-simple-auth to work with this provider,\n      // but the session could actually be checked and renewed here if the token\n      // is too old.\n      return authenticationData;\n    }\n  });\n  var _default = _exports.default = GoogleOauth2BearerV2;\n});","define(\"torii/providers/google-oauth2-bearer\", [\"exports\", \"torii/providers/oauth2-bearer\", \"torii/configuration\"], function (_exports, _oauth2Bearer, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/avoid-leaking-state-in-ember-objects */\n  /**\n   * This class implements authentication against google\n   * using the client-side OAuth2 authorization flow in a popup window.\n   */\n\n  var GoogleOauth2Bearer = _oauth2Bearer.default.extend({\n    name: 'google-oauth2-bearer',\n    baseUrl: 'https://accounts.google.com/o/oauth2/auth',\n    // additional params that this provider requires\n    optionalUrlParams: ['scope', 'request_visible_actions', 'hd'],\n    requestVisibleActions: (0, _configuration.configurable)('requestVisibleActions', ''),\n    responseParams: ['access_token'],\n    scope: (0, _configuration.configurable)('scope', 'email'),\n    redirectUri: (0, _configuration.configurable)('redirectUri', 'http://localhost:4200/oauth2callback'),\n    hd: (0, _configuration.configurable)('hd', '')\n  });\n  var _default = _exports.default = GoogleOauth2Bearer;\n});","define(\"torii/providers/google-oauth2\", [\"exports\", \"torii/providers/oauth2-code\", \"torii/configuration\"], function (_exports, _oauth2Code, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/avoid-leaking-state-in-ember-objects */\n  /**\n   * This class implements authentication against google\n   * using the OAuth2 authorization flow in a popup window.\n   */\n\n  var GoogleOauth2 = _oauth2Code.default.extend({\n    name: 'google-oauth2',\n    baseUrl: 'https://accounts.google.com/o/oauth2/auth',\n    // additional params that this provider requires\n    optionalUrlParams: ['scope', 'request_visible_actions', 'access_type', 'approval_prompt', 'hd'],\n    requestVisibleActions: (0, _configuration.configurable)('requestVisibleActions', ''),\n    accessType: (0, _configuration.configurable)('accessType', ''),\n    responseParams: ['code', 'state'],\n    scope: (0, _configuration.configurable)('scope', 'email'),\n    approvalPrompt: (0, _configuration.configurable)('approvalPrompt', 'auto'),\n    redirectUri: (0, _configuration.configurable)('redirectUri', 'http://localhost:8000/oauth2callback'),\n    hd: (0, _configuration.configurable)('hd', '')\n  });\n  var _default = _exports.default = GoogleOauth2;\n});","define(\"torii/providers/linked-in-oauth2\", [\"exports\", \"torii/providers/oauth2-code\", \"torii/configuration\"], function (_exports, _oauth2Code, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/avoid-leaking-state-in-ember-objects */\n\n  /**\n   * This class implements authentication against Linked In\n   * using the OAuth2 authorization flow in a popup window.\n   *\n   * @class LinkedInOauth2\n   */\n  var LinkedInOauth2 = _oauth2Code.default.extend({\n    name: 'linked-in-oauth2',\n    baseUrl: 'https://www.linkedin.com/uas/oauth2/authorization',\n    responseParams: ['code', 'state'],\n    redirectUri: (0, _configuration.configurable)('redirectUri', function () {\n      // A hack that allows redirectUri to be configurable\n      // but default to the superclass\n      return this._super();\n    })\n  });\n  var _default = _exports.default = LinkedInOauth2;\n});","define(\"torii/providers/oauth1\", [\"exports\", \"torii/providers/base\", \"torii/configuration\"], function (_exports, _base, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-get */\n  /*\n   * This class implements authentication against an API\n   * using the OAuth1.0a request token flow in a popup window.\n   */\n\n  var Oauth1 = _base.default.extend({\n    name: 'oauth1',\n    requestTokenUri: (0, _configuration.configurable)('requestTokenUri'),\n    buildRequestTokenUrl() {\n      return this.get('requestTokenUri');\n    },\n    open(options) {\n      var name = this.get('name'),\n        url = this.buildRequestTokenUrl();\n      return this.get('popup').open(url, ['code'], options).then(function (authData) {\n        authData.provider = name;\n        return authData;\n      });\n    }\n  });\n  var _default = _exports.default = Oauth1;\n});","define(\"torii/providers/oauth2-bearer\", [\"exports\", \"torii/providers/oauth2-code\"], function (_exports, _oauth2Code) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-get */\n\n  var Oauth2Bearer = _oauth2Code.default.extend({\n    responseType: 'token',\n    /**\n     * @method open\n     * @return {Promise<object>} If the authorization attempt is a success,\n     * the promise will resolve an object containing the following keys:\n     *   - authorizationToken: The `token` from the 3rd-party provider\n     *   - provider: The name of the provider (i.e., google-oauth2)\n     *   - redirectUri: The redirect uri (some server-side exchange flows require this)\n     * If there was an error or the user either canceled the authorization or\n     * closed the popup window, the promise rejects.\n     */\n    open(options) {\n      var name = this.get('name'),\n        url = this.buildUrl(),\n        redirectUri = this.get('redirectUri'),\n        responseParams = this.get('responseParams');\n      return this.get('popup').open(url, responseParams, options).then(function (authData) {\n        var missingResponseParams = [];\n        responseParams.forEach(function (param) {\n          if (authData[param] === undefined) {\n            missingResponseParams.push(param);\n          }\n        });\n        if (missingResponseParams.length) {\n          throw new Error('The response from the provider is missing ' + 'these required response params: ' + missingResponseParams.join(', '));\n        }\n        return {\n          authorizationToken: authData,\n          provider: name,\n          redirectUri: redirectUri\n        };\n      });\n    }\n  });\n  var _default = _exports.default = Oauth2Bearer;\n});","define(\"torii/providers/oauth2-code\", [\"exports\", \"@ember/object\", \"torii/providers/base\", \"torii/configuration\", \"torii/lib/query-string\", \"torii/lib/required-property\", \"torii/lib/random-url-safe\"], function (_exports, _object, _base, _configuration, _queryString, _requiredProperty, _randomUrlSafe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/avoid-leaking-state-in-ember-objects, ember/no-get, ember/no-side-effects */\n\n  function currentUrl() {\n    var url = [window.location.protocol, '//', window.location.host, window.location.pathname].join('');\n    if (url.substr(-1) !== '/') {\n      url += '/';\n    }\n    return url;\n  }\n\n  /**\n   * Implements authorization against an OAuth2 API\n   * using the OAuth2 authorization flow in a popup window.\n   *\n   * Subclasses should extend this class and define the following properties:\n   *   - requiredUrlParams: If there are additional required params\n   *   - optionalUrlParams: If there are additional optional params\n   *   - name: The name used in the configuration `providers` key\n   *   - baseUrl: The base url for OAuth2 code-based flow at the 3rd-party\n   *\n   *   If there are any additional required or optional url params,\n   *   include default values for them (if appropriate).\n   *\n   * @class Oauth2Provider\n   */\n  var Oauth2 = _base.default.extend({\n    concatenatedProperties: ['requiredUrlParams', 'optionalUrlParams'],\n    /**\n     * The parameters that must be included as query params in the 3rd-party provider's url that we build.\n     * These properties are in the format that should be in the URL (i.e.,\n     * usually underscored), but they are looked up as camelCased properties\n     * on the instance of this provider. For example, if the 'client_id' is\n     * a required url param, when building the URL we look up the value of\n     * the 'clientId' (camel-cased) property and put it in the URL as\n     * 'client_id=' + this.get('clientId')\n     * Subclasses can add additional required url params.\n     *\n     * @property {array} requiredUrlParams\n     */\n    requiredUrlParams: ['response_type', 'client_id', 'redirect_uri', 'state'],\n    /**\n     * Parameters that may be included in the 3rd-party provider's url that we build.\n     * Subclasses can add additional optional url params.\n     *\n     * @property {array} optionalUrlParams\n     */\n    optionalUrlParams: ['scope'],\n    /**\n     * The base url for the 3rd-party provider's OAuth2 flow (example: 'https://github.com/login/oauth/authorize')\n     *\n     * @property {string} baseUrl\n     */\n    baseUrl: (0, _requiredProperty.default)(),\n    /**\n     * The apiKey (sometimes called app id) that identifies the registered application at the 3rd-party provider\n     *\n     * @property {string} apiKey\n     */\n    apiKey: (0, _configuration.configurable)('apiKey'),\n    scope: (0, _configuration.configurable)('scope', null),\n    clientId: (0, _configuration.configurable)('clientId', function () {\n      return this.get('apiKey');\n    }),\n    state: (0, _configuration.configurable)('state', function () {\n      return this.get('randomState');\n    }),\n    _randomState: null,\n    randomState: (0, _object.computed)('_randomState', function () {\n      var state = this.get('_randomState');\n      if (!state) {\n        state = (0, _randomUrlSafe.default)(16);\n        this.set('_randomState', state); /* eslint-disable-line ember/no-side-effects */\n      }\n      return state;\n    }),\n    /**\n     * The oauth response type we expect from the third party provider. Hardcoded to 'code' for oauth2-code flows\n     * @property {string} responseType\n     */\n    responseType: 'code',\n    /**\n     * List of parameters that we expect\n     * to see in the query params that the 3rd-party provider appends to\n     * our `redirectUri` after the user confirms/denies authorization.\n     * If any of these parameters are missing, the OAuth attempt is considered\n     * to have failed (usually this is due to the user hitting the 'cancel' button)\n     *\n     * @property {array} responseParams\n     */\n    responseParams: (0, _requiredProperty.default)(),\n    redirectUri: (0, _configuration.configurable)('redirectUri', function () {\n      return `${currentUrl()}torii/redirect.html`;\n    }),\n    buildQueryString() {\n      var requiredParams = this.get('requiredUrlParams'),\n        optionalParams = this.get('optionalUrlParams');\n      var qs = _queryString.default.create({\n        provider: this,\n        requiredParams: requiredParams,\n        optionalParams: optionalParams\n      });\n      return qs.toString();\n    },\n    buildUrl() {\n      var base = this.get('baseUrl'),\n        qs = this.buildQueryString();\n      return [base, qs].join('?');\n    },\n    /**\n     * @method open\n     * @return {Promise<object>} If the authorization attempt is a success,\n     * the promise will resolve an object containing the following keys:\n     *   - authorizationCode: The `code` from the 3rd-party provider\n     *   - provider: The name of the provider (i.e., google-oauth2)\n     *   - redirectUri: The redirect uri (some server-side exchange flows require this)\n     * If there was an error or the user either canceled the authorization or\n     * closed the popup window, the promise rejects.\n     */\n    open(options) {\n      var name = this.get('name'),\n        url = this.buildUrl(),\n        redirectUri = this.get('redirectUri'),\n        responseParams = this.get('responseParams'),\n        responseType = this.get('responseType'),\n        state = this.get('state'),\n        shouldCheckState = responseParams.indexOf('state') !== -1;\n      return this.get('popup').open(url, responseParams, options).then(function (authData) {\n        var missingResponseParams = [];\n        responseParams.forEach(function (param) {\n          if (authData[param] === undefined) {\n            missingResponseParams.push(param);\n          }\n        });\n        if (missingResponseParams.length) {\n          throw new Error('The response from the provider is missing ' + 'these required response params: ' + missingResponseParams.join(', '));\n        }\n        if (shouldCheckState && authData.state !== state) {\n          throw new Error('The response from the provider has an incorrect ' + 'session state param: should be \"' + state + '\", ' + 'but is \"' + authData.state + '\"');\n        }\n        return {\n          authorizationCode: decodeURIComponent(authData[responseType]),\n          provider: name,\n          redirectUri: redirectUri\n        };\n      });\n    }\n  });\n  var _default = _exports.default = Oauth2;\n});","define(\"torii/providers/stripe-connect\", [\"exports\", \"torii/providers/oauth2-code\", \"torii/configuration\"], function (_exports, _oauth2Code, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/avoid-leaking-state-in-ember-objects */\n  var _default = _exports.default = _oauth2Code.default.extend({\n    name: 'stripe-connect',\n    baseUrl: 'https://connect.stripe.com/oauth/authorize',\n    // additional url params that this provider requires\n    requiredUrlParams: [],\n    optionalUrlParams: ['stripe_landing', 'always_prompt'],\n    responseParams: ['code', 'state'],\n    scope: (0, _configuration.configurable)('scope', 'read_write'),\n    stripeLanding: (0, _configuration.configurable)('stripeLanding', ''),\n    alwaysPrompt: (0, _configuration.configurable)('alwaysPrompt', 'false'),\n    redirectUri: (0, _configuration.configurable)('redirectUri', function () {\n      // A hack that allows redirectUri to be configurable\n      // but default to the superclass\n      return this._super();\n    })\n  });\n});","define(\"torii/providers/twitter-oauth1\", [\"exports\", \"torii/providers/oauth1\"], function (_exports, _oauth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _oauth.default.extend({\n    name: 'twitter'\n  });\n});","define(\"torii/redirect-handler\", [\"exports\", \"rsvp\", \"@ember/object\", \"torii/mixins/ui-service-mixin\", \"torii/configuration\"], function (_exports, _rsvp, _object, _uiServiceMixin, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ToriiRedirectError = void 0;\n  /* eslint-disable ember/no-mixins, ember/no-classic-classes */\n  /**\n   * RedirectHandler will attempt to find\n   * these keys in the URL. If found,\n   * this is an indication to Torii that\n   * the Ember app has loaded inside a popup\n   * and should postMessage this data to window.opener\n   */\n\n  class ToriiRedirectError extends Error {\n    constructor() {\n      super(...arguments);\n      this.name = 'ToriiRedirectError';\n    }\n  }\n  _exports.ToriiRedirectError = ToriiRedirectError;\n  var RedirectHandler = _object.default.extend({\n    run() {\n      var windowObject = this.windowObject;\n      return new _rsvp.Promise(function (resolve, reject) {\n        var pendingRequestKey = windowObject.localStorage.getItem(_uiServiceMixin.CURRENT_REQUEST_KEY);\n        windowObject.localStorage.removeItem(_uiServiceMixin.CURRENT_REQUEST_KEY);\n        if (pendingRequestKey) {\n          var url = windowObject.location.toString();\n          windowObject.localStorage.setItem(_uiServiceMixin.WARNING_KEY, 'true');\n          windowObject.localStorage.setItem(pendingRequestKey, url);\n          var remoteServiceName = _configuration.default.remoteServiceName || 'popup';\n          if (remoteServiceName === 'popup') {\n            // NOTE : If a single provider has been configured to use the 'iframe'\n            // service, this next line will still be called. It will just fail silently.\n            windowObject.close();\n          }\n        } else {\n          reject(new ToriiRedirectError('Not a torii popup'));\n        }\n      });\n    }\n  });\n  RedirectHandler.reopenClass({\n    // untested\n    handle(windowObject) {\n      var handler = RedirectHandler.create({\n        windowObject: windowObject\n      });\n      return handler.run();\n    }\n  });\n  var _default = _exports.default = RedirectHandler;\n});","define(\"torii/router-dsl-ext\", [\"ember\", \"@ember/routing/router\", \"torii/compat/get-router-lib\"], function (_ember, _router, _getRouterLib) {\n  \"use strict\";\n\n  var proto = _ember.default.RouterDSL.prototype;\n  var currentMap = null;\n  proto.authenticatedRoute = function () {\n    this.route.apply(this, arguments);\n    currentMap.push(arguments[0]);\n  };\n  _router.default.reopen({\n    _initRouterJs() {\n      currentMap = [];\n      this._super.apply(this, arguments);\n      let routerLib = (0, _getRouterLib.default)(this);\n      routerLib.authenticatedRoutes = currentMap;\n    }\n  });\n});","define(\"torii/routing/application-route-mixin\", [\"exports\", \"@ember/object/mixin\", \"torii/configuration\", \"@ember/application\"], function (_exports, _mixin, _configuration, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-new-mixins */\n  var _default = _exports.default = _mixin.default.create({\n    beforeModel(transition) {\n      var route = this;\n      var superBefore = this._super.apply(this, arguments);\n      if (superBefore && superBefore.then) {\n        return superBefore.then(function () {\n          return route.checkLogin(transition);\n        });\n      } else {\n        return route.checkLogin(transition);\n      }\n    },\n    checkLogin() {\n      let configuration = (0, _configuration.getConfiguration)();\n      let sessionService = (0, _application.getOwner)(this).lookup(`service:${configuration.sessionServiceName}`);\n      return sessionService.fetch().catch(function () {\n        // no-op, cause no session is ok\n      });\n    }\n  });\n});","define(\"torii/routing/authenticated-route-mixin\", [\"exports\", \"rsvp\", \"@ember/object/mixin\", \"@ember/object\", \"@ember/application\", \"torii/configuration\"], function (_exports, _rsvp, _mixin, _object, _application, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-new-mixins, ember/no-get */\n  var _default = _exports.default = _mixin.default.create({\n    beforeModel(transition) {\n      var route = this;\n      var superBefore = this._super.apply(this, arguments);\n      if (superBefore && superBefore.then) {\n        return superBefore.then(function () {\n          return route.authenticate(transition);\n        });\n      } else {\n        return route.authenticate(transition);\n      }\n    },\n    authenticate(transition) {\n      var configuration = (0, _configuration.getConfiguration)();\n      var route = this,\n        session = (0, _application.getOwner)(this).lookup(`service:${configuration.sessionServiceName}`),\n        isAuthenticated = (0, _object.get)(session, 'isAuthenticated'),\n        hasAttemptedAuth = isAuthenticated !== undefined;\n      if (!isAuthenticated) {\n        session.attemptedTransition = transition;\n        if (hasAttemptedAuth) {\n          return route.accessDenied(transition);\n        } else {\n          return session.fetch().catch(function () {\n            return route.accessDenied(session.attemptedTransition);\n          });\n        }\n      } else {\n        // no-op; cause the user is already authenticated\n        return (0, _rsvp.resolve)();\n      }\n    },\n    accessDenied(transition) {\n      transition.send('accessDenied', transition);\n    }\n  });\n});","define(\"torii/services/iframe\", [\"exports\", \"@ember/object/evented\", \"@ember/object\", \"torii/mixins/ui-service-mixin\"], function (_exports, _evented, _object, _uiServiceMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-mixins, ember/no-classic-classes */\n\n  var Iframe = _object.default.extend(_evented.default, _uiServiceMixin.default, {\n    openRemote(url) {\n      this.remote = document.createElement('iframe');\n      this.remote.src = url;\n      this.remote.id = 'torii-iframe';\n      var iframeParent = '.torii-iframe-placeholder';\n      document.querySelector(iframeParent).appendChild(this.remote);\n    },\n    closeRemote() {\n      this.remote.remove();\n    },\n    pollRemote() {\n      if (document.querySelector('#torii-iframe') === null) {\n        this.trigger('didClose');\n      }\n    }\n  });\n  var _default = _exports.default = Iframe;\n});","define(\"torii/services/popup\", [\"exports\", \"@ember/object/evented\", \"@ember/object\", \"torii/mixins/ui-service-mixin\"], function (_exports, _evented, _object, _uiServiceMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-mixins, no-prototype-builtins, ember/no-classic-classes */\n\n  function stringifyOptions(options) {\n    var optionsStrings = [];\n    for (var key in options) {\n      if (options.hasOwnProperty(key)) {\n        var value;\n        switch (options[key]) {\n          case true:\n            value = '1';\n            break;\n          case false:\n            value = '0';\n            break;\n          default:\n            value = options[key];\n        }\n        optionsStrings.push(key + '=' + value);\n      }\n    }\n    return optionsStrings.join(',');\n  }\n  function prepareOptions(options) {\n    var width = options.width || 500,\n      height = options.height || 500;\n    return Object.assign({}, {\n      left: screen.width / 2 - width / 2,\n      top: screen.height / 2 - height / 2,\n      width: width,\n      height: height\n    }, options);\n  }\n  var Popup = _object.default.extend(_evented.default, _uiServiceMixin.default, {\n    // Open a popup window.\n    openRemote(url, pendingRequestKey, options) {\n      var optionsString = stringifyOptions(prepareOptions(options || {}));\n      this.remote = window.open(url, pendingRequestKey, optionsString);\n    },\n    closeRemote() {},\n    pollRemote() {\n      if (!this.remote) {\n        return;\n      }\n      if (this.remote.closed) {\n        this.trigger('didClose');\n      }\n    }\n  });\n  var _default = _exports.default = Popup;\n});","define(\"torii/services/torii-session\", [\"exports\", \"ember\", \"rsvp\", \"@ember/service\", \"@ember/object/evented\", \"@ember/object\", \"torii/session/state-machine\", \"torii/lib/container-utils\"], function (_exports, _ember, _rsvp, _service, _evented, _object, _stateMachine, _containerUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-classic-classes, ember/no-get */\n\n  function lookupAdapter(container, authenticationType) {\n    var adapter = container.lookup('torii-adapter:' + authenticationType);\n    if (!adapter) {\n      adapter = container.lookup('torii-adapter:application');\n    }\n    return adapter;\n  }\n  var _default = _exports.default = _service.default.extend(_ember.default._ProxyMixin, {\n    state: null,\n    stateMachine: (0, _object.computed)(function () {\n      return (0, _stateMachine.default)(this);\n    }),\n    setupStateProxy: (0, _evented.on)('init', function () {\n      var sm = this.get('stateMachine'),\n        proxy = this;\n      sm.on('didTransition', function () {\n        proxy.set('content', sm.state);\n        proxy.set('currentStateName', sm.currentStateName);\n      });\n    }),\n    // Make these properties one-way.\n    setUnknownProperty() {},\n    open(provider, options) {\n      var owner = (0, _containerUtils.getOwner)(this),\n        torii = (0, _containerUtils.getOwner)(this).lookup('service:torii'),\n        sm = this.get('stateMachine');\n      return new _rsvp.Promise(function (resolve) {\n        sm.send('startOpen');\n        resolve();\n      }).then(function () {\n        return torii.open(provider, options);\n      }).then(function (authorization) {\n        var adapter = lookupAdapter(owner, provider);\n        return adapter.open(authorization);\n      }).then(function (user) {\n        sm.send('finishOpen', user);\n        return user;\n      }).catch(function (error) {\n        sm.send('failOpen', error);\n        return (0, _rsvp.reject)(error);\n      });\n    },\n    fetch(provider, options) {\n      var owner = (0, _containerUtils.getOwner)(this),\n        sm = this.get('stateMachine');\n      return new _rsvp.Promise(function (resolve) {\n        sm.send('startFetch');\n        resolve();\n      }).then(function () {\n        var adapter = lookupAdapter(owner, provider);\n        return adapter.fetch(options);\n      }).then(function (data) {\n        sm.send('finishFetch', data);\n        return;\n      }).catch(function (error) {\n        sm.send('failFetch', error);\n        return (0, _rsvp.reject)(error);\n      });\n    },\n    close(provider, options) {\n      var owner = (0, _containerUtils.getOwner)(this),\n        sm = this.get('stateMachine');\n      return new _rsvp.Promise(function (resolve) {\n        sm.send('startClose');\n        resolve();\n      }).then(function () {\n        var adapter = lookupAdapter(owner, provider);\n        return adapter.close(options);\n      }).then(function () {\n        sm.send('finishClose');\n      }).catch(function (error) {\n        sm.send('failClose', error);\n        return (0, _rsvp.reject)(error);\n      });\n    }\n  });\n});","define(\"torii/services/torii\", [\"exports\", \"@ember/service\", \"rsvp\", \"torii/lib/container-utils\"], function (_exports, _service, _rsvp, _containerUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-classic-classes */\n\n  function lookupProvider(container, providerName) {\n    return container.lookup('torii-provider:' + providerName);\n  }\n  function proxyToProvider(methodName, requireMethod) {\n    return function (providerName, options) {\n      var owner = (0, _containerUtils.getOwner)(this);\n      var provider = lookupProvider(owner, providerName);\n      if (!provider) {\n        throw new Error(\"Expected a provider named '\" + providerName + \"' \" + ', did you forget to register it?');\n      }\n      if (!provider[methodName]) {\n        if (requireMethod) {\n          throw new Error(\"Expected provider '\" + providerName + \"' to define \" + \"the '\" + methodName + \"' method.\");\n        } else {\n          return _rsvp.Promise.resolve({});\n        }\n      }\n      return new _rsvp.Promise(function (resolve) {\n        resolve(provider[methodName](options));\n      });\n    };\n  }\n\n  /**\n   * Torii is an engine for authenticating against various\n   * providers. For example, you can open a session with\n   * Linked In via Oauth2 and authorization codes by doing\n   * the following:\n   *\n   *     var options = {foo: 'bar'};\n   *     Torii.open('linked-in-oauth2', options).then(function(authData){\n   *       console.log(authData.authorizationCode);\n   *     });\n   *\n   * For traditional authentication flows, you will often use\n   * Torii via the Torii.Session API.\n   *\n   * @class Torii\n   */\n  var _default = _exports.default = _service.default.extend({\n    /**\n     * Open an authorization against an API. A promise resolving\n     * with an authentication response object is returned. These\n     * response objects,  are found in the \"torii/authentications\"\n     * namespace.\n     *\n     * @method open\n     * @param {String} providerName The provider to call `open` on\n     * @param {Object} [options] options to pass to the provider's `open` method\n     * @return {Ember.RSVP.Promise} Promise resolving to an authentication object\n     */\n    open: proxyToProvider('open', true),\n    /**\n     * Return a promise which will resolve if the provider has\n     * already been opened.\n     *\n     * @method fetch\n     * @param {String} providerName The provider to call `fetch` on\n     * @param {Object} [options] options to pass to the provider's `fetch` method\n     * @return {Ember.RSVP.Promise} Promise resolving to an authentication object\n     */\n    fetch: proxyToProvider('fetch'),\n    /**\n     * Return a promise which will resolve when the provider has been\n     * closed. Closing a provider may not always be a meaningful action,\n     * and may be better handled by torii's session management instead.\n     *\n     * @method close\n     * @param {String} providerName The provider to call `close` on\n     * @param {Object} [options] options to pass to the provider's `close` method\n     * @return {Ember.RSVP.Promise} Promise resolving when the provider is closed\n     */\n    close: proxyToProvider('close')\n  });\n});","define(\"torii/session/state-machine\", [\"exports\", \"torii/lib/state-machine\", \"@ember/object\"], function (_exports, _stateMachine, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  /* eslint-disable no-prototype-builtins */\n\n  var transitionTo = _stateMachine.default.transitionTo;\n  function copyProperties(data, target) {\n    for (var key in data) {\n      if (data.hasOwnProperty(key)) {\n        (0, _object.set)(target, key, data[key]);\n      }\n    }\n  }\n  function transitionToClearing(target, propertiesToClear) {\n    return function () {\n      for (var i; i < propertiesToClear.length; i++) {\n        this[propertiesToClear[i]] = null;\n      }\n      this.transitionTo(target);\n    };\n  }\n  function _default(session) {\n    var sm = new _stateMachine.default({\n      initialState: 'unauthenticated',\n      states: {\n        unauthenticated: {\n          errorMessage: null,\n          isAuthenticated: false,\n          // Actions\n          startOpen: transitionToClearing('opening', ['errorMessage']),\n          startFetch: transitionToClearing('fetching', ['errorMessage'])\n        },\n        authenticated: {\n          // Properties\n          currentUser: null,\n          isAuthenticated: true,\n          startClose: transitionTo('closing')\n        },\n        opening: {\n          isWorking: true,\n          isOpening: true,\n          // Actions\n          finishOpen(data) {\n            copyProperties(data, this.states['authenticated']);\n            this.transitionTo('authenticated');\n          },\n          failOpen(errorMessage) {\n            this.states['unauthenticated'].errorMessage = errorMessage;\n            this.transitionTo('unauthenticated');\n          }\n        },\n        fetching: {\n          isWorking: true,\n          isFetching: true,\n          // Actions\n          finishFetch(data) {\n            copyProperties(data, this.states['authenticated']);\n            this.transitionTo('authenticated');\n          },\n          failFetch(errorMessage) {\n            this.states['unauthenticated'].errorMessage = errorMessage;\n            this.transitionTo('unauthenticated');\n          }\n        },\n        closing: {\n          isWorking: true,\n          isClosing: true,\n          isAuthenticated: true,\n          // Actions\n          finishClose() {\n            this.transitionTo('unauthenticated');\n          },\n          failClose(errorMessage) {\n            this.states['unauthenticated'].errorMessage = errorMessage;\n            this.transitionTo('unauthenticated');\n          }\n        }\n      }\n    });\n    sm.session = session;\n    return sm;\n  }\n});","define(\"tracked-maps-and-sets/-private/map\", [\"exports\", \"ember-tracked-storage-polyfill\"], function (_exports, _emberTrackedStoragePolyfill) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TrackedWeakMap = _exports.TrackedMap = void 0;\n  class TrackedMap {\n    constructor(existing) {\n      this.collection = (0, _emberTrackedStoragePolyfill.createStorage)(null, () => false);\n      this.storages = new Map();\n      // TypeScript doesn't correctly resolve the overloads for calling the `Map`\n      // constructor for the no-value constructor. This resolves that.\n      this.vals = existing ? new Map(existing) : new Map();\n    }\n    readStorageFor(key) {\n      const {\n        storages\n      } = this;\n      let storage = storages.get(key);\n      if (storage === undefined) {\n        storage = (0, _emberTrackedStoragePolyfill.createStorage)(null, () => false);\n        storages.set(key, storage);\n      }\n      (0, _emberTrackedStoragePolyfill.getValue)(storage);\n    }\n    dirtyStorageFor(key) {\n      const storage = this.storages.get(key);\n      if (storage) {\n        (0, _emberTrackedStoragePolyfill.setValue)(storage, null);\n      }\n    }\n    // **** KEY GETTERS ****\n    get(key) {\n      // entangle the storage for the key\n      this.readStorageFor(key);\n      return this.vals.get(key);\n    }\n    has(key) {\n      this.readStorageFor(key);\n      return this.vals.has(key);\n    }\n    // **** ALL GETTERS ****\n    entries() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals.entries();\n    }\n    keys() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals.keys();\n    }\n    values() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals.values();\n    }\n    forEach(fn) {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      this.vals.forEach(fn);\n    }\n    get size() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals.size;\n    }\n    [Symbol.iterator]() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals[Symbol.iterator]();\n    }\n    get [Symbol.toStringTag]() {\n      return this.vals[Symbol.toStringTag];\n    }\n    // **** KEY SETTERS ****\n    set(key, value) {\n      this.dirtyStorageFor(key);\n      (0, _emberTrackedStoragePolyfill.setValue)(this.collection, null);\n      this.vals.set(key, value);\n      return this;\n    }\n    delete(key) {\n      this.dirtyStorageFor(key);\n      (0, _emberTrackedStoragePolyfill.setValue)(this.collection, null);\n      return this.vals.delete(key);\n    }\n    // **** ALL SETTERS ****\n    clear() {\n      this.storages.forEach(s => (0, _emberTrackedStoragePolyfill.setValue)(s, null));\n      (0, _emberTrackedStoragePolyfill.setValue)(this.collection, null);\n      this.vals.clear();\n    }\n  }\n  // So instanceof works\n  _exports.TrackedMap = TrackedMap;\n  Object.setPrototypeOf(TrackedMap.prototype, Map.prototype);\n  class TrackedWeakMap {\n    constructor(existing) {\n      this.storages = new WeakMap();\n      // TypeScript doesn't correctly resolve the overloads for calling the `Map`\n      // constructor for the no-value constructor. This resolves that.\n      this.vals = existing ? new WeakMap(existing) : new WeakMap();\n    }\n    readStorageFor(key) {\n      const {\n        storages\n      } = this;\n      let storage = storages.get(key);\n      if (storage === undefined) {\n        storage = (0, _emberTrackedStoragePolyfill.createStorage)(null, () => false);\n        storages.set(key, storage);\n      }\n      (0, _emberTrackedStoragePolyfill.getValue)(storage);\n    }\n    dirtyStorageFor(key) {\n      const storage = this.storages.get(key);\n      if (storage) {\n        (0, _emberTrackedStoragePolyfill.setValue)(storage, null);\n      }\n    }\n    get(key) {\n      this.readStorageFor(key);\n      return this.vals.get(key);\n    }\n    has(key) {\n      this.readStorageFor(key);\n      return this.vals.has(key);\n    }\n    set(key, value) {\n      this.dirtyStorageFor(key);\n      this.vals.set(key, value);\n      return this;\n    }\n    delete(key) {\n      this.dirtyStorageFor(key);\n      return this.vals.delete(key);\n    }\n    get [Symbol.toStringTag]() {\n      return this.vals[Symbol.toStringTag];\n    }\n  }\n  // So instanceof works\n  _exports.TrackedWeakMap = TrackedWeakMap;\n  Object.setPrototypeOf(TrackedWeakMap.prototype, WeakMap.prototype);\n});","define(\"tracked-maps-and-sets/-private/set\", [\"exports\", \"ember-tracked-storage-polyfill\"], function (_exports, _emberTrackedStoragePolyfill) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TrackedWeakSet = _exports.TrackedSet = void 0;\n  class TrackedSet {\n    constructor(existing) {\n      this.collection = (0, _emberTrackedStoragePolyfill.createStorage)(null, () => false);\n      this.storages = new Map();\n      this.vals = new Set(existing);\n    }\n    storageFor(key) {\n      const storages = this.storages;\n      let storage = storages.get(key);\n      if (storage === undefined) {\n        storage = (0, _emberTrackedStoragePolyfill.createStorage)(null, () => false);\n        storages.set(key, storage);\n      }\n      return storage;\n    }\n    dirtyStorageFor(key) {\n      const storage = this.storages.get(key);\n      if (storage) {\n        (0, _emberTrackedStoragePolyfill.setValue)(storage, null);\n      }\n    }\n    // **** KEY GETTERS ****\n    has(value) {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.storageFor(value));\n      return this.vals.has(value);\n    }\n    // **** ALL GETTERS ****\n    entries() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals.entries();\n    }\n    keys() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals.keys();\n    }\n    values() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals.values();\n    }\n    forEach(fn) {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      this.vals.forEach(fn);\n    }\n    get size() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals.size;\n    }\n    [Symbol.iterator]() {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.collection);\n      return this.vals[Symbol.iterator]();\n    }\n    get [Symbol.toStringTag]() {\n      return this.vals[Symbol.toStringTag];\n    }\n    // **** KEY SETTERS ****\n    add(value) {\n      this.dirtyStorageFor(value);\n      (0, _emberTrackedStoragePolyfill.setValue)(this.collection, null);\n      this.vals.add(value);\n      return this;\n    }\n    delete(value) {\n      this.dirtyStorageFor(value);\n      (0, _emberTrackedStoragePolyfill.setValue)(this.collection, null);\n      return this.vals.delete(value);\n    }\n    // **** ALL SETTERS ****\n    clear() {\n      this.storages.forEach(s => (0, _emberTrackedStoragePolyfill.setValue)(s, null));\n      (0, _emberTrackedStoragePolyfill.setValue)(this.collection, null);\n      this.vals.clear();\n    }\n  }\n  // So instanceof works\n  _exports.TrackedSet = TrackedSet;\n  Object.setPrototypeOf(TrackedSet.prototype, Set.prototype);\n  class TrackedWeakSet {\n    constructor(values) {\n      this.storages = new WeakMap();\n      this.vals = new WeakSet(values);\n    }\n    storageFor(key) {\n      const storages = this.storages;\n      let storage = storages.get(key);\n      if (storage === undefined) {\n        storage = (0, _emberTrackedStoragePolyfill.createStorage)(null, () => false);\n        storages.set(key, storage);\n      }\n      return storage;\n    }\n    dirtyStorageFor(key) {\n      const storage = this.storages.get(key);\n      if (storage) {\n        (0, _emberTrackedStoragePolyfill.setValue)(storage, null);\n      }\n    }\n    has(value) {\n      (0, _emberTrackedStoragePolyfill.getValue)(this.storageFor(value));\n      return this.vals.has(value);\n    }\n    add(value) {\n      // Add to vals first to get better error message\n      this.vals.add(value);\n      this.dirtyStorageFor(value);\n      return this;\n    }\n    delete(value) {\n      this.dirtyStorageFor(value);\n      return this.vals.delete(value);\n    }\n    get [Symbol.toStringTag]() {\n      return this.vals[Symbol.toStringTag];\n    }\n  }\n  // So instanceof works\n  _exports.TrackedWeakSet = TrackedWeakSet;\n  Object.setPrototypeOf(TrackedWeakSet.prototype, WeakSet.prototype);\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, \"TrackedSet\", {\n    enumerable: true,\n    get: function () {\n      return _set.TrackedSet;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedWeakMap\", {\n    enumerable: true,\n    get: function () {\n      return _map.TrackedWeakMap;\n    }\n  });\n  Object.defineProperty(_exports, \"TrackedWeakSet\", {\n    enumerable: true,\n    get: function () {\n      return _set.TrackedWeakSet;\n    }\n  });\n});","\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5yjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrpBA;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;;AChQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3vCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjiEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChzCA;AACA;AACA;AACA;AACA;AACA;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;;AC7QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpqCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACt9LA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClwBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC71CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3qBA;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;;AC3JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACt0OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC5MA;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;;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;;ACtHA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACj7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACtKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrqDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClgBA;AACA;AACA;AACA;AACA;AACA;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;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACxBA;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;;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;;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;;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;;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;;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;;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;;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;;ACnCA;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;;ACfA;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;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjOA;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;;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;;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;;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;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC3CA;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;;ACtBA;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;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;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;;ACvBA;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;AACA;AACA;AACA;AACA;AACA;;AC9BA;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;;ACfA;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;;ACtBA;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;;ACtBA;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;;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;;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;;AC5BA;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;;ACfA;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;;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;;ACXA;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;;AClBA;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;;AC7BA;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;;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;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;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;;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;;AC/BA;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;;ACvKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtFA;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;;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;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC9JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC99BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/0BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;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;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1NA;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;;AClBA;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;;AClBA;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;;ACRA;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;;AChCA;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;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5RA;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;;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;;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;;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;;ACrBA;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;;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;;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;;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;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;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;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;;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;;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;;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;;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;;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;;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;;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;;AC/TA;AACA;AACA;AACA;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACznCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACzGA;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;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;AC7FA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/XA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;;AC7BA;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;;ACpBA;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;;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;;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;;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;;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;;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;;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;;ACzBA;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;;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;;AC5BA;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;;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;;AC5BA;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;;ACpBA;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;;ACtBA;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;;ACpBA;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;;ACpBA;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;;ACpBA;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;;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;;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;;AC1FA;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;;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;;ACvOA;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;;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;;AC3BA;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;;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;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;;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;;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;;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;;AC1JA;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;;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;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;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;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC7BA;","file":"vendor.js"}