ember-source 7.4.0-alpha.1 → 7.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/dev/packages/@ember/-internals/deprecations/index.js +45 -0
  3. package/dist/dev/packages/@ember/-internals/glimmer/index.js +9 -9
  4. package/dist/dev/packages/@ember/-internals/metal/index.js +12 -12
  5. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +6 -6
  6. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +2 -2
  7. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/comparable.js +2 -2
  8. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +2 -2
  9. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +2 -2
  10. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
  11. package/dist/dev/packages/@ember/-internals/views/index.js +1 -0
  12. package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +2 -2
  13. package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +1 -1
  14. package/dist/dev/packages/@ember/-internals/views/lib/views/core-view-utils.js +14 -0
  15. package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +25 -21
  16. package/dist/dev/packages/@ember/-internals/views/lib/views/states.js +5 -2
  17. package/dist/dev/packages/@ember/application/index.js +1 -1
  18. package/dist/dev/packages/@ember/application/instance.js +16 -13
  19. package/dist/dev/packages/@ember/application/namespace.js +1 -1
  20. package/dist/dev/packages/@ember/array/index.js +8 -8
  21. package/dist/dev/packages/@ember/array/proxy.js +8 -5
  22. package/dist/dev/packages/@ember/component/helper.js +2 -2
  23. package/dist/dev/packages/@ember/component/index.js +7 -7
  24. package/dist/dev/packages/@ember/component/template-only.js +1 -1
  25. package/dist/dev/packages/@ember/controller/index.js +4 -4
  26. package/dist/dev/packages/@ember/engine/index.js +2 -2
  27. package/dist/dev/packages/@ember/enumerable/index.js +2 -2
  28. package/dist/dev/packages/@ember/enumerable/mutable.js +2 -2
  29. package/dist/dev/packages/@ember/helper/index.js +8 -8
  30. package/dist/dev/packages/@ember/modifier/index.js +2 -2
  31. package/dist/dev/packages/@ember/modifier/on.js +1 -1
  32. package/dist/dev/packages/@ember/object/-internals.js +1 -1
  33. package/dist/dev/packages/@ember/object/computed.js +2 -2
  34. package/dist/dev/packages/@ember/object/core.js +7 -7
  35. package/dist/dev/packages/@ember/object/evented.js +3 -71
  36. package/dist/dev/packages/@ember/object/events.js +17 -1
  37. package/dist/dev/packages/@ember/object/index.js +4 -4
  38. package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +3 -3
  39. package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +1 -1
  40. package/dist/dev/packages/@ember/object/mixin.js +11 -592
  41. package/dist/dev/packages/@ember/object/observable.js +7 -7
  42. package/dist/dev/packages/@ember/object/observers.js +1 -1
  43. package/dist/dev/packages/@ember/object/promise-proxy-mixin.js +10 -4
  44. package/dist/dev/packages/@ember/object/proxy.js +8 -1
  45. package/dist/dev/packages/@ember/renderer/index.js +1 -1
  46. package/dist/dev/packages/@ember/routing/index.js +1 -1
  47. package/dist/dev/packages/@ember/routing/lib/routing-service.js +2 -2
  48. package/dist/dev/packages/@ember/routing/route.js +34 -9
  49. package/dist/dev/packages/@ember/routing/router-service.js +71 -6
  50. package/dist/dev/packages/@ember/routing/router.js +32 -6
  51. package/dist/dev/packages/@ember/runloop/index.js +1 -1
  52. package/dist/dev/packages/@ember/service/index.js +1 -1
  53. package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
  54. package/dist/dev/packages/@glimmer/destroyable/index.js +43 -14
  55. package/dist/dev/packages/@glimmer/manager/index.js +3 -3
  56. package/dist/dev/packages/@glimmer/node/index.js +2 -2
  57. package/dist/dev/packages/@glimmer/program/index.js +1 -1
  58. package/dist/dev/packages/@glimmer/reference/index.js +2 -2
  59. package/dist/dev/packages/@glimmer/runtime/index.js +11 -11
  60. package/dist/dev/packages/@glimmer/tracking/index.js +1 -1
  61. package/dist/dev/packages/ember/version.js +1 -1
  62. package/dist/dev/packages/shared-chunks/{alias-3DBxvoim.js → alias-CSzPOqZC.js} +3 -3
  63. package/dist/dev/packages/shared-chunks/{api-BlZDPg1n.js → api-B0N4oLJG.js} +3 -3
  64. package/dist/dev/packages/shared-chunks/{api-Dz70AUL_.js → api-CK8FxDZV.js} +2 -0
  65. package/dist/dev/packages/shared-chunks/{api-DuLOZMO_.js → api-PyzZqscb.js} +2 -2
  66. package/dist/dev/packages/shared-chunks/{args-proxy-CS5Brs3_.js → args-proxy-C39f5UPF.js} +1 -1
  67. package/dist/dev/packages/shared-chunks/{arguments-DniR8eF2.js → arguments-LEaMCStR.js} +7 -3
  68. package/dist/dev/packages/shared-chunks/{array-DvaweI_T.js → array-CxZAmpTY.js} +2 -2
  69. package/dist/dev/packages/shared-chunks/{chain-tags-uWSImHzB.js → chain-tags-uYrtCZq1.js} +1 -1
  70. package/dist/dev/packages/shared-chunks/{computed-DGxbeUbf.js → computed-CXIM4Sjc.js} +3 -3
  71. package/dist/dev/packages/shared-chunks/{curly-BCD_vyHq.js → curly-DbGgDeux.js} +18 -17
  72. package/dist/dev/packages/shared-chunks/destroyable-key-BsfVBM7f.js +12 -0
  73. package/dist/dev/packages/shared-chunks/{element-Cgoi4ldD.js → element-DLh78jeJ.js} +3 -3
  74. package/dist/dev/packages/shared-chunks/evented-cAr_RO4u.js +100 -0
  75. package/dist/dev/packages/shared-chunks/{events-6aFVjD4k.js → events-e_Do73jh.js} +3 -0
  76. package/dist/dev/packages/shared-chunks/{get-zsePWrJL.js → get-fzmvcT9R.js} +3 -3
  77. package/dist/dev/packages/shared-chunks/{hash-BFu91gtE.js → hash-D1O4fZ99.js} +3 -3
  78. package/dist/dev/packages/shared-chunks/{index-Bv9SQpEx.js → index-D8La4_AP.js} +12 -12
  79. package/dist/dev/packages/shared-chunks/{injected_property-DbXd6Gax.js → injected_property-DyyWscn-.js} +1 -1
  80. package/dist/dev/packages/shared-chunks/{internal-DTOXyEGM.js → internal-CZjbPyX3.js} +2 -2
  81. package/dist/dev/packages/shared-chunks/{internal-helper-CKrni0b_.js → internal-helper-BkRVvV7p.js} +1 -1
  82. package/dist/dev/packages/shared-chunks/{invoke-CgF42joE.js → invoke-BPNErlhO.js} +2 -2
  83. package/dist/dev/packages/shared-chunks/mixin-M88Ghbyw.js +612 -0
  84. package/dist/dev/packages/shared-chunks/{namespace_search-BfvzEQzN.js → namespace_search-TFdmjK_a.js} +1 -1
  85. package/dist/dev/packages/shared-chunks/{not-0cVb-rLf.js → not-DNpbxEvj.js} +2 -2
  86. package/dist/dev/packages/shared-chunks/{observers-DMlX2nCi.js → observers-BsxKjjpC.js} +2 -2
  87. package/dist/dev/packages/shared-chunks/{on-CVIjn2C-.js → on-Dfya_9b_.js} +3 -3
  88. package/dist/dev/packages/shared-chunks/{outlet-BO5-QFmm.js → outlet-wIOlGMfN.js} +3 -3
  89. package/dist/dev/packages/shared-chunks/{property_set-DezUwDX4.js → property_set-CxxTalOq.js} +1 -1
  90. package/dist/dev/packages/shared-chunks/{reference-BqOLhKFy.js → reference-De0V3Vxp.js} +2 -0
  91. package/dist/dev/packages/shared-chunks/{rehydrate-builder-CsnkZkur.js → rehydrate-builder-B3wE1O5a.js} +1 -1
  92. package/dist/dev/packages/shared-chunks/{render-D_Rawf-r.js → render-CNXCIKfb.js} +16 -5
  93. package/dist/dev/packages/shared-chunks/{serialize-builder-D1oAeiyl.js → serialize-builder-v4amW_JS.js} +1 -1
  94. package/dist/{prod/packages/shared-chunks/set_properties-DYiBfzdk.js → dev/packages/shared-chunks/set_properties-KoN0q2wj.js} +2 -2
  95. package/dist/dev/packages/shared-chunks/{setup-registry-Ci8Af2Bz.js → setup-registry-BPb25ZxQ.js} +16 -15
  96. package/dist/dev/packages/shared-chunks/{template-only-Cu639ICT.js → template-only-DHdQevpG.js} +2 -2
  97. package/dist/dev/packages/shared-chunks/{textarea-DvS6Xmdh.js → textarea-Obtv2iCY.js} +3 -3
  98. package/dist/dev/packages/shared-chunks/{tracked-57EW14Ny.js → tracked-CLY9ttD5.js} +1 -1
  99. package/dist/dev/packages/shared-chunks/{unique-id-Csxuh1I7.js → unique-id-CdB2MG3m.js} +2 -2
  100. package/dist/prod/packages/@ember/-internals/deprecations/index.js +45 -0
  101. package/dist/prod/packages/@ember/-internals/glimmer/index.js +9 -9
  102. package/dist/prod/packages/@ember/-internals/metal/index.js +13 -13
  103. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +6 -6
  104. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +2 -2
  105. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/comparable.js +2 -2
  106. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +2 -2
  107. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +2 -2
  108. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
  109. package/dist/prod/packages/@ember/-internals/views/index.js +1 -0
  110. package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +2 -2
  111. package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +1 -1
  112. package/dist/prod/packages/@ember/-internals/views/lib/views/core-view-utils.js +14 -0
  113. package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +25 -21
  114. package/dist/prod/packages/@ember/-internals/views/lib/views/states.js +5 -2
  115. package/dist/prod/packages/@ember/application/index.js +1 -1
  116. package/dist/prod/packages/@ember/application/instance.js +14 -12
  117. package/dist/prod/packages/@ember/application/namespace.js +1 -1
  118. package/dist/prod/packages/@ember/array/index.js +8 -8
  119. package/dist/prod/packages/@ember/array/proxy.js +8 -5
  120. package/dist/prod/packages/@ember/component/helper.js +2 -2
  121. package/dist/prod/packages/@ember/component/index.js +8 -8
  122. package/dist/prod/packages/@ember/component/template-only.js +1 -1
  123. package/dist/prod/packages/@ember/controller/index.js +4 -4
  124. package/dist/prod/packages/@ember/engine/index.js +2 -2
  125. package/dist/prod/packages/@ember/enumerable/index.js +2 -2
  126. package/dist/prod/packages/@ember/enumerable/mutable.js +2 -2
  127. package/dist/prod/packages/@ember/helper/index.js +8 -8
  128. package/dist/prod/packages/@ember/modifier/index.js +2 -2
  129. package/dist/prod/packages/@ember/modifier/on.js +1 -1
  130. package/dist/prod/packages/@ember/object/-internals.js +1 -0
  131. package/dist/prod/packages/@ember/object/compat.js +1 -1
  132. package/dist/prod/packages/@ember/object/computed.js +2 -2
  133. package/dist/prod/packages/@ember/object/core.js +7 -7
  134. package/dist/prod/packages/@ember/object/evented.js +3 -71
  135. package/dist/prod/packages/@ember/object/events.js +17 -1
  136. package/dist/prod/packages/@ember/object/index.js +5 -5
  137. package/dist/prod/packages/@ember/object/internals.js +1 -0
  138. package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +3 -3
  139. package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +1 -1
  140. package/dist/prod/packages/@ember/object/mixin.js +9 -557
  141. package/dist/prod/packages/@ember/object/observable.js +7 -7
  142. package/dist/prod/packages/@ember/object/observers.js +1 -1
  143. package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +10 -4
  144. package/dist/prod/packages/@ember/object/proxy.js +8 -1
  145. package/dist/prod/packages/@ember/renderer/index.js +1 -1
  146. package/dist/prod/packages/@ember/routing/index.js +1 -1
  147. package/dist/prod/packages/@ember/routing/lib/routing-service.js +2 -2
  148. package/dist/prod/packages/@ember/routing/route.js +35 -10
  149. package/dist/prod/packages/@ember/routing/router-service.js +71 -6
  150. package/dist/prod/packages/@ember/routing/router.js +32 -6
  151. package/dist/prod/packages/@ember/runloop/index.js +1 -1
  152. package/dist/prod/packages/@ember/service/index.js +1 -1
  153. package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +3 -3
  154. package/dist/prod/packages/@glimmer/destroyable/index.js +37 -11
  155. package/dist/prod/packages/@glimmer/manager/index.js +3 -3
  156. package/dist/prod/packages/@glimmer/node/index.js +2 -2
  157. package/dist/prod/packages/@glimmer/program/index.js +1 -1
  158. package/dist/prod/packages/@glimmer/reference/index.js +2 -2
  159. package/dist/prod/packages/@glimmer/runtime/index.js +11 -11
  160. package/dist/prod/packages/@glimmer/tracking/index.js +1 -1
  161. package/dist/prod/packages/ember/version.js +1 -1
  162. package/dist/prod/packages/shared-chunks/{alias-IFzw6sv_.js → alias-DvgufSYq.js} +4 -4
  163. package/dist/prod/packages/shared-chunks/{api-DzOa0Acr.js → api-B3M8aF1d.js} +2 -0
  164. package/dist/prod/packages/shared-chunks/{api-B_poQGXS.js → api-CoUjEXgs.js} +3 -3
  165. package/dist/prod/packages/shared-chunks/{api-DlJKfm_f.js → api-DJnXAjon.js} +2 -2
  166. package/dist/prod/packages/shared-chunks/{args-proxy-CCoFtYLS.js → args-proxy-BHODnDyt.js} +1 -1
  167. package/dist/prod/packages/shared-chunks/{arguments-CCYATlEH.js → arguments-xjTAZ6VE.js} +7 -3
  168. package/dist/prod/packages/shared-chunks/{array-CnXdmzOG.js → array-CK__rqeu.js} +2 -2
  169. package/dist/prod/packages/shared-chunks/{chain-tags-B2J7DsxO.js → chain-tags-BlsXEpE-.js} +1 -1
  170. package/dist/prod/packages/shared-chunks/{computed-BNdMwGhH.js → computed-ZvOk7SJQ.js} +4 -4
  171. package/dist/prod/packages/shared-chunks/{curly-CdvJuTyW.js → curly-Bg--Dj0X.js} +18 -17
  172. package/dist/prod/packages/shared-chunks/{decorator-9ikVwsjY.js → decorator-DcvVDSJV.js} +1 -1
  173. package/dist/prod/packages/shared-chunks/destroyable-key-BsfVBM7f.js +12 -0
  174. package/dist/prod/packages/shared-chunks/{element-BmBjPjkQ.js → element-CZnh4CbF.js} +3 -3
  175. package/dist/prod/packages/shared-chunks/evented-DYsL5t87.js +100 -0
  176. package/dist/prod/packages/shared-chunks/{events-DYrYz3V8.js → events-3Q5Qvo6Q.js} +3 -0
  177. package/dist/prod/packages/shared-chunks/{get-CEjFJzGs.js → get-B1Vq9Mmk.js} +3 -3
  178. package/dist/prod/packages/shared-chunks/{hash-BitfXhCx.js → hash-pP7ZP_NN.js} +3 -3
  179. package/dist/prod/packages/shared-chunks/{index-D8cl-pfl.js → index-Dncpaycf.js} +12 -12
  180. package/dist/prod/packages/shared-chunks/{injected_property-DqQ0XV7k.js → injected_property-4vB_6fM8.js} +2 -2
  181. package/dist/prod/packages/shared-chunks/{internal-BQ7zHrqS.js → internal-D1sloI2P.js} +2 -2
  182. package/dist/prod/packages/shared-chunks/{internal-helper-Bz1lpDXr.js → internal-helper-Becm19An.js} +1 -1
  183. package/dist/prod/packages/shared-chunks/{invoke-4JGJYH7Z.js → invoke-BqNxG81o.js} +2 -2
  184. package/dist/prod/packages/shared-chunks/mixin-AGmJaAAY.js +576 -0
  185. package/dist/prod/packages/shared-chunks/{namespace_search-BfvzEQzN.js → namespace_search-TFdmjK_a.js} +1 -1
  186. package/dist/prod/packages/shared-chunks/{not-Dn5s9qVZ.js → not-BRssU6nS.js} +2 -2
  187. package/dist/prod/packages/shared-chunks/{observers-BmobpXAF.js → observers-B1wiwQeH.js} +2 -2
  188. package/dist/prod/packages/shared-chunks/{on-ov4KAucw.js → on-BFt-Sx9A.js} +3 -3
  189. package/dist/prod/packages/shared-chunks/{outlet-BWnaVOrA.js → outlet-bc38zkd8.js} +3 -3
  190. package/dist/prod/packages/shared-chunks/{property_set-BmAQ0MGK.js → property_set-CVmdjPdh.js} +2 -2
  191. package/dist/prod/packages/shared-chunks/{reference-CG0yPgLy.js → reference-CccCE8mJ.js} +2 -0
  192. package/dist/prod/packages/shared-chunks/{rehydrate-builder-n_8RCUj9.js → rehydrate-builder-B9bh-2Dy.js} +1 -1
  193. package/dist/prod/packages/shared-chunks/{render-BAVl5E6X.js → render-C_iak8Db.js} +16 -5
  194. package/dist/prod/packages/shared-chunks/{serialize-builder-CsG9WHVw.js → serialize-builder-Du-432zt.js} +1 -1
  195. package/dist/{dev/packages/shared-chunks/set_properties-BzM_irwA.js → prod/packages/shared-chunks/set_properties-BObIgkE-.js} +2 -2
  196. package/dist/prod/packages/shared-chunks/{setup-registry-DeyoFe6Q.js → setup-registry-Czh4z4t2.js} +16 -15
  197. package/dist/prod/packages/shared-chunks/{template-only-DKNcKM5b.js → template-only-CWsfnbVm.js} +2 -2
  198. package/dist/prod/packages/shared-chunks/{textarea-B-sssXGa.js → textarea-DbUSajBD.js} +3 -3
  199. package/dist/prod/packages/shared-chunks/{tracked-DvOpYI0o.js → tracked-z77O-F0O.js} +2 -2
  200. package/dist/prod/packages/shared-chunks/{unique-id-BJb1p8EG.js → unique-id-DNqsbhfh.js} +2 -2
  201. package/docs/data.json +855 -507
  202. package/lib/browsers.cjs +33 -33
  203. package/package.json +4 -3
  204. package/types/stable/@ember/-internals/deprecations/index.d.ts +30 -0
  205. package/types/stable/@ember/-internals/glimmer/index.d.ts +1 -1
  206. package/types/stable/@ember/-internals/metal/lib/evented-methods.d.ts +22 -0
  207. package/types/stable/@ember/-internals/metal/lib/events.d.ts +1 -0
  208. package/types/stable/@ember/-internals/utils/lib/internal-mixin-create.d.ts +13 -0
  209. package/types/stable/@ember/-internals/views/index.d.ts +1 -0
  210. package/types/stable/@ember/-internals/views/lib/views/core-view-utils.d.ts +5 -0
  211. package/types/stable/@ember/-internals/views/lib/views/core_view.d.ts +9 -6
  212. package/types/stable/@ember/array/proxy.d.ts +1 -0
  213. package/types/stable/@ember/object/evented.d.ts +6 -0
  214. package/types/stable/@ember/object/events.d.ts +26 -1
  215. package/types/stable/@ember/object/mixin.d.ts +3 -0
  216. package/types/stable/@ember/object/promise-proxy-mixin.d.ts +1 -0
  217. package/types/stable/@ember/object/proxy.d.ts +2 -0
  218. package/types/stable/@ember/routing/route.d.ts +9 -2
  219. package/types/stable/@ember/routing/router-service.d.ts +54 -6
  220. package/types/stable/@ember/routing/router.d.ts +9 -8
  221. package/types/stable/@glimmer/destroyable/index.d.ts +1 -0
  222. package/types/stable/@glimmer/runtime/lib/vm/element-builder.d.ts +2 -0
  223. package/types/stable/@glimmer/runtime/lib/vm/render-result.d.ts +2 -0
  224. package/types/stable/@glimmer/runtime/lib/vm/update.d.ts +2 -0
  225. package/types/stable/@glimmer/syntax/lib/keywords.d.ts +2 -2
  226. package/types/stable/@glimmer/util/lib/destroyable-key.d.ts +15 -0
  227. package/types/stable/index.d.ts +4 -0
@@ -9,7 +9,7 @@ import { c as consumeTag, g as createCache, h as getValue, u as untrack } from '
9
9
  import { t as tagFor } from '../../shared-chunks/meta-BqC7f9Ia.js';
10
10
  import { on } from '../modifier/on.js';
11
11
  import { t as templateFactory } from '../../shared-chunks/index-BYUSIu_W.js';
12
- import { I as InternalComponent, o as opaquify } from '../../shared-chunks/internal-DTOXyEGM.js';
12
+ import { I as InternalComponent, o as opaquify } from '../../shared-chunks/internal-CZjbPyX3.js';
13
13
  import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
14
14
  import { assert } from '../debug/lib/assert.js';
15
15
 
@@ -5,9 +5,9 @@ import { assert } from '../../debug/lib/assert.js';
5
5
  import '../../../@glimmer/destroyable/index.js';
6
6
  import '../../../shared-chunks/cache-DGDPVCpC.js';
7
7
  import '../../../shared-chunks/mandatory-setter-BpbAMTzV.js';
8
- import '../../../shared-chunks/reference-BqOLhKFy.js';
8
+ import '../../../shared-chunks/reference-De0V3Vxp.js';
9
9
  import '../../../shared-chunks/decorator-B5Uh5NFI.js';
10
- import '../../../shared-chunks/observers-DMlX2nCi.js';
10
+ import '../../../shared-chunks/observers-BsxKjjpC.js';
11
11
  import '../../../shared-chunks/property_get-DXwpgTe7.js';
12
12
  import { readOnly } from '../../object/lib/computed/computed_macros.js';
13
13
  import '../../object/core.js';
@@ -1,14 +1,16 @@
1
1
  import { privatize } from '../-internals/container/index.js';
2
- import { f as flushAsyncObservers, b as addObserver } from '../../shared-chunks/observers-DMlX2nCi.js';
3
- import { c as computed, d as defineProperty } from '../../shared-chunks/computed-DGxbeUbf.js';
2
+ import { f as flushAsyncObservers, b as addObserver } from '../../shared-chunks/observers-BsxKjjpC.js';
3
+ import { c as computed, d as defineProperty } from '../../shared-chunks/computed-CXIM4Sjc.js';
4
4
  import { d as descriptorForProperty } from '../../shared-chunks/decorator-B5Uh5NFI.js';
5
+ import { s as sendEvent } from '../../shared-chunks/events-e_Do73jh.js';
6
+ import { E as Evented, e as eventedOn, a as eventedOne, b as eventedTrigger, c as eventedOff, d as eventedHas } from '../../shared-chunks/evented-cAr_RO4u.js';
5
7
  import { getOwner } from '../-internals/owner/index.js';
6
8
  import { g as get } from '../../shared-chunks/property_get-DXwpgTe7.js';
7
- import { s as set } from '../../shared-chunks/property_set-DezUwDX4.js';
9
+ import { s as set } from '../../shared-chunks/property_set-CxxTalOq.js';
8
10
  import { g as getProperties } from '../../shared-chunks/get_properties-BlyZny5J.js';
9
- import { s as setProperties } from '../../shared-chunks/set_properties-BzM_irwA.js';
11
+ import { s as setProperties } from '../../shared-chunks/set_properties-KoN0q2wj.js';
10
12
  import EmberObject from '../object/index.js';
11
- import Evented from '../object/evented.js';
13
+ import { meta } from '../-internals/meta/lib/meta.js';
12
14
  import { A } from '../array/index.js';
13
15
  import ActionHandler from '../-internals/runtime/lib/mixins/action_handler.js';
14
16
  import typeOf from '../utils/lib/type-of.js';
@@ -20,7 +22,7 @@ import { info } from '../debug/index.js';
20
22
  import EngineInstance from '../engine/instance.js';
21
23
  import { dependentKeyCompat } from '../object/compat.js';
22
24
  import { once } from '../runloop/index.js';
23
- import { c as hasInternalComponentManager } from '../../shared-chunks/api-DuLOZMO_.js';
25
+ import { c as hasInternalComponentManager } from '../../shared-chunks/api-PyzZqscb.js';
24
26
  import '../../route-recognizer/index.js';
25
27
  import '../../shared-chunks/rsvp-aLN_pQtn.js';
26
28
  import { S as STATE_SYMBOL, P as PARAMS_SYMBOL } from '../../shared-chunks/unrecognized-url-error-cXUp-SK3.js';
@@ -48,7 +50,12 @@ const RENDER_STATE = Symbol('render-state');
48
50
  @public
49
51
  */
50
52
 
51
- class Route extends EmberObject.extend(ActionHandler, Evented) {
53
+ class Route extends EmberObject.extend(ActionHandler) {
54
+ static {
55
+ // The deprecated Evented mixin is no longer applied, but instances still
56
+ // provide its methods, so `Evented.detect` must keep returning true.
57
+ meta(this.prototype).addMixin(Evented);
58
+ }
52
59
  static isRouteFactory = true;
53
60
 
54
61
  // These properties will end up appearing in the public interface because we
@@ -471,9 +478,27 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
471
478
  */
472
479
  exit(transition) {
473
480
  this.deactivate(transition);
474
- this.trigger('deactivate', transition);
481
+ sendEvent(this, 'deactivate', [transition]);
475
482
  this.teardownViews();
476
483
  }
484
+ on(name, target, method) {
485
+ eventedOn(this, name, target, method);
486
+ return this;
487
+ }
488
+ one(name, target, method) {
489
+ eventedOne(this, name, target, method);
490
+ return this;
491
+ }
492
+ trigger(name, ...args) {
493
+ eventedTrigger(this, name, args);
494
+ }
495
+ off(name, target, method) {
496
+ eventedOff(this, name, target, method);
497
+ return this;
498
+ }
499
+ has(name) {
500
+ return eventedHas(this, name);
501
+ }
477
502
 
478
503
  /**
479
504
  @private
@@ -494,7 +519,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) {
494
519
  enter(transition) {
495
520
  this[RENDER_STATE] = undefined;
496
521
  this.activate(transition);
497
- this.trigger('activate', transition);
522
+ sendEvent(this, 'activate', [transition]);
498
523
  }
499
524
 
500
525
  /**
@@ -1,5 +1,4 @@
1
1
  import { getOwner } from '../-internals/owner/index.js';
2
- import Evented from '../object/evented.js';
3
2
  import '../debug/index.js';
4
3
  import '../-internals/meta/lib/meta.js';
5
4
  import { assert } from '../debug/lib/assert.js';
@@ -7,9 +6,9 @@ import '../../@glimmer/destroyable/index.js';
7
6
  import { c as consumeTag } from '../../shared-chunks/cache-DGDPVCpC.js';
8
7
  import { t as tagFor } from '../../shared-chunks/meta-BqC7f9Ia.js';
9
8
  import '../../shared-chunks/mandatory-setter-BpbAMTzV.js';
10
- import '../../shared-chunks/reference-BqOLhKFy.js';
9
+ import '../../shared-chunks/reference-De0V3Vxp.js';
11
10
  import '../../shared-chunks/decorator-B5Uh5NFI.js';
12
- import '../../shared-chunks/observers-DMlX2nCi.js';
11
+ import '../../shared-chunks/observers-BsxKjjpC.js';
13
12
  import '../../shared-chunks/property_get-DXwpgTe7.js';
14
13
  import { readOnly } from '../object/lib/computed/computed_macros.js';
15
14
  import '../object/core.js';
@@ -17,6 +16,7 @@ import '../array/index.js';
17
16
  import Service from '../service/index.js';
18
17
  import EmberRouter from './router.js';
19
18
  import { resemblesURL, extractRouteArgs, shallowEqual } from './lib/utils.js';
19
+ import { a as addListener, s as sendEvent, r as removeListener, h as hasListeners } from '../../shared-chunks/events-e_Do73jh.js';
20
20
  import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';
21
21
 
22
22
  /**
@@ -29,7 +29,6 @@ function cleanURL(url, rootURL) {
29
29
  }
30
30
  return url.substring(rootURL.length);
31
31
  }
32
-
33
32
  /**
34
33
  The Router service is the public API that provides access to the router.
35
34
 
@@ -61,9 +60,75 @@ function cleanURL(url, rootURL) {
61
60
  @extends Service
62
61
  @class RouterService
63
62
  */
64
-
65
- class RouterService extends Service.extend(Evented) {
63
+ class RouterService extends Service {
66
64
  [ROUTER];
65
+
66
+ /**
67
+ Subscribes to a named event with given function.
68
+ @method on
69
+ @param {String} name The name of the event
70
+ @param {Object} [target] The "this" binding for the callback
71
+ @param {Function|String} method A function or the name of a function to be called on `target`
72
+ @return this
73
+ */
74
+
75
+ on(name, target, method) {
76
+ // SAFETY: The types are not actually correct, but it's not worth the effort to fix them, since we'll be deprecating this API soon.
77
+ addListener(this, name, target, method);
78
+ return this;
79
+ }
80
+
81
+ /**
82
+ Subscribes a function to a named event and then cancels the subscription
83
+ after the first time the event is triggered.
84
+ @method one
85
+ @param {String} name The name of the event
86
+ @param {Object} [target] The "this" binding for the callback
87
+ @param {Function|String} method A function or the name of a function to be called on `target`
88
+ @return this
89
+ */
90
+
91
+ one(name, target, method) {
92
+ // SAFETY: The types are not actually correct, but it's not worth the effort to fix them, since we'll be deprecating this API soon.
93
+ addListener(this, name, target, method, true);
94
+ return this;
95
+ }
96
+
97
+ /**
98
+ Triggers a named event for the object.
99
+ @method trigger
100
+ @param {String} name The name of the event
101
+ @param {Object...} args Optional arguments to pass on
102
+ @return {boolean} true if listeners were notified, false otherwise
103
+ */
104
+ trigger(name, ...args) {
105
+ return sendEvent(this, name, args);
106
+ }
107
+
108
+ /**
109
+ Cancels subscription for given name, target, and method.
110
+ @method off
111
+ @param {String} name The name of the event
112
+ @param {Object} target The target of the subscription
113
+ @param {Function|String} method The function or the name of a function of the subscription
114
+ @return this
115
+ */
116
+
117
+ off(name, target, method) {
118
+ // SAFETY: The types are not actually correct, but it's not worth the effort to fix them, since we'll be deprecating this API soon.
119
+ removeListener(this, name, target, method);
120
+ return this;
121
+ }
122
+
123
+ /**
124
+ Checks to see if object has any subscriptions for named event.
125
+ @method has
126
+ @param {String} name The name of the event
127
+ @return {Boolean} does the object have a subscription for event
128
+ */
129
+ has(name) {
130
+ return hasListeners(this, name);
131
+ }
67
132
  get _router() {
68
133
  let router = this[ROUTER];
69
134
  if (router !== undefined) {
@@ -1,16 +1,16 @@
1
1
  import { privatize } from '../-internals/container/index.js';
2
- import { c as computed } from '../../shared-chunks/computed-DGxbeUbf.js';
2
+ import { c as computed } from '../../shared-chunks/computed-CXIM4Sjc.js';
3
3
  import { g as get } from '../../shared-chunks/property_get-DXwpgTe7.js';
4
- import { s as set } from '../../shared-chunks/property_set-DezUwDX4.js';
4
+ import { s as set } from '../../shared-chunks/property_set-CxxTalOq.js';
5
5
  import { getOwner } from '../owner/index.js';
6
6
  import BucketCache from './lib/cache.js';
7
7
  import DSLImpl from './lib/dsl.js';
8
8
  import RouterState from './lib/router_state.js';
9
9
  import { resemblesURL, extractRouteArgs, getActiveTargetName, calculateCacheKey } from './lib/utils.js';
10
10
  import EmberObject from '../object/index.js';
11
+ import { E as Evented, e as eventedOn, a as eventedOne, b as eventedTrigger, c as eventedOff, d as eventedHas } from '../../shared-chunks/evented-cAr_RO4u.js';
11
12
  import { A } from '../array/index.js';
12
13
  import typeOf from '../utils/lib/type-of.js';
13
- import Evented from '../object/evented.js';
14
14
  import { info } from '../debug/index.js';
15
15
  import { run, once, scheduleOnce, cancel } from '../runloop/index.js';
16
16
  import { getRenderState, getFullQueryParams, hasDefaultSerialize, defaultSerialize } from './route.js';
@@ -18,6 +18,8 @@ import Router from '../../router_js/index.js';
18
18
  import { S as STATE_SYMBOL, l as logAbort } from '../../shared-chunks/unrecognized-url-error-cXUp-SK3.js';
19
19
  import '../../shared-chunks/rsvp-aLN_pQtn.js';
20
20
  import EngineInstance from '../engine/instance.js';
21
+ import { s as sendEvent } from '../../shared-chunks/events-e_Do73jh.js';
22
+ import { meta } from '../-internals/meta/lib/meta.js';
21
23
  import { assert } from '../debug/lib/assert.js';
22
24
 
23
25
  /**
@@ -73,7 +75,13 @@ const {
73
75
  @uses Evented
74
76
  @public
75
77
  */
76
- class EmberRouter extends EmberObject.extend(Evented) {
78
+ class EmberRouter extends EmberObject {
79
+ static {
80
+ // The deprecated Evented mixin is no longer applied, but instances still
81
+ // provide its methods, so `Evented.detect` must keep returning true.
82
+ meta(this.prototype).addMixin(Evented);
83
+ }
84
+
77
85
  /**
78
86
  Represents the URL of the root of the application, often '/'. This prefix is
79
87
  assumed on all routes defined on this router.
@@ -122,6 +130,24 @@ class EmberRouter extends EmberObject.extend(Evented) {
122
130
 
123
131
  // Begin Evented
124
132
 
133
+ on(name, target, method) {
134
+ eventedOn(this, name, target, method);
135
+ return this;
136
+ }
137
+ one(name, target, method) {
138
+ eventedOne(this, name, target, method);
139
+ return this;
140
+ }
141
+ trigger(name, ...args) {
142
+ eventedTrigger(this, name, args);
143
+ }
144
+ off(name, target, method) {
145
+ eventedOff(this, name, target, method);
146
+ return this;
147
+ }
148
+ has(name) {
149
+ return eventedHas(this, name);
150
+ }
125
151
  // End Evented
126
152
 
127
153
  // Set with reopenClass
@@ -292,7 +318,7 @@ class EmberRouter extends EmberObject.extend(Evented) {
292
318
  return triggerEvent.bind(router)(routeInfos, ignoreFailure, name, args);
293
319
  }
294
320
  routeWillChange(transition) {
295
- router.trigger('routeWillChange', transition);
321
+ sendEvent(router, 'routeWillChange', [transition]);
296
322
  {
297
323
  freezeRouteInfo(transition);
298
324
  }
@@ -308,7 +334,7 @@ class EmberRouter extends EmberObject.extend(Evented) {
308
334
  routeDidChange(transition) {
309
335
  router.set('currentRoute', transition.to);
310
336
  once(() => {
311
- router.trigger('routeDidChange', transition);
337
+ sendEvent(router, 'routeDidChange', [transition]);
312
338
  {
313
339
  freezeRouteInfo(transition);
314
340
  }
@@ -1,6 +1,6 @@
1
1
  import '../debug/index.js';
2
2
  import { onErrorTarget } from '../-internals/error-handling/index.js';
3
- import { f as flushAsyncObservers } from '../../shared-chunks/observers-DMlX2nCi.js';
3
+ import { f as flushAsyncObservers } from '../../shared-chunks/observers-BsxKjjpC.js';
4
4
  import Backburner from '../../backburner.js/index.js';
5
5
  import { assert } from '../debug/lib/assert.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { FrameworkObject } from '../object/-internals.js';
2
2
  import { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';
3
- import { i as inject$1 } from '../../shared-chunks/injected_property-DbXd6Gax.js';
3
+ import { i as inject$1 } from '../../shared-chunks/injected_property-DyyWscn-.js';
4
4
 
5
5
  /**
6
6
  @module @ember/service
@@ -1,6 +1,6 @@
1
- import { o as or, d as not, c as lte, l as lt, b as gte, g as gt, n as neq, a as and, e as eq } from '../../../shared-chunks/not-0cVb-rLf.js';
2
- import { h as hash, f as fn, a as array } from '../../../shared-chunks/hash-BFu91gtE.js';
3
- import { e as element } from '../../../shared-chunks/element-Cgoi4ldD.js';
1
+ import { o as or, d as not, c as lte, l as lt, b as gte, g as gt, n as neq, a as and, e as eq } from '../../../shared-chunks/not-DNpbxEvj.js';
2
+ import { h as hash, f as fn, a as array } from '../../../shared-chunks/hash-D1O4fZ99.js';
3
+ import { e as element } from '../../../shared-chunks/element-DLh78jeJ.js';
4
4
  import { on } from '../../modifier/on.js';
5
5
  import '../../debug/index.js';
6
6
  import { STRICT_MODE_KEYWORDS, STRICT_MODE_TRANSFORMS, RESOLUTION_MODE_TRANSFORMS } from './plugins/index.js';
@@ -1,5 +1,6 @@
1
1
  import { d as debugToString } from '../../shared-chunks/debug-to-string-C6LsA_qz.js';
2
2
  import { scheduleDestroyed, scheduleDestroy } from '../global-context/index.js';
3
+ import { D as DESTROYABLE_META_KEY } from '../../shared-chunks/destroyable-key-BsfVBM7f.js';
3
4
 
4
5
  const LIVE_STATE = 0;
5
6
  const DESTROYING_STATE = 1;
@@ -48,19 +49,36 @@ function remove(collection, item, message) {
48
49
  return null;
49
50
  }
50
51
  }
52
+ function createMeta(destroyable) {
53
+ let meta = {
54
+ parents: null,
55
+ children: null,
56
+ eagerDestructors: null,
57
+ destructors: null,
58
+ state: LIVE_STATE
59
+ };
60
+ {
61
+ meta.source = destroyable;
62
+ }
63
+ return meta;
64
+ }
51
65
  function getDestroyableMeta(destroyable) {
66
+ let slotted = destroyable;
67
+ let own = slotted[DESTROYABLE_META_KEY];
68
+ if (own !== undefined) return own;
69
+
70
+ // `in` rather than a write, so this stays a read for everything else.
71
+ if (DESTROYABLE_META_KEY in slotted) {
72
+ let meta = createMeta(destroyable);
73
+ slotted[DESTROYABLE_META_KEY] = meta;
74
+ if (DESTROYABLE_META instanceof Map) {
75
+ DESTROYABLE_META.set(destroyable, meta);
76
+ }
77
+ return meta;
78
+ }
52
79
  let meta = DESTROYABLE_META.get(destroyable);
53
80
  if (meta === undefined) {
54
- meta = {
55
- parents: null,
56
- children: null,
57
- eagerDestructors: null,
58
- destructors: null,
59
- state: LIVE_STATE
60
- };
61
- {
62
- meta.source = destroyable;
63
- }
81
+ meta = createMeta(destroyable);
64
82
  DESTROYABLE_META.set(destroyable, meta);
65
83
  }
66
84
  return meta;
@@ -131,16 +149,27 @@ function destroyChildren(destroyable) {
131
149
  } = getDestroyableMeta(destroyable);
132
150
  iterate(children, destroy);
133
151
  }
152
+
153
+ /** Meta if there is any, without creating it. Mirrors `getDestroyableMeta`. */
154
+ function peekDestroyableMeta(destroyable) {
155
+ let slotted = destroyable;
156
+ let own = slotted[DESTROYABLE_META_KEY];
157
+ if (own !== undefined) return own;
158
+
159
+ // An empty slot is proof there is no meta, so the map can be skipped.
160
+ if (DESTROYABLE_META_KEY in slotted) return undefined;
161
+ return DESTROYABLE_META.get(destroyable);
162
+ }
134
163
  function _hasDestroyableChildren(destroyable) {
135
- let meta = DESTROYABLE_META.get(destroyable);
164
+ let meta = peekDestroyableMeta(destroyable);
136
165
  return meta === undefined ? false : meta.children !== null;
137
166
  }
138
167
  function isDestroying(destroyable) {
139
- let meta = DESTROYABLE_META.get(destroyable);
168
+ let meta = peekDestroyableMeta(destroyable);
140
169
  return meta === undefined ? false : meta.state >= DESTROYING_STATE;
141
170
  }
142
171
  function isDestroyed(destroyable) {
143
- let meta = DESTROYABLE_META.get(destroyable);
172
+ let meta = peekDestroyableMeta(destroyable);
144
173
  return meta === undefined ? false : meta.state >= DESTROYED_STATE;
145
174
  }
146
175
 
@@ -183,4 +212,4 @@ let assertDestroyablesDestroyed;
183
212
  };
184
213
  }
185
214
 
186
- export { _hasDestroyableChildren, assertDestroyablesDestroyed, associateDestroyableChild, destroy, destroyChildren, enableDestroyableTracking, isDestroyed, isDestroying, registerDestructor, unregisterDestructor };
215
+ export { DESTROYABLE_META_KEY, _hasDestroyableChildren, assertDestroyablesDestroyed, associateDestroyableChild, destroy, destroyChildren, enableDestroyableTracking, isDestroyed, isDestroying, registerDestructor, unregisterDestructor };
@@ -1,5 +1,5 @@
1
- export { C as CustomHelperManager, g as getInternalComponentManager, a as getInternalHelperManager, b as getInternalModifierManager, h as hasDestroyable, c as hasInternalComponentManager, d as hasInternalHelperManager, e as hasInternalModifierManager, f as hasValue, i as helperCapabilities, s as setInternalComponentManager, j as setInternalHelperManager, k as setInternalModifierManager } from '../../shared-chunks/api-DuLOZMO_.js';
2
- export { C as CustomComponentManager, a as CustomModifierManager, c as componentCapabilities, m as modifierCapabilities, s as setComponentManager, b as setHelperManager, d as setModifierManager } from '../../shared-chunks/api-BlZDPg1n.js';
1
+ export { C as CustomHelperManager, g as getInternalComponentManager, a as getInternalHelperManager, b as getInternalModifierManager, h as hasDestroyable, c as hasInternalComponentManager, d as hasInternalHelperManager, e as hasInternalModifierManager, f as hasValue, i as helperCapabilities, s as setInternalComponentManager, j as setInternalHelperManager, k as setInternalModifierManager } from '../../shared-chunks/api-PyzZqscb.js';
2
+ export { C as CustomComponentManager, a as CustomModifierManager, c as componentCapabilities, m as modifierCapabilities, s as setComponentManager, b as setHelperManager, d as setModifierManager } from '../../shared-chunks/api-B0N4oLJG.js';
3
3
  export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-R_5UMHhb.js';
4
- export { g as getCustomTagFor, s as setCustomTagFor } from '../../shared-chunks/args-proxy-CS5Brs3_.js';
4
+ export { g as getCustomTagFor, s as setCustomTagFor } from '../../shared-chunks/args-proxy-C39f5UPF.js';
5
5
  export { c as capabilityFlagsFrom, h as hasCapability, m as managerHasCapability } from '../../shared-chunks/capabilities-CajW4QjE.js';
@@ -1,7 +1,7 @@
1
1
  import { C as ConcreteBounds } from '../../shared-chunks/normalize-CKySQVU7.js';
2
- import { D as DOMTreeConstruction } from '../../shared-chunks/api-Dz70AUL_.js';
2
+ import { D as DOMTreeConstruction } from '../../shared-chunks/api-CK8FxDZV.js';
3
3
  import createHTMLDocument from '../../@simple-dom/document/index.js';
4
- export { s as serializeBuilder } from '../../shared-chunks/serialize-builder-D1oAeiyl.js';
4
+ export { s as serializeBuilder } from '../../shared-chunks/serialize-builder-v4amW_JS.js';
5
5
 
6
6
  class NodeDOMTreeConstruction extends DOMTreeConstruction {
7
7
  // Hides property on base class
@@ -3,7 +3,7 @@ import { e as expect } from '../../shared-chunks/collections-DPkjqeA3.js';
3
3
  import { u as unwrapTemplate } from '../../shared-chunks/template-BRrQR6KS.js';
4
4
  import { c as capabilityFlagsFrom, m as managerHasCapability } from '../../shared-chunks/capabilities-CajW4QjE.js';
5
5
  import { g as getComponentTemplate } from '../../shared-chunks/template-R_5UMHhb.js';
6
- import { a as getInternalHelperManager, b as getInternalModifierManager, g as getInternalComponentManager } from '../../shared-chunks/api-DuLOZMO_.js';
6
+ import { a as getInternalHelperManager, b as getInternalModifierManager, g as getInternalComponentManager } from '../../shared-chunks/api-PyzZqscb.js';
7
7
  import { t as templateFactory } from '../../shared-chunks/index-BYUSIu_W.js';
8
8
  import { e as enumerate } from '../../shared-chunks/array-utils-CZQxrdD3.js';
9
9
  import { I as InternalComponentCapabilities } from '../../shared-chunks/flags-BZxHQ0yn.js';
@@ -2,8 +2,8 @@ import { toIterator, getPath } from '../global-context/index.js';
2
2
  import { E as EMPTY_ARRAY } from '../../shared-chunks/array-utils-CZQxrdD3.js';
3
3
  import { a as isIndexable } from '../../shared-chunks/collections-DPkjqeA3.js';
4
4
  import { D as DIRTY_TAG, c as consumeTag, r as createTag } from '../../shared-chunks/cache-DGDPVCpC.js';
5
- import { c as createComputeRef, v as valueForRef } from '../../shared-chunks/reference-BqOLhKFy.js';
6
- export { F as FALSE_REFERENCE, N as NULL_REFERENCE, R as REFERENCE, T as TRUE_REFERENCE, U as UNDEFINED_REFERENCE, f as childRefFor, g as childRefFromParts, a as createConstRef, h as createDebugAliasRef, j as createInvokableRef, e as createPrimitiveRef, k as createReadOnlyRef, l as createUnboundRef, i as isConstRef, b as isInvokableRef, d as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-BqOLhKFy.js';
5
+ import { c as createComputeRef, v as valueForRef } from '../../shared-chunks/reference-De0V3Vxp.js';
6
+ export { F as FALSE_REFERENCE, N as NULL_REFERENCE, R as REFERENCE, T as TRUE_REFERENCE, U as UNDEFINED_REFERENCE, f as childRefFor, g as childRefFromParts, a as createConstRef, h as createDebugAliasRef, j as createInvokableRef, e as createPrimitiveRef, k as createReadOnlyRef, l as createUnboundRef, i as isConstRef, b as isInvokableRef, d as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-De0V3Vxp.js';
7
7
 
8
8
  const NULL_IDENTITY = {};
9
9
  const KEY = (_, index) => index;
@@ -1,16 +1,16 @@
1
1
  export { C as ConcreteBounds, a as CursorImpl, c as clear } from '../../shared-chunks/normalize-CKySQVU7.js';
2
- export { D as DOMChanges, a as DynamicScopeImpl, E as EnvironmentImpl, b as IDOMChanges, L as LowLevelVM, S as ScopeImpl, U as UpdatingVM, i as inTransaction, c as isWhitespace, r as renderComponent, d as renderMain, e as renderSync, f as resetDebuggerCallback, g as runtimeOptions, s as setDebuggerCallback } from '../../shared-chunks/render-D_Rawf-r.js';
3
- export { T as TEMPLATE_ONLY_COMPONENT_MANAGER, a as TemplateOnlyComponent, b as TemplateOnlyComponentManager, t as templateOnlyComponent } from '../../shared-chunks/template-only-Cu639ICT.js';
4
- export { C as CurriedValue, E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL, c as createCapturedArgs, d as curry, r as reifyArgs, e as reifyNamed, f as reifyPositional } from '../../shared-chunks/arguments-DniR8eF2.js';
2
+ export { D as DOMChanges, a as DynamicScopeImpl, E as EnvironmentImpl, b as IDOMChanges, L as LowLevelVM, S as ScopeImpl, U as UpdatingVM, i as inTransaction, c as isWhitespace, r as renderComponent, d as renderMain, e as renderSync, f as resetDebuggerCallback, g as runtimeOptions, s as setDebuggerCallback } from '../../shared-chunks/render-CNXCIKfb.js';
3
+ export { T as TEMPLATE_ONLY_COMPONENT_MANAGER, a as TemplateOnlyComponent, b as TemplateOnlyComponentManager, t as templateOnlyComponent } from '../../shared-chunks/template-only-DHdQevpG.js';
4
+ export { C as CurriedValue, E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL, c as createCapturedArgs, d as curry, r as reifyArgs, e as reifyNamed, f as reifyPositional } from '../../shared-chunks/arguments-LEaMCStR.js';
5
5
  export { n as normalizeProperty } from '../../shared-chunks/props-fiqxqhAH.js';
6
- export { a as and, e as eq, g as gt, b as gte, l as lt, c as lte, n as neq, d as not, o as or } from '../../shared-chunks/not-0cVb-rLf.js';
7
- export { a as array, f as fn, h as hash } from '../../shared-chunks/hash-BFu91gtE.js';
8
- export { c as concat, g as get } from '../../shared-chunks/get-zsePWrJL.js';
9
- export { i as invokeHelper } from '../../shared-chunks/invoke-CgF42joE.js';
10
- export { o as on } from '../../shared-chunks/on-CVIjn2C-.js';
6
+ export { a as and, e as eq, g as gt, b as gte, l as lt, c as lte, n as neq, d as not, o as or } from '../../shared-chunks/not-DNpbxEvj.js';
7
+ export { a as array, f as fn, h as hash } from '../../shared-chunks/hash-D1O4fZ99.js';
8
+ export { c as concat, g as get } from '../../shared-chunks/get-fzmvcT9R.js';
9
+ export { i as invokeHelper } from '../../shared-chunks/invoke-BPNErlhO.js';
10
+ export { o as on } from '../../shared-chunks/on-Dfya_9b_.js';
11
11
  export { destroy, isDestroyed, isDestroying, registerDestructor } from '../destroyable/index.js';
12
12
  import '../global-context/index.js';
13
13
  import '../../shared-chunks/cache-DGDPVCpC.js';
14
- import '../../shared-chunks/reference-BqOLhKFy.js';
15
- export { D as DOMTreeConstruction, a as DynamicAttribute, N as NewTreeBuilder, R as RemoteBlock, b as ResettableBlockImpl, S as SimpleDynamicAttribute, c as clientBuilder, d as dynamicAttribute } from '../../shared-chunks/api-Dz70AUL_.js';
16
- export { R as RehydrateTree, S as SERIALIZATION_FIRST_NODE_STRING, i as isSerializationFirstNode, r as rehydrationBuilder } from '../../shared-chunks/rehydrate-builder-CsnkZkur.js';
14
+ import '../../shared-chunks/reference-De0V3Vxp.js';
15
+ export { D as DOMTreeConstruction, a as DynamicAttribute, N as NewTreeBuilder, R as RemoteBlock, b as ResettableBlockImpl, S as SimpleDynamicAttribute, c as clientBuilder, d as dynamicAttribute } from '../../shared-chunks/api-CK8FxDZV.js';
16
+ export { R as RehydrateTree, S as SERIALIZATION_FIRST_NODE_STRING, i as isSerializationFirstNode, r as rehydrationBuilder } from '../../shared-chunks/rehydrate-builder-B3wE1O5a.js';
@@ -1,4 +1,4 @@
1
- export { t as tracked } from '../../shared-chunks/tracked-57EW14Ny.js';
1
+ export { t as tracked } from '../../shared-chunks/tracked-CLY9ttD5.js';
2
2
  import { g as createCache, h as getValue } from '../../shared-chunks/cache-DGDPVCpC.js';
3
3
 
4
4
  // NOTE: copied from: https://github.com/glimmerjs/glimmer.js/pull/358
@@ -1,4 +1,4 @@
1
1
  // this file gets replaced with the real value during the build
2
- const VERSION = '7.4.0-alpha.1';
2
+ const VERSION = '7.4.0-beta.1';
3
3
 
4
4
  export { VERSION as default };
@@ -3,11 +3,11 @@ import inspect from '../@ember/debug/lib/inspect.js';
3
3
  import '../@ember/debug/index.js';
4
4
  import { u as untrack, v as validateTag, U as UPDATE_TAG, a as valueForTag, c as consumeTag } from './cache-DGDPVCpC.js';
5
5
  import { a as tagMetaFor, t as tagFor } from './meta-BqC7f9Ia.js';
6
- import { C as CHAIN_PASS_THROUGH, g as getChainTagsForKey, f as finishLazyChains } from './chain-tags-uWSImHzB.js';
6
+ import { C as CHAIN_PASS_THROUGH, g as getChainTagsForKey, f as finishLazyChains } from './chain-tags-uYrtCZq1.js';
7
7
  import { i as isElementDescriptor, m as makeComputedDecorator, b as descriptorForDecorator, c as ComputedDescriptor } from './decorator-B5Uh5NFI.js';
8
- import { d as defineProperty } from './computed-DGxbeUbf.js';
8
+ import { d as defineProperty } from './computed-CXIM4Sjc.js';
9
9
  import { g as get } from './property_get-DXwpgTe7.js';
10
- import { s as set } from './property_set-DezUwDX4.js';
10
+ import { s as set } from './property_set-CxxTalOq.js';
11
11
  import { assert } from '../@ember/debug/lib/assert.js';
12
12
 
13
13
  function alias(altKey) {
@@ -1,7 +1,7 @@
1
- import { j as setInternalHelperManager, k as setInternalModifierManager, s as setInternalComponentManager, C as CustomHelperManager } from './api-DuLOZMO_.js';
1
+ import { j as setInternalHelperManager, k as setInternalModifierManager, s as setInternalComponentManager, C as CustomHelperManager } from './api-PyzZqscb.js';
2
2
  import { registerDestructor } from '../@glimmer/destroyable/index.js';
3
- import { a as createConstRef } from './reference-BqOLhKFy.js';
4
- import { a as argsProxyFor } from './args-proxy-CS5Brs3_.js';
3
+ import { a as createConstRef } from './reference-De0V3Vxp.js';
4
+ import { a as argsProxyFor } from './args-proxy-C39f5UPF.js';
5
5
  import { b as buildCapabilities, F as FROM_CAPABILITIES } from './capabilities-CajW4QjE.js';
6
6
  import { a as castToBrowser } from './simple-cast-DCvJLSin.js';
7
7
  import { debugAssert } from '../@glimmer/global-context/index.js';
@@ -2,6 +2,7 @@ import { S as StackImpl, e as expect } from './collections-DPkjqeA3.js';
2
2
  import { a as assert } from './assert-Zqc4wiAV.js';
3
3
  import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
4
4
  import { registerDestructor, destroy } from '../@glimmer/destroyable/index.js';
5
+ import { D as DESTROYABLE_META_KEY } from './destroyable-key-BsfVBM7f.js';
5
6
  import { i as isSafeString, n as normalizeStringValue, a as CursorImpl, C as ConcreteBounds, c as clear } from './normalize-CKySQVU7.js';
6
7
  import { a as castToBrowser } from './simple-cast-DCvJLSin.js';
7
8
  import { warnIfStyleNotTrusted } from '../@glimmer/global-context/index.js';
@@ -591,6 +592,7 @@ class NewTreeBuilder {
591
592
  }
592
593
  }
593
594
  class AppendingBlockImpl {
595
+ [DESTROYABLE_META_KEY];
594
596
  first = null;
595
597
  last = null;
596
598
  nesting = 0;
@@ -1,8 +1,8 @@
1
1
  import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
2
2
  import { debugAssert } from '../@glimmer/global-context/index.js';
3
3
  import { associateDestroyableChild } from '../@glimmer/destroyable/index.js';
4
- import { c as createComputeRef, a as createConstRef, U as UNDEFINED_REFERENCE } from './reference-BqOLhKFy.js';
5
- import { a as argsProxyFor } from './args-proxy-CS5Brs3_.js';
4
+ import { c as createComputeRef, a as createConstRef, U as UNDEFINED_REFERENCE } from './reference-De0V3Vxp.js';
5
+ import { a as argsProxyFor } from './args-proxy-C39f5UPF.js';
6
6
  import { b as buildCapabilities, F as FROM_CAPABILITIES } from './capabilities-CajW4QjE.js';
7
7
 
8
8
  function helperCapabilities(managerAPI, options = {}) {
@@ -1,4 +1,4 @@
1
- import { v as valueForRef } from './reference-BqOLhKFy.js';
1
+ import { v as valueForRef } from './reference-De0V3Vxp.js';
2
2
  import { t as track } from './cache-DGDPVCpC.js';
3
3
 
4
4
  const CUSTOM_TAG_FOR = new WeakMap();
@@ -1,7 +1,7 @@
1
1
  import { a as $v0, b as $t1, c as $t0, d as $pc, e as $ra, f as $fp, g as $sp, h as $s1, $ as $s0 } from './registers-C_W2qYHJ.js';
2
2
  import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
3
3
  import { e as expect, S as StackImpl, u as unwrap, a as isIndexable, d as dict } from './collections-DPkjqeA3.js';
4
- import { c as createComputeRef, v as valueForRef, a as createConstRef, e as createPrimitiveRef, i as isConstRef, U as UNDEFINED_REFERENCE, N as NULL_REFERENCE, T as TRUE_REFERENCE, F as FALSE_REFERENCE, R as REFERENCE, h as createDebugAliasRef } from './reference-BqOLhKFy.js';
4
+ import { c as createComputeRef, v as valueForRef, a as createConstRef, e as createPrimitiveRef, i as isConstRef, U as UNDEFINED_REFERENCE, N as NULL_REFERENCE, T as TRUE_REFERENCE, F as FALSE_REFERENCE, R as REFERENCE, h as createDebugAliasRef } from './reference-De0V3Vxp.js';
5
5
  import { b as EMPTY_STRING_ARRAY, e as enumerate, c as emptyArray } from './array-utils-CZQxrdD3.js';
6
6
  import { C as CONSTANT_TAG, I as INITIAL, v as validateTag, c as consumeTag, a as valueForTag, o as beginTrackFrame, s as endTrackFrame, k as CURRENT_TAG } from './cache-DGDPVCpC.js';
7
7
  import { C as CURRIED_MODIFIER, a as CURRIED_COMPONENT } from './curried-BZnYakIg.js';
@@ -10,7 +10,7 @@ import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
10
10
  import { a as assert } from './assert-Zqc4wiAV.js';
11
11
  import { u as unwrapTemplate } from './template-BRrQR6KS.js';
12
12
  import { registerDestructor, destroy, associateDestroyableChild } from '../@glimmer/destroyable/index.js';
13
- import { b as getInternalModifierManager, c as hasInternalComponentManager } from './api-DuLOZMO_.js';
13
+ import { b as getInternalModifierManager, c as hasInternalComponentManager } from './api-PyzZqscb.js';
14
14
  import { m as managerHasCapability } from './capabilities-CajW4QjE.js';
15
15
  import { a as assign } from './object-utils-AijlD-JH.js';
16
16
  import { I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';
@@ -799,7 +799,11 @@ APPEND_OPCODES.add(VM_DYNAMIC_MODIFIER_OP, vm => {
799
799
  }
800
800
  }
801
801
  if (!isConstRef(ref) || tag) {
802
- return vm.updateWith(new UpdateDynamicModifierOpcode(tag, instance, instanceRef));
802
+ let updateOpcode = new UpdateDynamicModifierOpcode(tag, instance, instanceRef);
803
+
804
+ // The block must own this opcode, or instances created on update are never destroyed.
805
+ vm.associateDestroyable(updateOpcode);
806
+ return vm.updateWith(updateOpcode);
803
807
  }
804
808
  });
805
809
  class UpdateModifierOpcode {
@@ -1,7 +1,7 @@
1
1
  import '../@ember/debug/index.js';
2
2
  import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
3
- import { s as sendEvent, a as addListener, r as removeListener } from './events-6aFVjD4k.js';
4
- import { n as notifyPropertyChange } from './computed-DGxbeUbf.js';
3
+ import { s as sendEvent, a as addListener, r as removeListener } from './events-e_Do73jh.js';
4
+ import { n as notifyPropertyChange } from './computed-CXIM4Sjc.js';
5
5
  import { assert } from '../@ember/debug/lib/assert.js';
6
6
 
7
7
  function arrayContentWillChange(array, startIdx, removeAmt, addAmt) {
@@ -6,7 +6,7 @@ import { t as tagFor, d as dirtyTagFor, a as tagMetaFor } from './meta-BqC7f9Ia.
6
6
  import { a as setupMandatorySetter } from './mandatory-setter-BpbAMTzV.js';
7
7
  import { t as toString } from './to-string-C7M8LBLH.js';
8
8
  import { isDestroyed } from '../@glimmer/destroyable/index.js';
9
- import { g as getCustomTagFor } from './args-proxy-CS5Brs3_.js';
9
+ import { g as getCustomTagFor } from './args-proxy-C39f5UPF.js';
10
10
  import { assert } from '../@ember/debug/lib/assert.js';
11
11
 
12
12
  function objectAt(array, index) {